title: Create longer arrows

text: I currently use two relation symbols as shown below. However, as I need to put in quite a bit of information above and, in the first case, also below the arrow, I'd like to have longer arrows. In my setting the example below already shows the longest possible items I need to put above/below. It would be nice to have `\tau\tau'` on the line of the arrow, with the arrow head strictly to the right. A bit more line extending to the left would also be nice. One idea is to horizontally stretch the arrow symbol. However, I guess this would also stretch the arrow head. Another idea might be to combine several symbols - as creating a long line should be doable. However, I am not experienced with this and would like to read your input on this. ![arrows](http://i.stack.imgur.com/9K06p.png)


title: Update references each time LaTeX compiles document

text: When I use my TeXnicCenter and hit the compile button I want that all references are updated ... So I don't have to compile 3 times till all those references update. Because with a bunch of pictures and 22 pages it takes my pc almost a minute each time. So it would be perfect to do all the stuff except creating pdf but a dvi 3 times and than create the pdf. Is there a way to do that? I bet most of you LaTeX users are annoyed by that too.


title: Access to the current siunitx parameter settings

text: Is there a way to access the parameter settings of the `siunitx` package? In particular, I would like to create a command that behaves differently depending on whether `parse-numbers=false` was set. The reason behind this is the following: I use `siunitx` to align and round numerical values in tables. I further highlight best values with `\bfseries`. However, compilation with all features active takes very long. Therefore, I deactivate most of them with `parse-numbers=false` for drafting purposes. In this mode, all numbers are set in math mode, and thus any `\bfseries` causes an error. Currently I use my own bf command that I set to an empty command manually, whenever I switch off the number parsing in siunitx, but this is not an elegant solution.


title: How to resolve the error: "Missing { inserted." inside an algorithm2e

text: When I use ShareLatex or MikTex to compile the following LaTeX code:               \begin{algorithm}         \uIf{$|F_d(D'(C_{\hat{i}})) - F_d(D(C_{\hat{i}}))| > \sigma$ OR numSeqNoise > $\mu$}{           SplitCluster($C_j$)\;         }          \uElseIf{$|F_d(D'(C_{\hat{i}})) - F_d(D(C_{\hat{i}}))| > \tau$}{           numSeqNoise++\;         }          \uElseIf{$j \neq \hat{i}$}{             Remove $S_{R}$ from cluster $C_j$\;             Place $S_{R}$ in cluster $C_\hat{i}$\;          }\uElse{             Replace $S_{R}$ in cluster $C_\hat{i}$\;          }     \end{algorithm}      it compiles normally, but when I try to use WriteLatex, then the following error always happens:               Missing { inserted.     <to be read again>                 \gdef     l.485          }     \uElse{      The line where the error is pointed out is `}\uElse{`. Somebody can help me? ;)


title: Set up tengwarscript

text: Could anyone give me a brief explanation of how to install the tengwarscript package? I understand it needs special fonts installed separately, but I don't know where to put them and how... I'm using MikTeX on Windows (yes, blame me). Thanks in advance!


title: How to provide alternative grayscale images in pdf?

text: Is it possible to provide different versions of an image/figure, and have the pdf viewer choose which one is the best at viewing time? I would like to have a color image on screen and on color printers, and a grayscale image on a black and white printer.


title: Error using package bashful

text: Even in the simplest MWE executed on a linux distribution, the command `latex -shell-escape test.tex` returns me the error message:               Use of \bashIII doesn't match its definition.      MWE:               \documentclass{article}     \usepackage{bashful}          \begin{document}     \bash     ls     \END     \end{document}      Maybe it is too short and simple but I like to apply to it lateron the script:               \documentclass[a4paper]{article}     \usepackage{pdfpages}     \usepackage{bashful}          \begin{filecontents}{temp}         \documentclass[a4paper]{article}         \usepackage{pdfpages}         \begin{document}         \includepdf{page1.pdf}         \end{document}     \end{filecontents}          \begin{document}          \bash     pdflatex temp.tex;     \END          \includepdf[pages=-,nup=2x2]{temp.pdf}     \end{document}


title: TeXStudio and SVN + Linux

text: I cannot in any way understand how the heck I'm supposed to ->connect<\- to a SVN server through TeXStudio! I've googled guides for two hours and can't find a simple answer to how to connect to an external SVN server. I want to connect to a directory on a webserver, download a working directory and start working with TeXStudio. Is there any simple guide on how to accomplish this?


title: Have almost managed to get my TOC the way I want, but need help making it 100% perfect

text: If you compile my current TOC code:               \documentclass[a4paper,10pt]{book}          \usepackage{lipsum,kantlipsum}     \usepackage[dotinlabels]{titletoc}          \contentsmargin{0pt}     \renewcommand\contentspage{\thecontentspage}          \titlecontents{chapter}[0pc]     {\addvspace{0.8pc}\large\scshape}     {\chaptername\ \thecontentslabel: }     {}     {\normalsize\titlerule*[6pt]{.}\contentspage}     [\addvspace{3pt}]          \newlength\widest     \settowidth\widest{99.99.}          \titlecontents{section}[1.025pc]     {\addvspace{0pc}}     {\parbox[t]{\widest}{\hfill\thecontentslabel.}\hspace{3mm}}     {}     {\normalsize\titlerule*[6pt]{.}\contentspage}     [\addvspace{0pt}]          \renewcommand\thesection{\arabic{section}}          \begin{document}     \tableofcontents     \chapter{Chapter 1}\section{Section 1}\kant[1-8]     \chapter{Chapter 2}\section{Section 2}\kant[1-60]     \chapter{Chapter 3}\section{Section 3}     \end{document}      You will see a TOC that looks like this: ![TOC](http://i.stack.imgur.com/AV97H.png) I'm almost perfectly happy with this, but there are two issues that remain:   1. The chapter dots are not exactly 100% aligned with the section dots. More precisely, each dot after a chapter name does not have the exact same horizontal position as the dot below it after the section name.   2. The page number after the chapter does not look exactly like the one after the section. It's also not positioned same, horizontally. I want to make the chapter one look exactly like the section one (without changing the font size of the chapter heading). Can you help me with this? In short: All dots and page numbers look alike and align properly, whether they be for a chapter or a section.


title: How to place section titles in the header, but not in the document?

text: I need to place some `\part` titles within my document, but make them invisible in the text, and only appear within the table of contents and headers. With this code, the `\part` titles are not found anywhere:               \setuphead[part][placehead=no, page=no, number=no]     \setupheadertexts[{\getmarking[part]}]     \starttext         \part{Birds of South America}     \stoptext      By changing `\placehead` to equal "yes", the title is placed in the header and in the document:               \setuphead[part][placehead=yes, page=no, number=no]     \setupheadertexts[{\getmarking[part]}]     \starttext         \part{Birds of South America}     \stoptext      How can I make `\part` invisible in the document, but visible in the table of contents and headers?


title: How do I use the target caption of a \hypertarget as the link caption in a \hyperlink?

text: I'm building a software requirements document and using my own set of counters to generate unique requirement identifiers. I'm also grouping different requirements into longtables, e.g.               \begin{longtable}{l p{4in}}     F\FormatCntr{ModuleCntr}-\FormatCntr{ComponentCntr} & Some Requirements Category\stepcounter{RequirementCntr}\\     \hline     F\FormatCntr{ModuleCntr}-\FormatCntr{ComponentCntr}.\FormatCntr{RequirementCntr} & Specific software requirement     \end{longtable}      This will generate something like: > F00-01 Some Requirements > > F00-01-01 Specific software requirement. Now at some point later in the text, I want to cross-reference back to that specific requirement. I can use `\hypertarget` and `\hyperlink` and say something like "See this requirement" and have "this" link back to the referenced requirement but it would be much more elegant to say "See requirement F00-01-01" but "F00-01-01" must be linked automatically due to the dynamic nature of the counters.


title: Reproducing Foreign Affairs Magazine's Style

text: I wanted to reproduce (or get something close to) the style the Foreign Affairs magazine uses (link to a sample article below) using fontspec and XeLaTeX. Right off the bat I don't know what their font size, indent and line spacing are, any idea how one can get these numbers from a .pdf? Link to pdf file of one of their articles: http://pagines.uab.cat/jbacaria/sites/pagines.uab.cat.jbacaria/files/16_Schwab_pp104_117_Blues.pdf Their font size is definitely higher than 12pt but I don't know what it exactly can be, I do like the bracketed page numbers too but then again I don't know how to configure that.


title: Problem/solution environment

text: I'm writing a textbook and an accompanying solution manual. In the book, I have a series of exercises at the end of each chapter. As the number of chapters and exercises grows, I'm getting to the point where it's easy to get the ordering of the exercises and solutions mixed up. So what I'm looking for is a simple but effective way to always have them in a consistent order. What I thought about, but don't know to implement (yet), is that each exercise and the corresponding solution would be located in one tex file. I could then `\input` that file in the book and the manual in the appropriate location, and (through an as of yet undetermined mechanism), only the exercise or the solution would be input. I also thought that I could create a separate "master" tex file for each chapter that in turn inputs the exercise/solution tex files. Then I simply input that "master" tex file in the book and the manual. In this way, it would be impossible to get the ordering mixed up. In UNIX, I guess one way of accomplishing this would be true environment variables, but I don't know whether this is possible in LaTeX and whether this would be sensible. Thanks in advance for criticisms, ideas, feedback.


title: How can I create a linebreak between the chapter name/number and chapter title in the ToC?

text: I'm using the `Memoir` class and I'm trying to format the table of contents for a document I'm working on. Currently, the ToC arranges entries in the following way:               <<chapter name>> <<chapter number>> <<chapter title>>      E.g.               Chapter 1 Introduction     Appendix A Specifications      I'd prefer if chapter entries were formatted like this:               <<chapter name>> <<chapter number>>     <<chapter title>>      E.g.               Chapter 1     Introduction          Appendix A     Specifications      I've looked through the Memoir manual but haven't managed to find anything that's proved helpful yet. **EDIT** Added MWE and image:               \documentclass[openany]{memoir}     \usepackage{memsty}          \renewcommand*{\cftchaptername}{\chaptername\space}     \renewcommand*{\cftappendixname}{Appendix\space}          \begin{document}     \tableofcontents          \chapter{Foo}          \section{Bar}          \chapter{Baz}          \appendix     \chapter{Misc}          \end{document}      ![](http://i.stack.imgur.com/nqaiS.png)


title: How do I ignore lines to points with y=0 using pst-plot and a logarithmic y-scale?

text: I am using pst-plot to visualize data sets in linear x and logarithmic y scale. The data set should be plotted by connecting all points with a solid line style. This all works fine by using `\pstScalePoints(1,1){}{log}` as long as there is no point in the data set with (x_i, y_i=0). The behavior I want to achieve is that such points should not be plotted at all and the line connecting all points is then disconnected at that point (that is, there are lines connecting points at x_1 up to x_(i-1), no line from x_(i-1) to x_(i+1), and again lines from x_(i+1) to x_n). This is for example the default behavior in MATLAB. By googling I found the following way to put points with y=0 outside the figure but the connecting lines are still shown: `\pstScalePoints(1,1){}{dup 0 eq { pop -1.e30 }{ log } ifelse}`. Thanks for you help! Requested minimal example:               \documentclass{article}     \pagestyle{empty}             \usepackage{pstricks}     \usepackage{pst-plot}     \usepackage{pstricks-add}          \begin{document}          \begin{pspicture}[showgrid=false](0,0)(10,10)          \savedata{\mydata}[{{0,0.01},{1, 0.02},{2, 0.00},{3, 0.02},{4, 0.02}}]         \pstScalePoints(1,1){}{dup 0 eq { pop -1.e30 }{ log } ifelse}         %\pstScalePoints(1,1){}{ dup 0 eq { pop pop }{ log } ifelse}         \begin{psgraph}(0,-3)(4,0){4.0cm}{4.0cm}%             \listplot[linestyle=solid, showpoints=false]{\mydata}         \end{psgraph}%     \end{pspicture}          \end{document}


title: Force no breaks after manual biographies in book doc class

text: After successfully applying tips on how to insert multiple manual bibliographies I have a new problem: each bibliography begins on a new page. This does not look good, and I tried supressing it with `\nopagebreak` (does not work). After some browsing I discovered that `book` class handles `thebibliography` by inserting new chapter, but I don't know how to modify the behaviour. So, my question is: how to stop inserting new page/heading after each `thebibliography` item in a `book` document class?


title: Set SC font for Dialogue Package?

text: Is there a way to set the small caps font for use in the Dialogue package? If I use the tgtermes font everything works fine; unfortunately I'm working in another language so I need an Open Type font and while I have a small caps font I'd like to use (Alegreya SC), even though I've set the main font as Alegreya I don't get small caps under the Dialogue package. MWE:               \documentclass{book}     \usepackage{dialogue}     \usepackage[spanish]{babel}     \usepackage{fontspec}     \usepackage{xunicode}     \usepackage{xltxtra}     \defaultfontfeatures{Mapping=tex-text}     \setromanfont[Mapping=tex-text]{Alegreya}          %\setmainfont{Alegreya}[SmallCapsFont={Alegreya SC}     \linespread{1.2}     \begin{document}     \begin{dialogue}          \speak{Menón} Sí, Sócrates.     \speak{Sócrates} Ya te dije.           \end{dialogue}


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

text: Is it possible to setup AUCTeX so that it loads the spelling dictionary in the same language as the language used by `babel`? For example, is it possible to load the Danish ispell dictionary when a document includes `\usepackage[danish]{babel}`?


title: movie15.sty \includemovie beamer: show the movie at the same time as an item in an item list

text: Please someone help. I spent 2 days on this problem: I am trying to show the movie at the same time as an item in an item list. How can I show the movie with the first item? If I had an image instead of a movie I would write it like this:               \includegraphics<1>[width=\textwidth]{img1.jpg}      But for a movie it is not working. It shows the movie after all the items in the list are shown.               \includemovie<1>[poster]{3.25cm}{3.25cm}{movie1.jpg}      This doesn't work neither:               \visible<2->{\includemovie[poster]{3.25cm}{3.25cm}{movie1.jpg}}      Full working code snipet (if you have the images in your working directory):               \begin{frame}     \frametitle{Overlay Specification}     \begin{columns}     \begin{column}{5cm}     \begin{itemize}     \item<1-> Figure 1     \item<2-> Figure 2     \item<3-> Figure 3     \end{itemize}     \vspace{3cm}     \end{column}     \begin{column}{5cm}     \includegraphics<1>[width=\textwidth]{img1.jpg}     \includegraphics<2>[width=\textwidth]{img2.jpg}     \includegraphics<3>[width=\textwidth]{img3.jpg}     \end{column}     \end{columns}     \end{frame}      But now I replace the first figure with a movie and it is not working anymore?               \begin{frame}     \frametitle{Overlay Specification}     \begin{columns}     \begin{column}{5cm}     \begin{itemize}     \item<1-> Figure 1     \item<2-> Figure 2     \item<3-> Figure 3     \end{itemize}     \vspace{3cm}     \end{column}     \begin{column}{5cm}     \leavevmode     \visible<2->{\includemovie[poster]{3.25cm}{3.25cm}{images/predoc_oral/bullet_lg.mpg}}     \includegraphics<2>[width=\textwidth]{img2.jpg}     \includegraphics<3>[width=\textwidth]{img3.jpg}     \end{column}     \end{columns}     \end{frame}      (I posted the same question here but the webpage couldn't print the chevrons character, making my question not understandable.)


title: Using \pgfplotstablesort with a dynamically named macro

text: I have a moderately large number of data files that I need to read in with `\pgfplotstablesort`, and in each case the data read in should be assigned to a macro for later use in a plot. The filenames follow a predictable pattern so I would like to make a macro that reads the data and assigns it to a macro whose name is related to the filename. So far I've been working with this:               \def\readdata#1#2#3#4{      \def\filenamepattern##1{#1}      \pgfplotstablesort{\csname #4himu\endcsname}{\filenamepattern{#3}}      \pgfplotstablesort{\csname #4lomu\endcsname}{\filenamepattern{#2}}      % other stuff     }     \readdata{testfile#1.dat}{10}{50}{testdata}      This doesn't compile, of course, because `\pgfplotstablesort` can't handle the `\csname` in the first argument. PDFLaTeX spits out lots of errors, starting with `Missing \begin{document}`, and never terminates. I know that's the root of the problem because if I put in that macro name manually,               \def\readdata#1#2#3#4{      \def\filenamepattern##1{#1}      \pgfplotstablesort{\testdatahimu}{\filenamepattern{#3}}      \pgfplotstablesort{\testdatalomu}{\filenamepattern{#2}}      % other stuff     }      it works fine. So now I try an `\expandafter`, thinking that it will cause `\csname...\endcsname` to be expanded before `\pgfplotstablesort`:               \def\readdata#1#2#3#4{      \def\filenamepattern##1{#1}      \expandafter\pgfplotstablesort{\csname #4himu\endcsname}{\filenamepattern{#3}}      \expandafter\pgfplotstablesort{\csname #4lomu\endcsname}{\filenamepattern{#2}}      % other stuff     }      but that doesn't make any change. I guess this has something to do with the definition of `\pgfplotstablesort`, perhaps how it can take an optional argument, but I get lost trying to figure it out. Can anyone show me if there's some way to get what I'm trying to do to work, and preferably explain why the `\expandafter` I tried didn't make it happen? I would like to use this as an opportunity to better understand macro expansion, in addition to actually being able to load my data files for plotting. * * * Complete MWE:               \documentclass{article}     \usepackage{filecontents,pgfplots,pgfplotstable}     \begin{filecontents*}{testfile10.dat}     pT Y mu2 lomean lostddev loerrbound nlomean nlostddev nloerrbound     0.35 2.2 10 2.8920929e+00 0 1.7555822e-04 1.1823986e+00 1.6578794e-01 6.7619291e-02     \end{filecontents*}     \begin{filecontents*}{testfile50.dat}     pT Y mu2 lomean lostddev loerrbound nlomean nlostddev nloerrbound     0.35 2.2 10 2.8920929e+00 0 1.7555822e-04 1.1823986e+00 1.6578794e-01 6.7619291e-02     \end{filecontents*}          \def\readdata#1#2#3#4{      \def\filenamepattern##1{#1}      \pgfplotstablesort{\csname #4himu\endcsname}{\filenamepattern{#3}}      \pgfplotstablesort{\csname #4lomu\endcsname}{\filenamepattern{#2}}      % other stuff     }     \readdata{testfile#1.dat}{10}{50}{testdata}     \begin{document}       \begin{tikzpicture}       \begin{axis}[ymode=log]        \addplot table[x=pT,y=lomean] {\testdatahimu};        \addplot table[x=pT,y=lomean] {\testdatalomu};       \end{axis}      \end{tikzpicture}     \end{document}


title: vertical week list in TikZ calendar

text: I read about `week list` in the PGF/TikZ manual, but I couldn't find an example that arranges the days of the week vertically:               June 1997          M   2  9 16 23 30     T   3 10 17 24     W   4 11 18 25     T   5 12 19 26     F   6 13 20 27     S   7 14 21 28     S 1 8 15 22 29      Could you help me with an example of how to create a week list arrangement like this?


title: Multiple indexes in LaTeX

text: I am familiar with the creation of multiple indexes using the `multind` package. One of the required steps is to run the `makeindex` executable for each generated `.idx` file. A typical solution would be do do something along the following lines (this is `unix`; `windows` users look the other way):               for file in *.idx; do         makeindex ${file}     done      A disadvantage of this approach is that it may process too many `.idx` files. Is there an easy way to determine which `.idx` files are really required?


title: LaTeX and bibliography management tools

text: For my writing I am using MS Word and Zotero as bibliography manager. But now I think I am going to move to LaTeX on a Linux box. I just toyed with Texmaker to generate my documents and it works fine so far. But I do not know how to manage my citations. I found BibDesk and nice integration with TexMate, but it's for Mac. Are there any similar tools which I can use in Ubuntu ?


title: Question about running bibtex in Texniccenter?

text: I'm trying to use bibtex in Texniccenter, using the Bibtex in 60 seconds found here: http://www.hep.man.ac.uk/u/jenny/jcwdocs/latex/bibtexbasics.html Step 5 says: When processing the file, you need to do: latex filename, bibtex filename, latex filename, latex filename. I'm using Texniccenter, but I don't know what this step means or how to perform it. Under the Build>Define output profiles... tab I have "Do not use Bibtex in this profile" box unchecked. Do I need to change other things?


title: Why is \newcount declared \outer?

text: I'm a user primarily of Plain TeX. Lately I get annoyed about the `\outer` nature of `\newcount`, especially when I write macros which require temporary internal variables, variables which really need not be global. I'm aware that I can technically use `\count0` through `\count9` as scratch variables, but I got scared away from doing so when _The TeXbook_ mentioned that those are also used as page counters, and how using them when a page shipout gets triggered can mess up page numbering. So, my question is this: why is `\newcount` declared `\outer`? I've check that names created with `\countdef` can indeed be locally scoped within groups, and I know that changes to `\count` registers are likewise locally scoped. So why was it that Knuth chose to tag `\newcount` with the `\outer` restriction? And would there be anything preventing me from defining my own `\countdef`-based allocator, specifically one that would allow for group-local names.


title: How to make bold and italic symbol inside an equation?

text: My problem is to make bold and italic symbol `\widehat{abc}`. According to Online LaTeX Equation Editor I should use `\boldsymbol`, but it seems not to work in TeXMaker. Also `\mathit{\mathbf{\widehat{x}}}` doesn't give expected result.


title: tikz: Better raised text effect

text: If you look carefully at the raised text in this image, you can see that it has two drop shadows: as well as the black one to the southeast of the text, there is a white one to the northwest. I know how to insert one drop shadow in tikz using e.g.               drop shadow={shadow xshift=-0.5mm,shadow yshift=-0.5mm,black}      Is there any easy way to add two shadows of the kind specified? (NB. Being able to specify the 'light direction' via `shadow xshift`,`shadow yshift` is very useful.) ![enter image description here](http://i.stack.imgur.com/HD7IJ.png)


title: Semi-transparent Tikz nodes

text: Trying to reproduce the semi-transparent fill from the answer to my previous question http://tex.stackexchange.com/a/188453/37570 I cannot get it to work. Tried adding `backgrounds` library inside `ifpdf` and outside of it, but the fill is still solid with no transparency.               \documentclass[border=10pt]{standalone}     \usepackage{adjustbox}          \ifpdf         \usepackage{forest}         \usetikzlibrary{backgrounds}     \else         \usepackage{pst-barcode}     \fi          \usepackage[crop=off]{auto-pst-pdf}               \begin{document}          \begin{tabular}{l r}     &     \begin{adjustbox}{valign=t}     \begin{pspicture}(1.02in,1.02in)         \psbarcode{http://localhost/Chart}{version=5}{qrcode}     \end{pspicture}     \end{adjustbox} \\      & \\ % extra row for vertical separation     \multicolumn{2}{c}{     \begin{forest}      for tree={         draw=black, align=center, l sep=4ex, parent anchor=south, child anchor=north,         node options={font=\scriptsize, minimum width=14em, minimum height=10ex, rounded corners=1ex},         edge path={             \noexpand\path[\forestoption{edge}]             (!u.parent anchor) -- +(0,-2ex) -| (.child anchor)\forestoption{edge label};         },         where n children=0{             child anchor=west,             edge path={                 \noexpand\path[\forestoption{edge}]                 ([xshift=-6em]!u.parent anchor) |- (.child anchor)\forestoption{edge label};             },             for parent={                 parent anchor=south, l sep=-12em, grow'=east, calign=child edge%, draw=blue                      } %,draw=red         }{}, base=b,         fill=white!25,         fill opacity=.75,     }     [\textbf{Aaaaaa  Aaaaa}\\     Aa. Aaaaaaaaaaaa \\aaaaaaaaaaaaaaaa\\Aaaaaaaaaaa      ,name=10003863         [\textbf{Bbbbbb Bbbbbbb}\\     Bbbbbb Bbbbbbbbb Bbbbbbbb\\Bbbbbbbbbbb      ,name=10004145             [\textbf{Cc Cccccc}\\     Ccccccccc Ccccccccccccc Ccccccc\\Ccccccccccc      ,name=10003046,node options={dashed}     [,phantom, minimum height=1ex]         [\textbf{Dddddd Ddddddd}\\     Ddddddddddddd Dddddddddd\\Ddddddddddd      ,name=10004047,node options={dashed}]     ]         [\textbf{Eeeeee Eeeee}\\     Eeeeeeeee Eeeeeeeeeee\\Eeeeeeeeeee      ,name=10004057,node options={dashed}[,phantom]]     ]]      %     \tikzset{every node/.style={font=\footnotesize, align=center, draw=black!20, minimum width=14em, minimum height=10ex, rounded corners=1ex}}     \begin{scope}[on background layer]     \draw[->,dashed] (10004047) to (10004145);     \end{scope}     \node[anchor=south,draw=black](10011144) at ([xshift=16em]10004145 |- 0,-18ex) {     \textbf{Fffffff Fffff}\\     Ffffffffff\\fff fff\\Ffffff Fffffffffffffff     }[];     \begin{scope}[on background layer]     \draw[->,dashed] (10004145) to (10011144);     \end{scope}     \begin{scope}[on background layer]     \draw[->,dashed] (10003046) to (10003863);     \end{scope}     \begin{scope}[on background layer]     \draw[->,dashed] (10004057) to (10003863);     \end{scope}      %     \end{forest}     } \\     \end{tabular}     \end{document}      ![enter image description here](http://i.stack.imgur.com/9glau.jpg)


title: Reducing textheight and increasing footskip does not work on first page after front page

text: I want to add a graphic to the bottom of all my pages apart from the front page. I am reducing textheight and increasing footskip using \addtolength{} but it does not have any affect on the first page (after front page). Here is my MWE:               \documentclass{article}          \usepackage[demo]{graphicx}     \usepackage{fontspec}     \usepackage{eso-pic}     \usepackage{lipsum} % just for the example     \usepackage[margin=2cm]{geometry}          \title{Lorem ipsum}          \begin{document}     \maketitle          \clearpage          \makeatletter     \addtolength{\textheight}{-68mm}     \addtolength{\footskip}{68mm}          \AddToShipoutPicture{                 \setlength{\@tempdimb}{.5\paperwidth}                 \setlength{\@tempdimc}{.21\paperheight}                 \setlength{\unitlength}{1pt}                 \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){            \makebox(0,0) {                 \setlength{\fboxsep}{2mm}                 \fbox{                    \includegraphics{Some-logo.jpg}                 }            }        }     }          \begin{center}     {\huge\sc chaptertitle}     \vspace{8mm}     \end{center}           \lipsum     \lipsum     \lipsum     \end{document}      My LaTeX knowledge is still minimal. Any help or advice is much appreciated!


title: Follow up Question: Label and Reference Equation inside Enumerate Environment

text: I have seen the answers to How can I center text/math inside a list environment. The accepted solution there, however, does not allow me to reference displayed equations. Another solution given there is a "crude" solution, requiring me to insert a command in each displayed equation. Is there a way to modify the accepted solution to the above question so that displayed equations can be labelled and then referenced? (My MWE is similar to that presented in answer to linked Q)


title: ConTeXt: Prevent Reference Name Clashes in Floating Objects of Different Types

text: I find it very annoying that ConTeXt uses the same namespace for references of floating objects. In other words, if you give the same reference to a figure and a table, then you'd always refer to the one which was defined first, i.e. obvious clash of names. This is stupid from my point of view. On ConTeXt Wiki I've seen workarounds like `\figure[figure:Your Reference]`, i.e. they propose to spam `figure:`, `table:` prefixes on all of your references, what I find quite annoying once again. Here is what I want to do:               \let\corefigure\figure          \def     \figure{       \dosingleargument       \dofigure     }          \def     \dofigure[#1]{       \corefigure[figure:#1]     }      and               \let\corestartplacefigure\startplacefigure          \def     \startplacefigure{       \dotripleargument       \dostartplacefigure     }          \def     \dostartplacefigure[#1][#2][#3]{       # TODO: Somehow insert "figure:" into #1 after "reference="...       \corestartplacefigure[#1][#2][#3]     }      The same would go for table. So how to cleverly fulfill the `TODO` thingy? Looking for suggestions and clarifications. Thanks.


title: Specifying the depth of a binary tree on the side

text: I'm trying to draw a tree, and I want to specify its depth along the side with a double headed arrow with the depth written on the arrow. Here is what I have so far:               \begin{tikzpicture}[<-, >=stealth', auto, semithick, level/.style={sibling distance=60mm/#1}]     %\node  {} child {     \node [circle,draw] (z){$\land$}       child {node [circle,draw] (a) {$\lor$}         child {node [circle,draw] (b) {$\land$}           child {node {$\vdots$}             child {node [rectangle,draw] (d) {$x_1$}}             child {node [rectangle,draw] (e) {$x_2$}}           }            child {node {$\vdots$}}         }         child {node [circle,draw] (g) {$\land$}           child {node {$\vdots$}}           child {node {$\vdots$}}         }       }       child {node [circle,draw] (j) {$\lor$}         child {node [circle,draw] (k) {$\land$}           child {node {$\vdots$}}           child {node {$\vdots$}}         }       child {node [circle,draw] (l) {$\land$}         child {node {$\vdots$}}         child {node (c){$\vdots$}           child {node [rectangle,draw] (o) {$x_{n-1}$}}           child {node [rectangle,draw] (p) {$x_n$}             %child [grow=right] {node (q) {$=$} edge from parent[draw=none]               %child [grow=right] {node (q) {$O_{k = \lg n}(n)$} edge from parent[draw=none]                 %child [grow=up] {node (r) {$\vdots$} edge from parent[draw=none]                  % child [grow=up] {node (s) {$O_2(n)$} edge from parent[draw=none]                    % child [grow=up] {node (t) {$O_1(n)$} edge from parent[draw=none]                     %  child [grow=up] {node (u) {$O_0(n)$} edge from parent[draw=none]}                    % }                  % }                 %}                % child [grow=down] {node (v) {$O(n \cdot \lg n)$}edge from parent[draw=none]}               %}             %}           }          }       }     };          \path (o) -- (e) node (x) [midway] {$\cdots$}       child [grow=down] {         node (y) {}%{$O\left(\displaystyle\sum_{i = 0}^k 2^i \cdot \frac{n}{2^i}\right)$}         edge from parent[draw=none]       };       node (w) {};%[midway] {$O\left(\displaystyle\sum_{i = 0}^k n\right) = O(k \cdot n)$};     % \path (q) -- (v) node [midway] {=};     % \path (e) -- (x) node [midway] {+};     % \path (o) -- (x) node [midway] {+};     % \path (y) -- (w) node [midway] {$=$};     % \path (v) -- (w) node [midway] {$\Leftrightarrow$};     %\path (r) -- (c) node [midway] {$\cdots$};     \end{tikzpicture}     \end{preview}      I'm trying to modify the code from here. How can I fix this problem? (Unrelated: Is there a way I can have an arrow coming out of the root node as well?)


title: TikZ: using the -latex arrow head in decorations.markings

text: Is there a way to get `-latex` arrow heads to work when using `decorations.markings`?               \documentclass[convert = false, border = 1cm]{standalone}     \usepackage{tikz}     \usetikzlibrary{calc, arrows, decorations.markings}     \begin{document}     \begin{tikzpicture}[decoration = {markings,         mark = at position 0.5 with {\arrow{-latex}}       }       ]       \draw[postaction = decorate] (0, 0) circle [radius = 2cm];     \end{tikzpicture}     \end{document}      I have also tried `with {-latex}` but that doesn't work either.


title: Can I amend the preamble from outside the preamble?

text: I am writing a document (`mydoc.tex`) that will include a section as a separate document (`mysection.tex`) using `\input{mysection.tex}`. If I want to include something in the preamble (specifically `\DeclareMathOperator{}{}`), must this be done in the preamble of `mydoc.tex` or can I include it in `mysection.tex`?


title: Could icomma conflict with siunitx?

text: I'm also having the problem with the space after a comma in decimal numbers (like discussed here: German language: use of comma in numbers) and I wonder if I can use both the `icomma`-package (which seems to be quite old) AND `siunitx` together. I'm not sure if that makes sense, but I have a large writing project (Ph. D. thesis) which already contains a lot of numbers. With `siunitx` I'd have to use the `\num[]{}` command for each one of them and I would not dare to replace something like that automatically, so I'd have to check each single number - that's impossible at the moment. So I'd like to at least have an automated solution for the numbers used in math mode and that should be `icomma` \- right? My only concern is, if both packages could create a conflict - is that possible?


title: Multiple alignments from top of page on a single page

text: I am trying to specify the location of text from the top of a page. I know how to set the margins for the main text and can set the top, bottom, left, and right margins for certain pages using the `\newgeometry` command, but I need to positing the title 2.5 inches from the top of the page and a horizontal line 4.5 inches from the top of the page. I use the `\vspace*{\fill}` command to position the copyright at the bottom of the page. My question is how do I position text in the middle of a page a specified distance from the top of a page without using `\vspace`. Here are the actual distances from the top of the page I am trying to achieve: ![enter image description here](http://i.stack.imgur.com/68eNC.png)


title: fancyhdr with image and flowing text

text: I want to add a flipbook to my document. Everything seems to work (adding the write pictures. The only thing I'm looking for is making the text flow on every page around the image inserted with `fancyfoot`. Here's what I got.               \documentclass[twoside]{report}          \usepackage{fancyhdr}     \newcounter{flipbook_counter}     \fancyfoot[RO]{\setlength{\unitlength}{1mm}     \begin{picture}(0,-10)     \put(-24,-14){\includegraphics[width=5cm]{./flipbook/snia_frame\arabic{flipbook_counter}.png}}     \end{picture}     \stepcounter{flipbook_counter}     }          \begin{document}     \end{document}      MEW:               \documentclass[10pt,twoside,openright, pdftex]{report}          \usepackage{lipsum}     \usepackage{blindtext}     \usepackage[english]{babel}     \usepackage{fancyhdr}     \newcounter{flipbook_counter}          \pagestyle{fancy}     \fancyhead[LO]{\usefont{OT1}{qbk}{m}{n}\selectfont \nouppercase\rightmark}     \fancyhead[RE]{\usefont{OT1}{qbk}{m}{n}\selectfont \nouppercase\leftmark}     \fancyhead[LE]{\usefont{OT1}{qbk}{m}{n}\selectfont \nouppercase\thepage}     \fancyhead[RO]{\usefont{OT1}{qbk}{m}{n}\selectfont \nouppercase\thepage}     \usepackage[twoside=true]{geometry}     \geometry{%     driver=pdftex,%     b5paper,%     includehead,%     includefoot,%     twoside,%     inner=2cm,%     outer=1cm,%     vmargin={1cm,1cm},%     driver=pdftex%     }          \fancyfoot[RO]{\setlength{\unitlength}{1mm}     \begin{picture}(0,-10)     \put(-24,-14){\rule{5cm}{3cm}}     \end{picture}     \stepcounter{flipbook_counter}     }          \begin{document}     \Blinddocument     \end{document}


title: Compilation stops on 'loading the extended glyph list from ConTeXt'

text: I have updated yesterday the MikTex-Portable to the lastest version (Version: 4938, Date: 7/9/2013, Packages: 608). The following MWE on windows 7               \documentclass{standalone}          \usepackage{fontspec}     \setmainfont{Arial}     \setmonofont{Consolas}          \usepackage[utf8]{luainputenc}     \usepackage{luatextra}     \defaultfontfeatures{Ligatures=TeX}          \begin{document}     test     \end{document}      causes the compilation stops here:               [....]     (C:/Util/Port/MikTeX/tex/latex/fontspec/fontspec-luatex.sty     (C:/Util/Port/MikTeX/tex/latex/base/fontenc.sty     (C:/Util/Port/MikTeX/tex/latex/euenc/eu2enc.def)     (C:/Util/Port/MikTeX/tex/latex/euenc/eu2lmr.fd)     luaotfload | db : Font names database not found, generating new one.     luaotfload | db : This can take several minutes; please be patient.     luaotfload | db : Failed to save names database     luaotfload | db : Database creation unsuccessful.     luaotfload | load : loading the extended glyph list from ConTeXt     lua>      By the way: It seems that a "Font name database" should be generated. It took some time (about 45 sec). I have not had this before. Where (path) does MikTeX want to save this database?


title: Changing font size in an example environment

text: I'm new at LaTeX and I've been reading many questions-answers, but I still can't find something that works for what I need. I'm using the `covington` package because I'm working with `gloss`. So, this is what I have:               \documentclass[a4paper, 11pt]{article}       %more packages and things here       \usepackage{covington}       \begin{document}       \section{bla bla bla}       Text here       \begin{example}       \gll El hombre mira \textbf{a} esta mujer            The.DET man.MASC {looks at.TRANS} {} {this.DET} woman.FEM       \glt 'The man looks at this woman'       \glend       \end{example}     \end{document}      What I want to do is to make the font size of the example smaller (`10pt`, maybe?), because I have some examples that are a bit longer and they look terrible (the lines break and I have like half of the page with only one example). Any tip?


title: LaTeX moderncv casual: Change the width of the extrainfo

text: I want to limit width of the \extrainfo field, where I want place some long text. How can I do such thing? Now it looks like this: ![enter image description here](http://i.stack.imgur.com/IpV9H.png) I am using moderncv with casual blue style.


title: IDE for generating Flowchart LaTeX code

text: Is there any IDE that allows you to draw flowcharts and generate the LaTeX codes? I've searched on google but came accross TikZ which is only a library? Is there any IDE support?


title: amsthm's \qedhere in a proof ending in a displayed cases array

text: Is there a sensible way to get the QED box produced by `\qedhere` aligned with the last line of the `cases` environment in a situation as in the examples below?               \documentclass{article}     \usepackage{amsmath}     \usepackage{amsthm}     \begin{document}     \begin{proof}     This is a proof ending in a displayed \verb|cases| envirnoment, and without     the \verb|\qedhere|.       \[       \begin{cases}       1, & \text{in the first case;} \\       2, & \text{in the second case;} \\       3, & \text{in the third case,}        \end{cases}       \]     \end{proof}          \begin{proof}     This is a proof ending in a displayed \verb|cases| envirnoment, and with     the \verb|\qedhere| at the very end.       \[       \begin{cases}       1, & \text{in the first case;} \\       2, & \text{in the second case;} \\       3, & \text{in the third case,}        \end{cases}        \qedhere       \]     \end{proof}          \begin{proof}     This is a proof ending in a displayed \verb|cases| envirnoment, and with     the \verb|\qedhere| in the last line of that.       \[       \begin{cases}       1, & \text{in the first case;} \\       2, & \text{in the second case;} \\       3, & \text{in the third case,} \qedhere       \end{cases}        \]     \end{proof}     \end{document}      The same thing will happen in a proof ending in a displayed `gathered` environment, or any of the `-ed` variants.


title: Can I label my Figures as Figure 1.0, Fig 1.5, Fig 2.0, fig 2.5, .. ( in article format)

text: I'm typing up Topological Graph Theory pictures, and I have two pics that correspond to each graph (13 graphs). I would like to be able to reference my figures as in the title, but idk how to set a counter to do that.               \begin{document}               \section{Figures for Proposition 1}               \begin{figure}[H]     \centering     \includegraphics[width=0.7\linewidth, height=0.2\textheight]{../GeoGebra/ItiiP3L/D1}     \caption{\Dons has a unique embedding into \Sph, up to equivalence, by the symmetry of $K_{3,1,1}$.}     \label{fig:D1}     \end{figure}          \begin{figure}[H]     \centering     \includegraphics[width=0.7\linewidth, height=0.2\textheight]{../GeoGebra/ItiiP3L/D1minors}     \caption{\Dons has only two equivalence classes of edges; those that are incident to a vertex of degree 2, and those that are not.}     \label{fig:D1minors}     \end{figure}                                   \begin{figure}[H]     \centering     \includegraphics[width=0.7\linewidth, height=0.2\textheight]{../GeoGebra/ItiiP3L/D2}     \caption{\Dtws has four distinct embeddings into \Sph, up to equivalence.}     \label{fig:D2}     \end{figure}               \begin{figure}[H]     \centering     \includegraphics[width=0.7\linewidth, height=0.2\textheight]{../GeoGebra/ItiiP3L/D2minors}     \caption{\Dtws has only two equivalence classes of edges; those that are contained by $K_4$, and those that are not.}     \label{fig:D2minors}     \end{figure}                    \begin{figure}[H]     \centering     \includegraphics[width=0.7\linewidth, height=0.2\textheight]{../GeoGebra/ItiiP3L/D3}     \caption{\Dths has a unique embedding into \Sph, up to equivalence.}     \label{fig:D3}     \end{figure}               \begin{figure}[H]     \centering     \includegraphics[width=0.7\linewidth, height=0.2\textheight]{../GeoGebra/ItiiP3L/D3minors}     \caption{\Dths has seven equivalence classes of edges, as highlight in Figure \ref{fig:D3}.}     \label{fig:D3minors}     \end{figure}                    \end{document}      When configured, this reads as Figure 1, Figure 2, Figure 3, Figure 4, Figure 5, Figure 6. However, these six figures refer to only three graphs. It would be easier for readers of my paper if they were labeled in some way similar to Figure 1.0, Figure 1.5, Figure 2.0, Figure 2.5, Figure 3.0, Figure 3.5, or even Figure 1 A, Figure 1 B, Figure 2 A, Figure 2 B, Figure 3 A, Figure 3 B.


title: Double Superscript error with primes

text: Simple question, Why does the following cause a double superscript error?               $$ H^{' '} $$      Removing the spaces `$$ H^{''} $$` produces the expected output.


title: "Empty bibliography"

text: For some reason, BibLaTeX doesn't work. Here's my minimal example.               \documentclass[a4paper]{article}          \usepackage[utf8]{inputenc}     \usepackage{csquotes}          \RequirePackage{filecontents}     \begin{filecontents}{refs.bib}     @book{doe13,         address    = {City},         title      = {A nice title},         shorttitle = {Short title},         publisher  = {Publisher},         author     = {Doe, John},         year       = {2013}     }     \end{filecontents}          \usepackage[backend=biber]{biblatex}     \addbibresource{refs.bib}          \begin{document}          Hello. \cite{doe13}.          \nocite{*}          \printbibliography          \end{document}      I am using MiKTeX 2.9 32-bit. When I run `pdflatex sample.tex`, I get the following warings:               LaTeX Warning: Citation 'doe13' on page 1 undefined on input line 23.     LaTeX Warning: Empty bibliography on input line 27.      The generated PDF contains > Hello. [doe13 ]. and the page number, nothing else. There's no bibliography. Running `biber sample` gives me the following message:               > biber sample     INFO - This is Biber 1.5     INFO - Logfile is 'sample.blg'     data source C:\Users\Paul\AppData\Local\Temp\par-5061756c\cache-890efc00b3ca6b77     5c7d44a325c1349fb2a3a3bd\inc\lib/Biber/LaTeX/recode_data.xml not found in .      Like Alan Munn stated, the warning in `biber` can be fixed by removing the entire directory `C:\Users\Paul\AppData\Local\Temp\par-5061756c`. After that, new warnings occur, the `pdflatex` warnings are the same as well as the resulting PDF.               > biber sample     INFO - This is Biber 1.5     INFO - Logfile is 'sample.blg'     INFO - Reading 'sample.bcf'     WARN - Warning: Found biblatex control file version 2.5, expected version 2.3     INFO - Using all citekeys in bib section 0     INFO - Processing section 0     INFO - Looking for bibtex format file 'refs.bib' for section 0     INFO - Decoding LaTeX character macros into UTF-8     INFO - Found BibTeX data source 'refs.bib'      What else can I do?


title: Strange error when using makebox inside a item

text: I would like to define a command that takes three arguments; a question number, the question text from the problem, and finally my answer. Though there are a lot of different solutions out there I am sure but I do not know what is the right answer. One of the complications is that I would like all of the questions and answers (not the question number) left aligned with each other regardless of the width of the question number (1.1 vs 1.10). I have produced something to begin but I am getting a strange error that I simply do not follow. Here is the code:               \documentclass[letterpaper,10pt]{article}          \newcommand{\question}[3]{     \begin{itemize}     \item[\makebox[1cm][l]{#1}] #2          \vspace{.2in}          #3          \end{itemize}     }          \begin{document}          \question{a}{b}{c}          \end{document}      When I execute this, the result is the following:               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/MacPorts 2013_6)      restricted \write18 enabled.     entering extended mode     (./test.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 43 languages loaded.     (/opt/local/share/texmf-texlive/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/opt/local/share/texmf-texlive/tex/latex/base/size10.clo)) (./test.aux)     ! Argument of \@makebox has an extra }.     <inserted text>                      \par      l.18 \question{a}{b}{c}          ? ^D     ! Emergency stop.     <inserted text>                      \par      l.18 \question{a}{b}{c}          !  ==> Fatal error occurred, no output PDF file produced!     Transcript written on test.log.      Any suggestions on what I am doing wrong? Thanks for any help.


title: identify pieces of text automatically generated from input and new command

text: I have a document where many of its values are defined in a separate file via `\newcommand`, and added to the main document using `\input` in the preamble. The file being included is the output of a program, and defines more than 50 new commands, most of them just numbers. In order to identify which pieces of the text have been automatically generated, I changed the program to create variables with the text in a grey box, as in:               \newcommand{\StemLoopStart}{\colorbox[gray]{0.8}{35}}     \newcommand{\StemLoopEnd}{\colorbox[gray]{0.8}{50}}      In my exact case, I also had to set `\fboxsep` to a small number because of problems in line spacing that included these values, but mostly, this fixed my issue. However, I'm now trying to perform calculations with those values using the `fp` package which obviously does not work. So, is there any alternative method to do this, one that would still allow to me to make calculations? I could change the program one more time to output two commands per variable, one meant for text and another for the calculations, or even have the program make the calculations and create the variables itself. **EDIT:** Here's the document as an example:               \documentclass[10pt,a4paper,onecolumn,article]{memoir}          %% A lot of other extra packages being loadded and configuration          \usepackage{color}     \usepackage{fp}          %% each of following files is generated automatically and may have     %% more than 50 new commands. A typical file would be:     %%     %%  \newcommand{\StemLoopStart}{\colorbox[gray]{0.8}{35}}     %%  \newcommand{\StemLoopEnd}{\colorbox[gray]{0.8}{50}}     %%     %% repeated many times, with different variable names          \input{results/variables-align_results}     \input{results/variables-cluster_stats}     \input{results/variables-protein_stats}     \input{results/variables-utr}     \input{data/variables-Marzluff-stats}          \begin{document}            %% in the vast majority of the cases I will want text to be displayed       %% in gray so the following will work fine       Chicken histone genes have a stem loop starting at \StemLoopStart{}       blah blah blah.            %% However, in very few cases, I want to make some calculations       \FPeval{StemLoopLength}{clip(\StemLoopEnd{}-\StemLoopStart{})}       The typical length of an histone stem loop is \StemmLoopLength{}       which ...          \end{document}      The calculation won't work because `StemLoopEnd` is not just a number. And because there are a lot of variables and I am using most of them many times in the text, using `colorbox` each time, or redefining them all again manually in the preamble is not a viable solution. On the other hand, calculations are only needed very few times but I don't think it is possible to undo the colorbox. Also, the program cannot be changed to issue non colorbox in some cases, either in all or none. So, short of making the program issue a colorbox and non colorbox version of each variable, is there a way to do this?


title: Tab stops and consistent indentation in headings

text: I'm trying to create a documentclass that has some unusual headings and indentation. My goal is to have the width of `chapter/section number + whitespace` equal to the text `\leftskip` 2.5cm. I get an almost acceptable result with the titlesec package, setting some eyeballed \hspace values (2.1cm and 1.9cm in example) to chapter and section titles, but as you can see from my example, it breaks when the heading number gets bigger. In a visual word processor I'd just insert a tab character after the heading number and set the tab stop to 2.5cm and I'm looking to replicate this in LaTeX. I know something about the `tabbed` environment, but I cannot figure out how to apply it in this context with the titlesec config.               \documentclass[12pt,a4paper]{report}     \usepackage{lipsum}     \usepackage{titlesec}          \newlength\extramargin     \setlength\extramargin{2.5cm} % Regular text indent     \setlength\leftskip{\extramargin}          \titleformat{\chapter}[hang]             {\normalfont\sffamily\bfseries}             {\thechapter.\hspace{2.1cm}} % incorrect indent if chapter > 9             {0pt}             {\uppercase}             [\titlerule]     \titlespacing{\chapter}{0pt}{2em}{1em}          \titleformat{\section}[hang]         {\normalfont\sffamily\bfseries}         {\thesection\hspace{1.9cm}} % incorrect indent if section > 9         {0pt}         {}          \makeatother          \begin{document}          \chapter{Chapter title}          \section{Section}          \lipsum[1]          \section{Section}     \section{Section}     \section{Section}     \section{Section}     \section{Section}     \section{Section}     \section{Section}     \section{Section}     \section{Section}          Oh no!          \end{document}      ![MWE](http://i.stack.imgur.com/0XB04.png)


title: Creating a zebra effect using listings

text: > **This question led to a new package:**   >  `lstlinebgrd` (`lstaddons` bundle) Friends, consider the following example using the `listings` package:               \documentclass{article}          \usepackage[T1]{fontenc}     \usepackage{beramono}     \usepackage{listings}     \begin{document}          \begin{lstlisting}[language=C,basicstyle=\ttfamily]     /**     * Prints Hello World.     **/     #include <stdio.h>          int main(void) {        printf("Hello World!");        return 0;     }     \end{lstlisting}          \end{document}      The output is as we expect: ![Hello World](http://i.stack.imgur.com/4Lh1y.png) I was wondering if we could add something I know as _zebra effect_ (pardon my possible misinterpretation of this term). I know this as a common style used in tables, where rows alternate colors, hence the name _zebra_. The previous example should look something like this: ![Hello Zebra](http://i.stack.imgur.com/0sxTo.png) Does anyone have any ideas?


title: Coloredlettrine Error: Did any one have any luck using the coloredlettrine package?

text: http://tex.stackexchange.com/revisions/69271/1 ^Raphink created the coloredlettrine package (https://github.com/raphink/coloredlettrine). I have tried to compile it in XeLaTeX to no avail. I downloaded and installed the font package EB Garamond (http://www.georgduffner.at/ebgaramond/) into the same folder as the TeX file, but still, it won't compile. Persistent error: "! LaTeX Error: File `coloredlettrine.sty' not found." ![Error Message in Console](http://i.stack.imgur.com/wzkh6.png)


title: Create an array of variables

text: I'm creating a package for my question papers. (I'm aware of the exam class but I don't want to use that.) I have everything ready but I want to create a grading table at the top of the first page. For that, I need to put the exam points in an array. I have a command that is called for outputting the score. What I need to do is put them in some array-like variable so that I can then loop over it and output the points in a table. How can I create that array? I have no idea. Any hints would be highly appreciated.


title: Is it possible to count text in tables using texcount?

text: I am using `texcount` to count the words in my LaTeX document, but I have quite a lot of text in tables and want to count those too. Is there any way to do this using `texcount`? There doesn't seem to be a simple command-line switch, and the documentation for the macros section seems rather confusing.


title: paralist: how to format the counter

text: I use the following code to obtain a listed item               \documentclass{article}     \usepackage{paralist}          \begin{document}     \begin{inparaenum}[(a)]     \item first item,     \item second item,     \item last item     \end{inparaenum}     \end{document}      I would like to have the counters, in this case: `(a), (b), (c)` to be formatted in bold (`\bfseries`). However, only the counter itself and not the surrounding parentheses should be in bold. obviously the following doesnt work:               \begin{inparenum}[\bfseries{(a)}]      So can I achieve what I want without hardcoding the package?


title: LyX: Insert bullet list inside table cell

text: I want to add a bullet list inside a cell, but .. ![screenshot](http://i.stack.imgur.com/8DCFN.png) I can't.


title: Chapter header with super huge numbers

text: I'm trying to get the chapter heading to look like this ![Chapter heading](http://i.stack.imgur.com/SDInD.png) I am using the following code but the number are still so small               \usepackage{titlesec}     \definecolor{gray75}{gray}{0.75}     \newcommand{\hsp}{\hspace{20pt}}     \titleformat{\chapter}[hang]{\flushright\fontsize{80}{110}\bfseries}{\fontseries{bc}\fontsize{100}{130}\textcolor{gray75}\thechapter\hsp}{0pt}{\\\Huge\bfseries}      Can you help??


title: itemize inside an equation

text: I am trying to use itemize inside an equation, but I am getting a bunch of errors               \documentclass[12pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \begin{document}     \begin{equation}     \begin{itemize}     \item V_{p}=\Biggl\{F\in\Phi\hspace{2mm}\Bigg|\begin{cases}     p^2\nmid \text{disc}(F)\hspace{1mm} \text{if}\hspace{1mm} p\neq 2     \item\text{disc}(F)\equiv 1\pmod 4 \vee \text{disc}(F)\equiv 8\vee 12      \pmod{16} \hspace{1mm}\text{if} \hspace{1mm}p=2\Biggr\}     \end{itemize}     \end{equation}     \end{document}      so I tried with begin cases instead but I am not really satisfied with how it looks               \documentclass[12pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \begin{document}     \begin{equation}     V_{p}=\Biggl\{F\in\Phi\hspace{2mm}\Bigg|\begin{cases}     p^2\nmid \text{disc}(F)\hspace{1mm} \text{if}\hspace{1mm} p\neq     2\\\text{disc}(F)\equiv 1\pmod 4 \vee \text{disc}(F)\equiv 8\vee 12      \pmod{16} \hspace{1mm}\text{if} \hspace{1mm}p=2\Biggr\}     \end{cases}     \end{equation}     \end{document}      and the output ![enter image description here](http://i.stack.imgur.com/FeLc9.jpg) I would like to get something similar but without being forced to use ''begin cases'', I thought itemize would look better after the vertical line. Does anyone have an idea how to make this equation to look prettier? Thank you in advance


title: How do I put an image on the left of right-aligned text

text: I'm trying to add an image to the top left corner of a page (inside the margins) in LaTeX. Across from the image I want a set of right-aligned text. I tried using two columns but the image is smaller than the text and it breaks up some of the longer lines of text. Didn't seem to be able to make columns of different width with the `multicol` package. Here is an example of what I want (made in open office): ![What I want](http://i.stack.imgur.com/xt7Gk.jpg)


title: How to write 2 parallel arrows in the xymatrix environment?

text: I want to draw 2 parallel arrows in the xy matrix environment. Basically instead of the standard arrow (`\ar[r]`), I want to have something like `\begin{smallmatrix}\longrightarrow\\\longrightarrow\end{smallmatrix}`. I tried leaving the arrow blank and just writing `$$\xymatrix{\begin{smallmatrix}\longrightarrow\\\longrightarrow\end{smallmatrix}}$$`, but its not working. Edit: I need it to write two simplicial objects and arrows between them.


title: Weird spacing with DejaVu Sans Mono with MiKTeX's XeLaTeX

text: \documentclass{article}     \usepackage{fontspec}         \setmainfont{DejaVu Serif}         \setsansfont{DejaVu Sans}         \setmonofont{DejaVu Sans Mono}     \begin{document}     Hello World!          \textsf{Hello World!}          \texttt{Hello World!}     \end{document}      compiled with XeLaTeX gives me this: ![XeLaTeX output](http://i.stack.imgur.com/SqsjW.png) Copying the output with SumatraPDF even shows regular space characters between the letters and a line break between the words:               Hello World!     Hello World!     H e l l o     W o r l d !      (Copying it with Adobe Reader XI Win, however, yields three identical lines.) This problem doesn't occur with LuaLaTeX: ![LuaLaTeX output](http://i.stack.imgur.com/T9Dxy.png) The OCR-layer-text for LuaLaTeX is flawless as well, using either PDF viewer. **I assume this is a XeTeX bug? Can I circumvent it somehow?** I'm using MiKTeX 2.9, and version 2.33 of the DejaVu fonts, which I think came preinstalled with Windows (7), at least I can't recall manually installing these fonts. This version seems to be the current version, at any rate. P.S.: If someone can recommend another monospaced font for code that a) goes well with Linux Libertine and b) contains lowercase Greek letters, that'd be helpful, too. But that just as an aside `:)`.


title: Print glossary entry in acronym and long form

text: Is there a way to have a word listed in the glossary in its acronym AND long form? **LED** light-emitting diode **light-emitting diode** A semiconductor light source. I tried with two entries, but it doesn't seem right.. and is problematic with respect to the number list.               \newglossaryentry{light-emitting diode}     {       name={light-emitting diode},       description={A semiconductor light source}     }          \newacronym{led}{LED}{\gls{light-emitting diode}}


title: `advise` Environment in listings package

text: I was reading the documentation for the latex listings package and there are _advises_ in it which look like so: ![advise-environment in the listings documentation](http://i.stack.imgur.com/9N9h3.png) I had a quick look in the source code for the documentation and it turns out that there is an `advise` environment:               \begin{advise}     \item Must I do that really?         \advisespace         Yes and no. Some books about programming say this is good.      It seems to be defined inside the package:               % \begin{environment}{advise}     % \begin{macro}{\advisespace}     % The environment uses |\@listi|.     %    \begin{macrocode}      \def\advise{\par\list\labeladvise         {\advance\linewidth\@totalleftmargin          \@totalleftmargin\z@          \@listi          \let\small\footnotesize \small\sffamily          \parsep \z@ \@plus\z@ \@minus\z@          \topsep6\p@ \@plus1\p@\@minus2\p@          \def\makelabel##1{\hss\llap{##1}}}}     \let\endadvise\endlist     %    \end{macrocode}     %    \begin{macrocode}     \def\advisespace{\hbox{}\qquad}     \def\labeladvise{$\to$}     %    \end{macrocode}     % \end{macro}     % \end{environment}      However, neither do I understand this code snippet nor do I get this to work (copy and paste does not work, and I do not know what the code in comments means). Is there maybe an `advise`-package out there? Is there a way to get this piece of code working outside of the listings package? If so, how?


title: Animating perpetual motion with a forward moving line (TikZ/beamer)

text: I am trying to create an animation that gives a visual notion of a perpetual forward motion in time. What I would like to create is:   1. An arrow starts moving towards the right of the _x_ axis.   2. Below the _x_ axis, the time tick values are shown, lets say from 1 to 10.    3. The arrow grows in length from 1 to 10.    4. After it reaches the length of 10 in its _x_ coordinate, the labels ( _x_ axis) keep on incrementing, but the arrow length doesn't need to change (thus remain 10 units).  I am new to TikZ/`beamer`, I tried various approaches, but could not get much close to the desired goal. What I have currently is something like this:               \documentclass{beamer}     \usepackage{color}     \usepackage{tikz}     \usepackage{hyperref}     \usepackage{animate}     \usetheme{Warsaw}     \usecolortheme{whale}     \begin{frame}{Progress in Time}     \begin{animateinline}[      begin={ % header of each frame      \begin{tikzpicture}      [line width=1pt]      \path[clip] (0,-3) rectangle (11,6);      },      end={\end{tikzpicture}},autoplay]{3}      \multiframe{10}{iCount=1+1}{      \node (s) at (1,0.5) [] [label=below:$\iCount$] {};      \node (r) at (8,0.5) [] {};      \pgfmathsetmacro{\sup}{\iCount + 1}      \pgfmathsetmacro{\incr}{\iCount/10}      \node at (3,0.5) [] [label=below:$\sup$] {};      \path (s) -- (r) node[pos=\incr,coordinate] (p) {};      \draw[->] (s) -- (p);           } % end of multiframe     \end{animateinline}     \end{frame}


title: Choosing numbering on equations

text: I'm writing some course notes and through out I want to refer to the equation number in the book we are using, rather than numbering the equations within the document. In other words **how can I decide for myself what the equation number should be?** I've made a MWE below, but the problem is that it puts the equation number on the next line below the equation.               \documentclass[11pt,a4paper]{article}     \usepackage[latin1]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \begin{document}     The density of states at $ \epsilon $ is     \begin{center}     $D_{e}(\epsilon)=\dfrac{1}{2\pi^{2}}\left(\dfrac{2m_{e}}     {\hbar^{2}}\right)^{3/2}\left(\epsilon-     E_{c}\right)^{1/2}$\end{center}\begin{flushright}\textrm{(8.37)}\end{flushright}     \end{document}      ![I want the equation number to be on line with the equation](http://i.stack.imgur.com/vnyyW.png)


title: Where can I find vignettes to separate sections?

text: In traditional typesetting for books, there are often little figures called vignettes that serve as a separation between sections or subsections. One could always include the graphics as in a figure/vector, draw it with tikz-pgf or even work a font, but I am wondering if there is any package that provides good integration with (hopefully pretty) vignettes. If not, a good collection and instructions to put them automatically at the end of a section will be much appreciated. **Edit** : Summary of answers: there is no package or way to doing that automatically, at least not touching only the preamble. The best way is to create a macro to insert the ornament and calling it wherever is needed.


title: modifying PrintDescribeMacro of doc.sty

text: I would like to redefine the command `PrintDescribeMacro`of `doc.sty` in order to create a label that I can link to using hyperref. However whenever I add a label to the command I get an error               \ifcsdef{PrintDescribeMacro}        {\def\PrintDescribeMacro#1{%        \label{doc:desc:#1}%        \strut \MacroFont %        \color{doctools@ColorCodeNames} \string #1\ }}{}      because the label is created with a different content than what I expect               \newlabel{doc:desc:\unhbox \voidb@x \relax \begingroup \catcode `\spacefactor      \@m 11\relax \par }{{1}{3}{Commands provided by doc.sty and ltxdoc}{MacroName.1}{}}      Any better idea how to modify the commands of doc.sty?


title: Float pgfplotstable to right of text

text: I want to float a smaller table to the right of my text. Here is an example of the code:               % Example Table     \documentclass{minimal}     \begin{filecontents*}{scientists.csv}     name,surname,age     Albert,Einstein,133     Marie,Curie,145     Thomas,Edison,165     \end{filecontents*}          % Read in Table                \documentclass{article}      \usepackage{pgfplotstable}      \begin{document}     \section*{Section 1}  I want to have this text wrap around the small table to the right.  This is actually a longer paragraph which would fill the side of the page.                     \begin{table}     \pgfplotstabletypeset[         col sep=comma,         string type,         columns/name/.style={column name=Name, column type={|l}},         columns/surname/.style={column name=Surname, column type={|l}},         columns/age/.style={column name=Age, column type={|c|}},         every head row/.style={before row=\hline,after row=\hline},         every last row/.style={after row=\hline},         ]{scientists.csv}     \end{table}     \end{document}      Thanks for help with a simple question,


title: Should two pictures side by side have 0.5 or 0.49999 textwidth?

text: Two pictures should be next to each other. What is their perfect width? Is 0.5 + 0.5 = 1 for TeX, or does the compiler need a tiny space between the objects? Should               \includegraphics[width=0.5\textwidth]      be used or better something like               \includegraphics[width=0.4999\textwidth]      in this example:               \begin{figure}[h]       \centering       \subfloat[]{\label{a} \includegraphics[width=0.5\textwidth]{a.jpg}}       \subfloat[]{\label{b} \includegraphics[width=0.5\textwidth]{b.jpg}}       \label{fig:abpics}       \caption{The a and the b.}     \end{figure}


title: In the geometry package, what's the practical use of setting heightrounded=true?

text: In the `geometry` package, what's the practical use of setting `heightrounded=true`? The documentation says sth about avoiding cases of "`underful vbox`", but I don't see why I need to worry about it. When you use the `geometry` package, do you enable `heightrounded`, and if so, what's your reason(ing) to do so?


title: Write the value of enumerate to output file

text: I would like to save the present value of an enumeration into an output file. Using information from another question I have the following minimal example:               \documentclass{article}               \newcommand{\collectSolutions}{\immediate\openout\tempfile=solutions.tex}          \newwrite\tempfile          \newcommand{\solution}[1]{\immediate\write\tempfile{\theenumi\theenumii\theenumiii:\unexpanded{#1}}}          \newcommand{\printSolutions}{%     \immediate\closeout\tempfile     \noindent\input{solutions}     }     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{document}          \collectSolutions          \begin{enumerate}         \item Text          \begin{enumerate}           \item Part Q 1 \solution{A}           \item Part Q 1 \solution{B}           \item Part Q 1 \solution{\mbox{$solution$}}         \end{enumerate}         \item Another Q \solution{D}     \end{enumerate}          \printSolutions          \end{document}      The out put lists the final question as being 2c. I assume this is because the enumii counter is not reset until this level is restarted. All the same, how can I obtain the 1a, 1b, 1c, 2 in the final list from \printSolutions?


title: Biblatex not working

text: I am trying to get `biblatex` to work. I tried different examples but finally found one from this forum. However, I always get an error on the `\cite` command (see latex output below)               \documentclass{article}           \usepackage{filecontents}          \begin{filecontents*}{refs.bib}     @BOOK         {KandR,          AUTHOR  = "Kernighan, Brian W. and Ritchie, Dennis M.",          TITLE   = "{The C Programming Language Second Edition}",          PUBLISHER = "Prentice-Hall, Inc.",          YEAR = 1988         }     \end{filecontents*}          \usepackage{biblatex}      \addbibresource{refs.bib}           \begin{document}           Hello\cite{KandR}     \printbibliography           \end{document}                     running: /usr/local/texlive/2012/bin/x86_64-darwin/pdflatex -synctex=1 -interaction=nonstopmode --src-specials document.tex      pdflatex> This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)     pdflatex>  restricted \write18 enabled.     pdflatex>  Source specials enabled.     pdflatex> entering extended mode     pdflatex> (./document.tex     pdflatex> LaTeX2e <2011/06/27>     pdflatex> Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge     pdflatex> rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek, ibycus, arabi     pdflatex> c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis     pdflatex> h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis     pdflatex> h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h     pdflatex> ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma     pdflatex> rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,      pdflatex> kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,     pdflatex>  polish, portuguese, romanian, romansh, russian, sanskrit, serbian, serbianc, s     pdflatex> lovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian,      pdflatex> welsh, loaded.     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls     pdflatex> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/size10.clo))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/filecontents/filecontents.sty)     pdflatex>      pdflatex> LaTeX Warning: Writing file `./refs.bib'.     pdflatex>      pdflatex>      pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex.sty     pdflatex>      pdflatex> Package biblatex Warning: No "backend" specified, using Biber backend.     pdflatex> (biblatex)                To use BibTeX, load biblatex with      pdflatex> (biblatex)                the "backend=bibtex" option.     pdflatex>      pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex2.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/etoolbox/etoolbox.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/etex-pkg/etex.sty))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/keyval.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/kvoptions.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/etexcmds.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/logreq/logreq.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/logreq/logreq.def))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/ifthen.sty)     pdflatex> (/Users/wolfgang/Library/texmf/tex/latex/html/url.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/blx-dm.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/blx-compat.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/bbx/standard.bbx))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/cbx/numeric.cbx)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex.cfg)))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/lbx/english.lbx)     pdflatex> (./document.aux     pdflatex>      pdflatex> ! Package babel Error: You haven't loaded the option american yet.     pdflatex>      pdflatex> See the babel package documentation for explanation.     pdflatex> Type  H <return>  for immediate help.     pdflatex>  ...                                                   pdflatex>                                                        pdflatex> l.5 \select@language{american}     pdflatex>                                    pdflatex> ) (./document.bbl)     pdflatex> ! Undefined control sequence.     pdflatex> \biburlsetup ->\Urlmuskip      pdflatex>                           =0mu plus 3mu\relax \mathchardef \UrlBigBreakPenal...     pdflatex> l.218 Hello\cite{KandR}     pdflatex>                             pdflatex>      pdflatex> LaTeX Warning: Citation 'KandR' on page 1 undefined on input line 218.     pdflatex>      pdflatex>      pdflatex> LaTeX Warning: Empty bibliography on input line 219.     pdflatex>      pdflatex> [1{/usr/local/texlive/2012/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]     pdflatex> (./document.aux)     pdflatex>      pdflatex> LaTeX Warning: There were undefined references.     pdflatex>      pdflatex>      pdflatex> Package biblatex Warning: Please (re)run Biber on the file:     pdflatex> (biblatex)                document     pdflatex> (biblatex)                and rerun LaTeX afterwards.     pdflatex>      pdflatex>  )     pdflatex> (see the transcript file for additional information)</usr/local/texlive/2012/te     pdflatex> xmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/local/texlive/2012/tex     pdflatex> mf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>     pdflatex> Output written on document.pdf (1 page, 22927 bytes).     pdflatex> SyncTeX written on document.synctex.gz.     pdflatex> Transcript written on document.log.     running: /usr/local/texlive/2012/bin/x86_64-darwin/bibtex document      bibtex> This is BibTeX, Version 0.99d (TeX Live 2012)     bibtex> The top-level auxiliary file: document.aux     bibtex> I found no \citation commands---while reading file document.aux     bibtex> I found no \bibdata command---while reading file document.aux     bibtex> I found no \bibstyle command---while reading file document.aux     bibtex> (There were 3 error messages)     running: /usr/local/texlive/2012/bin/x86_64-darwin/pdflatex -synctex=1 -interaction=nonstopmode --src-specials document.tex      pdflatex> This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)     pdflatex>  restricted \write18 enabled.     pdflatex>  Source specials enabled.     pdflatex> entering extended mode     pdflatex> (./document.tex     pdflatex> LaTeX2e <2011/06/27>     pdflatex> Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge     pdflatex> rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek, ibycus, arabi     pdflatex> c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis     pdflatex> h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis     pdflatex> h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h     pdflatex> ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma     pdflatex> rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,      pdflatex> kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,     pdflatex>  polish, portuguese, romanian, romansh, russian, sanskrit, serbian, serbianc, s     pdflatex> lovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian,      pdflatex> welsh, loaded.     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls     pdflatex> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/size10.clo))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/filecontents/filecontents.sty)     pdflatex>      pdflatex> LaTeX Warning: Overwriting file `./refs.bib'.     pdflatex>      pdflatex>      pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex.sty     pdflatex>      pdflatex> Package biblatex Warning: No "backend" specified, using Biber backend.     pdflatex> (biblatex)                To use BibTeX, load biblatex with      pdflatex> (biblatex)                the "backend=bibtex" option.     pdflatex>      pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex2.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/etoolbox/etoolbox.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/etex-pkg/etex.sty))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/keyval.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/kvoptions.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/etexcmds.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/logreq/logreq.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/logreq/logreq.def))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/ifthen.sty)     pdflatex> (/Users/wolfgang/Library/texmf/tex/latex/html/url.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/blx-dm.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/blx-compat.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/bbx/standard.bbx))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/cbx/numeric.cbx)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex.cfg)))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/lbx/english.lbx)     pdflatex> (./document.aux) (./document.bbl)     pdflatex> ! Undefined control sequence.     pdflatex> \biburlsetup ->\Urlmuskip      pdflatex>                           =0mu plus 3mu\relax \mathchardef \UrlBigBreakPenal...     pdflatex> l.218 Hello\cite{KandR}     pdflatex>                             pdflatex>      pdflatex> LaTeX Warning: Citation 'KandR' on page 1 undefined on input line 218.     pdflatex>      pdflatex>      pdflatex> LaTeX Warning: Empty bibliography on input line 219.     pdflatex>      pdflatex> [1{/usr/local/texlive/2012/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]     pdflatex> (./document.aux)     pdflatex>      pdflatex> LaTeX Warning: There were undefined references.     pdflatex>      pdflatex>      pdflatex> Package biblatex Warning: Please (re)run Biber on the file:     pdflatex> (biblatex)                document     pdflatex> (biblatex)                and rerun LaTeX afterwards.     pdflatex>      pdflatex>  )     pdflatex> (see the transcript file for additional information)</usr/local/texlive/2012/te     pdflatex> xmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/local/texlive/2012/tex     pdflatex> mf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>     pdflatex> Output written on document.pdf (1 page, 22927 bytes).     pdflatex> SyncTeX written on document.synctex.gz.     pdflatex> Transcript written on document.log.     running: /usr/local/texlive/2012/bin/x86_64-darwin/pdflatex -synctex=1 -interaction=nonstopmode --src-specials document.tex      pdflatex> This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)     pdflatex>  restricted \write18 enabled.     pdflatex>  Source specials enabled.     pdflatex> entering extended mode     pdflatex> (./document.tex     pdflatex> LaTeX2e <2011/06/27>     pdflatex> Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge     pdflatex> rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek, ibycus, arabi     pdflatex> c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis     pdflatex> h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis     pdflatex> h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h     pdflatex> ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma     pdflatex> rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,      pdflatex> kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,     pdflatex>  polish, portuguese, romanian, romansh, russian, sanskrit, serbian, serbianc, s     pdflatex> lovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian,      pdflatex> welsh, loaded.     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls     pdflatex> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/size10.clo))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/filecontents/filecontents.sty)     pdflatex>      pdflatex> LaTeX Warning: Overwriting file `./refs.bib'.     pdflatex>      pdflatex>      pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex.sty     pdflatex>      pdflatex> Package biblatex Warning: No "backend" specified, using Biber backend.     pdflatex> (biblatex)                To use BibTeX, load biblatex with      pdflatex> (biblatex)                the "backend=bibtex" option.     pdflatex>      pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex2.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/etoolbox/etoolbox.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/etex-pkg/etex.sty))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/keyval.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/kvoptions.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/etexcmds.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/logreq/logreq.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/logreq/logreq.def))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/ifthen.sty)     pdflatex> (/Users/wolfgang/Library/texmf/tex/latex/html/url.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/blx-dm.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/blx-compat.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/bbx/standard.bbx))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/cbx/numeric.cbx)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex.cfg)))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/lbx/english.lbx)     pdflatex> (./document.aux) (./document.bbl)     pdflatex> ! Undefined control sequence.     pdflatex> \biburlsetup ->\Urlmuskip      pdflatex>                           =0mu plus 3mu\relax \mathchardef \UrlBigBreakPenal...     pdflatex> l.218 Hello\cite{KandR}     pdflatex>                             pdflatex>      pdflatex> LaTeX Warning: Citation 'KandR' on page 1 undefined on input line 218.     pdflatex>      pdflatex>      pdflatex> LaTeX Warning: Empty bibliography on input line 219.     pdflatex>      pdflatex> [1{/usr/local/texlive/2012/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]     pdflatex> (./document.aux)     pdflatex>      pdflatex> LaTeX Warning: There were undefined references.     pdflatex>      pdflatex>      pdflatex> Package biblatex Warning: Please (re)run Biber on the file:     pdflatex> (biblatex)                document     pdflatex> (biblatex)                and rerun LaTeX afterwards.     pdflatex>      pdflatex>  )     pdflatex> (see the transcript file for additional information)</usr/local/texlive/2012/te     pdflatex> xmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/local/texlive/2012/tex     pdflatex> mf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>     pdflatex> Output written on document.pdf (1 page, 22927 bytes).     pdflatex> SyncTeX written on document.synctex.gz.     pdflatex> Transcript written on document.log.      Using this example: How to use biber I get the following errors even though the backend is set to biber               running: /usr/local/texlive/2012/bin/x86_64-darwin/pdflatex -synctex=1 -interaction=nonstopmode --src-specials document.tex      pdflatex> This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)     pdflatex>  restricted \write18 enabled.     pdflatex>  Source specials enabled.     pdflatex> entering extended mode     pdflatex> (./document.tex     pdflatex> LaTeX2e <2011/06/27>     pdflatex> Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge     pdflatex> rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek, ibycus, arabi     pdflatex> c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis     pdflatex> h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis     pdflatex> h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h     pdflatex> ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma     pdflatex> rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,      pdflatex> kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,     pdflatex>  polish, portuguese, romanian, romansh, russian, sanskrit, serbian, serbianc, s     pdflatex> lovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian,      pdflatex> welsh, loaded.     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls     pdflatex> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/size10.clo))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/csquotes/csquotes.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/etoolbox/etoolbox.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/etex-pkg/etex.sty))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/keyval.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/csquotes/csquotes.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/csquotes/csquotes.cfg))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex2.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/kvoptions.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/etexcmds.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/logreq/logreq.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/logreq/logreq.def))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/ifthen.sty)     pdflatex> (/Users/wolfgang/Library/texmf/tex/latex/html/url.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/blx-dm.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/blx-compat.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/blx-natbib.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/bbx/authoryear-icomp.bbx     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/bbx/authoryear.bbx     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/bbx/standard.bbx)))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/cbx/authoryear-icomp.cbx     pdflatex> ) (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/biblatex.cfg)))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/hyperref.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/auxhook.sty)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/pd1enc.def)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/hyperref.cfg))     pdflatex>      pdflatex> Package hyperref Message: Driver (autodetected): hpdftex.     pdflatex>      pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/hpdftex.def     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     pdflatex>      pdflatex> Package csquotes Warning: No multilingual support.     pdflatex> (csquotes)                Cannot enable multilingual quotes on input line 246.     pdflatex>      pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/biblatex/lbx/english.lbx)     pdflatex> (./document.aux) (./document.bbl)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/color.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/color.cfg)     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/latex/pdftex-def/pdftex.def     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/context/base/supp-pdf.mkii     pdflatex> [Loading MPS to PDF converter (version 2006.09.02).]     pdflatex> ))) (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/nameref.sty     pdflatex> (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     pdflatex> (./document.out) (./document.out)     pdflatex> ! Undefined control sequence.     pdflatex> \biburlsetup ->\Urlmuskip      pdflatex>                           =0mu plus 3mu\relax \mathchardef \UrlBigBreakPenal...     pdflatex> l.247 ...m ipsum dolor sit amet~\cite{kastenholz}.     pdflatex>                                                        pdflatex> ! Undefined control sequence.     pdflatex> \biburlsetup ->\Urlmuskip      pdflatex>                           =0mu plus 3mu\relax \mathchardef \UrlBigBreakPenal...     pdflatex> l.248 ...o dolores et ea rebum~\cite{sigfridsson}.     pdflatex>                                                        pdflatex> ! Undefined control sequence.     pdflatex> \biburlsetup ->\Urlmuskip      pdflatex>                           =0mu plus 3mu\relax \mathchardef \UrlBigBreakPenal...     pdflatex> l.250 \end     pdflatex>           {document}     pdflatex>      pdflatex> Overfull \hbox (7.21625pt too wide) in paragraph at lines 250--250     pdflatex> [][]\OT1/cmr/m/n/10 Kastenholz, M. A. and Philippe H. H^^?unenberger (2006). \      pdflatex>  Com-pu-ta-tion of method-     pdflatex> [1{/usr/local/texlive/2012/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]     pdflatex> (./document.aux) )     pdflatex> (see the transcript file for additional information)</usr/local/texlive/2012/te     pdflatex> xmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/local/texlive/2012/tex     pdflatex> mf-dist/fonts/type1/public/amsfonts/cm/cmcsc10.pfb></usr/local/texlive/2012/tex     pdflatex> mf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/local/texlive/2012/texmf     pdflatex> -dist/fonts/type1/public/amsfonts/cm/cmti10.pfb></usr/local/texlive/2012/texmf-     pdflatex> dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb>     pdflatex> Output written on document.pdf (1 page, 62794 bytes).     pdflatex> SyncTeX written on document.synctex.gz.     pdflatex> Transcript written on document.log.


title: Is there a way to put two pspicture's side by side?

text: I am making slides using Beamer, and I am trying to have to `\pspicture`s side by side. However, no matter what I do they end up one under the other, even if I use `minipage`. What is the right way to do this?


title: Apparent conflict when using hyperref and pdfcomment together

text: There appears to be a conflict with using the `hyperref` package and `pdfcomment`. Take the following example:               \documentclass{article}     \usepackage[pdftex,hidelinks]{hyperref}     \usepackage{pdfcomment}     \begin{document}     \end{document}      I get a warning message from `hyprerref` related to `pdftex` being called twice and that it changes nothing. I don't really like to leave a document with warning messages on the compilation. If I change the order of the packages, then there is an outright error. The error relates the the `hidelinks` option, though I think it is probably a problem with other options too. If I remove the option, then the code will compile without error or warning (provided that `pdfcomment` is loaded first.) Any ideas about a resolution for this: should I be passing a bug report onto either of these two parties?


title: LaTeX Warning About Height, \hbox, and \vbox, and ht

text: I am compiling a LaTeX document on Ubuntu and I am getting those warnings, errors, or whatever. Any idea about them?               Package hyperref Warning: Height of page (\paperheight) is invalid (0.0pt),     (hyperref)                using 11in.     Underfull \hbox (badness 10000) has occurred while \output is active     Underfull \vbox (badness 10000) has occurred while \output is active []     LaTeX Warning: `h' float specifier changed to `ht'.


title: Shortcut of selecting the find scope in TeXShop

text: Preferring the Ogrekit Find Panel, I often use the option "Replace All" with the scope "Selection", or with the scope "Entire File". Is there a keyboard shortcut to exchange between these two scopes? Or how do you TeXers replace something by this option?


title: Why does doublespacing using setspace have errors when used in a minimal documentclass?

text: Just curious why `\doublespacing` seems broken in a minimal document. It works ok when the documentclass is set to article.               \documentclass{minimal}     \usepackage{setspace}     \doublespacing          \begin{document}          doublespace          these          lines          \end{document}      First error is               ! Undefined control sequence.          \setstretch ...ef \baselinestretch {#1}\@currsize