title: Custom references page with additional line breaks

text: Is it possible by any chance to style the references page to match this:               [1] The Author, The Author2         "The title of some kind"         3rd. edition ISBN: xxxx-xxxx-xxxx-xxxx


title: Lyx citation style: et al only when three or more authors

text: I'm using lyx and bibtex for my master thesis. In lyx, I changed the bibliography style from standard to natbib (author-year). The problem occurs when I cite a paper with two authors. The reference to the paper is then like "Kahneman et al. (1979)" instead of "Kahnemann & Tversky (1979)". According to Harvard citation style, "et.al." should be used when three or more authors, not for two. Is there a way to change this?


title: How to cite a book chapter written by an author that is not the editor or author of the book with BibTeX?

text: I don't know how to cite a chapter written by an author that is not the editor or author of the book. How can I get the following citation? Grandstrand, O. (2004), 'Innovation and Intellectual Property Rights', in J. Fagerberg, D.C. Mowery and R.R. Nelson (Eds.), Oxford Handbook of Innovation. Oxford University Press: Oxford.


title: Citing a portion of a larger work

text: I'm citing a technical report that is made up of a number of large chapters, each with their own authors. Each chapter states something like this: > Cite as: > > Sub-author 1, sub-author 2. (year). Chapter title. In: editor 1, editor 2 > (eds): _Report title._ Is there a proper way to cite something in this way using BibTeX? I haven't found anything useful through searching. Should I just cite the overall work, or should I take details from both to come up with a more usual citation entry that doesn't include "In:"?


title: Need help adding arrows to my comutative diagram

text: I am trying to draw a commutative diagram using Tikz, and am having a bit of trouble adding arrowheads between all of the functions I found some code for this online,and I have modified it, but am only getting an arrow between X and Y, and not any of the other functions. Here is what I have:               \begin{document}     \documentclass[12pt,a4paper,oneside]{report}     \usepackage[left=2.00cm,right=2.00cm,top=2.45cm,bottom=2.5cm]{geometry}     \usepackage{amsmath,amssymb,amscd,amstext}     \usepackage{color,epsfig,fancyhdr,latexsym,slashed}     \usepackage[thmmarks]{ntheorem}     \usepackage{tikz, subfig}     \usepackage{verbatim}     \usetikzlibrary{matrix,arrows}     \begin{tikzpicture}     \matrix (m) [matrix of math nodes, row sep=3em,     column sep=2.5em, text height=1.5ex, text depth=0.25ex]     { X & & Y \\     & Z & \\ };     %\draw[->] (m-1-1) – (m-1-3);       \path[->,font=\normalsize]       (m-1-1) edge node[auto] {$ f $} (m-1-3)       edge node[auto] {$ h $} (m-2-2)       (m-1-3) edge node[auto] {$ g $} (m-2-2);     \end{tikzpicture}      Thanks.


title: What needs to be introduced in a short introduction to LaTeX?

text: One of the things listed at the _How you can help in the TeX community_ page of the TUG website is: > We'd like to have an ‘introduction to LaTeX’ document that falls somewhere > between the brevity of `sample2e.tex` and the completeness of A Not So Short > Introduction, with a strong focus on examples rather than discursive > explanations. What things do you think need to be included in such a document? If you were writing such an _Introduction to LaTeX_ , of say 20 pages, how would you structure it? With any luck, I hope that this question will lead to the writing of exactly this kind of introduction to LaTeX document. I'll set up a github later…


title: Multiple alignment

text: In the following piece of code               \begin{align*}     [x \mapsto s]x &= s \\     [x \mapsto s]y &= y \qquad \text{als } y\neq x \\     [x \mapsto s](\la{y}t_1) &= \la{y}[x \mapsto s]t_1 \qquad \text{als } y \neq x \text{ en   } y \not \in FV(s) \\     [x \mapsto s](t_1 \; t_2)&= ([x \mapsto s]t_1)\;([x \mapsto s]t_2)     \end{align*}      I am currently only aligning on the = sign. Is it however also possible to align on more than one place in the environment? I would also like the \text to be aligned, as wel as the begining of each new line.


title: Marginal enumeration not in the margins

