title: PDF bookmarks for thmtools' theorems

text: I would like to add PDF bookmarks for some classes of theorems declared using `thmtools` and I couldn't find a beautiful way to do it so far. The best idea I have been able to come up with was to add `\pdfbookmark` commands to the `postheadhook` key of `\declaretheorem`. But for this to work I have to get a unique identifier for each theorem, presumbably using an internal command from `thmtools` and I have not been able to figure out how. This is most certainly possible, since `thmtools` used with `hyperref` is able to create hyperlinks to the theorems in `\listoftheorems`, so there could lie another way to do what I want, but I can't find it. A MWE:               \documentclass{article}     \usepackage{amsmath,amsthm}     \usepackage{hyperref}     \usepackage{thmtools}      \declaretheorem[title=Theorem,postheadhook={\pdfbookmark{a_name}{some_identifier}}]{theo}     \begin{document}     \begin{theo}         Continuous maps map quasi-compact sets to quasi-compact sets.     \end{theo}     \newpage     \begin{theo}[Tykhonov]         Cartesian products of compact spaces are compact for the product topology.     \end{theo}     \end{document}      Here, PDF bookmarks are correctly created, but of course have all the same name and point to the first theorem.


title: putting tikzpicture inside beamer

text: I am trying to add tikzpicture inside Beamer. However, I cannot use such functions as `\pause`, `enumerate` etc with TikZ. Here is what I got thus far. I would like to change the `enumerate` environment and `\pause` after each point.               \documentclass{beamer}     %\usecolortheme{beaver}     \usepackage{textpos}     \usepackage{comment}     \usepackage{tikz}     \usepackage{graphicx}     %\usepackage[a4paper,left=2.0cm, right=2.0cm, top=4.5cm, bottom=2.5cm]{geometry}     \usetikzlibrary{snakes}          \begin{document}          \begin{frame}{Time Line of the Model}               \begin{tikzpicture}      %draw horizontal line      \draw (-2,0) -- (10,0);           %draw vertical lines      \foreach \x in {-1.5,3,8}        \draw (\x cm,3pt) -- (\x cm,-3pt);           %draw nodes      \draw (-1.5,0) node[above=3pt] {$ 0 $};      \draw (3,0) node[above=3pt] {$ 1 $};      \draw (8,0) node[above=3pt] {$ 2 $};          \small     \node[align=left, below] at (0,-.5)%     {     1) The board of directors \\ offers the manager a \\ contract ($\omega_0, \omega_p, \omega_v$).\\\\      2) The short-term $v_S$, \\and the long-term $v_L$  \\ projects are initiated \\ by the manager.\\\\     3) The manager is \\ (partially) compensated \\ a fixed wage of $\omega_0$.\\\\     4) The IPO price of the \\stock  $p_0$ is determined \\by the investors     };               \node[align=left, below] at (4.5,-.5)%     {     1) Speculators observe\\ costly noisy signals $\theta_S $ \\ and $\theta_L)$ of the value of \\ short- and long-term \\ project. \\\\     2) The market for the firm's \\ shares opens for trade;\\ and the resulting market \\ price is $p$.\\\\     3) The manager is \\ (partially) compensated \\ an amount of $\omega_p p$.     };               \node[align=left, below] at (8.5,-.5)%     {     1) The terminal value \\of the firm $v$ is realized.\\\\     2) The manager is \\  (partially) compensated \\an amount of $\omega_v v$.     };     \end{tikzpicture}     \end{frame}     \end{document}


title: Possible to adjust character width?

text: I'm using `Beamer` and `lstlisting` to put some code in a presentation. The character spacing feels a bit too wide to my eye. Is it possible to reduce it? I've tried searching on this SE but can't seem to see anything obvious. EDIT: This seems trivial but:               \begin{frame}[fragile]     \frametitle{A frame}     \begin{lstlisting}     the letters are too far apart     \end{lstlisting}     \end{frame}


title: How can I position some text on the same place on multiple pages with partly different content?

text: I am creating the first pages of a book and I want one page with just the title and the next page to have title plus the authors and some other stuff. However LaTeX places the title differently on the pages because of the other text on the second page which is not on the first page. How can I make the title go at exactly the same location on both pages? Here is an example of what I mean:               \documentclass[10pt,twoside,titlepage]{book}     \begin{document}          \pagestyle{empty}     \vspace*{0.3 \textheight}     \LARGE     \noindent     \textsf{bla bla}          \huge     \textsf{\textbf{Bla Vla Bla}} \\          \cleardoublepage          \vspace*{0.3 \textheight}     \LARGE     \noindent     \textsf{bla bla}          \huge     \textsf{\textbf{Bla Vla Bla}} \\     \normalsize          \noindent     \begin{flushright}     \begin{minipage}{0.4\textwidth}     Author 1 \\     Author 2 \\     Author 3 \\     \end{minipage}     \end{flushright}          \end{document}


title: How do I get arrows and nodes in my commutative diagrams to line up?

