title: Vim shortcut to pdflatex a specific tex file

text: I'm working on a document that is structured as follows:               /Document/         |         |--Chapter1/chap1.tex         |         |--Chapter2/chap2.tex         |         |--Chapter3/chap3.tex         |         \--main.tex      where the file `main.tex` includes the 3 chapter tex files shown. Using Vim, I edit each of the files `chap1.tex`, `chap2.tex`, and `chap3.tex` often. I want to configure a shortcut so that within the Vim editor, I can enter something like `:buildme` which will cause the following terminal command will be executed: `$ cd .. ; pdflatex 'main.tex'`


title: List bullet does not work for the second item

text: I tried using a `list` in LaTeX (`pdflatex`, specifically) and I found that the second item does not have a bullet point rendered while the first and third (and remaining ones) does. Why is it? Please compile the code below to see what I mean.               \documentclass{article}          \begin{document}     \begin{list}{$\bullet$}     \item A     \item B     \item C     \end{list}     \end{document}


title: Drawing a circle around nodes in flow chart using Beamer

text: I am trying to draw a circle around a bunch of nodes in a flow chart that I've created using `beamer` and I can't figure out how to do it. Ideally, I'd like the circle to encompass most (but not all of the nodes). How do I do this? Here is my code:               \begin{frame}     \frametitle{The Regime Complex for Climate Change\\(Keohane and Victor (2011) )}               \tikzstyle{type1} = [rectangle, rounded corners, minimum width=3cm, minimum height=0.1cm,text centered, draw=black, fill=blue!10, text width=2cm]          \tikzstyle{type2} = [rectangle, rounded corners, minimum width=3cm, minimum height=0.1cm, text centered, draw=black, fill=blue!10, text width=5cm]          \tikzstyle{info} = [rectangle, rounded corners, minimum width=2.5cm, minimum height=0.1cm, text centered, draw=black,      fill=blue!30, text width=2.5cm]     \tikzstyle{org} = [rectangle, rounded corners, minimum width=2cm, minimum height=0.1cm, text centered, draw=black,      fill=blue!30, text width=3cm]     \tikzstyle{decision} = [square, minimum width=1cm, minimum height=0.1cm, text centered,      draw=black, fill=green!30, text width=4cm]          \tikzstyle{arrow} = [thick,->,>=stealth]          \begin{tikzpicture}[node distance=1.2cm]          \node (un) [type1, xshift=-3cm] {UN Legal Regimes};     \node (expert) [type1, right of=un, xshift=4cm]{Expert Assessments};          \node (montreal)[type1, below of=un, xshift=-1cm]{Montreal Protocol};     \node (bilateral)[type1, right of=montreal, xshift=3cm]{Bilateral Initiatives};     \node (clubs)[type1, right of=bilateral, xshift=2cm]{Clubs};          \node(subnat)[type1, below of=montreal, xshift=1cm]{Subnational Action};     \node(MDA)[type1, right of=subnat, xshift=4cm]{MDA};          \node(geo)[type1, below of=subnat, xshift=-1cm]{Geoengineering Governance};     \node(nuc)[type1, right of=geo, xshift=2cm]{Nuclear Technology};     \node(fin)[type1, right of=nuc, xshift=2cm]{Financial Market Rules};          \node(intel)[type2, below of=geo, xshift=1cm]{Intel Property and Investment Rules};     \node(trade)[type2, right of=intel, xshift=5cm]{International Trade Regime};               \end{tikzpicture}          \end{frame}


title: Dependency trees with crossings and dotted lines

