title: Making a fake figure that holds a text box of specified dimensions

text: I think I have seen this done before, but I am not sure. Is there a way to build a fake figure in LaTeX? I would like to do this while the other figures in the document render correctly. Ideally, I would like to have a white box with large text in it, and with a black frame around it. It would be great to be able to control the height and width of this box. E.g.               \begin{figure}[!t]     \centering     %% Code to make a fake text box     \caption{}     \label{}     \end{figure}      I am loading TikZ in the document, so I can use solutions that may require it.


title: Center only heading text in a table

text: I need your help. I want to get a heading text center aligned, but the rest of the table, left aligned only. I tried with some advice in other post: `\multicolumn {number of columns}{type of align}{heading}` but I don't get it. I want the same result of my solution:               \documentclass[10pt,a4paper]{article}     \title{\textbf{DOC TITLE}}     \usepackage[spanish]{babel}     \usepackage[utf8]{inputenc}          \usepackage{pdflscape}     \usepackage{color, colortbl}     \definecolor{Gray}{gray}{0.9}     \usepackage{enumitem}     \usepackage{anysize}     \marginsize{3cm}{3cm}{2.5cm}{2.5cm}          \usepackage{xcolor}     \usepackage{caption}     \captionsetup[table]{skip=10pt}     \usepackage{threeparttable}     \usepackage{array}          \usepackage{fancyhdr}     \pagestyle{fancy}     \lhead{}     \chead{}     \rhead{\footnotesize{TEXT}}}     \lfoot{}     \cfoot{}     \rfoot{\thepage}     \renewcommand{\headrulewidth}{0.4pt}     \renewcommand{\footrulewidth}{0.4pt}          \begin{document}          \begin{table} [h]     \caption{Title}     \centering     \begin{tabular}{|>{\centering\arraybackslash}m{23}|>{\centering\arraybackslash}m{60}|}     \hline\rowcolor{Gray}     \textbf{text} & \textbf{text}\\ [1ex]     \hline     \begin{flushleft} Text \end{flushleft}\\     \hline     \begin{flushleft} Text \end{flushleft}\\     \hline     text & text     \hline     text & text     \hline     \end{tabular}     \end{table}          \end{document}      I want a table like this, it has errors:![Table](http://i.stack.imgur.com/Si4id.png) Please help me!


title: Presentations that don't take up too much time to create

text: I am teaching a course in the upcoming semester and am trying to settle on a way to prepare presentations as rapidly as possible. I have used LaTeX beamer for years, and have even contributed some themes to it. I love using LaTeX in various contexts. However, the situation I am in is a little peculiar and I would be glad of some advice:   1. I am writing a textbook that will be based partially on the contents of this course. For this purpose, I was hoping to keep as much of the math (and there is going to be a non-trivial amount) in a reusable form as possible.   2. My presentations make _heavy_ use of drag and drop of images from various sources (of course with proper attributions). Any workflow involving saving an image and then using it in an \includegraphics block is a _non-starter_. Just too much of typing and clicking overhead involved and my presentations for this class are very likely to be extremely graphics heavy (some self-created using TikZ, and the rest borrowed as above).   3. TeXmacs is useless on Mac for this purpose as its drag and drop support, despite patches, is non-existent because they have chosen to go with Qt for obvious reasons. It may have been the perfect solution for me otherwise.   4. I am not sure if LyX is a good option for me. They have cut and paste, but no drag and drop as far as I can tell. Plus, I will not be writing the book in LyX. I find it ... stifling ... When I last used LyX many years ago, and I did not use it much, I found its LaTeX export to be a mess.   5. I have so far been using a combination of Keynote and LaTeXIt to typeset the math. Problem is - that does not use the full power of beamer as overlays are absent. This course will involve some long derivations of expressions, where "playing striptease with my audience" will not be a bad idea. The alternative is to typeset separate equation objects and use Keynote's own transitions to create the effect. A little painful (I used it in a course I previously taught, which was far less math intensive).   6. Typing it up in full on LaTeX has a huge markup overhead (compared to writing an article or a book). I have been looking into orgmode and multimarkdown, but I would rather not learn those unless I am certain that they check all the boxes (and I do not think they help me with drag and drop). In every single one of my past experiences, LaTeX/beamer has taken longer to work with than Keynote (the reverse is true for longer text dominated documents for LaTeX vis a vis MS Word). An ideal solution would involve using beamer in some reduced fashion (I have newcommands etc. defined that could make frame definitions a little less painful to type in) but also involve drag and drop support. That is a contradiction in terms if one sticks to classical LaTeX. A close approach to the solution of this problem is possible if LaTeXIt could harness the power of beamer and do overlays (internally of course, as I doubt they would allow overlays that are timed to occur with external Keynote transitions - like showing an image or hiding it, etc.). Any suggestions that help resolve this somewhat rambling set of requirements would be welcome.


title: Constructing general ligatures

text: I know that LaTeX has macros `\ae`, `\oe` etc. for the standard ligatures (i.e. æ, œ). Is there a more general way to construct ligatures in the `equation` environment? I'm working in the language of higher types, with function variables f,g,h,.. and I want to denote sequences of functions as ligatures fs,gs,hs,... This avoids ugly vector/bold notation.


title: Verbatim alignment in XePersian

text: Verbatim environment is right-aligned when using XePersian package, so I have to wrap it in `latin` environment. So I decide to create a new environment:               \newenvironment{faverbatim}     {\begin{latin}\begin{verbatim}}     {\end{verbatim}\end{latin} }      Unfortunately it generates an error.


title: Processing a command as having no horizontal or vertical space

