title: Indented paragraphs

text: I want to show an indented paragraph in which indentation means the the top level condition is acquired (suppose a if then else structure) a copy of what I need is shown   ![Indented Structure](http://i.stack.imgur.com/suTUi.png) I have implemented this sample using the following code:               \documentclass{article}          \begin{document}          \newenvironment{myindentpar}[1]%     {\begin{list}{}              {\setlength{\leftmargin}{#1}}              \item[]     }     {\end{list}}          \begin{myindentpar}{1em}     \textbf{HelloMsg}      \end{myindentpar}          \begin{myindentpar}{2em}     This is a text to fill the line.          \textbf{HelloMsg.Hello}     \end{myindentpar}          \begin{myindentpar}{3em}      The Hello Message description goes here           \textbf{HelloMsg.Hello.Ack}     \end{myindentpar}          \end{document}      But frankly speaking it looks so odd to me. Do we have any better way of doing this? Do we have a package that depicts some vertical lines that shows which item is underneath of the other? (such a thing is so common in programming environments. Some slim lines are drawn to show where a block ends) **Edit** This section contains materials regarding the comments, it is not part of the main question.               \documentclass{article}          \begin{document}          this is the default indentation!!!          \noindent this is without indentation          \newenvironment{myindentpar}[1]%     {\begin{list}{}              {\setlength{\leftmargin}{#1}}              \item[]     }     {\end{list}}          \begin{myindentpar}{1em}     \textbf{HelloMsg (indented 1em)}      \end{myindentpar}          \begin{myindentpar}{2em}          \textbf{HelloMsg.Hello (indented 2em)}     \end{myindentpar}          \begin{myindentpar}{3em}           \textbf{HelloMsg.Hello.Ack (indented 3em)}     \end{myindentpar}          this is source of critic!          \newenvironment{herbertIndentPar}%     {\begin{list}{}       {\addtolength\leftmargin{1em}}        \item[]}     {\end{list}}          \begin{herbertIndentPar}     \textbf{Hello Herbert (I'm shifted 3em to the right! but my parameter says it must be shifted 2em one for the start of the paragraph and plus one for the passed 1em)}           \begin{herbertIndentPar}          \textbf{HelloMsg.Hello}          \begin{herbertIndentPar}           \textbf{HelloMsg.Hello.Ack}     \end{herbertIndentPar}     another line     \end{herbertIndentPar}     another line     \end{herbertIndentPar}          this is the source of critic (back to 1em indent)!          \end{document}      I am geting this output: ![alt text](http://i.stack.imgur.com/e5lS4.png)


title: Coloured math in beamer

text: I have a question: Is there any way to have math (everything between `$`s) in different colour than text (for example, `green`) in `beamer`?


title: Presentation Beamer [title page]

text: I want to make a cover page as the attached figure. The problem is that the `beamer` has, by default, the macros predefined: `\author{} \title{} ', ...` and their location is fixed by default. Could you help me? Here is my code:               \title[Short Paper Title]       {presentation}          \subtitle     {About some things}          \author       { Author}               \institute      {     Department of Computer Science\    University of Somewhere     }          \date      {\today}      ![enter image description here](http://i.stack.imgur.com/ucokO.png)


title: Disable macro effect with beamerarticle

text: \documentclass{article}     \usepackage{beamerarticle}     \begin{document}     \textcolor<3->{red}{Some text}     \end{document}      The previous code compiles fine thanks to the `beamerarticle` package. However, I do not only want it to compile but also to completely disable the overlay effect: in this case I want the text to stay black (as it is in the first two frames) when printed into an article. Is this possible? **Edit.** My use-case is the following: I have a collection of problems typeset in LaTeX that I use both as content for beamer slides and as source for printed material. Each problem is in his custom file, so I have something like:               \documentclass{beamer}     \usepackage{mybeamertheme}     \begin{document}     \mycustomimportcommand{problem1}     \mycustomimportcommand{problem4}     ...     \end{document}        And then on another file:               \documentclass{article}     \usepackage{mycustomarticleformatting}     \usepackage{beamerarticle}     \begin{document}     \mycustomimportcommand{problem1}     \mycustomimportcommand{problem4}     ...     \end{document}      Since the problems are typeset for a presentation, the code is filled with overlay specs: `\pause`, `\only`, etc. that I want to be ignored when I'm importing the code into articles. This works fine except when there are overlay aware macros as shown in the MWE.


title: Order of first/last-name for more than one author with amsrefs

text: I am using the `amsrefs` package with the `author-year` option. If I have two authors, I get in the reference for the author names the output: > LAST NAME, FIRST NAME and FIRST NAME LAST NAME               \documentclass{article}     \usepackage[author-year]{amsrefs}          \begin{document}     \begin{bibdiv}     \begin{biblist}          \bib{SokalB1998}{book}{      title={Fashionable Nonsense},      subtitle={Postmodern Intellectuals’ Abuse of Science},      author={Sokal, Alan},      author={Bricmont, Jean},      publisher={Picador USA},      address={New York},      date={1998}      }           \end{biblist}      \end{bibdiv}      \end{document}      Is there a way to get a more consistent output like: > LAST NAME, FIRST NAME and LAST NAME, FIRST NAME


title: Using TikZ to depict intonation

text: I am looking into using TikZ to represent pitch patterns over a phrase or sentence (intonation). I've got it to produce some useful results, already, as in the attached MWE (although in 1.1 the baselines don't seem to level up).               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode     \documentclass[a4paper,12pt, oneside]{article}          \usepackage{fontspec}     \defaultfontfeatures{Mapping=tex-text, Scale=MatchLowercase}     \setmainfont{Charis SIL}          \usepackage{tikz}          \begin{document}          \section{Marking intonation using TikZ}          \subsection{Setting words on different levels}          \begin{table}[hbtp]     \begin{tabular}{ll}     \cline{1-1} \noalign{\smallskip}     \tikz[x=1mm,y=1mm,baseline=12] \draw (0,10) node {\underline{Where}} (10,2) node {are} (20,2) node {you} (30,6) node {\underline{go}} (40,0) node{ing?}; & \textit{neutral/default - stress represented by underlining}\\     \cline{1-1} \noalign{\smallskip}     \tikz[x=1mm,y=1mm,baseline=12] \draw (0,0) node {Where} (10,10) node {\underline{are}} (20,5) node {you} (30,2) node {go} (40,0) node{ing?}; & \textit{ e.g. in response to ``I'm not going to the shops after all.''}\\     \cline{1-1}     \end{tabular}     \end{table}          Why do ``are'' and ``you'' in the first example appear on slightly     different levels, even though they are both set to 1mm on the y axis?      Likewise for ``where'' and ``ing'' in the second example.          I'm not sure I'm using ``baseline'' properly here!          \subsection{As above, but boxed}          \begin{tikzpicture}     \node[draw] at (0,1) {\underline{Where}};     \node[draw] at (1,0.1) {are};     \node[draw] at (2,0.1) {you};     \node[draw] at (3,0.6) {\underline{go}};     \node[draw] at (4,0) {ing?};     \end{tikzpicture}\\          Still have to figure out the difference between ``\textbackslash draw node'' and ``\textbackslash node[draw]''!          \subsection{Graphical contour}          \begin{table}[hbtp]     \begin{tabular}{l}     \tikz[x=1mm,y=1mm,rounded corners=2mm] \draw[very thick, gray](0,10)--(10,2)--(20,2){[red]--(30,6)--(40,0)}; \\     Where are you~~~going?     \end{tabular}     \end{table}          \begin{table}[hbtp]     \begin{tabular}{l}     \tikz[x=1mm,y=1mm,rounded corners=2mm] \draw[very thick, gray](0,10)--(12,2)--(23,2){[red]--(26,6)--(35,0)}; \\     Where are you going?     \end{tabular}     \end{table}          This is preferable to setting the individual words on different levels, but     requires trial and error in (i) matching the length of the whole contour to     the utterance, and (ii) spreading the parts of the contour to match the words     of the utterance, either by spacing the words (first example) or adjusting the     contour points (second example).          \end{document}      However, my main query is whether anyone has a method for dealing with the issue in 1.3. This involves trial-and-error in fitting the contour to the words, and I was wondering if there is any way to somehow anchor particular contour coordinates to particular syllables. I know that lines can be attached to nodes, but I haven't been able to find a way of getting the lines to "float" above the nodes. Any suggestions for allowing a line of text to be marked with anchor points as it is typed, with the contour then being drawn between these? ![enter image description here](http://i.stack.imgur.com/z76El.png)


title: List section in pdf bookmarks, but omit in LaTeX table of contents

text: Normally (under `pdflatex` with `hyperref`) a section added with `\section` will appear in both the LaTeX table of contents, and the pdf metadata; while a `\section*` will be omitted from both. Is it possible to include a (sub)section in the metadata, but not list it in the TOC? (The use-case in question is end-of-chapter exercises and notes in a book: we want to keep the TOC uncluttered, but having bookmarks for these in the pdf is very convenient.)


title: input index file not found

text: Dear experts I am using TeXnicCentre. After compiling, while I get an output pdf file, an error is found that says `Could't find input index file *pathname* nor *pathname*.idx` I am afraid I cant pinpoint the error. Please help. Many thanks Abhimanyu Here are my (simplified) tex and bib files               %TeX file     \documentclass{article}     \author{Abhimanyu Arora}     \title{Experiments}     \maketitle     \begin{document}     \section{Introduction}     This is a simple trial file. For more details refer \cite{Arora}     \bibliography{ref}     \bibliographystyle{plain}     \end{document}               %Bib file     @article{Arora,       author = {Arora, Abhimanyu},       year = {2011},       title = {How to get unstuck},       journal = {American Economic Review},       volume = {87},       number = {1},       pages = {1--30},     }


title: How can I effect line breaks within the title without hardcoding \\'s in \title?

text: Although I do need line breaks within my title for my document's title page (I'm using the `book` class), I'd like to avoid hardcoding line breaks in the argument passed to the `\title` command, for three reasons:   1. I always endeavour to separate form and content, for maintainability reasons.    2. The title may need to be inserted elsewhere in the document, in places where line breaks within it are not warranted.   3. I pass my title to`\hypersetup{pdftitle=...}`; `hyperref` returns a warning, > Token not allowed in a PDF string (PDFDocEnconding):(hyper ref) removing > `\\' if the title contains some `\\\`, and I want to limit the number of compilation warnings to the bare minimum. How can I effect line breaks at specific places within the title, upon inserting the latter somewhere in my document, _without_ hardcoding `\\\`'s in the `\title{...}` command? What's the best practice?               \documentclass{book}          \author{Me, me, me}     %\title{Me, myself, and I}      % compiles without mishap; strictly content     \title{Me,\\ myself, \\ and I}  % compilation warnings occur; form and content are mixed          \usepackage{kantlipsum}     \usepackage{hyperref}     \makeatletter     \hypersetup{         pdftitle = \@title,     }     \makeatother          \begin{document}         \maketitle         \kant     \end{document}


title: Undefined control sequence from template

text: I have problem with my template. Whenever I want to include one of object from my template it gives me a problem;               Undefined control sequence      My `file.tex`:               \documentclass[12pt]{article}     \usepackage{dipp}     \usepackage[utf8, latin2]{inputenc} % Kódování     \usepackage[english, czech]{babel} % Čeština     \usepackage[T1]{fontenc} % České fonty     \begin{document}     \inputencoding{utf8}     \skola{text}     \fakulta{text}     \titul{text}{text}{text}{text}     \podekovani{text}     \prohlaseni{text...}     \abstract{abstracteng}{text} %% the error ocurs after adding this line     %\abstrakt{asdd}{asdd}     \obsah %%content     %%ok text stuff     \end{document}      My `style.tex`:               \def\abstract#1#2{\cleardoublepage\vspace*{3cm}{\english        \noindent {\sffamily\bfseries Abstract}\par\medskip        \noindent #1 \par \medskip #2}}          \def\abstrakt#1#2{\vspace*{3cm}{\noindent       {\sffamily\bfseries Abstrakt}\par\medskip        \noindent #1 \par \medskip #2}}      My error:               ! Undefined control sequence.     \abstract ...ardoublepage \vspace *{3cm}{\english                                                    \noindent {\sffamily \bfse...     l.33 \abstract{abstracteng}{text}          ?       Do you know what could be wrong with this? It makes me very bloody minded.


title: Alternate Row colors in longtable

text: I am using the method proposed by Nikos Alexandris in "How to apply alternate row coloring in a longtable in LyX?" works to a limited extent but the shaded rows does not fill the whole width of page. Shading per cell, but the shading breaks column lines and there are gaps in shading. here is my example tex code that does the broken shading. The tex gets auto generated so I am just showing a short table. real data is longer and should typically span pages with repeated headers.               \date{\today}          \documentclass[9pt]{article}          \usepackage{graphicx}          \usepackage{longtable}          \usepackage[margin=0.5in]{geometry}          \usepackage{fancyhdr}          \LTchunksize=200          \setlength{\parindent}{0cm}          \title{test}     \author{R}     \setlength{\headheight}{0.4in}     \setlength{\headwidth}{\textwidth}          \usepackage[table]{xcolor}          % define lightgray          \definecolor{lightgray}{gray}{0.9}          % alternate rowcolors for all long-tables          \let\oldlongtable\longtable          \let\endoldlongtable\endlongtable          \renewenvironment{longtable}{\rowcolors{2}{white}{lightgray}\oldlongtable} {     \endoldlongtable}          \begin{document}          \section{Sector}          \begin{longtable}{ @{\extracolsep{\fill}} |l | r | r | r | r | r|}          \hline           {} & Beta & Phys  & Phys & Phys  & comp \\          Industry Code & {} & {} & {} & {} & {} \endhead          \hline           Materials &   16,365,792 &   13,419,455 &   13,419,455 &       0.00 &     -201,593 \\     Goods &      471,925 &    1,110,412 &    1,110,412 &       0.00 &      -11,947 \\     Services &    7,122,991 &    8,511,225 &    9,492,570 &     -981,345 &      -75,117 \\     Banks &    5,078,280 &    6,123,238 &   12,084,671 &   -5,961,433 &      -69,738 \\     Health &    2,141,346 &    5,059,382 &    5,059,382 &       0.00 &      -26,319 \\     Industrials &   -6,013,491 &   -4,758,346 &    6,036,445 &  -10,794,791 &        3,722 \\     row &   -4,093,746 &   -3,755,730 &       0.00 &   -3,755,730 &       45,628 \\     row &   -1,753,606 &   -1,006,601 &    2,533,792 &   -3,540,393 &      -18,962 \\     Consumer &    2,227,195 &    2,317,581 &    2,317,581 &       0.00 &      -30,632 \\     All &   20,808,544 &   25,160,345 &   54,728,908 &  -29,568,563 & nan \\          \hline           \end{longtable}          \end{document}


title: Remove\begin{Schunk} \begin{Sinput}

text: I am using Sweave to produce my tex. In addition I use lstlisting to highlight the source code as below.               \begin{lstlisting}[caption={Computation $\widehat Y_4$ and its Residue},label=list:5computationYpredict,captionpos=b]     \begin{Schunk}     \begin{Sinput}     > options(width = 80, continue = " ", size = "scriptsize")     > formula(mdl)     \end{Sinput}     \end{Schunk}     \end{lstlisting}      Is this possible to skip the `\begin{Schunk}`, `\begin{Sinput}`, `\end{Sinput}`, and `\end{Schunk}` from the output of the lstlisting? I need output as follows:               > options(width = 80, continue = " ", size = "scriptsize")     > formula(mdl)      after compile the tex. Thanks Satria


title: Resolution (dpi) for \includeimage pictures and pdflatex

text: I am trying to create a pdf file with some pictures in it. Those are PNG files with 300dpi. I use texlive and pdflatex from Debian Squeeze. A simple code of my document would be:               \documentclass[a4paper,12pt,oneside]{article}     \usepackage[DVIoutput=false,tracking=false,spacing=true,kerning=true]{microtype}     \usepackage{cmap}     \usepackage[pdftex]{graphicx}     \usepackage[pdftex,plainpages=false]{hyperref}     \usepackage{fullpage}          \usepackage[ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{float}     \usepackage[section]{placeins}     \usepackage[tophrase={\,bis\,}]{siunitx}     \usepackage{translator}     \pdfimageresolution=300          \setlength{\parindent}{0pt}     \usepackage[font=footnotesize,labelfont=bf]{caption}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%%%%%%%%%%%%%%%%%%%%% Begin of my document %%%%%%%%%%%%%%%%%%%%%%     \begin{document}     \begin{figure}[h]         \begin{center}                 \includegraphics{picture.png}         \end{center}         \caption{picture with 300 DPI}     \end{figure}     \end{document}      As you can see, I told pdflatex that the resolution of my images is 300dpi. When I put them into my document I see strange behavior:   * My image is 300dpi, my pdflatex setting is 300dpi -> image appears   smaller in my document then it should   * My image is 100dpi, my pdflatex setting is still 300dpi -> image has correct size in my document   * According to the output of `\the\pdfimageresolution` it is always set to 300dpi I want my images with 300dpi to appear in correct size in my document without scaling. What am I missing?


title: luaotfload: how to use font in current directory?

text: I'd like to use a font in the current directory with luaotfload. I tried to generate the database:               OSFONTDIR=$PWD mkluatexfontdb      but this gives me endless output of:               $ OSFONTDIR=$PWD mkluatexfontdb          luaotfload | Updating the font names database:     luaotfload | Font names database not found, generating new one.                  This can take several minutes; please be patient.     luaotfload | Updating the font names database:     luaotfload | Font names database not found, generating new one.                  This can take several minutes; please be patient.     luaotfload | Updating the font names database:     ...      What can I do do to use a (OTF) font in the current directory with luaotfload?


title: Mindmap level specific child distance

text: Using the answer I got to this question, I have a mindmap with 6 children, each with 2-5 children of their own. **MWE:**               % Author: Till Tantau     % Source: The PGF/TikZ manual     \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{mindmap,trees}          \begin{document}     \resizebox{!}{4 in}{%        \begin{tikzpicture}           \path[              mindmap,              concept color=black,              text=white,              grow cyclic,              segment length=20cm           ]           node[concept] {Main}           [clockwise from=0]           child[concept color=green!50!black] {%              node[concept] {A}              [clockwise from=65]              child {node[concept] {A1} }              child {node[concept] {A2} }              child {node[concept] {A3} }           }             child[concept color=blue] {%              node[concept] {B}              [clockwise from=-20]              child {node[concept] {B2} }              child {node[concept] {B3} }           }           child[concept color=red] {%              node[concept] {C}              [clockwise from=5]              child {node[concept] {C1} }              child {node[concept] {C2} }              child {node[concept] {C3} }              child {node[concept] {C4} }              child {node[concept] {C5} }           }           child[concept color=orange] {%              node[concept] {D}              [clockwise from=-145]              child {node[concept] {D1} }              child {node[concept] {D2} }           }           child[concept color=magenta] {%              node[concept] {E}              [clockwise from=-180]              child {node[concept] {E1} }              child {node[concept] {E2} }              child {node[concept] {E3} }           }           child[concept color=brown] {%              node[concept] {F}              [clockwise from=-245]              child {node[concept] {F1} }              child {node[concept] {F2} }              child {node[concept] {F3} }              child {node[concept] {F4} }           };        \end{tikzpicture}     }     \end{document}      **Output:** ![enter image description here](http://i.stack.imgur.com/bfcFm.png) **Problem:** I need the level 1 children (`A`-`F`) to be farther away from the parent (`MAIN`) as even now, `F` is too close to `A` and `F3` is overlapping with `A1`. Furthermore, if I want each level 1 child to have 5 or 6 children of their own, then there will be serious overlap. How do I go about increasing the sibling distance on a per child/node, or at least a per level basis.


title: How to adjust the blank space between the top of the left curly brace and the contents?

text: I want to type a system of equations delimited by the left curly brace. And I tried using the \left{ with aligned, and cases, and array, and numcases. But there are some difference between the results of these four methods. Here is the screen-shots and the source file: ![screenshot](http://i.stack.imgur.com/vtay5.png)               \documentclass{article}          \usepackage{amsmath,amssymb,cases}          \begin{document}           \begin{align*}          &\left\{\begin{aligned}            &x=x,\\             &u=u(x,t).               \end{aligned}\right.                  ~~~&& \begin{cases}              x=x,\\               u=u(x,t).               \end{cases}              ~~ &&                \left\{\begin{array}{l}              x=x,\\           u=u(x,t).             \end{array}\right.\\           &\text{align} && \text{cases} &&\text{array}                 \end{align*}                 using numcases:           \begin{numcases}{}             x=x,\nonumber\\              u=u(x,t). \nonumber           \end{numcases}     \end{document}      My question is how can I adjust the space between the top tip of left curly brace and the first line of the equations, so that the results of using array etc is the same as that of using numcases. At present, I have no way of doing this. ![enter image description here](http://i.stack.imgur.com/ZBPjx.png) When I tried using scalerel.sty, the result is as above: I do not know why? May be I was wrong in installing the scalerel.sty.


title: Alpha channel in colortbl

text: I'm using the `colortbl` package to color table cells. I've combined this w/ the `xcolor` package to define my own colors. However, it appears that `xcolor` does not support transparency. I saw the package `transparent`, but it is oriented toward text and I wasn't able to set the transparency level of a defined color. Are there any packages that support alpha color channels?


title: Increment/Decrement variables in TikZ

text: I need to increment/decrement variables in TikZ, i.e., I have `\def\a{0}` and then I need to perform `\a=\a-1.5;` The code compiles, but it does not change the value of the variable `\a`. How do I do this?


title: Where can I find spanish documentation for creating LaTeX classes?

text: Searching the web for spanish documentation about creating classes for LaTeX, I found this website belongs to the class of "Scientific text processing in high quality" (Procesamiento de textos científicos en alta calidad) at the University of Valladolid, Spain. Specifically the PDF file apuntes8.pdf contains information about LaTeX programming techniques. Also, the other documents contains very good information about basic and advanced use of LaTeX for text processing. I thought that is a good idea post this information here. :) If you know another source of spanish information for creating LaTeX classes feel free to share!.


title: How to evenly space out nodes or in tikz?

text: What I want is a block diagram, with a central node called "API", with a node on the left called "User" and a node on the right called "Workflow". However, because workflow node has lengthier text, it squishes up against the other nodes: ![enter image description here](http://i.stack.imgur.com/9u7T7.png) Now I _know_ that I can increase the `node distance` argument, but is there a way to say something like "Always have nodes separated by a given distance"? So that it does not depend on the amount of size of the node "rectangle"? Here is my source for the diagram:               \begin{tikzpicture}[node distance=15mm]     \tikzstyle{block} = [inner sep=2mm, rectangle, draw, fill=blue!20]          \node [block] (api) {API};     \node [block, right of=api] (workflow) {Workflow};     \node [block, left of=api] (user) {User};          % Connect the blocks     \draw [->] (user) to (api);     \draw [->] (api) to (workflow);          \end{tikzpicture}      EDIT: I should be able to use arrows that can go in both directions, and add new nodes above and below.


title: Node next to other tikz

text: I want to write a code to get a network package structure.                       1          var         4     -------------------------------------     |   Control   |    Casa   |   Mia   |      Currently I have the code below, but I have noticed that I get two lines in stead of 1 between the cell Control and Casa. Any help?               \documentclass{article}          \usepackage[latin9]{inputenc}     %\usepackage[utf8x]{inputenc}     %\usepackage[spanish]{babel}     %\usepackage[spanish]{translator}     \usepackage[OT1]{fontenc}          %TikZ stuff     \usepackage{tikz}     \usepackage{pgfplots}     \usepackage{pgf}     \usetikzlibrary{shapes,arrows,automata,plotmarks,positioning}                \begin{document}               \begin{tikzpicture}%[scale=1.5]         \tikzstyle{every path}=[draw, font=\small]              \node[right,draw, minimum width=2cm,minimum height=0.8cm,fill=white](b0) {Control};         \node[right=0cm of b0, draw, minimum width=2cm,minimum height=0.8cm,fill=white](b0) {Casa};     \end{tikzpicture}          \end{document}      Edit 1: Now I have this, but figure is not center, and don't now how to make a line from the corners of control to get to the total of the other row![enter image description here](http://i.stack.imgur.com/SmCFe.png)               \begin{figure}         \newcommand{\size}{\linewidth}          \begin{tikzpicture}%[scale=1]         \tikzstyle{every path}=[draw, font=\small]              \node[right,draw, minimum width=0.15*\size,minimum height=0.8cm,fill=white](b0) {Control};         \node[above=-0.2 of b0, minimum width=0.15*\size,minimum height=0.8cm] {1};         \node[above left=-0.2 and -0.5 of b0, minimum width=0.2*\size,minimum height=0.8cm] {byte};              \node[right=0cm of b0, draw, minimum width=0.2*\size,minimum height=0.8cm,fill=white](b1) {Longitud};         \node[above=-0.2 of b1, minimum width=0.2*\size,minimum height=0.8cm] {1};                    \node[right=0cm of b1, draw, minimum width=0.6*\size,minimum height=0.8cm,fill=white](b2) {Valor};         \node[above=-0.2 of b2, minimum width=0.6*\size,minimum height=0.8cm] {8};                         \node[below left=1 and -2 of b0 ,draw, minimum width=0.2*\size,minimum height=0.8cm,fill=white](h0) {Bloqueo};         \node[below=-0.2 of h0, minimum width=0.15*\size,minimum height=0.8cm] {1};         \node[below left=-0.2 and -0.5 of h0, minimum width=0.15*\size,minimum height=0.8cm] {bit};              \node[right=0cm of h0, draw, minimum width=0.3*\size,minimum height=0.8cm,fill=white](h1) {M\'{a}ximo n$^o$ intentos};         \node[below=-0.2 of h1, minimum width=0.2*\size,minimum height=0.8cm] {3};                    \node[right=0cm of h1, draw, minimum width=0.2*\size,minimum height=0.8cm,fill=white](h2) {RSV};         \node[below=-0.2 of h2, minimum width=0.2*\size,minimum height=0.8cm] {1};                    \node[right=0cm of h2, draw, minimum width=0.4*\size,minimum height=0.8cm,fill=white](h3) {Intentos restantes};         \node[below=-0.2 of h3, minimum width=0.4*\size,minimum height=0.8cm] {3};                    \end{tikzpicture}     \caption{Mi figura}     \end{figure}


title: Setting a global limit for image dimensions

text: I have a collection of images of different sizes. I would like to set a limit on their width, such that if the image is wider than this limit it will be scaled down, but if it is smaller then the image is inserted at its native size. Right now the only way I know how to manipulate the image width is with:               \includegraphics[width=SOMEWIDTH]{path/to/my/image}      But this sets the width regardless of the current image size. Two questions:   * is it possible to limit the image width as described for a single image?   * is it possible to configure a global setting so that a limit is applied to all images, without need to use `[width=SOMEWIDTH]` on individuals?


title: Citing a reference in a table

text: I was preparing a table in my research paper where I was having a formula in one column and the name of the Mathematician who discovered it in another column. I also want to cite the paper of the Mathematician where this formula is given besides the Mathematician's name (in the same column). For example, `Ramanujan [21]`. However, LaTeX doesn't like it and I am getting errors like > Command `\mdseries` invalid in math mode and > Command `\upshape` invalid in math mode which I don't understand. I would be really grateful if someone can help me with circumventing these errors.


title: Extracting coordinates from a picture to recreate a shape using asymptote

text: In @g.kov's excellent solution to a question of mine on how to draw "blobs", he seems to have extracted a large batch of coordinates from a picture that I posted in my question. How did he do this? _I added the graphs the asymptote and graphs tags, but I'm not sure they are appropriate, feel free to adjust the tags._


title: Hanging indentation with linguex (Why does this work?)

text: I wanted to create `linguex` examples where the free translation line has a hanging indent of 21.3 big points. I found that use of the `hanging` package, which is simple enough, does not work (second example in code). Reading the relevant section of the TeXbook (after three days) yielded a less simple solution which does work (first example in code). Why does use of the `hanging` package fail?               \tracingmacros=1     \documentclass{article}     \usepackage{hanging}     \usepackage{linguex}     \usepackage{lipsum}          \begin{document}          \ex .     \gll    Mundus vult decipi      \\             world want deceive      \\     \glt    \dimen0=\the\textwidth             \dimen1=\the\textwidth             \dimen2=21.3bp             \advance\dimen0 by -\the\labelwidth             \advance\dimen1 by -\the\labelwidth             \advance\dimen1 by -\dimen2             \advance\dimen2 by \the\labelwidth             \parshape=2 \the\labelwidth \dimen0 \dimen2 \dimen1             \lipsum[2]                    \ex .     \gll    Mundus vult decipi      \\             world want deceive      \\     \glt    \hangpara{21.3bp}{2}\lipsum[2]          \end{document}      Output of the above code is as follows: ![enter image description here](http://i.stack.imgur.com/Ci4SA.png)


title: Highlighting extremal values in table when all values are not the same data type

text: I have a table generated by pgfplotstable, and would like to highlight the maximum value in each row for a particular number of columns. Here is a simple, completely made up, example that should illustrate my problem:                                                Car 1    Car 2    Car 3    Car 4      Engine       Power(bhp)          300      200      350      250                   Torque (Nm)         200      250      120      400      Dimensions   Wheel base (cm)     250      200      240      220                   Ground clearance    ...                         ...      I'd like to make the maximum value in each row, excluding the first two columns, bold. This is a slight extension of Highlighting Extremal Values in Table, which has an excellent solution that I am trying to extend. (Unfortunately I can't add a comment to that thread because I have just joined stackexchange). The code I need from the previous thread is               \newcommand{\findmax}[3]{         \pgfplotstablevertcat{\datatable}{#1}         \pgfplotstablecreatecol[             create col/expr={%             \pgfplotstablerow         }]{rownumber}\datatable         \pgfplotstablesort[sort key={#2},sort cmp={float >}]{\sorted}{\datatable}%         \pgfplotstablegetelem{0}{rownumber}\of{\sorted}%         \pgfmathtruncatemacro#3{\pgfplotsretval}         \pgfplotstableclear{\datatable}     }          \pgfplotstableset{         highlight row max/.code 2 args={             \pgfmathtruncatemacro\rowindex{#2-1}             \pgfplotstabletranspose{\transposed}{#1}             \findmax{\transposed}{\rowindex}{\maxval}             \edef\setstyles{\noexpand\pgfplotstableset{                     every row \rowindex\space column \maxval\noexpand/.style={                         postproc cell content/.append style={                             /pgfplots/table/@cell content/.add={$\noexpand\bf}{$}                         },                     }                 }             }\setstyles         }     }      The table is read in with `\pgfplotstableread{...}\data` and then the above code called using               \pgfplotstabletypeset[         highlight row max ={\data}{1},         highlight row max ={\data}{2},         highlight row max ={\data}{3},         ...     ]{\data}      If this code is run for my example then it fails because the first two columns are not a float for the comparison. I understand the above code and have tried to extend it but am not an expert at tex. I have managed to get a non general solution by limiting the columns that are generated by the transpose command:               pgfplotstabletranspose[columns={Car 1,Car 2,Car 3,Car 4}]{\transposed}{#1}      then the index of the column returned from \findmax just has to be increased to account for the offset. I would like a more general approach that will work for any table. My current idea is to change the contents of any cell in the transposed table that is not a float to 0. I'm currently unable to find a way to do this.


title: "Stroke" a predefined path

text: I would like to use the name of a previous defined path to draw it later on in my code. I have included an example below, where I define two paths, "D1" and "S1", and then later on, draw these very sames paths. In the example, I draw the paths, using essentially the same code, which is redundant. Is there a way to recall the name of the path and draw a line using the previously defined path?               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{intersections}          \begin{document}          \begin{tikzpicture}[yscale=3,xscale=3]          %Pre-Define Paths          \path[name path=D1] (0,1.8) -- (1.8,0);     \path[name path=S1] (0,0) -- (1.8,1.8);     \path[name intersections={of=D1 and S1,by=EQ}];          %axis          \draw[->,thick] (0,0) -- (3,0) node[right,fontscale=0] {Quantity};     \draw[->,thick] (0,0) -- (0,2) node[left,fontscale=0] {Price};          %Initial Equilibrium          \fill[black] (EQ) circle (.5pt) node[right] {$EQ$};     \draw[blue] (0,1.8) -- (1.8,0);     \draw[red] (0,0) -- (1.8,1.8);               \end{tikzpicture}          \end{document}


title: Listing code going out of page

text: I'm using listings to display my codes. I'm getting some issues. First, the codes when it is too long, it is going out of page as shown here. Secondly, the codes are in SPARQL. It is recognising some of the variables I use as SQL keywords and highlighted them as shown here where _Class_ is inspite being a variable is being highlighted as a keyword. My codes are as follows:               \begin{lstlisting}[captionpos=b, caption=Retrieval of Individuals, label=listing:sparql_getallindividuals,        basicstyle=\ttfamily]     PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>     PREFIX  wo:   <http://purl.org/ontology/wo/>     PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>     SELECT  ?individual ?type ?name       WHERE         { ?individual rdf:type ?type .           ?individual wo:commonName ?name           FILTER ( ?type IN (wo:Kingdom, wo:Phylum, wo:Class, wo:Order, wo:Species, wo:Family, wo:Genus) )         }     \end{lstlisting}      Any help would be greatly appreciated This is preamble of my report:               \usepackage{listings}     \usepackage{color}          \definecolor{dkgreen}{rgb}{0,0.6,0}     \definecolor{gray}{rgb}{0.5,0.5,0.5}     \definecolor{mauve}{rgb}{0.58,0,0.82}     \definecolor{darkblue}{rgb}{0.0,0.0,0.6}     \definecolor{cyan}{rgb}{0.0,0.6,0.6}           \lstset{frame=tb,       language=Java,       showstringspaces=false,       columns=flexible,       numbers=none,       commentstyle=\color{dkgreen},       stringstyle=\color{mauve},       tabsize=3     }     \lstdefinelanguage{XML}     {       morestring=[b]",       morestring=[s]{>}{<},       morecomment=[s]{<?}{?>},       stringstyle=\color{black},       identifierstyle=\color{darkblue},       keywordstyle=\color{cyan},       morekeywords={xmlns,version,type,ma-id}% list your attributes here     }


title: Font export from Inkscape problem

text: Why is font-size, font-color and font-type missing in the resulting image.pdf_tex? I use Inkscape on Ubuntu and save as pdf with PDF+LaTex option. This message appear in the image.pdf_tex file:               \errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}%      This is also in the image.pdf_tex file:               \put(0.11060533,0.4582626){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{A small black text in Liberation Sans}}}%         \put(0,0.36561993){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{A bigger black text in Lib. Mono}}}%         \put(0.53732692,0.27297743){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{A small red text in Liberation Sans}}}      In Inkscape, the three texts are visible as they are described.


title: Algorithm and IEEEtran

text: I'm trying to write an algorithm in a `IEEEtran` LaTeX template and it doesn't work in any way.               \usepackage{algorithm}     \usepackage{algorithmc}          %\begin{algorithm}[H]     \begin{algorithm*}     \caption{ASGP Merge and Pruning Step}     \label{alg:stuff}     \begin{algorithmic}[1]     \REQUIRE {$stuff$}     \STATE $stuff$     \RETURN $stuff$     \end{algorithmic}     %\end{algorithm}     \end{algorithm*}      but this is what I get: > ! LaTeX Error: \begin{ALC@g} on input line 31 ended by \end{algorithmic}. > > See the LaTeX manual or LaTeX Companion for explanation. Type H for > immediate help. ... > > l.47 \end{algorithmic} I already tried use `\begin{figure*}` instead of `\begin{algorithm*}` but that also doesn't work. I saw a post about using `\begin{algpseudocode}`, but that isn't working either, If I also `\include{algorithmic}`: > ! LaTeX Error: Command \algorithmicindent already defined. Or name \end... > illegal, see p.192 of the manual. If not, I get: > \REQUIRE undefined control sequence. Can anybody help me with that?


title: Local font installation problems

text: Recently I tried to reinstall the MathTimePro II fonts in my local `texmf` directory. I already have Lucida fonts installed which works fine. So I carefully copied all the relevant files/folders to the directories, added the new Map entry in the local updmap.cfg file and executed `texhash`/`mktexlsr` and `updmap-sys`. However my new font does not work, I get the following error:               (/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/size10.clo))     (/usr/local/texlive/2011/../texmf-local/tex/latex/mtpro2/mtpro2.sty)     (./MTPro2 LaTeX test.aux)     [1{/Users/hesam/Library/texlive/2011/texmf-var/fonts/     map/pdftex/updmap/pdftex.map}] [2] [3] (./MTPro2 LaTeX test.aux)     kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 4+0/600 --dpi     2400 mt2exf gsftopk: fatal: map file `cid-base.map' not found.     mktexpk: don't know how to create bitmap font for mt2exf. mktexpk:     perhaps mt2exf is missing from the map file. kpathsea: Appending font     creation commands to missfont.log.  )          !pdfTeX error: /usr/texbin/pdflatex (file mt2exf): Font mt2exf at 2400     not foun d          ==> Fatal error occurred, no output PDF file produced!      It knows where to find `mtpro2.sty` in the local directory but can't find the fonts which are basically next door! I have gone through a lot of online remedies but none have helped. I even restored the `pdftex` to an older version and started all over. The problem seems to be that the `pdftex.map` file does not have the fonts despite there being a map entry for mtpro2. **PS:** I am using TeXShop/TeXLive (2011) on OS X 10.6.


title: How to use siunitx to write 100 MBps?

text: I want to show `100 MBps` (one hundred mega byte per second) in my article. How to make use of siunitx package to produce the rate correctly? The following outputs are not what I want to get. ![enter image description here](http://i.stack.imgur.com/ZWaOW.png)


title: Disallowing line break before dash (en dash and em dash)

text: In Polish typography dash (pol. _myślnik_ ) should not be put after a line break. Below you can find badly and correctly typed samples using en dash (pol. _półpauza_ ) and em dash (pol. _pauza_ ).               \documentclass[12pt]{article}     \usepackage[paperwidth=95mm,paperheight=55mm,margin=5mm,right=24mm,marginparsep=5mm]{geometry}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{microtype}     \usepackage{xcolor}     \pagestyle{empty}     \begin{document}     % line break before a dash is a sin according to Polish typography rules     \leavevmode\marginpar{\textsc{\color{purple}źle\\(bad)}}%     To jest maciupeńki test półpauzy -- na Zachodzie nazywanej \emph{en dash}.  {\color{orange}\hfill~--}     \par \emph{Em dash} za to nazywamy pauzą --- obecnie dość rzadko spotykana. {\color{orange}\hfill~---}     \vfill     % line break after a dash -- this is the way it should be done     \leavevmode\marginpar{\textsc{\color{teal}dobrze\\(good)}}%     To jest maciupeńki test półpauzy~-- na Zachodzie nazywanej \emph{en dash}.  {\color{orange}\hfill~--}     \par \emph{Em dash} za to nazywamy pauzą~--- obecnie dość rzadko spotykana. {\color{orange}\hfill~---}     \end{document}      ![enter image description here](http://i.stack.imgur.com/0vddb.png) To obtain correct result I had to use non-breaking space (tie) before each dash. **Is it possible to fix behavior of all en/em dashes surrounded by normal spaces in LaTeX document?** _Side note_ : I am not asking about workarounds requiring preprocessing, like using `s/ -- /~-- /` in Vim/sed/perl/etc.


title: How can I redefine the \verb|...| command?

text: I'd like to redefine the `\verb|...|` command so that it had a light-gray background and a little bit darker border around it, and a little bit of padding to make this background "box" noticable. Anyone knows how to do that? If that is not possible to do easily, can I define a new command that acts like `\verb|...|` and does that?


title: Spacing around image

text: Knuth is on record that he incorporated approximately 100 typographical rules in TeX. I am struggling to discover the balance. Consider the figure below, ![enter image description here](http://i.stack.imgur.com/8T7mx.png) What should be the amount of space around the image? In the minimal below, I tried to relate it to `baselineskip` after a few experiments I used the figures as shown in the minimal. Having the image flush with the outer margin looked wrong to me and crying for a little bit of optical correction. This question was inspired by Apply \intextsep at top of page, that from a typography point of view looked wrong. Here is the MWE.               \documentclass[imperial,11pt]{octavo}     \usepackage[english,latin]{babel}     \usepackage{microtype}     \usepackage{graphicx}     \usepackage{wrapfig}     \usepackage{xcolor,calc}     \setlength{\parindent}{1em}     \setlength{\parskip}{\baselineskip}     \newcommand*\WarningHead[1]{%       \parbox{\linewidth}{\textbf{#1}}\vspace{10px}%     }     \newcommand*\WrapFigure[1]{%       %\ifhmode\else\leavevmode\vspace*{\dimexpr(-\normalbaselineskip+10pt)}\fi%       \setlength\intextsep{5pt}%       \setlength{\columnsep}{\baselineskip}     \begin{wrapfigure}{r}[-15pt]{3cm}%         \raggedleft% right align the figures         \includegraphics[height=8\baselineskip]{graphics/13}%     \end{wrapfigure}     }%     \newcommand*{\lorem}{\parindent1em     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pellentesque iaculis nunc eget congue. Etiam lobortis nisi velit. Proin tristique massa a lectus ullamcorper semper. Aenean ut dignissim diam. Integer ullamcorper eros nibh. Cras molestie neque quis lectus lobortis egestas. Maecenas vel tortor in nulla sagittis venenatis. Nulla ac eros dui, eget lacinia ante. Fusce elementum nisl ac tortor hendrerit id lacinia orci malesuada. Praesent eu iaculis mi. Vestibulum sodales tempor rutrum. }     \begin{document}     \hrule     \unskip     \begin{center}     \unskip     \begin{minipage}{12cm}      \lorem     \WrapFigure{foo}     \textbf{Mi 12 Kaizer Yacht}.\quad \lorem     \end{minipage}     \end{center}     \hrule     \end{document}      With graphics on demo I was getting weird sizes here is a link for the stamp, if you want to use it. Although wrapped figures are not so popular, they have their uses. For example a lone image of the size shown in the image on a single page would look wrong otherwise.


title: Beamer - transition effect

text: I am looking for a particular transition effect when moving between slides. I would like to have the impression that two slides are superimposed and that the first moves smoothly to the right to reveal progressively the next slide. Any idea?


title: Who creates xxx-eps-converted-to.pdf and why can't I delete it?

text: Consider the following code name `simulator.tex`.               % simulator.tex     \documentclass[preview,border=12pt,varwidth]{standalone}     \usepackage{filecontents}          \begin{filecontents*}{input.tex}     \documentclass[tikz,border=12pt]{standalone}     \begin{document}     \begin{tikzpicture}         \fill[red] (0,0) circle (2);     \end{tikzpicture}     \end{document}     \end{filecontents*}          \usepackage{graphicx}     \usepackage{pgffor}          \immediate\write18{pdflatex input}     \immediate\write18{pdftops -f 1 -l 1 -eps input.pdf output.eps}     \foreach \x in {tex,pdf,log,aux}{\immediate\write18{cmd /c del input.\x}}          \begin{document}     I am importing EPS image.\\     \includegraphics{output}     \immediate\write18{cmd /c del output.eps}     \immediate\write18{cmd /c del output-eps-converted-to.pdf}     \end{document}      I am using Windows, so some parts of my code above will work only on Windows. Compile the code above with               latex -shell-escape simulator     dvips simulator     ps2pdf -dAutoRotatePages=/None simulator.ps      And check contents of the folder in which `simulator.tex` exists. Who creates `output-eps-converted-to.pdf` and why can't I delete it?


title: Strikethrough in Section Title

text: I am currently using `ulem` and `\sout` to do strikethroughs, but what if I want to strikethrough in a section title? I'm using `hyperref` and receive the following error when I use `\section{\sout{..}}`:               Argument of \UL@word has an extra }.      Does anyone know how to do this?


title: Force all small caps

text: Is it possible to force text into lower case small caps without making capital letters lower case? None of the following makes all the letters lower case small caps:               \textsc{Can I make this line only small caps?}     \scshape{Can I make this line only small caps?}      To get all small caps one needs to format it manually to lower case:               \textsc{can i make this line only small caps?}      Update: As @barbarabeeton has pointed out `\sc`is deprecated so I have removed that example.


title: LyX style for command with multiple arguments

text: I would like to create a style for a command that takes multiple arguments:               \classify{A}{B}{C}      I started creating a style               Style Classify         Category   FrontMatter              LatexType  Command         LatexName  classify     End      but this kind of style works only for commands that take a single argument. How can I modify the style definition so that it accepts multiple arguments and optional arguments?


title: renewcommand error mathbm

text: \renewcommand{\vec}[1]{\mathbm{#1}}      Then I write               \[\vec{a}\]      which yields an error:               ! Undefined control sequence.     \vec #1->\mathbm                       {#1}     l.564 \[\vec{a}                    \]     ?


title: Shortcut to declare alignment of many columns in a table

text: Suppose I have a table with 20 columns that should all be centered. Is there a way to declare the alignment without literally counting out 20 `c`'s? Something like `c{20}` might be the syntax. I feel like I saw this once, but I can't find a reference anywhere.


title: smooth surface plot with pgfplots/gnuplot

text: i want to create a smooth surface plot with pgf-plots and gnuplot. The following code yields a graph, but i need much more gridpoints along y-direction. How can i reach this? The increase of samples doesn´t work here. The result then become worse... Thanks in advance               \documentclass{scrartcl}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \begin{document}          \begin{figure}     \centering     \begin{tikzpicture}     \begin{axis}[             width=0.9\textwidth,             3d box,             view={20}{25},             plot box ratio=3 10 5,               ylabel={y},             xlabel={x},                  ]     \addplot3[raw gnuplot,                surf,             %empty line = jump,             samples=100,             ]      gnuplot[surf,         mesh/check=false,         ]{         n=1e-5;         b=100;         h=10;         p=-0.0001;         K=((16*b**2)/(n*pi**3))*(-p);     Sum(i,x,y)=K*(((-1)**(0.5*((2*i-1)-1)))*(1-((cosh(((2*i-1)*pi*x)/(2*b)))/(cosh(((2*i-1)*pi*h)/(2*b)))))*((cos(((2*i-1)*pi*y)/(2*b)))/((2*i-1)**3)));         u(i,x,y)=(i==0)?0:(u(i-1,x,y)+Sum(i,x,y));         splot [-h:h] [-b:b] u(25,x,y)/u(25,0,0);         };     \end{axis}     \end{tikzpicture}     \end{figure}     \end{document}


title: My footer disappears when I increase headheight

text: I have created a custom simple layout with the `fancyhdr` package. Because the header I must use is somewhat big, LaTeX instructed me to increase the `headheight` to at least a minimum value. The problem is, the footer gets moved down until it eventually disappears. Here is a MWE, where the footer can still be seen at the bottom:               \documentclass[12pt,a4paper,oneside]{article}     \usepackage[utf8]{inputenc}     \usepackage[landscape,left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry}     \usepackage{fancyhdr}          \setlength{\headheight}{60pt}     \pagestyle{fancy}          \lhead{This is header \\ This is header \\ This is header \\ This is header \\ This is header}     \chead{}     \rhead{}     \lfoot{}     \cfoot{This is the footer}     \rfoot{}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt}          \begin{document}          First line of the document.          Second line of the document.          \end{document}      Now change `60pt` for `80pt` and compile again. Goodbye, footer! Is there any way to fix this? I can't change the header, and I must have both header and footer. Edit: The amount of support is incredible, 3 answers plus comments in one hour! Upvoting you all, and choosing most simple and idiot-proof solution as correct. Thanks!


title: Abuse of address field in BibTeX entries

text: I noticed recently that the address field in BibTeX inproceedings entries is often abused to store the conference location although the documentation says that it is supposed to be the publisher's address. Of course, these two may coindice, e.g., when the people organizing the conference printed the proceedings themselves at the conference location (e.g., by University press). However, if this is not the case, it seems inconsistent to me. The address of, say, an article entry is always the publisher's address. Is the abuse of the address field in inproceedings entries so common that nobody cares or am I misinterpreting the documentation? I know that some styles support additional fields for the conference location, e.g., the location field, but this is not true in general. Is there a correct way of doing this? If it is relevant, I am from the field of Computer Science. Best regards


title: Remove colon from title bar in tcolorbox theorem without a title

text: I am using the `tcolorbox` package (version 2.32, as provided by texlive 2013 on my gentoo linux system) to define a new theorem-like environment for typesetting tasks. When the title is omitted, the theorem is displayed with a trailing colon in the title bar after the theorem name. See the example below.               \documentclass{standalone}          \usepackage[theorems]{tcolorbox}     \usepackage{lipsum}          \newcounter{task}     \tcbmaketheorem{task}{Task}{fonttitle=\bfseries}{task}{tk}          \begin{document}          \begin{task}[width=3in]{Important homework}{major}       \lipsum[3]     \end{task}          \begin{task}[width=3in]{}{minor}       \lipsum[3]     \end{task}          \end{document}      ![tcbcolorbox theorem without a title](http://i.stack.imgur.com/rIb05.png) How can the trailing colon be suppressed from the title bar when no title is given to the theorem?


title: Generating tables in LaTeX - Errors

text: I would like to generate the table shown below in LaTeX (with only top , middle and bottom! rules) and no cell dividers. Here is my MWE.I get many errors.What is the problem here?               \documentclass[12pt]{article}     \usepackage{booktabs}     \begin{document}     \begin{tabular}{CCC}     \toprule     Parameters & Linux & Windows     \midrule     Number of users & Linux have a plus point that many users can be logged into the system\\ simultaneously.SSH (Secure Shell security) is used in this process.ThisProcessor’s capability is distributed amongst the users. In this way various users can access the resources at the same time. & There are many windows operating systems considered as single user and multi user. Windows XP, 7 are single user. Multi user comprises of Windows NT.There can be many users logged in the operating system but only one can use it at a time.     \bottomrule     \end{tabular}     \end{document}      ![enter image description here](http://i.stack.imgur.com/PuH8M.png)


title: Fit equations as same size of the text fonts

text: An inline equation is written with the sentence appears, ![enter image description here](http://i.stack.imgur.com/kC1JE.png) It can be noticed the line spacing has been locally increased for that particular sentence containing the variable E. How to shrink the equation automatically to appear perfectly inline without changes in line spacing?


title: How to access \@title from a custom class

text: I was trying to write a custom LaTeX class where I need to access the value of `\@title`. I wrote               \newcommand{\makeack}{Hello World  \@title World}      But the value of `\@title` is not printed when I use `\makeack` in the `.tex` file. But I could successfully use `\@title` in the modified `\@maketitle` I defined like               \def\@maketitle{%      ....     ....     }      I am a beginner in writing classes.


title: LaTeX, problem with bk1

text: I use some LaTeX style which includes `bk1\@ptsize.clo` by the line `\input{bk1\@ptsize.clo}`. However, my LaTeX environment (I'm using texlipse) produces error "bk1\@ptsize.clo was not found". Despite of the error, it seems everything works fine. How can I get rid of this annoying error message? If I remove the line I get a 'serious' compilation error (I should also add I'm using pdfLaTeX).


title: Multilingual class/style file?

text: I'm writing some templates and class files that need to use some strings of text, say names for theorems, lemmas, etc., and I would like to provide the ability to easily switch the language in which these pieces of text are written; much like Babel does for standard LaTeX document classes. The question is what would be the preferred way to implement this? Is there a way to make it work nicely together with Babel (e.g. somehow “read” the chosen language in babel options and use this for my own text labels)?


title: \varamalg and \varcoprod operators for disjoint union

text: For the disjoint union, I don't like `\amalg` and `\coprod` very much. So, I did all my best to create a `\varamalg` with this code:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{mathtools,amssymb}          \newcommand{\varamalg}{\sqcup\hspace{-1.085em}\raisebox{-.195em}{\rotatebox[origin=c]{37}{$\smallsetminus$}}}          \begin{document}          $A\varamalg B=A\cup B$          \end{document}      And I get: ![enter image description here](http://i.stack.imgur.com/QTEyV.jpg) Well, not bad for me. I used `\smallsetminus` because the ends are rounded. But now, I'm not able to create `\varcoprod`. Could you help me?


title: What is the canonical way to write a for-loop macro?

text: At a basic level TeX does not provide a for-loop construct, but allows tail- end recursion, however Knuth defined `\loop` in the plain macros. Coders have been coming with variations of their own ever since. The `ifthen` package provides the `whiledo` loop and there is a `forloop` macro. TikZ provides similarly a `foreach` macro. Is there a canonical way to write a `forloop` in LaTeX, TeX and friends. How would you write the following?               \def\triangle#1{{\def\bull{}%     \count1=0     \loop        \edef\bull{$\bullet$\bull}        \ifnum\count1<#1           \advance\count1 by 1           \centerline{\bull}           \vskip-7.7pt           \repeat           \vskip 7.7pt\relax}}      which will produce a triangle made of dots                       *          *    *       *     *    *      As typically found in programming texts, can you re-write it in a better way?


title: How do I create a verbatim box with \newtcbinputlisting?

text: I want define a command like `\maplebox`; for example the command `\maplebox{\latex}`. Why does the following code not compile?               \documentclass{article}          \usepackage[svgnames]{xcolor}     \usepackage{tcolorbox}     \usepackage{amsmath,amsfonts,amssymb,amsthm}     \usepackage{lipsum}      \usepackage[top=2.5cm,right=3.5cm,bottom=2.5cm,left=2.5cm]{geometry}                \tcbuselibrary{listings,skins,theorems}          \newtcbinputlisting{\maplebox}[1][white]{                                                                 listing only,                                                                 nobeforeafter,                                                                 tcbox raise base,     %                                                           fontupper=\latinfont\setLTR\ttfamily\bfseries,                                                                 fontupper=\ttfamily\bfseries,                                                                 arc=0pt,                                                                 outer arc=0pt,                                                                 colback=#1!10!white,                                                                 colframe=#1!50!black,                                                                 boxsep=0pt,                                                                 left=1pt,                                                                 right=1pt,                                                                 top=2pt,                                                                 bottom=2pt,                                                                 boxrule=0pt,                                                                 bottomrule=1pt,                                                                 toprule=1pt}               \begin{document}          The \maplebox{\latex}          \end{document}


title: Eat space in a line break in \lstinline{}

text: I use the `listings` package. If a line break inside a multi-word `\lstinline{}` occurs, I get a nasty spaces at the beginning of the new line:               page left                  page right         |                          |            |normal text normal text IF|         | FORALL normal text       |       `IF FORALL` is inside a `\lstinline{}`. How to avoid the space before `FORALL`? Thanks! * * * EDIT: I don't mind to elaborate. I am typing a document that includes some inline code snippets. I use `\lstinline{}` to typeset them (since I also use `lstlisting` in my document). The illustration above depicts the result from latex code:               normal text normal text \lstinline{IF FORALL} normal text      Now if `IF FORALL` does fit into a single line, I get                   |normal text normal text IF FORALL normal|         |text                                    |       on my page, which is fine. The `|` mark the start of the page margin. If `IF FORALL` is broken down into multiple lines, I get the result shown above. I would much rather like to have:                   |normal text normal text IF|         |FORALL normal text        |       Hope that this makes it more clear. Thanks.


title: Plain TeX: running header with section name

text: I want to create a TeX document with sections and a running header containing the name of the current section. I know I can use `\mark{}` to mark the section headings and then use `\topmark` or `\firstmark` to show the section name in my header. The problem is that neither `\topmark` nor `\firstmark` do what I want (they're actually more suitable for typesetting dictionaries). I would like the header to reflect the section the contents of which appear at the _very top_ of the current page. In other words, I want to use mostly `\topmark`, but when a new section begins on the current page before any other text before it, I want to use `\firstmark` (or, alternatively, leave the header blank), because then `\topmark` refers to the previous section and thus is irrelevant. Any ideas on how I could do that?


title: Disappearing characters Xelatex?

text: I've noticed that when I compile my .tex file (xelatex -- biber -- xelatex), that several characters (like π and Λ) become missing. Here is what I'm getting: [1] P. del Amo Sanchez et al. ``Searches for the baryon- and lepton-number vi- olating decays B0+c −, B−−, and B− ̄−''. In: Phys.Rev. D83 (2011), p. 091101. [2] J.P. Lees et al. ``Cross Sections for the Reactions e+e−K+K−+−, K+K−00, and K+K−K+K− Measured Using Initial-State Radiation''. In: (2011). * Temporary entry *. This is what the titles should look like: [1] Searches for the baryon- and lepton-number violating decays B0→Λ+cℓ−, B−→Λℓ−, and B−→Λˉℓ−. (See http://inspirebeta.net/record/884880) [2] Cross Sections for the Reactions e+e−→K+K−π+π−,K+K−π0π0, and K+K−K+K− Measured Using Initial-State Radiation. (See http://inspirebeta.net/record/892684) Here is my .tex file:               \listfiles          \documentclass{article}     \usepackage{fontspec,xltxtra,xunicode,realscripts,unicode-math}     \setmainfont{Bitstream Cyberbit} % or any font on your system     \setsansfont{Asana Math} % or any font on your system          \usepackage[backend=biber, bibencoding=utf8]{biblatex}          \usepackage{filecontents}          \ExecuteBibliographyOptions{doi=false, eprint=false}     \begin{filecontents}{\jobname.bib}          @article{Lees:2011zi,       author         = "Lees, J.P. and others",       title          = "{Cross Sections for the Reactions $e^+e^- \to K^+ K^-                         \pi^+\pi^-,\, K^+ K^- \pi^0\pi^0$, and $K^+ K^- K^+ K^-$                         Measured Using Initial-State Radiation}",       collaboration  = "The BABAR Collaboration",       year           = "2011",       note           = "* Temporary entry *",       eprint         = "1103.3001",       archivePrefix  = "arXiv",       primaryClass   = "hep-ex",     }           @article{:2011us,       author         = "del Amo Sanchez, P. and others",       title          = "{Searches for the baryon- and lepton-number violating                         decays $B^0\rightarrow\Lambda_c^+\ell^-$,                         $B^-\rightarrow\Lambda\ell^-$, and                         $B^-\rightarrow\bar{\Lambda}\ell^-$}",       collaboration  = "BABAR Collaboration",       journal        = "Phys.Rev.",       volume         = "D83",       pages          = "091101",       doi            = "10.1103/PhysRevD.83.091101",       year           = "2011",       eprint         = "1101.3830",       archivePrefix  = "arXiv",       primaryClass   = "hep-ex",      }               \end{filecontents}          \addbibresource{\jobname.bib}          \begin{document}          \nocite{*}          \printbibliography          \end{document}


title: Continuously-sizable fonts?

text: Why are we stuck with a finite number of font sizes in LaTeX? Modern fonts are fully vector-based and scalable - why can't LaTeX do this? Or maybe it can, and I just don't know how. Also see the question Continuously-sizable brackets?


title: Math fonts with Times New Roman

text: Which math fonts I can use with times new roman as font for the text? I'm looking for a math font that best fit in my document. Any suggest are appreciate


title: Continuously-sizable brackets?

text: It often frustrates me that TeX only supplies a small set of bracket sizes to choose from (or rather, the default fonts do.) Has anybody written a package that provides continuously-sizable brackets, which grow to exactly the correct height? The \left( and \right) commands routinely, in practice, provide brackets too tall for their contents. Perhaps this is something that could be dealt with in TikZ - it should certainly be powerful enough to draw nicely-shaped brackets, with elegantly- tapering ends, of arbitrary height. Also see this question: Continuously-sizable fonts? The lmodern package is mentioned there, which can be used to get brackets of any size. Perhaps someone can hack together a solution making use of this.


title: Changing column separation in smallmatrix environment

text: How can I change the width of the space between columns in a smallmatrix environment? I can't find any decent documentation on smallmatrix anywhere. The array environment has the setcolsep{..} command, but I can't find anything analogous for smallmatrix.


title: representing a null child in a binary tree using `ground` symbol

text: I'm using `ground` symbol to represent a null child in a binary tree. But the ground symbol has arrows in it. How do I remove them?               \documentclass{llncs}     \usepackage{llncsdoc}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=1.10}     \usetikzlibrary{shapes.geometric,arrows,fit,matrix,positioning,pgfplots.groupplots}     \usepackage{circuitikz}          \begin{document}     \tikzset     {             treenode/.style = {circle, draw=black, align=center, minimum size=1cm},             subtree/.style  = {isosceles triangle, draw=black, align=center, minimum height=0.5cm, minimum width=1cm, shape border rotate=90, anchor=north}     }     \begin{figure}[t]     \centering     \caption{A binary tree. \label{fig:simple}}     {         \begin{tikzpicture}[->,scale=0.6, transform shape]             %-----------------------------------------------------------------------             \node (x)[treenode]                                 at (-3,0)       {$X$ \\ 100};             \node (y)[treenode, fill=black!20]  at (-4.5,-1.5)  {$Y$ \\ 50};             \node (a)[subtree]                                  at (-1,-1)      {\Large $\alpha$};             \node (b)[subtree]                                  at (-6,-2.5)    {\Large $\beta$};             \node (gnd)[ground]                                 at (-2.5,-2.5)  {};                   \path[every node/.style={font=\sffamily\small}]             (-3, 1) edge node                   {} (x)             (x)         edge node                   {} (y)             (x)         edge node                   {} (a.north)             (y)         edge node                   {}(b.north)             (y)         edge node                   {}(gnd);             %-----------------------------------------------------------------------         \end{tikzpicture}     }     \end{figure}     \end{document}      ![output](http://i.stack.imgur.com/Cx2VR.png)


title: Drawing of optical lens

text: Is it possible to draw only a lens and not the light beam nor any labels or axes, using `pst-optic`? **Update** What is the default lens colour? In table 2 (page 9) of the manual, nothing is mentioned of the default colour. I didn't asked the correct question; I meant what the colour is of the lens in Gonzalo Medina's original answer. I found the answer myself; on line 168 of the `pst-optic.tex` file, we have               \definecolor{BleuVerre}{cmyk}{0.2,0,0,0}


title: Unable to compile TeXmaker 4.0.2 with MiKTeX 2.9

text: I just downloaded first MiKTex 2.9 and then TeXmaker 4.0.2. However, I am having a hard time getting it to compile. I always get the info box saying `Can't detect the file name` followed by the info box saying `Could not start the command`. In the `Configure Texmaker` -> `Commands` options box I have set the path in the bottom to: > "C:/Program Files (x86)/MiKTeX 2.9/miktex/bin" I have also tried putting this file path in the specific command paths above (together with the filenames). But neither helps. I have been looking around at this and other Tex pages, and other people have asked the same question. I have tried to do, what they were advised to do, but is has not help. I hope that somebody can help me.


title: subfigure vertical alignment although different large subcaptions (subfigure environment; subcaption package)

text: I am using the subfigure environment provided by the subcaption package by Axel Sommerfeldt. Although reading the manual, I do not find a solution. I would like to vertical align subfigures although they have different sized subcaptions               \documentclass[a4paper,oneside,10pt]{scrartcl}          \usepackage{graphicx}     \usepackage{caption}     \usepackage{subcaption}          \begin{document}          \begin{figure}     \centering     \begin{subfigure}[b]{0.3\textwidth}             \centering             {\rule{3cm}{2cm}}             \caption{Small subcaption.}     \end{subfigure}%     \begin{subfigure}[b]{0.3\textwidth}             \centering             {\rule{3cm}{2cm}}             \caption{Super super super super super super super super super super super super super super super super super super super large subcaption.}     \end{subfigure}     \caption{Cool (left) and uncool (right) pictures.}     \end{figure}          \end{document}      not desired output ![enter image description here](http://i.stack.imgur.com/6Ubkt.png) desired output ![enter image description here](http://i.stack.imgur.com/agqgP.png) thx Benjamin


title: How to reproduce this template?

text: I would like to use this type of example below for my work on Latex. I am new to using this program. Using inputs from other members of the community I have managed to do part of the question above. However, I fail to make functions lettrine or automatic numbering. Can you help with these two issues? ![enter image description here](http://i.stack.imgur.com/YQhkH.jpg) This is my current MWE:               \documentclass[oneside,12pt]{article}     \usepackage{tikz}     \usepackage{xcolor}     \usetikzlibrary{shadows}     \usepackage{tabularx}     \usepackage{enumitem}     \usepackage{lettrine}     \usepackage[utf8]{inputenc}     \usepackage[spanish,activeacute]{babel}     \newcommand{\mipbox}[2]{\indent\hspace{2mm}\parbox{#1} {\includegraphics[scale=0.35]{#2}}}     \setlist{leftmargin=3.9mm}          \newcommand{\mylist}{\tikz[overlay]\draw[ ultra thick,blueline](-.2,-.2)--(-.2,.4) [path fading=east](-.2,.15)--(.3,.15); $\;$}     \newcommand{\myitem}{\item[\mylist]}          \newcommand{\mylists}{\tikz[overlay]\draw[ ultra thick,blueline](-.2,-.2)--(-.2,.4) [path fading=east](-.2,.15)--(.5,.15); $\;$}     \newcommand{\myitems}{\item[\mylists]}     \newcommand{\ita}{\textit}               \usepackage{colortbl}          \definecolor{blueline}{HTML}{2F74D0}     \begin{document}          {\setlength{\arrayrulewidth}{1mm}     \arrayrulecolor{blueline}     \begin{tabularx}{\textwidth}{ l  | X  }              \multicolumn{2}{>{\mdseries}p{\textwidth}}{\ita{First row of the table - some long text in bold font with background color. This needs to wrap properly. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc venenatis nunc dui, sed pellentesque ante laoreet nec}.}\\ \hline        2&\vspace{1mm}\hspace{5mm}\textcolor{blueline}{\textbf{Respuestas}}\\      22& \begin{itemize}  \parbox{10cm}{         \myitem a)  kkk enenatis nunc dui, sed pellentesque ante laoreet nec enenatis nunc dui, sed pellentesque ante laoreet nec.         \myitem b) enenatis nunc dui, sed pellentesque ante laoreet nec enenatis nunc dui, sed pellentesque ante laoreet nec enenatis nunc dui, sed pellentesque ante laoreet nec. }\mipbox{1cm}{optiM2.png}         \myitem c) hshsg gsfdg  hshsgddc h hgddh  sed pellentesque ante laoreet nec enenatis nunc dui, sed pellentesque ante la         \begin{itemize}[topsep=-5pt,leftmargin=14.5mm,itemsep=0.8pt,labelsep=.5cm]         \myitems i) kshdg         \myitems ii) jsjshdfgf         \end{itemize}         \myitem  sed pellentesque ante laoreet nec enenatis nunc dui, sed pellentesque ante la  sed pellentesque ante laoreet nec enenatis nunc dui, sed pellentesque ante la         \end{itemize} \\ \hline \hline         \end{tabularx}          \end{document}


title: Inserting citation inside ERT code in LyX

text: How do I cite a reference inside ERT code in LyX? Inside the ERT code I am unable to select Insert-->Citation as I usually do. The reason I need to do this is further to an answer to a previous question http://tex.stackexchange.com/a/116722/30713 in which the caption text is now inside the ERT code and I need to include a citation inside the table caption.


title: How to define margins of a document with page numbering at a specified place

text: I have to follow specific rules for an A4 document:   * upper and lower margins at 4.5cm   * page numbers centered at 3.5 cm I've succeeded to defined the margins with the `geometry` package but I'm struggling with the page numbers. Any idea on how to do it?


title: What kind of dash is used before a quote attribution?

text: In this quote example: “Planning your video is the first step.” -Christine Cloud, Producer Should the name be preceded by an em dash, or a swung dash?


title: How to use \cite with biblatex in figures? (using style=footnote-dw)

text: After googling for a while, I decided to ask this question on here.. I am desperately trying to make a citation inside a figure (using BibLaTeX and the footnote-dw style [the sources are added as footnotes]), but I cannot figure out how to properly achieve this. Basically I want to do something like this: **test.tex**               \documentclass{book}     \usepackage[style=footnote-dw]{biblatex}     \usepackage{graphicx}     \usepackage{hyperref}     \bibliography{bibliography}     \begin{document}     \begin{figure}         \includegraphics[width=0.95\textwidth]{pics/somepicture.png}         \caption{My Caption\cite{wikipedia-de-visitor}}     \end{figure}     foobar\cite{wikipedia-de-visitor}     \end{document}      While the first `\cite` gives               pdfTeX warning (dest): name{Hfootnote.1} has been referenced but does     not exist, replaced by a fixed one      the second (not withing the figure) works just as expected. * * * **Edit:** `bibliography.bib` resides in the same dir as the `.tex` file and contains:               @misc{wikipedia-de-visitor,     url="http://de.wikipedia.org/wiki/Besucher_(Entwurfsmuster)"     }      Commands used to "compile" are:               pdflatex test     biber test     pdflatex test     pdflatex test      * * * **Edit 2:** Changed the questions title (and part of the body) to reflect the facts offered by Ulrike Fischer. PS: sorry for my bad english


title: Missing "References" heading

text: The word "References" does not appear before the references which I entered in my paper. The packages I am using are:               \documentclass[final,times,1p,leqno,11pt]{elsarticle}     \usepackage[latin1]{inputenc}     \usepackage{enumerate}     \usepackage{amsfonts}     \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{amssymb}     \usepackage{latexsym}     \usepackage{multicol}     \usepackage{verbatim}     \usepackage{amscd}     \usepackage{mathrsfs}     \usepackage[usenames]{color}     \usepackage[all]{xy}      What is the reason of this issue?


title: Title “References” is missing in elsarticle class

text: I am beginner in LaTeX, and I am trying to use BibTeX to create a reference, I am using MiKTex 2.9 and TeXstudio 2.5.1 . I am trying to include references to my `.tex` file using BibTeX.   1. I created a .bib file (`mybib.bib`) in TeXstudio using the BibTeX format              %%%%%%%%%%%% mybib.bib %%%%%%%%%          @BOOK{AsmussenandAlbrecher2010,       author  = {Asmussen, S. and Albrecher, H.},       title   = {Ruin probabilities},       edition = {2nd ed.},       address = {Singapore},       publisher = {World Scientific},       year    = {2010}     }          @ARTICLE{Botta1987,       author  = {Botta, R. F. and Harris, C. M. and Marchal, W. G.},       title   = {Characterisation of generalised hyperexponential distribution functions},       journal = {Stochastic Models},        volume  = {3},       year    = {1987},       pages   = {115-148}     }          @BOOK{ChaudhryandTempleton1983,       author  = {Chaudhry, M. L. and Templeton, J. G. C.},       title   = {A First Course in Bulk Queues},       address = {New York},       publisher = {Wiley},       year    = {1983}     }        2. I include `mybib.bib` in my `.tex` file `test_els.tex`              %%%%%%%%%%%%%%%%%%%%%%%%%%%%% test_els.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%     \documentclass[preprint,12pt]{elsarticle}          \begin{document}     \section{Introduction}     Several researchers studied ruin probability, but for a survey see\cite{AsmussenandAlbrecher2010}.     For bulk arrival queues see \cite{ChaudhryandTempleton1983}          \bibliographystyle{model1-num-names}     \nocite{*}     \bibliography{mybib}     \end{document}        3. I use PDFLATEX->BIBTEX->PDFLATEX->PDFLATEX and the output produced references cited in the text, but the title `references` is missing.   4. Where is the mistake? Please help.


title: Create pdf with subset of slides

text: I use knitr and RStudio with XeLaTeX to create a presentation with many slides. But sometimes not all of the slides should appear in the final pdf. Is it possible to have a variable that I change depending on if all slides should be included or not?               \documentclass{beamer}          #Here I would like to set parameter allslides=FALSE so that the tomato-slide "disappears" from pdf          \begin{document}          \begin{frame}[fragile]{A Slide about Apples}     Bla bla     \end{frame}          \begin{frame}[fragile]{A Slide about Tomatoes}     Bla bla     \end{frame}          \begin{frame}[fragile]{A Slide about Bananas}     Bla bla     \end{frame}          \end{document}      The slides that should disappear have content that the receiver of the pdf should not get. I tried using \includeonlyframes but couldn't get it to work (all slides disappeared).


title: Custom glossary environment improvement

text: > **This is a followup question about the code provided by Nicola Talbot in > this question:** Automated generation of equation key > > _TL;DR: Defines new environment_ `alignglos` _which can be used to wrap the_ > `align` _environment. If you happen to have your equation symbols defined as > a glossaryentry, you can use (or better reference) them in said equation to > generate a mini glossary with the referenced symbols in a key_. So far so good. The code (MWE) from N. Talbot compiles fine if you copy&paste it. I tried incorporating the solution in my paper where many more packages are included. Somehow the functionality is broken. I don't know if this is due to the packages or due to the code used to generate the key. Some problems I found using the code are:   1. Using the `toc` option in the glossaries package creates an unwanted entry (`setting title={}` only eliminates the text)   2. I use `hyperref` to generate the linked page numbers in the glossary and therefore load the package before `glossaries`. Even if all `alignglos` environments are commented out, there is one reference warning: `name{alignsglos.0} has been referenced but does not exist`. One or more `alignglos` environments in the documents cause more warnings.   3. The `number list` of all glossaries gets messed up. Only page 0 entries can be found (with no `alignglos` environment used) and 1 and 2 if used.   4. Uncommenting the first two `alignglos` environments on line 225, 230, 234 and 238 produces the desired result (apart from the things listed above). Uncommenting further `alignglos` environments on line 250, 255, 260, 265 causes compiler errors which is annoyingly fascinating to me.   5. **This only occurs if you first compile the document without the`alignglos` environments:** Instead of only the referenced elements inside `alignglos`, all entries from the symbol glossary ever referenced are printed out. MWE hosted on github as **gist** : MWE with errors (Notes: Files encoding- ansi, begin{document}-line 218, package filecontents-used) * * * **Optional:** Just FYI, here is the link to the big document I was talking about where `alignglos` is not working too. Its a github repo. Clone with: > git clone git@github.com:tairun/hslu.bda2013.git ~ Use `BDA_Doku_main.tex` as project file and compile with `pdflatex and makeglossaries+biblatex (with biber)`. All files should be encoded in `ansi`. The directory `./sty/` handles all the packages and userdefined stuff like the `alignglos` environment. Rest is just content. The eqaution shown in the MWE can be found in `./tex/loesungsfindung.tex > line 12`. Output is about 50 pages (A4). Same equation is now located around page 37.


title: Is it possible to trim a line when crossing another?

text: I'm trying to draw a cycle, where the lines A-B and C-D overlap the 1-2 and 3-4 lines.   1. Is it possible to trim or clip the numbered lines above and below when they cross the other ones?   2. Is there alternatively a way to calculate the cross points so I can simply put them into the coordinates?  I've read through the documentary for hours and couldn't find a way though.                   \begin{tikzpicture} [>=latex]                  \draw [->, thick] (0,0) -- (10,0);             \draw [->, thick] (0,0) -- (0,8);                  \coordinate (A) at (0.5,1.5);             \coordinate (B) at (8.5,7.5);             \coordinate (C) at (8.5,4);             \coordinate (D) at (0.5,0.5);                  \coordinate [label=below:$1$] (1) at (1.5,0.5);             \coordinate [label=above:$2$] (2) at (1.5,2.5);              \coordinate [label=above:$3$] (3) at (7.5,7);             \coordinate [label=below:$4$] (4) at (7.5,3);                  \draw [-] (A) to[out=25,in=230] (B);             \draw [-] (C) to[out=215,in=15] (D);             \draw [-] (1) to (2);             \draw [-] (3) to (4);              \end{tikzpicture}


title: How to: Bagnouls–Gaussen bioclimatic diagram?

text: Is there any example how to code a Bagnouls–Gaussen bioclimatic diagram (ombrothermic diagram)? There is one diagram here: http://www.sciencedirect.com/science/article/pii/S0379711210000949 The scale of the temperatures is generally indicated on the left. It is generally half of the scale of precipitations, indicated on the right.


title: Add box to labeled sections

text: I want to add a box to a repeated section of a textbook, which provides question discussions. Is it possible to do it by adding "tex style setting" command(s) to the preamble? I am using the memoir class. (I require it because I am generating the principal content in my LaTeX file, via Scrivener and Multimarkdown, rather than writing it manually.) I used tex from here to generate some nice Section headings. What I would like to do is to apply similar styling to 2 sections at the end of the chapter—Summary and Discussions—but because these are not sections, as such, I want their headings without the section numbering. This is the critical tex:               \newcommand\titlebar{%     \tikz[baseline,trim left=3.1cm,trim right=3cm] {         \fill [black!10] (2.5cm,-1ex) rectangle (\textwidth+3.8cm,2.5ex);         \node [             fill=cyan!60!white,             fill=black!90!white,                         anchor= base east,             rounded rectangle,             minimum height=3.75ex] at (2.9cm,0) {             \textbf{\arabic{chapter}.\thesection.}             \color{white}\textbf{T\thesection}         };     }%     }     \titleformat{\section}{\large}{\titlebar}{0.1cm}{}     \renewcommand*{\thesection}{\arabic{section}}      This applies a nice styling to my section headings, including the section number. Now I want to apply a similar styling to two sections, Summary and Discussion, which appear at the end of the chapter. But I want those two sections to NOT have section numbers.


title: Is there a way to assign different colors to different authors in fixme?

text: I use `fixme` in `multiuser` mode, and would like different authors to have different colors (like the track changes feature in word). I know that I can use `todonotes`, but I like the `fixme` interface (and lack of reliance on `tikz`) better. `fixme` colors notes by function (warning, error, etc) rather than by user. Is there some relatively easy way to make it do color by author? Update: here's an M(nW)E               \documentclass[11pt]{article}     \usepackage{xcolor}     \usepackage[draft,inline,nomargin,index]{fixme}          \fxsetup{theme=color,mode=multiuser}     \FXRegisterAuthor{sv}{asv}{Me}     \FXRegisterAuthor{aa}{aaa}{Other}           \begin{document}     \svnote{This is me} and \aanote{This is other}.           What I'd like is something like          \textcolor{red}{Me: This is me} and \textcolor{green}{Other: This is other}     \end{document}


title: Character with wedges over and under

text: How can I have this character, I need f and U ? ![enter image description here](http://i.stack.imgur.com/ig7TN.png)


title: referencing an item from enumerate in an article calss

text: I misspoke I meant I used enumerate not cases sorry. Is it possible to reference a case? I have `\begin{enumerate}` and then cases 1 to 4 where each case is a rather detailed. I would like the refer the reader back to case 2 where the solving a complex integral took place since the only difference in case 2 and 4 is tan and tanh due to the changing of the variable e. I tried labeling the case but that doesn't work. A more reasonable example:               \documentclass{article}     \usepackage{amsmath, hyperref}               \begin{document}     \begin{enumerate}     \item[Case 1:]     x     \item[Case 2:]     \label{case2}     xx     \item[Case 4:]      case~\ref{case2}           \end{enumerate}          \end{document}      As you can see there is no reference to click after the word case: ![enter image description here](http://i.stack.imgur.com/RczPL.png)


title: Multiple labels in Cref

text: Following is a simple code to show my problem with the `cleveref` package. When using multiple labels it breaks on the second label...               \documentclass[11pt]{article}     \usepackage{amssymb,amsmath,amsfonts}     \usepackage{amsthm}          \usepackage{cleveref}          \newtheorem{lemma}{Lemma}          \crefname{lemma}{lemma}{lemmas}          \begin{document}     \begin{lemma} \label{lem:fast}     a     \end{lemma}          \begin{lemma} \label{lem:slow}     b     \end{lemma}          \Cref{lem:fast} \\     \Cref{lem:slow} \\     \Cref{lem:fast, lem:slow} \\          \end{document}


title: Integral Limits Placement in LaTeX

text: I'm using a converter to generate LaTeX codes. The converter gives me the results below for integral and sum. limits are above and below. I want sum and other symbol limits as given in (1) but integral limits as given (2). I don't want to change the code for integrals manually every time. What command should I use?               \documentclass[11pt,a4paper]{exam}     \usepackage[utf8x]{inputenc}     \usepackage{ucs}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage[left=2.00cm, right=2.00cm, top=2.00cm, bottom=2.00cm]{geometry}     \begin{document}     \begin{equation}     \underset{1}{\overset{2}{\mathop \int }}\,{{x}^{2}}dx,\underset{i=1}{\overset{n}{\mathop \sum }}\,i,~\underset{i=1}{\overset{\infty }{\mathop \bigcup }}\,{{B}_{i}}     \end{equation}          \begin{equation}     \int_{1}^{2} x^2~dx     \end{equation}     \end{document}      ![Picture](http://i.stack.imgur.com/ORLZ3.png)


title: Fix append pgfplots style to all pictures breaking plain TikZ compilation

text: I have the following code in my preamble to align the pgfplots in my document.               \pgfplotsset{         every axis/.append style={             scale only axis         },         /tikz/every picture/.append style={             trim axis left,             trim axis right,         }     }      But the last part (`/tikz/every picture/.append style...`) breaks compilation for TikZ picture that don't use pgfplots, since there is no axis in it. Currently, I have to comment that part of the code, then compile all plain TikZ drawings, then uncomment and compile all pgfplots figures, then mix them together. I have `\tikzexternalize` in my preable to, so I keep figures in separate files after compiling each of them. This is a big hassle. How can I get pgfplots alignment and avoid this issue? Here's a MWE that reproduces the problem:               \documentclass{article}          \usepackage{pgfplots,tikz}          \pgfplotsset{         every axis/.append style={             scale only axis         },         /tikz/every picture/.append style={             trim axis left,             trim axis right,         }     }          \begin{document}     \begin{tikzpicture}          \draw[very thick,->] (-1,-1) -- (1,1);          \end{tikzpicture}     \end{document}


title: Clean black & white style for minted

text: I'm using `minted` to format code in a book. Except for the `bw` theme, I only see colored styles, which is nice for producing a PDF, but not ideal for printing in black & white. Is there a clean black & white style I can use (probably something resembling what `algorithmicx` produces) for `pygments`/`minted` which I could use for the printable version of the book?


title: Introducing a controllable space in a table

text: How can I introduce some vertical spaces in the table before the headers in Latex. The method I use below has introduced a gap, but the gap is too big. How can I have a more controllable vertical gap?               \begin{table}         \begin{tabular*}{0.95\columnwidth}{l|l}             \hline              Parameters & ~ \\ \hline              \rule{0pt}{3pt} & ~ \\                  ~ & ~ \\             \hline         \end{tabular*}         \caption{}     \label{Tbl:X}     \end{table}


title: Using SageTeX within Windows

text: Sage 5.5 was just released. It is a Linux native, is there a way to use it within windows with minimal constraints?


title: How can I drive citation tracking to include \citetitle command using biblatex?

text: I 'm using verbose-trad1 style. I have this result using `\cite{x}` command. ![enter image description here](http://i.stack.imgur.com/JxL4B.png) As you can see, cite tracking works fine, but if I use `\citetitle{x}` cite tracking does not work. (That's ok and, of course, it is mentioned at biblatex doc.) What I want is to avoid citing the author, even in the first cite. But, of course, if I use \citetitle command, I lose cite tracking. Is there a way to modifiy \citetitle command to include cite tracking?


title: How to write larger \natural symbol?

text: If we want to write big `\sum` symbol, we can write `$\sum\limits_{i=1}^n x_i$`. I want to do similar thing for `\natural` symbol which will be used to denote the boundary connected sum. How can I do this?


title: Get image with includegraphics from remote computer

text: Is there a way to grab a figure from another computer (and enter the password in the console or via command line)? For example, is there a way to do this?                \begin{figure}           \includegraphics{user@xxx.xyz:/home/user/pic.pdf}           \end{figure}      Thank you


title: Tweaking the syncing between editor and viewer

text: I've been using TextMate and Skim for a while and they work great. For some reason though, whenever I compile the `tex` code Skim opens up the `pdf` but always manages to get the line wrong. What I mean is, if I am currently at some line on my `tex` code, the viewer will open, it will display a red dot in the right spot, but will scroll up half a page or so. It should be a problem of forward searching, so it's to do with TextMate's settings, or possibly there is some option I could pass to the LaTeX compiler to tell him to sync differently. any ideas?


title: How can I input endmark?

text: This is my code               \documentclass[12pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage[thmmarks,standard,thref]{ntheorem}     \usepackage{graphicx}     \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}     \theoremseparator{.}     \theoremsymbol{\ensuremath{\square}}     \newtheorem{sol}{Soluttion}          \begin{document}     \begin{sol}     This is an exercise     \end{sol}               \begin{sol}     This is an exercise     \begin{equation}     x^2 - 2(m+1)x - m^2 - 1 = 0.     \end{equation}     \end{sol}     \end{document}      I input endmark, but after `\begin{equation}` `\end{equation}` I can not receive endmark.


title: LaTeX Template for Graduate School Essays

text: I'm looking for a professional LaTeX template for either a statement or purpose/personal statement/statement of intent/etc. for a general graduate application. Most of the ones I have seen thus far have been relatively plain, and while I don't need a template that is horribly visually abrasive, one with a bit more style wouldn't be bad. Are there any good repositories for essays of this nature or does anybody from the community have a particularly well- crafted template of this type?


title: latex tabular issue

text: I am creating a `tabular` in LaTeX. I want one column to be as small as possible, with no inter column spacing, so that it's just enough to fit the text. I know the answer to this question: I need to use `@{}c@{}`. I also want to be able to have a linebreak wherever I want in my cell. I also know the answer to this question: I need to use a `tabular` within my `tabular`. The problem is that I can't manage to make these two solutions work together: when I try to have 2 lines within a cell, the column gets expanded beyond the size of the text. Here is such an example:               \begin{small}             \begin{tabular}{|@{}c@{}|}                 A\\B\\C\\                \end{tabular}     \end{small}      Compare with (in the following code, there is unwanted extra space) :               \begin{tabular}{|@{}c@{}|}     \begin{small}             \begin{tabular}{@{}c@{}}                 A\\B\\C\\                \end{tabular}     \end{small}     \end{tabular}


title: Breaking long equation after a certain left bracket

text: I am typing a long equation which needs to be broken just after the left bracket and three dots are placed at the end of the left bracket same line. Here is an example, in which, I need the third left bracket (i.e. of the column vector just before the plus sign) to be followed by three dots while aligning the rest of the equation in the newline with the equal sign.               \documentclass{article}     \usepackage{amsmath}          \begin{document}          \begin{center}     \begin{equation}\left[       \begin{array}{c}         \dot{\omega}_m \\         \dot{\theta}_m \\         \dot{\omega}_v \\         \dot{I}_m \\       \end{array}     \right]     =     \left[       \begin{array}{cccc}         -\frac{C_m}{J_m} & -\frac{P_s K_s \psi}{2 \pi r_s^2 J_m} & 0 & \frac{K_{tm}}{J_m} \\         1 & 0 & 0 & 0 \\         0 & -\frac{P_s K_s \mu_p R_{mp}}{2 \pi r_s J_v} & -\frac{C_v}{J_v} & 0 \\         -\frac{K_{em}}{L_m} & 0 & 0 & -\frac{R_m}{L_m} \\       \end{array}     \right]     \left[       \begin{array}{c}         \omega_m \\         \theta_m \\         \omega_v \\         I_m \\       \end{array}     \right]     +     \left[       \begin{array}{cc}         0 & 0 \\         0 & 0 \\         \frac{1}{J_v} & 0 \\         0 & \frac{1}{L_m} \\       \end{array}     \right]     \left[       \begin{array}{c}         F_v \\         V_m(t) \\       \end{array}     \right]     \end{equation}     \end{center}          \end{document}      Thanks in advance