title: Latex is making-Tikz generated pdf figure, converted to eps, and then included to latex document using \includegraphics- transparent

text: At the out set, I must say I have just started using Tikz. I draw a picture using Tikz. It generated pdf output which I converted to eps (required figure format for submission in a journal) using pdftops. When I include eps file in my main latex document, it became transparent although eps file is not transparent. Please suggest something to rectify it. Thanks a lot > Here is the source code for generating pdf from Tikz:               \documentclass[class=minimal,border=0pt]{standalone}     \usepackage{tikz,tikzorbital}     % Tikz     \usepackage{tikz}     \usetikzlibrary{intersections}     \usetikzlibrary{shapes,decorations,shadows}       \usetikzlibrary{decorations.pathmorphing}       \usetikzlibrary{decorations.shapes}       \usetikzlibrary{fadings}       \usetikzlibrary{patterns}       \usetikzlibrary{calc}      \usetikzlibrary{arrows}     % \usetikzlibrary{arrows.meta}     \usetikzlibrary{automata}     \usepackage{tikzorbital}          \pgfkeys{/tikz/.cd,         execute style/.style = {#1},         execute macro/.style = {execute style/.expand once=#1}     }     % % -----------------------------------------------------------------------------     % % some customization of orbital     % % -----------------------------------------------------------------------------     %      % inner color for orbital filling          \colorlet{innerColor}{black!10}          % color for orbital drawing          \colorlet{drawColor}{black!80}          % more style for lobe orbital drawing          \newcommand{\setOrbitalDrawingNew}[1]{\def\orbitalDrawingNew{#1}}     \setOrbitalDrawingNew{thick}     % general style          \tikzstyle{base} = [draw = drawColor, thick, inner color = innerColor,              circle, opacity = 1,                  execute macro = \orbitalDrawingNew]     % Tikz          \begin{document}     \begin{tikzpicture}[scale=1]     \foreach \myscale in {.9}     {     \foreach \y in {-1}     {\begin{pgfonlayer}{background}      \draw [ultra thick] (-3.4cm,\y cm) -- (3.4cm,\y cm);          \node[left,thick] at (-3.8cm,\y cm) {$(a)$};     \end{pgfonlayer}     \foreach \x in {-3,-1,..., 4}     \shade[ball color=green] (\x cm,\y cm) circle (.21cm);          \foreach \x in {-2,0,...,3}     {     \orbital[pos = {(\x cm,\y cm)},color=red,scale=\myscale]{lobe};             \begin{pgfonlayer}{background}             \node at (\x cm,\y cm) [ellipse, minimum width = \myscale * .3cm,                    minimum height = \myscale * .8cm, draw = drawColor,                    inner color = innerColor, outer color = blue,                    execute macro = \orbitalDrawingNew]                  {};             \end{pgfonlayer}      \orbital[pos = {(\x cm,\y cm)},color=red,scale=\myscale,rotate=180]{lobe};     }}}     \end{tikzpicture}     \end{document}


title: Include a graphic as a character

text: I want to include a simple vector graphic (SVG, 1 circle and a path with 20 nodes) in the text, so it appears like a character. ifsym does this with metafont, however metafont generates only bitmapped fonts. My current solution is to create a new font with FontForge, export it as OTF, include it with `\newfontface\foo{foo.otf}` and include it with `{\foo\symbol{1}}`. This works (with XeLaTeX at least), however it is cumbersome and I need to distribute the font file every time I need to send someone the .tex-files. How can I insert a simple vector graphic as a character into the text?


title: I moved a folder out of my directory, compile failed, replaced folder, compile still failed

text: I was trying to clean up my directory a little bit by moving some (what I thought were unnecessary) folders into a new folder. When I tried to compile my document, the compilation failed. So I then moved the folders back to their original destination, and the document will still not compile. (I get a ton of reference errors and proof already defined etc..) The only thing that I can guess is that when I tried to compile the document without some of the folders in place, it messed up some of the files. Any help is appreciated. I cannot post the tex files since the material is copyright by the authors.


title: How to setup synctex with vim, pdflatex and an open-source PDF-viewer under Linux?

text: Inspired by the comments to this answer I am curious how to actually setup and use forward/reverse (inverse) search with vim, pdflatex and an open-source PDF-viewer under Linux. Btw, to give more details: Forward search means that when you at some location in your text editor you issue some command and auto-magically the PDF-viewer jumps to the corresponding location in the typeset PDF. Perhaps even marks it somehow. Reverse search means that issuing a command in your PDF-Viewer (e.g. clicking somewhere in the document), instructs the PDF-viewer to send a command to your editor that then jumps to the corresponding source location. **Edit:** Currently I am not using any latex plugin in vim. And usually the LaTeX documents I edit with vim make use of \include or \input a lot.


title: How to insert spacing for start of paragraph?

text: How would I add some spacings starting at the black arrows in the picture below? As in, I am trying to move the text towards the right a bit, like starting a new paragraph. Thanks. ![enter image description here](http://i.stack.imgur.com/FQ5Ob.jpg)               \documentclass[11pt,a4paper]{report}         \usepackage{amsmath,amsfonts,amssymb,amsthm,epsfig,epstopdf,titling,url,array}               \theoremstyle{plain}     \newtheorem{thm}{Theorem}[chapter] % reset theorem numbering for each chapter     \newtheorem{lem}[thm]{Lemma}     \newtheorem{prop}[thm]{Proposition}     \newtheorem*{cor}{Corollary}          \theoremstyle{definition}     \newtheorem{defn}[thm]{Definition} % definition numbers are dependent on theorem numbers     \newtheorem{exmp}[thm]{Example} % same for example numbers     \newtheorem{conj}[thm]{Conjecture}          \theoremstyle{remark}     \newtheorem*{rem}{Remark}     \newtheorem*{note}{Note}               \title{My Thesis Title}     \author{My Name}     \date{\today}     \renewcommand\labelenumi{(\theenumi)}     \renewcommand\theenumi{\roman{enumi}}          \begin{document}          \chapter{Addition}          \begin{exmp}     This is just an example. This is just an example.This is just an example.     \\\\     \textit{This is just an example.}     \\\\     \textit{This is just an example.This is just an example.This is just an example.This is just an example.}     \\\\     \textit{This is just an example.This is just an example.gsdasdasdasdasfdasfaxbcxbcxb}     \\\\     \textit{Prove that for $4 < x < 122$,     \begin{equation}     x^2 + 5x = 235325y \nonumber     \end{equation}     is the solution to $n^2$.}     \end{exmp}     \end{document}


title: Code listing in subfigure using lstlisting

text: I am trying to use the subfigure package of LaTeX to display a piece of SQL code. The purpose is similar to Code listing in subfigure, but I'd like syntax highlighting using `lstlisting` environment rather than `verbatim`. Here is what I'm trying:               \documentclass{article}     \usepackage{subfigure}     \usepackage{listings}          \begin{document}          \begin{table*}[ht]       \subfigure[Query 1]{         \begin{lstlisting}[language=SQL]           SELECT * FROM Table;         \end{lstlisting}       }     \end{table*}          \end{document}      It doesn't compile since the subfigure and verbatim packages clash. The linked post suggests a workaround for the `verbatim` environment, but what if I'd like to use `lstlisting`?


title: \usepackage[scaled]{helvet} fails on Mac with BasicTeX

text: I have a short latex program that fails to compile when I use the following:               \usepackage[scaled]{helvet}      I suspect that this is an issue with using BasicTeX on the Mac because I have seen this construct shown in so many places that I believe that it should work under normal conditions. Here is the program.               \documentclass{article}     %     \usepackage[T1]{fontenc}     \usepackage{textcomp}     \usepackage[scaled]{helvet}     %     % change the default font to sans-serif     %     \renewcommand{\familydefault}{\sfdefault}     \begin{document}     Hello World!     \end{document}      And here is error output.               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)      restricted \write18 enabled.     entering extended mode     (./hello.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 21 languages loaded.     (/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/size10.clo))     (/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/fontenc.sty     (/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/t1enc.def))     (/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/textcomp.sty     (/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/ts1enc.def))     (/usr/local/texlive/2013basic/texmf-dist/tex/latex/psnfss/helvet.sty     (/usr/local/texlive/2013basic/texmf-dist/tex/latex/graphics/keyval.sty))     (./hello.aux) (/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/ts1cmr.fd     ) (/usr/local/texlive/2013basic/texmf-dist/tex/latex/psnfss/t1phv.fd)     kpathsea: Running mktextfm phvr8t     /usr/local/texlive/2013basic/texmf-dist/web2c/mktexnam: Could not map source abbreviation  for phvr8t.     /usr/local/texlive/2013basic/texmf-dist/web2c/mktexnam: Need to update ?     mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input phvr8t     This is METAFONT, Version 2.718281 (TeX Live 2013)               kpathsea: Running mktexmf phvr8t     ! I can't find file `phvr8t'.     <*> ...:=ljfour; mag:=1; nonstopmode; input phvr8t          Please type another input file name     ! Emergency stop.     <*> ...:=ljfour; mag:=1; nonstopmode; input phvr8t          Transcript written on mfput.log.     grep: phvr8t.log: No such file or directory     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input phvr8t' failed to make phvr8t.tfm.     kpathsea: Appending font creation commands to missfont.log.          ! Font T1/phv/m/n/10=phvr8t at 9.49997pt not loadable: Metric (TFM) file not found.     <to be read again>                         relax      l.10 \begin{document}      The following gist suggests installing texlive-fonts-extra or urw-base35, but not sure how to do that on Mac.               https://gist.github.com/fernandomantoan/3751190      Thanks.


title: How do you put a character in the margin (using an environment)

text: I'm using `framed` to create a little `callout` box for tips and other information in a book. So for it's going well however I cannot get the icon (using ding) to sit in the margin. It currently looks like this: ![http://dl.dropbox.com/u/11125156/latex_sample1.png](http://i.stack.imgur.com/KwqTZ.png) whereas I'd like it to look like this mock up ![enter image description here](http://i.stack.imgur.com/s79UE.png) I'm using the following code               \documentclass[a4paper,12pt]{article}     \usepackage{verbatim}     \usepackage{color}     \usepackage[english]{babel}     \usepackage{pifont}     \usepackage[strict]{changepage}     \usepackage{framed}     \usepackage{blindtext}          \definecolor{formalshade}{rgb}{0.95,0.95,1}          \newenvironment{tipbox}{%       \def\FrameCommand{%       {\Huge\ding{43} }         \hspace{1pt}%         {\color{green}\vrule width 2pt}%         {\color{formalshade}\vrule width 4pt}%         \colorbox{formalshade}%       }%       \MakeFramed{\advance\hsize-\width\FrameRestore}%       \noindent\hspace{-4.55pt}% disable indenting first paragraph       \begin{adjustwidth}{}{7pt}%       \vspace{2pt}\vspace{2pt}%     }     {%       \vspace{2pt}\end{adjustwidth}\endMakeFramed%     }          \begin{document}          \blindtext          \begin{tipbox}     You can expect your organisation to perform better, but only if everyone pointing in the same direction.     \end{tipbox}          \blindtext          \end{document}      If putting it in the margin is too difficult, just moving the icon to the top of the box would be great :-)


title: How to insert invisible linebreaks in urls?

text: I'm using biblatex and I'm quoting a commit on github that looks like this: `http://github.com/torvalds/linux/commit/693d92a1bbc9e42681c42ed190bd42b636ca876f` The biblatex-entry looks like this,               @online{Torvalds11,       author = {Linus Torvalds},       title = {Linux Makefile: Commit 693d92a},       url = {http://github.com/torvalds/linux/commit/693d92a1bbc9e42681c42ed190bd42b636ca876f}     }      The result looks like this. ![Screenshot of bib entry](http://i.stack.imgur.com/HS1xX.png) UI tried to insert a space character but that didn't work. How to force latex to break that url at the end of the line? MWE:               \documentclass{report}      \usepackage[english]{babel}      \usepackage{lipsum}      \usepackage{biblatex}       \bibliography{mwe}      \usepackage[babel]{csquotes}      \usepackage{hyperref}           \begin{document}       \lipsum[100]\cite{Torvalds11}       \printbibliography      \end{document}      I found this: How to deal with bibliography items containing long URLs? But the suggested answers are not compatible with my document as I'm using `hyperref` package already and it _should_ automatically break urls at the end of the lines. I guess this url is a special problem.


title: How do I generate a check-list?

text: Similar to the itemize or description environments I would like to have a check-list environment, with neat boxes on the right side, that I may check or uncheck. I guess I'm not the first having this idea, so I would be pleased if you could share your solutions. **Edit:** Is there a way to make such a PDF interactive? So when viewing with a reader, the boxes might change from checked to unchecked and vice versa?


title: KOMA-Script: Making Preface Page Like Chapter

text: I am finishing setting up my thesis LaTeX document using `scrreprt` class. I am trying to add the final touches which include a `List of Acronyms`. Now I want it to look exactly the same as the `ToC` does in style as far as the title "List of Acronyms" goes. I have managed to do this by using `\chapter*{List of Acronyms}` whereby it uses the chapter style without printing a chapter page, and here is where the problem arises, when I do this the page numbering is automatically switched to `arabic`; I wish for the LoA to be in the preface which should all be in `roman` page numbering. How can I use the exact same style of the chapter* font for the title (which also omits it from the ToC which is fine) without losing the roman page numbering? Please find below my MWE with included an acronym ( **side note** if someone could also direct me to a post which explains how to customise the `\printacronyms` format I would be very grateful).               \documentclass[     bibliography=totoc,     headings=big,     captions=tableheading,     chapterprefix=true% like in standard class "report"     ]{scrreprt}     \usepackage[left=2cm,right=2cm,top=2.5cm,bottom=3cm]{geometry}     \usepackage{xcolor}     \usepackage{graphicx}     \usepackage{minitoc}     \usepackage{setspace}     \usepackage{lmodern}     \usepackage{notoccite}     \usepackage{acro}     \usepackage{hyperref}          \setcounter{secnumdepth}{3} % number subsubsections     \setcounter{tocdepth}{3} % list subsubsections          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ACRONYM DEFINITION     \DeclareAcronym{pwr}{     short = PWR ,     short-plural = s ,     long = Pressurised Water Reactor ,     long-plural = s ,     class = reactors ,     }          \begin{document}          \pagenumbering{roman}          \cleardoublepage     \dominitoc     \pdfbookmark[1]{Contents}{}     \tableofcontents     \cleardoublepage          %%%%%%%%%%%%%%%%%%%%%%%%%%%%% LIST OF ACRONYMS     \chapter*{List of Acronyms}          \addcontentsline{toc}{section}{List of Acronyms}          \printacronyms[include-classes=reactors,name=Reactor Acronyms]          \pagestyle{headings}     \pagenumbering{arabic}          %%%%%%%%%%%%%% Chapter Style Controls     \addtokomafont{chapterprefix}{\raggedleft \linespread{1}}     \addtokomafont{chapter}{\fontsize{35}{30}\selectfont}     \addtokomafont{section}{\fontsize{20}{11}\selectfont}     \addtokomafont{subsection}{\fontsize{18}{11}\selectfont}     \addtokomafont{subsubsection}{\fontsize{16}{11}\selectfont}          \renewcommand*{\chapterformat}{%     \mbox{\scalebox{0.80}{\chapappifchapterprefix{\nobreakspace}}%     \scalebox{2.5}{\color{gray}\thechapter\autodot}\enskip}}          \chapter{Testing}          Pasting an acronym \ac{pwr}          \end{document}


title: Scan argument for parentheses

text: I'd like to define a macro which expands to `(#1)` if `#1` does not contain any parentheses, but expands to `\big(#1\big)` if it does. I'd choose simplicity over generality: if a solution works in the most obvious use cases (i.e. `\foo{x}` and `\foo{\sin(x)}`, that would be enough for me. What's the easiest way to scan a macro argument for specific characters like this? Is there some package which already defines a ready-to-use “if stuff contains given character” kind of macro? Is there something useful in the LaTeX3 packages which are already available? As an alternative to my approach, I'd also welcome some existing alternative to `\left(#1\right)` which ensures that the size chosen for the delimiters will always be bigger than the biggest size in the content, not merely as big as the content. I don't know if such a thing does exist, but if it does, it sure would be a useful thing, which could solve my above problem and a number of other ones besides.


title: Is it possible to get LyX to display non-standard symbols?

text: I currently need the symbol `\mapsfrom`, available in the package `stmaryrd`. If I input `\mapsfrom` in math-mode, then it is not replaced by a graphical representation of the symbol. Is it possible to get LyX to display such "non-standard" symbols, and if so, then how? A method that does **not** use `Tools > Preferences... > Display > Display Graphics` would be preferable :)


title: Fancytooltips changes line spacing in beamer

text: I try to show the _bibliographic entry in a popup_ when the mouse pointer is over the citation key. To achieve this, I use the code from Audrey's answer. In the beamer class, this results in some line spacing issue: When supercite is used extra vertical space is added between the current and the upper line as the picture illustrates. In the first line of using just `\textsuperscript` everything works normal but in the second line when `\textsuperscript`and `\tooltip` is used in combination the line spacing changes. ![enter image description here](http://i.stack.imgur.com/j1Wne.jpg) So, I reduced the problem down to this MWE, but don't know what to do now.               % --- tooltip document     \begin{filecontents*}{fancytipmark.tex}     \documentclass{article}     \usepackage[createtips]{fancytooltips}     \usepackage{geometry}     \geometry{noheadfoot,nomarginpar,margin=0in,paperwidth=4in,paperheight=1in}     \pagestyle{empty}     \parindent=0pt     \begin{document}     \keytip{citekey} abc     \end{document}     \end{filecontents*}          % --- presentation document     \documentclass[8pt]{beamer}     \usepackage[filename=fancytipmark, mouseover, movetips]{fancytooltips}     \begin{document}     Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.\textsuperscript{1}          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.\textsuperscript{\tooltip{1}{citekey}}     \end{document}


title: Resizing the vertices inside xymatrix

text: Does anyone know how to resize the names of entries which appear as vertices inside `\xymatrix`? I have huge commuative cubes with more then 40 inner or outer vertices and when these names become too large then one cannot distinguish the edges of diagrams between them...


title: vertical lines in matrix using tikz package

text: my problem is interconnected to my two previous posts (here and here) and i've tried to incorporate answers into solution but without success. My task is this matrix multiplication with added description: ![My task](http://i.stack.imgur.com/d1gJy.jpg) and my so far code follows:               \documentclass{article}     \usepackage{tikz,amsmath}      \begin{document}     \begin{tikzpicture}     \node[minimum height=0cm,minimum width=2cm] (m) {};     \path[shade,draw] (0,2) -- (0,5) -- (3,5) -- (3,0);     \draw (0,0) --(0,5);     \draw (3,0) --(0,2);     \draw (3,0) --(3,5);     \node (r11) at ([xshift=0.6cm,yshift=4cm]m.south) {$S_{11}$};     \node (r11) at ([xshift=2.5cm,yshift=4cm]m.south) {$S_{12}$};     \node (r11) at ([xshift=2.5cm,yshift=2.15cm]m.south) {$S_{22}$};     \node (r11) at ([xshift=0.6cm,yshift=2.15cm]m.south) {$S_{21}$};     \node (r11) at ([xshift=0.6cm,yshift=2.6cm]m.south) {$--------------$};     \node (r11) at ([xshift=0.6cm,yshift=1.5cm]m.south) {$--------------$};     \end{tikzpicture}     \[     \begin{bmatrix}     \begin{equation}            wn_{1}           \\[0.3em]            wn_{2}               \end{bmatrix}      \]      \end{document}          with following output: ![My Output](http://i.stack.imgur.com/X9wIV.jpg) I am not able to add vertical line and nodes and incorporate the matrix into document (vector that follows behind the matrix is not centered). Problem with nodes and incorporation is the same as in this question.


title: Acronyms with same style as LOT?

text: I use the `acronym` package with page numbers. Now I would like to have the dots between the acronym and the page number in same style as in the ListofTables: same spacing between the dots and between the last dot and the page number.   The line spacing should be the same as well, but the dots have the higher priority.   (In addition the alignment among the acronyms does not seem to work well in the mini example, but fine in my document.)               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[printonlyused,withpage]{acronym}     \begin{document}     \parskip 6pt% space between paragraphs     \renewcommand{\baselinestretch}{1.2}\normalsize% leading -- space between two lines     \renewcommand{\bflabel}[1]{\normalfont{\normalsize\bf{#1}}\hfill}% font adjustment     \section*{List of Abbreviations}     \begin{acronym}[MSC]     \acro{IMO}{International Maritime Organization}     \acro{MSC}{Maritime Safety Committee}     \end{acronym}     \listoftables     \begin{table}\begin{tabular}{c} \ac{MSC}\end{tabular}\caption{a}\end{table}     \begin{table}\begin{tabular}{c} \ac{IMO}\end{tabular}\caption{b}\end{table}     \end{document}


title: nodes in matrix and its incorporation into document

text: i continue with my previous post (here) concerning various additions to matrix. I have following problem: how to add nodes into matrix and this whole matrix incorporate into the document ? My task is following output: ![demanded output](http://i.stack.imgur.com/QWEB7.jpg) my trial follows here:               \documentclass{article}     \usepackage{easybmat}     \usepackage{ifthen}     \usepackage{tikz,amsmath}     \usetikzlibrary{matrix,fit,calc,decorations.pathreplacing}     \begin{document}     \begin{tikzpicture}[baseline=(m.center)]     \node[minimum height=0cm,minimum width=0cm] (m) {};     \path[shade,draw] (0,2) -- (0,5) -- (3,5) -- (3,0);     \draw (0,0) --(0,5);     \draw (3,0) --(0,2);     \draw (3,0) --(3,5);     \draw[ultra thin, loosely dashed] (a) -- (m.west |- a) (b) -- (m.west |- b);     \end{tikzpicture}     *P     \end{document}      with following output. I've tried to add nodes based on (this answer), but without success: ![my output so far](http://i.stack.imgur.com/x5l6x.jpg) My second question is how to incorporate it into the document, since matrix P, which follows after that, is not centered as usual. And if i add some matrix instead of P, it is not centered as well.                \[      \begin{bmatrix}      \begin{equation}        wn_{1}           \\[0.3em]        wn_{2}          \end{bmatrix}      \]


title: 2 Tikz, 1 Figure

text: I would like to include 2 Tikz into one figure and caption each of the Tikz. I've explored `subfigure` but that did not seem to work. I'm trying to have the two diagrams appear side-by-side with a caption under each diagram. I appreciate any help rendered.               \begin{tikzpicture}[font=\small]         \begin{axis}[           ybar,           height=8cm,           width=6cm,           bar width=15pt,           xlabel={$c$},           ylabel={Number of primes},           ymin=0,           ytick=\empty,           xtick=data,           axis x line=bottom,           axis y line=left,           enlarge x limits=0.2,           symbolic x coords={0,1,2},           xticklabel style={anchor=base,yshift=-\baselineskip},           nodes near coords={\pgfmathprintnumber\pgfplotspointmeta}         ]           \addplot[fill=white] coordinates {             (0,295)             (1,175)             (2,20)           };         \end{axis}     \end{tikzpicture}     %\caption{40-bit primes} \label{40bits}     \begin{tikzpicture}[font=\small]         \begin{axis}[           ybar,           height=8cm,           width=7cm,           bar width=15pt,           xlabel={$c$},           ylabel={Number of primes},           ymin=0,           ytick=\empty,           xtick=data,           axis x line=bottom,           axis y line=left,           enlarge x limits=0.2,           symbolic x coords={0,1,2,3,4},           xticklabel style={anchor=base,yshift=-\baselineskip},           nodes near coords={\pgfmathprintnumber\pgfplotspointmeta}         ]           \addplot[fill=white] coordinates {             (0,182)             (1,215)             (2,75)             (3,17)             (4,1)           };         \end{axis}     \end{tikzpicture}     %\caption{41-bit primes} \label{41bits}


title: Aligning two text boxes with a few lines

text: Here are the two text boxes:               \begin{tabular}{l@{}}          Date: 3 Jan. 2500  \\          Place: Moon \\     \end{tabular}               \null\hfill\begin{tabular}{l@{}}          Prof. Neil Armstrong \\          Department of Moon Studies \\          Moon University     \end{tabular}      What is the easy way to make those boxes start on the same line? The first box should be on the right, and second one should be on the left. The text in the box should be flushed left. The first two lines of text in both the boxes should be on the same horizontal line.


title: Missing horizontal or vertical lines when drawing backwards TikZ grids

text: Look at next code, when I want to draw a grid from right to left or top to bottom, vertical or horizontal lines are not drawn, even with `xstep=-1` or `ystep=-1` (as it's suggested in Jake's answer in Grid missing horizontal lines). What am I missing? I'm using TikZ's CVS version.               \documentclass[border=2mm]{standalone}     \usepackage{tikz}          \newcommand{\arrow}[2]{\draw[->,blue,thick,shorten <=5mm, shorten >=5mm] #1 -- #2 ;}          \begin{document}          \begin{tikzpicture}     \draw[help lines] (-2,-2) grid (2,2);      \draw[red,fill] (0,0) circle (1mm) node[below right] {(0,0)};     \node[anchor=south,align=center] at (0,2){(-2,-2) to (2,2)};     \arrow{(-2,-2)}{(2,2)}     \end{tikzpicture}          \begin{tikzpicture}     \draw[help lines] (-2,2) grid[ystep=-1] (2,-2);     \arrow{(-2,2)}{(2,-2)}     \draw[red,fill] (0,0) circle (1mm) node[above right] {(0,0)};     \node[anchor=south,align=center] at (0,2){(-2,2) to (2,-2)};     \end{tikzpicture}          \begin{tikzpicture}     \draw[help lines] (2,-2) grid[xstep=-1] (-2,2);     \arrow{(2,-2)}{(-2,2)}     \draw[red,fill] (0,0) circle (1mm) node[above right] {(0,0)};     \node[anchor=south,align=center] at (0,2){(2,-2) to (-2,2)};     \end{tikzpicture}          \begin{tikzpicture}     \draw[help lines] (2,2) grid[xstep=-1,ystep=-1] (-2,-2);     \arrow{(2,2)}{(-2,-2)}     \draw[red,fill] (0,0) circle (1mm) node[below right] {(0,0)};     \node[anchor=south,align=center] at (0,2){(2,2) to (-2,-2)};     \end{tikzpicture}          \end{document}       ![enter image description here](http://i.stack.imgur.com/HHNF7.png)


title: What are the TeX definitions for the hyphen and dashes -, --, and ---?

text: I've tried `latexdef` which does not handle `\---` as the operand. And `\texemdash` is defined as a character. So that leaves me once again leaning on the collective wisdom of the group :)


title: \pause does not not work with \only

text: Why does `\pause` do not work with `\only` in this code?               \documentclass[compress,red]{beamer}     \usepackage{etex}     \mode<presentation>     \usetheme{Warsaw}     \usepackage[applemac]{inputenc}%les accents pour mac     \usepackage{subfigure}     \usepackage{multicol}     \usepackage{animate}     \usepackage{amsmath}     \usepackage{epsfig}     \usepackage{graphicx}     \usepackage[all,knot]{xy}     \xyoption{arc}     \usepackage{url}     \usepackage{array,ragged2e}     \usepackage{multimedia}     \usepackage{hyperref}     \usepackage{setspace}     \usepackage{multirow}      \begin{document}     \section{section1}     \frame{\frametitle{Titre de la fenetre}     \only<1>{     \begin{itemize}       \item point1         \pause       \item point2         \pause       \item point3         \pause       \item point4         \pause       \item point5     \end{itemize}     }     \only<2>{     \begin{itemize}       \item essai1       \item essai2       \item essai3     \end{itemize}          \begin{equation}       a+b=c     \end{equation}     }     \only<3>{     \begin{equation}       a+5=10     \end{equation}     }     \end{document}


title: In Emacs (with AUCTeX), if i use <C-c '> to see errors, it copies the command <C-c %>

text: I don't know why, but since recently my Emacs is behaving strangely. As usual I compiled using `C-c C-c` to call LaTeX, then there were errors and it asked me to type (as usual) `C-c '`. but when I did it just commented out the whole paragraph, which is the same effect as `C-c %`. `C-c %` still works the same and typing `'` produces the same letter, i.e., `'`. so I somehow have my doubts that it is related to the keyboard, but not out of the question, of course. I can't recall having done any setting changes or changes to my setup since the last time it worked perfectly, but i am not completely sure. I'm running Emacs under Ubuntu, `Latex/MP Fly Ref` are the automatically hooked modes. Does anyone have an idea?


title: Referencing Definition by Name and Optional Argument

text: I have the following MWE:               \documentclass{article}     \usepackage{amsthm}     \usepackage{hyperref}          \newtheorem*{definition}{Definition}          \begin{document}          \section{Section Definitions}          \begin{definition}[symmetric matrix]         \label{def:sym.mat}         A quadratic matrix $X$ is called \emph{symmetric}, if $X^{\dagger} = X$.      \end{definition}          This is a reference to \autoref{def:sym.mat}.      \end{document}      The Output of the reference sentence is: > This is a reference to section 1. I want to get: > This is a reference to Definition (symmetric matrix). I know how to cross-reference different theorem-like environments like lemma, theorem with the aliascnt package. But my definitions, unlike theorems, are not numbered but instead contain an unique phrase in rectangular brackets on what they define. Is there a way to overload \label and \ref or \autoref so that the displayed text for the reference is the composite of the environment name (here 'Definition') and the optional argument (here 'symmetrix matrix')? Maybe analog to this answer in Reference name of description list item in LaTeX. I want to avoid defining a manual reference display text for each definition environment. I guess I somehow have to update \@currentlabel with \thmnote?   If this questions was already asked & answered, I am happy if somebody points me to it.


title: Blank page after bibliography

text: I want to create a blank page after the bibliography which has no page number or any other things I've defined in fancyhdr. Just a blank page, where I can input some text. How do I do this?


title: Positioning equation and figure side by side fails

text: I have been trying to position an equation and a figure side by side for quite some time and an equation allways mooves down for some reason. Here is the code that i use. What am i doing wrong?               \par\smallskip\nointerlineskip     \noindent     \begin{minipage}[t]{0.5\textwidth}     \includegraphics[width=\linewidth,keepaspectratio=true]{./slike-v/taylor_1.pdf}     \end{minipage}     \begin{minipage}[t]{0.5\textwidth}     \scriptsize     \begin{equation}\label{eA1}     \begin{split}     P_0 &= a_0\\     P_1 &= a_0+ a_1x\\     P_2 &= a_0+ a_1x+ a_2x^2 \\     P_3 &= a_0+ a_1x+ a_2x^2+ a_3x^3+\\     &\dots     \end{split}     \end{equation}     \null     \par\xdef\tpd{\the\prevdepth}     \end{minipage}


title: Place symbols/nodes at  intersection between an arc and some horizontal lines with \foreach in TikZ

text: I'd like to place an symbol I've defined at all the intersection point between an arc and some horizontal lines: ![](http://i.stack.imgur.com/lU5S0.png) I know how to use \foreach for other cases, but I'm really not sure how to setup the code in order to make this work E.g. I want to place               \def\pulse{+(0.1,0) -- +(0.2,0.1) -- +(0.3,-0.1) -- +(0.4,0)}      at every position where the line for the arc intersects the horizontal lines, but I've obviously not reached that level for using TikZ yet. So the question is, does anyone know how I can do this? I'd assume it'd be something like               \foreach \pos in {don't know what to type here}     {         some kind of if-checking             place if true     }      but I don't know what to write. Any help is greatly appreciated! best regards, dm *Edit: In case it will be easier to help if having the code for the figure available:               \tikzstyle{branch} = [circle, inner sep = 0pt, minimum size = 0.5mm, fill = black, draw = black]          \pgfdeclarelayer{background}     \pgfdeclarelayer{foreground}     \pgfsetlayers{background,main,foreground}          \begin{tikzpicture}[semithick,>=latex']     \def\pulse{+(0.1,0) -- +(0.2,0.1) -- +(0.3,-0.1) -- +(0.4,0)}          \node[branch] (fp) at (-2,10) {};     \node[above] at (fp.north) {\scriptsize Focal point};          % draw rectangle in array     \draw[semithick] (2,9.5) -- (2.25,9.5) -- (2.25,5) -- (2,5) -- cycle;          % draw horizontal lines inside array     \foreach \y in {5,5.5,...,9}         \draw[semithick] (2,\y) -- (2.25,\y);     \node[above] at (2.125,9.5) {\scriptsize Array};          \foreach \y in {5.25,5.75,...,9.25}     {         % draw lines from focal point to array         \draw[semithick,->] (fp.center) -- (2,\y);              % draw VGA amplifiers         \draw[semithick,fill=white] (5.5,\y) -- ($(5.5,\y)+(0,0.2)$) -- (6,\y) -- ($(5.5,\y)+(0,-0.2)$) -- cycle;         % draw arrows thru VGA amplifiers         \begin{pgfonlayer}{background}             \draw[semithick,->] ($(5.6,\y)+(0,-0.25)$) -- ($(5.95,\y)+(0,0.2)$);         \end{pgfonlayer}              % draw ADC         \draw[semithick] (6.2,\y) -- ($(6.4,\y)+(0,0.2)$) -- ($(7.2,\y)+(0,0.2)$) -- ($(7.2,\y)+(0,-0.2)$) -- ($(6.4,\y)+(0,-0.2)$) -- cycle;         \node[] at (6.7,\y) {\scriptsize ADC};              % draw FIFO block         \draw[semithick] (7.6,\y) -- ($(7.6,\y)+(0,0.2)$) -- ($(8.4,\y)+(0,0.2)$) -- ($(8.4,\y)+(0,-0.2)$) -- ($(7.6,\y)+(0,-0.2)$) -- cycle;         \node[] at (8,\y) {\scriptsize FIFO};              % draw lines in between the blocks already drawn         \draw[semithick,->] (2.25,\y) -- (5.5,\y);         \draw[semithick,->] (6,\y) -- (6.2,\y);         \draw[semithick,->] (7.2,\y) -- (7.6,\y);         \draw[semithick,->] (8.4,\y) -- (9,\y) -- ($(9,\y)+(0,0.2)$) -- ($(9.2,\y)+(0,0.2)$) -- (9.2,\y) -- (10,\y);     }          % draw arc before array     \draw[semithick,dashed] (2,9.6) arc(0:-60:5.15);     % draw arc after array     \draw[semithick,dashed] (5.1,9.6) arc(0:-60:5.15);          % draw rectangle for digital adder     \draw[semithick] (10,9.5) -- (10.5,9.5) -- (10.5,5) -- (10,5) -- cycle;     \node[rotate=90] at (10.25,7.25) {\scriptsize Digital adder};          % draw output signal     \draw[semithick,] (10.5,7.25) -- (11,7.25) -- (11,7.75) -- (11.25,7.75) -- (11.25,7.25) -- (11.5,7.25);     \node[above] at (11.125,7.75) {\scriptsize$\begin{matrix}\text{Output}\\\text{signal}\end{matrix}$};          % draw arrow for sampling clock     \draw[semithick,->] (6.7,4.5) -- (6.7,5.05);     \node[below] at (6.7,4.5) {\scriptsize Sampling clock};          % draw line in between every ADC     \foreach \y in {5.25,5.75,...,8.75}         \draw[semithick] ($(6.7,\y)+(0,0.2)$) -- ($(6.7,\y)+(0,0.3)$);          \end{tikzpicture}


title: CSplain support for English quotes

text: In CSplain, there is a lot of multi-language support (including UTF-8 input in 8-bit TeX engines) but one curiously missing thing was support for UTF-8 English quote glyphs. From reading the CSplain source, I've figured that the following lines add support:               % Assuming T1/Cork encoding     \input t1code % this set of macros is provided by CSplain          % The following lines add the "missing" support for English quotes     \chardef \elq 96     \chardef \erq 39          \mubyte\erqq ^^e2^^80^^9d\endmubyte % English right double quote     \mubyte\elq  ^^e2^^80^^98\endmubyte % English left single quote     \mubyte\erq  ^^e2^^80^^99\endmubyte % English right single quote      (The above is needed when the source file is encoded in UTF-8 but one is using an 8-bit TeX engine.) Is there any reason this isn't included by default (perhaps incompatibility with other languages somehow)? Is this the correct way to add this support? (Additional info about CSplain was published by its author in a TUGboat article)


title: Prooftree with nodes below other nodes

text: I require large prooftrees using the `bussproofs`, but the layouting seems to be not optimal. In particular, the package does not place nodes of the tree below other nodes, which would save a lot of horizontal space. E.g. in the image below, I would like to have the circled node further to the left, such that it is approximately below the node labeled `Z(d)`. However in the `bussproofs` documentation, I cannot find any option that would allow to do so. Is there some way this can be done? ![](http://i.stack.imgur.com/mgDrc.png) MWE:               \documentclass{article}          \usepackage{bussproofs}          \newcommand{\AxiomCm}[1]{\AxiomC{$#1$}}     \newcommand{\BinaryInfCm}[1]{\BinaryInfC{$#1$}}     \newcommand{\UnaryInfCm}[1]{\UnaryInfC{$#1$}}          \begin{document}     \begin{prooftree}            \AxiomCm{ G(x, y) \lor L(x, y) \lor x = y }       \AxiomCm{ \lnot Z(z) \lor \lnot  L(z, u) }       \BinaryInfCm{  G(x, y) \lor x=y \lor \lnot Z(x) }            \AxiomCm{ \lnot Z(w) \lor \lnot Z(f(w)) }       \AxiomCm{ Z(d)}       \BinaryInfCm{ \lnot Z(f(d)) }            \BinaryInfCm{ G(x, f(d)) \lor \lnot Z(x) \lor \lnot Z(x) }       \UnaryInfCm{ G(x, f(d)) \lor \lnot Z(x)  }            \AxiomCm{ \lnot G(v, f(v)) }            \BinaryInfCm{  \lnot Z(d)  }            \AxiomCm{ Z(d) }            \BinaryInfCm{  \bot }     \end{prooftree}          \end{document}


title: Tikz externalization figure placement problem with hyperref / eso-pic

text: I am facing a problem with the placement of my externalized TikZ/`pgf`/`pgfplots` figures. The externalization works well and the external figure is included into my document. The placement of the figure as well as the caption are not working correctly when I incorporate both the `eso-pic` and `hyperref` packages. The caption is then missing, and the figure placed on the next page disregarding the centering. A minimal working example is below               \documentclass{article}          \listfiles     \usepackage{graphicx}     \usepackage{eso-pic}     \usepackage{pgfplots}     \usetikzlibrary{external}     \tikzexternalize     \tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"; dvips -o "\image".ps "\image".dvi}}     \usepackage{hyperref}          \begin{document}          This is a test.          \begin{figure}[h]     \centering     \begin{tikzpicture}         \begin{axis}[             xmin=0,xmax=5,             ymin=0,ymax=3,         ]         \draw [ultra thick,gray] (axis cs:0.5,0.5) to[out=80,in=200] (axis cs:1.5,2) to[out=-180+200,in=160] (axis cs:3,2) to[out=-180+160,in=110] (axis cs:4,1);         \end{axis}     \end{tikzpicture}     \caption{This is my Figure}     \end{figure}          So is this.          \end{document}      I compile the document using TeXLive2011 and the commands               latex --shell-escape minimal.tex ; dvips minimal.dvi ; ps2pdf minimal.ps      Any suggestions how to avoid this issue is welcome!


title: Curly braces and nested arrays

text: I am trying to reproduce the equation of the image below. I am using an `array` environment to create the first big curly brace. I have tried to nest a second `array` to produce a second curly brace, but I get an error. ![enter image description here](http://i.stack.imgur.com/jS5Ck.png) This is the code that gave me an error:               DTW(A,B)=\left\{ \begin{array}{l}         0 \quad \text{se $n$=0 ed $m$=0}\        \infty \quad \text{se $n$=0 o $m$=0}\        d(H(A),H(B))+\min\left\{         \begin{array}{1}             a\            b\            c\        \end{array}         \right.       \end{array} \right.      How can I write this equation?


title: Two-sided amsbook with custom title page

text: I am using `amsbook` to typeset a two-sided document and want to add a custom title page. The problem is that it inserts the TOC right after the title page, without leaving an empty page inbetween. The subsequent chapters then also start at "left" pages. Here is a minimal example:               \documentclass[twoside,openright]{amsbook}          \begin{document}      \begin{titlepage}       This is the title      \end{titlepage}           \tableofcontents           \chapter{First chapter}     \end{document}      I would expect the first page (the title page) to be followed by a blank page so that the TOC starts at the third, as is the case when replacing `amsbook` with the `book` class in the above example. Any attempt to force an empty page, for example by inserting               \newpage\null\thispagestyle{empty}\newpage      before `\tableofcontents`, creates _two_ empty pages and the TOC then again starts at a "left" page. Is there any way I can make the TOC (and the subsequent chapters) to start at a "right hand" page? Thansk in advance!


title: Wrapping text around a table in enumeration environment with cutout and parshape

text: I borrowed the code for my MWE from here. I want to put the table to right side and have difficulty in understanding `parshape` command. What is the purpose of 15 `26pt\linewidth 26pt\linewidth 0.5\linewidth` in `parshape` command. Any help will be highly appreciated. Thanks               \documentclass{article}     \usepackage{cutwin}     \usepackage{caption}     \usepackage{graphicx}     \usepackage{lipsum}     \usepackage{booktabs}          \begin{document}          \renewcommand\windowpagestuff{%       \hspace*{25pt}     \begin{tabular}{ccc}\\\toprule       Header-1 & Header-1 & Header-1 \\\midrule     2 &3 & 5\\  \midrule     2 &3 & 5\\  \midrule     2 &3 & 5\\  \bottomrule     \end{tabular}     }          \opencutleft          \begin{cutout}{3}{10pt}{0.5\linewidth}{12}     \begin{enumerate}     {%     \parshape 15 26pt\linewidth 26pt\linewidth 0.5\linewidth 0.5\linewidth       0.5\linewidth 0.5\linewidth  0.5\linewidth 0.5\linewidth  0.5\linewidth    0.5\linewidth       0.5\linewidth 0.5\linewidth  0.5\linewidth 0.5\linewidth  0.5\linewidth    0.5\linewidth        0.5\linewidth 0.5\linewidth  0.5\linewidth 0.5\linewidth  0.5\linewidth    0.5\linewidth       0.5\linewidth 0.5\linewidth  0.5\linewidth 0.5\linewidth  26pt\linewidth          \item \lipsum[1]          }%          \item \lipsum[2]     \item \lipsum[3]          \end{enumerate}          \end{cutout}          \end{document}


title: How can I place marginal notes always on the right but show normal odd/even headers?

text: I would like to typeset a book where the odd/even pages have the same format: each has a long text section on the left and a place to put small marginal notes on the right. If necessary, I want the environments for tables/code in the text to be able to expand into this right margin. But, I would like to get the standard odd/even page headers for chapters/sections.


title: Remove Numbering (and "()") on SubFloats (in a table)

text: So I have set of three tabular environments in a table:               \begin{table}[h]          \centering     \scriptsize          \subfloat[``student" data table]{     \begin{tabular}{lcc} \toprule     Column Name &  Data Type \\\midrule     id* & Integer \\     name & Text  \\\bottomrule     \end{tabular}     }     \qquad\qquad     \subfloat[``term\_gpa" data table]{     \begin{tabular}{lcc} \toprule     Column Name &  Data Type \\\midrule     id* & Integer \\     term* & Integer \\     gpa & Float \\\bottomrule     \end{tabular}}     \qquad\qquad     \subfloat[``degrees" data table]{     \begin{tabular}{lcc} \toprule     Column Name &  Data Type \\\midrule     id* & Integer \\     term & Integer \\     degree* & Char(5) \\\bottomrule     \end{tabular}}          \end{table}      ![Table Environment](http://i.stack.imgur.com/BPa03.png) Everything looks great, however the "(a)", "(b)", "(c)", has confused some users as being the names of the tables. I'm trying to remove those, however, when I add this:               \renewcommand{\thesubtable}{\relax}      I get each being labeled "()"; so it is suppressing the numbering, but still includes the parathesis. Any ideas. I'm hoping it is something simple. Thanks!


title: Why does mathdesign result in a huge 'cases' environment brace in Tufte documents?

text: I'm getting strange results when I use the `cases` environment in Tufte-LaTeX documents with the `mathdesign` package. Instead of ![enter image description here](http://i.stack.imgur.com/GUZlm.png) I get ![enter image description here](http://i.stack.imgur.com/mOw6a.png) Is there something I can do to get rid of that huge brace? * * *               \documentclass[]{tufte-handout}          \usepackage{mathtools}          %The following appears to be the source of my problems; removing this line produces an acceptable result     \RequirePackage[bitstream-charter,expert,euro]{mathdesign}          \begin{document}          \[     a(1,j)=\begin{cases}     r^{j-1} & ;j\le n\\     f\cdot r^{j-(n+1)} & ;j>n     \end{cases}     \]          \end{document}


title: Acro package: \printacronyms translation

text: While using `acro` package, I get the following message: > Package translations Warning: Translation for `acronym-list-name' in > portuguese unknown. on input line 67. > > Package translations Warning: Using fallback translation for `acronym-list- > name '. The problem here is that I am writing a document in Portuguese and no translation is found for that language. How can I provide such translation? Here is the MWE:               \documentclass[portuguese]{scrartcl}          \usepackage{babel}     \usepackage[utf8]{inputenc}     \usepackage{acro}     \DeclareAcronym{TV}{%         short = TV,         long = Televisão     }          \begin{document}          \printacronyms          A \ac{TV} é a caixa mágica que revolucionou o mundo.          \end{document}


title: Customizing subequations numbering in itemized list

text: This is a follow-up on the question subequation numbering in itemized list.               \documentclass[10pt]{article}          % for fancy math     \usepackage{amsmath}          % rank operator     \DeclareMathOperator*{\rank}{rank}          % Matrix transpose     \newcommand{\trans}[1]{\ensuremath{{#1}^\top}}          % for extra space at the end of abbreviation     \usepackage{xspace}          % positive semi-definite     \newcommand{\psd}{\textsc{psd}\xspace}          % boldface uppercase letters for matrices     \newcommand{\Abf}{\ensuremath{\mathbf A}}     \newcommand{\Bbf}{\ensuremath{\mathbf B}}          % boldface lowercase letters for vectors     \newcommand{\xbf}{\ensuremath{\mathbf x}}          % for math blackboard font     \usepackage{amssymb}     % set of real numbers     \newcommand{\Rbb}{\ensuremath{\mathbb R}}          \usepackage{palatino}     \usepackage[sc]{mathpazo}          \begin{document}     \noindent     For any real symmetric matrcies $\Abf$ such that $\rank(\Abf_{n\times n})=r$,     the following statements are equivalent     and any one of them can serve as the definition of     \emph{positive semi-definite} (\psd) matrices.     \begin{subequations}     \begin{itemize}       \item $\trans\xbf \Abf\xbf \geq 0$ for any non-zero vector         $\xbf\in\Rbb^{n\times 1}$.         \hfill\refstepcounter{equation}\textup{(\theequation)}%       \item All the $n$ eigenvalues of $\Abf$ are non-negative.         \hfill\refstepcounter{equation}\textup{(\theequation)}%       \item $\Abf=\trans\Bbf \Bbf$ for some $\Bbf$ with $\rank(\Bbf)=r$.         \hfill\refstepcounter{equation}\textup{(\theequation)}%     \end{itemize}     \end{subequations}      \end{document}      ![enter image description here](http://i.stack.imgur.com/HUlyj.png) Now, I'd like to customize the labels `(1a)`, `(1b)` and `(1c)` to distinguish definitions from other typical equation numbers.   * I'd like to label them as `(def1)`, `(def2)`, and `(def3)`.   * But I still want to use `subequations` environment because I want to reference them as an equation by `eqref` command. How can I do this?


title: Can I access system/environment variables from LaTeX? For instance, $HOME

text: For instance, I want to include a figure: `~/figures/figure.pdf`. On my Linux box, this is `/home/me/figures/figure.pdf`, but on OS X it is `/Users/me/figures/figure.pdf`. I'd like it if there is an environment variable like `$HOME` so that the latex file can compile on both machines `\includegraphics{$HOME/figures/figure.pdf}`. (Of course it wouldn't use the `$` sign). I just found this post, but Is write18 the most native way? And, in the given example, the assignment wouldn't actually define the variable in LaTex. I tried               \immediate\write18{echo "\newcommand{\HOME}{$HOME}" > var.tex}      But gives me this error:               ! Argument of \@gobble has an extra }.      So now I am at a loss.


title: How to write an i-breve (an i with a breve accent, but without the dot)

text: If I try something like `\u{i}`, I get both the breve and the dot. How can I get it without the dot?


title: How to align address block and date with signature?

text: I need to have the address and date aligned with the signature headers, like with the semi-block header type, but the address block is located all the way to the right of the page while the signature is in the middle. My document looks like this:               \documentclass[10pt,letterpaper]{letter}     \usepackage[utf8]{inputenc}          \address{0000 Easy Street,\\     Nowhere, CA 00000}          \signature{Joe Schmoe}          \begin{document}     \begin{letter}{Somewhere}          \opening{Dear blah..:}          Blah blah blah blah blah.          \closing{Sincerely,}          \end{letter}     \end{document}      I have tried inserting negative space in front of each line of the address, via `\hspace`, but that only moved the address. I have also looked at using `\longindentation` to move the signature all the way to the right, but that isn't the result I want. How can I move the address so that it aligns with the signature?


title: How to include graphics?

text: I have some Matlab code that produces some diagrams. All I want to do, is to import these diagrams into TeXmaker. In which format do I have to save these diagrams and what packages do I need for this purpose?


title: The perfect pdfcrop

text: I need a "perfect" pdfcrop, one that crops **exactly** to the edge of the figure or text for alignment issues as a graphic in other programs. I'm aware of the `standalone` package, and have gone through all the questions on `pdfcrop` including the `\--hires` option. Neither solution crops to _exactly_ to the edge. For example, using `standalone`:               \documentclass[crop]{standalone}     \begin{document}     Hi     \end{document}      ![enter image description here](http://i.stack.imgur.com/gfk5P.png) and using `pdfcrop --hires`: ![enter image description here](http://i.stack.imgur.com/iIxlA.png) As you can see, `pdfcrop` is close, but I need something exact. I think that `standalone` only knows the width given by the glyphs and `pdfcrop` gets its information from `gs`. Is it possible to achieve a perfect crop using LaTeX or any external tool?


title: Removing arrow tips in TikZCD

text: I love the TikZcd syntax to draw diagrams, and I want to use it to draw diagrams of field extensions ; this involves drawing arrows _without tips_. The only command I know to draw lines in tikzcd environments is `\ar` (or `\arrow` if I write it out), and I don't know how to adjust the \ar command so that it just draws straight lines from point `A` to point `B` (recall it is used in the following way : `\ar[options]{rd}[options]{$\phi$}` to render an arrow which goes right-down and put the symbol `$\phi$` next to the arrow. I tried simply putting TikZ commands, but they seem to have no effect (even though it compiles for most of the commands I've tried). Any ideas?


title: biblatex: List of publications in the CV

text: I am writing my CV using the `article` class. How can I list my journal publications and conference presentations each in a separate section? I saved my publication in the `.bib` database.


title: Centering texts in tabularx

text: It is my first question on this site. I am not sure my LaTeX code will be well written here. Here is my table code. The problem is that the text in the first four columns are not centered in respect to each cell. When I write a small text in the X column , the content of the others four culumns are well centered. But it is not the case when i put a long text in the last colum X. Note that the content of the X column have to be justified. What is the solution to that?               \begin{sidewaystable}[h]     \footnotesize     \centering     \renewcommand{\arraystretch}{1.5}     \begin{tabularx}{\textwidth}{c >{\centering\arraybackslash}m{1.5cm} >{\centering\arraybackslash}m{4.3cm} X}     \hline     text & text  & text & text & very big text \\     \hline      text & text & text & text & VERY BIG TEXT \\     \hline      text & text & text & text &  VERY BIG TEXT \\     \hline     \end{tabularx}     \captionsetup{justification=centering,margin=2cm,font={small}}     \caption{.........}     \captionsetup{font={scriptsize}}     \label{.....}     \caption*{......}     \end{sidewaystable}


title: How can I \Aboxed a Matrix?

text: I am trying to use `\Aboxed` around a function containing a `pmatrix`, but anything other than a column vector seems to break `\Aboxed`. I think it has something to do with the `&`'s in the matrix, but I am not sure. `\boxed` seems to work fine when wrapped around a matrix, but that forces me out of the `align` enviroment. Here is an example of what I am trying to do, but the aboxed code is what is triggering the error if you try to compile it.               \documentclass{article}     \usepackage{color}     \usepackage{mathtools}     \usepackage{graphicx}     \usepackage{hyperref}     \usepackage{braket}     \usepackage{cancel}     \hypersetup{     colorlinks=true,     linkcolor=blue,     urlcolor=blue     }     \begin{document}         \begin{equation}             \boxed{ \rho^{(z)}             =             \begin{pmatrix}                 1   &   0   \\                 0   &   0             \end{pmatrix}}         \end{equation}         \begin{align}             \Aboxed{    \rho^{(z)}             &=             \begin{pmatrix}                 1   &   0   \\                 0   &   0             \end{pmatrix}}         \end{align}     \end{document}


title: tiny fonts for IEEEtran not working on biblography

text: I added `\tiny` before adding `\bibliographystyle`. But it is not changing the font size. Any suggestions for reducing the font size of the reference?               \tiny{     \bibliographystyle{IEEEtran}     \bibliography{refs.bib}     }


title: Including a document into another one without redefining setting

text: For a publication, I have to include another publication. The second one is in English and uses IEEEtr style. I could of course compile the second one into a pdf file and include the pdf into the second one, but then the page numbers won't match. Removing the header data of the second file is'nt really an option because the settings are quite different (other language, style, definitions, content)...


title: Align itemize items and text in table

text: I have itemize environment in a table. With a text in other cell, the alignment is not correct. How can I shift the text so that the item is aligned with text? Or, how can I control the indentation of items in an itemize environment in general? ![enter image description here](http://i.stack.imgur.com/8HluE.png)               \documentclass{article}     \usepackage{booktabs}     \usepackage{enumitem}          \newcommand{\fu}[1]{%     %\tightlist%     \begin{itemize}[nosep]%     #1%     \end{itemize}%     \vspace{-\baselineskip}\mbox{}}          \begin{document}          \begin{table}[htbp]       \centering       \begin{tabular}[htbp]{l|p{0.6\textwidth}}         \toprule     \textbf{SB Solution Component} & \textbf{BB Data Satisfied}      \\\midrule          \textbf{Sensing Data Module} & \fu{     \item Ready Signal     }     \\\midrule          \textbf{Contexts Module} & N/A     \\     \bottomrule       \end{tabular}       \caption{BB Data Satisfied for SB Solution Component}       \label{tab:data}     \end{table}          \end{document}


title: How to define the default vertical distance between nodes?

text: Use `positioning` can control the individual vertical position of nodes. But is there any way to control the default vertical spacing?               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows,positioning}          \begin{document}     \pagestyle{empty}          \tikzstyle{decision} = [diamond, draw, text width=4.5em, text badly centered, node distance=3.5cm, inner sep=0pt]     \tikzstyle{block} = [rectangle, draw, text width=6em, text centered, rounded corners, minimum height=4em, node distance=3.5cm,minimum height=2em]     \tikzstyle{cloud} = [draw, ellipse, node distance=3.5cm, minimum height=2em]     \tikzstyle{line} = [draw, -latex']          \begin{tikzpicture}[node distance = 1cm, auto]       \node [block] (1st) {1st};       \node [block, right of=1st]  (2nd1) {2nd1};       \node [block, above=0.7cm of 2nd1] (2nd2) {2nd2};       \node [block, below of=2nd1] (2nd3) {2nd3};       \node [block, right of=2nd1] (3rd1) {3rd1};       \node [block, above of=3rd1] (3rd2) {3rd2};       \node [block, above of=3rd2] (3rd3) {3rd3};       \node [block, below of=3rd1] (3rd4) {3rd4};       \node [block, below of=3rd4] (3rd5) {3rd5};            \path [line] (1st) -- (2nd1);       \path [line] (2nd1) -- (2nd2);       \path [line] (2nd1) -- (2nd3);       \path [line] (2nd2) -- (3rd3);       \path [line] (2nd1) -- (3rd1);       \path [line] (1st) -- (2nd1);     \end{tikzpicture}          \end{document}      Like this. I changed the vertical position of `2nd2` but others remains. Do I have to add individual vertical spacing control of every nodes?


title: Problem with arrows between nodes

text: I need to draw an arrow between 2 nodes but not from the center of the node. When I use a position modificator a new arrow end appears at the starting point. This is a minimal example:               \begin{tikzpicture}       \matrix [column sep=1cm,row sep=3cm]{         \node [] (node1) {Node 1}; \\         \node [] (node2) {Node 2}; \\       };            \begin{scope}[every path/.style={draw, thick,-latex',shorten >= 2pt}]         \path[bend right] (node1) edge (node2);         \path[bend right] (node1.south) edge (node2);         \path[bend right] (node1.south east) edge (node2);       \end{scope}     \end{tikzpicture}      And this is what I get: ![Example](http://i.stack.imgur.com/EEPkU.png) Any advice, please?


title: Moving the position of an arrow in XY-pic

text: Any arrow in XY-pic is on a line which goes through the CENTER of a box, and points to the CENTER of another one. Is it possible to change SEPARETELY (the problem lies here!) the starting position and the arriving position? Of course, it is possible to shift an arrow. But this is not what I am looking for.


title: Problem in compression of multiple citations using abbrvunsrtnat.bst

text: I had a problem in modifying `abbrvnat.bst` to have unsorted abbreviated reference list using `natbib`. Many thanks to @Marco Daniel for his great answer. He perfectly solved my problem by creating `abbrvunsrtnat.bst`. Currently, I have a problem in compressing multiple citations by using `abbrvunsrtnat.bst`. For example, I am not able to see `[8,17-20]` when the citation list is `[8,17,18,19,20]`. I tried `sort&compress` option to `natlib` package but it did not change anything. I am using all these in `classicthesis` package. As an example, the following code does not produce the compressed citation.               \documentclass[                     twoside, openright, titlepage, numbers=noenddot, headinclude,                     footinclude=true, cleardoublepage=empty,                     BCOR=5mm, paper=letter, fontsize=11pt,                     dottedtoc,                     ngerman, american,                     ]{scrreprt}      \usepackage[position=t,singlelinecheck=off,font={it}]{subfig}     \usepackage[eulerchapternumbers,                         listings,                         pdfspacing,                         subfig,                         beramono,                         parts]{classicthesis}          \usepackage[numbers,sort&compress]{natbib}          \begin{document}     \cite{article-full,book-full,misc-full}     \bibliographystyle{abbrvunsrtnat}     \bibliography{Ahmad}     \end{document}      The following is the resulted document. ![enter image description here](http://i.stack.imgur.com/0OIG7.png) Here is the log of `\listfiles`:               *File List*         scrreprt.cls    2012/07/29 v3.11b KOMA-Script document class (report)         scrkbase.sty    2012/07/29 v3.11b KOMA-Script package (KOMA-Script-dependent ba         sics and keyval usage)          scrbase.sty    2012/07/29 v3.11b KOMA-Script package (KOMA-Script-independent          basics and keyval usage)           keyval.sty    1999/03/16 v1.13 key=value parser (DPC)         scrlfile.sty    2012/06/15 v3.12 KOMA-Script package (loading files)         tocbasic.sty    2012/04/04 v3.10b KOMA-Script package (handling toc-files)         scrsize11pt.clo    2012/07/29 v3.11b KOMA-Script font size class option (11pt)         typearea.sty    2012/07/29 v3.11b KOMA-Script package (type area)           subfig.sty    2005/06/28 ver: 1.3 subfig package          caption.sty    2013/04/14 v3.3-73 Customizing captions (AR)         caption3.sty    2013/04/14 v1.5-71 caption3 kernel (AR)         classicthesis.sty    2012/08/12 v4.1 Typographic style for a classic-looking th         esis           ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)         listings.sty    2007/02/22 1.4 (Carsten Heinz)          lstmisc.sty    2007/02/22 1.4 (Carsten Heinz)         listings.cfg    2007/02/22 1.4 listings configuration            ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)         hyperref.sty    2012/11/06 v6.83m Hypertext links for LaTeX         hobsub-hyperref.sty    2012/04/25 v1.12 Bundle oberdiek, subset hyperref (HO)         hobsub-generic.sty    2012/04/25 v1.12 Bundle oberdiek, subset generic (HO)           hobsub.sty    2012/04/25 v1.12 Construct package bundles (HO)         infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)          ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)         ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)           ifvtex.sty    2010/03/01 v1.5 Detect VTeX and its facilities (HO)          intcalc.sty    2007/09/27 v1.1 Expandable calculations with integers (HO)         etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)         kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)         kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)         pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)         pdfescape.sty    2011/11/25 v1.13 Implements pdfTeX's escape features (HO)         bigintcalc.sty    2012/04/08 v1.3 Expandable calculations on big integers (HO)           bitset.sty    2011/01/30 v1.1 Handle bit-vector datatype (HO)         uniquecounter.sty    2011/01/30 v1.2 Provide unlimited unique counter (HO)         letltxmacro.sty    2010/09/02 v1.4 Let assignment for LaTeX macros (HO)          hopatch.sty    2011/06/24 v1.1 Wrapper for package hooks (HO)         xcolor-patch.sty    2011/01/30 xcolor patch         atveryend.sty    2011/06/30 v1.8 Hooks at the very end of document (HO)         atbegshi.sty    2011/10/05 v1.16 At begin shipout hook (HO)         refcount.sty    2011/10/16 v3.4 Data extraction from label references (HO)          hycolor.sty    2011/01/30 v1.7 Color options for hyperref/bookmark (HO)          ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional          auxhook.sty    2011/03/04 v1.3 Hooks for auxiliary files (HO)         kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)           pd1enc.def    2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)         hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive              url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.          hpdftex.def    2012/11/06 v6.83m Hyperref driver for pdfTeX         rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)           xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)            color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive           pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX         dvipsnam.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)         mathpazo.sty    2005/04/12 PSNFSS-v9.2a Palatino w/ Pazo Math (D.Puga, WaS)          beramono.sty    2004/01/31 (WaS)         microtype.sty    2013/03/13 v2.5 Micro-typographical refinements (RS)         microtype-pdftex.def    2013/03/13 v2.5 Definitions specific to pdftex (RS)         microtype.cfg    2013/03/13 v2.5 microtype main configuration file (RS)         booktabs.sty    2005/04/14 v1.61803 publication quality tables         textcase.sty    2004/10/07 v0.07 Text only upper/lower case changing (DPC)         scrpage2.sty    2010/04/22 v2.5 LaTeX2e KOMA-Script package         titlesec.sty    2011/12/15 v2.10.0 Sectioning titles          tocloft.sty    2013/05/02 v2.3f parameterised ToC, etc., typesetting          scrtime.sty    2012/07/29 v3.11b KOMA-Script package (time of LaTeX run)         remreset.sty               natbib.sty    2000/07/24 7.0a (PWD)          ot1pplj.fd    2004/09/06 font definitions for OT1/pplj.          nameref.sty    2012/10/27 v2.43 Cross-referencing by name of section         gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)            alaki.out            alaki.out         supp-pdf.mkii           mt-ppl.cfg    2005/11/16 v1.6 microtype config. file: Palatino (RS)            alaki.bbl      Could someone help me compress the citation list by using `abbrvunsrtnat.bst`?


title: How to typeset Cyrillic characters in tikzpicture nodes?

text: So I have this tikzpicture environment (dot2texi-generated):               \documentclass{beamer}          \usepackage[T2A,T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english,russian]{babel}     \usepackage{tikz}     \usetikzlibrary{arrows,shapes}          \begin{document}          \begin{frame}[fragile]     \begin{tikzpicture}[>=latex,line join=bevel,]     %%     \node (а) at (5bp,51bp) [draw,ellipse] {а};       \node (б) at (5bp,5bp) [draw,ellipse] {б};       \draw [->] (а) ..controls (5bp,39.554bp) and (5bp,29.067bp)  .. (б);     %     \end{tikzpicture}     \end{frame}          \end{document}      with Cyrillic "а" and "б" nodes. pdfLaTeX, though, gives me the following error:               ! Missing \endcsname inserted.     <to be read again>                         \T2A\cyra      l.4 \node (а) at (5bp,51bp) [draw,ellipse] {а};      So the question is: how to use Cyrillic characters in tikzpicture nodes? **UPD** : I should've actually include contents of original `dot2tex` environment. Andrey has given the basic idea of a possible solution: instead of               \begin{dot2tex}[]       digraph { "а" -> "б" };     \end{dot2tex}      one can use:               \begin{dot2tex}[]       digraph { a [label="а"]; b [label="б"]; a -> b }     \end{dot2tex}


title: Different animated pictures but only one control panel

text: I have a beamer frame made up of different animated pictures which share the same time. Is that a way to use the controls option in the animate package so that I can control all the animations at the same time? For example I may have 2 control panels simply doing               \begin{frame}[squeeze,label=MOV]     \frametitle{\centerline{Movie}}     \animategraphics[autoplay,loop,height=0.45\textheight,controls]{6}{vel/vel_}{01}{48}     \animategraphics[autoplay,loop,height=0.45\textheight,controls]{6}{sst/sst_}{01}{48}     \end{frame}


title: Problems with documentclass{book} and utf8 ,prerenderunicode

text: I'm trying to write a book like, report in greek, so at the beggining of every even page the name of the chapter is appeared and at the beggining of every odd page the name of the section is appeared.I'm using the following code               \documentclass[10pt,a4paper,twoside]{book}     \usepackage[english,greek]{babel}     \usepackage[utf8x]{inputenc}     \usepackage{graphicx}     \usepackage{amsmath, amsthm, amssymb}          \usepackage{fancyhdr}     \pagestyle{fancy}               \renewcommand{\chaptermark}[1]{%      \markboth{#1}{}}      \renewcommand{\sectionmark}[1]{%      \markright{\thesection\ #1}}      \fancyhf{} % delete current header and footer      \fancyhead[LE,RO]{\bfseries\thepage}      \fancyhead[LO]{\bfseries\rightmark}      \fancyhead[RE]{\bfseries\leftmark}      \renewcommand{\headrulewidth}{0.5pt}      \renewcommand{\footrulewidth}{0pt}      \addtolength{\headheight}{0.5pt} % space for the rule      \fancypagestyle{plain}{%      \fancyhead{} % get rid of headers on plain pages      \renewcommand{\headrulewidth}{0pt} % and the line      }                               \newcommand{\en}{\selectlanguage{english}}     \newcommand{\gr}{\selectlanguage{greek}}     \newtheorem{thm}{Θεώρημα}[chapter]     \newenvironment{proof1}[1][Απόδειξη:]{\begin{trivlist}     \item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}     \begin{document}           \end{document}      but when I'm compiling my tex I get this at the beggining of the even pages(note that it works corectly at odd pages) ![broken name of chapter](http://i.stack.imgur.com/1YAZ1.jpg) It actually says please insert prerenderunicode (something like that). I have a template that works but runs with the `\usepackage[iso-8859-7]{inputenc}` command which is outdated for my TeXnicCenter 2.0 and MikTeX 2.9 ,so I'm thinking that there is something like a collision between `\documentclass{book}` and `utf8x`,because when I change `\usepackage[iso-8859-7]{inputenc}` with `\usepackage[utf8x]{inputenc}` it doesn't work at all (0 pages). With `\usepackage[utf8]{inputenc}` not even the code that I ve written works. Does anyone had the same problem? Thanks in advance.


title: Porting the luatex/ConTeXt module "translate" to lualatex

text: In this question, which I posted a few weeks ago to TeX Stack Exchange, I asked how one should go about disabling specific ligatures (such as `ff`, `fi`, `fl`, and `ffl`) automatically for a list of pre-defined words. The answer I received was based on ConTeXt, which can access lua(tex) commands directly. In particular, the code that @Aditya came up with includes the commands               \usemodule[translate]     \translateinput[halflife][half|*|life]      The ConTeXt command `\usemodule` is similar to the LaTeX command `\usepackage`. The `\translateinput` command provided by the `translate` module (which is contained in the file `m-translate.mkiv`) relies on the `lua` function `resolvers.openers.helpers.textlineactions`, which hooks into the function that `luatex` uses to read files. According to @Aditya, > no one has written similar functionality for `lualatex`. Perhaps, you could > ask it as a separate question, and one of the `lualatex` experts will be > able to answer with a solution. Here, then, is my question: Can someone provide the `lualatex` equivalent of the following ConTeXt code (which may involve re-writing/adapting the `translate` module to `lualatex`):               \usemodule[translate]          \translateinput[shelfful][shelf|*|ful]      \translateinput[selfish][self|*|ish]     \translateinput[halflife][half|*|life]      \translateinput[cufflink][cuff|*|link]           \definetextmodediscretionary * {\prewordbreak\discretionary{-}{}%          {\kern0.0pt}\prewordbreak}          \starttext          Ligatures not disabled:\\     shelfful selfish halflife cufflink           \medskip     \enableinputtranslation      Ligatures disabled:\\     shelfful selfish halflife cufflink     \stoptext      ![enter image description here](http://i.stack.imgur.com/FmxDm.png) (Note that while a 0-kern separator seems to be appropriate for the words shelfful and selfish typeset with CM, it's not quite adequate for the `f-l` and `ff-l` ligatures. However, I'll leave the question of how to define commands that allow for distinct kerning amounts for various combinations of ligated letters for a different, future question...)


title: TikZ: How to decorate a path with the open diamond arrow tip that "bends" with the path?

text: I have a curved path that I want to put an open diamond arrow tip on. Here is a MWE with my best attempt:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows,decorations.markings}     \begin{document}      \begin{tikzpicture}[decoration={        markings,        mark=at position .5 with {\arrow[>=open diamond] {>} } }       ]       \node (0)                     {};       \node (1) [right       of=0]  {};       \node (2) [below right of=1]  {};       \path (0) edge[out=0, in=135, postaction={decorate}] (2);      \end{tikzpicture}     \end{document}      ![open diamond on curved path](http://i.stack.imgur.com/u5IWL.png) As you can see, the bottom-right point of the diamond is perfectly on the path, but the top-left point is clearly above the path. It appears that the diamond lies on the tangent line of the path at the bottom-right point of the diamond. # Question: How can I place this open diamond arrow tip so that both points of the diamond are on the path? ### Bonus Question: What is the best solution to make the area inside the diamond completely white? I don't want to see the path in the inside of the diamond. I currently have a solution that I feel is a hack, which is to place a white (closed) diamond arrow tip in the same spot first:               mark=at position .5 with {\arrow[>=diamond, white] {>} },


I am using Texmaker 2.2.1 and TeXLive 2009 on Ubuntu and have installed `texlive-latex-recommended`, `texlive-fonts-recommended`, `texlive-latex- base`, `texlive-base`, `texlive-latex-extra`, `texlive-xetex`, and `lmodern` packages. I am getting the following error message:               (/usr/share/texmf-texlive/tex/latex/microtype/mt-cmr.cfg     File: mt-cmr.cfg 2008/02/29 v1.9a microtype config. file: Computer Modern Roman(RS))     **! Font csnameendcsname=texnansi-lmr12+20 at 12.0pt not loadable: Metric (TFM) file not found.**     <to be read again>     relax      TeX is able to find this file (see below). So I don't understand what TeXLive is complaining about.               kpsewhich texnansi-lmr12.tfm     /usr/share/texmf/fonts/tfm/public/lm/texnansi-lmr12.tfm


title: Include floated figure in two column environment

text: I'm using a two column layout and I'm trying to get a figure to appear on the bottom of the page it's currently on. Floats don't work natively in a multicol environment. Right now I'm getting around this issue by placing the following on the page _before_ the one I want the image to appear on:               \begin{figure*}[b!]       \centering       \includegraphics[scale=0.8]{graph}       \captionof{figure}{graph}     \end{figure*}      It works, but the code sure isn't pretty... What can I do to fix this?


title: TikZ: Positioning of multiline nodes

text: Do you know an elegant way to align multiline nodes according to first line, e.g. for use in a legend? Compare this example:               \documentclass{article}     \usepackage[%       paperwidth=7.5cm,%       paperheight=5.5cm,%       margin=0.25cm,%       marginparwidth=0cm,%       centering,%     ]{geometry}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{xcolor}     \usepackage{tikz}     \usetikzlibrary{positioning}     \pagestyle{empty}     %%%%%%%%%%%%%%%%     \begin{document}     \sffamily     %--------------------------------------%     \newlength{\tikztwo}     \settowidth{\tikztwo}{\,two (2) lines\,}     \newlength{\tikzthree}     \settowidth{\tikzthree}{\ three (3)\,}     %--------------------------------------%     \begin{tikzpicture}[very thick,every node/.style={node distance=0.2cm}]       % The grid:       \draw[step=0.1cm,very thin, lightgray] (0,0) grid (6,4.5);       \draw[step=0.5cm,thin, gray] (0,0) grid (6,4.5);       %------------------------------------------------%       % Only for comparison:         \draw[blue,text=black] (0.25,3.5) -- (1,3.5)           node[anchor=west]{one line entry};       %------------------------------------------------%         % No positioning at all, "anchor=north west" is even worse:         \draw[magenta,text=black] (3.25,3.5) -- (4,3.5)           node[anchor=west,text width=\tikztwo]{two lines entry 0};       %------------------------------------------------%         % First attempt, node (A) only for positioning:         \draw[green] (0.25,2.5) -- (1,2.5) node[anchor=west](A){two};         \draw (2.12,2.285) node[text width=\tikztwo]{two (2) lines entry 1};         % Second attempt, node (posA) only for positioning:         \draw[green] (3.25,2.5) -- (4,2.5) node[anchor=west](nodeA){} node[anchor=west](posA){two}           node[below right=-0.439cm and -0.276cm of nodeA,text=black,text width=\tikztwo]           {two (2) lines entry 2};       %------------------------------------------------%         % First attempt, node (B) only for positioning:         \draw[red] (0.25,1.5) -- (1,1.5) node[anchor=west](B){three};         \draw (1.88,1.048) node[text width=\tikzthree] {three (3) lines entry 1};         % Second attempt, node (posB) only for positioning:         \draw[red] (3.25,1.5) -- (4,1.5) node[anchor=west](nodeB){} node[anchor=west](posB){three}           node[below right=-0.411cm and -0.276cm of nodeB,text=black,text width=\tikzthree]           {three (3) lines entry 2};     \end{tikzpicture}     \end{document}      You can see first a two line node without positioning. After that I show the two attempts to manage what I want. Both have drawbacks, though: With both the positioning is done manually.   With he first one you have to change the coordinates of the nodes, if you change the coordinates of the path.   With the second this one does not happen, but you have to change the coordinates, if you change the text, exactly if a sign with uppercase length is added or removed (remove the number with the brackets for a test). Also it is not intuitive, that there I have to change the _second_ coordinate to have an effect in the _x-axis_ and vice versa. BTW: The nodes that I marked “only for positioning” can be removed or commented out after the work is done.


title: Automatic short/long abbreviations AND a table of abbreviations

text: As usual I have quite a number of abbreviations (acronyms, initialism, ...) in my thesis and I'm not happy with the way I have to do it with `glossaries`. I 'only' need the following:   1. Abbreviations are defined as simple pairs of the abbreviations and its full version. Example: 'GEOAA' -> 'Great Example Of An abbreviations'   2. The very first time I use the abbreviations the long form followed by the short form in parentheses should be used: "Great Example Of An Abbreviations (GEOAA)". Afterwards only the short form.   3. For some important abbreviations I like to be able to reset this (2.) for every chapter.   4. A need a "List of Abbreviations", i.e. a `\chapter*` heading and a two-column table (`supertabular`, `longtable`, ...) which lists this abbreviations in alphabetic order.   5. Bonus: Abbreviations should be "easily" sharable between different documents, but this is not that important. I found some material about how to do this with `glossaries`, but it is actually overkill for simple abbreviations. Also there is never a good instruction on how to handle the table. I hacked the following together which read the abbreviations file twice, once for the definition and once for the table. This kind of works (but no sorting etc.) but I really think we should have a better solution for this common task here on TeX.sx.               % thesis.tex (main file; preamble)     \usepackage[shortcuts]{glossaries}     \newcommand*{\myacronym}[3][]{%         \newacronym[#1]{#2}{#2}{#3}%     }     \loadglsentries{acronyms}                    % acronyms.tex     \myacronym{ADC}{analog-to-digital converter}     \myacronym{ASCII}{american standard code for information interchange}     \myacronym{ASIC}{application specific integrated circuit}     \myacronym{BUFG}{global clock buffer}     \myacronym{CLB}{configurable logic block}     % ...                    % abbreviations.tex (loaded where the List Of Abbreviations should be displayed)      \chapter*{Abbreviations}     \thispagestyle{fancy}     \begingroup     \renewcommand{\myacronym}[2]{{#1} & {#2}\\}%          \par\noindent     \tablehead{\textbf{Abbreviation} & \textbf{Meaning}\\}%     \begin{supertabular}{@{}ll}         \input{acronyms}\\     \end{supertabular}     \endgroup      (PS: please don't mind the file names; I know the difference between abbreviations and acronyms.)


title: use variable inside include/input

text: I would like to use a variable so I can define which file to include at compile-time (argument passed to LaTeX - see below). Problem here is that I cannot insert document name with "_", without crashing everything. Is thez a simple way to perform such task? ### Command line used                pdflatex "\def\testpath{my\_document}\input{my_tex_document}"      ### Below is a minimal example of my LaTex document                \documentclass{article}            \title{Librairie \testpath}      \author{Author}           \begin{document}           \section{Insertion of \testpath}      \include{lib_12/\testpath}           \end{document}


title: Considerations when migrating from XeTeX to LuaTeX?

text: What are the things to know when moving from XeTeX to LuaTeX, particularly when it comes to TTF/OTF support and OpenType features?


title: Two books in one volume with sequential number pages but separate chapter numbering

text: I am translating a volume including two books with sequencial number pages but separate chapter numbering for each book. What I would like to do is best illustrated by this skeleton table of contents: CONTENTS First title Preface   1. Introduction   2. First chapter   3. Middle chapter   4. Last chapter Second title   1. Introduction   2. First chapter   3. Middle chapter   4. Last chapter Index Appendix What would be a sane approach? I know about the book, scrbook and tufte-book classes, but I haven’t been able to research more about each’s workings yet.


title: How to properly space unicode ellipsis?

text: Please note the discussion at the end of this thread. After discussing the tex codes \ldots et al, a commenter points out that there is a unicode code point for an ellipsis. However, on my document (which I'm editing in Lyx), the `…` character prints out in my pdf as something resembling a `\cdots` code; that is, vertically centered (and in my case, also shifted horizontally to collide with the next word after the whitespace). See the graphic: ![cropped output of a text sample. The raw text is "lines of … cultural exchange"](http://i.stack.imgur.com/XmBNv.png) In the pdf file itself, I can copy the ellipsis out, and when I paste it into another document, it remains an ellipsis. This is undesireable behavior; how do I tell TeX to treat the unicode ellipsis correctly as a baseline ellipsis character, and format it accordingly? ETA: here is an mwe, which isolates the problem:               \documentclass{article}     \usepackage{xeCJK}     \newfontfamily\zhcn [Path=/usr/share/fonts/arphicfonts/]{uming}     \begin{document}     blah … ... blah     \end{document}      On my system, that outputs the ellipsis character as raised and shifted rightwards. If I drop those two lines from the preamble, the text is correctly formatted. But the xeCJK package shouldn't be called unless I specifically flag something to use it, right?


title: lmodern font - caption "font-style"

text: I am using the lmodern font-package and noticed, that the font on the chapter and section captions (also table of contents) slightly differs from the main document-title etc. I don't know if this is a good style and I just should get used to it, but what I awaited is the same style for the normal text and the captions. ![example](http://i.stack.imgur.com/t8Oi5.png)


title: Meaning of "\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip"

text: I am a novice of LaTeX, and I encounter the following code which I can't understand fully.               \def\@dottedtocline#1#2#3#4#5{%       \ifnum #1>\c@tocdepth tt\else         \vskip \z@ \@plus.2\p@         {\leftskip #2 \relax \rightskip \@tocrmarg \parfillskip -\rightskip          \parindent #2 \relax\@afterindenttrue          \interlinepenalty\@M          \leavevmode          \@tempdima #3 \relax          \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip          {#4}\nobreak          \leaders\hbox{$\m@th\mkern 1.5mu\cdot\mkern 1.5mu$}\hfill          \nobreak          \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%          \par}%       \fi}      The first is               \leftskip #2 \relax \rightskip \@tocrmarg \parfillskip -\rightskip          \parindent #2 \relax\@afterindenttrue      Could somebody explain it to me in detail? The second               \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip      What's the meaning of it, why using `\hskip -\leftskip` and what is the meaning of `\advance\leftskip \@tempdima`? Thank you in advance!


title: What's the difference between \newtheorem{remark}*{Remark} and \newtheorem{remark}{Remark}?

text: Does anyone know the differences between `\newtheorem{remark}*{Remark}` and `\newtheorem{remark}{Remark}`?


title: How can I import and scale matplotlib plots, keeping fonts the correct size?

text: I'm working on several pieces of coursework involving lots of plots generated with matplotlib in python scripts. Currently I'm doing this with an iterative process where I set a plot size in the latex code, generate the correctly sized plot in my python script and run latex to generate the document. This is then repeated when it inevitably doesn't quite look how I want it. This is quite time consuming so I've been looking for some way of speeding things up. What would be ideal would be to run my python script once to produce the graph and then import it in latex using some command to scale it appropriately _while keeping the font settings consistent with the rest of the document_. I'd then play with the settings within latex without needing to modify and re-run the python script each time. The first and second answers to this question seem to be what I'm looking for, but unfortunately they are for Matlab. I've tried using the same procedure with the matplotlib equivalent commands but have had the following problems: ## 1. Generating pgf with matplotlib, scaling with tikzscale: I generate a pgf plot from matplotlib called test.pgf and use the following latex code:               \documentclass{article}     \usepackage{pgf}     \usepackage{tikz}     \usepackage{tikzscale}     \usepackage{pgfplots}          \begin{document}         \begin{figure}             \centering             \includegraphics[width=0.5\textwidth]{test.pgf}             \caption{Some figure}             \label{fig:figure}         \end{figure}     \end{document}      Fails with the following error:               ! Package tikzscale Error: Requested to scale unscalable graphic.      ## 2. Generating .svg with matplotlib, converting to .pdf, scaling with `\includegraphics`: As before except just include `test.pdf`. Fails as text in plots is not scaled correctly... I'd of course be happy to look into some other method too if you can suggest anything!