title: Beamer headline too long

text: When creating a beamer presentation in LaTeX, I have so many sections and frames, that the headline with the navigation bar is too long for the frame. Also, the table of contents is too long. I know that I can change the fontsize for the TOC, but is there a possibility to arrange the TOC in 2 (or more) columns? And is it possible to arrange the headline in more then 1 (say, 2) lines? Working example:               \documentclass[ngerman]{beamer}     \usetheme{Frankfurt}     \begin{document}     \begin{frame} \tableofcontents[hideallsubsections] \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \section{Abschnitt} \subsection{Abschnitt} \begin{frame} Abschnitt \end{frame}     \end{document}      EDIT: The first question has been solved, thx to samcarter. For the second question the code in the given link does not work for me. Since I am using the theme Frankfurt, I thought I had to exchange `\progressbaroptions{headline=sections}` by `\Frankfurtoptions{headline=sections}` but this does not work. If I leave away that line, no headline at all is shown.


title: Tables grid lines are not equal with columncolor

text: I am trying to color the background headline of my tables. I am using `columncolor`, which works very well, but sadly, the grid lines does not look correct. Without `columncolor` the grid line looks fine. Here is screenshot of the grid line, note the red marked grid lines. They are a little bit smaller. ![enter image description here](http://i.stack.imgur.com/7ojRq.png) Here is my latex code               \begin{table}[H]          \begin{tabularx}{\linewidth}{|X|X|X|}          \hline          \multicolumn{1}{|>{\columncolor[gray]{.9}}c|}{\textbf{A}} &     \multicolumn{1}{ >{\columncolor[gray]{.9}}c|}{\textbf{B}} &     \multicolumn{1}{ >{\columncolor[gray]{.9}}c|}{\textbf{C}} \\          \hline          1 & 2 & 3 \\ \hline     1 & 2 & 3 \\ \hline     1 & 2 & 3 \\          \hline          \end{tabularx}          \end{table}      What did I wrong? How could I improve the look?


title: Default language for both polyglossia and fixme

text: Is it possible to change the default language for both the polyglossia and fixme package at the same time? After v1.2.0 polyglossia no longer supports loading language definition files as package options and fixme is not aware of language set by `\setdefaultlanguage`. Minimal XeLaTeX example:               \documentclass{article}          \usepackage{polyglossia}     \setdefaultlanguage{danish} % set language for polyglossia          \usepackage[draft, danish]{fixme} % set language for fixme          \begin{document}          \listoffixmes     \tableofcontents          \section{My section}     Some text\fxnote{This needs fixing.}          \end{document}


title: How do I draw a tree upside down in qtree?

text: How do I draw a tree upside down in `qtree`? So root at the bottom and leaves at the top.


title: How to make automatically line break when use longtable?

text: I use `longtable` package to produce a table covers two pages, but if there are too many words in one column, the sentence can not switch to the next line automatically, see picture, the 4th column.![enter image description here](http://i.stack.imgur.com/YIVQ9.png) Below is the "code"               \documentclass[12pt]{article}     \usepackage{longtable}     \begin{document}     \begin{center}     \begin{longtable}{|c|c|c|c|}     \caption{A simple longtable example}\\     \hline     \textbf{First entry} & \textbf{Second entry} & \textbf{Third entry} & \textbf{Fourth    entry} \\     \hline     \endfirsthead     \multicolumn{4}{c}%     {\tablename\ \thetable\ -- \textit{Continued from previous page}} \\     \hline     \textbf{First entry} & \textbf{Second entry} & \textbf{Third entry} & \textbf{Fourth entry} \\     \hline     \endhead     \hline \multicolumn{4}{r}{\textit{Continued on next page}} \\     \endfoot     \hline     \endlastfoot     1 & 2 & 3 & 4dddddddddddd asdfdasfasdf asödflkjasdf asdfasdfasdf \\ 1 & 2 & 3 & 4 \\ 1   & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\     1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\     1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\     1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\     1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\     1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\     1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\     1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\     1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\     1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\     1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\     1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\     \end{longtable}     \end{center}     \end{document}      I change               \begin{longtable}{|c|c|c|c|}       to               \begin{longtable}{|c|c|c|p{6cm}|}      The fourth column can swith line, but the lines of columns have problem, see below ![enter image description here](http://i.stack.imgur.com/Wvg15.png) How to produce the table correctly?


title: List of definitions: how to remove the prefix "Definition"?

text: I have write definitions in this way (this is a MWE class unatesi is available here):               \documentclass[laurea,oneside,12pt,italian]{unatesi}     \usepackage{amsthm}     \usepackage{thmtools}          \newtheorem{defin}{Definition}          \begin{document}         \begin{defin}[Definition's name]             Lorem ipsum dolorem         \end{defin}              \listoftheorems     \end{document}      So when list is printed, it shows something like that: > 1 Definition (Definition's name)............................ 1 But I want something like > 1 Definition's name............................................. 1 There's a way to do this?


title: Numbering not every line with lineno

text: How it is possible to number not every line with lineno? For example only every fifth line. There are no hints in the manual.


title: Font Question: inslrmaj

text: I go to http://www.tug.dk/FontCatalogue/ to browse for a suitable font. Most of them don't seem to work with pdftex. For example http://www.tug.dk/FontCatalogue/inslrmaj/ I download the sample .tex, the `inslrmaj` package loads without error. I get two errors that can be resolved by commenting out:               \input catalogue      and               \input fonttable      but then the text renders in the default format. How do I get these fonts to work?


title: Need help including images using pdflatex

text: I have a picture of a chart I want to include in my beamer presentation I have included the following in my preamble               \usepackage{graphicx}     \graphicspath{C:/Latexpics/}      I am using MikTeX, when I use the command               \includegraphics{Chart}      I get an error saying `file chart not found` Obviously i have something set up wrong, in the file path i have tried `.jpeg`, `.png`, and `.pdf` I am using `pdflatex` any help on where my mistake is would be immensely apprec


title: Demo option for graphicx in memoir?

text: How can I activate the `demo` option for the graphicx package when using memoir? Is there an equivalent option in memoir? When I try:               \usepackage[demo]{graphicx}      I get:               ! LaTeX Error: Option clash for package graphicx      ## Update (solved) Memoir does not load `graphicx`, so the solution is to add `\usepackage[demo]{graphicx}` before any other package loads `graphicx`, as @egreg pointed out in the comments.


title: TeXLive won't find files in $HOME/texmf

text: I just upgraded to Ubuntu 11.10 and was trying to get my custom styles/fonts and the like to work. As on all distributions before, I store them in `$HOME/texmf`, with a tree structure according to the main `TEXMF`-Folder. I did run `texhash` but my system seems unable to find the files in `$home/texmf` (i.e. `kpsewhich "anyfilenameinthatfolder"` doesn't return anything). However, using `kpsepath`, it is apparently listed, e.g. for `kpsepath` tex it gives:               :!!/home/USERNAME/texmf/tex/      amongst others. `kpsewhich -var-value TEXMFHOME` returns:                /home/USERNAME/texmf      So that appears to be correct, too. Finally, I thought that something in my `.cnf` file is wrong, so I opened `/usr/share/texmf/web2c/texmf.cnf` and found               TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFMAIN,!!$TEXMFDIST}      which again seems to be correct. I have no clue what is wrong here, since it used to work fine. Any help would be highly appreciated.


title: Alignment of columns of nested tables (tabularx)

text: I want to nest 2 `tabularx` tables: the columns of the "inside" table belong to a column of the "outside" table and therefore shall be indented and have a vertical line on their side. I tried to do that with the following MWE, but I wish that the second column of the inserted table would be aligned with the "outside" table, so **h and j shall be horizontally aligned with b and d**.               \documentclass[11pt, a4paper]{scrartcl}     \usepackage{tabularx}     \begin{document}          \begin{tabularx}{\textwidth}{p{3cm} X}     \hline     a & b\\     c & d\\     \multicolumn{2}{@{\quad}|l}{     \begin{minipage}{\textwidth}     \begin{tabularx}{\textwidth}{p{3cm} X}     g & h \\     i & j \\     \end{tabularx}     \end{minipage}     }\\     e & f \\     \hline     \end{tabularx}          \end{document}      ![enter image description here](http://i.stack.imgur.com/Po3sT.png)


title: Double superscript error

text: I'm a relative beginner with Lyx. When I type in this code I'm hoping for T' to be followed by superscripts and subscripts. Instead I get a "double superscript" error when I try to view the pdf               \[     T'_{\alpha_{1}\alpha_{2}\ldots\alpha_{n}}^{\mu_{1}\mu_{2}\ldots\mu_{m}}     \]      Any idea how I can fix this?


title: The least intrusive and most elegant for removing \documentclass?

text: Here is the context: I have a file named (say) `00.tex`, which I use in the following elaborate way. Compiling the file, generates auxiliary tex files, which in turn execute `\include{00.tex}`. The motivation is that the auxiliary files are named               slides-1-1-introduction.tex     handouts-1-1-introduction.tex     slides-1-2-administration.tex     handouts-1-2-administration.tex     ...     slides-2-1-landing.tex     handouts-2-1-landing.tex     slides-2-2-speech.tex     handouts-2-2-speech.tex      each of these represents a portion and a perspective on a large course divided into sections and subsection. Now, file `00.tex` must have `\documentclass` since it is compiled separately, either for generating the auxiliary files, or for generating the full presentation. On the other hand, this `\documentclass` must not be there if it is included from other files. To complicate things further, the `\documentclass` is not necessarily the first command, e.g., you must declare options to classes before issuing it. I can think of trick involving redefinition of `\documenclass` from within the auxiliary files but I trust this crow'ds have more elegant ideas.


title: StatET & Sweave cannot compile pdf files

text: I am new to R, Sweave, and LaTeX. I am running StatET with Eclipse 3.7 on a Windows 7 x64 OS. StatET also includes the Sweave add-on, which I use to try and compile a PDF document. I also installed MiKTeX 2.9, because, previously, R could not execute texi2dvi (presumably, because there was no TeX runner). Basically, no .tex file could be compiled into PDF file. After I installed MiKTeX, I was successful at compiling a .pdf file from .tex file. However, the moment I introduce pdf() function into the .Rnw file, I get a "fatal" error. When trying to compile this simple .Rnw file:               %     \documentclass[a4paper]{article}     \usepackage[OT1]{fontenc}     \usepackage{Sweave}     \begin{document}          \title{pdftest.Rnw}     \author{Egor}          \maketitle          <<echo=F, results=hide>>=     pdf(file='figure1.pdf')     plot(1:10,1:10)     dev.off()     @          \end{document}      I get the following error message: > Sweave(file = "C:/Users/Egor/Desktop/R/Head-tracking/pdftest.Rnw") Writing > to file pdftest.tex Processing code chunks with options ... 1 : term hide > > You can now run (pdf)latex on 'pdftest.tex' > > require(tools) > > texi2dvi(file = "C:/Users/Egor/Desktop/R/Head-tracking/Data/pdftest.tex", > pdf = TRUE) > > Error: running 'texi2dvi' on 'C:/Users/Egor/Desktop/R/Head- > tracking/Data/pdftest.tex' failed > > LaTeX errors: C:/Users/Egor/Desktop/R/Head-tracking/Data/pdftest.tex:13: ==> > Fatal error occurred, no output PDF file produced! > > In addition: Warning message: running command > '"C:\PROGRA~1\MIKTEX~1.9\miktex\bin\x64\texi2dvi.exe" --quiet --pdf > "C:/Users/Egor/Desktop/R/Head-tracking/Data/pdftest.tex" -I "C:/Program > Files/R/R-2.13.1/share/texmf/tex/latex" -I "C:/Program > Files/R/R-2.13.1/share/texmf/bibtex/bst"' had status 1 I'm following the method described by Ista Zahn in his guide Learning to Sweave in APA Style: http://www.tug.org/pracjourn/2008-1/zahn/zahn.pdf. > The method I'm going to present here is specifically chosen because it makes > it easier to produce figures that are sized appropriately, with > appropriately sized axis labels and legends (something that can be tricky > with other methods). Specifically, I recommend creating your graphic and > saving it to a .pdf file, and then inserting the image into a figure > environment. Unfortunately, I cannot include the image file of the code, because I am a new user. It is on page 14 of Ista's guide, but here's an ugly version of it:               <<echo=f a l s e , r e s u l t s=hide>>=     pdf ( f i l e=" spl o t 1 2 . pdf " , width=6, he i ght=5)     qplo t ( educat ion , income , shape=type , s i z e=women , c o l our=p r e s t i g e ,     xlab="Education " , ylab="Income ")     dev . of f ( )     @     nbeginf f i g u r e g     ncentering     n i n c l u d e g r a p h i c s [ width=6in , he i ght=5in ] f spl o t 1 2 . pdf g     ncaptionfA s c a t t e r p l o t d i s p l a y i n g the r e l a t i o n s h i p s     among Income , Education , Pr e s t i g e , Type o f occupat ion ,     and pe r c entage o f Women in the f i e l d . g     n label f f i g : f i g 1 2 g     nendf f i g u r e g      I did try to just plot without an intermediate .pdf file, but using only height and width options of \includegraphics gave me distorted figures. Sorry, it is not clear from the first code I provided that I am later planning on recalling this figure with LaTeX code, because I just wanted to concentrate on getting a pdf() function to work inside the <<>>=...@ thing. It clearly doesn't for me, whereas it does for Ista. I decided to create the .pdf image files in a separate .R file, and then compile the comprehensive .pdf file with Sweave, but that's just an intermediate solution. Thanks! --Egor


title: multibib package gving me an error "Extra \fi"

text: I'm trying to use the multibib package and my MWE is pretty much identical to the one in the manual but I keep getting an error. It says `! Extra \fi` The weird thing is, even I don't do anything in the body it still shows up. Just having the line `\usepackage{multibib}` in the preamble with nothing else changed throws up this error. Is there a bug or am I missing something? Here is the MWE anyway               \documentclass[aps,prl,twocolumn,balance,superscriptaddress,floats,showpacs,a4paper]{revtex4}     \usepackage{newfloat}     \usepackage{latexsym}     \usepackage{dcolumn}     \usepackage{graphicx}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{float}     \usepackage{hyperref}     \hypersetup{colorlinks,linkcolor=blue,citecolor=blue,urlcolor=blue}     \usepackage[left=18mm,right=18mm,top=22mm,bottom=22mm]{geometry}     \usepackage{mhchem}     \usepackage{bm}     \usepackage{multibib}          \begin{document}     \title{Blah}          \author{ABC}     \email{ABC}     \altaffiliation{ABC}     \affiliation{ABC}               \maketitle               \bibliography{bib}     \end{document}      I also tried the full version               \documentclass[aps,prl,twocolumn,balance,superscriptaddress,floats,showpacs,a4paper]{revtex4}     \usepackage{newfloat}     \usepackage{latexsym}     \usepackage{dcolumn}     \usepackage{graphicx}     \usepackage{amssymb}     \usepackage{graphics}     \usepackage{amsmath}     \usepackage{epsf}     \usepackage{float}     \usepackage{hyperref}     \hypersetup{colorlinks,linkcolor=blue,citecolor=blue,urlcolor=blue}     \usepackage[left=18mm,right=18mm,top=22mm,bottom=22mm]{geometry}     \usepackage{mhchem}     \usepackage{bm}     \usepackage{multibib}     \newcites{ltex}{Secondary References}          \begin{document}          Main text with \cite{Primary Ref 1}     \bibliography{bib}          Secondary text with \citeltex{Secondary Ref 1}     \bibliographyltex{bib}          \end{document}


title: paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

text: I want to format paragraph to work as a regular title               \paragraph{title} text goes here      output of that is: **title** text goes here * * * how can I change the output to force line break and use the usal indentation of 1st line? **title** text goes here __ **edit1:** this is for a thesis and I'm using the document class - book. I don't want to use `\subsubsection` because this is the structure of the document. I just simply need one level of headers deeper. And that is why I wanted to use `\paragraph` as a heading not as paragraph. **edit2:** clarification: I'd like paragraph to behave like a header like section subsection subsubsection etc


title: Renaming while loop in package algorithm

text: How do I rename the `While` loop using `algorithm` and `algpseudocode`?               \documentclass{article}     \usepackage{algorithm}     \usepackage{algpseudocode}     \begin{document}      \begin{algorithm*}       \caption{bar baz}        \label{alg:interesting}         \begin{algorithmic}[1]          \While{foo bar}          \EndWhile         \end{algorithmic}      \end{algorithm*}     \end{document}      It prints it out as               While foo bar do     end while      I would like to it come as               Until foo bar repeat          end while      How do I change only the first part of the while loop.


title: Why does pasting the contents of a tikz file into my main file compile properly but not when using \input

text: If I place the contents of my `tikz` picture in my main.tex file it works like a charm using               \usepgfplotslibrary{external}         \tikzexternalize       and subsequently: pdflatex --enable-shell                 \documentclass{article}         \usepackage{tikz,pgfplots}         \usepackage{subfig}         \usepackage{tabularx}         \pgfplotsset{compat=newest}            \usepgfplotslibrary{external}         \tikzexternalize         \begin{document}         \definecolor{mycolor1}{rgb}{0,0.75,0.75}              \begin{tikzpicture}              \begin{axis}[%         width=4.52083333333333in,         height=3.565625in,         scale only axis,         xmin=0, xmax=6,         xlabel={cfu (Y)},         ymin=0, ymax=1,         ylabel={Probability density},         legend style={draw=black,fill=white,legend cell align=left}         ]         \addplot [         color=blue,         solid,         line width=1.5pt         ]         table{         0.164920894751145 0.145245471693298         0.34898483521757 0.314105513485571         0.400206868657802 0.375704063846473         0.431202365194672 0.415565960090126         0.468283168514601 0.465368046385591         0.468819173063357 0.466102333522882         0.541086963948335 0.567617590141928         0.558035142464694 0.591815958738304         0.558424656178589 0.592372256340699         0.567763246195775 0.605704754250354         0.588442297122976 0.635140815037755         0.588968308388865 0.635887013738116         0.589496900268574 0.636636709024852         0.615575125108802 0.673361419528354         0.656478830152384 0.729356371745445         0.663734249176834 0.739001710618186         0.681134429788414 0.761691427683771         0.699206339854542 0.784509230520803         0.703174714510729 0.789406773282464         0.710293205919594 0.798082837552696         0.738324318268112 0.830765143080553         0.743729355370618 0.836772857231647         0.7628624687978 0.857202030543563         0.789650071275085 0.883431847212714         0.848769035460717 0.93014828764704         0.857054257851899 0.935346913150545         0.867490832222506 0.941393771927579         0.892221633180695 0.953428704494102         0.910732799951076 0.96026629015755         0.942439202692875 0.967534739622871         0.964173551423469 0.969220797343017         0.966490207360103 0.969241291138126         0.972340307586979 0.969156381555276         0.999815929196087 0.966143308438322         1.01840762385923 0.96167588822653         1.02422624912665 0.959879519150392         1.04820841787849 0.950503937405069         1.05040526585597 0.949488520832702         1.05188064663965 0.948792015052305         1.06421741151945 0.942513866116551         1.06952744475091 0.939564533487357         1.07377729763307 0.937098333090976         1.10837980144772 0.913625640841771         1.12655613304724 0.898983298828636         1.13577066384758 0.89098627132941         1.1580472276478 0.870142330490693         1.15859589504013 0.869603007065865         1.18051156035791 0.847100007296536         1.21401730562959 0.809369022407148         1.33027028384446 0.656408242977467         1.33483660875034 0.649970375448687         1.37629546726956 0.590995765951455         1.39873034424263 0.558976024508442         1.42011477374599 0.528607866819228         1.49811243643743 0.421418636969251         1.55782976646071 0.345795703108512         1.60683136399288 0.289407680329164         1.67872959183145 0.217237684951087         1.70586524394617 0.193407783948843         2.09859653835273 0.0221208957939459         2.23050096301146 0.0087062390469457         };         \addlegendentry{n=5};              \addplot [         color=green!50!black,         solid,         line width=1.5pt         ]         table{         1.11061716777245 0.25439255248339         1.32152703852018 0.444545345197107         1.33743602693433 0.460242989969573         1.42547263125263 0.547313752669856         1.50599624519356 0.623697850962722         1.5261804928616 0.641779387498937         1.573838875732 0.682042674974274         1.57730219814673 0.684816482012706         1.62699159305991 0.721956657982538         1.63486458952984 0.727347067179288         1.68630344515834 0.758807092685913         1.71784982886711 0.774600265244482         1.83289913575602 0.806644546215021         1.86864417529802 0.807887335418516         1.88963804306077 0.806645110709114         1.90172633188334 0.805269969440086         1.97361138903204 0.787332803216098         2.16847522483986 0.665794197723055         2.26107642525521 0.582137894844234         2.44093902647085 0.40561167899897         2.55728899719626 0.299162501222641         2.72596462417501 0.174351769994033         3.14460320890567 0.0275718440302502         };         \addlegendentry{n=10};              \addplot [         color=red,         solid,         line width=1.5pt         ]         table{         1.58873251442874 0.139270685555603         1.75094674410523 0.187648610352166         2.00056999517431 0.274533946251121         2.27705604989095 0.374550491086161         2.29596621491152 0.380969240114346         2.41176717604408 0.417753266892818         2.41614828744096 0.419044488634782         2.45981848928711 0.431445200552556         2.51461996380818 0.44569150663875         2.63732800530387 0.471433199097579         2.67540149916467 0.47748693150892         2.72686458640717 0.484091305194831         3.03140642922051 0.483465535521604         3.07384878732821 0.477986374915163         3.1895413994593 0.4569517259234         3.25640618890004 0.441099033384993         3.39991043346777 0.399612809225554         3.7029148147097 0.292622994026572         3.94491621538283 0.206344381423128         4.36469219413918 0.0911022396340956         4.68444030939428 0.0408178745872097         };         \addlegendentry{n=15};              \addplot [         color=mycolor1,         solid,         line width=1.5pt         ]         table{         2.44469092422533 0.134047643683245         2.99469910210473 0.332559909167666         3.05373235366556 0.355888865309276         3.31377765482139 0.447946402923478         3.41066336498647 0.474278454032695         3.73828133650772 0.512840458011838         4.11146934521349 0.451592119764443         4.12204843744243 0.448459021945289         4.13062375797785 0.445874763291985         4.34434429091486 0.371194128891267         5.24212616032033 0.0753126892773911         };         \addlegendentry{n=20};              \end{axis}         \end{tikzpicture}%              \end{document}      ![enter image description here](http://i.stack.imgur.com/ND4zO.png) **BUT:** If i do               \documentclass{article}     \usepackage{tikz,pgfplots}     \usepackage{subfig}     \usepackage{tabularx}     \pgfplotsset{compat=newest}          \usepgfplotslibrary{external}     \tikzexternalize     \begin{document}               \begin{figure}[!ht]       \centering\makebox[\textwidth]       {\resizebox{1.2\textwidth}{!}{%       \begin{tabularx}{1.2\textwidth}{*2X}       \begin{center}       \subfloat[Normal distribution at n=5,10,15,20]{\label{fig:normpdf_3d}\input{./Figures/chapter6/normpdf_3d.tex}}\\%width=6cm,height=7.59cm       \subfloat[Probability frequency density plot at n=5,10,15,20]{\label{fig:normpdf_2d}\input{./Figures/chapter6/normpdf_2d.tex}}%width=7.38cm,height=4.97cm        \end{center}      \end{tabularx}}}      \smallskip       \caption{PDF and scatter plots}       \label{fig:normpdf}     \end{figure}          \end{document}      I get some stupid error: ![enter image description here](http://i.stack.imgur.com/Oe7c1.png) Any thoughts would be extremely helpful. Just showing --shell-escape is truned on. ![enter image description here](http://i.stack.imgur.com/dWN0T.png) IMPORTANT NOTE: The file compiles _correctly_ **without** `\usepgfplotslibrary{external} \tikzexternalize` [sic]. Do I have to put something into the preamble of the file that I call? ie \input{normpdf_3d.tex}?


title: tikz: Black hole eats pictures

text: While playing around with shadings I accidentally created a black hole (a zero-width rectangle) which ate all my pictures and text on the page:               \documentclass{article}     \usepackage{tikz}          \begin{document}     Still there:      \begin{tikzpicture}     \draw[fill=red] (0,0)rectangle(2,2);     \end{tikzpicture}          The black hole:     \begin{tikzpicture}%zero width rectangle with shading:     \draw[left color=red, right color=blue] (2,0) rectangle (2,2);     \end{tikzpicture}          A picture lost in the black hole:     \begin{tikzpicture}     \draw[fill=blue] (0,0)rectangle(2,2);     \end{tikzpicture}          Some text lost in the black hole.     \end{document}      There are no errors in the log. The black hole ends with the page. I get it with all engines. The pdf opens without problem but gsview complains and don't open the ps. I made a bug report but perhaps someone here is interested to find out what's going on.


title: How to scale prooftree environment (bussproofs package)

text: I am using package `bussproofs` in order to draw sequent calculus style proofs. The proofs are often lengthy and would like to scale them but I can not do it. There is an uninformative error raised: > ! LaTeX Error: Something's wrong--perhaps a missing \item. As you can see scaling and `prooftree` environments work separately, but not together. Do you have any suggestions how to scale prootrees? There is no information about it in `bussproofs` guide.               \documentclass[]{beamer}     \usepackage{graphicx}     \usepackage{bussproofs}     \usepackage{amssymb}     \begin{document}          \begin{frame}          \begin{prooftree}         \AxiomC{A}         \AxiomC{B}         \BinaryInfC{C}     \end{prooftree}          \scalebox{.6}{The problem}          \scalebox{.6}{         \begin{prooftree}             \AxiomC{A}             \AxiomC{B}             \BinaryInfC{C}         \end{prooftree}     }          \end{frame}          \end{document}


title: Disable line numbering of specific lines

text: Is there way how to turn off numbering of lines for specific line in `algorithm2e`? I need bold `:` after keyword. So I tried redefine these macros:               \renewcommand{\KwIn}[1]{\textbf{Input:} #1}     \renewcommand{\KwOut}[1]{\textbf{Output:} #1}      But after try of this:               \begin{algorithm}[h]            \SetAlgoNoLine     \DontPrintSemicolon     \LinesNumbered          \KwIn{$(X_{t-1}, u_t, z_t)$}\\     \KwOut{$X_t$}     ...     ...     ...     \end{algorithm}      ![algorithm](http://i.stack.imgur.com/AjkWo.png) So I need turn off line numbering of 2 first lines (keyword lines). Or specify new keyword which will have bold `:` after keyword name. This `\SetKwInput{Input}{Input}` is generating only normal `:` after `Input` name ( **Input** : (X...)). I was searching in documentation how adjust style of input/output keywords but nothing about ending `:` found. Can anybody help?


title: Vector Notation in optimization problems

text: I am typing optimization problems in latex. Half of the variables are vectors. First I used bold to mention vectors, but it looked ugly. Now I am using `$\mathbbmss{p}$` but I am not sure if this looks neat               \begin{aligned}     {\mathop{\arg\max}\limits_{\vec{\theta}}}\; && \mathbbmss{p}_k(\theta)\mathbbmss{q}-p_B\mathbbmss{q}_B&\\     &\text{s.t.}&&\mathbbmss{p}_k,\mathbbmss{q},\;\mathbbmss{q}_B\in\mathbb{R^N},\;p_B\in\mathbb{R}     \end{aligned}


title: Abstraction layer for creation of floating figures with caption

text: A floating figure or table typically consists of the following parts:   * The floating environment   * The figure itself   * A caption   * Optionally, rules before/after the figure   * Perhaps a "source" statement   * ... Different layouts have different requirements for, e.g., positioning of captions, typical placement of floats, presence of rules etc.. This makes code reuse difficult. For this reason, we have created an abstraction layer that takes everything the figure consists of as arguments and arranges it so that it matches the requirements of the different layouts. My question is: Is there already a package that provides this or a similar functionality? If not, would such a package be of general interest, or is the approach flawed in some way?


title: How to escape /None in \foreach iterator?

text: The last compiler to invoke is               ps2pdf -dAutoRotatePages#/None frames.ps      for Windows or               ps2pdf -dAutoRotatePages=/None frames.ps      for non-Windows. The code snippet I want to invoke is as follows.               \foreach \compiler/\ext in {latex/tex,dvips/dvi,ps2pdf -dAutoRotatePages#/None/ps}         {\immediate\write18{\compiler\space frames.\ext}}      But if you need the complete code, see my last answer here. Probably the iterator gets confused with `/None` because `/` is used for the delimiter. How to escape `/None`?


title: Drawing custom shape with MetaUML

text: How to draw image like this: ![enter image description here](http://i.stack.imgur.com/ZRy1s.png) I use MetaUML package for drawing Uml. Can it be used to draw this image? I want to keep my image styles uniform and don't want to use other drawing package just for one image. I can draw it like this: ![enter image description here](http://i.stack.imgur.com/rnZG2.png) but how can I get rid of the Component icon? And how to make boxes same dimension? This is the code I use               input metauml;     beginfig(1);              Class.A("Entity")()();         A.info.iAttributeStack.top := 0;         A.info.iAttributeStack.bottom := 0;         A.info.iMethodStack.top := 0;         A.info.iMethodStack.bottom := 0;              Class.B("Render")()();         B.info.iAttributeStack.top := 0;         B.info.iAttributeStack.bottom := 0;         B.info.iMethodStack.top := 0;         B.info.iMethodStack.bottom := 0;              Class.C("Collectable")()();         C.info.iAttributeStack.top := 0;         C.info.iAttributeStack.bottom := 0;         C.info.iMethodStack.top := 0;         C.info.iMethodStack.bottom := 0;              Component.BigC("Spoon")(A, B, C);              leftToRight(10)(A, B, C);              drawObject(BigC);          endfig;     end      **edit** I can get rid of component symbol by using `Package` instead of `Component`, but result looks a lot different than original image


title: Processing a particular line of text in a document

text: My question points actually to a particular problem, as opposed to the more general type of problem suggested in the title -- which would nevertheless be interesting to me to see answered: I'd like to have the first line of text after a section (or chapter) heading set in small caps. If this were about automating such a processing task for a given number of words starting after the sectional heading it would be an easy thing to do, but how could this be done for exactly an entire line of running text? Maybe with just a little better knowledge of TeX on my side I would not be making this question, but I don't know... An answer on TeX, LateX2e or even LaTeX3 to the particular setting ("small caps") would be welcome and enough for my checking it (as long as it works, of course). And if there is some suggestion for the more general problem, that'd be simply wonderful: Let's say (just for the sake of concreteness and without pretending that what follows is a rigid spec) that "a given line" in the more general setting means "the line in which a particular string is to be found", and the "particular string" might be marked up in terms of some command. The processing, of a nature similar to the "small caps transformation" I'm concerned with in the particular setting, is to be applied to the entire line in which the string will eventually appear in the typeset document (i.e., once the processing has been performed). PS: My tags for this question may not be the most fortunate, but they are the closest I could see among those provided.


title: How to insert the name of the Axiom next to Axiom

text: \begin{axiom} (blah)        \end{axiom}      gives "Axiom 1". How can I make this so that I have "Axiom 1 (blah)." instead? Tags are probably not correct. I just got started with Latex today.


title: Number and reference paragraphs

text: For "law-documents" you often want to enumerate every paragraph and cite them somewhere else in your document. This enumeration shall increase through the whole document and have the possibility to reference. So I want to have something like that:               \p{mylabel} Lorem ipsum dolor sit amet...          Another without label \c{mylabel}.      Which shall be (with numbers in margin):               1  Lorem ipsum dolor sit amet...          2  Another without label (cf. mn. 1).      Doesn't matter if clickable in PDF or not so far. Is there a package for that or some style? Would be great! Thanks in advance!


title: Indicate an "added entry to the index" in the main text

text: I'm writing a text with many index entries:               Variable $\Kappa$\index{Kappa@$\Kappa$} is used to ...      I'd like to see a hint in the main text, that an entry was added to the index. I tried using `\renewcommand`, but it didn't work:               \usepackage[toc]{glossaries}     %\renewcommand{\index}[1]{\index{#1}\textbf{GY}}     \renewcommand{\index}{\textbf{GY}\index}     \makeglossaries      Is there an easy way to show a hint in the main text, that an index entry was added?


title: Joining lines and text together (and a grey footnote) in a new environment for grey text

text: I defined an environment called bewertung that's delimeted by two lines. I observe three problems I can not solve:   1. Pagebreaks after the first line (page 1 of MWE PDF).   2. Pagebreaks before the second line (page 2 of MWE PDF).   3. Grey footnotes if the grey paragraph within bewertung breaks (page 3 of MWE PDF). To solve 1 and 2 I played around with `\nopagebreak`, `needspace.sty`, `@endparpenalty=10000`, `\clubpenalty=10000`, `\nobreak` and `\@afterheading`. But I had no success. I also found the corresponding UK-FAQ that did not help. For problem 3 I tried to redefine `\footnote` with an explicit color definition. But it didn't work neither. Here's a MWE. Actually `multicol` and `\vspace` are not needed to produce the problems, but it may be of interest for choosing the right solution.               \documentclass[fontsize=10pt]{scrartcl}     \usepackage[ngerman]{babel}     \usepackage{%       ,multicol%       ,blindtext       ,xcolor       ,fnpos     %  ,needspace     }          \newenvironment{bewertung}%     {%       \noindent\textcolor{black!50}{\rule[-12pt]{\linewidth}{1pt}}%         \begin{multicols}{2}%         \color{black!50}\sffamily\small%         \noindent\ignorespaces%     }%     {%       \end{multicols}%       \noindent\textcolor{black!50}{\rule[15pt]{\linewidth}{1pt}}%       \vspace{-\parskip}%       \vspace{-12pt}%     }{\ignorespacesafterend}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{document}     \blindtext\footnote{\blindtext}          \vspace{25\baselineskip}          \begin{bewertung}       \blindtext     \end{bewertung}          foo\footnote{Footnote}\vspace{22\baselineskip}          \begin{bewertung}       \blindtext     \end{bewertung}          \blindtext\footnote{Grey footnote}\vspace{27\baselineskip}          \begin{bewertung}       \blindtext     \end{bewertung}     \end{document}      PDF of the MWE Any suggestions how to solve these problems?


title: Multiple \maketitle and Headers

text: I'm using the `titling` package to allow me to have multiple `\maketitle` tags in a document. I also want to have headers telling me which "section" (as given by the title) I am in. However, the header changes before the chapter changes, see page 2 of the minimal example below.               \documentclass{article}     \usepackage[pagestyles]{titlesec}      \usepackage{titling}     \usepackage{lipsum}          %% header     \makeatletter     \newpagestyle{main}{     \sethead[\@title][][] % even     {}{}{\textsl{\@title} % odd     \setfoot[\thepage][][] % even     {}{}{\thepage} % odd     }}     \pagestyle{main}          \renewcommand{\@maketitle}{\flushleft\LARGE\bfseries \@title \par}     \makeatother          \begin{document}          \title{First Title}     \maketitle          \lipsum               \title{Second Title}     \maketitle               \end{document}


title: LyX: why does figure-wrap-float overrun the page?

text: I find that when I add figure wrap floats to LyX documents, often they will be placed poorly such that they overrun the bottom of the page. This is always accompanied by some of the text on the next page wrapping around nothing, as if the float had continued on that page. Example: ![screenshot of float overflow example](http://i.stack.imgur.com/sta4a.png) Can anyone tell me why this happens and how to avoid it? In the settings for the wrap float, I see 'Allow floating', so I presume the typesetting engine should be free to find a more suitable location. Note that this does not always happen, but in a document with several figures densely placed in the text, it is very likely to occur. There is a similar question for which the suggested solution is to allow the wrap to float.


title: Duplicate footnotes when tabulary is inside minipage

text: I want to make table footnotes by nesting a tabular or tabulary inside a minipage, and that inside a table. When I do this with tabular, it works exactly as it should. But with tabulary, it produces two sets of footnotes at the bottom, and the footnote numbers in the main text are those of the duplicate footnotes.               \documentclass{memoir}     \usepackage{tabulary,lipsum}          \begin{document}          Why are footnotes duplicated when a tabulary is placed inside a minipage?     It happens in memoir class and the standard \LaTeX classes.          See table~\ref{table:mwe} for an example.          \begin{table}     \caption{Tabulary inside minipage with footnotes}     \label{table:mwe}          \begin{minipage}{\textwidth}          \begin{tabulary}{\textwidth}{lL}     Lipsum para. 1%         \footnote{This is the first footnote.}                     & \lipsum[1]\\     Lipsum para. 2%         \footnote{This is the second footnote.}                     & \lipsum[2]\\     \end{tabulary}          \end{minipage}     \end{table}          \end{document}      I would prefer a solution that allows me to keep using tabulary, as I have used this technique throughout a 400-page dissertation. I am using the memoir class, but it also happens in the standard LaTeX classes. This question seems to stem from the same problem.


title: Problems with manual installation of package

text: I've tried to install **jcallses** like **jsarticle** according the answer on question How can I manually install a package on MiKTeX (Windows). The results are...   * If to execute **latex.exe** on **jsclasses.ins** in temporary directory, not **...\MiKTeX2.9\tex\latex\base** , it will install on this directory. Of course, this class files will not be founded. (! LaTeX Error: File `jsarticle.cls' not found.)   * It's not recommend, but if to copy **jsclasses.ins** in **...\MiKTeX2.9\tex\latex\base** (I've explored that simple **article.cls** loading from there) and execute **latex.exe** from there, it reads '! I can't find file `jsclasses.ins' (it's not my mistake).   * If to copy **jarticle.exe** from temporrary folder to ...\MiKTeX2.9\tex\latex\base, the result be (! LaTeX Error: File `jsarticle.cls' not found), too. Please, tell me where is the mistake.


title: Importing old tex-files in texclipse

text: I have started playing around with eclipse, texclipse and pdf4eclipse. I know how to create a new project. > How can I import an existing tex-file?


title: Added chapter with addcontentsline does not adapt style of ToC

text: I added my BibTeX references following:               \cleardoublepage     \phantomsection          \nocite{*}     \bibliographystyle{plainnat}      %\setlength{\bibsep}{3mm}      \addcontentsline{toc}{chapter}{References}     \bibliography{bibliography}      but within my ToC the style is not adapted and the page numbering not aligned The output looks like: ![TOC excerpt](http://i.stack.imgur.com/0TGdw.png) but References should be formated like Conclusion, including the chapter number and page number aligned right. How can I adjust the style of the added chapter to be formatted appropriate? Here's a working example that illustrates it               \documentclass     [     a4paper,     english,     twoside,     11pt     ]     {article}          \usepackage[pdftex]{graphicx}     \usepackage{float}                \usepackage{amstext}              \usepackage{enumerate}             \usepackage[bottom]{footmisc}      \usepackage{array}                 \usepackage{ntheorem}     \usepackage{theorem}     \usepackage{pdfpages}              \usepackage{parskip}               \usepackage{xcolor}                \usepackage[hyphens]{url}          \usepackage{makeidx}               \usepackage{multicol}              \usepackage[numbers, square]{natbib}       \usepackage{listings}          \makeindex           \begin{document}          \tableofcontents % ToC          % add odd sections to illustrate     \section{chapter 1}     \section{chapter 2}     \section{chapter 3}     \subsection{chapter 3.1}     \subsection{chapter 3.2}     \section{chapter 4}          \renewcommand{\bibsection}{\chapter{\bibname}}          % add chapter for references     \addcontentsline{toc}{chapter}{References}               \end{document}      The output in ToC is still References1, but the page number should be aligned right.


title: Reduce size and justify font of caption using memoir

text: I try to reduce and better align my caption text (and not the automatic label "figure.") text with memoir. I try this this without success, and i search in the memoir documentation, and try some commands, without success too. My example code :               \documentclass[a4paper, 12pt,twoside, openright]{memoir}     \usepackage{polyglossia}     \setdefaultlanguage{french}     \usepackage{fontspec}     \usepackage[usenames,dvipsnames]{xcolor}     \usepackage[autostyle=true,french=guillemets,maxlevel=3]{csquotes}     \usepackage{xparse}     \usepackage{graphicx}     \usepackage[protrusion=true]{microtype}          \graphicspath{{FigureIntroduction/}}          \tolerance=1000          \sidecapmargin{outer}     \setsidecappos{t}          \makeatletter     %\renewcommand{\fnum@figure}[1]{\textbf{\figurename~\thefigure}}     \renewcommand{\fnum@figure}{\textbf{Figure~\thefigure~--}}     \makeatother          \captiondelim{\newline}     \captionstyle{\centerlastline}% for title     \setlength{\belowcaptionskip}{\onelineskip}     \setlength{\footnotesep}{\onelineskip}               \captionnamefont{\small}     \captiontitlefont{\small}                    \begin{document}          \chapterstyle{bringhurst}          \begin{figure}[!h]     \begin{sidecaption}[fortoc]{Le "champignon informationnel" proposé par Frédéric Kaplan est révélateur de l'augmentation du champs d'expérimentation rendu possible par la numérisation des données, puis la simulation numérique.}[fig:I_Champi]       %\resizebox*{\textwidth}{!}{\includegraphics{champignonKaplan.png}}       \includegraphics[width=\linewidth]{champignonKaplan.png}       \end{sidecaption}     \end{figure}          some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...     some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...     some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...          \begin{figure}[!h]     \begin{sidecaption}[fortoc]{Le "champignon informationnel" proposé par Frédéric Kaplan est révélateur de l'augmentation du champs d'expérimentation rendu possible par la numérisation des donnéeeees, puis la simulation numérique.}[fig:Id_Champi]       %\resizebox*{\textwidth}{!}{\includegraphics{champignonKaplan.png}}       \includegraphics[width=\linewidth]{champignonKaplan.png}       \end{sidecaption}     \end{figure}          some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...          some text to compare ...          \end{document}      And the result : ![enter image description here](http://i.stack.imgur.com/dVWz3.png)


title: converting documentclasses into environments: is it possible?

text: Rewritten question. For my phd-project i need to quote screenplays. I would like to keep the screenplay layout in my thesis. I know there is the document class called `screenplay`. Now i am wandering if it is generally possible to convert a document class into an "classic" environment, so that you can use all the useful stuff of one document class within another document class. In my case I would like to write `\begin{screenplay}...\end{screenplay}` and include all the helpful devices from the screenplay document class within this environment. For example:               \begin{screenplay}      \fadein      \intslug[Tag]{Bantago Bay}      ...      \end{screenplay}


title: How to change ERT alignment in LyX to "left" instead of "block"?

text: LyX displays text in ERT layouts block aligned, and there is no "align" parameter for the inset layouts (such parameter exists for styles, and may take values such as Left, Block...). I don't find it useful in any way to have ERT text displayed block-aligned in LyX, it's even inconvenient while editing and less readable, so I'm wondering is there any way I could change it to left-align?


title: Linux Libertine Initials break emph

text: Loading the Linux Libertine Initials font breaks the `emph` command, even if the font is not used:               \documentclass{scrartcl}                                                                  \usepackage{fontspec}                                                                \usepackage{xunicode}                                                                \setmainfont[Mapping=tex-text]{Linux Libertine O}                                    \newfontfamily\lettrinefont{Linux Libertine Initials O}                                   \begin{document}                                                                       This is a test with \emph{emphasis}.                                                           \end{document}       gives ![emph bug](http://i.stack.imgur.com/7wBsR.png) Is this known? How can it be prevented (other than redefining `emph` to use Linux Libertine Slanted)?


title: How do define a command that takes parameters like \verb?

text: I would like to define a newcommand that takes one required parameter, but instead of passing it in using `{...}` as normal, to use a different parameter delineator like the `\verb` command does (e.g., `\mycmd|args|`). Trying to do this with a normal `\newcommand` definition seems to behave strangely.


title: BibTeX: referencing entire journal

text: How can I write a BibTeX entry for a special issue of a journal? I've tried using `@book`, but then I get               Warning--can't use both volume and number fields in <entry>      I use `natbib` with `abbrvnat`, and I have the following fields for my entry:   * editor   * title   * publisher   * year   * volume   * number


title: XeTeX can't find font

text: I'm using `fontspec` with XeTeX from TL2010. I've installed the Linux Libertine OTF font files in `/usr/local/share/fonts`, ran `fc-cache` and I can see them listed:               $ fc-list | grep -i libert     Linux Libertine Slanted O:style=Slanted     Linux Libertine Slanted O:style=Semibold Slanted     Linux Libertine O:style=Bold Italic     Linux Libertine Capitals O:style=Semibold Italic Samll Caps     Linux Libertine O C:style=Regular     Linux Libertine O:style=Regular     Linux Libertine Capitals O:style=Semibold Small Caps     Linux Libertine O:style=Semibold Italic     Linux Libertine Display Capitals O:style=Small Caps     Linux Libertine O:style=Italic     Linux Libertine Initials O:style=Initials     Linux Libertine O:style=Semibold     Linux Libertine Capitals O:style=Bold Small Caps     Linux Libertine Display O:style=Regular     Linux Libertine Capitals O:style=Italic     Linux Libertine Slanted O:style=Bold Slanted     Linux Libertine O:style=Bold     Linux Libertine Capitals O:style=Bold Italic Samll Caps     Linux Libertine Capitals O:style=Small Caps      Now when I try to use:               \newfontfamily\headerfont{Linux Libertine Slanted O}      `fontspec` says it can't find the font:               !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     !      ! fontspec error: "font-not-found"     !      ! The font "Linux Libertine Slanted O" cannot be found.     !      ! See the fontspec documentation for further information.     ! For immediate help type H <return>.     !...............................................            l.13 ...mily\headerfont{Linux Libertine Slanted O}      The very same steps work perrfectly on another machine using TL2009 from standard Ubuntu packages.


title: How to set font-family for \num to always coincide with surrounding environemnt

text: I am trying to set my global options for the `\num{}` output so that it correspond to the same font style of the surrounding text. I am using the `siunitx` package. After reading the package documentation, I attempted the following, to no avail.               \usepackage[group-separator={,}]{siunitx}     \sisetup{detect-family}      What option should I use to obtain font-family uniformity?


title: svmono with 'draft' causes lstlistings to produce no output

text: Why does the following produce no output?               \documentclass[draft]{svmono}     \usepackage{listings}     \begin{document}          \begin{lstlisting}       theorem :: GROUP_10:14         for G being finite Group,         p being prime (natural number) holds           (for H being Subgroup of G st                H is_p-group_of_prime p holds     \end{lstlisting}          \end{document}      (Obviously it is easy to fix this issue by switching off 'draft' -- but I would like to understand what is happening.)


Is there a way to quickly jump to a given section/chapter in TeXnicCenter? I am coming from TeXShop on Mac, and there was a "tag" drop-down menu which had a list of all sections/chapters (as well as any comment lines which began with `%:`). Selecting a tag from this menu scrolled immediately to the appropriate section.


title: Automating the height of a drop cap initial

text: How can I modify the following macro to automatically have the initial with the height indicated in the picture?               \documentclass{article}          \makeatletter          \RequirePackage{tikz}          \newlength\CLett% Nuova dimensione           \newcommand*\capolettera[2]{% #1 lettera da ingrandire #2 testo in maiuscoletto     \par\noindent\setbox\z@\hbox{%                  \scalebox{1.35}{%                                 \huge#1}%                                 }%     \CLett=\wd\z@\hangindent\CLett\hangafter-2\relax%     \raisebox{-\baselineskip}[0pt][0pt]{\llap{\box\z@\kern1pt}}\textsc{#2}}          \makeatother          \begin{document}          \capolettera{L}{orem ipsum} at nusquam appellantur his, ut eos erant homero     concludaturque. Albucius appellantur deterruisset id eam, vivendum     partiendo dissentiet ei ius. Vis melius facilisis ea, sea id convenire     referrentur, takimata adolescens ex duo. Ei harum argumentum per. Eam     vidit exerci appetere ad, ut vel zzril intellegam interpretaris.          \end{document}      ![enter image description here](http://i.stack.imgur.com/mm3xp.png)


title: Can I remove the last leaf line in tikz-qtree?

text: I've got               \Tree [.CP [.TP [.NP [.D the ] [.N woman ] [.CP [.TP [.NP [.N who     ] ] [.VP [.V stole ] [.NP [.D my ] [.N necklace ] ] ] ] ] ] [.VP     [.V entered ] ] ] ]      which gives me a nice tree, but the last leaf nodes (e.g. from N to woman) have a line connecting. Can I remove that one?


title: Progress bar within section/subsection for beamer

text: Here it was answered how to implement a progress bar for a beamer presentation. In particular, I liked the first solution. However it has one shortcoming, namely that the progress bar is valid for the entire presentation, so the main part of the code defining the size of the bar is `\insertframenumber/\inserttotalframenumber`. Now, imagine I have slides with several sections and subsections, where each subsection has several/many slides (the entire document is more than 100 pages). So I would like to have a progress bar that shows progress in the current section (or even subsection). Actually, many of the default themes have this functionality (as noted here) but not in the form of a progress bar. I could easily adapt the code in the first solution, but for this I need to find commands that would give the number of frames and the number of the first frame in the current section, if they exist.


title: Wide figure in a 2 column document (figure* doesn't work)

text: I am new to this environment, but I believe I have checked other questions related to mine problem, still couldn't find a solution. What I want is to have a wider figure in a two column document. I am trying to use               \begin{figure*}     \end{figure*}      Program gives an error. I have included all the packages I know. What else could the problem be? Thanks Here is the document class statement               \documentclass[twocolumn]{IEEEtran}      Here are the packages I am including               \usepackage{ifpdf}     \usepackage{cite}     \ifCLASSINFOpdf        \usepackage[pdftex]{graphicx}     \else     \fi     \usepackage[cmex10]{amsmath}     \interdisplaylinepenalty=2500     \usepackage{algorithmic}     \usepackage{array}     \usepackage{mdwmath}     \usepackage{mdwtab}     \usepackage{eqparbox}     \usepackage[tight,footnotesize]{subfigure}     \usepackage{fixltx2e}     \usepackage{stfloats}     \usepackage{mathtools}     \usepackage{graphicx}     \usepackage{tikz}     \usepackage[showframe]{geometry}     \usepackage{lipsum}      Here is a part of the figure that I would like to have as a one column.               \begin{figure*}     \begin{tikzpicture}[snake=zigzag, line before snake = 5mm, line after snake = 5mm]     %draw horizontal line     \draw (0,0) -- (6,0);     \draw[snake] (6,0) -- (8,0);          %draw vertical lines     \foreach \x in {0,2,5,8}        \draw (\x cm,3pt) -- (\x cm,-3pt);     %draw nodes     \draw (0,0) node[below=3pt] {$ t_0 $} node[above=3pt] {$   $};     \draw (1,0) node[below=3pt] {$  $} node[above=2pt] {$ h_1 $};     \draw (2,0) node[below=3pt] {$ t_1^1 $} node[above=3pt] {$  $};     \draw (3.5,0) node[below=3pt] {$  $} node[above=2pt] {$ h_2 $};     \draw (5,0) node[below=3pt] {$ t_2^1 $} node[above=3pt] {$ $};     \draw (5.75,0) node[below=3pt] {$  $} node[above=2pt] {$ h_3 $};     \draw (7.25,0) node[below=3pt] {$  $} node[above=2pt] {$ h_N $};     \draw (8,0) node[below=3pt] {$ t_N^1 $} node[above=3pt] {$ $};     \end{tikzpicture}     \begin{tikzpicture}[snake=zigzag, line before snake = 5mm, line after snake = 5mm]     %draw horizontal line     \draw (0,0) -- (6,0);     \draw[snake] (6,0) -- (8,0);     %draw vertical lines     \foreach \x in {0,3,5,8}        \draw (\x cm,3pt) -- (\x cm,-3pt);     %draw nodes     \draw (0,0) node[below=3pt] {$ t_0 $} node[above=3pt] {$   $};     \draw (1.5,0) node[below=3pt] {$  $} node[above=2pt] {$ d_1 $};     \draw (3,0) node[below=3pt] {$ t_1^2 $} node[above=3pt] {$ $};     \draw (4,0) node[below=3pt] {$  $} node[above=2pt] {$ d_2 $};     \draw (5,0) node[below=3pt] {$ t_2^2 $} node[above=3pt] {$  $};     \draw (5.5,0) node[below=3pt] {$  $} node[above=2pt] {$ d_3 $};     \draw (6.1,0) node[below=3pt] {$ t_3^2 $} node[above=3pt] {$  $};     \draw (7.25,0) node[below=3pt] {$  $} node[above=2pt] {$ d_M $};     \draw (8,0) node[below=3pt] {$ t_M^2 $} node[above=3pt] {$ $};     \end{tikzpicture}     \end{figure*}`      But when I use figure* instead of figure at the end it gives ; ![enter image description here](http://i.stack.imgur.com/9lXuq.png)


title: Commutative diagram generating app

text: There are various types of commutative diagrams in mathematics, but several of them are the most common place. For example, a square (with 4 objects), a right triangle (with 3 objects), two adjacent squares (with 6 objects) and so on. It seems that there are several packages for generating commutative diagrams, but almost none of them are easy, in the sense it's really difficult to remember how to write a code for a commutative diagram. For me, I need to find an example every time and then just substitute things to get my own diagram. I've always wondered, if there is a web-app, like a webpage, a really user- friendly GUI, where you already have the shape of a comm. diagram, then you just put in objects and different kind of arrows in the boxes, and then finally, the web-app just generate the LaTeX code for the comm. diagram. Is there such things?


title: How do I select the hyphenation algorithm I want to use.

text: I'd like to use a particular hyphenation pattern, not linked to the language I defined as main language (with polyglossia in xelatex). Is there something like this:?               \selecthyphenation{french}


title: Automatic alignment in tabulars

text: I am trying to make a table with both left and right alignments. Now I can get the view like this ![enter image description here](http://i.stack.imgur.com/LvXZt.png) The first problem is with the left alignment - there is a space between left side and tabular with two items. The second problem is that I have to set width of parboxes manually. Isn't the way to automate that by the width of title? Maybe parboxes is not the best way for wrapping lines in tables? My code:               \documentclass{article}          \usepackage{multicol}     \usepackage{makecell}     \usepackage{pbox}     \usepackage{array}     \usepackage{amsmath}          \begin{document}              \begin{tabular}{l}                  {\Huge Some title text is written here...} \\             \Xhline{1.5mm}             \parbox{11.1cm}{             \begin{multicols}{2}              \renewcommand{\arraystretch}{2}                  \begin{tabular}{|c|c|}                     \hline                      $\boldsymbol{\bigotimes}$  & {\large this is an example} \\                      \hline             \end{tabular} \\             Lorem ipsum dolor sit amet, consectetur adipisicing elit             \end{multicols}             } \\                  \renewcommand{\arraystretch}{2}             \begin{tabular}{|c|cll|}                 \hline                 $\bigcirc$ & 1 & First item &                      \pbox{7.3cm}{Sed ut perspiciatis unde                      omnis iste natus error sit voluptatem                      accusantium doloremque laudantium} \\                 \hline                 $\bigcirc$ & 2 & Second item & Some definition. \\                   \hline                       \end{tabular}            \end{tabular}         \end{document}


title: Use \caption to show only the name of the picture

text: I would like to use `\caption` in figures only to show the name of the picture. Without **Figure 1.:** Is that possible?


title: Generating PDF/A-1b compliant documents using pdfx and pdfLaTeX

text: There are several discussions on the web on how to generate PDF/A-1b compliant documents. One approach can be found on http://support.river- valley.com/wiki/index.php?title=Generating_PDF/A_compliant_PDFs_from_pdftex which is implemented as far as I can see in the `pdfx` package. I created a minimal `test.tex` file:               \documentclass{article}      \usepackage[a-1b]{pdfx}      \begin{document}      Hello, world!      \end{document}      From what I understand, I need to place metadata in a separate file called test.xmpdata:               \Title{PDF/A-Compliance}     \Author{Ada Lovelace}     \Org{TeX University}     \Keywords{PDF/A}      I compile `test.tex` using pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian). For validation of PDF/A-1b compliancy, I use `jhove` and a PDF export from LibreOffice as a positive control.               jhove -m pdf-hul test.pdf However, jhove laments               ErrorMessage: Lexical error       Offset: 16530      So my `test.pdf` file does not seem to be PDF/A compliant. Could you please give me hints on additional diagnostics to run in order to pin down the problem?


title: I'm having problems with PDF preview

text: I just started using TeXworks, and for some reason, I'm having problems with PDF preview. For example, when I type,               \documentclass[12 pt, a4paper]{article}          \begin{document}          \section{}                    \section{}          \section{}          \section{}               Left Cosets:\         eH=\{e, (1 2)(3 4), (1 3)(2 4), (1 4)(2 3)\}\         (1 2) = \{(1 2), (3 4), (1 3 2 4), (1 4 2 3)\}\      ...and then click play, the pdf viewer has no problems. But when I continue typing..               (1 4)=\{(1 4), (1 2 4 3), (1 3 4 2), (2 3)\}\         (1 2 3)= \{(1 2 3), (1 3 4), (2 4 3), (1 4 2)\}\         (1 3 2)=\{(1 3 2), (2 3 4), (1 2 4), (1 4 3)\}\      ...and then click on play again...it doesn't show the second part that I added. Can anybody help me with this? There are no LaTeX problems with I typed either. I know there are spaces between the lines here (but I don't have the spaces in TeXworks).


title: Most significant reasons that led us to (La)TeX

text: **Looking back, what really convinced you to begin writing with TeX or LaTeX?** This question is "community wiki", so there's no reputation to lose or to gain. Please don't write advantages of TeX and LaTeX or any pros and cons. I hope to read about something like   * a drastic experience that led you to TeX,   * a beautiful book, paper or poster that changed your view dramatically,   * a first big success with a (La)TeX creation,   * a person who inspired you. Anything in this spirit would be great. Please post just a single reason or event in each answer. If you further shared a similar experience that you read here, voting that up would be fine.


title: Horizontally shifting subfloat captions in figure environement!

text: When using subfloat, the caption centers with regards to the figure width. However I want to center it with regards to the axes. How to horizontally shift the captions (manually) for all the subfloats in a figure environment, to center to axes? (My figures are in PDF format.) ![caption is not centered to axes](http://i.stack.imgur.com/Oxv03.png) ![caption centered to axes](http://i.stack.imgur.com/AtgGl.png)


title: organizing a table

text: ![column \(her results\) must be next to the column \(my results\)](http://i.stack.imgur.com/YYluw.png) Hi: I wanted to pull the column (her results) up to be next to the column (my results). can someone help me please?. the MWE is:               \documentclass{article}     \usepackage{siunitx,booktabs,caption}               \newcommand{\splitcell}[1]{%       \begin{tabular}{@{}c@{}}\strut#1\strut\end{tabular}%     }          \begin{document}          \begin{table}[htp]     \centering          \caption{The table caption}          \begin{tabular}{S[table-format=2.0] S[table-format=1.0] S[table-format=1.6] S[table-format=1.4] S[table-format=1.3]}          \toprule     {$t$ (\si{\nano\meter})} & {$W$ (\si{\micro\meter})} & \multicolumn{3}{c}{My results} \\     \cmidrule{3-5}                              &                           & {Re}     & {\splitcell{Theor.\\Overlap\\factor}} & {\splitcell{Theor.\\MPA\\(\si{dB/mm})}} \\     \midrule     25                       & 8                         & 1.447413 & 0.9627                                & 2.128 \\                              & 4                         & 1.446128 & 0.9538                                & 1.20  \\     \midrule     31                       & 8                         & 1.448499 & 0.9377                                & 4.196 \\                              & 4                         & 1.446889 & 0.9571                                & 2.78  \\     \bottomrule                              &                           & \multicolumn{3}{c}{Her results} \\      \cmidrule{3-5} % 6-8                              &                                 &                                      & {\splitcell{Theor.\\Overlap\\factor}} & {\splitcell{Theor.\\MPA\\(\si{dB/mm})}} \\     \midrule     25                       & 8                          &     & 0.9627                               & 2.128 \\                              & 4                           &   & 0.9538                               & 1.20  \\     \midrule     31                       & 8                          &   & 0.9377                               & 4.196 \\                              & 4                          &    & 0.9571                               & 2.78  \\     \bottomrule     \end{tabular}     \end{table}     \end{document}


title: LaTeX-related events

text: Someone mentioned a TUG meeting in UK, so I though we can try to keep something of a calendar/dashboard for new and upcoming events. Probably no better way of promoting these to new members. I suggest the following template:   * **What?** Event name, organizing entity   * **When?** Dates and/or times   * **Where?** Address, driving directions if necessary. A link would probably work fine as well.   * **Who?** Notable individuals/guests, or a profile of the expected audience (if applicable). Mention event fees payable by participants.   * **Why?** Topic/agenda of the meeting, if any. This is community wiki, so feel free to step up and edit to your heart's content. A one-entry-per-event requirement is probably self-evident.


title: Wrapped figure diverges from text level after sections

text: I have a big problem. I want to print an book with reportages. Every reportage has a headline (created by the section command), a teaser and an article. The teaser should be wrapped text and should be at the same level as the article. This works when I leave out the section-command as in the first \teaser. As soon as I add the section line the teaser and the reportage level diverges. Has anyone an idea how to fix this problem? Here an example:               \documentclass{article}          \usepackage{wrapfig}          \newcommand{\teaser}[1]{\begin{wrapfigure}{l}{0.5\textwidth}\textbf{#1}\end{wrapfigure}}          \begin{document}          \teaser{sdfaasdfasdf asfasfa asdfasdf asdfasf  asfasfasdfaasdfasdf aasdfasf }      asfasfasdfaasdfasdf asdfasdf asdfasf  asfasfasdfaasdfasdf asdfasdf asdfasf  asfasfasdfaasdfasdf asdfasdf asdfasf  asfasfasdfaasdfassdfasf  asfasfasdfaasdfasdf asdfasdf asdfasf  asfasfasdfaasdfasdf asdfasdf asdfasf  asfasfasdfaasdfasdf asdfasdf asdfasf  asfasfasdfaasdfasdf           \section{adf}     \teaser{sdfaasdfasdf asfasfa asdfasdf asdfasf  asfasfasdfaasdfasdf aasdfasf }      asfasfasdfaasdfasdf asdfasdf asdfasf  asfasfasdfaasdfasdf asdfasdf asdfasf  asfasfasdfaasdfasdf asdfasdf asdfasf  asfasfasdfaasdfassdfasf  asfasfasdfaasdfasdf asdfasdf asdfasf  asfasfasdfaasdfasdf asdfasdf asdfasf  asfasfasdfaasdfasdf asdfasdf asdfasf  asfasfasdfaasdfasdf          \end{document}


title: Extract the x/y part from a coordinate in pgfplots

text: How can I extract only the x or y part of a predefined coordinate? For instance, let's say we have `\coordinate (A) at (1,2);` And I want to use the x part of `(A)` like this `\draw (x of A,3)--(0,0);`


title: using subequations

text: I have an equation consisting of two parts and would like to use subequation for that. Here's the code:               \usepackage{amsmath}          \begin{subequations}     \begin{equation}     \operatorname{min}_{a,b,c}      \frac{1}{2}\mathbf{w}^{T}\mathbf{w} + C \sum_{i=1}^{l}\xi_{i}           \end{equation}     \begin{equation}     y_{i}\left(\mathbf{w}^{T}\phi(x_{i})+b\right)     \end{equation}          \end{subequations}      I'm getting an error:               final.tex:118:Missing $ inserted.     final.tex:118:Display math should end with $$.      Can anybody help with that?


title: Sweave, Beamer and ggplot2

text: There's literally nothing on the internet showing how these work in conjunction with one another. I would really appreciate even the simplest example of a Rnw document that you would run with Sweave() in R. If you could provide a title, a simple plot, centered on the page, and a page number. Please, lets see how you would do it. TIA.


title: Is there a way to reduce spacing before the footnote call?

text: I find the spacing between the word it refers to and the footnote call a bit too large. Is there a way to reduce it ?


title: Ubuntu: beamer not working

text: I used to be a regular latex user but haven't touched it in the last two years due to being out of academia. So sorry for what might be a stupid question. I want to create a beamer presentation. Here is what I start with:               \documentclass{beamer}     \begin{document}     \title{Simple Beamer Class}        \author{Sascha Frank}      \date{\today}           \frame{\titlepage}           \frame{\frametitle{Table of contents}\tableofcontents}           \begin{frame}     hi     \end{frame}     \end{document}      For compiling and executing, I use `pdflatex filename.tex` as I remember doing. I am getting the following errors:               l.11 \documentclass                    {beamer}     ?      ! Undefined control sequence.     l.12 \begin                {document}     ?      ! Undefined control sequence.     l.13 \title                {Simple Beamer Class}     ?      ! Undefined control sequence.     l.14 \author                 {Sascha Frank}     ?      ! Undefined control sequence.     l.15 \date               {\today}     ?      ! Undefined control sequence.     l.15 \date{\today                      }     ?      ! Undefined control sequence.     l.17 \frame                {\titlepage}     ?      ! Undefined control sequence.     l.17 \frame{\titlepage                           }     ?      ! Undefined control sequence.     l.19 \frame                {\frametitle{Table of contents}\tableofcontents}     ?      ! Undefined control sequence.     l.19 \frame{\frametitle                            {Table of contents}\tableofcontents}     ?      ! Undefined control sequence.     l.19 ...metitle{Table of contents}\tableofcontents                                                       }     ?      ! Undefined control sequence.     l.21 \begin                {frame}     ?      [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] )</usr/share/texlive/tex     mf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>     Output written on presentation.pdf (1 page, 15084 bytes).      I have installed the `texlive` package from ubuntu's apt. Ubuntu tells me that `latex-beamer`, (and dependencies `pgf` `latex-xcolor` etc) are already installed. A pdf is produced but its just the text with no slides.


title: Error with hobbyconvexpath

text: The hobby examples given on TEX.SX don't seem to be working with texlive 2013 (at least for me. For example, copying an MWE produces an error:               \documentclass[tikz,border=2bp]{standalone}     \usetikzlibrary{calc,trees,hobby}          \newcommand{\hobbyconvexpath}[2]{     [            create hobbyhullnodes/.code={             \global\edef\namelist{#1}             \foreach [count=\counter] \nodename in \namelist {                 \global\edef\numberofnodes{\counter}                 \node at (\nodename)     [draw=none,name=hobbyhullnode\counter] {};             }             \node at (hobbyhullnode\numberofnodes)     [name=hobbyhullnode0,draw=none] {};             \pgfmathtruncatemacro\lastnumber{\numberofnodes+1}             \node at (hobbyhullnode1)     [name=hobbyhullnode\lastnumber,draw=none] {};         },         create hobbyhullnodes     ]     ($(hobbyhullnode1)!#2!-90:(hobbyhullnode0)$)     \pgfextra{       \gdef\hullpath{}     \foreach [         evaluate=\currentnode as \previousnode using int(\currentnode-1),         evaluate=\currentnode as \nextnode using int(\currentnode+1)         ] \currentnode in {1,...,\numberofnodes} {         \xdef\hullpath{\hullpath           ..($(hobbyhullnode\currentnode)!#2!180:(hobbyhullnode\previousnode)$)       ..($(hobbyhullnode\nextnode)!0.5!(hobbyhullnode\currentnode)$)}         \ifx\currentnode\numberofnodes         \xdef\hullpath{\hullpath .. cycle}         \else         \xdef\hullpath{\hullpath       ..($(hobbyhullnode\nextnode)!#2!-90:(hobbyhullnode\currentnode)$)}         \fi     }     }     \hullpath     }          \begin{document}          \begin{tikzpicture}[         every node/.style={black},         every path/.style={red},         scale=3,         transform shape,         use Hobby shortcut     ]          \node at (0,0) (a) {A};      \node at (2,0) (b) {B};      \node at (3,0) (c) {C};      \node at (2,-1) (e) {E};     \node at (3,-1) (f) {F};       \node at (0,-1) (d) {D};           \draw \hobbyconvexpath{a,b,c,f,e}{12.5pt};          \end{tikzpicture}     \end{document}      The error says,               Use of \tikz@curveto@double doesn't match its definition \draw \hobbyconvexpath{a,b,c,f,e}{12.5pt}      And I can't find the error reported anywhere. The same problem is showing for all hobby convex path examples. Is this known or probably some error with my configuration?


title: How can I use a single Hebrew letter or glyph in (La)TeX?

text: ![enter image description here](http://i.stack.imgur.com/HkApG.gif) How to insert only the symbol "tav" (Hebrew) in (la)tex?


title: Increasing counter ten by ten in Tcolorbox... and refer good?

text: I'm writing a book of probability in arabic, using polyglossia, and I want to increase the counter of some of my boxes ten by ten (the cause of this is that the arabic letters are numeroted with abjad, using unity in the nineth first letters, after using ten's for the nineth next, hundreds for the nineth's next, and thounsand for the 28-th and last letter... you can see this wikipedia in french, I've not another source...http://fr.wikipedia.org/wiki/Num%C3%A9ration_arabe).. A solution I've found is to increase the counter by 9, in every iteration, with the command `phantom={\addtocounter{\tcbcounter}{9}}`, but the label of this box is referred to the counter before this command... I saw that it's natural in the doc of the tcolorbox package.. So how can I refer the labels of my examples to the labels after add of 9 to my item... or some other idea. Thank you. Here's an example from my file..               \documentclass[14pt,a4paper]{extbook}          \usepackage{titlesec}               \usepackage{amsmath,amssymb}     \usepackage[most]{tcolorbox}               \usepackage{boxedminipage}     \usepackage{slashbox}          \usepackage{titlesec}               \usepackage{enumitem}          \usepackage{minitoc}          \usepackage{rotating}          \usepackage{fmultico}     \setlength{\columnseprule}{0.1pt}          \usepackage{fancyhdr}     \pagestyle{fancy}          \usepackage{pdflscape}          \usepackage{array}               \usepackage{polyglossia}     \setmainlanguage[numerals=maghrib]{arabic}     \setotherlanguage{english}          \newfontfamily\arabicfont[Script=Arabic, AutoFakeSlant=-0.02]{Amiri}     \setsansfont[Script=Arabic,Scale=1.5]{Amiri}               \tikzstyle{boxwhite} =         [draw=white, thick, scale=.7, fill=white,             line width=0.1pt, text=black, rectangle,             font=\Large,             left, minimum height=.5cm]          \newcounter{example}          \newtcolorbox[auto counter,      number within=section,     number freestyle={\noexpand\arabic{section}\noexpand\alph{\tcbcounter}}]{example}[2][]{     enhanced,     colback=white,     colframe=white,     top=-.7cm,     bottom=-2mm,     enlarge top by=\baselineskip/2+1mm,     enlarge top at break by=0mm,pad at break=2mm,     fontupper=\normalsize,     label={#2},     overlay unbroken and first={     \node[boxwhite]     at ([xshift=1.4cm,yshift=-.15cm]frame.north east)     {\strut\RL{\setlength{\extrarowheight}{-30.5pt}\textbf{$\begin{array}{c}     \hline     \rule{0pt}{2ex}     \mbox{\RL{مثال}}     \\     \mbox{\large\thetcbcounter}     \rule{0pt}{1.5ex}     \end{array}$}}};},     breakable,     width=1.048\textwidth,            arc=0pt,outer arc=0pt,     enlarge left by=-.085\textwidth,     extrude right by=-5pt,     extrude left by=-5pt,     #1}%          \newtcolorbox[use counter from=example]{example9}[2][]{     enhanced,     phantom={\addtocounter{\tcbcounter}{9}},     colback=white,     colframe=white,     top=-.7cm,     bottom=-2mm,     enlarge top by=\baselineskip/2+1mm,     enlarge top at break by=0mm,pad at break=2mm,     fontupper=\normalsize,     label={#2},     overlay unbroken and first={%     \node[boxwhite]     at ([xshift=1.4cm,yshift=-.15cm]frame.north east)     {\strut\RL{\setlength{\extrarowheight}{-30.5pt}\textbf{$\begin{array}{c}     \hline     \rule{0pt}{2ex}     \mbox{\RL{مثال}}     \\     \mbox{\large\thetcbcounter}     \rule{0pt}{1.5ex}     \end{array}$}}};},     breakable,     width=1.048\textwidth,           arc=0pt,outer arc=0pt,     enlarge left by=-.085\textwidth,     extrude right by=-5pt,     extrude left by=-5pt,     #1}%     \begin{document}          \begin{example}{ex0:a}     First      \end{example}     \begin{example}{ex0:b}     Second      \end{example}     \begin{example}{ex0:c}     ....     \end{example}     \begin{example}{ex0:d}     ....     \end{example}     \begin{example}{ex0:e}     ....     \end{example}     \begin{example}{ex0:f}     ....     \end{example}     \begin{example}{ex0:g}     ....     \end{example}     \begin{example}{ex0:h}     ....     \end{example}     \begin{example}{ex0:i}     ....     \end{example}     \begin{example}{ex0:j}     ....     \end{example}     \begin{example9}{ex0:k}     \LR{A good numeroted}     \end{example9}     \begin{example}{ex0:l}     \LR{A bad numeroted}     \end{example}     \LR{but the reference \ref{ex0:k} of the ten-th exercise is bad...}           \end{document}


title: What is the correct way to typeset higher order time derivatives in LaTeX?

text: I am typing a series that involves higher order time derivatives, and I have two main problems. First, the subscript of the derived variable seems to move further away from it with the more characters on top, is there a way to fix that? Second, what is the best way to typeset an nth order derivative without it being too big as in `\overset{(n)}{V}`, or too high as in `\overset{{}^{(n)}}{V}`? Here is an example that shows all the mentioned problems:               \documentclass[border=10pt]{standalone}          \usepackage{mathtools}     \begin{document}      $\displaystyle      \dot{V}_t = \dot{V}_{t-1} + \ddot{V}_{t-1} dt + \frac{\dddot{V}_{t-1}dt^2}{2} +      \frac{\overset{(4)}{V}_{t-1}dt^3}{6} + \dots + \frac{\overset{{}^{(n+1)}}{V}_{t-1}dt^n}{n!}      $     \end{document}      ![example](http://i.stack.imgur.com/uW698.png) EDIT: `\overset{\text{\tiny $(n)$}}{V}` works for reducing the size of the overset, but the subscript distance is still a problem EDIT 2: The subscript distance can be reduced by adding negative spaces as in `\frac{\overset{{}^{(n+1)}}{V}_{\\!\\!\\!t-1}dt^n}{n!}`. I'm not sure if it's the cleanest way to do it, but it works


title: "Where" notation in definition

text: I need to define a rather complex operation. Hence I want to use the classical "where" definition style, i.e.               Foo = Bar(x,y)      WHERE     x = Baz     y = Fob      My attempt so far in latex is:               \begin{align*}     \text{Foo} = \text{Bar}(x,y) && \mathbf{where} \\     x = \text{Baz}     \end{align*}      I am not really satisfied with the result, though:   * The where keyword does not really stand out from the layout   * The helper definitions are on the same level as the main definition So instead of fiddling around with it, is there some kind of (semi-) canonical way to layout such definitions?


title: Installed font not working

text: I have downloaded a latex template for a thesis from Harvard University. Currently I'm using Linux Mint Nadia 14. The instructions of the template tells you to install the needed fonts (which are included) with the command: `sudo cp fonts/* /usr/local/share/fonts/` I have done so but I had to add to the command the flag `-r` in order to work properly. When I try to compile the tex (using a compilation script also included which uses xelatex) I get the following error:               ! fontspec error: "font-not-found"     !      ! The font "EB Garamond" cannot be found.     !      ! See the fontspec documentation for further information.      EB Garamond is one of the fonts already installed by the previous command. I have also tried to execute `sudo fc-cache -fsv` from the cl. And I get in the output `/usr/local/share/fonts/EB Garamond: caching, new cache contents: 10 fonts, 0 dirs` But the problem persists. Apparently it is a problem with permissions because it works with `sudo`. But changing the permissions of the font folders and files to 644 has not solved the problem either. With this small example:               \fontfamily{EB Garamond}     \documentclass{article}     \begin{document}     hi     \end{document}      I get the following logfile Any idea?


title: If an included picture is scaled and cropped, will the original size image be retrievable from the compiled *.pdf?

text: 1. If an included picture is scaled and cropped, **will the original size image be retrievable from the compiled *.pdf** ?   2. ... and if so _how_ ?   3. ... ... ... how to _prevent_ ? MWE-snippet:               \includegraphics[trim=0mm 0mm 0mm -5mm, clip, scale=0.15]{./figures/asdf}


title: Draw a graph using xymatrix. Is there another way?

text: I am using the package `xy` to draw simple Graphs or Networks. It allows oriented and non oriented edges and even weights on the edges, but the code is very complicated and it is very difficult to build bigger examples than the ones shown bellow. Does anybody know another way to do this (a simple way)? An example of the code I currently use:               \begin{figure}      \centering       \begin{minipage}{0.4\textwidth}         \centering         \[         \xymatrix{              \xy*{1}*\cir<6pt>{}\endxy\ar@{->}[r]                            & \xy*{2}*\cir<6pt>{}\endxy\ar@{->}[d]                 \\             \xy*{4}*\cir<6pt>{}\endxy\ar@{->}[ur]\ar@{->}@/_/[r]\ar@{->}[u] & \xy*{3}*\cir<6pt>{}\endxy\ar@{->}[lu]\ar@{->}@/_/[l]         }         \]       \end{minipage}       %\hfill       \begin{minipage}{0.4\textwidth}         \centering         \[         \xymatrix{            \xy*{1}*\cir<6pt>{}\endxy\ar@{-}[r]                      & \xy*{2}*\cir<6pt>{}\endxy\ar@{-}[d]  \\           \xy*{4}*\cir<6pt>{}\endxy\ar@{-}[ur]\ar@{-}[r]\ar@{-}[u] & \xy*{3}*\cir<6pt>{}\endxy\ar@{-}[lu]         }         \]       \end{minipage}              \label{fig:graphExample}     \end{figure}      The result is: ![http://i.stack.imgur.com/hWeaI.png](http://i.stack.imgur.com/hWeaI.png)


title: How can the thesis structure be defined for PDF generation?

text: My thesis consists of these hierarchical elements:               \documentclass{report}     \begin{document}     \tableofcontents     \include{020-tex}     \end{document      where `020-tex.tex` contains               \input{030-preface}     \part{First Part}     \input{040-Theory-Part-I}          \part{Second Part}     \input{040-Theory-Part-II}          \bibliographystyle{achemso.bst}     \bibliography{citations-part-i,citations-part-ii}          \input{080-sup-mat}      E.g. `040-Theory-Part-I` is formatted as               \chapter*{Theoretical Framework}\addcontentsline{toc}{chapter}{Theoretical Framework}      such that the `TOC` lists the chapter, but no numbering is used. In the TOC, the hierarchy levels are correctly formatted, i.e. sections are sections, chapters appear as chapters and so on. But when I view the PDF in Previews, in the sidebar which allows to "browse" the content and expand chapters, the bibliography is hierarchically under Part II, while it should be on the same level as Parts I and II. So the bibliography only appears when I expand Part II. Also the appendix appears only under Part II, while it should be on the same level as the parts and the introductions. Here's a screenshot of what I mean: ![Screenshot](http://i.stack.imgur.com/7bbHx.png) How can I get the red enclosed content to be on the same level as the vertical line?


title: Drawing stars/similar with Tikz

text: I'm writing a review for a book at the moment, and I thought I'd be clever and show off what LaTeX is capable of by adding a x-out-of-y stars graphic. Tikz can do many things so I would have thought that a trick like this would be fairly trivial, however it seems that I cannot figure out a macro to draw the shapes at the right size, let alone fancy tricks such as half-filled stars or something similar. I think the code I have so far might be headed in the right direction:               \usepackage{tikz}     \usetikzlibrary{shapes.geometric}     \usetikzlibrary{calc,shadows}          \newcommand*\starfill{%       \tikz[baseline=(key.base),scale=-3]       \node[star, star points=5, star point ratio=2.25, fill=black, draw](key) {S};       }      I've tried to start by drawing a single star shape, but ideally I'd like to define like `\starsranking{number}{total}` that will output the appropriate shaded `number` of stars out of `total`. Is this doable? It doesn't sound particularly difficult.


title: Redefining multicolumn environment

text: I am using multicolum under tabularx a lot. Instead of removing spaces               \multicolumn{2}{@{}l}{...}      I want to create a new environment which removes trailing spaces from both front and end. Any suggestions on doing the same? Thanks. Regards, Edit : When I use the following piece of code,               \begin{tabularx}{\textwidth}{@{}Xc@{}}     \toprule\toprule     Some random text & 1,75,650\\\midrule     \multicolumn{2}{@{}l}{\textbf{Panel A1: AAA}} \\\midrule     Number of observations ... & 1,75,650\\      I get ![enter image description here](http://i.stack.imgur.com/kj5ci.png) But if I use (@{} removed from multicloumn)               \begin{tabularx}{\textwidth}{@{}Xc@{}}     \toprule\toprule     Some random text & 1,75,650\\\midrule     \multicolumn{2}{l}{\textbf{Panel A1: AAA}} \\\midrule     Number of observations ... & 1,75,650\\      I get ![enter image description here](http://i.stack.imgur.com/deiSD.png) As I would have to use \multicolumn{2}{@{}l} multiple times, hence I was looking to create a new env. which takes care of @{}. In case someone is looking for MWE:               \documentclass{article}     \usepackage{ltablex}     \usepackage{threeparttable}     \usepackage{booktabs}          \title{Document}     \begin{document}     \maketitle          \begin{tabularx}{\textwidth}{Xc}     \toprule\toprule     Some random text & 1,75,650\\\midrule     \multicolumn{2}{l}{\textbf{Panel A1: AAA}} \\\midrule     Number of observations ... & 1,75,650\\     Delete: ... & (78,420)\\     Delete: ... & (7,104)\\     Final sample & 90,126\\     Delete: & (2,143)\\     Delete: & (8,345)\\     Final sample & 79,638\\\midrule     \multicolumn{2}{l}{\textbf{Panel A2: AAA}} \\\midrule     Number of observations & 79,638\\     Delete: & (39,540)\\     Delete: & (7,979) \\     Final sample & 32,119 \\\midrule     \multicolumn{2}{l}{\textbf{Panel B1: BBB }} \\\midrule     Number of observations  & 1,75,650\\     Delete: & (78,420)\\     Delete: & (47,136)\\     Delete: & (7,178)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Final sample & 42,884\\\midrule     \multicolumn{2}{l}{\textbf{Panel B2: BBB}} \\\midrule     Number of observations  & 1,75,650\\     Delete: & (78,420)\\     Delete: & (47,136)\\     Delete: & (7,178)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Number of observations  & 1,75,650\\     Delete: & (78,420)\\     Delete: & (47,136)\\     Delete: & (7,178)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Final sample & 42,884\\\midrule\bottomrule     \end{tabularx}          \end{document}      Edit: In case, someone might be interested, this is how I defined:               \newcommand{\gmc}[2]{\multicolumn{#1}{@{}#2@{}}}


title: LibreOffice + Inkscape EPS-Latex

text: I'm trying to import a graphic created in LibreOffice Draw in a LaTeX document. So far I've tried the Way:   1. Export Document to SVG file.   2. Open with Inkscape and Export using eps+latex   3. Including resulting xxx.eps_tex in latex Although the SVG seems to be just fine (also in Inkscape), the exported positions of the text are bad:               \begin{picture}(1,0.73115748)%        \put(0,0){\includegraphics[width=\unitlength]{ModeDispersion.eps}}%        \put(-0.05241193,0.78432034){\makebox(0,0)[lb]{\smash{Cladding (air)}}}%        \put(-0.05241193,0.78432034){\makebox(0,0)[lb]{\smash{Substrate}}}%        \put(-0.05241193,0.78432034){\makebox(0,0)[lb]{\smash{In}}}%        \put(-0.05472789,0.25830639){\makebox(0,0)[lb]{\smash{Out}}}%        \put(-0.05472789,0.25830639){\makebox(0,0)[lb]{\smash{Single-mode}}}%     \end{picture}%      and so on. Same for pdf+latex. Original LibreOffice (version 4.0.1.2) file and exported SVG: ODG SVG I can't attach the files created by Inkscape (version 0.48.3.1), as stackoverflow told me that I would need at least ten reputations to do so... Does anyone know how to solve this problem? edit: Shown in inkscpae: ![Inkscape](http://www.x-linux.de/stackoverflow/ModeDispersion-inkscape.png) Processed using latex: ![LaTeX](http://www.x-linux.de/stackoverflow/ModeDispersion-latex.png)


title: Beamer overlays - how to make things appear in different places?

text: So I just started using beamer and got introduced to the `\pause` command. But I want things to show up at different places on the screen, not necessarily from top to bottom. How to do that? Specifically, what I have is a `tikzpicture` and then some text below, for example               \begin{tikzpicture}     <Draw a circle>     <Draw a rectangle>     \end{tikzpicture}          \begin{itemize}     \item Adding a circle     \item Adding a rectangle     \end{itemize}      I want to make the beamer frame such that when I press enter the text "adding a circle" shows up at the same time as the circle shows up in the `tikzpicture`, and then I press enter again and "adding a rectangle" shows up at the same time as the rectangle shows up.