title: Weird vertical spacing problem with (adjusted) enumerate

text: Based on Nested enumerate (enumitem) interferes with suppressing vertical space after theorem heads. I use the following code. After a while, I ran into a weird behavior: As you can see, the sub-lists under 2. are not (vertically) aligned correctly. In 3., it is fine, though...               \documentclass{scrartcl}          \usepackage[american]{babel}     \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{etoolbox}     \usepackage{enumitem}          % list settings     \setlist{% general list settings (enumitem's itemize, enumerate, and description)       align=left,       labelsep=*,       leftmargin=*,       topsep=1mm,% space before enumerate       itemsep=0mm% space between enumerate items     }          % theorems     \newif\ifstarttheorem     \newtheoremstyle{myexstyle}     {1em}% space above     {0.5em}% space below     {}% body font     {}% indent amount     {\sffamily\bfseries\global\starttheoremtrue}% head font     {}% punctuation after head     {\newline}% space after head     {\thmname{#1}\ \thmnumber{#2}\ \thmnote{\normalfont #3}}% head spec     \theoremstyle{myexstyle}% activate style     \newtheorem{exercise}{Exercise}          % vertical spacing when newtheorems start with an environment     \makeatletter     \preto\enumerate{%       \if@inlabel         \ifstarttheorem           \mbox{}\par\nobreak\vskip\glueexpr-\parskip-\baselineskip+0.3em\relax\hrule\@height\z@           \global\starttheoremfalse%         \fi%       \fi%      \def\tempa{proof}%      \ifx\tempa\mycurrenvir         \ifstarttheorem           \mbox{}\par\nobreak\vskip\glueexpr-\parskip-\baselineskip+0.3em\relax\hrule\@height\z@           \global\starttheoremfalse%         \fi%      \fi%     }     \preto\endenumerate{\global\starttheoremfalse}     \makeatother          \begin{document}     \begin{exercise}       \begin{align*}         f(x)=x^2.       \end{align*}       \begin{enumerate}       \item Show that ...         \begin{align*}           f(x)=\dots         \end{align*}       \item \begin{enumerate}         \item Foo...         \item Bar...         \end{enumerate}       \item \begin{enumerate}         \item Foo...         \item Bar...         \end{enumerate}       \end{enumerate}     \end{exercise}     \end{document}


title: 2 pictures not entirely side by side

text: I am using the following command to get two pictures side by side but my problem is that sometimes they are not.               \begin{figure}[ht]     \begin{minipage}[b]{0.45\linewidth}     \centering     \includegraphics[width=\linewidth]{./bla}     \caption{Management of cultural differences}     \label{fig:management cultural}     \end{minipage}     %\hspace{0.5cm}     \hfill     \begin{minipage}[b]{0.45\linewidth}     \centering     \includegraphics[width=\linewidth]{./bla}     \caption{Employees leaving}     \label{fig:employee leaving}     \end{minipage}     \end{figure}      What do I mean? Normally the would be exactly side by side -> O O but sometimes they are offset: one picture is "higher" than the other and the are not aligned anymore...


title: Algorithm as a figure (to include additional caption below the figure)

text: I have an algorithm in latex, and I need to add an addition caption underneath the algorithm (just like in a figure at the bottom: "Figure 1: Whatever it is". I tried simply changing the `\begin{algorithm}` to `\begin{figure}`, this does put a caption below the algorithm, however, this also changes the layout of the algorithm, and I don't want that to happen. It is possible to remain the same layout, but somehow add an additional caption just like in `figure`? This is my code:               \begin{algorithm}[t]     \caption{Ant Colony Algorithm}     \label{ACA}     \begin{algorithmic}     \STATE Set parameters, initialize pheromone trails     \WHILE{stopping condition not met}     \STATE construct ant paths     \STATE local search (optional)     \STATE update pheromone     \ENDWHILE     \STATE \textbf{output:} the ACO solution path     \end{algorithmic}     \end{algorithm}


title: Usage of final option with package animate

text: I'm currently animating some inline graphics (TikZ) on a beamer presentation with the `animate` package, and have come across some weird behavior. Since I still have lots of work to do, I set the global option `draft`, and planned to override it on the figure I currently was working on with the `final` option. This is even suggested in the documentation for the `animate` package, with the goal of cutting compiling time while authoring a document with many animations. The problem is, when I include the `final` option locally, my code won't compile. I get the error:               ! Argument of \multiframe has an extra }.      I have quintuple-checked my syntax. As soon as I remove the `final` option, the code compiles without a hassle - but I have to remove the global `draft` option to see the current figure, and all other figures get compiled as well... I'd like to see if anyone can reproduce this behavior, so that I may contact the package maintainer with a bug report. Here is a MWE:               \documentclass{beamer}          \usepackage[draft]{animate}     \usepackage{tikz}     \usetikzlibrary{calc}          \begin{document}         \begin{frame}         \begin{columns}           \column{.5\textwidth}             \begin{itemize}               \item Lorem               \item ipsum               \item foo               \item bar               \item ...             \end{itemize}           \column{.5\textwidth}             \begin{animateinline}[autoplay,width=\textwidth,final]               \multiframe{15}{i=0+1}{%                 \tikz{\path node {This is where I draw my complex figure at timestep \i};}               }%             \end{animateinline}          \end{columns}       \end{frame}     \end{document}


title: Search for LaTeX in PDF

text: Is it possible to search for LaTeX characters like `\alpha` in a PDF file? Perhaps there's some PDF reader that can do that?


title: Animation in beamer- problem

text: I have some problem with animation in `beamer`:               \documentclass[xcolor=dvipsnames,10pt]{beamer}          \usepackage{graphicx}     \usepackage{animate}          \begin{document}        \begin{frame}     \animategraphics[controls,loop]{1}{two_tetrahedra_}{0}{10}}     \end{frame}     \end{document}      It does not work. I have the following error:               Undefined control sequence \@MXVnewlabel     ...      I have files `two_tetrahedra_0.png`, ... , `two_tetrahedra_10.png` in the same catalog as my TeX file. * * * Now I see only one picture two_tetrahedra_0.png when I take pdf and there is no animation, also control buttoms do not work. Where is the problem?


title: Memoir class and Biblatex/Oscola: incompatible?

text: While I can work (now, after good help via SE) without any problem using the Biblatex Oscola style with the `book class`, I'm not able to make it work with the `memoir class`: The preamble               \documentclass[a4paper,english]{memoir}     \usepackage[utf8]{inputenc}      \usepackage{newcent,textcomp}     \usepackage[english,latin]{babel}     \usepackage[style=british]{csquotes}     \usepackage[style=oscola]{biblatex}     \usepackage[titles]{tocloft}      returns an error: > |8 error| LaTeX Error: Option clash for package tocloft. And when I comment out the eighth line, I get > Undefined control sequence. \newindex {trash}{tdx}{tnd}{Miscellaneous} > \begin{document} It'd be great if you could help. (NB: I'm wondering, moreover, whether -- for a PhD thesis (no maths involved) -- you'd advise for or against the memoir and book classes. The problem seems to be different as was the case in Problem with memoir and biblatex together Thank you.


title: tikz-cd: Error: No shape named tikz@f@1-0-1 found

text: In my use of tikz-cd, the down, right and left arrows (\ar{d},\ar{r}, \ar{l} respectively) work fine, but I seem to have no uparrow (nor any up right arrow or up left arrow). When I have \ar{u}, I get the error "No shape named tikz@f@1-0-1 found". Can anyone help me with this?               \documentclass[a4paper,12pt]{article}     \usepackage{tikz-cd}     \begin{document}          \begin{tikzcd}     A\ar{u}\\     B     \end{tikzcd}          \end{document}      Replace that u with an l,r or d and it works.


title: More than two figures on one page with text in between (problem with float)

text: I need to put more than two pictures/figures with text in between on one page. Now I'm having the problem, that more or less always one picture is floating on the next page, even though there would be "optically" place on the same page. I tried it with `htb` and `H`, both resulting in either the text or at least one of the images floating to the next page. Instead of `\fbox` I use `\includegraphics`.                       \documentclass[a4paper, openany, oneside, titlepage, toc=bib, toc=listof]{scrbook}              \usepackage[a4paper, left=2.5cm, right=2.5cm, top=2.5cm, bottom=2.2cm, footskip=.8cm]{geometry}             \usepackage[T1]{fontenc}              \usepackage[utf8]{inputenc}              \usepackage[final]{graphicx}                       \begin{document}                  \begin{figure}[htb]%             \centering             \caption{Test}             \fbox{\parbox[c][150pt]{0.4\linewidth}{Test}}             \label{fig:Test1}             \end{figure}                  Short text. Blahblah. Short text. Blahblah. Short text. Blahblah.                   \begin{figure}[htb]%             \centering             \caption{Test}             \fbox{\parbox[c][100pt]{0.4\linewidth}{Test}}             \label{fig:Test2}             \end{figure}          Third short text. Blahblah. Short text. Blahblah. Short text. Blahblah.                  \begin{figure}[htb]%             \centering             \caption{Test}             \fbox{\parbox[c][200pt]{0.4\linewidth}{Test}}             \label{fig:Test3}             \end{figure}              \end{document}      Many thanks.


title: Installing pgfplots package on Mac OS Lion

text: I was wondering if I can get help on installation of `pgfplots` package on Mac OS Lion for LaTeX. I have downloaded a zip file from pgfplots download link but don't really know how to install it. I also checked the PDF file in the downloaded zip file; couldn't find a clear instruction on installing the package.


title: Changing the font document

text: I need to write a whole document with a specific font. My problem is that when I compile it seems to be working, but my pdf result has the original font. Nothing happened. I have downloaded my .ttf font here, and I have installed it into my fonts folder in Windows 7 using drag and drop. Then I have been using Xelatex compiler to compile this code :               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode          \documentclass[a4paper]{letter}     \usepackage{xltxtra,fontspec,xunicode}     \setsansfont{Roboto-Regular}          \begin{document}          \begin{letter}{Letter}          \address{Address}          \opening{Dear Mr}          Some text here          \closing{\mbox{}}          \end{letter}     \end{document}      Any ideas? Do you think I missed something here?


title: Generating single random sentences

text: `lipsum`, `blindtext` and `kantlipsum` all seem to default to producing paragraphs, whereas I want them to generate individual sentences. From the documentation, it looks as if it should be possible to make the `random` option in `blindtext` produce individual sentences, but I can't get that to work:               \documentclass{article}      \usepackage[random]{blindtext}     \setcounter{blindtext}{1}     \begin{document}     \blindtext     \end{document}      I get > Package blindtext Warning: Option random not defined for english Now, the documentation on `random` does say: > If the language does not support this option, the default text is used. But it's a little surprising that it doesn't support English... am I doing something wrong?


title: Activating characters with diacritics (accents)

text: I want to create an environment that would convert all `á` to `\=a`, all `é` to `\=e` and so on... (short-hand for macrons) Something that should have been a five-minutes easy-to-write tool became a real nightmare, mainly because I _cannot activate the character á_. TeX thinks it is actually _two_ characters, creating an error with \catcode. The following approach also does no work:               \defá{\=a}     \defé{\=e}      ...      Because the ''accent character'' comes _before_ the ''letter character''. In this way, only ú works, while the rest yields an error. Also, trying to isolate the ''accent character'' in a control sequence creates an inpuntec error (not including inputenc creates another error). But since inputenc itself does a similar trick quite well, I wonder: what is the nice way of doing it? And, what is better: a TeX solution or an inputenc contraption? EDIT: The idea needs to be able to be executed in the _body_ of a LaTeX. Global changes would mess up with my normal text, which uses quite a few diacritics (though no macrons).


title: Numbering the sentences in a text

text: I need to number the sentences in a text in a way that makes it clear that the numbers are not part of the text. The best I've been able to come up with looks pretty horrible: ![enter image description here](http://i.stack.imgur.com/UxGkm.png) I'd be grateful for anything more attractive! FWIW, The code that generated that is here:               \documentclass{article}      \usepackage{calc}     \usepackage[framemethod=tikz]{mdframed}     \usepackage{tikz}     \usetikzlibrary{decorations.markings}     \usepackage{environ,varwidth}          \mdfdefinestyle{tight}{roundcorner=1.5pt,innerleftmargin=0.7pt,innerrightmargin=0.7pt,innertopmargin=1pt,innerbottommargin=1pt,backgroundcolor=gray!20}          \newsavebox\MyTempBox     \NewEnviron{tight}{%     \savebox\MyTempBox{%     \begin{varwidth}{\linewidth}     \BODY     \end{varwidth}}%     \begin{minipage}{\dimexpr\wd\MyTempBox+2.5pt\relax}     \begin{mdframed}[style=tight,userdefinedwidth=\dimexpr\wd\MyTempBox+2.5pt\relax]     \BODY     \end{mdframed}%     \end{minipage}     }%          \newcommand\sno[1]{\begin{tight}\scriptsize\bf #1\end{tight}}          \begin{document}         \sno{21}Lorem Ipsum is simply dummy text of the printing and typesetting industry. \sno{22}Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \sno{23}It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \sno{24}It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.     \end{document}      One minor point worth noting is that having a line break immediately after the number (like 24 in my example above) is not great.


title: TeX programmer needed - or assistance with page dimensions and crop marks

text: is there a place where i can find/hire a TeX programmer to adjust TeX files that were set up for us in the 80s? I can make minor edits, but things like page dimensions and crop mark locations are beyond me. Our programmer is retired and we want to create a smaller version of our books. Unless of course someone can tell me an easy line of code to look for and change myself. thank you!


title: Help with installing gnuplot in MacTex and using it with LaTeX

text: I have to draw a lot of PDF and CDF graphs in my document/presentation and in order to do that I installed `gnuplot`. In order to install `gnuplot` I took the following steps: 1- Download the sources from : gnuplot sources then put the folder gnuplot-4.4.3 on my desktop 2- $ cd /Users/.../Desktop/gnuplot-4.4.3 3- $ ./configure --with-readline=builtin 4- $ make 5- $ sudo make install 6- test of gnuplot $ gnuplot gnuplot works from `Terminal`. However, I get a lot of error running the following`MWE`               \documentclass{minimal}     \usepackage{amsmath}     \usepackage{pgfplots}          \def\cdf(#1)(#2)(#3){0.5*(1+(erf((#1-#2)/(#3*sqrt(2)))))}%     % to be used: \cdf(x)(mean)(variance)          \DeclareMathOperator{\CDF}{cdf}          \begin{document}         \begin{tikzpicture}         \begin{axis}[%         xlabel=$x$,         ylabel=$\CDF(x)$,         grid=major]         \addplot[smooth,red] gnuplot{\cdf(x)(0)(1)};         \addplot[smooth,blue]gnuplot{\cdf(x)(0.5)(1)};         \addplot[smooth,green]gnuplot{\cdf(x)(1)(1)};         \addplot[smooth,orange]gnuplot{\cdf(x)(2)(1)};         \end{axis}         \end{tikzpicture}     \end{document}      The error that I get is `pgfplots: Sorry, the gnuplot-result file 'texstudio_DH7974.pgf-gnuplot <file>.gnuplot' manually on the respective gnuplot file.. \addlegendentryexpanded{$k = \k$}}` or code given in plotting chi-square. I guess I am missing one (or maybe cuple) of steps installing gnuplot. I really appreciate if you help.


title: Trying to embed mp4 in a Beamer presentation

text: Sample document               \documentclass{beamer}     \usetheme{Amsterdam}     \usepackage{media9}          \title{TITLE}     \author{AUTHOR}     \institute{INSTITUTE}     \date{DATE}          \begin{document}           \addtocounter{framenumber}{1}      \frame{\titlepage}           \begin{frame}{Title}      \includemedia[       width=\paperwidth,       height=0.7\linewidth,        activate=pageopen,      addresource=C:/Users/David/Desktop/NF/1.mp4,      flashvars={source=C:/Users/David/Desktop/NF/1.mp4      &loop=true      &scaleMode=letterbox         }      ]{}{VPlayer.swf}      \end{frame}          \end{document}      I know this has already been asked. So please before anyone just gets rid of this question, hear me out. I have updated, uninstalled and re-installed MiKTeX2.9 and TeXnicCenter. Hence I do not believe this is an "update packages" fix. I am trying to use the Media9 package to embed a video. (The file format is not relevant I have mp4, avi, & swf of the same video.) I'm a master's student in Mathematics so I use TeX frequently and I've never had such an issue. Every time I compile I get this error "You can't use '\dimexpr' in restricted horizontal mode. \dimexpr line 1.28 \end{frame}" So my first question is what is this error? Why does it occur and of course how can I resolve it? I read one previously removed question that suggested an update. However, I have tried this. Can anyone suggest something? Am I doing something stupid? I'm not even sure where this "dimension expression" is being used.


title: Long and wide table

text: > **Possible Duplicate:**   >  Is there something like “sidewayslongtable”? I've got some long and wide table which I want to add to my phd thesis. Is there a package that could help me with that. I know `longtable` helps for long tables, handling the header etc. I would need a package that places the table on double pages and that cares about the table alignment and proper heading etc. Any ideas?


title: How to change the reference indexing to incorporate volume and number in article (Biblatex)?

text: The default bibtex reference style lists the article as (e.g.): # A. S. Arnold, J. S. Wilson, and M. G. Boshier. “A Simple Extended-Cavity Diode Laser”. Review of Scientific Instruments 69.3 (1998), pp. 1236–1239 (cit. on pp. 10). However, for my doctoral thesis, the reference requirements are something like this # A. S. Arnold, J. S. Wilson, and M. G. Boshier. “A Simple Extended-Cavity Diode Laser”. Review of Scientific Instruments, vol. 69, no. 3 (1998), pp. 1236–1239 (cit. on pp. 10). Any pointers, how to implement it? PS: I am loading the biblatex package as:               \usepackage[style=numeric-comp,bibstyle=numeric,isbn=false,doi=false,hyperref=true,url=false,compress=true,backref=true,refsection=chapter,sorting=none,abbreviate=true]{biblatex}


title: Strange behaviour of the newtx package?

text: I noticed strange behaviour with the `newtx` package. I'm using MiKTeX 2.9 with TeXnicCenter 2.0 Beta 1 64 Bit with pdflatex. Here's what I'm talking about: ![enter image description here](http://i.stack.imgur.com/M6pJ2.png) Here's the code:               \documentclass[a4paper]{article}      \usepackage{newtxtext,newtxmath} %\usepackage{txfonts}     \usepackage{amsmath}           \begin{document}           \begin{equation}     d_{Rx}(t) = \begin{cases}       1, & \text{if } \frac{I_0\left(\sqrt{l_1^2\gamma_1}\right)}{I_0\left(\sqrt{l_0^2\gamma_0}\right)}\exp\left(-\gamma_1+\gamma_0\right)\geq 1,\\       0, & \text{otherwise}.     \end{cases}      \end{equation}          \end{document}      Is this normal? I don't think it should be like that. Is anyone else experiencing this? Am I doing something wrong?


title: Displaying an new image for each new section with running table of contents

text: I would like to have the table of contents slide displayed at every `\section{}` however, along with the particular section highlighted (as usual in beamer using `\AtBeginSection[]{...}`), I would like to _display an image to its right_ too. Can anyone tell me how this could be done. Here is a tex file which will achieve the same but I have done it manually and not with the \AtBeginSection[]{...}` command. Hence I cannot get the other sections to dim out in the usual beamer style. I hope the problem is clear.               \documentclass[blue,aspectratio=1610]{beamer}          \begin{document}     \section{New section}     \begin{frame}{Table of contents}     \begin{enumerate}     \item New Section     \item \textcolor{gray}{New New Section}     \item \textcolor{gray}{New New New Section}     \end{enumerate}          \vspace{0.3cm}          \hfill \includegraphics[scale=0.1]{pic1.png}     \end{frame}     \begin{frame}{some details about this section}     \end{frame}     \begin{frame}{some more details about this section}     \end{frame}     \section{New New section}     \begin{frame}{Table of contents}     \begin{enumerate}     \item \textcolor{gray}{New Section}     \item New New Section     \item \textcolor{gray}{New New New Section}     \end{enumerate}          \vspace{0.3cm}          \hfill \includegraphics[scale=0.1]{pic2.png}     \end{frame}     \begin{frame}{some details about this section}     \end{frame}     \begin{frame}{some more details about this section}     \end{frame}     \section{New New New section}     \begin{frame}{Table of contents}     \begin{enumerate}     \item \textcolor{gray}{New Section}     \item \textcolor{gray}{New New Section}     \item New New New Section     \end{enumerate}          \vspace{0.3cm}          \hfill \includegraphics[scale=0.3]{pic3.png}     \end{frame}     \begin{frame}{some details about this section}     \end{frame}     \begin{frame}{some more details about this section}     \end{frame}     \end{document}      ![Here is how the pages of the Pdf file look](http://i.stack.imgur.com/1rI5T.png) Sorry for the small font, but hope you get the idea.


title: How to control several animations with one control

text: 1. I want to have a common time control (play/stop/rewind/etc) for several items. Such as an animation and a video. Or two animations.    2. And, how do you position the control buttons above the display area?


What do newcommand, renewcommand, and providecommand do, and how do they differ? I think `\newcommand` overwrites any previously existing command, while `\providecommand` creates the command only if it does not already exists. Does `\renewcommand` only work on already extant commands?


title: Page break with \include

text: I like to print my drafts with big fonts and small margins (i do this in memoir style in a single chapter), but the `\include` comand creates a page break. Is there a way to avoid this and have section after section continuously?


title: Blank page inserted when using \include

text: > **Possible Duplicate:**   >  Page break with \include I am using the Report document class and to manage the document i have divided it into seperate .tex files that are compiled within a main document. The main document contains the prefatory material and begins as follows:               \documentclass[a4paper,12pt,twoside]{report}     \includeonly{MF2_Formal_RPT_Cover&Title,CommonwealthDisclaimer,InstructionsForReaders,SignaturePage}      I then include the various report parts using:               \begin{document}     \include{MF2_Formal_RPT_Cover&Title}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Prefatory pages for the report %     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \include{CommonwealthDisclaimer}     \include{InstructionsForReaders}     \include{SignaturePage}     \end{document}      When I compile the document a blank page is being inserted between each new included file. I have checked each file and they do not finish with a page break or similar. How can I stop the inclusion of the extra blank pages?


title: Specific drawings with arrows and vertices in latex

text: I would like to know how I can create the drawings from page 7: ![enter image description here](http://i.stack.imgur.com/8nWYh.png) and page 9 from the following article: ![enter image description here](http://i.stack.imgur.com/7ykMY.png)


title: Consistent vertical positioning of superscripts

text: This is somehow a follow-up question to this one. I've got the following math expression: `\nabla_y u_0^{(i)}\nabla_y v^{(i)}` However, no matte, whether I enclose the `v` in curly brackets or not (as indirectly suggested in the linked question), the last superscript (`(i)`) is always on a lower vertical position than the first superscript (`(i)`). What is the optimal and advised method for ensuring that the superscripts are always on the same vertical position throughout my whole document? * * * **Edit**   Thank's to karlkoeller's anwser, I ended up using two custom commands:               \newcommand{\supp}[1]{_{\vphantom{0}}^{#1}}     \newcommand{\subp}[2]{_{\vphantom{0}#1}^{#2}}       The first is used when no _sub_ -script should be printed and the latter is used for all combinations of super- and subscripts. E.g.               u\subp{\varepsilon}{(i)} \nabla v\supp{(i)}


title: LyX / LaTeX Numeric Referencing question

text: I am writing a paper using numeric referencing. Say I have a list of references like so:               ... as presented in [3], [4], [5]      How do I instruct LyX or LaTeX to typeset it as:               ... as presented in [3] - [5]      I have seen this done in several papers. Obviously I could do this manually, but I wouldn't want to do that, as references tend to get messed up very quickly.


title: Underlining a whole line with a short text in its beginning

text: I would like to underline a whole line with a single word in the beginning of the line. I tried               \underline{\textsc{HOMEWORK}\hrulefill}}      but this underlines only the word ``HOMEWORK'', leaving the rest of line not underlined. Any other suggestion?


title: PowerPoint's "Smart Art" for TikZ?

text: > **This question led to a new package:**   >  `smartdiagram` I haven't been using PowerPoint for years, but today I immediately fell in love with its "Smart Art" feature (2010 version of PowerPoint). The idea is that an (indented) bullet list is transformed automatically into a process diagram, a tree, a Venn diagram and whatnot. This allows creating simple yet expressive graphics in less than one minute. Input:   * Set up / adapt   * Run   * Analyze   * Modify / add Output: ![Result of "Block cycle" smart art in PowerPoint](http://i.stack.imgur.com/DJNcP.png) I know that TikZ already contains code for most shapes needed to build these graphics. What would be missing is a preprocessor to convert these bulletted list to TikZ code, perhaps within (Lua)LaTeX or as standalone preprocessor. (Of course, "normal" LaTeX syntax would do just as well.) Is anyone aware of such a tool? **EDIT** : Of course, TikZ can draw Lindenmayer systems, petri nets, automata etc. -- difficult to do that with PowerPoint. But, say, what about a "Process" library that would visualize process chains based on a simple syntax? **EDIT^2** : Of course, we could also turn this question into a collection of diagram-producing commands, and later bundle it as something pluggable, like a package/library! **EDIT^3** : The above circular process diagram is not the only "smart art" design available. There are other examples, some are more useful, some less. What is your favorite?


title: Getting the header for the references, using biblatex, to look *exactly* like the header for the main text, using apa.cls

text: _(This is a continuation of the question asked inthis thread)_ I'm using `apa.cls` (in doc-mode) in conjunction with `biblatex`. The `apa.cls` prints a header for me on every page, except for when `biblatex` prints the bibliography. At this point, is seems like `biblatex` takes over and creates a different heading which says "REFERENCES". I would like to have _exactly_ the same header for the references as for the rest of the paper. In this thread (the same one which is linked to above), Gonzalo Medina suggested a solution using `\fancyhdr` and emulating the header of the `apa.cls`. However, this seems to run into all kinds of troubles. It is hard to get the _exact_ fontsize, thickness of the text, placement et cetera correct. For example, `apa.cls` puts the header text in the middle but nudges it a couple of pixels back and forth depending on if it's written on an even or odd page (see original thread for more problems). For consistency, I could just use `\fancyhdr` to redefine the header for the whole document but I'd like to use the header that `apa.cls` specifies (style- wise, it goes well with the main text). So, is there anyway for me to do this? Minimal (non)working example:               \documentclass[noapacite, twoside, doc]{apa}          \title{This is the Title}     \author{Me}     \rightheader{this is the header}          \usepackage{biblatex}          \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @thesis{A01,       author = {Megalomanius, M.},       year = {1900},       title = {Why I am so great}},     }     \end{filecontents}          \addbibresource{\jobname.bib}          \nocite{*}          \begin{document}     \newpage     \maketitle     \newpage     This is the first page.     \newpage     This is the second page.     \newpage     \printbibliography     \end{document}      This generates the following output (the positioning nudge isn't obvious in these screenshot since they're not lined up): ![enter image description here](http://i.stack.imgur.com/8L8KG.png) ![enter image description here](http://i.stack.imgur.com/QSuXO.png) ![enter image description here](http://i.stack.imgur.com/5AoqJ.png)


title: Move all footnotes, references, tables, and charts to end

text: I'm submitting a paper for review for publication and the style guide of the journal requires: > footnotes, references, tables, and charts on separate pages I take this to mean that footnotes should be a separate page, references on another. I know about the `endnotes` package, but are there other packages or style files that I can use to achieve this style requirement without changing the markup of my document extensively?


title: Can latexdiff-cvs handle RCS tags?

text: I would like to know if anyone has a nice way of combining latexdiff-rcs with printing actual RCS tags in their document. For example, I am using CVS to version control a latex document. My document page headers have the RCS tags Revision, Date and Author in the preamble of my tex document,               \usepackage{rcs}          \RCS$Revision: 1.36 $ % or any RCS keyword     \RCS$Date: 2011/11/01 09:53:19 $     \RCS$Author: shaun $     \date{Revision \RCSRevision, \RCSDate, \RCSAuthor}          \fancyhf{}     \chead{Revision \RCSRevision, \RCSDate, \RCSAuthor}     \rhead{\thepage}     \pagestyle{fancy}      If I then use latexdiff-cvs with an earlier revision, latexdiff parses this into,               \RCS\DIFdelbegin \DIFdel{$Revision: 1.26 $ }\DIFdelend \DIFaddbegin     \DIFadd{$Revision: 1.27 $ }\DIFaddend % or any RCS keyword     \RCS\DIFdelbegin \DIFdel{$Date: 2011/03/08 08:22:24 $     }\DIFdelend \DIFaddbegin \DIFadd{$Date: 2011/04/29 06:50:24 $     }\DIFaddend \RCS$Author: shaun $      Which doesn't really compile the page header at all. However, if latexdiff gave me this,               \RCS$Revision: \DIFdelbegin \DIFdel{1.26}\DIFdelend \DIFaddbegin \DIFadd{1.27} \DIFaddend $ % or any RCS keyword     \RCS$date: \DIFdelbegin \DIFdel{2011/03/08 08:22:24}\DIFdelend \DIFaddbegin \DIFadd{2011/04/29 06:50:24}\DIFaddend $     \RCS$Author: shaun $      Then it compiles very nicely, and looks good.


title: How to add linenumbers to figure captions?

text: I'd like to add linenumbers to my TeX-file. I found the packe `lineno` which I'm using as follows:               \usepackage{lineno}     \linenumbers      Unfortunately line numbers are not added to the figure captions and table captions. Is there an easy way to also include captions to the line numbering?


title: Automatic line breaking of long lines of text?

text: Here, it is just a example. I have a line:               aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaa      Now, I want to let LaTeX automatically wrap the line according to the width of the text block/margins.


title: "! Missing number, treated as zero." error in an array

text: \documentclass[english]{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[a4paper]{geometry}  % change later to \usepackage{geometry}     \geometry{verbose,tmargin=1cm,bmargin=1cm,lmargin=1cm,rmargin=1cm,     headheight=0cm,headsep=0cm,footskip=0cm,nomarginpar}     \pagestyle{empty}     \setlength{\parskip}{0bp}     \setlength{\parindent}{0pt}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{setspace}     \usepackage{babel}     \usepackage{ulem}          \begin{document}          \def\arraystretch{2}     \[ \begin{array}{rcl}     C_\theta H^T [HC_\theta H^T + C_\eta]^{-1} &=& [C_\theta^{-1}+H^TC_\eta^{-1}H]^{-1}H^TC_\eta^{-1} \\     C_\theta H^T [HC_\theta H^T + C_\eta]^{-1}[HC_\theta H^T + C_\eta] &=& [C_\theta^{-1}+H^TC_\eta^{-1}H]^{-1}H^TC_\eta^{-1}[HC_\theta H^T + C_\eta] \\     C_\theta H^T &=& [C_\theta^{-1}+H^TC_\eta^{-1}H]^{-1}H^TC_\eta^{-1}[HC_\theta H^T + C_\eta] \\     [C_\theta^{-1} + H^T C_\eta^{-1} H] C_\theta H^T & = & [C_\theta^{-1} + H^T C_\eta^{-1} H][C_\theta^{-1} + H^T C_\eta^{-1} H]^{-1} H^T C_\eta^{-1} [H C_\theta H^T + C_\eta] \\     \end{array} \]          \end{document}      Given error message is: > ! Missing number, treated as zero.   >   >  C   >  l.269 [C_\theta^{-1} + H^T C_\eta^{-1} H]   >  C_\theta H^T & = & [C_\theta^{-1} ...   >  A number should have been here; I inserted `0'.   >  (If you can't figure out why I needed to see a number,   >  look up`weird error' in the index to The TeXbook.)   >  ! Illegal unit of measure (pt inserted).   >   >  C   >  l.269 [C_\theta^{-1} + H^T C_\eta^{-1} H]   >  C_\theta H^T & = & [C_\theta^{-1} ...   >  Dimensions can be in units of em, ex, in, pt, pc,   >  cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!   >  I'll assume that you meant to say pt, for printer's points.   >  To recover gracefully from this error, it's best to   >  delete the erroneous units; e.g., type `2' to delete   >  two letters. (See Chapter 27 of The TeXbook.)   >  ! Missing = inserted for \ifdim.   >  <to be read again>   >  C   >  l.269 [C_\theta^{-1} + H^T C_\eta^{-1} H]   >  C_\theta H^T & = & [C_\theta^{-1} ...   >  I was expecting to see`<', `=', or`>'. Didn't.   >  ! Missing number, treated as zero.   >   >  C   >  l.269 [C_\theta^{-1} + H^T C_\eta^{-1} H]   >  C_\theta H^T & = & [C_\theta^{-1} ...   >  A number should have been here; I inserted `0'.   >  (If you can't figure out why I needed to see a number,   >  look up`weird error' in the index to The TeXbook.)   >  ! Illegal unit of measure (pt inserted).   >   >  C   >  l.269 [C_\theta^{-1} + H^T C_\eta^{-1} H]   >  C_\theta H^T & = & [C_\theta^{-1} ...   >  Dimensions can be in units of em, ex, in, pt, pc,   >  cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!   >  I'll assume that you meant to say pt, for printer's points.   >  To recover gracefully from this error, it's best to   >  delete the erroneous units; e.g., type `2' to delete   >  two letters. (See Chapter 27 of The TeXbook.) It works alright when I remove the bold part (at line 269) below: > [ \begin{array}{rcl}   >  C_\theta H^T [HC_\theta H^T + C_\eta]^{-1} &=& > [C_\theta^{-1}+H^TC_\eta^{-1}H]^{-1}H^TC_\eta^{-1} \   >  C_\theta H^T [HC_\theta H^T + C_\eta]^{-1}[HC_\theta H^T + C_\eta] &=& > [C_\theta^{-1}+H^TC_\eta^{-1}H]^{-1}H^TC_\eta^{-1}[HC_\theta H^T + C_\eta] \   >  C_\theta H^T &=& > [C_\theta^{-1}+H^TC_\eta^{-1}H]^{-1}H^TC_\eta^{-1}[HC_\theta H^T + C_\eta] \   >  **[C_\theta^{-1} + H^T C_\eta^{-1} H]** C_\theta H^T & = & [C_\theta^{-1} + > H^T C_\eta^{-1} H][C_\theta^{-1} + H^T C_\eta^{-1} H]^{-1} H^T C_\eta^{-1} > [H C_\theta H^T + C_\eta] \ It doesn't give any error when I run the relevant part in a different location:               \[ % No errors given for this:      [C_\theta^{-1} + H^T C_\eta^{-1} H] C_\theta H^T = [C_\theta^{-1} + H^T C_\eta^{-1} H][C_\theta^{-1} + H^T C_\eta^{-1} H]^{-1} H^T C_\eta^{-1} [H C_\theta H^T + C_\eta] \]     \end{array} \]      What is wrong with my code?


title: Making a PGF shape

text: I'm having terrible trouble trying to declare a new shape with PGF and would appreciate help. What I would like to achieve is: ![enter image description here](http://i.stack.imgur.com/948ar.jpg) where the lighter grey boxes are `\nodepart` anchors, and the base shape is a rectangle, with a line drawn from the upper left corner to the middle bottom to the upper right corner. Here is what I've tried:               \catcode`@=11     \pgfdeclareshape{decision}{%       \inheritsavedanchors[from=rectangle]%       \inheritanchorborder[from=rectangle]%       \inheritanchor[from=rectangle]{center}%       \foreach \anchor in {north,north west,north east,center,west,east,mid,         mid west,mid east,base,base west,base east,south,south west,south east}{%         \inheritanchor[from=rectangle]{\anchor}}%       \nodeparts{text,false,true}%       \savedanchor{false}{%         \pgf@x=.1\wd\pgfnodeparttextbox%         \pgf@y=.1\ht\pgfnodeparttextbox%       }%       \savedanchor{true}{%         \pgf@x=.9\wd\pgfnodeparttextbox%         \pgf@y=.1\ht\pgfnodeparttextbox%       }%       \inheritbackgroundpath[from=rectangle]%       %\beforebackgroundpath{%       %  \pgfpathmoveto{\pgfpointadd{\       %}%     }     \catcode`@=12     \tikz \node[decision] {};     \bye      Trying to compile the above (unfinished) definitions I get an error:               ! Missing control sequence inserted.     <inserted text>                      \inaccessible      <to be read again>                         f     \pgf@sh@savedpoints ...53297pt}{-3.53297pt}}\def f                                                       alse{\pgfqpoint {0.0pt}{0....      **UPDATE** After following @cjorssen's advice in a comment, I changed the first arguments of `\savedanchor` commands to be a command (i.e., `\true`, `\false`), and then I get a different error:               ! Missing number, treated as zero.     <to be read again>                         \pgfnodepartfalsebox      \pgfsys@hbox #1->\pgfsys@beginscope \setbox #1                                                   =\hbox {\box #1}\wd #1=0pt\ht ...


title: tabular and array

text: Consider the following example:               \documentclass{article}     \usepackage{array}     \usepackage{calc}          \begin{document}     \begin{tabular}{p{\textwidth - 3cm}|p{1cm}<{foo}}        Caption1 & Caption2\\        Text & \\        Text & \\        Text & \\        % much more rows     \end{tabular}     \end{document}      Now my question is, how to modify this such that `foo` applies to every row except to the first one?


title: Typeset single chapter from book

text: I am working on a multi-chaptered document, tied together with a main tex file that pulls the chapters in via \include. To build the entire document, in its current draft form, can take upwards of 15-20 minutes, depending on the machine I am working on. I am wondering if there is a way that I could choose to typeset only one specific chapter at a time without having to restructure my whole setup. Any ideas?


title: Printing selected chapters without affecting cross-referencing

text: I am writing my thesis in Lyx and for some reason, probably due to the style sheet, I am unable to print the complete thesis. It gives weird errors. However, individually all chapters are easily converted to PDF. Is there a command that allows printing only a few selected chapters but does not affect referencing? I could then restart page numbering and get a quick fix to the problem. Please advise.


title: String lowercase equality (newbie question)

text: i'd like to test if a string, once transformed into lowercase is equal to a given string. Here a MWE of what i'm talking about :               \documentclass[a4paper,10pt]{report}     \usepackage[francais]{babel}     \begin{document}           \def\planeone{AirForce1}     \def\planetwo{airforce1}     \edef\planethree{\lowercase{\planeone}}          \planetwo{ and  }\planethree{ are }     \ifx\planetwo\planethree{the same}\else{not the same}\fi.          \end{document}      Of course when i test `\meaning\planetwo` and `\meaning\planethree` i can see the two commands are not the same, but i just want to test what they expand to. I tried a few `\expandafter` here and there, but without any success.


title: Japanese Problem using MacTeX 2011

text: The XeLaTeX Japanese examples I find on TeX.sx seem to have this issue in common on my system. I'm running MacTeX 2011, fully updated at the time of writing. The following sample               %!TEX TS-program = xelatex     \documentclass{standalone}          \usepackage{xeCJK}     \usepackage{ruby}     \setCJKmainfont{Hiragino Mincho Pro}          \begin{document}          \ruby{学}{がく}\ruby{生}{せい}          \end{document}      gives me this output ![enter image description here](http://i.stack.imgur.com/ynpg2.png) I checked Font Book, and the font in the example is present (this happens whatever font I try). In an ideal world I'd like to use Japanese with furigana (ruby text). Is there something wrong with my code, or something not quite right with MacTeX on this system?


title: Using \hangindent within enumerate

text: I would like to have a hanging indent within the paragraph of an enumerate item. I have the following:               \begin{document}     \begin{enumerate}         \item Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus id diam id ante ullamcorper vestibulum eu non nisl. Curabitur interdum laoreet massa, eu eleifend risus placerat nec. Suspendisse potenti.              Mauris nunc risus, congue id sollicitudin id, sagittis quis elit. Proin blandit, orci vitae vehicula faucibus, est leo facilisis ante, quis venenatis mi dolor ut tellus.         \item Integer aliquam mollis lacus, in fermentum tellus pharetra eget. Donec suscipit condimentum tincidunt. Mauris odio felis, ultricies non lobortis non, suscipit in magna.              Nam venenatis dolor turpis. Mauris fermentum, est ac dapibus accumsan, lorem orci vulputate nunc, quis laoreet augue elit pulvinar dui. Curabitur eu enim quis dolor interdum vehicula eget vitae ipsum.     \end{enumerate}     \end{document}      This outputs: ![](http://i.stack.imgur.com/bESVw.png) I would like for it to output: ![](http://i.stack.imgur.com/lLIJX.png) However, `\hangindent` does not seem to work within the `\item` of an `enumerate` environment because `\item` uses `\parshape`, which overrides `\hangindent`. How can I achieve this?


title: aspell - special characters and math mode

text: 1) How can I make `aspell` cope with words containing special characters like `F\"orster` or `\AA ngstrom`? I can't simply add these to the dictionary. 2) How can I make `aspell` skip math mode? For example, in `$a^bc$` it offers to replace `bc`.


title: Automatic document update

text: As many of you I do quite a bit of teaching to make living. The worst part of the semester is usually beginning when I create and upload course Syllabi as well as the end of the semester when I process my grade books. As I am growing older and wiser I try to automatize most of these things. Currently, I have a fairly elaborate set of AWK scripts which essentially do grade book processing for me. It is still not so with the Syllabi. Here you can find bunch of Syllabi samples/templates for the courses I recently taught. As you can see in many cases the manual update of Syllabi boils down to updating only a few basic information about the course (meeting time, places, in-class exam dates, textbook (I now use BibTeX to do that for me) and so on) as well as day by day course calendar (which I usually keep separately and use `\include` to include into the source file). I am thinking of creating a script to do all that instead of me. Essentially, I would like to download info from the University portal, format and put into text file. Then use the script to feed info to the Syllabi source files. Could people share their experience on this topic? To make a more formal question. How can you use a script to update certain parts of the TeX source file? **Edit:** I would like to link this question and answer to the following related question I posted which also has a great and a very useful answer.


title: Removing the page numbering on some pages of beamer

text: I am trying to remove the page numbering on the transitions pages (which are not counted thanks to the `noframenumbering`). Currently, I have the following display on transitions: ![transitionfail](http://i.stack.imgur.com/1owNq.png) I would like to have this transition display : ![transitionsuccess](http://i.stack.imgur.com/T2F12.png) (You will notice that there is no page numbering on the page) * * * **Question:** Is it possible to remove the page numbering without editing the entire theme package (I only want to remove this part, but I want to keep all the other thing)? If no, what would be the solution in order to remove this page numbering there, but keeping all the other content on header and footer? * * * **My minimal working example:**               \documentclass{beamer}     \usetheme{CambridgeUS}          \begin{document}     \AtBeginSection[]{         \begin{frame}<beamer>[noframenumbering]             \tableofcontents[currentsection,hideothersubsections]         \end{frame}     }          \section{section1}     \begin{frame}     We are in section1     \end{frame}          \section{section2}     \begin{frame}     We are in section2     \end{frame}          \end{document}


title: Biblatex, verbose-ibid, journal title for repeated citations

text: I am using Biblatex, and verbose-ibid, and I would like to use author, name of journal for repeated citations of the same article, and author, editor's name and short title of the book for conference proceedings. I want to keep the short title option for books instead. How can I achieve that? Or is there a style doing that already? Any help appreciated For the better explaining: I give an example of what I am trying to achieve: > A. Assmann, "This is an article", _BIFAO_ 56 (2000), 23-45. Later this article should be shortened as > Assmann, _BIFAO_ 56. For the conference proceedings or contributions to edited books, the original reference should be full: > R. Parkinson, "This is a contribution", in V. Davies, _This is a book > proceedings_ , Paris: My publisher, pp. 34-56. Later it should be shortened to > Parkinson, in _Book Proceedings_. The title of the book should be shortened as usual for books. I give you three examples from my bibliography, but Habachi entry is the "perfect one" (just added):               @article{Spalinger.1978b,      author = {Spalinger, A. J.},      year = {1978},      title = {Psammetichus, King of Egypt: II},      pages = {49–57},      paginationtype = {page},      volume = {15},      journaltitle = {JARCE}     }          @incollection{Hornung.2006,      author = {Hornung, E. and Krauss, R. and Warburton, David A.},      title = {Royal Annals},      pages = {19–25},      bookpaginationtype = {page},      subtitle = {Ancient Egyptian Chronology}     }          @incollection{Habachi.1977,     author = {Habachi, Labib},     title = {Mentuhotpe, the Vizier and Son-in-Law of Taharqa},     pages = {165–170},     bookpaginationtype = {page},     publisher = {Akademie-Verlag},     series = {Schriften zur Geschichte und Kultur des Alten Orients},     editor = {Endesfelder, E. and Priese, K.-H and Reineke, W.-F and Wenig, S.},     booktitle = {Ägypten und Kusch},     year = {1977},     usera = {Yes},     shorttitle = {Mentuhotp},     location = {Berlin},     booksubtitle = {Fritz Hintze zum 60. Geburtstag},     number = {13}      }


title: making a box in beamer -- adding labels diagonally

text: I would like to add a label that is diagonal to the following box, underneath the n', such that it is horizontally just below the box. Basically, I would like to "subtract" the difference between the content in the two cells. I'd like to add a label that says "Diff" just off the bottom left corner and then place the difference just below (p, n') box, outside of it. For a picture of the box, see an earlier questions: making a box in beamer -- center aligning the title Thank you very much for your help!               \documentclass[professionalfont, fleqn]{beamer}     \usepackage{tikz}     \usetikzlibrary{arrows,shapes,positioning,fit,shapes.misc}          \begin{document}          \begin{frame}          \centering      \only<1>{%      \begin{tikzpicture}[      box/.style = {draw,rectangle,minimum size=1.0cm,text     width=1cm,align=center}      ]     \matrix (conmat) [row sep=0cm,column sep=0cm,ampersand     replacement=\&] {     \node (tpos) [box,label=left:\( \mathbf{p'} \),label=above:\(     \mathbf{p} \),] {};       \& \node (fneg) [box,label=above:\textbf{n},] {$\checkmark$}; \\      \node (fpos) [box,label=left:\( \mathbf{n'} \),] {$\checkmark$};       \& \node (tneg) [box] {$\checkmark$}; \\       };          \node [left=.05cm of conmat,text width=1.5cm,align=center]     {\textbf{actual \\ value}};     \node [above=.05cm of conmat] {\textbf{prediction}};     \end{tikzpicture}%     }          \end{frame}     \end{document}


title: How can I arrange multiple figures in rows of 3 in a two-column document?

text: I have 8 figures, which need to included in a two-column style paper. The figures should be added at the top of the corresponding page, three figures in each row (figure alignment is not as the two-column style). i.e.:               fig1:   fig2:    fig3:          fig4:   fig5:    fig6:      Each figure should not start with `(a)`... `(b)`...... likewise. Can anybody tell how to do this in LaTeX?


title: Footnote in revtex4

text: Can somebody explain to me how to make a footnote in revtex4, so that it is placed on the same page as text and not in the bibliography?


title: Handouts dont print properly

text: I have been unable to print handouts --- multiple slides per page with border around each. And it just does not work. I tried compiling with xelatex and latex (both almost default installs on Ubuntu 10.12). How do I set it right? Below is the MWE.               \documentclass[xcolor=dvipsnames,english,professionalfonts,smaller,handout]{beamer}          \usetheme{Madrid}     \usecolortheme[named=Black]{structure}          \usepackage{arev}     \usepackage{wasysym}     \usepackage{keystroke}     \usepackage{parskip}     \usepackage{booktabs}     \usepackage{tabu}     \usepackage{pifont}     \usepackage{tikz}          \usepackage{graphicx}     \graphicspath{{.}{./images/}}          \setbeamertemplate{navigation symbols}{}          \date{}          \defbeamertemplate*{footline}{my infolines theme}     {     \leavevmode%     \hbox{%     \begin{beamercolorbox}[wd=.1\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%     \usebeamerfont{author in head/foot}{\underline{\textbf{Author} }}     \end{beamercolorbox}%     \begin{beamercolorbox}[wd=.8\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%     \usebeamerfont{title in head/foot}Title~---~\insertshorttitle     \end{beamercolorbox}%     \begin{beamercolorbox}[wd=.1\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%     \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}     \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}     \end{beamercolorbox}}%     \vskip0pt%     }          \newcommand{\footlineextra}[1]{         \begin{tikzpicture}[remember picture,overlay]                 \node[yshift=2ex,anchor=south east] at (current page.south east) {\usebeamerfont{author in head/foot}\hspace{2ex}#1};                 \end{tikzpicture}             }          \newcommand{\footlineleft}[1]{         \begin{tikzpicture}[remember picture,overlay]                 \node[yshift=2ex,anchor=south west] at (current page.south west) {\usebeamerfont{author in head/foot}\hspace{2ex}#1};                 \end{tikzpicture}             }          %}}}          \title{\newline Title \newline}     \institute[Institute]{\Large{Institute}\newline \newline \normalsize{\textbf{Some text} normal text\newline \textbf{Some text} normal text\newline \textbf{Some text}}}          \mode<handout>{       \usepackage{pgfpages}       \usetheme{default}       \setbeamercolor{background canvas}{bg=black!5}       \pgfpagesuselayout{2 on 1}[a4paper,landscape,border shrink=5mm]     \pgfpageslogicalpageoptions{1}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{2}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{3}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{4}{border code=\pgfusepath{stroke}}     }               \begin{document}          \setlength{\parskip}{\bigskipamount}          \begin{frame}[<+->]{Slide 1}          \pause          ONE          \end{frame}          \begin{frame}[<+->]{Slide 2}          \pause          TWO          \end{frame}          \begin{frame}[<+->]{Slide 3}          \pause          THREE          \end{frame}          \begin{frame}[<+->]{Slide 4}          \pause          FOUR          \end{frame}          \end{document}


title: 3D-PDF Error when adding 3Dviews to media

text: I am facing problems when I want to add 3Dviews to my media. I cannot compile the following code, getting an error 'undefined control sequence'. But without the line `3Dviews=test.vws,` it works. The strange thing is that this code had been working fine before I installed the newest MikTex distribution and also updated all packages... I would be thankful for any hints, can you help me please?               \documentclass[landscape]{article}     \usepackage[a4paper, left=1cm, right=1cm, top=2cm, bottom=2cm]{geometry}     \usepackage{graphicx}     \usepackage[dvipdfmx]{media9}     \usepackage[pdftex]{hyperref}          \begin{document}     \pagestyle{empty}     \centering     \includemedia[     label=converter3degreelines,     width=\textwidth,     height=\textheight,     activate=pagevisible,     deactivate=pageinvisible,     3Dviews=test.vws,     3Dmenu     ]{     \includegraphics[width=0.45\textwidth]{test.png}     }{test.u3d}     \end{document}      The test.vws file contains the following:               VIEW=Default         COO=4.675      -4.675       4.675         C2C=0            0      80.9734         ROO=6.1057         ROLL=0         ORTHO=0.081891              PART=Mesh1             RENDERMODE=Wireframe         END     END      The error message from the Log is the following:               ! Undefined control sequence.     <argument> \LaTeX3 error:                                 Missing number before '*'.     l.20 }{test.u3d}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.      The file list from the .log is:               *File List*     article.cls 2007/10/19 v1.4h Standard LaTeX document class     size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     geometry.sty 2010/09/12 v5.6 Page Geometry     keyval.sty 1999/03/16 v1.13 key=value parser (DPC)     ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)     ifvtex.sty 2010/03/01 v1.5 Detect VTeX and its facilities (HO)     ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional     graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     graphics.sty 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)     trig.sty 1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live     pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX     infwarerr.sty 2010/04/08 v1.3 Providing info/warning/error messages (HO)     ltxcmds.sty 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     media9.sty 2013/08/16 v0.30 acrobat-9/X compatible media     expl3.sty 2013/07/28 v4582 L3 Experimental code bundle wrapper     l3names.sty 2012/12/07 v4346 L3 Namespace for primitives     l3bootstrap.sty 2013/07/28 v4581 L3 Experimental bootstrap code     etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)     l3basics.sty 2013/07/28 v4581 L3 Basic definitions     l3expan.sty 2013/07/24 v4565 L3 Argument expansion     l3tl.sty 2013/07/28 v4581 L3 Token lists     l3seq.sty 2013/07/28 v4581 L3 Sequences and stacks     l3int.sty 2013/07/28 v4581 L3 Integers     l3quark.sty 2013/07/21 v4564 L3 Quarks     l3prg.sty 2013/07/28 v4581 L3 Control structures     l3clist.sty 2013/07/28 v4581 L3 Comma separated lists     l3token.sty 2013/07/28 v4581 L3 Experimental token manipulation     l3prop.sty 2013/07/28 v4581 L3 Property lists     l3msg.sty 2013/07/28 v4581 L3 Messages     l3file.sty 2013/07/28 v4581 L3 File and I/O operations     l3skip.sty 2013/07/28 v4581 L3 Dimensions and skips     l3keys.sty 2013/07/28 v4581 L3 Experimental key-value interfaces     l3fp.sty 2013/07/09 v4521 L3 Floating points     l3box.sty 2013/07/28 v4581 L3 Experimental boxes     l3coffins.sty 2012/09/09 v4212 L3 Coffin code layer     l3color.sty 2012/08/29 v4156 L3 Experimental color support     l3luatex.sty 2013/07/28 v4581 L3 Experimental LuaTeX-specific functions     l3candidates.sty 2013/07/24 v4576 L3 Experimental additions to l3kernel     l3regex.sty 2013/07/24 v4576 L3 Experimental regular expressions     l3tl-build.sty 2011/12/08 v3039 L3 Experimental token list construction     l3tl-analysis.sty 2011/12/08 v3039 L3 Experimental token lists analysis     l3str.sty 2013/07/24 v4576 L3 Experimental strings     l3flag.sty 2011/12/08 v3039 L3 Experimental flags     l3str-convert.sty 2013/01/08 v4339 L3 Experimental string encoding conversio     ns     l3keys2e.sty 2013/07/28 v4582 LaTeX2e option processing using LaTeX3 keys     xparse.sty 2013/07/28 v4582 L3 Experimental document command parser     atbegshi.sty 2011/10/05 v1.16 At begin shipout hook (HO)     hyperref.sty 2012/11/06 v6.83m Hypertext links for LaTeX     hobsub-hyperref.sty 2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)     hobsub-generic.sty 2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)     hobsub.sty 2012/05/28 v1.13 Construct package bundles (HO)     ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)     intcalc.sty 2007/09/27 v1.1 Expandable calculations with integers (HO)     etexcmds.sty 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     kvsetkeys.sty 2012/04/25 v1.16 Key value parser (HO)     kvdefinekeys.sty 2011/04/07 v1.3 Define keys (HO)     pdftexcmds.sty 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)     pdfescape.sty 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)     bigintcalc.sty 2012/04/08 v1.3 Expandable calculations on big integers (HO)     bitset.sty 2011/01/30 v1.1 Handle bit-vector datatype (HO)     uniquecounter.sty 2011/01/30 v1.2 Provide unlimited unique counter (HO)     letltxmacro.sty 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)     hopatch.sty 2012/05/28 v1.2 Wrapper for package hooks (HO)     xcolor-patch.sty 2011/01/30 xcolor patch     atveryend.sty 2011/06/30 v1.8 Hooks at the very end of document (HO)     refcount.sty 2011/10/16 v3.4 Data extraction from label references (HO)     hycolor.sty 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)     auxhook.sty 2011/03/04 v1.3 Hooks for auxiliary files (HO)     kvoptions.sty 2011/06/30 v3.11 Key value format for package options (HO)     pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)     hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive     url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.     hpdftex.def 2012/11/06 v6.83m Hyperref driver for pdfTeX     rerunfilecheck.sty 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)     supp-pdf.mkii     epstopdf-base.sty 2010/02/09 v2.5 Base part for package epstopdf     grfext.sty 2010/08/19 v1.1 Manage graphics extensions (HO)     epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live     nameref.sty 2012/10/27 v2.43 Cross-referencing by name of section     gettitlestring.sty 2010/12/03 v1.4 Cleanup title references (HO)     mediatest.out     mediatest.out     test.png Graphic file (type png)     ***********


