title: Combine 3 graphs into 1 and add additional labels

text: I would like to make the following figure: ![enter image description here](http://i.stack.imgur.com/hOEyw.png) So, far I have made only each curve in separate figures. How can I combine them into one? How can I have the dashed lines and how can I add the '1st stage', '2nd stage' etc and how the 'strictly increasing' label? My code so far separately is: For TP curve               \begin{tikzpicture}     \begin{axis}[       xmin = 0,       xmax = 8,       ymin = 0,       ymax = 18,        axis lines = left,       xlabel = $L$,       ylabel = $Q$       ]       \addplot+[mark = none] coordinates {%         (0,0)          (1,3)         (2,8)         (3,12)         (4,15)         (5,17)         (6,17)         (7,16)};     \coordinate (A) at (axis cs:0,0);     \coordinate (B) at (axis cs:1,3);     \coordinate (C) at (axis cs:2,8);     \coordinate (D) at (axis cs:3,12);     \coordinate (E) at (axis cs:4,15);     \coordinate (F) at (axis cs:5,17);     \coordinate (G) at (axis cs:6,17);     \coordinate (H) at (axis cs:7,16);     \end{axis}     \end{tikzpicture}      For AP:               \begin{tikzpicture}     \begn{axis}[       xmin = 0,       xmax = 8,       ymin = 0,       ymax = 18,        axis lines = left,       xlabel = $L$,       ylabel = $Q$       ]       \addplot+[mark = none] coordinates {%         (0,0)          (1,3)         (2,4)         (3,4)         (4,3.75)         (5,3.4)         (6,2.8)         (7,2.2)};     \coordinate (A) at (axis cs:0,0);     \coordinate (B) at (axis cs:1,3);     \coordinate (C) at (axis cs:2,4);     \coordinate (D) at (axis cs:3,4);     \coordinate (E) at (axis cs:4,3.75);     \coordinate (F) at (axis cs:5,3.4);     \coordinate (G) at (axis cs:6,2.8);     \coordinate (H) at (axis cs:7,2.2);     \end{axis}     \end{tikzpicture}      For MP:               \begin{tikzpicture}     \begin{axis}[       xmin = 0,       xmax = 8,       ymin = 0,       ymax = 18,        axis lines = left,       xlabel = $L$,       ylabel = $Q$       ]       \addplot+[mark = none] coordinates {%         (0,0)          (1,3)         (2,5)         (3,4)         (4,3)         (5,2)         (6,0)         (7,-1)};     \coordinate (A) at (axis cs:0,0);     \coordinate (B) at (axis cs:1,3);     \coordinate (C) at (axis cs:2,5);     \coordinate (D) at (axis cs:3,4);     \coordinate (E) at (axis cs:4,3);     \coordinate (F) at (axis cs:5,2);     \coordinate (G) at (axis cs:6,0);     \coordinate (H) at (axis cs:7,-1);     \end{axis}     \end{tikzpicture}      Finally, do you know if there is an add-in for Excel that converts its charts into Latex code (as the there is one for tables)?


title: Makeindex and see subentry

text: In the following nearly-MWE I get an index-entry for `simple, example` and one for `ex, see example`, but I don't get one for `example, see simple, example`. How can I get an indexentry like the last one?               \documentclass{scrartcl}          \usepackage{makeidx}     \makeindex          \begin{document}          Here it is a simple example\index{simple!example}          \index{example|see{simple!example}}     \index{ex|see{example}}     \printindex     \end{document}      compile with               xelatex mwe.tex     makeindex mwe.idx     xelatex mwe.tex      Exact wording like described does not matter, important is that I can have a `see` to a sub- or sub-sub-entry instead of a toplevel one.


title: Missing footer problem

text: I am trying to format my document with different header and footer for first page. I have done it successfully for the first page but the footer of the second page is not visible. I think the margins of the second page are changed somehow. Would you please help me to fix this problem? Below is the code.               \documentclass[times,10pt,twocolumn]{cls/IEEEtran}          \usepackage{graphicx}     \usepackage{authblk}     %============== For header and footer     \usepackage{fancyhdr}     \pagestyle{fancy}     %  --------   Normal Headers     \lhead{\textbf{\thepage}}     \chead{Paper Title: Modeling Reliability of the Grid}     \rhead{}     \lfoot{Copyright \textcopyright 2014 MECS}     \cfoot{}     \rfoot{\emph{I.J. Computer Network and Information Security}, 2014, vol, issue, pages}     \renewcommand{\headrulewidth}{0pt} % to remove line on header     \renewcommand{\footrulewidth}{0pt} % to remove line on footer          % ----------------------------define new page style for first page     \fancypagestyle{first}{     \fancyhf{} % clear all header and footer fields     \lhead{\emph{\textbf{I.J. Computer Network and Information Security}}, 2014, Vol,     issue, pages\\     Published Online Month 2014 in MECS (http://www.mecs-press.org/)\\     DOI: }     \chead{}     \rhead{\includegraphics[width=2.5cm]{logo.pdf}}     \lfoot{Copyright \textcopyright 2014 MECS}     \cfoot{}     \rfoot{\emph{I.J. Computer Network and Information Security}, 2014, vol, issue, page}     \renewcommand{\headrulewidth}{0pt} % to remove line on header     \renewcommand{\footrulewidth}{0pt} % to remove line on footer     }     %==============          \begin{document}          \title{\vspace{1.3cm}Modeling Reliability of the Grid\vspace{0.5cm}}          \author{\textbf{My name}}     \affil{\vspace{-0.3cm}\small my affiliation and email}          \maketitle     \begin{abstract}     This is abstract     \end{abstract}          \begin{keywords}     Reliability modeling, Grid computing, Grid site reliability, Network reliability     \end{keywords}          \section{Introduction}     \label{sec:introduction}     \thispagestyle{first}          \newpage     this is second page     \newpage     another page          %\bibliographystyle{abbrv} %plain     %\bibliography{refs}          \end{document}


title: TikZ Issue With Function Plotting

text: I am trying to create this simple TikZ plot of a quadratic function. But the code does not compile, and the error is detected at the part where I introduce the function. What is wrong with it?               \begin{tikzpicture} [xscale=1,yscale=1]          \draw [->] (0,0) -- (0,2) node [left,pos=1] {$\Delta x$} node [above right] at (0.5,2) {Car};     \draw [->] (0,0) -- (2.1,0) node [below, pos=0.9] {$\Delta t$};     \draw [domain=0:2] plot (\x, {2.5\x*\x});          \end{tikzpicture}      Furthermore, how is it possible to put two TikZ plots side by side on the same line? I have not been able to do this so far. Thanks!


title: multicols package set column width

text: Iam having trouble making my text evenly distribute over the entire width of the page               \oddsidemargin -0.3in     \evensidemargin -0.3in     \textwidth 7.3in     \textheight 9in          \begin{multicols}{2}          my text          \end{multicols}      my right side margin is larger than left margin.


title: Commutative Diagrams in Table of Figures

text: Should one treat _commutative diagrams_ as figures within the `figure` environment? If not, is there a way to add a label/caption and have the page number and caption show in the Table of Figures (without the `figure` environment)? Thanks!


title: How to remove everything related to TeX Live for fresh install on Ubuntu?

text: How can I remove everything that is related to TeX Live from my Ubuntu 12.04? I first used the backport packages from `ppa:texlive-backports/ppa` and later the manual install via `install-tl-unx.tar.gz`. Somehow, everything screwed up, so I want to remove everything to start from scratch. I want to get a recent TeX Live with Biber support and extended font support, i.e. support for Source Sans Pro. What to do?


title: math shorthand macro: avoid extra space from empty superscript

text: I find myself writing `$\{0,1\}^x$` a whole lot, so I want to define a shorthand macro:               \def\zo#1{\{0,1\}^{#1}}      However, sometimes I need `$\{0,1\}$` with no superscript. If I write `\zo{}` I get a tiny bit of extra space after the close brace (because there's an empty superscript in there). The only way I have found to get rid of it is               \def\zo#1{\{0,1\}\if\relax\detokenize{#1}\relax\else^{#1}\fi}      which is rather a mouthful. Is there a more elegant way to accomplish this? Note that the actual document I am writing is in LaTeX, so if amsmath (for instance) has something to the purpose, that would be a fine answer. I have expressed the question in plain TeX because it is fundamentally a question about the core math engine. If you can't see the tiny bit of extra space, this MWE (requires `(pdf)etex`) will make it obvious:               \def\a#1{\{0,1\}^{#1}}     \def\b#1{\{0,1\}\if\relax\detokenize{#1}\relax\else^{#1}\fi}     \leavevmode\rlap{$\a{}\a{}\a{}\a{}$}$\b{}\b{}\b{}\b{}$     \bye      -> (400% zoom) ![enter image description here](http://i.stack.imgur.com/VgwJ7.png)


title: What tool was used to generate these technical diagrams?

text: I was reading a paper or Computed Tomography, and I found these two nice diagrams: ![enter image description here](http://i.stack.imgur.com/K9EtP.png) ![enter image description here](http://i.stack.imgur.com/iZnTR.png) And I was wondering, what tool was used to make them. I've worked with Tikz for example, but I believe it would be time consuming to write all that code for these graphs. In addition, I've looked at Inkscape and Gimp, but I don't see how they can be used for these type of diagrams. Finally, I looked at Metapost and that seems like the best candidate. What do you guys think? Is there a nice GUI for drawing these kind of technical plots (2D,3D) with labels and latex fonts? Or should I just stick with coding it up in Metapost or Tikz? Thanks!


title: Non-copyrighted free to use template similar to the AIP template?

text: https://www.sharelatex.com/templates/journals/aip/ Is there a similar template to this which isn't copyrighted?


title: Colored diagonal divided table cell

text: How can I fill a table cell with different colors? I have tried the diagbox package but it doesn't work as you can see. I am not so much interested in the diagonal line. I only want to separate the cell in two triangles, put text in both triangles and fill them with different colors.               \documentclass{article}     \usepackage{tabularx}     \usepackage{colortbl}     \usepackage{diagbox}          \begin{document}     \begin{tabularx}{8cm}{|X|X|X|X|}       \hline       \diagbox{\cellcolor{red}Time}{\cellcolor{green}Day} & Mon & Tue & Wed\\       \hline       Morning & used & used &\\       \hline       Afternoon &  & used & used\\       \hline     \end{tabularx}     \end{document}


title: list of figures and page numbering

text: I made a list of figures at the end of my document and i have a problem. List of figures is longer than one page and i don't want any page numbers on any of these pages. Unfortunately comands below make page number dissapear only on the last page of the list of figures. How can i remove page numbers on every page of list of figures?               \thispagestyle{empty}     \listoffigures


title: Array spacing in multiple line environment

text: Consider the following MWE               \documentclass{article}     \usepackage{amsmath}     \begin{document}     \begin{gather*}       \renewcommand{\arraystretch}{1.2}       \begin{pmatrix} \frac{1}{2} \\ \frac{1}{2} \end{pmatrix} \\       \begin{pmatrix} \frac{1}{2} \\ \frac{1}{2} \end{pmatrix}     \end{gather*}          \begin{gather*}       \renewcommand{\arraystretch}{1.2}       \begin{pmatrix} \frac{1}{2} \\ \frac{1}{2} \end{pmatrix} \\       \renewcommand{\arraystretch}{1.2}       \begin{pmatrix} \frac{1}{2} \\ \frac{1}{2} \end{pmatrix}     \end{gather*}     \end{document}      The first `gather` produces two arrays; in the first, the fractions are properly spaced, while in the second, they are crowded together with the default vertical spacing. Why do I need to respecify `\renewcommand{\arraystretch}{1.2}` after the newline? Is there a better way to do this? (I realize I could enclose the whole gather inside a `{}` pair with a `\renewcommand{\arraystretch}{1.2}` after the opening `{`).


title: Decide whether a label occurs in the current chapter

text: I want to decide if some label occurs in the same chapter as the current one. I use the `zref` package as suggested in Chapter ref with LaTeX to find out in which chapter a label occurs, and compare this to the current one. I tried to do this with both the counter's _display_ and _value_. Here is what I do:               \documentclass{scrbook}          \usepackage[user]{zref}          \makeatletter     \zref@newprop{chapter}{\thechapter}     \zref@newprop{chaptervalue}{\the\value{chapter}}     \zref@addprops{main}{chapter,chaptervalue}     \makeatother          \begin{document}          \chapter{Chapter 1}     \zlabel{chapone}          Compare \thechapter{} with \zref[chapter]{chapone}. Equal:     \ifstr{\thechapter}{\zref[chapter]{chapone}}{Yes.}{No.}     Compare \thechapter{} with \zref[chapter]{chaptwo}. Equal:     \ifstr{\thechapter}{\zref[chapter]{chaptwo}}{Yes.}{No.}          Compare \the\value{chapter} with \zref[chaptervalue]{chapone}. Equal:     \ifstr{\thechapter}{\zref[chapter]{chapone}}{Yes.}{No.}     Compare \the\value{chapter} with \zref[chaptervalue]{chaptwo}. Equal:     \ifstr{\thechapter}{\zref[chapter]{chaptwo}}{Yes.}{No.}          \chapter{Chapter 2}     \zlabel{chaptwo}          \end{document}      In any case, the result is "No.", even if the values are equal. I was using `\ifstr` from the KOMA-Skript package to compare the strings (as I am using this documentclass anyway), but this also happens when one uses other string comparison functions (I have tried `\ifthenelse{\equal{<str1>}{<str2>}}{<true>}{<false>}` from the `ifthen` package and `\IfStrEq` from the `xstring` package). Does anyone understand why this happens? Or can you imagine another way to compare these values?


title: How to create pdf with latex?

text: Sorry about asking a stupid question. I'm just trying to use this, but don't know anything. My problem is: I want to plot graph with python code. I run it in terminal (I'm using mac) by calling: `pdflatex -shell-escape plot_air_drag.tex` > ! I can't find file `plot_air_drag.tex'. > > <*> plot_air_drag.tex > > (Press Enter to retry, or Control-D to exit) > > Please type another input file name: What is the way to run it? Here is my code:               \documentclass[a4paper]{book}     \usepackage{pgfplots}     \usepackage{python}          \pagestyle{empty}          \begin{document}          \begin{python}         from pylab import *     from scipy.integrate import odeint     from functools import partial          ## set initial conditions and parameters     g = 9.81            # acceleration due to gravity     th = 45.            # set launch angle     th = th * np.pi/180.   # convert launch angle to radians     v0 = 20.0           # set speed          x0=0                # specify initial conditions     y0=0     vx0 = v0*sin(th)     vy0 = v0*cos(th)          ## define function to compute f(X,t)     def f_func_k(k,state,time):         f = zeros(4)    # create array to hold f vector         f[0] = state[2] # f[0] = x component of velocity         f[1] = state[3] # f[1] = x component of velocity         f[2] = - k*(f[0]**2 + f[1]**2)**(0.5)*f[0]         # f[2] = acceleration in x direction         f[3] = -g - k*(f[0]**2 + f[1]**2)**(0.5)*f[1]       # f[3] = acceleration in y direction         return f          def gen_plot_data(s,k):         f_func = partial(f_func_k,k)              ## set initial state vector and time array         X0 = [ x0, y0, vx0, vy0]        # set initial state of the system         t0 = 0.         # tf = input("Enter final time: ")         # tau = input("Enter time step: ")         tf = 3         tau = 0.05              # create time array starting at t0, ending at tf with a spacing tau         t = arange(t0,tf,tau)              ## solve ODE using odeint         X = odeint(f_func,X0,t) # returns an 2-dimensional array with the         # first index specifying the time and the         # second index specifying the component of         # the state vector              # putting ':' as an index specifies all of the elements for         # that index so x, y, vx, and vy are arrays at times specified         # in the time array         x = X[:,0]         y = X[:,1]         vx = X[:,2]         vy = X[:,3]              xy = zip(x,y)         np.savetxt(s,xy,fmt='%0.5f')          gen_plot_data("plotdata1.dat",0.04)     gen_plot_data("plotdata2.dat",0)     \end{python}          \begin{tikzpicture}         \begin{axis}[no marks,samples=100,axis lines=center,xlabel=$x$,ylabel=$y$,enlargelimits]             \addplot table {plotdata1.dat};%             \addplot[magenta] table {plotdata2.dat};%         \end{axis}             \end{tikzpicture}          \end{document}


title: Placement and coordinate information of a figure

text: Is it possible to extract the coordinates of where LaTeX places an item? I want to be able to tell what page and where on that page LaTeX placed a figure.


title: Undefined control sequence undetectable

text: I came across the following error message:               ! Undefined control sequence.     l.206 ...quad a_k > \displaystyle\sum_{{\substrack                                                   {j=1 \\ j \neq k}}}^N\disp...      Pardon my ignorance.


title: Problems with ipython notebook Tex

text: I'm using ipython notebook with the following Tex code               %%latex          We begin with the formulation of Maxwell's Laws. \newline     Once     \begin{aligned}     \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\     \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\     \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\     \nabla \cdot \vec{\mathbf{B}} & = 0     \end{aligned}      The %%latex just creates a Tex environment. If I run the code, I get:               We begin with the formulation of Maxwell's Laws. \newline Once     ∇×B⃗ −1c∂E⃗ ∂t∇⋅E⃗ ∇×E⃗ +1c∂B⃗ ∂t∇⋅B⃗ =4πcj⃗ =4πρ=0⃗ =0      And the output is correct in that it's in columns, not rows. The problem is I don't know why the \newline is not creating another line. If try something like:               %%latex     \begin{document}     We begin with the formulation of Maxwell's Laws. \newline     Once     \begin{aligned}     \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\     \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\     \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\     \nabla \cdot \vec{\mathbf{B}} & = 0     \end{aligned}     \end{document}      it still doesn't work. Am I missing some begin-end statements? Do I have to initialize anything?


title: Hyphen between page number gets (blured/diluted) in reference when viewing

text: Title says this weird problem. The hyphen in the end, between the page number `770-808`, gets blurred and diluted. (In this case, if I select and paste in somewhere else, `770808` will show and the hyphen will disappear, but in pic 2&3 cases, I select and paste, then I get `770-808`, hyphen still there) I am using Win7 Ultra 64bit, and the latest Adobe Reader 11.0.06 See picture 1 to 4, as I viewed my work in 4 different formats (by LyX 2.07), problem occurs in pdflatex (pic 1) and LuaTeX (pic 4), but the hyphen displays normally in XeTeX (Pic 3) and divpdfm (pic 2). So weird, the difference between XeTeX and pdflatex is some Unicode support, right?(I’m new, maybe I’m wrong.) I want to let pdflatex also display normally like XeTeX and divpdfm (pic 2 and 3), how do I fix it? ![pdflatex](http://i.stack.imgur.com/JuVeA.jpg) ![dvipdfm](http://i.stack.imgur.com/UxD0Y.jpg) ![XeTex](http://i.stack.imgur.com/ySImP.jpg) ![LuaTex](http://i.stack.imgur.com/FuuYZ.jpg) btw: The hyphen in context part is displayed perfectly, problems only occurs in reference. Also, it is not `bst` file fault, since I changed several `bst`, problem is still there and not `bib` fault, I am using `pages = {770--808}`.


title: how to connect nodes with a figure created in tikz?

text: I have created a sort of 'implies' sign (as well as a 'not implies' sign). How can I make them _both_ connect two nodes?               \begin{document}     \begin{tikzpicture}[rotate=45, transform shape]         \draw (-0.5,0)-- ++(+0.5,0);         \coordinate (B) at (0,0);         \draw ++(-0.5,0.15) -- ++(+0.5,0);         \draw (-0.15,-0.15)-- (0,0);         \draw ++(0,0.15)--+(-0.15,+0.15);         \draw (0,0) .. controls (+0.075,+0.075) .. (0,0.15);         \coordinate (A) at (-0.5,0.15);         \node [strike out,draw,anchor=text] (X) at ++($ (A)!.5!(B) $) {};         \end{tikzpicture}          \end{document}


title: 'fontspec' package problem with XeLaTeX in MiKTeX 2.9

text: Recently, I updated to MiKTeX 2.9, and after this the xelatex compiler fails when compiling documents with the `fontspec` package included. In other words, the following code won't compile:               \documentclass{article}     \usepackage{fontspec}     \setmainfont{Cambria}          \begin{document}     Hello world!     \end{document}      I don't know what has changed when I updated to MiKTeX 2.9, but I get the following build log message in TeXnicCenter:               ("C:\Program Files\MiKTeX 2.9\tex\latex\euenc\eu11mr.fd")     xelatex.exe: Windows API error 1113: No mapping for the Unicode character     exists in the target multi-byte code page.      The same thing seems to be the problem when compiling in TeXWorks. I've tried reinstalling MiKTeX 2.9 to make sure everything was up to date, but this did not help. Does anyone have any idea how I can solve this problem? Answers are much appreciated. EDIT: Here's a list of specifics:   * All outdated packages have been updated, and the file name database has been refreshed.   * I do get a log file when compiling. The only file I don't get is the pdf output.    * The operating system I'm using is Windows Vista.    * The `xelatex --no-pdf file` cmd (terminal) command gives the same error message as quoted above.   * My user name does contain a non-ASCII character. However none of the characters are outsude the Latin-1 charset.   * No other file or folder has a non-ASCII character.


title: Using markdown/restructuredtext to produce a letter

text: For simple documents, I like to use markdown/restructuredtext and convert it to LaTeX using `pandoc` (and LaTeX includes). For documents such as articles, leaflets, etc., it's quite easy. However, I would like to try and typeset letters (using, e.g. the French `lettre` class). How would you adapt the markdown/restructuredtext syntax to do that (specifically, to pass the variables and open the `lettre` environment)?


title: refstepcounter in tcolorbox option

text: I want to increment a counter and update the current label in the `phantom` key of the `tcolorbox` environment, but it is not working, as can be seen in the example below:               \documentclass{article}     \usepackage[paperwidth=6cm,paperheight=6cm,margin=4mm]{geometry}     \usepackage{tcolorbox}          \makeatletter     \newcommand\currentlabel{\@currentlabel}     \makeatother          \begin{document}          \newcounter{mycounter}          \begin{tcolorbox}[phantom=\refstepcounter{mycounter}]       counter value: \themycounter\ \currentlabel.     \end{tcolorbox}          \begin{tcolorbox}[phantom=\refstepcounter{mycounter}]       counter value: \themycounter\ \currentlabel.     \end{tcolorbox}          \refstepcounter{mycounter}     \begin{tcolorbox}       counter value: \themycounter\ \currentlabel.     \end{tcolorbox}          \refstepcounter{mycounter}     \begin{tcolorbox}       counter value: \themycounter\ \currentlabel.     \end{tcolorbox}          \end{document}      The output follows ![output of mwe](http://i.stack.imgur.com/9TuHh.png). Observe that `\@currentlabel` is not updated when the counter is incremented using the `phantom` key. Is this a bug or I am missing something here?


title: Remove space before \reftextfaraway

text: I'm trying to change the format of `\vref` output (from the `varioref` package). I've added:               % Change the format of vrefs     \renewcommand*{\reftextfaraway}[1]{, page~\pageref{#1}}      This is close, but not close enough: I end up with "1.1 , page 34". I'd like to have "1.1, page 34". Can this be done?


title: how to make "strike out" rotate with the rest of the figure?

text: I have a figure which I generated using the code below. Basically, when I use `[rotate=45]` option, I would like to ensure that the strike out symbol is rotated as well. Also, related to this figure, how can I make it connect 2 nodes? (such that its size automatically fits the space between)?               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri,calc,shapes.misc}          \begin{document}     \begin{tikzpicture}[rotate=45]         \draw (-0.5,0)-- ++(+0.5,0);         \coordinate (B) at (0,0);         \draw ++(-0.5,0.15) -- ++(+0.5,0);         \draw (-0.15,-0.15)-- (0,0);         \draw ++(0,0.15)--+(-0.15,+0.15);         \draw (0,0) .. controls (+0.075,+0.075) .. (0,0.15);         \coordinate (A) at (-0.5,0.15);         \node [strike out,draw,anchor=text] (X) at ++($ (A)!.5!(B) $) {};         \end{tikzpicture}          \end{document}      A screenshot of the result: ![enter image description here](http://i.stack.imgur.com/O4jnl.png) As As you might observe, the striking out symbol remains as is. * * * Here is a before and after, for comparison: ![enter image description here](http://i.stack.imgur.com/ociju.jpg)


title: Why this bibtex entry give me a 'undefined control sequence'?

text: Having this bibtex entry in `file.bib`:               @ARTICLE{Silva2007,       author = {Newton José Rodrigues da Silva and Jean-Eudes Beuret and Olivier     Mikolasek and Guy Fontenelle and Lionel Dabbadie and Maria Inez Espagnoli Geraldo Martins},       title = {Modelo Teórico de Análise de Políticas Públicas e Desenvolvimento},       journal = {Revista de Economia Agrícola},       year = {2007},       volume = {54},       pages = {43-66},       number = {2},       month = {jul/dez},       file = {Silva2007.pdf:Silva2007.pdf:PDF},       owner = {vinicius},       school = {Universidade do Estado de São Paulo},       timestamp = {2012.02.07},       url = {http://www.cati.sp.gov.br/Cati/_tecnologias/piscicultura/ASP-PISCICULTURA.pdf}     }      Citing like this on `file.tex`:               \documentclass{abnt}     \usepackage[brazilian]{babel}     \usepackage[utf8]{inputenc}     \usepackage{makeidx}     \usepackage{hyperref}     \usepackage[none]{hyphenat}     \usepackage{abnt-UFPR}     \usepackage{abntcite}     \usepackage{color}          (..)          \cite{Silva2007}          (..)          \renewcommand{\-}{\penalty 0}     \bibliography{tg}      And compiling it like:               pdflatex file.tex     bibtex file.aux     pdflatex file.tex     pdflatex file.tex      Will prompt on the following error:               [26]) (./tg.bbl [27] [28]     ! Undefined control sequence.     <argument> ...ti\-.sp\-.gov\-.br\-/Cati\-/\underl                                                        ine{\^^M}tecnologias\-/pis...     l.215 ...logias/piscicultura/ASP-PISCICULTURA.pdf}                                                   .}      Any help is much appreciated.


title: arrows with tikz package

text: I use tikz, and try draw a directed graph with               \begin{tikzpicture}                                                                       \node[draw, circle] (1) {1};                                                              \node[draw, circle] (2) [ right of=1] {2};                                                     \path (1) edge (2);                                                                       \end{tikzpicture}        and get ![ss](http://i.stack.imgur.com/FTuRb.png) how I can get this ? (with arrow) ![ss1](http://i.stack.imgur.com/wGEMi.png) ### Edit I try with               \path[->] (1) edge (2);      but I get               ! Argument of \language@active@arg> has an extra }.     <inserted text>                      \par      l.403     \path[->] (                          1) edge (2);


title: Displaying numbers in moderncv showing symbols "W2 and 1099"

text: I am trying to write out this sentence \item Issued W2’s to employees and 1099’s to contractors but when latex processes it I end up with . I am sure it is a simple fix but for the life of me google isnt returning much and my knowledge of latex is limited. Thanks in advance. ![this](http://i.imgur.com/7oF53wD.png)


title: How can I create a table that spans across the width of two vertical (and opposite) A4 pages?

text: I have a large (wide) table to typeset. I usually use the code below for my tables which enables me to specify the width of each column in the table. However, it is up to me to make sure that the sum of the column widths fit on a page.               \documentclass[12pt, a4paper]{article}      \usepackage{booktabs, array}          \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}          \begin{document}     \begin{table}     \begin{tabular}{C{2cm}  C{2cm} C{2cm} C{2cm}  C{2cm} C{2cm}}     \toprule          ~ & \textbf{Column 1} & \textbf{Column 2} & \textbf{Column 3} & \textbf{Column 4} & \textbf{Column 5}  \\     \textbf{Row 1} & Text (1,1) & Text (1,2) & Text (1,3) & Text (1,4) & Text (1,5)  \\     \textbf{Row 2} & Text (2,1) & Text (2,2) & Text (2,3) & Text (2,4) & Text (2,5)  \\     \textbf{Row 3} & Text (3,1) & Text (3,2) & Text (3,3) & Text (3,4) & Text (3,5)  \\     \textbf{Row 4} & Text (4,1) & Text (4,2) & Text (4,3) & Text (4,4) & Text (4,5)  \\     \textbf{Row 5} & Text (5,1) & Text (5,2) & Text (5,3) & Text (5,4) & Text (5,5)  \\     \textbf{Row 6} & Text (6,1) & Text (6,2) & Text (6,3) & Text (6,4) & Text (6,5)  \\           \bottomrule          \end{tabular}     \caption{This is a table}     \end{table}     \end{document}      I would like to create a very wide table that spans across the width of 2 vertical A4 pages (I am writing a document using 2 sides of a page and I would like the left corner of my table to be on an even page number and the right corner of the table on the opposite page). There should therefore not be any right margin on the left page and no left margin on the right page so that the table is continuous across the width of the two A4 pages. Is this possible?


title: Create a macro for heading

text: `LNCS` class requires `3rd-level heading` to be " **Run-in Heading in Bold.** Text follows" at `10 point, bold` It seems that there is no existing macro for that, so I have written:               \newcommand{\headingthree}[1]{\noindent\textbf{#1}}      I also use `\paragraph`, I realize that `\paragraph` automatically adds a line above the text, but `\headingthree` doesn't. Does anyone know how to make my `\headingthree` automatically add space above the text as a `\paragraph` does? PS: the 3rd-level heading: ![enter image description here](http://i.stack.imgur.com/t1iep.png)


title: Combining multiple latex document on source level

text: Suppose I have two tex files with the structures: `cat file1.tex`               \documentclass{article}     \usepackage{package1}     \usepackage{package2}          \newcommand{\mymacro1}{mymacro1}     \newcommand{\mymacro2}{mymacro2}          \begin{document}     Text1     \end{document}      `cat file2.tex`               \documentclass{article}     \usepackage{package2}     \usepackage{package3}          \newcommand{\mymacro2}{mymacro2 another version of it}     \newcommand{\mymacro3}{mymacro3}          \begin{document}     Text2     \end{document}      I am looking for a tool to combine those files (semi)automatically on _source level_ , i.e. I want to get a file like: `cat combinde_file.tex`               \documentclass{article}     \usepackage{package1}     \usepackage{package2}     \usepackage{package3}          \newcommand{\mymacro1}{mymacro1}     \newcommand{\mymacro2}{mymacro2 another version of it}     \newcommand{\mymacro3}{mymacro3}          \begin{document}     Text1          \newpage           Text2     \end{document}      So the tool should merge the preambles, remove duplicate entries, and if a conflict such as with `\mymacro2` in my example occurs, the program should ask me which to keep. The body texts should just joined, with some custom separation commmand like `\newpage` in my example.


title: How to get parts without prefixes?

text: I am using the class `scrbook` and I would like to have parts without prefixes (similar to the default chapters in scrbook), i. e.               \documentclass{scrbook}          \begin{document}       \part{This Is Part One}     \end{document}      > **Part I.** > > **This Is Part One** should become > **I. This Is Part One** I have not found a way to do this in the documentation of koma-script, but I hope there is a simple solution.


title: aligning arrows vertically and centered numbering with a text between two equations

text: I have been struggling with a couple of things concerning the following system of equations, this is the best I could achieve so far:               \documentclass[11pt,a4paper,oneside]{report}     \usepackage[pdftex]{graphicx} % to work PDFLaTex     \usepackage[T1]{fontenc}      \usepackage{fouriernc}     \usepackage{amsfonts,amsmath,amssymb,amsthm}      \usepackage[a4paper, hmargin={3.5cm,3cm}, vmargin={2.5cm,2.5cm}]{geometry}      \usepackage{multicol}     \usepackage{fancyhdr}      \usepackage{enumerate}     \usepackage{wasysym} % symbols     \usepackage[pdftex]{hyperref}     \newcommand\abs[1]{\left|#1\right|}     \newcommand{\ndiv}{\hspace{-4pt}\not|\hspace{2pt}}     \def\quotient#1#2{%     \raise1ex\hbox{$#1$}\Big/\lower1ex\hbox{$#2$}%     }     \DeclareMathOperator{\z}{\mathbf{Z}}      \DeclareMathOperator{\q}{\mathbf{Q}}      \begin{document}     \begin{align}     e_{v} & \colon \q[x]\longrightarrow \Lambda\otimes_{\z}\q  \\     e_{v} & \colon f(x) \longmapsto f(\omega_{1})\\     \intertext{where $ker\;e_{v}=\bigl<(x^3-bx^2+acx-a^2d)\bigr>$. The evaluation map is clearly surjective hence by the First Isomorphism Theorem for rings it induces an isomorpism}     \lambda & \colon  \q[x]\xrightarrow{\hspace*{1.6cm}} \Lambda\otimes_{\z}\q\\     \lambda & \colon  \quotient{\q[x]}{\text{ker}\;e_{v}} \longmapsto f(\omega_{1})     \end{align}      \end{document}      and the result ![enter image description here](http://i.stack.imgur.com/BgjwN.jpg) I would like possibly to improve the following: 1) only one numbering that is centered between each two equations 2) the arrows in the first and the second system of equations to be vertically aligned (the length of the second arrow in the second system has been adjusted manually...) 3) and in the second system I would like Q[x] and Q[x]/ker e_v to be also vertically aligned with one another I would really appreciate if someone could help me with this. Thanks in advance.


title: Space between conclusion and appendices in ToC

text: I would like to add some space between conclusion chapter and the first appendix in ToC. I'm already using **\setlength{\cftbeforechapskip}** to adjust vertical length of the space between ALL chapters in ToC. My code is               \documentclass[a4paper,12pt]{book}     \usepackage[titles]{tocloft} %changing vertical length of the space between ALL chapters                                  %entries in ToC via \setlength{\cftbeforechapskip}{1pt}          \begin{document}          \frontmatter     \setlength{\cftbeforechapskip}{6pt}      \tableofcontents               \mainmatter     \chapter*{Introduction}     \addcontentsline{toc}{chapter}{Intro}          \chapter{aaaaaaaaaaaaaaaaaaaaaaaaaaaaa}     \section{111111}     \section{222222}     \section{3333333}     \chapter{bbbbbbbbbbbbbbbbbbbbbbbbbbbbb}     \section{111111}     \section{222222}     \section{3333333}     \section{4444444}     \section{5555555}     \section{6666666}     \chapter{ccccccccccccccccccccccccccccccccccc}     \section{111111}     \section{222222}     \section{3333333}          \chapter*{Conclusion}     \addcontentsline{toc}{chapter}{Conclu}               \appendix     \chapter{aaaaaaa}     \chapter{bbbbbbbb}     \chapter{ccccccccc}          \end{document}      And the picture to make things more clear, ![enter image description here](http://i.stack.imgur.com/vyTfJ.png) Cheers!


title: Controlling table at the beginning of a section

text: I have a document, and there is a chapter with few tables. In this chapter I have this section:               \section{Some section}     \begin{table}[H]     \begin{tabular}{|l|l|l|l|}     ---     \end{tabular}     \caption{Some caption}     \end{table}      now, after compiling I get section at the top of the page and my table at the bottom. I tried to use               \usepackage{float}      with H or h options for tables, and it worked for other tables, but not for this one. What am I doing wrong?


title: two fonts in math mode

text: In math mode (e.g. between `$ $`) I would like to use by default computer modern math but to define a new character with a different font e.g. mathpazo. Practically, i want to define a new command `\mycommand{T}` which use mathpazo for T. Is it possible? I saw that a similar question was asked but for matrices, here I just want one new character.


title: Using \total of totcount package in section title

text: I am keeping track of all the journal papers I review, and of course I'm using LaTeX. There are different journals I review for and I have different tables and counters keeping track of papers. Each journal has it's own section--- something similar to this: **IEEE Transactions on Power Systems (2)**   1. Title of the first paper, my decision, editor's decision.   2. Title of the second paper, my decision, editor's decision. **IEEE Transactions on Power Delivery (1)**   1. Title of the first paper, my decision, editor's decision. I have defined environments and commands to automate things as much as possible. I want to be able to show the number of papers at the beginning of my document; therefore, I'm using `totcount` package. Then simply writing something like (after defining TPWRD as a "total" counter)               Total number of TPWRD papers: \total{TPWRD}      does the trick. But I also want to show this number in the section title, as shown above in the parenthesis, and in the table of contents. My problem is that using `\total` as part of a section/subsection title gives me the error "Undefined control sequence." This happens without any parametrization. That is, even               \section{Simple Section \total{TPWRD}}       results in an error. Using               \section[Simple Section]{Simple Section \total{TPWRD}}      avoids the problem by showing the counter value only in the section title and not in the table of contents. How can I have both? I have also tried `\protect\total{TPWRD}`, but it results in another error: `Missing number, treated as zero`. Here's a MWE:               \documentclass{article}          \usepackage{hyperref}            \usepackage{totcount}     \newtotcounter{TPWRD}          \begin{document}          \tableofcontents          \section{Journals \total{TPWRD}}       \stepcounter{TPWRD}          \end{document}


title: How to create separate parts in a long paper?

text: I have a long paper which includes several chapters. I want to add a separator between certain subsets of chapters, which will have numeral counts, and will include a title taking the whole page, as a separator between these chapters. These separators should be included in the table of contents, with font which is slightly larger. For example:               Part I: Related work (whole page, centered)     chapter 1     chapter 2          Part II: Our Method (whole page, centered)     chapter 3     chapter 4      and so on. How can I set this up? I have seen this done in dissertations, and I am pretty sure there must be some command or type of "section" which is at a higher level than a chapter, but I can't seem to find it. Any help is appreciated.


title: How to change default compiler?

text: I have been using LaTeX for about a year now and I am fairly proficient in TextMate. I am currently experimenting with Emacs and AucTeX. I installed the starter kit that Keiran Healy has available. Everything seems to be working fine (all the packages are there and available), but I can't compile the .tex file. I get the following error:               Running `LaTeX' on `test' with ``xelatex --synctex=1 -interaction=nonstopmode "\input" test.tex''     /bin/sh: xelatex: command not found     LaTeX exited abnormally with code 127 at Thu Apr 26 21:02:58      I'm assuming this is probably something simple to fix, but I haven't been able to find a solution searching on here. When I compile the file in Textmate it says it is using pdfTeX. I guess I would like to use that since I've had no problems with it previously. Any help that could get me up and running would be greatly appreciated.


title: bibliography at the end of the chapter and end of the book (thesis)

text: I am writing my thesis. I added bibliography at the end of the each chapter but i need to add all of the citations at the end of the book.               \begin{document}     \frontmatter     \maketitle     \makesignature     \input{dedication}     \input{abstract}     \input{aknowledgements}     \maketoc     \makelof     \makelot          \mainmatter     \include{chap1}     \include{chap2}     \include{chap3}          %/bibliography{chap1}     %/bibliography{chap2}     %/bibliography{chap3}          \appendix     \input{appendix0}     \input{appendix2}     \input{appendix1}     \input{appendix3}      when i add bibliography in the main text it not alphabetical order


title: Making a long footnote span two columns

text: I am using an ACM proceedings document class (acm_proc_article-sp) which uses a standard 2-column layout. I have a very long, unbreakable footnote that needs to span both columns. Is this possible? Currently it appears on the left or right, depending on where in the body the `\footnote` command is used. If it appears on the left column, it spans the full page and if another footnote appears on the right column, they are drawn on top of each other. Or if it appears on the right column, then half of it goes off the page.


title: No pdf is being produced while using moderncv

text: I am trying to make a CV using moderncv. I tried some example CV tex files, but got no pdf being produced, though there was no any error actually. So rather I tried a simple one like this:               \documentclass[11pt,a4paper]{moderncv}          %% ModernCV themes     \moderncvtheme[blue]{casual}       %\moderncvstyle{casual}     %\moderncvcolor{blue}     \renewcommand{\familydefault}{\sfdefault}     \nopagenumbers{}          %% Character encoding     \usepackage[utf8]{inputenc}          %% Adjust the page margins     \usepackage[scale=0.75]{geometry}          %% Personal data     \firstname{Protik}     \familyname{Das}     \title{Resume}     \address{University of Dhaka}     %\mobile{+1~(234)~567~890}     \phone{01678-715530}     %\fax{+3~(456)~789~012}     \email{john@doe.com}     \homepage{www.johndoe.com}     \extrainfo{additional}     \photo[6pt][0.4pt]{pic}     \quote{Some quote (optional)}          %%------------------------------------------------------------------------------     %% Content     %%------------------------------------------------------------------------------     \begin{document}          \maketitle          \section{Education}          \end{document}      I got one badbox & other warning type while running this. These are: badbox: Underfull \hbox (badness 10000) in paragraph at lines 36--36 warning: \footskip is too small (30.0pt): Make it at least 36.71997pt. I tried both `\maketitle` & `\makecvtitle` they both showed the same error. If I omit the `\maketitle` then it runs & only a pdf with Education section is produced. I'm using texmaker with most updated Miktex. Can anybody please help?


title: PSTree creates confusing Undefined control sequence

text: This bit of code generates an `undefined control sequence` on the last curly brace. What am I doing wrong?               \psset{levelsep=1cm,treesep=.75cm,nodesep=4pt}     \begin{center}          \pstree{\Tr{$z$}}     {         \pstree{\Tr{$y$}}         {             \pstree{\Tr{$w$}}             {                 \Ttri{A}                 \pstree{\Tr{$x$}}                  {                     \Ttri{B}                     \Ttri{C}                 }             }             \Ttri{D}         }         \Ttri{E}     }          \hspace*{0.5in}     into     \hspace*{0.5in}          \pstree{\Tr{$x$}}     {         \pstree{\Tr{$w$}}%             {             \Ttri{A}             \Ttri{B}         }         \pstree{\Tr{$y$}}             {                 \Ttri{C}                 \pstree{\Tr{$z$}}                 {                     \Ttri{D}                     \Ttri{E}                 }             }     }          \end{center}


title: Bibliography in reverse order of entrance in .bib

text: When I type:               @ARTICLE{article1,       author  = {AAA},        title = {New Method1},       year    ={2013},       journal = {SuperJournal},     }          @ARTICLE{article2,       author  = {BBB},        title = {New Method2},       year    ={2013},       journal = {SuperJournal},     }      the desirable order is > [1] BBB,Article2,... > > [2] AAA, Article1,.. In other words, I want the opposite of what `\bibliographystyle{unsrt}` give me. Anyone? EDIT. I extend the question by addidng more information. I want to import files from publications.bib using multibib package.                documentclass[11pt,a4paper,sans]{moderncv}      \moderncvstyle{classic}                                  \moderncvcolor{blue}                                       \makeatletter     \renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}     \makeatother     \renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]}          % bibliography with mutiple entries     \usepackage{multibib}          \newcites{article}{{Articles}}          .     .     .          \section{Publications}          \nocitearticle{article1, article2}     \bibliographystylearticle{unsrt}     \bibliographyarticle{publications}            \end{document}


title: Add arrows heads around polygon in xfig

text: I've various xfig drawing built using mostly polygons, although maybe some polylines. In xfig, a line can have have arrow heads attached. Is there any easy way to do this with the lines that make up a polygon? Or should I simply write a perl script to turn the polygons into lines?


title: How to align long subequations while breaking each one?

text: I want to align all the terms of two similar subequations, but the problem is that each one is long enough to need breaking. The problem is that after breaking \align tries to align every line with each other. What I want, apparently is to align all the terms of line 1 with those of line 3 and all the terms of line 2 with those of line 4, simply because lines 1-2 contain the first equation and lines 3-4 the second. I have read all other align questions but no one really aligns long subequations. This is the code that I have ended up with after numerous tries.                   \begin{subequations}         \label{energy13}         \begin{align}         & u_e\frac{\partial \left(\varrho_e u_e\right)}{\partial t}         + u_e\frac{\partial \left(\varrho_e u_e^2\right)}{\partial s}         + u_e\frac{\partial \left(\varrho_e u_e v_e\right)}{\partial n}          -2 \varrho_e \varOmega u_e v_e \nonumber \\          &=- u_e\frac {\partial p_e}{\partial s}         +\qquad         +\varrho_e u_e\left(\varOmega^2R_{OPs}+\frac{\partial\varOmega}{\partial          t}(R_{OPn}+n)-\frac{\partial^2 R_{Os}}{\partial t^2}\right) \\         & u\frac{\partial \left(\varrho u\right)}{\partial t}         + u\frac{\partial \left(\varrho u^2 \right)}{\partial s}         + u\frac{\partial \left(\varrho u v \right)}{\partial n}           -2 \varrho \varOmega u v \nonumber \\         &=- u\frac {\partial p}{\partial s}         +\mu u\frac {\partial^2 u}{\partial n^2}         +\varrho u \left(\varOmega^2R_{OPs}+\frac{\partial\varOmega}{\partial          t}(R_{OPn}+n)-\frac{\partial^2 R_{Os}}{\partial t^2}\right)         \end{align}         \end{subequations}      It barely aligns anything as it is. I am confused, is there a fix within the amsmath package without using IEEE special align stuff?


title: Siunitx and cancel package

text: I want to symbolically cancel out units using the siunitx package. To do so I tried the cancel package as in the following minimal example:               \documentclass{article}          \usepackage{amsmath}     \usepackage[per=frac]{siunitx}     \usepackage{cancel}          \begin{document}     \begin{align*}        \frac{\SI{7}{\m}}{\SI{3}{\m}} =  \frac{\SI{7}{\cancel \m}}{\SI{3}{\cancel \m}}     \end{align*}     \end{document}      But this gives me the following output, i.e. when using `\cancel` the font of the unit changes which is not desired. Any idea how to fix this? ![output](http://i.stack.imgur.com/m9yev.png) **Edit** : I tried @percusse's solution which works very well. But if I also add the option `expproduct=cdot` to the package options, the problem reappears.


title: Problem with Greek language

text: I am trying to write an essay in Greek and I type Greek characters but it doesn't compile. I have downloaded both `greektex` and program `Babylon` but it seems that I can't make them work.


title: No clue where to put \thechapter

text: In my ToC I need a chapter word next to chapters. Where to put `\thechapter` to get result               \renewcommand*\@seccntformat[1]{ \csname the#1\endcsname.\enspace}     \def\numberline#1{\hb@xt@\@tempdima{#1.\hfil}}     \renewcommand*\l@chapter[2]{%     \ifnum \c@tocdepth >\m@ne     \addpenalty{-\@highpenalty}%      \vskip 1.0em \@plus\p@      \setlength\@tempdima{1.0em}%      \begingroup        \parindent \z@ \rightskip \@pnumwidth        \parfillskip -\@pnumwidth        \leavevmode \bfseries        \advance\leftskip\@tempdima        \hskip -\leftskip        #1\nobreak\mdseries        \leaders\hbox{$\m@th          \mkern \@dotsep mu\hbox{.}\mkern \@dotsep         mu$}\hfill        \nobreak\hb@xt@\@pnumwidth{\hss #2}\par        \penalty\@highpenalty      \endgroup     \fi}     %     \def\@makechapterhead#1{%     %\vspace*{50\p@}%     {\parindent \z@ \raggedright \normalfont      \ifnum \c@secnumdepth >\m@ne          \normalsize \bfseries \MakeUppercase{\@chapapp}\space \thechapter          \par\nobreak          \vskip\baselineskip       \fi       \interlinepenalty\@M      \LARGE \bfseries #1\par\nobreak      \vskip 40\p@     }}      %     \def\@makeschapterhead#1{%      %\vspace*{50\p@}%       {\parindent \z@ \raggedright        \normalfont        \interlinepenalty\@M        \LARGE \bfseries   #1\par\nobreak        \vskip 40\p@       }}       %


title: Style: "In the table below.."

text: You commonly see references to "the figure below" and "the table below" in literature.               In the table above [2], one can see..      However, LaTeX provides `\ref`, which acts as a hyperlink. Is it better LaTeX style to omit the words "table below" and simply cite your own table as a reference? So the sentence above would read               In [2], one can see..      Where [2] is a `\ref`'d table element in the same document. However one cannot tell if the hyperlinked element is a table or an image from the sentence now. Perhaps a better alternative is               In the table [2], one can see..      Which is the better LaTeX style?


title: xparse empty arguments

text: I have defined a command using `xparse` as               \DeclareDocumentCommand\mymacro{o o o}      and I want to call it with various numbers of arguments (up to 3)               \mymacro, \mymacro[test][two], \mymacro[][][test]      etc... The issue is that `[]` doesn't seem to return a `\NoValue` but an empty token as the tests I use `\IfNoValueTF` never return false on it. Is there a way to make an "empty" argument like `\mymacro[]` set `#1` to `\NoValue` when it is an empty string? Essentially I need "empty" arguments to be set to `\NoValue` for my code to work. I could always do               \mymacro[\NoValue][test][\NoValue]      but of course that defeats the purpose of making it simple. In my code I use `\IfNoValueTF{#n}` a lot but for it to work on empty arguments I would need something like `\IfNoValueOrEmptyTF`.


title: Add line to particular column in table?

text: I want to make an table like this Here is my LaTeX code:               \begin{table}[!htbp]     \centering     \caption{Comparison of all discussed Classifiers} \begin{tabular}{|>     {\raggedright}p{1cm}|>{\raggedright}p{3cm}|>{\raggedright}p{5cm}|>{\raggedright}p{5cm}|}     \hline           3. & Template Matching (TM) & Computed very simple and Need matching the template over       the image & Rotation and Scalling variant \tabularnewline       & & Easy change if there are a new classes of signs &  \tabularnewline      \hline       \end{tabular}       \label{Classifiers_Com}       \end{table}      I want to make the 3rd columm has a line to separate those sentences **"Computed very simple and Need matching the template over the image** "   and   **"Easy change if there are a new classes of signs"** How to do it??


title: How to deal with PDF figures

text: I can insert **JPEG** figures in publications, but when it comes the time to include **PDF** figures (I prefer them for graphics because of its vectorial nature) I cannot scale them properly. I am using `width=0.5\textwidth` because I have two-column text format, but I guess there should be a more elegant method to adjust. I also don't find any help for `\includegraphics` inside `figure` environment commands, like               \begin{figure}[h]     \includegraphics{image.pdf}     \end{figure}      Any link or help on this topic would be nice.


title: How to get the domain for the line of best fit w/pgfplots to be all real numbers?

text: Although I already worked around this problem by finding the x-intercept with the linear regression equation I calculated w/gnuplot, I'm still curious to know how `pgfplots` can do it without me manually computing it. * * *               \documentclass[12pt]{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{lmodern,tikz,pgfplots,pgfplotstable}          \begin{document}          \begin{center}     \begin{tikzpicture}       \begin{axis}[axis on top=false, axis x line=middle, axis y line=middle,xlabel=$\mathrm{\frac{1}{[S]}}$,ylabel=$\mathrm{\frac{1}{\textit{V}_0}}$,         xmin=-10000,xmax=10000,ymin=-0.01,ymax=0.035]       \addplot table [y={create col/linear regression={}}]       {         X        Y         10000    0.030         5000     0.02         2000     0.014         1000     0.012         500      0.0110         200      0.0104         100      0.0102         50       0.010         20       0.01         10       0.01         5        0.01         -4999.85 0         -9995.35 -0.01         };         \xdef\slope{\pgfplotstableregressiona}            \xdef\slope{\pgfplotstableregressionb}       \end{axis}     \end{tikzpicture}     \end{center}          \end{document}


title: Create arbitrary sorting of index entries

text: How does one go about setting an arbitrary sorting order in an index? For example, I would like to create an index of citations to Roman and canon law, which should not be sorted alphabetically. (All the citations in the text are already written by macros, so it seems like getting them into an index is trivial enough.) A long example of what I mean, which I hope shows the complexity of how things need to be sorted: Index of Roman law citations: [= heading division] Institutiones: [= heading subdivision] Inst. 1.2 pr. [pr. = prologue] Inst. 1.2.2 Inst. 3.17 pr. Digestum: [= heading subdivision] Dig. 1.1.1.3 Dig. 1.10.1.2 Dig. 27.1.2 Dig. 50.16.289 Codex: [= heading subdivision] Cod. 1.1.1 Cod. 4.2 Canon law is different again: Decretum Gratiani: [= heading division] Prima pars: [= heading subdivision] D. 1 c. 1 D. 6 c. 3 D. 6 d.p.c. 3 [p. = post = after c. 3] D. 8 d.a.c 1 [a. = ante = before c. 1] D. 8 c. 1 Secunda pars: [= heading subdivision] C. 1 q. 1 c. 10 C. 1 q. 3 c. 7 C. 1 q. 3 c. 15 C. 23 q. 4 c. 5 C. 33 q. 3 (De penitentia) [= subsection in Causa 33, quaestio 3] D. 5 c. 8 D. 6 c. 1 Tertia pars (De consecratione): [= heading subdivision] D. 2 c. 2 D. 4 c. 1


title: What type of font is this?

text: I am trying to find the type of fonts from this definition ![definition](http://i.stack.imgur.com/uEejJ.png). Specially for the words: Combine,Reveal,gen,enc,dec. An experienced user might know this font


title: Creating two column article with only section title on one column

text: I am trying to create a class file of my own for a personally formatted CV. I would like to know how to create two column cv with one column containing only the section title while the others containing the contents. Also how can i create a box filled with color along the side of each line in the content side column.


title: Beamer itemize with odd even variation

text: i would like to obtain the following effect automatically               \documentclass{beamer}          \definecolor{color1}{RGB}{255,0,0}     \definecolor{color2}{RGB}{0,255,0}          \begin{document}     \begin{frame}     \begin{itemize}     \setbeamercolor{itemize item}{fg=color1}     \item     \setbeamercolor{itemize item}{fg=color2}     \item     \setbeamercolor{itemize item}{fg=color1}     \item     \setbeamercolor{itemize item}{fg=color2}     \item     \end{itemize}     \end{frame}     \end{document}      ![enter image description here](http://i.stack.imgur.com/ICqdq.png)


title: Making arrows not touch in TikZ

text: I'm trying to make a fairly simple diagram using TikZ, along the lines of the following examples:               \begin{tikzpicture}     \draw [->] (0,0) node[anchor=south]{A} -- (1,-2) node[anchor= north]{D};     \draw [->] (1,0) node[anchor=south]{B} -- (1,-2);     \draw [->] (2,0) node[anchor=south]{C} -- (1,-2);     \end{tikzpicture}      and               \begin{tikzpicture}     \draw [->] (1,0) node[anchor=south]{E} -- (0,-2) node[anchor= north]{F};     \draw [->] (1,0) -- (1,-2) node[anchor=north]{G};     \draw [->] (1,0) -- (2,-2) node[anchor=north]{H};     \end{tikzpicture}      What I don't like in the first picture is hopefully clear: I would much prefer that the arrows be spaced out above D, rather than all collapse to a single point. The second picture doesn't bother me as much, since the clustering here is just of line segments and now arrows, but if there were a way to make the three edges spaced out as well, that would be quite nice. (See the top diagram in the chosen answer to this post for an illustration of something I would like.) I can of course achieve all these results artificially, just by placing nodes separately, and then mucking about with the coordinates of the ends of the arrows. But it would be great if there were a simpler solution. Many thanks for any insight you may have.


title: Shift entire TikZ-picture vertically into part of align environment

text: I am trying to move a TikZ-picture upward so that it eliminates the amount of space taken up for my solution. How can I move the TikZ-picture upward (just a bit) **into** the align-environment? FYI, the following is the exam problem. > "The midpoint of the line segment from $(-2,1)$ to a point $P$ is $(1, -1)$. > Determine the coordinates of $P$." The following is my solution to the exam problem.               Let $P = (x,y)$. We need to find $x$ and $y$. We have     \begin{align*}     \text{Midpoint} = \biggl( \frac{-2 + x}{2} , \frac{1 + y}{2} \biggr)     \quad   &\implies \quad     (1,-1) = \biggl( \frac{-2 + x}{2} , \frac{1 + y}{2} \biggr)\\             &\implies \quad     \begin{dcases}         1 = \frac{-2 + x}{2}\\         -1 = \frac{1 + y}{2}     \end{dcases}\\             &\implies \quad     \begin{dcases}         2 = -2 + x\\         -2 = 1 + y     \end{dcases}     \quad \implies \quad     \begin{dcases}         x = 4\\         y = -3.     \end{dcases}     \end{align*}     %\begin{minipage}[t]{5cm}{        %DO I NEED THIS?     \begin{tikzpicture}[>=latex',scale=0.5]     % Draw grid lines     \draw[help lines] (-2.5,-3.5) grid (4.5,1.5);     % Draw x-axis     \draw[very thick,->] (-3,0) -- (5.5,0)         node[right] {\large $x$};      % Draw y-axis     \draw[very thick, ->] (0,-4) -- (0,2.5)      node[above] {\large $y$};     % Special points     \node[above, fill=SolutionColor] at (-2,1) {$(-2,1)$};     \fill (-2,1) circle (4pt);     \node[right, fill=SolutionColor] at (1.5,-1) {$(1,-1)$};     \fill (1,-1) circle (4pt);     \node[right, fill=SolutionColor] at (4,-3) {$P$};     \draw (-2,1) -- (1,-1) -- (4,-3);     \fill[red] (4,-3) circle (4pt);     \end{tikzpicture}     %\end{minipage}%    DO I NEED THIS?      ![enter image description here](http://i.stack.imgur.com/jYjKa.jpg)


title: How to cite OMG specifications?

text: I have to cite several OMG standards and specifications in a paper, such as MOF, UML, etc. What's the best BibTeX entry format to do so? These are not articles or conference papers. They are not exactly books, as they are not printed for publishing. They are also not exactly technical reports, since that the OMG does not have any other sort of publications. The "misc" type seems, however, somewhat demeaning for widely-adopted standards. What sort of BibTeX entry, and with what fields, have you used to cite OMG specs (if you ever had to)?


title: Which to learn, TeX or LaTeX?

text: Currently I'm good at producing neat documents (with few errors here and there) with `latex`, but I was wondering which one is better for me to learn, TeX or LaTeX? I am very much interested in the content and formatting.


title: Curved arrow describing a step in a mathematical derivation

text: Is it possible to achieve something like this in LaTeX? ![enter image description here](http://i.stack.imgur.com/hInmi.png) I want a curved arrrow pointing from 1st line to the other line and is coupled with an equation number which indicates the equation used. I want to be able to specify equation used manually like for example `\eqref{2.10}`. * * * I have learned TikZ a bit and found something what might look like a solution:               \begin{tikzpicture}     \path (0,1) coordinate(c1)     (-0.5,0.85) coordinate(c2)     (-0.5,0.15) coordinate(c3)     (0,0) coordinate(c4)     (-1,0.5) coordinate(c5);     \draw [-latex] (c1) .. controls (c2) and (c3)     .. (c4);     \draw (c5) node [anchor=east] {\text{\eqref{2.10}}};     \end{tikzpicture}      This produces a lovely arrow (below) which i don't know how to put on the left side of two rows of an equation. Please someone give me advice on this. ![enter image description here](http://i.stack.imgur.com/yWkUb.png) **Additional question:** Is it possible for this arrow to dynamically change coordinates c1, c2, c4 and c4 if equation rows are sepparated more or less?


title: How to distribute space equally for cells?

text: I have problems with a regression table in my thesis, as LaTeX does not assort cell space equal despite of having stated exact proportions in the code. Here is the relevant code for it:               \documentclass[12pt]{article}     \usepackage{graphicx}     \usepackage{epstopdf}     \usepackage{palatino,url}     \usepackage{amssymb}     \usepackage{threeparttable}     \usepackage{caption}     \begin{document}          ...          \begin{table}[htbp]\footnotesize     \caption{OLS Estimates}     \begin{center}     \begin{threeparttable}[b]     \scalebox{0.8}{%          \begin{tabular}{|p{3cm}|p{3cm}|p{3cm}|p{3cm}|p{3cm}|p{3cm}|p{3cm}|}     \hline     \multicolumn{ 1}{|c|}{Constant} & \multicolumn{ 1}{|c|}{GNI} & \multicolumn{ 1}{|c|}                {CPI} & \multicolumn{ 1}{|c|}{Inflation} & \multicolumn{ 1}{|c|}{Liquidity} &         \multicolumn{  1}{|c|}{DebtExports} & \multicolumn{ 1}{|c|}{GDPGrowth} \\ \hline     \multicolumn{ 1}{l}{} & \multicolumn{ 1}{l}{} & \multicolumn{ 1}{l}{} & \multicolumn{       1}{l}{} & \multicolumn{ 1}{l}{} & \multicolumn{ 1}{l}{} & \multicolumn{ 1}{l}{}\\\hline     \multicolumn{ 1}{|c|}{14.303\tnote{***}} & \multicolumn{ 1}{|c|}{-1.704\tnote{**}} &      \multicolumn{ 1}{|c|}{-1.28\tnote{**}} & \multicolumn{ 1}{|c|}{0.127\tnote{**}} &      \multicolumn{ 1}{|c|}{-0.042\tnote{***}} & \multicolumn{ 1}{|c|}{0.368\tnote{**}} &      \multicolumn{ 1}{|c|}{0.052} \\      \multicolumn{ 1}{|c|}{(8.91)} & \multicolumn{ 1}{|c|}{(3.01)} & \multicolumn{ 1}{|c|}     {(2.52)} & \multicolumn{ 1}{|c|}{(2.93)} & \multicolumn{ 1}{|c|}{4.47)} & \multicolumn{      1}{|c|}{(2.16)} & \multicolumn{ 1}{|c|}{(1.04)} \\ \hline     \multicolumn{ 3}{l}{Note: Absolute values of t-Statistics are reported in parentheses}     \end{tabular}}     \begin{tablenotes}      \item[\tnote{***}]Significant at the 1 percent level.         \item[\tnote{**}]Significant at the 5 percent level.        \item[\tnote{*}]Significant at the 10 percent level.     \end{tablenotes}     \end{threeparttable}     \end{center}     \label{}     \end{table}      Has someone an idea about how to bring also cell 3, CPI, back in line? So far, all other included tables work perfectly.


title: Math mode in tabular without having to use $...$ everywhere

text: \begin{tabular}{|l|l|l|}     \hline     Column A & Column B \\          \begin{math}     x & y \\     \end{math}          \end{tabular}      This won't let me compile and gives a lot of errors, how do I enable math mode in a table without using $ on everything?


title: Why is fixltx2e incompatible with tikzexternalize

text: I had some weird problems with tikzexternalize sometimes working sometimes not. I narrowed it down to the culprit fixltx2e. Here is a MWNE (Minimal not working exmple) @ ALtermundus: Yes this is your picture (It is just too nice not to use it ;-)               \documentclass{article}          \usepackage{fixltx2e}          \usepackage{pgf}     \usepackage{tikz}     \usepackage{pgfplots}          \usetikzlibrary{calc}     \usetikzlibrary{external}     \tikzexternalize          \newcommand{\fancypicture}{         % from http://altermundus.com/pages/tikz/tikz-examples/index.html        \path  (0,0)       coordinate (A)                (-60:12cm) coordinate (B)                (240:12cm) coordinate (C);         \foreach \density in {10,20,...,160}             \draw[fill=blue!\density]                (A) coordinate  (X) -- (B) coordinate[pos=.15] (A) --               (C) coordinate[pos=.15] (B) --               (X) coordinate[pos=.15] (C);     }          \begin{document}          \begin{figure}[ht] %[!b!h!t]       \centering       \begin{tikzpicture}         \fancypicture       \end{tikzpicture}         \end{figure}          \begin{figure}[ht] %[!b!h!t]       \centering       \begin{tikzpicture}         \fancypicture       \end{tikzpicture}         \end{figure}          \begin{figure}[ht] %[!b!h!t]       \centering       \begin{tikzpicture}         \fancypicture       \end{tikzpicture}         \end{figure}          \begin{figure}[ht] %[!b!h!t]       \centering       \begin{tikzpicture}         \fancypicture       \end{tikzpicture}         \end{figure}          \end{document}      The weird thing with the code above: If only two pictures are inserted everything works. Only if more pictures are drawn, I suspect this triggers some fix in fixltx2e and externalization fails. Since this was quite hard to track down I just wanted to know if there are more such subtleties to expect with tikzexternalize or fixltx2e.


title: Require two figures on consecutive pages to be horizontally aligned

text: How can I require two (large, near page-size) figures (on separate though consecutive/facing pages) to be horizontally aligned? I've tried `\begin{figure}[t]` but LaTeX ignores me. If they simply are at the top of the page.


title: How to include verbatim in a figure caption?

text: I would like to include verbatim in a caption of a figure. I only want part of it to be verbatim, not the entire caption. The simple approach does not work because verbatim is not allowed in arguments of other commands, as this answer explains. I tried using `\SaveVerb` and `\UseVerb`, but this does not work either. Is there a way to achieve this? The code I used was the following:               \SaveVerb{term}|test|     \begin{figure}     \caption{This is a \UseVerb{term}.}     \end{figure}      This did not compile (I will update the error message when I get home, don't have access to it right now). However, I already fixed this, as I explain in my own answer to this question.


title: Error using tikz/pgf with font=\size (and minimal document class)

text: I'm having an issue with pgfplots/tikz when trying to change the font size for legends/nodes. Any command that contains "font=\size" fails (for example, "font=\small") with the error "Undefined control sequence \end{axis}". Here is a MWE.               \documentclass[]{minimal}          \usepackage{paralist,pst-func, pst-plot, pst-math, pstricks-add,pgfplots}     \usetikzlibrary{patterns,matrix,arrows}     \pgfplotsset{compat=1.9}          \begin{document}          \begin{tikzpicture}     %\tikzstyle{every node}=[font=\small] % throws "Undefined control sequence \end{axis}"     \begin{axis}     %[legend style={font=\tiny}] % throws "Undefined control sequence \end{axis}"     \addplot[blue, ultra thick] (x,x*x);     \addlegendentry{ Class 1};     \end{axis}     \end{tikzpicture}     \end{document}


title: Table in the shape of an arrow

text: Is it possible (and not too difficult) to draw a table in the shape of an arrow? I think it's best explained giving an example: ![enter image description here](http://i.stack.imgur.com/KA1jN.gif) I'd like to draw a table almost exactly like this. However, the 2nd, 3rd and 4th row don't have to be like that but can be just regular cells. Is it possible to draw this easily or should I just make it in a vector program and import it in my LaTeXfile as a picture?


title: Conflict between gantt.sty and \framebox{}

text: I've recently been using the Edward Tufte inspired style file (the handout option) for my documents and a Gantt chart package. However, if I put `\usepackage{gantt}` in my preamble it prevents some code that previously worked fine (a set of frameboxes in a figure environment), from working. Is there any way around this issue? I assume it is something to do with the namespace of variables in each package, but I don't know enough latex markup to be able to inspect this. I'm using TeXshop on a Mac with OSX, and have both .sty files in the folder where I am working. The problem appears to be with this structure:               \framebox(150,150){\includegraphics[width=0.3\linewidth]{image1.pdf}}      where I make a framebox (and place an image in the framebox, though the error occurs without any image in there). Here is the code that I am using:               \documentclass[justified,marginals=raggedright]{tufte-handout}% justification          %\geometry{showframe}% for debugging purposes -- displays the margins          \usepackage{amsmath}     \usepackage{gantt}          % Set up the images/graphics package     \usepackage{graphicx}          \usepackage{minibox}     \setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}     \graphicspath{{graphics/}}          \title{Analysis}     \author[]{The authors}     \date{\today{}}  % if the \date{} command is left out, the current date will be used          % The following package makes prettier tables.  We're all about the bling!     \usepackage{booktabs}          % The units package provides nice, non-stacked fractions and better spacing     % for units.     \usepackage{units}          % The fancyvrb package lets us customize the formatting of verbatim     % environments.  We use a slightly smaller font.     \usepackage{fancyvrb}     \fvset{fontsize=\normalsize}          % Small sections of multiple columns     \usepackage{multicol}          % Provides paragraphs of dummy text     \usepackage{lipsum}          % These commands are used to pretty-print LaTeX commands     \newcommand{\doccmd}[1]{\texttt{\textbackslash#1}}% command name -- adds backslash automatically     \newcommand{\docopt}[1]{\ensuremath{\langle}\textrm{\textit{#1}}\ensuremath{\rangle}}% optional command argument     \newcommand{\docarg}[1]{\textrm{\textit{#1}}}% (required) command argument     \newenvironment{docspec}{\begin{quote}\noindent}{\end{quote}}% command specification environment     \newcommand{\docenv}[1]{\textsf{#1}}% environment name     \newcommand{\docpkg}[1]{\texttt{#1}}% package name     \newcommand{\doccls}[1]{\texttt{#1}}% document class name     \newcommand{\docclsopt}[1]{\texttt{#1}}% document class option name          \begin{document}          \maketitle% this prints the handout title, author, and date          %\printclassoptions          \section{Objective of Analysis} \label{sec:objective}          \begin{figure*}[htbp]     \mbox{     \framebox(150,150){}     \framebox(150,150){}     \framebox(150,150){}     }      \caption{Data sources used in this analysis;}      \label{fig:map1}      \end{figure*}     The analysis description is here               \end{document}      * * * The contents of \listfile is as follows:               *File List*     tufte-handout.cls    2009/12/11 v3.5.0 Tufte-handout class     tufte-common.def    2009/12/11 v3.5.0 Common code for the Tufte-LaTeX styles      xkeyval.sty    2008/08/13 v2.6a package option processing (HA)      xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)      xifthen.sty    2009/04/17 v1.3 Extended ifthen features         etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)         calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)       ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)      ifmtarg.sty    2009/09/02 v1.2a check for an empty argument      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)        ifpdf.sty    2009/04/10 v2.0 Provides the ifpdf switch (HO)      ifxetex.sty    2009/01/23 v0.5 Provides ifxetex conditional     titlesec.sty    2007/08/12 v2.8 Sectioning titles     titletoc.sty    2007/08/12 v1.6 TOC entries     hyperref.sty    2009/10/09 v6.79a Hypertext links for LaTeX       ifvtex.sty    2008/11/04 v1.4 Switches for detecting VTeX and its modes (HO)      hycolor.sty    2009/10/02 v1.5 Code for color options of hyperref/bookmark (HO     )     xcolor-patch.sty    2009/10/02 xcolor patch       pd1enc.def    2009/10/09 v6.79a Hyperref: PDFDocEncoding definition (HO)     etexcmds.sty    2007/12/12 v1.2 Prefix for e-TeX command names (HO)     infwarerr.sty    2007/09/09 v1.2 Providing info/warning/message (HO)     hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive     kvoptions.sty    2009/08/13 v3.4 Keyval support for LaTeX options (HO)     kvsetkeys.sty    2009/07/30 v1.5 Key value parser with default handler support      (HO)        puenc.def    2009/10/09 v6.79a Hyperref: PDF Unicode definition (HO)          url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.       bitset.sty    2007/09/28 v1.0 Data type bit set (HO)      intcalc.sty    2007/09/27 v1.1 Expandable integer calculations (HO)     bigintcalc.sty    2007/11/11 v1.1 Expandable big integer calculations (HO)     pdftexcmds.sty    2009/09/23 v0.6 LuaTeX support for pdfTeX utility functions (     HO)     ifluatex.sty    2009/04/17 v1.2 Provides the ifluatex switch (HO)      ltxcmds.sty    2009/08/05 v1.0 Some LaTeX kernel commands for general use (HO)          atbegshi.sty    2008/07/31 v1.9 At begin shipout hook (HO)      hpdftex.def    2009/10/09 v6.79a Hyperref driver for pdfTeX     ragged2e.sty    2009/05/21 v2.1 ragged2e Package (MS)     everysel.sty    1999/06/08 v1.03 EverySelectfont Package (MS)     geometry.sty    2008/12/21 v4.2 Page Geometry     geometry.cfg     changepage.sty    2009/10/20 v1.0c check page and change page layout     paralist.sty    2002/03/18 v2.3b Extended list environments (BS)     textcase.sty    2004/10/07 v0.07 Text only upper/lower case changing (DPC)     letterspace.sty    2009/03/27 v2.3d Robust letterspacing (RS)     setspace.sty    2000/12/01 6.7 Contributed and Supported LaTeX2e package       natbib.sty    2009/07/16 8.31 (PWD, AO)     bibentry.sty    2007/10/30 1.5 (PWD)          Jan.bbl     optparams.sty    2004/08/14 v0.9 multiple optional parameters in macros     placeins.sty    2005/04/18  v 2.2     mathpazo.sty    2005/04/12 PSNFSS-v9.2a Palatino w/ Pazo Math (D.Puga, WaS)        helvet.sty    2005/04/12 PSNFSS-v9.2a (WaS)      beramono.sty    2004/01/31 (WaS)      fontenc.sty        t1enc.def    2005/09/27 v1.99g Standard LaTeX file     textcomp.sty    2005/09/27 v1.99g Standard LaTeX package       ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file     fancyhdr.sty           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    2009/08/25 v0.04m Graphics/color for pdfTeX     dvipsnam.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)       svgnam.def    2007/01/21 v2.11 Predefined colors according to SVG 1.1 (UK)     multicol.sty    2008/12/05 v1.6h multicolumn formatting (FMi)      amsmath.sty    2000/07/18 v2.13 AMS math features      amstext.sty    2000/06/29 v2.01       amsgen.sty    1999/11/30 v2.0       amsbsy.sty    1999/11/29 v1.2d       amsopn.sty    1999/12/14 v2.01 operator names        gantt.sty             tikz.sty    2008/02/13 v2.00 (rcs-revision 1.27)          pgf.sty    2008/01/15 v2.00 (rcs-revision 1.12)       pgfrcs.sty    2008/02/20 v2.00 (rcs-revision 1.21)       pgfrcs.code.tex      pgfcore.sty    2008/01/15 v2.00 (rcs-revision 1.6)     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)         trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2009/08/28 v1.8 graphics configuration of TeX Live       pgfsys.sty    2008/02/07 v2.00 (rcs-revision 1.31)       pgfsys.code.tex     pgfsyssoftpath.code.tex    2008/01/23  (rcs-revision 1.6)     pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)      pgfcore.code.tex     pgfcomp-version-0-65.sty    2007/07/03 v2.00 (rcs-revision 1.7)     pgfcomp-version-1-18.sty    2007/07/23 v2.00 (rcs-revision 1.1)       pgffor.sty    2007/11/07 v2.00 (rcs-revision 1.8)       pgffor.code.tex         tikz.code.tex      forloop.sty    2006/09/18 v3.0 For Loops for LaTeX      minibox.sty    2009/04/21 v0.1 Another type of box.     booktabs.sty    2005/04/14 v1.61803 publication quality tables        units.sty    1998/08/04 v0.9b Typesetting units     nicefrac.sty    1998/08/04 v0.9b Nice fractions     fancyvrb.sty    2008/02/07       lipsum.sty    2005/01/26 v1.0 150 paragraphs of Lorem Ipsum dummy text       ts1cmr.fd    1999/05/25 v2.5h Standard LaTeX font definitions       t1pplj.fd    2004/09/06 font definitions for T1/pplj.      nameref.sty    2007/05/29 v2.31 Cross-referencing by name of section     refcount.sty    2008/08/11 v3.1 Data extraction from references (HO)          Jan.out          Jan.out     supp-pdf.mkii      ***********


title: Is there a way to access the individual authors given by \author?

text: suppose I have several authors that I have declared via the `\author` command in latex-beamer, e.g.               \author{Einstein \and Podolsky \and Rosen}      I was wondering whether there is a way to access the individual names, i.e. something like               authors[0] == "Einstein"     authors[1] == "Podolsky"     authors[2] == "Rosen"      I would like to display all names with a corresponding QR-Code for contact information at the bottom of a conference poster. Sure, I could just retype the names again but I guess that is a rather inelegant way.


title: Bibliography not printed at the end of the book

text: I'm having a problem with printing the bibliography at end of a book. The main .tex file is               \documentclass[a4paper,12pt]{book}     \usepackage{amsmath, amsthm, amssymb}     \usepackage{url}     \usepackage[algoruled,vlined]{algorithm2e}     \usepackage{graphicx,subfigure}     \usepackage{booktabs}     \usepackage[usenames,dvipsnames]{color}          \usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption}          % fancy headers and footers     \usepackage{fancyhdr}     \pagestyle{fancy}     \renewcommand{\headrulewidth}{0.1pt} % for upper line     \renewcommand{\footrulewidth}{0.1pt} % for lower line      \fancyhead[LE,RO]{\itshape \nouppercase \rightmark}\fancyhead[LO,RE]           {\itshape \nouppercase \leftmark}     \fancyfoot[C]{\thepage}           \usepackage[semicolon]{natbib}          \usepackage{fancybox}          \usepackage{xcolor}     \usepackage{framed}          \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}          \newenvironment{myfancybox}{%     \def\FrameCommand{\fboxsep=\FrameSep \fcolorbox{black}}%     \color{black}\MakeFramed {\FrameRestore}}%     {\endMakeFramed}               \usepackage{rotating}               \usepackage{sectsty}     \allsectionsfont{\itshape}          \setlength{\headheight}{15pt}          \parskip1ex     \begin{document}          \include{forTest}     \bibliographystyle{plainnat}     \bibliography{refs}     \end{document}      In a document forTest.tex put               \chapter{abs}     \label{ch:grid}          \section{asdf }     As stated in \citep{ads}.      and the content of the refs.bib file that is in the same folder as the other files:               @inproceedings{ads,     author = "adfsdf, k.",     title = "adf",     booktitle = "sdaf",     series = "adsf",     pages = "19",     publisher = "sda",     year = 2008     }      After I hit pdflatex, citation adf is undefined. Note that the bib file is very large, and I should not adapt that file. I wonder if there is some other way to include it.


title: Bibliography missing from PDF (Sublime Text 2 and Miktex)

text: I have installed latest Build of **Sublime Text 2** and **Portable version of MiKTeX**. Now I want to set up Sublime Text 2 so that I can compile LATEX (.tex) documents to create PDF's. I read the info from LaTeX Plugin for Sublime Text 2 > Finally, you must check the file LaTeX.sublime-build in the directory in > which you unzipped the LaTeXTools plugin to make sure that the configuration > reflects your preferred TeX distribution. Open the file and scroll down to > the section beginning with the keyword "windows". You will see that there > are two blocks of settings for the "cmd" and "path" keywords; by default, > the MikTeX one is active, and the TeXlive one is commented out. If you use > MikTeX, you don't need to change anything: congratulations, you are done! The LaTeX.sublime-build is missing from my installation. So I have created LaTeX.sublime-build file under `C:\Program Files\Sublime Text 2\Data\Packages\LaTeX` directory With following content               {        "cmd": ["pdflatex", "$file"],        "path": "D:\\UserData\\majeedk\\[2012] Latex\\miktex-portable\\miktex\\bin;$PATH",        "file_regex": "^(...*?):([0-9]+): ([0-9]*)([^\\.]+)",        "selector": "text.tex.latex"     }      Now The PDF gets created but bibliography is missing from the resulting PDF. How can I enable it?


title: Highlighting line ranges in a lstlisting: partial solution, but expansion issues

text: In my quest for a better solution for How to change appearance of a particular line when using `\lstincludelisting`, I came across the `linebackground=` option Martin Scharrer added to the listings package in his answer to Creating a zebra effect using listings. The basic idea is to have a macro               % \btLstHL<overlay spec>{range list}     \newcommand<>{\btLstHL}[1]{%       \only#2{\btIfInRange{\value{lstnumber}}{#1}{\color{blue!30}}{}}%     }%      that expands to a `\color{blue!30}` if the current line fits into the range or to `\empty` (?) otherwise. This is then used together with `linebackground`               \begin{lstlisting}[language=C, gobble=6,linebackgroundcolor={%         \btLstHL{4}%         \btLstHL<1>{1-2,5-6}%         \btLstHL<2>{7}%       }]         /**         * Prints Hello World.         **/         #include <stdio.h>              int main(void) {            printf("Hello World!");              return 0;         }     \end{lstlisting}      This, however, does not work as intended, as all nonselected lines now get a white background: ![ScreenShot](http://i.stack.imgur.com/KrrQ7.gif) The culprit, **I guess** , is in the implementation of `lstlinebackground` and how `btLstHL` gets expanded in its processing.:                   \lst@Key{linebackgroundcolor}{}{%             \def\lst@linebgrdcolor{#1}%         }         \newcommand{\lst@linebgrd}{%             \ifx\lst@linebgrdcolor\empty\else  % PROBLEM: for \btLstHL does not expand to \empty ???             \rlap{%                 \lst@basicstyle                 \color{-.}% By default use the opposite (`-`) of the current color (`.`) as background                 \lst@linebgrdcolor{%                 \kern-\dimexpr\lst@linebgrdsep\relax%                 \lst@linebgrdcmd{\lst@linebgrdwidth}{\lst@linebgrdheight}{\lst@linebgrddepth}%                 }%             }%             \fi         }      Apparently, `\btLstHL` expands to "nothing", but not `\empty` for nonselected lines, which causes `\lst@linebgrd` to highlight the background, but with its default color, which is the opposite of the current text color (black). And at this point I am lost :-( **So how to define`\btLstHL` that it expands to `\empty` if the line is not within the given range?** Complete MWE:               \documentclass{beamer}          % beamer class setup     \usecolortheme{rose}     \setbeamertemplate{navigation symbols}{}          % we use UTF8     \usepackage[utf8]{inputenc}     % font setup     \usepackage[T1]{fontenc}     \usepackage[scaled=0.85]{beramono}     \usepackage{xcolor,listings, pgffor}          \makeatletter            %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%       %       % \btIfInRange{number}{range list}{TRUE}{FALSE}       %       % Test if int number <number> is element of a (comma separated) list of ranges       % (such as: {1,3-5,7,10-12,14}) and processes <TRUE> or <FALSE> respectively            \newcount\bt@rangea       \newcount\bt@rangeb            \newcommand\btIfInRange[2]{%           \global\let\bt@inrange\@secondoftwo%           \edef\bt@rangelist{#2}%           \foreach \range in \bt@rangelist {%               \afterassignment\bt@getrangeb%               \bt@rangea=0\range\relax%               \pgfmathtruncatemacro\result{ ( #1 >= \bt@rangea) && (#1 <= \bt@rangeb) }%               \ifnum\result=1\relax%                   \breakforeach%                   \global\let\bt@inrange\@firstoftwo%               \fi%           }%           \bt@inrange%       }       \newcommand\bt@getrangeb{%           \@ifnextchar\relax%               {\bt@rangeb=\bt@rangea}%               {\@getrangeb}%       }       \def\@getrangeb-#1\relax{%           \ifx\relax#1\relax%               \bt@rangeb=100000%   \maxdimen is too large for pgfmath           \else%               \bt@rangeb=#1\relax%           \fi%       }            %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%       %       % \btLstHL<overlay spec>{range list}       %       \newcommand<>{\btLstHL}[1]{%         \only#2{\btIfInRange{\value{lstnumber}}{#1}{\color{blue!30}}{}}%       }%                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%       %       % \btInputEmph<overlay spec>[listing options]{range list}{file name}       %       \newcommand<>{\btLstInputEmph}[3][\empty]{%                                                             \only#4{%           \lstset{linebackgroundcolor=\btLstHL{#2}}%           \lstinputlisting{#3}%        }% \only       }                 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%       %% lstlinebgrd.sty       %% see: http://tex.stackexchange.com/questions/18969/creating-a-zebra-effect-using-listings/18989#18989       %%       %% This small package is not yet published/not commonly available.       %%       %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%              % Patch line number key to call line background macro         \lst@Key{numbers}{none}{%             \def\lst@PlaceNumber{\lst@linebgrd}%             \lstKV@SwitchCases{#1}%             {none&\\%              left&\def\lst@PlaceNumber{\llap{\normalfont                         \lst@numberstyle{\thelstnumber}\kern\lst@numbersep}\lst@linebgrd}\\%              right&\def\lst@PlaceNumber{\rlap{\normalfont                         \kern\linewidth \kern\lst@numbersep                         \lst@numberstyle{\thelstnumber}}\lst@linebgrd}%             }{\PackageError{Listings}{Numbers #1 unknown}\@ehc}}              % New keys         \lst@Key{linebackgroundcolor}{}{%             \def\lst@linebgrdcolor{#1}%         }         \lst@Key{linebackgroundsep}{0pt}{%             \def\lst@linebgrdsep{#1}%         }         \lst@Key{linebackgroundwidth}{\linewidth}{%             \def\lst@linebgrdwidth{#1}%         }         \lst@Key{linebackgroundheight}{\ht\strutbox}{%             \def\lst@linebgrdheight{#1}%         }         \lst@Key{linebackgrounddepth}{\dp\strutbox}{%             \def\lst@linebgrddepth{#1}%         }         \lst@Key{linebackgroundcmd}{\color@block}{%             \def\lst@linebgrdcmd{#1}%         }              % Line Background macro         \newcommand{\lst@linebgrd}{%             \ifx\lst@linebgrdcolor\empty\else             \rlap{%                 \lst@basicstyle                 \color{-.}% By default use the opposite (`-`) of the current color (`.`) as background                 \lst@linebgrdcolor{%                 \kern-\dimexpr\lst@linebgrdsep\relax%                 \lst@linebgrdcmd{\lst@linebgrdwidth}{\lst@linebgrdheight}{\lst@linebgrddepth}%                 }%             }%             \fi         }          \makeatother          \begin{document}          \begin{frame}[fragile]{Problem}       \begin{alertblock}{A cool app; unfortunately it has a white background}         \begin{lstlisting}[language=C, gobble=6,linebackgroundcolor={%             \btLstHL{4}%             \btLstHL<1>{1-2,5-6}%             \btLstHL<2>{7}%           }]             /**             * Prints Hello World.             **/             #include <stdio.h>                  int main(void) {                printf("Hello World!");                  return 0;             }         \end{lstlisting}       \end{alertblock}     \end{frame}          \end{document}


title: Setting up specific font for use in listings

text: I'm writing my dissertion using TeX. I would like to use a specific font in my `lstlisting` source code. How can I use a specific font like Monaco or Arial? I usually found solutions with `basicstyle` setted to `\ttfamily` but it's not what I want.


title: Why do I have to fake Texlive package in Ubuntu?

text: I followed this answer like a parrot and installed Texlive on my Ubuntu. However, I don't understand why I have to create a fake package to trick Ubuntu into thinking that texlive is installed. What is the point? I thought that simply having `texbin` on the path is sufficient for other programs to find texlive.


title: Error with blkarray: Misplaced \noalign

text: I am trying to write a matrix with indices given to the rows and columns. I get the error "Misplaced \noalign." Does anybody understand why? The minimal example is below.               \documentclass{minimal}     \usepackage{blkarray}     \begin{document}          \[     \begin{blockarray}{ccccc}           & A & B & C & D\\         \begin{block}{c[cccc]}         A & 1 & 1 & 1 & 1\\          B & 1 & 0 & 0 & 1\\         C & 1 & 0 & 1 & 1\\         D & 1 & 1 & 1 & 0         \end{block}       \end{blockarray}     \]          \end{document}


title: Beamer , conference poster change the header area

text: I am making a conference poster using a template provided in this link. http://www.njohnston.ca/2009/08/latex-poster-template/ I want to reduce the size of the header area ( Title area), may be by reducing the font size and spacing. How can I change those parameters?


title: Using glossaries without cross-referencing

text: I am attempting to use the `glossaries` package to add multiple glossaries to my thesis. Essentially I want a list of acronyms and a list of mathematical symbols. However I do not want to cross reference the glossary entries in the main text (i.e. using `\gls` etc.}. I just want it to print the list of acronyms that I define. I have tried this using each of the three methods, for compiling, described in the documentation. With each option any terms which are not reference in the text do not appear in the glossary. Does anyone know anyway around this or any alternative packages that can provide this functionality. I have previously been using `nomencl` package but it doesn't appear to allow multiple glossaries.


title: Newline after each element in description environment

text: I have a quite a big amount of descriptions in my document. At the moment all of them look in the default manner. I use it to define terms with texts or with a list of keywords. Therefore, I often use something like this:               \begin{description}         \item[Term One] Definition for term one.         \item[Term Two] \hfill \begin{itemize}             \item First keyword             \item Second keyword         \end{itemize}     \end{description}      Now the definition of _Term One_ stands on the same line like _Term One_ and the _First keyword_ starts on a new line. My desired output would be that the definition for _Term One_ begins on a new line and that the _First keyword_ describing _Term Two_ is displayed on a new line. All in all, it should look like: ![Minimal example](http://i.stack.imgur.com/1PT7q.png) My problem is that if I use               \usepackage{enumitem}     \setlist[description]{style=nextline}      I get a newline before the first keyword. It would be great if anybody can point out a solution where I do not have to change the code above (deleting the `\hfill` is ok).


title: How to reference an axis label, e.g. xlabel

text: I'm new to that forum but it already helped a lot, thanks for this! But now I really got stuck. Basically I'm looking for a possiblity to reference the `xlabel` of an axis in a TikZ picture. The intention is to read out the `xlabel` coordinates. Later on I would like to use them to position another node in a specific way with respect to the these coordinates. With `xlabel style={name=xlabel}` I tried to assign the xlabel name in the axis options. Within the axis I wanted to point to it with `xlabel.north` (like it is possible to point to the axis itself with `current axis.north`). Unfortunately it didn't work. I was told:               no shape named xlabel is known      So I guess, that naming the `xlabel` in the axis options is wrong. Is there a way to solve this problem? I hope the question is stated such that one can understand what I'm trying to say...


title: Table title to match table body (in terms of length)

text: I have a table with 4 columns and my title seems to be far bigger than the main body of the table. This does not look quite good. Is there anyway to have the length of those two be the same, or at least not to have that big difference? Here's an example:               \documentclass[12pt,a4paper]{article}     \usepackage[utf8x]{inputenc}     \usepackage{ucs}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{makeidx}     \usepackage{graphicx}               \begin{document}            \begin{table} \caption{My results. The dependent variable is ...}         \centering        \begin{tabular}[htbp!]{@{} cc @{}}             \multicolumn{1}{c}{s1} & \multicolumn{1}{c}{s2} \\         \hline a & c \\         \hline b & d \\         \hline         \end{tabular}      \end{table}     \end{document}


title: TeX and LaTeX Stickers

text: I am looking for a set of stickers and labels for `TeX` and `LaTeX.` I could find a huge volume of stickers from openstickers for open source software. However, there is not a sticker for `TeX` and `LaTeX`. I was hoping if some `TeX` stickers are available somewhere on the web.


title: Plotting a directed graph using pgfplots

text: I have a few files in the following format:               x   y     12  12     12  13     13  15     15  15     15  13     13  12     12  10     10  8     8   8     8   10     10  12     12  12     12  10     10  10      And I wanted to plot them as a directed graph in a .tex file using pgfplots. The code I am currently using is this one               \usepackage{pgfplots}          \begin{center}     \begin{tikzpicture}     \begin{axis}[title=File1,                  xlabel={},                  ylabel={}]     \addplot table {data-1.txt};     \end{axis}     \end{tikzpicture}     \end{center}      This plots the points with lines between them but it is not enough for what I need. I would like to   1. Set a different color for the first point   2. Have arrows indicating between the dots indicating the "path" the dots take. Some files (as the one in the example) may have overlapping nodes. If your solution could handle this scenario it would save me a lot of effort. Another thing that I would like to do would be to do a linear interpolation of the points in the D-Graph that is generated. However I am totally clueless about how I am going to do that. I know that this seems rather awkward and might even be impossible with the most common linear interpolation algorithms, but if you could lend me a hand in that I would be very grateful. As an example of the process described above, I would like to get something similar to this: ![None](http://i.stack.imgur.com/O2B7l.png)


title: Can I see a plain TeX source file please?

text: all the LaTeX-tutorials tell me how LaTeX is an extention simplifying the building of TeX documents. Understandably, no one uses plain TeX anymore, right? But I seem to learn better when I grasp the link between TeX and LaTeX (this uppercase/lowercase-typing is getting annoying :) ). Does someone have a link to example files in plain TeX? I'd like to know which commands, macros etc. are LaTeX-specific.