title: subfigure numbering in subfigure environment (subcaption package)

text: My new friend is the subfigure environment of the subcaption package. Although reading the manual by Axel Sommerfeldt i did not managed to change the subfigure numbering from lower case letters to small Roman numerals. I need them beside pure personal preference for having the ability to have more than 24 (z) subfigures. Can somebody assist me?               \documentclass[a4paper,oneside,10pt]{scrartcl}          \usepackage{graphicx}     \usepackage{caption}     \usepackage{subcaption}          %%%%%%%%%%%          \begin{document}          \begin{figure}         \centering         \begin{subfigure}[b]{0.3\textwidth}                 \centering                 {\rule{3cm}{2cm}}                 \caption{Picture 1}         \end{subfigure}%         \begin{subfigure}[b]{0.3\textwidth}                 \centering                 {\rule{3cm}{2cm}}                 \caption{Picture 2}         \end{subfigure}         \caption{Two picures; a black picture (i) and another black picture (ii).}     \end{figure}          \end{document}      not desired output: ![not desired](http://i.stack.imgur.com/F0Rp7.png) desired output: ![desired](http://i.stack.imgur.com/AdzdV.png) thanks in advance Benjamin


title: How to \label emails in appendix?

text: I would like to include ~20 emails in the appendix section of an article, so I in the article can e.g. write "...according to `\ref{email1}`". If I put each email in a subsection, then I have to find a name for each of them, which I don't really want. Each email is enclosed in `\begin{verbatim} \end{verbatim}`. Is there a way to `\ref` these emails?


title: LaTeX3 from Package Options to Class Options

text: Howdy please consider the following expample:               \RequirePackage{ expl3 , xparse , l3keys2e , xfrac  }          \ProvidesExplPackage       {somewhat}       {2012/04/29}       {1}       {descrr}                 \cs_new_nopar:Npn\font_color{green}            \keys_define:nn {tgquixoptions} {        font-color .tl_set:N = \tg_font_color,         font-color .default:n =\tl_set:Nn\tg_font_color{white},        background-color .code:n=#1,         background-color .default:n = blue,        }       \ProcessKeysOptions{tgquixoptions}            \message{------------message-----\tl_to_str:N\tg_font_color}      This works like a charm. But how can i make this into a Class? I tried this:               \LoadClass{beamer}     \RequirePackage{ expl3 , xparse , l3keys2e , xfrac  }          \ProvidesExplPackage       {somewhat}       {2012/04/29}       {1}       {descrr}                 \cs_new_nopar:Npn\font_color{green}            \keys_define:nn {tgquixoptions} {        font-color .tl_set:N = \tg_font_color,         font-color .default:n =\tl_set:Nn\tg_font_color{white},        background-color .code:n=#1,         background-color .default:n = blue,        }            \ProcessKeysOptions{tgquixoptions}            \message{------------message-----\tl_to_str:N\tg_font_color}      It seems that l3 doesn´t process the class options. When called like this:               \documentclass[font-color=somevalue]{somewhat}     %\usepackage[font-color=somevalue]{somewhat}      \begin{document}       \frame{       }     \end{document}      So how can i make l3 listen to Package Options?


title: Are there any bibliography styles that look like this?

text: I realize this might seem very basic, but I have been looking all day and I cannot find a bibliography style that will give me references like the following: > Baker, M. & K. Hale. 1990. Relativized Minimality and pronoun incorporation. > Linguistic Inquiry 21:289–297. I gather that this is supposed to be at least one version of Chicago style, but chicago.bst appears to turn out refs that look almost exactly like APA style, which is totally wrong. I figure there must be a style like this already out there. Anyone know?


title: latex-suite on OSX - citation completion not working

text: So I have just installed latex-suite using the default version of vim that ships with OSX 10.6. The problem I'm having is that `\cite` completion is not working properly. This is what happens:   1. Begin citation by typing `\cite{author`   2. Press `Fn F9` to bring up matches   3. Select match   4. Press Enter. Instead of the citation being completed, I'm back at an empty `\cite`. Latex-suite is not completing the citation for me. I've tried this with both iTerm and the OSX terminal. Any pointers as to what is going wrong?


title: Improve PSTricks code for drawing of the Olympic flag

text: Consider the following example. **Code**               % pdflatex -shell-escape test.tex          \documentclass{article}          \usepackage{auto-pst-pdf,pstricks-add}     \usepackage[locale=DE]{siunitx}          \ExplSyntaxOn       \cs_new_eq:NN \calc \fp_eval:n     \ExplSyntaxOff          \def\Label#1{\ncput*{\small\SI{#1}{\cm}}}          \begin{document}          \def\bredde{18 }     \def\laengde{\calc{1.5*\bredde} }     \def\radius{3.0 }     \def\afstand{6.5 }     \def\afstandB{\calc{\afstand/2}}     \centering     \psset{unit=0.44cm}     \begin{pspicture}(\laengde,\bredde)       \psframe(0,0)(\laengde,\bredde)       \pnodes{P}         (!\laengde 2 div \afstand sub \bredde \radius add 2 div)%         (!\laengde \afstand sub 2 div \bredde \radius sub 2 div)%         (!\laengde 2 div \bredde \radius add 2 div)%         (!\laengde \afstand add 2 div \bredde \radius sub 2 div)%         (!\laengde 2 div \afstand add \bredde \radius add 2 div)       \multido{\iA=0+1,\iB=-2+1}{5}{%         \psdot(P\iA)         \pscircle(P\iA){\radius}         \psline[linestyle=dotted]%           (!\laengde \iB\space \afstand mul add 2 div \bredde 2 div 5 3 div \radius mul sub)%           (!\laengde \iB\space \afstand mul add 2 div \bredde 2 div 5 3 div \radius mul add)       }       \multido{\iD=-1+1}{2}{%         \psline[linestyle=dotted]%           (!\laengde 2 div 10 3 div \radius mul sub             \bredde \radius add 2 div \iD\space \radius mul add)%           (!\laengde 2 div 10 3 div \radius mul add             \bredde \radius add 2 div \iD\space \radius mul add)       }      \psset{arrows=|*-|*,nrot=:U}       \pcline[offset=-6pt]%         (!\laengde 2 div \afstand sub \bredde 2 div 5 3 div \radius mul sub)%         (!\laengde 2 div \bredde 2 div 5 3 div \radius mul sub)       \Label{\afstand}       \pcline[offset=6pt]%         (!\laengde 2 div \afstand sub \bredde 2 div 5 3 div \radius mul add)%         (!\laengde \afstand sub 2 div \bredde 2 div 5 3 div \radius mul add)       \Label{\afstandB}       \pcline[offset=6pt]%         (!\laengde 2 div 10 3 div \radius mul sub \bredde \radius sub 2 div)%         (!\laengde 2 div 10 3 div \radius mul sub \bredde \radius add 2 div)       \Label{\radius}      \psset{linestyle=none,arrows=none}       \pcline[offset=-9pt](0,0)(0,\bredde)       \Label{\bredde}       \pcline[offset=9pt](0,0)(\laengde,0)       \Label{\laengde}     \end{pspicture}          \end{document}      **Output** ![enter image description here](http://i.stack.imgur.com/1GJHS.jpg) **Question** I have the desired output but the code is not very elegant. I have improved the code somewhat, already, but it can be even better, I think.


title: Copy-able Matrix/Grid

text: I have grid-formatted data:               1 2 3     4 5 6      7 7 9      I'd like to display this as above in a LaTeX document compiled with pdfLaTeX. I've thought about using the TikZ Matrix library and the AMSMath Matrix library, but, in the resulting document, highlighting the data (as printed by AMSMath) and copy-pasting it into a notepad shows the following:               1     4     7     2     5     7     1     3     6     9      I'd like a nice grid-formatted result when I hit paste - how can I compile my PDF to produce such a result?


title: Localise appendix numbering?

text: I'm using `XeLaTeX` with `fontspec`. I write Russian document and get appendix numbered with latin letters:               \documentclass{article}          \usepackage{fontspec} % enables loading of {True/Open}Type fonts     \usepackage{polyglossia} % support for languages          % fonts:     \defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text} % without this XeLaTeX won't turn "--" into dashes     \setmainfont{DejaVu Sans}     \setsansfont{DejaVu Sans}     \setmonofont{DejaVu Sans Mono}          % Russian/English document:     \usepackage{xecyr}     \newfontfamily\cyrillicfont{DejaVu Sans}          \setmainlanguage{russian} % \setdefaultlanguage{russian} is obsolete and not needed     \setotherlanguage[variant=american]{english}          \begin{document}          \tableofcontents          \section{h1}          \subsection{h2}          \appendix          \section{a1}          \section{a2}          \section{a3}          \end{document}      How can I get them numbered with Russian letters?


title: good newbie examples for cross-referencing

text: I have been searching all over and I do not understand how to reference a block of text in an external document. I am using the `memoir` documentclass. I am trying to use the `XR` package and the `\externaldocument{` _`filename`_`}` command. To store `chunks` of text that will be included in various documentation. My goal is to store all of this in an external file, but include portions of it in my writing. Most of this is boilerplate info, so it doesn’t change much. I would like to reference it so that when it does change, it only has to be changed once. I am getting very frustrated as most of the examples I found are leveraging pre-existing knowledge of LaTex. I am trying to use the `\ref{}` command to call the chunk of text.


title: Adjust space between displayed equation and the following text

text: I often have displayed equations in the middle of a paragraph, so that the following text of the equation does not start on a new line but follows with a space. In such situations, I would like to know how I can adjust the vertical space between the displayed equation and the following text. I've tried with the usual `\vspace{}` trick, by putting it just in front of the first word that follows the equation. However, it produces the wrong effect by increasing the vertical space between the first line of text after equation and the second. Any suggestion? Thanks!


title: How can I make LaTeX number my quotes

text: I would like to number the quotations that appear in my document. I like what LaTeX does with the `equation` environment, and would like something similar, so that if I had typed               \begin{quote}     Quote 1       \end{quote}     more text more text more text       \begin{quote}     Quote 2       \end{quote}      The two quotes would appear with numbers off to the side like would happen if I had used the `equation` environment. Thanks for your help.


title: Remove author and institution in footline

text: I am writing a beamer presentation using the CambridgeUS theme but my presentation has multiple authors and their names do not fit in the footline at the author section. I want to delete all of their names so that they do not appear at all. Also I do not want the institution name to appear either. How can I do this?


title: Adding a space before each item in a multi-item citation

text: I am using JabRef with Lyx, and currently when I insert a multi-item citation in my document, it shows up something like this: `[8,10,23]` in the output, without any space before each item (except for the first one). I wonder if it is possible to add a space in between item, so in the output it will look like `[8, 10, 23]`. If so, please let me know how. Thanks!


title: Relative coordinates in PSTricks

text: Ti _k_ Z gives us the ease of using relative coordinates, like in the following example.               \documentclass[border=3mm]{standalone}     \usepackage{tikz}     \usetikzlibrary{calc}     \begin{document}     \begin{tikzpicture}         \coordinate (A) at (-1,0);         \draw[blue,->] (A) -- +(30:1);         \draw[red] ($(A)+(30:1)$) +(30+90:1) -- +(30-90:1) -- +(30:0.5) -- +(30+90:1) coordinate (end);         \draw[green] (A) -- (end) ++(30-90:2) -- (A);     \end{tikzpicture}     \end{document}      > ![ex](http://i.stack.imgur.com/NJe71.png) This is extremely elegant, as I do not have to computed the coordinates by hand, especially when using arbitrarily placed nodes. As PSTricks makes use of the computational power of Postscript, I hope there is a way to use relative coordinates. The syntax might not be as easy as in Ti _k_ Z, but using 3D and plotting is much easier with PSTricks. **Question:** Does PSTricks have capabilities for relative coordinates? (If yes, how do I use them?)


title: tikzpicture breaking into many pages

text: I want two put two columns of several images. In order to facilitate the modification of the image number and the style, I have used the command \foreach. My problem that the picture would split into several pages but I could not reach this effect. Here is the code i have written.               \begin{tikzpicture}[font=\small\sffamily]     \node (row1) {\includegraphics[width=0.49\textwidth]{images/Original/1}};     \node[left=0mm of row1]  {\includegraphics[width=0.49\textwidth]{images/Segmented/1}};     \foreach \i [remember=\i as \lastx (initially 1)] in {2,...,50} {     \node[below=0mm of row\lastx] (row\i) {\includegraphics[width=0.49\textwidth {images/Original/\i}};     \node[left= 0mm of row\i] {\includegraphics[width=0.49\textwidth]{images/Segmented/\i}};     };     \end{tikzpicture}


title: Set the size of pgf picture?

text: I have a pgf picture which I insert with:               \input{m1.pgf}      But the image is too big. Instead of regenerating a smaller image, I'd rather take advantage of vector graphics, and have XeLaTeX scale it. How do I set the width of pgf picture (keeping its aspect ratio)? # MWE tex:               \documentclass{article}          \usepackage{fontspec} % enagles loading of OpenType fonts     \usepackage{polyglossia} % support for languages          % fonts:     \defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} % without this XeLaTeX won't turn "--" into dashes     \setmainfont{DejaVu Sans}     \setsansfont{DejaVu Sans}     \setmonofont{DejaVu Sans Mono}          % pgf:     \usepackage{pgf}          \begin{document}          \input{m1.pgf}          \end{document}      Sample pgf: m1.pgf (it's too big to cite it here, and I can't make much smaller).


title: Framebox and minipage causes white space and is not float

text: I have a \framebox (I don't insist on using this command) and a minipage that causes whitespace, because the drawn box is not allowing any text before or after and it itself does not break over pages. The code looks like this:               \framebox{%        \begin{minipage}{\textwidth}         \begin{center}         Title Goes Here         \end{center}         Contents go here      \end{minipage}        }      Am I using the correct command? If so, how can I break it over pages? or if it is not possible to break it, I must give it a label and caption (just like a table or figure) and make it inline with text so that I can refer it in the article, but I don't know that either.


title: Use the same brackets or parenthesis as equations in an empty style environment

text: I have the following in my preamble:               \usepackage[overload, ntheorem]{empheq}     \usepackage[amsmath, thmmarks]{ntheorem}     \usepackage{mathtools}     \mathtoolsset{showonlyrefs,showmanualtags}     \newtagform{brackets}{[}{]}     \usetagform{brackets}      Further, I also have               \theoremheaderfont{\upshape}\theorembodyfont{\upshape}     \theoremstyle{nonumberplain}     \theoremseparator{}     \theoremsymbol{}     \newtheorem{optional}{}      So now I can make an empty environment which takes an optional argument like `\begin{optional}[$H_2$]`. This works but I get to see (H_2) while I would like to see [H_2]. How do I change this? It would be perfect if I could access the `mathtools` command that gives me the left bracket and the right bracket so I don't have to change it in multiple places if I would want to change it (I could of course define a new command for the left and right bracket but that feels like an ugly hack!). I forgot to mention that if I give it a label, then refering to it should give the optional argument. Maybe there is a better solution to this problem. I have also tried an equation with `\tag` but `\text` doesn't do automatic line breaks. Thanks for the suggestion. I fixed it like this, but I don't know if it is a good way:               \makeatletter     \newenvironment{optional}[1][Hypothesis]{       \par\noindent \text{[#1]}       \def\@currentlabel{[#1]}     }{\\}


title: pdflatex+ biblatex + biber and special characters produce error

text: **EDIT: The Post has been updated considering the first 19 comments** In my LaTeX document                \href{en.wikipedia.org/wiki/Pr%C3%A9lude_%C3%A0_l'apr%C3%A8s-midi_d'un_faune}{en.wikipedia.org/wiki/Prélude\_à\_l'après-midi\_d'un\_faune}      works perfectly and produces a correct link. I want to use that link in my `.bib` file too, but I can't get it working. Alone the presence of               en.wikipedia.org/wiki/Pr%C3%A9lude_%C3%A0_l'apr%C3%A8s-midi_d'un_faune      is enough to produce an error when compiling with `biber`. I don't know where to search for the error. I thought `biblatex` in combination with `biber` is capable of `utf8`, so this should not be a problem at all, right? So I have prepared two example files, which do not work on my system (Ubuntu 13.04): Please consider: ### `bibfile.bib`:               @misc{wiki3,     author = {Wikipedia},     title = {Prélude à l’après-midi d’un faune},     howpublished = {\href{http://en.wikipedia.org/wiki/Pr%C3%A9lude_%C3%A0_l'apr%C3%A8s-midi_d'un_faune}{en.wikipedia.org/wiki/Prélude\_à\_l'après-midi\_d'un\_faune}},     note = "[Zugriff am 12. Mai 2013 um 19:35]"     }      ### `test.tex`:               \documentclass{article}     \usepackage[style=numeric, backend=biber]{biblatex}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \addbibresource{bibfile.bib}     \usepackage{hyperref}     \begin{document}     EXAMPLE CONTENT     \nocite{*}     \printbibliography          \end{document}      Running `pdflatex test.tex` is successful. Running `biber test` produces:               INFO - This is Biber 0.9.9     INFO - Logfile is 'test.blg'     INFO - Reading 'test.bcf'     INFO - Using all citekeys in bib section 0     INFO - Processing bib section 0     INFO - Looking for bibtex format file 'bibfile.bib' for section 0     INFO - Decoding LaTeX character macros into UTF-8     INFO - Finished Decoding LaTeX character macros into UTF-8     INFO - Found BibTeX data source 'bibfile.bib'     INFO - Sorting list 'MAIN' keys     INFO - No sort tailoring available for locale 'en_US.UTF-8'     INFO - Sorting list 'SHORTHANDS' keys     INFO - No sort tailoring available for locale 'en_US.UTF-8'     INFO - Writing 'test.bbl' with encoding 'UTF-8'     INFO - Output to test.bbl      Rerunning `pdflatex test.tex` outputs (with pressing ENTER a couple times in between):               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)     restricted \write18 enabled.     entering extended mode     (./test.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation,         lo     aded.     (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))     (/usr/share/texmf/tex/latex/biblatex/biblatex.sty     (/usr/share/texmf/tex/latex/etoolbox/etoolbox.sty     (/usr/share/texlive/texmf-dist/tex/latex/etex-pkg/etex.sty))     (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/share/texmf/tex/latex/logreq/logreq.sty     (/usr/share/texmf/tex/latex/logreq/logreq.def))     (/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty)     (/usr/share/texlive/texmf-dist/tex/latex/url/url.sty)     (/usr/share/texmf/tex/latex/biblatex/blx-compat.def)     (/usr/share/texmf/tex/latex/biblatex/biblatex.def)     (/usr/share/texmf/tex/latex/biblatex/bbx/numeric.bbx     (/usr/share/texmf/tex/latex/biblatex/bbx/standard.bbx))     (/usr/share/texmf/tex/latex/biblatex/cbx/numeric.cbx)     (/usr/share/texmf/tex/latex/biblatex/biblatex.cfg))     (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty     (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def))     (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty     (/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def     (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu)     (/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu)     (/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu)))     (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))     (/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)     (/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)     (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg))          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))     (/usr/share/texmf/tex/latex/biblatex/lbx/english.lbx) (./test.aux)     (./test.bbl)          Runaway argument?     {\href {en.wikipedia.org/wiki/Pr\field {note}{[Zugriff am 12. Mai 201\ETC.     ! File ended while scanning use of \field.     <inserted text>                 \par     l.7 \begin{document}          ?     ! Undefined control sequence.     <argument> \blx@bbl@data          l.7 \begin{document}          ?     ! Missing number, treated as zero.     <to be read again>                    \xdef     l.7 \begin{document}          ?     ! Missing = inserted for \ifnum.     <to be read again>                    \xdef     l.7 \begin{document}          ?     ! Missing number, treated as zero.     <to be read again>                    \xdef     l.7 \begin{document}          ?     ! Undefined control sequence.     <argument> \blx@bbl@data          l.7 \begin{document}          ?     ! Undefined control sequence.     <argument> \blx@bbl@data          l.7 \begin{document}          ?     ! You can't use `\xdef' after \advance.     <argument> \xdef                  \csname\endcsname{\expandonce \csname\endcsname\csname c@1\...     l.7 \begin{document}          ?     (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty)     ! Undefined control sequence.     <argument> \blx@bbl@data          l.133 \newcounter{section@level}          ?     ! Missing number, treated as zero.     <to be read again>                    \xdef     l.133 \newcounter{section@level}          ?     ! Missing = inserted for \ifnum.     <to be read again>                    \xdef     l.133 \newcounter{section@level}          ?     ! Missing number, treated as zero.     <to be read again>                    \xdef     l.133 \newcounter{section@level}          ?     ! Undefined control sequence.     <argument> \blx@bbl@data          l.133 \newcounter{section@level}          ?     ! Undefined control sequence.     <argument> \blx@bbl@data          l.133 \newcounter{section@level}          ?     ! You can't use `\xdef' after \advance.     <argument> \xdef                  \csname\endcsname{\expandonce \csname\endcsname\csname c@1\...     l.133 \newcounter{section@level}          ?     ) (./test.out) (./test.out)     ! Undefined control sequence.     <argument> \blx@bbl@data          l.7 \begin{document}          ?     ! Missing number, treated as zero.     <to be read again>                    \xdef     l.7 \begin{document}          ?     ! Missing = inserted for \ifnum.     <to be read again>                    \xdef     l.7 \begin{document}          ?     ! Missing number, treated as zero.     <to be read again>                    \xdef     l.7 \begin{document}          ?     ! Undefined control sequence.     <argument> \blx@bbl@data          l.7 \begin{document}          ?     ! Missing number, treated as zero.     <to be read again>                    \xdef     l.7 \begin{document}          ?     ! Undefined control sequence.     <argument> \blx@bbl@data          l.7 \begin{document}          ?     ! You can't use `\xdef' after \advance.     <argument> \xdef                  \csname\endcsname{\expandonce \csname\endcsname\csname c@1\...     l.7 \begin{document}          ?     [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map     }] (./test.aux)          Package rerunfilecheck Warning: File `test.out' has changed.     (rerunfilecheck)                Rerun to get outlines right     (rerunfilecheck)                or use package `bookmark'.               LaTeX Warning: There were undefined references.               Package biblatex Warning: Please (re)run Biber on the file:     (biblatex)                test     (biblatex)                and rerun LaTeX afterwards.           )     (\end occurred inside a group at level 2)          ### semi simple group (level 2) entered at line 7 (\begingroup)     ### semi simple group (level 1) entered at line 7 (\begingroup)     ### bottom level </home/user/.texmf-        var/fonts/pk/ljfour/jknappen/ec/ecrm1000.60     0pk>     Output written on test.pdf (1 page, 6365 bytes).      No reference is produced. My aim is to have an entry like:               @misc{wiki3,     author = {Wikipedia},     title = {Prélude à l’après-midi d’un faune},     howpublished = {\href{http://en.wikipedia.org/wiki/Pr%C3%A9lude_%C3%A0_l'apr%C3%A8s-midi_d'un_faune}{en.wikipedia.org/wiki/Prélude\_à\_l'après-midi\_d'un\_faune}},     note = "[Zugriff am 12. Mai 2013 um 19:35]"     }      in my `bibfile.bib`. I would very very glad if someone could help me, as I have tried everything that came to my mind with no solution. Maybe my code works for you and my installation is broken? **EDIT 2:** A bug was discovered and reported during looking in this problem: https://sourceforge.net/p/biblatex-biber/bugs/144/


title: Issue an error when section takes more than 2 pages

text: I have a need to make the build crash when a `\section` takes more than a single page (in a given environment). How can I achieve that?


title: How does spreadtab know it is a number?

text: Using `spreadtab` with `glossaries` I define a glossary entry A with a field `user1=12`. Now, if I call this field in a `spreadtab` table with `\glsentryuseri{A}`, `spreadtab` does not recognize it as a number. Could I convince `spreadtab` somehow that it is a number?


title: How to get only "Chapter 1. The title of the chapter" in the left of header

text: I am trying to use fancyhdr, but I can't get it to not show the section and to keep the normal case for title and 'Chapter'. How can I have my heading to be "Chapter 1. The title of the chapter" (left aligned on all pages)


title: Removing whitespaces caused by separate source files

text: I have an article which consists of multiple files, a main file with following section includes:               \include{Introduction}     \include{ProposedProtocol}     \include{Comparison}     \include{FutureWork}     \include{References}      But there is a problem when I see the output. There are extra white spaces at the beginning of every section. A minimal start of the section files looks like this:               %!TEX root = Main.tex          \section{Proposed Protocol}     Content of the section goes here      Is there any way to remove these white spaces and make every section start where the previous one ends?


title: How to avoid overlapping when using single quotes (German)

text: when using the following example I get (probably not surprisingly) overlapping between single quotes and the letter at the beginning of a word (for example starting with A) or the end of a word (for example ending with f). Since I have to use the single quotes in this form quite a lot, how can I avoid this? Is is only font specific? If so, how can I avoid that with Adobe Garamond? Which options do I have to choose? I am using XeLaTeX. Thanks!               \documentclass[twoside=true, headsepline, 11pt, headings=small, ngerman, toc=graduated, mpinclude=false, headinclude, footinclude=false, ilines, BCOR=12mm, DIV=9]{scrbook}          \usepackage[ngerman]{babel}     \usepackage{amsmath,amssymb,amsfonts,textcomp}     \usepackage{color}     \usepackage{array}     \usepackage[xetex]{graphicx}     \usepackage{xunicode,fontspec,xltxtra}     \setmainfont[Mapping=tex-text]{Adobe Garamond Pro}     \setsansfont[Mapping=tex-text]{Adobe Garamond Pro}     \begin{document}          ‚Atlanta’          ‚Begriff’     \end{document}


title: Bibtex entry to cite an article with unknown author?

text: Which bibtex entry type should I use to cite an article in a professional/popular (i.e. non peer reviewed) magazine. The article does not state an author, and bibtex article entry requires an author. I found that the citation should be something like this ‘Tax-free savings push’, Sunday Mail (4 April 1999), p. 3.


title: BibTeX non-hierarchical keywords (tagging) for classification

text: BibTeX entries exported from online databases such as IEEExplore have keyword fields containing information that was decided by the authors or editors. However, I want to define my own non-hierarchical classification (i.e., tags or custom keywords) to use in my BibTeX database, without clearing the original keywords field. What BibTeX field should I use for such classifications? Ideally, I'd like to be able to add tags and query entries of my tags with a tool such as JabRef. There's a video that explains tagging in Mendeley, but I'd like to achieve the same with some BibTeX software.


title: Problems double-sided document header

text: I'm having troubles setting the header of a two-sided document. I need only the chapter number (not necessarily) and name in the header at left for even pages and at right for odd pages; I don't want a section title not the word "Chapter" in each page. So far I've try this with `fancyhdr`:               \usepackage{fancyhdr}     \pagestyle{fancy}     \renewcommand{\chaptermark}[1]{\markboth{#1}{}}      which gives the correct output of chapter but in left for odds and viceversa, plus it doesn't remove the section header. Also, I try with               \usepackage{fancyhdr}     \pagestyle{fancy}     \lhead[]{\thechapter}     \chead{}[\thechapater]      But this only puts the chapter number and adds a horrible 0 in the pages before contents (declaration, acknowledgements, dedication, etc.). I am using documentclass `scrreprt`. Thanks!


title: Copy table row n times

text: I would like to copy the row of a table, let say, `n` times, but unfortunately my sample below does not compile. It is my understanding that the `\foreach` command should copy what is in its argument but is not doing it here. I have looked at the error message in the compiler and I have an idea as to what may be causing it. I think it is how the table environment is constructed. I am thinking right now of enveloping the command as a group but I don't know how to do this. What is the best way to achieve this result? Some explanation will be appreciated.               \documentclass[letterpaper]{article}     \usepackage{amsmath,amssymb,lipsum}     \usepackage{tikz,calc}     \newcommand{\test}[1]{%         \foreach \i in {1,...,#1}         {%         t1 & t2 \\%         }}     \begin{document}     \begin{tabular}{cc}     \test{3}     \end{tabular}     \end{document}


title: LaTeX: table with variable number of lines

text: In LaTeX, I can do this:               \begin{tabular}{|p{5ex}|p{5ex}|}\hline       & \\ \hline       & \\ \hline       & \\ \hline     \end{tabular}      But I cannot get a variable number of blank lines this way               \newcommand{\mytable}[1]{       \begin{tabular}{|p{5ex}|p{5ex}|}\hline         \multido{}{#1}{%           &\\\hline         }% multido       \end{tabular}     }% mytable     \mytable{10}      or with a counter, even without a command \mytable               \newcounter{count}     \begin{tabular}{|p{5ex}|p{5ex}|}\hline     \whiledo{\value{count}<5}{%       & \\ \hline       \stepcounter{count}     }% whiledo     \end{tabular}      Does anybody know why this doesn't work? Indeed, it is a duplicate of 'copy table row n times'. That is exactly what I wanted, thank you very much for the hint!


title: How to upload a binary to CTAN?

text: I've written a small GUI program to ease the creation of LaTeX style tables (both tabular and longtable) for my students. I'm wondering if it is useful to upload it to CTAN. It is free software; however it seems to me the best to not only upload the sources but binaries, at least for Linux and Windows, too. My questions are:   * Is it useful to upload non-TeX programs to CTAN?   * If so, how do I do this?   * What do I need to include? Unfortunately, the CTAN upload page is down ATM, so I can't look for any hints there.


title: How to change global figure setting?

text: I did               \floatstyle{boxed}     \restylefloat{figure}      so all of my figures are with frames. This works well, but there is a place I do not want frame, how can I change it locally?


title: How to draw an Icosahedron?

text: After going through the `pgf manual` and also searching the web for some solution or at least a hint on how it can be done (preferably using TikZ), so I came here with my question: > How to draw an Icosahedron? This is what I have in mind: ![Icosahedron](http://i.stack.imgur.com/A24Wk.png)


title: Alignment of several case environments at the equals sign

text: I have several consecutive case environments, each containing a pair of equalities. Within each case environment, I have vertical alignment at the equals signs. I would like all of the equalities to be aligned at the equals signs.               \documentclass{amsart}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{amsthm}     \usepackage{mathtools}               \begin{document}          \begin{equation*}     \setlength{\arraycolsep}{0pt}     \left\{     \begin{array}{@{}rcl}     a^{6} + 2a^{3}b^{3} + b^{6} &{}={}& q^{2} \\     4a^{3}b^{3} &{}={}& -\dfrac{4}{27} \, p^{3}     \end{array}     \right.     ,     \end{equation*}     \begin{equation*}     \setlength{\arraycolsep}{0pt}     \left\{     \begin{array}{@{}rcl}     a^{3} + b^{3} &{}={}& -q \\     a^{6} - 2a^{3}b^{3} + b^{6} &{}={}& q^{2} + \dfrac{4}{27} \, p^{3}     \end{array}     \right.     ,     \end{equation*}     \begin{equation*}     \setlength{\arraycolsep}{0pt}     \left\{     \begin{array}{@{}rcl}     a^{3} + b^{3} &{}={}& -q \\     (a^{3} - b^{3}){\vphantom{a^{3} + b^{3}}}^{2}  &{}={}& q^{2} + \dfrac{4}{27} \, p^{3}     \end{array}     \right.     ,     \end{equation*}     \begin{equation*}     \setlength{\arraycolsep}{0pt}     \left\{     \begin{array}{@{}rcl}     a^{3} + b^{3}   &{}={}& -q \\     a^{3} - b^{3}   &{}={}& \sqrt{q^{2} + \dfrac{4}{27} \, p^{3}}     \end{array}     \right.     .     \end{equation*}          \end{document}


title: Problem with citation of repeated authors - second year not showing correctly

text: After creating a custom bibliography style using **makebst** to match the required Remote Sensing of Environment style, I discovered a flaw within the resulting .bst style: whenever I cite two papers with the same authors (e.g. \citep{Small.2004,Small.2010}), the output looks as follows: ... (Small et al. 2004, 1). Both links work as expected, but the second year is wrong, even though when cited separately, both entries are correct. Is there something wrong with my bst file?


title: Missing control sequence inserted \def*

text: I download a new package (Alegreya). But it gave an error _Missing control sequence inserted \def_. How can i fix it.               \documentclass[10pt,a4paper]{article}     \usepackage[utf8x]{inputenc}     \usepackage{ucs}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage[T1]{fontenc}     \usepackage{Alegreya} %% Option 'black' gives heavier bold face      \renewcommand*\oldstylenums[1]{{\AlegreyaOsF #1}}          \begin{document}     a     \end{document}


title: Remove page numbers and conference title

text: Is there a way to modify the bst file to format the references such that the page numbers and the conference titles are removed ? For example, like this reference: > V. Raykar et al. “Supervised learning from multiple experts: Whom to trust > when everyone lies a bit”. In: ICML (2009). I was able to reduce long author list to et al by modifying the bst file following this post: BibTeX: How can I automatically reduce long author lists to "xxx et al."?.


title: Latex: Get text of hypertarget

text: Please take a look at the following LaTeX code. How can I get the text of a `\hypertarget`?               \newcounter{reqCounter}     \newcommand{\newReq}[1]{\stepcounter{reqCounter}\hypertarget{#1}{(R\arabic{reqCounter})}}     \newcommand{\Req}[1]{(\hyperlink{#1}{%text of hypertarget%})}      Example:               This is a requirement \newReq{req1}. This is the same requirement as \Req{req1}.      Result: > This is a requirement (R1). This is the same requirement as (R1).


title: Minipage: trouble getting figures at top of page

text: I'm trying to fit these to flowcharts in one page. This is what I got so far, not so nicely done I think. Any suggestions how I can get the flowcharts at the top of the page, nicely next to each other with own captions? ## Code               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows,shapes.multipart}     \usetikzlibrary{calc}     \usepackage{graphicx}               \begin{document}          \tikzset{     offpageconnector/.style = {draw (1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle, fill=orange!20},     decision/.style = {diamond, draw, fill=orange!20,        text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt},     block/.style = {rectangle, draw, fill=blue!20,        text width=5em, text centered, minimum height=1cm},     terminator/.style = {rectangle, rounded corners, draw, fill=blue!20,        text width=5em, text centered, minimum height=1cm, node distance=3cm},     line/.style = {draw, -latex'},     cloud/.style = {draw, ellipse,fill=red!20, node distance=1.5cm,       minimum height=2em},     subroutine/.style = {draw,rectangle split, rectangle split horizontal,       rectangle split parts=3,minimum height=1cm,       rectangle split part fill={green!50}},     connector/.style = {draw,circle,node distance=3cm,fill=purple!20},     data/.style = {draw, trapezium,trapezium left angle=70,trapezium right angle=-70,minimum height=1cm,node distance=3cm,fill=olive!20},     cloud/.style = {draw, ellipse,fill=red!20, node distance=3cm,         minimum height=2em}}          \begin{figure}[!hbt]        \begin{minipage}[b]{0.4\textwidth}                \begin{center}     \begin{tikzpicture}[node distance = 2cm, auto]         % Place nodes         \node [cloud] (start) {Start};         \node [block, below of=start,node distance=2cm] (init) {Init};         \node [block, below of=init,node distance=2cm] (1ebyteop) {$1^{e}$ byte ophalen};         \node [decision,below of=1ebyteop,node distance=2cm] (contreof) {EOF?};         \node [terminator, right of=contreof] (end1) {END};         \node [block, below of=contreof] (2ebyteop) {$2^{e}$ byte ophalen};         \node [decision,below of=2ebyteop,node distance=2cm] (contreof2) {EOF?};         \node [terminator, right of=contreof2] (end2) {END};         \node [subroutine, below of=contreof2, node distance=2cm] (sub1) {\nodepart{two} SUB1};         \node [subroutine, below of=sub1, node distance=2cm] (sub2) {\nodepart{two} SUB2};                        % Draw edges         \path [line] (start) -- (init);         \path [line] (init) -- (1ebyteop);         \path [line] (1ebyteop) -- (contreof);         \path [line] (contreof) -- node {yes} (end1);         \path [line] (contreof) -- node {no}(2ebyteop);         \path [line] (2ebyteop) -- (contreof2);         \path [line] (contreof2) -- node {yes} (end2);         \path [line] (contreof2) -- node {no}(sub1);         \path [line] (sub1) -- (sub2);         \path [line] (sub2) |- ($(sub2.south west) - (0.7,0.7)$) |- (1ebyteop);          \end{tikzpicture}     \end{center}           \caption{Flow1}           \label{fig:flow1}        \end{minipage}        \hfill        \begin{minipage}[b]{0.4\textwidth}          \noindent\resizebox{0.25\textheight}{!}{     \begin{tikzpicture}[node distance = 2cm, auto]         % Place nodes         \node [connector,text width=1cm] (letter) {LET};         \node [subroutine, below of=letter, node distance=2cm] (sub31) {\nodepart{two} SUB3};         \node [decision,below of=sub31,node distance=2cm] (@) {@?};         \node [connector, right of=@,text width=1cm] (fout1) {FOUT};         \node [subroutine, below of=@, node distance=2cm] (sub32) {\nodepart{two} SUB3};         \node [decision,below of=sub32,node distance=2cm] (leesteken) {Leesteken?};         \node [connector, right of=leesteken,text width=1cm] (fout2) {FOUT};         \node [subroutine, below of=leesteken, node distance=2cm] (sub33) {\nodepart{two} SUB3};         \node [decision,below of=sub33,node distance=2cm] (atotf) {A-F?};         \node [connector, right of=atotf,text width=1cm] (fout3) {FOUT};         \node [block, below of=atotf,node distance=2cm] (vorm0x0h) {In vorm 0x0H};         \node [block, below of=vorm0x0h,node distance=2cm] (add09) {ADD 0x09};         \node [decision,below of=add09,node distance=2cm] (1eof2e) {$1^e$ of $2^e$ byte?};         \node [block, right of=1eof2e,node distance=3cm] (rotate) {4 maal rotate};         \node [block, below of=1eof2e,node distance=2cm] (inr3) {A in R3};         \node [block, below of=rotate,node distance=2cm] (inr2) {A in R2};         \node [block, below of=inr3,node distance=2cm] (incr1) {INC R1};         \node [decision,below of=incr1,node distance=2cm] (1eof2e2) {$1^e$ of $2^e$ byte?};         \node [connector, right of=1eof2e2,node distance=3cm,text width=1cm] (second) {SEC};         \node [block, below of=1eof2e2,node distance=2cm] (ret) {RET};         % Draw edges         \path [line] (letter) -- (sub31);         \path [line] (sub31) -- (@);         \path [line] (@) -- node {yes} (fout1);         \path [line] (@) -- node {no}(sub32);         \path [line] (sub32) -- (leesteken);         \path [line] (leesteken) -- node {yes} (fout2);         \path [line] (leesteken) -- node {no}(sub33);         \path [line] (sub33) -- (atotf);         \path [line] (atotf) -- node {yes} (fout3);         \path [line] (atotf) -- node {no}(vorm0x0h);         \path [line] (vorm0x0h) -- (add09);         \path [line] (add09) -- (1eof2e);         \path [line] (1eof2e) -- node {1e} (rotate);         \path [line] (1eof2e) -- node {2e}(inr3);         \path [line] (rotate) -- (inr2);         \path [line] (inr3) -- (incr1);         \path [line] (incr1) -- (1eof2e2);         \path [line] (add09) -- (1eof2e);         \path [line] (inr2) |- ($(incr1.south east) - (1,0.1)$);         \path [line] (1eof2e2) -- (ret);         \path [line] (1eof2e2) -- (second);          \end{tikzpicture}     }                \caption{Flow2}           \label{fig:flow2}        \end{minipage}     \end{figure}                   \end{document}


title: clean, breakable left-aligned array-like environment

text: The centered, yet left-aligned aspect of `\begin{array}{lll} ... \end{array}` is what I usually go with to give a list of conditions. My only problem with it, is that it is not breakable, so I try to replace it with `\begin{align}... \end{align}`-like environments. The closest result I get is with `\begin{flalign*} ...\end{flalign*}`. Then I can use `\allowdisplaybreaks[2]`. But I generally have to play around with `&`'s to get the "look" I want. Is there a cleaner way to achieve a breakable left-aligned array-like environment? Below is a concrete example, comparing the result with both `array` and `flalign`. (Also, as a side question, is it me, or are there some irregularities in the vertical spacing in the `flalign` version: namely there is more vertical spacing between line 5 and line 6, than between others, because of the subscript at the end of line 6. If so, can I avoid that?) Thanks for reading!               \documentclass[draft,11pt]{article}     \sloppy          \usepackage{amsmath,amssymb}               \newcommand{\labarrow}[1]{\ensuremath{\overset{#1}{\rightarrow} }}     \newcommand{\N}{\ensuremath{\mathsf{N}}}     \newcommand{\diam}[1]{\ensuremath{\langle #1 \rangle}}     \newcommand{\da}{\mathopen{\downarrow}}     \newcommand{\model}{\mathbb{M}}     \newcommand{\logic}[1]{\textsf{#1}}               \allowdisplaybreaks[2]          \begin{document}                    $$     \begin{array}{lll}     \model,w,g \models x & \textup{ iff } & g(x)=w\\     \model,w,g \models \logic{turn}_i & \textup{ iff } & \rho(x)=i\\     \model,w,g \models @_x \phi & \textup{ iff } & g(x)\in|\model| \textup{ and }         \model,g(x),g\models\phi\\     \model,w,g \models \da x.\phi & \textup{ iff } & \model,w,g[g(x):=w]\models\phi\\     \model,w,g \models [!\N_i]\phi & \textup{ iff } & {\model|_{\N_i(w)}},w,g \models \phi\\     \model,w,g \models \diam{\alpha}\phi & \textup{ iff } & \textup{there exists some }v\textup{ with }(w,v)\in||\alpha||^\model\\ & &\textup{and }\model,v,g \models \phi     \end{array}     $$                         \begin{flalign*}     &&&\model,w,g \models x && \textup{ iff } && g(x)=w&&\\     &&&\model,w,g \models \logic{turn}_i && \textup{ iff } && \rho(x)=i&&\\     &&&\model,w,g \models @_x \phi && \textup{ iff } && g(x)\in|\model| \textup{ and } \model,g(x),g\models\phi&&\\     &&&\model,w,g \models \da x.\phi && \textup{ iff } && \model,w,g[g(x):=w]\models\phi&&\\     &&&\model,w,g \models [!\N_i]\phi && \textup{ iff } && {\model|_{\N_i(w)}},w,g \models \phi&&\\     &&&\model,w,g \models \diam{\alpha}\phi && \textup{ iff } && \textup{there exists some }v\textup{ with }(w,v)\in||\alpha||^\model&&\\      &&& && &&\textup{and }\model,v,g \models \phi&     \end{flalign*}                              \end{document}


title: Adding table of contents to contents - wrong page numeration

text: I want the "Table of contents" position to appear in the table of contents. I'm using `\addcontentsline` to add this position, but the page numeration seems a bit odd. I have a table of contents beggining at the page 3 (and it takes 2 pages). But using this combination of commands:               \newpage     \addcontentsline{toc}{chapter}{Table of contents}     \tableofcontents     \chapter{First chapter}      I get following output:               Table of contents..... 2 (should be 3!)     First chapter......... 5      When I use something like this               \newpage     \tableofcontents     \addcontentsline{toc}{chapter}{Table of contents}     \chapter{First chapter}      I also get the numeration wrong:               Table of contents..... 4 (should be 3!)     First chapter......... 5      How can I add the "table of contents" position to TOC correctly?


title: Define proof environment in thmtools

text: I'm using thmtools for fancy-looking math environments. But I don't know how to redefine **proof** environment. I cannot find such topics in its documentation. This is my LaTeX code snippet.               \documentclass{article}          \usepackage{color}     \definecolor{section_color}{rgb}{0.35,0.0,0}     \definecolor{MyGray}{rgb}{0.96,0.97,0.98}          \usepackage{amsthm,thmtools}          % defining common style     \declaretheoremstyle[     spaceabove=6pt, spacebelow=6pt,     headfont=\color{section_color}\sffamily\bfseries,     notefont=\mdseries, notebraces={(}{)},     bodyfont=\normalfont,     postheadspace=1em,     qed=,     ]{mystyle}          % defining theorem environment     \declaretheorem[     style=mystyle,     shaded={bgcolor=MyGray,padding=2mm,textwidth=0.98\textwidth}     ]{theorem}          % defining claim environment     \declaretheorem[     sibling=theorem,     style=mystyle,     shaded={bgcolor=MyGray,padding=2mm,textwidth=0.98\textwidth}     ]{claim}          \begin{document}     %title{Thmtools Example}          \begin{theorem}[Euler's identity]     $e^{i\pi} + 1 = 0$     \end{theorem}          \begin{proof}     Use Euler's formula $e^{ix} = \cos x + i\sin x$.     \end{proof}          \begin{proof}[Proof of Fermat's Last Theorem]     Ask Andrew Wiles.     \end{proof}          \end{document}      ![enter image description here](http://i.stack.imgur.com/3o0U7.png) What I want for the proof environment is:   1. It has the same style as other environments: same font, same boldface, and same text color   2. But it has no shaded background.   3. It can handle an argument so that the title 'Proof' can be changed, as shown in the second proof example. How can I redefine proof environment using thmtools?


title: Draw custom frame around text

text: I would like to obtain a custom frame, which is different from the ones given by `mdframed`. Here is the image comes from the package fancytikzposter, which consists in a `minipage` inside a `tikzpicture` environment. This works great, but I can't create a figure in this frame since it is inside a `tikzpicture` environment. Is there some solution for this, or any possibility to construct it outside the TikZ environment ? Ideally, I am looking for something in the following form :               \begin{block}{Block title}     \end{block}      ![Package](http://i.stack.imgur.com/nydkw.jpg) Here is (the graphical part of) the code producing this frame                 %% the content of the block       \draw let \p1=($(#4)-(2.2,0)$),\p2=($(0,\blocktitleheight cm)-(0,0.5cm)$) in       node[draw, anchor=north, color=blocktitlefillcolor, fill=blockfillcolor,       text=blocktextcolor, framefour, rectangle]       (box) at #1 {         \begin{minipage}{\x1}           \vspace{\y2}                \color{blocktextcolor}           #3         \end{minipage}};            %% the title of the block       \begin{scope}         \clip[rounded corners=20] ($(box.south west)+(0.01,0.01)$) rectangle         ($(box.north east)-(0.01,0.01)$);              \draw let \p1=($(#4)-(3.2,0)$),\p2=($(0,\blocktitleheight cm)-(0,0.4cm)$)%         in node[anchor=bottom right corner, draw=none, %         bottom color=blocktitlefillcolor, top color=blocktitlefillcolor!85!,         text=blocktitletextcolor, rounded corners=20, inner xsep=1cm, %         minimum height=\y2, minimum width=\x1, %         shape=trapezium, shape border rotate=180, trapezium stretches=true]         (boxtitle) at ($(box.north west)+(1.5,0)$) {\bf\LARGE #2}              %% fading on top         [preaction={path fading=south,fill=blocktitlefillcolor,opacity=.4},draw=none]         ($(boxtitle.bottom right corner) - (3,\y2)$) rectangle         ($(boxtitle.bottom left corner)+(3,0)$);       \end{scope}                 %% decorative drawing on the title       \begin{scope}[even odd rule]         \clip[rounded corners=20] ($(boxtitle.bottom right corner)-(-0.2,0.2)$) --         ($(boxtitle.bottom left corner) -(0.2,0.2)$) -- (boxtitle.top left corner)         -- (boxtitle.top right corner) -- cycle %         (box.south west) rectangle (box.north east) ;              \draw[draw=none, rounded corners=20, %         bottom color=blocktitlefillcolor, top color=blocktitlefillcolor!85!]         ($(boxtitle.bottom right corner)-(0.5,0)$) --         (boxtitle.bottom right corner) -- (boxtitle.top right corner) --         ($(boxtitle.bottom right corner)+(3,0)$) --         ($(boxtitle.bottom right corner)-(0.5,0)$)              ($(boxtitle.bottom left corner)+(0.5,0)$) --         (boxtitle.bottom left corner) -- (boxtitle.top left corner) --         ($(boxtitle.bottom left corner)-(3,0)$) --         ($(boxtitle.bottom left corner)+(0.5,0)$) ;       \end{scope}          }


title: Automatically adjusting layout of inparaenum

text: I am trying to customize an inline list in the following ways:   1. I would like an item that doesn't fit entirely on one line to be moved to the next line.   2. Increase the vertical space between consecutive lines. Here is my MWE:               \documentclass{article}     \pagestyle{empty}     \usepackage{paralist}     \begin{document}     \noindent     Find the derivative of each of the following:\\[4pt]     \begin{inparaenum}[\hspace{1em}(a)]     \item $f_1(x)=2x^2+x-10$     \item $f_2(x)=4x^4-x^3+2x^2+5x-6$     \item $f_3(x) = -x^3-x^2+4x+6$     \item $f_4(x)=21x^5-x^4+2x^3+7x^2-13$     \item $f_5(x)=3x^4-4x^3-12x^2+12x-10$     \end{inparaenum}     \end{document}      So, for instance, items (c) and (e) should be on the next line. I need an environment like this when preparing problem sets for my students in which questions have multiple parts which are best laid out in this fashion. I mention this in case someone has a completely different approach.


title: Hyperref not linking ToC

text: I am having an issue with hyperref not linking the ToC to the chapters/sections. I have had a look around and I can not find a solution to my problem. If this is duplicated, my apologies... I am writing my thesis at the moment and its due soon so I'd like this fixed. I am currently using TexLive2013 in Ubuntu 12.04. I was previously using TexLive2009 however, I read that the caption package can cause hyperref to stop early so I updated. I am still having this issue with the folowwing error:               Package hyperref Message: Stopped early.          )          Package hyperref Message: Driver (autodetected): hpdftex.      Is this driver needed? Can I just delete it? Either way, hyperref appears to be working fine elsewhere i.e. urls etc. I have pasted my preamble below, perhaps I have a package conflict? The update to TexLive2013 however did cause the lineno package to stop working Any advice appreciated. Cheers, Dave               \documentclass[12pt,a4paper,openany]{/home/dbyrne/PHD/Dropbox/MyThesis/report_custom}     \usepackage[innermargin=40mm, outermargin=20mm]{geometry}                    \usepackage{array}     \usepackage{graphicx}     \usepackage{float} %for image placement     \usepackage{longtable}     \usepackage{comment}     \usepackage{color}     \usepackage{soul}     \usepackage{longtable}      \usepackage{pdflscape}     \usepackage[authoryear, square]{natbib}     \usepackage{eurosym}     \usepackage[nohyperlinks,withpage]{acronym}     \usepackage{caption}     \usepackage{subcaption}     \usepackage[toc,page]{appendix}     % \usepackage[]{lineno} % for line numbers. Not working with Texlive2013     \usepackage{acronym}                    \usepackage{draftwatermark}     \SetWatermarkLightness{0.9}     \SetWatermarkScale{5}          \usepackage[pdfpagelabels,implicit=false]{hyperref}     \hypersetup{         linktoc=all,         colorlinks,         citecolor=CadetBlue,         filecolor=CadetBlue,         linkcolor=CadetBlue,         urlcolor=CadetBlue     }               \renewcommand{\thefootnote}{\fnsymbol{footnote}}          \graphicspath{paths}     \linespread{1.3} %1=single, 1.3=1.5 and 1.6=double          \begin{document}      **EDIT - SOLUTION** As DG pointed out below, the issue is with loading hyperref with the [implicit=false] option. Once removed, the ToC was linked. Thanks again DG. For those wondering why I loaded [implicit=false] in the first place; I can not remember. Google probably told me at some stage..


title: How to embed the list figures into the document's main ToC without bad effects on the PDF ToC

text: For a relatively short report I would like to merge the list of figures (LoF) into the document's table of contents. In two related questions, Gonzalo Medina has suggested to just change the file extension LaTeX uses for the LoF, so that entries for figures end up in `jobname.toc`:   * Figures: Can the list of figures be embedded into the table of contents?   * How to embed figure short descriptions (as would be displayed in the List of Figures) within the table of contents in LaTeX? However, if this approach is used in conjunction with `hyperref` (to get a PDF ToC), the figure entries end up on _chapter level_ (level 0) in the PDF ToC – with the effect, that the figure becomes the father of all following section or subsection entries:               \documentclass{scrartcl}     \usepackage{tocloft}     \usepackage{subfig}     \usepackage{hyperref}          \makeatletter     \renewcommand\ext@figure{toc}     \makeatother          \newlength\mylen     \renewcommand\cftfigpresnum{Figure~}     \settowidth\mylen{\bfseries\cftfigpresnum\cftfigaftersnum}     \addtolength\cftfignumwidth{\mylen}          \begin{document}          \tableofcontents     \section{Test Section One}     Text     \subsection{Subsection One.1}     \begin{figure}[!ht]     A     \caption{test figure}     \end{figure}     \subsection{Subsection One.2}     Text     \section{Test Section Two}     \begin{figure}[!ht]     A     \caption{another test figure}     \end{figure}     \begin{figure}[!ht]     \subfloat[][A subfigure]{A}     \subfloat[][A subfigure]{B}     \caption{test figure with subfigures}     \end{figure}     \subsection{Subsection Two.1}     Text     \end{document}      The following screenshot shows the problem: In the PDF ToC (left side), _Subsection One.2_ and even _Test Section Two_ are nested below the entry for _test figure_. Moreover, the figures are missing the _Figure <#>_ prefix: ![enter image description here](http://i.stack.imgur.com/umON2.gif) **Questions:**   * How do I get the figure entries to appear on subsection level inside the PDF ToC?   * How to add the _Figure <#>_ prefix to the PDF ToC entries?


title: Figure caption line breaking after first letter

text: For all of my figures I am getting a line break after the first letter, so for example my PDF looks like               Figure 1: V     arying negative h values are plotted      All of the text is centered because I am using `\centering`. Here is the tex for one of the figures:               \subsection*{3}     \begin{figure}     \centering     \includegraphics{Capture2.PNG}     \begin{caption}     Varying negative h values are plotted     \end{caption}     \end{figure}      I have never seen this before, and am unsure of what I am doing differently. I see this behavior both on writelatex.com as well as when compiled locally.


title: underfull vbox (badness 10000) with memoir

text: Sorry if this question has been asked very often, but I can't easily find an answer to my specific question. I am using XeLaTeX and the memoir class to produce a rather long document (100 pages) with many sections, some of them less than a page. I get very many underfull vbox errors:               Underfull \vbox (badness 10000) has occurred while \output is active [1]      because the section title sometimes fall on page boundary. This forces XeLaTeX to insert ugly whitespace before section titles (see MWE below). I have seen many tutorials on how to _manually_ fix this, but due to the length of the document and the fact that it is changing often, this is not very productive. So my question is: **Is there a way to tell XeLaTeX to automatically increase interline spacing (or do other tricks) to automatically fix the underfull vbox errors?** MWE below:               \documentclass[a4paper,12pt]{memoir}     \usepackage[hmargin={2.5cm, 2.5cm}, vmargin={3.5cm,3.5cm}, headheight=1.5em]{geometry}     \usepackage{lipsum}     \begin{document}          \chapter{Hello}          \section{Hello1}     \lipsum[2]          \section{Hello2}     \lipsum[3-4]          \section{Hello3}     \lipsum[3]          \end{document}


title: How to generate a TOC without an actual document?

text: I have a PowerPoint presentation to be ready next week for an exam. As I am not very familiar to the TeXnical way to create a presentation, I don't want to rewrite it in TeX. I have the requirement to create a handout for the presentation. The handout is required to have an outline of the presentation. Is there any package to create a TOC in a LaTeX document that has no relationship to the sections and chapters of the document itself? I need something where I can create an outline like >   1. Foo >     * A >     * B >     * C >   2. Bar >     * D >     * E >     * F >   3. Baz >     * G >     * H >


title: Conflict between hyperref and attachfile2 package

text: I have a problem with creating pdf document that contains an attachment. This code works fine:               % <xetex — Unicode-based TeX engine>     \documentclass[12pt, a4paper, czech, twoside]{book}      \usepackage{hyperref}     \usepackage{attachfile2}     \begin{document}        My attached file is \attachfile{my.m}     \end{document}      but this code               \documentclass[12pt, a4paper, czech, twoside]{book}      \usepackage[xetex,                 bookmarks={true},    %  A set of Acrobat bookmarks are written                 colorlinks={true},   %  Colors the text of links and anchors.                  linkcolor={red},     %  Color for normal internal links.                 anchorcolor={black}, %  Color for anchor text.                 filecolor={cyan},    %  Color for URLs which open local files.                 menucolor={red},     %  Color for Acrobat menu items.                 runcolor={blue},     %  Color for run links (launch annotations).                 urlcolor={magenta},  %  Color for linked URLs.                           unicode={true},                   pdfauthor={Jaroslav Fait},                  pdftitle={Wiking},                  pdfsubject={study notes},                 pdfkeywords={linear algebra, math, electronics},                 pdfproducer={XeLateX with hyperref},                 pdfcreator={Xelatex}]{hyperref}           \usepackage{attachfile2}     \begin{document}      My attached file is \attachfile{my.m}     \end{document}       no!!!. Notes (my.m is Matlab m-file). The generated pdf document contain an attachment but could not be opened or saved, and the file name of the attachment is corrupted. The result of my investigation is such that the hyperref package shall not have any options. I use Miktex 2.9 (xelatex engine, last update) and Adobe reader X.


title: Incomplete package documentation in TeXLive 2012 on Ubuntu

text: I use `MacTex 2012` on my laptop. On the desktop in our lab, I use `TeXLive 2012` on Ubuntu 12.04. I noticed that some package documentations in Ubuntu are not as comprehensive as they are in Mac. To give you an example, `texdoc tikz` in my Mac brings up more than 700 pages of documentation, however, in my Linux machine `tikz` documentation is nowhere near that complete. I tried to update everything but I failed to update the documentation. Why is there this problem and how to update all package documentation? ### Edit I checked the Ubuntu machine an realized that `texdoc tikz` opens the `tikz-3dplot` package documentation (latest version though). So the problem after all, _might_ not be the outdated documentation but wrong entries for `texdoc`. Any ideas?


title: Token expansion with the token library

text: I don't understand how the `token` library of luatex works.               \documentclass{standalone}          \begin{document}          \def\mymacro{A}          \directlua{%       t = token.create ('mymacro')       token.expand(t)       token.get_next()     }          \end{document}      The token.expand does not work as I expected: `luatex` says `Undefined control sequence`. Why? With the `token.get_next()`, I don't know exactly what I should get...


title: Matching punctuation size to small caps

text: Normal apostrophes are too big for small caps and this is making my running headers look weird. I'm getting around this by shrinking each apostrophe to `\footnotesize` and lowering it by -0.55ex. Is there a more elegant way to do this? (Notes. 1: Presumably this applies to other punctuation, but apostrophes are my only immediate concern. 2: I'd rather not scale the font, as suggested here, as this leads to kerning issues. 3: In a related vein, at very large font size, apostrophes and quotes look too fat, I find, so I tend, as here, to use a smaller font size and adjust the height using a `\raisebox`.)               \documentclass{article}          \begin{document}          WOULDN'T'VE --- full caps          {\sc wouldn't've} --- dislike          {\sc wouldn\raisebox{-.055ex}{\footnotesize'}t\raisebox{-.055ex}{\footnotesize'}ve} --- like          \end{document}      ![MWE](http://i.stack.imgur.com/LwBAU.png)


title: What is the correct way to generate an index?

text: For creating an index I am currently including               \usepackage{makeidx}     \usepackage{index}     \makeindex          [...] \index{...} [...]          \printindex      into the document (and run `makeindex` inbetween compilations). I was told some time ago that this is the way to create indexes. So, I'm wondering whether there is some more modern and flexible way to do this (similar to have BibLaTeX is a modern replacement for BibTeX). In particular, are there ways to add some styling options to the `\printindex` call. Currently I'd have to create an index style file or patch `theindex` just to remove `\MakeUppercase` from `\markboth` for the index. If it matters, I usually use the KOMA-Script classes.


title: Plotting parametric curves

text: I am trying to plot some parametric curves, however I always get an an error saying "Dimension is too large". Is there any way to fix this?               \begin{tikzpicture}[scale=.2]     \draw[very thin,color=gray,step=.5cm,dashed] (-8,-8) grid (4,4);     \draw[<->, blue] (-8,0) -- (4,0) node[below right] {$x$};     \draw[<->, blue] (0,-8) -- (0,4) node[left] {$y$};     \draw [red, thick,  domain=-10:1.1, samples=40]       plot ({\x^3-3*\x}, {3*\x^2-9} );     \end{tikzpicture}


title: How to draw a tree diagram where its rectangular nodes have a floating numbering label each?

text: This is a graph someone send me in Word: ![enter image description here](http://i.stack.imgur.com/KeKGv.jpg) Ignoring the Hebrew text, how can I produce such a graph in LaTeX (I actually use LyX, but I suppose it won't help me so much)? If there's an elegant and easy way to add the numbering as well, that will be great. Otherwise, I'll just add them in simple text.


title: Make the lines of a description item line up

text: I am trying to line up the lines of a single description item. When I introduce a line-break or when the line becomes to long, the new line isn't lined up with the first one. I'm aware of the fact that the first line has to deal with the space that is taken by the label, but I want other lines to star a the same position (horizontally) no matter what. Here is an exemplary code which illustrates my problem:               \documentclass[12pt,a4paper]{article}     \begin{document}     \begin{description}     \item [Label]Here is a long item that requires a line break. The second line of this item      won't line up with the first word. I can achieve this manually\\ \hspace*{2mm} by forcing a     line break and setting an apropriate value in \textbackslash hspace*, but I want this to be      automised. Please help me.     \end{description}          \end{document}      It comes out looking like this: ![My output](http://i.stack.imgur.com/KzVoq.jpg) I appreciate any help on this. It is driving me nuts.


title: "Top Level" category for indexes in OPmac

text: Is there a way to create a "top level" index entry in OPmac without a page number? I'd like it to look something like this:               figs     -- green 1     -- newtons 3     -- red 2      Notice, there is no page number after the word `figs` (in this example perhaps there are only references to the three specific fig types in the text). My current solution is this:               \def\indexcat#1{\openref\wref\Xindex{{#1}{}}} % No Page Number entry     \indexcat{figs}      But I was thinking there might be a built-in way instead of manually writing to the reference file like this. Here's a little MWE to play with if you'd like:               % Process twice to get the index     \input opmac     This is the first page which talks about \ii figs \ii figs/green green figs.     \vfil\eject     On this page we talk about everyone's love of \ii figs/red red figs which are delicious.     \vfil\eject     And finally we have \ii figs/newtons fig newtons, which frankly one wonders if that's real fig in there...     \vfil\eject     \nonum\sec Index          \makeindex          \bye      (Notice that I had to put the rather annoying lone `\ii figs` entry to even get a bare top level entry -- though with page number. Try the MWE without `\ii figs` on the first line to see what I mean.)


title: LaTeX listing of command line syntax

text: I have a LaTeX document using the listings package for some bash scripts. I'd like to create a different styling for text that is meant to show the syntax of a command. For instance, I have the following command in a bash-styles listing:               java -jar /usr/share/java/picard/MarkDuplicates.jar INPUT=<alignment_file.bam> \       VALIDATION_STRINGENCY=LENIENT OUTPUT=alignment_file.dup \       METRICS_FILE=alignment_file.matric ASSUME_SORTED=true REMOVE_DUPLICATES=true      However, I'd like to style this differently to a command that is actually entered into a terminal, since it is not a real command but just showing the syntax to be used. Is there a default styling for such a thing. Perhaps following: Note the following conventions in the definition of the command parameters:               Angle brackets ( < > ) indicate a mandatory parameter.     Square brackets ( [ ] ) indicate an optional parameter. If you omit the parameter, InfoSphere CDC uses a default value.     A vertical bar ( | ) separating one or more parameters indicate that only one of the parameters in the list can be used. When one or more vertical bars appear in a list of parameters that is enclosed by square brackets [ ], the choices are limited to the parameters in the list, but you have the option to not specify any of the parameters.     Ellipsis ( ... ) means that a parameter or option can be repeated more than once.     Unless otherwise noted, the commands apply to all operating systems.


title: Tabbing and line-wrapping

text: I'm making a CV. I use the tabbing environment so that my sections start with a 1cm indent, and I can also right-justify dates. For example:               Education         University of Coolness                                          2005         Bachelor of Amazingness         A relatively short description of what I did there......      The problem that I run into is that some of my lines go further than the page- width, and in the tabbing environment, there doesn't seem to be linewrapping, according to a quick google search. For completeness, the exact code that I use is:               \mysectitle{Education}          \begin{mysec}         \bold{my degree} \`expected 2015 \\     \end{mysec}      where my environments are defined as:               \newcommand{\mysectitle}[1]{\vspace{1cm}\textsc{\Large \bold{#1}}          \myline\vspace{0.3cm}}     \newcommand\mytabs{\hspace*{1cm}\=\hspace{1cm}\=\hspace{2cm}}     \newenvironment{mysec}       {\begin{tabbing}\mytabs\+\kill}       {\end{tabbing}}      Would you recommend using the tabular environment instead? If so, how could I right-justify a date in tabular environment, in the same fashion as `\'` does in tabbing environment? Thanks!


title: How to merge marginpars to avoid overflows?

text: I am using margins to print keywords but sometimes the number of keywords in a paragraph become too many and they appear beside the next paragraphs. To avoid this issue, I thought maybe they could be done in a way that the texts in the margin are separated by commas instead of new lines if their corresponding `\marginpar`s are on the same line of text. For example, assume I write:               Some text A\marginpar{X} and B\marginpar{Y}      In the output, A and B are printed on the same line. Then I want to have "X,Y" in the margin area instead of "X" on one line and "Y" on its next line. Is there a way to modify `\marginpar` or define a new command for this purpose?


title: Biblatex-Chicago and Biber not compiling

text: For some time, I have been trying to get the `biblatex-chicago` style working but have failed miserably. I have made substantial efforts to examine the forums and other people's biblatex-chicago and biber problem: unprocessed references, left with citation keys in pdf, but they have not worked in solving my problem. Here is the text:               \documentclass[12pt]{article}     \usepackage[margin=1.5in]{geometry}     \linespread{1.5}     \usepackage[UKenglish]{babel}     \usepackage[babel]{csquotes}     \usepackage{framed}     \usepackage[notes,backend=biber]{biblatex-chicago}     \bibliography{bibliography.bib}               \title{Chapter 4}     \date{}       \begin{document}           \maketitle{}          Between July and September 1989, the trade fiasco with Saudi Arabia had claimed the    lives of almost 30,000 Australian sheep.\footcite{Release:N31990}      Animal Liberation, the Federation, the World League for the Protection of Animals and the RSPCA unanimously called for an immediate cessation to the live sheep trade based on animal welfare concerns.\footcite{ALMAGJuly-Sep1990}                          \pagebreak     \printbibliography[title=References]          \end{document}      And here is the error code that I get when I compile:               Process started: "C:/Program Files/MiKTeX 2.9/miktex/bin/x64/biber.exe" "Chapter 4".bcf          data source C:\Users\Gonzalo\AppData\Local\Temp\par-476f6e7a616c6f\cache-    63038a22a6dc2bcfc65352f2f3a3448ce3f3ab68\inc\lib/Biber/LaTeX/recode_data.xml not found in.      The `log` file says that I have undefined references and that I should rerun Biber but this, obviously, fails. I am running the latest version of `TeXStudio` and `MikTeX` on Windows 7 (64bit). I have manually downloaded and installed `Biber` in the miktex\bin folder and have configured `TeXStudio` with "C:/Program Files/MiKTeX 2.9/miktex/bin/x64/biber.exe" %.bcf.   Any help (in simple language - I am a humanities student not an IT person) would be greatly appreciated.


title: Compilation error when using MetaUML on Windows

text: When I try to compile a MetaUML program on Windows, I get the following error: ` Font ptmr8r not usable: TFM file not found ` I Googled this error, and I found that I have to install texlive-fonts- recommended. However, I cannot find any way to install this package on Windows. I am using TeX Live 2010. I am able to compile MetaPost programs without problems. This isn't a LaTeX document but a MetaPost program that uses the MetaUML library. I wasn't sure about the best place to put this. Here is the code. It is an example from the MetaUML SourceForge site               input metauml.mp     beginfig(1); % had forgotten this          Class.P("Person")()();     Class.C("Company")()();          leftToRight(150)(P, C);          drawObjects(P, C);          clink(association)(P, C);          item(iAssoc)("employee")(obj.sw = P.e);     item(iAssoc)("1..*")(obj.nw = P.e);          item(iAssoc)("employer")(obj.se = C.w);     item(iAssoc)("0..*")(obj.ne = C.w);          item(iAssoc)("works for")(obj.s =.5[P.e,C.w]);          % and these     endfig;     end      To compile I do: ` mpost test.mp ` Ok, I installed Tex Live 2012, and the problem I had originally went away. I think the issue I had originally was because I did not have the recommended fonts installed (it's an option in the installer and increases the size of the download significantly, and I probably unselected it). Now when I compile, I see the following:               mpost test.mp     This is MetaPost, version 1.504 (kpathsea version 6.1.0)     (mpost.mp (c:/texlive/2012/texmf-dist/metapost/base/plain.mp     Preloading the plain mem file, version 1.004)) (./test.mp     (c:/texlive/2012/../texmf-local/metapost/local/metauml/metauml.mp     (c:/texlive/2012/../texmf-local/metapost/local/metauml/util_infrastructure.mp     ...     (c:/texlive/2012/../texmf-local/metapost/local/metauml/metauml_templates.mp)))     *     (Please type a command or say `end')     *end     Transcript written on test.log.      I don't see any errors. test.log only has the output that was displayed, which consisted of files from the MetaUML library. No other files are generated. I have other MetaPost code that uses my own included libraries, and I don't see this problem. The problem was that I didn't have the `beginfig()`, `endfig`, and `end`. This is MetaPost 101, but I had copied and pasted from the website. I've updated the code.


title: How to export a equation as a image without background?

text: For example, if we have a equation on a file like:               \documentclass[12pt]{standalone}     \usepackage{varwidth}          \usepackage[utf8x]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{amsmath, amssymb, graphics, setspace}     \newcommand{\mathsym}[1]{{}}     \newcommand{\unicode}[1]{{}}     \newcounter{mathematicapage}          \begin{document}        \begin{varwidth}{50in}             \begin{equation*}                 P\left(H_h|E_e\right)=\frac{P\left(E_e|H_h\right)P\left(H_h\right)}{P\left(E_e\right)}             \end{equation*}         \end{varwidth}     \end{document}      How export it as a png image, without background? (Just the equation, without white background). (I'd like a full comand to do this, compiling the .tex file and getting a png image as output) I need this to generate equation images to a presentation.


title: Table column with unwanted spacing

text: I have a table with two columns.               \begin{table}[ht]     \begin{tabular}{|p{12cm}|p{4cm}|}     \hline     \textbf{Company} & \textbf{Contact} \\     \hline     Company produces advanced product systems compatible with a range of blah, blah, and blah used on this and that & Company\\     & 1234\\     & First Street\\     & Troy, New York 12180\\      & USA\\      \hline     \end{tabular}     \end{table}       The way I have set it out the second column has a blank line which is set by the size of my first column, as you may see in the image below. How can I avoid this? ![enter image description here](http://i.stack.imgur.com/LiTi2.png)


title: Paragraph indentation incorrect with picinpar package

text: I am using the `picinpar` package and don't know why the paragraph indentation is not working. The problem words are highlighted: ![enter image description here](http://i.stack.imgur.com/yFZAb.png) ## Notes:   * I am not stuck to using the `picinpar` package, but want to _avoid_ having to specify the width of the figure at the point it is inserted. The example provided uses `\includegraphics` to keep the MWE simpler, but my figures are `tikz` figures so I use `\input` instead of ``\includegraphics` in my real use case. I tried the other solutions at the references question, and found `picinpar` the easiest to use.   * I thought perhaps the problem was that `\parskip` and `\parindent` were being rest within the `window` environment as in Why is \parskip zero inside a minipage?, but that solution (commented out) had no effect.   * This work fine if the `parskip` pacakge is used, but I am trying to have the recommended indented paragraphs. ## References:   * How to wrap text around a figure? (revised). ## Code:               \documentclass{article}     %\usepackage{parskip}% Works great with this.     \usepackage[demo]{graphicx}     \usepackage{picinpar}     \usepackage{showframe}     \usepackage{lipsum}     \usepackage{xcolor}% To highlight problem text          \newlength{\currentparskip}     \newlength{\currentparindent}     \newcommand{\MyWrapFig}[3][]{%         % #1 = options: number of lines, align         % #2= figure content         % #3= text content         %         %\setlength{\currentparskip}{\parskip}% save the value         %\setlength{\currentparindent}{\parindent}% save the value         %         \begin{window}[#1, #2,]             %\setlength{\parskip}{\currentparskip}% restore the value             %\setlength{\parindent}{\currentparindent}% restore the value             #3%         \end{window}     }%          \newcommand{\SomeMoreText}{Some text. Some more text.}%     \newcommand{\Text}{%         \SomeMoreText   \SomeMoreText   \SomeMoreText         \SomeMoreText   \SomeMoreText   \SomeMoreText     }%               \begin{document}     \section{First Section}     \MyWrapFig[1,r]{%         \includegraphics[height=1cm]{MyFigure}     }{%         \textcolor{red}{Here} is a paragraph that should \emph{not} be indented without parskip.         \SomeMoreText              \textcolor{red}{This} is the second paragraph which \emph{should} be indented without parskip.         \SomeMoreText \SomeMoreText \SomeMoreText              \textcolor{red}{Last} paragraph that \emph{should} also be indented without parskip.         \Text     }          \MyWrapFig[1,r]{%         \includegraphics[width=3cm]{MyFigure}     }{%         Here is a paragraph that should be indented without parskip.         \SomeMoreText              \textcolor{red}{This} is the second paragraph which \emph{should} be indented without parskip.         \SomeMoreText              \textcolor{red}{Last} paragraph that \emph{should} also be indented without parskip.         \Text     }     \end{document}


title: Missing $ error for align*

text: \begin{align*}     P_n(x+1) &=\lim_{\epsilon\to 0} \frac{1}{2^2 n!}~\frac{d^n}{d\epsilon^n}[\epsilon^n(2+\epsilon)^n]\\     &=\lim_{\epsilon \to 0} \frac{1}{2^2 n!}~\frac{d^n}{d\epsilon^n} [ 2^n\epsilon^n +\underbrace{\text{higher order terms in \epsilon}}_{0(\epsilon^{n+1})} ]\\     &=\lim_{\epsilon\to 0} \frac{1}{2^2 n!}~2n~\frac{d^n\epsilon^n}{d\epsilon^n} + \underbrace{\frac{d^n 0}{d\epsilon^n}(\epsilon^{n+1})...}_{\text{vanishes as} \epsilon \to 0}     \end{align*}      I keep getting: > ! Missing `$` inserted. `$` l.166 `\end{align*}` I don't know where to put `$`. I thought I didn't need one because `align*` is already in math mode? I had a similar block earlier in the document where I put:               \begin{align*}     \frac{d^{2n}}{dx^{2n}} (x^2-1)^n &= \frac{d^{2n}}{dx^{2n}}(x^{2n}+\text{lower order terms which vanish under 2n differentiation})\\     &=(2n)! + 0\\     \therefore\int_{-1}^1 P_n(x)P_n(x)dx &= \frac{(2n)!(-1)^n}{(2^n n!)^2}\int_{-1}^1 (1-x^2)^n dx     \end{align*}      and it came out fine.


title: generate a surf plot from a text file

text: I would like to create a `surf` plot (like mesh in Matlab) with a view from the top. From a bit leasing I found this way for accomplishing that:               \begin{tikzpicture}      \begin{axis}{view={0}{90}]       \appplot3[surf] table {datafile.dat};      \end{axis}     \end{tikzpicture}      At the moment my data, that I would like to plot, is a 400 x 1000 matrix, where the values in the matrix represent the hight (or color). In which format do I need to generate `datafile.dat`, so that `\addplot3[surf]` could read it? I found few formats:               (x value, y value, z value)     (x value, y value)[ z value]      The easy way for me would be if I could simply generate a matrix with the size 400 x 1000, which contains the z values, and in addition to scale the values of the x-axis and y-axis. **EDIT** I generated a file at the format Jake gave. As jake said, using `pdflatex` returned `TeX capacity exceeded, sorry [main memory size=3000000]`, but from the other side, `lualatex` returned               ! Package pgfplots Error: Could not read table file '/tmp/workfile'. In case yo     u intended to provide inline data: maybe TeX screwed up your end-of-lines? Try      `row sep=crcr' and terminate your lines with `\\' (refer to the pgfplotstable m     anual for details).      which was not experted. **EDIT 2** I was able to create the following ![picutre](http://i.stack.imgur.com/6uSFS.png). I used the following code for it:               \begin{tikzpicture}      \begin{axis}[view={0}{90},colormap/cool]       \addplot3[surf] table [row sep=newline] {./workfile.dat};      \end{axis}     \end{tikzpicture}      I would like that for value to have the color white and in my picture, about 90% of the values are null, but in the picture it is not the case (there is some kind of hell blue). How could it be fixed? Is it also possible to consider only values which are bigger then a specific value? In python matplotlib there is a possibility to use a LogNorm scale for the colors. Is it also possible in tikz (in this case)?


title: pagebreak if only 1/4th of the page left?

text: I have a document with some tabulars one after the other. I want the tabulars begin on a new page if there is very little room left on the actual page, like 1/4th. Otherwise, there should not be a pagebreak. So I need some kind of conditional \pagebreak, how can I do this?


title: Restricting \input to avoid unpleasant duplication

text: Avoid inputting a file multiple times describes how to prevent a file from being `\input` more than once. I wonder, though, if there is a way to limit this to only preventing a file from being `input` if and only if it has been `\input` within the last, say, five pages... but allowing it to be `\input` if there are at least five pages since the last time. I have a data set that associates files to be `\input` (diagrams) with data objects. I don't want to see the same diagram input multiple times in close succession (seeing the same diagram more than once on the same page, or within a few pages, is unpleasant), but am happy to see the diagram included again if associated with a data element sometime later. For example, an atlas of US cities ordered by name might display a small map of the state the city is in. It's dead easy to always include the map, it's slightly trickier but not hard to include a map once and only once. I'm wondering if it's possible to make it so the map gets included the first time, then any attempt to `\input` it again ignored unless there are at least (some number) of pages between the current page and the last time it was `\input`.


title: Define pretty sets in LaTeX; esp., how to do the condition-separator?

text: E.g., I have this set:               \{ \alpha \in \Sigma^\omega | \exists^\omega n : \alpha [0,n] \notin \Sigma^* a_1 \Sigma^* a_2 \dotsb a_n \Sigma^* \}      Here, I use `|` as the separator for the condition part. But LaTeX doesn't add any spaces around it, thus it looks a bit strange/wrong. I could manually add some space here but I wondered if there is some more "correct" way. E.g. also to make it behave similar as `:` (which I actually want to behave different here; in this case, `:` adds too much space in front of it for my taste).


title: siunitx: scientific notation

text: I want to use scientific notation with the `siunitx` package. However, when I try to do it I am getting an error:               The width of a human hair is \SI{1 \times 10^{-4}}{m}.      This has always given me a LaTeX Error" `invalid character '10^{-4}' in numerical input` Is there a better way to do this while continuing to use `siunitx`? Thanks!


title: Arara rule to delete files with wildcard

text: How can I define a `Arara` rule to delete with wildcard? The following should delete all log files in the folder of the LaTeX file.               %!TEX TS-program = Arara     % arara: pdflatex:  { synctex: yes }     % arara: cleanwildcard: { files: [*.log]}          \documentclass{minimal}          \begin{document}          Hello World!          \end{document}


title: Vertically center text on a page

text: How do I vertically center the text on a page?


title: Is there any way to know what equation number will be?

text: Suppose I am writing a LaTeX document describing some code and in the code I would like to refer to specific equation numbers in the document. Is there an automatic way to determine what equation number will be assigned to `\label{eqn:myequation}` It would be nice to write a program which parses the source code and replaces an equation label in the comments with the current number assigned to that label by pdflatex.


title: Label and ticks using pgfplots

text: I am using `pgfplots` to plot simple functions. For example,               \begin{tikzpicture}     \begin{axis}[grid=major,xmin=0,xmax=1,ymin=0,ymax=0.5]     \addplot[color=black] coordinates {     (0,0.2)     (0.5,0.2)     (1,0)     };     \end{axis}     \end{tikzpicture}      I want to add a letter, say "x", at the point 0.5 on the horizontal axis to make some emphasis. Anyone knows how to do this?


title: Equations inside enumerate aligned on item's number

text: If I type               \begin{enumerate}             \item            \begin{align*}             eqn 1             eqn 2           \end{align*}       \end{enumerate}      the label will appear on the first lines and the equations will appear on subsequent lines. How do I make it so that the equations begin on the same line as the enumerate label? Obviosly, I could manually adjust the location using `\vspace` and `\rule`, but is there a better way?


title: How to create consistent 3D images in Tikz

text: I would like to create images similar to these ones: ![enter image description here](http://i.stack.imgur.com/BgKqx.png) ![enter image description here](http://i.stack.imgur.com/Wknzz.png) However I would like to be able to do so in a coordinate system specific way so that I don't have to think about how the 2D projection of the image relates to the 3D image it is supposed to represent. For example: In the second image, Is there a way to specify a circle of a given radius centred at a particular z coordinate such that when viewed from different angles the circle changes (becomes an ellipse) so that perspective is honoured? Basically I want to define objects in 3D and let tikz do all the work concerning rotations etc.


title: \choose in \frac doesn't work

text: I'm trying to type following:               \sum_{i=1}^{m}\frac{1}{{n-1} \choose {|A_i|-1}} \leq 1       But complier alerts:               Package amsmath Warning: Foreign command \atopwithdelims;     (amsmath)                \frac or \genfrac should be used instead     (amsmath)                 on input line 57.          ! Ambiguous; you need another { and }.     \choose ->\atopwithdelims ()      However `{n-1} \choose {|A_i|-1}` works.


title: How can I edit the same bibliography in Jabref on multiple machines?

text: Do I have to copy and share both the .bib and .bak file? Is this even possible?


title: remove additional space before `:`

text: In this math code:               \exists^\omega n : \alpha [0,n] \notin A      it adds some empty space before and after `:`. I want to avoid/remove the space before it. How?


title: Font lunr8r not found - or - What to do if a font file has not been found?

text: After installing `Univers_ps` font I get the error `lunr8r` not found, probably exactly the same which is reported by a guy in a post here (german) The problem is: I don't understand the solution given there, since I am a Windows user and I have (almost) no clue about LaTeX. Can anybody give me a hint on how I might approach this problem?               Windows 7 SP1     MikTex 2.9.4248     TexnicCenter 2.02      ME               \documentclass[ngerman]{tudscrreprt}     \usepackage{selinput}     \SelectInputMappings{adieresis={ä},germandbls={ß}}     \usepackage[T1]{fontenc}     \usepackage{babel}     \usepackage{blindtext}     \begin{document}     \pagestyle{empty}               \end{document}      The error msg is               !pdfTeX error: pdflatex.exe (file lunr8r): Font lunr8r at 657 not found      Probably it has to do with this class `tudscrreprt` Id like to use. I know it's difficult to state something from far, but maybe there is a rather general _to do_ for such a case or am I mistaken?


title: \left \right for the bracket of a function

text: I'm writing something like a function `Y(-)`, where the term in the bracket is large, so I wrote `Y\left(-\right)`, however, the "Y" is still the normal size, which makes it looks small, compare with the `\left(` next to it. And the space between the two is large. Anybody can help me with this?


title: standalonetrue / standalonefalse?

text: You can use `\standalonefalse` to specify the parent document for which all sub-documents should be considered sub-documents, I think. Is it possible to re-enable `standalone` with something like `\standalonetrue` after a `\standalonefalse` call? I would like this capability because I have a paper that uses standalone for its subsections that is being included in a thesis, which also uses standalone. I'd like to be able to compile the chapter, the paper, and the thesis each independently (since each document has different dependencies / build times). EDIT: MWE below and here: https://gist.github.com/keflavich/5224790 (because there are multiple file interdependencies, I figured it was best to have a complete example in one place). My understanding of both latex conditionals and standalone must be pretty weak. I've constructed a MWE (`sub2.tex`):               \documentclass{article}     \usepackage{standalone}     %\standalonetrue     \usepackage{import}     \usepackage{natbib}     \begin{document}     \section{Section}     Nothing here (but I want to compile this document on its own sometimes)     \citet{Aguirre2010}     \ifstandalone     \bibliographystyle{apj_w_etal}       \bibliography{mwe}           \fi     \end{document}      with `mwe.bib`:               @article{Aguirre2010,         title={Title},         author = {Aguirre},         journal = {In Prep},         year={2010}     }      If I compile this code with `pdflatex sub2.tex && bibtex sub2`, it gives me bibtex problems:               I found no \bibdata command---while reading file sub2.aux     I found no \bibstyle command---while reading file sub2.aux      If I uncomment `\standalonetrue`, it works. The problem comes in if I have another document that `import`s this document. In order to compile this document, I need `\standalonetrue` in it. But the parent document (below), won't accept an imported document with `\standalonetrue` in it, as far as I can tell:               Illegal, another \bibstyle command---line 8 of file sub1.aux      : \bibstyle      :          {apj_w_etal}     I'm skipping whatever remains of this command     Illegal, another \bibdata command---line 9 of file sub1.aux      : \bibdata      :         {mwe}     I'm skipping whatever remains of this command      Here's the "parent" document (called `sub1.tex`)               \documentclass{aastex}     \usepackage{standalone}     \standalonetrue     \usepackage{import}     \usepackage{natbib}     \begin{document}     \chapter{Chapter of an Article}     This is an article that includes many subsections     \subimport{./}{sub2}     \ifstandalone     \bibliographystyle{apj_w_etal}     \bibliography{mwe}           \fi     \end{document}


title: TeX Live not compiling from TeXnicCenter

text: Due to problems with `psfragfig` and MiKTeX I wanted to switch to TeX Live and TeXnicCenter instead (on Windows 8). However it does not compile even the smallest MWE in TeXnicCenter. I always get the error message that the file I want to compile is not found. From the command line I have no problems. Do you know what is causing this error?


title: Multiline \operation inside figure

text: I am trying to use `pgf-umlcd` to create a class diagram. The class includes a method name with long types for the parameter, so I am using `\\\` to split the definition over two lines. The following works to create that diagram.               \documentclass[10pt,letterpaper,notitlepage]{article}          \usepackage{tikz}     \usepackage{pgf-umlcd}               \begin{document}     %\begin{figure}[ht] % Remove this and it works     \begin{tikzpicture}[show background grid]       \begin{class}[text width=15 cm]{MyClass}{1, 12}         \operation{-someMethod( longVarName : LongClassName \&, \\           \hspace{3 cm}otherLongVarName : OtherLongClassName const \&): void}       \end{class}          \end{tikzpicture}     %\end{figure} % Remove this and it works     \end{document}      I can compile this with               export TEXINPUTS=$HOME/doc/texmf/tex//:`kpsepath tex`; pdflatex test.tex      I would like to put this inside a figure, so that I can caption it and reference it elsewhere. If I do so by uncommenting the figure lines, then it fails to compile.               export TEXINPUTS=$HOME/doc/texmf/tex//:`kpsepath tex`; pdflatex test.tex     This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Cygwin)      restricted \write18 enabled.     entering extended mode     (./test.tex     <snip>     (/usr/share/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))     ! Undefined control sequence.     \\->\let \reserved@e                       \relax \let \reserved@f \relax \@ifstar {\let \reserved...     l.12 ...Name : OtherLongClassName const \&): void}          ?       Replacing `\\\` with `\newline` will compile, but the `\hspace` after it no longer indents. Is there a problem with using `\\\` inside a figure? Alternately, is there a better way to do what I am trying to do within `pgf-umlcd`?