title: pdflatex and pstricks

text: Sometimes ago I wrote a style file for drawing GANNT charts with pstricks. I typically compile my code with latex+dvips+ps2pdf, and everything works fine. However, I am now preparing a presentation where I also need to include a lot of jpg and png files, and I do not want to convert all of them into eps. So, I have to use pdflatex. However, my style does not work with pdflatex. I tried to include packages:               \usepackage[pdf]{pstricks}      and also               \usepackage{auto-pst-pdf}      But I always get this error:               ! LaTeX Error: \begin{pspicture} on input line 469 ended by \end{RTGrid}.      The problem is that I define an environment `\begin{RTGrid} \end{RTGRid}`, which uses pspicture inside. It looks like auto-pst-pdf cannot correctly expand my environment. Does anybody has any clue on how to solve this? Here is my style file rtsched.sty (I apologize if my coding style is not very good!):               \NeedsTeXFormat{LaTeX2e}[1995/12/01]     \ProvidesPackage{rtsched}[2005/01/01]     \typeout{'rtsched' style for Latex and PSTricks}     \typeout{Easily draw real-time schedules in TeX/Latex.}     \typeout{(c) 2005, Giuseppe Lipari, Pisa, Italy (g.lipari@sssup.it)}     \typeout{Version 1.0}          \RequirePackage{multido}     \RequirePackage{pstricks}     \RequirePackage{keyval}          % something removed here          \def\RTGrid{\@ifnextchar[\@mygrid@begin{\@mygrid@begin[]}}          \def\RTGridBegin{\@ifnextchar[\@mygrid@begin{\@mygrid@begin[]}}     \def\@mygrid@begin[#1]#2#3{\setkeys{RT}{#1}%         \begin{pspicture}(0,0)(\RTWindowLength,\hy) %           %% draw grid (if not invisible)           \if\RTGridInvisible\RTDefGridInvisible             \multips(0,\sy)(0,\sy){\nsy}{\psline[linecolor=lightgray]{-}(0,\sy)(\RTWindowLength,\sy)}%             \multips(\sx,0)(\sx,0){\nsx}{\psline[linecolor=lightgray]{-}(0,\sy)(0,\hy)}%             \psframe(0,\sy)(\RTWindowLength,\hy)%           \else\relax           \fi      }      \def\endRTGrid{         \end{pspicture}%      }      \newcommand{\@compute@xx}[1]{        \xx = #1\sx        \divide \xx by \RTXScale        \advance \xx by \sx      }      \newcommand{\@compute@xxx}[1]{         \xxx = #1\sx         \divide \xxx by \RTXScale         \advance \xxx by \sx      }           \newcommand{\@compute@yy}[1]{        \yy = -3\sy \multiply \yy by #1        \advance \yy by \hy      }      \newcommand{\TaskArrDead}[4][nocommand=1]{        \setkeys{RT}{#1}%        \@compute@yy{#2}        \@compute@xx{#3}        \yyy = \yy \advance \yyy by 2\sy        \psline[linecolor=\RTLineColor]{->}(\xx,\yy)(\xx,\yyy)        \advance \xx by #4\sx        \psline[linecolor=\RTLineColor]{->}(\xx,\yyy)(\xx,\yy)      }      \newcommand{\TaskExecution}[4][nocommand=1]{        \setkeys{RT}{#1}%        \@compute@yy{#2}        \@compute@xx{#3}        \yyy = \yy \advance \yyy by \sy        \@compute@xxx{#4}        \psframe[fillstyle=\RTTaskFill,fillcolor=\RTTaskColor,linecolor=\RTLineColor](\xx,\yy)(\xxx,\yyy)        \advance \xx by \xxx \xx = .5\xx        \uput{2pt}[u](\xx,\yy){%          \usefont{T1}{phv}{m}{n}%          \fontsize{\RTNumberLabelSize}{\RTNumberLabelSize}%          \selectfont{\RTExecLabel}%        }     }     \endinput      And here is the example:               \documentclass{article}     \usepackage{rtsched}     \usepackage{auto-pst-pdf}     \begin{document}     \begin{RTGrid}{2}{10}       \TaskArrDead{1}{0}{5}       \TaskArrDead{1}{5}{5}       \TaskExecution{1}{0}{4}     \end{RTGrid}     \end{document}      PS: since I removed many lines of code from rtsched.sty, it may be possible that after solving the error described in this post, other errors will pop up. However, it is important for me to go past this error!


title: Extracting bibliography from aux file in order of citation

text: I am trying to extract a bibliography from my `.aux` file and have done so successfully with `bibtool -x file.aux > file.bib`. However, I would like the bib file to have the entries in the order of reference/citation, rather than its default order that is the same as the original BibTeX file. Does anyone know how to do this with `bibtool` or with some other tool?


title: How to create Index for Verses

text: I ran into problem of creating index for a book (1200 page) which has around 700 verses and its explanation. I have one main tex file with the preamble. I have 18 chapters in my book, so I created 18 texfiles which contains the 700 verses. I am using `\include{filename}` to work with one file at a time. I have no clue about creating index page for the book. I am attaching a screenshot of the format. To begin with I don’t even know how to add first few words of each verse to index page. Its in sanskrit, and I am using verse environment as shown in the example here How to center a verse horizontally given by @Herbert I found index worked it gave the first few words of the verse and page number. I could not get the chapter number and two column output with a line divide in between. ![](http://i.stack.imgur.com/2HDmj.jpg)


title: Creating a bold and indented title.

text: Im working with an existing template and I need to make my sections bold and my subsections indented. I use the `titlesec` package. My Section style is this               \titleformat{\section}[block]{\Roman{section}.}{}{1em}{}       Which I need to be bold And my subsection style is this               \titleformat{\subsection}[block]{\Roman{section}.\Roman{subsection}}{}{2em}{}       Which I need to indent (the roman numeral and the "title") 2em from the left margin I have tried various different solutions for over an hour now but none of them seem to work... Could anyone help me out?


title: Sort bibliography alphabetically with \citep command

text: I have a problem sorting bibliography alphabetically. Bibliography is listed in the order I cited the references. I have tried various ways to solve it but all I am achieving so far is breaking the whole thing. I don't mind switching packages as long as I get to keep these two things: I am using `\citep` command throughout as my supervisor wants me to have references like > (Smith et.al, 2012). So I want to keep using `\citep` command. Second, I need bibliography in alphabetical order. I would be very grateful for suggestions. Here is relevant lines I have:               ...     \usepackage[round]{natbib}     ...     \begin{document}     ...     \bibliographystyle{apsrev}     \bibliography{bibliography}     ...     \end{document}


title: Different alignment for table number and caption

text: I have a table whose table number should be right-aligned and its caption should be center-aligned on the next line like this:                                         Table 1                Caption     ---------------------------------     |    |       |        |         |     ---------------------------------      I found the `caption` package which is a powerful tool for changing caption styles, but it doesn't allow to solve my problem.


title: Forced indentation in algorithmicx

text: ![Problematic algorithm](http://i.stack.imgur.com/7nwLB.png) I have an algorithm dealing with some very large parameter names, messing up the readability. What I've done so far is break the lines of the problematic statement (lines 4-5) manually into two separate statements. Without it the statement will go outside the page margins. The procedure signature wraps itself. What I want to do is to indent the overflowing lines in both the procedure name and the long statement to the location of the arrows in the figure above. How should I do this? I am open for suggestions to other packages for algorithms as well.               \documentclass[12pt,a4paper,english,twoside,titlepage]{report}     \usepackage{algorithm}     \usepackage{algpseudocode}     \begin{document}         \begin{algorithm}             \caption{This procedure calculates the \texttt{response} value}             \begin{algorithmic}[1]                 \Procedure {CalculateResponse}{$pszMethod$, $pszDigestUri$, $pszQop$, $pszUsername$, $pszRealm$, $pszPassword$, $pszNonce$, $pszCNonce$, $pszNonceCount$}                     \State $ha1 \gets DigestCalcHA1(pszUsername, pszRealm, pszPassword)$                     \State $ha2 \gets DigestCalcHA2(pszMethod, pszDigestUri, pszQop)$                     \State $response \gets calculateResponse(ha1, ha2,pszMethod, pszDigestUri,$                     \State $pszQop,pszNonce, pszNonceCount, pszCNonce)$             \EndProcedure                 \Statex             \end{algorithmic}         \end{algorithm}     \end{document}


title: Putting row of dots in an equation

text: Is it possible create a system of equations that will look like this:               aX(x_0)+bX(x_0)+cX(x_0)=A     dX(x_1)+eX(x_1)+fX(x_1)=B     .........................     gX(x_n)+hX(x_n)+iX(x_n)=B      I tried with this:                   \documentclass[a4paper,12pt,twoside]{article}              \usepackage{amsmath,amssymb,amsthm,amssymb}              \usepackage{tikz}         \usetikzlibrary{decorations.shapes}              \begin{document}              \begin{equation*}         \begin{split}         a_0\varphi_0(x_0)+a_1\varphi_1(x_0)+\ldots+a_n\varphi_n(x_0)&=f_0\\         a_0\varphi_0(x_1)+a_1\varphi_1(x_1)+\ldots+a_n\varphi_n(x_1)&=f_1\\         \begin{tikzpicture}         \draw[decorate sep={0.4mm}{2mm},fill] (6,0) -- (12,0);         \end{tikzpicture}         a_0\varphi_0(x_n)+a_1\varphi_1(x_n)+\ldots+a_n\varphi_n(x_n)&=f_n\\         \end{split}         \end{equation*}         \end{document}      But that isn't working :\ I could just put `\cdots` or some similar dots, but I'd like a continuous line across the row.


title: How to insert footer in first pages of chapter?

text: I am using fancyhdr to make header and footer for pages. In the minimal example the footer is not appearing in the first page of chapter. I want footer to be appear in the first pages of the chapter also. Please help me to do that.               \documentclass[10pt,a4paper, twoside]{report}     \usepackage[latin1]{inputenc}     \usepackage{fancyhdr}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \author{Padmapriya}     \pagestyle{fancy}     \fancyfoot[LE, RO]{Apurba Paul}     \fancyfoot[LO, RE]{Using fancyhdr}     \title{Using fancyhdr}     \author{Apurba Paul}     \date{}     \begin{document}     \maketitle     \chapter{First Chapter}     content of the first title.     \clearpage     content of the next page          \end{document}


I currently have an image like this: ![enter image description here](http://i.stack.imgur.com/3YlEg.png) which is created by the following LaTeX code:               \documentclass[varwidth=true, border=2pt]{standalone}     \usepackage{tikz}     \usetikzlibrary{calc}      \usepackage{amsmath,amssymb}          \begin{document}     \begin{tikzpicture}         \newcommand{\R}{1.5} % radius of the circle         \newcommand{\n}{6} % edges of the polygon              % Center         \path ( 0,0) coordinate (M);              % Inner polygon         \foreach \nr in {1, ..., \n}{             \path (360/\n*\nr:\R) coordinate (i\nr);             \draw (M) -- (i\nr);         }         \draw (0:0.3*\R) arc (0:360/\n:0.3*\R);         \coordinate[label=right:$\alpha$] (Alpha) at ({2*360/(\n+2)}:0.1*\R);         \draw (i1) -- (i2) -- (i3) -- (i4) --(i5) -- (i6) -- cycle;              % Circle         \draw[green] (0,0) circle (\R);          \end{tikzpicture}     \end{document}      I would like to have code that is independent of n. So, at the moment, when I change `n` from 6 to 7 I get: ![enter image description here](http://i.stack.imgur.com/ETrAm.png) I know I have to change the following part:               \draw (i1) -- (i2) -- (i3) -- (i4) --(i5) -- (i6) -- cycle;      but this does not work:               \foreach \nr in {1, ..., \n-1}{         \draw (M) -- (i{\nr+1});     }      It gives:               ! Package pgf Error: No shape named i{1+1} is known.      The problem is that my math expression does not get evaluated, but I have no idea how I could make LaTeX evaluate it. How can I add something to a variable with a number?


title: change page number color of latex beamer

text: I need to change the page number color to black in latex beamer. What do I need to add to the following code?               \defbeamertemplate{headline}{page number}{%         \vskip1pt%         \setbeamertemplate{footline}[page number]%         \usebeamertemplate{footline}%     }     \setbeamertemplate{headline}[page number]


title: Why won't this macro work in a \caption?

text: I created a macro to easily shift into typewriter mode, ala markdown or fancyvrb's "short verbatim" command. It works everywhere but in `\captions`. In that case, TeX fails saying I've exceeded capacity. Is my approach untenable? Below is a MWE. The example outside `\caption`, `!+foo+!`, works fine. The example inside `\caption` fails.               \chardef\plus=`+\chardef\bang=`!     \catcode`!=\active\catcode`+=\active     \def\startTTA{\futurelet\next\startTTB}      \long\def\startTTB#1{\ifx\next+\expandafter\startTTC\else\bang\expandafter#1\fi}     \def\startTTC{\begingroup\ttfamily\global\let+=\stopTTA\global\let!=\bang}     \def\stopTTA{\futurelet\next\stopTTB}     \long\def\stopTTB#1{\ifx\next!\expandafter\stopTTC\else\plus\expandafter#1\fi}     \def\stopTTC{\endgroup\global\let+=\plus\global\let!=\startTTA}     \let!=\startTTA\let+=\plus     \documentclass{article}     \begin{document}     !+foo+!     \begin{figure}     \tracingmacros=1\tracingcommands=2     \caption{!+foo.+!}     \tracingmacros=0\tracingcommands=0     \end{figure}     \end{document}      Suggestions for improving this macro are welcome as well!


title: How can I properly reference equations numbered by default in an align block?

text: I have two equations in an `align` block:               \begin{align}     4x-3y&=2\\      3x+2y&=1      \end{align}      Both of these equations are numbered (1) and (2) respectively. In a sentence beneath this align block I want to reference these two equations by referring to their labelled numbers. Is there a way to do this without simply typing (1) and (2) i.e having the numbers automatically generated and inserted? I tried this:               \begin{align}     4x-3y&=2\\ \label{eq:simul1}     3x+2y&=1 \label{eq:simul2}     \end{align}      but this did not compile. Or is it not worth doing and better to just simply enter the equation numbers manually? Obviously the downside to this is if my numbering changes I would have to change all occurrences of this.


title: Capacity of ctangle exceeded

text: I'm interested in looking at (and maybe modifying) the code in MetaFont/MetaPost. To generate their C code, I applied ctangle to mp.w, and got an error message saying "token capacity exceeded". Running ctangle on smaller files works OK, so I think the problem is just that mp.w is too big. Are there any pre-built versions of ctangle with larger capacity ? If I have to build one myself, which parameters should I adjust ? I see these:               max_bytes 1000000   /* number of bytes in identifiers, index entries, & section names     max_toks 1000000    /* number of bytes in compressed \CEE/ code */     max_names 10239     /* number of identifiers, strings, section names;     max_texts 10239     /* number of replacement texts, must be less than 10240 */     hash_size 8501      /* should be prime; used in |"common.w"| */     longest_name 10000  /* section names shouldn't be longer than this */     stack_size 50       /* number of simultaneous levels of macro expansion */     buf_size 1000       /* for \.{CWEAVE} and \.{CTANGLE} */


title: Changing font style using beamer

text: I want to change font style in my presentation. I prefere Liberation Serif font. This is TrueType font so use XeLaTeX program. I tried to set this font using `\usepackage{fontspec}` and `\setmainfont{Liberation Serif}`, but font in my document does not change. How i can solve this problem?


title: BibTeX and Jabref

text: I have a bib file in Jabref. Once the `.tex` file is compiled, the bibliography section appears but it is all empty. Here is an example of my `.tex` file:               \documentclass[a4paper,oneside,11pt]{book}           \usepackage[english, french]{babel}     \usepackage[super]{natbib}               \bibliographystyle{authordate1}     \bibliography{Bibpap3}     \addcontentsline{toc}{chapter}{Bibliography}          \end{document}      Any insights ?


title: Store information about which paper tray to use in PDF

text: Searching here, I found the question Embedding printer settings in pdf \- while related, this appears to apply to printer settings for the entire PDF, not for changing printer settings per page. Our (normal) printers are configured as follows: Tray 1 is a manual feed that is unused.   Tray 2 holds plain paper.   Tray 3 holds Letterhead.   (other printers may contain 2 more trays with other paper) The printers are used by clusters of 12+ people. They would like to be able to choose between plain paper and letterhead when printing their MiKTeX (pdfTeX) generated PDF documents. The pdfs are multipage documents (from 2 to 80+ pages) and may require letterhead for more than just the first page. For instance, pages 1, 2, 27 and 30 in a 35 page document. When printing, they would like the paper tray source changed mid-stream. Has anyone else had a similar situation and come up with a solution? I'm perplexed at whether this is simply a device configuration problem or something that needs to be resolved by the "printing procedure". I've looked around, but haven't found a device configuration solution that offers changing the paper tray back and forth mid-stream. Am I looking in the wrong places? One "printing procedure" solution is to intercept the Postscript sent to the printers and add/edit papersource commands. To do this I store application specific information in the PDF(s) - for instance something that says that specific pages are "letterhead" otherwise default to "blank". I can either add a dictionary via `\pdfobj` (which gets ignored by Adobe - mostly) or I could write a `\pagepiece dictionary` via `\pdfpageattr`.


title: \includegraphics PDF, color problem

text: I'm using `pdflatex`, and use `\includegraphics` to include content of figures from PDF. PDF are exported from InkScape.               \begin{figure} [!h]         \centering         \includegraphics[height=3cm]{fig/SUSAN.pdf}     \end{figure}      Included PDF or source SVG has same colors. Green has always RGB value (0, 255, 0). Problem occurs when I include this files from LaTeX. In output PDF on some pages colorspace is darker. Even same image on other page has different colourity. My PDF http://www.stud.fit.vutbr.cz/~xzamaz00/smutny_smajlik.pdf . As you can see on page 7 (11 in PDF) USAN areas are bright green, but then on page 5 (9 in PDF) are green points on corners more darker.


title: Illustrator pdfs displaying incorrectly in LaTeX

text: I've made quite a few images in Illustrator that have gone into LaTeX documents before with no problem, but now I'm having an issue with a graphic that has some gradients in it. I've tried exporting it from Illustrator as a pdf with almost every combination of settings I can think of and they all seem to have issues. To demonstrate, here are some screen shots of just one small part of the graphic: * * * In Illustrator (what it should look like): ![enter image description here](http://i.stack.imgur.com/p3UXd.jpg) Exported as pdf/x-3 and viewed in Preview (weird boxes showing up, looks the same in LaTeX): ![enter image description here](http://i.stack.imgur.com/zX0ht.jpg) Exported as pdf/x-4, in Preview (looks good!): ![enter image description here](http://i.stack.imgur.com/w4RVE.jpg) That very same pdf/x-4, in my LaTeX document (probably worst of all of them!): ![enter image description here](http://i.stack.imgur.com/UfKby.jpg) * * * So, there is obviously some strange stuff going on with those boxes showing up and gradients disappearing and whatever else is happening in the last example, but I can't figure out what the issue is. I know it sounds like I'm complainting about an Illustrator issue, but there are plenty of versions I export which look totally fine in Preview and other programs, but when I run them through LaTeX, they look all screwed up. Any ideas on this? The graphic is in RGB so I am guessing it may have something to do with going to CMYK, but I don't know how to do that while still having it look good. BTW I am on a Mac, using TeXShop.


title: Unintential bolding when inserting image

text: > **Possible Duplicate:**   >  Why are some pages in my PDF coming out bold? Occasionally a file I'm editing will render a page in very heavy text, making the entire page look bold, when I insert an image on that page. This doesn't happen all the time, but I have noticed it happen in a few different files. Why does this happen; and is there a way around it? I'm using the graphicx package for inserting images (with pdftex) and compiling to pdf.


title: Lyx - weird PDF outputs

text: I have a problem with my LyX PDF outputs. When I export LyX file to PDF using `pdflatex` letters are thicker on a page where `.png` graph is inserted than on other pages. Same thing with 'LuaTeX' and 'XeTeX'. Different problems occur when I use `dvipdfm` and `ps2pdf`. Then my graphs imported from `.pdf` files are blurred (low resolution) but there is no problem with thicker letters ...


title: Fat text on pages with pictures

text: > **Possible Duplicate:**   >  Why are some pages in my PDF coming out bold?   >  \includegraphics PDF, color problem first of all: I am not a english nativ speaker. ^^ I use the packages _graphicx_ and _wrapfig_ so the text flows around the pictures. My problem is that on the pages with pictures the text is written fat.


title: Why are some pages in my PDF coming out bold?

text: When I run my LaTeX document through `pdflatex`, some of the pages (the ones where figures appear) have all the text bolded. Why, and what can I do to make it stop?


title: text gets slightly bold when adding graphics

text: > **Possible Duplicate:**   >  Why are some pages in my PDF coming out bold? I have problem with text on the page with a graph, it gets slightly thicker. The text on the next page without graph is normal. Hopefully you are able to see the difference: ![enter image description here](http://i.stack.imgur.com/yYoDQ.png) The culprit are these lines:                \begin{center}      \includegraphics[width=1.0\columnwidth]{times}      \end{center}      The problem is well described in here too: http://www.latex- community.org/forum/viewtopic.php?f=45&t=7533 If you don't want to follow a link then essentially, a possible answer from there: "This is usually caused by alpha channels in included graphics. Remove the alpha channel in the included graphics (something I cannot help you with)" Additional question within an answer - how?


title: Including graphics modifies the font of the page on which they are inserted

text: I have some issue with the fonts in my document. When I insert some of my pdf figure, the font of the page where they are inserted is modified. I use pdflatex to compile and all my figures are in pdf format. Do you have any idea how to avoid that my inserted pictures compromise the font of the page ?


title: When printing document, why do pages with figures appear rougher (of lower resolution) than text-only pages?

text: > **Possible Duplicate:**   >  Why are some pages in my PDF coming out bold? I have a PDF document that I made in LaTeX. Some pages contain figures I created in METAPOST. Everything is super-smooth in my PDF viewer, i.e. it's clearly nicely vectorized as it should be when I zoom way in. However, upon printing the document (on a HP laser printer at the school), only the text-only pages appear smoothly in a good resolution as they should be. The pages with the figures get printed with a rougher lower resolution—even the text on those pages! I tried two different laser printers at the school, one connected to Mac OS X and the other to Linux. Similar weird results for both. Any ideas what could be causing this? I suspect that pages containing the figures are being treated as images, and printed as images by the printer. But I have no idea whether this is the case, and if this is the case, I have no idea why this should be happening. **UPDATE:** Could it have something to do with the fact that the figure contains a gray color (somewhere between white and black)? Does that cause the printer to go into some kind of a “color mode” for that page? Could that explain this?


title: Text appearing bold on some pages with images

text: > **Possible Duplicate:**   >  Why are some pages in my PDF coming out bold? For some reason, all the text on certain pages is appearing bold when there is a picture on the same page. I saw the other similar questions and tried converting the images firstly to PNGs with no transparency but that didn't fix it. I then tried converting them to JPEGs which didn't work either. Finally I converted them to EPS which also didn't fix the issue. I am using Lyx and Xetex. I am viewing the file using Adobe Reader 10 on Windows 7. Below is an example of one the pages which comes out bold:               \begin{figure}     \noindent \centering{}\includegraphics[width=330pt]     {ReportImg/projectedmarkermodel}     \caption{Example showing the projected marker corners based around the marker with ID 0\label     {fig:Example-showing-the} }     \end{figure}          \subsubsection{Objective function}          We first needed to define the new objective function to minimise.     The objective function will...      The whole page comes out bold. I tried printing the page as well, it appears bold when printed. EDIT: I don't think this is the same problem as previous questions, I have tried all the solutions given as answers before but the result is the same. I have even tried different PDF viewers and it still appears bold.


title: including a figure interferes with text font

text: > **Possible Duplicate:**   >  Why are some pages in my PDF coming out bold? I'm having a bit weird of an issue with including graphics into my LaTeX documents. When including a pdf graphics into a LaTeX document, the text font gets corrupted on the page of the final pdf document where the figure is placed --- for some figures. Here is the minimal example: http://dl.dropbox.com/u/18720218/fonts.tgz (apologies for the external link). In my environment, the font on pages one and three is OK, but on page two it's somehow blurry (or just different). Sure, it's not a show-stopper, the text is still readable, but it's somewhat unpleasant, so to say. So I'm wondering if this is just a problem of my environment (can anybody reproduce the problem?), and if not, then what can possibly be the cause and how to overcome it. Both pdf graphics files were generated by `matplotlib` if that matters--- but for TeX, it's just a pdf, right? I'm using `pdflatex` from `TeXLive2009` on `Ubuntu Lucid` if that matters. Any hints or pointers would be greatly appreciated.


title: PDF text becomes blurry when \includegraphics is used, why?

text: I'm compiling this code with XeLaTeX:               \documentclass[11pt]{article}     \usepackage{graphicx}     \begin{document}         This text is blurry if there is an image.         \includegraphics{Test.png}     \end{document}      where the image I'm including is:   ![Image](http://i.stack.imgur.com/EwNMD.png) If I comment out the `\includesgraphics`, I get: ![Clear](http://i.stack.imgur.com/s8w3T.png) If I don't, I get: ![Blurry](http://i.stack.imgur.com/1HFa7.png) Why does the text look different (in my eyes, blurrier) when there is an image on the screen?   How can I prevent this from happening in XeLaTeX?


title: Darker typeface in pages which include figures

text: > **Possible Duplicate:**   >  Why are some pages in my PDF coming out bold? In my PDF output, pages with figures on them have a darker typeface than pages without figures. This does not appear when I print the file. How can I avoid it?


title: LaTeX Ouputs PDF with one page entirely bold

text: > **Possible Duplicate:**   >  Why are some pages in my PDF coming out bold? I have searched all over and cannot seem to find anyone else even mentioning this problem. I created a conference paper fully formatted using the conference's template in LaTeX (MikTeX/TeXworks on Windows). It looks just fine in the TeXWorks previewer, but when I open the document with Adobe Reader, the second and 7th pages (out of 8 total) are entirely in bold, including all of the text and captions. The figures appear unaffected. I can't come up with any reason this would happen, but it was happening before when I used a different template, as well. The document source is relatively simple, and there aren't any commands in there to do anything like this. The document displayed this way on both computers I tested it on, and it prints just fine, too. Does anyone know what this happens when I try to view it in Adobe Reader? Is it just a bug with my version (10.1.2)?


title: Contents, List of Figures: hyperref on the page number

text: > **Possible Duplicate:**   >  Avoid hyperlinked TOC if hyperref is used In the process of finalizing a book I observed that it would be much better if I could translate the hyperref from the, e.g., Chapter name (left) to the page of the chapter (right). This means that I would rather like to make the page numbers to be colored in red, and to link to exactly that particular page number in the book, while the chapter name should remain in black color, and without any links associated with it. This should translate to List of Figures... How could this be achieved?


title: special table in latex

text: I would like to make a table like this in the image please can someone tell how I can do that![enter image description here](http://i.stack.imgur.com/fDMED.png)                   \begin{table}[!h]     \begin{center}     \begin{tabular}{l|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}}     \cline{2-10}     &\multicolumn{3}{|c|} {\bf $N_{min}$ Amis }& \multicolumn{3}{|c|} {\bf $N_{moy}$ Amis  }& \multicolumn{3}{|c|} {\bf $N_{max}$ Amis }\\ %\multicolumn{2}{|p{2.5cm}|} {\bf 750 Pages }& %\multicolumn{2}{|p{2.5cm}|} {\bf 1000 Pages }\\     \cline{2-10}     & \bf AS& \bf A\& A & \bf Pub& \bf AS& \bf A\& A & \bf Pub & \bf AS & \bf A\& A & \bf Pub \\     \hline                    \multicolumn{1}{|l|}{$N_{moy}$ Amis} &\bf 25.66& \bf 26.66& \bf 27&\bf 33& \bf 33& \bf 33& \bf 39.66& \bf 39.66& \bf 39.5\\     \hline     \multicolumn{1}{|p{3.5cm}|}{Moy Pages cibles } &\bf 25.66& \bf 62& \bf 100& \bf 33& \bf 71.33& \bf 100& \bf 39.66& \bf 80.33& \bf 100\\          \hline          \end{tabular}     \end{center}          \bf{\caption{Partager Publication dans le réseau 1}}     \end{table}


title: Can't manually install opensans on Ubuntu 12.04.3 LTS

text: I'm trying to use the font opensans for a document. This works great on Ubuntu 13.04, but it doesn't work on Ubuntu 12.04.3. The reason for this was pretty easy to figure out, because Ubuntu 13.04 includes the font in a system package. So I installed opensans using CTAN (http://www.ctan.org/tex- archive/fonts/opensans), and followed the instructions in the documentation. I did these steps:   * Download the ZIP and extract this to _/usr/share/texmf_ (I want to install systemwide)   * Run **mktexlsr**   * Run **updmap --enable Map=opensans.map**   * Because I want it installed systemwide, I also tried **sudo updmap-sys --enable Map=opensans.map** None of these commands gives an error. But unfortunately, this didn't work completely. I can use the normal `opensans` font now just fine. It just fails on italics/bold text. A minimal working example:               \documentclass[a4paper,11pt]{article}     \usepackage[default]{opensans}          \begin{document}     Testing \textbf{bold} and \textit{italics}!     \end{document}      The error I get is this:               $ pdflatex mwe.tex      This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)     entering extended mode     (./mwe.tex     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh     yphenation, loaded.     (/usr/share/texmf-texlive/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texmf-texlive/tex/latex/base/size11.clo))     (/usr/share/texmf/tex/latex/opensans/opensans.sty     (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)     (/usr/share/texmf-texlive/tex/latex/slantsc/slantsc.sty     (/usr/share/texmf-texlive/tex/latex/base/ifthen.sty))) (./mwe.aux)     (/usr/share/texmf/tex/latex/opensans/ot1fos.fd) [1{/var/lib/texmf/fonts/map/pdf     tex/updmap/pdftex.map}] (./mwe.aux)     kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+57/600 --dpi 657 OpenSans-Bold-01     mktexpk: don't know how to create bitmap font for OpenSans-Bold-01.     kpathsea: Appending font creation commands to missfont.log.      )     !pdfTeX error: pdflatex (file OpenSans-Bold-01): Font OpenSans-Bold-01 at 657 n     ot found      ==> Fatal error occurred, no output PDF file produced!      This was done with the same user that ran the above commands. What am I doing wrong?


title: How can I number paragraphs (and sections) in the margin?

text: I am (still) trying replicate the layout of this document. Sections and paragraphs are all numbered, in the margin (the chapter titles do not treat this as a margin, but I can ignore that). They are left-aligned. So far, Google and playing have uncovered these: 1) parano.sty   This allows me to auto-number paragraphs, which is nice. It has no flexibility for depth (i.e. sub-paragraphs) and I haven't tested moving its numbers. 2) \paragraph{}   This is the closest solution so far. Using `\setcounter{secnumdepth}{5}` I can add numbers to my paragraphs. This code then puts all of the numbers in the margin:               \makeatletter     \def\@seccntformat#1{\protect\makebox[0pt][r]{\csname the#1\endcsname\quad}}     \makeatother      I can make these left-aligned by increasing `[0pt]` and changing `r` to `l`, but I haven't been able to get the hanging indent right (or to move the box into the left margin) Further, \paragraphs without a title leave some space (presumably to separate text from the title?), further stopping the neat alignment I am aiming for. This solution (with the same limitations) also allows me to use sub- paragraphs, which I will eventually need.


title: How to convert UTF-8 to latin-1 on the fly?

text: I have my whole latex document which is encoded in latin-1. Also, the documentclass provided by my institution is designed to use latin-1. I write in french. I wish to use .bib files created by Mendeley which are encoded in UTF-8. When I try to compile, latex gives me an error : > inputenc: Keyboard character used is undefined(inputenc) in inputencoding > `latin1'. Is there a way to convert the encoding on the fly with a simple command? Here is my setup : Windows 7 MiKTeX 2.9 TexStudio 2.3 Mendeley to export my .bib It's just a matter of changing the encoding since if I simply copy the content of the .bib file in a new file (with the right encoding setup in TexStudio), everything works fine. I don't want to do that since it breaks my workflow. I'm thinking of something like a command to add before the execution of pdflatex.


title: Alignment of subplots in pgfplots

text: I would like to align a larger figure with two smaller subplots that should be of the same size and reach to the `below south east` and `below south west` anchors of the main figure. The example below does not work because I cannot provide two different alignments for the `two` and `three` axes:               \documentclass{standalone}          \usepackage{pgfplots}          \begin{document}          \begin{tikzpicture}       \begin{axis}[name=one, width=20cm, height=8cm]       \end{axis}       \begin{axis}[name=two,         at=(one.below south), anchor=above north east         ]       \end{axis}       \begin{axis}[name=three,         at=(one.below south), anchor=above north west,         yticklabel pos=right,         ]       \end{axis}     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/Njivb.png) How can the lower figures can be extended from `one.below south` so that `one.below south west` matches `two.above north west` and `one.below south east` matches `three.above north east`? I think that finding the length of the horizontal axis in the first figure would also help but I don't know how this length can be obtained or defined.


title: Footnote mark in regular or other font styles

text: Within my text, I use `\footnote` to place text. This places a small superscripted number within the text as well as a number at the bottom of the page followed by the data within the footnote.   * How can I change the appearance the number mark which appears within the text, so that it follows a normal text style just like the other text around it (not superscripted)?   * How can I change the appearance of the number mark which appears at the bottom of the page to the left of the footnote? Can this be changed to match the numbers in a list style?   * Can these settings change the appearance of all marks within the document uniformly?


title: Errors in latexmk with use of auto-pst-pdf and hyperref

text: If we compile               \documentclass[a4paper]{article}     \usepackage[pdftex]{hyperref}     \usepackage{pstricks,auto-pst-pdf}     \begin{document}     \tableofcontents     \section{Curves}     \begin{postscript}     \begin{pspicture}     \psccurve[showpoints=true](1,1)(2,2)(2,1)(1,2)     \end{pspicture}     \end{postscript}     \end{document}      using `latexmk` via `pdflatex -shell-escape`, `latexmk` gives the following message.               Rule 'pdflatex': Rules & subrules not known to be previously run:        pdflatex     Rule 'pdflatex': The following rules & subrules became out-of-date:           'pdflatex'     ------------     Run number 1 of rule 'pdflatex'     ------------     ------------     Running 'pdflatex -shell-escape -synctex=1  -recorder  "a.tex"'     ------------     Latexmk: applying rule 'pdflatex'...     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)      \write18 enabled.     entering extended mode     (./a.tex     LaTeX2e <2011/06/27>     ...     (/home/jasperloy/texlive/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/home/jasperloy/texlive/texmf-dist/tex/latex/base/size10.clo))     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/keyval.sty)     (/home/jasperloy/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)     (/home/jasperloy/texlive/texmf-dist/tex/latex/url/url.sty))          Package hyperref Message: Driver: hpdftex.          (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def     (/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     (/home/jasperloy/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex     (/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex     (/home/jasperloy/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex)))     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex     `pst-fp' v0.05, 2010/01/17 (hv))     `PSTricks' v2.29  <2012/06/04> (tvz)     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex)     (/home/jasperloy/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)     (/home/jasperloy/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def)))     (/home/jasperloy/texlive/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty)     (./a.w18))      -------------------------------------------------     auto-pst-pdf: Auxiliary LaTeX compilation     -------------------------------------------------     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)     entering extended mode     This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com)     ' TeX output 2012.08.20:0705' -> a-autopp.ps     </home/jasperloy/texlive/texmf/dvips/base/tex.pro>     </home/jasperloy/texlive/texmf/dvips/config/alt-rule.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pstricks.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-algparser.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-tools.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-dots.pro>     </home/jasperloy/texlive/texmf/dvips/base/special.pro>. [1]      PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.     ==> 1 page written on `a-pics.pdf'.     -------------------------------------------------     auto-pst-pdf: End auxiliary LaTeX compilation     -------------------------------------------------      (/home/jasperloy/texlive/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphicx.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphics.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/trig.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)))     (/home/jasperloy/texlive/texmf-dist/tex/latex/preview/preview.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/dvips.def)     (/home/jasperloy/texlive/texmf-dist/tex/latex/environ/environ.sty))) (./a.aux)     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/nameref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     (/home/jasperloy/texlive/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     )     Preview: Fontsize 10pt     Preview: PDFoutput 1     <a-pics.pdf, id=5, page=1, 43.16125pt x 33.12375pt> <use a-pics.pdf, page 1>     [1     Non-PDF special ignored!     Non-PDF special ignored!{/home/jasperloy/texlive/texmf-var/fonts/map/pdftex/upd     map/pdftex.map} <./a-pics.pdf>] (./a.aux)          Package rerunfilecheck Warning: File `a.out' has changed.     (rerunfilecheck)                Rerun to get outlines right     (rerunfilecheck)                or use package `bookmark'.           )</home/jasperloy/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb     ></home/jasperloy/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>     Output written on a.pdf (1 page, 18591 bytes).     SyncTeX written on a.synctex.gz.     Transcript written on a.log.     Latexmk: References changed.     Latexmk: Log file says output to 'a.pdf'     Rule 'pdflatex': File changes, etc:        Changed files, or newly in use since previous run(s):           'a.aux'           'a.out'     ------------     Run number 2 of rule 'pdflatex'     ------------     ------------     Running 'pdflatex -shell-escape -synctex=1  -recorder  "a.tex"'     ------------     Latexmk: applying rule 'pdflatex'...     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)      \write18 enabled.     entering extended mode     (./a.tex     LaTeX2e <2011/06/27>     ...     (/home/jasperloy/texlive/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/home/jasperloy/texlive/texmf-dist/tex/latex/base/size10.clo))     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/keyval.sty)     (/home/jasperloy/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)     (/home/jasperloy/texlive/texmf-dist/tex/latex/url/url.sty))          Package hyperref Message: Driver: hpdftex.          (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def     (/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     (/home/jasperloy/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex     (/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex     (/home/jasperloy/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex)))     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex     `pst-fp' v0.05, 2010/01/17 (hv))     `PSTricks' v2.29  <2012/06/04> (tvz)     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex)     (/home/jasperloy/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)     (/home/jasperloy/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def)))     (/home/jasperloy/texlive/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty)     (./a.w18))      -------------------------------------------------     auto-pst-pdf: Auxiliary LaTeX compilation     -------------------------------------------------     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)     entering extended mode     This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com)     ' TeX output 2012.08.20:0705' -> a-autopp.ps     </home/jasperloy/texlive/texmf/dvips/base/tex.pro>     </home/jasperloy/texlive/texmf/dvips/config/alt-rule.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pstricks.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-algparser.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-tools.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-dots.pro>     </home/jasperloy/texlive/texmf/dvips/base/special.pro>. [1]      PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.     ==> 1 page written on `a-pics.pdf'.     -------------------------------------------------     auto-pst-pdf: End auxiliary LaTeX compilation     -------------------------------------------------      (/home/jasperloy/texlive/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphicx.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphics.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/trig.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)))     (/home/jasperloy/texlive/texmf-dist/tex/latex/preview/preview.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/dvips.def)     (/home/jasperloy/texlive/texmf-dist/tex/latex/environ/environ.sty))) (./a.aux)     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/nameref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     (./a.out) (./a.out)     (/home/jasperloy/texlive/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     )     Preview: Fontsize 10pt     Preview: PDFoutput 1     (./a.toc) <a-pics.pdf, id=10, page=1, 43.16125pt x 33.12375pt>     <use a-pics.pdf, page 1> [1     Non-PDF special ignored!     Non-PDF special ignored!{/home/jasperloy/texlive/texmf-var/fonts/map/pdftex/upd     map/pdftex.map} <./a-pics.pdf>] (./a.aux) )</home/jasperloy/texlive/texmf-dist/     fonts/type1/public/amsfonts/cm/cmbx10.pfb></home/jasperloy/texlive/texmf-dist/f     onts/type1/public/amsfonts/cm/cmbx12.pfb></home/jasperloy/texlive/texmf-dist/fo     nts/type1/public/amsfonts/cm/cmr10.pfb>     Output written on a.pdf (1 page, 28614 bytes).     SyncTeX written on a.synctex.gz.     Transcript written on a.log.     Latexmk: Log file says output to 'a.pdf'     Rule 'pdflatex': File changes, etc:        Changed files, or newly in use since previous run(s):           'a-pics.pdf'           'a.toc'     ------------     Run number 3 of rule 'pdflatex'     ------------     ------------     Running 'pdflatex -shell-escape -synctex=1  -recorder  "a.tex"'     ------------     Latexmk: applying rule 'pdflatex'...     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)      \write18 enabled.     entering extended mode     (./a.tex     LaTeX2e <2011/06/27>     ...     (/home/jasperloy/texlive/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/home/jasperloy/texlive/texmf-dist/tex/latex/base/size10.clo))     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/keyval.sty)     (/home/jasperloy/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)     (/home/jasperloy/texlive/texmf-dist/tex/latex/url/url.sty))          Package hyperref Message: Driver: hpdftex.          (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def     (/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     (/home/jasperloy/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex     (/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex     (/home/jasperloy/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex)))     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex     `pst-fp' v0.05, 2010/01/17 (hv))     `PSTricks' v2.29  <2012/06/04> (tvz)     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex)     (/home/jasperloy/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)     (/home/jasperloy/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def)))     (/home/jasperloy/texlive/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty)     (./a.w18))      -------------------------------------------------     auto-pst-pdf: Auxiliary LaTeX compilation     -------------------------------------------------     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)     entering extended mode     This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com)     ' TeX output 2012.08.20:0705' -> a-autopp.ps     </home/jasperloy/texlive/texmf/dvips/base/tex.pro>     </home/jasperloy/texlive/texmf/dvips/config/alt-rule.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pstricks.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-algparser.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-tools.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-dots.pro>     </home/jasperloy/texlive/texmf/dvips/base/special.pro>. [1]      PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.     ==> 1 page written on `a-pics.pdf'.     -------------------------------------------------     auto-pst-pdf: End auxiliary LaTeX compilation     -------------------------------------------------      (/home/jasperloy/texlive/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphicx.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphics.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/trig.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)))     (/home/jasperloy/texlive/texmf-dist/tex/latex/preview/preview.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/dvips.def)     (/home/jasperloy/texlive/texmf-dist/tex/latex/environ/environ.sty))) (./a.aux)     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/nameref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     (./a.out) (./a.out)     (/home/jasperloy/texlive/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     )     Preview: Fontsize 10pt     Preview: PDFoutput 1     (./a.toc) <a-pics.pdf, id=10, page=1, 43.16125pt x 33.12375pt>     <use a-pics.pdf, page 1> [1     Non-PDF special ignored!     Non-PDF special ignored!{/home/jasperloy/texlive/texmf-var/fonts/map/pdftex/upd     map/pdftex.map} <./a-pics.pdf>] (./a.aux) )</home/jasperloy/texlive/texmf-dist/     fonts/type1/public/amsfonts/cm/cmbx10.pfb></home/jasperloy/texlive/texmf-dist/f     onts/type1/public/amsfonts/cm/cmbx12.pfb></home/jasperloy/texlive/texmf-dist/fo     nts/type1/public/amsfonts/cm/cmr10.pfb>     Output written on a.pdf (1 page, 28617 bytes).     SyncTeX written on a.synctex.gz.     Transcript written on a.log.     Latexmk: Log file says output to 'a.pdf'     Rule 'pdflatex': File changes, etc:        Changed files, or newly in use since previous run(s):           'a-pics.pdf'     ------------     Run number 4 of rule 'pdflatex'     ------------     ------------     Running 'pdflatex -shell-escape -synctex=1  -recorder  "a.tex"'     ------------     Latexmk: applying rule 'pdflatex'...     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)      \write18 enabled.     entering extended mode     (./a.tex     LaTeX2e <2011/06/27>     ...     (/home/jasperloy/texlive/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/home/jasperloy/texlive/texmf-dist/tex/latex/base/size10.clo))     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/keyval.sty)     (/home/jasperloy/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)     (/home/jasperloy/texlive/texmf-dist/tex/latex/url/url.sty))          Package hyperref Message: Driver: hpdftex.          (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def     (/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     (/home/jasperloy/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex     (/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex     (/home/jasperloy/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex)))     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex     `pst-fp' v0.05, 2010/01/17 (hv))     `PSTricks' v2.29  <2012/06/04> (tvz)     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex)     (/home/jasperloy/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)     (/home/jasperloy/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def)))     (/home/jasperloy/texlive/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty)     (./a.w18))      -------------------------------------------------     auto-pst-pdf: Auxiliary LaTeX compilation     -------------------------------------------------     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)     entering extended mode     This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com)     ' TeX output 2012.08.20:0705' -> a-autopp.ps     </home/jasperloy/texlive/texmf/dvips/base/tex.pro>     </home/jasperloy/texlive/texmf/dvips/config/alt-rule.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pstricks.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-algparser.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-tools.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-dots.pro>     </home/jasperloy/texlive/texmf/dvips/base/special.pro>. [1]      PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.     ==> 1 page written on `a-pics.pdf'.     -------------------------------------------------     auto-pst-pdf: End auxiliary LaTeX compilation     -------------------------------------------------      (/home/jasperloy/texlive/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphicx.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphics.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/trig.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)))     (/home/jasperloy/texlive/texmf-dist/tex/latex/preview/preview.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/dvips.def)     (/home/jasperloy/texlive/texmf-dist/tex/latex/environ/environ.sty))) (./a.aux)     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/nameref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     (./a.out) (./a.out)     (/home/jasperloy/texlive/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     )     Preview: Fontsize 10pt     Preview: PDFoutput 1     (./a.toc) <a-pics.pdf, id=10, page=1, 43.16125pt x 33.12375pt>     <use a-pics.pdf, page 1> [1     Non-PDF special ignored!     Non-PDF special ignored!{/home/jasperloy/texlive/texmf-var/fonts/map/pdftex/upd     map/pdftex.map} <./a-pics.pdf>] (./a.aux) )</home/jasperloy/texlive/texmf-dist/     fonts/type1/public/amsfonts/cm/cmbx10.pfb></home/jasperloy/texlive/texmf-dist/f     onts/type1/public/amsfonts/cm/cmbx12.pfb></home/jasperloy/texlive/texmf-dist/fo     nts/type1/public/amsfonts/cm/cmr10.pfb>     Output written on a.pdf (1 page, 28619 bytes).     SyncTeX written on a.synctex.gz.     Transcript written on a.log.     Latexmk: Log file says output to 'a.pdf'     Rule 'pdflatex': File changes, etc:        Changed files, or newly in use since previous run(s):           'a-pics.pdf'     ------------     Run number 5 of rule 'pdflatex'     ------------     ------------     Running 'pdflatex -shell-escape -synctex=1  -recorder  "a.tex"'     ------------     Latexmk: applying rule 'pdflatex'...     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)      \write18 enabled.     entering extended mode     (./a.tex     LaTeX2e <2011/06/27>     ...     (/home/jasperloy/texlive/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/home/jasperloy/texlive/texmf-dist/tex/latex/base/size10.clo))     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/keyval.sty)     (/home/jasperloy/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)     (/home/jasperloy/texlive/texmf-dist/tex/latex/url/url.sty))          Package hyperref Message: Driver: hpdftex.          (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def     (/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     (/home/jasperloy/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex     (/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex     (/home/jasperloy/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex)))     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex     `pst-fp' v0.05, 2010/01/17 (hv))     `PSTricks' v2.29  <2012/06/04> (tvz)     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))     (/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex)     (/home/jasperloy/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)     (/home/jasperloy/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def)))     (/home/jasperloy/texlive/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty)     (./a.w18))      -------------------------------------------------     auto-pst-pdf: Auxiliary LaTeX compilation     -------------------------------------------------     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)     entering extended mode     This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com)     ' TeX output 2012.08.20:0705' -> a-autopp.ps     </home/jasperloy/texlive/texmf/dvips/base/tex.pro>     </home/jasperloy/texlive/texmf/dvips/config/alt-rule.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pstricks.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-algparser.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-tools.pro>     </home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-dots.pro>     </home/jasperloy/texlive/texmf/dvips/base/special.pro>. [1]      PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.     ==> 1 page written on `a-pics.pdf'.     -------------------------------------------------     auto-pst-pdf: End auxiliary LaTeX compilation     -------------------------------------------------      (/home/jasperloy/texlive/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphicx.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphics.sty     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/trig.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)))     (/home/jasperloy/texlive/texmf-dist/tex/latex/preview/preview.sty)     (/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/dvips.def)     (/home/jasperloy/texlive/texmf-dist/tex/latex/environ/environ.sty))) (./a.aux)     (/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/nameref.sty     (/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     (./a.out) (./a.out)     (/home/jasperloy/texlive/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     )     Preview: Fontsize 10pt     Preview: PDFoutput 1     (./a.toc) <a-pics.pdf, id=10, page=1, 43.16125pt x 33.12375pt>     <use a-pics.pdf, page 1> [1     Non-PDF special ignored!     Non-PDF special ignored!{/home/jasperloy/texlive/texmf-var/fonts/map/pdftex/upd     map/pdftex.map} <./a-pics.pdf>] (./a.aux) )</home/jasperloy/texlive/texmf-dist/     fonts/type1/public/amsfonts/cm/cmbx10.pfb></home/jasperloy/texlive/texmf-dist/f     onts/type1/public/amsfonts/cm/cmbx12.pfb></home/jasperloy/texlive/texmf-dist/fo     nts/type1/public/amsfonts/cm/cmr10.pfb>     Output written on a.pdf (1 page, 28613 bytes).     SyncTeX written on a.synctex.gz.     Transcript written on a.log.     Latexmk: Log file says output to 'a.pdf'     Rule 'pdflatex': File changes, etc:        Changed files, or newly in use since previous run(s):           'a-pics.pdf'     Latexmk: Maximum runs of pdflatex reached without getting stable files          Use the -f option to force complete processing.     Latexmk: Did not finish processing file:        'pdflatex' needed too many passes     Latexmk: Use the -f option to force complete processing.     Latexmk: applying rule 'pdflatex'...     Latexmk: Errors, so I did not complete making targets      Note the output has been truncated to fit maximum question length. I suspect this is because `hyperref` makes `latexmk` do extra checks, which then detects that new pictures are generated by `auto-pst-pdf` with each run, so although the end result may be right, the error messages are given. Is there any way to fix this?


title: PSTricks rotation driven by auto-pst-pdf

text: This looks like the same problem as that one tackled in PSTricks figure turned 90 degrees, only with some twist. The following MWE does not give the rotation:               \documentclass{memoir}          \usepackage{auto-pst-pdf}          \ifpdf\else\usepackage{pstricks}\fi          \begin{document}     \begin{pspicture}(0,0)(1,1)       \psframe*[linecolor = red](0,0)(9,1)       \rput{90}{Marienplatz}     \end{pspicture}      I'm compiling the above on Windows Xp with MikTeX 2.9, using the `pdfLaTeX` engine, and with the parameter `-dAutoRotatePages#/None` passed on to `ps2pdf` via my text editor (`WinEdt 8`) -- even though this is alreaady done by the `auto-pst-pdf` defaults. The `pdfLaTex` engine is passed the parameter `-shell-escape`. There is no page rotation, but neither is text rotation. Nonetheless, the red box _is_ rotated 90 degrees, which I wasn't expecting nor I want to. What can be wrong about it?


title: How to "clean" what is sent to the table of contents? (Remove index etc.)

text: I want to use markup commands such as `\pkg{classicthesis}` that not only typeset the entry, but that have side-effects such as adding a margin note or index entry. (See the example below.) My problem is that I would like to be able to use these in sectioning commands `\chapter{The \pkg{classicthesis} Package}`, but doing so sends the extra stuff to the `.toc` file as well, which can cause problems when the table of contents is formatted. **Question:** _How can I clean everything but the text (and formatting information) from what is sent to the`.toc` file?_ I know that I could do something like `\chapter[The \pkg*{classicthesis} Package]{The \pkg{classicthesis} Package}` where I define the starred form to omit the extra info, but this means unnecessarily duplicating the contents. Note: I am doing this for a class and have no problem redefining `\chapter` etc. to do the cleaning, I just need the internals. Here is a MWE. In the second case, the index command appears both in the section header and in the ToC: the latter introducing an undesired entry in the index and the marginpar also appears in the ToC. There are usually workarounds for each individual issue (in this case the `scrindex` package solves the index problem and one could disable `\marginpar` in the toc), but I would still like a general solution.               \documentclass{scrbook}     \usepackage{makeidx}     %\usepackage{scrindex} % This will fix the index issue.     \usepackage{suffix}     \usepackage{makerobust}     \usepackage{classicthesis}          \newcommand*{\pkg}[1]{\texttt{#1}\marginpar{\texttt{#1}}\index{environments!#1@\texttt{#1}}}     \WithSuffix\newcommand\pkg*[1]{\texttt{#1}}     \MakeRobustCommand\pkg          \makeindex          \begin{document}     \tableofcontents     \chapter{The Problem}     \section[The \pkg*{classicthesi} Package]{The \pkg{classicthesis} Package}     This works, but is error-prone and violates the DRY principle.     \section{The \pkg{classicthesis} Package}     This fails because the indexing commands are sent to the .toc file.     \printindex     \end{document}


title: how to break lines in a table?

text: my code is here               \begin{table}[t]      \centering      \bgroup      \def\arraystretch{1.2}     \begin{tabular}{|c|c|c|} \hline     Frucht graph & Graph $K_3$ & An homomorphism from Frucht graph to $K_3$\\       \hline     \multirow{12}{*}{\includegraphics[height=4cm]{Frucht.eps}} & \multirow{12}{*}{\includegraphics[height=3cm]{K_3.eps}} &  $f(1)$ = Red\\&&$f(2)$ = Blue\\ &&$f(3)$ = Red\\ &&$f(4)$ = Green\\ &&$f(5)$ = Blue\\ &&$f(6)$ = Green\\ &&$f(7)$ = Blue\\ &&$f(8)$ = Red\\ &&$f(9)$=Blue\\&&$f(10)$=Blue\\&&$f(11)$=Red \\&&$f(12)$=Green\\ \hline     \end{tabular}     \egroup     \caption{Graph isomorphism.}     \end{table}      it appears alike this: ![enter image description here](http://i.stack.imgur.com/xzijT.gif) However, because the line 'An homomorphism from Frucht graph to $K_3$' is too line, it exceed the width of the document. I prefer to break it into two lines, and let 'Frucht graph' and 'Graph K_3' in the center. How can I do it? Thanks!


title: Lining numbers not working in certain fonts

text: I’m using the Linux Libertine font and have old style numbers enabled. However, in a certain context I want to use lining figures instead. Normally I should be able to switch using `\addfontfeature` but this doesn’t work. MWE:               \documentclass{minimal}     \usepackage{fontspec}     \setmainfont[Numbers=OldStyle]{Linux Libertine}          \begin{document}     C++0x          C++{\addfontfeature{Numbers=Lining}0}x          {\fontspec{Linux Libertine}C++0x}     \end{document}      The output looks like this: > C++ox   >  C++ox   >  C++0x However, the second line should look like the third, not like the first. Setting other font features (i.e. slashed zero) doesn’t work either. Additionally, if I use another font (e.g. Hoefler Text) then the output is as expected. Does somebody have an idea what’s going on here?


title: addfontfeature{Numbers=OldStyle} doesn't always work

text: > **Possible Duplicate:**   >  Lining numbers not working in certain fonts In the following example, the line with an exclamation sign should be in oldstyle figures:               \documentclass[12pt]{article}          \usepackage{fontspec}     \renewcommand*\oldstylenums[1]{{\addfontfeature{Numbers=OldStyle}#1}}          \begin{document}     \Large     {\fontspec[Numbers=Lining]{LinBiolinum_R.otf}     1234567890          \oldstylenums{1234567890}}          {\fontspec[Numbers=OldStyle]{LinBiolinum_R.otf}     1234567890          \oldstylenums{1234567890}}          {\fontspec[Numbers=Lining]{LinLibertine_R.otf}     1234567890          \oldstylenums{1234567890} !}          {\fontspec[Numbers=OldStyle]{LinLibertine_R.otf}     1234567890          \oldstylenums{1234567890}}          \end{document}      Why isn't it? `Biolinum` is a companion sans font and the definition of `\oldstylenums` works for it.


title: How to vertically align each comma in the following 2 identical sequences?

text: The following output seems to be difficult to look up an item in the upper sequence with its corresponding item in the lower sequence as the commas are not vertically aligned.               \documentclass[preview,border=12pt,varwidth]{standalone}     \usepackage{amsmath}     \begin{document}     \abovedisplayskip=0pt\relax     \begin{align*}     \{a_n\}     &=     \{1^2, 1^2 +2^2, 1^2 +2^2 +3^2, 1^2 +2^2 +3^2 +4^2, \dotsc\}\\     &=     \{1, 5, 14, 30, \dotsc\}     \end{align*}     \end{document}      ![enter image description here](http://i.stack.imgur.com/OoXLO.png) I want to align each comma in the upper and lower sequence. How to do it elegantly (that consumes less keystrokes)?


title: tikzmark to have different behaviour if first run (and mark locations not yet available)

text: The macro `\tikzmark` has been incredibly useful to me, but do not like the default behavior upon first run. So, I would like to be able to determine if this is a first run (where there coordinates of the nodes are not accurately available), of if it is a subsequent run (and the coordinates are available, but might not have reached the final value). So, in the MWE below, I would like _only_ the green line upon first invocation, and _only_ the red line upon subsequent processing: ![enter image description here](http://i.stack.imgur.com/7gUa2.png) As an aside, I have no idea why I needed the magic numbers (which vary depending on `\paperheight`) `-0.70` and `1.30` below. I thought that:               \draw (0,-\paperheight) -- (\paperwidth,0);      should have produced a line form the bottom left to the top right. You can uncomment this line in the code and see where the blue line is. Perhaps it is just a simple matter of me not understanding where the origin is -- Had thought it was a the top left of the page. ## Notes   * In my actual usage, the red line goes from the bottom left to the top right of the text, but did not want to clutter the MWE with that additional computation. So, the green line serves as a useful first guess. ## References:   * `\tikzmark` is from Adding a large brace next to a body of text. ## Code:               \documentclass{article}     % Adjust paperheight for more useful image     \usepackage[showframe,paperheight=10.0cm]{geometry}     \usepackage{tikz}     \usepackage{lipsum}          \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture,baseline] \node [anchor=base] (#1) {};}%          \newcommand{\MarkText}[3][]{%         \begin{tikzpicture}[overlay,remember picture]%             \draw [ultra thick, red, #1] (#2) -- (#3);% Only if subsequent run                  %%% Why the magc numbers needed here?             \draw [ultra thick, green, #1]%             Only if first run                 (-0.70\paperwidth,-\paperheight) --                 (1.30\paperwidth,\paperheight);                  %%%  Why this not yield line form bottom left to top right???             %\draw [ultra thick, blue, #1] (0,-\paperheight) -- (\paperwidth,0);         \end{tikzpicture}%     }%          \begin{document}         \tikzmark{top}             \lipsum[1]         \tikzmark{bottom}         \MarkText{top}{bottom}     \end{document}


title: Control spacing around table caption

text: I want to put several tables in the same table float like this:               \documentclass[a4paper, 12pt]{article}     \usepackage[T1]{fontenc}     \usepackage{subfig}     \begin{document}          \begin{table}          \caption{Internal exon scores}\label{tab:internal}     \begin{tabular}{|c|l|l|}     \hline     Ranking&Exon Coverage&Splice Site Support\\     \hline     E1&Complete coverage by a single transcript&Both splice sites\\     E2&Complete coverage by more than a single transcript&Both splice sites\\     E3&Partial coverage&Both splice sites\\     E4&Partial coverage&One splice site\\     E5&Complete or partial coverage&No splice sites\\     E6&No coverage&No splice sites\\     \hline     \end{tabular}          \caption{External exon scores}\label{tab:external}     \begin{tabular}{|c|l|l|}     \hline     Ranking&Exon Coverage&Internal Splice Site Coverage\\     \hline     X1&Complete coverage by one or more transcripts&Splice site covered\\     X2&Exon coverage >= 80\%&Splice site covered\\     X3&Exon coverage < 80\%&Splice site covered\\     X4&Exon coverage < 80\%&Splice site not covered\\     X5&No coverage&Splice site not covered\\     \hline     \end{tabular}          \end{table}     \end{document}      When I build the document, table 2's caption is closer to the bottom of table 1, which makes things confusing. `hspace{}` doesn't seem to work in the table environment. I've worked out that the `subfloat` package appears to be causing the spacing behaviour of the captions. Is there anything else that I can do to introduce a blank horizontal break to space out the captions?


title: How to decrease the space after figures

text: I want to reduce the space between Figure description and text. ![enter image description here](http://i.stack.imgur.com/vmYKG.png)


title: How to change the spacing between figures/tables and text?

text: I was wondering if there is any way to lessen the spaces between figures and text. In my paper I have a lot of figures (graphics) and it is inconvenient for me to have default (large) spaces between text and graphics. Is there any command I could use to change the default settings?


title: Caption of Table "floating" above the table

text: I have the following code:                \documentclass{article}      \usepackage{caption}      \usepackage{booktabs}      \begin {document}      \begin {table} [ht]      \caption*{\bf{Table 6: Pattern of Share Ownership, 2011}}      \centering      \begin{tabular}{l r}      \toprule      \bf{Ownership Category} & \bf{2011}\\      \midrule       Foreign Ownership  & 28.99\% \\       PIC & 6.05\% \\       Official Pension Funds & 8.43\% \\       Private Pension Funds & 5.47\% \\       Long Term Insurers & 11.62\% \\       Corporate Ownership & 22.30\% \\       Private Direct Ownership & 17.14\% \\       \bottomrule       \end{tabular}       \end{table}       \end{document}      which produces the following table: ![Table 6](http://i.stack.imgur.com/nK8Lf.png) Is it possible to get the caption closer to the table? Another question - is it possible for the caption to be "wrapped" around the table?


title: How to reduce space before image?

text: I m using includegraphics function for image.                          Some text before image               \begin{figure}               \includegraphics[width=0.5\linewidth]{ABC.pdf}               \caption{\textcolor{gray}{\footnotesize\textit{Some text}}}               \end{figure}      I obeseve spacing is more between text (Some text before image) and image. How can i reduce it?


title: inconsolata bold on old ubuntu/precise/TexLive

text: I'm trying to use inconsolata bold in a pdflatex document. My system is `ubuntu 12.04/precise` and here's part of the TeX log with `\listfiles`:               This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)     entering extended mode     (...)     inconsolata.sty    2009/06/07 Inconsolata     (...)      After `\usepackage{inconsolata}`, `\texttt{some regular \textbf{and bold} text}` uses the inconsolata font but the bold is the same as the regular one - no difference. Since http://www.ctan.org/tex-archive/fonts/inconsolata/ suggests that a more recent version of the package does have a bold font, how would I install this - on a computer where I _don't have root access_? N.B. package `zi4` doesn't exist on my system either and I can't find it in the package manager, so looks like it'll have to be a manual install. I've already got a `~/texmf/` directory for some other packages that are out of date on this system.


title: Use of subcaption in enumerate environment

text: This is a simple question. Say you were to place two (or more) related figures in an `enumerate` environment. Outside of an `enumerate` environment, which itself is a floating environment, you would probably work in a `figure` environment, using the `caption` and `subcaption` packages, and centering each figure with respect to the global text body. Now, in an `enumerate` environment, you include the figures directly, avoiding the additional use of a figure environment, and center the figures/subfigures together with their captions/subcaptions with respect to the local text body in the `enumerate` environment. In the case of a single figure, you could do this in a rather straightforward way (e.g., by using `\includegraphics{...}` and `\captionof{figure}{...}` nested within a centered environment). In the case of multiple figures (subfigures to be precise) I have found this fairly tricky I must say. How would I go about doing this? Many thanks.


title: How to use biblatex with IEEE bibtex style?

text: http://mirrors.ctan.org/macros/latex/contrib/IEEEtran/bibtex/IEEEfull.bib      defines a bibliography style. How to use that if I want to use biblatex to format my bibliography?


title: Shorten or extend xypic arrows

text: In an `xypic` or `xymatrix` diagram, is it possible to specify that an arrow should only cover part of the distance it normally would? In other words, for an arrow `\xymatrix{ A \ar[r] & B }`, or between two nodes in a more complex diagram `\ar@{>=>}"A";"B"`, I would like to specify that e.g. it should start at 0.3 of the distance from A to B, and end at 0.85 of the distance to B. (This would be similar to what the `\xymatrix{ A \ar[r(0.6)] & B }` notation does, except that that only shortens the arrow on the target end, not the source.)


title: alignment of symbols

text: I tried to align the equation and have some text on the equal sign. But it turns out that the equal sign that has text over it is no longer aligned to previous one anymore (I believe it is the text "ccc" that is aligned). How do I fix the problem to let the equal sign aligned but not text over it?               \begin{equation}     \begin{split}         a  &= b \\                    &\overset{ccc}{=}d\\            &= e\\     \end{split}     \end{equation}


title: multiple colormaps

text: I would like to define multiple colormaps. But when I try this               \pgfplotsset{     colormap={something}{     color(0cm)=(blue);     color(1cm)=(orange!75!red)     }     colormap={somethingelse}{     color(0cm)=(white);     color(1cm)=(orange!75!red)     }     }      I get an error. (This works):               \pgfplotsset{     colormap={something}{     color(0cm)=(blue);     color(1cm)=(orange!75!red)     }     }      Any ideas?


title: TikZ/pgf: Why does `\newline` and `\\` not split text in node?

text: **The MWE:**               \documentclass{standalone}          %======================================     \usepackage{tikz}     \usetikzlibrary{graphdrawing}     \usetikzlibrary{arrows}     \usetikzlibrary{graphs}     \usegdlibrary{force, layered, trees}     %======================================          \begin{document}          \tikz      \graph [spring layout, nodes = draw]     {         a/"dispersive\newline collision";         b/"non-dispersive\newline  collision";              a -> b     };          \end{document}      **The output:** ![enter image description here](http://i.stack.imgur.com/kCzO2.png) **The question:** As you can see above, the `\newline` command does nothing. Trying to use `\\` instead of `\newline`, like how the pgfmanual does in some examples (see pg. 386) has the same effect. Why? What can I do in order to have the words appear on separate "lines"?


title: Upright text in math mode for chemical elements

text: I have a line as follows:               \documentclass[a4paper]{article}          \usepackage{siunitx}          \begin{document}      {$d_{(O_{1}-Zn/Mg)}(\SI{}{\angstrom})$     \end{document}      showing: ![enter image description here](http://i.stack.imgur.com/FeL3F.png) I don't want the letters to be written in italic. Please kindly let me know how to remove italic and how to have tighter word-spacing inside the parentheses?


title: Best way to show terminal and cmd commands

text: I want to show terminal commands as well as command prompt commands (windows) and was wondering what is the best way to format these in latex.


title: How to mention section number in Index created by imakeidx

text: I'm trying to include an index at the end of my document using `\usepackage{imakeidx}` and the `\makeindex` and `\printindex` commands. I would like the index to mention the section number as well, for instance: > **37\. Section 37** Make a mention of the word _index_ > > **Index** > > index, s37, p1 Is this possible, and if yes, how?


title: Floats in ConTeXt: changing caption name and making the \input command work

text: I have defined a new float for logic circuits called `logigram`:               \definefloat [logigram] [logigrams]      Taking advantage of the modes of ConTeXt (i.e. conditional processing), I am making in parallel a french and English version of my document:               \starttext         \startmode [english]             \placelogigram [right] {Logigram of a negation} {\input negation.tikz}             The logic circuit of a negation is the opposite logigram.         \stopmode              \starmode [french]             \placelogigram [right] {Logigramme d'une négation} {\input negation.tikz}             Le circuit logique d'une négation est le logigramme ci-contre.         \stopmode     \stoptext      Now, I would like `\placelogigram` produce the default caption name "Logigram" in English but "Logigramme" in French. I noted also that ConTeXt can't find my Tikz picture `negation.tikz.tex` when the command `\input`is used inside `\placelogigram`. This is the file `negation.tikz.tex`:               %\usemodule [tikz]     %\usetikzlibrary [circuits.logic.US]     \starttikzpicture [circuit logic US]         \node [not gate, point down, draw] at (0, 0) (notGate) {};         \draw (notGate.input) -- ++(up:0.5) node [above] {$\phi$};         \draw (notGate.output) -- ++(down:0.5);     \stoptikzpicture      Thanks in advance for any help.


how to display current section title in header insted of chapter title? I'm using `book` and `fancychap` MWE               \documentclass [11pt,oneside,final]{book}     \usepackage[nohints]{minitoc}     \usepackage[round]{natbib}     \usepackage{longtable}     \usepackage[font={footnotesize,it}]{caption}     \usepackage{bookman}      \usepackage[T1]{fontenc}      \usepackage{setspace}     \doublespacing     %\onehalfspacing     \usepackage{multirow}     \usepackage[left=35mm,top=30mm,right=30mm,bottom=30mm]{geometry}     \pagenumbering{Roman}     \usepackage[small,compact]{titlesec}     \usepackage[Lenny]{fncychap}     \usepackage{arabtex}     \usepackage{cp1256}     \setcode{cp1256}     \usepackage{float}     \usepackage[final]{graphicx}     \usepackage{epstopdf}     \usepackage{array}          \setarab     \raggedbottom     \begin{document}     \chapter{introduction} \thispagestyle{empty}          \section{one}     bla bla bla bla bla          \section{two}     bla bla bla bla           \end{document}


title: Where is the MiKTeX list of keywords?

text: I recently downloaded Basic MiKTeX 2.9.4813.. I'm trying to find on the MiKTeX dir a file containing a list of all general keywords for LaTeX languages but can't find any... Could you help me?


title: Syntax Error: Expected the optional content group list, but wasn't able to find it, or > it isn't an Array

text: I am getting the following error when I run pdflatex:               Syntax Error: Expected the optional content group list, but wasn't able to find it, or     it isn't an Array      It SEEMS to build correctly, but I am just trying to figure out why this is happening. The following code triggers the problem.               \begin{figure}[hbtp] %[!t]     \centering     \includegraphics[scale=0.55]{figures/illustration.pdf}      \end{figure}      Any ideas? Thanks for your help! Here is the additional information that was requested: output of pdftex --version MiKTeX-pdfTeX 2.9.4535 (1.40.13) (MiKTeX 2.9) Copyright (C) 1982 D. E. Knuth, (C) 1996-2012 Han The Thanh TeX is a trademark of the American Mathematical Society. And here is a link to the pdf causing the issues: https://www.sugarsync.com/pf/D6819494_1990813_6559556 **EDIT** Well, I've learned a bit more. Although I don't know what the problem is exactly with the pdf, it IS a problem with the pdf. I created it using the dopdf printer. I created the same one using cutepdf, and pdflatex compiled without any errors. On a somewhat-related note: if anyone has recommendations on a nice, free pdf printer, let me know! I've used dopdf for awhile, which seems to work just fine for regular pdf viewing. I think that cutepdf will become what I use for tex documents from now on, unless people have other solutions. And if anyone is able to identify exactly WHY the dopdf version isn't working, please share! Thanks!


title: Aligning a figure and table side by side

text: I would like to place a figure side-by-side with a table, and have both of them aligned to the top. This is what I came up with:               \begin{figure}       \begin{minipage}[b]{0.65\linewidth}         \includegraphics[width=0.9\textwidth]{3_comparative/fig/pic.pdf}       \end{minipage}       \begin{minipage}[t]{0.35\linewidth}           \begin{tabular}{| c | c |}             \hline             Contrast & value \\             \hline             I & 6 \\             ... \\             \hline           \end{tabular}     \end{minipage}     \caption{Phylogenetic independent contrasts}     \end{figure}      But this doesn't work as I hoped, the two items are misaligned: ![Rendered figure and table](http://i.stack.imgur.com/dnYvl.png) How can I fix this?


title: Placing ref/pageref target labels inside a section

text: Is it somehow possible to place a "virtual label" that will behave just like the most recent "structural label" when used with `\ref` but will still produce the page number where the label is actually placed when used with `\pageref`? Consider the following example:               \documentclass{article}     \usepackage{lipsum}          \begin{document}          \section{First Section}     \label{first}          This is my first section. Let me add enough text to fill up more than one page here.     \lipsum[1-6]          Fine, so we've written quite a lot of text. Now let's talk about \textbf{some important topic} --     \lipsum[7-10]          \section{Second Section}          This is where things get interesting. In this section, I would like to discuss something     entirely different, which is nonetheless related to \textbf{some important topic} that I      introduced earlier in section \ref{first} on page \pageref{first}.          \end{document}      For some reason, the first section spans more than one page and also covers more than one topic. At a later point, I would like to add a reference back to that topic just in case the reader wants to look it up again. The reference generated with `\ref` is entirely correct -- the important topic is indeed covered in the first section. However, the page reference is not correct - it points to the first page the section appears on, which is page 1. In this case, the important topic is only mentioned on page 2, so that the reader will have to sift through parts of the section that are irrelevant. I would like to improve the behavior so that the page number points to the place where the actual topic is discussed. The obvious solution might be to split the text up into different `\subsection`s, but in the real document, that's not an option: The document is already huge and very thoroughly structured, and in the introduction I have lots of definitions that I want to be able to refer to but that only span one or two paragraphs each. Adding a subdivision for each definition would make the introduction very hard to read. I would also like to be able to keep the same label for the `\ref` and `\pageref` command because I use the `fancyref` package. And finally, the referrable (is that a word?) `\labels`s may occur at different depths inside the structure -- sometimes I need to refer to an entire `\part`, sometimes just to a `\subsubsection`.


title: Multirow cells with centered multiline text

text: I use `tabu` package to easily typeset tables. Now i need to typeset long table. So i used `longtabu`. The head of the table consists of much columns. Also there are lots of text in each cell and some cells should be spanned. As i think, the centered text (formatted as paragraph) would look better. Minimal example               \documentclass[14pt,twoside]{extreport}     \usepackage{type1ec}     \usepackage[T2A]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{multirow}     \usepackage{array}     \usepackage{longtable}     \usepackage{tabu}     \usepackage{xparse}     \usepackage[unicode=true]{hyperref}               \NewDocumentCommand{\rot}{O{90} O{1em} m}{\makebox[#2][l]{\rotatebox{#1}{#3}}}%               \begin{document}          \newlength{\firsttoprow}     \setlength{\firsttoprow}{3cm}     \begin{longtabu} to \linewidth%       {|X[25,C]%         |X[15,C]|X[15,C]|X[15,C]%         |X[25,C]%         |X[25,C]|}       \caption{First table caption%       \label{tab:first}}\\\hline       \multirow{2}*{\parbox{\linewidth}{\centering Column A (first page head)}}%       & \rot{\parbox{\firsttoprow}{\centering Column B}}%       & \rot[90][5ex]{\parbox{\firsttoprow}{\centering Column C (two lines)}}%       & \rot[90][5ex]{\parbox{\firsttoprow}{\centering Column D (two lines)}}%       & \multirow{2}*{\rot[90][7.5ex]{\parbox{\firsttoprow}{\centering Column E (consists of three lines)}}}%       & \multirow{2}*{\rot[90][5ex]{\parbox{\firsttoprow}{\centering Column F (two lines)}}}\\\cline{2-4}       & B (two lines)%       & C (three lines)%       & D & &\\\hline       \endfirsthead       \caption*{Table \ref{tab:first} (Cont.)}\\\hline       Column A (head)%       & B  & C  & D%       & Col. E%       & Col. F\\\hline       \endhead       Cont A%       & Cnt.B  & Cnt.C  & Cnt.D%       & Cnt.E%       & Cnt.F\\\hline     \end{longtabu}          \end{document}      ![table with spanned multiline cells](http://i.stack.imgur.com/Shxgg.png) The rotation is made with `xparse` (see http://tex.stackexchange.com/a/32687/33087). There are problems:   1. At the top row in columns B, C and D bottom vertical space between box and horizontal line is bigger. I want content to be at the middle of cell.    2. Content of spanned head cells (columns A, E and F) vertically alligned by `\multirow` so the centers of boxes are located at the line between rows of head. I want the centers of boxes are located at centers of spanned cells.   3. This example produces 6 bad boxes (overfull `\vbox` due to `\multirow`). The second example provides ugly workaround with manual vertical fixups and without `\multirow`:               \documentclass[14pt,twoside]{extreport}     \usepackage{type1ec}     \usepackage[T2A]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{multirow}     \usepackage{array}     \usepackage{longtable}     \usepackage{tabu}     \usepackage{xparse}     \usepackage[unicode=true]{hyperref}                    \newcolumntype{Y}[1]{>{\strut\hspace{0pt}}X[#1]<{\hspace{0pt}\strut}}     \tabucolumn Y          \NewDocumentCommand{\rot}{O{90} O{1em} m}{\makebox[#2][l]{\rotatebox{#1}{#3}}}%                    \begin{document}          \newlength{\firsttoprow}     \newlength{\fixuptoprow}     \setlength{\firsttoprow}{3cm}     \setlength{\fixuptoprow}{2cm}     \begin{longtabu} to \linewidth%       {|Y{25,C}%         |Y{15,C}|Y{15,C}|Y{15,C}%         |Y{25,C}%         |Y{25,C}|}       \caption{First table caption%       \label{tab:first}}\\\hline       \begin{minipage}[t][0pt]{\linewidth}\vspace{-\fixuptoprow}\vspace{3.5ex}%        \parbox{\linewidth}{\centering Column A (first page head)}%       \end{minipage}%       & \rot{\parbox{\firsttoprow}{\centering Column B}}%       & \rot[90][5ex]{\parbox{\firsttoprow}{\centering Column C (two lines)}\hspace{1ex}}%       & \rot[90][5ex]{\parbox{\firsttoprow}{\centering Column D (two lines)}}%       & \begin{minipage}[t][0pt]{7.5ex}\vspace{-\fixuptoprow}%          \rot[90][7.5ex]{\parbox{\firsttoprow}{\centering Column E (consists of three lines)}}%         \end{minipage}%       & \begin{minipage}[t][0pt]{5ex}\vspace{-\fixuptoprow}%          \rot[90][5ex]{\parbox{\firsttoprow}{\centering Column F (two lines)}}%         \end{minipage}\\\cline{2-4}       & B (two lines)%       & C (three lines)%       & D & &\\\hline       \endfirsthead       \caption*{Table \ref{tab:first} (Cont.)}\\\hline       Column A (head)%       & B  & C  & D%       & Col. E%       & Col. F\\\hline       \endhead       Cont A%       & Cnt.B  & Cnt.C  & Cnt.D%       & Cnt.E%       & Cnt.F\\\hline     \end{longtabu}          \end{document}      ![enter image description here](http://i.stack.imgur.com/9PrBL.png) I hope someone can suggest beautiful decision which calculates fixups automatically. Also, for `minipage` decision see http://tex.stackexchange.com/a/99684/33087.


title: problem setting up MusicTeX

text: I have huge trouble setting up MusixTeX with Texmaker. Apparently, there's a lack of documentation on how to install MusixTeX and also tutorials on how to use it. Can anyone help me with the setup?