title: Suggestion of LaTeX Complete Package?

text: I would like to use LaTeX system to do my assignments as I am starting graduate program in applied mathematics. Please can you suggest me good typesetting package system that would help create documents quicker. I see plenty of options here and would like some advice on which one to pick. I am a newbie.


title: TeX editor for Ubuntu that generates PDFs?

text: > **Possible Duplicate:**   >  LaTeX Editors/IDEs I am taking a computer science course which requires completing assignments in PDF format. Many of the questions will require mathematical notation, so a TeX editor that can create PDFs would seem suitable for this purpose. Are there any TeX editors that can do this on Ubuntu? Are there any which work with Emacs23?


title: Is there a LaTeX editor that supports writing white on black?

text: > **Possible Duplicate:**   >  LaTeX Editors/IDEs Is there a good editor for that supports white writing on a black background? I'm using TeXworks and really like it but it is the only feature I would like but don't have.


title: Typesetting a document using Arabic script

text: I'm using TeXlive (2009-7) on Ubuntu 10.04. I've installed `texlive-lang- arabic` and I can't find out how should I compose the preamble to be able to use it. The babel's documentation I've found in the Internet http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/babel/ is probably out-of-date (September 2009), because Arabic is not mentioned as supported language, and `aptitude show texlive-lang-arabic` gives as the result:               This package includes the following CTAN packages:       arabi -- (La)TeX support for Arabic and Farsi, compliant with Babel.      arabtex -- Macros and fonts for typesetting Arabic.      hyphen-arabic --      hyphen-farsi --      I could't find any documentation of the newly installed package. I'm even not sure if the package allows what I want, i.e. writing using Arabic script directly and not, as it was the case with `arabtex`, in transcription (and Arabic script was appearing only in output). If I've missed some relevant information, I can complete my question. **UPDATE** Thanks for everybody. First of all, I've tried to apply Mustail's solution. I've composed the preamble based on his example (mostly the same, just without Persian). I run for it XeLaTeX. Compilation failed, the `.log` file said that I need `xetex` package. I had `texlive-xetex` installed and `xetex` is mentioned as part of it. Searching further in the Internet I've found that all information about XeLaTeX I can find not match with my LaTeX installation. I've decided to try the solution proposed by Caramdir and I've made a new TeX Live installation following the instruction in the link. I can't compile any file as I don't have LaTeX nor pdfLaTeX installed and I don't want to install it in other way I've installed TeX Live. In the documentation about installation I've found that I should run tlmgr to manage my LaTeX installation, but I can't do it, `command not found`. I have still previous installation of TeX Live on one computer, I can test both (by aptitude and downloaded from tug.org). Maybe I should post another question concerning installation of TeX Live from tug.org, but I try first here, maybe it's not a real problem but just an omission of something obvious from my part. **UPDATE 2** I was trying to compile Mehro's exemple document (using instalation of LaTeX from Ubuntu packages), without succes. This is the terminal's output (starting from first warning):               Package polyglossia Warning: No hyphenation patterns were loaded for `arabic'     (polyglossia)                I will use the patterns loaded for \language=0     (polyglossia)                instead on input line 7.          ) (./mehro.aux)     kpathsea: Running mktextfm      /usr/share/texmf/web2c/mktexnam: Could not map source abbreviation 6 for 600.     /usr/share/texmf/web2c/mktexnam: Need to update /usr/share/texmf-texlive/fonts/map/fontname/special.map?     mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input      This is METAFONT, Version 2.718281 (TeX Live 2009/Debian)               kpathsea: Running mktexmf      ! I can't find file `'.     <*> \mode:=ljfour; mag:=1; nonstopmode; input          Please type another input file name     ! Emergency stop.     <*> \mode:=ljfour; mag:=1; nonstopmode; input          Transcript written on mfput.log.     grep: .log: No such file or directory     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ' failed to make .tfm.     kpathsea: Appending font creation commands to missfont.log.          ! Font \zf@basefont="" not loadable: Metric (TFM) file or installed font not fo     und.     <to be read again>                         \zf@family@fontdeflmr      l.15 ...abic: \textarabic{السلام عليكم}          ? ^C! Interruption.     <argument> ...@family@fontdef\f@family \endcsname                                                        " at \f@size pt \zf@check@...      I had a look in Polyglossia documentation, but I didn't find there nothing what could help me to compile document. It seems I have more general problem with fonts for XeTeX. `Fontspec` documentation opens but should lack of some fonts as I see white gaps in some places. The termial output is quite long and consist almost of 'error' messages. This are just few lines of it:               Error: Missing language pack for 'Adobe-Japan1' mapping      Error: Unknown font tag 'F5.1'      Error (24124): No font in show      Error: Unknown font tag 'F5.1'       **UPDATE 3** I have maneged to install `Linux Liberation O` and `Scheherazade` via Ubuntu Sotware Center (although I still can't understand why I could't do that via Synaptic nor aptitude...), so Meho's and Alan's exemple files are compiled succesfully. Documentation became readable after installation of `poppeler data`. I'm still not able to compile Mustail's exemple file, but having acces to documentation I can try to solve it. Thanks a lot for everybody for your help.


title: What is best LaTeX editor for win7?

text: > **Possible Duplicate:**   >  LaTeX Editors/IDEs What is best LaTeX editor for windows 7? I'm searching for best and perfect editor for Latex based on Windows 7.


title: TeX Editor for Arabic language?

text: > **Possible Duplicate:**   >  LaTeX Editors/IDEs   >  Typesetting a document using Arabic script I'm Arab and use TeX Live 2012. I have a problem with TeXworks: It doesn't support right-to-left (rtl) texts well. Can anyone help me?


title: Tool for writing articles

text: > **Possible Duplicate:**   >  Latex Editors/IDEs I need a tool to write my thesis. It should work with TeX, support multiple languages (want to publish this work in several languages), bibliographic references, create table of contents, and be able to export the result to pdf format. What editor do you use to create your articles?


title: LaTeX IDE with git

text: I currently use Texmaker when working with LaTeX. I often use Git as well with LaTeX. I was wondering if there is an IDE similar to Texmaker which supports Git. Thanks. P.S. I use Ubuntu.


title: Good LaTeX editor for beginner on windows 8?

text: I am interested in learning how to create documents through LaTeX and was wondering what editors might be good for someone starting out. I currently have windows 8 but am thinking about installing Ubuntu as well. I'm not looking to do too much, just to create a clean, good looking resume. Thanks!


title: LaTeX editor with GUI for Ubuntu 12.10

text: > **Possible Duplicate:**   >  LaTeX Editors/IDEs I've installed TeXLive but I found it complicated. Actually I couldn't run it completely. So I need a LaTeX editor with GUI on Ubuntu 12.10. What's your suggestions? _Note:_ I'm new to LaTeX and I'm trying to learn.


title: Other editors with autocompletion shortcuts similar to those in TeXShop

text: There's one particular feature I really like about TeXShop. It's the ability to type something like `\bali` + escand you get the entire `\begin{align}` structure or try typing something like `\bite` + esc. It's definitely very convenient. I know that these things can be done with other editors via keyboard shortcuts, but I don't want to have to memorize a new keyboard shortcut (plus, I already have _many_ that I use). So my question is, is it possible to recreate this with other editors such as vim or TeXStudio? **Update:** I'm running Mac OSX. To help you help me, I've listed some other mac compatible editors that community users may be familiar with:   * texstudio   * vim with latex suite   * texlipse   * sublime


title: TeX editor for Mac with parallel windows?

text: I am looking for a TeX editor for Mac that offer two windows that I can see the DVI or PDF of my code quickly, without having looking for a section that I just change in the code. In Windows, I use TeXnicCenter and it works wonderfully with Yap. I can see what I change in the LaTeX code just by one click. In Mac OS, I am using TeXMaker and it is a pain writing a long file. I change a LaTeX code in Chapter 2, for example, and in the PDF view I have to scroll the mouse from the beginning to Chapter 2 and looking for a place that I've just changed. That is very frustrating.


title: StackExchange-like LaTeX editor - with live preview/rendering and control/formatting syntax not required

