title: Can I cite something while specifying exactly what text will appear at that place?

text: First up, I'm using `natbib`. I'm trying implement a citation style (Thankfully only a few citations, so I'm happy to work things by hand) that is essentially of the following form:   * At the point of citation one has a superscript number, referring to a footnote (well, `\sidenote`, actually)   * The footnote1 contains version 1 of the citation, for example  > 1Fname LName, _Title_ (Publisher info) pageno.   * The citation also appears in the bibliography, in version 2: > LName, FName _Title_ Publisher Info I was thinking of using a command               \newcommand{\mycite}[2]{%       \sidenote{\modifiedcite{#1}\citetext{#2}}%     }      where `\modifiedcite` generated an entry in the bibliography from a `.bib` file, but placed nothing in the text at that point. Ideally, one would actually generate the footnote from the information contained in the `.bib` file together with a page number, but this is far beyond me. Edit: I'm not married to `natbib`, but I had a look at the `biblatex` so- called manual, and my goodness, I think I'd have to learn a new language to use it. Here are some clarifying points: This is for my wife's honours project (in music). LaTeX is completely alien to her, so I'm just taking her Wrod document and typesetting it properly. I don't want to learn a whole new package for a <15 page article. I'm not going to use this sort of system ever again. The thesis uses something the university's citation guidelines call MLA, but having had a look at the online MLA citation style guidelines (including TeX- based solutions), I find it hard to recognise as such. For instance, it asks for basically a complete bibliographic record for a source for the first time it is cited (in an endnote, but I'm using a wide-margin format and using `\sidenote`, no matter the complaints), with a page number reference. After that, each citation of the same work gets an 'Author-surname, page-no.' end/sidenote. Then there is a bibliography, which is more than just the works cited, and each entry is in a subtly different style to before (as outlined above). To make things easier, I'll remove all prescriptions, and ask: what is the best way to do this, keeping in mind the payoff between reproducibility/good practice/time and effort.


title: \newcommand to make a plot command using gnuplottex

text: > **Possible Duplicate:**   >  Wrapping code (listings, verbatim, or other method) inside a newcommand I'm new to LaTeX and trying to write a command to plot files using the `gnuplottex` package (and `gnuplot`). For now I am doing this (and it works):               \documentclass{article}     \usepackage{gnuplottex}          \begin{document}     \begin{gnuplot}[terminal=pdf,scale=1]         plot 'testfile' using 1:2     \end{gnuplot}     \end{document}      What I would like to do is:               \documentclass{article}     \usepackage{gnuplottex}          \newcommand{\plotdata}[1]     {         \begin{gnuplot}[terminal=pdf,scale=1]             plot '#1' using 1:2         \end{gnuplot}     }          \begin{document}     \plotdata{testfile} % this is the goal     \end{document}      But the build fails in the second case due to gnuplot errors (it fails to produce plots). I'm using TeXLive/Ubuntu. Any ideas, why it does not work (or how I can see the code generated after `\newcommand` macros execution)?


title: Why is there no \mudimendef primitive?

text: The TeXbook defines in chapter 24 (page 270 in my edition) the notion of _`<dimen>`_, _`<skip>`_, _`<mudimen>`_ and _`<muskip>`_, the first two being used in horizontal and vertical mode, while the other ones are used in math mode. However this parallel between math mode and other modes is broken by registers: only `\dimendef`, `\skipdef` and `\muskipdef` exist, and not `\mudimendef`. Similarly, `\dimen 0`, `\skip 0` and `\muskip 0` exist, but not `\mudimen 0`. The only primitive that manipulates mudimens seems to be `\mkern`. Why are _`<mudimens>`_ so special? EDIT: extra question. I'm asking this because I try to be able to grab the argument of any primitive. To grab a _`<dimen>`_, for instance, one can use `\newdimen\MyDimen` and `\afterassignment\DoSomethingWithMyDimen \MyDimen=`. Given that TeX does not have _`<mudimen>`_ parameters, I cannot use the same trick for that. I cannot use a muskip either, because it may mistakenly grab a stretch or shrink part which `\mkern` would stop at. It may be that I can use a `\count` register in some cases, but not all: how could I distinguish between cases like `\mkern 1mu` and `\mkern \MyMuskip` (with automatic coercion)?


title: Sketch sinusoidal wave in Tikz

text: What is the easiest way to **sketch** a sinusoidal wave in PGF/Tikz? I have tried this:               \begin{tikzpicture}       \draw[loosely dotted] (0,0) grid (4,2);       \draw[x=0.5cm,y=1cm, ultra thick, red]         (0,1) cos (1,0) sin (2,-1) cos (3,0) sin (4,1) cos (5,0) sin (6,-1);     \end{tikzpicture}      How do I get the grid to cover all the wave? Is there a better way of **sketching** (not plotting) functions/waves?


title: Create a "case"-environment

text: I'd like to create an environment for enumerating different cases. Something that would look like `\itemize` but instead of printing a "-" symbol at the begining of each item, prints (for the first item) "Case 1:" (eventually in a big font) and then line breaks , "Case 2:" and then line breaks for the second item, etc. Moreover I'd like not to have any margin after the break line, I'd like to have everything I write after "Case 1:" to begin at the same spot as the rest of my domcument.   I'd also like that the different cases can have "names", for example somthing like the `\theorem` environment where you can put the name of the author in brackets. Is there any command that already does what I want? Otherwise can somebody help me to create such environment? Edit: Thanks a lot I managed to do something close to what I wanted but I still can't make Latex break line after "Case"... This is what I wrote:               \documentclass[10pt,a4paper]{article}          \usepackage[utf8]{inputenc}     \usepackage[francais]{babel}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{enumitem}          \newlist{cases}{enumerate}{10}     \setlist[cases]{label=\textbf{Cas \arabic* :}, itemindent=*,leftmargin=0pt}      But when I try to add in the `setlist` argument `breakline` or `\\` I only get errors...   Also do you have any idea to add an argument to this new list so that it prints a title in backets and then break a line?


title: When using pgfmathparse to offset plots, how can I remove the extra tick?

text: I plot a few data sets into the same chart using pgfplot and I therefore use `\pgfmathparse` to offset every plot a bit to the left or the right. I found out that the first plot will always be the center of the tick thus I created a invisible center around which the others can be placed. However this causes an extra tick to appear for the most left plot. The image below shows that the first a,b,c,d should not appear and the second tick is the correct one just right in the middle. ![Plot example](http://i.stack.imgur.com/UcBQK.png) How could I remove this tick? I can remove the letter by using explicit `xticklabels` but the tick line still remains. Below is a minimal example:               \documentclass{article}          \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \usepackage{filecontents}     \begin{filecontents*}{testdata.csv}     var range1 range2     a 1 2     b 1 1     c 3 4     d 1 2     \end{filecontents*}     \begin{document}     \begin{tikzpicture}             \begin{axis}[                 xtick=data,                 symbolic x coords={a,b,c,d}             ]             \addplot +[only marks, forget plot, no markers]                 table[x=var, y=range1]{testdata.csv};% the first plot is the center             \addplot +[only marks, x filter/.code=\pgfmathparse{\pgfmathresult-0.2}]                 table[x=var, y=range1]{testdata.csv};             \addplot +[only marks, x filter/.code=\pgfmathparse{\pgfmathresult+0.2}]                 table[x=var, y=range2]{testdata.csv};             \end{axis}     \end{tikzpicture}     \end{document}


title: Customizing the splitting line when using nodes with multiple text parts in TikZ?

text: I'm wondering, is it possible to customize the splitting line when defining a node which has multiple text parts? For instance, instead of a solid line, I would like it to be dotted or dashed. For instance, the code below generates the following picture: ![enter image description here](http://i.stack.imgur.com/qpqD5.png)               \documentclass{standalone}          \usepackage{tikz}     \usetikzlibrary{shapes}     \usetikzlibrary{arrows}     \usetikzlibrary{positioning}          \begin{document}     \begin{tikzpicture}       \node[rectangle split, draw] {1 \nodepart{two} 2 \nodepart{three} 3 \nodepart{four} 4};     \end{tikzpicture}     \end{document}      What I would like is the line between 1-2, 2-3, and 3-4 to be something else than just a solid black line.


title: How to navigate TeXnicCenter  documents

text: I use TeXnicCenter to write my LaTeX documents and usually have big files open; I navigate up and down extensively. For example, I am writing something, I move to the beginning of the document to take some label or read something I wrote, and then I go down again to continue writing. This entire process is very tedious, and I am looking for something like the code navigation arrows that you have in eclipse to navigate through the point in the code you are editing. Does anybody know any useful command? I know `Ctrl`+`B` that brings me to the last point I was editing, but this not enough.


title: linking collection and incollection

text: Is there a way in Biblatex to have a link in an incollection entry that creates a hyperlink to the title of the collection entry if it also appear in the bibliography. So for example if I have:                @incollection{Farrer1965Christian,         author  = {Farrer, Austin},         editor  = {Jocelyn Gibb},         year    = 1965,         title   = {The Christian Apologist},         booktitle   = {Light on C.S. Lewis},         publisher   = { Harcourt, Brace \& World},         address = {New York, NY}     }      I would like the booktitle to be as hyperlink to the booktitle in               @collection{Gibb1965Light,       editor = "Gibb, Jocelyn",        booktitle     = "{Light on C.S. Lewis}",        publisher    = {Harcourt, Brace \& World},         address = {New York, NY},         year           = 1965      }      without doing it manually. What I would really like is not to have to include the publisher, address and editor in the first entry.


title: Why does centering not work with calligra?

text: I'm trying out the calligra package for a wedding order of service. Just trying to make the titles look a little nicer. When I use the \centering command, however, it doesn't seem to work:               \centering     Test1\\     \calligra{Test}      Produces calligraphic text that doesn't seem to be centered. Is this fixable? ![calligra not centered](http://i.stack.imgur.com/5AEwU.png) Thanks all, James


title: Problem with roman/arabic numerals

text: I have a problem with abstract numbering. I have this chapter ahead of the table of contents together with the acknowledgements. The toc, list of tables/figures, acknowledgements are all numbered using roman numerals. However, when I get to the abstract the first page is still in roman numerals, the second with a normal number. I'm lost as to why, and how to fix it so any help will be greatly appreciated. PS Using Texmaker               \documentclass[a4paper]{report}     \renewcommand{\baselinestretch}{1.66}     \usepackage{graphicx}     \usepackage{helvet}     \usepackage{pdflscape}     \usepackage{rotating}     \usepackage{booktabs}     \renewcommand{\familydefault}{\sfdefault}     \usepackage[top=2cm, bottom=2cm, left=30mm, right=30mm]{geometry}     \usepackage{amsmath}     \usepackage{array}     \usepackage{epstopdf}     \usepackage{subfigure}     \usepackage{multirow}     \usepackage[section] {placeins}     \usepackage{chngpage}     \usepackage{natbib}     \usepackage{textcomp}     \usepackage{textgreek}     \usepackage{units}     \usepackage{wasysym}     \usepackage{longtable}     \usepackage[titletoc]{appendix}          \begin{document}     \begin{titlepage}     ...     \end{titlepage}     \pagenumbering{roman}     \addcontentsline{toc}{chapter}{Table of Contents}     \tableofcontents          \addcontentsline{toc}{chapter}{List of Figures}     \listoffigures          \addcontentsline{toc}{chapter}{List of Tables}     \listoftables          \addcontentsline{toc}{chapter}{Acknowledgements}     \chapter*{Acknowledgements}     ...          \addcontentsline{toc}{chapter}{Abstract}     \chapter*{Abstract}     Some bollocks I hope my supervisor will believe          \pagenumbering{arabic}     \include{Insertchapternamehere}     \include{Insertchapternamehere}     \end{document}


title: How to differentiate between translated and reprinted work with APA style

text: This question is an upgrade to this (already answered) question. I am using `biblatex-apa` with `biber` as backend. According to the APA style a "translated" work should be treated differently from a "reprinted" work. A "translated" work will simply indicate the translator and at the end the original date of publication (`...Somepress. (Original work published 1923)`), without indicating any other additional information about the source work on which the translation is based. Similarly to a "republished" or "reprinted book". On the contrary a "reprinted chapter" will need to indicate the original title of the book, pages the chapter/article was originally published at, author/editor of the original book, year of original publication, city and publisher. I have then added two fields to my bibliography to store information on reference to original work `reprintedfrom` (in case the chapter/article was already printed) and original publication pages `origpages`. I am then looking for a macro that will tell the difference between a translated, republished or reprinted book and a republished chapter/article. In the first case should print > Buber, M. (1937). _I and thou_ (R. G. Smith, Trans.). Edinburgh: T. & T. > Clark. (Original work published 1923) with in-text parenthetical citations: `(Buber, 1923/1937)`; while in the second > Cohen, J. (1997). Deliberation and democratic legitimacy. In J. Bohman & W. > Rehg (Eds.), _Deliberative democracy: Essays on reason and politics_ (pp. > 67–91). Cambridge, MA: MIT Press. (Reprinted from _The Good polity: > Normative analysis of the state_ , pp. 17-34, by A. P. Hamlin & P. Pettit, > Eds., 1989, Oxford: Blackwell) with in-text parenthetical citations: `(Cohen, 1989/1997)`. This answer offers a macro to add fields to the bibliography for specific bib items and add them at the end of reference: > Cohen, J. (1997). Deliberation and democratic legitimacy. In J. Bohman & W. > Rehg (Eds.), _Deliberative democracy: Essays on reason and politics_ (pp. > 67–91). Cambridge, MA: MIT Press. (Reprinted from _The Good polity: > Normative analysis of the state_ , by A. P. Hamlin & P. Pettit, Eds., 1989, > Oxford: Blackwell) (Original work published 1989) Problem is it won't add the number of pages for the original work and won't remove `(Original work published 1989)` that now is redundant in the complete citation. I am interested to know if it is possible to tweak these macros to obtain the different citation styles as described above. Please consider the following               \RequirePackage{filecontents}          \begin{filecontents*}{mybib.bib}     @book{test1,         address = {Edinburgh},         title = {I and thou},         publisher = {T. \& {T}. {Clark}},         author = {Buber, Martin},         translator = {Smith, Ronald Gregor},         year = {1937},         origdate = {1923}     }     @incollection{test2,         address = {Cambridge, {MA}},         title = {Deliberation and democratic legitimacy},         booktitle = {Deliberative democracy: {Essays} on reason and politics},         publisher = {MIT {Press}},         author = {Cohen, Joshua},         editor = {Bohman, James and Rehg, William},         year = {1997},         origdate = {1989},         reprintedfrom = {test3},         origpages = {17--34},         pages = {67--91}     }     @book{test3,         address = {Oxford},         title = {The {Good} polity: {Normative} analysis of the state},         shorttitle = {The {Good} polity},         publisher = {Blackwell},         editor = {Hamlin, Alan P. and Pettit, Philip},         year = {1989}     }     }     \end{filecontents*}          \documentclass[a4paper]{article}               % Set the values for the bibliography     \usepackage[         style=apa,         backend=biber,         isbn=false,         url=false,         doi=false,         eprint=false,         hyperref=true,         backref=false,         firstinits=false,     ]{biblatex}          % Recommended by biblatex     \usepackage[utf8]{inputenc}     \usepackage{csquotes}     \usepackage{xpatch}          % Set language     \usepackage[british]{babel}     \DeclareLanguageMapping{british}{british-apa}          \addbibresource{mybib.bib}          \begin{document}          \cite{test1}           \cite{test2}          \printbibliography     \end{document}      This is the output ![enter image description here](http://i.stack.imgur.com/H0F3v.png) while I am trying to get ![enter image description here](http://i.stack.imgur.com/Ojnz4.png)


title: referencing in subfloat not working

text: \documentclass[journal]{./IEEE/IEEEtran}       \usepackage{cite,graphicx}       \usepackage{url}       \usepackage{float}       \usepackage{subfig}          \begin{document}       \begin{figure}[H]        \subfloat[Piknik]{\includegraphics[scale=.035,angle=-90]  {images/piknik2.jpg}}      {\label{piknik}}\qquad        \subfloat[Oishi]{\includegraphics[scale=.035,angle=-90] {images/oishi2.jpg}}\qquad       \subfloat[Gardenia]{\includegraphics[scale=.035,angle=-90]{images/gardenia2.jpg}}\qquad       \end{figure}            one of the... \ref{piknik} ....      \end{document}      I want to reference an image from the figure to a paragraph using \ref but it is not working. What should I do?


title: PGFplots marks mandatory for 1st and last point

text: I want to plot values from a big table. Since it has too many numbers, I want to draw the line and only some marks (because there is other lines in the plot, therefore, to avoid confusion). I know that I can use `mark repeat={<integer>}` for that (or use `each nth point={<integer>}`, depending on the situation). However, with that, I know that the first point in the graphic will have a mark, put not always the last point, because it depends on the `<integer>`. How can I draw always a mark for the first and last points and some in the middle of both, automatically?               \documentclass[10pt,border=0pt]{standalone}          \usepackage{tikz}     \usepackage{tikzscale}     \usepackage{pgfplots}     \usepackage{pgfplotstable}          \usetikzlibrary{plotmarks}          \pgfplotstableread{%     x1 y1     1 2     2 4     3 1     4 5     5 9     6 11     7 15     8 12     9 10     10 1     }\mytable          \pgfplotsset{mytick x interval/.style args={#1:#2:#3}{%             xmin=#1,xmax=#3,xincrement={#1}{#2},             xtick={#1,\xval,...,#3}         },         xincrement/.code 2 args={\pgfmathparse{#1+#2}\xdef\xval{\pgfmathresult}}     }          \pgfplotsset{mytick y interval/.style args={#1:#2:#3}{%             ymin=#1,ymax=#3,yincrement={#1}{#2},             ytick={#1,\yval,...,#3}         },         yincrement/.code 2 args={\pgfmathparse{#1+#2}\xdef\yval{\pgfmathresult}}     }          \pgfplotsset{every tick/.style={black,}}          \pgfplotsset{%         compat=1.8,         compat/show suggested version=false,         mytick x interval=0:1:10,         mytick y interval=0:1:15,         xlabel={x-axis},         ylabel={y-axis},     }          \begin{document}     \begin{tikzpicture}     \begin{axis}[mark options={fill=white,solid}]         \addplot[thick,mark=pentagon*,mark repeat={2}] table[x=x1, y=y1] {\mytable};       \legend{val}     \end{axis}     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/RA1hp.png)


title: How to write multiple conditions in separate lines in braced equations?

text: How do I typeset something like, X = 0 if a=1 & b=1 & c= 5 & d=9 ; 0 otherwise, using those huge left braces and specifying each condition in a line (4 conditions in 4 separate lines)?


title: Spaces with list environments in beamer class

text: In some slides I am writing with the `beamer` class, I want to eliminate the additional horizontal and vertical spaces that appears in list environments like `itemize` and `enumerate`, so that the environment does not look strange when used in a `tabular` environment. See the example below.               \documentclass[smaller]{beamer}          \begin{document}          \begin{frame}{Frame test}       \begin{tabular}{|l|p{4cm}|}\hline         Foo & This is a test.\\\hline         Bar & \begin{itemize}                 \item First item.                 \item Second item.               \end{itemize}\\\hline         Baz & Last test.\\\hline       \end{tabular}     \end{frame}          \end{document}      ![demo of undesired spaces with enumerate](http://i.stack.imgur.com/PpisI.png) In this sample document, I want the bullets vertically aligned with the entries of the second column in the first and third lines. Also I want no extra spaces before and after the list, and between the items in the list. I already know that the `enumitem` package and the `beamer` class are not compatible, therefore it is not an option. Any clues?


title: Figures Taking Up too much space

text: I have two small figures that take up an entire page. How can I reduce the space between/after the figures so that I can start the next section on the same page?               \begin{figure}         \centering         \includegraphics[width=0.55\textwidth]{...}         \caption{...}         \label{fig:figure4}             \end{figure}     \begin{figure}         \centering         \includegraphics[width=0.55\textwidth]{...}         \caption{...}         \label{fig:figure5}             \end{figure}     \FloatBarrier     \section{...}


title: How to fix this error when launching texindy in windows using TeXstudio editor?

text: I noticed that recently, when I launch `texindy` using the shortkey in TeXstudio `F12` it throws an error:               Process started: texindy.exe          usage: texindy.pl [-V?h] [-qv] [-iglr] [-d magic] [-o outfile.ind] [-t log] \ [-L lang] [-C codepage] [-M module] [-I input] [idx0 idx1 ...] GNU-STYLE LONG OPTIONS FOR SHORT OPTIONS: -V / --version -? / -h / --help -q / --quiet -v / --verbose -i / --stdin -g / --german -l / --letter-ordering -r / --no-ranges -d / --debug (multiple times) (supported: script, keep_tmpfiles, markup, level=n) -o / --out-file -t / --log-file -L / --language -C / --codepage -M / --module (multiple times) -I / --input-markup (supported: latex, omega) C:\texlive\2013\bin\win32\runscript.tlu:650: command failed with exit code 1: perl.exe c:/texlive/2013/texmf-dist/scripts/xindy/texindy.pl          Process exited with error(s)        Below is a screenshot of texindy configuration in TeXstudio:   ![enter image description here](http://i.stack.imgur.com/w85MO.png) When I use `arara` to compile there is no problem with `xindy`, here is the `arara` code:               % arara: xelatex: { shell: true }     % arara: makeglossaries     % arara: biber     % arara: xelatex: { shell: true }        % arara: xelatex: { shell: true }       This is an excerpt from `arara` log file.txt regarding `xindy`:               added glossary type 'main' (glg,gls,glo)     xindy  -L english -C utf8 -I xindy -M "phdmain" -t "phdmain.glg" -o "phdmain.gls" "phdmain.glo"     Opening logfile "phdmain.glg" (done)     Reading indexstyle...     Loading module "iaheC42kMp"...     Loading module "lang/english/utf8-lang.xdy"...     Loading module "lang/english/utf8.xdy"...     Finished loading module "lang/english/utf8.xdy".     Finished loading module "lang/english/utf8-lang.xdy".     Loading module "phdmain.xdy"...     Loading module "tex.xdy"...     Finished loading module "tex.xdy".     Finished loading module "phdmain.xdy".     Finished loading module "iaheC42kMp".     Finished reading indexstyle.     Finalizing indexstyle... (done)      This is an excerpt from the running messages while compiling the document successfully using `arara`:               Status: SUCCESS          Running MakeGlossaries...          makeglossaries version 2.07 (2013-06-17)     added glossary type 'main' (glg,gls,glo)     xindy  -L english -C utf8 -I xindy -M "phdmain" -t "phdmain.glg" -o "phdmain.gls" "phdmain.glo"          Opening logfile "phdmain.glg" (done)     Reading indexstyle...     Loading module "iaheC42kMp"...     Loading module "lang/english/utf8-lang.xdy"...     Loading module "lang/english/utf8.xdy"...     Finished loading module "lang/english/utf8.xdy".     Finished loading module "lang/english/utf8-lang.xdy".     Loading module "phdmain.xdy"...     Loading module "tex.xdy"...     Finished loading module "tex.xdy".     Finished loading module "phdmain.xdy".     Finished loading module "iaheC42kMp".     Finished reading indexstyle.     Finalizing indexstyle... (done)          Reading raw-index "oxOB1i9YoU"...     Finished reading raw-index.          Processing index... [10%] [20%] [30%] [40%] [50%] [60%] [70%] [80%] [90%] [100%]     Finished processing index.      But as I said when I invoke `xindy` alone it throws the error mentioned in the beginning of the question. **So what am I missing here? how to fix this error?** Note:   TeXstudio version: 2.6.4   Xindy version: 2.4   Distribution TexLive2013


title: How can I give the same figure number to five different figures on five different pages?

text: How can I give the same figure number to five different figures on five different pages using latex? For example, fig. 1.1, fig. 1.1 cont'd (player I), fig. 1.1 cont'd (player II), fig. 1.1 cont'd (player III), fig. 1.1 (player IV).


title: Plotting floating point data with pgfplots

text: Is there a binary file structure supported by pgfplots to allow floating point numbers to be loaded and plotted? I understand the time taken to convert floating point data to a text file is small, but for large amounts of data (such as an animation), the time to process the file can be quite high. It seems illogical to convert the data from a floating point format, only for pgfplots to load and convert it back. Additionally, could somebody please explain how coordinates are translated to PDF data - I believe PDF objects can contain 32 bit floating point numbers. Is it therefore possible to place a floating point coordinate from a binary file directly into a PDF object, thereby avoiding 2 (or 3?) stages of conversion (and indeed retaining lossless coordinates)? I realise that the structure of data presented in a binary file is less apparent than that of a plain text file, but would be able to manipulate the binary (or binaries) accordingly. I've included a basic example to try and make things clearer.               \documentclass{article}     \usepackage{filecontents,pgfplotstable}     \pgfplotstableset{create on use/x/.style={create col/copy column from table={x.csv}{0}}}     \begin{filecontents}{x.csv}     1.1     1.2     1.3     \end{filecontents}     \begin{filecontents}{y1.csv}     2.5     3.2     2.9     \end{filecontents}     \begin{filecontents}{y2.csv}     2.6     3.0     3.1     \end{filecontents}     \begin{document}     \tikz{\pgfplotstableread{y1.csv}\y     \begin{axis}     \addplot table[x=x,y=0]\y;     \end{axis}}          \tikz{\pgfplotstableread{y2.csv}\y     \begin{axis}     \addplot table[x=x,y=0]\y;     \end{axis}}     \end{document}      Instead of the contents of 'x.csv', 'y1.csv' and 'y2.csv' being those provided above, they would be binaries with the following hexdumps: x.csv               40200000 404ccccd 4039999a      y1.csv               40266666 40400000 40466666      y2.csv               3f8ccccd 3f99999a 3fa66666


title: How to append commands to a macro without expanding them

text: I'm working on building an `expenses` package. The intention is to be able to write               \expense{someone}{something}{something a bit longer}{10}{GBP}     \expense{someone else }{something else}{something a bit longer}{11}{EUR}     \makeexpensetable      To do this, I am starting an internal `\allexpenses` macro               \def\allexpenses{}      Then each `\expense` command appends to that a `\writeexpense` command defined as               \newcommand{\writeexpense}[5]{%         #1 & #2 & #4 \\ %     }      So that eventually the `\makeexpensetable` command will simply begin a table, then have an `\allexpenses` line containing all the rows and end the table. My current `\expense` command is               \newcommand{\expense}[5]{%         \edef\allexpenses{\allexpenses%             \writeexpense{#1}{#2}{#3}{#4}{#5}%         }%     }      However, TeX is throwing errors due to the presence of the `\writeexpense` command inside. How do I stop that command from expanding? I'm guessing the answer has something to do with the correct use of a `\noexpand` command, but I cannot figure it out.


title: Comprehensive online manual for LaTeX2e user macros and environments

text: I find myself sometimes in the position that I need to know the "official" syntax and behavior of LaTeX2e user macros or environments. I'm talking about common things like `minipage`. Usually I find _something_ by doing a Google search for `latex <command>`, e.g. `latex minipage`. There are a couple of online helps in English and German available, but there are mostly incomplete. To stick with the example of `minipage`, most of them do not include the second and third optional argument. **Is there a comprehensive online or PDF manual freely available which explains the full syntax of LaTeX2e user level macros/environments?** Wanted features would be:   * Comprehensive (all arguments, all macros/environments, default values for optional arguments)   * Well organized, so that all macros/environments are quickly found.   * Nicely formatted I had a look at the LaTeX wikibook and other online sites, as well as `source2e`, but none of them really fulfill the above points. I realize that there might be books which handle these but I'm looking for something digital. I personally need this because I like to support or emulate such standard macros or environments in my packages, but normal user will find a comprehensive manual also useful. If there is no such document I'm might add it to my TODO list.


title: What are benefits of e-TeX for LaTeX users?

text: The `etex` package provides an interface to e-TeX features. What advantages does it offer to LaTeX users? Are there any possible disadvantages like incompatibility to any other package or can I just use it without worries?


title: Make first row of table all bold

text: I'm trying to do something that I thought would be relatively simple but seems to be quite hard. I have a table with a number of columns, and I'd like to make all of the titles appear in bold text. Obviously I can add `\textbf` to each of them in turn, but it strikes me that there must be a nicer way of doing this (particularly for tables with many columns). As far as I can see there isn't a good way of doing this with plain LaTeX. Are there any packages that make this (and possibly other table-related issues) easier?


title: How can I add an explanation under an equal sign in Lyx (/Tex)?

text: When I write some equation with pen and paper I usually do something like in the following picture: ![enter image description here](http://i.stack.imgur.com/tNyxM.jpg) Is there a way to do something similar in Lyx (my working environment) /Tex ? That is: having an arrow or something like that that refers to the $=$ sign and have some (short) text near


title: Bold math in the title of an article

text: Can this be done? I can't find anything anywhere on this -- which is very strange to me! Addendum: Thank you everyone for the hints. The problem was that I was using a particular .sty file. I have replaced               \setattribute{title}      {size} {\LARGE\bfseries}      there by               \setattribute{title}      {size} {\LARGE\bfseries\boldmath}      and it works now.


title: What about Kuvio for making diagrams?

text: Kuvio (Finnish for 'pattern') seems to be a very general tool for diagram making.   * Which are the major disadvantages?   * Why isn't it used more often (only _one_ Q/A on the site seems to mention it)?   * Can it be used in papers sent to mathematical journals? About Kuvio and other packages on diagrams


title: LaTeX - Portable Editing Environment

text: I have a TeX document which I want to edit and make sure it's rendered correctly. Which means I need an Editor with Preview window. I searched over the Internet. There's too much info and I can't get it right. I use Windows 7 64 Bit. I would like to avoid any installation of a program. Is there a Portable Editor which includes all needed libraries in it and allow Preview of the TeX file?


title: Missing symbols in the sansmath package

text: When using the `sansmath` package with the `Arev` font, symbols like `+` and `=` fail to appear in the compiled document.               \documentclass{article}     \usepackage{fouriernc} % use the Arev font     \usepackage{sansmath}     \begin{document}     You can see this $+$ and this $=$.     But you can't see \sansmath this $+$ and this $=$.     \end{document}      If, however, I switch the order of `\usepackage` to include `sansmath` first and _then_ `fouriernc`, for some reason you now _can_ see the symbols, but I get two errors...               \documentclass{article}     \usepackage{sansmath}     \usepackage{fouriernc} % use the Arev font     \begin{document}     You can see this $+$ and this $=$.     Now you can see \sansmath this $+$ and this $=$, but there are 2 errors.     \end{document}      > ! LaTeX Error: Command `\mathrm' already defined. > > ! LaTeX Error: Command `\mathrm' already defined.


title: How to align \vrule partial vertical lines in a pgfplotstable

text: I had a look at this post on Misaligned multicolumn but it doesn't really solve my problem. I have the code below which is supposed to produce a table with a blue line for the first row and red lines for the other two. In the table below there should be a single blue line and a single contiguous red line below it, with the numbers all aligned. Could someone guide me to what I'm doing wrong? I recognize the dire imprecations against vertical lines but in the final output this will present financial information and I thought it would be useful to clearly separate the inflows from the outflows with a colour coded side line. If anyone can help with the `Misplaced \omit` error too that would be really helpful ![Vertical lines supposed to be aligned](http://i.stack.imgur.com/hJd4P.png)               \documentclass{article}     \usepackage{pgfplotstable}          \def\pgfplotstableeach(#1-#2,#3-#4,#5){% columns 1-2 rows 3-4 input 5       \xdef\ACCUM{}%       \foreach \col in {#1,...,#2} {%         \foreach \ro in {#3,...,#4} {%         \toks0=\expandafter{\ACCUM}%         \edef\temp{every row \ro\space column \col/.style}%         \toks1={#5}%         \xdef\ACCUM{\the\toks0 \temp={\the\toks1},}%         }%       }%       \message{setting \meaning\ACCUM^^J}%       \expandafter\pgfplotstableset\expandafter{\ACCUM}%     }          \begin{document}          \pgfplotstableread[row sep=\\,col sep=&,header=false]{%     1 & 2 & 3 & 4\\%     5 & 6 & 7 & 8\\%     9 & 10 & 11 & 12\\%     }\mytable          \pgfplotstableset{       outline/.style={postproc cell content/.style={@cell content=\fbox{##1}}},       vblue/.style={postproc cell content/.style={@cell content=\multicolumn{1}{!{\color{blue}\vrule width 2pt height 1ex}l}{##1}}},       vred/.style= {postproc cell content/.style={@cell content=\multicolumn{1}{!{\color{red} \vrule width 2pt height 2ex}l}{##1}}}     }          \pgfplotstableeach(0-0,1-2,{vred})     \pgfplotstableeach(0-0,0-0,{vblue})          \pgfplotstabletypeset[     debug,     column name={},     every row 2 column 1/.style={outline},     every row 1 column 0/.style={vred},     every row no 0/.style={after row={\rule{0pt}{2em}}}     ]\mytable               \end{document}


title: \subparagraph{name} not recognized in IEEEtrans document.

text: The information I have found on the web indicates that the `\subparagraph` level should be available in an IEEEtrans article. I'm using TeXLive 2009, `pdflatex`. The relevant preamble line: `\documentclass[conference, 11pt]{IEEEtran}` In the document itself, the usage is                   \paragraph{paragraph}               a bunch of text              \subparagraph{subparagraph}              a bunch more text      The error I'm getting is: `ERROR: Undefined control sequence.` Is this a usage mistake--that is, I'm not using the correct command name or I'm not including a package--or is it a function of the IEEEtrans conference class that it does not allow `\subparagraph`?


title: Does \pgflowlevel{\pgftransformscale{}} do the same as normal tikz scale?

text: I am wondering the following. Somebody made a complicated tikz figure (our university logo). Now I am having troubles, because the width and height latex is reporting are not the 'real' width and height, a very small box instead. The beginning of the tikzpicture environment looks like this:               \begin{tikzpicture}%          \pgflowlevel{\pgftransformscale{#1}}%          \pgftransformscale{0.1}%          % Scaled smaller from the large logo     \begin{pgfscope}%      The culprit seems to be in the \pgflowlevel{} line. When I replace this line with a normal scale, like this:               \begin{tikzpicture}[scale=#1]%          \pgftransformscale{0.1}%          % Scaled smaller from the large logo     \begin{pgfscope}%      the logo seems to be rendered the same, except that the width and height are now ok. What is the difference between the lowlevel command and the tikz scale command, except for messing up the reported dimensions? If none, why would somebody want to use the lowlevel command?


title: Print 'system information' in LaTeX doc

text: I've used TeX quite a bit before but am getting back into it at the moment. I want to print a document details page with info such as:               Compiled on:     Compiled by:     OS version:     LaTeX version:      Obviously the first two are easy (`\today` and `\author`). Are there similar commands for the others? Or is there a package available which could manage this?


title: natbib: comma after website name

text: Consider the MWE below. The resulting bibliography displays an annoying comma after the website name. Is there any way to fix it (but keep the _unsrtnat_ style for all other types like articles)? ![enter image description here](http://i.stack.imgur.com/G9O5y.png)               \documentclass{scrartcl}     \usepackage{filecontents}     \usepackage[square,numbers]{natbib}     \bibliographystyle{unsrtnat}     \usepackage[english]{babel}     \usepackage{url}     \begin{filecontents}{\jobname.bib}     @Other{some-web,       Title                    = {A Website},       url = {https://en.wikipedia.org/wiki/Main_Page},      Note                     = {Last visited: 15.03.2014},     }     @Other{some-web2,       Title                    = {Another Website},       url = {https://en.wikipedia.org/wiki/Main_Page},      Note                     = {Last visited: 15.03.2014},     }     \end{filecontents}          \begin{document}     \section{first section}     some content \cite{some-web,some-web2}     \newpage     \section{Bibliography}     \bibliography{\jobname}     \end{document}


title: Different line spacing in textmode and mathmode

text: At first I was using `\linespread{2}` but my research told me to use the package `setspace`. I did this and everything is fine however in `align*` environments, my equations get double spaced also which makes it visually unappealing. I tried two options               \usepackage{setspace}     \doublespacing     %\displayskipstretch %to avoid stretching math formula     \abovedisplayshortskip=0pt     \belowdisplayshortskip=0pt     \abovedisplayskip=0pt     \belowdisplayskip=0pt      which doesn't do anything. I then tried writing `\singlespace` right before my align environment. This works however there's a very big gap between paragraph and align - see picture. (Note that this happens in the above case also). I would preferably like a single, 1.2, or 1.3 spacing in between equations and doublespace in "text mode" ![picture](http://i.stack.imgur.com/7s521.png) edit: after viewing the pdf again, I am okay with the double space (again I would prefer single). However the whitespace between the paragraph and the align is very visually unappealing


title: \vspace command inserting more space than specified

text: I'm new to LaTeX altogether and discovered something strange while fiddling around with a few commands. Take this simple case of the vspace command:               \documentclass[]{article}          \begin{document}          \noindent     p          \vspace{10 mm}          \noindent     b          \end{document}      This should just insert a 10mm gap between the lower tip of p and the upper tip of b. Unfortunately, when I typeset it and measured the gap with a rule, it turned out to be around 18-19mm. I use TeXstudio as my LaTeX editor and was wondering whether the editor has something to do with this?


title: False grouping of author in bibliography with biblatex

text: I have experiencing a strange error (?) with the grouping of author names in the bibliography with biblatex. With the following MWE the bibliography is OK: all references are found under "Vega y Carpio, Lope de":               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[style=verbose]{biblatex}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @Book{lopedevegaarte,       author =       {Vega y Carpio, Félix Lope de},       title =        {Arte nuevo de hacer comedias},       location =     {Madrid},       year =         1609,     }          @Book{vega-obrascompletas-prosaiii,       author =       {Vega y Carpio, Félix Lope de},       maintitle =    {Obras completas},       volume =       3,       title =        {Prosa. Epistolario, I (1604-1633)},       location =     {Madrid},       year =         2008,     }          @book{Vega-jerusalem,       author =       {Vega y Carpio, Félix Lope de},       title =        {La Jerusalén conquistada},       year =         1609,       location =     {Madrid},     }          @Book{vega1997peribocana,       author =       {Vega y Carpio, Félix Lope de},       title =        {Peribáñez y el comendador de Ocaña},       year =         1997,       editor =       {McGrady, Donald},       introduction = {Oleza, Joan},     }          \end{filecontents}     \addbibresource{\jobname.bib}     \begin{document}     \nocite{*}     \printbibliography     \end{document}      **BUT** : If I add the following item to the bib, the bibliography is not being grouped correctly:               @book{Vega-jerusalemreprint,       author =       {Vega y Carpio, Félix Lope de},       title =        {La Jerusalén conquistada},       year =         1954,       editor =       {Entrambasaguas, Joaquín de},       related =      {Vega-jerusalem},       relatedtype =  {reprintof}     }      See the image: ![enter image description here](http://i.stack.imgur.com/bO9Cw.png) Versions: Biblatex (2.6) and biber (1.6).


title: Hang alignment in bibliography

text: My problem is rather simple but I wasn't able to find a satisfactory answer after some searching on the web and here. I'm trying to build a bibliography manually and would like to modify the 'hangindent' of the bibliography, here is a MWE:               \documentclass[a4paper,11pt,twopage,openright]{book}     \begin{document}     \begin{thebibliography}{ME00}     \setlength{\itemindent}{.22cm}     \setlength{\labelwidth}{1.5cm}      \bibitem[Ada75]{Ada75}Robert A. \textsc{Adams}, {Sobolev Spaces}, Academic Press, 1975.     \bibitem[Ber77]{Ber77}Melvin S. \textsc{Berger}, {Nonlinearity and Functional Analysis}, Academic Press, 1977.     \end{thebibliography}     \end{document}      The `itemindent` and `labelwidth` are set such that the label is aligned with respect to the header (`itemindent`) and such that 'Robert' is aligned with 'Melvin' etc. (`labelwidth`). When compiling this, I get the '-demic Press, 1977' of the second entry on a second line with a left offset with respect to 'Melvin'. How can I adjust this without changing the position of the label? (either aligning the hang to 'Melvin' or even adding a right offset) My only requirement is that I'd rather not use either bibtex or natbib. Thanks a lot! (and apologies if this is completely trivial)


title: How to reduce the space between the author block and paper text? sig-alternate.cls

text: I am using the template `sig-alternate.cls`, but I find that the space between the author block and the paper text is too large, how can I reduce this space? Edit: I want to reduce the space between the author block and the paper text.               \documentclass{sig-alternate}     \begin{document}      \title{shrink space}     \author{XXX}     \maketitle     paper text here!     \end{document}


title: Pictures is put behind text

text: I have an weird problem then I insert an picture like this:               \begin{wrapfigure}{R}{7cm}       \centering       \includegraphics[width=0.4\textwidth]{./pictures/DBuserTabel.png}%{./Pictures/mainscreen1.png}       \caption{Uklip af User tablen i Databasen}       \label{fig:databaseUserTable}     \end{wrapfigure}      It looks like this: ![enter image description here](http://i.stack.imgur.com/wFvCn.png) And its the completely different place. This picture should be at the bottom of the page. Here is the main document and here is the database file that the problem.


title: Indent pagenotes with multiple lines in memoir

text: I'm writing a non fiction book using the `memoir` package. I've been playing around quite a lot, and I must say I'm very satisfied with Peter Wilson's guide. `Pagenotes` are great because they allow me to have all notes at the end of the book, divided by chapter, with continuos numbering. There is one thing though I can't seem to find: how to change the indentation of multiples lines in the endnotes (so that the text of the the second and successive lines is aligned with the text of the first line, not with the note number). With normal footnotes I could do this:               \documentclass{article}          \usepackage[english]{babel}     \usepackage{blindtext}          \usepackage{scrextend}     \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}          \begin{document}          \blindtext\footnote{\blindtext}          \end{document}      How do I achieve the same result with pagenotes?


title: Possible incompatibility with enumitem

text: If I compile the following:               \documentclass[]{article}     \usepackage{enumerate}     \usepackage{enumitem}          \begin{document}          \begin{enumerate}[1.]         \item This is the first         \item This is the second     \end{enumerate}          \end{document}      I get the error message: `Package enumitem Error: 1. undefined.` But if I compile the following:               \documentclass[]{article}     \usepackage{enumerate}     % \usepackage{enumitem}          \begin{document}          \begin{enumerate}[1.]         \item This is the first         \item This is the second     \end{enumerate}          \end{document}      It works fine. What am I missing when I load `enumitem`?


title: Convert font letters to vector format and fill with a pattern

text: I have worked with Illustrator and CorelDraw and I usually take fonts and convert them to curves after which I would fill in the curves with patterns, merge them with other vectors or the sort. Is it possible to do this in LaTeX. To some extent is like changing the color of the fonts but these would have to probably be zoomed for the pattern to be obvious. If this is possible can it then the vector format be translated into TikZ or pstricks to facilitate the fill. An example of this would be appreciated.


title: Navigation Circles disappear in Appendix - Beamer - Frankfurt

text: I am preparing a presentation with beamer using the following preamble:               \documentclass{beamer}          \usepackage{remreset}     \usepackage{comment} % end and begin comment     \usepackage{dtklogos} % for \BibTeX          \makeatletter     \@removefromreset{subsection}{section} % creates navigation circles for every slide not section     \makeatother     \setcounter{subsection}{1} % creates navigation circles for every slide not section          \usetheme{Frankfurt}     \setbeamercovered{transparent}      For every page (note respective lines in preamble) I get a navigation circle in the header of the document. Unfortunately these circles disappear in my quite extensive Appendix. How do I get the circles to also show up in the Appendix (I start the appendix with the \appendix command)?


title: Format section titles as white text on black background

text: I would like to redefine the `\section` and `\section*` to produce section titles that look roughly like this: ![illustration of desired section title formatting](http://i.stack.imgur.com/jdUta.png) that is, text in white over a black bar that extends from left to right margin. I don't anticipate any section titles being longer than one line.


title: Changing minipage vertical alignment in mid-line?

text: Please consider the following MWE:               \documentclass{article}     \usepackage{lipsum}     \usepackage[showframe,showcrop]{geometry}          \begin{document}          \section{Section 1}          aa     \fbox{\begin{minipage}{100pt}     Box 1     \end{minipage}}     \fbox{\begin{minipage}[t]{150pt}     \lipsum[11]     \end{minipage}}     \fbox{\begin{minipage}[b]{50pt}      ..... Box 3     \end{minipage}}     zz          \end{document}      It results with the following output: ![a1](http://i.stack.imgur.com/rfEwA.png) All of the minipage boxes are top aligned. Is it somehow possible to have the first and second minipage top-aligned (as they are) - but then have minipage 3 bottom-aligned to minipage 2 (and correspondingly, the last "zz" aligned to minipage 3)? Here is the desired output, composed in an image editor: ![a2](http://i.stack.imgur.com/ChcH0.png) I would prefer a solution where I don't have to wrap the minipages in another minipage/environment (or load another package, EDIT: _and that is because I eventually want to hook into a macro, which typesets a whole line [the "aa" to "zz"] parts - and allows me a hook for the middle; where I'd want to insert the miniboxes, and change the line alignment as shown_ ) - but lacking that, I'd be interested in hearing any approach which is applicable here.


title: Why can't "fi" be separated when being copied from a compiled pdf?

text: I notice that in a pdf file compiled from Latex, "fi" such as in "field" cannot be separated as "f" and "i" when copying text out of the pdf file. I wonder why and if this can be changed? Thanks and regards!


title: Use $ in lstlisting

text: I need to create some jQuery-Listings but when I try to do so               \documentclass[12pt,oneside,a4paper]{scrartcl}          \usepackage{textcomp}     \usepackage{listings}     \usepackage{color}               \definecolor{lightgray}{rgb}{.9, .9, .9}     \definecolor{darkgray}{rgb}{.4, .4, .4}     \definecolor{purple}{rgb}{0.65, 0.12, 0.82}          \lstdefinelanguage{JavaScript}{             keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break},             keywordstyle=\color{blue}\bfseries,             ndkeywords={class, export, boolean, throw, implements, import, this},             ndkeywordstyle=\color{darkgray}\bfseries,             identifierstyle=\color{black},             sensitive=false,             comment=[l]{//},             morecomment=[s]{/*}{*/},             commentstyle=\color{purple}\ttfamily,             stringstyle=\color{red}\ttfamily,             morestring=[b]',             morestring=[b]"}          \lstset{             language=JavaScript,             backgroundcolor=\color{lightgray},             extendedchars=true,             basicstyle=\footnotesize\ttfamily,             showstringspaces=false,             showspaces=false,             numbers=left,             numberstyle=\footnotesize\ttfamily,             numbersep=9pt,             tabsize=2,             breaklines=true,             showtabs=false,             frame=leftline,             caption=\lstname}               \begin{document}          \begin{lstlisting}[name=Beispiel mit JavaScript Bibliothek (jQuery)]     \$("p").elements.each(function() {             \$(this).html = "Element erkannt";     });     \end{lstlisting}          \end{document}      The `$` doesn't get displayed. If I try to escape it normally using `\$("#test")`, it ends up looking like **`\ ("test")`**. The `$` is still omitted and the backslash is displayed. How can I get the `$` to work in a lstlisting?


title: mdtheorem is only framing the bottom-half of my text

text: I'm using the `mdtheorem` environment and for some reason the boxes seem to not print out correctly when I compile and open my pdf file. Everything compiles fine, but I get that my theorem is only framed on the bottom-right, and the top-left part of the frame is missing. I just use a command like, say,               \begin{algo} \label{alg:ew} \textbf{Calcul }     \end{algo}      any ideas? * * * Ok, well, this is an example of code :               \documentclass[12pt]{article}               %\pagestyle{empty}     \usepackage{amsfonts}     \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{mdframed}     \usepackage{multirow}     \usepackage{graphicx}          \usepackage[french]{babel}     %\usepackage[autolanguage]{numprint}          \newmdtheoremenv{alg}{Algorithme}               \begin{document}               \begin{alg}  \ \ \textbf{Graphiques de $P(X=x)$ et $P(X\leq x)$ }     \end{alg}          \end{document}      Which is just the basic use of it here. I was able to make the whole box appear now, but only when I was zoomed in so close on the thing I couldn't see anything else. Is there a way to make the frame thicker, so maybe that would help the frame to post properly even when not so zoomed in?


title: BBL file withTeXlive 2010 not generating

text: I just installed the TexLive 2010 package on Win XP and using the TexnicCenter editor. I linked the executables to the BIN directories. Compiling with `latex.exe` and with `pdflatex.exe` works well, but `BibTex.exe` (v0.99d) doesn't generates the `*.bbl` file from `*.aux`. I use the Jabref 2.6 reference editor for managing the references. On my older PC I'm using the TexLive 2008, JabRef 2.2 + TexnicCenter and everything is running OK. Can somebody help me somehow?


title: How to remove colon(:) on longtable suffix caption

text: Using `svmono` package and `\renewcommand\tablename\{Tab.}`. When I use table, the caption shows “Tab.1 Bah Bah”. But if I use longtable, the caption shows “Tab.2: Bah bah”. How to remove colon as “Tab 2 Bah bah”. Many Thank


title: Display text on begin document

text: I'm developing my own `documentclass`. How can I make some text appear on the beginning of each document with this class? For now I'm working with this in the class:               \newcommand{\showAtBegin}{Text}      And in each document...               \begin{document}     \showAtBegin      But there has to be a neat way.


title: How to deal with % sign in url when using hyperref and bibentry

text: In few of my citations I have a % sign in the url, which gives a problem when I use the `bibentry` environment (Paragraph ended before \BR@c@bibitem was complete). How can I deal with the % sign? Without the reference containing the % in the url everything works fine. Also without using the `bibentry` the % gives no problem. the % sign gives also no problem using a different bibliography stile as unsrt, which is not using the url information (which I don't want to do). (The bibliography style statto can be found here, same problem occurs using `plainnat`). Not using `\begin{NoHyper}\bibentry{goossens93}\end{NoHyper}` would be preferred to hyperlink the reference to the website, but I don't know if this would be possible at all.                   \begin{filecontents}{mytestbib.bib}     @book{goossens93,         author = "Frank Mittelbach and Michel Goossens  and Johannes Braams and David Carlisle  and Chris Rowley",         title = "The {LaTeX} Companion",         year = "1993",         publisher = "Addison-Wesley",         address = "Reading, Massachusetts"     }          @BOOK{Kymissis__2009,       title = {Organic Field Effect Transistors - Theory, Fabrication and Characterization},       publisher = {Springer},       year = {2009},       author = {Kymissis, Ioannis},       abstract = {Organic Field Effect Transistors discusses the fundamental mechanisms         that apply to {OFETs} fabrication, operation, and characterization.         This unique book presents the state-of-the-art in organic field effect         transistors ({OFETs)} with ...},       isbn = {9780387921341},       keywords = {Circuits and Systems, Fabrication and Characterization, Organic Chemistry,         Organic Field Effect Transistors - Theory, Technology \& Engineering         / Engineering (General)},       language = {English},       shorttitle = {Organic Field Effect Transistors},       timestamp = {2013.10.07},       url = {http://www.springer.com/engineering/circuits+%26+systems/book/978-0-387-92133-4}     }          \end{filecontents}     \documentclass{article}     \usepackage[pdftex]{hyperref}     \usepackage{filecontents}     \usepackage{natbib}     \usepackage{bibentry}     \nobibliography*               \begin{document}          A full in-text cite of     \begin{NoHyper}\bibentry{goossens93}\end{NoHyper}.          A regular citation of \cite{goossens93}.          Problematic cite \cite{Kymissis__2009}               \bibliographystyle{statto}     \bibliography{mytestbib}          \end{document}


title: How to put algorithm block in a minipage so that footnote displayed immediate after the block

text: as stated in title.               \documentclass{article}          \usepackage{algorithm}     % Need it for floating environment     \usepackage[noend]{algpseudocode}      % Hide endif .etc     \usepackage{caption}     % Need it for \caption*     \usepackage{xspace}     % Fix macro spacing bug          \algrenewcommand{\algorithmicrequire}{\textbf{Input:}}     \algrenewcommand{\algorithmicensure}{\textbf{Output:}}     \algrenewcommand{\algorithmicforall}{\textbf{for each}}     % \algrenewcommand instead of \renewcommand according to manual     \newcommand{\To}{\textbf{to}\xspace}     % Not stated in manual, \Return and \algorithmicreturn are defined, but no \algorithmicstate, why?     \newcommand{\Dosth}{\State \textbf{Do Something}\xspace}     % Note no space before \xspace     \newcommand{\Please}[1]{\State \textbf{#1}}     \newcommand{\ForEach}{\ForAll}     % Fail to use \algorithmicforall, why?     \begin{document}          \begin{algorithm}         \caption*{\textbf{Algorithm:} \textsc{Depth First Search}} \label{alg:dfs1}              \begin{algorithmic}[1]                  \Function{DFS}{$v$}                 \State $count \gets count + 1$                 \Please{mark} $v$ with $count$                 \Dosth with $v$                 \ForEach{vertex $w \in \mathcal{V}$ adjacent to $v$}                     \If{$w$ is marked with $0$} \Comment Only needed to exclude its parent.\footnotemark                         \State \Call{DFS}{$w$}                     \EndIf                 \EndFor                 \State \Return             \EndFunction              \end{algorithmic}     \end{algorithm}     \footnotetext{No sibling is visited before the loop. Each sibling will be visited exactly once due to the nature of the loop.}          \end{document}


title: How to draw graphs

text: Maybe this question should not be here, but for me it seems the only way to get the answer! My questions are:   * Which program a mathematician can use to write a paper in mathematics which contains a lot of geometrical graphs?    * How they drew the pictures in the books?    * Is it just hand drawing and then paste in a proper place in the paper? Or the only way is to be very professional in LaTeX?   * Is there any computer program converts a hand-draw picture into a digital code?


title: Can programs (e.g. Matlab) be made executable from within the PDF?

text: Is it possible to include a program (as in say Matlab, Maple, etc.) within a LaTeX file in such a way that clicking a button on the resulting PDF file will transport the program to the related software, and run it.


title: How do I know which ligatures are used in my document?

text: In order to know which ligatures I might consider disabling, I would like to know which ones are actually used in my document. (Which ligatures are provided by a font is a more general question; I have created a separate question for this: Which ligatures do the fonts used in my document offer?) The following code               \RequirePackage{fix-cm}     \documentclass[12pt]{memoir}     \usepackage{fixltx2e}[2006/09/13]     \usepackage{microtype}               \begin{document}          flicker -- fingers affliction affidavit          \end{document}      will ligate "fl", "--", "fi", "ffl", and "ffi", but not "ff" or "---". (I think this covers the standard ones for English. Of course en-dash (for "--") and em-dash (for "---") aren't normally considered ligatures, but I've seen them being referred to as such by at least _some_ literature on (La)TeX, so I'm including them here. In this context this can be justified, as (La)TeX treats (creates/processes) them as ligatures.) How can I find out about this in an automated manner? I normally use `pdflatex`, if this matters.


title: Set up SyncTeX with Emacs DocView

text: I have the source in one emacs buffer and the compiled pdf in another DocView buffer with auto-revert-mode enabled. Using `latexmk -pvc` to compile gives me live previews. Now I want to setup forward and inverse search. All the instructions I can find about using emacs with synctex involves some external viewer. Is there any way to do this at all?


title: Flagging/tracing in roughdraft source document location

text: Surely I must be reinventing the wheel here. I'm writing a rather lengthy document for which each section corresponds to its own input file. Basically, I have a mother document which looks something like the following:               %% Fellowship of the Ring     \input{preamble}     \begin{document}     \input{content/chap_01/opening}     \input{content/chap_01/announcement}     \input{content/chap_01/so_far_no_trouble}     \input{content/chap_01/twelve_more_years}     ....     \input{content/chap_02/gossip_about_bilbo}     \input{content/chap_02/gossip_about_world}     ....      After writing a while, I no longer remember what all my file names mean. And when I find a mistake in the rough draft, it can be a real pain in the neck trying to pin down which file contains the offensive text. A while ago, I hobbled some code together which allowed me to set a flag indicating that I was writing a rough draft and printed in the final document the _source file_ (including the directory path). The code is really a horrendous hack in which I misuse `\@startsection` Here's a MWE:               \documentclass{article}     %%--------------------------------------------------------------------------------     \usepackage{xcolor}     \usepackage{currfile}     \usepackage{fancyvrb}     \usepackage{xparse}     \makeatletter     \ExplSyntaxOn     %% booleans for flaggging ROUGH DRAFT status     \bool_new:N \ae_roughdraft_bool     \bool_gset_false:N \ae_roughdraft_bool     \NewDocumentCommand \setroughdraft   {} { \bool_gset_true:N  \ae_roughdraft_bool }     \NewDocumentCommand \unsetroughdraft {} { \bool_gset_false:N \ae_roughdraft_bool }     %%      \cs_new:Npn \fnc_ae_currentfile:n #1 {         \bool_if:NT \ae_roughdraft_bool          {             %% Save the filehandle             \DefineShortVerb{\;}             \SaveVerb{CurrentFilehandle};\currfiledir\currfilename;             \UndefineShortVerb{\;}             %% create a box of zero total height and zero width             \raisebox{-2ex}[0pt][0pt]{                 \makebox[0pt][l]{                     \footnotesize                     \textcolor{red}{#1:\hspace*{1em}\UseVerb{CurrentFilehandle}}                 }}         }     }          \cs_new:Nn \fnc_aesection:          {         \@startsection{section}{1}{0pt}                       {2.5ex \@plus -0.5ex \@minus -0.5ex}                       {2.5ex \@plus  0.5ex}                       {\fnc_ae_currentfile:n {section}                        \normalfont\Large\bfseries}         }          \NewDocumentCommand\aesection{ om }         {         \fnc_aesection: {#2}         }          \ExplSyntaxOff     \makeatother     \setroughdraft     %%--------------------------------------------------------------------------------     \usepackage{lipsum}     \pagestyle{empty}     \begin{document}          \input{hello}          \input{bye}          \end{document}      Here are the contents of the file `hello.tex`               \aesection{Hello}          \lipsum[1]      Here are the contents of the file `bye.tex`               \aesection{Bye}          \lipsum[2]      And here's the resulting document: ![enter image description here](http://i.stack.imgur.com/oPZig.png) Bye _unsetting_ the rough draft flag, the output is ![enter image description here](http://i.stack.imgur.com/2PVXu.png) Hopefully you can see how in a rough draft I can very easily tell which file produced what output and very quickly edit or modify that file. Nevertheless, I'm not happy with the code. To begin with, I've got some undesired extra space popping in at the beginning of each section. But this is because I'm misusing `\@startsection`. I know I'm not using `\@startsection` correctly: only formatting commands should be appearing in the sixth argument ---not actual text. I would like to know a better way to do this. It seems to me that someone else must have wanted to do something similar. How do I create a rough draft which allows me to readily tells the source file which generated the text in my output document?


title: Problem with use \url - metric (TFM) file not found

text: I try to write an article in LaTeX using texmaker on ubuntu. I use many packages including:               \documentclass[12pt,a4paper]{book}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{amsfonts}     \usepackage[polish]{babel}      But when I use `\url{something}` I get a font problem:               ! Font T1/pcr/m/n/12=pcrr8t at 12.0pt not loadable: Metric (TFM) file not     found     .     <to be read again>     relax     l.33 \url{test}     I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.      Can you help me to solve it?


title: Recode LY1 encoding to T1 (berenis font and polish letters)

text: Some fonts in standard latex distributions are supplied in LY1 encoding, so the letters ąę, śćńźŚĆŃŹ are constructed in situ with unproper kerning. I had raised a question for solution and a few examples of manual kerning were given in this thread: berenis and 'ę' 'ą' letters . However I've contacted also with a creator of the font. He answered me with an image of the font editor: ![fontforge screenshot of berenis font](http://i.imgur.com/NuFXOaH.png) demonstrating that it does contain ę and ą letters included in the otf file. He suggested that there might be an encoding solution. The manual hacks work, but they demand a lot of manual adjustment. So I wonder how to transcode letters so that they would be properly taken from the file and not constructed. Maybe we can transcode the font to some other encoding or create some translation table?


title: How can one produce spaces of arbitrary (fixed or relative) width that (do or don't) linebreak?

text: Adobe InDesign lets me insert a wide variety of spaces:   * over half a dozen spaces that allow for a line break ( _let's assume for the purpose of this question that they disappear in case of a line break, **though the case that they don't is interesting in its own right_** ); their lengths: 1em, 1/2 em, 1/3 em, 1/4 em, 1/6 em, 1/8em, 1/24 em, _width of a number_ , _width of ! and . and :_   * a non-breaking space (same flexible width as a space character) [I think this corresponds to `~` in TeX]   * a non-breaking, fixed-width space [see Fixed-width interword space] **How can I produce such spaces with LaTeX?** I am looking for the following spaces:   * a potentially line-breaking space of a fixed, specified width (e.g. `0.5em`)      * useful for something like "post--World␣War II" ["--" should be an en-dash; note that the hyphen/en-dash distinction doesn't quite render as desired on this forum]     * Another usage scenario is this: Sometimes I write legends (somewhat similar to footnotes that can align on the same line), with symbols followed by text (`SYMBOL text text text text text`). Usually each new legend item should be spaced apart from the surrounding ones by a wide and fixed space, but there can alternatively be a line break. The entire text will normally be in a `raggedright` context. In a scenario with justified text, a flexible space (which would belong into the next large bullet point) would be appropriate.   * a potentially line-breaking space of variable width, specified in relative terms (e.g. _1.5 times the width of an ordinary space_ )      * useful for occasional double sentence spacing in text that is otherwise set with `\frenchspacing` [I'm not sure about the line-breaking behavior of hacks such as `␣{}␣` in all cases; in any case this would give me only integer multiples of `␣`]   * a non-breaking space of a fixed, specified width (e.g. `0.5em`)      * necessary for spaces that are used as group separators within numbers     * useful for something like "post--World War␣II" ["--" should be an en-dash; note that the hyphen/en-dash distinction doesn't quite render as desired on this forum]     * In the "legend" scenario described under the first large bullet point above, the symbol and the following text should be separated by a fixed, non-breaking space. In a scenario with justified text, a flexible (but still non-breaking) space (which would belong into the next/last large bullet point) might be justified.     * `\kern<width>` is used in the definition of `\LaTeXe` in `dtklogos`     * similar to InDesign's "Nonbreaking Space (Fixed Width)"   * a non-breaking space of variable width, specified in relative terms (e.g. _1.5 times the width of an ordinary space_ )      * for use in something like "E.␣T.␣A. Hoffmann", though I haven't given thought to the optimal width here; note that certain German abbreviations like "u.␣Ä." ("und Ähnliches") require a shorter space according to some authorities     * similar to InDesign's "Nonbreaking Space"     * a real-number generalization of the sequence `~`, `~~`, `~~~`, ... (is that right?) _This question is a wide generalization and a follow-up to "Fixed-width interword space". Also relevant and potentially useful: "Lengths and when to use them"._ Some of this is proof of concept, to see what is possible. Knowing whether and how (La)TeX can do the above things that InDesign can do, and more ( _if_ this is the case here), is good. Some of the above usage scenarios are quite useful, others are more hypothetical. This question will also serve to document and catalogue the options the user has. Knowing how to code spaces without overuse of `\mbox`es and modification of general spacing parameters (see my question about fixed-width interword spaces) might come in handy.


title: Symbol for "rotate around axis"

text: I have two pictures of an object where I need to indicate that one is rotated by `x°` (around a certain axis), preferably with the arrow in the picture - BUT - I can't seem to find this arrow in the "comprehensive latex symbol list". Anyone has any idea where to get? I already have alternatives but would prefer to have this if possible: ![enter image description here](http://i.stack.imgur.com/e4wV8.png)


title: Index not created in pdf output, even though idx file is present

text: I have a document that has `\usepackage{makeidx}` and `\makeindex` in the preamble and `\printindex` inside the document body. An `.idx` file is created when I compile, no errors are signalled, still there is no index listing in the PDF document that is produced. There used to be one until all my files were deleted except the `.tex` file, after that I could not get the index to appear in my output. How can one troubleshoot this thing? I have changed all the `"%bm"` with `"%tm"` wherever I could find it in the build profiles (Tools -> Options -> Clean), as Thorsten Donig suggested on this website (in an answer to another posting regarding problems with the index creation). It did not solve my problem. I am using the TeXnicCenter editor on Windows XP, with the MiKTeX 2.9 distribution.


title: including font in .otf

text: I'm writing my thesis at a company and have to write it in their default font. How can I set a .otf font in Latex (using Texmaker on Windows)?               \documentclass[a4paper,12pt,twoside,ngerman]{article}     \parindent0pt     \parskip6pt     \usepackage{fontspec}     \fontspec [Path = fonts/,         UprightFont = *-Light,         ItalicFont = *-Thin      ]     {AkkoPro}          \begin{document}          hello world          \end{document}      Latex throws an error:               ! LaTeX Error: File `expl3.sty' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read > \usepackage      How can I install expl13? Is the way to include fonts correct? My fonts are in the "fonts" folder in the same directory like the .tex File and are called AkkoPro-Light.otf and AkkoPro-Thin.otf. Is it possible to include fonts for Bold and others? (I've got AkkoPro in Bold, Light, Medium, Regular and Thin...) I found a lot about xetex and luatex, but I don't know, what it is... Sorry for my terrible english =) * * * I solved the font problem by using               \setmainfont[Path = fonts/,     BoldFont = AkkoPro-Bold.otf,     ItalicFont = AkkoPro-Thin.otf,     BoldItalicFont = AkkoPro-Light.otf     ]{AkkoPro-Regular.otf}      but now I´ve got a lot problems by the other packages and commants... When I'm using the utf8 inputenc package, there will be an error in the header "!Missing \endscname inserted".               \pdfinfo      is now called "undefined control sequence"               \begin{figure}         \includegraphics[width=0.5\linewidth]{images/logo.jpg}     \end{figure}      in Line using \includegraphics XeLaTeX throws the error "!Dimension too large. ... all these errors appears by using \setmainfont and disappears by deleting this command... My header:               \documentclass[a4paper,12pt,twoside,ngerman]{article}     \parindent0pt     \parskip6pt          %%%%%%%%     %Pakete%     %%%%%%%%     \usepackage{fontspec}     \setmainfont[Path = fonts/,     BoldFont = AkkoPro-Bold.otf,     ItalicFont = AkkoPro-Thin.otf,     BoldItalicFont = AkkoPro-Light.otf      ]{AkkoPro-Regular.otf}               \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel} % Paket für die neue deutsche Rechtschreibung     \usepackage{bera}     \usepackage{color}     \usepackage{xcolor}     \usepackage{listings} % Packet zum Erstellen von Listinings          \definecolor{lightgray}{HTML}{F3F3F3}          \colorlet{jsonPunct}{red!60!black}     \definecolor{jsonDelim}{RGB}{20,105,176}     \colorlet{jsonNumber}{magenta!60!black}          \definecolor{lightgreen}{HTML}{3F7F5F} % comments     \definecolor{purple}{HTML}{950055} % keywords     \definecolor{lightblue}{HTML}{3F7DE0} % javadoc     \definecolor{turquoise}{HTML}{5FC0C0}     \definecolor{darkblue}{HTML}{2A00FF}     \lstdefinelanguage{json}{     literate=      *{0}{{{\color{purple}0}}}{1}       {1}{{{\color{purple}1}}}{1}       {2}{{{\color{purple}2}}}{1}       {3}{{{\color{purple}3}}}{1}       {4}{{{\color{purple}4}}}{1}       {5}{{{\color{purple}5}}}{1}       {6}{{{\color{purple}6}}}{1}       {7}{{{\color{purple}7}}}{1}       {8}{{{\color{purple}8}}}{1}       {9}{{{\color{purple}9}}}{1}       {:}{{{\color{purple}{:}}}}{1}       {,}{{{\color{purple}{,}}}}{1}       {\{}{{{\color{darkblue}{\{}}}}{1}       {\}}{{{\color{darkblue}{\}}}}}{1}       {[}{{{\color{darkblue}{[}}}}{1}       {]}{{{\color{darkblue}{]}}}}{1},     }     \lstset{     language=Java,     keywordstyle=\color{purple}\bfseries,     commentstyle=\color{lightgreen},     morecomment=[s][\color{lightblue}]{/**}{*/}%,     }     %XML Style     \lstdefinelanguage{XML}     {       morestring=[b]",       morestring=[s]{>}{<},       morecomment=[s]{<?}{?>},       stringstyle=\color{black},       identifierstyle=\color{turquoise},       keywordstyle=\color{purple},       morekeywords={android, name}% list your attributes here     }     % Allgmeiner Style für Listings     \lstset{     basicstyle=\footnotesize,     tabsize=2,     numbers=left,     numberstyle=\scriptsize,     stepnumber=1,     numbersep=8pt,     showstringspaces=false,     showspaces=false,     backgroundcolor=\color{lightgray},     frame=none,     rulecolor=\color{black},     aboveskip=1em,     belowskip=1.5em,     captionpos=b,     breaklines=true     }     % die folgendenen 3 Pakete sichern, dass Wörter nicht so oft am rechten Rand herausragen     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{microtype}     \usepackage{graphicx} % Paket zur Verwendung von Bildern. alternatif epsfig     \usepackage[     colorlinks=true,     linkcolor=magenta,     anchorcolor=black,% Ankertext     citecolor=green, % Verweise auf Literaturverzeichniseinträge im Text     urlcolor=cyan, % Farbe der URLs     backref % Back-Links zu den Kapiteln     ]{hyperref}     \usepackage{floatflt} % Paket Bildpositionierung     \usepackage{marvosym} % Paket zur Verwendung von manchen Sonderzeichen     % Paket zur Verlinkung des Inhaltsverzeichnisses, als (vor-)letztes laden (es muss zweimal compiliert werden), nur glossaries muss danach geladen werden     \usepackage{fancyhdr} % Paket für den Pagestyle fancy     \usepackage{dirtree} % Paket zum Erstellen einer Verzeichnisstruktur     \usepackage[     nonumberlist,   %keine Seitenzahlen anzeigen     acronym         %ein Abkürzungsverzeichnis erstellen     ]{glossaries}     % Entfernt den Punkt am Ende der Beschreibung beim Glossar     \renewcommand*{\glspostdescription}{}     %sammelt die Einträge     \makeglossaries     %%%%%%%%%%%%%%%%%%%%%%%%%%     %Allgemeine Informationen%     %%%%%%%%%%%%%%%%%%%%%%%%%%     \title{Titel}     \date{}     \author{}     \pdfinfo{       /Title    (Titel)       /Author   (me)       /Creator  ()       /Producer ()       /Subject  ()       /Keywords ()     }


title: newtxmath and tikz in collision

text: When I try to draw a Feynman diagram with superscripts, if I use newtxmath, the superscripts on the particles (like `\mu^{-}`) won't show. Here's the mwe:               %&latex     \documentclass[twocolumn,prc,floats,amsmath,amssymb,superscriptaddress,nofootinbib,11pt]{revtex4-1}               \usepackage{caption}     \usepackage{array}     \usepackage{graphicx}     \usepackage{tgtermes}     \usepackage{newtxmath}     \usepackage{tikz}     \usetikzlibrary{trees}     \usetikzlibrary{decorations.pathmorphing}     \usetikzlibrary{decorations.markings}          \tikzset{         photon/.style={decorate, decoration={snake}, draw=black},         electron/.style={draw=black, postaction={decorate},             decoration={markings,mark=at position .55 with {\arrow[draw=black]{>}}}},         gluon/.style={decorate, draw=magenta,             decoration={coil,amplitude=4pt, segment length=5pt}}      }     \newcolumntype{y}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}     \renewcommand*{\arraystretch}{1.2}          \begin{document}                    \begin{tikzpicture}[             thick,             % Set the overall layout of the tree             level/.style={level distance=1.5cm},             level 2/.style={sibling distance=2.6cm},             level 3/.style={sibling distance=2cm}         ]         \coordinate                  child[grow=right, level distance=0pt] {             child  {                 child {                     child {                         node {$\overline{\nu}_e$}                         edge from parent [electron]                     }                     child {                         node {$e^{-}$}                         edge from parent [electron]                     }                     node[above=15pt]{$W^{-}$}                     edge from parent [photon]                 }                 child {                     node {$\nu_\mu$}                     edge from parent [electron]                 }                 edge from parent [electron]                 node [below] {$\mu^{-}$}             }         };     \end{tikzpicture}                                   \end{document}      This one will make the diagram, but without superscripts :\ If I leave the newtxmath out, I'll have the superscripts on the diagram, but also the 'math text' is, well, not in tx font :| Any solution to this? EDIT: Added log file (File list):                *File List*     revtex4-1.cls    2010/07/25/20:33:00 4.1r (http://publish.aps.org/revtex4/ for      documentation)       aps4-1.rtx     aps11pt4-1.rtx     textcase.sty    2004/10/07 v0.07 Text only upper/lower case changing (DPC)      amssymb.sty    2009/06/22 v3.00     amsfonts.sty    2009/06/22 v3.00 Basic AMSFonts support      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          url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.       natbib.sty    2010/09/13 8.31b (PWD, AO)     revsymb4-1.sty    2010/07/25/20:33:00 4.1r (http://publish.aps.org/revtex4/ for      documentation)      caption.sty    2012/02/19 v3.2f Customizing captions (AR)     caption3.sty    2012/01/12 v1.4b caption3 kernel (AR)       keyval.sty    1999/03/16 v1.13 key=value parser (DPC)        array.sty    2008/09/09 v2.4c Tabular extension package (FMi)     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    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive        dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)     tgtermes.sty    2009/09/27 v1.2 TeX Gyre Termes as default roman family     kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)      ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)     etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)     newtxmath.sty    2012/11/19 v1.06       binhex.tex      xkeyval.sty    2008/08/13 v2.6a package option processing (HA)      xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)         tikz.sty    2010/10/13 v2.10 (rcs-revision 1.76)          pgf.sty    2008/01/15 v2.10 (rcs-revision 1.12)       pgfrcs.sty    2010/10/25 v2.10 (rcs-revision 1.24)     everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)       pgfrcs.code.tex      pgfcore.sty    2010/04/11 v2.10 (rcs-revision 1.7)       pgfsys.sty    2010/06/30 v2.10 (rcs-revision 1.37)       pgfsys.code.tex     pgfsyssoftpath.code.tex    2008/07/18  (rcs-revision 1.7)     pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive      pgfcore.code.tex       ot1qtm.fd    2009/09/25 v1.2 font definition file for OT1/qtm     pgfcomp-version-0-65.sty    2007/07/03 v2.10 (rcs-revision 1.7)     pgfcomp-version-1-18.sty    2007/07/23 v2.10 (rcs-revision 1.1)       pgffor.sty    2010/03/23 v2.10 (rcs-revision 1.18)      pgfkeys.sty          pgfkeys.code.tex       pgffor.code.tex         tikz.code.tex     omlntxmi.fd    2012/03/22 Fontinst v1.933 font definitions for OML/ntxmi.     omsntxsy.fd    2012/11/14 Fontinst v1.933 font definitions for OMS/ntxsy.     omxntxex.fd    2012/04/18 Fontinst v1.933 font definitions for OMX/ntxex.      untxexa.fd    2012/04/16 Fontinst v1.933 font definitions for U/ntxexa.      untxsya.fd    2012/04/12 Fontinst v1.933 font definitions for U/ntxsya.      untxsyb.fd    2012/04/12 Fontinst v1.933 font definitions for U/ntxsyb.      untxmia.fd    2012/04/16 Fontinst v1.933 font definitions for U/ntxmia.      untxsyc.fd    2012/04/12 Fontinst v1.933 font definitions for U/ntxsyc.      ***********


title: protocol message diagram - arrow colored

text: \documentclass{article}     \usepackage[margin=12mm]{geometry}     \usepackage{hyperref}     \usepackage[underline=true]{pgf-umlsd}     \usetikzlibrary{calc}     \begin{document}          \begin{sequencediagram}     \newinst{ue}{UE}     \newinst[3]{nodeb}{Node B}     \newinst[3]{rnc}{RNC}     \mess{ue}{RRC Connection Request}{rnc}     \mess{rnc}{Radio Link Setup Request}{nodeb}     \mess{nodeb}{Radio Link Setup Response}{rnc}     \mess{rnc}{Establish Request}{nodeb}     \mess{nodeb}{Establish Confirm}{rnc}     \mess{rnc}{RRC Connection Setup}{ue}     \postlevel     \mess{nodeb}{Synchronization Indication}{rnc}     \filldraw[fill=black!30] ($(RRC Connection Setup to)+(0,-.3)$) rectangle ($(Synchronization Indication from) +(0,.3)$)      node[midway] {L1 Synchronization};     \mess{ue}{RRC Connection Setup Complete}{rnc}     \end{sequencediagram}          \end{document}      ![enter image description here](http://i.stack.imgur.com/UKXI7.png) Is it possible assign a different color to pairs of arrows and put a legend with the colors for each protocol layer?


title: LaTeX report wrong error line when enclosing thing within a macro

text: I like to write my LaTeX C++ style               1 \mydisplay     2 {     3     \BoomUndefinedMacro \\     4     x + 1 = 2     5 }      But then LaTeX, LaTeX say that the error is in line 5, instead of line 3.   This is not useful, because in more involved use case, there are a hundred line in the display. Is there a work around in writing enclosing macro so that LaTeX gives the right line number?               \documentclass{article}          \usepackage{amsmath}          \newcommand{\mydisplay}[1]{\begin{align} #1 \end{align}}          \begin{document}          \mydisplay     {         \boomUndefinedMacro \\         x + 1 = 2     }          \end{document}


title: telling luaotfload where to look for fonts

text: The documentation of luaotfload states that on Linux fontconfig is used to find the font locations. However all fonts I install in ~~`/usr/share/local/fonts`~~ **edit** : `/usr/local/share/fonts`(as I don't want to mess up my package management) are not visible to luaotfload, but to all other applications in my system which also use fontconfig. How do I tell luaotfload where to look for fonts? I’m using TeXLive 2012 included in Ubuntu.


title: Tikz library files at given path

text: I am using tikz library files from this question. I use the code: `\usetikzlibrary{paths.ortho}` and put files tikzlibrarypaths.ortho.code.tex and tikzlibrarypaths.ortho.tex in the root folder. I wanted to know if it is possible to put the files into some other subfolder to utilise it? I just wanted to know it for better organization of my latex code. Thanks !


title: hyperref and bibunits: link does not work

text: I often like to use hyperref to make references to theorems and articles in the bibliography clickable. However, I noticed that when I use bibunits, I can only click on links to theorems, not on links to articles in the bibliography. Here is a minimal example               \documentclass[a4paper,11pt]{article}     \usepackage{bibunits}     \usepackage{hyperref}          \begin{document}          \defaultbibliography{mybib}     \defaultbibliographystyle{plain}          \begin{bibunit}     my reference \cite{book1}.     \putbib     \end{bibunit}          \end{document}      Is there any way to solve this? Thanks!


title: Lualatex and Syriac (initial, middle and final letters)

text: I have heard that it is possible to typeset Arabic texts with Lualatex, so I assume that it is also possible to typeset Syriac texts with LuaLatex. But when I run the following example, the output is not like it should be:               \documentclass{scrartcl}     \usepackage{fontspec}          \newfontfamily\syriacfont[Script=Syriac]{Serto Batnan}%unicode otf; available http://www.bethmardutho.org/images/fonts/melthofonts-1.21.zip      \newcommand{\syr}[1]{\bgroup\luatextextdir TRT\syriacfont #1\egroup}           \begin{document}          \syr{ܟܕ ܛܝܒܘܬܐ ܡܫܡ̇ܗ ܐܦ ܠܢܡܘܣܐ. ܚܠܦ ܠܡ ܗܝ̇ ܛܝܒܘܬܐ ܗܕܐ ܐܬܝܗܒܬܼ}          \end{document}      The letters and words appear in the right order (ie. right to left), but there is no distinction between initial, middle and final letters. lualatex always uses the stand alone letters. I'm pretty sure that this is not the font's fault, because running the following, similar example with XeLatex, the output is right:               \documentclass{scrartcl}     \usepackage{fontspec}     \usepackage{polyglossia}     \setotherlanguage{syriac}     \newcommand{\syr}[1]{\RL{\textsyriac{#1}}}                   \newfontfamily\syriacfont[Script=Syriac]{Serto Batnan}           \begin{document}          \syr{ܟܕ ܛܝܒܘܬܐ ܡܫܡ̇ܗ ܐܦ ܠܢܡܘܣܐ. ܚܠܦ ܠܡ ܗܝ̇ ܛܝܒܘܬܐ ܗܕܐ ܐܬܝܗܒܬܼ}          \end{document}      How can I make lualatex access the relevant otf information to determine between inital, middle and final letters? Thank you!


title: How to see PDF object in TeXworks

text: I am a bit new to TeX, and I have searched google for the answer to this question with no luck: If I make a TeX file in TeXworks like the one shown below, how can I see/save this file in PDF format? I have attempted to save the file as a .pdf, but Adobe Reader does not recognize it and will not open it.               \documentclass {article}     \begin{document}     \title{Investigation 7}     \author{John Smith}     \date{6/20/2014}     \end{document}      BTW, I have downloaded and installed MacTeX and nothing else.


title: Question about the use of cleveref's \Crefrangeformat

text: I am trying to use the package `cleveref` to reference to a range of equations. I'd like to have the following result in the text: > Eqs. (1)-(5) I want to be able to define the format once, using the command `\Crefrangeformat`, so, at the beginning of my document I have the following two lines:               \usepackage{cleveref}     \Crefrangeformat{eq}{#3(#1)#4-#5(#2)#6}      and in the text I type:               Eqs. \Crefrange{eq:eq_first}{eq:eq_last}      I'd expect the results to be: > Eqs. (1)-(5), while instead I obtain: > Eqs. Equations (1)–(5) Now my question is: why does the word "Equations" appear despite the fact that I didn't include it in the format declaration? Is there something subtle I am missing here?


title: Modify font color in a tabular structure

text: I have using a thesis template, but I want to insert a table like what I did in word. But you know, it is not possible to do that at all. So I just want to insert a like-most table. The image shot is my table in word, and what I am doing in LaTeX is:               \newcommand\fontcolor{}          \begin{center}     \setlength{\arrayrulewidth}{2pt}     \arrayrulecolor{white}             % Color of all vertical lines.          \begin{tabular}[H]{|l|l|c|}        % left | center | right for each line.          \arrayrulecolor{white}\hline       % Color of the first(top) horizontal line.     \rowcolor[rgb]{0.30980, 0.50588, 0.73725}     \noalign{\gdef\fontcolor{\color{white}}}                                          % Font color in 1st row.                                        Feature & Format & NO.\\     \arrayrulecolor{white}\hline         % Color of the second horizontal line.     \rowcolor[rgb]{0.82353, 0.87843, 0.92941}     \noalign{\gdef\fontcolor{\color{}}}                         % Fon color in other Row     France & Paris & Seine \\          \arrayrulecolor{white}\hline%\cline{1-1}  % Color of the 3rd line for the 1st grid.     Russia & Moscow & Moskva \\      \arrayrulecolor{white}%\cline{2-3}    % Color of the 4th line and last grid of the 3rd line.          \end{tabular}     \end{center}      I searched and have had a look at several posts. But no one works. Could anyone help? ![In word](http://i.stack.imgur.com/NyKuY.jpg)


title: how to put two pictures together using minipage

text: I wish to put two pictures side by side using mini page, however, it seems the two pictures even not in the same borderline. ![enter image description here](http://i.stack.imgur.com/YHkZj.png) Here is my code, I can not figure out what the problem is.               \documentclass{article}     \usepackage{tikz}     \begin{figure}[t]     \centering     \begin{minipage}[t]{0.48\linewidth}     \centering     \begin{figure}[H]     \tikzset{       my box/.style = {draw, minimum width = 2em, minimum height=1em},     }     \begin{tikzpicture}[node distance=4mm]     \node[my box,align=center](s1){$S_1$};     \node[my box,align=center,right = of s1](s2){$S_2$};     \draw[->] (s1)--(s2);     \node[align=center,right = 2mm of s2](s){...};     \node[my box,align=center,right = 2mm of s](s3){$S_n$};     \end{tikzpicture}      \label{Before POR}     \end{figure}     \end{minipage}     \begin{minipage}[t]{0.48\linewidth}     \begin{figure}[H]     \tikzset{       my box/.style = {draw, minimum width = 2em, minimum height=1em},     }     \begin{tikzpicture}[node distance=4mm]     \node[my box,align=center](s1){$S_1$};     \node[draw,circle,left = of s1](start){};     \draw[->] (start)--(s1);     \node[draw,diamond,right = of s1](end){};     \draw[->] (s1)--(end);     \draw[->] (end) --++ (0em,1.5em) -| (start);     \node[align=center,above = 1.0em of s1](l){k};     \end{tikzpicture}      \label{After POR}     \end{figure}     \end{minipage}     \end{figure}     \end{document}


title: why package titlesec causes tex4ht to give error when using $[]$ in section title?

text: texlive 2014, Linux This MWE fails when using `$[B]$` in section title when the package `titlesec` is loaded               \documentclass[]{article}%     \usepackage{titlesec}     \begin{document}     \section{this is my $[B]$ section}     test     \end{document}      Error is               htlatex foo.tex          (/usr/local/texlive/2014/texmf-dist/tex/generic/tex4ht/html4.4ht)     (/usr/local/texlive/2014/texmf-dist/tex/generic/tex4ht/html4-math.4ht))     (./foo.aux)     ! Extra }, or forgotten $.     <recently read> }          l.4 \section{this is my $[B]$ section}                                               ?       When commenting the `titlesec` package, it compiles OK. Also, If I load the package, but change the title to `$(B)$` instead of `$[B]$` then it compiles OK as well. Only when using `[]` it is not happy. The above MWE compiles OK with pdflatex and latex. Why does it fail in tex4ht?                Version 3.14159265-2.6-1.40.15 (TeX Live 2014)


title: Problem with babel and fontspec

text: I've just had a problem on using babel with lualatex (or xelatex as well) and fontspec in the context of latin and cyrillic alphabets. Here is a minimal example:               \documentclass[11pt]{article}          \usepackage{fontspec}     \setmainfont{Heuristica}%     \usepackage[english,russian]{babel}     \newcommand*\English{\selectlanguage{english}}          \begin{document}          \textup{\Russian Мороз и солнце, день чудесный}          \English\textit{The sea is calm to-night.}     \end{document}       And here's the resulting .pdf: ![enter image description here](http://i.stack.imgur.com/JrZ44.png) As one can see, the font used for the English part of the text is `Computer Modern`, not `Heuristica`, and there's not even italic where it's supposed to be italic. However, if I change the order of the languages (`[russian, english]`, everything is fine: ![enter image description here](http://i.stack.imgur.com/8b68t.png) If I compile with `pdflatex`, modifying accordingly the preamble and using the type 1 versions of the fonts instead of the opentype, everything is fine whatever the order of the languages. I tried with some other fonts, same problem. Is this a bug or do I miss something?


title: animatedgraphics and multiple files per frame

text: I can make an animated pdf using `\animatedgraphics`. But I have 4 plot series, 10 each, that I want them to be animated alongside each other. This means the desired output will have a 10 frame animated graphics, each including 4 plots in a 2x2 grid. From the manual it seems `\animateinline` must do the job, but I can't figure out how. Here is what I've tried:               \begin{frame}     \begin{animateinline}{2}       \multiframe{9}{ia=1+1, ib=2+2}{         \strut         \noindent\null\hfill\includegraphics[width=0.4\textwidth]{a\ib} \hfill         \includegraphics[width=0.4\textwidth]{b\ib} \hfill\null              \noindent\null\hfill\includegraphics[width=0.4\textwidth]{c\ia} \hfill         \includegraphics[width=0.4\textwidth]{d\ia} \hfill\null       }     \end{animateinline}     \end{frame}