title: latexmk endless loop when non-PDF outputs are specified

text: My source file is based on the `standalone` package. The `\documentclass` command specifically looks like this:               \documentclass[preview, convert={density=300}]{standalone}      If the source file is named `main.tex`, compiling it will result in producing the `main.pdf` and `main.png` files. `latexmk` runs only once the first time `main.png` is created. However, it goes into an endless loop once I begin updating the source file (and hence the `main.pdf` and `main.png`) I think this is because `latexmk` mistakes the `main.png` file as part of the source for building the final `main.pdf`. Is there a way to exclude certain files from being monitored by `latexmk`? I searched inside `man latexmk` but there are no occurrences of "exclude".


title: LaTeX3-sensitive editors

text: I'm starting to embed `LaTeX3` code in my custom classes and packages -- and enjoying it more the further I learn about it --, but at least to me it would make for an even better experience if, as it is common in the computer languages I work with regularly, I could use some editor sensitive to `LaTeX3` in terms, at least, of highlighting. It may be a little too early for this, given that the interface (and the implementation itself, as far as my knowledge goes) is still work in progress and not everything that is already available is stable, but entire stability (if there is such a thing) may be far ahead on the road and it seems to me that we already have elements considered stable enough for us to benefit from such editing features. True, one could always setup a favorite text editor accordingly (`WinEdt` is my regular editor for all things TeX, but I'm not committed to any editor in particular), but I'm asking for something already made... and trying to bring the attention of developers to this topic. Anyone knows of some editor out there with this kind of features? Are there any projects in this direction?