text: For a presentation I need to refer to a paper which uses a certain kind of dependency tree: ![dependency tree with crossings and baseline](http://i.stack.imgur.com/laAYS.png) Since I wanted to build some examples on my own, I'd be glad to rebuild this. I've tried several linguistic tree packages (qtree, xytree, tkiz, parsetree, etc.) but I haven't figured out how to rebuild this. It would be nice if someone could rebuild this (or a simpler example). Note: Important for later interpretation are the dotted lines, the baseline and the ability to "cross" the structure (like $X_{2}^{2}$ does).


title: snapshot, bundledoc and epstopdf

text: I am using `epstopdf` package to convert on the fly `eps` images to `pdf`. However, the `snapshot` package and `bundledoc` do not keep track of the original `eps` file but only of the included `pdf`. Is there any way to improve this behavior?


title: How to create a List/Table of Summaries (with a summary per chapter)?

text: I would like to create a category at the beginning of every chapter, right after `\chapter{..}` summarizing it for the purpose of a list, it would be similar to Figure or Table (I would call it "Summary" or "Abstract") so I can build a "List/Table of Summaries" or abstracts. How can I do this? using \documentclass{book} at the end have \listoffigures \listoftables Would like to produce an equivalent list of abstracts. I added                \floatstyle{boxed}      \newfloat{summary}{tbp}{ext}                 \restylefloat*{summary}              \floatname{summary}{Summary for Chapter }       but the problem is making the list.


title: How to insert one latex document into another.

text: This is probably online but I am not sure how to word the search. I have a long `latex` document, and it is getting messy editing it, is there a way to split the chapters into separate `latex` documents and insert like a reference to them in the main document such that when the main document is build they will show in the pdf. Thanks.


title: Connecting nodes with brace in TikZ

text: How would be possible to put a brace instead of a "line" connecting nodes and add some text above it with TikZ? ![enter image description here](http://i.stack.imgur.com/LINeU.png)


title: Create Flash animations with LaTeX

text: Recently, I had to prepare a few beamer presentations, and during this process I realized that the "ideal" presentation would be much more interactive and live than one can possibly do with LaTeX. It is true that there are ways to embed a video or SWF file within a pdfLaTeX source, but this is just a partial solution: the animation has to be produced outside LaTeX and visually is often well separated from the rest of the presentation. Alternatively, one can use package such as `animate` (or the `\animate` beamer command) to create animation in PDF, but this is really a hack and produces results that cannot be compared with a real Flash animation. Is there a way to create a Flash animation out of a LaTeX file? Ideally, I would like to embed Flash objects and actionscripts within the LaTeX file, and to be able to have at the end of the process a Flash presentation. P.S. I would see this as the natural evolution of TeX -> pdfTeX -> flashTeX, but I might be dreaming.


title: Angles in three dimensional space

text: I'd like to make the markings of the angles of a triangle, in three dimensional space, automatically, using the `\tdplotdrawpolytopearc`. I tried something like:               \documentclass{article}          \usepackage{tikz}          \usepackage{tikz-3dplot}               \begin{document}          \tdplotsetmaincoords{80}{110}          \begin{tikzpicture}[tdplot_main_coords,>=stealth']          \coordinate (A) at (3,1,1);          \coordinate (B) at (8,7,1);          \coordinate (C) at (3,6,3);          \draw[-] (A) -- (B) -- (C) -- cycle;          \tdplotdefinepoints(C)(A)(B);     \tdplotdrawpolytopearc[thick]{0.6}{}{$\alpha$}          \tdplotdefinepoints(A)(B)(C);     \tdplotdrawpolytopearc[thick]{0.6}{}{$\beta$}          \tdplotdefinepoints(B)(C)(A);     \tdplotdrawpolytopearc[thick]{0.6}{}{$\gamma$}          \end{tikzpicture}          \end{document}      But the command `\tdplotdefinepoints(B)(A)(C);` does not work. It works only if the vertices are described explicitly, as in `\tdplotdefinepoints(8,7,1)(3,6,3)(3,1,1);` In the plane, I don't have ploblem. See this solutions. Could someone please offer some help? * * * It will help a lot. But now I have another problem. In my case a point is calculated from others. For example, we can take the midpoint, `$M$, $0.5*(B) + 0.5*(C)$` on the side BC. How to mark the angle between the sides AC and AM? Something like               \ptdedef\temp{\noexpand\tdplotdefinepoints(\ptC)(\ptB)($0.5*(A)+0.5*(B)$);} \temp      did not work.


title: Partial twocolumn itemize

text: Sometimes itemize/enumerate environments have some items who are quite short and some items who are longer. I wish to format such environments into a compact way. For example turning:               * A     * B     * C     * DDDDDDDDDDDDD     * EEEEEEEEE      into:               * A     * B     * C     * DDDDDDDDDDDDD     * EEEEEEEEE      Is there an elegant way to do this?


title: How to create a random math problem in LaTeX?

text: I want to create a math problem-solution sheet. The coefficients `a`, `b`, `c` must be assigned on the fly at random so the generated pdf will show a numeric quadratic equation rather than a symbolic quadratic equation. Note `a` must not be zero.               \documentclass{article}     \begin{document}     \section{Problem}     Let \(x_1\) and \(x_2\) be the roots of \(a x^2 +bx +c=0\). Find  \(x_1x_2\).          \section{Solution}     \[     x_1x_2=\frac{c}{a}     \]     \end{document}      Please kindly make the solution get automatically simplified. For example: `\frac{c}{a}=3` when `a=2` and `c=6`. * * * Actually the real case is more complex than this one. Not only the equations must be generated at random, but also the associated graphic plots that I write in PSTricks. * * * I chose Paulo's answer because using Maxima as the computation engine is very very great idea. Other answers are also good and creative, especially Altermundus'.


title: How to create a table of random characters in XeTeX

text: I want to create a table of 1000 characters picked randomly from the unicode block "unified CJK ideograms" (4E00-9FFF). Each cell should contain exactly one huge character, no character should appear twice. It would be great too if one could specify a seed, so that one can create the same set of characters again. Is there a way to create such a file automatically using (Xe)TeX? I am not very skilled in doing TeXnical programming, so any help is appreciated.


title: formatting real numbers using LaTeX3

text: I want to format real numbers, which are the result of lengthy calculations using the `l3fp` package, for output as values to keys in PDF objects. The formatted numbers should have at most 9 figures after the "`.`", trailing zeros trimmed and no exponential part. The combination of `\fp_round_places:Nn` and `\fp_to_tl:N` does not give the wanted result, because `\fp_to_tl:N` sometimes leaves behind a real number with exponential part, if it is more compact. Thus, I wrote a macro, `\my_format_num:n|x{<real number>}`, on my own. It works quite well, but I am unable to save the result into a token list variable. In that case I get the TeX error:               ! Argument of \my_format_num:w has an extra }.      The code below is what I have done so far. How can I improve it, such that saving the result in a tl variable becomes possible?               \documentclass{article}     \usepackage{expl3}          \ExplSyntaxOn     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %     % \my_format_num:n|x{<real number without any exponent part>}     %     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %     % macro to format real numbers     %     % * to show at most 9 places after `.'     % * trailing zeros removed     %     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \cs_new:Nn\my_format_num:n{       \exp_after:wN\my_format_num:w#1000000000\q_stop     }     \cs_generate_variant:Nn\my_format_num:n{x}          \cs_new:Npn\my_format_num:w#1.#2\q_stop{       #1.\exp_after:wN\my_trim_places:w#2\q_stop     }     \cs_new:Npn\my_trim_places:w#1#2#3#4#5#6#7#8#9\q_stop{       \my_trim_zeros:x{\exp_after:wN\tl_head:w#9\q_stop#8#7#6#5#4#3#2#1}     }     \cs_new:Nn\my_trim_zeros:n{       \exp_after:wN\my_trim_zeros:w#1\q_stop     }     \cs_generate_variant:Nn\my_trim_zeros:n{x}     \cs_new:Npn\my_trim_zeros:w#1#2\q_stop{       \str_if_eq:nnTF{#1}{0}{         \int_compare:nNnTF{\tl_length:n{#2}}>{\c_one}{           \exp_after:wN\my_trim_zeros:w#2\q_stop         }{#2}       }{         \tl_reverse:n{#2}#1       }     }     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \begin{document}       \fp_set:Nn\my_vara_fp{-1.234e-8}       \fp_set:Nn\my_varb_fp{123456789.987654321e-9}       \fp_set:Nn\my_varc_fp{1.234}            % result as expected: -0.000000012       $\fp_use:N\my_vara_fp\rightarrow\my_format_num:x{\fp_use:N\my_vara_fp}$\par            % result as expected: 0.123456789       $\fp_use:N\my_varb_fp\rightarrow\my_format_num:x{\fp_use:N\my_varb_fp}$\par            % result as expected: 1.234       $\fp_use:N\my_varc_fp\rightarrow\my_format_num:x{\fp_use:N\my_varc_fp}$\par          %  cannot save result in tl var     %  \tl_set:Nx\my_vara_tl{\my_format_num:x{\fp_use:N\my_vara_fp}}     \end{document}     \ExplSyntaxOff


title: itemize, removing natural indent

text: When you `itemize` items you usually have the entire list indented. This is expected when you have a title or description of what you are listing. I want to `itemize` but not have the natural indent. I need to move all of the bullet points over towards the the leftmost edge of the margin like all other text you would enter. How can I do this?


title: Package Won't Install

text: I'm using TexMakerX as part of Protext on Windows 7. I am trying to use the `resume` package, which I haven't used before so I downloaded an example TeX file. As I expected when I tried to use it, I asked me if I wanted to install the `resume` package. ![Screenshot](http://i.stack.imgur.com/pLVYc.gif) I clicked the install button, but nothing seemed to happen. I checked that the path was correct, and have successfully installed packages before. What am I doing wrong?


title: Why have my itemize environments been corrupted and how can I fix the issue?

text: I am using the `ut-thesis` template, and this is what stock bulleted lists look like:               \usepackage{enumitem}           %...          \begin{itemize}     \item{I like margin}     \item{I like margarine}     \end{itemize}          \begin{itemize}[leftmargin=0pt]     \item{I don't like}     \item{I don't like margarine}     \end{itemize}      ![enter image description here](http://i.stack.imgur.com/L7GN1.png) But now in my document, for some reason, the lists have started to look like this: ![enter image description here](http://i.stack.imgur.com/M2Xmb.png) with massive space between them. I am using the \usepackage{enumitem} declaration Why are my lists so spacey now? Using Bakoma Tex 9.


title: Enhancing a table

text: I am writing to get your suggestion about how I could enhance a table. Please do not suggest changing color or fonts. Code:               \begin{table}     \caption{Temporal Outliers that are detected with respect to the MetoSwiss Observations in $2007-09-30$}     \label{tod30f}     \centering                     \footnotesize\setlength{\tabcolsep}{2.5pt}         \begin{tabular}{|c|c|c|c|c|c|}             \hline             Time - Node ID & 25 & 28 & 29 & 31 & 32 \\ \hline     0:00 & Normal & Normal & Normal & Normal & Normal \\ \hline     1:00 & Normal & Normal & Normal & Normal & Normal \\ \hline     2:00 & Normal & Normal & Normal & Normal & Normal \\ \hline     3:00 & Normal & Normal & Normal & Normal & Normal \\ \hline     4:00 & Normal & Normal & Normal & Normal & Normal \\ \hline     5:00 & Normal & Normal & Normal & Normal & Normal \\ \hline     6:00 & Normal & Normal & Normal & Normal & Normal \\ \hline     7:00 & Normal & Normal & Normal & Normal & Normal \\ \hline     8:00 & Normal & Normal & Normal & Normal & Normal \\ \hline     9:00 & Normal & Normal & Normal & Normal & Normal \\ \hline     10:00 & Normal & Normal & Normal & Normal & Normal \\ \hline     11:00 & Outlier & Normal & Outlier & Normal & Normal \\ \hline     12:00 & Outlier & Outlier & Outlier & Outlier & Outlier \\ \hline     13:00 & Outlier & Normal & Normal & Normal & Outlier \\ \hline     14:00 & Outlier & Normal & Normal & Outlier & Outlier \\ \hline     15:00 & Outlier & Outlier & Normal & Outlier & Normal \\ \hline     16:00 & Normal & Outlier & Normal & Normal & Normal \\ \hline     17:00 & Normal & Outlier & Outlier & Outlier & Normal \\ \hline     18:00 & Outlier & Normal & Outlier & Outlier & Normal \\ \hline     19:00 & Outlier & Outlier & Outlier & Outlier & Outlier \\ \hline     20:00 & Outlier & Outlier & Outlier & Outlier & Outlier \\ \hline     21:00 & Normal & Normal & Normal & Normal & Normal \\ \hline     22:00 & Normal & Normal & Normal & Outlier & Normal \\ \hline         \end{tabular}     \end{table}      Result of the code: ![enter image description here](http://i.stack.imgur.com/Sykrr.png)


title: Beamer with Tikzpicture. How to change scale of picture and distance between lines of nodes?

text: I am a beginner in LaTeX, trying to convert a presentation in `beamer`. I am experiencing difficulties with the `scale` option that does not seem to work, and I cound not find a way to reduce slightly the space between text lines in the nodes of the tikz picture               \documentclass[xcolor=dvipsnames, smaller]{beamer}     \usepackage[utf8]{inputenc}     \usepackage{times}     \usepackage{tikz}     \usetikzlibrary{chains, positioning}     \setbeamertemplate{navigation symbols}{}      \mode<presentation> {      \usetheme{Warsaw}     % \usetheme{default}     }          \title{\textcolor{white}{Test slide}} %Normal title     \author{}     \date{}     \begin{document}     \section{First section}     \section{Second section}     \section{Third section}     \section{Fourth section}     \section{Sixth section}          \begin{frame}[fragile]{Extremely long title for this particular slide, further elongated to serve as example}     \alert {Include all value -added and non value-added steps (Process steps, inspection/test, rework, scrap, delay\dots)}\\     \textbf{Manufacturing}     \begin{tikzpicture}[scale=0.8, %does not seem to work     font=\footnotesize,          start chain,          node distance=2mm,          mynode/.style={draw, fill= cyan!20, text width=1.5cm, text badly centered, inner sep=0.5 ex, rounded corners= 0.2 ex,join=by #1},          mynode/.default=->     ]     \node [mynode,on chain] {Move\\ Move \\ material\\from \\ storage};     \node [mynode,on chain] {Wait\\ Store \\ in \\staging\\ area};     \node [mynode,on chain] {Set-up\\ Set up \\ \& \\ adjust die, reeler\dots};     \node [mynode,on chain] {Stamp \\four-out die,\\ six\\ stations\\ in die\\};     \node [mynode,on chain] {Move\\ Move\\ to\\ inspection,\\ wait};     \node [mynode,on chain] {Inventory\\ Return to stores to wait further processing};     \end{tikzpicture}     \textbf{\textcolor{green}{Transactional (Non-Manufacturing)}}     \begin{tikzpicture}[scale=1, font=\footnotesize,          start chain,          node distance=2mm,          mynode/.style={draw, fill= cyan!20, text width=2.5cm, text badly centered, inner sep=0.5 ex, rounded corners= 0.2 ex,join=by #1},          mynode/.default=->     ]     \node [mynode,on chain] {Answer phone Greet customer  Determine parts needed\\ Identify need date\\ Identify price  Identify shipping address \& method};     \node [mynode,on chain] {Internal information\\ Get internal P/N\\ Determine terms\\ Identify\\ leadtime \\Complete\\ order\\ worksheet};     \node [mynode,on chain] {Order entry\\Input\\ information\\Print order confirmation\\ Determinin ship date \\ review order};     \node [mynode,on chain] {File / Queue \\ File for\\ end-of-day\\ processing\\ queue for\\batch download 10:00 est. next work day};     \end{tikzpicture}     \end{frame}     \end{document}


title: How can I get the enumerate environment to count by n?

text: As part of a tenure portfolio packet, I need to create a list with numbering of the form               A.5.0 Section          A.5.50 Subsection          A.5.60 Subsection          A.5.70 Subsection      How can I get the `enumerate` environment to automatically (i.e., without using `\setcounter` each time) count by 10 or, in general, by n? Edit: The solution should also be compatible with subsubsections. For example:               A.5.0 Section          A.5.50 Subsection              A.5.50.1 Subsubsection              A.5.50.2 Subsubsection          A.5.60 Subsection          A.5.70 Subsection


title: Problem with command \captionsetup from package caption

text: The following MWE:               \documentclass[11pt]{memoir}          \usepackage{caption}          \captionsetup[table]{              listformat=empty,              tablename=Table,              justification=justified,              labelsep=quad,              position=above,              skip=\onelineskip,              width=\linewidth,              labelfont={small},              font={small}              }          \begin{document}              \begin{table}             \caption{A table.}         \end{table}          \end{document}      generates the error message `! Package caption Error: Can be used only in preamble`. If I comment the `\captionsetup` command, there is no such error message. I know the class `memoir` provides its own tools for captions, but I'd rather use the package `caption` for them. Anyone could possibly shed some light on this issue? EDIT: As soon as I comment the key `tablename`, the problem disappears. But even though it works, I wouldn't call it precisely a satisfactory solution.


title: Keyword-Highlighting of C++ using Listing

text: I have a little problem in my settings. I cannot locate the error and need some additional eyes to tell me where I should look. I use listing to show my c++ code but when I try to add additional keywords they are not highlighted. Here's the setting:               \definecolor{dkgreen}{rgb}{0,0.6,0}     \definecolor{dred}{rgb}{0.545,0,0}     \definecolor{dblue}{rgb}{0,0,0.545}     \definecolor{lgrey}{rgb}{0.9,0.9,0.9}     \definecolor{gray}{rgb}{0.4,0.4,0.4}     \definecolor{darkblue}{rgb}{0.0,0.0,0.6}     \lstset{            backgroundcolor=\color{lgrey},             basicstyle=\footnotesize \ttfamily \color{black} \bfseries,              breakatwhitespace=false,                  breaklines=true,                          captionpos=b,                              commentstyle=\color{dkgreen},              deletekeywords={...},                     escapeinside={\%*}{*)},                             frame=single,                             keywordstyle=\color{purple},             morekeywords={BRIEFDescriptorConfig,string,TiXmlNode,DetectorDescriptorConfigContainer,istringstream,cerr,exit},            identifierstyle=\color{black},           stringstyle=\color{blue},                 language=C++,                           numbers=right,                            numbersep=5pt,                             numberstyle=\tiny\color{black},            rulecolor=\color{black},                   showspaces=false,                          showstringspaces=false,                   showtabs=false,                           stepnumber=1,                              tabsize=5,                                title=\lstname,                          }      So nothing special, I guess. Here is an minimal-example using listing:               \begin{lstlisting}[language={C++},caption={Caption}]     void XMLDetDecConfigReader::handleDescriptors(DetectorDescriptorConfigContainer* configContainer, TiXmlNode* descriptorsNode);     \end{lstlisting}      I don't want to use any other packages but to solve this highlighting-problem. Thank you for your help.


title: \pscharpath within align environment

text: Consider the following example:               % pdflatex -shell-escape filename.tex          \documentclass{article}          \usepackage{mathtools}     \usepackage{auto-pst-pdf,pst-text}          \newcommand*\R{\pscharpath[linewidth=0.25\pslinewidth,fillstyle=solid,fillcolor=red]{R}}     \newcommand*\Gu{\pscharpath[linewidth=0.25\pslinewidth,fillstyle=solid,fillcolor=yellow]{Gu}}     \newcommand*\Gr{\pscharpath[linewidth=0.25\pslinewidth,fillstyle=solid,fillcolor=green]{Gr}}          \begin{document}          \begin{align*}       \Gr + \Gu + \R     \end{align*}     %\begin{equation*}     %  \Gr + \Gu + \R     %\end{equation*}          \begin{figure}[htbp]     \centering     \begin{pspicture}(1,1)       \psline(0,0)(1,1)     \end{pspicture}     \end{figure}          \end{document}      ![output](http://i.stack.imgur.com/3Mo1W.jpg) **Question** How do I use `\pscharpath` from the `pst-text` package within an `align` environment correctly? As you can see from the screenshot, I get a `\Gr` in the picture _after_ the `align` environment instead of a `\psline`. If I use the `equation` environment instead of the `align` environment, everything is fine.


title: Biblatex 'origlanguage' field and output customization

text: I need to specify original language and the translator in the bibliography list, but it spits out a grammatically incorrect (Correct me if I have been a victim of Muphry's laws): > Trans. from the German by ... So how can I get rid of the word 'the' in the Bibliography? I saw it in brackets in the biblatex manual and was wondering, what do the brackets mean. As usual, minimal working example:               \documentclass{scrartcl}          \usepackage[          style=authoryear,          citestyle=apa,          backend=biber     ]{biblatex}          \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @misc{A01,         author = {Author, A.},         year = {2001},         title = {Alpha},         origlanguage = {german},         translator = {Buthor, B.}     }     \end{filecontents}          \addbibresource{\jobname.bib}          \title{MWE}     \author{Me}          \begin{document}     \maketitle           This is the only citation \parencite{A01}.          \printbibliography          \end{document}


title: how to color the header's bottom line or footer's upper line?

text: The title is self-explanatory. In my document's current state, I get this rendering result after compiling with **XeLaTeX** : ![result](http://i.stack.imgur.com/TTsWx.png) > _Here's a MWE of which packages and commands I use to obtain my current > header style :_               \documentclass{report}          \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage[utf8]{inputenc}          \usepackage{lipsum}% http://www.ctan.org/tex-archive/macros/latex/contrib/lipsum          \usepackage{titlesec}     \usepackage{xcolor}               \renewpagestyle{plain}[\small\sffamily\upshape\color{red}]{         \headrule         \sethead{\chaptertitle}{}{Université de la Rochelle}     }               \author{ME}     \title{Bash report}          \pagestyle{plain}     \begin{document}     \maketitle          \tableofcontents     \thispagestyle{empty}          \chapter{Matrices de convolution}     \lipsum          \lipsum     \end{document}      **What I actually would like is to color "red" the lines created by the header and footer.**


title: change citation style ( [1-4] to [1]-[4], and [5, 8-9] to [5], [8]-[9] ) with natbib?

text: I have spent a whole day trying to solve the following problem. Please help if you know how to do this. I am using `natbib` (`\usepackage[sort&compress,square,comma]{natbib}`), and my current citation style looks like `[1-4]`, `[5, 8-9]`. What is the easiest way to change the citation style to `[1]-[4]` and `[5],[8]-[9]`?


title: Installing a handwriting fonts for LaTeX in Ubuntu

text: I am a LaTeX user and I am using it on Linux Ubuntu. In my document I want to use handwriting font described here. So i tried to include it by using:               \usepackage[T1]{fontenc}     \usepackage{la}     \newcommand{\setfont}[2]{{\fontfamily{#1}\selectfont #2}}      in my header and then applying the style using:               \setfont{la}{blah bleh blah bloh}      I got an error that `la.sty` cannot be found. I know that `.sty` is a file that needs to be installed on my PC which runs Ubuntu 12.04. I found all the packages needed on CTAN, but unfortunately I don't know how to install them. Can anyone help?


title: Chapter format redefinition

text: I have change the `\chapter` section definition but in some chapters of the book I don't want to apply it. For example, in the code below I don't want to apply in `\EjerPro`. How can I do it?               \documentclass[openany]{book}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[spanish,es-lcroman]{babel}     \usepackage[hmargin=2cm,tmargin=4cm,bmargin=2.5cm,centering]{geometry}     \usepackage[demo]{graphicx}     \usepackage{kpfonts}     \usepackage[pagestyles,explicit]{titlesec}     \usepackage{xcolor}     \usepackage{polynom}     \usepackage{enumitem}     \usepackage[absolute]{textpos}     \usepackage{lipsum}          \definecolor{seccolor}{RGB}{255,204,102}% para las secciones     \definecolor{ssseccolor}{RGB}{255,233,190}% para las subsubsecciones     \definecolor{probcolor}{RGB}{159,209,139}% para los problemas     \definecolor{rptacolor}{RGB}{214,234,204}% para las respuestas          \newcommand\EjerPro{%     \chapter*{\colorbox{probcolor}{\parbox{\dimexpr\linewidth-6pt}{\hfil \LARGE\strut EJERCICIOS Y PROBLEMAS\hfil}}}     }               \usepackage{tikz}     \usepackage{kpfonts}     \usepackage[explicit]{titlesec}          \newcommand*\chapterlabel{}     \titleformat{\chapter}       {\gdef\chapterlabel{}        \normalfont\sffamily\Huge\bfseries\scshape}       {\gdef\chapterlabel{\thechapter\ }}{0pt}       {\begin{tikzpicture}[remember picture,overlay]         \node[yshift=-3cm] at (current page.north west)           {\begin{tikzpicture}[remember picture, overlay]             \draw[fill=seccolor] (0,0) %rectangle               (\paperwidth,3cm);             \node[anchor=east,xshift=.9\paperwidth,rectangle,                 inner sep=11pt,                   fill=seccolor]                   {\color{black}\chapterlabel#1};            \end{tikzpicture}           };        \end{tikzpicture}      }     \titlespacing*{\chapter}{0pt}{50pt}{-60pt}          \begin{document}          \chapter{Expresiones algebraicas}     \lipsum[1-5]          \EjerPro     \lipsum[1-5]          \end{document}


title: lyx 3 column document

text: I am using LyX and would like to create a document with 3 vertical columns. I noticed there was a built-in option for 2 columns, i.e. Document->Settings->Text Layout->Two-column document. Is there an option for 3 columns? If not, is it possible to create it with a LaTeX preamble? (at the beginning of the LyX document)


title: Aditional levels in PDF bookmarks

text: I'm a novice in LaTeX and I use that code for having more sectioning levels, but when exporting to PDF the bookmarks of aditional levels are placed incorrectly. Does anyone know how can I place the bookmarks correctly?               \documentclass[a4paper]{report}          \makeatletter     \newcommand\level[1]{%       \ifcase#1\relax\expandafter\chapter\or         \expandafter\section\or         \expandafter\subsection\or         \expandafter\subsubsection\else         \def\next{\@level{#1}}\expandafter\next       \fi}     \newcommand{\@level}[1]{%       \@startsection{level#1}         {#1}         {\z@}%         {-3.25ex\@plus -1ex \@minus -.2ex}%         {1.5ex \@plus .2ex}%         {\normalfont\normalsize\bfseries}}          \newdimen\@leveldim     \newdimen\@dotsdim     {\normalfont\normalsize      \sbox\z@{0}\global\@leveldim=\wd\z@      \sbox\z@{.}\global\@dotsdim=\wd\z@     }          \newcounter{level4}[subsubsection]     \@namedef{thelevel4}{\thesubsubsection.\arabic{level4}}     \@namedef{level4mark}#1{}     \def\l@section{\@dottedtocline{1}{0pt}{\dimexpr\@leveldim*4+\@dotsdim*1+6pt\relax}}     \def\l@subsection{\@dottedtocline{2}{0pt}{\dimexpr\@leveldim*5+\@dotsdim*2+6pt\relax}}     \def\l@subsubsection{\@dottedtocline{3}{0pt}{\dimexpr\@leveldim*6+\@dotsdim*3+6pt\relax}}     \@namedef{l@level4}{\@dottedtocline{4}{0pt}{\dimexpr\@leveldim*7+\@dotsdim*4+6pt\relax}}          \count@=4     \def\@ncp#1{\number\numexpr\count@+#1\relax}     \loop\ifnum\count@<100       \begingroup\edef\x{\endgroup         \noexpand\newcounter{level\@ncp{1}}[level\number\count@]         \noexpand\@namedef{thelevel\@ncp{1}}{%           \noexpand\@nameuse{thelevel\@ncp{0}}.\noexpand\arabic{level\@ncp{1}}}         \noexpand\@namedef{level\@ncp{1}mark}####1{}%         \noexpand\@namedef{l@level\@ncp{1}}%           {\noexpand\@dottedtocline{\@ncp{1}}{0pt}{\the\dimexpr\@leveldim*\@ncp{5}+\@dotsdim*\@ncp{0}\relax}}}%       \x       \advance\count@\@ne     \repeat     \makeatother     \setcounter{secnumdepth}{100}     \setcounter{tocdepth}{100}     \begin{document}     \tableofcontents          \level{0}{abc}\thispagestyle{empty}     \level{1}{abc}     \level{2}{abc}     \level{3}{abc}     \level{4}{abc}     \level{5}{abc}     \level{6}{abc}     \level{7}{abc}     \level{8}{abc}     \level{9}{abc}     \level{10}{abc}     \level{11}{abc}     \level{12}{abc}     \end{document}


title: Superscript and subscript, to immediate right of symbol without distortion

text: I want to have an output like this ![enter image description here](http://i.stack.imgur.com/d0ApM.png) The closest I have come is with code `${A^{\leftarrow}}_(x, y, z + n)$` that gives me something like ![enter image description here](http://i.stack.imgur.com/25xv3.png) where the subscript is way of the mark. Trying something like this `$A^{\leftarrow}_(x, y, z + n)$` gives even a greater distortion like this ![enter image description here](http://i.stack.imgur.com/JTs1l.png). I have tried using `\displaystyle` but not sure how to get the syntax correctly, to make it happen. Display style seems to work with things like limits or sums, and I am not sure how I could bend them to my needs. Any leads would be helpful.


title: \lstdefinestyle syntax highlighting

text: I´m new to latex and got the following problem. I defined a listing style for XML Syntax highlighting like this: ![enter image description here](http://i.stack.imgur.com/IlaVY.png) How can I get also the equals symbol in the attribute color (orange)? I want to do sth. like this               \lstdefinestyle{XML}{         morekeywords={xmlns=,attribute\equals}     }      is there some kind of escape sequence to achieve this, or is it not possible? * * * Here you go:               \documentclass[a4paper, 12pt]{article}          \usepackage{listings, color}          \definecolor{forestgreen}{RGB}{34,139,34}     \definecolor{orangered}{RGB}{239,134,64}     \definecolor{darkblue}{rgb}{0.0,0.0,0.6}     \definecolor{gray}{rgb}{0.4,0.4,0.4}          \lstdefinestyle{XML} {         language=XML,         extendedchars=true,          breaklines=true,         breakatwhitespace=true,         emph={},         emphstyle=\color{red},         basicstyle=\ttfamily,         columns=fullflexible,         commentstyle=\color{gray}\upshape,         morestring=[b]",         morecomment=[s]{<?}{?>},         morecomment=[s][\color{forestgreen}]{<!--}{-->},         keywordstyle=\color{orangered},         stringstyle=\ttfamily\color{black}\normalfont,         tagstyle=\color{darkblue}\bf,         morekeywords={attribute,xmlns,version,type,release},     }          \begin{document}          \begin{lstlisting}[style=XML]     <?xml version="1.0" encoding="ISO-8859-1"?>     <!-- Edited by XMLSpy® -->     <note attribute="main" xmlns="http://www.w3.org/1999/xhtml">         <to>Tove</to>         <from>Jani</from>         <heading>Reminder</heading>         <body>Dont forget me this weekend!</body>     </note>     \end{lstlisting}          \end{document}


title: Layering/twocolumn conflict using tikzmark

text: LaTeX gurus, inspired by the ideas and code in Automatic background coloring in listings using tikzmark, I attempted to create my own macros for teaching programming. What I really wanted, just to highlight, comment and identify some lines in a source listing. I do have some simple routine               %%Usage Lsource{source file}{label}{caption}{options}{language}     \newcommand\Lsourcewide[5]{         \begin{figure}[h!btp]             \lstset{language=C}         \lstinputlisting[frame=tb, framerule=1pt, rulecolor= \color{green}          ,  label=#2, name=#2            ]{#1}         \end{figure}     }      which produces these pictures, in one-column and two-column mode, respectively (page breaks removed). The actual code is               \Lsourcewide{TestHello.c}{MyHello}{This is Hello Word!}{}{[ANSI]C}     \Lballoon{comment}{MyHello}{1}{3}     \LListBalls{MyHello}{4,6,3}     \Lsourceballoncomment{MyHello}{3}{comment}{xshift=+4.cm,yshift=+0.2cm}{Some longer explanation, really extended, relating to a balloon}  {theball}     \Lsourcelinecomment{MyHello}{5}{xshift=+5cm,yshift=+1cm}{And its extension, relating to this line}  {theball0}      (BTW: shall I use some kind of grouping, to keep those macros together? I do not want macros with too many and overcomplicated parameters, but sometimes around page breaks I see that part of the overlayer code goes to the next page) ![This is in 'figure' environment](http://i.stack.imgur.com/PL8Go.png) This is what I expected. However, if I change 'figure' to 'figure*', the outputs are ![This is in 'figure*' environment](http://i.stack.imgur.com/5inTV.png) The overlayer gets independent, i.e. drawn as a standalone figure rather that an overlayer. (BTW: 1) other float environments produce the same effect. 2) I had to change the original \balloon code, because it caused sometimes around page breaks to put the listing and the overlayer to different pages. Maybe it gives a hint for experts what is going on here) Below you can find a MWE. Thanks for any ideas in advance Janos               \documentclass{article}          \usepackage{listings}     \usepackage{tikz}     \usetikzlibrary{tikzmark,calc,fit, shadows}          \makeatletter     \newif\iflst@linemark          \lst@AddToHook{EveryLine}{%       \begingroup       \advance\c@lstnumber by 1\relax       \pgfmark{line-\lst@name-\the\c@lstnumber-start}%       \endgroup     }          \lst@AddToHook{EOL}{\pgfmark{line-\lst@name-\the\c@lstnumber-end}%     \global\lst@linemarktrue     }          \lst@AddToHook{OutputBox}{%       \iflst@linemark       \pgfmark{line-\lst@name-\the\c@lstnumber-first}%       \global\lst@linemarkfalse       \fi     }          \def\tkzlst@fnum#1\relax#2\@STOP{%       \def\@test{#2}%       \ifx\@test\@empty       \def\tkzlst@start{0}%       \else       \@tempcnta=#1\relax       \advance\@tempcnta by -1\relax       \def\tkzlst@start{\the\@tempcnta}%       \fi     }          \lst@AddToHook{Init}{%       \expandafter\tkzlst@fnum\lst@firstnumber\relax\@STOP       \pgfmark{line-\lst@name-\tkzlst@start-start}%     }          \newcommand\Lballoon[4]{%     \begin{tikzpicture}[remember picture,overlay]       \pgfmathtruncatemacro\pgf@temp{%         #3-1       }%       \iftikzmark{line-#2-\pgf@temp-start}{%         \iftikzmark{line-#2-#3-first}{%           \xdef\b@lines{({pic cs:line-#2-\pgf@temp-start} -| {pic           cs:line-#2-#3-first})}%         }{%           \iftikzmark{line-#2-#3-start}{%             \xdef\b@lines{({pic cs:line-#2-\pgf@temp-start} -| {pic             cs:line-#2-#3-start})}%           }{%             \xdef\b@lines{(pic cs:line-#2-\pgf@temp-start)}%           }%         }%       }{%         \xdef\b@lines{}%       }%       \foreach \k in {#3,...,#4} {%         \iftikzmark{line-#2-\k-first}{%           \xdef\b@lines{\b@lines (pic cs:line-#2-\k-first) }         }{}         \iftikzmark{line-#2-\k-end}{%           \xdef\b@lines{\b@lines (pic cs:line-#2-\k-end) }         }{}       }%       \ifx\b@lines\pgfutil@empty       \else       \edef\pgf@temp{\noexpand\node[fit={\b@lines}, color=ForestGreen,           draw, fill=green!20, opacity=0.4,  inner sep=4pt, rounded corners=2pt] (#1) {};       }%     \pgf@temp       \fi     \end{tikzpicture}     }          \makeatother          % % Put numbered balls after the line 'Lineno'  in source 'Source'     % Usage: \LListBalls{ListingLabel}{List of lines}     \newcounter{qan}     \newcommand\LListBalls[2]{%     \setcounter{qan}{0}     \begin{tikzpicture}[remember picture,overlay]         \foreach \x in {#2}         {  \addtocounter{qan}{1}     %       \only<\arabic{qan}>%       {\node[circle, draw,fill=green,ball color=green, shading=ball, font=\scriptsize\bfseries, drop shadow]        at  ([xshift=+10pt,yshift=+2pt]{pic cs:line-#1-\x-end}) {\arabic{qan}};}        }     \end{tikzpicture}     }               %% Prepare a figure from the source file provided     %%Usage Lsource{source file}{label}{caption}{options}{language}     \newcommand\Lsourcewide[5]{         \begin{figure*}[h!btp]             \lstset{language=C}         \lstinputlisting[frame=tb, framerule=1pt, rulecolor= \color{green}          ,  label=#2, name=#2            ]{#1}         \end{figure*}     }     % Prepare a source comment relating to a balloon     % Usage \Lsourcecommentballon{SourceName}{SourceLine}{Balloon}{ShiftPosition}{Comment}{CommentShape}     \newcommand\Lsourceballoncomment[6]     {       \tikz[remember picture,overlay]       \node[rectangle, draw,  rounded corners,drop shadow,  align=left, %color=ForestGreen,             fill=cream, text width=3cm, font=\scriptsize\bfseries]        at  ([#4]{pic cs:line-#1-#2-end}) (#6) {#5} ;        \tikz[remember picture,overlay]         \draw[->,thick,color=burntorange]          (#6.west) --  ($ (#6.west) + (-.2cm,0) $)  |- (#3.east)  ;     }          % Prepare a source comment relating to a balloon     % Usage \Lsourcecommentballon{SourceName}{SourceLine}{ShiftPosition}{Comment}{CommentShape}     \newcommand\Lsourcelinecomment[5]     {       \tikz[remember picture,overlay]       \node[rectangle, draw,  rounded corners,drop shadow,  align=left,             fill=cream, text width=3.2cm, font=\scriptsize\bfseries]        at  ([#3]{pic cs:line-#1-#2-end}) (#5) {\begin{minipage}{3cm} #4 \end{minipage}} ;        \tikz[remember picture,overlay]      \tikz[remember picture,overlay] \draw[->,thick,color=burntorange]  (#5.south) |- ({pic cs:line-#1-#2-end});     }          \definecolor{ForestGreen}{rgb}{0.0, 0.4, 0.0}     \definecolor{burntorange}{rgb}{0.8, 0.33, 0.0}     \definecolor{cream}{rgb}{1.0, 0.99, 0.82}          \begin{document}     \onecolumn     \Lsourcewide{TestHello.c}{MyHello}{This is Hello Word!}{}{[ANSI]C}     \Lballoon{comment}{MyHello}{1}{3}     \LListBalls{MyHello}{4,6,3}     \Lsourceballoncomment{MyHello}{3}{comment}{xshift=+4.cm,yshift=+0.2cm}{Some longer explanation, really extended, relating to a balloon}  {theball}     \Lsourcelinecomment{MyHello}{5}{xshift=+5cm,yshift=+1cm}{And its extension, relating to this line}  {theball0}     \twocolumn     \Lsourcewide{TestHello.c}{MyHell}{This is Hello Word!}{}{[ANSI]C}     \Lballoon{comment1}{MyHell}{1}{3}     \LListBalls{MyHell}{4,6,3}     \Lsourceballoncomment{MyHell}{3}{comment1}{xshift=+4.cm,yshift=+0.2cm}{Some longer explanation, really extended, relating to a balloon}  {theball2}     \Lsourcelinecomment{MyHell}{5}{xshift=+5cm,yshift=+1cm}{And its extension, relating to this line}  {theball1}     \end{document}


title: LyX table new line

text: While inside a table, it seems impossible to use Ctrl+Enter in order to start a new line in the same column. So if I have, for example, a column name "veni, vidi, vici" and I don't want it to be so wide, I would be able to write it:               veni     vidi     vici      one word under the other. Anybody knows how to do it with LyX? Thanks.


title: genuine way to give an image an emphasized and normal caption

text: In my work I give each image a small description (usually in emphasized style) and a long description in normal font. To achieve this I have to write               \usepackage{subcaption}          \begin{figure}         \includegraphics{elephant}         \subcaption{\emph{An Elephant}. This is an Elephas maximus, bla bla bla}         \label{fig:elephant}     \end{figure}      I am tired of always writing `\emph{…}.` Is there a command to shorten this? E.g.               \subcaptionhead{An Elephant}{This is an Elephas maximus, bla bla bla}      (All images should still be in `\listoffigures`.)


title: XeLaTeX hang on Defining document command \newfontfeature with arg. spec. 'mm' on line 118

text: I am using TexMaker 4.0 on a Windows 7 (64bit) machine, with MiKTeX v2.9, and I am trying to compile this template (with no modifications) with XeLaTeX using the instructions contained in the first answer here. It hangs when I attempt to run the custom user command `xelatex %` (% is the name of the current file). The last few lines of the log file before it hangs are the following:               .................................................     .................................................     . LaTeX info: "xparse/define-command"     .      . Defining document command \newfontfeature with arg. spec. 'mm' on line 118.     .........................      Running `xelatex file` in the console yields the following output:               * Redefining document command \oldstylenums with arg. spec. 'm' on line 107.     *************************************************     ) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontspec\fontspec-xetex.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fontenc.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\euenc\eu1enc.def")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\euenc\eu1lmr.fd"))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\xelatex\xunicode\xunicode.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tipa\t3enc.def"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\euenc\eu1lmss.fd"))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"))))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontspec\fontspec.cfg"     ! Undefined control sequence.     <argument> \c_keys_code_root_tl                                     fontspec/Ligatures/Historical     l.8 ...tureoption{Ligatures}{Historic}{Historical}          ?


title: disabling page number from tikz-uml diagrams

text: I'm trying to use the tikz-uml package for generating uml diagrams. As I was trying, I found that for some reason page number appears at the bottom of the page. I tried to disable it by using `\pagestyle{empty}`. With this the page number disappears from the page. But when I include the picture in the latex document, the figure caption comes at the bottom of the page, meaning, the diagram occupies the full page. I have used here an example from tikz-uml package, which generates the page number. Note you need to download the tikz-uml package from http://www.ensta- paristech.fr/~kielbasi/tikzuml/index.php?lang=en Can any one help me with this issue?               \documentclass[a4paper,11pt, svgnames]{article}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[french]{babel}     \usepackage{listings}     \usepackage{tikz-uml}          \textwidth 18.5cm     \textheight 25.5cm     \hoffset=-2.9cm     \voffset=-2.9cm          \sloppy     \hyphenpenalty 10000000          \date{}     \title{}     \author{}          \lstdefinelanguage{tikzuml}{language=[LaTeX]TeX, classoffset=0, morekeywords={umlbasiccomponent, umlprovidedinterface, umlrequiredinterface, umldelegateconnector, umlassemblyconnector, umlVHVassemblyconnector, umlHVHassemblyconnector, umlnote, umlusecase, umlactor, umlinherit, umlassoc, umlVHextend, umlinclude, umlstateinitial, umlbasicstate, umltrans, umlstatefinal, umlVHtrans, umlHVtrans, umldatabase, umlmulti, umlobject, umlfpart, umlcreatecall, umlclass, umlvirt, umlunicompo, umlimport, umlaggreg}, keywordstyle=\color{DarkBlue}, classoffset=1, morekeywords={umlcomponent, umlsystem, umlstate, umlseqdiag, umlcall, umlcallself, umlfragment, umlpackage}, keywordstyle=\color{DarkRed}, classoffset=0,  sensitive=true, morecomment=[l]{\%}}          \begin{document}          \begin{center}     \begin{tikzpicture}     \begin{umlcomponent}{A}     \umlbasiccomponent{B}     \umlbasiccomponent[y=-2]{C}          \umlrequiredinterface[interface=C-interface]{C}     \umlprovidedinterface[interface=B-interface, with port, distance=3cm, padding=2.5cm]{B}     \end{umlcomponent}     \umlbasiccomponent[x=-10,y=1]{D}     \umlbasiccomponent[x=3,y=-7.5]{E}     \umlbasiccomponent[x=-2, y=-9]{F}     \umlbasiccomponent[x=-7,y=-8]{G}     \umlbasiccomponent[x=-7,y=-11]{H}          \umlassemblyconnector[interface=DA, with port, name=toto]{D}{A}     \umldelegateconnector{A-west-port}{B-west-interface}     \umlVHVassemblyconnector[interface=AE, with port]{A}{E}     \umlHVHassemblyconnector[interface=EF, with port, first arm]{E}{F}     \umlHVHassemblyconnector[interface=GHF, with port, arm2=-2cm, last arm]{G}{F}     \umlHVHassemblyconnector[with port, arm2=-2cm, last arm]{H}{F}          \umlnote[x=-4, y=4, width=3.4cm]{B-west-interface}{I am the node named B-west-interface}     \umlnote[x=2, y=4, width=3.4cm]{C-east-interface}{I am the node named C-east-interface}     \umlnote[x=-8.5, y=-2, width=3.4cm]{toto-interface}{I am the node named toto-interface}     \umlnote[x=-5.5, y=-4.5, width=3.4cm]{A-south-port}{I am the node named A-south-port}     \umlnote[x=-1, y=-6, width=3.4cm]{AE-interface}{I am the node named AE-interface}     \umlnote[x=2, y=-11, width=3.4cm]{F-east-port}{I am the node named F-east-port}     \end{tikzpicture}     \end{center}     \end{document}


title: longtable and rowcolors

text: I tried to use the longtable with the row color and I just simply can get it to work. When I try to do:               \documentclass[10pt, landscape]{report}         %Packages             \usepackage[utf8]{inputenc}              \usepackage[english, ngerman]{babel}             \usepackage{booktabs}             \usepackage{array}                 \newcounter{rowno}                 \setcounter{rowno}{0}             \usepackage{longtable}             \usepackage[table]{xcolor}           \begin{document}          \rowcolors{1}{gray!40!white}{blue!10!white}                  \begin{longtable}{>{\stepcounter{rowno}\therowno.}c c l c l l l l }                 \hiderowcolors                 \multicolumn{1}{c}{No.} & Article & Word & Type & 3. Person & Präteritum & Perfect & Translation \\                 \toprule                 \endfirsthead                 \showrowcolors                 \hiderowcolors                 \multicolumn{1}{c}{No.} & Article & Word & Type & 3. Person & Präteritum & Perfect & Translation \\                 \toprule                  \endhead                 \showrowcolors                 & --- & abdecken & verb & deckt ab & deckte ab & abgedeckt & to cover, \\ \midrule                 & --- & abholen & verb & holt ab & holte ab & abgeholte & to collect or pick up \\ \midrule          \end{longtable}         \end{document}      I am getting every row to be the same color - gray. I tried doing different things with it but to no avail. ![enter image description here](http://i.stack.imgur.com/XL89u.png) Did anyone dealt with something like that and have a solution?


title: Defining new subsubsection not working

text: I have defined a new numbering system for sections and subsections as shown below:               \renewcommand*\thesection{\arabic{section}.0}     \renewcommand*\thesubsection{\arabic{section}.\arabic{subsection}}      If I then try to add:               \renewcommand*\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}      This doesn't work and I can't understand why when it's exactly the same as the others! Any help would be greatly appreciated!


title: Bold bracket row vector/matrix

text: i want to define a matrix-vector product, which is defined something like this:                 \left[\begin{array}{cccc}     A & B & C & D     \end{array}\right]     \left[\begin{array}{c}      u \\ v \\ w \\ y      \end{array}\right] = 0.      So the matrix is actually a row vector of characters, which are matrices of course. As a result i get a row vector with thinner bracket size than the column vector. I tried bmatrix as an environment but it doesnt change anything and               \big[      but it just makes the brackets larger instead of bold.   Is there a common way to make beautiful row vectors with same bracket size as a column vector and which got nice spaces between the chracters/numbers without using commas?


title: Is it possible to take "sum" from computer modern, "braces" from fourier?

text: The code is here. Also How can i add _underbraces_ from fourier?               \documentclass[11pt,a4paper]{article}     \usepackage[english]{babel}     \usepackage[utf8x]{inputenc}     \usepackage{ucs}     \usepackage{amsmath}     \usepackage{amsfonts,theorem}     \usepackage{amssymb}     \usepackage{newtxtext}     \usepackage{newtxmath}          \DeclareSymbolFont{mdsymbols}     {OMS}{mdput}{m}{n}     \DeclareSymbolFont{mdlargesymbols}{OMX}{mdput}{m}{n}          \DeclareMathDelimiter{\lbrace}        {\mathopen}{mdsymbols}{"66}{mdlargesymbols}{"08}     \DeclareMathDelimiter{\rbrace}        {\mathclose}{mdsymbols}{"67}{mdlargesymbols}{"09}     \renewcommand{\textbraceleft}{%       {\fontfamily{mdput}\fontencoding{OMS}\selectfont\char"66}}     \renewcommand{\textbraceright}{%       {\fontfamily{mdput}\fontencoding{OMS}\selectfont\char"67}}       \let\sum\relax       \DeclareMathSymbol{\sum}{\mathop}{mdlargesymbols}{"50}          %\let\sum\relax     %\DeclareMathSymbol{\sum}{\mathop}{mdlargesymbols}{"50} % i want this from computer modern.          \begin{document}          \[\sum\]      should come from computer modern.     \[ \left\{     \begin{array}     [c]{ccc}%     x & , & 0<x<1\\     \sin x & , & x\geqslant1\\     x^2 & , & x<0\\     \end{array}     \right. \]     braces from fourier.          \end{document}


title: Methods for graphing simulation data

text: I ran a large bootstrap simulation to gather data which I would now like to include in my paper. Currently, I have the data in an Excel spreadsheet so I could get a quick overview of what my results were. The data consists of the following:   * 2000 samples, where each sample has an "average" and "95% confidence" value   * The average values are plotted as the blue line in this graph from Excel   * The positive error bars show the outermost data point after the largest 2.5% values were removed (the 95% confidence value).   * **Note:** I am not trying to reproduce the exact style of this plot. I am only interested in producing the best representation of the data for my paper. ![Example graphics from Excel](http://i.stack.imgur.com/C9aUY.png) Specific questions:   1. How would you represent the data and produce a similar graphical representation in LaTeX?   2. In total there are 3 of these Excel graphs, representing simulations under 3 different conditions. It would be nice to have the option of plotting all 3 results on the same graph. How might this be achieved?


title: Dynamically position of a flowfram box on the same page as the heading

text: i want to position a flowfram-box dynamically on the same page as the caption. So that the box is allways next to the a certain heading as the document is growing. In my following example the boxes are layong on top of each other on the second page. How can I position the boxes only one time next to a certain heading?                    \documentclass[10pt,a4paper,landscape]{article}     \usepackage[utf8]{inputenc}     \usepackage{caption}     \usepackage{graphicx}     \usepackage{lipsum}     \usepackage{flowfram}     \usepackage[left=10cm,right=1cm,top=1cm,bottom=2cm]{geometry}     \author{}     \title{}     \setcounter{secnumdepth}{-1}     \parindent0pt     \twocolumn          \begin{document}          \section{HEADING 1}     \subsection{HEADING 1}     \newdynamicframe[\thepage]{0.33\textwidth}{\textheight}{-240pt}{0pt}[Lastannahmen]     \begin{dynamiccontents*}{Lastannahmen}             next to heading 1             only on the page of heading 1     \end{dynamiccontents*}          \lipsum     \newpage          \section{HEADING2}          \newdynamicframe[\thepage]{0.4\textwidth}{\textheight}{-240pt}{0pt}[Lastannahmen2]     \begin{dynamiccontents*}{Lastannahmen2}     next to heading 2     \end{dynamiccontents*}     \lipsum          \newpage     \end{document}$


title: Asymptote: convert triple to array

text: How might I convert a triple of three real numbers into an array, or otherwise treat it as such. I can go from an array to a triple as:               \documentclass{article}     \usepackage{graphicx}     \usepackage{asymptote}     \begin{document}     \begin{asy}       triple[] p;       real[] b={1,2,3};            triple totriple(real[] x, int i){          return p[i] = (x[0],x[1],x[2]);       }            totriple(b,1);       write(p[1]);     \end{asy}     \end{document}      but the other direction eludes me, an attempt:               real[][] q;     triple v=(1,2,3);          real[] toarray(triple t, int i){         return q[1]={t.x,t.y,t.z};     }      The goal is to visualize linear transformations in three dimensions. I have some triples that define the boundary of an object in 3-space, I want to convert them to arrays (so that I can multiply by a transformation matrix) and then back to triples for plotting. I may have missed some facility in Asymptote that accomplishes this out of the box, or an otherwise better way of doing this, so any and all suggestions would be welcome. Hopefully, this is on topic.


title: Preventing LaTeX from starting a new page before \begin{figure}

text: I'm writing a document and want to include an appendix of pictures at the end. Each picture has a caption associated with it, and a label. However, each time I try to compile the code, LaTeX automatically creates a page break between the section heading and the first figure. I know that use of \includegraphics can create a page break, but even if I use the figure environment without a picture as below, LaTeX starts a new page between the section heading and caption. Any ideas how I can stop this from happening?               \section{Appendix A}     \begin{figure}         \centering         \caption*{BlaBlaBla}         \label{pic1}     \end{figure}


title: Reference to pgfplot with margincap

text: I was using references to parts of a `pgfplots` plot, which worked perfectly. However, when I changed the document to use `margincap`s, this breaks: I get a warning that one reference is undefined, and the second one just prints as an empty string, without even a warning.               \documentclass{article}     \usepackage{pgfplots}     \usepackage{mcaption}          \pgfplotsset{compat=1.8}          \begin{document}          \begin{figure}     \begin{margincap} % <- comment me!     \begin{tikzpicture}     \begin{axis}          \addplot[mark=star,only marks] coordinates {(0, 0)};     \label{plt:a}          \addplot[only marks] coordinates {(1, 1)};     \label{plt:b}          \end{axis}          \end{tikzpicture}     \end{margincap} % <- comment me!     \end{figure}          `\ref{plt:a}', `\ref{plt:b}'          \end{document}      Commenting out the `\begin{margincap}` and its corresponding `end`, everything is ok again... Unfortunately, I have no idea how I could fix this. ![enter image description here](http://i.stack.imgur.com/TfuJF.png)


title: Is there an easy way to fill the empty space of the page with empty rows in longtable environment?

text: I am typesetting tables in `longtable` environment, each one has different amount of rows (sometimes exceeding one page, sometimes not) and the `\newpage` after each table. I want to add empty rows at the end of each table, so they would fill the empty space after `\newpage` command. Is it possible to do this somehow?


title: doc.sty: Print codelinenumbers in index in tt font?

text: Is it possible to print the index numbers which are referring to a code line number instead of a page in typewirter font. I know that I can change `\main`, but on this way I can’t change the format of the auto indexed commands. **Example**               % \iffalse     %<*driver>     \ProvidesFile{example.dtx}     %</driver>     %<class>\NeedsTeXFormat{LaTeX2e}[2009/01/01]     %<class>\ProvidesClass{example}     %     %<*driver>     \documentclass{ltxdoc}     \usepackage{hypdoc}          \renewcommand{\main}[1]{\underline{\texttt{#1}}}          \CodelineIndex     \EnableCrossrefs          \begin{document}       \DocInput{example.dtx}     \end{document}     %</driver>     % \fi     %     % \DoNotIndex{\newcommand}     %     % \section{Usage}     % \DescribeMacro{\test} This is a stupid example     % for \cmd{\test}, but it prducec the right index     % formatting.     %     % \StopEventually{\PrintIndex}     %     % \section{Implementaion}     % \begin{macro}{\test}     % This is how Test is defined     %    \begin{macrocode}     \newcommand{\test}{Some text}     %    \end{macrocode}     % \end{macro}     % \begin{macro}{\supertest}     % And here \cmd{\test} is used in another macro     %    \begin{macrocode}     \newcommand{\supertest}{\test{} without sense}     %    \end{macrocode}     % \end{macro}     % \Finale     \endinput      build with               pdflatex example.dtx     makeindex -s gind.ist -o example.ind example.idx     pdflatex example.dtx      **Result** ![result](http://i.stack.imgur.com/QOzyc.jpg) But it should be   `\test` . . . . . . _1_ ,`1`,`2`   (with `1` underlined)


title: \pagebreak and two-column text

text: When I use `\pagebreak` in a two-column text, the paragraphs are spread out by vertical spaces only in the current column, so the whole page looks unbalanced (the right column has large spaces between paragraphs, the left column doesn't). Is there a way to make the spaces the same?


title: Why is TeX/LaTeX-"programming" so different from other languages in terms of syntax?

text: Usually, e.g., when I want to have an if, I do something like this:               if(value) {         ... whatever code ...     }      But in LaTeX, its:               \ifnum\count0<100         ... whatever LaTeX-code ...     \fi      There are no brackets and so on, for example, which indicate where if- statements begin and where they end. Also, there are no brackets around if condition itself which is checked by LaTeX and so on. Those are all minor differences, of course, but (from my experience) its way easier to read source from other languages than to read source which is part of a TeX-Document. This might, of course, be a personal thing because I program more often with non-LaTeX-languages than with LaTeX, but I still do not see the advantage of forcing users to use such a syntax. Can anyone explain this to me?


title: polyglossia error after MiKTeX update

text: > **Possible Duplicate:**   >  xelatex stopped working after TexLive2011 update 2 days ago Sorry, I don't know where I could report bug that appeared after MiKTeX Update. Here is a test file:               % !Mode:: "TeX:UTF-8"     \documentclass{article}     \usepackage{polyglossia}         \setdefaultlanguage{russian}     \begin{document}     This is a test.     \end{document}      and log file:               This is XeTeX, Version 3.1415926-2.3-0.9997.5 (MiKTeX 2.9 64-bit) (preloaded format=xelatex 2011.9.26)  27 SEP 2011 19:14     entering extended mode     **test-l3.tex     ("C:\Users\Igor A. Kotelnikov\Documents\My books\PlasmaBook\Test\test-l3.tex"     LaTeX2e      Babel  and hyphenation patterns for english, french, german, italian, ru     ssian, loaded.     ("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count80     \c@section=\count81     \c@subsection=\count82     \c@subsubsection=\count83     \c@paragraph=\count84     \c@subparagraph=\count85     \c@figure=\count86     \c@table=\count87     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     ("C:\Program Files\MiKTeX 2.9\tex\xelatex\polyglossia\polyglossia.sty"     Package: polyglossia 2010/07/27 v1.2.0a Babel replacement for XeLaTeX          ("C:\Program Files\MiKTeX 2.9\tex\latex\etoolbox\etoolbox.sty"     Package: etoolbox 2011/01/03 v2.1 e-TeX tools for LaTeX          ("C:\Program Files\MiKTeX 2.9\tex\latex\misc\etex.sty"     Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)     \et@xins=\count88     )     \etb@tempcnta=\count89     )     ("C:\Program Files\MiKTeX 2.9\tex\latex\makecmds\makecmds.sty"     Package: makecmds 2009/09/03 v1.0a extra command making commands     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\fontspec\fon     tspec.sty"     Package: fontspec 2011/09/18 v2.2a Advanced font selection for XeLaTeX/LuaLaTeX               ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\exp     l3.sty"     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3n     ames.sty"     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3b     ootstrap.sty"     Package: l3bootstrap 2011/09/10 v2798 L3 Experimental bootstrap code     )     Package: l3names 2011/09/07 v2776 L3 Experimental namespace for primitives     ) ("C:\Program Files\MiKTeX 2.9\tex\latex\tools\calc.sty"     Package: calc 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)     \calc@Acount=\count90     \calc@Bcount=\count91     \calc@Adimen=\dimen103     \calc@Bdimen=\dimen104     \calc@Askip=\skip43     \calc@Bskip=\skip44     LaTeX Info: Redefining \setlength on input line 76.     LaTeX Info: Redefining \addtolength on input line 77.     \calc@Ccount=\count92     \calc@Cskip=\skip45     )     ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\color.sty"     Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)          ("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\color.cfg"     File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive     )     Package color Info: Driver file: xetex.def on input line 130.          ("C:\Program Files\MiKTeX 2.9\tex\xelatex\xetex-def\xetex.def"     File: xetex.def 2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)          ))     ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"     Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)          ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty"     Package: trig 1999/03/16 v1.09 sin cos tan (DPC)     )     ("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"     File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive     )     Package graphics Info: Driver file: xetex.def on input line 91.     )     Package: expl3 2011/09/15 v2828 L3 Experimental code bundle wrapper          ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3b     asics.sty"     Package: l3basics 2011/09/12 v2817 L3 Experimental basic definitions     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3e     xpan.sty"     Package: l3expan 2011/09/12 v2812 L3 Experimental argument expansion     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3t     l.sty"     Package: l3tl 2011/09/12 v2812 L3 Experimental token lists     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3s     eq.sty"     Package: l3seq 2011/09/12 v2812 L3 Experimental sequences and stacks     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3i     nt.sty"     Package: l3int 2011/09/12 v2812 L3 Experimental integers     \c_max_int=\count93     \l_tmpa_int=\count94     \l_tmpb_int=\count95     \l_tmpc_int=\count96     \g_tmpa_int=\count97     \g_tmpb_int=\count98     \g_seq_nesting_depth_int=\count99     \g_tl_inline_level_int=\count100     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3q     uark.sty"     Package: l3quark 2011/09/10 v2798 L3 Experimental quarks     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3p     rg.sty"     Package: l3prg 2011/09/15 v2827 L3 Experimental control structures     \g_prg_stepwise_level_int=\count101     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3c     list.sty"     Package: l3clist 2011/09/10 v2798 L3 Experimental comma separated lists     \g_clist_map_inline_int=\count102     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3t     oken.sty"     Package: l3token 2011/09/12 v2819 L3 Experimental token manipulation     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3p     rop.sty"     Package: l3prop 2011/09/12 v2820 L3 Experimental property lists     \g_prop_map_inline_int=\count103     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3m     sg.sty"     Package: l3msg 2011/09/12 v2812 L3 Experimental messages     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3i     o.sty"     Package: l3io 2011/09/10 v2799 L3 Experimental input-output operations     \l_iow_stream_int=\count104     \l_iow_line_length_int=\count105     \l_iow_target_length_int=\count106     \l_iow_current_line_int=\count107     \l_iow_current_word_int=\count108     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3f     ile.sty"     Package: l3file 2011/09/07 v2776 L3 Experimental file operations     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3s     kip.sty"     Package: l3skip 2011/09/12 v2818 L3 Experimental dimensions and skips     \l_tmpa_dim=\dimen105     \l_tmpb_dim=\dimen106     \l_tmpc_dim=\dimen107     \g_tmpa_dim=\dimen108     \g_tmpb_dim=\dimen109     \l_tmpa_skip=\skip46     \l_tmpb_skip=\skip47     \l_tmpc_skip=\skip48     \g_tmpa_skip=\skip49     \g_tmpb_skip=\skip50     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3k     eys.sty"     Package: l3keys 2011/09/10 v2800 L3 Experimental key-value interfaces     \g_keyval_level_int=\count109     \l_keys_choice_int=\count110     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3f     p.sty"     Package: l3fp 2011/09/12 v2812 L3 Experimental floating-point operations     \c_one_million=\count111     \c_one_hundred_million=\count112     \c_five_hundred_million=\count113     \c_one_thousand_million=\count114     \c_fp_pi_by_four_decimal_int=\count115     \c_fp_pi_by_four_extended_int=\count116     \c_fp_pi_decimal_int=\count117     \c_fp_pi_extended_int=\count118     \c_fp_two_pi_decimal_int=\count119     \c_fp_two_pi_extended_int=\count120     \l_fp_count_int=\count121     \l_fp_div_offset_int=\count122     \l_fp_exp_integer_int=\count123     \l_fp_exp_decimal_int=\count124     \l_fp_exp_extended_int=\count125     \l_fp_exp_exponent_int=\count126     \l_fp_input_a_sign_int=\count127     \l_fp_input_a_integer_int=\count128     \l_fp_input_a_decimal_int=\count129     \l_fp_input_a_exponent_int=\count130     \l_fp_input_b_sign_int=\count131     \l_fp_input_b_integer_int=\count132     \l_fp_input_b_decimal_int=\count133     \l_fp_input_b_exponent_int=\count134     \l_fp_input_a_extended_int=\count135     \l_fp_input_b_extended_int=\count136     \l_fp_mul_a_i_int=\count137     \l_fp_mul_a_ii_int=\count138     \l_fp_mul_a_iii_int=\count139     \l_fp_mul_a_iv_int=\count140     \l_fp_mul_a_v_int=\count141     \l_fp_mul_a_vi_int=\count142     \l_fp_mul_b_i_int=\count143     \l_fp_mul_b_ii_int=\count144     \l_fp_mul_b_iii_int=\count145     \l_fp_mul_b_iv_int=\count146     \l_fp_mul_b_v_int=\count147     \l_fp_mul_b_vi_int=\count148     \l_fp_mul_output_int=\count149     \l_fp_output_sign_int=\count150     \l_fp_output_integer_int=\count151     \l_fp_output_decimal_int=\count152     \l_fp_output_exponent_int=\count153     \l_fp_output_extended_int=\count154     \l_fp_round_position_int=\count155     \l_fp_round_target_int=\count156     \l_fp_split_sign_int=\count157     \l_fp_tmp_int=\count158     \l_fp_trig_octant_int=\count159     \l_fp_trig_sign_int=\count160     \l_fp_trig_decimal_int=\count161     \l_fp_trig_extended_int=\count162     \l_fp_tmp_dim=\dimen110     \l_fp_tmp_skip=\skip51     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3b     ox.sty"     Package: l3box 2011/09/10 v2799 L3 Experimental boxes     \l_tmpb_box=\box26     \l_box_top_dim=\dimen111     \l_box_bottom_dim=\dimen112     \l_box_left_dim=\dimen113     \l_box_right_dim=\dimen114     \l_box_top_new_dim=\dimen115     \l_box_bottom_new_dim=\dimen116     \l_box_left_new_dim=\dimen117     \l_box_right_new_dim=\dimen118     \l_box_tmp_box=\box27     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3c     offins.sty"     Package: l3coffins 2011/09/12 v2814 L3 Experimental coffin code layer     \l_coffin_tmp_box=\box28     \l_coffin_tmp_dim=\dimen119     \l_coffin_offset_x_dim=\dimen120     \l_coffin_offset_y_dim=\dimen121     \l_coffin_x_dim=\dimen122     \l_coffin_y_dim=\dimen123     \l_coffin_x_prime_dim=\dimen124     \l_coffin_y_prime_dim=\dimen125     \l_coffin_Depth_dim=\dimen126     \l_coffin_Height_dim=\dimen127     \l_coffin_TotalHeight_dim=\dimen128     \l_coffin_Width_dim=\dimen129     \c_empty_coffin=\box29     \l_coffin_aligned_coffin=\box30     \l_coffin_aligned_internal_coffin=\box31     \l_coffin_bounding_shift_dim=\dimen130     \l_coffin_left_corner_dim=\dimen131     \l_coffin_right_corner_dim=\dimen132     \l_coffin_bottom_corner_dim=\dimen133     \l_coffin_top_corner_dim=\dimen134     \l_coffin_scaled_total_height_dim=\dimen135     \l_coffin_scaled_width_dim=\dimen136     \l_coffin_display_coffin=\box32     \l_coffin_display_coord_coffin=\box33     \l_coffin_display_pole_coffin=\box34     \l_coffin_display_offset_dim=\dimen137     \l_coffin_display_x_dim=\dimen138     \l_coffin_display_y_dim=\dimen139     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3c     olor.sty"     Package: l3color 2011/09/07 v2776 L3 Experimental colour support     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3l     uatex.sty"     Package: l3luatex 2011/09/10 v2798 L3 Experimental LuaTeX-specific functions     \g_cctab_allocate_int=\count163     \g_cctab_stack_int=\count164     ))     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\l3packages\x     parse\xparse.sty"     Package: xparse 2011/09/15 v2828 L3 Experimental document command parser     \l_xparse_m_args_int=\count165     \l_xparse_mandatory_args_int=\count166     \l_xparse_processor_int=\count167     \l_xparse_total_args_int=\count168     )     \l_fontspec_script_int=\count169     \l_fontspec_language_int=\count170     \l_fontspec_strnum_int=\count171     \l_fontspec_tmpa_dim=\dimen140     \l_fontspec_tmpb_dim=\dimen141     \l_fontspec_tmpc_dim=\dimen142     Variant \tl_gset:cV already defined; not changing it on line 66          ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\fontspec\fon     tspec-patches.sty"     Package: fontspec-patches 2011/09/18 v2.2a Advanced font selection for XeLaTeX/     LuaLaTeX      ("C:\Program Files\MiKTeX 2.9\tex\latex\base\fixltx2e.sty"     Package: fixltx2e 2006/09/13 v1.1m fixes to LaTeX     LaTeX Info: Redefining \em on input line 420.     )     LaTeX Info: Redefining \em on input line 22.     LaTeX Info: Redefining \emph on input line 29.     LaTeX Info: Redefining \- on input line 32.     .................................................     . xparse info: "define-command"     .      . Defining document command \liningnums with arg. spec. 'm' on line 111.     .................................................     )     ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\fontspec\fon     tspec-xetex.sty"     Package: fontspec-xetex 2011/09/18 v2.2a Advanced font selection for XeLaTeX/Lu     aLaTeX      ("C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty"     Package: fontenc 2005/09/27 v1.99g Standard LaTeX package          ("C:\Program Files\MiKTeX 2.9\tex\latex\euenc\eu1enc.def"     File: eu1enc.def 2010/05/27 v0.1h Experimental Unicode font encodings     )     LaTeX Font Info:    Try loading font information for EU1+lmr on input line 100.               ("C:\Program Files\MiKTeX 2.9\tex\latex\euenc\eu1lmr.fd"     File: eu1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern     ))     ("C:\Program Files\MiKTeX 2.9\tex\xelatex\xunicode\xunicode.sty"     File: xunicode.sty 2011/09/09 v0.981 provides access to latin accents and many      other characters in Unicode lower plane          ("C:\Program Files\MiKTeX 2.9\tex\latex\tipa\t3enc.def"     File: t3enc.def 2001/12/31 T3 encoding     LaTeX Font Info:    Try loading font information for EU1+lmss on input line 357     .          ("C:\Program Files\MiKTeX 2.9\tex\latex\euenc\eu1lmss.fd"     File: eu1lmss.fd 2009/10/30 v1.6 Font defs for Latin Modern     ))     \tipaTiiicode=\count172     \tipasavetokens=\toks14     \tipachecktokens=\toks15          ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"     Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)          ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty"     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks16     )     \Gin@req@height=\dimen143     \Gin@req@width=\dimen144     ))     .................................................     . xparse info: "define-command"     .      . Defining document command \fontspec with arg. spec. 'O{}m' on line 39.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \setmainfont with arg. spec. 'O{}m' on line 43.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \setsansfont with arg. spec. 'O{}m' on line 47.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \setmonofont with arg. spec. 'O{}m' on line 51.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \setmathrm with arg. spec. 'O{}m' on line 59.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \setboldmathrm with arg. spec. 'O{}m' on line 62.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \setmathsf with arg. spec. 'O{}m' on line 65.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \setmathtt with arg. spec. 'O{}m' on line 68.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \newfontfamily with arg. spec. 'mO{}m' on line 84.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \newfontface with arg. spec. 'mO{}m' on line 87.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \defaultfontfeatures with arg. spec. 'm' on line     . 91.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \addfontfeatures with arg. spec. 'm' on line 107.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \newfontfeature with arg. spec. 'mm' on line 118.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \newAATfeature with arg. spec. 'mmmm' on line 125.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \newICUfeature with arg. spec. 'mmm' on line 132.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \aliasfontfeature with arg. spec. 'mm' on line     . 159.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \aliasfontfeatureoption with arg. spec. 'mmm' on     . line 164.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \newfontscript with arg. spec. 'mm' on line 169.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \newfontlanguage with arg. spec. 'mm' on line 192.     .................................................     .................................................     . xparse info: "define-command"     .      . Defining document command \DeclareFontsExtensions with arg. spec. 'm' on     . line 211.     .................................................     Variant \prop_gput:cnV already defined; not changing it on line 485     Variant \prop_gput:cnx already defined; not changing it on line 486     Variant \keys_set:nx already defined; not changing it on line 963     \c@fontspec_tmp_int=\count173     LaTeX Info: Redefining \itshape on input line 1881.     LaTeX Info: Redefining \slshape on input line 1885.     LaTeX Info: Redefining \scshape on input line 1889.     LaTeX Info: Redefining \upshape on input line 1893.          ("C:\Users\Igor A. Kotelnikov\AppData\Roaming\MiKTeX\2.9\tex\latex\fontspec\fon     tspec.cfg")))     ! Undefined control sequence.     l.402 \define@boolkey                          {polyglossia}[xpg@]{localmarks}[false]{%     ? e          Here is how much of TeX's memory you used:      13320 strings out of 430245      287236 string characters out of 3188361      282049 words of memory out of 3000000      16409 multiletter control sequences out of 15000+200000      3680 words of font info for 19 fonts, out of 3000000 for 9000      198 hyphenation exceptions out of 8191      50i,0n,31p,830b,95s stack positions out of 5000i,500n,10000p,200000b,50000s     No pages of output. I updated the following 4 packages: `fontspec` (packaged on 2011-09-19), `l3kernel` (2011-09-16) and `l3packages` (2011-09-16) alhough XeLaTeX compiler reports that error resides in `polyglossia.sty`. Fortunately, I have saved onto my local drive the following version of these packages, which do work: `fontspec` (2011-02-28), `l3kernel` (2011-08-19) and `l3packages` (2011-08-19).


title: Beamer: Creating a slide with short, centered, prominent text

text: Between the introductory slides and the meat of my presentation done in Beamer, I would like to add one slide with the text: "Coming up: Our Work". Or some such. This is the only text on this slide, and it should appear centered on the slide. Is there a built-in and/or recommended way of doing this? If there is no built-in way to make such a "filler slide between sections", I guess I could typeset a single slide with the required text centered on the page using \hfill and \vfill "on all sides" of the text. But what would be a good font/color scheme for this text? In particular, if I wanted this text to look like a frame title, but centered on the page, then how could I achieve this? What are the font commands for this, and is hfill/vfill a good way to center text on the slide?


title: Counters and their "partners"

text: A counter created via `\newcounter{<counter>}` is stored internally as `\c@<counter>`, just like a reference made using `\label{<label>}` is stored internally using `\r@<label>`. What's the use of `\cl@<counter>` and `\p@<counter>`? The macros associated with their use include (from `latex.ltx`):               \def\@definecounter#1{\expandafter\newcount\csname c@#1\endcsname          \setcounter{#1}\z@          \global\expandafter\let\csname cl@#1\endcsname\@empty          \@addtoreset{#1}{@ckpt}%          \global\expandafter\let\csname p@#1\endcsname\@empty          \expandafter          \gdef\csname the#1\expandafter\endcsname\expandafter               {\expandafter\@arabic\csname c@#1\endcsname}}     %...     \def\refstepcounter#1{\stepcounter{#1}%         \protected@edef\@currentlabel            {\csname p@#1\endcsname\csname the#1\endcsname}%     }     %...     \def\stepcounter#1{%       \addtocounter{#1}\@ne       \begingroup         \let\@elt\@stpelt         \csname cl@#1\endcsname       \endgroup}     %...     \def\@addtoreset#1#2{\expandafter\@cons\csname cl@#2\endcsname {{#1}}}


title: cline disappears in beamer

text: I took the following code from another question, but it does not work here:               \documentclass{beamer}     \usepackage{colortbl,xcolor}     \begin{document}              \begin{frame}             \begin{tabular}{c@{\,}l@{}}                              & $p$ \\\arrayrulecolor{blue!60!green!70}    & $p \to q$ \\\cline{2-2}             $\therefore$         & $q$ \\             \end{tabular}         \end{frame}     \end{document}      What should I do to have a blue cline?


title: How to make LaTeX ignore the contents of an environment?

text: I would like to make a `\todo` command and environment whose behavior changes depending whether I define a command `\showtodos`. A basic `\todo` command is simple to write:               \ifthenelse{\isundefined{\showtodos}}{       \newcommand{\todo}[1]{}     }{       \newcommand{\todo}[1]{#1}     }      Essentially, I would like to hide the content of the `\todo` command unless `\showtodos` is defined. My question is how to write an environment which does the same thing?


title: \theoremindent adds space to left side when used with RTL languages

text: Trying to use `ntheorem`'s `\theoremindent` seems to indent the left side rather than the right side when used with `polyglossia` and right-to-left languages:               \documentclass{article}          \usepackage{ntheorem}     \theoremindent2cm     \theorembodyfont{\normalfont}     \theoremseparator{:}     \newtheorem{theorem}{משפט}          \usepackage{polyglossia}     \setdefaultlanguage[calendar=hebrew, numerals=arabic]{hebrew}     \setotherlanguage{english}     \newfontfamily\hebrewfont{David CLM}          \begin{document}     א א א א א א א א א א א א א א א א א א א א א א א א א א א א א א א א א א א א א א     \begin{theorem}     ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב ב     \end{theorem}     \end{document}      ![enter image description here](http://i.stack.imgur.com/DGQKU.png) Is this fixable? Also it seems the numbering and separators are displayed wrong.


title: different constructs of inline English yields different fonts in polyglossia

text: I'd like to use the English font when interleaving English with Hebrew (the latter is the main language). It appears however that the Hebrew one is used, as shown by this example:               \documentclass{article}          \usepackage{polyglossia}     \setdefaultlanguage[calendar=hebrew, numerals=arabic]{hebrew}     \setotherlanguage{english}     \newfontfamily\hebrewfont{David CLM}          \begin{document}     אבג English דהו          אבג \begin{english}English\end{english} דהו     \end{document}      ![enter image description here](http://i.stack.imgur.com/ksvGr.png) I'd like the font used in the second line (default English one) to be used also in the first line without having to start a new environment (also there appears to be extra spaces because of it).


title: media9 in tables

text: I am using the `media9` package to embed sound files in my documents. This works quite fine in ordinary text, but when trying to run the same commands in a tabular environment, LaTeX apparently ends up in some kind of loop. In fact, the compilation appears to go on forever; however, it does give me the error message (while still trying desperately to compile): > ! Improper alphabetic constant. \unskip l.26 \listen{test.mp3}{hello} The code I'm using is:               \documentclass{memoir}          \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{amsmath,amssymb,geometry,graphicx,amstext,tipa}          \usepackage{media9}     \newcommand*\listen[2]{ % listen to the file named #1, but write out #2         \includemedia[         addresource=#1,         transparent,         flashvars={             source=#1             &autoPlay=true             &hideBar=true         },         ]{#2}{APlayer.swf}     }          \begin{document}          \listen{test.mp3}{hello} %this works fine          \begin{tabular}{ccc}         \listen{test.mp3}{hello} %this causes a painful death             & what                 & is\\         the             & problem                 & here     \end{tabular}          \end{document}


title: Is there an easy way to tag content in a LaTeX document?

text: I am writing a document which will contain many small (approximately a page) snippets of text, potentially organized in sections or subsections. To each such section, I would like to attach several "tags" from a predefined list. At a different place in the document, I would like to make a list of all tags and the sections which are associated with each. I have an idea how to make a very primitive tagging system if the tags list occurs in the end of the document (e.g. I can successively redefine a command adding text to it; later I can place this command to list the contents). Does anyone know a better solution? Ideally I would like to organize my tags in the beginning of the document, after the table of contents. I feel there might be a package which does this but I haven't been able to find one.


title: \documentclass{book} + natbib

text: I'm using `\documentclass{book}` and trying to get the `natbib` package generate the bibliography. I have a root file, say, `root.tex` and different chapters are included using `\include{}`. I'm having problems in getting the bibliography to work. I have the following commands in my root.tex file:               \bibliographystyle{plainnat}     \bibliography{mybib}      Any suggestion/solution will be much appreciated!


title: Drawing boxes of any size and any location

text: How can I draw rectangles of any size and any placement on the current page?                   \PassOptionsToPackage{dvipsnames}{xcolor}          \documentclass[landscape]{article}         \usepackage{tikz,graphicx}         \usepackage{pgf}         \usepgflibrary{decorations.shapes}         \usetikzlibrary{shapes.geometric, decorations.shapes,decorations.markings, shapes, fit, arrows, positioning, trees, mindmap, calc}         \begin{document}         \begin{tikzpicture}[remember picture, overlay]              \draw [line width=1mm,opacity=.25] (current page.center) rectangle (3cm);              \end{tikzpicture}         \end{document}


title: Lyx incorrect figure numbering

text: Just a quick question. I am currently working on writing my thesis. I have many figures and I want the numbering to be something like 4.1 or 5.3. Where the first number is my section number and the second resets with each new section. I've looked LyX FAQ and tried: `\setcounter{section}{sectionNumber}` Which works fine IF I convert each section into its own PDF (I have each 'chapter' in its own LyX file), but when I make a PDF of the entire paper (I'm using includes by the way) it still does figure 0.1 to 0.X throughout the paper. I have the set counter preamble in each of my files and I have the number figure by section module active in each of my files. Any suggestions?


title: PSTricks: Remove trailing zeros in axis labels

text: Consider the following example:               \documentclass{article}          \usepackage{pst-plot}          \begin{document}          \psset{xunit = 2}     \begin{pspicture}(3,1)     \psaxes[Dx = 0.5]{->}(3,1)     \end{pspicture}          \end{document}      ![output](http://i.stack.imgur.com/43anZ.jpg) Is it possible to get `1` and `2` instead of `1.0` and `2.0` (as with `0`) as axis labels? **Update** I've also asked this question on LaTeX Community (and now added Marco's answer).


title: How to get double angle bracket without using MnSymbol package?

text: I tried the `\llangle` and `\rrangle` from the `MnSymbol` package, which is OK. But the package also changed other things which I do not want. Please help.


title: Highlighting code introduces extra space

text: I am trying to highlight portions of code inside a `listings` environment. However, using `tikz` introduces some extra spaces that I do not understand and would like to ask how I can rid of them. Here is a small document that shows my problem:               \documentclass[10pt,a4paper,twoside,openright,titlepage,abstracton]{scrreprt} %report}     \usepackage{listings}     \lstset{language=Java,escapechar=!}          \usepackage{tikz}     \newcommand\eh{\tikz[remember picture]\node (end highlight){};\tikz[remember picture, overlay]\draw[yellow,line width=10pt,opacity=0.3](begin highlight)--(end highlight);}     \newcommand{\bh}{\tikz[remember picture]\node(begin highlight){};}               \begin{document}     \begin{lstlisting}     Lol rofl roflcopter     \end{lstlisting}     \begin{lstlisting}     Lol !\bh!rofl!\eh! roflcopter     \end{lstlisting}     \end{document}      Although I expected it to be yellow, you get the point: `rofl` has more spacing when highlighted : ![enter image description here](http://i.stack.imgur.com/piLUr.png)


title: Which is the appropriate inputenc option for Slovak?

text: I have written latex document in English. Now I want to rewrite the same document in Slovak. What I found is this: instead:               \usepackage[utf8]{inputenc}      just use this:               \usepackage{ucs}     \usepackage[utf8x]{inputenc}     \usepackage[slovak,english]{babel}     \newcommand\sktxt[1]{\foreignlanguage{slovak}{#1}}      Text written in Slovak would start: `\sktxt{<Slovak text>}`. It simply doesn't work with this simple makeover. The pdf output doesn't build. I'm using Windows/MiKTeX 2.9/TeXnicCenter and I usually build the Latex file (output as pdf) via shift-Ctrl-F5 or just simply in top panel - build.


title: Texstudio pdflatex doesnt have -aux-directory Alternative

text: If checked in my command line but my version of pdflatex running on a university windows system doesn’t have the option -aux-directory. So i made a bat file moving the pdf from the output directory to the root folder. However this bat file just contains 1 command               move buildDIR\%1 .       is there a way to do it without making a explicit bat file because now my pdflatex command looks like this.               pdflatex.exe  -synctex=1 -interaction=nonstopmode -output-directory=build  %.tex | "X://Data/Desktop/move.bat" "?m.pdf"      is it possible to do something like this in 1 go.               pdflatex <options> | move buildDIR\?m.pdf .      I dont seem to get the above command to work correctly. On a diffrent example but same problem if in the pre-complication phase i wane make a new folder called buildDIR with one extra command can that be done without making a .bat file


title: Table is not within the margins

text: I have set margins using the `geometry` package (for my resume). I have put up the table but it is going beyond the margins. And, how to bring the **Operating System** text between the two lines? Please help! The MWE:               \documentclass[12pt]{article}     \usepackage[left=2.54cm,right=2.54cm,top=2.54cm,bottom=2.54cm]{geometry}     \begin{document}     \begin{center}     \begin{tabular}{ l l }     \hline     \textbf{Operating Systems} & Windows XP, Windows 7, Windows 8 \\     & Ubuntu, Debian, Fedora \\     \hline     \textbf{Programming Languages} & C, C++, Core Java, Core Python, Basic C\#\\     \hline     \textbf{Web Technologies} & HTML5, CSS3, XML, Javascript, Node.js, PHP, JSP, ASP.NET\\     \hline     \textbf{Databases} & Oracle 10g, MySQL 5 \\     \hline     \textbf{Packages} & Netbeans 8.0, Microsoft Visual Studio 2008/2010/2012, Eclipse 5\\     \hline     \textbf{Linux} & Bash Shell Scripting     \end{tabular}     \end{center}     \end{document}       ![enter image description here](http://i.stack.imgur.com/64e5U.png)