text: Is there a way to tell LaTeX to process `\marginpar{<arguments>}` as taking up no space in the body text? Right now I end up with a really ugly white line. I am aware of the `marginnote` package, but this also takes up space in the body text and messes with the page layout. See the image: ![Ugly white line](http://i.stack.imgur.com/hd7mp.png) Or a link (if the picture is rescaled too small). code:               \documentclass[10pt]{article}     \usepackage[a4paper]{geometry}     \usepackage{graphicx}     \usepackage{mwe}         \usepackage{hyperref}          \begin{document}            \subsubsection{Section}          Je kunt ook meerdere getallen (rijen of lijsten) toekennen aan \'e\'en object. Dit is handig als je met \textbf{\textit{data sets}}\hypertarget{document.dataset}{}\marginpar[]{\hyperlink{begrippen.dataset}{\textit{Data set}}}, \textit{verzamelingen}, enzovoort, werkt. Behalve verzamelingen van specifieke getallen, kun je ook een rij van gehele getallen maken (gehele getallen zijn van het soort $Z = \ldots,-1,0,1,2,\ldots$).      \hypertarget{document.rcommand.c}{}\marginpar[]{\hyperlink{appendix.rcommand.c}{\texttt{c()}}}\begin{center}\begin{minipage}{\linewidth}        \includegraphics[height=3cm]{example-image-a}     \end{minipage}         \end{center}          \end{document}


title: Is there a resource with latex snippets?

text: I have been working in Latex for a little over a month now and I have been searching for a resource (like a website) to find latex snippets for commonly used structures or equations. For example, a block diagram of a PID controller, often used equations like the equations of motions etc. Does anyone know if this kind of resource exists?


title: Lettrine wrapfig and loversize

text: In this post it is given a valid response about how to make it work the Lettrine with wrapfig. However this solution fails to work with the parameter 'loversize', so for example something like `\wflettrine[lines=5,loversize=0.08]{T}{he cat sat}` or `\wflettrine[lines=5,lraise=-0.01,loversize=0.08]{T}{he cat sat}` doesn't work. The problem happens when the parameter 'loversize' goes withouth the 'lraise' one or when 'lraise' has a value greater than -0.01.


title: Why two macros in intersections are not expancded?

text: Two path names inside intersections are not working. Only one macro seems to work. I have tries all the combinations of macro expansion but in vain. In the following 'h\x and \vy' is not working. It is weard that the first parameter 'h\x' cannot include any macro. Is there any flaw in intersections? Thanks in advance.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{intersections}          \begin{document}       \begin{tikzpicture}         \draw[name path=h1] (0,1) --  ++(3,0);         \draw[name path=h2] (0,2) -- ++(3,0);         \draw[name path=v1] (1,0) -- ++(0,3);         \draw[name path=v2] (2,0) -- ++(0,3);         \foreach \x in {1,2}         \foreach \y in {1,2}         \draw[fill,red,name intersections={of= h1 and v\y}] (intersection-1) circle (2pt);         %\draw[fill,red,name intersections={of= h\x and v\y}] (intersection-1) circle (2pt);% macro h\x doesn't work, why?       \end{tikzpicture}     \end{document}      ![intersections](http://i.stack.imgur.com/7LWlU.jpg)


title: Gobbling an argument if it starts with #

text: My problem comes from pandoc and markdown, but it is not directly related with these tools, but instead with "customizing" the resulting pdf via some tex macro programming, so I think it is on topic. I'm writting a document with markdown syntax and converting it to LaTeX (and html) via pandoc. This document contains hyperlinks to some web sites. When I write in markdown:               See [this web](http://tex.stackexchange.com/)      It produces in TeX:               See \href{http://tex.stackexchange.com/}{this web}      I want to implement a version of `\href` which, in addition to inserting a hyperlink in the pdf, it also makes a footnote containing the url, which is more useful for the printed version of the document. I did it as follows:               \let\oldhref=\href     \renewcommand{\href}[2]{\oldhref{#1}{#2}\footnote{\url{#1}}}      So far so good. It works as expected. Now the problem is that pandoc also supports "internal references" to other sections in the document. If I have a section called `Related work`, pandoc automatically generates a internal anchor name `related-work`, so I can write in my markdown source:               # Related work     Blah blah          # Another section     See [section about related work](#related-work)      The above markdown is translated into:               \hyperdef{}{related-work}{\section{Related work}\label{related-work}}          Blah blah          \section{Another section}          See \href{\#related-work}{section about related work}.      Now my problems is that, with my redefinition of `\href` this internal reference also produces a footnote, which clearly unncesary. The footnote only shows the text `#related-work`, which is not useful for the reader, and in addition clicking ot the footnote text produces an error (while other footnotes which show urls work fine). So, my question: how can I redefine `\href` in such a way that:   1. If the first char of its first argument is `#` (or is it `\\#`?), it behaves as the standard `\href` (no footnote)   2. Else, it works as my redefinition (internal hyperlink plus footnote typeseting the destination url).


title: Why aren't qtrees aligned horizontally if they are at the end of a theorem with qed symbol enabled?

text: \documentclass{article}          \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{thmtools}     \usepackage{qtree}          \declaretheorem[name=Example,qed=\ensuremath{\triangleleft}]{example}     \declaretheorem[name=Example2]{example2}          \begin{document}          \begin{example}         Bla:              \Tree [.cons [.s [.s [.s 0 ] ] ] [.cons [.s 0 ] nil ] ]     \end{example}          \begin{example2}         Bla:              \Tree [.cons [.s [.s [.s 0 ] ] ] [.cons [.s 0 ] nil ] ]     \end{example2}          \end{document}      The second one is centered, the first isn't. Why and what to do? In the end I'd like to align several trees horizontally like that:               \begin{example2}         Bla:              \Tree [.nil ]         \Tree [.cons 0 nil ]         \Tree [.cons [.s [.s [.s 0 ] ] ] [.cons [.s 0 ] nil ] ]     \end{example2}


title: How do I create 6 parallel texts aligned by paragraph, with 3 texts on each page?

text: I want to typeset a hexaglot work. Each language will occupy its own column, and there will be 3 columns on each page. The text will be aligned by paragraphs and headings. Basically, I want something that looks like this:                             Left Page                                Right Page     +--------------------------------------+ +--------------------------------------+     | Heading    | Тема 1     | Primero    | | Χαίρετε!   | 標題1       |    ספרות  |     | -------    | ---------  | ---------- | | ---------- | ---------- | ---------- |     | English t- | Це не рос- | No tengo   | | Πώς είσαι; | 其實我不知  |  פוליטיקה |     | ext taking | ійський т- | nada. Pero | | Καλό.      | 中國。      | לערך אינו |     | up 3 lines | екст а ук- | Juan tiene | |            | 我使用的是  | ציו ישראל |     |            | раїнській. |            | |            | 翻譯。      |    תבניות |     |            |            |            | |            |            |            |     | Heading 2  | Дуже довг- | Segundo    | | Ελληνική ε | 我喜歡牛肉！| בהיסטוריה |     | ---------- | ий Тема    | ---------- | | ίναι ωραία | ---------- | ---------- |     |            | ---------- |            | | ---------- |            |            |     | Text taki- | Круто!     | Estoy abu- | | Σ 'αγαπώ.  | 你喜歡牛肉  |   אם מפתח |     | ng up 2    |            | rrido.     | |            | 嗎？       |   קישורים |     |            |            |            | |            |            |    תקשורת |     +--------------------------------------+ +--------------------------------------+      I looked at the parallel library but I couldn't figure out how to put in 3 columns. I also looked at parcolumns but I couldn't get text the two pages to line up. How could I go about doing this?


title: Standalone package errors when creating table

text: > **Possible Duplicate:**   >  Avoid paragraph due to trailing empty line in standalone file   >  How to make a standalone document with one equation? Below is a MWE of a table that keeps outputting errors although it does display but not correctly.               \documentclass{standalone}     \usepackage{booktabs}     \begin{document}     \begin{table}[htbp]     \caption{An Tabl\'a Shiompal}     \begin{tabular}{rrrr}     \addlinespace     \toprule     A     & B     & C     & D \\     \midrule     1     & x     & j     & suas \\     2     & y     & k     & s\'ios \\     3     & z     & l     & deis \\     4     & u     & m     & cl\'e \\     \bottomrule     \end{tabular}     \end{table}     \end{document}      When I replace `Standalone` with `article` it works ok. Am I missing something for the `standalone` usage? Using TexnicCenter and MikTeX, latest versions.


title: amsmath: error using subequation environment "Missing \endgroup inserted \end{align}"

text: Here's my minimal problem-causing example:               \documentclass{standalone}     \usepackage{fixltx2e}     \usepackage{amsmath}          \begin{document}              \begin{subequations}             \begin{align}                 a &= b + c\\                 a' &= b' + c'\\             \end{align}         \end{subequations}          \end{document}      Here's the log output:               line 14: Missing \endgroup inserted \end{align}     line 14: Missing \endgroup inserted \end{align}     line 14: Missing } inserted \end{align}     line 14: \begin{document} ended by \end{align}. \end{align}     line 14: Missing $ inserted \end{align}     line 14: Display math should end with $$ \end{align}     line 14: Extra \endgroup \end{align}     line 15: \begin{document} ended by \end{subequations}. \end{subequations}     line 15: Extra \endgroup \end{subequations}     line 17: Too many }'s \end{document}      What is the issue?


title: Compilation fails with eqnarray after reinstalling Miktex

text: I have a script that extracts math formulae from a tex file, produces a small standalone file for each formula and compiles it with pdflatex. The standalone pdf files are then used to produce png images of the formulae. The script has always worked smoothly with Miktex 2.8 under windows Vista. Now that I have updated to version 2.9 and Windows 7, it does not work any longer. Every time it encounters an eqnarray environment, it gives the following error:                ! Missing \endgroup inserted.     <inserted text>                     \endgroup     l.6 \begin{eqnarray}      For example, I get this error when I run pdflatex on the following simple file:               \documentclass[12pt]{standalone}        \begin{document}     \begin{eqnarray}         1&=&1\\     1&=&1        \end{eqnarray}         \end{document}      Why am I getting this error? Has support for eqnarray been discontinued in new versions of latex? Thanks for any help you might provide.


title: Bad math environment delimiter in standalone class

text: Given a file `master.tex`:               \documentclass{article}          \usepackage{standalone}          \begin{document}     \input{sub}     \end{document}      and a file `sub.tex`:               \documentclass{standalone}          \begin{document}     \[             0     \]     \end{document}      the command `pdflatex master.tex` runs as expected, but the command `pdflatex sub.tex` gives the error > Bad math environment delimiter. Can anyone explain what is going on and/or how to solve this?


title: Avoid paragraph due to trailing empty line in standalone file

text: Using my `standalone` class and package it is possible to compile diagrams etc. inside own files stand-alone or as part of a main document. However, a common user error is to keep an empty line between the end of the content and the `\end{document}` which causes the diagram etc. to be part of a paragraph and the resulting PDF will be `\linewidth` wide. I'm looking now for possibilities to ignore such trailing lines or remove the paragraph they create. The following MWE shows the issue and also includes a potential redefinition of the internal `\sa@cls@beforeenddocument` macro which is placed at the beginning of `\end{document}`. Maybe this issue can be solves with some `\lastbox` trickery.               \documentclass{standalone}     \usepackage{tikz}          \makeatletter     \def\sa@cls@beforeenddocument{%         \ifhmode             \unskip         \else             % ???         \fi         \endstandalone      }     \makeatother          \begin{document}     \begin{tikzpicture}         \draw (0,0) -- (1,1);     \end{tikzpicture}          \end{document}      This produces: ![Current Restult](http://i.stack.imgur.com/cbAIX.png) The wanted result is: ![Wanted Result](http://i.stack.imgur.com/RmQzB.png) (Shown is the full "page". The dark border is the background color of Adobe Reader.)


title: Vertical position of punctuation following fractions in display-style equations

text: Assuming that one wants punctuation in equations, what is the best way to adjusting the vertical position of the punctuation if it follows a fraction? I am using Palatino and Euler here (which I generally really like). The problem is especially apparent with commas, which end up looking like primes on elements in the denominator (without a prime close by, the first equation looks an awful lot like it has a `B'` in the denominator): ![Output of MWE showing various options.](http://i.stack.imgur.com/OQEAm.png) Adding some space before the punctuation (second example) helps slightly, but still looks strange to me. It seems that, when following a fraction, the comma (and maybe the period) should be raised by a small amount (third example). ## Questions   1. What is the best typographic practice for including punctuation in these cases?   2. Is there a robust way of doing this? I.e. one that somehow uses font information to work well in all sizes and fonts. Obviously raising of punctuation should only occur in specific cases such as the fractions shown here. Perhaps there is a way of inserting something at the end of fractions that will trigger this behaviour, then reset it if the following text is not punctuation? Here is the MWE I used to make the output above:               \documentclass{minimal}     \usepackage{mathpazo}                      % To get Palatino     \linespread{1.05}                          % See question 31064     \usepackage[small, euler-digits]{eulervm}  % and now Euler          \begin{document}     Here are two equations that look awfully similar:     \begin{equation}       a = \frac{1}{A+B}, \qquad b = \frac{1}{A+B'}.     \end{equation}     \begin{equation}       a = \frac{1}{A+B}\,, \qquad b = \frac{1}{A+B'}\,.     \end{equation}          \newcommand\raisepunct[1]{\,\mathpunct{\raisebox{0.5ex}{#1}}}     \begin{equation}       a = \frac{1}{A+B}\raisepunct{,}        \qquad b = \frac{1}{A+B'}\raisepunct{.}     \end{equation}     \end{document}      ## Related Questions Several questions have addressed punctuation in equations, but most discuss only whether or not to include it, or if a thin horizontal space should be included:   * Proper punctuation after cases environment   * For formal articles, should a displayed equation be followed by a punctuation to conform to the language grammar?   * Spacing before punctuation in displayed equations   * Punctuation in equations   * comma like \cdot Peter Grill's answer to this question mentions the raising issue, and demonstrates the use of `\mathpunct`, but the question does not really address the typographic or robustness aspects of the problem   * Periods and commas in mathematical writing (mathoverflow)


title: Create version of report with local links to referenced articles

text: I have the following set-up in mind, and I hope someone could help me achieve this: I cite entries from my `.bib` file. I use the `hyperref` package (manual) with the `pagebackref` option set to `true`, so when I run pdfLaTeX all my references point to the corresponding bibliography option and I can jump back to my reference. During report writing this behaviour is not useful for me. I would rather have it such that a reference click would open the PDF file of the clicked article. So when I have a BibTex entry with label `{mylittlepony}`, I cite this with               Everybody loves chocolate \cite{mylittlepony}.      In the PDF file it says: > Everybody loves chocolate [1]. Now if I click the [1] a file called `mylittlepony.pdf` should open from a pre-defined folder. This behaviour should only occur during report writing. When I want to generate the document for other people the original `hyperref` behaviour should occur, so an additional option should be set for the `hyperref` package. This is a hard restriction. I want this to work with TexWorks' (Windows) integrated PDF-viewer as I like the syncTex functionality. This is not a hard restriction. If there are other ways of keeping a simple editor, syncTex and the custom behaviour described above I would go for that. I tried using the `\href` function to reference to local files, but this does not work in the integrated PDF-viewer, only in Acrobat Reader X.


title: Customize the name of custom listings in their "list of"

text: As I would like to separate the listings in my document, I decided to create two separate lists of them: one for the algorithms, and one for the sources. In addition, the sources must be loaded from an external file. So, with the following code in the preamble and inserting `\lstlistofsourcecode` in the right place I can achieve two separated lists.               \makeatletter     \let\oldaddcontentsline\addcontentsline     \newcommand{\lstlistsourcecodename}{Elenco dei codici}%     \lst@UserCommand\lstlistofsourcecode{\bgroup         \let\contentsname\lstlistsourcecodename         \let\lst@temp\@starttoc \def\@starttoc##1{\lst@temp{los}}         \tableofcontents \egroup}%     \newcommand{\lstinputsourcecode}[2][]{{%       \renewcommand{\lstlistingname}{Sorgente}       \renewcommand{\addcontentsline}[3]{\oldaddcontentsline{los}{##2}{##3}}%       \lstinputlisting[#1]{#2}%     }}     \makeatother      The image shows the results: ![enter image description here](http://i.stack.imgur.com/enraZ.png) The goal I want to achieve is to **change the name** of `\lstinputsourcecode` listings into their `los` (i.e., list of ...): from **"Algoritmo B.1"** to **"Sorgente B.1"**. The strange behaviour is that `\lstlistingname` command works for the captions. For example, if I do:               \lstinputsourcecode[language=cpp, caption=Esempio di funzione \acs{RTE} esportata, label=lst:callpoint-impl]{codes/callpointimpl.cpp}      Then I obtain the right caption (ie., **"Sorgente: ..."** in the image): ![enter image description here](http://i.stack.imgur.com/qITDW.png) How can I tell to the `\lstlistofsourcecode` to use **"Sorgente"** and not **"Algoritmo"** ? * * * _Note_ : I'm using the classicthesis template. * * * Thanks in advance. ## Solution The final solution adopted (thanks to @Werner) is:               \makeatletter     \newcommand{\sourcecodename}{Sorgente}     \let\oldaddcontentsline\addcontentsline     \newcommand{\listofsourcecodename}{Elenco dei sorgenti}%     \lst@UserCommand\listofsourcecode{\bgroup       \let\contentsname\listofsourcecodename       \let\lst@temp\@starttoc \def\@starttoc##1{\lst@temp{los}}       \newlength{\sourcecodelabelwidth}       \settowidth{\sourcecodelabelwidth}{\sourcecodename~999}       \addtolength{\sourcecodelabelwidth}{1.8em}       \def\l@lstlisting##1##2{\@dottedtocline{1}{0em}{\sourcecodelabelwidth}{##1}{##2}}       \def\numberline##1{\hb@xt@\@tempdima{\sourcecodename{} ##1\hfil}}       \tableofcontents \egroup}%     \newcommand{\inputsourcecode}[2][]{{%       \renewcommand{\lstlistingname}{\sourcecodename}%       \renewcommand{\addcontentsline}[3]{\oldaddcontentsline{los}{##2}{##3}}%       \lstinputlisting[#1]{#2}%     }}     \makeatother


title: Trying to use parentheses in a "psbarcode" adds a new line after the first right parenthesis + charset encoding error

text: I'm trying to use the `pst-barcode` package to create a vcard contained in a qrcode, and I was surprised to see that a vcard that was working with another programming language to generate my qrcode was not working with this package. After investigation, it turns out that the problem was caused by `psbarcode`: after the **first** (and only the first!) use of left and right parentheses, a newline is created (instead of the first _space_ after the right parenthesis). (If it could help: I also found out that using a left parenthesis without the right one after just returned a blank qrcode) Here is my current code:               \begin{pspicture}(25mm,25mm)         \begingroup             % The following def are used to solve a previous problem as             % there were "penalty @M" added for this characters             \def:{\string:}%             \def;{\string;}%             \psbarcode{%     MECARD:N:Doe,John;TEL:+1 (234) 567-8910;EMAIL:john@doe.com;;%             }{eclevel=L width=1.161 height=1.161}{qrcode}         \endgroup     \end{pspicture}      I know that we need, in general, to define a number without space and other characters in a vcard, but here I need it that way, and I think that it could be useful for other situations when we need to have parentheses in a vcard. An other piece of information that could be useful: my current version of `pst-barcode` has this filedate : `\def\filedate{2011/03/10}` **Note:** Using `^040` and `^041` instead of `(` and `)` and the `parse` option also solves the problem. * * * The new problem encountered after this correction is linked to the charset. Here is the second barcode I have :                       \psbarcode{%     BEGIN:VCARD^^J%     N:Doé;John^^J%     TEL;WORK:+1 ^040234^041 567-8910^^J%     EMAIL:john@doe.com^^J%     END:VCARD%     }{eclevel=L width=1.161 height=1.161 parse}{qrcode}      It seems that the returned element is not readable by all barcode readers, but if I remove the accent, it works well. The reader was tested with others utf-8 encoded barcodes, and the returned value was correct. I tried to use an UTF-8 BOM (`^239^187^191`) but it was not working.


title: How to output bibliography as \bibitem{bate}

text: I am writing final year thesis in undergraduate. I have already have xx.bib, like               @article{Ahmad2012,     author = {Ahmad, Imtiaz and Higgins, Peter M},     file = {:home/peng/Documents/Mendeley Desktop/ahmadIMF25-28-2012.pdf:pdf},     keywords = {among all graph labelling,attracted the most attention,bandwidth numbering,bandwidth of products of,cylinder,graph,graphs,in the literature,introduction,of graphs has perhaps,problems,rectangular lattice,the,toroidal graph},     mendeley-groups = {FYP},     number = {27},     pages = {1331--1341},     title = {{Bandwidth of Direct Products of Paths and Cycles}},     volume = {7},     year = {2012}     }      I want to output bibliography, like               \begin{thebibliography}{10}     \bibitem{bate}   Bates, R.A.,  R.F. Buck, E. Riccomagno and     H.P. Wynn (1996). Expimental design and observation for large     systems, \emph{J. Roy. Statist. Soc. Ser. B}, 58, 77-94. \ \ \ \     \end{thebibliography}      I have tried compile xx.bib, but do not find the output like above. What should I do?


title: Best way to create a photo directory?

text: I'm trying to use LaTeX to create a photo directory. On a given page, I want it to have a grid of photos (which are of varying aspect ratios) with the information for that person above/below the photo enclosed in a box. I've played around with using figures, but I can't seem to get the sizing to be consistent enough to make it look like a nice grid. Here's an example of what one of the figures looks like:               \begin{figure} \centering     \framebox[3.5in]{\LARGE Name}\\     \includegraphics[width=3.5in,height=2.345in]{image.jpg}\\     \fbox{\parbox{3.5in}{\centering Address\\     Home: PhoneNumber\\     Person1: PhoneNumber\\     Person2: PhoneNumber     }}     \end{figure}      The problem is that some of the frameboxes will be different heights because of names with letters like g and y, and then the different aspect ratios of the photos make the total size of the boxes vary. Is there a better way to layout a grid of photos and text so the dimensions will be consistent regardless of the text in the name or the aspect ratio of the photo? UPDATE: Combining the comments by uwe-ziegenhagen and and mike-renfro, I switched to a tabular and it seems to be working better. Also based on egreg's suggestion, I also now only specify the width or height (whichever will fill the dimension of the desired aspect ratio). But still the row with the image in the tabular is of varying height based on the image. The "Rules and Struts" section of (http://en.wikibooks.org/wiki/LaTeX/Advanced_Topics) indicates that `\rule` could be used, but it leaves a large gap and then the image. This answer said that creating a `\vrule` would allow for specifying the height of the row and it does, but then the image is at the bottom of the row. Is there a way to fix that? Here's an example and I need a way to make both of the images be in the center of the tabulars that are the same height even though one has a smaller image (\rule in this example):               \newcolumntype{C}{>{\centering\arraybackslash} m{3.5in} }     \\def\\photostrut{\\vrule height 3.5in depth 0in width 0in}          \begin{tabular}{|C|} \hline     \LARGE Name \strut \\ \hline     \photostrut \rule{2.5in}{3.25in} \\ \hline     Address \strut \\     Home: PhoneNumber \strut \\     Person1: PhoneNumber \strut \\     Person2: PhoneNumber \strut \\ \hline     \end{tabular}          \begin{tabular}{|C|} \hline     \LARGE Name \strut \\ \hline     \photostrut \rule{3.5in}{2.0in} \\ \hline     Address \strut \\     Home: PhoneNumber \strut \\     Person1: PhoneNumber \strut \\     Person2: PhoneNumber \strut \\ \hline     \end{tabular}


title: How to convert office documents (odt, doc, rtf) to clean LaTeX?

text: [I know, this question has popped up several times, but let me clarify my situation.] I have to edit certain books and the authors send me their documents as `.doc`, `.odt` or `.rtf` files. I want to convert those files to LaTeX, but the only structure and format I want to keep is:   * italic    * footnotes   * ordered and unordered lists So, what I usually do, is to convert those documents to `.rtf` using Libreoffice (because I get rid of many formats I don't want to keep this way), and then with the famous LibreOffice extension I convert it to LaTeX. This works well, but sometimes the result is not clean, for example many times there are colour tags or some other formats within the LaTeX document. Does anybody know a better way to achieve that goal? How to convert those documents, keeping only footnotes, italic, and lists?


title: Biblatex: How to get rid of reference number within a single bibliography?

text: I have the following LaTeX code               \documentclass{article}     \usepackage{filecontents}     \usepackage{biblatex}          \DeclareBibliographyCategory{bestpapergyro}     \DeclareBibliographyCategory{bestpaperstark}          \begin{filecontents}{\jobname.bib}         @misc{Gyro2012,             author = {Gearloose, Gyro},             title = {1st paper},             category = bestpapergyro,         }         @misc{Gyro2013,             author = {Gearloose, Gyro},             title = {2nd paper},         }         @misc{Stark2012,             author = {Stark, Anthony Edward},             title = {3rd paper},         }         @misc{Stark2013,             author = {Stark, Anthony Edward},             title = {4th paper},             category = bestpaperstark,         }     \end{filecontents}          \addbibresource{\jobname.bib}          \begin{document}          \nocite{*}          \addtocategory{bestpapergyro}{Gyro2012}     \addtocategory{bestpaperstark}{Stark2013}          \noindent Favorite paper by Gyro Gearloose:     \begin{itemize}         \item \printbibliography[heading=none,category=bestpapergyro]     \end{itemize}          \noindent Favorite paper by Anthony Stark:     \begin{itemize}         \item \printbibliography[heading=none,category=bestpaperstark]     \end{itemize}          \printbibliography          \end{document}      that results in the following output               Favorite paper by Gyro Gearloose:     • [1] Gyro Gearloose. 1st paper.          Favorite paper by Anthony Stark:     • [4] Anthony Edward Stark. 4th paper.          References     [1] Gyro Gearloose. 1st paper.     [2] Gyro Gearloose. 2nd paper.     [3] Anthony Edward Stark. 3rd paper.     [4] Anthony Edward Stark. 4th paper.      Basically, I want to show a list of best papers for each author in a separate itemization. Currently, I do this by creating a best paper category for each author and then print the bibliography for these categories. I have two Questions:   1. How can I get rid of the reference numbers within the itemizations (without changing the style of the bibliography at the end)?   2. Is there an easier way to print the bibliography for a single entry than specifying an own category?


title: Esami: "No language" error during compilation

text: I'm getting this error when I try to compile a (almost empty) `tex` source using the `esami` package:               LaTeX Error: Missing \begin{document}.     See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.     ...                                                        l.182 ... language will be used.}}{NO LANGUAGE!!!}                                                   \fi      Here is the complete log file and below is the **updated** `tex` file I am trying to run:               \documentclass[italian,12pt]{article}     \usepackage[italian]{babel}     \usepackage[italian,shuffle,solutions]{esami}          \def\examname{Test}     \def\numcompiti{21}     \date{2014/5/28}     \def\Data{\longdate}          \begin{document}     \pagestyle{esame}          \whiledo{\thevers<\numcompiti}{\stepvers     \FPeval\seme{round((\thenomefile+(3*\thevers)):0)}     \randomi=\seme     \string\large\string\textbf{Soluzione Versione n. \thevers}     \testa     \istruzionii          \begin{test}         \begin{questions}         \newproblem {             \item Question             \begin{answers}             \bChoices[random]                 \Ans1 Answer \eAns                 \Ans0 Another answer \eAns             \eChoices             \end{answers}         }     \end{questions}     \end{test}          \closevers          }          \end{document}      I'm compiling it using `pdflatex --shell-escape file.tex` due to a warning regarding the `ifplatform` package. What is wrong here?


title: Russian babel and chemformula

text: I want to write chemical formulas in a predominant german Text with a small amount of russian words. For that I use `babel` and `chemformula`, but they produce a heavy conflict. My MWE:               \documentclass{report}     \usepackage[T2A,T1]{fontenc}     \usepackage[russian,ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage{chemformula}     \begin{document}     Deutscher Text     \selectlanguage{russian}{русский текст}     \ch{H2O}     \end{document}      I get the following error message: > [path]/chemformula.sty.1168:"xparse/command-already-defined"! See the LaTeX3 > documentation for further information. { \chemformula_ch:nn { #1 } { #2 } } Lines 1167-8 of chemformula.sty contain the following:               \NewDocumentCommand \ch { O{}m }       { \chemformula_ch:nn { #1 } { #2 } }      Is there any way to combine these packages?


title: Changing parameters in a groupplot

text: The idea behind the following sample code is this: There should be four plots, and for each plot two parameters should be set. This is achieved through `\def` just before `\nextgroupplot`. Apparently, this approach is not sound.               \documentclass{beamer}     \setbeamertemplate{navigation symbols}{}          \usepackage{pgfplots}     \pgfplotsset{compat=1.7}     \usepgfplotslibrary{groupplots}          \begin{document}          \begin{frame}       \begin{tikzpicture}         \begin{groupplot}[group style={group size=2 by 2}, height=5cm, width=6cm]           \def\myA{1}           \def\myB{1}           \nextgroupplot[xlabel = {A: \myA, B: \myB} ]           \addplot coordinates{(0,0) (1,\myA) (2,\myB)};                \def\myA{1}           \def\myB{2}           \nextgroupplot[xlabel = {A: \myA, B: \myB} ]           \addplot coordinates{(0,0) (1,\myA) (2,\myB)};                \def\myA{2}           \def\myB{1}           \nextgroupplot[xlabel = {A: \myA, B: \myB} ]           \addplot coordinates{(0,0) (1,\myA) (2,\myB)};                \def\myA{2}           \def\myB{2}           \nextgroupplot[xlabel = {A: \myA, B: \myB} ]           \addplot coordinates{(0,0) (1,\myA) (2,\myB)};         \end{groupplot}       \end{tikzpicture}     \end{frame}     \end{document}      Here's the output of the above snippet: ![output of the above snippet](http://i.stack.imgur.com/PdEoG.png). If everything worked as planned, we would see four different figures, with different values at x=1 and x=2, labelled like this:               A: 1, B:1   A: 1, B:2     A: 2, B:1   A: 2, B:2      Neither works. All four plots appear to take their parameters from the very first definition only. For the labels, the order is changed (2-3-4-1 rather than 1-2-3-4). **Q** : Why is that? What's the proper way to do what I mean to do? **Q** : Why can't I write that code as               \documentclass{beamer}     \setbeamertemplate{navigation symbols}{}          \usepackage{pgfplots}     \pgfplotsset{compat=1.7}     \usepgfplotslibrary{groupplots}          \begin{document}          \def\myAs{1,2}     \def\myBs{1,2}          \begin{frame}       \begin{tikzpicture}         \begin{groupplot}[group style={group size=2 by 2}, height=5cm, width=6cm]           \foreach\myA in \myAs{             \foreach\myB in \myBs{               \nextgroupplot[xlabel = {A: \myA, B: \myB} ]               \addplot coordinates{(0,0) (1,\myA) (2,\myB)};             }           }         \end{groupplot}       \end{tikzpicture}     \end{frame}     \end{document}


title: Variable header height

text: I want to create invoices with LaTeX, and they need a header (containing some company information and maybe a logo) which must be repeated on every page. My problem is that I do not know the header height in advance as it contains some information fetched from the database. Very long data might lead to unpredictable line breaks. After the header, there comes the main part of the invoice, and I need this to begin, say, exactly 2em after the header. At the moment, I use the `geometry` and `fancyhdr` packages:               \documentclass{article}     \usepackage[includehead,headheight=8em,headsep=2em]{geometry}     \usepackage{fancyhdr}     \pagestyle{fancy}     \chead{%     \parbox{0.2\textwidth}{%     Just some long text in a narrow box which will produce many line breaks.     %And the text may be even longer.     We can not predict the actual header height.     }}     \begin{document}     This text should always start exactly 2em below the header and therefore must take the actual header height into consideration.     \end{document}      I can finetune the `headheight` parameter to match one given header, but another header with different data (as an example, uncomment the second line) may look ugly with the same `headheight`. Is it possible to make the main text take the actual header height into consideration, so that it always begins 2em below the header?


title: Externalize pgfplotstable with csv file

text: This is a direct follow-up question to this: Adding units to pgfplotstable header After fixing the output I tried outsourcing the `table`. After figuring out that `standalone` does not work with `longtable` (thanks to @Jake) I removed that, but even then every time i try to compile with `pdfLaTeX` I get this error: > ! Package pgfplots Error: Could not read table file 't3.dat'. In case you > inten ded to provide inline data: maybe TeX screwed up your end-of-lines? > Try `row se p=crcr' and terminate your lines with \\\` (refer to the > `pgfplotstable` manual for details). where `t3.csv` is the file where all the data is stored. My file currently looks like this:               \documentclass{standalone}     \usepackage{pgfplotstable}      \usepackage{booktabs}      \usepackage[allowlitunits]{siunitx}          \begin{document}            \pgfplotsinvokeforeach{100,90,...,10}{             \pgfmathsetmacro\concentration{#1/100*0.25}             \pgfplotstableset{                 columns/#1/.estyle={                     fixed,fixed zerofill,precision=3,                     column type=p{4.5em},                     column name={\SI[round-mode=places,round-precision=3]{\concentration}{\mol\per\liter} (\SI{#1}{\percent})}}             }         }         \pgfplotstabletypeset[col sep=semicolon,         header=true,             columns/Zeit/.style={fixed,fixed ,column type=r},         every head row/.style={             before row=\toprule,             after row=\midrule\endhead         },          every last row/.style={             after row=\bottomrule         }         ]{t3.dat}          \end{document}      So to summarize the whole thing, I tried 2 ways to include this table:   1. Using the `standalone` class and including the file with `\includestandalone{subdir/filename}`   2. Using a file without any preamble and `\documentclass` and using the `\input{subdir/filename}` method. Still I'm not able to determine what causes this error. Running Windows 7 and TeXStudio ## EDIT it looks like I am not able to write a file into any directory. so the question should be, why am I not able to write a file?


title: Problem with itemize indentation in minipage in tikz node

text: How could I disable the indentation of the items here: ![items indented](http://i.stack.imgur.com/BouEk.png) The MWE is this (compiled with pdflatex):               \documentclass[12pt,a4paper]{article}          \usepackage[pass]{geometry}     \usepackage{tikz}               \begin{document}          \pdfpagewidth=148mm \pdfpageheight=210mm % for PDF output     \paperwidth=148mm \paperheight=210mm     % for TikZ               \begin{tikzpicture}[overlay,remember picture,y=0.80pt,x=0.80pt,yscale=-1, inner sep=0pt, outer sep=0pt,anchor=north west]            \begin{scope}[shift={(0,0.34461553)}]% layer1            \path[fill=blue] (10,10) node[below right] (text3134) {%         \frame{%         %\parbox{150pt}{%           \begin{minipage}{150pt}%             \begin{itemize}%               \setlength{\topsep}{0pt}%               \setlength{\itemsep}{0pt}%               \setlength{\itemindent}{0em}%               \setlength{\parindent}{0em}%               \setlength{\parskip}{0pt}%               \setlength{\marginparsep}{0em}%               \leftmargin=0em%               \itemindent=0em%               \labelsep=0em \labelwidth=0em%               \item[\textcolor{red}{\textbullet}] Hello               \item \frame{world!}             \end{itemize}%           \end{minipage}         %}%parbox         }%frame       }%path       ;            \end{scope}          \end{tikzpicture}     \end{document}


title: "Negative offset" chapter title

text: I need my chapter titles to be offset 2cm to the left of everything else (or my section headings and paragraphs to be offset right, depending on what you call the reference point). I got the chapter title offset using:               \renewcommand{\printchaptertitle}[1]{%     \begin{adjustwidth}{-2.5cm}{}       \chaptitlefont ##1     \end{adjustwidth}}      but I can't get the chapter name and number to work - I keep getting 'space factor' errors when I try and redefine `\printchaptername`. I'm using `memoir`, and I've read the manual. I just can't understand it. Is there an easy way of doing this?


title: Beamer \institute text size change to small

text: I am using `beamer` with the `\institute` command. I have several institutes and just want to change the font size of the institutes and not the whole document. I would like the institutes to be much smaller than the rest of the document. Here is my code, but maybe I'm lost. Thanks for any input as I am new to `beamer` and LaTeX.               \institute[University of] {size=\fontsize{9pt}{10pt}\selectfont University of Utah}%        {       \inst{1}%       Department of Electrical and Computer Engineering\\       University of       \and       \inst{2}%       Department of Chemistry\\       University of       \and       \inst{3}%       Department of\\       University of       \and       \inst{4}%       Department of \\       University of       ~ \\       \pgfuseimage{medallion}     }


title: running pdflatex after htlatex causes hyperref error Undefined control sequence

text: **UPDATE Jne 22, 2013** After installing TexLive 2013, this problem went away on its own. So this question is now resolved for me, as I will be using TL 2013 from now on. This question can closed or deleted as the moderators decide. thank you **Original question** When I run pdflatex on a file I get errors. But this only happens when I have run htlatex _before_ on the same file. The problem goes away when the .aux file generated by htlatex run is deleted BEFORE running pdflatex. A small .tex file is given below (thanks to Nicola Talbot in chat for providing it) and the commands I used. You can see the problem only shows up when I run htlatex _before_ pdflatex               \documentclass{article}     \usepackage{graphicx}     \usepackage[colorlinks]{hyperref}     \begin{document}          Reference to Figure~\ref{fig:sample}.          \begin{figure}     \centering     \includegraphics{image.png}     \caption{Sample}      \label{fig:sample}     \end{figure}     \end{document}      now               rm -rf report; mkdir report;htlatex report.tex "htm" " -cunihtf" -dreport          pdflatex report.tex          This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)      restricted \write18 enabled.      ......     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     (./report.out) (./report.out)          Package hyperref Warning: Empty destination name,     (hyperref)                using `UNDEFINED' on input line 8.          ! Undefined control sequence.     <argument> ...tring :autoref\endcsname {\@captype                                                        }1     l.8 Reference to Figure~\ref{fig:sample}                                             .     ?       But if I delete the report.aux file _before_ running pdflatex, the problem goes away, and all what I get is the normal undefined references messages asking to run pdflatex again which is expected:               >rm -rf report; mkdir report;htlatex report.tex "htm" " -cunihtf" -dreport          >rm report.aux        rm: remove regular file `report.aux'? y          >pdflatex report.tex          This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)      restricted \write18 enabled.      ....     (/usr/share/texlive/texmf-dist/tex/latex/url/url.sty))          Package hyperref Message: Driver (autodetected): hpdftex.          (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def     (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     No file report.aux.     (/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     ) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty     ......         LaTeX Warning: Reference `fig:sample' on page 1 undefined on input line 8.          <image.png, id=4, 749.04843pt x 302.63063pt> <use image.png>     Overfull \hbox (404.0466pt too wide) in paragraph at lines 12--13      [][]      [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <./image.png>]     (./report.aux)      The error is not there any more. This below is listing of the report.aux _after_ running the htlatex command               >cat report.aux     \relax      \providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}     \HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined     \global\let\oldcontentsline\contentsline     \gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}     \global\let\oldnewlabel\newlabel     \gdef\newlabel#1#2{\newlabelxx{#1}#2}     \gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}     \AtEndDocument{\ifx\hyper@anchor\@undefined     \let\contentsline\oldcontentsline     \let\newlabel\oldnewlabel     \fi}     \fi}     \global\let\hyper@last\relax      \gdef\HyperFirstAtBeginDocument#1{#1}     \ifx\rEfLiNK\UnDef\gdef \rEfLiNK#1#2{#2}\fi     \newlabel{fig:sample}{{\rEfLiNK{x1-21}{\csname\string :autoref\endcsname{\@captype }1}}{\rEfLiNK{x1-21}{\csname\string :autoref\endcsname{\@captype }3}}{}{}{}}     >      **question is** : Why do pdflatex gives an error if run it after htlatex? texlive 2012 debian packaging Appendix               >tex4ht  -v     ----------------------------     tex4ht.c (2009-01-31-07:33 kpathsea)          >latex -v     pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)     kpathsea version 6.1.0          >uname -a     Linux me-VirtualBox 3.5.0-17-generic #28-Ubuntu SMP T          >ls -lrt     total 106     -rwxrwxrwx 1 me me 17438 Apr 16 01:02 image.png     -rwxrwxrwx 1 me me   259 Jun  5 14:42 Makefile     -rwxrwxrwx 1 me me   274 Jun  5 14:46 report.tex     -rwxrwxrwx 1 me me     0 Jun  5 15:00 report.out     -rwxrwxrwx 1 me me 36292 Jun  5 15:00 report.pdf     -rwxrwxrwx 1 me me   183 Jun  5 15:04 report.4ct     -rwxrwxrwx 1 me me   736 Jun  5 15:04 report.aux     -rwxrwxrwx 1 me me    93 Jun  5 15:04 report.xref     -rwxrwxrwx 1 me me   176 Jun  5 15:04 report.4tc     -rwxrwxrwx 1 me me 10808 Jun  5 15:04 report.dvi     -rwxrwxrwx 1 me me 22167 Jun  5 15:04 report.log     -rwxrwxrwx 1 me me  1563 Jun  5 15:04 report.htm     -rwxrwxrwx 1 me me  6593 Jun  5 15:04 report.lg     -rwxrwxrwx 1 me me   473 Jun  5 15:04 report.idv     -rwxrwxrwx 1 me me    15 Jun  5 15:04 report.tmp     -rwxrwxrwx 1 me me  5625 Jun  5 15:04 report.css     drwxrwxrwx 1 me me     0 Jun  5 15:04 report     -rwxrwxrwx 1 me me  1210 Jun  5 15:16 texput.log     >


title: \include-d chapter and \refsection leads to blank pages in book-based classes

text: The MWE is pretty much as small as I can get it and replicate the problem. I `\include` chapters of my thesis (using a template based on `book`}. Immediately after the last chapter I have a list of publications. But if the chapter finishes on an even page, rather than the publications list starting on the next odd page, I get a blank odd, a blank even, than the publications list. You can guess where it finishes now I've written the last chapter!               \documentclass{book}     \usepackage{showkeys}     \usepackage[         firstinits=true,         maxbibnames=100,         style=numeric-comp,         sortcites=true,         sorting=none,         backend=biber,         defernumbers=true,         natbib     ]{biblatex}     \begin{filecontents}{\jobname.bib}     @misc{me_poster,         title="a poster",         author="Me",         keywords="me",         year=2013     }     @article{me_article,         title="a journal article",         author="Me",         journal="journal of stuff",         year="2012",         keywords="me"     }     @article{AuthorA_article,         title="An Article",         journal ="journal of applied stuff",         author="Author, A",         year="1999"     }     @book{AuthorB_book,         title="A book",         author="Author, B",         year="1666"     }     \end{filecontents}     \begin{filecontents}{\jobname_c1.tex}             \chapter{Body}             Some people said some stuff.\supercite{AuthorA_article}                  This is on an odd page.\supercite{AuthorB_book}             \clearpage             \dots and this is on an even page.     \end{filecontents}     \addbibresource{\jobname.bib}     \begin{document}     \include{\jobname_c1}%     \begin{refsection}%         \begingroup             \defbibenvironment{myrefs}                   {\DeclareFieldFormat{labelnumberwidth}{}\list{}{%                      \leftmargin\bibhang                      \itemindent-\leftmargin                      \itemsep\bibitemsep                      \parsep\bibparsep}}                   {\endlist}                   {\item}                   \nocite{*}%             \printbibliography[sorting=ynt,omitnumbers=true,env=myrefs,keyword=me,title={Publications and presentations},heading=bibintoc]%              \endgroup%     \end{refsection}%            \end{document}      ![output of the above code -- 5 pages overlapped](http://i.stack.imgur.com/QGDZ1.png) Sorry about the big image - if I make it smaller it's not clear. Notes:   * I've left showkeys on as it shows where the `\refsection` starts   * I think this has something to do with the fact that `\refsection` uses a chapter in `book`-based classes, if I use `article` (and make the `\chapter` in the include into a `\section`) the problem goes away.   * I've seen the answer at Blank bibliography page getting created, but that makes the publications list start on page 4, not 3, where it should go (unsurprisingly).   * It feels like an _extra_ `\clear(double)page` is being issued somewhere within the `\refsection` but I don't know where.


title: TeXStudio: Any command is an "Undefined control sequence"

text: I'm trying to configure TeXStudio (using Windows) with MiKTeX. I configured the path to `latex.exe` and `pdflatex.exe` in Options\Commands and still I get errors compiling any `.tex`. Every command (like `\title`, `\usepackage`, `\begin`) produces an error: "Undefined control sequence". ![Commands](http://i.stack.imgur.com/PahAd.png) ![Build](http://i.stack.imgur.com/dKyZK.png) ![Result](http://i.stack.imgur.com/o9UVx.png)


title: How to top- align sidenotes using eledmac?

text: Eledmac commands `\ledleftnote` `\ledrightnote` `\ledsidenote` insert side notes at the level where the command was issued. However the side note is bottom aligned, meaning the the note doesn't start at desired level, but ends at it. Is there a way to make the start from the level where the command was issued and then downwards?               \documentclass[12pt,a4paper]{article}     \usepackage{eledmac, eledpar}          \begin{document}     \beginnumbering     \pstart 1. Ioannes  Brauus Chamissius Conimbricensis Doctor, Anathomicae lectionis     olim singularis; nunc uero medicae Cathedrae moderator subtilis et studiosus, eam pro     re presenti opinationem concepit, a qua, dum id efficaciter conaremur, eum dimouere     nequiuimus. Is lib. 1. De Medendis Corporum Malis toto cap. 7. fol. 23.  Citare deinde      posset nonnullos etiam Dominos  Iuristas; ut Archidiac; et Bellameram ad cap. Non     liceat, 26. q. 5. quos citat , et probare uidetur Camillus     Gallinius\ledrightnote{margin note refers to Gallinius} lib. 2. de signific. uerb.      cap. 17 et probant ex cap Nec  mirum, eadem causa, et q. ubi de Magis dicitur: Sine      ueneni haustu, uiolentia tantum carminis interimunt etc. Supponiturque, daemonem sola      vi naturali carminis operari: siquidem ipse non operatur, nisi applicando naturalia     actiua passiuis.     \pend     \end{document}


title: Totally sweet horizontal rules in LaTeX

text: I have been trying to find a way to easily drop a nice horizontal rule into a LaTeX document. `\hline` just makes a line across the page. It would seem that some package must provide something that is maybe half a page wide, with little bedknobs on the ends or something to act as a nice section marker for paragraphs. Any ideas? Or am I boned, and need to come up with my own macro to create such a beast?


title: How to Access Files Outside of Current Direcory

text: I have a simple question. How do I access files outside of my current directory in LaTeX? I have a project that I am updating and saving each day's version in a separate folder. I would like to have a different folder dedicated to hold my auxiliary `.tex' file, graphics, and bibliography file. Then be able to access these files from my current folder. I am using a Mac if that makes any difference. My folder structure is as follows: (for main .tex file): .../Project/7-21 (for additional files): .../Project/Files/ So my main file is stored in /7-21/ and the files I want to access are in /Files/.


title: setting letter atop vdash

text: I've got the following problem: I want to set the letter "W" atop a "\vdash", like here: ![W atop vdash](http://i.stack.imgur.com/AIzvj.png) I've tried to get this result with \atop, \stackrel, and \above, but didn't get the wished result. All these put the W completely over the vdash: ![W completely atop vdash](http://i.stack.imgur.com/CWWlu.png) How can I get the first result? PS: here is a sample file:               \documentclass{article}     \begin{document}     $A \stackrel{W}{\vdash} x$     \end{document}


title: How to increase the TeX open file limit?

text: I noticed that TeX has a open file limit, while using some additional bibliographies with `multibib`, using `hyperref`, `backref`s and so on (basically only 5 additional `newcites` were possible in that document before hitting the limit). I worked around that with migrating from `multibib` to `biblatex`, which I've discovered then and which seems like a good solution to other bibliography related challenges as well. Anyways, I found this 2007 open file limit discussion and I wondered if the situation changed with current TeX Live distributions. And if yes, how to increase the open file limit in LaTeX now.


title: Clickable Table Footnote

text: I'm trying to have some clickable footnotes within tables. I tried using `\footnote{}`, it does create a link but there's no footnote text associated with it. `\footnotemark[number]` along with `\footnotetext[]{}` does create a fotenote but then there's no hyperlink. (I would like to make it clear that I'm trying to have footnotes at the bottom of the page and not footnotes within the table.) Here's a small code snippet:               \documentclass{report}      \usepackage{hyperref}     \begin{document}          \begin{table}[h!]         \centering         \begin{tabular}{|r|r|r|}             \hline             A\footnote{Test!} & B\footnotemark[4] & C\footnotemark[5]\\             \hline             123 & Tim & Jane\\             \hline             456 & Tom & Jung\\             \hline         \end{tabular}         \caption{A table}     \end{table}          This is a clickable footnote\footnote{You clicked me!}.          \footnotetext[4]{This is B}     \footnotetext[5]{This is C}          \end{document}


title: Selectively turn off hyperref links

text: I'm writing a document which includes a list of URLs that I want to be clickable, so I'm using hyperref to achieve this. This has the awkward side effect that my equation numbers, some of which I don't want to be clickable links, to also be clickable. I've hidden this by giving `hypersetup` the options `colorlinks, linkcolor={black}` But this is suboptimal, in that the link is still clickable. I tried the following MWE, but it didn't work (the * just displays above the environment.)               \documentclass{article}     \usepackage{xcolor}     \usepackage{hyperref}     \hypersetup{colorlinks, linkcolor={black}}     \title{This is the title}     \begin{document}     \let\oldref\ref     \let\ref\ref*     \begin{equation}       \label{eq:one}       e^{i\pi} + 1 = 0     \end{equation}     This is a link to the equation \ref{eq:one}, when it shouldn't be...     \let\ref\oldref %% Changing it back to normal behaviour     \end{document}      I also tried using renewcommand, but that failed too. It's got something to do with the *, since `\let\ref\autoref` works fine. I can't just find and replace the ones I want unlinked, because they are inside `LTXexample` environments, and I want the code to display as `\ref` not as `\ref*` So I have two questions:   1. How do I get this temporary redefinition of `\ref` to work?   2. _Or_ , how do I turn off equation links globally, but still have URL links work? (And if possible, is there a way to then have _some_ equations linky with a different command)


title: How to insert overlays in latex beamer

text: I have as many as 15-20 overlays within a `frame`. I am trying to highlight certain states in a state diagram. The problem is sometimes I would want to add an overlay, say between 5 and 6. I would need to increase the counter of all the overlays following 6 which can be quite annoying. I considered numbering overlays in multiples of 5 just so that I can insert an overlay later. However, each number would result in a new slide which is highly undesirable. Another solution is creating a separate frame. Is there a better way to handle this? Am I missing something obvious?


title: triple \approx and triple \approx with a straight middle line

text: I'm trying to create a symbol `\diffeo` for "diffeomorphic" and `\isomet` for "isometric". I'd like it to look exactly like \approx $\approx$, but with three lines for the first one; and three lines with the middle being straight for the second one: ![enter image description here](http://i.stack.imgur.com/OA5tR.jpg) ![enter image description here](http://i.stack.imgur.com/TPs1R.jpg) where approx is the symbol ![enter image description here](http://i.stack.imgur.com/TqRCo.jpg).


title: Reference to subequation forces serif font; how to work around?

text: I'm using the subequations environment in a book in which some text is in sans serif font. When I have a reference to a subequation, the reference comes out in a serif font, even if the surrounding text is sans. Below is a minimal example that demonstrates the problem.               \documentclass{article}     \usepackage{amsmath}     \begin{document}     \begin{subequations}     \begin{align}     1+1&=2 \label{foo}\\     2+2&=4     \end{align}     \end{subequations}     \textsf{See equation \eqref{foo}.}     \end{document}      Seems like a bug to me. Can anyone suggest how to work around this problem?


title: How do I stop the text on my flashcards from overshooting the area?

text: This is not using the `flashcards` class because that does not print the cards in a way that I want them to be printed. That is why it is a modified article class. I have recently tried a set this up with `beamer` and it gives me the same problem but it is easier to configure the font size with `beamer`. I added `float` package but I wasn't sure how to implement it in order to solve this problem and the texdoc for `float` is like another language altogether. It is stopping me from being able to print long questions so very limiting. Any suggestions would be welcome.               documentclass{article}     \usepackage[paperwidth=.47\paperwidth,paperheight=.25\paperheight]{geometry}     \usepackage{pgfpages}     \usepackage[english]{babel}     \usepackage{amsfonts}     \usepackage{amsmath}     \pagestyle{empty}     \thispagestyle{empty}          \pgfpagesuselayout{8 on 1}[a4paper]             \makeatletter     \@tempcnta=1\relax     \loop\ifnum\@tempcnta<9\relax     \pgf@pset{\the\@tempcnta}{bordercode}{\pgfusepath{stroke}}          \advance\@tempcnta by 1\relax     \repeat     \makeatother               \newenvironment{flashcard}[2][]{%     \noindent   \textsc{#1}     \vfill     \centerline{{\noindent  \Large{#2}}}     \vfill     \newpage     \noindent       }     {\newpage}          \begin{document}                         \begin{flashcard}[Statistical Mechanics]{What is the equilibrium entropy of an isolated system of N constituents with energy E? }     What is the equilibrium entropy of an isolated system of N constituents with energy E?     \vspace*{\stretch{1}}     $$S(N, E) = k ln \Omega(N, E, {\alpha*})$$     \vspace*{\stretch{1}}          \end{flashcard}          \end{document}      Here is what the problem looks like: ![flashcard](http://i.stack.imgur.com/6KIPP.png)


title: Clean uninstall of TeX Live 2012 (for upgrading to TeX Live 2013) on Mac OS X

text: I understand upgrading from TeX Live 2012 to 2013 is not a single-click operation. As I was working on some important documents and didn't want to compromise my TeX distribution, I've put off upgrading until now. I'm ready now but, before installing 2013, I'd like to perform a clean uninstall of TeXLive 2012. What steps should I take? What should I look out for? I'm running Mac OS 10.8.3.


title: Highlight min/max of value pairs on each row with pgfplotstable

text: I would like to highlight the min/max value in pairs of values on each row in a table with pgfplotstable. I had a look at Highlighting Extremal Values in Table which seems to provide much of the machinery needed. I am quite new to pgfplotstable, is there a better way to do this than reading the two columns to be compared to a new macro, transpose and sort on one column (the original row) and then repeat for all rows? (for each pair of values). With better I mean easier (for me) and/or more efficient. I have many rows (150 in my test case) and typically three pairs for each row that I would like to compare. Comparing values for each row would be easy in the script emitting the csv data, so I gathered I might be missing something important -- hence the question.


title: Selecting rows to be displayed with pgfplotstable

text: I have a table, read from a file, and I would like to display only rows which have a specific value in a given column. Here is an ECM:               \documentclass{minimal}     \usepackage{pgfplotstable}     \begin{document}     \pgfplotstableread{       num       value       1         2       2         5       1         3       3         2       1         4       2         1     }\data     \pgfplotstabletypeset[row predicate/.code={%       \ifnum\pgfplotstablegetelem{#1}{num}\of{\data}=1\relax       \else\pgfplotstableuserowfalse\fi}]{\data}     \end{document}      I would expect to seen only rows whose num value is 1. But I get an error when compiling:               ERROR: Missing number, treated as zero.          --- TeX said ---                              \begingroup      l.14 ...after\pgfplotstableuserowfalse\fi}]{\data}      Do you have any idea on what to do so that only specific rows are displayed?


title: What does 'font name' in the fontspec package refer to on a Mac

text: On a Mac using XeLaTeX and the `fontspec` package, what is meant by `font name`? The Font Book application lists several possibilities:   * PostScript name   * Full name   * Family I.e. which name should I type into the `\setmainfont [⟨font features⟩] {⟨font name⟩}` command? For example, for the font named as Times (top unexpanded item) in Font Book, the following values exist:                PostScript name: Times-Roman      Full name:       Times Roman      Family:          Times      ![Viewing the Times font in Font Book](http://i.stack.imgur.com/B9f8Y.png)


title: What are the ways one can control spacing between nodes in TikZ

text: If I have 4 nodes, one on top of each other, I would like to know the different ways to control the spacing between the nodes. I already know a few:   * `\node[...below=1cm of xyz]`   * `\tikzstyle[...node distance = 2cm]`   * `\tikzstyle[...inner sep = 2pt]` Could someone provide me with a more comprehensive list of options. In this case, specifically, I have a picture like so (work in progress) ![Sample Tikz Picture](http://i.stack.imgur.com/spMqC.jpg) I want to be able to control the big blue box so it is closer to the left and right borders than it is to the top and bottom. I also want to control the synapses so they move down such that synapse 3 is closer to the bottom than synapse 0 is to the top. I basically want full control of all four paddings. Here is the TikZ code used to generate the above image.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{positioning}     \begin{document}     \begin{tikzpicture}[remember picture,       simulator engine/.style={fill=black!10,rounded corners,inner sep=20pt},       topology/.style={rounded corners,draw=blue!50,fill=blue!20,thick,inner sep=3pt},       neuron/.style={fill=blue!10,draw=blue,rounded corners,inner sep=15pt},       synapse/.style={draw=red!75,fill=red!20,rounded corners,inner sep=5pt},       empty synapse/.style={draw=blue!10,rounded corners,inner sep=5pt}       ]       \node[simulator engine] (simulatorEngine) {         \begin{tikzpicture}           \node[topology] (topology1) {             \begin{tikzpicture}               \node [neuron] (neuron1-1)  {                   \begin{tikzpicture}                       \node [synapse,draw=blue] (synapse1-1-0) {$\text{Synapse}_{0}$};                       \node [synapse,draw=blue,below=0.1cm of synapse1-1-0] (synapse1-1-1) {$\text{Synapse}_{1}$};                       \node [synapse,draw=blue,below=0.1cm of synapse1-1-1] (synapse1-1-2) {$\text{Synapse}_{2}$};                       \node [empty synapse,below=0.2cm of synapse1-1-2] (synapse1-1-e) {\ldots};                       \node [synapse,draw=blue,below=0.1cm of synapse1-1-e] (synapse1-1-3) {$\text{Synapse}_{3}$};                   \end{tikzpicture}               };               \node [neuron,draw=blue,right=0.2cm of neuron1-1] (neuron1-2) {                   \begin{tikzpicture}                       \node [synapse,draw=blue] (synapse1-2-0) {$\text{Synapse}_{0}$};                       \node [synapse,draw=blue,below=0.1cm of synapse1-2-0] (synapse1-2-1) {$\text{Synapse}_{1}$};                       \node [synapse,draw=blue,below=0.1cm of synapse1-2-1] (synapse1-2-2) {$\text{Synapse}_{2}$};                       \node [synapse,draw=blue,below=0.1cm of synapse1-2-2] (synapse1-2-3) {$\text{Synapse}_{3}$};                   \end{tikzpicture}               };               \node [neuron,draw=blue,right=0.2cm of neuron1-2] (neuron1-3) {                   \begin{tikzpicture}                       \node [synapse,draw=blue] (synapse1-3-0) {$\text{Synapse}_{0}$};                       \node [synapse,draw=blue,below=0.1cm of synapse1-3-0] (synapse1-3-1) {$\text{Synapse}_{1}$};                       \node [synapse,draw=blue,below=0.1cm of synapse1-3-1] (synapse1-3-2) {$\text{Synapse}_{2}$};                       \node [synapse,draw=blue,below=0.1cm of synapse1-3-2] (synapse1-3-3) {$\text{Synapse}_{3}$};                   \end{tikzpicture}               };                    \node [black,below] at (neuron1-1.north)  {$\text{Neuron}_{0}$};               \node [black,below] at (neuron1-2.north)  {$\text{Neuron}_{1}$};               \node [black,below] at (neuron1-3.north)  {$\text{Neuron}_{2}$};             \end{tikzpicture}           };              \end{tikzpicture}         };              \node [black,below] at (simulatorEngine.north) {Simulator Engine};     \end{tikzpicture}     \end{document}


title: Add background pattern to tikzpicture vertical bars

text: How do I replace the blue backgrounds as indicated in the picture with a diagonal and grid pattern respectively? I currently can't find a neat solution for my kind of graph. ## Code               \begin{tikzpicture}         \begin{axis}[             ybar,             bar width=1.0cm,             enlargelimits=0.75,             width=7.5cm,              height=6cm,             xlabel={Predictive models}, ylabel style={align=center},             ylabel={Predicitve accuracy (\%)},             symbolic x coords={ensemble voting, lung cancer calculator},             xtick=data,              xticklabel style={text width=2cm, align=center}         ]         \addplot coordinates {             (lung cancer calculator,91.2)             (ensemble voting,91.4)         };         \end{axis}     \end{tikzpicture}      ## Output ![output image](http://i.stack.imgur.com/MGakw.png)


title: How to reset TikZ‘s externalization counter?

text: TikZ‘s externalization feature creates – by default – images like “nameOfFile- figure0.pdf”, “nameOfFile-figure1.pdf” and so on. One can change this behavior, for example I configured TikZ to save similar figures in the same directory. However I was unable to find out how to reset the counter, so that the next figure will be saved as “…-figure0.pdf”. Probably one has just to know the counter name. But sadly enough, i cannot google it. If anyone is wondering why this could be useful: I am writing a beamer presentation and split a TikZ picture on multiple frames (see this question). The given solution works, but I cannot name the following picture (it would be overwritten by the following one), so I set a specific directory for a new picture. Then it would be more convenient to start with “0” again for each directory, so adding a new picture at the beginning of my document would not force me to recompile everything.


title: Listings package - the symbol \ isn't colored while rest of the macro is

text: I am using the package `listings` for code printing, but I have come across a problem. I usually write down a `lstlisting` environment like this (this is for the LaTeX language):               \begin{lstlisting}[style=latex,caption=Skelet.,label=skelet]     \documentclass[10pt]{book}     \usepackage[utf8x]{inputenc}     \usepackage[T1]{fontenc}          \begin{document}          \end{document}     \end{lstlisting}      And specify a style **latex** in the preamble like this:               \lstdefinestyle{latex}{     language=[LaTeX]TeX,     numbers=left,     commentstyle=\color{red},      backgroundcolor=\color{gray},     keywordstyle=\color{red},     identifierstyle=,     tabsize=3     }      After compiling the source file I get a beautiful result but for example macros like `\input`, `\usepackage`, `\begin` don't have a sign `\` colored in red. How can I fix this? * * * **EDIT:** After using command `\ThisULCornerWallPaper` from package `wallpaper` I noticed that the accepted solution isn't working in general... ![enter image description here](http://i.stack.imgur.com/hqCRb.png)


title: How to change the spacing for chapters which are not numbered

text: I would like to make a custom TOC so that: Introduction    I.CHAPTER II. CHAPTER 1. Section 2. Section III. CHAPTER    List of figures List of tables Notes The main idea is that chapters without numbers have different spacing (before or after) between other chapters. How can I achieve this?


title: Problem with drawing thick line

text: With the solution posted here, I only changed a little (at line 17, I added `[thick, ->]` after `\draw`):               \documentclass[tikz,border=2mm]{standalone}          \begin{document}          \begin{tikzpicture}     [   cnode/.style={draw=black,fill=#1,minimum width=3mm,circle},     ]         \node[cnode=red,label=0:$\Sigma$] (s) at (6,-3) {};         \node at (0,-4) {$\vdots$};         \node at (3,-4) {$\vdots$};         \foreach \x in {1,...,4}         {   \pgfmathparse{\x<4 ? \x : "n"}             \node[cnode=blue,label=180:$x_{\pgfmathresult}$] (x-\x) at (0,{-\x-div(\x,4)}) {};             \node[cnode=gray,label=90:$\varphi_{\pgfmathresult}$] (p-\x) at (3,{-\x-div(\x,4)}) {};                  %%%%%%%%Changed this line                \draw[thick, ->] (p-\x) -- node[above,sloped,pos=0.3] {$\omega_{\pgfmathresult}$} (s);         }         \foreach \x in {1,...,4}         {   \foreach \y in {1,...,4}             {   \draw (x-\x) -- (p-\y);             }         }     \end{tikzpicture}          \end{document}      Here is the output: ![](http://i.stack.imgur.com/HC88o.png) Note that the texts with `\omega` have been changed to `0.8`. Why is this happening and how to fix that?


title: Help with a displayed formula with a determinant

text: \begin{center}     $      \delta =       \left|     \begin{array}{cc}      1 & x_{0} & x_{0}^{2} & ... & x_{0}^{n} \\      1 & x_{1} & x_{1}^{2} & ... & x_{1}^{n} \\     ............................ \\     1 & x_{n} & x_{n}^{2} & ... & x_{n}^{n} \\      \end{array}     \right|           = {\displaystyle \prod_{0\leq j < i \leq n} (x_{i} - x_{j})} $     \end{center}      It does not work! How can I do that `\delta` = Vandermond Determinant = `\prod`?


title: Centering title in bibliography with abntex2cite

text: i need some help. I'd like to change the title of my bibliography (Referências Bibliográficas), align left to centering, i'm using package abntex2cite to make my citations. My document class is a report. I've been tried to use titlesec package to change that, but didn't work. Here's a little part of my code:               \documentclass[12pt,a4paper]{report}     \usepackage[brazil]{babel}     \usepackage[utf8]{inputenc}     \usepackage[linktoc=all, pdftex, bookmarks=true]{hyperref}     \usepackage{titlesec}     \usepackage[alf, abnt-etal-list=0,abnt-emphasize=bf]{abntex2cite}          \begin{document}     \include{Capitulo1/Cap1}     \include{Capitulo2/Cap2}     \include{Capitulo3/Cap3}     \bibliography{Referencias}     \end{document}      Sorry my poor English. There's a image of what i wanna do bellow. ![Referencias Bibliograficas](http://i.stack.imgur.com/atdFZ.png) Cheers Jean.


title: Urgent help with preparing a table

text: ![enter image description here](http://i.stack.imgur.com/cyqz8.png) I'm writing my internship report and I need to include this Table, I wonder if there is someone who can help with the TeX program for this Tab.


title: Workflow to write article with orgmode/babel when knowing LaTeX

text: I know LaTeX pretty well and I am used to write articles with it. I know orgmode and use it to manage my todo list and research notes. I am trying to learn the babel module of orgmode, so that to write litterate programming articles where the algorithms are real codes and the examples are automatically computed. When the orgmode export encounters an error, I generate the LaTeX file, compile it and see the error code produced, to then debug the babel source. Is there a more direct way to see the error produced by the compilation of the latex code automatically generated by the export? I am using Org-mode version 7.9.3e and am reluctant to switch over to a more recent version before I have the time to revisit my configuration entirely :(


title: Three 'side to side' figures using minipage

text: I'm trying to set up a main figure containing three sub figures. The idea is to split them in such way that it shows a two columns figure where the second column is made out of two sub figures located in a row configuration. This might be hard to imagine, but the idea is to get something like this: ![enter image description here](http://i.stack.imgur.com/2jJZJ.jpg) where each sub figure has its own label and caption. My closest attempt consisted in an array/minipage configuration. This was:                \documentclass[11pt,a4paper,oneside]{article}         \usepackage{array}         \usepackage{caption}         \usepackage{subfigure}         \begin{document}             \begin{center}     \begin{figure}     \begin{array}{cc}     \multirow{2}{*}{     \begin{minipage}[b]{0.45\linewidth}     \centering     \includegraphics[scale=0.6]{smiley.eps}     \caption{Happy Smiley}     \label{fig:minipage1}     \end{minipage}}      &      \begin{minipage}[b]{0.45\linewidth}     \centering     \includegraphics[scale=0.3]{smiley.eps}     \caption{Happy Smiley}     \label{fig:minipage1}     \end{minipage}\\     &     \begin{minipage}[b]{0.45\linewidth}     \centering     \includegraphics[scale=0.3]{smiley.eps}     \caption{Happy Smiley}     \label{fig:minipage1}     \end{minipage}     \end{array}     \end{figure}     \end{center}         \end{document}      but the result wasn't good. ![enter image description here](http://i.stack.imgur.com/SMaU0.jpg) So, is this a right approach or should I try something different? Thanks in advance.


title: How may I add signatures to the lines of a tikz-tree?

text: Follow-up to drawing tree using tikz, child overlap Good evening, could you help me please with a tree a little bit? I saw your answer in one of the topics here (it's pointed in the topic of a letter) I wonder if there is any possibility to add signatures to the lines (in your example)?


title: lyx - Lost table of contents

text: All has been going well for weeks, but in an attempt to change font-style in headers, I've lost the table of contents: e.g. it doesn't show up in the pdf. **** Here's my preamble:               % DO NOT ALTER THIS PREAMBLE!!!     %     % This preamble is designed to ensure that the User's Guide prints     % out as advertised. If you mess with this preamble,     % parts of the User's Guide may not print out as expected.  If you     % have problems LaTeXing this file, please contact      % the documentation team     % email: lyx-docs@lists.lyx.org          \usepackage{ifpdf} % part of the hyperref bundle     \ifpdf % if pdflatex is used           % set fonts for nicer pdf view      \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}          \fi % end if pdflatex is used          % for correct jump positions whe clicking on a link to a float     \usepackage[figure]{hypcap}          % the pages of the TOC is numbered roman     % and a pdf-bookmark for the TOC is added     \let\myTOC\tableofcontents     \renewcommand\tableofcontents{%       \frontmatter       \pdfbookmark[1]{\contentsname}{}       \myTOC       \mainmatter }          % define a short command for \textvisiblespace     \newcommand{\spce}{\textvisiblespace}          % macro for italic page numbers in the index     \newcommand{\IndexDef}[1]{\textit{#1}}          % for customized page headers/footers     % only needed because they are only used in one section of the document     \usepackage{fancyhdr}     % change header rule width     \renewcommand{\headrulewidth}{1pt}     % workaround for a makeindex bug,     % see sec. "Index Entry Order"     % only uncomment this when you are using makindex     %\let\OrgIndex\index      %\renewcommand*{\index}[1]{\OrgIndex{#1}}     \setkomafont{pagehead}{\normalfont\sffamily\upshape}      **** And here's the lyx code:               dedicated to:Laurie, love of my life--- LloydJackie, my best half--- Jesseand to:the Open Source giantswho have given usLinux, Erlang, Nitrogen and so much else--- LRP & JG          \maketitle     \tableofcontents{}          \chapter*{Authors' Note}      **** Oh where o where can I find it again? Many thanks, LRP


title: KOMA-Script captionbeside and custom floats

text: In a KOMA-Script report, I want to use a custom float for algorithms and display an `algorithmic`-environment with a caption right next to it instead of below. Apart from the fact that I have to wrap the `algorithmic` in a `parbox` to avoid compiler errors, `captionbeside` has a problem with `float`-floats:               \documentclass{scrreprt}     \usepackage{float}     \floatstyle{plain}     \newfloat{myfigure}{t}{myfigure}     \begin{document}     % Works as expected: Left & Right on same line.     \begin{figure}         \begin{captionbeside}{Right}Left\end{captionbeside}     \end{figure}     % Doesn't work: Left on one line, Right below     \begin{myfigure}         \begin{captionbeside}{Right}Left\end{captionbeside}     \end{myfigure}     \end{document}      ![output](http://i.stack.imgur.com/6J28c.png) What's the difference between built-in floats and `float` floats? How can I get the `figure`-like result for everything?


title: My TeX file can not reat \qatop and \func

text: I want to open a latex file but it gives error , it can not understand               \QATOP      and                \func                    \begin{equation}     Li_{-r}\left( x\right) =\frac{\sum_{j=0}^{r}\left\langle \QATOP{r}{j}%      \right\rangle x^{r-j}}{\left( 1-x\right) ^{r+1}} \label{3}     \end{equation}%                \begin{equation*} \zeta \left( s\right) =\frac{1}{\Gamma \left( s\right) }\int_{0}^{\infty }t^{s-1}\frac{e^{-t}}{1-e^{-t}}dt\text{ \ for }\func{Re}\left( s\right) >1% \text{.} \end{equation*} –        how can I resolve it


title: esint - Step-by-step instructions for editing space between integral signs

text: I just don't know how to proceed in order to change the horizonal space between integral signs, when adding `\iint`or similar commands. I've read the documentation, but my knowledge of TeX structure limits me. May anyone help me in a detailed way? OS - Win7 64bit   TeX environment - MikTeX package (TeXWorks included)   TeX editor - TeXnic Center