title: Why are braces (for scoping) not allowed in an align environments?

text: I just learned that you can use braces to scope the effect of `\tikzset`. But it is not allowed in align environments:               \documentclass{article}     \usepackage{amsmath}     \usepackage{tikz}     \begin{document}         \begin{align}             \tikzset{every node/.style={draw}}             \tikz{\node {};} &= \text{Box}\\             {                 \tikzset{every node/.style={fill}}                 \tikz{\node {};} &= \text{Filled box}\\             }             \tikz{\node {};} &= \text{Box}\\             \tikz{\node {};} &= \text{Box}         \end{align}     \end{document}      This fails with a lot of errors like "Misplaced alignment tab character" and others. Sadly, even a workaround doesn't work here:               \documentclass{article}     \usepackage{amsmath}     \usepackage{tikz}     \begin{document}         \begin{align}             \tikzset{every node/.style={draw}}             \tikz{\node {};} &= \text{Box}\\             \tikzset{every node/.style={fill}}             \tikz{\node {};} &= \text{Filled box}\\             \tikzset{every node/.style={draw}}             \tikz{\node {};} &= \text{Box}\\             \tikz{\node {};} &= \text{Box}         \end{align}     \end{document}      ![enter image description here](http://i.stack.imgur.com/yPaNQ.png) Notice how the last node is not drawn. What's going wrong?