text: Based on an answer to one of my previous questions, I implemented the following code which is supposed to enumerate examples discretely in the margins of my document:               \documentclass{memoir}          \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{amsmath,amssymb,geometry,graphicx,amstext}          \usepackage[amsmath]{ntheorem}          % margin theorem     \makeatletter     \newtheoremstyle{mymargin}%     {\item[\theorem@headerfont \llap{##1 ##2}]}%     {\item[\theorem@headerfont \llap{##1 ##2}| ##3\theorem@separator\hskip\labelsep]}%     \makeatother          % my example     \theoremstyle{mymargin}     \newtheorem{example}{Example}     \numberwithin{example}{chapter}     \begin{document}         \begin{example}             \centering             \begin{tabular}{cccc}                 this & is & a & test\\                 table & where  & text & goes             \end{tabular}         \end{example}     \end{document}      This produces the following output: ![enter image description here](http://i.stack.imgur.com/K53lo.png) As you see, because the table is centered, the **example number is not actually _in_ the margins**, which is my major concern. Furthermore, I would like the number to appear aligned with the top of the table and always on the same page as the table (which is not always the case either). Finally, I would like the number always to appear in the outer margin when the two-page option is on. How may this be fixed?


title: Formatting the year in biblatex bibliograpy driver (.bbx) files

text: Normally, to set the format of a field using `biblatex`, the `\DeclareFieldFormat` macro can be used, for example               \DeclareFieldFormat[article]{title}{\mkbibemph{#1}}      However, this approach fails for the year. Trying either               \DeclareFieldFormat{year}{\mkbibbobld{#1}}      or               \DeclareFieldFormat{date}{\mkbibbold{#1}}      Makes no difference to the output. You can do something like               \renewbibmacro*{date}{\mkbibbold{\printdate}}      to format the date, but this looses the link to bibliography entry type and thus requires more work for type-dependent appearance. Is there a better approach, ideally sticking to `\DeclareFieldFormat`?


title: Paracol package: undefined environments

text: I got the `LaTeX Error: Environment leftcolumn* undefined` with the next MWE:               \documentclass{article}     \usepackage{paracol}          \begin{document}          \begin{leftcolumn*}     \subsection{%     Environments \texttt{leftcolumn} and\\     \texttt{rightcolumn}}     The environments |leftcolumn| and     |rightcolumn| (and their starred versions     with an optional argument) are available as     more convenient means than saying     |\begin{nthcolumn}{0}| to switch to the     left(most) column and ...     \begin{figure*}...\end{figure*}     \begin{figure}[t]...\end{figure}     \end{leftcolumn*}     \begin{rightcolumn}     source and a figure env     \end{rightcolumn}          \end{document}      It's very strange, so I don't know maybe if you compile it, it's will be okay. I'll show the evidence screenshot. ![Paracol strange error](http://i.stack.imgur.com/TrWP3.jpg)


title: Error when trying to use \MakeTextUppercase to customize the table of contents

text: I get the following error when trying to use `\MakeTextUppercase` to customize the table of contents:               ! Undefined control sequence.     \find@pdflink ...ode \protected@edef \Hy@testname                                                    {#2}\ifx \Hy@testname \@em...      l.2 ...entsline {chapter}{Contents}{1}{section*.1}      Any idea of what's going on? I've included a minimum example below for testing.               \documentclass[a4paper, 10pt, english]{memoir}          \usepackage{babel}     \usepackage{csquotes}     \usepackage{textcase}     \usepackage{lipsum}     \usepackage{hyperref}          \renewcommand{\cftchapterfont}{\MakeTextUppercase}                    \begin{document}          \tableofcontents          \chapter{Test}     \lipsum          \end{document}


title: How to easily visualize reference IDs?

text: I have about two hundred bibtex references in my document. Sometimes I am browsing the references section and find something that I want to use again. Let's say there is an item like the following:               [45] Smith, John. Whatever paper, 2013      The problem is then which ID should I use in order to add another reference to the same paper? There are two ways to include such reference again:   1. Search for "Whatever paper" in the bibtex file and see that the ID is "`smith2013.blablabla`".   2. Search for [45] on the generated PDF file, then find a text like "`according to Smith [45]`", then go to the TEX file and find "`according to Smith \cite{smith2013.blablabla}`". This is obviously time consuming. It would be much better to see those IDs on the exported references:               [45] [smith2013.blablabla] Smith, John. Whatever paper, 2013      I only want to see this while I am writing the document, so it should be easy to remove those IDs when I generate the final version.


title: How can I label \rightleftarrows above and below?

text: How can I label `$\rightleftarrows$` above the top arrow and below the bottom arrow?


title: Dimension too large on a PNG figure under xelatex and beamer

text: I have PNG image I want to introduce into my presentation. The figure is black and white and the edges are small. When I compile the file in `pdflatex` everything is fine but when I Compile it with `xelatex` I get `!dimension too large` error:               [1] <use  "./figs/surface.png" > [2]     ! Dimension too large.     <to be read again>                         b     l.31 \end{frame}      The line I use:                 \includegraphics<2> [width=0.8\textwidth]{./figs/surface.png}\par      And the file:![enter image description here](http://i.stack.imgur.com/yL45X.png) Here is a MWE:               \documentclass[bigger]{beamer}     \begin{document}          \begin{frame}{Coarse-Grained (CG) simulation of a membrane}       \begin{columns}         \begin{column}{0.6\textwidth}           \includegraphics<2> [width=0.8\textwidth]{./figs/surface.png}\par           \includegraphics<3> [width=1.0\textwidth]{./figs/a_lipid_CG.jpg}         \end{column}         \begin{column}{0.4\textwidth}           \begin{itemize}             \item bla           \end{itemize}         \end{column}       \end{columns}     \end{frame}               \end{document}      Here are links to the used files: http://www.4shared.com/photo/EK4CPOF2/a_lipid_CG.html http://www.4shared.com/photo/un7JtzXa/surface.html


title: Code over two Pages and continue counting Lines

text: I'm using Minted to show my Javascript Code. It seems not possible to spread a code with Minted over two pages. So i do it like shown in Algorithm over two pages, with itemized lists. But the Code reset the line counting. They use : `\algstore{myalg}` and `\algrestore{myalg}` for Algorithms. is there a same instructions to saving counting for Minted? **Code :**               \documentclass{article}     % define the program :     \newfloat{program}{tbp}{lop}}%     \usepackage{caption}     \usepackage{minted}     \newminted{javascript}{bgcolor=lightgray,linenos=true,fontfamily=courier,fontsize=\footnotesize,frame=single}          \begin{document}     \begin{program}[H]     \begin{javascriptcode}      \\Code Part 1     \end{javascriptcode}     \caption{Same Caption}     \label{prog:samelabel}     \end{program}          \newpage          \begin{program}[H]      \ContinuedFloat     \begin{javascriptcode}      \\Code Part 2     \end{javascriptcode}     \caption{Same Caption}     \label{prog:samelabel}     \end{program}     \end{document}      **Overview First Page**               1 <html>     2  <body>      3   <script type="text/javascript">     4      document.write("Ich bin ein Javascript Code!");      **Program 1.2 Same Caption** **Overview Second Page**               1   </script>      2  </body>     3 </html>       **Program 1.2 Same Caption** That the caption are the same is ok, but the numbering is resetting on the next page. **Edit 1:** In the Minted and Fancyvrb Documentation i see an Option : `[firstnumber=last]` that means that the numbering is continued from the previous Float. How can i use it here? i tried :               \begin{program}[H]      \ContinuedFloat     \begin{javascriptcode}[firstnumber=last]      but this dont do the Trick.


title: Glossaries: Hyperlink to First Entry not List of Acronyms

text: Is it possible to direct the hyperlink created by `\gls{term}` to the first use of the term in the main text instead of the glossary list? I'm writing a thesis that uses a lot of abbreviations, but I don't want to include a glossary list in the document. Rather, I'd like to define each abbreviation on first use but provide a hyperlink to the first use during all subsequent uses of the abbreviation. Is this possible? The following is an example of the code I'm currently using to set-up the `glossaries` and `hyperref` packages and define a term:               \documentclass{report}     \usepackage[acronym,hyperfirst=false,nonumberlist,nowarn]{glossaries}     \usepackage[hidelinks]{hyperref}     ...     \newacronym{FEA}{FEA}{Finite Element Analysis}     ...     \begin{document}         ...this includes a \gls{FEA} tool to...    % first use of term         ...the \gls{FEA} tool...                   % subsequent uses of term, want to hyperlink to first use above within PDF     \end{document}


title: complexity package: disable banner

text: The `complexity` package uses the `\typeout` command to print a banner when the package is loaded. What is the correct way to disable the banner (other than editing the source code of the package)? * * * MWE:               \documentclass{article}     \usepackage{complexity}     \begin{document}$\P = \NP$\end{document}      Compile with "pdflatex". During the compilation, you will see something like this:                 +----------------------------------------------+         complexity LaTeX package          version:          author: Chris Bourke (cbourke@cse.unl.edu)        +----------------------------------------------+


title: \dimexpr replacement/"expansion" without eTeX

text: I want to use `\'{\i}` in a bookmark. While it works without problems when eTeX is there, I cannot use e.g. `\dimexpr` without eTeX. (And the current version of my TeX distribution does not contain eTeX support yet.) Is it possible to "expand" the `\doaccenti` into a form which TeX understands without eTeX, please?               \documentclass{report}     \usepackage[unicode=true,bookmarks=true]{hyperref}          \makeatletter     \newcommand{\doaccenti}{\8\number\dimexpr0.00390625\dimexpr\number"00EDsp\relax\relax     \expandafter\HyPsd@unichar@second@byte\expandafter{%     \number\numexpr"00ED-256*\number\dimexpr0.00390625\dimexpr\number"00EDsp%     \relax\relax\relax}}     \makeatother          \begin{document}          \section[\texorpdfstring{\'{\i}}{\ifpdfstringunicode{\doaccenti}{i}}]{\'{\i}}          Text.          \end{document}      * * * Thank you for the answers! > I'm curious now: which (La)TeX distribution are you using? (in which version > and OS) MacKichan ScientificWorkPlace 5.50 Build 2960 (Windows XP) > But you'd better upgrade you TeX distribution if possible It is the recent version. A new version is planned. > \section[\texorpdfstring{\'{\i}}{% > \ifpdfstringunicode{\string\000\string\355}{i}}]{\'{\i}} works with LaTeX > built on "Knuth TeX". Thus SWP is not LaTeX built on "Knuth TeX", unfortunately (does not compile). I tried               \documentclass{report}     \usepackage[unicode=true,bookmarks=true]{hyperref}          \def\doaccenti{\80\355}          \begin{document}          \section[\texorpdfstring{\'{\i}}{\ifpdfstringunicode{\doaccenti}{i}}]{\'{\i}}          Text.          \end{document}      (as well as the other approaches), but got a:               ! TeX capacity exceeded, sorry [save size=5000].     @if ...1expandafter @gobbletwo string #2endcsname                                                        {let #1#2}     l.1449 \newif\ifcheckat@          If you really absolutely need more capacity,     you can ask a wizard to enlarge me.       :-( What can I do now? (Sorry for posting as answer & thanks Mr Scharrer! I did not see any "Comment" fields because I was not registered yet. Changed that now.) OK, I found that even               \documentclass{report}     \usepackage[unicode=true,bookmarks=true]{hyperref}     \begin{document}     \section[\texorpdfstring{i}{i}]{i}     Text.     \end{document}      does not compile, but **Solution** :               \documentclass{report}     \usepackage{xcolor}     \pagecolor{white}     \usepackage[unicode=true,bookmarks=true]{hyperref}     \begin{document}          \section[\texorpdfstring{\'{\i}}{\ifpdfstringunicode{\80\355}{i}}]{\'{\i}}          Text.          \end{document}      does function properly! Nevertheless, while this solved the problem, I would still be curious why the               \usepackage{xcolor}     \pagecolor{white}      is needed?!


title: Print macro signature

text: I am looking for a way to have a readable documentation of a macro signature (probably not the correct wording, but I mean the same thing as a function signature) in the source code and in the output file. A macro signature can be printed using for example the `\cmd` command from the ltxdoc package, e.g.               \cmd{\myCommand[my optional argument]{my mandatory argument}}      which is quite readable in the source code, but prints as               \myCommand[my optional argument]my mandatory argument      in the output file. This can, of course, be changed into               \cmd{\myCommand[my optional argument]\{my mandatory argument\}}      which gets printed as               \myCommand[my optional argument]{my mandatory argument}      but the source code readability is decreased, especially if there are many mandatory arguments. There are more commands defined in ltxdoc, but they all decrease source code readability and do not solve the problem. Is there a way to define a macro `\command` to have both a readable source code and the correct output? For a readable source code, I think               \command{\myCommand[my optional argument]{my mandatory argument}}      would be the preferred way. But all trivial approaches to write such a macro fail, as the braces are already lost, when `\command` gets called. Is there some way to change some catcode or something locally, so that the braces do not get lost? Is there some other clever syntax to achieve readability without problematic braces? Ideally, the command would support all possible definition when using xparse.


title: Loading table with zero values in pgfplots

text: I'm trying to create a stacked bar plot where the data is loaded using the `pgfplotstableread` command. I want to use a logarithmic scale rather than a normal scale. However, when I change the`axis` environment to `semilogyaxis`, pdfplots gives an error: > ! Package pgfplots Error: Sorry, pgfplots expects stacked plots to have > exactly the same number of coordinates. Unfortunately, I encountered at plot > with DIFF ERENT NUMBERS OF COORDINATES. Please verify that 1. no point has > been dropped b y coordinate filters (for example log(0) or so) and 2. all > plots have the same number of coordinates.. The problem lies with the fact that I have zero values in my dataset. These values do not represent missing values, but I think that pgfplots thinks they are. How can I correctly plot my data (containing zero values) on a logarithmic scale?               \documentclass{article}     \usepackage{pgfplots, pgfplotstable}          \begin{document}     \begin{tikzpicture}     \pgfplotstableread{     X   Gp  C1  C2  Name        Zn      Pb     1   1A  0.2 3   Duracem     47.2    12     2   1A  0.2 3   Technocem   0      11     3   1A  0.2 3   Alipre      28      13     5   1A  0.2 8   Duracem     16.2    12     }\datatable          \begin{semilogyaxis}[         axis lines*=left, ymajorgrids,         width=5cm, height=6cm,         ymin=0,         ybar stacked,         bar width=8pt,         xtick=data,         xticklabels from table={\datatable}{Name},         xticklabel style={rotate=90,xshift=-10ex,anchor=mid east}     ]     \addplot table [x=X, y=Zn] {\datatable}; \addlegendentry{Zn}     \addplot table [x=X, y=Pb] {\datatable}; \addlegendentry{Pb}          \end{semilogyaxis}     \end{tikzpicture}     \end{document}


title: How to express a polar coordinate for a macro that only accepts space-separated values?

text: `\psElectricfield` only accepts a coordinate in space-separated values as follows. For example, a charge of -0.1 unit at (-1,0) is written as `[-0.1 -1 0]`. I have attempted to write in PS notation but it still does not work.               \documentclass{article}     \pagestyle{empty}          \usepackage{pst-electricfield,multido}     \def\M{2}          \begin{document}     \multido{\i=0+30}{12}{%     \begin{pspicture*}(-\M,-\M)(\M,\M)         \psElectricfield         [             Q={[-0.1 -1 0][-0.1 1 0][0.1 !\i sin 2 mul \i cos 2 mul]}         ]     \end{pspicture*}\newpage}     \end{document}      How to express a polar coordinate for a macro that only accepts space- separated values?


title: References used in article

text: How to verify all the references used in the article or not from the auxiliary file? or is there any other file to check it? If any one reference not included in the article, whether that reference highlighted by red colour?


title: Arxiv undefined control sequence. \XKV@tempa ->\field

text: I would love to upload my document to ArXiv, but ArXiv cannot process my file:               Package biblatex Warning:      File 'myfile.bbl' created by wrong version.     ! Undefined control sequence.     \XKV@tempa ->\field           l.1324 \end     {document}     ?      ! Emergency stop.     \XKV@tempa ->\field       I am using the following packages:                   \usepackage{amsmath}     \usepackage{mathtools}     \usepackage{xfrac}     \usepackage{xspace}     %\usepackage{subfig}     \usepackage{xargs}     \usepackage{amssymb}     \usepackage[margin=1.0in]{geometry}     \usepackage{enumerate}     \usepackage{authblk}     \PassOptionsToPackage{style=numeric-comp,citestyle=numeric-comp,firstinits=true,doi=false,url=false,isbn=false}{biblatex}     \usepackage{biblatex}      I am using TeXShop 3.23 on mac and I don't get those errors. I guess I have a differnent `.sty`? I have the feeling that `biblatex` is causing the problems, since I could upload without this packages and references. Does anyone know what I could do? Thanks


title: How to make an arrow bigger and change its color in TikZ?

text: I draw a line with an arrow at the end by `\draw[->] ...`. Now I would like to make the arrow bigger, and change its color to red (without impacting the line). Does anyone know how to do it?


title: A macro of drawing a rectangle with several parameters in TikZ

text: I draw a kind of box in TikZ very often, so I decide to make a macro, even though I have never done it before... The aim is to draw a rectangle. 4 parameters (`1`, `7`, `4`, `8` in the figure) mean its bounds, which are displayed above and on the left hand of the rectangle. `text` is the text inside the rectangle. And I guess another 2 parameters are needed to determine the real width and height of the rectangle. I have no clue about writing a macro, could anyone give a framework to start? ![enter image description here](http://i.stack.imgur.com/6dhXM.png)


title: How to compile using a long command with many options for ps2pdf?

text: I'm using Texmaker and need to compile using `latex`, `biber`, `latex`, `latex`, `dvips`, `ps2pdf`. If compiling from command line, doing               latex -interaction=nonstopmode file.tex     biber file.bcf     latex -interaction=nonstopmode file.tex     latex -interaction=nonstopmode file.tex     dvips -o file.ps file.dvi     ps2pdf -dMaxSubsetPct#100 -dCompatibilityLevel#1.2 -dSubsetFonts#true -dEmbedAllFonts#true -dAutoFilterColorImages#false -dAutoFilterGrayImages#false -dColorImageFilter#/FlateEncode -dGrayImageFilter#/FlateEncode -dModoImageFilter#/FlateEncode -dDownsampleColorImages#false -dDownsampleGrayImages#false -dDownsampleMonoImages#false -dColorImageFilter#/FlateEncode -dPDFsettings#/prepress file.ps file.pdf      everything works fine. But when configuring a custom command in Texmaker like               latex -interaction=nonstopmode %.tex|biber %.bcf|latex     -interaction=nonstopmode %.tex|latex -interaction=nonstopmode %.tex|dvips -o %.ps %.dvi|ps2pdf -dMaxSubsetPct#100     -dCompatibilityLevel#1.2 -dSubsetFonts#true -dEmbedAllFonts#true -dAutoFilterColorImages#false -dAutoFilterGrayImages#false -dColorImageFilter#/FlateEncode -dGrayImageFilter#/FlateEncode -dModoImageFilter#/FlateEncode -dDownsampleColorImages#false -dDownsampleGrayImages#false -dDownsampleMonoImages#false -dColorImageFilter#/FlateEncode -dPDFsettings#/prepress %.ps %.pdf|"C:/Program Files (x86)/Adobe/Reader 10.0/Reader/AcroRd32.exe" %.pdf      the creation of PDF fails. There is an error saying that the file cannot be found, but the message is gone too fast for me to entirely read it... What am I doing wrong?


title: Using tikzexternalize with pdflscape results in rotated image

text: When using the `external` TikZ library to externalize an image in a `pdflscape` `landscape` environment, the resulting image is rotated by 90 degrees. This does not happen when including "normal" images. How can I avoid this? Or is there another way to have a single landscape page in a PDF that is also displayed in landscape mode in the viewer? I want the document to look the same, whether `\tikzexternalize` is active or not, so just wrapping the `tikzpicture` in `\rotatebox{90}` is, unfortunately, not an option. In my real document, only one page is in landscape mode, so unfortunately I can't just use the `landscape` option of the documentclass. Also, I'm using `memoir` for my actual document, in case that makes a difference for the solution. MWE:               \documentclass{article}     \usepackage{pdflscape}     \usepackage{mwe} % For the example image     \usepackage{tikz}     \usetikzlibrary{external}     \tikzexternalize % Without externalization, the orientation is correct     \tikzset{external/force remake}               \begin{document}     \lipsum[1-5]       \begin{landscape}         \includegraphics[width=4cm]{example-image-a}         \begin{tikzpicture}           \node [scale=5] {A};         \end{tikzpicture}       \end{landscape}     \end{document}      Output with `\tikzexternalize` commented out: Everything's fine ![](http://i.stack.imgur.com/Pytok.png) With `\tikzexternalize` uncommented: The TikZ `A` is rotated incorrectly: ![](http://i.stack.imgur.com/cg16j.png)


title: Problems using widetext.sty

text: I need to prepare a document for a journal and I'm using the `twocolumn` option in the `article` class. Now I have a horrible equation that makes use of the `cases` environment so it's hard to split up to make it fit into one column. I do not want to use the `figure*` environment because I have no control over where to put the equation. What I want to do is to use the `widetext` package and make sure that this equation looks something like it would like when one uses `revtex4`. However, when compiling my document I get an error, namely "improper `\prevdepth`". Does anyone have a clue what I have to do here? A minimum working example (using the actual formula)               \documentclass[twocolumn]{article}     \usepackage{widetext}     \usepackage{flushend}     \usepackage{cuted}          \begin{document}          a lot of text ...               Here     \begin{widetext}     \begin{eqnarray} \label{e27}     T_{nn''}^{mm''}=({-}1)^{p-p''}\,\dil_0^{\infty}\,J_{m-m''}(au)\,J_{n''}(bu)\,J_{n+1}(u)\,du~=     \begin{cases}     & \dfrac{(q{+}p'')!\,(p{-}p'')!}{(q{-}q'')!\,(p{+}q'')!}\,a^{m-m''}b^{n''}\,P_{p-p''}^{(m-m'',n'')}(1{-}2A^2)P_{p-p''}^{(m-m'',n'')}(2B^2{-}1)~~~ \\ & \text{when}~~~n-n''\geq m-m''\geq0~,\\     \\     & \dfrac{(p{+}q'')!\,(q{-}q'')!}{(p{-}p'')!\,(q{+}p'')!}\,a^{m''-m}b^{n''}\,P_{q-q''}^{(m''-m,n'')}(1{-}2A^2)\,P_{q-q''}^{(m''-m,n'')}(2B^2{-}1)~~~ \\ & \text{when}~~~ n-n''\geq m''-m\geq0~, \\     \\     &0 ~~~ \text{otherwise}.     \end{cases}     \end{eqnarray}     \end{widetext}          a lot more text....     \end{document}      Any help would be greatly appreciated!


title: Beamer: suffix equivalent frametitles with a counter or index?

text: I wonder how to suffix equivalent frametitles with a counter or index. So for example, when I would have two slides with the same `\frametitle` (e.g. " _Marvelous title_ "), it should result in               Marvelous title (1)     Marvelous title (2)      I know, adding the "(1)" and "(2)" manually is not much work, but I'm asking myself whether it could be done automatically.


title: Separate column in table of contents (in Memoir)

text: I'm curious if there is a way to have another "column" of numbers in the Table of Contents. The book I'm trying to typeset has a column of chapter and section titles, a corresponding column of subsection number-ranges and a corresponding column of page numbers. So, for example, for chapter one section one, which has subsections one through five on it, and is on page 2, the line would read: 1.1 Section Title ..... 1-5 ... 2 I've looked at the `memoir` and `titletoc` documentation, but to no avail. The output should look something like this: ![an example of the TOC I'm trying to create: columns for 1\) chapter number and name, 2\) Sections, 3\) Pages](http://i.stack.imgur.com/rynsr.png)


title: How can I draw a line from margin to margin, if the text width has been adjusted using the changepage package?

text: I have a problem with drawing a line across the page (from margin to margin). I had to change default margins for title page (only for this page) and to do that I used `changepage` package.               \thispagestyle{empty}     \begin{adjustwidth}{-1cm}{-1cm}     ...     ...     ...     \end{adjustwidth}      Everything looks great however lines which I draw using               \rule{\textwidth}{.1pt}      aren't drawn from margin to margin. The line starts at goo point however line clearly ends before text. How can I fix that ?


title: Caption on the side of a figure

text: Can anyone tell me how to get my caption on side of my figure, and at the same time aligned with the top of my figure?


title: Is it possible to cite a webpage using amsrefs?

text: I'm (becoming) familiar with amsrefs' limited bibliography entry types and would like to know how one could add an entry type for citing a web page. According to the documentation for the package (at the bottom of page 14) , I just need to use the `\BibSpec` command, but I'm not entirely certain of the details in doing so. For example, where would I include this command? And what does the interior formatting look like for a webpage entry? A second question is whether I'm better off "creating" a webpage entry by abusing the `article` entry. If so, what would that look like? It's definitely too bad that there's no support for the `misc` entry type in amsrefs. I'm refusing to switch to BibTeX at this point on a simple bet with a mate, which I may lose very soon. Thanks for any help.


title: How to "demux" several aspects from a `\foreach` variable with `\ifstrequal`?

text: > How can I "demux" several features from a mode specification given in a > `\foreach`? I would like to use a `\foreach` to draw several nodes in a TikZ picture. The loop will specify a mode for each node, and, in turn, the mode will be used to set several features of the style and position of the node. Since the mode specifies a group of features, I want to "demux" those features from the mode specification, rather than having to list each feature in the `\foreach`. A minimal not-working example is               \documentclass{standalone}     \usepackage{tikz}     \usepackage{etoolbox}          \begin{document}     \begin{tikzpicture}       \foreach \mode/\loc in {small/{(0,0)}, large/{(2,0)}}       {         \edef\myscale{\ifstrequal{\mode}{large}{1}{0.25}}         \edef\mycolor{\ifstrequal{\mode}{large}{black}{gray}}              \typeout{\meaning\myscale}         \typeout{\meaning\mycolor}         \node [scale=\myscale, color=\mycolor, draw] at \loc {\myscale\mycolor};       }     \end{tikzpicture}     \end{document}      If I try to compile this, I get the error `! Package xcolor Error: Undefined color \ifstrequal{small}{large}{black}{gray}.` It seems that the conditional needs to be expanded before being passed to the style, but I do not know how to do this. Surprisingly (at least to me), if I remove `scale=\myscale, color=\mycolor` from the style, then I get the following output. ![enter image description here](http://i.stack.imgur.com/azYCe.png) So, for some reason, the node text expands the conditional, but the style does not. ( _Aside question:_ Why do my images in posts always turn out so small?) **Edit:** It appears that the `\foreach` is somewhat of a red herring for the above error message. Specifically, the following simpler code produces the same error:               \documentclass{standalone}     \usepackage{tikz}     \usepackage{etoolbox}          \begin{document}     \def\mode{small}%     \begin{tikzpicture}       \node [scale=\ifstrequal{\mode}{large}{1}{0.25}, draw]             {\ifstrequal{\mode}{large}{1}{0.25}};     \end{tikzpicture}     \end{document}      Although @percusse's answer is best for my particular use, I'm still interested to know why this error occurs. Also, is it possible to force expansion of `\ifstrequal`?


title: Random character varients being used with fontspec

text: I'm trying to get the hang of xelatex and fontspec and I'm a little confused about how character variants are selected. I'm using the font Bickham Script Pro. Confusion (1) Some words are typesetting contain lowercase letters with fancy bits at the beginning or end of the letter which disturb the flow of the text. It makes the word look like it has a gap in it and looks ugly to the eye. The same letter in other words does not suffer as it is a different variant. Is there a way to control this? Confusion (2) There are different versions of capital letters which seem to be used at random. This adds some welcome variety to the text but again I would like to know if there is a way to control this. I spent the evening looking at the fontspec manual and the adobe character guide for the font trying to figure this out. Can someone help please?


title: Attempting to export tikz to eps

text: So, after having read the below thread: Attempt to export eps figures from TikZ fails I am able to generate .dvi versions of my figures. However, I need .eps, and it seems that the question above only covers getting the externalize library to work. It does so now, with no errormessages. But there is no eps-output. Reading the manual, it seems I have to add "pdftops -eps {pdf file} {eps file}" to the "system call option". Below is seen my attempt at doing so:               \documentclass{article}     \usepackage{tikz}          % set up externalization     \usetikzlibrary{external}     \tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error     -interaction=batchmode -jobname "\image" "\texsource" &&      dvips -o "\image".ps "\image".dvi pdftops -eps "\image".pdf "\image".eps}}     \tikzexternalize[shell escape=-enable-write18] % MikTeX uses a -enable-write18 instead of --shell-escape.          \begin{document}     \begin{tikzpicture}     \draw[fill=blue] (0,0) circle (1cm);     \end{tikzpicture}     \end{document}      as you can see, having no idea what to put in place of {some file}, I just copied the form of what was already there. The above does not generate any errors, nor any .eps-files. I am outputting to .ps format. I hope someone can explain to me how to add the proper option =)


title: Caption of longtable tables when using memoir

text: It seems the `longtable` package provides its own captions totally separate from the ones provided by `memoir`. There is a question on this site hinting at using the `caption` package for styling the `longtable` captions, however I am not sure the `caption` package should be used together with `memoir` since it provides its own captions which I don't want to have overloaded with other stuff. How would you recommend styling `longtable` captions when using the `memoir` captions for all other captions?


title: How can i use the LaTeX acronym package, and optionally create an acronym list in the document?

text: I write papers, reports, etc., and frequently use the same set of acronyms, so I thought it would be useful to just keep all the acronym definitions in a single file. Seems like the sensible approach to me. The problem is that sometimes I do want an acronym list, and sometimes I don't, and unfortunately, it seems that LaTeX doesn't provide an elegant way of doing this. If you define an acronym using `\acro` then latex _will_ put it in an acronym list, and if you define it with with `\acrodef` then it won't. It seems like this prevents me from keeping a single source file for all my acronyms and using it in both documents in which I would like an acronym list and documents in which I wouldn't. Does anyone know of an elegant solution for this?


title: Eqnarray vs align environments

text: I keep reading that `\begin{align}` is preferred to `\begin{eqnarray}`. Unfortunately, I can't get `align` to justify rcl. I'll change between `align` and `eqnarray`, and the rightmost column is right justified. So, align for me looks like rcr. Does anyone know what I could be doing? I want the old rcl justification. Thanks, Aaron


title: display algorithms side by side

text: This is what i tried, but i can get the algorithms to display side by side.               \begin{minipage}{\textwidth}     \centering     \begin{minipage}{0.48\textwidth}     \centering     %\begin{algorithm}     \captionof{algorithm}{alg1}     \label{alg:case3}     \begin{algorithmic}     \REQUIRE $\F$, $O''$,     \ENSURE $I''$     \STATE $P_O \leftarrow$  $O''$     \STATE I $\leftarrow$ \{$I_1,I_2,..., I_n$\};               \end{algorithmic}     \end{minipage}          \begin{minipage}[c]{0.48\textwidth}      \centering     %\begin{algorithm}     \captionof{algorithm}{alg2}     \label{alg:case2_2}     \begin{algorithmic}     \REQUIRE $T$,  $O''$, $I$,     \ENSURE $I''$     \STATE $P_O \leftarrow$  $O''$     \STATE $W'_O \leftarrow \O$          \end{algorithmic}     \end{minipage}     \captionof{figure}{Both alg}     \label{xxxxx}     \end{minipage}      Where could i be going wrong?


title: Frame number in beamer

text: I have the following in my document:               \documentclass{beamer}     \usepackage{xcolor}     \setbeamertemplate{footline}[frame number]          \usetheme{Goettingen}     \useinnertheme{circles}     \beamertemplatenavigationsymbolsempty          \setbeamertemplate{footline}[frame number]     \begin{document}               \frame{     \frametitle{test}     test     }     \end{document}      How can I make those frame numbers more bigger?


I am trying to compile latex code that imports CSV into a longtable (ltxtable). The code has been compiled successfully in windows while it makes error in Mac OS X.               \documentclass{article}     \usepackage{datatool}     \usepackage{filecontents}     \usepackage{ltxtable}          \begin{document}          %% Read CSV conents     \DTLloaddb[noheader,keys={abbr,desc}]{abbreviations}{abbreviations.csv}     \DTLsort{abbr}{abbreviations}%          %% Write CSV into LaTex file (ltxtable)     \begin{filecontents}{abbreviations.tex}     \begin{longtable}{>{\bfseries}l X}     \DTLforeach{abbreviations}{%     \abbr=abbr,\desc=desc}{%     \\     \abbr& \desc%     }     \end{longtable}     \end{filecontents}          %% Include the LaTex file (ltxtable)      \LTXtable{\textwidth}{abbreviations.tex}          \end{document}      Error:               Runaway argument?     \@nil \let \@dtl@line =\@dtl@trmstr \ifx \@dtl@line \@longempty \else \ETC.     ! File ended while scanning use of \@dtl@trim.      The CSV file has two columns like:               %% Abbreviations List        FHSS,Frequency Hopping Spread Spectrum     CRLB,"Cram\'{e}r-Rao Lower Bound"


title: Can one TeX file output to multiple PDF files?

text: I'd like to be able to create a TeX file that will output multiple PDF files with one compilation. I'm not even sure if this is possible. Here is the setup: I am writing dozens of cover letters for job applications, and wish for them to all look "personalized". So I defined a function which calls multiple variables, such as the address, name of the institution, open position, etc., and outputs a "personalized" cover letter for each function call. The problem is that compilation of the TeX file outputs just one file. Since I will be submitting all of these files online eventually, I would like each letter to be in its own file. Is there a way to do this at the TeX level?


title: It is possible to generate more than one pdf from one source?

text: I would like to generate some pdf files with a 'for' cycle. The documents have to be very similar, but some variables are different. It is possible to do it with only LaTeX language without external scripting?


title: Splitting a big document into several output PDF files

text: > **Possible Duplicate:**   >  Keep chapter number of chapters inserted with \include   >  Can one TeX file output to multiple PDF files? My document structure has:   * 1 file with preface;   * 12 individual `.tex` files representing chapters Each chapter has lots of figures (2D and 3D) so each `.pdf` has about 250Mb. Using the `\include` command I was able (more or less) to manage the compilation step, but for the final print step I'd like to have multiple `.pdf`, not a single huge `.pdf`. Is there a way I can do this?


title: Chapters or sections in different files

text: > **Possible Duplicate:**   >  Keep chapter number of chapters inserted with \include I would like to write down a paper with 4 chapters or sections and I would like to write them in separate files and then compile all of them together (the references also). How can I do this?


title: compilation problem related to solution to "output multiple pdf files" : PLEASE HELP

text: Can someone please explain to me how to make the example sample solution, work with some actual text content? In particular, exact steps of compilation under a Unix environment... and a sample input text that includes a tabular and table along with some text. Cheers. Let me re-iterate, the example at stake is as follows:               \documentclass{article}          \ifx\conditionmacro\undefined       \immediate\write18{%         pdfLaTeX --jobname="\jobname1"         \gdef\string\conditionmacro{1}\string\input\space\jobname       }%       \immediate\write18{%         pdfLaTeX --jobname="\jobname2"         \gdef\string\conditionmacro{2}\string\input\space\jobname       }%       \immediate\write18{%         pdfLaTeX --jobname="\jobname3"         \gdef\string\conditionmacro{3}\string\input\space\jobname       }%       \expandafter\stop     \fi          \begin{document}          \ifnum\conditionmacro=1 Condition is 1\fi           \ifnum\conditionmacro=2 Condition is 2\fi          \ifnum\conditionmacro=3 Condition is 3\fi          \verb|\conditionmacro| is \texttt{\meaning\conditionmacro}.          \end{document}      [1] My first question: I receive errors when trying to compile this using               pdflatex --shell-escape myfilename.tex      [2] Where in that code can I embed my `\section{... content...}` that I want to compile? ## Thank you. > > When I am compiling sample example by Ulrik Fischer - >>Can one TeX file > output to multiple PDF files? - using >> >>> > pdflatex --shell-escape .tex > > I obtain the following errors >   >   >     restricted \write18 enabled. >     entering extended mode >     ! I can't find file `gdef'. >     <*> gdef >              conditionmacro{1}input newtester >     (Press Enter to retry, or Control-D to exit) >     Please type another input file name: >     ....etc... >   Also, where in that text do I embed my `\section{}` content? # Original question Ok. So I have one file that has many different sections; each sections includes tables and figures and text, etc... What they all share is the preamble and the `\usepackage`s. What I'd like is to generate for each section is a standalone pdf .... so when there are a few hundred sections, I'd like to have the corresponding pdf generated. For one, this way I hope to avoid floating problems, for another , I think it's cleaner. At last, none of the similar questions such as Can one TeX file output to multiple PDF files? does have the correct solution for my problem. And yes, I don't think the `\include{\section{..}} \include{\section{}}` works in this case. That's the closest I can think of.


title: Keep chapter number of chapters inserted with \include

text: Okay, I've puzzled over this for a while and I can't work it out. I have a document with several chapters, using the `memoir` class. I've separated each chapter into separate files, and I'm including them using `\input`. I did this because at times I may want to produce a file with just chapter 2, or just chapter 3 and not the others. But when I do this, the chapters get renumbered. How can I make my file customizable, so if I want to, I can make a pdf with just Chapter 2, or just Chapter 3, and no 1?


title: How to automate mpost for FeynMP Graphics via Texmaker + Miktex on Windows 8

text: Producing FeynMF graphs requires manual running of `mpost` command on `.mp` file at terminal each time after [latex] compiling the `tex` document. In other words it goes like this: `Latex + dvips + ps2pdf + View PDF` `mpost abc.mp` `Latex + dvips + ps2pdf + View PDF` As you can see it takes three steps to just compile a single LaTeX file. Is there a way to configure TeXmaker in order to run entire command with single stroke? How to automate this process? I am using latest edition of MiKTeX [not TeXLive 2012] on Win 8. Here is a minimal working example:               \documentclass[10pt,a4paper]{article}     \usepackage[latin1]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{feynmp}     \usepackage{rotating}     \setlength{\unitlength}{1mm}     \pagestyle{empty}     \begin{document}     \begin{center}     \begin{fmffile}{abc}         \begin{fmfgraph*}(50,50)                 \fmfset{curly_len}{1.5mm}                                        \fmfset{arrow_ang}{12}                                           \fmfset{wiggly_len}{4mm}                 \fmfset{wiggly_slope}{50}                \fmfleft{L}             \fmfright{R}             \fmftop{T}             \fmfbottom{B}             \fmflabel{$a_3$}{T}                     \fmflabel{$a_2$}{L}             \fmflabel{$a_4$}{R}             \fmflabel{$a_1$}{B}             \fmf{plain_arrow,width=2,tension=2}{L,v1}             \fmf{plain_arrow,width=2,tension=2}{v3,R}             \fmf{plain_arrow,width=2,tension=2}{T,v2}             \fmf{plain_arrow,width=2,tension=2}{B,v4}             \fmfdot{v1,v2,v3}                    \fmf{plain_arrow,lab.side=left, lab=$b$}{v1,v2}             \fmf{plain_arrow,lab.side=left, lab=$c$}{v2,v3}             \fmf{plain_arrow,lab.side=right,lab=$d$}{v3,v4}             \fmf{plain_arrow,lab.side=right,lab=$a$}{v4,v1}           \end{fmfgraph*}           \end{fmffile}           \end{center}     \end{document}


title: feynmf working but NOT feynmp (FIXED!)

text: I'm using Mac Mountainl Lion, TexShop (everything worked before on Leopard). This is the first time I use feynmp on Mountain Lion since I upgraded and it's not working. When I use feynmf it seems O.K. but everybody know feynmf produces ugly bitmaps. So what I'm I doing wrong here? EDIT (FIXED!!) I followed user egreg's advice and installed MacTex2012 and everything seems to work now. To summarize: (with abc.mp being the name of a specific Feynman diagram) With the old MacTex 2009 I had to manually open the abc.mp file with TexShop and choose MetaPost before Typesetting...after this step the abc.1 file is created and you can go back to your original TeX-file to Typeset with LaTeX and your Feynman diagrams should appear. Alternatively you download MacTeX 2012 and it will do everything for you automatically. This is what I did.


title: Monotype Gill Alt One MT and the fi fl ligatures

text: I have previously received help with getting the fi and fl ligatures working with the Berling font and now I found myself trying to do the same with the Gill Alt One MT font. The same approach does not seem to be working. With:               languagesystem DFLT dflt ;     languagesystem latn dflt ;          feature kern {     pos f h 500;     } kern;          feature liga {     sub f i by f_i;     sub f l by f_l;     } liga;      I get:               !LuaTeX error (file ./gillsans.TTF): Invalid glyph index (gid 251)      ==> Fatal error occurred, no output PDF file produced!      It is either the fi or fl but gid 251 is strange. Assuming that gid stands for glyph index I can't understand where 251 is comming from. The glyphs are at position 109 and 110 just as was the case for the Berling font. I have also tried `Script=Default` in the `setmainfont` call which seems to just have the effect that the feature file is ignored cause the kerning stops working as well. Once again I am at a loss. What else can I try?


title: Biblatex Customization and Problem with Babel

text: When I try to change the order of url and url date in biblatex via renewing url+urldate macro, errors arise. But it works fine when I disable babel. Errors:               ./mwe.tex:43: Use of \\blx@imc@bibstring doesn't match its definition. [\end]     ./mwe.tex:43: Extra }, or forgotten \endgroup. [\end]     ./mwe.tex:43: Argument of \@gobble has an extra }. [\end]     ./mwe.tex:43: Paragraph ended before \@gobble was complete. [\end]      Here is mwe:               \documentclass[11pt,a4paper,oneside]{article}         \usepackage[utf8]{inputenc}         \usepackage[T1]{fontenc}         \usepackage[a4paper, top=2.5cm, right=2.5cm, bottom=2.5cm, left=4cm]{geometry}         \usepackage[backend=biber, style=authoryear, date=year, firstinits=true, natbib=true]{biblatex}         \usepackage{csquotes}         \usepackage[turkish, shorthands=off]{babel}         \usepackage{filecontents}               \renewbibmacro*{url+urldate}{%       \iffieldundef{urlyear}         {}         {\setunit*{\addcomma\addspace}%          \printurldate}       \printfield{url}}               \begin{filecontents*}{\jobname.bib}       @online{doe2014,         author = {John Doe},         title  = {Lorem Ipsum},         date   = {2014},         url    = {http://www.invalidurl.com},         urldate = {2014-06-19}     }          \end{filecontents*}               \addbibresource{\jobname.bib}               \begin{document}          \section{mwe}     {      Lorem ipsum dolor sit amet, consectetur adipiscing elit \cite{doe2014}. Vivamus a fermentum tortor. Curabitur lacinia feugiat eros. Aenean sagittis pulvinar orci id sodales. Aenean vulputate leo elit, vitae euismod odio cursus sed. Integer nec risus semper, lobortis arcu nec, sodales urna. Sed convallis vitae justo nec vehicula. Maecenas eleifend, erat sit amet ultricies ultricies, mi nibh hendrerit arcu, in consequat leo dui vitae eros.       }          \printbibliography     \end{document}      mwe.bbl               % $ biblatex auxiliary file $     % $ biblatex bbl format version 2.3 $     % Do not modify the above lines!     %     % This is an auxiliary file used by the 'biblatex' package.     % This file may safely be deleted. It will be recreated by     % biber as required.     %     \begingroup     \makeatletter     \@ifundefined{ver@biblatex.sty}       {\@latex@error          {Missing 'biblatex' package}          {The bibliography requires the 'biblatex' package.}           \aftergroup\endinput}       {}     \endgroup               \refsection{0}       \sortlist{entry}{nyt}         \entry{doe2014}{online}{}           \name{labelname}{1}{}{%             {{uniquename=0,hash=bd051a2f7a5f377e3a62581b0e0f8577}{Doe}{D\bibinitperiod}{John}{J\bibinitperiod}{}{}{}{}}%           }           \name{author}{1}{}{%             {{uniquename=0,hash=bd051a2f7a5f377e3a62581b0e0f8577}{Doe}{D\bibinitperiod}{John}{J\bibinitperiod}{}{}{}{}}%           }           \strng{namehash}{bd051a2f7a5f377e3a62581b0e0f8577}           \strng{fullhash}{bd051a2f7a5f377e3a62581b0e0f8577}           \field{sortinit}{D}           \field{labelyear}{2014}           \field{datelabelsource}{}           \field{labeltitle}{Lorem Ipsum}           \field{title}{Lorem Ipsum}           \field{urlday}{19}           \field{urlmonth}{06}           \field{urlyear}{2014}           \field{year}{2014}           \verb{url}           \verb http://www.invalidurl.com           \endverb         \endentry       \endsortlist     \endrefsection     \endinput


title: $\epsilon$ undefined using Minion Pro with pdftex

text: I'm using MiKTeX 2.9 and have recently installed the Minion Pro fonts for use with `pdftex`. I followed the instructions available on CTAN to install them. Everything works as expected, but in place of the Greek letter epsilon I get a box with a cross (see below), and the following warning: ![enter image description here](http://i.stack.imgur.com/uYuiM.png) I found the issue was reported here, but I still can't fix it. `xelatex` works fine, but I'd like to to stick to `pdftex` so I can use `microtype`.               \documentclass{article}          \usepackage[T1]{fontenc}     \usepackage{MinionPro}          \begin{document}          Text here. $\epsilon$          \end{document}      ![enter image description here](http://i.stack.imgur.com/veQAA.png) * * * **UPDATE:** a set of instructions for the installation of the up-to-date FontPro scripts with MiKTeX can be found here.


title: Joining .synctex files of documents blended by \includepdf

text: When I typeset a journal issue, I first make the seperate articles, and I join them together (adding the Table of Contents and other stuff, that's irrelevant now). When I read the final `issue.pdf`, I often find small mistakes in the articles. However, the `Jump to Source` in context menu in TeXworks brings me only to the instruction `\includepdf` in `issue.tex`, and not to the correct file `a1/art1.tex`. Is there any way how to correctly join all the `.synctex.gz` files generated by all the articles and the issue itself, so that the forward-inverse-search works as I would like? I appreciate partial or non-automated solutions and ideas as well. MWE: File **`issue.tex`**               \documentclass{article}     \usepackage{pdfpages}     \begin{document}          \begin{center}     This is an issue 42 of Journal of funny \TeX\@ questions.\\     Contents:\\     Article One, on page 2\\     Article Two, on page 4     \end{center}          \includepdf[pages=-]{a1/art1.pdf}     \includepdf[pages=-]{a2/art2.pdf}          \end{document}      MWE: File **`a1/art1.tex`**               \documentclass{article}     \title{ARTICLE ONE}     \setcounter{page}{2}          \begin{document}     \maketitle     Some text. Some text. Some text.          \newpage     Other page of article one.     \end{document}      MWE: File **`a2/art2.tex`**               \documentclass{article}     \title{ARTICLE TWO}     \setcounter{page}{4}          \begin{document}     \maketitle     Some text. Some text. Some text.          \newpage     Other page of article two.     \end{document}


title: Specify minimum vertical margins around all figures

text: I would like to specify minimum vertical margins equal to the height of three single-spaced lines around all figures in a document. By "minimum" I mean that if the figure already has this amount of space around it, then the margins should not add any more. How do I do this? ### MWE Note that to use this you'll need to download my image (or substitute your own).               \documentclass[11pt]{report}     \usepackage{amsmath}     \usepackage{graphicx}     \begin{document}          is reminiscent of a banana. Because there are separate hippocampi in the     left and right hemispheres, there are also two dentate gyri.          \begin{figure}[htbp]     \centering     \includegraphics{hippocampus_frontal.pdf}     \caption{Hippocampal Formation (Allen Brain Explorer)}     \label{fig:HippocampusFrontal}     \end{figure}          The DG has traditionally been split into three layers visible in          \end{document}      ### Vertical Margins ![enter image description here](http://i.stack.imgur.com/4a4xS.png)


title: \textsuperscript inside \section (XeLaTeX)

text: How can I get work \textsuperscript inside \section?               \documentclass[unicode, fontsize=9pt, twoside=false, russian, a5paper]{scrbook}     \usepackage{polyglossia}     \setmainfont{PT Serif}     \setsansfont{PT Sans Caption}     \setmonofont{PT Mono}     \defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text}     \setdefaultlanguage[spelling=modern]{russian}     \setotherlanguage{english}     \usepackage{xunicode}     \KOMAoptions{DIV=18,pagesize=auto}     \usepackage[         colorlinks=true,         linkcolor=black,         citecolor=DarkGreen,         urlcolor=SteelBlue,         xetex,         unicode=true,         bookmarks=false,         pdfstartview=FitH,         pdfpagelayout=OneColumn,         final=true,         draft=false,         debug=false,     ]{hyperref}     \begin{document}     \title{Title}     \author{Author}     \maketitle{}     \tableofcontents{}          \section{Bla-bla\hyperlink{c_48}{\textsuperscript{\{48\}}}}          \end{document}      error: $ xelatex test.tex:               ! Undefined control sequence.     \hyper@@link ->\let \Hy@reserved@a                                         \relax \@ifnextchar [{\hyper@link@ }{\hyp...     l.33 ...hyperlink{c_48}{\textsuperscript{\{48\}}}}


title: Get a "Boxed" page with TeX

text: I would like to avoid TikZ or another package. I would like the frame surrounds the page with a rule on all sides and I would like to have a page number below the frame in the middle. I have some difficulties to understand how to use `\output` and `shipout`


title: Inconsistent column placement in beamer slides with overlay

text: I'm trying to show alternative column configurations on a beamer slide, as shown in this example:               \documentclass{beamer}     \usepackage{tikz}     \begin{document}     \begin{frame}          \begin{columns}             \begin{column}{0.3\textwidth}                 \tikz{\draw (0,0) rectangle (\textwidth, 1cm);}             \end{column}             \only<1>{\begin{column}{0.6\textwidth}                 \tikz{\draw (0,0) rectangle (\textwidth, 1cm);}             \end{column}}             \only<2>{\begin{column}{0.6\textwidth}                 \tikz{\draw (0,0) rectangle (\textwidth, 1cm);}             \end{column}}         \end{columns}     \end{frame}     \end{document}      Here, I create two identical columns right of a column that stays the same during all slides. However, it is positioned differently on slide 1 and 2. What am I doing wrong?


title: Multiple bibliographies (reference lists) using embedded bibliography database

text: I would like to have multiple bibliographies (reference lists) as described in Airminded · Multiple bibliographies in LaTeX (TeX Frequently Asked Questions -- question label "multbib"). However, I'd like to use with a single .tex file, which would contain the bibliography database embedded, as in LaTeX/Bibliography Management: #1 Embedded system ... Now, I want to use `letter` documentclass, for which the bibliography needs to be defined (Re: Environment thebibliography undefined when using letter) So what I end up is with this example (code below, compiled with just `pdflatex`, no `bibtex`( _which I'd like to avoid in this case_ )): ![multibib-embedded.png](http://i.stack.imgur.com/rwb6w.png) ... obviously, something works (`multibib` recognized primary and secondary cites, assigning them number "1" as start) -- however I don't get two, separate primary and secondary list of references; would that be possible in this context? ( _doesn't have to be with`multibib`, but I'd like to avoid a separate `.bib` file and a `bibtex` call_) EDIT: I'd also like separate cite keys (i.e. rendered as `[a1]` and `[b1]`; not yet sure if `multibib` can do that; edit: no it cant, multibib.pdf says " _You can also edit the .bbl files created by BibTEX and add 'a', 'b',. . . to the labels, but your changes will be overwritten by subsequent BibTEX runs._ " and recommends `\cite[a]{key}`) - how possible would that be? The code is this:               \documentclass{letter}          % Environment thebibliography undefined when using letter: http://www.latex-community.org/forum/viewtopic.php?f=4&t=3359     \makeatletter     \setlength \labelsep {.5em}     \newcommand\newblock{\hskip       .11em\@plus.33em\@minus.07em} \let\@openbib@code\@empty     \newcommand\refname{References}     \newcommand\section{\@startsection       {section}{1}{\z@}%       {-3.5ex \@plus -1ex \@minus -.2ex}%       {2.3ex \@plus.2ex}%       {\normalfont\Large\bfseries}}     \newenvironment{thebibliography}[1]     {\section*{\refname}%       \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%       \list{\@biblabel{\@arabic\c@enumiv}}%       {\settowidth\labelwidth{\@biblabel{#1}}%         \leftmargin\labelwidth \advance\leftmargin\labelsep \@openbib@code         \usecounter{enumiv}%         \let\p@enumiv\@empty \renewcommand\theenumiv{\@arabic\c@enumiv}}%       \sloppy \clubpenalty4000 \@clubpenalty \clubpenalty       \widowpenalty4000%       \sfcode`\.\@m} {\def\@noitemerr {\@latex@warning{Empty           `thebibliography' environment}}%           \endlist}     \makeatother          \usepackage{multibib}     \newcites{pri}{Primary sources}     \newcites{sec}{Secondary sources}          \begin{document}               \begin{letter}{Addressee}     Blah, blah - content...          Primary cite: \citepri{lamport94} ...          Secondary cite: \citesec{lamport94} ...               \begin{thebibliography}{9}          \bibitem{lamport94}       Leslie Lamport,       \emph{\LaTeX: A Document Preparation System}.       Addison Wesley, Massachusetts,       2nd Edition,       1994.          \bibitem{lamport95}       Leslie Lamport,       \emph{\LaTeX: A Document Preparation System}.       Addison Wesley, Massachusetts,       2nd Edition,       1995.          \end{thebibliography}          \end{letter}               \end{document}


title: multibib - combing citations of different types

text: I am using `multibib` for a document with two different types of references. To this end, I have defined               \newcites{R}{Own publications}      which adds a prefix "R" to references from that group when citing with `\citeR`. Does anyone know how to combine references in the form `\cite{key1,key2,key3}` giving [1,2,R3]? Not sure if a wrapper for the cite command would work?


title: Can't recognize math symbol - bold "minus" above variable

text: I'm trying to "latex down" some Kalman equations and I'm not able find a way how to make that symbol above k variable in equation "Predict" (1) and (2) ![picture](http://i.stack.imgur.com/Zk5pX.png) For me, it seems like \bar{} but still I wasn't able to make it look like the same.


title: How to remove header and footer in Table of contents and LOF and LOT

text: I have used fancyhdr package for giving header and footer for my report work and to give header and footer for chapter name beginning, I have used this code:               \makeatletter     \let\ps@plain\ps@fancy     \makeatother      This code works to insert header and footer for chapter beginning. But it also adds header and footer for TOC, LOF and LOT. I don't need header and footer for those. Can anyone help me with this. Thanks in advance.


title: Conflict with packages in printing out ƒ in \begin{equation} mode

text: The initial thread solved the main problem, but there is now some conflict with packages that I do not understand. My tex code               \documentclass{article}     \usepackage{amsmath, amsfonts, amssymb, textcomp}     \usepackage[T4, OT1]{fontenc}     \usepackage{newunicodechar}     \usepackage{unicode-math}     \setmainfont{Arial Unicode MS}     \newunicodechar{ƒ}{{\fontencoding{T4}\selectfont\m f}}     \newunicodechar{Ƒ}{{\fontencoding{T4}\selectfont\m F}}          \begin{document}               \begin{equation}     Qƒ(x,\eta)     \end{equation}          \end{document}      I see the symbol ƒ as ![enter image description here](http://i.stack.imgur.com/vUhQg.png) **What is causing the conflict?**


title: Adding extra ticks based on sum of ybar stacked

text: I am trying to add `minor yticks` on my axis based on the end values of a `ybar stacked` plot. Here is where I'm at:               \documentclass[tikz]{standalone}     \usepackage{pgfplotstable}     \pgfplotstableread{     Year    Far           Near      Sd     2012    1.7786e+01    31.762    88     2013    6.2690e+01    153.828   48     2014    2.9644e+01    25.0714   13     }\datatableD     \begin{document}     \begin{tikzpicture}     \begin{axis}[         ymin=0,         enlarge x limits=0.15,         enlarge y limits={upper, value=0.15},         ybar stacked, bar width=1.5em,         point meta=explicit,         xtick=data,         every node near coord/.style={             yshift=6pt         },         nodes near coords align=center,         yticklabel style={xshift=-10pt},         minor ytick=data,         grid = minor     ]     \addplot table [y=Far] \datatableD;     \addplot table [y=Near] \datatableD;     \addplot[nodes near coords*={\footnotesize $(\pgfmathprintnumber\pgfplotspointmeta)$}, white, color=black, draw=none] table [y expr=0, meta=Sd] \datatableD;     \end{axis}     \end{tikzpicture}     \end{document}      Unfortunately, it looks like `minor ytick=data` returns a list of values from the column `Far`, but not for the sum `Far + Near`, any ideas ? In the MWE, 3 minor ticks are added for `y = 17, 29, 62`. I would need the minor ticks to be added at `y = 17 + 31, 29 + 25, 62 + 153` instead.


title: Adding bibliography to table of contents in scrreprt, using biblatex and biber

text: EDIT: The cause for the problem described below was that the .bbl file was being emptied every time the document compiled. * * * I'm attempting to add my renamed bibliography as an unnumbered top-level (chapter) entry to the table of contents (TOC) in my document, but so far all of my attempts have been unsuccessful. Below is an MWE for my latest and tidiest attempt, plus the output. Does anyone know what my code is missing? I'm using MiKTeX 2.9, Biblatex 2.8, Biber 1.8, and I've made sure all my other packages are up to date as well. I'm using the pdflatex compiler. * * * ## Main document               \documentclass[bibliography=totoc]{scrreprt}     \usepackage[backend=biber]{biblatex}          \addbibresource{test.bib}          \begin{document}          \tableofcontents          \chapter{Chapter}          Lorem ipsum dolor sit amet \cite{entry}.          \printbibliography[heading=bibintoc,title=References]          \end{document}      * * * ## test.bib               @article{entry,     author = {John Doe},     journal = {TeX Monthly},     pages = {1----10},     title = {{How do I get this to work?}},     volume = {99},     year = {1234}     }      * * * ## Output ![TOC](http://i.stack.imgur.com/636is.png) ![Bibliography](http://i.stack.imgur.com/ejTtU.png) * * * I tried working around the problem by adding the line               \addcontentsline{toc}{chapter}{References}      just after the `printbibliography` command, but this causes the TOC to reference the bibliography one page early. And besides, it is only a workaround, not a solution.


title: merge two tables into one

text: i have two sperate tables with the same number of rows and labels as follows: one:               a  12     b  32      c  18      two:               a  45      b  98     c  300      how can i combine those two tables into one? as follows:               a 12 45     b 32 98     c 18 300      thank Elisheva


title: Tikz: Using an already defined \node label in \draw

text: I am using tikz to draw a mathematical structure. I have labelled all my nodes in my code and I want to use them as arguments in the \draw command but I keep getting this error "! Missing \endcsname inserted." Below is a minimum working example. Kindly help me with this.               \documentclass[12pt,a4paper]{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     Putting node and clipping them to their respective positions     \foreach \x in {2,3,4,...,14}         \foreach \y in {2,3,4}         {             \node [circle,draw=white,fill=white,inner sep=0pt,minimum size=1.8mm] (u\x\y) at (\x,\y)  {};         }     %Drawing arrows     \foreach \x in {3,5,...,11}         {         \v = \x + 1;         \draw[->>] (u\x3) -- (u\v2) ;         }     \end{tikzpicture}     \end{document}


title: Is there an advantage in using the pgf Basic Layer over tikz?

text: I'm working on a program to draw crystal unit cells with `pgf/tikz`. In the course of this project the question arose whether I should draw the constituent bonds and atoms using `pgf` Basic Layer commands or `tikz` commands. It's clear to me that some things like declaring shadings and such need to be done in `pgf` but I'm asking for situations where the exact same result can be achieved with Basic Layer or `tikz` commands. Can there be an advantage in using the more low level Basic Layer over the `tikz` commands in such situations or is it equivalent? Are there situations where I can/should use a `pgfpicture` but not a `tikzpicture` environment? **Edit:** Since @percusse mentioned, that the answer might depend on the particular use case I will provide a small example: I plan to draw the atoms in the crystal unit cells I want to depict as circles with a spherelike shading. The following MWE contains two versions of such an "atom" which look exactly the same, one drawn solely with Basic Layer commands the other with `tikz` commands. For the sake of brevity I enclosed them in the same `tikzpicture` environment. The question would then be, if the Basic Layer version might be more easily tweakable or more compatible with PDF viewers or has any advantage at all over the `tikz` version? In terms of amount of code and readability the `tikz` version would clearly be preferable.               \documentclass{standalone}          \usepackage{tikz}          \begin{document}          \pgfdeclareradialshading{new}{\pgfqpoint{0bp}{0bp}}{%      color(0bp)=(blue);      color(6bp)=(blue!90!black);      color(20bp)=(black!75!blue);      color(30bp)=(black!85!blue)}          \begin{tikzpicture}          % tikz version     \begin{scope}         \clip (-1,0) circle (1cm);         \draw [fill=black!70] (0, 0) circle (1cm);         \begin{scope}[transform canvas={xshift=-1cm, rotate=45}]             \shade [shading=new] (0.00,0.50) ellipse (1.75 and 1.55);         \end{scope}         \node (nodename) at (-1, 0) [circle, minimum size = 2cm] {tikz};     \end{scope}          % Basic Layer version     \begin{pgfscope}       \pgfpathcircle{\pgfpoint{3cm}{0cm}}{1cm}       \pgfusepath{clip}       \begin{pgflowlevelscope}{\pgftransformshift{\pgfpoint{3cm}{0cm}}, \pgftransformrotate{45}}         \pgfpathellipse{\pgfpoint{0cm}{0.5cm}}                        {\pgfpoint{1.75cm}{0cm}}                        {\pgfpoint{0cm}{1.55cm}}         \pgfshadepath{new}{0}         \pgfusepath{}       \end{pgflowlevelscope}     \end{pgfscope}     {     \pgftransformshift{\pgfpoint{3cm}{0cm}}     \pgfset{minimum size=2cm}     \pgfnode{circle}{center}{pgf}{nodename}{       \pgfusepath{}}     }               \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/Kwm6Y.png)


title: Index heading style is different

text: I have document like this (MWE):               \documentclass[10pt,twoside,final]{book}          \usepackage{xltxtra}     \usepackage{fontspec}          \usepackage{fancyhdr}     \usepackage{titlesec}     \usepackage[hang,flushmargin]{footmisc}     \usepackage[titles]{tocloft}     \usepackage[absolute]{textpos}          \usepackage[initsep=16pt,unbalanced=false]{idxlayout}     \usepackage{index}                                  \newindex{default}{idx}{ind}{First index}                        \begin{document}             \chapter{First}                  Lorem ipsum \index{Lorem@ipsum} et dolorem.                  End of first chapter.                  \printindex          \end{document}      And index header is diferent than other. It is clear to me, that somehow I can use `idxlayout` (maybe own style file). But I always failed when I tried. Version (Fedora 20):               xelatex -v     XeTeX 3.1415926-2.6-0.9999.3 (TeX Live 2014/dev)     kpathsea version 6.2.0dev     Copyright 2013 SIL International and Jonathan Kew.     There is NO warranty.  Redistribution of this software is     covered by the terms of both the XeTeX copyright and     the Lesser GNU General Public License.     For more information about these matters, see the file     named COPYING and the XeTeX source.     Primary author of XeTeX: Jonathan Kew.     Compiled with ICU version 50.1.2; using 50.1.2     Compiled with zlib version 1.2.8; using 1.2.8     Compiled with FreeType2 version 2.5.0; using 2.5.0     Compiled with Graphite2 version 1.2.2; using 1.2.2     Compiled with HarfBuzz version 0.9.24; using 0.9.24     Compiled with fontconfig version 2.11.0; using 2.11.0     Compiled with libpng version 1.6.3; using 1.6.3     Compiled with poppler version 0.24.3


title: Vim-Latex spell checking : ignore comment regions

text: I'm using the Vim-Latex environment for writing french documents. The problem is that when I comment a line containing a command, the spell checking tool highlights the command as a spelling mistake. Is it possible to set the spell check tool in a way that it ignore commented lines?


title: How to arrange / align / place pictures and text, to form a given headline?

text: I tried to solve this with tables, but the alignment didn't turn out good. And because I am very confused, if I should even use a table aproach or a minipage or a tabspace, I wondered, if someone could enlighten me, based on a specific demo. This should be a regular task for anybody who has to create corporate or other official documents - creating a headline with logos and text, like here: ![enter image description here](http://i.stack.imgur.com/zGhNJ.png) But how to accomplish this in Latex - the best way possible? There are some requirements, like:   * has to span over entire page   * individual vertical and horizontal alignment is possible These are some of my attemps, which did not work out: With tables:               \documentclass[         pdftex,         a4paper,         11pt,         DIV15,         BCOR20mm,         parskip,         numbers=noenddot]{scrbook}         \usepackage{graphics}          \usepackage[pdftex]{graphicx}          \begin{document}         \noindent\begin{tabular*}{\columnwidth}{@{\extracolsep{\stretch{1}}}*{2}{l}@{}}             \includegraphics[scale=0.5]{left_demo.png} & \includegraphics[height=45px]{right_demo.png} \\         \end{tabular*}     \end{document}      With minipage:               \documentclass[     pdftex,     a4paper,     11pt,     DIV15,     BCOR20mm,     parskip,     numbers=noenddot]{scrbook}     \usepackage{graphics}      \usepackage[pdftex]{graphicx}          \begin{document}         \begin{figure}[h]             \begin{minipage}[b]{25mm}                 \includegraphics[width=25mm,clip]{left_demo.png}             \end{minipage}             \begin{minipage}[b]{12 cm}                 {\sffamily                                   somedemo txt abcdefghij,\\                     texttextte txt texttexttextetscter\\                     demodemode demodemode\\                 }             \end{minipage}         \end{figure}     \end{document}      These are the demo-pictures I used: ![enter image description here](http://i.stack.imgur.com/1obw3.png) ![enter image description here](http://i.stack.imgur.com/dTHam.png) ![enter image description here](http://i.stack.imgur.com/g1xrc.png)


title: Set font weight of \textbf

text: I am using Source Sans Pro as my main sans serif font, like so: `\usepackage[semibold]{sourcesanspro}` Using the semibold option works as intended, but it affects all other fonts as well. When I later use another font that does not have semibold characters (case in point: Gentium), supposedly "bold" text is shown plain. If, however, I simply use `\usepackage{sourcesanspro}` everything works fine. How can I restore `\textbf{}` to use real bold again for all fonts other than Source Sans? MWE added:               \documentclass[fontsize=12pt,paper=a4,headings=big]{scrartcl}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english,ngerman]{babel}          \usepackage{lipsum}     \usepackage{fixltx2e,microtype,leading}           \usepackage[oldstyle,semibold]{sourcesanspro}     \usepackage{gentium}          \raggedbottom     \leading{14pt}          \begin{document}          \section{Look at my semi-bold title!}     \lipsum[1]          Oh, no, \textbf{this} should be bold!          \end{document}      Yes, I do get a warning:               LaTeX Font Warning: Font shape `T1/gentium/sb/n' undefined(Font)     using `T1/gentium/m/n' instead on input line 21.      I'd rather LaTeX used the bold variant in this case.


title: Label near start when using myncbar

text: My problem is quite simple, yet i can't find answer. Pre:               \usepackage{tikz}     \usetikzlibrary{matrix, shapes, arrows, positioning, fit, calc}      Styles:               \tikzstyle{decision} = [diamond, draw, fill=blue!20,                              text width=6em, text badly centered, node distance=3cm, inner sep=0pt]         \tikzstyle{block} = [rectangle, draw, fill=blue!20, text width=9em, text centered, rounded corners, minimum height=2.5em]         \tikzstyle{label} = [draw=white!0, minimum size=2ems]         \tikzstyle{line} = [draw, -latex']         \tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,             minimum height=2em]         \tikzstyle{box}=[rectangle,                         thick,                         minimum size=1cm,                         draw=black!80,                         fill=gray!01]         \tikzstyle{connector} = [->,thick]         \tikzstyle{pusty}=[draw=white, minimum size=2em]      Im using myncbar macro to create C-like shapes:               \def\myarm{1cm}         \def\myangle{0}         \tikzset{           arm/.default=1cm,           arm/.code={\def\myarm{#1}}, % store value in \myarm           angle/.default=0,           angle/.code={\def\myangle{#1}} % store value in \myangle         }          \tikzset{         myncbar/.style = {to path={             % We need to calculate a couple of coordinates to help us draw             % the path.              let                 % Same as (\tikztotarget)++(\myangle:\myarm)                 \p1=($(\tikztotarget)+(\myangle:\myarm)$)             in                 -- ++(\myangle:\myarm) coordinate (tmp)                 % Find the projection of the (tmp) coordinate                 % on the line from the target to p1                 -- ($(\tikztotarget)!(tmp)!(\p1)$)                 -- (\tikztotarget)\tikztonodes         }}     }      And my code is:               \begin{figure}[H]         \begin{center}             \begin{tikzpicture}[node distance = 2cm, auto]                 % Place nodes                 \node [decision] (init) {Minął określony czas?};                 \node [block, below of=init, node distance = 3cm] (oblicz) {Oblicz różnicę temperatur};                 \node [decision, below of=oblicz, node distance=3.5cm] (roznica) {Róznica powyżej zadanego poziomu?};                 \node [decision, below of=roznica, node distance=5.5cm] (otwarte) {Przepustnice otwarte maksymalnie i temperatura spada?};                 \node [block, right of=otwarte, node distance=5.5cm] (ostrzezenie) {Wyświetl ostrzeżenie o kończącym się paliwie};                 \node [block, below of=otwarte, node distance=4cm] (kat) {Oblicz kąt otwarcia przepustnic};                 \node [block, below of=kat, node distance=2cm] (servo) {Ustaw serwomechanizmy};                 \node [block, below of=servo, node distance=2cm] (koniec) {Koniec};                      % Draw edges                 \path [line] (init) -- node [near start] {Tak} (oblicz);                 \path [line] (init.west) to[myncbar,angle=0,arm=-2cm] node [near start] {Nie} (koniec.west);                 \path [line] (oblicz) -- (roznica);                 \path [line] (roznica) -- node [near start] {Tak} (otwarte);                 \path [line] (roznica.east) to[myncbar,angle=0,arm=6cm] node [near start] {Nie} (koniec.east);                 \path [line] (otwarte) -- node [near start] {Tak} (ostrzezenie);                 \path [line] (otwarte) -- node [near start] {Nie} (kat);                 \path [line] (kat) -- (servo);                 \path [line] (servo) -- (koniec);                 \path [line] (ostrzezenie) -- (koniec);             \end{tikzpicture}             \caption{Algorytm obsługi kotła}          \end{center}     \end{figure}      And my problem is in this line:               \path [line] (init.west) to[myncbar,angle=0,arm=-2cm] node [near start] {Nie} (koniec.west);     ...     \path [line] (roznica.east) to[myncbar,angle=0,arm=6cm] node [near start] {Nie} (koniec.east);      Text labels are not near start. They are near the start of the **last** line. Is it possible to make them near start of the **first** line?


title: Image as cover page

text: I want to add a figure to fill the whole first page (instead of making it with the latex commands). And then to add _a blank page_ to begin the next chapter on an odd page number. When I write :               \setcounter{page}{0}     \thispagestyle{empty}     \begin{figure}     \centering     \includegraphics[heigth=24cm]{images\pagedegarde.pdf}     \end{figure}     \newpage     \strut     \newpage     \frontmatter     \chapter*{Remerciements}     ...      instead of having juste one blank page after the figure, I have _one before the cover page, and one after the cover page_. If I add the H option, I have _two blank pages_ after the figure. What shall I do? Thank you ;)


title: How can I make AUCTeX use the spelling dictionary in the same language as polyglossia is loaded with?

text: Is it possible to setup AUCTeX so that it loads the spelling dictionary in the same language as the language used by `polyglossia`? For example, is it possible to load the Danish ispell dictionary when a document includes `\usepackage{polyglossia}` and `\setdefaultlanguage{danish}`? The answer to How can I make AUCTeX use the spelling dictionary in the same language as babel is loaded with? does not seem to apply to this case.


title: How to draw curved arrows in tikz?

text: I am getting something like this: ![enter image description here](http://i.stack.imgur.com/WyiXa.png) This certainly doesn't look good. Curved arrows cross the blocks. Is there any better way of drawing curved arrows or any other solution? I am putting my code:               \documentclass[a4paper,10pt]{article}     \usepackage{tikz}     \usepackage{verbatim}     \usepackage[margin=15mm]{geometry}     \usetikzlibrary{shapes,arrows,fit,calc,positioning}               \begin{document}          \begin{tikzpicture}[thick]     \tikzset{input/.style={}}     \tikzset{block/.style={rectangle,draw}}     \tikzstyle{pinstyle} = [pin edge={to-,thick,black}]          \node [input, name=input] {};     \node [block, right=0.5 cm of input,minimum width=1.5cm, minimum height=2.5cm] (a) {};     \node [block, right of=a,minimum width=1.5cm, minimum height=5cm,node distance=3cm] (b) {};     \node [block, right of=b, minimum width=2cm, minimum height=5cm,node distance=3cm] (c) {};     \node [block, right of=c,minimum width=1.5cm, minimum height=5cm,node distance=3cm] (d) {};     \node [block, right of=d, minimum width=2cm, minimum height=5cm,node distance=3cm] (e) {};     \node [right =0.5 cm of e] (output) {};          \begin{scope}[->,>=latex]          \draw[->] (input) -- (a);          \node at (b.center) {\footnotesize{z}};          \draw[->] ([yshift=1.5 cm]c.north west) node[left]{\footnotesize{$Ack_1$}} -| ([xshift=0.25 cm]e.north);     \draw[->] ([yshift=1.5 cm]c.north west) -| ([xshift=0.25 cm]c.north);     \draw[->] ([yshift=1 cm]c.north west) node[left]{\footnotesize{$Ack_0$}} -| ([xshift=-0.25 cm]e.north);     \draw[->] ([yshift=1 cm]c.north west) -| ([xshift=-0.25 cm]c.north);     \draw[->] (e) -- (output);          \foreach \i in {2,...,-2}{%      \draw[->] ([yshift=\i * 0.4 cm]a.east) -- ([yshift=\i * 0.8 cm]b.west) ;}          \foreach \i in {-2,...,2}{%      \draw[->] ([yshift=\i * 0.8 cm]b.east) -- ([yshift=\i * 0.8 cm]c.west) ;}          \foreach \i in {-2,...,2}{%      \draw[->] ([yshift=\i * 0.4 cm]a.east) to [out=-60,in=-120] ([yshift=\i * 0.8 cm]d.west) ;}          \foreach \i in {-2,...,2}{%      \draw[->] ([yshift=\i * 0.8 cm]d.east) -- ([yshift=\i * 0.8 cm]e.west) ;}          \end{scope}     \end{tikzpicture}          \end{document}


title: How can I draw a straight vertical accent (like textvbaraccent) over a symbol in math mode?

text: > **Possible Duplicate:**   >  How can I draw a dot under a symbol in math mode? I'm looking for the equivalent of the `\textvbaraccent` command for the math mode.


title: Command \d invalid in math mode

text: ![enter image description here](http://i.stack.imgur.com/FYsko.png)               \begin{equation}     \d{u} \left( t \right) = Z     \end{equation}      Am I missing a package or what?


title: Multicols breaking short passages unnaturally

text: I have a problem in multicols environment, where short text passages that happen to land on a single page split like so               I am the very model            |  general. I've information     of a modern major              |  vegetable, animal and mineral.      It's very easy to read this as "I am the very model general. I've information of a modern major vegetable, animal and mineral". I would prefer it split like so:               I am the very model            |      of a modern major              |       general. I've information      |     vegetable, animal and mineral. |      In other words, finish full left column, then start the right column. I need the multicols environment, so that I can begin and end it and place full width graphs in between.


title: How to draw a filled rectangle without a border using TikZ?

text: Method 1:               \draw [fill=orange] (0.1,0.1) rectangle (0.2,0.2);      For the line above, by default, the filled orange rectangle will have a black border. Method 2:               \draw [fill=orange,orange] (0.1,0.1) rectangle (0.2,0.2);       With this line, the border color will be changed to orange and thus the entire rectangle will have one color. Unfortunately I have figure with intricate overlaps of rectangles. The borders, even though they are the same color as the `fill`, have finite thickness and mess up the sketch. Is there a way to get rid of the border altogether?


title: Can one typeset latex to look like Bourbaki's books?

text: Can LaTeX produce text as in the Bourbaki books? Specifically, the fonts and math symbols. Here is a sample (thanks to percusse): ![image](http://i.stack.imgur.com/xBYXX.png)


title: Change running heads in longtable (or other "long table" package)

text: In a longtable, I list items of several categories, including some data on them.               \documentclass{article}          \usepackage{longtable}          \begin{document}          \begin{longtable}{lll}     \hline     \textbf{These are some items} & &\\     \hline     \endhead     \hline     \endfoot     \textbf{These are items of type A} & \textbf{Size} & \textbf{Price}\\     \hline     Item 1 & 3 foot   & 3.56\\     Item 2 & 2 inches & 2.56\\     Item 3 & 5 inches & 1.50\\     \hline     \textbf{These are items of type B} & \textbf{Weight} & \textbf{Price}\\     \hline     Item A & 3 pounds & 10.50\\     Item B & 5 ounces & 6.95\\     Item C & 1 pound  & 3.00\\     \end{longtable}          \end{document}      What I would _like_ to get is to _change_ the running head whenever a new category is begun, so that if e.g. there is a page break between Item B and Item C, the header on the next line would read the "These are items of type B" line (so the columns are properly labeled). Can this be done with `longtable` or any other "long table" package? I couldn't find information on this. (My google-fu is weak today...)


title: How can I renew \includegraphics to always use \shadowbox?

text: I want to enclose all `\includegraphics` into `\shadowbox`. Therefore I thought to re-define `\includegraphics`:               \renewcommand{\includegraphics}{\shadowbox\includegraphics}      so that each time `\includegraphics` is called, actually the graphic is enclosed in a `\shadowbox`. But the above does not work: > Missing { inserted. \do@VerbBox l.80 \includegraphics > {0_home_rkrug_Documents_Publications_2012_handbook_Mana... A left brace was > mandatory here, so I've put one in. You might want to delete and/or insert > some corrections so that I will find a matching right brace soon. (If you're > confused by all this, try typing `I}' now.) Any suggestions how I can redefine `\includegraphics` ?