text: I use tikz-pgf for typesetting my commutative diagrams. I generally use the `matrix of math nodes` which has the pleasant effect of ensuring that all of the entries in a row are aligned according to their _baselines_. Compare the two versions in the following picture, the left are aligned by their `center` [sic] anchors, the right by their `base` ones. ![Aligned and misaligned nodes](http://i.stack.imgur.com/cMXUT.png) This works well, until one adds arrows. Unless given explicit anchors, arrows are drawn between the _centres_ of nodes and whilst the bases of the right- hand nodes are aligned, their centres are not. So adding arrows yields the following: ![Aligned and misaligned arrows and nodes](http://i.stack.imgur.com/D1rSt.png) Now, clearly I'm exaggerating for effect but it is noticeable even with a slight discrepancy. One can manually add the anchors, but that's a pain (and the seemingly best anchor, `mid`, is ever so slightly too low: it is at `.5ex` above baseline but by examining `\\(A \to B\\)` I think it should be at `.6ex`). So my question: can I align _both_ nodes and arrows so that the nodes are aligned by baseline but `\draw[->] (a) -- (b);` just works. Here's some code to play with:               \documentclass{article}     \usepackage{tikz}          \begin{document}     \tikz[baseline]{ \node[rectangle] (a) {\(A_{\rule{1pt}{2em}}\)};     \node[rectangle] (b) at (2,0) {\(B^{\rule{1pt}{2em}}\)}; \draw[->] (a)     -- (b);}     \tikz[baseline]{ \node[anchor=base,rectangle] (a)     {\(A_{\rule{1pt}{2em}}\)}; \node[anchor=base,rectangle] (b) at (2,0)     {\(B^{\rule{1pt}{2em}}\)}; \draw[->] (a) -- (b);}     \end{document}      _Note: This is an ask-and-answer question. I spent a not-insignificant amount of time hacking this this afternoon. Then I did a bit of searching to see if the question had already been asked, and while it hadn't - hence still asking - I did find that, to coin a phrase, "there's a package for that", but I didn't find the solution from that package mentioned anywhere on this site - though this problem has been seen in other answers._


title: Check Template Settings

text: Since I am new to LaTeX, is it possible to help me check if the required settings quoted bellow have been setted correctly in the template also quoted bellow? The required settings: > The text should be in 12-point typeface, double-spaced, and left-justified. > The pages should be numbered. The template as it is now:               \documentclass{article}     %\documentclass[journal]{IEEEtran}     %\documentclass{report}     %\documentclass{acta}          \usepackage{graphicx}          \begin{document}          \title{Introduction to \LaTeX{}}     \author{Author's Name}          \maketitle          \begin{abstract}     This is abstract text: This simple document shows very basic features of     \LaTeX{}.     \end{abstract}          \section{Introduction}          \begin{equation}         \label{simple_equation}         \alpha = \sqrt{ \beta }     \end{equation}          \subsection{Subsection Heading Here}          \begin{figure}         \centering         \includegraphics[width=3.0in]{myfigure}         \caption{Simulation Results}         \label{simulationfigure}     \end{figure}          \section{Conclusion}          \end{document}


title: Origami package

text: Does exist a specific package to draw origami? Some example: http://goclom.net/origami-papier/origami-grue.aspx ![enter image description here](http://i.stack.imgur.com/ghEAG.jpg) ![enter image description here](http://i.stack.imgur.com/2VNGu.jpg)


title: indent some first-column words in a table using PGFplots

text: I'm trying to indent some of the words in the first column of a table using `PGFplotstable`. I can't figure out any other way to do this other than to put 4 spaces in front of the word. Unfortunately, `pgfplotstable` or latex is stripping away the spaces so the words aren't indented. In the MWE below, see that "cat c" and "cat f" are meant to be indented, but once rendered they are left-aligned. I found the option `trim cells=true|false`, but turning it off had no effect.               \documentclass{article}          \usepackage{pgfplots}     \usepackage{pgfplotstable}     \usepackage{filecontents}          \begin{document}          \begin{filecontents}{testdata.csv}     category, value, value 2     cat a,    1,     7     cat b,    2,     6         cat c,    3,     5     cat d,    4,     4     cat e,    5,     3         cat f,    6,     2     cat g,    7,     1     \end{filecontents}          \pgfplotstableread[col sep=comma]{testdata.csv}\datatable     \pgfplotstabletypeset[     trim cells=false,     col sep=comma,     columns/category/.style={string type,column type=l}     ]{\datatable}          \end{document}


title: Change form of figure

text: > Blockquote How can I modify the dash by a point in the title of figure ? please exemple figure1. in stead of figure1-


title: making boxed or framed sections that flows to the next page

text: I want to enclose a text in a box and i want the box to overflow to the next page when the box cannot fit in one page. With my code the box immediately jumps to the next page and then omit the text that can't fit. Any help or useful packages i might try               \begin{document}          \begin{tabular}{|p{0.9\textwidth}|}        \hline\\        %frame number     \blintext[6]     \end{tabular}      \end{document}


title: text above and below curved arrows

text: I would like to trace this figure, but I have difficulties in controlling the placement of arrows and numerical flows underneath the arrows. ![enter image description here](http://i.stack.imgur.com/4RZUJ.jpg) The "sedimentary rock" node has to be split in two. Can you support some help. Thanks in advance.               \documentclass[tikz]{minimal}     \usepackage{tikz}     \usetikzlibrary{shapes}          \begin{document}     \begin{tikzpicture}          \node[rectangle,fill=red!70,text width=4cm,anchor=base]  (atmosfera) at (5cm, 8cm) {Atmosphere\\ (carbon dioxide)};     \node[rectangle,fill=red!70,text width=4cm,anchor=base]  (biosfera) at (0cm, 2.5cm) {Biosphere\\ (carbohydrates)};     \node[rectangle,fill=red!70,text width=4cm,anchor=base]  (oceano) at (8cm, 0cm) {Ocean\\(bicarbonate ions)\\ $1.3\times10^{20}$};     \node[rectangle,fill=red!70,text width=4cm,anchor=base]  (rochas) at (0cm, 0cm) {Sedimentary rocks};          \draw[->,out=-90,in=0,looseness=1, draw=blue]  (atmosfera.south west) to node[midway, above, sloped] {Photosynthesis} (biosfera.east) ;          \draw[->,out=90,in=180,looseness=1, draw=blue]  (biosfera.north) to node[midway, above, sloped] {Respiration and decay\\$10^{17}$} (atmosfera.west) ;          \draw[->,out=-90,in=90,looseness=1, draw=blue]  (biosfera.west) to node[midway, above, sloped] {Burial\\ $3 \times 10^{14}$} (rochas.west) ;          \draw[->,out=90,in=-90,looseness=1, draw=blue]  (rochas.north) to node[midway, above, sloped] {Vulcanism and weathering} (atmosfera.south) ;          \draw[->,out=90,in=120,looseness=1, draw=blue]  (rochas.south east) to node[midway, above, sloped] {$10^{15}$} (oceano.north west) ;          \draw[->,out=.120,in=-60,looseness=1, draw=blue]  (oceano.south) to node[midway, above, sloped] {Sedimentation} (rochas.west) ;          \draw[->,out=-90,in=90,looseness=1, draw=blue]  (atmosfera.south) to node[midway, above, sloped] {Solution} (oceano.north) ;          \draw[->,out=90,in=0,looseness=1, draw=blue]  (oceano.east) to node[midway, above, sloped] {Evaporation} (atmosfera.east) ;     \end{tikzpicture}     \end{document}


title: Minitoc with two column content

text: I have a question regarding `\minitoc`, I want to change the layout for `\minitoc` inside my MSc thesis. The document is written using a single column, but I want to have the content within the `\minitoc` in two columns (I think is more elegant than in one). I'll create an ASCII example for you:               CHAPTER 1          INTRODUCTION     ________________________________________     1.1 aims               1.3 bla bla          1.2 background         1.4 bla bla     ________________________________________      I guess it's possible because I saw that before, but I'm getting crazy trying to find how to do that.


title: Triangular numbers in TikZ

text: I need to draw an image of the first three triangular numbers inscribed in a square. ![The first three triangular numbers](http://i.stack.imgur.com/MFjhN.png) Now, I have two problems constructing this image.   * Construct the circles perfectly centered   * The shading It is acceptable to answer only my first question (in order to correspond to the one question, one post policy) although I would be glad if someone answered both. Now I have no minimal example, but in order to construct this image any packages would suffice, although my preference is for TikZ. I am using a variety of packages, although I doubt any of them would interfere in the construction of this image.   * Does anyone have any tips or suggestions for how to construct the first `n` triangular numbers inside a square (with "correct" shading)?


title: beamer: Text indentation within blocks

text: I want text indentation within blocks. My MWE is below:               \documentclass{beamer}     \usetheme{Warsaw}     \usepackage[english]{babel}     \usepackage{lipsum}          % For global Justification     \usepackage{ragged2e}     \justifying     \renewcommand{\raggedright}{\leftskip=0pt \rightskip=0pt plus 0cm}     \addtobeamertemplate{block begin}{}{\justifying}               \begin{document}          \footnotesize     \begin{frame}{Test Frame}          \begin{block}{Test Block}          \lipsum[1]          \lipsum[6]          \end{block}          \end{frame}          \end{document}      ![enter image description here](http://i.stack.imgur.com/NFzfZ.png) Any help will be highly appreciated. Thanks


title: Efficient way to write bibliography in a short article

text: Do one have to write every entry of the bibliography manually or is there a short way to find the reference to a certain book? I'm aware that (never done it though) one can download references from phys.journal etc but what if the reference you want to enter into your bibliography does not exist in phys.journal etc, do you have to put it in manually or can one for instance get it from Amazon where they sell the book in question?


title: Which languages defined in babel repeat hyphen at start of line after hyphenation?

text: Babel (v3.9k) states that: > `\babelhyphen{repeat}` inserts a hard hyphen which is repeated at the > beginning of the next line, as done in languages like Polish, Portuguese and > Spanish. I checked the definition of these languages and only Spanish has a shortcut for a hyphen that is repeated. I know that Basque and Czech have this feature with something similar to `\discretionary{-}{\char\hyphenchar\the\font}{-}\nobreak\hskip\z@}`.   * Does any other language use this feature?   * Is there any other language that has the tradition/rule to repeat the hyphen?


title: TikZ/Pgfplots - Restrict error bars to domain

text: I would like to create a plot with error bars in which y is restricted to a given domain. Unfortunately, `restrict y to domain` does not seem to work with error bars.               \documentclass{article}     \usepackage{pgfplots}     \usepackage[latin1]{inputenc}     \usepackage[ngerman]{babel}     \pgfplotsset{compat=newest}          \pagestyle{empty}          \begin{document}     \begin{tikzpicture}     \begin{axis}[     scaled ticks=false,     width = 0.9\linewidth,     height = 0.5562\linewidth,     xlabel={\footnotesize Testinstanzen},     ylabel={\footnotesize relative Abweichung},     xtick=\empty,     yticklabel={\footnotesize ~\pgfmathparse{\tick*100}\pgfmathprintnumber{\pgfmathresult}\%}     ]          \addplot+[only marks,     color = blue,     mark = *,     mark options={fill=blue},     mark size = 1.5,     error bars/.cd,     error bar style={color=blue},     y dir = both,     y explicit,     x dir = none]     table[x index={0},y index={1}, y error plus index ={2}, y error minus index ={3}]plots/data/data.dat};       \end{axis}     \end{tikzpicture}     \end{document}      This code creates the following plot: ![plot where y is not restricted](http://i.stack.imgur.com/tGYkz.jpg) I would like to restrict y from 0% to 1%, so that the error bars are easier to recongnize. The long error bar at the fourth dot should end at the very top of the plot to indicate that the corresponding value is even higher than 1%. Thank you very much for your help! Example data file "data.dat":               0   0.0274  0.0775  0.0274     1   0.0275  0.0386  0.0271     2   0.0274  0.0407  0.0274     3   0.0260  0.0570  0.0247     4   0.0297  0.0560  0.0248     5   0.0465  0.1102  0.0405     6   0.0371  0.0808  0.0371     7   0.0381  0.0471  0.0337     8   0.0267  0.0387  0.0234     9   0.0247  0.0274  0.0247


title: Recommended resolution (dpi) for \includeimage pics (pdflatex)

text: I designed a newsletter using a logo and a topbanner, 2 pages. It is to be send by mail (A4-paper) and by e-mail (pdf). As usual, I used 300dpi for my graphics. The result is 1.2M in size, which is on the limit for some recipients. Is 300dpi too much? Is there a certein resolution pdflatex uses to scale an image to let's say 5cm? Any experiences, what resolution is good for both, on screen reading and printout? (Home laserprinter)


title: How to orientate a pgfplot 3D plot

text: I am trying to plot a spiral such that it is orientated as shown in the rough sketch. The spiral is coming out of the screen. ![enter image description here](http://i.stack.imgur.com/LOLqM.png) The script below yields the diagram shown at the end, but whatever I do I cannot seem to get the orientations as shown above. Looking at the pgfplot manual am I correct in thinking that I can only rotate about the z axis and vertically up and down? Any suggestions?               \begin{tikzpicture}     \begin{axis}[view={60}{30},     axis lines=center,axis on top,     zmin=0, zmax=8,     xmin=-2,xmax=2,     ymin=-2,ymax=2,     width=6cm,height=6cm]     \addplot3+[no markers,line width=2pt,color=orange,domain=0:10*pi,samples=80,samples y=0]       ({sin(deg(x))},        {cos(deg(x))},        {2*x/(5*pi)});     \end{axis}     \end{tikzpicture}      ![enter image description here](http://i.stack.imgur.com/TwNt7.png)


title: Accidentally Converted Latex into Binary

text: My `.tex` file, I'm pretty sure has become a binary file. It begins with this:               \%PDF-1.5     \%ÐÔÅØ     6 0 obj <<     /Length 1662           /Filter /FlateDecode     >>     stream      and there's a lot of odd symbols. I'm using TeXstudio to compile my documents and when I click the 'view' button I get the document as it looked previously so I'm assuming all the data is still there, but is there any way to get this back into a latex form so I can continue actually using it, or do I have to begin from scratch?


title: Collaborating with the non-TeX-savvy

text: What tips do you have for collaborating on a LaTeX document with people who may not be as TeX savvy as you? For one example and potential problem case: Consider you have a set of new commands and style files you use and normally keep in your own personal style file:               \NeedsTeXFormat{LaTeX2e}     \ProvidesPackage{jhwmath}     \RequirePackage{amsmath}     \RequirePackage{mathtools}     \newcommand{\bvec}{\mathbf}     \DeclarePairedDelimiter\inp{(}{)}     \newcommand{\rdf}[3][\!]{\frac{\rd^{#1} #2}{\rd #3^{#1}}}     % ... etc.      What do you do with them? Do you include the style file? Do you put it in the preamble of your file? Do you forgo the `\newcommand`'s for just writing out the TeX? Why? I'm looking for a way to effectively and efficiency collaborate with non-TeX- savvy while sacrificing the least amount of my own LaTeX customizations and style file choices. What is reasonable to expect from TeX collaborators and what is not?


title: seeking bibtool for Windows binary

text: For a book, I need to be able to extract the cited references from a number of .bib files to make a single .bib containing only those cited. For this task, I find bibtool extremely useful on linux, but am unable to use it on Windows (XP, 32 bit), because it is only distributed as C source, and I am unable to compile it, lacking the necessary compiler tools. I've tried several times, but keep running into errors I can't resolve. The author steadfastly refuses to make compiled binaries available, so I wonder if some kind soul would compile it for Windows and make the binary available somewhere, perhaps on CTAN or some other web location.


title: modify a copy of cmsy with fontforge and use it

text: I tried to modify a copy of cmsy10, by renaming it. My aim is to insert a external glyph from another font family (e.g euler). With fontforge tools, I created the font and inserted it into my local tree. When I tried to use it (in Plain TeX) the log said that there weren't sufficient symbols. I've inserted correctly the new font and created a map file too. In addition, TeX seems to recognize it because it creates correctly its font table. However, it does not work as symbol font family. Right now, I think there are two possible aspects: I did something wrong during the customization with fontforge, or TeX does not allow so easily to insert a new font for the symbols. Is it right?


title: Clash between aligned environment and TikZ?

text: The following code mis-renders the multi-line label:               \documentclass{article}     \usepackage{tikz}     \usepackage{amsmath}     \begin{document}     \begin{equation}     \begin{aligned}     \begin{tikzpicture}     \node (A) at (0,0) {A};     \node (B) at (0,2) {B};     \draw (A) to node [anchor=east, align=right] {my\\multi-line\\label} (B);     \end{tikzpicture}     \end{aligned}     \end{equation}     \end{document}       It's all the fault of the `aligned` environment - which, however, is necessary to get the equation number to typeset in the proper place with respect to the diagram. So: is this a weird interaction bug? Can it be solved? Or is there a hack that just lets me align my picture using a different method to avoid this strange issue? Or perhaps my TikZ is buggy, or this isn't the correct way to do multi- line labels. Screenshot with code as above: ![screenshot with code as given](http://i.stack.imgur.com/vtRIi.jpg) Screenshot without aligned environment: ![screenshot without aligned environment](http://i.stack.imgur.com/7UZTT.jpg)


title: XeLaTeX Double closed path integral?

text: How can I write a double closed path integral? I have searched and I have found only single closed loop integral.


title: Move sidecap images to the end of the document

text: I'm trying to move all the figures to the end of my document, so I can judge its length based on text alone (My undergraduate thesis has to be no more then 20 pages, not counting figures). I've been doing this by loading               \usepackage[nofiglist,notablist]{endfloat}      But this only moves normal figures, not SCfigures from sidecap, which I make extensive use of. Is there a way I could get them to all move to the end of the document easily?


title: How to use the IEEEtran.bst style?

text:
I apologize in advance for the localized content and long error log in this question. I am writing a journal paper using the IEEE template. I made a minimal example to demonstrate my problems with the **IEEEtran.bst** style:               \documentclass[journal, a4paper]{IEEEtran}          \begin{document}          \section{Introduction}          Citation \cite{IEEEhowto:article_typical}          \bibliographystyle{IEEEtran}          \bibliography{IEEEabrv,IEEEexample}          \end{document}      When I run **BibTex** on this source I get errors such as:               *****     *****     BibTeX output:      *****     cd "/home/martin/My articles/Minimum_example"     *****     bibtex example     *****     This is BibTeX, Version 0.99d (TeX Live 2012/Debian)     The top-level auxiliary file: example.aux     The style file: IEEEtran.bst     "<" can't start a style-file command---line 2 of file IEEEtran.bst      :       :      (Error may have been on previous line)     < is an unknown function---line 584 of file IEEEtran.bst     > is an unknown function---line 585 of file IEEEtran.bst     > is an unknown function---line 591 of file IEEEtran.bst     > is an unknown function---line 618 of file IEEEtran.bst     < is an unknown function---line 768 of file IEEEtran.bst     > is an unknown function---line 776 of file IEEEtran.bst     > is an unknown function---line 1161 of file IEEEtran.bst     > is an unknown function---line 1241 of file IEEEtran.bst     > is an unknown function---line 1247 of file IEEEtran.bst     > is an unknown function---line 1249 of file IEEEtran.bst     > is an unknown function---line 1256 of file IEEEtran.bst     > is an unknown function---line 1264 of file IEEEtran.bst     > is an unknown function---line 2386 of file IEEEtran.bst     Database file #1: IEEEabrv.bib     Database file #2: IEEEexample.bib     -- IEEEtran.bst version 1.13 (2008/09/30) by Michael Shell.     -- http://www.michaelshell.org/tex/ieeetran/bibtex/     -- See the "IEEEtran_bst_HOWTO.pdf" manual for usage information.     ptr=1, stack=     500     ---the literal stack isn't empty for entry IEEEexample:article_typical     while executing---line 2418 of file IEEEtran.bst     4 is an integer literal, not a string or missing field, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     4 is an integer literal, not a string, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     2 is an integer literal, not a string or missing field, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     2 is an integer literal, not a string or missing field, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     2 is an integer literal, not a string, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     0 is an integer literal, not a string, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     0 is an integer literal, not a string, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     0 is an integer literal, not a string, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     0 is an integer literal, not a string, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     0 is an integer literal, not a string, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     0 is an integer literal, not a string, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     0 is an integer literal, not a string, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     0 is an integer literal, not a string or missing field, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     0 is an integer literal, not a string or missing field, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     0 is an integer literal, not a string, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     53 is an integer literal, not a string, for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst     ptr=16, stack=          54          57          45          53          55          49          pp.     20     \emph{{IEEE} Electron Device Lett.}     ---the literal stack isn't empty for entry IEEEexample:article_typical     while executing---line 2421 of file IEEEtran.bst          Done.     "<" can't start a style-file command---line 2428 of file IEEEtran.bst      :       :
     (Error may have been on previous line)     (There were 33 error messages)      When I compile the document with **pdflatex regardless of this error** , I get a wrong output. The names of multiple authors are separated by "and" instead of commas and there is information missing: **Incorrect (actual):** ![enter image description here](http://i.stack.imgur.com/Ig0rO.png) **Correct** ![enter image description here](http://i.stack.imgur.com/Su1Tq.png) How can I repair this? What am I doing wrong?


title: Is there a way to sort a numbered list automatically?

text: > **Possible Duplicate:**   >  How to sort an alphanumeric list For example, I have the following code:               \begin{enumerate}       \item Rabbit       \item Apple       \item Serpent     \end{enumerate}      Is there a way to add something to this and get a sorted, numbered list as output?


title: Resize integral evaluation limits

text: When I want to show evaluation of limits of an integral, I would type               \int_1^2 x\; dx=\frac{x^2}{2}|_1^2=4-\frac{1}{2}=\frac{7}{2}       How do I get the vertical bar showing the limits big enough? I have found `\bigg` and `\Big` but I would like it to autosize like `\left`. It seems harder because there isn't a left side to figure out what is inside. I tried `\left<SPACE>` and `\right \mid`, but didn't find success.


title: Place quotation (dictum) in a box

text: ## Background Looking to change the appearance of quotations at the start of each Chapter (or Part). The book is using KOMA Script v2. (Most searches for the `quote` command come back with results for typesetting quotation marks, rather than aphorisms.) ## Problem Currently, the quotation resembles: ![enter image description here](http://i.stack.imgur.com/TezBi.png) Am looking for something similar to: > Good code is short, simple, and symmetrical -- the challenge is figuring out > how to get there. ~Sean Parent (A double line border, a background colour, but using a serif font with the author name right-justified.) ## Source Code The quotation is defined as follows:               \setchapterpreamble{\dictum[Sean Parent]{Good code...}}      I have altered the style of the dictum settings as follows:               \renewcommand*{\dictumwidth}{.75\textwidth}     \renewcommand*{\dictumauthorformat}[1]{\textsc{#1}\bigskip}      ## Questions   * What packages allow such fine control over quotations (or `quote`s)? (Neither fncychap nor quotchap offer sufficient sophistication.)   * How can the aphorism be placed in a `\colorbox`? (Using `\dictumtext`?)   * What is a good way to add double lines to the box? ## Related   * Suggestions on how to place a sentence of text inside a box with a border around it


title: Distinction between number and dimension in tikz key-value interface

text: When declaring shapes, I usually define the desired shape width with:               minimum width = <number> <measure units>      However, sometimes, I calculate calculate the shape's width separately. In that case, one should use               minimum width = <length>      My questions is: is it possible, in `tikz`, to preset shape parameters such that it be automatically assigned a `minimum width` regardless of whether it be specified as a number or as a length? The following MWE, I hope, will clarify my question.               \documentclass[tikz,border=5mm]{standalone}     \usetikzlibrary{calc,positioning}          \begin{document}         \begin{tikzpicture}[node distance=7mm and 0mm,     N/.style 2 args = {name=n#1,                        minimum width=#2 mm,%<-- how to change this declaration in a wex                                            %    when #2 contain length, the following                                            %    units  (mm) are omitted?                        shape=rectangle, draw},                             ]         \node[N={1}{22}]                    {node 1};     \dimendef\nodewidth=0     \pgfmathsetlength{\nodewidth}{22 mm}     %    \node[N={2}{\nodewidth},% <-- this gives expected error!         \node[N={2}{},minimum width=\nodewidth,% <--- this is little bit inconvenient               below right=of n1.south west] {node 2};     %-------         \end{tikzpicture}     \end{document}      I imagine that some test on `#2` should be performed when the `minimum width` is preset, but I do not know how to do this.


title: lowtilde option for URL package

text: [edited to correct confusion over paths] My Mac version of latex includes two versions of `url.sty` --- one is from 2006 and supports `[lowtilde]` while the other is from 1999 and does not:               $ grep 'ver ' /usr/local/texlive/2011/texmf/tex/latex/html/url.sty     % url.sty  ver 1.4    02-Mar-1999   Donald Arseneau   asnd@triumf.ca       \ProvidesPackage{url}[1999/03/02 \space ver 1.4 \space     % url.sty  ver 1.4   02-Mar-1999   Donald Arseneau   asnd@reg.triumf.ca     % characters.  The "\url" command will *never ever* hyphenate words.     % command follows whatever the currently-set style dictates.     % I.e., using whatever url-style has been selected.     % ver 1.1 6-Feb-1996:      % ver 1.2 19-Oct-1996:     % ver 1.3 21-Jul-1997:     % ver 1.4 02-Mar-1999     $ grep 'ver '  /usr/local/texlive/2011/texmf-dist/tex/latex/url/url.sty     % url.sty  ver 3.3    12-Apr-2006   Donald Arseneau   asnd@triumf.ca      {url}[2006/04/12 \space ver 3.3 \space Verb mode for urls, etc.]     % url.sty  ver 3.3    12-Apr-2006   Donald Arseneau   asnd@triumf.ca     % characters.  The "\url" command will *never ever* hyphenate words.     % command follows whatever the currently-set style dictates.     % I.e., using whatever "\urlstyle" and other settings are already in effect.     % ver 1.1 6-Feb-1996:     % ver 1.2 19-Oct-1996:     % ver 1.3 21-Jul-1997:     % ver 1.4 02-Mar-1999:     % ver 1.5 28-Mar-1999:     % ver 1.6 20-Jun-2002:     % ver 3.0 June 2003/Nov 2003:     % ver 3.1 Mar 2004:     % ver 3.2 June 2005:     % ver 3.3 April 2006:     $       Why are two versions installed and how to I specify the correct version?


title: Vertically Aligning or Locking Text in Beamer Presentation

text: I understand that by using overlays in a `beamer` presentation, one is able to lock text within a frame, and continue to display other items without affecting the position of the previous item(s) being displayed. What I want to do, however, is to replace one particular overlay with another, without affecting the position of the previous overlays that are being displayed. I am not quite sure how to do this. The best that I have been able to come up with is in the following sample of code, where I am trying to preserve the position of the definition and the matrix in separate slides.               \documentclass[11pt,xcolor=pdftex,dvipsnames,table]{beamer}          \usepackage{multirow}     \usepackage{beamerthemesplit}     \usetheme{Berkeley}     \usecolortheme{dolphin}     \usepackage{graphicx}     \usepackage{epsf}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}          \title[Short Title]{Longer Presentation Title}     \author[John Doe]{John Doe}     \institute{University of Nowhere}     \date{July 7, 2011}          \begin{document}          \maketitle          \begin{frame}       \frametitle{Introduction}       \setbeamercovered{dynamic}       \framesubtitle{Definitions (Cont...)}         \textit{Definition 5:} If $A$ is an $m \times n$ matrix, $I$ is a subset of $\{1, ..., m\}$ with $k$ elements, and $J$ is a subset of $\{1, ..., n\}$ with $k$ elements, then the matrix for the $k \times k$ minor of $A$ that corresponds to the rows with index in $I$ and the columns with index in $J$, is written as $[A]_{I,J}$. \pause         \newline         \newline         If $I = J$, then $[A]_{I,J}$ is called a \textit{principal minor}.         \newline         \newline         \[A =           \left(             \begin{array}{rrr}               \multicolumn{1}{r}{1} & \multicolumn{1}{r}{4} & \multicolumn{1}{r}{7} \\               \cline{2-3}               \multicolumn{1}{r}{3} & \multicolumn{1}{|r}{0} & \multicolumn{1}{r|}{5} \\               \multicolumn{1}{r}{-1} & \multicolumn{1}{|r}{9} & \multicolumn{1}{r|}{11} \\               \cline{2-3}             \end{array}           \right), \mbox{~where~} I = \{2, 3\} \mbox{~and~} J = \{2,3\}         \]     \end{frame}          \begin{frame}       \frametitle{Introduction}       \setbeamercovered{dynamic}       \framesubtitle{Definitions (Cont...)}         \textit{Definition 5:} If $A$ is an $m \times n$ matrix, $I$ is a subset of $\{1, ..., m\}$ with $k$ elements, and $J$ is a subset of $\{1, ..., n\}$ with $k$ elements, then the matrix for the $k \times k$ minor of $A$ that corresponds to the rows with index in $I$ and the columns with index in $J$, is written as $[A]_{I,J}$.         \newline         \newline         If the matrix consists of elements in rows and columns from $1$ to $k$, then the principal minor is called a \textit{leading principal minor}.         \[A =           \left(             \begin{array}{rrr}               \cline{1-2}               \multicolumn{1}{|r}{1} & \multicolumn{1}{r|}{4} & \multicolumn{1}{r}{7} \\               \multicolumn{1}{|r}{3} & \multicolumn{1}{r|}{0} & \multicolumn{1}{r}{5} \\               \cline{1-2}               \multicolumn{1}{r}{-1} & \multicolumn{1}{r}{9} & \multicolumn{1}{r}{11} \\             \end{array}           \right), \mbox{~where~} I = \{1,2\} \mbox{~and~} J = \{1,2\}         \]     \end{frame}          \end{document}      Any help/suggestions on how I can do this would be appreciated.


title: Tweaking Biblatex-chicago citation format

text: I'm hoping this hasn't been asked elsewhere already; if so, I apologize. My issue is that I am trying to format my dissertation using Chicago style (biblatex-chicago). I am using XeLaTeX + polyglossia for ancient Greek text, if that helps (yet it's not particularly important for the issue at hand). Chicago style has worked fine overall, yet I need to follow the style of a particular journal for my citations. Here's a sample from my BibLaTeX .bib file:               @BOOK{WIngram80,       title = {Sophocles: {A}n {I}nterpretation},       publisher = {Cambridge University Press},       year = {1980},       author = {Winnington-Ingram, R. P.},       address = {Cambridge}     }      Here is how I'm calling BibLaTeX in my .tex file: `\usepackage[authordate,backend=biber]{biblatex-chicago}` Biblatex-chicago formats citations as such: Input: `See \textcite[120]{WIngram80}` Output: See Winnington-Ingram (1980, 120) I need to format it like this: See Winnington-Ingram (1980) 120. Otherwise, the journal I'm using works with Chicago style, except for in-text citations. Citations without page numbers work fine, i.e., "Winnington-Ingram (1980)" -- but I'd like to fix this issue, hopefully with \textcite at the very least. Also, I need to retain the date in parentheses even within parenthetical citations (i.e., \parencite), so an output of `\parencite[120]{WIngram80}` should be: "(Winnington-Ingram (1980) 120)" Let me know if you need any other information. Thanks very much in advance! ** EDIT: Thank you Moewe, your suggestions worked beautifully! I have a couple of other questions on formatting, mostly with regard to hyperref, but they are germane to this discussion as well. When I use \textcite with a page number or other reference argument, I'd like to have both the last name and the date hyperlinked; the page is unimportant. While this works just fine for \footcite, if I am using \textcite in a footnote with other information, like so: `\footnote{See \textcite[78]{Vernant}. The French translation is my own.}` The output is: See Vernant ( **1977** ) 78. The French translation is my own. (I'm using **bold** to indicate where the link occurs here) I'd prefer it to be: See **Vernant (1977)** 78. The French translation is my own. I'm not sure if this is possible, but it works perfectly like this with `\footcite`, if the footnote needs nothing other than the citation. Input: `\footcite[See][218]{Barfield}` Output: See **Barfield (1988)** 218. I have detailed footnotes here and there with text citations and other commentary, and above all I would like to keep things consistent, especially with hyperlinks. The editorial office is known for being fairly strict about these things, so I want to make sure to keep it all uniform. Thanks again for your help moewe! ** edit: I realized that I forgot to mention some other patches I collected to help with hyperref support:               \DeclareFieldFormat{citehyperref}{%     \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links     \bibhyperref{#1}}          \DeclareFieldFormat{textcitehyperref}{%       \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links       \bibhyperref{%       #1%     \ifbool{cbx:parens}       {\bibcloseparen\global\boolfalse{cbx:parens}}       {}}}          \savebibmacro{cite}     \savebibmacro{textcite}          \renewbibmacro*{cite}{%       \printtext[citehyperref]{%       \restorebibmacro{cite}%       \usebibmacro{cite}}}          \renewbibmacro*{textcite}{%       \ifboolexpr{         ( not test {\iffieldundef{prenote}} and            test {\ifnumequal{\value{citecount}}{1}} )         or         ( not test {\iffieldundef{postnote}} and            test {\ifnumequal{\value{citecount}}{\value{citetotal}}} )     }     {\DeclareFieldAlias{textcitehyperref}{noformat}}     {}%       \printtext[textcitehyperref]{%       \restorebibmacro{textcite}%       \usebibmacro{textcite}}}      I came across that snippet, and I'm not sure how it affects a possible solution, if at all. Sorry for not mentioning that before.


title: Datatool control precision

text: How can I bring down the number of decimal points in following code to only 2:               \documentclass{article}     \usepackage{datatool}          \begin{filecontents*}{test2.csv}       Name, Age, stDev       Adam, 17.2344, 3.23333     \end{filecontents*}          \DTLloaddb{mydata2}{test2.csv}          \begin{document}          \begin{tabular}{ll}       \bfseries Name & \bfseries Age%       \DTLforeach{mydata2}{\Name=Name,\Age=Age,\stDev=stDev}%         {%         \\\Name & $\Age\pm\stDev$         }%     \end{tabular}          \end{document}


title: Change line numbering in algorithmics package

text: I would like to start the line numbering of the following code not from 1 but from 12 (as it is cut out of a larger code). So it should be 12,13,14,15 instead of 1,2,3,4.               \documentclass{article}     \usepackage{algorithm}     \usepackage[noend]{algpseudocode}     \begin{document}          \begin{algorithm}[h]       \begin{algorithmic}[1]         \If{$(w,s')$ not in $Q$}                      \Comment{insert}           \State $k(w,s')  \gets d_{r}(w,s') + \pi_{w,s'}$         \Else                                        \Comment{decrease}           \State $k(w,s') \gets d_{r}(w,s')+ \pi_{w,s'}$         \EndIf       \end{algorithmic}     \end{algorithm}          \end{document}      ![enter image description here](http://i.stack.imgur.com/flbQQ.png)


title: How to stop nomencl using the page headers of the previous section

text: In this example the second page of the nomenclature is entitled list of tables, inheriting it's title from the previous section. How do I change the title of the second page to nomenclature?               \documentclass[oneside,12pt]{book}     \usepackage{makeidx}             \usepackage{nomencl}     \makenomenclature          \begin{document}     \frontmatter     \listoftables     \printnomenclature            \mainmatter % book mode only          \chapter{Introduction}     Introduction          \nomenclature[]{FOO1}{bar1}     \nomenclature[]{FOO2}{bar2}     \nomenclature[]{FOO3}{bar3}     \nomenclature[]{FOO4}{bar4}     \nomenclature[]{FOO5}{bar5}     \nomenclature[]{FOO6}{bar6}     \nomenclature[]{FOO7}{bar7}     \nomenclature[]{FOO8}{bar8}     \nomenclature[]{FOO9}{bar9}     \nomenclature[]{FOO10}{bar10}     \nomenclature[]{FOO11}{bar11}     \nomenclature[]{FOO12}{bar12}     \nomenclature[]{FOO13}{bar13}     \nomenclature[]{FOO14}{bar14}     \nomenclature[]{FOO15}{bar15}     \nomenclature[]{FOO16}{bar16}     \nomenclature[]{FOO17}{bar17}     \nomenclature[]{FOO18}{bar18}     \nomenclature[]{FOO19}{bar19}     \nomenclature[]{FOO20}{bar20}     \nomenclature[]{FOO21}{bar21}     \nomenclature[]{FOO22}{bar22}     \nomenclature[]{FOO23}{bar23}     \nomenclature[]{FOO24}{bar24}     \nomenclature[]{FOO25}{bar25}     \nomenclature[]{FOO26}{bar26}     \nomenclature[]{FOO27}{bar27}     \nomenclature[]{FOO28}{bar28}     \nomenclature[]{FOO29}{bar29}     \nomenclature[]{FOO30}{bar30}          \end{document}      I compile my thesis with make, but compiling it with this oneliner compiles the example and replicates the problem               pdflatex ProblemNomenclature.tex && makeindex ProblemNomenclature.nlo -s nomencl.ist -o ProblemNomenclature.nls && pdflatex ProblemNomenclature.tex


title: tabu and space between columns

text: I have aproblem with column widths in tabu environment. I set dimensions of tables and columns. First columns should have the same width = 5cm, First and second table should have the same width = 19cm. But there is a significant shift = purple rectangle on an image. How can I fix it? I need to define total width of table and widths of columns. But i have no idea how:) So please help me               \documentclass[article, 12pt, oneside]{memoir}     \setstocksize{297mm}{210mm}     \settrimmedsize{297mm}{210mm}{*}     \settrims{0mm}{0mm}     \setlrmarginsandblock{10mm}{*}{1}     \setulmarginsandblock{20mm}{*}{1}     \checkandfixthelayout     \usepackage{polyglossia}     \usepackage{microtype}     \usepackage{fontspec}     \defaultfontfeatures{Ligatures=TeX}     \setmainfont{TeX Gyre Schola}     \usepackage{tabu}     \begin{document}     \begin{center}         \begin{tabu} to 19cm {|X[5cm,p,l]|X[11cm,p,l]X[3cm,p,r]|}             \multicolumn{3}{l}{ \textit{ \textls[100]{bla bla} } } \\             \toprule             bla bla                     & bla bla           & bla \\             bla bla                     & bla bla           & bla \\             bla bla                     & bla bla           & bla \\             bla bla                     & bla bla           & bla \\             bla bla                     & bla bla           & bla \\              \end{tabu}         \begin{tabu} to 19cm {|X[5cm,p,l]|X[14cm,p,l]|}             \addlinespace[1cm]             \multicolumn{2}{l}{ \textit{ \textls[100]{bla bla} } } \\             \toprule             bla bla & bla bla bla bla bla bla bla bla \\             bla bla & bla bla bla bla bla bla bla bla \\             bla bla & bla bla bla bla bla bla bla bla \\         \end{tabu}     \end{center}     \end{document}      ![enter image description here](http://i.stack.imgur.com/4N5uv.png)


title: Manual citation link with hyperref and natbib

text: When one want to do a manual hyperlink to a `\label` target one can use `\hyperref[label]{text}`. But what if one want to create a link pointing to an item in the bibliography, with a user defined text and the same color as `\cite` I would rather not have to use `\citealias` all over the place (which might be the right answer, but we are a bit late for that in this project) Any ideas?


title: tcolorbox - list of listings?

text: In a book with figures, tables and listings, I figured out that all listings and some tables and figures look better when presented in a tcolorbox. The book has the usual tables of contents:               \tableofcontents{}     \listoffigures{}     \listoftables{}     \lstlistoflistings{}      but tcolorboxes have their own headlines (and may define their own counters), so it seems redundant (and unattractive) to have the usual captions and labels for figures, tables and listings too. So my question is how to produce the lists of figures/tables/listings the reader expects after the ToC when   1. tcolorbox is used exclusively?   2. tcolorbox is used sometimes, while the plain listings package and regular table/figure environments are used in other cases? EDIT: Here is a MWE (adapted from T.F.Sturm) that has figures, tables and listings as well as a tcolorbox theorem and listing with a label and a counter. How do I make them appear in the ToC section in the beginning of the file?               \documentclass{article}     \usepackage{tikz}     \usepackage{here}     \usepackage[listings,theorems]{tcolorbox}     \tcbset{noparskip}     \begin{document}     \tableofcontents{}     \listoffigures{}     \listoftables{}     \lstlistoflistings{}     \pagebreak{}     %----------------------------------------------------------     \section{Colored boxes}          \begin{tcolorbox}[colback=red!5,colframe=red!75!black]       My box.     \end{tcolorbox}          \begin{tcolorbox}[colback=blue!5,colframe=blue!75!black,title=My title]       My box with my title.     \end{tcolorbox}          %----------------------------------------------------------     \section{\LaTeX-Examples}          \begin{tcblisting}{colback=red!5,colframe=red!75!black}     This is a \LaTeX\ example:     $\displaystyle\sum\limits_{i=1}^n i = \frac{n(n+1)}{2}$.     \end{tcblisting}           %----------------------------------------------------------     \section{Theorems}          \newcounter{mytheorem}[section]     \def\themytheorem{\thesection.\arabic{mytheorem}}          \tcbmaketheorem{theo}{Theorem}{fonttitle=\bfseries\upshape, fontupper=\slshape,          arc=0mm, colback=blue!5,colframe=blue!75!black}{mytheorem}{theorem}          \begin{theo}{Summation of Numbers}{summation}       For all natural number $n$ it holds:\\[2mm]       $\displaystyle\sum\limits_{i=1}^n i = \frac{n(n+1)}{2}$.     \end{theo}          We have given Theorem \ref{theorem:summation} on page \pageref{theorem:summation}.          \pagebreak{}     %----------------------------------------------------------          \section{Tables, Listings and Figures}     %----------------------------------------------------------     This is table 1     %----------------------------------------------------------          \begin{table}[H]       \centering       \begin{tabular}{ll}         Header1 & Header2 \\ \hline         Cell1 & Cell2 \\       \end{tabular}       \caption{My Table No1}       \label{tab:tab-1}     \end{table}       %----------------------------------------------------------     This is table 2           \begin{table}[H]       \centering       \begin{tabular}{ll}         Header3 & Header4 \\ \hline         Cell3 & Cell4 \\       \end{tabular}       \caption{My Table No2}       \label{tab:tab-1}     \end{table}          %----------------------------------------------------------     This is figure 1     %----------------------------------------------------------     \begin{figure}[H]       \centering     \begin{tikzpicture}         \draw (0,0) node {A} --               (2,0) node {B};     \end{tikzpicture}        \caption{Figure No1}       \label{fig:fig-1}     \end{figure}     %----------------------------------------------------------     This is figure 2     %----------------------------------------------------------     \begin{figure}[H]       \centering     \begin{tikzpicture}         \draw (0,0) node {C} --               (2,0) node {D};     \end{tikzpicture}        \caption{Figure No2}       \label{fig:fig-2}     \end{figure}          \begin{lstlisting}[caption={Java Logic 1},label=java1]     public class Main     {         public Main(String args[])         {             // Java logic in listing 1         }     }     \end{lstlisting}     %\label{code:Listing-1}          \begin{lstlisting}[caption={Java Logic 2},label=java2]     public class Main     {         public Main(String args[])         {             // More Java logic in listing 2         }     }     \end{lstlisting}     %\label{code:Listing-2}          \end{document}      Here is the output:   ![enter image description here](http://i.stack.imgur.com/x0MFb.png) ![enter image description here](http://i.stack.imgur.com/HBP72.png) ![enter image description here](http://i.stack.imgur.com/t0OZI.png)


title: Figure with caption within an itemize list not indenting correctly

text: I'm trying to put an image with a caption on it within an `itemize` environment (within another `itemize` environment). When I had the image with no caption, simply using `\includegraphics`, it indented to the same level as the other elements of the `itemize` list. However, when I wrapped it in a `figure` environment because I wanted a caption, it is indented to the left margin, completely sticking out of the list. Here's what I've got:               \begin{itemize}         \item Describing large-scale processor activity.              \item To discuss digital systems of this scale and level of complexity         we need a number of descriptive tools.              \item For example:                                                               \begin{itemize}             \item[a)] Circuit schematics highlight the circuit components and             their connectivity.                  \begin{figure}[h]                      \includegraphics[width=10cm{assets/fig001.png}                 \caption{Transfer from R1 to R2 whenK1=1}             \end{figure}             \item[b)] Timing diagrams highlight the detailed time sequence of             transfer between registers                  \includegraphics[width=10cm]{assets/fig002.png}              \end{itemize}     \end{itemize}      Here's the result: ![enter image description here](http://i.stack.imgur.com/iY0c9.png) I've tried `h`, `h!` and `H` in the `figure` positioning, but it stays exactly where it is. TL;DR: How can I have the first image here indented like the second, but with a caption?


title: beamer: How to play movies in their original size?

text: When using the `multimedia` package with the `beamer` class, you must specify the width and height of the movie like this:               \movie[width=8.0cm,height=8.0cm]{}{movie.avi}      The problem is that the video loses quality due to resizing. How do I make beamer show the video in its original size, i.e. the same size as when I play it in VLC or Media Player? I tried putting the size of the video in pixels like this:               \movie[width=600px,height=600px]{}{movie.avi}      But `beamer` displayed it much bigger than it should.


title: Size of lstlisting in subfig

text: For a paper, I have to present two code snippets that do the same thing to compare them. I started having them in two different figures, but now, I'm trying to have them side by side, and that's where the trouble starts. First of all, I couldn't seem to get listings to work in subfig.               \lstset{%     language=C,     frame=single,     numbers=left,     numberstyle=\footnotesize,     tabsize=2,     keepspaces=true,     columns=fullflexible,     basicstyle=\ttfamily,     keywordstyle=\color{blue}     }               \begin{figure}     \subfloat[small code]{%     \begin{lstlisting}     for(int i = 0 ; i < N ; i++)      for(int j = 0 ; j < N ; j++)       for(int k = 0 ; k < N ; k++)        c[i][j] += a[i][k] * b[k][j];     \end{lstlisting}     }     \hfill     \subfloat[Larger code]{%     \begin{lstlisting}     for(int ii = 0 ; ii < N ; ii+=B) {      for(int jj = 0 ; jj < N ; jj+=B) {       for(int kk = 0 ; kk < N ; kk+=B) {        for(int i = ii ; i < ii + B ; i++) {         for(int k = kk ; k < kk + B ; k++){          c_i = c[i];          a_ik = a[i][k];          b_k = b[k];          for(int j = jj ; j < jj + B ; j+=2){           c_i[j] += a_ik * b_k[j];           c_i[j+1] += a_ik * b_k[j+1];          }         }        }       }      }     }     \end{lstlisting}     }     \end{figure}      This, generates a score of errors that I can't make sense of. After browsing the web, I found that a lot of people seem to achieve what I want to do by including the source code from an external file.               \begin{figure}[!htb]     \subfloat[Toto]{%     \lstinputlisting{mm_base.c}%     }     \hfill     \subfloat[Tata]{%     \lstinputlisting{mm_opt.c}%     }     \end{figure}      By manually changing the fontsize, I can get the subfloats to be side by side, but I get the following result: ![Bad Frames](http://i.stack.imgur.com/SLvj4.png) The frame around the code and the perceived size of the content don't seem to match. Moreover, the code on the right hand side goes out of bound, the right frame goes off-page. The first thing I'd like to know, out of curiosity really, is why I can't use the lstlisting environment and only the lstinputlisting when inside a subfloat. And the more pressing matters, getting the frame to match the subfig's width. And the more challenging part maybe, automatically change the size of the code included to fit in the subfig.


title: Footnotes on the same line

text: For documents with a lot of footnotes, particularly if some are short, it can be nice to have multiple on the same line, e.g.: >   1. this is the first footnote 2. this is the second footnote 3. this if > the third footnote 4. finally, we begin to wrap around. > Rather than having it: >   1. First footnote >   2. Second footnote >   3. Etc. > Is there a way to achieve this in LaTeX? (This is not a duplicate of this question because I'm asking about regular full page environment.)


title: Modifying the headline width in Beamer Warsaw

text: I am using Beamer Warsaw for a presentation. I need to modify the headline and the footline, since the title of the work is very long. Therefore, for the footline the adjustment is:               \setbeamertemplate{footline}     {       \leavevmode%       \hbox{%       \begin{beamercolorbox}[wd=.25\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%         \usebeamerfont{author in head/foot}\insertshortauthor       \end{beamercolorbox}%       \begin{beamercolorbox}[wd=.75\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%         \usebeamerfont{title in head/foot}\insertshorttitle\hspace*{3em}       \end{beamercolorbox}}%       \vskip0pt%     }      While for the headline I do not know what I have to modify. I tried with:               \setbeamertemplate{headline}     {       \leavevmode%       \hbox{%       \begin{beamercolorbox}[wd=.25\paperwidth]{section in head/foot}%         \usebeamerfont{subsection in head/foot}\insertsectionhead       \end{beamercolorbox}%       \begin{beamercolorbox}[wd=.75\paperwidth]{subsection in head/foot}%         \usebeamerfont{section in head/foot}\insertsubsectionhead       \end{beamercolorbox}}%       \vskip0pt%     }      but obviously it does not work.


title: How to typeset mathematical symbols (with index, etc) always the same way and easily?

text: When I started to write my thesis I decided not to make things too complicated and to just type mathematical symbols each time they appear, like `$V_{s1}$` or `${CV_{D,\, \mathrm{Si}}^{*}}$` Now, finally I regretted and defined macros for each of them to   * avoid typing errors and typeset them always the same way   * make typing easier (by less characters to type and by being able to use the command completion feature of the editor. Like that:                \newcommand{\FZ}[1]{\textcolor{blue}{\ensuremath{#1}}\xspace}      \newcommand{\CvDSi}{\FZ{CV_{D,\, \mathrm{Si}}^{*}}}      \newcommand{\Vs}{\FZ{V_{\mathrm{s}1}}}      (the (missing) blue color will help me to see where something is still typset "by hand" and the blue text color surely will be removed for the final version). **Questions:** Is there a more elegant way to typeset complex mathematical symbols which have to be used 100 times in a thesis? Is there a way to automatically create a list (table) of those symbols, maybe even with a link to the equation/page where they are defined?   There was a post naming several possible solutions: List of mathematical notation / abbreviations. I never used an index in LaTeX yet - which one would be to prefer in my case?


title: PDFLATEX : Cover Page Image with No Margin

text: I'm creating exam paper using exam class as mentioned below:               \documentclass[a4paper,addpoints,answers,10pt]{exam}     \usepackage{tikz}     \usepackage{graphicx}     \usepackage{wallpaper}     \TileWallPaper{\paperwidth}{1\paperheight}{QPborder}     \begin{document}     \thispagestyle{empty}     \begin{figure}     \includegraphics[width=1.25\linewidth, height=1.15\textheight, keepaspectratio=true]{Std3Qpcover}     \end{figure}     \end{document}      Before Starting questions, I want to add image on the first page occupying full size of A4 page (without margin & wallpaper background). I tried many options already mentioned on the forum, but somehow nothing is working. Can you please suggest, how can I add full page Image without margin & border & background image?


title: Creating custom electronic components in TikZ

text: In Tikz there is an opportunity to draw logical gates,... I was wondering if it is possible (and easy) to make custom components, like a CMOS-transistor, a Multiplexer, flip-flop,... Perhaps these components also exists. However I was wondering how it is possible to make them myself. Additionally I have noticed you can of course define anchor points to these components. Like (AND.input 1). How are these anchors defined?


title: \addvspace can't replace \vspace

text: I want to replace `\vspace` with `\addvspace` in a command. When so doing, I get obtuse "something's wrong--perhaps a missing \item." errors. I'd appreciate an explanation of why this happens and how to fix my `\fieldinfo` command (shown below) to use `\addvspace`. I tried using `\protect\addvspace`, but that didn't work either. Thanks for any help!               \documentclass{book}          \usepackage{tabularx}          % addvspace instead of vspace fails!     \newcommand{\fieldinfo}[2]{\addvspace{\baselineskip}\noindent\begin{tabularx}{\linewidth}{p{0.25in}X}%             #1  &  #2 \\%     \end{tabularx} \\%     \addvspace{\baselineskip} \\ }%          \begin{document}     A, magna. Donec vehicula augue eu neque. Pellentesque habitant morbi     tristique senectus et netus et malesuada fames ac turpis egestas. Mauris.          \fieldinfo{A}{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus     tristique senectus et netus et malesuada fames ac turpis egestas. Mauris.}          \fieldinfo{B}{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus     tristique senectus et netus et malesuada fames ac turpis egestas. Mauris.}          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus     elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum.     \end{document}


title: Export to TikZ path in Inkscape

text: I'm currently using Inkscape 0.48.4 (64 bits) on Windows 8. I downloaded the inkscape2tikz extension, copied the three files on the lower left and put them in the `inkscape/share/extensions` directory. Everything so far so good. I even get everything right on the `Extension -> Export -> Export to TikZ path` menu, but and after I click on the `apply` button, I get this error: > Inkscape has received additional data from the script executed. The script > did not return an error, but this may indicate the results will not be as > expected.               Traceback (most recent call last):       File "tikz_export.py", line 1419, in <module>         main_inkscape()       File "tikz_export.py", line 1407, in main_inkscape         effect.affect()       File "C:\Program Files\Inkscape-0.48\share\extensions\inkex.py", line 216, in affect         if output: self.output()       File "tikz_export.py", line 1350, in output         f = codecs.open(self.options.outputfile, 'w', 'utf8')       File "C:\Program Files\Inkscape-0.48\python\Lib\codecs.py", line 881, in open         file = __builtin__.open(filename, mode, buffering)     IOError: [Errno 13] Permission denied: 'Myfilename'      Any ideas what might be wrong? Is this because of the extension or is it because of inkscape per se? Maybe it has to do something with it being 32 bits? Furthermore, I'm not able to locate the `.tex` file. It is not on the same folder as the extensions mentioned above, or as described in here. Actually, I couldn't find them at all. On the other hand, `saving as` TikZ works perfectly, but did I need to download the extensions to actually have this feature, or was it built-in and downloading the inkscape2tikz extension was a waste of time? **Side note** This all comes from here: Drawing Roman laurel leaves (SPQR) in TikZ


title: Setup Interstaste font in CygWin/TeX Live

text: I have some trouble to setup a font under Cygwin/TeX Live, any idea on how to solve that will be welcome. I setup a new Cygwin 1.7.x on a PC, it comes with TeX Live, and I try to install an additional font called "Interstate". That font is delivered as a `tar.gz` file, so I unpacked that file like below and got that file/folder struct.               $ tar -zxvf Interstate-fonts4-texlive.tar.gz          usr/share/     usr/share/texmf/     usr/share/texmf/fonts/     usr/share/texmf/fonts/enc/     usr/share/texmf/fonts/enc/dvips/     usr/share/texmf/fonts/enc/dvips/lcdftools/     usr/share/texmf/fonts/enc/dvips/lcdftools/a_2fwcon.enc     usr/share/texmf/fonts/enc/dvips/lcdftools/a_2mvdqo.enc     usr/share/texmf/fonts/enc/dvips/lcdftools/a_c353pt.enc     usr/share/texmf/fonts/enc/dvips/lcdftools/a_e7miqr.enc     usr/share/texmf/fonts/enc/dvips/lcdftools/a_phwclb.enc     usr/share/texmf/fonts/enc/dvips/lcdftools/a_xdkkoc.enc     usr/share/texmf/fonts/map/     usr/share/texmf/fonts/map/lcdftools/     usr/share/texmf/fonts/map/lcdftools/Interstate/     usr/share/texmf/fonts/map/lcdftools/Interstate/Interstate.map     usr/share/texmf/fonts/map/lcdftools/InterstateLight/     usr/share/texmf/fonts/map/lcdftools/InterstateLight/InterstateLight.map     usr/share/texmf/fonts/tfm/     usr/share/texmf/fonts/tfm/lcdftools/     usr/share/texmf/fonts/tfm/lcdftools/Interstate/     usr/share/texmf/fonts/tfm/lcdftools/Interstate/Interstate-Bold-tlf-ly1--base.tfm     usr/share/texmf/fonts/tfm/lcdftools/Interstate/Interstate-Bold-tlf-ly1--lcdfj.tfm     usr/share/texmf/fonts/tfm/lcdftools/Interstate/Interstate-Bold-tlf-ly1.tfm     usr/share/texmf/fonts/tfm/lcdftools/Interstate/Interstate-Bold-tlf-t1--base.tfm     usr/share/texmf/fonts/tfm/lcdftools/Interstate/Interstate-Bold-tlf-t1--lcdfj.tfm     usr/share/texmf/fonts/tfm/lcdftools/Interstate/Interstate-Bold-tlf-t1.tfm     usr/share/texmf/fonts/tfm/lcdftools/Interstate/Interstate-Bold-tlf-ts1--base.tfm     usr/share/texmf/fonts/tfm/lcdftools/Interstate/Interstate-Bold-tlf-ts1.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-Italic-tlf-ly1--base.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-Italic-tlf-ly1--lcdfj.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-Italic-tlf-ly1.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-Italic-tlf-t1--base.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-Italic-tlf-t1--lcdfj.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-Italic-tlf-t1.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-Italic-tlf-ts1--base.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-Italic-tlf-ts1.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-tlf-ly1--base.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-tlf-ly1--lcdfj.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-tlf-ly1.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-tlf-t1--base.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-tlf-t1--lcdfj.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-tlf-t1.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-tlf-ts1--base.tfm     usr/share/texmf/fonts/tfm/lcdftools/InterstateLight/Interstate-Light-tlf-ts1.tfm     usr/share/texmf/fonts/type1/     usr/share/texmf/fonts/type1/lcdftools/     usr/share/texmf/fonts/type1/lcdftools/Interstate/     usr/share/texmf/fonts/type1/lcdftools/Interstate/Interstate-Bold.pfb     usr/share/texmf/fonts/type1/lcdftools/Interstate/Interstate-BoldLCDFJ.pfb     usr/share/texmf/fonts/type1/lcdftools/InterstateLight/     usr/share/texmf/fonts/type1/lcdftools/InterstateLight/Interstate-Light-Italic.pfb     usr/share/texmf/fonts/type1/lcdftools/InterstateLight/Interstate-Light-ItalicLCDFJ.pfb     usr/share/texmf/fonts/type1/lcdftools/InterstateLight/Interstate-Light.pfb     usr/share/texmf/fonts/type1/lcdftools/InterstateLight/Interstate-LightLCDFJ.pfb     usr/share/texmf/fonts/vf/     usr/share/texmf/fonts/vf/lcdftools/     usr/share/texmf/fonts/vf/lcdftools/Interstate/     usr/share/texmf/fonts/vf/lcdftools/Interstate/Interstate-Bold-tlf-ly1.vf     usr/share/texmf/fonts/vf/lcdftools/Interstate/Interstate-Bold-tlf-t1.vf     usr/share/texmf/fonts/vf/lcdftools/Interstate/Interstate-Bold-tlf-ts1.vf     usr/share/texmf/fonts/vf/lcdftools/InterstateLight/     usr/share/texmf/fonts/vf/lcdftools/InterstateLight/Interstate-Light-Italic-tlf-ly1.vf     usr/share/texmf/fonts/vf/lcdftools/InterstateLight/Interstate-Light-Italic-tlf-t1.vf     usr/share/texmf/fonts/vf/lcdftools/InterstateLight/Interstate-Light-Italic-tlf-ts1.vf     usr/share/texmf/fonts/vf/lcdftools/InterstateLight/Interstate-Light-tlf-ly1.vf     usr/share/texmf/fonts/vf/lcdftools/InterstateLight/Interstate-Light-tlf-t1.vf     usr/share/texmf/fonts/vf/lcdftools/InterstateLight/Interstate-Light-tlf-ts1.vf     usr/share/texmf/tex/     usr/share/texmf/tex/latex/     usr/share/texmf/tex/latex/lcdftools/     usr/share/texmf/tex/latex/lcdftools/InterstateLight/     usr/share/texmf/tex/latex/lcdftools/InterstateLight/Interstate.sty     usr/share/texmf/tex/latex/lcdftools/InterstateLight/LY1Interstate-TLF.fd     usr/share/texmf/tex/latex/lcdftools/InterstateLight/T1Interstate-TLF.fd     usr/share/texmf/tex/latex/lcdftools/InterstateLight/TS1Interstate-TLF.fd      To finalize the font setup, i wrote a small script to run the command below, but it return an error message:                   mktexlsr: Updating /etc/texmf/ls-R...     mktexlsr: Updating /usr/share/texmf-dist/ls-R...     mktexlsr: Updating /usr/share/texmf-site/ls-R...     mktexlsr: Updating /var/lib/texmf/ls-R...     mktexlsr: Done.     updmap is using the following updmap.cfg files (in precedence order):       /etc/texmf/web2c/updmap.cfg     updmap is using the following updmap.cfg file for writing changes:       /home/abuisson/.config/texmf/web2c/updmap.cfg     Creating new config file /home/abuisson/.config/texmf/web2c/updmap.cfg     dvips output dir: "/home/abuisson/.cache/texmf/fonts/map/dvips/updmap"     pdftex output dir: "/home/abuisson/.cache/texmf/fonts/map/pdftex/updmap"     dvipdfmx output dir: "/home/abuisson/.cache/texmf/fonts/map/dvipdfmx/updmap"     pxdvi output dir: "/home/abuisson/.cache/texmf/fonts/map/pxdvi/updmap"          ERROR:  The following map file(s) couldn't be found:             Interstate.map (in /home/abuisson/.config/texmf/web2c/updmap.cfg)                  Did you run mktexlsr?                  You can disable non-existent map entries using the option               --syncwithtrees.      Below, the command I ran to get the error message.               # create texmf-site if non-existent     if [ ! -d /usr/share/texmf-site ];     then         mkdir /usr/share/texmf-site     fi          # update paths, including the new fonts     mktexlsr          # font installation     updmap --enable Map Interstate.map     updmap --enable Map InterstateLight.map


title: Dynamic feature of tikzpicture

text: I am using beamer to create a presentation. Suppose we have two functions $f$ and $g$ to be plotted in one picture. I want to make the following effect. First, the function $f$ is displayed, and after, let's say, 0.5 or 1 second, the function $g$ is displayed in the same picture, and the function $f$ now disappeared, that is, only the function $g$ is remained.               \begin{figure}[!htb]     \centering     \begin{tikzpicture}     \begin{axis}[grid=both,xmin=0,xmax=1,     xtick={0,1},     ymin=0,ymax=1,     ytick={0,1},     width=7cm]     \addplot[color=black,mark=none] table {function_f.txt};     \addplot[color=black,mark=none] table {function_g.txt};     \end{axis}      \end{tikzpicture}     \end{figure}      Suppose that the functions $f$ and $g$ are stored in the files function_f.txt and function_g.txt, respectively. Is there anyone know how to do this? Thanks a lot.


title: Tikz: Reproducing the figures made by tabular environment

text: I made the following three diagrams with `tabular` environment in `LaTeX`. * * * ![enter image description here](http://i.stack.imgur.com/CPK2K.png) * * * ![enter image description here](http://i.stack.imgur.com/qWgdH.png) * * * ![enter image description here](http://i.stack.imgur.com/yApfj.png) * * * Now I want to make these diagrams in `Tikz` ideally with animation and MWE is below:               \documentclass{standalone}     \usepackage[latin1]{inputenc}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows}          \begin{document}               % Define block styles     \tikzstyle{block} =          [             rectangle           , draw           , text width=4.5em           , text centered           , node distance=0.7cm           , minimum height=2em           ]          \tikzstyle{block1} =          [             rectangle           , text width=4.5em           , text centered           , node distance=1.5cm           , minimum height=2em           ]               \tikzstyle{line} =          [             draw          , -latex'          ]               \begin{tikzpicture}[node distance = 2cm, auto]            % Place nodes              \node [block] (A1R1B1) {$B_{1}$};         \node [block, below of=A1R1B1] (A1R1B2) {$B_{2}$};         \node [block, below of=A1R1B2] (A1R1B3) {\vdots};         \node [block, below of=A1R1B3] (A1R1Bb) {$B_{b}$};              \node [block, right of=A1R1B1] (A1R2B1) {$B_{1}$};         \node [block, right of=A1R1B2] (A1R2B2) {$B_{2}$};         \node [block, right of=A1R1B3] (A1R2B3) {\vdots};         \node [block, right of=A1R1Bb] (A1R2Bb) {$B_{b}$};                   \node [block1, right of=A1R1B1] (A1R3B1) {\ldots};         \node [block1, right of=A1R1B2] (A1R3B2) {\ldots};         \node [block1, right of=A1R1B3] (A1R3B3) {\ldots};         \node [block1, right of=A1R1Bb] (A1R3Bb) {\ldots};              \node [block, right of=A1R3B1] (A1RrB1) {$B_{1}$};         \node [block, right of=A1R3B2] (A1RrB2) {$B_{2}$};         \node [block, right of=A1R3B3] (A1RrB3) {\vdots};         \node [block, right of=A1R3Bb] (A1RrBb) {$B_{b}$};               \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/kX95s.png) Any help to get the desired results will be highly appreciated. Thanks


title: Bug with Tikz arrows.meta?

text: I am using the new Tikz `arrows.meta` library. Here is my minimum working example:               \documentclass{memoir}          \usepackage{pgfcore}     \usepackage{pgfplots}     \usetikzlibrary{arrows.meta}          \begin{document}     \begin{figure}[H]     \begin{tikzpicture}       \path (0, 0) edge [Latex-] (1, 0);     \end{tikzpicture}     \end{figure}     \end{document}      which gives               Missing character: There is no p in font nullfont!     Missing character: There is no t in font nullfont!


I am starting to use PSTricks a bit more, and have been looking at the `\psVolume` command defined in `pst-func` package. My problem is with Reverse Polish Notation. Is there an interpreter available that will convert infix to RPN?


title: LaTeX, qtree: Color and Animation for branches of a graph tree

text: I'm trying to do a `beamer` animation of a parse of a simple binary branching tree. I'd like to either use different colored branches and node labels to code the different steps of the parser and/or animate the parse. I don't know how to use `\pause` in the middle of a tree. Is that possible? If I try to just do separate frames for each stage of the tree, LaTeX automatically resizes everything, so one node takes up a huge space on slide one, but less on slide two when it's joined with its daughters ... so it looks weird. Not like a structure that's being built one step at a time. Any suggestions would be much appreciated!               {\Tree [.1 [.2 a ] [.3 [.4 b ] [.5 c ] ] ]}


title: Add a node above matrix column

text: I am trying to put symbols above and the columns of a matrix and also to the left of its rows. The following working example is basically, what I want, except, that the symbols are within the brackets. I would like to have them outside. Is there any way to accomplish this?               \documentclass{article}     \usepackage{pgfplots}     \usepackage{tikz}     \usetikzlibrary{matrix,shapes,positioning}          \begin{document}         $A=$%         \begin{tikzpicture}[baseline=(A.center)]         \matrix (A) [matrix of math nodes, ampersand replacement=\&,         left delimiter=(,right delimiter=)]          { {} \& {}  \& {}   \& {}   \& {} \\           {} \& 1   \& 2    \& 17   \& 3 \\           {} \& 4   \& 1    \& 24   \& 1 \\           {} \& 0   \& 0    \& 2    \& -0.9 \\           {} \& 0   \& 7    \& -0.95 \& 2 \\         };              \draw [black]  (A-1-2.west)  to (A-1-2.east);         \draw [black,dashed]  (A-1-3.west)  to (A-1-3.east);         \draw [black]  (A-1-4.west)--  plot[mark=square*, mark options={fill=black}] (A-1-4.center) -- (A-1-4.east);         \draw [black]  (A-1-5.west)--  plot[mark=triangle*, mark options={fill=black}] (A-1-5.center) -- (A-1-5.east);              \draw [black]  (A-2-1.west)  to (A-2-1.east);         \draw [black,dashed]  (A-3-1.west)  to (A-3-1.east);         \draw [black]  (A-4-1.west)--  plot[mark=square*, mark options={fill=black}] (A-4-1.center) -- (A-4-1.east);         \draw [black]  (A-5-1.west)--  plot[mark=triangle*, mark options={fill=black}] (A-5-1.center) -- (A-5-1.east);         \end{tikzpicture}%     \end{document}


title: Prevent space before publisher list in biblatex driver

text: I'm trying to write a custom driver for books (among other things), but I've run into a problem. My current output is:               HI Dutton, The Patent System and Inventive Activity During the Industrial Revolution 1750-1852( Manchester University Press, 1984)                                                                                ^^      The expected output is:               HI Dutton, The Patent System and Inventive Activity During the Industrial Revolution 1750-1852 (Manchester University Press, 1984)                                                                                ^^      I can't see what in the code is making the space appear after the bracket, although I'm new to biblatex so I'm probably specifying something incorrectly. My current code:               % Publishing information     \renewbibmacro*{publisher+edition+date}{%       (\printlist{publisher}%       \setunit*{\addcomma\space}%       \printfield{edition}%       \setunit*{\addcomma\space}%       \usebibmacro{date})%       \newunit}               \DeclareBibliographyDriver{book}{%       \usebibmacro{bibindex}%       \usebibmacro{author/editor}%       \setunit{\addcomma\space}\newblock%       \usebibmacro{maintitle+title}%       \setunit{\addspace}\newblock%       \usebibmacro{publisher+edition+date}}      That is based on existing code which I still don't entirely understand. I get that `\setunit{\addcomma\space}` puts in a space, but what's the difference between `\addspace` and `\space`? What does `\newblock` actually do? The manual isn't entirely clear. How should I be writing in constants (such as `(` and `)`)?


title: Tikz Procedure/Function like abstraction?

text: I am pretty new to `tikz` but, so I do understand the basics, however, I am truly confused on what's the best way to create a procedure like constructs: there seems to be so many mechanism, and I cannot work out which is best one. Here is an example drawing that I did. I could figure out LaTeX to make the code more concise and maintainable, but I am not sure which is best construct.               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{shapes.multipart}     \begin{document}          \tikzset{%         body/.style={inner sep=0pt,outer sep=0pt,shape=rectangle,draw,ultra thick,minimum height=0.5cm,anchor=south west},         dimen/.style={<->,>=latex,thin,         every rectangle node/.style={fill=white,midway}},         symmetry/.style={dashed,thin},     }          \begin{tikzpicture}[array/.style={     rectangle split,      rectangle split horizontal,     rectangle split parts=#1,      thick,draw,      anchor=center,     }]]          \node [array=10, align=center,,minimum width=\textwidth] at (0,0) (pool) {       \nodepart{one} \rotatebox{-90}{\begin{tabular}{ll}\textbf{\texttt{struct}}\\\texttt{Cons}\end{tabular}}       \nodepart{two} \rotatebox{-90}{\begin{tabular}{ll}\textbf{\texttt{struct}}\\\texttt{Cons}\end{tabular}}       \nodepart{three} $\cdots\cdots\cdots$       \nodepart{four} \rotatebox{-90}{\begin{tabular}{ll}\textbf{\texttt{struct}}\\\texttt{Cons}\end{tabular}}       \nodepart{five} $\cdots\cdots\cdots$       \nodepart{six} \rotatebox{-90}{\begin{tabular}{ll}\textbf{\texttt{struct}}\\\texttt{Cons}\end{tabular}}       \nodepart{seven} $\cdots\cdots\cdots$       \nodepart{eight} \rotatebox{-90}{\begin{tabular}{ll}\textbf{\texttt{struct}}\\\texttt{Cons}\end{tabular}}       \nodepart{nine} $\cdots\cdots\cdots$       \nodepart{ten} \rotatebox{-90}{\begin{tabular}{ll}\textbf{\texttt{struct}}\\\texttt{Cons}\end{tabular}}     };      \draw (pool.south west) -- ++(0,-1.5) coordinate (A1) -- ++(0,-5pt);      \draw (pool.south east) -- ++(0,-1.5) coordinate (A2) -- ++(0,-5pt);      \draw [dimen] (A1) -- (A2) node {$2^{\texttt{LG2\_POOLSIZE}} = 2^{14} = 16,384$};     \node (last) at (0,-1.5) {{\Large \emph{Pool of ``\textup{\texttt{\textbf{struct} Cons}}'' Records}}};          \node [body,minimum width=1cm] (last) at (-6,3.5) { \texttt{car} };      \draw (last.north west) -- ++(0,0.3) coordinate (A1) -- ++(0,5pt);      \draw (last.north east) -- ++(0,0.3) coordinate (A2) -- ++(0,5pt);      \draw [dimen] (A1) -- (A2) node {14b};     \draw[->] (last.south) --  (pool.one north);     \node [body,minimum width=1cm] (last) at (-5,2) { \texttt{cdr} };      \draw (last.north west) -- ++(0,0.3) coordinate (A1) -- ++(0,5pt);      \draw (last.north east) -- ++(0,0.3) coordinate (A2) -- ++(0,5pt);      \draw [dimen] (A1) -- (A2) node {14b};     \draw[->] (last.south) --  (pool.two north);     \node [body,minimum width=1cm] (last) at (-4,3.4) { \texttt{cdr} };      \draw (last.north west) -- ++(0,0.3) coordinate (A1) -- ++(0,5pt);      \draw (last.north east) -- ++(0,0.3) coordinate (A2) -- ++(0,5pt);      \draw [dimen] (A1) -- (A2) node {14b};     \draw[latex->] (last.south) --  (pool.four north);     \node [body,minimum width=1cm] (last) at (-2.5,3) { \texttt{cdr} };      \draw (last.north west) -- ++(0,0.3) coordinate (A1) -- ++(0,5pt);      \draw (last.north east) -- ++(0,0.3) coordinate (A2) -- ++(0,5pt);      \draw [dimen] (A1) -- (A2) node {14b};     \draw[->] (last.south) --  (pool.six north);     \node [body,minimum width=1cm] (last) at (0,2.5) { \texttt{car} };      \draw (last.north west) -- ++(0,0.3) coordinate (A1) -- ++(0,5pt);      \draw (last.north east) -- ++(0,0.3) coordinate (A2) -- ++(0,5pt);      \draw [dimen] (A1) -- (A2) node {14b};     \draw[->] (last.south) --  (pool.eight north);     \node [body,minimum width=1cm] (last) at (2,4) { \texttt{cdr} };      \draw (last.north west) -- ++(0,0.3) coordinate (A1) -- ++(0,5pt);      \draw (last.north east) -- ++(0,0.3) coordinate (A2) -- ++(0,5pt);      \draw [dimen] (A1) -- (A2) node {14b};     \draw[->] (last.south) --  (pool.ten north);     \node [body,minimum width=1cm] (last) at (5,2.5) { \texttt{car} };      \draw (last.north west) -- ++(0,0.3) coordinate (A1) -- ++(0,5pt);      \draw (last.north east) -- ++(0,0.3) coordinate (A2) -- ++(0,5pt);      \draw [dimen] (A1) -- (A2) node {14b};     \draw[->] (last.south) --  (pool.eight north);          \end{tikzpicture}     \end{document}      The output is attached; yes, I know it is not too pretty, but that's what I can do at this stage. My question is then: which abstraction constructs would you recommend for simplifying the above code? More generally, what's in the tikz/LaTeX toolbox and when should one use each of these tools? ![Output of the above program](http://i.stack.imgur.com/LZ6nx.jpg)


title: Inline todonotes: Full justification and page breaks?

text: I frequently use inline `\todo`s (from the famous `todonotes` package) to embed meta comments in my documents, e.g.:               \todo[inline,caption={}]{     Some notes:     \begin{itemize}     \item \lipsum[1-2]     \item \lipsum[1-2]     \item \lipsum[1-2]     \end{itemize}     }      Which gives the following result: ![Example](http://i.stack.imgur.com/mCsDD.png) My main question is: Is it possible to force full justification within a todo note? And a side question that just came up preparing the above example: Is it possible to have page breaks in a todo note?


title: Metafont Book - problems with gray.tfm and displaying "experiment 2"

text: I'm working through Knuth's Metafont Book as preparation for learning Metapost and I'm running into some problems working through his "experiments". I've installed the latest TeX Live 2013 distribution on my system but I'm having problems. Here's the code (contained in file io.mf as recommended by Knuth):               mode_setup;      em#:=10pt#; cap#:=7pt#;      thin#:=1/3pt#; thick#:=5/6pt#;      o#:=1/5pt#;     define_pixels(em,cap);     define_blacker_pixels(thin,thick);     define_corrected_pixels(o);      curve_sidebar=round 1/18em;     beginchar("O", 0.8em#, cap#, 0); "The letter O";      penpos1(thick,10); penpos2(.1[thin,thick],90-10);      penpos3(thick,180+10); penpos4(thin,270-10);      x1l=w-x3l=curve_sidebar; x2=x4=.5w;      y1=.49h; y2l=-o; y3=.51h; y4l=h+o;      penstroke z1e{down}..z2e{right}                 ..z3e{up}..z4e{left}..cycle;      penlabels(1,2,3,4); endchar;      Now, when running the `mf` command and loading this file, I get a window that is unfortunately empty. Supposedly a large letter "O" should appear.               $ mf     This is METAFONT, Version 2.718281 (TeX Live 2013)     **io     (io.mf     The letter O [79])     *end     Output written on io.2602gf (1 character, 1724 bytes).     Transcript written on io.log.          $ gftodvi io.2602gf      gftodvi: fatal: tfm file `gray.tfm' not found.      Then, when trying to use the `gftodvi` command I get the above error.   1. Any ideas why my "window" that should display the letter "O" is blank/empty?   2. How do I resolve the gray.tfm error?   3. Are the two related? Note: I'm using Ubuntu 14.04, but the TeXLive installation is NOT from the Ubuntu repository. I used the installer from http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz and created a local "portable" installation.


title: Resize a table imported from another TeX file

text: Is is possible to resize a table imported from another table without having to modify the LaTeX code in the file from which the table is imported? I was thinking of something like:               \documentclass[english]{article}     \usepackage{babel}     \usepackage{graphicx}     \usepackage[margin = 1.5 cm, tmargin=1.5 cm]{geometry}           \begin{document}          \scalebox{0.5}{%         \input{DS}       }%          \end{document}      The table in the file DS.tex looks like the following:               \begin{table}[!htpb]     \centering     \begin{tabular}{ccc}     % ...     \end{tabular}     \end{table}      I got as expected the error : ! LaTeX Error: Not in outer par mode. I would like to know whether it is possible to resize the table in DS file without modifying it.


title: How to remove the number of the page in latex?

text: I am a newbie in Latex. I know there are many manuals where I can learn how to use Latex but I am facing a problem I can't manage to solve simply. The structure of my document is this:   * title page   * abstract   * table of contents The problem is that I don't want that the abstract page to have the page number at the bottom. To do this in the title page I simply used the command \pagestyle{empty} . Now if I try to do the same with the abstract page it doesn't work. Here it is the code of my document:               \begin{document}          \pagestyle{empty}          \begin{figure}[t]     \centering     \includegraphics[scale=.40]{Sapienza.png}     \vspace{3em}     \end{figure}          \begin{center}     %%%% here there are many sentences     \end{center}          \clearpage{\pagestyle{empty}\cleardoublepage}          \pagestyle{empty} %%in order to delete the number at the bottom of the page          \chapter*{Abstract}     %%sentences          \pagestyle{plain}%%to insert again the number of the page          \tableofcontents      The problem is that the abstract page keeps showing the page number and I can't manage to delete it. Can you please help me?


title: From Word to LaTeX, how?

text: I was wondering if there is any software tool that acts as a common word editor and it outputs LaTeX code. Some time ago I heard there were some software tools that did that? does anybody knows any of these?


title: Why is this Tikz scope coordinate system skewed?

text: I'm trying to create a simple figure in which the tick labels will not line up properly, because the coordinate system is skewed. Here is the MWE code:               \documentclass[a4paper,twocolumn]{article}          \usepackage{graphicx}     \usepackage{tikz}     \usetikzlibrary{arrows,shapes,positioning}          \begin{document}          \begin{figure}         \begin{center}             \begin{tikzpicture}                 \node[anchor=south west, inner sep=0] (image) at (0.3,0.2) {\includegraphics[width=0.8\columnwidth]{asmmodes}};                 \begin{scope}[x={(image.south east)},y={(image.north west)}]                     \draw (-0.02, 0.833) node [right]{1};                     \draw (-0.02, 0.5) node [right]{2};                     \draw (-0.02, 0.167) node [right]{3};                     \draw (0.07, -0.03) node [text centered,above]{-4};                     \draw (0.22, -0.03) node [text centered,above]{-2};                     \draw (0.37, -0.03) node [text centered,above]{-1};                     \draw (0.50, -0.03) node [text centered,above]{0};                     \draw (0.65, -0.03) node [text centered,above]{1};                     \draw (0.79, -0.03) node [text centered,above]{2};                     \draw (0.94, -0.03) node [text centered,above]{4};                     \draw (0.5, -0.03) node [text centered,below]{standard deviations};                     \draw (-0.04, 0.5) node [text centered]{\rotatebox{90}{first three model shape parameters}};                     \draw [thick,red] (0,0) -- (0,1) -- (1,1) -- (1,0) -- cycle;                 \end{scope}             \end{tikzpicture}         \end{center}         \label{fig:asmmodes1}     \end{figure}          \end{document}      This gives me the following output: ![Example of issue](http://i.stack.imgur.com/OsyiE.jpg) As you can see the tick labels are not lined up nicely because the coordinate system is skewed. I'm not sure what to do about this. Can someone help me out here?


title: "Missing character" or "does not map to ascii" message with biblatex and biber

text: I started drafting a question here but then, through some further work, found a solution. I though it might be worth putting in what I found here for others. The problem relates to using `biber` as a back end to `biblatex`. It is also at least in part a consequence of using `BibTeX` citations provided unmodified by certain publishers. When running `biber`, I would get a series of errors that looked like this: `"\x{fffd}" does not map to ascii at Biber/Output/BBL.pm line 422.` I was using a reference file that already contained ~100 references, so sorting these out was not easy (the line 422, did not refer to a line in my reference file). An apparent solution to this problem was to use the `-U` switch when running biber (`biber -U Thesis_1` for a project called `Thesis_1`). This enabled the expanded unicode character set. However, it then turned out that special characters created with such commands as `\"{u}`, in order to produce a 'u' with an umlaut would not appear in the pdf. In the log file for pdflatex, instances of messages like: `Missing character: There is no Ã in font ptmr7t!` would appear (with the `-U` switch in `biber`, but not without the switch). It seems that turning on acceptance of unicode characters would also turn off the way that they can be represented in latex with ascii. I gather that there can be other causes of similar error messages from reading some other forum messages, but I will put in the solution for this instance as an answer. If someone things the question could be modified to be more helpful then please let me know. Since I was asked, here is a minimal working example:               \documentclass{article}          \usepackage[sorting=none,                %style=chem-rsc,                backend=biber,                ]{biblatex}     \usepackage{filecontents}          \begin{filecontents}{theRefs.bib}     @ARTICLE{Bhalla2000,       author = {Bhalla, A. S. and Guo, R. and Roy, R.},       title = {The perovskite structure – a review of its role in ceramic science         and technology},       journal = {Materials Research Innovations},       year = {2000},       volume = {4},       pages = {3-26},     }     \end{filecontents}          \addbibresource{theRefs.bib}          \begin{document}         Here is a reference\cite{Bhalla2000}         \printbibliography{}     \end{document}


title: Adding empty lines for readability

text: I'm a new user of LyX, and reading the tutorial I found that I can't add freely spaces and empty lines to the LaTeX code, since it's about formatting the text, and it's done by the compiler. I can really understand the philosophy, and that's why I decided to use that tool; what I find hard to understand, is why I can't use spaces and empty lines to improve the readability of the code itself, and maybe let the compiler ignore them. Or maybe there is a "dummy" marker, that allows to insert a space in the code ignored by the compiler? * * * **Follow up** : I eventually switched to LaTeX right after that document and sticked to it.


title: How to avoid that listings are interrupted by floats?

text: And again I have another problem I just can't figure out. I defined a listing with some XML code:               \begin{lstlisting}[captionpos=b, caption=XML detection strategy for Refused Parent Bequest, label=lst:refused_parent_bequest]      <strategy name="Refused Parent Bequest" ...>         <gate type="AND">           <gate type="OR">             <gate type="AND">               <rule>                 <metric>NProtM</metric>                 <comparison>greater than</comparison>                 <value>10</value>               </rule>               <rule>                 <metric>BUR</metric>                 <comparison>smaller than</comparison>                 <value>0.33</value>               </rule>             </gate>             <rule>               <metric>BOvR</metric>               <comparison>smaller than</comparison>               <value>0.33</value>             </rule>           </gate>           <gate type="AND">             <gate type="OR">               <rule>                 <metric>AMW</metric>                 <comparison>greater than</comparison>                 <value>-1</value>               </rule>               <rule>                 <metric>WMC</metric>                 <comparison>greater than</comparison>                 <value>-1</value>               </rule>             </gate>             <rule>               <metric>NOM</metric>               <comparison>greater than</comparison>               <value>-1</value>             </rule>           </gate>         </gate>       </strategy>     \end{lstlisting}      Very near to this I also defined a table. Now the problem is the listing starts on the first page, the there is a page break, then there is the table and then the listing continues. How can I force the layout to not interrupt my listing?


title: Bundle packages with a document

text: I'd like to have my LaTeX document be self-contained, that is, if I move to another computer I'd like all of my non-standard packages to work without first installing them. For simple enough packages I can put the `.sty` files into the base directory, but this seems like a clunky solution. I can put the packages in a subdirectory but I sometimes than I get dependency errors like                LaTeX Warning: You have requested package style_files/placeins      but the package provides `placeins'.           (/usr/share/texmf-texlive/tex/latex/tools/array.sty)      Is there a right way (tm) to do this, or should I install every package I need on every computer I use?