title: View PDF viewing option in LED

text: I have LED editor of Latex, which I downloaded here http://www.latexeditor.org/download_main.html I would like to know how can I enable its PDF viewing option. I want to type and then compile and then see what I type not like going to the actual file and check every time to see what happened. Some thing shows me what I am writing after each compile.


title: Text / formulas with shadows

text: On a website I've seen awesome formulas: ![http://www.jagemann- net.de/alkanole/files/etherbildung.png](http://www.jagemann- net.de/alkanole/files/etherbildung.png) Is there any possibility to make   1. **shaded** text or   2. even **shaded** formulas? I know chemfig, but i haven't found a possibility for shading with LaTeX / XeLaTex


title: Chapter No. in Theorem style

text: I'm using `\documentclass{book}`. I'm also using the code below to create a theorem style, however, it only puts the title on top. I want to modify the code so that I get => Theorem ch. no. theorem no. and then title. (For instance => Theorem 1.1 The Title). Any ideas how to modify the code? Here is a MWE. [Note: `\tcolorbox` doesn't work for me, that's why I'm using the code below :-) ] I want something similar to the picture below but without `\tcolorbox`.![enter image description here](http://i.stack.imgur.com/p9Bbq.png)               \documentclass{book}     \usepackage[table]{xcolor}     \usepackage{tabularx,booktabs}     \usepackage{blindtext}     \def\myindent{1.5ex}     \def\rulethk{1.0pt}     \definecolor{myblue}{RGB}{32,92,195}     \newenvironment{mybox}[1]       {\par\medskip\noindent\arrayrulewidth=2pt\arrayrulecolor{myblue}%        \tabularx{\linewidth}{!{\color{myblue}\hspace{\myindent}\vrule width \rulethk} X @{}}        \multicolumn{1}{@{}l}{\tabular{@{}l@{}}\textbf{#1}\\\hline\endtabular}\\}       {\\\color{myblue}\hspace{\myindent}\smash{\rule[.5pt]{10ex}{\rulethk}}\endtabularx\par\smallskip}          \begin{document}          \begin{mybox}{The title with some more text in the title}     Only some text here     \end{mybox}          \blindtext          \begin{mybox}{The title}     \blindtext     \end{mybox}          \blindtext          \end{document}


title: leave blank space where author information will appear

text: Consider a snippet of text, the author information, that needs to be hidden for review. To allow organizing the space I would like to have a placeholder which uses up as much space as the author information will use up when rendered. That is               \documentclass{article}     \begin{document}     \title{test}     \author{information on authors}     text     \end{document}      My first attempt was to use `\textcolor{white}` which is inappropriate as it still allows to select the text in the final pdf file. Is there a way to have the author information hidden (and not selectable in the final pdf) while it still uses the space it will use in the final version?


title: Define a "square" command

text: I try to define the following command, for drawing a square in pstricks:               \newcommand{\square}[4] {       \rput(#1,#2){\psframe[linecolor=#4](0,0)(#3,#3)}     }      I use it like this (for drawing a red square with a corner at (1,1) and a side-length of 3):               \square(1,1,3,red)      And get the following errors:               Package xcolor error: Undefined color '1'.     Missing number, treated as zero.     Illegal unit of measure (pt inserted).      What am I doing wrong? (Additionally, if there is a simpler way to write this square command, I will be happy to learn..)


title: TikZ: Thick curve segment in a curve

text: Is it possible to draw thick curve between (2,2) (4,3). Remaining portion must be thin.               \documentclass{article}     \usepackage{tikz}          \begin{document}     \begin{tikzpicture}     \draw [blue] plot [smooth] coordinates {(0,0) (2,2) (4,3) (5,5) (0,10)};     \end{tikzpicture}     \end{document}


title: Shading images in Beamer

text: I had to reinstall latex yesterday, and it seems I upgraded from beamer 3.26 to 3.32 So far I used a little piece of code to shade my images, in order to have them behave like for example lists do in transparent mode --- Everything that is yet to come is shown with an opacity of 15% This worked really nicely, however it stopped working and I don't know if this is a bug, or due to some added features. As far as I can make out beamer still doesn't provide this out of the box, so some kind of fiddling is necessary. The question now is, how to get this to work again (short of downgrading beamer) as can be seen from the image (and from my (overly complicated) files) it sometimes works, but not correctly.   * The image is uncovered in frame 2, even though it should be uncovered in frame 3 (I only attached frame 1)   * Further images are not shaded at all This worked fine before (and was most useful together with \llap{} to superimpose tranparent pictures on top of other stuff ![result in 3.32](http://i.stack.imgur.com/zMUP2.png)               \documentclass{beamer}     \usepackage{ifthen}     \usepackage{tikz}          \makeatletter     \newcommand{\includecoveredgraphics}[2][]{         \ifthenelse{\the\beamer@coveringdepth=1}{             \tikz                 \node[inner sep=0pt,outer sep=0pt,opacity=0.15]                     {\includegraphics[#1]{#2}};         }{             \tikz                 \node[inner sep=0pt,outer sep=0pt]                     {\includegraphics[#1]{#2}};%         }     }          \makeatother          \begin{document}     \begin{frame}     \setbeamercovered{transparent}     \begin{itemize}[<+->]     \item First point.     \item Second point.     \item Third point.\includecoveredgraphics[width=2cm]{test1}     \item Fourth Point \includecoveredgraphics[width=5cm]{test2}     \end{itemize}     \end{frame}     \end{document}


title: Changing the default title/author/institution/frametitle font in Beamer

text: I sadly haven't been able to answer this questions using Google. In `beamer`, I'd like to make the default font for the entire title page, as well as frame titles, to be the default font from the old `prosper` package (example here). ![enter image description here](http://i.stack.imgur.com/ajq5e.png)


title: Change itemize margin

text: I am working inside the beamer environement and need to change the margin width for an itemize enveronement. The only way i found to do this is shown below.               \begin{minipage}{0.1\linewidth}     \hspace*{5pt}     \end{minipage}%     \begin{minipage}{0.8\linewidth}     \begin{itemize}         \item[Doel] Dimensioneren ventilatiesysteem         \item[Strategie] Berekening vereenvoudigen \\ Keuzes bieden         \item[Status] Berekening in orde         \item[Uitwerking]   Dimensioneren\\                             Weergeven\\                             Keuze bieden     \end{itemize}     \end{minipage}      This gives the right result but i don't think it is the right way to do it. ![Result](http://i.stack.imgur.com/PbzIn.jpg) How do i do it a more TeXy way?


title: How to set up a two-sided document with large pictures and margins?

text: i used a one-sided document with the following geometry content               \usepackage{geometry}     \geometry{         top=3.5cm,         bottom=3.5cm,         outer=6cm,         inner=2cm,         heightrounded,         marginparsep=0.8cm,         marginparwidth=4.7cm     }      to get images to a proper size i used the following code to push the picture inside the margin               \begin{figure}[h]     \newgeometry{margin=1.8cm}     ...     \restoregeometry     \end{figure}      ... it looks like: ![old](http://i.stack.imgur.com/iB1Ig.png) Now i changed the paper to a two-sided document in the document-class. I also updated the geometry code as follows               \usepackage{geometry}     \geometry{         top=3.5cm,         bottom=3.5cm,         outer=6cm,         inner=2cm,         heightrounded,         marginparsep=0.8cm,         marginparwidth=4.7cm,         twoside=true  % <--- !!!!     }      But i have some problems with big pictures on even pages: ![new](http://i.stack.imgur.com/un5IN.png) The image should also be pushed into the margin. Any advice how to change the               \newgeometry{margin=1.8cm}      command?


title: "Well-formed" LaTeX?

text: 1. Some "commands" in LaTeX are stand-alone. For example `\documentclass{...}` or `\textemdash`.   2. Some others have closing "commands". For example, `\begin{document}` and `\end{document}`, or `\begin{equation}` and `\end{equation}`.   3. Some commands work on the text enclosed within the braces. For example, `\textbf{add text here}`. Are there any rules or patterns to help decide which of these three formats to use? (Something general, which can be applied to new commands as one needs or comes across them, without having to look up examples.) Thanks.


title: Test for empty possibly itemized argument in tabu

text: For some reason, I can't test if `#2` is empty in the following `tabu` use case. An > Incomplete \ifx; all text was ignored after line 14 is thrown executing the following code.               \documentclass{article}     \usepackage{tabu}     \usepackage[english]{babel}          \newcommand \test [2]{%     %Works     %#1  \ifx&#2& empty \else  {\begin{minipage}[t]{\linewidth}#2\end{minipage}} \fi          % Doesn't with Arg A     \begin{tabu}{XX} #1 & \ifx&#2& empty \else  {\begin{minipage}[t]{\linewidth}#2\end{minipage}} \fi \end{tabu}     }          \begin{document}%     \test{A}{\begin{itemize}\item Test\end{itemize}} % Arg A     %\test{A}{}     \end{document}


title: Babel Multilingual Hyphenation Order of Precedence?

text: When I use multiple languages with Babel (e.g., with `\usepackage[german,french,latin,english]{babel}`), I realize that `english` is the default language because it is the last listed, but what does Babel do when it encounters a non-English word? How does it hyphenate it? Does it look for the word in, in my case, a German, French, or Latin hyphenation dictionary? If so, what if the same word is in multiple dictionaries, although it may be syllabicated differently? How would it hyphenate it then? Is there an order of precedence is the multilingual documents for hyphenation purposes?


title: multiple aligns and line breaking

text: I am trying to have multiple alignment in my equation in addition to line breaking. Here is a mwe illustrating my problem:               \documentclass[10pt]{article}     \usepackage[T1]{fontenc}     \usepackage{amsmath, amsthm, amssymb}     \usepackage[ansinew]{inputenc}          \begin{alignat*}{2}     a\quad &: \quad \alpha &= +1 + 2     \\     \phantom{a\quad : \quad}-3 + 4 \notag\\     a\quad &: \quad \beta &= +4     \end{alignat*}          \end{document}      The middle equation is not aligned correctly, the minus sign should of course appear right below/above the other two plus-signs. Any help is appreciated to solve this problem.


title: Not independent Sign in Latex

text: I want to do the not independent sign in latex without having to install or define new commands (since I am using latexIT and I cannot load new packages). Currently I use the following sign for independent:               X{\perp\!\!\!\perp}Y      What can I use for X not independent of Y? I.e., something like this: ![enter image description here](http://i.stack.imgur.com/5w3Bk.png)?


title: Lower the whitespace on each page at the top

text: I just noticed that in my document every page consists of a large whitespace at the top. I have probably used some package that messed it up because I don't think it should be like this. How can I restore it to a normal spacing? Or what's normal? ![enter image description here](http://i.stack.imgur.com/BZTcN.png)


title: Strange behavior with compiling

text: I'm writing my thesis and when I compile it, it has at the moment 81 pages. Now I wanted to add an declaration that it was me writing this thesis and so on. I've add the following code at the beginning, after the front page:               \newpage     \thispagestyle{empty}          \vspace*{\fill}          \LARGE     {\bf Declaration}          \large     Text     My Name     City, date     \newpage      If I compile my thesis with the above code, it has suddenly 97 pages?! I've tried to make an MWE, but I couldn't create one with this "stretching effect". But maybe you recognize why this behavior appears. Thank you for your help!!


title: How to use a particular glyph with no unicode point for hyphens?

text: I’m typesetting some documents with XeLaTeX, using in the OS X distribution of Hoefler Text. Unfortunately, said font has had a nasty bug since forever: its default hyphen character is formatted for capital letters, not minuscule. The font has a proper hyphen glyph (glyph 16, accurately named “hyphen”). It seems1 this glyph is not “linked”2 to any Unicode point, preventing me from using the suggested solution from Ornamental hyphenation character with Xe(La)TeX. How can I use this glyph for hyphenation? Automatic, manual, or both? * * *   1. In Font Book.app, no Unicode point appears in the tooltip for this character.   2. In case there was still any doubt, I have no idea of what a font file looks like.


title: How to use horizontal fill in math mode for LyX

text: I am in math mode and I would like to push text (that justifies a step in an equation) to the end of the page. Usually I would apply "Horizontal Fill"; however, this option is removed when I am in math mode. For example, I would like to push the expression (by (3)) to the margin of the page. ![enter image description here](http://i.stack.imgur.com/RiwQg.png) Here is the source for my chain of equations.               \begin{eqnarray*}     \text{Hdim}K_{0}\left(\theta\right) & \le &                \limsup_{i\to\infty}\frac{\log\#\sigma\left(\alpha\right)}{\log n_{k_{i}+1}-\log            n_{k_{i}}}\\     & = & \limsup_{i\to\infty}\frac{\log a_{k_{i}+1}}{\log n_{k_{i+1}}-\log        n_{k_{i}}}\qquad\left(\text{by }\left(3\right)\right)     \end{eqnarray*}      **MWE** : I would like expressions used to justify steps in a chain of equations/inequalities to appear on the right margin just as (3) does in the following pdf image![enter image description here](http://i.stack.imgur.com/gshjZ.png) Here is the Latex Source for this example.               \begin{lem}     \begin{doublespace}     \textup{Let $\alpha\in J$ and $k=\left|\alpha\right|$.}      \begin{equation}     \#\sigma\left(\alpha\right)\le a_{k+1}     \end{equation}     \end{doublespace}     \end{lem}


title: How can I get pstricks and tikz to work in the same document?

text: I'm trying to get a `\psbarcode` in my document which also uses a `tikzpicture`. I'm using `\usepackage{auto-pst-pdf,pst-barcode}`, but---even though the document compiles and shows a document afterwards---the barcode doesn't show up... Any ideas what I should do _exactly_?


title: \hspace error missing number treated as zero

text: I have two tabular environments. To redefine the space between them, I used `\hspace` in the following ways:   1. `\hspace[*][1cm]`   2. `\hspace[1cm]` Both the commands complain the same error, `Missing number, treated as zero`. What should I do?


title: Comic book or graphic novel style panels in LaTeX

text: I have heard that LaTeX is not necessarily suited to make panels. That even two-column is difficult to get the text to align. I would like to draw stuff like this:               ---------------------------     |________________|________|     |________|________________|      Using rectangles of appropriate dimension. Here is a better example. ![](http://i.stack.imgur.com/GhxLE.png) I was thinking of trying with Tikz and using their nodes... I don't know if that's possible or if there is even easier way. Here is what I tried. The rectangles don't align properly.               \begin{tikzpicture}[xshift=-0.5in]          \node[draw,thick,rectangle,fill=blue!20, text width=3in, align=left] at (0,0){ \begin{minipage} [t][3in]{3in}  $\int$  $\partial$.  \end{minipage}};          \node[draw,thick,rectangle,fill=blue!20, text width=3in, align=left] at (3.25in,0.25in) { \begin{minipage} [t][3in]{2in}  $\int$  $\partial$.  \end{minipage}};          \node[draw,thick,rectangle,fill=blue!20, text width=3in, align=left] at (0,3.25in) { \begin{minipage} [t][3in]{3in}  $\int$  $\partial$.  \end{minipage}};          \node[draw,thick,rectangle,fill=blue!20, text width=3in, align=left] at (3.25in,3.25in) { \begin{minipage} [t][3in]{2in}  $\int$  $\partial$.  \end{minipage}};          \end{tikzpicture}


title: \citep for multiple references separated by text

text: For 2 references, how would I produce textual citations such that > Statement (species A: author1 date1; species B: ref2) I tried `\citep[species A:][]{ref1}[species B:][]{ref2}`, but it doesn't seem to work..


title: Hyperlinks in Index pages

text: I have created a page on `Index`, where page numbers corresponding to index terms are shown. Now, I want to insert hyperlinks to the pages (so that navigation to those pages is easier). Here's my MWE (it is taken from the internet):               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{imakeidx}     \makeindex          \begin{document}          \section{Introduction}     In this example several keywords\index{keywords} will be used      which are important and deserve to appear in the Index\index{Index}.          Terms like generate\index{generate} and some\index{others} will      also show up.           \printindex          \end{document}      Can anybody help me?


title: LaTeX and Mathematica

text: Does anyone any have experience with writing large works (fx. a thesis, BA, ...) in Mathematica and then successfully converting it to LaTeX code of reasonably quality or should I just stick to my trusted **Memoir** class.


title: pgfplots: how to set default number of samples?

text: For most of the functions I have to plot with `\addplot` of `pgfplots`, I have to set `[samples=200]` to make them look smooth enough. I was wondering if there is some option to set the default sample number to a specific value so that I don't have to type it over and over again. I could not find one. Is there such an option?


title: Compilation error (combine class + hyperref package): TeX capacity exceeded, sorry [input stack size=5000]

text: I would like to create a "journal" with several papers, using the `combine` class. In the example below, there are one master file and two articles. Master file:               \documentclass[11pt,a4paper]{combine}     \usepackage[T1]{fontenc}     \usepackage[latin1]{inputenc}     \usepackage[english,french]{babel}     \usepackage[bookmarks=true, bookmarksopen=true, bookmarksnumbered=true, bookmarksopenlevel=\maxdimen, colorlinks=true, urlcolor=blue, linkcolor=red, implicit=false,dvipdfm]{hyperref}          \title{Journal of }     \author{A. N. Editor}          \begin{document}     \maketitle     \tableofcontents     \begin{papers}          \makeatletter     \let\@begindocumenthook\relax     \makeatother          \coltoctitle{An article}     \coltocauthor{A.~N.~Author}     \label{art1}     \import{art1}     \clearpage          \coltoctitle{Another article}     \coltocauthor{A.~N.~Other}     \label{art2}     \import{art2}     \clearpage          \end{papers}          \end{document}      First article:               \documentclass[11pt,a4paper]{article}     \usepackage[T1]{fontenc}     \usepackage[latin1]{inputenc}     \usepackage[english,french]{babel}     \usepackage[bookmarks=true, bookmarksopen=true, bookmarksnumbered=true, bookmarksopenlevel=\maxdimen, colorlinks=true, urlcolor=blue, linkcolor=red, implicit=false, dvipdfm]{hyperref}          \title{An article}     \author{A.~N.~Author}          \begin{document}     \maketitle          Bla bla bla          \end{document}      Second article:               \documentclass[11pt,a4paper]{article}     \usepackage[T1]{fontenc}     \usepackage[latin1]{inputenc}     \usepackage[english,french]{babel}     \usepackage[bookmarks=true, bookmarksopen=true, bookmarksnumbered=true, bookmarksopenlevel=\maxdimen, colorlinks=true, urlcolor=blue, linkcolor=red, implicit=false, dvipdfm]{hyperref}          \title{Another article}     \author{A.~N.~Other}          \begin{document}     \maketitle          Bla bla bla          \end{document}      The compilation is stopped and an error message is given:               ! TeX capacity exceeded, sorry [input stack size=5000].     \clearpage ...Call@BeforeClearDocument \clearpage          \Call@AfterLastShipout     l.17 \end{document}          If you really absolutely need more capacity, you can ask a wizard to enlarge me.      Note: If the `hyperref` package is not activated in the preamble of the master file, the entire document is correctly created. I would like to get a document with hyperlinks (e.g. figures) and bookmarks. Thus, I would like to use `hyperref`. How can I solve this problem?


title: polynom with numerator of 1

text: Okay, so I just found out about the `polynom` package, and needless to say it is great. But I am having some issues with it. I am trying to do `1/(x+1)`, basically to show the power series expansion of it. I thought that possibly using the `stage` parameter would solve this problem, but no luck there. Any suggestions other than typing all of it out by hand?


title: How to make tabularx columns using \whiledo?

text: My question is similar to that discussed in How to programmatically make tabular rows using `\whiledo` ?. The difference is that I want to produce columns rather than rows with using `\whiledo`. Basically I have the code:               \documentclass{article}     \usepackage{tabularx}          \newcounter{index}     \setcounter{index}{3}     \newcommand{\Line}{& 1 & 2 & 3}          \begin{document}     \begin{tabularx}{0.9\textwidth}{|r|*{\value{index}}{X|}}     \hline     Some text \Line \\     \hline     \end{tabularx}     \end{document}      My task is to redefine the command `\Line` such that it would have one argument, value of the counter `index`. It should produce columns with the content 1, 2, 3, ..., n. Here n is value of the counter `index`. I am filling that there exists a solution with `\whiledo` but still my attempts to find it are unsuccessful. I would be appreciate for any help.


title: Using \begin{collect*} in a new \newenviroment

text: I'm not terrible experienced with latex, an I'm trying to wrap up the \begin{collect*} command with some common arguments used into its own enviroment, but I'm having trouble getting the whole thing to work. The issue only shows inside a custom enviroment. A minimal example that shows this example is:               \documentclass[11pt,english]{article}          \usepackage{xparse}     \usepackage{collect}               \DeclareDocumentEnvironment{dup}{ m }       {  \begin{collect*}{#1dupcollection}{}{}{}{}       }       {       \end{collect*}       }          \begin{document}          \begin{dup}{atest}     content...     \end{dup}          \end{document}      The error I'm getting is: File ended while scanning use of \@tempa I have tried looking for a solution but had no luck finding one. I'm sure someone here can assist.


title: Suggestions for Including Confidence Rating in a Citation

text: As I write, edit, and review my document, I'd like to flag how related a claim and the supporting citation are. For example, if a reference `Foo` speculates on a topic (and therefore I give it a low confidence), and reference `Bar` goes in depth and proves another topic (earning high), I would like the (draft) document to reflect this. I'm seeking suggestions how to implement this both from the editing and display sides. * * * For editing, I could picture doing this in a custom cite command:               As shown by \cite{Foo:1942}{lo} and others \citep{Bar:1924}{hi}, blah blah.      Or outside with a custom command (again using {lo,mid,hi} or {1,2,...,10}):               As shown by \cite{Foo:1942}\conf{3} and others \citep{Bar:1924}\conf{10}, blah blah.      * * * For rendering, it could be simple:               As shown by Foo (1942) {lo} and others [Bar, 1924]{hi}, blah blah.      But I could also picture a more involved macro such that things rated `hi`, `9`, or `10` do not display at all, and things are more noticeable as the rating decreases (using red or bold font for `1`, `2`, `3`, or `lo` confidence ratings). The rating could follow the citation (as shown above) if using a separate command, or if using a custom cite command, the rating could influence the display of the citation itself. * * * Any suggestions on existing packages, or implementation suggestions, would be much appreciated. I know enough LaTeX to create a simple `\conf{}` command that implements a basic version, and perhaps that is enough, but I thought I would seek community input on the idea and implementation.


title: Format table of contents with LaTex

text: Is it possible with LaTeX commands, or a LaTeX package, to format the Table Of Contents (TOC) of a book so that the TOC looks like this : * * *               Table des matières          Chapter I - MyChapter1          I.1 MySection1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  1          I.1.1 MySubSection1 (1).          I.2 MySection2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  3          I.2.1 MySubSection1 (3). I.2.2 MySubSection2 (9)I.2.3 MySubSection3 (11).      I.2.4 MySubSection4 (12).               Chapter II - MyChapter2          II.1 MySection1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11          II.1.1 MySubSection1 (12)          II.2 MySection2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12          II.2.1 MySubSection1 (12). II.2.2 MySubSection2 (13).II.2.3 MySub     Section3 (15). II.2.4 MySubSection4 (16). II.2.5 MySubSection5      (17). II.2.6 MySubSection6 (18).II.2.7 MySubSection7 (21). II.2.8      MySubSection8 (27).II.2.9 MySubSection9 (40). II.2.10 MySubSection     10 (45).II.2.11 MySubSection11 (46). II.2.12 MySubSection12 (53).      II.2.13 MySubSection13 (54). II.2.14 MySubSection14 (58).      * * * So that :   * Each chapter title is displayed with the prefix "Chapter " and no reference to the page of the book.   * Each Section is shown with the reference on the right of the toc to the book page and separated with some "...."   * The list of subsection is displayed as ()... (note: numbering issues are already solved)


title: How do I change my margins and spacing to fit the PhD thesis requirements of University XYZ?

text: Even-odd pages, inner edge 2.5cm, outer edge 1.5cm top and bottom 2cm. 1.5 spacing between the lines, double between paragraphs, no indent. A general solution for other requirements would be best.


title: How can I keep less blank space on two sides?

text: > **Possible Duplicate:**   >  How do I change my margins and spacing to fit the PhD thesis requirements > of University XYZ? My Latex file looks like the following:e               \documentclass[11pt,a4paper,oneside]{report}          \usepackage{t1enc}     \usepackage{alltt}     \usepackage{epsfig}     \usepackage[english, finnish, swedish]{babel}     \usepackage{url}     \usepackage{multirow}     \usepackage{eurosym} % To get a euro sign: \euro{}     \usepackage{verbatim}     \usepackage{fancyvrb}     \usepackage{supertabular}     \usepackage{longtable}          \usepackage[breaklinks=true]{hyperref}     \hypersetup{pdfborder = {0 0 0},citecolor=black,filecolor=black,linkcolor=black,urlcolor=black}               \raggedbottom%Do.     \usepackage{listings}     \lstset{language=C}     \setcounter{secnumdepth}{5}     %\setlength{\belowcaptionskip}{6pt}     \usepackage[belowskip=-15pt,aboveskip=0pt]{caption}     \setlength{\intextsep}{10pt plus 2pt minus 2pt}          \parskip 1ex     \parindent 0pt          %All the words with special hyphenation:     \hyphenation{di-gi-taa-li-sta yksi-suun-tai-sta}               \hyphenpenalty=5000     \tolerance=1000          % Command          \begin{document}     \evensidemargin 19mm     \oddsidemargin 19mm     \textwidth 155mm          %%%%%%%%%%     PREAMBLE + DOC SETTINGS ENDS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          % By default, only up to 3rd level headers are numbered (e.g. 1.2.2.)     \setcounter{secnumdepth}{4} % what headers are numbered     \setcounter{tocdepth}{4} %what headers are put in the TOC          %% -------------- ABSTRACT --------------     \cleardoublepage     \phantomsection     \input{abstract_english}               % -------------- ACKNOWLEDGEMENTS & TOC --------------          \input{acknowledgement}               %\clearpage          \newpage     {\fontfamily{phv}\selectfont \tableofcontents}          \newpage     \phantomsection \label{listoftab}     \addcontentsline{toc}{chapter}{List of Tables}     \listoftables          \newpage     \phantomsection \label{listoffig}     \addcontentsline{toc}{chapter}{List of Figures}     \listoffigures     \cleardoublepage          \newpage     \phantomsection \label{listofacronyms}     \addcontentsline{toc}{chapter}{Abbreviations and Acronyms}     \input{acronyms}     \cleardoublepage          %%%%%%%%%%%%%% The main content starts here %%%%%%%%%%%%%%%%%          \parskip1ex     \parindent0mm          \pagenumbering{arabic}     \pagestyle{headings}          \input{chapter1}          \cleardoublepage     \phantomsection     \addcontentsline{toc}{chapter}{Bibliography}     \bibliographystyle{plain}          \bibliography{mySources}          \label{pages-text}     \end{document}      Please forgive me if it looks a little more complicated that it should. It looks like this because its a common template for Masters Thesis. Now the output looks like: ![enter image description here](http://i.stack.imgur.com/aXssf.jpg) Now u should see that, there are too much space on both sides of the text. How may I reduce it and make the text wider? Bye.


title: pgfplots plots function not correct

text: This code               \documentclass{article}          \usepackage{pgfplots}     \pgfplotsset{compat=newest}          \begin{document}            \begin{tikzpicture}         \begin{axis}           \addplot [domain=15:30, samples=1000] {4*65*sin(0.25*asin(x/65))/x};         \end{axis}       \end{tikzpicture}          \end{document}      plots a heavily oscillating function. If I plot this function with another plotter (Mathematica, online plotters, ...) I get a really smooth function that is the non-oscillating mean of the function that `pgfplots` gives. I know that `pgfplots` uses degrees instead of radians, but `asin()` should give degrees then, I assume (so that `rad()` is not neccessary)? Anyways, I already tried to put `rad()` in all possible combinations, it often changed the output, but it never gave the correct result. Changing the samples to 1000 gave no better result either (it started oscillating even faster). Is this a bug of pgfplots? Are there any other options to try/change here? Result with TikZ version 2.10 ( _constant interpolation_ ): ![enter image description here](http://i.stack.imgur.com/CD69A.png) Result with TikZ CVS version ≥ 2012-10-11 ( _linear interpolation_ ): ![enter image description here](http://i.stack.imgur.com/QGtKn.png)


title: Shrink the entire beamer pdf by leaving a 1/2 inch margin on all four edges of each slide, would like to print each slide without notes

text: How do you shrink everything in a beamer such that it leaves 1/2 inch border around each slide? I would like to maximize its size and be able to print everything on each page, including the border. Thanks in advance!               \documentclass{beamer}     \setbeamertemplate{navigation symbols}{}          \usepackage{beamerthemeshadow}     \begin{document}     \title{Beamer Class well nice}       \author{Author's name here}     \date{\today}           \begin{frame}     \titlepage     \end{frame}               \section{Section no. 2}      \subsection{Lists I}     \begin{frame}\frametitle{unnumbered lists}     \begin{itemize}     \item Introduction to  \LaTeX       \item Course 2      \item Termpapers and presentations with \LaTeX      \item Beamer class     \end{itemize}      \end{frame}                    \subsection{Lists II}     \begin{frame}\frametitle{numbered lists}     \begin{enumerate}     \item Introduction to  \LaTeX       \item Course 2      \item Termpapers and presentations with \LaTeX      \item Beamer class     \end{enumerate}     \end{frame}               \end{document}       EDIT: I kept googling and have found what I've been looking for. Modify the lines below to shrink your pdf file. If someone posts this as an answer, I will accept.               \usepackage{pgfpages}          \pgfpagesuselayout{resize to}[letterpaper,border shrink=5mm,landscape]


title: Uncertain about dpi in LaTeX

text: Im a bit new to latex, I thought when adding images they were scaled according to some universal default dpi--today I learned this isn't really the case. So I have a few questions regarding images and dpi: Is there a default dpi value for document classes or for file types? Does latex's 'dpi' resolution setting affect anything if no images are present? Does it matter if images have different dpi settings? (is there some convention or something) Shouldn't it be called ppi instead of dpi?