text: For some time I've looking for a simple editor, for writing mathematics, like the one I'm using right now on StackExchange. My needs are as follows:   1. live preview/rendering of what you are typing (you shouldn't press a 'compile' button for seeing the result of your markup)   2. no control syntax needed like 'include' and other stuff that goes into categories meta/preamble/formatting. I need something simple, where I can type in a problem without going through a lot of steps. It should be as fast as typing a question here on StackExchange. Got any ideas?


title: Which editors color/highlight between the $...$ with syntax coloring?

text: > **Possible Duplicate:**   >  LaTeX Editors/IDEs I'd like to know which TeX editors have syntax coloring options which color/highlight the math mode text between the $...$. This way it is easy to see when you are missing a $. Currently, I am using TeXShop, but despite some discussion in Nov 2002 on MacOSTex, this feature seems to have never been added. Hence, I'd like a list of editors with this feature. (I am interested in Mac OS, but it may be useful to have a more general list.) This is a difficult thing to search for on Google without just trying each editor and looking at it's syntax coloring. **UPDATE: Per doncherry's comments below, please add this information to the big list ofLaTeX Editors/IDEs.**


title: What is the closest alternative for TeXnicCenter + SumatraPDF on mac?

text: I am getting a mac soon, and I am freaked out the fact that I won't be able to use my very much familiar TeXnicCenter + SumatraPDF magic tools. I googled around and decided to switch to TeXMaker, which is available for both pc and mac. It got some nice features, but frequently freeze when I am editing my dissertation document that involves multiple active files. And the forward-inverse-search on the multiple file situation does not work. Does any one happen to know a good alternative for XnicCenter + SumatraPDF on mac? Thanks very much!


title: Best LaTeX editor for Mac

text: > **Possible Duplicate:**   >  LaTeX Editors/IDEs Hi, I'm looking for a good LaTeX editor for mac. Something like TeXnicCenter would be fine.


title: Visual Latex Editor on Mac

text: I am looking for visual Latex editor (Something like Microsoft Word). Is there any helpful. The reason why I am looking for one is that I am tied to a deadline and I don't have enough time to get adapted with scripting language of Latex. Most of visual editors are not available under Mac OS (Based on this List ), Can anyone help finding one with double interfaces (Scripting and visual).


title: Arabic in latex

text: how to write Arabic words between English script in latex? I tried this code but it writes Arabic text in new line               \documentclass[a4paper,10pt]{article}     %In the preamble section include the arabtex and utf8 packages     \usepackage{arabtex}     \usepackage{utf8}          \begin{document}     %start encoding to unicode     %Note that your layout must support arabic text when compiling     \setcode{utf8}     %To start typing in Arabic use the command arabtext     hello     \begin{arabtext}     السَلامُ عَليكم ورَحمةُ الله وبَركاته       \end{arabtext}     arabic     \end{document}


title: Latex easy downloads

text: Can anyone help me find a suitable latex software that already includes an editor. I tried downloading MikeTex but it tells me to download an editor which I am not familiar with. I am not a hardcore latex user; I just want to use it while doing some notes and other miscellaneous things. What are the easiest downloads for LaTex?


title: avilable XeTeX editors

text: > **Possible Duplicate:**   >  LaTeX Editors/IDEs Can anybody please list Unicode compatible XeTeX editors for Windows which support RTL languages? (I know TeXmaker and Texnic 2alpha ) **Update** : Lastly I found **TeXstudio** , best RTL (and probably LTR) editor available.


title: Easy-to-install LaTeX editor for Windows 8 with forward and reverse search

text: This is not a duplicate of LaTeX Editors/IDEs I have a very specific requirement, which is not covered by that big-list question. I want 3 things from the Latex editor:   * (1) Works on Win 8 without problems   * (2) Easy to install (I want to install it on several machines, so I don't want to spend an hour configuring it)   * (3) Forward and reverse search, either using a built in viewer (preferred) or with an external viewer like Adobe or Sumatra. Which editor would you recommend to satisfy these requirements?


title: How to validate (check) a biblatex .bib file?

text: How can I validate the correctness a `biblatex` .bib file? Where validate means checking for:   * Duplicate keys   * Missing mandatory fields  What tools do you use?


title: How to plot three-dimensional polar functions with pgfplots

text: I would like to plot the following functions with `pgfplots`: ![1](http://i.stack.imgur.com/ow8xf.png)![2](http://i.stack.imgur.com/GYK3p.png) ![3](http://i.stack.imgur.com/4Sq42.png)![4](http://i.stack.imgur.com/z4q3s.png) I know how they are defined:               \sqrt{r}\sin\frac{\theta}{2}, \sqrt{r}\sin\frac{\theta}{2}\sin\theta,      \sqrt{r}\cos\frac{\theta}{2}, \sqrt{r}\cos\frac{\theta}{2}\sin\theta      but nothing else (for example the domain). I'll post soon my solution (which is far from what I'm looking for), but I would like to now your opinion from now. EDIT: here is my attempt to reproduce the first function:               \documentclass{scrbook}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=1.5.1}     \begin{document}          \begin{tikzpicture}         \begin{axis}[          xtick=\empty,          ytick=\empty,          ztick=\empty,          unbounded coords=jump,          ]         \addplot3[          surf,          faceted color=blue,          samples=20,          domain=-1:1, y domain=-5:0]         {sqrt(x^2+y^2)*sin(0.5*atan(y/x))};         \end{axis}     \end{tikzpicture}      and here is the result: ![mytry](http://i.stack.imgur.com/cdGak.png) I know, it's very different from how it should be, but I don't know how to improve it.


title: tikz, tikz circuits, relative coordinates

text: I am trying to draw a dimensioned line, <---- 2 cm ---- > in the x, and y directions on a circuit diagram. Using absolute coordinates, there is no problem. However, the display is faulty using relative coordinates, which cuts off part of the circuit. I haven't been able to correct this problem satisfactorily. I welcome any suggestions. A MWE example is included for each case.               \documentclass{article}       \usepackage{tikz}           \usetikzlibrary{circuits.ee.IEC,positioning}       \begin{document}       % circuit with absolute coordinates     \begin{tikzpicture}[circuit ee IEC,           set resistor graphic = var resistor IEC graphic,>=stealth']       \draw (0,0) -- (0,2)           (0,2) to[resistor={info'={R}}](3,2)           (3,2) -- (3,0)           (3,0) to[battery={info'={$V$}}](0,0);       \draw [<->] (-0.6,0) -- (-0.6,2) node[midway,fill=white]{\small{y cm}};      \draw [<->] (-0.2,2.6) -- (3,2.6) node[midway,fill=white]{\small{x cm}};      \end{tikzpicture}       % circuit with relative coordinates       \begin{tikzpicture}[circuit ee IEC, >=stealth',%           set resistor graphic = var resistor IEC graphic]           \node (A)                        {};           \node (B)  [above = 2cm of A]    {};             \node (C)  [right = 3cm of B]    {};             \node (D)  [right = 3cm of A]    {};         \draw (A.base) -- (B.base)           (B.base) to[resistor={info'={R}}](C.base)           (C.base) -- (D.base)           (D.base) to[battery={info'={$V$}}](A.base);       \draw [<->] (A.west) -- (B.west) node[midway,fill=white]{\small{y cm}}; %!       \draw [<->] (B.north) -- (C.north) node[midway,fill=white]{\small{x cm}}; %!       \end{tikzpicture}     \end{document}


title: BibTeX and TeXworks on Mac OS X Mavericks

text: I've been trying to create a bibliography for my thesis, but I really haven't been able to. I have read almost the entire forum with all your suggestions, but still it doesn't work. I have: `\usepackage{cite}` and I am in a `\documentclass{srcbook}` I have a folder where I have my main `thesis.tex` and within this folder I have one folder `Text`, where I have my single chapters, that I include in my main `thesis.tex` file with `\include`. The file created with BibTeX is together with the main `thesis.tex` file but when I compile with the green arrow in TeXworks I have lots of warnings. i tried to put everything together in a folder, but it still doesn't work. These are some of the warnings:               This is BibTeX, Version 0.99d (TeX Live 2013)     The top-level auxiliary file: Bachelorarbeit.aux     I couldn't open style file abbrev.bst     ---line 2 of file Bachelorarbeit.aux      : \bibstyle{abbrev      :                 }     I'm skipping whatever remains of this command     A level-1 auxiliary file: Text/Theory.aux     A level-1 auxiliary file: Text/BoundaryConditions.aux     A level-1 auxiliary file: Text/CylinderFlow.aux     A level-1 auxiliary file: Text/InitialConditions.aux     A level-1 auxiliary file: Text/GridVariations.aux     A level-1 auxiliary file: Text/NumericalResults.aux     Illegal, another \bibstyle command---line 16 of file Bachelorarbeit.aux      : \bibstyle      :          {plain}     I'm skipping whatever remains of this command     I found no style file---while reading file Bachelorarbeit.aux     (There were 3 error messages)      This warning comes when I compile using BibTeX in the scrolling box in TeXworks. I have tried also different bibliography styles (`plain`, `abbrev`, etc) , but I can't achieve to have my bibliography. Does anyone of you can urgently help me figure this out. I really need to get my thesis, but I really can't figure out why it doesn't work. I really appreciate your help.


title: tabular with "centered" and "flushright" entries

text: I need to typeset a tabular with the following requirement:   * the head of a tabular should be center in the column   * the entries should be **flushright and (more or less) center** in the the column like in the following example               |   -head of a column-   |     --------------------------     |           120          |     |         42001          |      I can do this by making each entry of the same width (say with \phantom) and then centering the column, but as a tabular are fairly large it's a lot of tedious work. I'm aware of the existance of dcolumn package (and answer given here http://tex.stackexchange.com/a/73702/7313), however I don't know how to use it together with `array` package and features it provides (`\newcolumntype` mostly) Is there any wiser way to do this?


title: lstnewenvironment and include

text: I have several environments for listings such as:               \lstnewenvironment{JavaScript}[1][]       {        \renewcommand*{\lstlistingname}{Code (JavaScript)}        \lstset{#1,language=Java}       }       {       }        This works perfect but I would like to be able to include the code instead of inserting like the snippet below:               \lstinputlisting[language=Java, label=myLabel,caption=myCaption]{includes/myFile.js}        Edit: Currently I use:               \begin{JavaScript}[caption=example, label=code:Example, style=numbers]         alert("hello world");       \end{JavaScript}        I would like to have an external file such as example.js and show it in my PDF. I can do that with:               \lstinputlisting[language=Java, label=code:Example,caption=example]{includes/example.js}        but the `\begin{JavaScript}` will show "Code (JavaScript) 1.1: Example" instead of "Code 1.1: Example". I want to be able to use the first but link an external file as done in the second :)


title: biblatex style "bibtex key"

text: I'd like the text that links to the references to be simply the bibtex key. So, with a bibtex entry like               @ARTICLE{Author1:2000:Topic,       author      = {A. Author1 and B. Author2},       title       = {Title},       journal     = {Journal},       year        = {2000},       volume      = {1},       pages       = {3--4}     }      I would like to have an in-text link `Author1:2000:Topic` and not a number style `[1]` or an author-year style `Author1 (2000)`. The description of the **drftcite** package sounded as if it might have provided that functionality. But it does not work with the **biblatex** package:               ! Package biblatex Error: Incompatible package 'drftcite'.      The problem sounds to me rather simple, because nothing tricky has to be calculated. As I have to provide the bibtex key anyway, I could just write it into the text and use the \nocite command to have the respective entry in the reference list. But what I'm then obviously missing is the hyperlink from the citation to the reference list. To provide a small working example that might be modified into an answer:               \documentclass{article}          \begin{filecontents*}{literature.bib}     @ARTICLE{Author1:2000:Topic,       author      = {A. Author1 and B. Author2},       title       = {Title},       journal     = {Journal},       year        = {2000},       volume      = {1},       pages       = {3--4}     }     \end{filecontents*}          \usepackage[backend=bibtex, style=authoryear, natbib=true]{biblatex}     \bibliography{literature}          \usepackage{hyperref}          \newcommand{\drftcite}[1]{\cite{#1}}          \begin{document}     \par This is shown in \drftcite{Author1:2000:Topic}.     \printbibliography     \end{document}      After compilation with `pdflatex` and `bibtex`, I get a pdf with the following text:                   This is shown in Author1 and Author2, 2000.          References     Author1, A. and B. Author2 (2000). “Title”. In: Journal 1, pp. 3–4.      In this text, the first number `2000` is a hyperlink to the cited reference. What I'd like to have, is a `\drftcite` command that instead of `Author1 and Author2, 2000` writes a hyperlink with the bibtex key `Author1:2000:Topic`.


title: Incorrect plot with pgfplots and gnuplot

text: I'm attempting to plot `atanh(x)` although there seems to be a giant straight line linking the top and bottom points. Am I doing something wrong?               \documentclass{standalone}     \usepackage{pgfplots}     \begin{document}     \begin{tikzpicture}       \begin{axis}[no markers,samples=1001]         \addplot gnuplot{atanh(x)};       \end{axis}     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/3fCwZ.png)


title: How to typeset hh:mm:ss time format in math mode?

text: What's the correct way to typeset a daytime in the format hh:mm:ss in math mode? For example in `$2:13,12\,\mathrm{min} = \SI{133,12}{s}$`.


title: Separator in middle of table of contents

text: How can I put some kind of separator, (say horizontal line or `tikz` edge), mid way through the table of contents to break the Table of Contents into distinct blocks for frontmatter, mainmatter and backmatter.


title: How to define optional arguments for custom pgfplots style

text: I see from other question that it is possible to create styles with parameters. Like               \pgfplotsset{       custom style/.style 2 args{         % code that uses #1 and #2       }     }      However, I can't find a way of telling the style to default to some value if those parameters are not defined. Thus, how can I defined optional parameters in a similar way to macros.


title: A new environment in the memoir class

text: I write my thesis with the memoir class and want to include an Acknowledgment in the same style as the standard abstract from the memoir class. How can this be done?


title: How to vertically align text

text: I am trying to vertically center text in a table but when I try to use vspace, the entire row is shifted instead of just one cell. I have copied the latex below that will demonstrate the effects if you use and don't use vspace. I used the rotating command also which may be the reason this is so difficult. Here is what using no vspace looks like, I want Lorem1 and Ipsum1 to be centered vertically. ![Normal Picture](http://i.stack.imgur.com/KkKwZ.png) I tried to use vspace to perform this task, but it doesn't accomplish what I want. I used a negative value in the exampel below. ![Picture using vspace](http://i.stack.imgur.com/U57DL.png)               \documentclass{article}     \usepackage{array}     \usepackage{tabularx}     \usepackage{rotating}     \usepackage{lipsum}     \begin{document}                         \newcolumntype{E}{>{\centering\arraybackslash}m{7cm}}     \newcommand\RotText[1]{\fontsize{9}{9}\selectfont \rotatebox{90}{\parbox{2.6cm}{\centering#1}}}          \centering               \begin{tabular}{|c|E|c|}     \hline     &  & {Lorem Ipsum} \\      \hline     Lorem1 & Ipsum1 & \RotText{Lorem3 Ipsum3} \\     \hline     \end{tabular}          \lipsum          \begin{tabular}{|c|E|c|}     \hline     &  & {Lorem Ipsum} \\      \hline     \vspace{-10pt}{Lorem1} & Ipsum1 & \RotText{Lorem3 Ipsum3} \\     \hline     \end{tabular}          \end{document}


title: How to include a pdf image

text: All I am trying to include a pdf image in my `tex` file, but when I compiled the `tex` file, the console pop up the following error msg: > ! LaTeX Error: Cannot determine size of graphic in time_elapsed.pdf (no > Boundin gBox). This is my code:               \begin{figure}     \centering     \includegraphics[scale=0.5]{time_elapsed.pdf}     \label{fig5}     \end{figure}      So how to solve the problem?


title: positioning a child node between two parents

text: \begin{tikzpicture}[node distance=1.5cm]      \node[state] (A) {A};      \node[state] (C) [right of=A] {C};      \node[state] (B) [below in the middle of=A and C] {B}     \end{tikzpicture}      Something like this:                A C      \/      B       I couldn't figure out how to do it. I believe there is Tree extension but I want to write the graph without using it.


title: Comparing the arguments passed to a macro

text: I want to write a command which makes a norm of a vector, with following syntax: `\xnorm{v}`. I want the norm delimiters to adapt to the size of the expression contained in `\xnorm{}`, BUT I want also an optional argument allowing to set the delimiter size manually. The concept is like this:               \newcommand{\xnorm}[2][adapt]{\LeftDelim{#1}\|\, #2\, \RightDelim{#1}\|}      where `\LeftDelim` expands to `\left` if the first argument is not given by the user and expands e.g. to `\Big` if the user give `\Big` in the first argument. Command `\RightDelim` is analogous. But, it is just an idea. The problems come when implementing it. My try was as below:               \newcommand{\StringA}{adapt}     \newcommand{\StringB}{aaaaa} % This is temporary definition only, because this command is required to be well-defined.     \newcommand{\LeftDelim}[1]     {     \renewcommand{\StringB}{#1}     \ifx\StringA\StringB     \left     \else     #1     \fi     }     \newcommand{\RightDelim}[1]     {     \renewcommand{\StringB}{#1}     \ifx\StringA\StringB     \right     \else     #1     \fi     }     \newcommand{\xnorm}[2][adapt]{\LeftDelim\noexpand#1\|\, #2\, \RightDelim\noexpand#1\|}      Having the above, I use `\xnorm` as follows:               \begin{document}     \begin{dislpmaymath}     \xnorm[\Big]{X} \xnorm{\int_0^T}     \end{displaymath}     \end{document}      Question: The first use of `\xnorm` above works correct, but the second generates the result equivalent to `adapt\|\int_0^T adapt\|`. It seems that the comparison of `\StringA` and `\StringB` failed in my macros. On the other hand, code               \begin{displaymath}     \LeftDelim{adapt}\| {\int_0^T} \RightDelim{adapt}\|     \end{displaymath}      generates the expected result - an integral sign with big norm delimiters. Thus, perhaps the problem is with expanding the argument for `\LeftDelim` and `\Rightdelim`. But I cannot figure what exactly should be changed. I have been manipulating a lot with `\expand` and `\expandafter` commands, with no positive result.


title: LaTeX chapters and bibliography

text: I've just finished writing my honors thesis. I don't want to copy all of the chapters into a single file, since it would be too long. Is it possible to "load" the chapters using one document? Also, can some one give me a crash course on how to do a bibliography?


title: LyX: Problems with title line breaks when writing in Memoir document style

text: I am pretty new both to LyX and to TeX.SX, and have no LaTeX background. I'm writing my master's thesis in LyX and have just changed the document style from `book` to `book (Memoir)`. When I try to export to pdf (using pflatex), I get two error messages (1 and 2 below): 1)               Argument of \reserved@a has an extra }.      2)               Paragraph ended before \reserved@ was complete.      The explanations read: 1)               {\Large{ Masteroppgave i lingvistikk}}}      I've run across a `}' that doesn't seem to match anything.      For example, `\def\a#1{...}' and     `\a}' would produce this error. If you simply proceed now, the `\par'     that I've just inserted will cause me to report a runaway argument     that might be the root of the problem. But if your `}' was spurious,     just type `2' and it will go away.      2)               {\Large{ Masteroppgave i lingvistikk}}}     I suspect you've forgotten a `}', causing me to apply this     control sequence to too much text. How can we recover?     My plan is to forget the whole thing and hope for the best.`      `Masteroppgave i lingvistikk` is the last part of the my title, simply meaning 'Master thesis in linguistics'. I have separated my thesis title into three lines, using justified line breaks. All lines of the title are in `title` style, but they have different font sizes. It seemed to work all right when I used the `book` document class, but after changing to `Memoir` something goes wrong. EDIT: I've tried using ordinary `vspace` instead of justified line breaks, but then the pdf only shows one of the line breaks, the second one is somehow ignored. EDIT: I'll try to make a minimal example (though I have never made one before):               \documentclass[norsk,english,oldfontcommands]{memoir}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \setcounter{secnumdepth}{2}     \setcounter{tocdepth}{2}     \usepackage{babel}     \begin{document}     \selectlanguage{norsk}%          \title{{\huge{<<Første linje av første tittel, andre linje av hovedtittel>>     }}\linebreak{}     \linebreak{}     {\Large{Første linje av undertittel, og andre linje}}\linebreak{}     \linebreak{}     {\Large{Masteroppgave}}}\selectlanguage{english}%     \maketitle          \end{document}


title: Extract x, y coordinate of an arbitrary point on curve in TikZ

text: We have very nice Extract x, y coordinate of an arbitrary point in TikZ               \documentclass{article}     %\url{http://tex.stackexchange.com/q/33703/86}     \usepackage{tikz}     \usetikzlibrary{decorations.markings}          \makeatletter     \newcommand{\gettikzxy}[3]{%       \tikz@scan@one@point\pgfutil@firstofone#1\relax       \edef#2{\the\pgf@x}%       \edef#3{\the\pgf@y}%     }     \makeatother     \begin{document}     \begin{tikzpicture}     \coordinate (A) at (2,1);     \gettikzxy{(A)}{\ax}{\ay}     \fill[red] (\ax,\ay) circle (5pt);          \tikzset{-dot-/.style={decoration={       markings,       mark=at position #1 with {\fill circle (2pt);}},postaction={decorate}}} %%% in this line added a ;          \begin{tikzpicture}      \draw[-dot-=.5] (0,0) to [bend left] (2,4);      \draw[-dot-=.8] (0,0) to [bend right] (2,4);     \end{tikzpicture}          \end{tikzpicture}     \end{document}      Is it possible to extract x, y coordinate of a point located on the curve. These points can be used for doing some other tasks. > New Answer: Thanks to all               \documentclass{article}     \usepackage{tikz}     \makeatletter     \newcommand{\gettikzxy}[3]{%       \tikz@scan@one@point\pgfutil@firstofone#1\relax       \edef#2{\the\pgf@x}%       \edef#3{\the\pgf@y}%     }     \makeatother          %     \begin{document}     %     \begin{tikzpicture}     \draw (0,0) to [bend left=20]  coordinate[pos=0.7] (A)(2,4);     \draw (0,0) to [bend right=20]  coordinate[pos=0.2] (B)(2,4);     \draw[thick,red] (A) -- (B);     \gettikzxy{(A)}{\ax}{\ay}     \gettikzxy{(B)}{\bx}{\by}     \fill[blue] (\ax, \ay) circle (2pt);     \fill[blue] (\bx, \by) circle (2pt);     \draw[thick,green] (A) -- (\bx,\ay) -- (B);     \draw[thick,yellow] (A) -- (\ax,\by) -- (B);     %     \end{tikzpicture}     %     \end{document}        ![enter image description here](http://i.stack.imgur.com/T1QWa.png) * * * Thank you Andrew Stacey.. Now i got a better MWE and using > >     \tikzset{pontoncurve/.style={decoration={ >       markings, >       mark=at position #1 with {\coordinate (B);}},postaction={decorate}}} >   > > i get the coordinate. But i do not know to change **B** in \coordinate ( > **B** ). Should i use \newcommand like \gettikzxy? >   >   >     \newcommand{\gettikzxy}[3]{% >       \tikz@scan@one@point\pgfutil@firstofone#1\relax >       \edef#2{\the\pgf@x}% >       \edef#3{\the\pgf@y}% >     } >                 \documentclass{article}     %\url{http://tex.stackexchange.com/q/33703/86}     \usepackage{tikz}     \usetikzlibrary{decorations.markings}          \makeatletter     \newcommand{\gettikzxy}[3]{%       \tikz@scan@one@point\pgfutil@firstofone#1\relax       \edef#2{\the\pgf@x}%       \edef#3{\the\pgf@y}%     }     \makeatother     \begin{document}     \begin{tikzpicture}     \coordinate (A) at (2,1);     \gettikzxy{(A)}{\ax}{\ay}     %\fill[red] (\ax,\ay) circle (5pt);          \tikzset{-dot-/.style={decoration={       markings,       mark=at position #1 with {\fill circle (2pt);}},postaction={decorate}}} %%% in this line added a ;          \tikzset{pontoncurve/.style={decoration={       markings,       mark=at position #1 with {\coordinate (B);}},postaction={decorate}}}          \begin{tikzpicture}      \draw[pontoncurve=.5] (0,0) to [bend left] (2,4);     \gettikzxy{(B)}{\bx}{\by}     \draw[red] (\bx,\by) -- ++(5,1);           \draw[-dot-=.8] (0,0) to [bend right] (2,4);     \end{tikzpicture}          \end{tikzpicture}     \end{document}


title: Simple dendrogram

text: I am just trying to create a simple dendrogram in beamer to develop an intuition for heirarchical clustering and I have tried several sites and several tree diagrams but cannot get anything to do what I want it to. This is the first time I have used latex/beamer and I am struggling. I want it to start with a standard deck of 52 cards as one group then split into 2 nodes (black and red), then have each of those nodes split into 2 nodes(by suit: so the red side would split to diamonds and hearts and the black side would split into spades and clubs) then have that node split into face cards and numerical cards, and finally have each card be in its own group.I also want to be able to start with all 52 cards in their own group and then group them until I get to a full deck. Is there a way to do this? (And apparently I can't just post a picture of my hand drawn diagram because my reputation isn't high enough so sorry that this isn't more clear) I think the MWE I am wondering is how to get my tree diagram in a beamer frame? Does something about the tikzpicture make it so that it cannot go into a frame? Most examples use documents and not frames.


title: 2013, year of the TeX bugs report. Will pdfTeX, XeTeX, etc. be changed accordingly?

text: Barbara Beeton said (TUGboat vol. 34, pag. 4): > As noted on Don Knuth's TeX web pages, www-cs- > faculty.stanford.edu/~knuth/abcde.html, he "intend[s] to check on purported > bugs again in the years 2013, 2020, 2028, 2037, etc." So 2013 is the year for a debugging session. ## My question After DEK has debugged (i.e. changed) TeX, will there be identical changes in pdfTeX, XeTeX, and the other engines according to the changes in TeX?


title: Using keywords including a dot in the name with the listings package

text: I am using the listings package which works like charm in most cases. I tried to define new languages for my needs with the help of `morekeywords` options in `\lstset`, but entering special keywords having a dot in the name just do not work. E.g.:               \lstset{morekeywords={read.table}}      I know I could set this keyword in two and set _read_ and _table_ to be also keywords, but I do not want every _read_ to be highlighted in the source code. Do you have an idea how to set this keyword or how to escape the dot?


title: Automatically Raising Subscripts

text: I have the following expression               J_{ne}\boldsymbol{\mathsf{J}}_{ne}^{-1}      which is awkward in the sense that as the second (sans-serif) J has a superscript that the subscripted indices are lower than usual. Using the `subdepth` package has the effect of aligning the indices by _lowering_ them even in the absence of a superscript. However, I would prefer to _raise_ the subscripts which have been lowered by the presence of a superscript. Although How to raise a subscript? describes how one can accomplish this it requires knowing the specific amount to raise the relevant subscripts by. Ideally, I am looking for an automatic way of accomplishing this (albeit one that only needs to work for the specific case outlined above as opposed to arbitrary sub/superscripts).


title: How can I achieve relative positioning in tikz

text: > **Possible Duplicate:**   >  Relative positioning of nodes in TikZ I'm creating a tree diagram in tikz and I know that calculating each point would be silly. For that reason, I want to place things in relative position to each other. So, here are two questions:   1. How can I define the second node in this simple example?               \begin{tikzpicture}       \node (a) at (0,0) {};       \node (b) at (2,1) {};       \end{tikzpicture}          2. How can I replace this line command with one that will have relative positioning (`a` and `b` are those created above)?              \draw (a) -- (0,1);     \draw (0,1) -- (b);      Please let me know if something is not clear.


title: Adding external figure using TikZ

text: I want to include figure in my `pdf` using TikZ. I used the following code but the figure disappears:               \documentclass[12pt,vi,twoside]{mitthesis}     \usepackage{lgrind}     \usepackage{hyperref}     \usepackage{url}     \usepackage{tikz}     \pagestyle{plain}          \begin{document}       \pgfdeclareimage{Depth}{images/Depth.jpg}            \begin{figure}[h]       \centering       \resizebox{\linewidth}{!}{%         \begin{tikzpicture}           \pgfuseimage{Depth}         \end{tikzpicture}         }         \caption{MyCap.}         \label{fig:Lab}       \end{figure}     \end{document}


title: citation macro with ConTeXt

text: Consider the following example (background in this question).               \setupbibtex[database={library},sort=author]     \setuppublications[alternative=apa]          %\define[1]\reference{\cite[data][#1]}          \starttext     \cite[data][Bohr:1923tl]     %\reference{Bohr:1923tl}          \section{References}     \placepublications[criterium=all]          \stoptext      after running it through Mk-IV is shows the expected behavior: ![without_define](http://i.stack.imgur.com/PEDZc.png) Simply defining a macros by uncommenting `define` – without even using it – breaks it. (`def` does not help either). ![enter image description here](http://i.stack.imgur.com/lQMor.png) How to define citation macros?


title: What is the basic mechanism for writing something to an aux file?

text: I am interested in the basic mechanism behind writing stuff to the `.aux` file. (Or some other auxiliary file). Let's say I want to write myself a basic package for making notes on my files. (I know packages already exist for doing this. The point of this question is not to work out how to get comments on my paper, it is to learn about an aspect of the basics of TeX/LaTeX.) So I have something like this in my preamble:               \usepackage{xcolor}     \newif\ifcomments     \commentstrue     \newcommand\comment[1]{%       \ifcomments       \textcolor{red}{\textsf{#1}}       \else       \fi     }      This means I have comments I can turn on and off. Now, the next stage is I want a list of comments to appear in an `itemize` at the end of the document, each comment listed along with its page number. To achieve this, it seems like the easiest way would be to write each comment (plus its page number) to an auxiliary file, and then have a command `\writecomments` that prints the contents of that file. (Or something of that sort). How, in simple terms, could I achieve this? **NB** this question is designed to help me learn about the basics of TeX/LaTeX, so solutions that involve packages doing a lot of the work will be frowned upon. **Edit** I've had two very interesting answers offering different ways to achieve what I want in my example. Neither answer, however, really gets to the real answer I wanted, which would be a, accessible introduction to TeX's/LaTeX's "write to auxiliary file" mechanism. What I'd like is a more _basic_ answer that someone newer to TeX/LaTeX could read and understand. I feel the current answers are a little too high level.


title: Tikzpicture: Fill refuses to work with integer node names

text: I want to create a 3D-grid of named nodes using nested for loops and then fill some polygon based on the names. For some reason tikzpicture doesn't fill the polygon, although it draws the path alright. I assume it has something to do with the node names. Here is a minimal 2D-example:               \begin{tikzpicture}          \foreach \i in {0,...,3} {       \foreach \j in {0,...,3} {          \node at (\i, \j) (\i\j) {};     }}          \draw (00) -- (02) -- (12);     \fill (00) -- (02) -- (12);          \end{tikzpicture}      The output is the grid, with two lines but no fill.


title: Problem with header/footer position

text: I wanted a document with a header/footer on the first page and only a slighlty different footer on every other page. If I do it like suggested in different places:               \documentclass[12pt,a4paper,ngerman]{article}          \usepackage[utf8]{inputenc}     \usepackage[ngerman,german]{babel}     \usepackage{lastpage}          \usepackage[left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry}          \title{title}     \author{some name}          \usepackage{fancyhdr}     \pagestyle{fancyplain}     \fancyhf{}               \renewcommand{\headrulewidth}{0pt}     \lfoot{Some Text}     \rfoot{\thepage/\pageref{LastPage}}               \fancypagestyle{seite1}     {        \fancyhf{}        \renewcommand{\headrulewidth}{0.5pt}             \lhead{some\\text}        \chead{~\\even more text}        \rhead{text\\\today}             \rfoot{\thepage/\pageref{LastPage}}             \headheight 40pt        \headsep 10pt     }          \begin{document}     \thispagestyle{seite1}          \section*{Aufgabe 1:}          \newpage     \section*{Aufgabe 1:}     \end{document}      When I do it like that, all text after the first page is moved slightly to the top of the page. I figured out that the header is the problem. When I put the header on every page the text moves slightly down. How can I get rid of the skip?   And after I achieved that how can I let the text start on the second and following pages on the same height as the header on the first page?


title: Expand within \label

text: Is there any way to use a macro within a `\label` tag?               \edef\num{1}     \label{test\num}     \ref{test1}


title: How can i have custom bibliography style

text: My university is following the following format for the bibliography: > Qamar, R., Ayub, Q., Mohyuddin, A., Helgason, A., Mazhar, K., Mansoor, A., > Zerjal, T., Tyler-Smith, C. & Mehdi, S.Q. (2002). Y-chromosomal DNA > variation. _Am. J. Hum. Genet._ 70, 1107-1124. Can someone tell me which bibliography style results in the above mentioned format? I am currently using `nar` format but the problem is that it shows volume number in bold and skips the title of the research paper. My question may seem naive but I am new to LaTeX. I am using WinEdt.               \usepackage[numbers, sorting=none]{natbib}     \bibliographystyle{nar}     \bibliography{references/references-dissertation}


title: How to set a counter to double the value of another counter?

text: The title says it. Lets have to counters:               \newcounter{myCount}     \newcounter{anotherCount}      I set `myCount` to some value for example `10`               \setcounter{myCount}{10}      How do I set counter `anotherCount` to double the value of `myCount`? I have tried things like               \setcounter{anotherCount}{2\value{myCount}}      and               \setcounter{anotherCount}{2\themyCount}      but non of this works.


title: Difference in behaviour between tabular and flushleft environments

text: In response to my earlier question the following working code has been provided:               \documentclass{article}     \usepackage{showframe}          \begin{document}     \hfill     \begin{tabular}{l@{}}      some text\\      some other text     \end{tabular}     \end{document}      My initial attempt was similar, but used the `flushleft` environment instead of `tabular`.               \documentclass{article}     \usepackage{showframe}          \begin{document}     \hfill     \begin{flushleft}      some text\\      some other text     \end{flushleft}     \end{document}      The difference between the two approaches is that in the former one `\hfill` before the environment causes the text to stick to the right side of the page. In the latter one the text is still on the left side. So, I wonder what fundamental difference between `tabular` and `flushleft` (I guess, between their implementations) causes this difference in behaviour.


title: colored equation numbers with breqn package?

text: I was experimenting with the use of `breqn` for a few unwieldy formulas, but wonder how to maintain the equation number coloring I'd been using, based on the following questions: Changing the apperance of equation numbers with amsmath Coloured equation number (without changing colour of reference using hyperref) The following sample shows the color'ing commands that I used based on answer text in the links above (which I don't understand, so am not able to modify)               \documentclass[12pt]{scrreprt}     \usepackage{amsmath}     \usepackage[svgnames]{xcolor}     \usepackage{hyperref}     \hypersetup{colorlinks=true}     \usepackage{breqn}          \makeatletter     \let\mytagform@=\tagform@     \def\tagform@#1{\maketag@@@{\color{Red}(#1)}}     \makeatother          \begin{document}          \begin{dmath}     s = 1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17     +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33     +34 +35 +36 +37 +38 +39 +40     \end{dmath}          \begin{equation}     a     =     b + c     \end{equation}          \end{document}      producing the following ![red color on equation.  default color on dmath](http://i.stack.imgur.com/7mLbT.png) I see in the `breqn` docs that there is a `\eqnumcolor` variable, but am not sure how to use it for this purpose?


title: Importing a Greek letter from the "eulervm" package, but not the whole package

text: I'd like to import a capital delta from the `eulervm` package without importing the whole package. I've tried to follow the instructions given by Alan Munn in Importing a Single Symbol From a Different Font, but I wasn't able to find the "loading-settings" for `eulervm` on my own, and I got stuck. Thank you in advance for any help.


title: Macros and pgfmath within put in picture environment

text: I am trying to put some TikZ pictures into a Beamer slide to enhance readability. The position of the TikZ pictures on the slide will depend on how much text comes before. Since there will be many TikZ pictures, and each will have to be adjusted by the same amount if I change the text at the top of the slide, I tried to make a macro to avoid having to adjust the position of each TikZ picture manually each time I change the text.. Consider the following code:               \documentclass{beamer}     \usepackage{tikz}     \begin{document}     \pgfmathsetmacro{\yoff}{5}         \newcommand{\print}[1]{\pgfmathparse{#1}\pgfmathresult}     \begin{frame}       \frametitle{Testing}       \begin{itemize}       \item Test picture       \begin{picture}(0, 0)          \put(0,\print{8+\yoff}){              \tikz \draw[red,thick] (0,0) ellipse (5pt and 5pt);           }       \end{picture}       \end{itemize}     \end{frame}     \end{document}      Here I get the following error: > ! Missing number, treated as zero. >   >   >       \begingroup >   > > l.17 \end{frame} However, putting the macro within the `\frametitle` of the slide works as expected (without errors):               \documentclass{beamer}     \usepackage{tikz}     \begin{document}     \pgfmathsetmacro{\yoff}{5}     \newcommand{\print}[1]{\pgfmathparse{#1}\pgfmathresult}     \begin{frame}       \frametitle{Testing \print{8+\yoff}}       \begin{itemize}       \item Test picture         \begin{picture}(0, 0)           \put(0,\yoff){               \tikz \draw[red,thick] (0,0) ellipse (5pt and 5pt);            }          \end{picture}       \end{itemize}     \end{frame}     \end{document}


title: Strange problem with pgf/tikz auxlock file when invoking tikzexternalize

text: I'm trying to generate a number of somewhat complicated TikZ based plots using gnuplot's lua/tikz terminal. Things had been working fine last month, but when I needed to update some of these plots today, things did not work. I've constructed a minimal example of a gnuplot script and a TeX file that produces the error. The problem is, when I run `lualatex --shell-escape --interaction=nonstopmode test.in` I get, amidst the copious output, the following error:               ===== 'mode=convert with system call': Invoking 'lualatex --halt-on-error --int     eraction=batchmode --jobname "TikZ_figs/fig1" "\def\tikzexternalrealjob{test}\i     nput{test}"' ========     This is LuaTeX, Version beta-0.50.0-2010010505     ! I can't write on file `test.auxlockalt-on-error --interaction=batchmode --job     name "TikZ_figs/fig1" "\def\tikzexternalrealjob{test}\input{test}"'.     \tikzexternalauxlock@setlock ...@realjob .auxlock                                                        \immediate \write \w@pgf@w...     l.74 \end{tikzpicture}          Please type another output file name     ! Emergency stop.      I'd like to keep the `-interaction=nonstopmode` flag, because I'd like to keep using TeXlipse to compile the document. Removing this flag gives a prompt at               Please type another output file name:      If I enter the name `test.auxlock` (which seems to be the correct name, as the contents of this file contain only a single line: `\def \tikzexternallocked {0}`), then I get the same error (this time, just a warning) but without the emergency stop, thrown because of `-interaction=nonstopmode`. The build then goes on and successfully generates the main document and the externalized graphics. If I leave the prompt blank, on the other hand, the `test.auxlock` file overwrites the main tex file `test.tex`. Quite distressing! It seems that the invocation line for tikzexternalize is being used as the filename for the auxlock file. I don't know why this happens, or how to prevent it. Is this something I'm experiencing because of some buggy installation? (As I said, it used to work and now it doesn't, I may have updated something or corrupted some file.) I'm running texlive on Ubuntu 10.10, with pgf 2.10 from Ubuntu 12.04 (since pgf from Ubuntu 10.10 doesn't have the proper externalize routines) and texlive-luatex 2009-7. Files and directories for minimal working example:               test.plt     test.tex     TikZ_files/      Code for MWE Gnuplot script test.plt:               #!/usr/bin/gnuplot     #test.plt - create some plots to be rendered with TikZ          set term tikz     set output 'fig1.tex'     plot sin(x)/x          set output 'fig2.tex'     plot erf(x)      Main tex file test.tex:               %test.tex - MWE for lualatex auxlock file error     \documentclass[]{report}          \usepackage{tikz}     \usetikzlibrary{external}     \usepackage{gnuplot-lua-tikz}     \tikzset{ external/system call={lualatex \tikzexternalcheckshellescape               --halt-on-error --interaction=batchmode               --jobname "\image" "\texsource"} }     \tikzexternalize[       mode=convert with system call,       prefix=TikZ_figs/     ]          \begin{document}            \begin{figure}         \tikzsetnextfilename{fig1}         \input{fig1.tex}         \caption{\label{fig:fig1} A plot of sinc($x$).}       \end{figure}            \begin{figure}         \tikzsetnextfilename{fig2}         \input{fig2.tex}         \caption{\label{fig:fig2} A plot of erf($x$).}       \end{figure}          \end{document}      If you don't have lua/tikz support compiled into gnuplot, the gnuplot script won't work, sorry about that. The tex files generated by gnuplot (fig1.tex and fig2.tex) are longish, but here goes. fig1.tex:               \begin{tikzpicture}[gnuplot]     %% generated with GNUPLOT 4.6p0 (Lua 5.1; terminal rev. 99, script rev. 100)     %% Tue 22 May 2012 10:34:12 PM EDT     \path (0.000,0.000) rectangle (12.500,8.750);     \gpcolor{color=gp lt color border}     \gpsetlinetype{gp lt border}     \gpsetlinewidth{1.00}     \draw[gp path] (1.196,0.616)--(1.376,0.616);     \draw[gp path] (11.947,0.616)--(11.767,0.616);     \node[gp node right] at (1.012,0.616) {-0.4};     \draw[gp path] (1.196,1.725)--(1.376,1.725);     \draw[gp path] (11.947,1.725)--(11.767,1.725);     \node[gp node right] at (1.012,1.725) {-0.2};     \draw[gp path] (1.196,2.835)--(1.376,2.835);     \draw[gp path] (11.947,2.835)--(11.767,2.835);     \node[gp node right] at (1.012,2.835) { 0};     \draw[gp path] (1.196,3.944)--(1.376,3.944);     \draw[gp path] (11.947,3.944)--(11.767,3.944);     \node[gp node right] at (1.012,3.944) { 0.2};     \draw[gp path] (1.196,5.053)--(1.376,5.053);     \draw[gp path] (11.947,5.053)--(11.767,5.053);     \node[gp node right] at (1.012,5.053) { 0.4};     \draw[gp path] (1.196,6.162)--(1.376,6.162);     \draw[gp path] (11.947,6.162)--(11.767,6.162);     \node[gp node right] at (1.012,6.162) { 0.6};     \draw[gp path] (1.196,7.272)--(1.376,7.272);     \draw[gp path] (11.947,7.272)--(11.767,7.272);     \node[gp node right] at (1.012,7.272) { 0.8};     \draw[gp path] (1.196,8.381)--(1.376,8.381);     \draw[gp path] (11.947,8.381)--(11.767,8.381);     \node[gp node right] at (1.012,8.381) { 1};     \draw[gp path] (1.196,0.616)--(1.196,0.796);     \draw[gp path] (1.196,8.381)--(1.196,8.201);     \node[gp node center] at (1.196,0.308) {-10};     \draw[gp path] (3.884,0.616)--(3.884,0.796);     \draw[gp path] (3.884,8.381)--(3.884,8.201);     \node[gp node center] at (3.884,0.308) {-5};     \draw[gp path] (6.572,0.616)--(6.572,0.796);     \draw[gp path] (6.572,8.381)--(6.572,8.201);     \node[gp node center] at (6.572,0.308) { 0};     \draw[gp path] (9.259,0.616)--(9.259,0.796);     \draw[gp path] (9.259,8.381)--(9.259,8.201);     \node[gp node center] at (9.259,0.308) { 5};     \draw[gp path] (11.947,0.616)--(11.947,0.796);     \draw[gp path] (11.947,8.381)--(11.947,8.201);     \node[gp node center] at (11.947,0.308) { 10};     \draw[gp path] (1.196,8.381)--(1.196,0.616)--(11.947,0.616)--(11.947,8.381)--cycle;     \node[gp node right] at (10.479,8.047) {sin(x)/x};     \gpcolor{color=gp lt color 0}     \gpsetlinetype{gp lt plot 0}     \draw[gp path] (10.663,8.047)--(11.579,8.047);     \draw[gp path] (1.196,2.533)--(1.305,2.628)--(1.413,2.736)--(1.522,2.853)--(1.630,2.974)%       --(1.739,3.094)--(1.848,3.210)--(1.956,3.315)--(2.065,3.405)--(2.173,3.476)--(2.282,3.524)%       --(2.391,3.546)--(2.499,3.539)--(2.608,3.502)--(2.716,3.435)--(2.825,3.339)--(2.934,3.216)%       --(3.042,3.070)--(3.151,2.905)--(3.259,2.725)--(3.368,2.539)--(3.477,2.351)--(3.585,2.171)%       --(3.694,2.004)--(3.802,1.860)--(3.911,1.745)--(4.019,1.667)--(4.128,1.631)--(4.237,1.644)%       --(4.345,1.708)--(4.454,1.827)--(4.562,2.002)--(4.671,2.233)--(4.780,2.517)--(4.888,2.853)%       --(4.997,3.234)--(5.105,3.653)--(5.214,4.104)--(5.323,4.577)--(5.431,5.063)--(5.540,5.551)%       --(5.648,6.030)--(5.757,6.490)--(5.866,6.919)--(5.974,7.308)--(6.083,7.648)--(6.191,7.930)%       --(6.300,8.148)--(6.409,8.297)--(6.517,8.372)--(6.626,8.372)--(6.734,8.297)--(6.843,8.148)%       --(6.952,7.930)--(7.060,7.648)--(7.169,7.308)--(7.277,6.919)--(7.386,6.490)--(7.495,6.030)%       --(7.603,5.551)--(7.712,5.063)--(7.820,4.577)--(7.929,4.104)--(8.038,3.653)--(8.146,3.234)%       --(8.255,2.853)--(8.363,2.517)--(8.472,2.233)--(8.581,2.002)--(8.689,1.827)--(8.798,1.708)%       --(8.906,1.644)--(9.015,1.631)--(9.124,1.667)--(9.232,1.745)--(9.341,1.860)--(9.449,2.004)%       --(9.558,2.171)--(9.666,2.351)--(9.775,2.539)--(9.884,2.725)--(9.992,2.905)--(10.101,3.070)%       --(10.209,3.216)--(10.318,3.339)--(10.427,3.435)--(10.535,3.502)--(10.644,3.539)--(10.752,3.546)%       --(10.861,3.524)--(10.970,3.476)--(11.078,3.405)--(11.187,3.315)--(11.295,3.210)--(11.404,3.094)%       --(11.513,2.974)--(11.621,2.853)--(11.730,2.736)--(11.838,2.628)--(11.947,2.533);     \gpcolor{color=gp lt color border}     \gpsetlinetype{gp lt border}     \draw[gp path] (1.196,8.381)--(1.196,0.616)--(11.947,0.616)--(11.947,8.381)--cycle;     %% coordinates of the plot area     \gpdefrectangularnode{gp plot 1}{\pgfpoint{1.196cm}{0.616cm}}{\pgfpoint{11.947cm}{8.381cm}}     \end{tikzpicture}     %% gnuplot variables      fig2.tex:               \begin{tikzpicture}[gnuplot]     %% generated with GNUPLOT 4.6p0 (Lua 5.1; terminal rev. 99, script rev. 100)     %% Tue 22 May 2012 10:34:12 PM EDT     \path (0.000,0.000) rectangle (12.500,8.750);     \gpcolor{color=gp lt color border}     \gpsetlinetype{gp lt border}     \gpsetlinewidth{1.00}     \draw[gp path] (1.196,0.616)--(1.376,0.616);     \draw[gp path] (11.947,0.616)--(11.767,0.616);     \node[gp node right] at (1.012,0.616) {-1};     \draw[gp path] (1.196,2.557)--(1.376,2.557);     \draw[gp path] (11.947,2.557)--(11.767,2.557);     \node[gp node right] at (1.012,2.557) {-0.5};     \draw[gp path] (1.196,4.499)--(1.376,4.499);     \draw[gp path] (11.947,4.499)--(11.767,4.499);     \node[gp node right] at (1.012,4.499) { 0};     \draw[gp path] (1.196,6.440)--(1.376,6.440);     \draw[gp path] (11.947,6.440)--(11.767,6.440);     \node[gp node right] at (1.012,6.440) { 0.5};     \draw[gp path] (1.196,8.381)--(1.376,8.381);     \draw[gp path] (11.947,8.381)--(11.767,8.381);     \node[gp node right] at (1.012,8.381) { 1};     \draw[gp path] (1.196,0.616)--(1.196,0.796);     \draw[gp path] (1.196,8.381)--(1.196,8.201);     \node[gp node center] at (1.196,0.308) {-10};     \draw[gp path] (3.884,0.616)--(3.884,0.796);     \draw[gp path] (3.884,8.381)--(3.884,8.201);     \node[gp node center] at (3.884,0.308) {-5};     \draw[gp path] (6.572,0.616)--(6.572,0.796);     \draw[gp path] (6.572,8.381)--(6.572,8.201);     \node[gp node center] at (6.572,0.308) { 0};     \draw[gp path] (9.259,0.616)--(9.259,0.796);     \draw[gp path] (9.259,8.381)--(9.259,8.201);     \node[gp node center] at (9.259,0.308) { 5};     \draw[gp path] (11.947,0.616)--(11.947,0.796);     \draw[gp path] (11.947,8.381)--(11.947,8.201);     \node[gp node center] at (11.947,0.308) { 10};     \draw[gp path] (1.196,8.381)--(1.196,0.616)--(11.947,0.616)--(11.947,8.381)--cycle;     \node[gp node right] at (10.479,8.047) {erf(x)};     \gpcolor{color=gp lt color 0}     \gpsetlinetype{gp lt plot 0}     \draw[gp path] (10.663,8.047)--(11.579,8.047);     \draw[gp path] (1.196,0.616)--(1.305,0.616)--(1.413,0.616)--(1.522,0.616)--(1.630,0.616)%       --(1.739,0.616)--(1.848,0.616)--(1.956,0.616)--(2.065,0.616)--(2.173,0.616)--(2.282,0.616)%       --(2.391,0.616)--(2.499,0.616)--(2.608,0.616)--(2.716,0.616)--(2.825,0.616)--(2.934,0.616)%       --(3.042,0.616)--(3.151,0.616)--(3.259,0.616)--(3.368,0.616)--(3.477,0.616)--(3.585,0.616)%       --(3.694,0.616)--(3.802,0.616)--(3.911,0.616)--(4.019,0.616)--(4.128,0.616)--(4.237,0.616)%       --(4.345,0.616)--(4.454,0.616)--(4.562,0.616)--(4.671,0.616)--(4.780,0.616)--(4.888,0.616)%       --(4.997,0.616)--(5.105,0.616)--(5.214,0.617)--(5.323,0.620)--(5.431,0.626)--(5.540,0.642)%       --(5.648,0.675)--(5.757,0.741)--(5.866,0.862)--(5.974,1.067)--(6.083,1.387)--(6.191,1.848)%       --(6.300,2.460)--(6.409,3.210)--(6.517,4.057)--(6.626,4.940)--(6.734,5.787)--(6.843,6.537)%       --(6.952,7.149)--(7.060,7.610)--(7.169,7.930)--(7.277,8.135)--(7.386,8.256)--(7.495,8.322)%       --(7.603,8.355)--(7.712,8.371)--(7.820,8.377)--(7.929,8.380)--(8.038,8.381)--(8.146,8.381)%       --(8.255,8.381)--(8.363,8.381)--(8.472,8.381)--(8.581,8.381)--(8.689,8.381)--(8.798,8.381)%       --(8.906,8.381)--(9.015,8.381)--(9.124,8.381)--(9.232,8.381)--(9.341,8.381)--(9.449,8.381)%       --(9.558,8.381)--(9.666,8.381)--(9.775,8.381)--(9.884,8.381)--(9.992,8.381)--(10.101,8.381)%       --(10.209,8.381)--(10.318,8.381)--(10.427,8.381)--(10.535,8.381)--(10.644,8.381)--(10.752,8.381)%       --(10.861,8.381)--(10.970,8.381)--(11.078,8.381)--(11.187,8.381)--(11.295,8.381)--(11.404,8.381)%       --(11.513,8.381)--(11.621,8.381)--(11.730,8.381)--(11.838,8.381)--(11.947,8.381);     \gpcolor{color=gp lt color border}     \gpsetlinetype{gp lt border}     \draw[gp path] (1.196,8.381)--(1.196,0.616)--(11.947,0.616)--(11.947,8.381)--cycle;     %% coordinates of the plot area     \gpdefrectangularnode{gp plot 1}{\pgfpoint{1.196cm}{0.616cm}}{\pgfpoint{11.947cm}{8.381cm}}     \end{tikzpicture}     %% gnuplot variables


title: Is there a package or a package option for placing figures only after they're referenced?

text: > **Possible Duplicate:**   >  Force floats to be typeset after their occurrence in the source text? I am currently writing my PhD proposal document. I received a comment from my adviser in his review asking me to place the figures only after they are referenced. I am using the `subfig` package. In a previous question (How to use the placement options [t], [h] with figures?) I had asked about specific placements of the figures. Here, I am only looking to place it after they referenced.


title: Forbid LaTeX to place float before mention

text: > **Possible Duplicate:**   >  Force floats to be typeset after their occurrence in the source text? I've already found houndreds of useful answers. But I can't find anything about this one. Is there an option/workaround to force latex to move a float only backwards, not "front-wards". MWE:               \documentclass[a4paper]{scrartcl}      \usepackage{blindtext}          \begin{document}     \section*{ONE}          \Blindtext          \textbf{Now I am refering} to a float~\ref{float}. Doesn't matter if it's a table or figure; and then I continue the text.     \begin{table}     \begin{tabular}{|p{0.8\linewidth}|}         \hline         one \\ two \\ three\\ table shouldn't be too small \\ four \\ two \\ eight \\ real eight \\ \hline     \end{tabular}     \caption{this is one example}     \label{float}     \end{table}           \blindtext          \end{document}      I know I could use the `b` and `h`-placing options. But when my reference is on the end of a page, it's great that latex puts the float in the top-position of the next page. I actually don't care if it places it `hbt` or `p`. but I don't want it to "appear too early".


title: Figures after reference in text

text: I'm using LyX and I'd like to ensure that figures do not appear until after they are referenced in the text, ideally at the top of the following page. Is there any way to do this in LyX or LaTeX? I imagine there's some code I can add to the preamble to allow for this, but I can't seem to find it.


title: Figure and table in one float

text: I was trying to put a figure directly above a table in a TeX document, which I achieved by putting the command `\includegraphics` directly after `\begin{table}`. This, however, leaves no space between the figure and the table and even `\vspace` can't fix that. Is there any other way to position a figure right above a table in the same float and still leaving some space between figure and table? I won't need to reference the figure, so it doesn't need to have a caption or label, it only needs to be in the same float environment with the table. I tried putting everything in a `minipage` but I can only make it work with either two figures or two tables.


title: Datatool error: undefined control sequence \begin

text: I'm using `datatool` to make a mail merge. I have my .csv file. I've defined my `\DTLloaddb{indirizzi}{/home/kde/Dropbox/edile_150/consulenti_arezzo.csv}` and if I use `\DTLdisplaydb{indirizzi}` I have my table printed on the doc. But if I try to make that:               \begin{document}          \DTLforeach*{indirizzi}{%     \nome=nome, \cognome=cognome,%     \num=num, \via=VIA, \civico=civico, \localita=localita \cap=cap,%     \provincia=provincia, \tel=tel     }     \begin{letter}          %\DTLdisplaydb{indirizzi}          {\nome\ \cognome\\     \via, \civico\ \num\\     \via \civico \localita \\     \cap \provincia \tel}      when I make a PDF, I receive this error:               undefined control sequence \begin      The line number is the same of `\begin{letter}` and then other errors               (Missing control sequence \begin)      I can't understand why I receive this error.


title: Indentation in TOC and Lists of Figures/Tables

text: I am just starting to use Latex to write a university report. It does feel like a steep learning curve, and is at times frustrating, but I guess it is because I'm very new to it. I got a question regarding TOC/figures/tables. Basically, my document structure currently gets displayed in TOC as follows:                 Contributions *section*       Summary *section*       List of Figures *section*       List of Tables *section*     1 Introduction *chapter*       1.1 Background *section*       1.2 Other Section *section*     2 Other Chapter *chapter*      However, I'd like it to be displayed like this:               Contributions     Summary     List of Figures     List of Tables     1 Introduction       1.1 Background       1.2 Other Section     2 Other Chapter      Notice, that the first four unnumbered sections are not indented, but keep the indentation of numbered sections. Also, related to this question. I'd like my Lists of Tables/Figures to be NOT indented. For example, instead of this:               List of Figures        1. Caption ------------------------------------------ 4      Have this:               List of Figures     1. Caption --------------------------------------------- 4      Thanks for you help! ** EDIT (added more info) Here is the minimal working example:               \documentclass[11pt]{report}          \usepackage{graphicx}          % Remove "Chapter" from title. No break between # and name.     \makeatletter     \renewcommand{\@makechapterhead}[1]{%     {\setlength{\parindent}{0pt} \raggedright \normalfont     \bfseries\Large\thechapter.\quad\ #1     }}     \makeatother          \begin{document}          \pagenumbering{roman}          \section*{Contributions}     \addcontentsline{toc}{section}{Contributions}          This is a contributions sections.           \section*{Summary}     \addcontentsline{toc}{section}{Summary}          This is a summary section.          \cleardoublepage     \tableofcontents %TOC          \cleardoublepage     \listoffigures     \addcontentsline{toc}{section}{List of Figures} %List of Figures          \pagenumbering{arabic}     \chapter{Introduction}          Welcome to introduction chapter.          \section{Background}          This is a background section.\ref{capt}     \begin{figure}     \caption{Sample Figure.}     \label{capt}  %must be after caption     \end{figure}           \end{document}


title: Intervention to table of contents

text: My institution which I'm responsible to obey their writing rules for my PhD dissertation does not have any LaTeX templates and they insist on their weird MS Word template. They do not accept the text I've written with LaTeX. Even though i have tried to imitate the Word template which they provided and i have achieved desired properties in most of the text a fair amount of issue still remains. One big issue for me is; they want me to put a specific little title on the page number column of table of contents. Do you have any idea how to achieve this? ![](http://i.stack.imgur.com/DqVrr.png)


title: Custom table of contents layout

text: I am trying to achieve the following layout of the table of contents ![enter image description here](http://i.stack.imgur.com/LF60j.png) But I'm a little lost on how to use the `titlesec` package, because I do not know if this package is really for editing the table of contents or just for the titles... I appreciate your help Current advances:               \documentclass[letterpaper,12pt,oneside,onecolumn,final,openany]{report}     \usepackage[left=2.7cm,top=2.5cm,right=2.2cm,nohead,nofoot]{geometry}     \usepackage{titlesec}     \usepackage{tocloft}          \renewcommand{\cftaftertoctitle}{\hrulefill}          \begin{document}     \pagenumbering{roman}     \tableofcontents     \clearpage     \listoffigures     \clearpage     \listoftables     \clearpage     \pagenumbering{arabic}          \chapter{Introduction}     \label{chap:intro}     Lorem           \section{Lorem ipsum}     \label{sec:intro:lorem}          Pellentesque          \subsection{Ipsum}     \label{sec:intro:ipsum}          Etiam       Result: ![Result](http://i.stack.imgur.com/V8cbL.jpg)


title: Balance/flush columns at the end of each chapter in twocolumn layout

text: In a `twocolumn` layout, how can I balance columns at the end of each chapter?   * Package `multicol` is not appreciated because it doesn't offer nice float placement in the columns (floats are not allowed inside `multicols` environment, `[H]` placement is not floating)   * Package `flushend` does the jobs, but only for the last page of the document... why not for the last page of every chapter ?   * FWIW, every chapter of my document starts on a new page   * FWIW, I use the `memoir` class, but I don't think it matters here


title: How to copy a lemma to appendix without changing its number?

text: I have a document with a lemma (using `amsthm`), like so:               \begin{lem} \label{mylemma}       % ...     \end{lem}          The proof of this lemma can be found in the appendix (see section \ref{sec:proof_of_mylemma}).      I now place a copy of the lemma in the appendix, with proof included:               \section{Appendix}          \section{Proof of lemma \ref{mylemma}} \label{sec:proof_of_my_lemma}          \begin{lem}       % ...     \end{lem}          \begin{proof}       % ...     \end{proof}      The problem is that the second copy of my lemma has a new number. How can I renumber this lemma to mimick the number of `mylemma`? Thanks!


title: pgfplots in beamer class with BaKoMa TeX

text: I have a problem concerning plotting of functions in `beamer` class with `pgfplots`. I use BaKoMa TeX. In the article class, all works fine, but switching to beamer, an error occurs as soon as `\usepackage{pgfplots}` is implemented:               ! TeX capacity exceeded, sorry [pool size=427790].     \pgfkeys@non@outer@newif@ ...ame #2true\endcsname     {\noexpand \let \noexpand ...     l.3343 }      The minimum example I work with is the following:               \documentclass{beamer}     \usepackage{pgfplots}          \begin{document}          \begin{tikzpicture}     \begin{axis}[ xlabel=Cost, ylabel=Error]     \addplot[color=red,mark=x]     coordinates {     (2,-2.8559703)     (3,-3.5301677)     (4,-4.3050655)     (5,-5.1413136)     (6,-6.0322865)     (7,-6.9675052)     (8,-7.9377747) };     \end{axis}     \end{tikzpicture}     \end{document}      Where is the problem?


title: Alignment of TikZ object

text: I'm using the classic thesis style by André Miede. As I have to import a lot of Matlab plots, I'm using `matlab2tikz`. In the LaTeX document, I want the TikZ object to act like a normal `jpg`/`png` included by `\includegraphicx`. When I include the TikZ object with               \begin{figure}      \input{thetikzfile.tex} % <thetikzfile> contains \begin{tikz} etc.     \end{figure}      it is not properly aligned to the text, which would be the case if I had inserted a `jpg` with the command `\includegraphicx` ![enter image description here](http://i.stack.imgur.com/4p2Zl.png) I tried to align the TikZ object using `\centering`; however, I still get the same result.


title: How to center listings caption?

text: I would like to know how to center the listings gerenated caption in LaTeX. It always go to the left of the code. The rest of the captions (tables) are OK.               \documentclass[11pt,a4paper,oneside, onecolumn]{IEEEtran}     \usepackage{listings}     \begin{document}     \begin{lstlisting}[caption={Exemplo de uso da função CorelDB.},label={list1}]     fileName = 'CorelGCH.arff';     features = CorelDB(@NormalizedGCH);     dlmwrite(fileName, features, ',');     \end{lstlisting}     \end{document}      I think the problem is with the IEEEtran...


title: Back-linking of pgfkeys

text: Please is there a way to avoid inadvertent cyclic linking of keys in `\pgfkeys`? A minimal example follows. Here I have `keyb<->keya`, which took its toll on TeX's capacity.               \documentclass{article}     \usepackage{pgfkeys}     \pgfkeys{/handlers/.normal code/.code={#1}}     \pgfkeys{%         /my family/.is family,         /my family/.cd,         keya/.code = \def\keyavalue{#1}\pgfkeysalso{keyb=keybvalue2},         keya/.default = {keyadefault},         keyb/.style = {keya={#1}},         %.normal code =\begingroup\loggingall,         keyb = keybvalue1,         %.normal code =\endgroup     }          \begin{document}     xx     \end{document}      The above depicts the source of my original problem. Here is a more obvious but nastier one:               \pgfkeys{%         /my family/.is family,         /my family/.cd,         keya/.code = \pgfkeysalso{keya=keyavalue2},         keya = keyavalue1     }      I believe there is a way to create a native safety mechanism in this case. It will be sufficient to require that no key links back to itself. That is what _xkeyval_ package does. I know that TeX, like some other languages, leaves much to be desired in this case. Have fun with               \def\y{\x}     \def\x{\y}\x      An Oberdiek test for any key-setting macro is that it must be infinitely reentrant. This is purposeful but it does lead to the possibility of bombing out, as indicated here. In the _ltxkeys_ package, a maximum of nesting level or depth of `\ltxkeys@setkeys` is used to guard against infinite reentry. Also, in that package, style keys can't be back-linked.


title: Alignment in \gls using package glossaries in LaTeX?

text: I'm struggling with `glossaries` package for a while... I would like to change the standard alignment in the **link text** of `\gls`. I've used example code from equation variables:               \documentclass{report}          \usepackage[colorlinks]{hyperref}     \usepackage{glossaries}     \makeglossaries          \newcommand{\mathgloss}[2]{         \newglossaryentry{#1}{name={#1},description={#2}}         \gls{#1} = #2     }          \begin{document}          Consider the equation     \begin{equation}     e = m * c^2     \end{equation}     in which\\     \mathgloss{e}{energy}\\     \mathgloss{m}{mass}\\     \mathgloss{c}{speed of light}          \printglossaries          \end{document}      ..and got the results: ![example](http://i.stack.imgur.com/y9DoO.jpg) I would like to change the alignment of the all descriptions to be more like in a table. I tried putting the code in the regular table but it didn't work. I also tried the code below, but the question is the same.               \documentclass{article}     \usepackage[nopostdot,nonumberlist]{glossaries}           \makeglossary            \newglossaryentry{aaaaaa}{name=aaaaaa,description={speed of light},symbol={km/s}}       \newglossaryentry{b}{name=b,description={mass},symbol={kg}}            \renewcommand{\glstextformat}[1]{\small{#1}}       \renewcommand*{\glsentryfmt}{%       \glsgenentryfmt       \ifglsused{\glslabel}{}{\space -\space \glsentrydesc{\glslabel}}{,\space \glsentrysymbol{\glslabel}}%}           \begin{document}      \gls{aaaaaa} \\      \gls{b}           \printglossaries      \end{document}      Do you have any suggestions how to do this ? Or maybe there is a different/better approach to have equation variables description below the equation and at the same time in the glossary ?


title: Using \notblank in etoolbox's \ifboolexpr statment

text: As the title says, I am currently trying to use etoolbox's `\ifboolexpr` statment on `\notblank` conditions but I am having issues with it. The code concerned looks like this :               \ifboolexpr{%       test {\notblank{\Temp@Temp@Text@a}} or %       test {\notblank{\Temp@Temp@Text@b}} or %       test {\notblank{\Temp@Temp@Text@c}}    %     }%     {}{}%      It however generates a bunch of errors. Even trying something like this does not quite seem to work any better :               \ifboolexpr{%       test {\notblank{}} or %       test {\notblank{}} or %       test {\notblank{}}    %     }%     {}{}%      The maximum I am able to use without issues is (given as a MWE. To reproduce my issues, just substitute the `\ifbookexpr` statment) :               \documentclass[10pt,a4paper,titlepage,twoside,onecolumn]{report}     \RequirePackage{etoolbox}          \makeatletter     \def\Temp@Temp@Text@a{testa}     \def\Temp@Temp@Text@b{testb}     \def\Temp@Temp@Text@c{testc}          \makeatother          \begin{document}          \makeatletter          \ifboolexpr{%       test {} or %       test {} or %       test {}    %     }%     {true}{false}%          \makeatother          \end{document}      So my question is :   * What am I doing wrong ?    * How to solve it ?


title: Set x tick label position to bottom of the axis

text: I have finally managed to center my data with `axis x line*=center`, but I haven't found a way to get my `x tick labels` at the bottom of the figure. I have already drawn some major grid lines and now I want my tick labels to be at the bottom of my figure. I have tried to use `at={()}`, but that did not seem to work. ![The tick labels are now on the axis.](http://i.stack.imgur.com/ey6AF.png)               \documentclass{standalone}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}         \pgfplotstableread{data/multicontrol.dat}\datatable              \begin{axis}[ybar=0,         bar width={0.2cm},         xticklabels from table={\datatable}{variable},         xtick=data,         x tick label style={             rotate=60,anchor=east},         yticklabels={X,Very Bad, Bad, Neutral, Good, Very Good},         xmajorgrids,         ymin=-2,         ymax=2,         axis x line*=middle,         axis y line*=left,         enlarge x limits,         y filter/.code={\pgfmathparse{#1-3}}         ]              \addplot table[x=X,y=old] {\datatable};         \addlegendentry{Joystick}         \addplot table[x=X,y=new] {\datatable};         \addlegendentry{Mouse}         \end{axis}     \end{tikzpicture}     \end{document}      Example data:               X   variable                    old         new     1   {Know where I am}           2.375       4     2   {Know what I see}           3.375       4.375     3   {See target directly}       2.428571429 4.5     4   {Know origin}               3.875       4.285714286     5   {Direct Adjustment (inv)}   2.625       3.75     6   {Screen position}           3.25        4.125     7   {Expectation}               2.25        2.375     8   {Get lost (inv)}            2.714285714 3.5     9   {Number dependent (inv)}    2           4


title: Why doesn't latexmk handle errors in the preamble?

text: Today I discovered that if I have an error _in the preamble_ of my tex file then `Latexmk` produce an error only once. Precisely, for example if my file looks like this               \documentclass{article}     \someWrongCommand{foo}     \begin{document}     bar     \end{document}      then of course both `latexmk` and `pdflatex` produce an error in the line `\someWrongCommand{foo}`. But if I then compile the file with `latexmk` for the second time (without changing anything in my file) then `letexmk` just says               Latexmk: All targets (file.pdf) are up-to-date      Whats more, if I have an error in the document ( _not in the preamble_ ) then `latexmk` shows an error all the time (not only in the first compile) as I wish. Is it possible to make `latexmk` behaves like `pdflatex` if there is an error in a preamble? I know I can use `latexmk` with `-g` option but it is not a solution because then it always recompile everything from scratch. I just want `latexmk` to handles errors in the preamble no matter in which compilation.


title: Constructing conference proceedings

text: I am curious about a way to build nicely designed conference proceedings based on separate contributions available in the pdf format and all based on a given LateX template. The difficulty seems to be twofold:   * page numbering over the whole proceedings booklet   * a proper table of contents It looks to me that the pdfpages package would be a good start. Maybe, there is somewhere an existing approach that I am missing.


title: Set axis x line to other origin than 0

text: I am trying to make a ybar axis that averages from the middle, but I cannot find a way to change the origin of the x axis. This is what I want: ![The x line should start at 3](http://i.stack.imgur.com/PnnhI.png) This is what I have: ![The x line is starting at the bottom](http://i.stack.imgur.com/RgUBU.png) As you can see, I am trying to make an average. Can I do it like this or do I have to transform my data?               \documentclass{standalone}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}         \pgfplotstableread{data/singlecontrol.dat}\datatable              \begin{axis}[ybar,         xticklabels from table={\datatable}{variable},         xtick=data,         axis x line=middle,         ymin=1,         ymax=5         ]              \addplot table[x=X,y=averagejs] {\datatable};         \addlegendentry{Joystick}         \addplot table[x=X,y=averagem] {\datatable};         \addlegendentry{Mouse}         \end{axis}     \end{tikzpicture}     \end{document}


title: BCOR not part of paper dimensions

text: First of all: This is my first attempt using to the KOMA-classes. It seems to me that the binding correction is not taken into account in what I am trying right now. If I understand `typearea` right, the following example should have a very tight outer margin.               \documentclass[10pt,twoside]{scrreprt}          \KOMAoptions{BCOR=5cm,paper=18cm:19cm,pagesize}     \areaset{12cm}{16cm}          \usepackage{lipsum}          \recalctypearea          \begin{document}       \lipsum[1-10]     \end{document}      However, this looks exactly the same as when I remove the `BCOR`. How do I get my PDF to be the size of the paper on which the text should be printed (so with BCOR included)? I don't mind that on-screen the inner margins will look out of proportion.


title: Wrong layout: the text crosses the border of paper

text: **UPDATE.** The combination of the `longtable` and `figure` given below results in misplacement of the following text. The text must go to the third page, but it doesn't. Instead of this it crosses the border of the second page.               \documentclass[a4paper]{article}     \usepackage[cm]{fullpage}     \usepackage[dvips]{graphicx}     \usepackage{longtable}     \usepackage{lipsum}          \begin{document}          \lipsum[1-8]          \begin{figure}[ht]       \rule{7cm}{7cm}\\       Picture 1.     \end{figure}          \lipsum[1-2]           \begin{longtable}{|c|}         \hline                N \\         \endfirsthead              \hline               1  \\         \hline               2  \\         \hline               3  \\         \hline               4  \\         \hline               5  \\         \hline               6  \\         \hline               7  \\         \hline               8  \\         \hline               9  \\         \hline               10  \\         \hline       \end{longtable}             \lipsum[1]     \lipsum[1]     \lipsum[1]     \lipsum[1]     \lipsum[1]          \end{document}


title: unicode-math and braces scaling

text: I am trying to create a minimal `lualatex` distribution, and hence try to eliminate as much non OTF fonts as possible (I try to get rid of the `.afm`, `.pfb`, `.map`, etc files to save space). Everything is (almost) working for text, but I am hitting a bummer with maths and the `Kurier` font (and probably others I haven't tested yet). The following MWE works perfectly with `kurier.sty` and the Type 1 fonts:               % !TEX program = lualatex     \documentclass{minimal}     \usepackage[light,math]{kurier}     \begin{document}     \[ e=\lim_{n \to \infty} \left(1+\frac{1}{n}\right)^n \]     \end{document}      ![MWE with kurier and T1 fonts](http://i.stack.imgur.com/DMAMZ.png) but the following with OTF fonts through `unicode-math` doesn't:               % !TEX program = lualatex     \documentclass{minimal}     \usepackage{unicode-math}     \setmathfont{Kurier Light Regular}     \setmathfont[range=\mathit,\mathsfit]{Kurier Light Italic}     \setmathfont[range=\mathbfup,\mathbfsfup]{Kurier Bold}     \setmathfont[range=\mathbfit,\mathbfsfit]{Kurier Bold Italic}     \begin{document}     \[ e=\lim_{n \to \infty} \left(1+\frac{1}{n}\right)^n \]     \end{document}      ![MWE with unicode-math and OTF fonts](http://i.stack.imgur.com/vKWg2.png) The parenthesis are correctly printed in `Kurier Light`, but not scaling with `\left` and `\right`. So here are my 2 questions:   1. Is it possible to get them to scale with OTF fonts, or can this only be done with the Type1? How?   2. What things might I have forgotten to take care of, other than brace scaling?


title: How to create a 'fact box' or pull quote that is tied to the margins of your page?

text: I'd like to accomplish the following:               Ut convallis libero in   -------------------     urna ultrices accumsan. |                   |     Donec sed odio eros.    |  "an important    |     Donec viverra mi quis   |   quote that de-  |     quam pulvinar at        |   serves to be    |     malesuada arcu rhoncus. |   highlighted"    |     Cum sociis natoque      |   ---sourcename   |                             |                   |     penatibus et magnis     |                   |     dis parturient montes,   -------------------     nascetur ridiculus mus. In rutrum accumsan      ultricies. Mauris vitae nisi at sem facilisis      semper ac in est.      So a quote-box, pull-quote or fact box (whatever you'd call it) that highlights a quote within a colored box, sticks to the right- or left-margin of the page and makes the text flow around it. I've searched around and found some topics that were a bit similar ( Block quote with big quotation marks and How do you create pull quotes? for instance), but not exactly. As you find this kind of style often within books, I was wondering if an existing package exist that does this for you.


title: Manually installed TexLive on Fedora 16

text: I manually installed TexLive on Fedora 16 because I need to use `tlmgr` and install some packages. Now I want to get Texmaker, which I installed with `yum`, to work with the manually installed TexLive rather than the automatically installed one. How can I configure it to do that?


title: Who *doesn't* use e-TeX?

text: I was just browsing the new questions and noticed egreg's recent answer, in which he uses a certain extension from e-TeX and cautions the reader that it is not compatible with Knuth TeX. And so I wondered if this was a real restriction in practice, which does not seem to be answered here, though according to Frank Mittelbach's answer, e-TeX is expected to be available to everyone. Certainly it's been around long enough; hearing "but you need e-TeX" sounds to my ear like "but you need a 386 processor or higher". I can imagine that some hidebound publishers might actually have not updated their TeX in 20 years, and so can Donald Knuth, but why make this kind of allowance in general? Is it because the TeXbook, the standard textbook, does not describe it? **Edit:** After barbara beeton's comments and Mike Renfro's answer, I see the need to clarify a bit. My question concerns:   * Notable individuals, or notable groups of individuals, who, for some principled reason, do not have e-TeX support in their installations. In this case, I'm curious how this came about.   * Institutions or distributions of some kind that do not allow the use of e-TeX by their users, whether or not those users have any particular opinion on the matter. Again, I am curious why. Basically, to what extent is e-TeX the default, and what's the deal with the exceptions? The second point actually excludes the AMS, since as barbara says, they actually go to great lengths to maintain consistency despite updating their system (though I would like to know if any _new_ papers or books are produced under conditions that exclude e-TeX). But the ACS is an example that Joseph Wright explained well. And in the first point, I suppose Knuth himself (barbara's answer) is an example, as is the PGF project (percusse's comment), though _why_ the PGF project excludes e-TeX is sort of begging the question, since it seems to be to support users that don't use e-TeX.


title: Remove the header of List of Listings

text: I'm using `classichtesis` and I would like to remove the header of List of Listings. Before posting here, I tried the following strategies:   * The command `\renewcommand\lstlistlistingname{}`, suggested here, makes disappear also the title of the list.   * The command `\markboth{}{}` doesn't work.   * The command `\thispagestyle{empty}` before `\begingroup` or `\lstlistoflistings` doesn't work. Here is the code I'm using: **EDIT:** Added some more information.               \documentclass{scrbook}     \usepackage{classicthesis}     \usepackage{listings}     \usepackage{caption}          \makeatletter     \begingroup     \let\newcounter\@gobble\let\setcounter\@gobbletwo     \globaldefs\@ne \let\c@loldepth\@ne     \newlistof{listings}{lol}{\lstlistlistingname}     \endgroup     \let\l@lstlisting\l@listings     \let\lstlistoflistings\listoflistings     \makeatother     \renewcommand{\cftlistingspresnum}{\scshape\MakeTextLowercase}     \renewcommand{\cftlistingsfont}{\normalfont}     \renewcommand{\cftlistingsleader}{\hspace{1.5em}}     \renewcommand{\cftlistingspresnum}{Algorithm~}     \renewcommand{\cftlistingsafterpnum}{\cftparfillskip}     \setlength{\cftbeforelistingsskip}{\cftbeforesecskip}     \newlength{\listingslabelwidth}     \settowidth{\listingslabelwidth}{\cftlistingspresnum~99}     \addtolength{\listingslabelwidth}{2.5em}     \cftsetindents{listings}{0em}{\listingslabelwidth}          \renewcommand\lstlistingname{Algorithm}     \renewcommand\lstlistlistingname{List of Algorithms}     \def\lstlistingautorefname{Algorithm}          \begin{document}          \begingroup     \let\clearpage\relax     \let\cleardoublepage\relax     \let\cleardoublepage\relax          \phantomsection     \addcontentsline{toc}{chapter}{List of Figures}     \listoffigures          \vspace*{5ex}          \phantomsection     \addcontentsline{toc}{chapter}{List of Tables}     \listoftables          \vspace*{5ex}          \phantomsection     \addcontentsline{toc}{chapter}{List of Listings}     \lstlistoflistings          \endgroup          \clearpage          \begin{lstlisting}[caption={First listing}]     for i = 1,...,n:         print 'Hello'     \end{lstlisting}          \begin{lstlisting}[caption={Second listing}]     for i = 1,...,n:         print 'Goodbye'     \end{lstlisting}          \end{document}      By compiling it, you can find the header of List of Listings in the second page. In my thesis is actually in the same page of List of Listings.


title: Changing default \citet font in biblatex

text: I'm using `biblatex` to manage my citation in a `natbib` style :               \usepackage[style=alphabetic,maxnames=6,natbib=true]{biblatex}      However when I use the `\citet` command, the author's name is in a `\textsc` font, I would like to change this behavior so that the font used is the default one, but I could not find how to do this in `biblatex`'s documentation.