title: Initial with wrapfigure -- other idea?

text: The following minimal example shows how I'd like to make Initials in my document. I make it with wrapfigure, but it seems to be hard to adjust manually or measure and adjust the height and width automatically.               \documentclass[twoside,11pt]{memoir}     \usepackage[english]{babel}     \usepackage[latin2]{inputenc}     \usepackage{fouriernc}     \usepackage{blindtext}     \usepackage{calc}     \usepackage{wrapfig}     \usepackage{graphicx}          \renewcommand{\baselinestretch}{1.1}     \parskip9pt     \parindent0pt          \newlength{\wrapfig}            % this length will be used for measure the with of the letter     \newcommand{\initiale}[1]{%      \settowidth{\wrapfig}{\makebox{\resizebox{!}{35pt}{#1}}}%      \begin{wrapfigure}[3]{l}{\wrapfig-9pt}%      \vskip-14pt        \makebox{\resizebox{!}{35pt}{#1}}%      \end{wrapfigure}\par     }          \begin{document}     \sloppy          \initiale{D}     Hello, here is some text without a meaning. This text should show, how a     printed text will look like at this place. If you read this text, you will get no     information. Really? Is there no information?Hello, here is some text without a meaning.      This text should show, how a     printed text will look like at this place. If you read this text, you will get no     information. Really? Is there no information?          \initiale{D}     Hello, here is some text without a meaning. This text should show, how a     printed text will look like at this place. If you read this text, you will get no     information. Really? Is there no information?Hello, here is some text without a meaning.     This text should show, how a     printed text will look like at this place. If you read this text, you will get no     information. Really? Is there no information?          \end{document}      You can see, that there is also an other problem with wrapfigure. The vertical space above the "figure" is not the same as anywhere if the wrapfigure environment is on top at the page, or after a `\clearpage` command. The command `\initiale{D}` is the same before the text, it produces still an other output. **I'd like to ask after a better solution.** It would be the easiest to take a `\parbox` at the left side, and then the text, but obviously there will be only one line text right to parbox. I tried also to set the `\leftskip` to a non zero value, but I can't set it back before the end of the actual paragraph.


title: Calculating averages and more

text: I am translating a Word document into LaTeX as a learning experience. Now there is this table, that already has hard-coded values. However, I would like to have it generic, so that changing a single number inside the .tex file changes the number of rows of the column. All values are calculated based on the key of the row, by the following algorithm. > Given a real number, calculate a number a dice (6-sided) and an integer > modifier, which is no larger than +- 3. The expected value of the resulting > modified dice throw should equal the input number with error no higher that > 0.5. Make the algorithm deterministic. _Can this be done? Please propose further reading._ Something in the lines of:               [dice, mod] foo(expected)         dice = floor(expected / 3.5)         mod = floor(expected - dice * 3.5)      But an algorithm, that balances the use of positive and negative modifiers would be better. Also, gracefully handling values below 3.5 would be great (always including at least one die). _As an example, 12 would output 3 dice +1 modifier for a total expected value of 11.5._ The source table is this, but it needn't be followed precisely. ![enter image description here](http://i.stack.imgur.com/UcN2X.png)


title: Creating appealing directory trees - alternative to dirtree

text: I already found a similar question and thus know about the dirtree package. However, the result does not really look nice. Also I'd like to put the tree in a figure environment and get it centered. This just does not work since only the text is centered, not the tree structure               \begin{figure}       \centering       \dirtree{%         .1 spam.         .2 ham.         .2 eggs.         .3 more spam.         .3 dead parrots.       }       \caption[Directory Structure]{This is an example directory structure.}       \label{fig:dir}     \end{figure}      Is there a better way to create file system visualizations?


title: Print Bibliography Only

text: I need to generate my references separately from the main document (i.e., one pdf with the content and one with the bibliography). I achieved this the following way: To generate the pdf lacking references, compile the document with the following line `\nobibliography{bibfile}`. To compile, run `pdflatex`; `bibtex`; `pdflatex`; `pdflatex`. To generate the pdf with only references, change the above line to `\bibliography{bibfile}`, and comment the entire document except this line and the `\bibliographystyle` line. To comment, I used **verbatim** (`\usepackage{verbatim}`) and enclosed everything within `\begin{document}` and `\end{document}` with `\begin{comment}` and `\end{comment}`, except, as mentioned, the bibliography-pertinent commands. To compile, run `pdflatex` once. Is there a simpler way to achieve the same result (one file with references only and one with content only)?


title: Figure in Header

text: For our documentation I am trying to put an image inside the header via but it won't work. I already have tried multiple codes but I can't solve my problem with `fancyhdr`. Anybody has an idea? This is the original sty sheet:               %%     %% This style is derived from the docbook one.     %%     \NeedsTeXFormat{LaTeX2e}     \ProvidesPackage{asciidoc}[2008/06/05 AsciiDoc DocBook Style]          \RequirePackageWithOptions{docbook}          \@ifpackageloaded{xcolor}{       \PassOptionsToPackage{usenames,dvipsnames}{xcolor}     }{       \usepackage[usenames,dvipsnames]{xcolor}     }          \setlength{\parindent}{2em}          \linespread{1.3}          \thispagestyle{empty}     \setlength{\parindent}{0pt}      \setlength{\parskip}{2ex}          \def\DBKcover{     \ifthenelse{\equal{\DBKedition}{}}{\def\edhead{}}{\def\edhead{Ed. \DBKedition}}          % interligne double     \setlength{\oldbaselineskip}{\baselineskip}     \setlength{\baselineskip}{2\oldbaselineskip}          \sffamily          %%\hfill\includegraphics[width=0.15\textwidth]{../../images/sipwise-logo}\\[1cm]\hspace*{3cm}     \hfill\includegraphics{../../images/sipwise-logo}\hspace*{1cm}          \definecolor{SipwiseGreen}{HTML}{006600}     \definecolor{SipwiseGray}{HTML}{000000}          % not available with LaTeX as provided with >= Debian/wheezy any longer ootb     \@ifundefined{White}{       \definecolor{White}{HTML}{FFFFFF}     }{}          \vspace*{9cm}     \hspace*{-3cm}\colorbox{SipwiseGreen}{       \begin{minipage}[t][1.3cm][t]{1.3\textwidth}         \color{SipwiseGreen}         \hspace*{3cm}\hfill Sipwise GmbH\hspace*{3cm}       \end{minipage}     }     \linebreak[4]     \hspace*{-3cm}\colorbox{SipwiseGray}{       \begin{minipage}[t][6cm][t]{1.3\textwidth}         \color{White}         \vspace*{1cm}         \hspace*{3cm}\hfill\Huge\DBKtitle\hspace*{3cm}\\         \vfill         \hspace*{3cm}\hfill\Large Sipwise GmbH\hspace*{3cm}\\         \ttfamily\hspace*{3cm}\hfill\large <support@sipwise.com>\hspace*{3cm}\\         \vspace*{0.5cm}       \end{minipage}     }          \clearpage     \sffamily          % Format for the other pages     \newpage     \setlength{\baselineskip}{\oldbaselineskip}          % dblatex 0.3-2   (Debian/squeeze) provides DBKcheadfront,     % dblatex 0.3.4-1 (Debian/wheezy) no longer provides DBKcheadfront     \@ifundefined{DBKcheadfront}{       \chead[]{}     }{       \chead[]{\DBKcheadfront}     }          \lfoot[]{}     }          \fancyhf{}          \rhead{\rightmark}     \rfoot{\thepage}          % For DocBook literallayout elements, see `./dblatex/dblatex-readme.txt`.     \usepackage{alltt}      This is my transformed version:               %%     %% This style is derived from the docbook one.     %%     \NeedsTeXFormat{LaTeX2e}     \ProvidesPackage{asciidoc}[2008/06/05 AsciiDoc DocBook Style]          \RequirePackageWithOptions{docbook}          \@ifpackageloaded{xcolor}{       \PassOptionsToPackage{usenames,dvipsnames, fancyhdr}{xcolor}     }{       \usepackage[usenames,dvipsnames, fancyhdr]{xcolor}     }          \setlength{\parindent}{2em}          \linespread{1.3}          \thispagestyle{empty}     \setlength{\parindent}{0pt}      \setlength{\parskip}{2ex}          \def\DBKcover{     \ifthenelse{\equal{\DBKedition}{}}{\def\edhead{}}{\def\edhead{Ed. \DBKedition}}          % interligne double     \setlength{\oldbaselineskip}{\baselineskip}     \setlength{\baselineskip}{2\oldbaselineskip}          \sffamily          %%\hfill\includegraphics[width=0.15\textwidth]{../../images/sipwise-logo}\\[1cm]\hspace*{3cm}     \hfill\includegraphics{../../images/sipwise-logo}\hspace*{1cm}          \definecolor{SipwiseGreen}{HTML}{006600}     \definecolor{SipwiseGray}{HTML}{000000}          % not available with LaTeX as provided with >= Debian/wheezy any longer ootb     \@ifundefined{White}{       \definecolor{White}{HTML}{FFFFFF}     }{}          \vspace*{9cm}     \hspace*{-3cm}\colorbox{SipwiseGreen}{       \begin{minipage}[t][1.3cm][t]{1.3\textwidth}         \color{SipwiseGreen}         \hspace*{3cm}\hfill Sipwise GmbH\hspace*{3cm}       \end{minipage}     }     \linebreak[4]     \hspace*{-3cm}\colorbox{SipwiseGray}{       \begin{minipage}[t][6cm][t]{1.3\textwidth}         \color{White}         \vspace*{1cm}         \hspace*{3cm}\hfill\Huge\DBKtitle\hspace*{3cm}\\         \vfill         \hspace*{3cm}\hfill\Large Sipwise GmbH\hspace*{3cm}\\         \ttfamily\hspace*{3cm}\hfill\large <support@sipwise.com>\hspace*{3cm}\\         \vspace*{0.5cm}       \end{minipage}     }          \clearpage     \sffamily          % Format for the other pages     \newpage     \setlength{\baselineskip}{\oldbaselineskip}          % dblatex 0.3-2   (Debian/squeeze) provides DBKcheadfront,     % dblatex 0.3.4-1 (Debian/wheezy) no longer provides DBKcheadfront     \@ifundefined{DBKcheadfront}{       \chead[]{}     }{       \chead[]{\DBKcheadfront}     }          \lfoot[]{}     }          \fancyhdr{}     \pagestyle{fancy}     \fancyhf{}     \lhead{     \includegraphics{logo_header.png}}               \rfoot{\thepage}          % For DocBook literallayout elements, see `./dblatex/dblatex-readme.txt`.     \usepackage{alltt}      Thank you :)


title: pgfplot will not plot past a x value, plot is cut off

text: I tried plotting the following functions; however, they are cut off at x=[-5,5] and I cannot figure out why. Any help would greatly be appreciated.               \documentclass{article}     \usepackage{pgfplots}          \usepgfplotslibrary{external}     \tikzexternalize[shell escape=-enable-write18] %needed for the MiKTeX compiler     \tikzset{external/force remake}          \begin{document}         \begin{tikzpicture}             \begin{axis}[xmin=-10,xmax=10]                 \addplot [mark=none, smooth, color=blue]{x^2+2};                 \addplot [mark=none, smooth, color=red]{x^2};                 \addplot [mark=none, smooth, color=green]{x^2-2};                 \addlegendentry{$x^2+2$}                 \addlegendentry{$x^2$}                 \addlegendentry{$x^2-2$}             \end{axis}         \end{tikzpicture}              \begin{tikzpicture}                 \begin{axis}[xmin=-10,xmax=10]                     \addplot [mark=none, smooth, color=blue]{(x+2)^2};                     \addplot [mark=none, smooth, color=red]{x^2};                     \addplot [mark=none, smooth, color=green]{(x-2)^2};                     \addlegendentry{$(x+2)^2$}                     \addlegendentry{$x^2$}                     \addlegendentry{$(x-2)^2$}                 \end{axis}         \end{tikzpicture}     \end{document}


title: biblatex: no pages for article

text: I have to cite articles without page numbers, book sections however are supposed to have them. I'm using the following code to avoid the "pp." before the pages:               \DefineBibliographyStrings{ngerman}{pages={}}      Obviously, this omits page numbers for all citations. Is there a way to have only the articles without page numbers?


title: Customized table of contents: Same indentation for every line of multi-line titles

text: In a previous question I asked about customizing my table of contents. For now, I have decided to fill the table of contents simply like this for each article:               \addtocontents{toc}{\textit{\Author}\\}     \addtocontents{toc}{\hspace{1cm} \Title \dotfill \pageref{firstpage}–\pageref{lastpage}\\}      But I still have no clue how to indent the line(s) containing the title (if the title extends over more than one line, all lines should be indented by the same amount):               === Author's Name ===              === Title: 1st Line ===         === Title: 2nd Line ===      Is there a simple solution?


title: Automatic parsing/extraction of single-argument commands from input (for use in new environment)?

text: I'm not sure whether this is in principle possible, so let me try to explain; consider this MWE:               \documentclass{article}          \usepackage[showframe]{geometry}     \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{tikzpagenodes} % current page text area     \usepackage{caption}     \pagecolor{yellow!15}          % convert rose: -resize 400x200! /tmp/test.png # ImageMagick          \begin{document}            \begin{center}                    % {figure}[h!]       \centering                        % %(for figure)       \includegraphics[width=1.0\textwidth]{/tmp/test.png}       \captionof{figure}[shortdesc]{    % \caption[shortdesc]{       caption lorem ipsum dolor sit amet, text line 01       caption consectetur adipisicing elit text line 02       caption text line 03       }       \label{fig:test1}       \end{center}                      % {figure}       % \end            % http://tex.stackexchange.com/questions/14512/how-to-define-a-figure-size-so-that-it-consumes-the-rest-of-a-page/14514#14514       % needs texing twice:       \begin{tikzpicture}[overlay,remember picture]         % Caption         \node [anchor=south west,outer sep=0pt,inner sep=0pt,text width=\textwidth] (caption) at (current page text area.south west) {%           \captionof{figure}[shortdesc]{ %           caption lorem ipsum dolor sit amet, text line 01           caption consectetur adipisicing elit text line 02           caption text line 03           }%           \label{fig:test2} % has to stand after the caption, to get its number         };         % Image         \path let \p0 = (0,0), \p1 = (caption.north) in           node [inner sep=0pt,outer sep=0pt,anchor=south] at (\x1,\y1) {%             \pgfmathsetmacro\imgheight{\y0-\y1-\abovecaptionskip}%             \includegraphics[height=\imgheight pt,width=\textwidth,keepaspectratio]{/tmp/test.png}%         };       \end{tikzpicture}%          \end{document}      The first image snippet is my regular pattern of use of `{figure}` (or `{center}`, for non-floating) and `\includegraphics`. Occasionally though, I have to make images fit on bottom of page, for which I use the `tikz` pattern, as per How to define a figure size so that it consumes the rest of a page? - and that is the second image snippet. Now, I always get mega frustrated when I wait for a minute for a doc to comile, realize the pic is not where I want, "maybe \vspace{-1em} will help"?, compile, wait, "Nope... maybe \clearpage"? ... etc until I realize I have to use the tikz pattern - which now requires me to rearrange the code snippet `:/`. What I like about my typical pattern, is that its contents are basically just these three commands - and their (only) arguments:               \includegraphics[width=1.0\textwidth]{/tmp/test.png}     \captionof{figure}[shortdesc]{    % \caption[shortdesc]{       caption lorem ipsum dolor sit amet, text line 01       caption consectetur adipisicing elit text line 02       caption text line 03     }     \label{fig:test1}      ... and then, I can basically just exchange `{figure}` for `{center}` (and `caption` for `\captionof`) without changing these innards much. So, what I'd ultimately want to do, is define a new environment, say `{tikzbottomfigure}`, so I can write the same pattern inside:               \begin{tikzbottomfigure}       \includegraphics[width=1.0\textwidth]{/tmp/test.png}       \captionof{figure}[shortdesc]{    % \caption[shortdesc]{         caption lorem ipsum dolor sit amet, text line 01         caption consectetur adipisicing elit text line 02         caption text line 03       }       \label{fig:test1}     \end{tikzbottomfigure}      ... - and this is the part I'm unsure of - I'd want the new environment code to automatically extract the first command `\includegraphics...` and its arguments (all up to second command) into `#1`; the second command `\captionof...` and its contents into `#2`; and the `\label` and its contents into `#3` -- so that in the new environment definition code, I could simply write:               \begin{tikzpicture}[overlay,remember picture]       % Caption       \node [anchor=south west,outer sep=0pt,inner sep=0pt,text width=\textwidth] (caption) at (current page text area.south west) {%         #2%         #3% has to stand after the caption, to get its number       };       % Image       \path let \p0 = (0,0), \p1 = (caption.north) in         node [inner sep=0pt,outer sep=0pt,anchor=south] at (\x1,\y1) {%           \pgfmathsetmacro\imgheight{\y0-\y1-\abovecaptionskip}%           #1%       };     \end{tikzpicture}%      Let's for the moment ignore the potential problems of `\includegraphics` not having the same arguments in both cases; my primary motive is to avoid defining a new environment with multiple arguments, which would force me to use braces to delimit arguments - and thus ultimately force me to rewrite image code snippets again, which is what I want to avoid in the first place. The only way I can see this working, is if there is a mechanism that can parse/split and extract "commands and their arguments" from a chunk of text (and possibly assign them to individual `#1` type arguments later); notably, some commands may span several lines of text, so this shouldn't be just an (ASCII) text line splitter. So, ultimately, my question is - does such a parsing mechanism exist in Latex, so that I could apply it to my intended usage as described?


title: Break up \listoftables and \listoffigures by adding section names

text: Is it possible to use `\listoftables` and `\listoffigures`, but to have the lists divided by sections, similar to how the table of contents works?


title: lemmon style proof for logic

text: Does exist a package for Lemmon style proof in Logic? something like: http://logik.phl.univie.ac.at/~chris/gateway/formular-uk-bau.html thanks


title: Add author's name automatically while building ToC

text: I, along with a few others, am writing a project report, where different subsections have been authored by different people. When I build the table of contents using the `\tableofcontents` tag, it would be really helpful if the subsection named could bear with them the name of the authors in tiny letters. Is this possible? We are using the documentclass `article`.


title: using \ref for words in text - across files - and including urls

text: So, I have a couple of questions, I'll try to build it up progressively:   1. I want to use labels and references for words or phrases instead of the usual reference to a section number or page. I found a solution here - Heiko's solution - that works for me, so I can then use              \LBL[A-01]{some phrase}      and when I want to print out "some phrase" I use              \ref{A-01}      which works great. So far so good, but if anyone has any other ideas - especially in light of what follows, I would be happy to hear them.   2. Then I want to be able to use this system between files. So in one file I have a list of all the phrases (which might change at some point) and in another file I can just use `\ref` to get the phrases from the other file. I found simply adding `\usepackage{xr}` and the appropriate `\externaldocument{}` command, that worked fine in conjunction with the `\LBL` code from above.    3. Now this is where it got too tricky for me. I want the 'some phrase' to actually be a url or rather href. So to get urls in the first place, I add the `hyperref` package, and then it seems the `xr` package gets all weird, which is fixed by using `xr-hyper` instead. So I want the 'some phrase' to be the description of the href from the other file, AND I want clicking on it to take me to the url, and NOT to the other pdf.  Maybe this is too involved of an explanation, so I've got a minimal working example below - you have to name them file1.tex and file2.tex: **file1.tex**               \documentclass[12pt]{article}          \usepackage{xr-hyper}     \usepackage{hyperref}     \externaldocument{file2}          \newcounter{word}     \makeatletter     \newcommand*{\LBL}{%       \@dblarg\@LBL     }     \def\@LBL[#1]#2{%       \begingroup         \renewcommand*{\theword}{#2}%         \refstepcounter{word}%         \label{#1}%         #2%       \endgroup     }     \makeatother          \begin{document}          \ref{A-01}          \ref{A-02}     \end{document}      **file2.tex:**               \documentclass[12pt]{article}          \usepackage{xr-hyper}     \usepackage{hyperref}     \externaldocument{file1}          \newcounter{word}     \makeatletter     \newcommand*{\LBL}{%       \@dblarg\@LBL     }     \def\@LBL[#1]#2{%       \begingroup         \renewcommand*{\theword}{#2}%         \refstepcounter{word}%         \label{#1}%         #2%       \endgroup     }     \makeatother          \begin{document}          \LBL[A-01]{some phrase}          \LBL[A-02]{\href{http://tex.stackexchange.com/}{Best website ever}}          \end{document}      What happens now is that in file1.pdf both lines are hyperlinks to file2.pdf. But I want the first one to not be a clickable link at all, just normal text, and the second one to be the url hyperlink. I hope this makes sense.. How should I go about doing such a thing?


title: How to use mathptmx and txfonts combined?

text: I am a new LaTeX user. After a long search, I realized that the best fonts for my work are `txfonts` and `mathptmx`. However, I wish I could use both fonts combined. For example, using the font `mathptmx` as a primary font and use some elements of `txfonts`, as the symbol for the integral. Is this possible? In the preamble, used the following:               \usepackage{amsmath, amsfonts, amssymb, mathrsfs}     \usepackage{txfonts}     \usepackage{mathptmx}      This preamble allows me to use `mathptmx` as math font. I can also use some elements of `txfonts` without any special configuration such as the command `\varmathbb{R}`. But I can not replace the symbol of the integral of `mathptmx` by `txfonts` symbol... Any solution?


title: newtxmath \hat{} problem in beamer

text: Using the `newtxmath` package with `beamer` produces wrong output for the `\hat{}` command. I don't see the problem in the `article` mode. Also, using alternative packages such as `times` cause no problems. I am using TeX Live with kile under Linux Mint 14KDE.               \documentclass[handout,utf8]{beamer}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{newtxtext}     \usepackage{newtxmath}          \begin{document}          \begin{frame}     $\hat{\theta}$     \end{frame}          \end{document}      Any suggestion on how to fix this?


title: Centering equation number, removing margin specification

text: After many hours, I have gotten (close) to my desired end product. Now I just need to figure out how to put the:   1. (1) in the center of the right of the equations   2. Make the margins the LateX default, without the equations running off the page. Here is what I mean: ![enter image description here](http://i.stack.imgur.com/XygOn.png) Here is my code:               \documentclass[10pt]{article}     \usepackage{makeidx}     \usepackage{multirow}     \usepackage{multicol}     \usepackage[dvipsnames,svgnames,table]{xcolor}     \usepackage{graphicx}     \usepackage[margin=0.5in]{geometry}     \usepackage{epstopdf}     \usepackage{ulem}     \usepackage{hyperref}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage[super]{nth}     \usepackage{graphicx}     \begin{document}     {\small     \begin{equation}     \begin{alignedat}{5}     \frac{dX_{SS}}{dt} &= \Lambda{}-\mu{}X_{SS}-\frac{{\beta{}}_IX_{SS}}{N}A-\frac{{\beta{}}_AX_{SS}}{N}B-\frac{\tau{}X_{SS}}{N}C, \\     \frac{dX_{SL}}{dt} &= \frac{\tau{}X_{SS}}{N}C-\frac{{\beta{}}_IX_{SL}}{N}A-\frac{{\beta{}}_AX_{SL}}{N}B-\left({\delta{}}_{SL}+\mu{}\right)X_{SL}, \\     \frac{dX_{ST}}{dt} &= {\delta{}}_{SL}X_{SL}-\frac{{\beta{}}_IX_{ST}}{N}A-\frac{{\beta{}}_AX_{ST}}{N}B-\left(\mu{}+{\mu{}}_T+{\psi{}}_S{\lambda{}}_T\right)X_{ST}, \\     \frac{dX_{HS}}{dt} &= \frac{{\beta{}}_IX_{SS}}{N}A+\frac{{\beta{}}_AX_{SS}}{N}B-\frac{\tau{}X_{HS}}{N}C-\left({\nu{}}_{HS}+\mu{}+{{\sigma{}}_1\lambda{}}_H\right)X_{HS}, \\     \frac{dX_{HL}}{dt} &= \frac{{\beta{}}_IX_{SL}}{N}A+\frac{{\beta{}}_AX_{SL}}{N}B+\frac{\tau{}X_{HS}}{N}C-\left({\nu{}}_{HL}+{\delta{}}_{HL}+\mu{}+{\sigma{}}_3{\lambda{}}_H\right)X_{HL}, \\     \frac{dX_{HT}}{dt} &= \frac{{\beta{}}_IX_{ST}}{N}A+\frac{{\beta{}}_AX_{ST}}{N}B+{\delta{}}_{HL}X_{HL}-\left({\nu{}}_{HT}+\mu{}+{\mu{}}_T+{\sigma{}}_5{\lambda{}}_H+{\psi{}}_H{\lambda{}}_T\right)X_{HT}, \\     \frac{dX_{AS}}{dt} &= {\nu{}}_{HS}X_{HS}-\frac{\tau{}X_{AS}}{N}C-\left(\mu{}+{\mu{}}_A+{\sigma{}}_2{\lambda{}}_H\right)X_{AS}, \\     \frac{dX_{AL}}{dt} &= {\nu{}}_{HL}X_{HL}+\frac{\tau{}X_{AS}}{N}C-\left({\delta{}}_{AL}+\mu{}+{\mu{}}_A+{\sigma{}}_4{\lambda{}}_H\right)X_{AL}, \\     \frac{dX_{AT}}{dt} &= {\nu{}}_{HT}X_{HT}+{\delta{}}_{AL}X_{AL}-\left(\mu{}+{\mu{}}_A+{\mu{}}_T+{\lambda{}}_T+{\lambda{}}_H\right)X_{AT}, \\     \frac{dX_{S+T_T^{\left(1\right)}}}{dt} &= {\psi{}}_S{\lambda{}}_TX_{ST}-\left(\mu{}+{\lambda{}}_{T_1}\right)X_{S+T_T^{\left(1\right)}}-\frac{{\beta{}}_IX_{S+T_T^{\left(1\right)}}}{N}A-\frac{{\beta{}}_AX_{S+T_T^{\left(1\right)}}}{N}B, \\     \frac{dX_{S+T_T^{\left(2\right)}}}{dt} &= {\lambda{}}_{T_1}X_{S+T_T^{\left(1\right)}}-\frac{{\beta{}}_IX_{S+T_T^{\left(2\right)}}}{N}A-\frac{{\beta{}}_AX_{S+T_T^{\left(2\right)}}}{N}B-(\mu{}+{\lambda{}}_{T_2})X_{S+T_T^{\left(2\right)}}, \\     \frac{dX_{S+T_T^{\left(3\right)}}}{dt} &= {\lambda{}}_{T_2}X_{S+T_T^{\left(2\right)}}-\frac{{\beta{}}_IX_{S+T_T^{\left(3\right)}}}{N}A-\frac{{\beta{}}_AX_{S+T_T^{\left(3\right)}}}{N}B-\mu{}X_{S+T_T^{\left(3\right)}}, \\     \frac{dX_{H+T_T^{\left(1\right)}}}{dt} &= {\psi{}}_H{\lambda{}}_TX_{HT}+\frac{{\beta{}}_IX_{S+T_T^{\left(1\right)}}}{N}A+\frac{{\beta{}}_AX_{S+T_T^{\left(1\right)}}}{N}B-(\mu{}+{\lambda{}}_{T_1}+{{\alpha{}}_1\lambda{}}_{H_1}+{\nu{}}_{HT})X_{H+T_T^{\left(1\right)}}, \\     \frac{dX_{H+T_T^{\left(2\right)}}}{dt} &= {\lambda{}}_{T_1}X_{H+T_T^{\left(1\right)}}+\frac{{\beta{}}_IX_{S+T_T^{\left(2\right)}}}{N}A+\frac{{\beta{}}_AX_{S+T_T^{\left(2\right)}}}{N}B-\left(\mu{}+{\lambda{}}_{T_2}+{{\alpha{}}_2\lambda{}}_{H_2}+{\nu{}}_{HT}\right)X_{H+T_T^{\left(2\right)}}, \\      \frac{dX_{H+T_T^{\left(3\right)}}}{dt} &= {\lambda{}}_{T_2}X_{H+T_T^{\left(2\right)}}+\frac{{\beta{}}_IX_{S+T_T^{\left(3\right)}}}{N}A+\frac{{\beta{}}_AX_{S+T_T^{\left(3\right)}}}{N}B-\left(\mu{}+{\nu{}}_{HT}+{\sigma{}}_1{\lambda{}}_H\right)X_{H+T_T^{\left(3\right)}}, \\     \frac{dX_{A+T_T^{\left(1\right)}}}{dt} &= {\lambda{}}_TX_{AT}+{\nu{}}_{HT}X_{H+T_T^{\left(1\right)}}\-\left(\mu{}+{\mu{}}_A+{\lambda{}}_{T_1}+{\lambda{}}_{H_1}\right)X_{A+T_T^{\left(1\right)}}, \\      \frac{dX_{A+T_T^{\left(2\right)}}}{dt} &= {\lambda{}}_{T_1}X_{A+T_T^{\left(1\right)}}+{\nu{}}_{HT}X_{H+T_T^{\left(2\right)}}-{(\mu{}+{\mu{}}_A+\lambda{}}_{T_2}+{\lambda{}}_{H_2})X_{A+T_T^{\left(2\right)}}, \\     \frac{dX_{A+T_T^{\left(3\right)}}}{dt} &= {\lambda{}}_{T_2}X_{A+T_T^{\left(2\right)}}+{\nu{}}_{HT}X_{H+T_T^{\left(3\right)}}-(\mu{}+{\mu{}}_A+{\sigma{}}_2{\lambda{}}_H)X_{A+T_T^{\left(3\right)}}, \\     \frac{dX_{H_T+L}}{dt} &= {\sigma{}}_3{\lambda{}}_HX_{HL}+{\sigma{}}_4{\lambda{}}_HX_{AL}-(\mu{}+\phi{}{\delta{}}_{HL})X_{H_T+L}, \\     \frac{dX_{H_T+T}}{dt} &= \phi{}{\delta{}}_{HL}X_{H_T+L}+{\lambda{}}_HX_{AT}-(\mu{}+{\psi{}}_H{\lambda{}}_T)X_{H_T+T}+{\sigma{}}_5{\lambda{}}_HX_{HT}, \\     \frac{dX_{H_T+T_T^{\left(1\right)}}}{dt} &= {\psi{}}_H{\lambda{}}_TX_{H_T+T}+{\lambda{}}_{H_1}X_{A+T_T^{\left(1\right)}}+{\alpha{}}_1{\lambda{}}_{H_1}X_{H+T_T^{\left(1\right)}}-(\mu{}+{\lambda{}}_{T_1}+\gamma{})X_{H_T+T_T^{\left(1\right)}}, \\     \frac{dX_{H_T+T_T^{\left(2\right)}}}{dt} &= {\lambda{}}_{T_1}X_{H_T+T_T^{\left(1\right)}}+{\alpha{}}_2{\lambda{}}_{H_2}X_{H+T_T^{\left(2\right)}}+{\lambda{}}_{H_2}X_{A+T_T^{\left(2\right)}}-\left(\mu{}+{\lambda{}}_{T_2}+\gamma{}\frac{{\lambda{}}_{T_1}}{{\lambda{}}_{T_1}+{\lambda{}}_{T_2}}\right)X_{H_T+T_T^{\left(2\right)}}, \\     \frac{dX_{H_{T_1}}}{dt} &= {\lambda{}}_{T_2}X_{H_T+T_T^{\left(2\right)}}+{\sigma{}}_1{\lambda{}}_HX_{H+T_T^{\left(3\right)}}+{\sigma{}}_2{\lambda{}}_HX_{A+T_T^{\left(3\right)}}-\mu{}X_{H_{T_1}}, \\     \frac{dX_{H_{T_2}}}{dt} &= {\sigma{}}_1{\lambda{}}_HX_{HS}+{\sigma{}}_2{\lambda{}}_HX_{AS}-\mu{}X_{H_{T_2}}, \\     \frac{dX_{IRIS}}{dt} &= \gamma{}\left(X_{H_T+T_T^{\left(1\right)}}+\frac{{\lambda{}}_{T_1}}{{\lambda{}}_{T_1}+{\lambda{}}_{T_2}}X_{H_T+T_T^{\left(2\right)}}\right)-\left(\mu{}+{\mu{}}_{IRIS}\right)X_{IRIS}, \\     \text{where}, \\     A &= X_{HS}+X_{HL}+X_{HT}+X_{H+T_T^{\left(1\right)}}+X_{H+T_T^{\left(2\right)}}+X_{H+T_T^{\left(3\right)}}, \\     B &= X_{AS}+X_{AL}+X_{AT}+X_{A+T_T^{\left(1\right)}}+X_{A+T_T^{\left(2\right)}}+X_{A+T_T^{\left(3\right)}}, \\     C &= X_{ST}+X_{HT}+X_{AT}+X_{H_T+T}, \\     N &= A+B+{X_{SS}+X}_{S+T_T^{\left(1\right)}}+X_{S+T_T^{\left(2\right)}}+X_{S+T_T^{\left(3\right)}}+X_{H_T+L}+X_{H_T+T}+X_{H_T+T_T^{\left(1\right)}}+X_{H_T+T_T^{\left(2\right)}}+X_{H_{T_1}}+X_{H_{T_2}}+X_{IRIS}     \end{alignedat}     \end{equation}     }     \end{document}      Please let me know if any clarification is necessary.


title: pgfgantt - Gantt chart with two highlighted vertical lines with labels

text: "today" allows us to create one highlighted vertical line with a label. But how can I create more than one?


title: Problem with a TikZ/Geogebra plot of an exponential function (even if using CVS version definition)

text: I wanted to graph the function f(x)=(-1+4x^2)*e^2 in a coordinate system. Using "Export Graphics View as pgf/TikZ" in Geogebra I got the following code (here shown after I did some minor changes regarding color and arrow style).               \documentclass{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     [scale=2,line cap=round,line join=round,x=1.0cm,y=1.0cm]     \draw [color=black!70,dash pattern=on 1pt off 1pt, xstep=0.5cm,ystep=0.5cm] (-1.45,-1.28) grid (1.45,2.48);     \draw[->,line width=1,color=black] (-1.45,0) -- (1.45,0);     \foreach \x in {-1,1}     \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};     \draw[color=black] (1.31,0.04) node [anchor=south west] { x};     \draw[->,line width=1,color=black] (0,-1.28) -- (0,2.48);     \foreach \y in {-1,1,2}     \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$};     \draw[color=black] (0.05,2.28) node [anchor=west] { y};     \clip(-1.45,-1.28) rectangle (1.45,2.48);     \draw[line width=1,color=black!80,fill=black!80,fill opacity=0.6, smooth,samples=50,domain=0.0:0.5] plot(\x,{(4*\x^2-1)*2.7183^\x}) -- (0.5,0) -- (0,0) -- cycle;     \draw[line width=1,smooth,samples=100,domain=-1.5:1.5] plot(\x,{(-1+4*\x^2)*2.7183^\x});     \end{tikzpicture}     \end{document}      The code above gave me this result: ![The way the graph looks before adding code to preamble](http://i.stack.imgur.com/jftzC.png) I tried installing TikZ CSV from this page following steps given here but this only flooded the log in "Undefined control sequence" messages. Instead I tried using Jake's answer code to improve the exp-function. Then the result looked a bit better but still not correct: ![The way the graph looks after adding Jake's code to preamble](http://i.stack.imgur.com/LPPaP.png) Here is how the original graph is shown in Geogebra (Wolfram Alpha shows similar results): ![The way the graph looks in Geogebra](http://i.stack.imgur.com/SAJrj.png) Obviously the exp-code is not helping enough, so maybe there still is a bug in that? Can someone help me with this? Would it be possible to plot the graph correctly in some other way? If so, what would that code look like?


title: How to draw markup language structure?

text: I want to highlight the structure of a formatting language that uses tags somewhat related to HTML, but with different capabilities regarding the closing tags. I'm thinking of something like this: ![mockup](http://i.stack.imgur.com/g7SRX.png) What options do I have to draw the brackets that explain the structure without the help of additional graphics software? (I'm using pdflatex...)


title: Thesis paper format and bibliography issues!

text: I'll try to be as clear as possible. I use texshop 2.47 on my Mac with bibdesk. So far I wrote an article for ACS journal with their package. At the moment I'm working on my PhD thesis. I found this nice template which is using:               \bibliographystyle{unsrtnat}     \documentclass[11pt, a4paper, openright, twoside]{Thesis}     \usepackage[square, numbers, comma, sort&compress]{natbib}      The template is really well done. So I got two main problems: - I can't generate a5 .pdf (if I write a5paper the pdf is still a4 for some reason) - The bibliography is generated correctly but also shows me doi, url and title, which I don't want. Now I've been reading a bit, most people suggest to switch to BibLaTeX or others. I personally don't want to play too much around with it, but I thought there must be a simple solution. The way I would like to generate the pdf is in a5 format (so I see how it looks when it will be printed) and with the several references with full authors list (not Smith et al.) and all the other information (except title, doi, url). The authors of this template create a `thesis.cls` which can be found here (http://www.latextemplates.com/template/masters-doctoral-thesis) EDIT: `\documentclass[11pt, b5paper, openright, twoside]{Thesis} \usepackage[square,numbers,comma,sort&compress]{natbib}` and `\bibliographystyle{unsrtnat} \bibliography{Bibliography}`


title: Modify single page size and insert image

text: I'm trying to generate a PDF where every page has a background image and some text placed at specific positions. Some of the pages are normal A4 portrait and others are landscape. My problem is that after I change a certain page size from portrait to landscape or the other way around, the coordinates for placing the image are messed up. It seems like the `\put` coordinate _y_ -axis is off by +/- 253.5mm after I change the page size.               \documentclass[10pt,a4paper]{article}     \pdfpagewidth 210mm     \pdfpageheight 297mm     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[english]{babel}     \usepackage[a4paper,portrait,margin=0.0mm]{geometry}     \usepackage{eso-pic}     \usepackage[absolute,showboxes]{textpos}     \usepackage[pdftex]{graphicx}          \begin{document}     \fontfamily{phv} \selectfont     \thispagestyle{empty}          \begin{textblock*}{98.00mm}(24.00mm,38.00mm)     \raggedright     \normalsize     Some text\end{textblock*}          \AddToShipoutPicture*{     \put(0,0){%     \includegraphics[page=1,width=210mm,height=297mm]{backgroundimage.pdf}}}          \null\newpage          %change page to landscape     \eject \pdfpagewidth=297mm \pdfpageheight=210mm          \begin{textblock*}{98.00mm}(24.00mm,38.00mm)     \raggedright     \normalsize     Some text\end{textblock*}          % This image isn't placed correctly at 0,0 ...need to use \put(0,253.5)     \AddToShipoutPicture*{     \put(0,0){%      \includegraphics[page=1,width=297mm,height=210mm]{landscape.pdf}}}     \null\newpage           \end{document}


title: How do CTAN maintainers make sure all the uploaded packages and classess in CTAN are free of malicious code?

text: There are a large number of packages (plus some classes) uploaded and updated in CTAN (other mirrors as well). How do the CTAN maintainers make sure the uploaded stuff is free of malicious code? Do they use a sophisticated script (like anti-virus checkers probably use) to parse the code to check for cleanness?


title: LaTeX: \bordermatrix in subfigure creates margin above the matrix

text: I want to have a `\bordermatrix` environment in a `subfigure` to show the correspondence between an incidence graph (which is a `tikzpicture` - I'm sure it's irrelevant to the problem) and the incidence matrix. The two figures are next to each other (as expected), but the math environment creates a (huge) white space (margin) above. Please see the code and the screenshot below.               \begin{figure}       \centering             \subfigure[bipartiter Inzidenzgraph\newline (\emph{bipartite Anordnung})]{         \fbox{           \plotungerichteterHGInzidenzBipartit % a tikzpicture         }       }            \subfigure[Inzidenzmatrix] {         \fbox{           \resizebox{4cm}{!}{             $\bordermatrix{               &v_1&v_2&v_3 &v_4&v_5  \cr               e_1& 1 & 1 & 0 & 1 & 1 \cr               e_2& 1 & 1 & 1 & 0 & 0 \cr               e_3& 0 & 0 & 1 & 0 & 1  \cr               e_4& 0 & 0 & 0 & 1 & 0}$           }         }       }            \caption[Darstellungsformen eines Hypergraphen]{Darstellungsformen eines Hypergraphen}       \label{fig:ungerichteterHG}     \end{figure}      As you can see, I added fboxes to show that the scope of the figures are as expected. These as well as the resizebox are not the problem (I removed them, same issue). ![subfigs next to each other](http://i.stack.imgur.com/ftRX3.png) . Actually in the above code there is no newline between the subfigures so that they are next to each other. But, interestingly, if I would place the matrix beneath the subfigure (by adding that new line) I will get the following and as you can see, this mysterious white space is gone: ![subfig 1 upon subfig 2 - no whitespace ](http://i.stack.imgur.com/Htgcf.png) . So why would there be whitespace above the matrix only if I place them next to each other, but everything as expect in case I place them above each other?


title: Problem with bibliography with the MITWPL style template

text: I am embarrassed to ask this very specific question, but would be eternally grateful if somebody could kindly help. I need to use a specific style template provided by a publisher (downloadable here), and am having a problem with it. example.tex, which is included in the download, simply does not compile. Below I attach the console messages I get when I try to compile it. ![enter image description here](http://i.stack.imgur.com/nMstZ.png) ![enter image description here](http://i.stack.imgur.com/LiVWp.png) ![enter image description here](http://i.stack.imgur.com/7HRwO.png) ![enter image description here](http://i.stack.imgur.com/9vO7r.png) ![enter image description here](http://i.stack.imgur.com/w35qL.png) When I delete the last line of example.tex, `\custombib{\bibliography{example}}`, then a PDF without the bibliography can be generated, though still with warnings. So, the problem obviously has to do with the bibliography. However, I cannot even tell whether the provided style template or the example file is already flawed, or it is only in my environment (TeXShop 3.24 running on Mac OS 10.8.5) that this problem occurs. Without fixing this problem, I cannot complete my paper with a bibliography. I would really appreciate any help on this.


title: How to draw a node as a filled circle (dot) to indicate a connection using TikZ and LaTeX?

text: I have some trouble drawing a control system block diagram using TikZ. I want a certain node to be shown as a dot, indicating a connection. However, the dot is not positioned at the center of the node but above it. How can I fix this? The problem is obvious from a PS or PDF generated from this LaTeX document:               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{shapes,arrows}     \begin{document}          \pagestyle{empty}          \tikzstyle{block} = [draw, rectangle, minimum width = 0.75cm, minimum height = 0.75cm]     \tikzstyle{sum} = [draw, circle, minimum size=.5cm, node distance=1.75cm]     \tikzstyle{input} = [coordinate]     \tikzstyle{output} = [coordinate]          \begin{tikzpicture}[node distance=2cm,auto,>=latex']         \node [input, name=input] {};         \node [sum, right of=input] (sum) {};         \node [block, right of=sum] (a1) {$A_1(s)$};         \node [block, right of=a1] (a2) {$A_2(s)$};         \node [block, right of=a2] (k) {$K$};         \node [output, right of=k] (output) {};               \draw [->] (a1) -- (a2);         \draw [->] (a2) -- node [name=vout] {$V_o$} (k);             \node [block, below of=a2] (a3) {$A_1(s)$};             \draw [draw,->, node] (input) -- node {$V_\mathrm{ref}$} node[pos=0.95] {{\tiny $+$}} (sum);        \draw [->] (sum) -- (a1);        \draw [->] (k) -- node[name=vl]  {$V_L$} (output);        \draw [->] (vl) |- (a3);        \draw [->] (a3) -| node[pos=0.99, right] {{\tiny $-$}} (sum);             \fill (vl) circle [radius=2pt];     \end{tikzpicture}     \end{document}


title: One lowercase letter in chapter name

text: I have a chapter title which has an abbreviation inside. The chapter title in the class is all written in uppercase letters, but the plural suffix of the abbreviation should be in lowercase. How can I do this? E.g.:               \chapter{Bla Bla Bla Bla XYZs}      gives               BLA BLA BLA BLA XYZS      but what I want is:               BLA BLA BLA BLA XYZs      MWE:               \usepackage{graphicx,pstricks}     \usepackage{environ,amssymb}     \newcommand*{\Scale}[2][4]{\scalebox{#1}{$#2$}}%     \newcommand*{\Resize}[2]{\resizebox{#1}{!}{$#2$}}%     \usepackage[fleqn]{amsmath}     \usepackage{graphics}     \usepackage[T1]{fontenc}     \usepackage{moreverb}     \usepackage{subfigure}     \usepackage{epsfig}     \usepackage{subfigure}     \usepackage{hangcaption}     \usepackage{txfonts}     \usepackage{palatino}     \usepackage{float}     \usepackage[shortlabels]{enumitem}     \usepackage{hyperref}     \usepackage[toc,page]{appendix}          %if you're having problems with overfull boxes, you may need to increase     %the tolerance to 9999     \tolerance=9999          \bibliographystyle{plain}     %\bibliographystyle{IEEEbib}          \renewcommand{\caption}[1]{\singlespacing\hangcaption{#1}\normalspacing}     \renewcommand{\topfraction}{0.85}     \renewcommand{\textfraction}{0.1}     \renewcommand{\floatpagefraction}{0.75}     \DeclareRobustCommand{\plural}{s}          \title {XXX}     \author {xxx}     \conferraldate {September}{2014}     \degreefield {asda}     \copyrightholder{asdasd}     \copyrightyear{2014}          \begin{document}          \maketitle     \makecopyright               \begin{statement}          \end{statement}          \begin{abstract2}               \end{abstract2}          \begin{acknowledgements}          \end{acknowledgements}          \contentspage     \tablelistpage     \figurelistpage          \normalspacing \setcounter{page}{1} \pagenumbering{arabic}     \pagestyle{cornell} \addtolength{\parskip}{0.5\baselineskip}     \chapter{Bla Bla Bla Bla XYZs}      Edit: Template used: http://www.gradschool.cornell.edu/sites/default/files/field_file/cu_thesis-2.9.zip


title: Can't silence a pdftex "PDF inclusion: multiple PDFs with page group" error

text: I am having an issue with PDFs generatied in `Inkscape`. If multiple files generated in this way are included on a single page I get the following error:               pdfTeX warning: pdflatex.exe (file <FILENAME>.pdf): PDF inclusion: multiple pdfs with page group included in a single page>]      This seems to be a known bug in `TeX` and has been discussed here: Multiple PDFs with page group included in a single page warning Rather than running all my PDFs twice through `ghostscript` I would like to address this by using `silence` to surpress the warnings however I am unable to create a warning filter which works. I have tried `\WarningFilter{pdflatex}{PDF inclusion}` and various permutations however this does not work. I believe this is due to the file name being placed at the start of the error. The `silence` manual states that it is better to use the `\WarningFilter*` option and to find the process that generates the error message in the `.sty` files. Since pdfTeX is not a package it does not (to the best of my knowledge) have a `.sty` file. I cannot work out which file contains the scripts for generating the errors and thus have not been able to create a function filter. Does anyone know which file (Windows MiKTeX based distribution) generates these errors or how to make a working filter in this case?


title: Padding underscore with right space

text: I am using the `times` package and when using an underscore `_` before an italicized upper case character it overlaps. Is it possible to pad the underscore with a small amount of space to the right, or shift it slightly to the left? It is not an issue using other fonts (e.g. utopia), but I want to use `times` for the document. ![underscore_position](http://i.stack.imgur.com/vVXJY.png)


title: Vertical skip for the operator \cases

text: I would like to create a formula with the operator \cases, whose lines contain sums:               \begin{cases}\sum (...) \\ \sum (...) \end{cases}      Expressions in the sums are huge, and it would be natural to add some 'smallskip' between two lines. How can I do that?


title: Vertical skip between p{...} rows of tabular

text: I want to increase a bit the vertical spacing in my `tabular` table. I did something like this:               \documentclass{article}          \begin{document}          \begin{tabular}{p{4cm}p{4cm}}       Lorem ipsum dolor sit amet consectetur & adipisicing elit \\[6pt]       sed do eiusmod tempor incididunt ut labore & et dolore magna aliqua.\\     \end{tabular}          \end{document}      but to my surprise, it doesn't work - it seems that the extra vertical space from `[12pt]` is somehow eaten by the space beneath the (shorter) parbox. What should I do?


title: Contributing to Babel or Polyglossia language support

text: I want to contribute language support for Babel or Polyglossia, so that I can type in my native language **and** use LuaTex or LuaLaTeX. Lithuanian support at the moment is using L7x font encoding and if I try to use it as it is, it gives me an error.               ! LaTeX Error: Encoding scheme `L7x' unknown.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                    This is the minimal working example (compile with `lualatex`):               \documentclass{scrartcl}          \usepackage{fontspec,luatextra}     \usepackage[lithuanian]{babel}          \begin{document}     Hello world ąžerty     \end{document}      So, I want to contribute to the babel Lithuanian language support by porting the required parts for LuaLaTeX, but do not have the know how yet. **Question:** What should I be aware before I start and where should I start? Or would it be easier to start playing with Polyglossia? What is its status on LuaTeX right now? * * * **P.S** I am aware of the new babel maintainer but under his provided link there is no Lithuanian language directory. However, there is a CTAN entry, but I have no idea about it's structure.


title: Want to install a new font in MiKTeX

text: I am using MiKTeX in PC with WinEDT 6.0 version. I want to use a new Type1 font for one of my document and I have `*.afm` and `*.PFB` files with me. How can I install a font newly and what are the map files need to be updated for that. Please guide me step by step.


title: Consistent way to define document title, subtitle, author, affiliation, abstract etc

text: Many document classes seem to have their own way of defining document title and author information, often with only subtle differences. (`\title` seems to be pretty much standard everywhere, in contrast to `\author`.) Have there been efforts to create a consistent interface for this kind of metadata? This could be the union of all metadata supported by any of the many document classes out there, with adapters to existing document classes and perhaps warnings if a setting is not supported. Something along the lines of:               \title{Document title}     \subtitle{Document subtitle}     \author{First Author, email=first@author.com, affiliation=..., }     \abstracttext{...}     \AtBeginDocument{\maketitleandabstract}      The benefits of such an interface would be:   * Users need to learn only one way to define document metadata   * Two document classes that support this interface can be used interchangeably   * For document classes that do not support this interface, wrappers could be provided via packages At our site, we have a home-grown solution with a nonstandard syntax. I wonder if and how others have tackled this problem.


title: Appendix now showing up using Classicthesis

text: I am using Classicthesis, and I am trying to include an appendix. In the appendix bit of `Classicthesis.tex`, I put:               \include{path/myapp.tex}      When I compile, it does not show up in the document, just a blank page. Does anyone know what the problem could be? Also, I would like to change the `\part` command to not write out "Part X" where you use it. Does anyone know how to do this?


title: Using unicode "combining right arrow above" to generate vector command

text: > This question originated from a confusion created by some Linux systems > where, for some software (editor and browser) the combining unicode > characters appear to apply to the right (instead of to the left like the > documented convention). So it could be a "localized" issue (well, localized > to all Linux systems). In fact this bug looks like a useful feature because > it allows straight conversion for the typesetter commands. Still answers and > workarounds are greatly appreciated. -- The OP The `unicode-math` list of symbol describes "combining right arrow above" (`⃗` or `⃗x`) as translated into `\vec` in Section 7. How is one supposed to use this feature of `unicode-math`? In this example I don't get the arrow above the `$x$`:               \documentclass{article}     \usepackage{unicode-math}     \begin{document}     $ ⃗x$ %this line contains the unicode arrow and the x character (in case your browser doesn't show it).     \end{document}      (The compilation with `lualatex` and `xelatex` shows simply _x_ with no arrow) This is strange because `unicode-math` works for other things like superindexes, etc. **EDIT:** For those having trouble seeing the unicode characters, here it is an screenshot of my editor (`gedit`), my browser shows basically the same: ![geditunicode](http://i.stack.imgur.com/KM7uN.png) **EDIT 2:** This is how @Jukka answer looks like in my browser: > screenshot: ![jukka](http://i.stack.imgur.com/p8cTx.png) **EDIT 3:** I realized that the rendering (of the text/code) is very system dependent, so if you answer this question please add a screenshot of what you see in your editor or browser. There is probable bug filed already about this: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/51554. For example, so far, I find that `<arrow>x` renders the arrow over the `x` in Gedit 3.10 and Firefox 28.0 and the arrow before the `x` for TeXworks and Google Chrome.


title: Table cell/element color parameterization with xcolor

text: I have a `table` (implemented through `tabular`) that uses the `xcolor` package to shade certain cells. The shading I'm interested is both entire cell shading (e.g. `\cellcolor{red}`) and element shading (e.g. `\color{red}`). What I want to achieve is a function through `xcolor` (or similar package) that would allow me to implement a color of varying intensity. For example it would be nice if I could go `\color{red}{0.01}` in a cell, and the contents were only slightly red (but still almost black), or `\color{red}{1.00}` and the contents would be completely red. How can I achieve this with both `\cellcolor{red}` and `\color{red}`? Here's an example table that I want to achieve this in:               \begin{table}[!tbp]     \begin{center}     \begin{tabular}{rrrrl}     \hline\hline     \multicolumn{1}{c}{Sepal.Length}&\multicolumn{1}{c}{Sepal.Width}&\multicolumn{1}{c}{Petal.Length}&\multicolumn{1}{c}{Petal.Width}&\multicolumn{1}{c}{Species}\tabularnewline     \hline        $5.1$&   $3.5$&   $1.4$&   $0.2$&   setosa\tabularnewline        $4.9$&\cellcolor{red}   $3.0$&\color{red}   $1.4$&   $0.2$&   setosa\tabularnewline        $4.7$&   $3.2$&   $1.3$&   $0.2$&   setosa\tabularnewline        $4.6$&   $3.1$&   $1.5$&   $0.2$&   setosa\tabularnewline       $5.0$&   $3.6$&   $1.4$&   $0.2$&   setosa\tabularnewline        $5.4$&   $3.9$&   $1.7$&   $0.4$&   setosa\tabularnewline     \hline     \end{tabular}     \end{center}     \end{table}      I am mainly looking for a solution that keeps the "purity" of red (i.e. when I reduce the intensity it's still red it just has white mixed in).


title: Join the dots - Hannukah

text: The festive season is upon us and we all of course bring out our favourite TikZ Hannukah Menorahs to celebrate. However, our children are still not satisfied and demand an activity to do during the long dark evenings. Although we attempt to provide them with downloaded join-the-dots puzzles, they immediately recognise when it has not been made in TikZ. Can we rescue the situation by providing colourful join-the-dots Hannukah Menorahs (or even dreidels) to while away the time? Here is an uncolourful example of a Chanukiah (well ... a menorah really as it has the wrong number of candles for Hannukah which should have eight plus one). ![enter image description here](http://i.stack.imgur.com/FO0hD.gif) And here is an uncolourful example of a dreidel. ![enter image description here](http://i.stack.imgur.com/EAEXj.gif)


title: Underline with space for WriteLatex

text: How can I make underline of text, looks like this: `\begin{document}` `\underline{class:} \underline{Room:}` `\end{document}` I should have a space between them and it should start first of the line.


title: OpenType Latex font for usage in text editor

text: I like to use the LaTeX fonts as well in text editors. Concerning this, some questions came into my mind:   1. Is it true that I need so called OpenType fonts for that, which I could use like Times or Arial etc.?    2. I do have, from my TeX distribution, fonts called "Latin Modern Roman" in various forms (slanted, italic, bold, ...). Do I have the right ones?    3. Finally, I want to do some mathematical characters like `\omega`, `\hbar` and so on. I found hbar which in italic looks similar to the one produced with LaTeX. But omega seems to be replaced by the Lucida font. Do I need an additional font for Greek Latex OpenType? To be more precise, I would like to be able to use Word or Pages with the same font that Latex does, which is Computer Modern or Latin Modern, I am not quite sure. I do have the OpenType fonts of them, but when I compare `\hbar \omega` from a compiled Latex document to what Pages gives me, it will yield the following (first the Latex, afterwards the Pages result):   ![enter image description here](http://i.stack.imgur.com/Nj9Ph.png) ![enter image description here](http://i.stack.imgur.com/XKXWA.png) Again, I want to be able to have the Latex result reproduced with Pages.


title: Declaring Custom fading leads to unfilled element? (Tikz/PGF)

text: What is wrong with the following way of declaring fadings using PGF/TikZ?:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{calc,fadings}     \begin{document}     \begin{tikzpicture}          \pgfdeclarehorizontalshading{FOne}{100bp}     {color(0bp)=(pgftransparent!100); color(25bp)=(pgftransparent!100);      color(75bp)=(pgftransparent!0); color(100bp)=(pgftransparent!0)}          \pgfdeclarefading{myfading}{\pgfuseshading{FOne}}          \path[draw,fill=black,path fading=west] (0,-3) rectangle (10,1);          \path[draw,fill=black,path fading=myfading] (0,-8) rectangle (10,-4);          \end{tikzpicture}     \end{document}      Note that "FOne" is a one-to-one copy of the definition of the PGF definition of "pgf@lib@fade@west", and thus, "FOne" should resemble the "west" path fading. However, the result is this: ![Rendered TikzPicture](http://i.stack.imgur.com/Ad2kT.png) So, the custom filling does not lead anywhere. What could be wrong here?


title: How to I achieve this?

text: How do I achieve this: ![enter image description here](http://i.stack.imgur.com/R9WOK.png) Here is my MWE:               \documentclass[12pt, letterpaper]{article}     \usepackage{fontspec}     \usepackage{wasysym}     \setmainfont{Times New Roman}     \begin{document}     %%%%%%%%%%%%%%%%%%%%%%%%%%%Personal Details%%%%%%%%%%%%%%%%%%%%%%%%%%     \noindent     \begin{minipage}{\textwidth}      \large      XXX \\      ssn, \hfill \phone 123456 \\      yyy (North Extn.),\\      zzz,\\                                                aaa.\\     \end{minipage}     \end{document}       And what are the standard margins for a resume??


title: beamer: missing footline in version 3.28, bug or feature?

text: I updated my texlive distribution today. After compiling my presentation I realised, that the `Boadilla` theme has no footline any more. A look in the documentation shows, that nearly every theme in chapter 15.2 lost its footline. However, a closer look shows, that the place for the footline with respect to the navigation symbols is kept free. These symbols are directly at the bottom of a template with no footline. Compare for instance `EastLansing` with `Pittsburgh`. `EastLansing` from version 3.27: ![enter image description here](http://i.stack.imgur.com/UsOfL.png) `EastLansing` from version 3.28: ![enter image description here](http://i.stack.imgur.com/0yvub.png) The space between the navigation symbols and the bottom is much higher than in `Pittsburgh` from version 3.28: ![enter image description here](http://i.stack.imgur.com/7A9pZ.png) Is this a bug, or do I miss an option to enable the footline?


title: Centering vertically inside a block with figures

text: I want to center vertically different height figures inside the block they reside in. I use the 'tikz-qtree' for the trees, and I want the '5' tree and the right arrow aligned vertically.               \documentclass[a4paper]{article}     \usepackage{mathtools}     \usepackage{tikz-qtree}          \begin{document}     \tikzset{every tree node/.style={minimum width=2em,draw,circle},              blank/.style={draw=none},              edge from parent/.style=              {draw, edge from parent path={(\tikzparentnode) -- (\tikzchildnode)}},              level distance=1.5cm}          \begin{center}     \begin{tikzpicture}     \Tree     [.9          [.7 ]         \edge[blank]; \node[blank]{};     ]     \end{tikzpicture},     \begin{tikzpicture}     \Tree     [.5 ]     \end{tikzpicture}     $\Longrightarrow$     \end{center}          \end{document}      ![Current state](http://i.stack.imgur.com/A45zt.png)


title: g-brief2 separatorlines not justified - (trennlinien nicht bündig)

text: The separatorlines `\trennlinien` in g-grief2 class are not justified (flush with the the other components of the letter) like in the g-brief class. The first line seems to be to much on the right hand side compared to the other two lines, makeing the letter look wired. This doesn't look nice. can this be fixed ? how ? Here is what I mean: Die `\trennlinien` im g-brief2 sind nicht bündig wie sie es im g-brief sind. Die erste Trennlinie fängt weiter rechts an als die im Adreßfenster und die unterste. Das sieht unästhetisch aus. Kann man das beheben ? wenn ja wie ? Hier das meine ich: ![example of trennlinien in g-brief2](http://i.stack.imgur.com/3DhV8.png)


title: How to start a paragraph from the middle of the page?

text: How to start a paragraph from the middle of the page, when something is already written in the first half of the page? e.g.               \chapter*{Blabla}          \lipsum[1-2]          \gotohalf     \lipsum[3] <- the first line of this paragraph should start from the half of the text height (vertically)      EDIT I don't think that minipage is a solution, because I don't want to modify the look of the chapter header.


title: vertical margins inside a frame

text: How can I change the vertical margins inside a frame. For example, how do I remove the space shown in the figure below: ![enter image description here](http://i.stack.imgur.com/nRp3u.png)


title: I don't see any output with Aquamacs

text: I'm trying to compile a pdfLatex with Aquamacs but I don't see any output. These are the shorts cuts I've used: C-x C-f Aqmc ask me to select a title for my project I've typed : "test.tex" C-c, C-e Then press Enter twice:               \documentclass{article}          \begin{document}     test test test test test test test     \end{document}      C-c C-c And then: C-c, C-l but I don't see nothing. No error no file. Where is my error?


title: Initial page numbers wrong

text: I am going crazy over the page numbers in my thesis. I have included the relevant part of my document below. I have two problems:   * The dedication is numbered **ii.** which is good, but the abstract is not numbered, the table of contents resets to **i.** , and the second page of the ToC is numbered **1**.   * Page numbers for roman style and "new chapter" pages appear bottom-center instead of top-right, which is fine with me, but they fall below the allowed margin of 1 inch.               \documentclass[12pt]{report}     \usepackage[centertags]{amsmath}     \usepackage{amsfonts,amssymb,amsthm}     \usepackage{verbatim,enumerate}     \usepackage{mathrsfs}               \setlength{\topmargin}{0 in}     \setlength{\headheight}{0.25 in}     \setlength{\oddsidemargin}{0.5 in}     \setlength{\textwidth}{6 in}     \setlength{\textheight}{8.5 in}     \setlength{\headsep}{0.25 in}     \newcommand{\singlespaced}{\renewcommand{\baselinestretch}{1}\normalfont}     \newcommand{\doublespaced}{\renewcommand{\baselinestretch}{2}\normalfont}          \doublespaced          \begin{document}     \pagenumbering{roman}     \include{titlepage}     \include{dedication}     \include{abstract}     \tableofcontents     \pagenumbering{arabic}     \pagestyle{myheadings} \markright{}     \include{chap1}     \include{chap2}     \include{chap3}          \end{document}


title: Latex inserting blank pages between figures

text: I have a large number of (.eps) figures which I want to put into a stand-alone .pdf document. I have a script which puts together the code shown below twice (but is repeated dozens of times). The problem is that if the figure size (set below with the 0.58\paperheight) gets too large (i.e., 0.59\paperheight), LaTeX starts putting a blank page between figures. If the size gets larger (i.e., 0.7\paperheight) then it starts putting ~15 blank pages and then puts all the figures together (as I would like them to be) on subsequent pages. Visually, it isn't an issue of the figure being too large for the page as when it finally does put the figure in, it fits nicely. I've tried using               \afterpage{      and               \lipsum      as suggested in this thread, but haven't had any luck. Is this an issue with floats? with my document margins? Something else I'm missing? Thanks               \clearpage     \newpage     \begin{center}       \mbox{}\vfill       \begin{figure}[htp]         \includegraphics[angle=0,height=0.58\paperheight]{Figure1.eps}         \caption{}       \end{figure}       \vfill\mbox{}     \end{center}          \clearpage     \newpage     \begin{center}       \mbox{}\vfill       \begin{figure}[htp]         \includegraphics[angle=0,height=0.58\paperheight]{Figure2.eps}         \caption{}       \end{figure}       \vfill\mbox{}     \end{center}          ...and so on


title: Alert items in a block that is overlayed

text: Consider the following MWE:               \documentclass{beamer}     \begin{document}       \begin{frame}       \frametitle{Test}       \begin{block}{First}         block       \end{block}       \begin{block}{Second}         \begin{itemize}         \item Foo         \item Bar         \end{itemize}       \end{block}       \end{frame}     \end{document}      So far, so simple. Now, let us overlay the blocks:               \documentclass{beamer}     \begin{document}       \begin{frame}       \frametitle{Test}       \begin{block}<1->{First}         block       \end{block}       \begin{block}<2->{Second}         \begin{itemize}         \item Foo         \item Bar         \end{itemize}       \end{block}       \end{frame}     \end{document}      Still fine and simple. Now, what I want is to overlay the items in the second block and alert them.                \documentclass{beamer}      \begin{document}      \begin{frame}      \frametitle{Test}        \begin{block}<1->{First}          block        \end{block}        \begin{block}<2->{Second}          \begin{itemize}          \item\alert<+(1)> {Foo}          \item\alert<+(1)> {Bar}          \end{itemize}        \end{block}      \end{frame}      \end{document}      Is the a way to shorten the overlaying specifications? I tried many variant of `<+-| @alert+>` but nothing worked. I could make the code from this answer to work, but it is still not flexible. So my question is: Is there a nicer and more flexible and generic way to achieve this kind of overlyaing?


title: Font shape `T1/fvm/m/sc' undefined

text: I am a newbie in latex and I have recently stumbled across the amazing classic thesis template. I have been trying to understand what the following warning means: LaTeX Font Warning: Font shape `T1/fvm/m/sc' undefined I got an idea from the question "Font shape undefined" with latex and isodoc, however the type of the font is different. Googling for `T1`, `fvm`, `usepackage[T1]` provided me no clue on what to do to get this font installed in an MAC OS Lion (or let alone any system). I know from the website author that this font was supposed to be freely available, yet I am unable to understand the warning message and how to fix it. I am using textmate for editing latex.


title: How to determine the font being used by a latex document

text: The scenario is as follows. I am working on a paper using the IEEEtran latex class. I am generating some figures using the Matplotlib plotting library in Python. Matplotlib lets the user adjust the font and compile figures with the help of tex so that you can get nice looking fonts in your figure labels which match the font used in the document the figures are going into. What I would like to know though, is _what font is the IEEEtran class actually using_ so that I can configure Matplotlib to use the same font? I guess this problem generalizes beyond IEEEtran which I happen to be using. Short of eyeballing a font, is there a reliable way to determine which font is being used at a given point in a document? I'm guessing the font can be overridden in any one of a million possible places, so I'm really interested in knowing whether there is a generalized solution that isn't "read through the manual of whatever class files/other files you're using until you figure it out". Is there a command I can put inline in the middle of a paragraph or something that will tell me the font details in the current context?


title: TEXMFHOME not present

text: I'm having some trouble with TeXLive. I was using the 2013 version but I coulnd't install Beamer. For this reason I uninstalled TeXLive 2013 and then I installed the 2014 version. The problem is that there is no TEXMFHOME folder: I changed the default from `~/texmf` to `~/.texmf` but neither of them exists. How can I fix it? edit: My operating system is Ubuntu 14.04 . I wanted to install Beamer because I selected medium installation instead of full.


title: Multi-line Comment Boxes in Interactive PDFs with LaTeX

text: I was looking to add a box to a pdf file in LaTeX. I tried to use TextField, but that only allows an input on one line. Is there a good command to make an box of more than one line and can be edited by clicking and typing in Adobe Reader?


title: How to convert TeX-illiterate coworkers to LaTeX?

text: I've been using LaTeX consistently for about two years now and I haven't looked back to my MS Word/PowerPoint/Publisher days since. I'm working at a research institute / university spin-off where the use of MS Office prevails. Aside from the odd PhD student, no one there uses LaTeX for typesetting scientific articles, reports, manuals, scientific posters and presentations, etc.. Some have never heard about it or even do not understand the concept. ![LaTeX vs MS Office](http://i.stack.imgur.com/6bRxX.png) That said, frustration with MS Word/PowerPoint/Publisher is palpable at work. As I believe everybody there would benefit from becoming TeX-literate, I've tried to convince my boss to encourage the use of LaTeX at work, but he remains fiercely opposed to it for several reasons:   1. time investment required due to the steep learning curve;   2. most of our partners/clients tend to use MS Office;   3. collaborative work in LaTeX is difficult. (These issues have been addressed here and here.) Despite my boss's skepticism, and with his approval, I'm going to give a 10-15min presentation on LaTeX to try and bring my fellow workers to the Bright Side of typesetting. During that talk, I need to explain what LaTeX is (Stefan's post should come in handy for that), how it works, and why they should consider learning how to use it; in other words, I must dazzle them with the possibilities offered by LaTeX. My questions are:   * How, in your opinion, can I most effectively convince TeX-illiterate co-workers to take up to LaTeX? Do you have any trick up your sleeve?   * Have you had to give such a presentation, or did you attend a similar presentation, which could inform me on how to prepare mine?  **EDIT** : See my self-answer below for an account of how the presentation went and for links to the relevant files.


title: How to draw curve inside a closed curve?

text: I want to draw the following diagram: ![enter image description here](http://i.stack.imgur.com/kbKdN.png) I have limited idea about TikZ but I want to draw this picture with TikZ. I have tried to draw the figure but ultimately faied. My written code given here:               \documentclass{article}     \usepackage{tikz}     \begin{document}          \begin{tikzpicture}          \draw (0,0) ellipse  (49pt and 39pt);     \draw (0,1) to [out=90,in=190](0,-1);     \draw (0,1) to [out=180,in=195](0,-1);     \end{tikzpicture}          \end{document}        Anyone can give an idea so that I can draw the picture?


title: Best solutions for (La)TeX on Kindle

text: I have read Compiling documents online, LaTeX options for kindle?, and some similar Q&A's, but I have more specific question. What are possible, good solutions for compiling TeX/LaTeX documents from Kindle (3G)? Probably it should be done online. However, Kindle has got some limitations (e.g. bad keyboard, limitations on extensions of loadable files). So which page should be chosen? Or maybe there exists another solution? **Edit** (2013-04-08 00:05 CET) An existing answer gives only general ideas. I hope that there are people with some experience in using mobile devices to TeX & Co. exercises.


title: newsavebox named after counter

text: I am trying to write a macro creting automatically a certain number of saveboxes. Therefore I would like to use the concatination of the value of a string and a counter to name the saveboxes. I tried the following and latex complains "Missing Contorl sequence inserted" every time I try to use it.               \newcounter{saveboxCount}     \newsavebox{MyString\alpha{saveboxCount}}


title: pdfpages not working with classicthesis

text: I am trying to use a title page I found in this website (Showcase of beautiful title page done in TeX) which begins with `\documentclass`. As I try to include it in the main tex file, LaTeX returns an error, because `\documentclass` is already used. Then, I tried to execute the titlepage apart, obtaining a pdf which is the correct one, but only for what concerns the titlepage. To avoid such a stuff, I thought to include this pdf that I obtained by using the `pdfpages` packages. But LaTeX returns me an error: > "Option clash for package xcolor." If I ignore this, the compiler does not create the right table of content. The same mistake is done if I use TikZ packages. How can I solve it?


title: How to prevent a \lstinputlisting being split across pages?

text: This question shows how to prevent a long listing from being split across several pages when the code is written directly into the tex file. I want to achieve the same effect when including code in separate files using `\lstinputlisting` like so:               \lstinputlisting[label=lst:mylist,caption=A Caption]{code/parametrised.xml}      How do I modify the listing environment definition given in the above question to do so?               \lstnewenvironment{code}[1][]%       {\minipage{\linewidth}         \lstset{basicstyle=\ttfamily\footnotesize,frame=single,#1}}       {\endminipage}      Any help would be greatly appreciated! Edit: The question has been rephrased for clarity - The answers here relate to preventing a listing from being split across pages by ensuring it's treated like a unbreakable float. Howvever, this also means that listings longer than a page will not be paginated and will run off the bottom of the page.


title: Logo for Natural Language Processing

text: Searching **Natural Language Processing** in Google Image search gives many images of this type: ![](http://i.stack.imgur.com/kS6Ib.png) ![](http://i.stack.imgur.com/HQVfO.jpg) ![](http://i.stack.imgur.com/vsdLA.png) Note that there are only horizontal and vertical texts with random formatting. What is a generic way to get this?


title: How to align/wrapping pstricks figures and text

text: I´m trying to put easily 3 pstricks pictures in a row (or in a column). I was trying with `wrapfigure` with no success, so I found any info about `subfigure`... but I´m trying and LaTeX tell me: ![enter image description here](http://i.stack.imgur.com/Mobr1.jpg)               \begin{figure}     \subfigure[Travel 1] \input{figej04-1.tex}     \subfigure[Travel 2] \input{figej04-1.tex}     \subfigure[Trabel 3] \input{figej04-1.tex}     \end{figure}      Do you see the error in this code? (in the `figej04-1.tex` are a checked code that runs well ) Any other way with any other packages is suitable. As easy as good. Without multiple options and commands.


title: Detect whether I'm in a \footnote?

text: How do I detect whether I'm in a `\footnote` environment or not?


title: How to create a "long-running" version of "\classicstylenums" in "kpfonts" package?

text: I'm using `kpfonts` in my document with old style numbers. However, in some sections (e.g. figures and tables), I want to revert to the normal style numbers. There is a command for doing that - `\classicstylenums` - but the text has to be given as an argument, like so: `\classicstylenums{text text text text}` Instead of having to repeat the command for each text segment, I want to declare it once, like so: `\myclassicstylenums text text text ...` And by doing it within a group, the text reverts back to old style numbers. Anyone has any idea on how to achieve this?


title: TikZ: How to rotate and then shift?

text: I'm trying to rotate a node and _then_ shift it along the X axis. If I do `[rotate=90, xshift=-20pt]`, the node will first _shift_ and then rotate.


title: .eps graph overlapped with caption

text: I need your help desperately. I used latex to compile everything and used dvipdf to convert it to pdf. The graph (test) came out is overlapped with the caption. Can anyone point out what is the problem here? A million thanks!!!! :D You can go to **_LOOK HERE_** to check out the problem.               \documentclass[a4paper,11pt]{article}      % Use this line for a4                                                               % paper     \oddsidemargin -4mm %     \topmargin -15mm %     \textheight 250mm %     \textwidth 168mm %     \marginparsep 20mm          \pagenumbering{arabic} \pagestyle{plain}     \renewcommand{\baselinestretch}{1.0}     \renewcommand{\theenumii}{\theenumi.\arabic{enumii}}     \renewcommand{\labelenumii}{\theenumii}     \renewcommand{\thefootnote}{\fnsymbol{footnote}}               % The following packages can be found on http:\\www.ctan.org     \usepackage{graphicx} % for pdf, bitmapped graphics files     \usepackage{epsfig} % for postscript graphics files     %\usepackage{mathptmx} % assumes new font selection scheme installed     %\usepackage{times} % assumes new font selection scheme installed     \usepackage{amsmath} % assumes amsmath package installed     \usepackage{amssymb}  % assumes amsmath package installed     \usepackage{psfrag}     \newtheorem{remark}{Remark}          \newtheorem{assumption}{Assumption}[section]     \newtheorem{proposition}{Proposition}[section]     %\newtheorem{remark}{Remark}[section]     \newtheorem{theorem}{Theorem}[section]     \newtheorem{definition}{Definition}[section]     \newtheorem{lemma}{Lemma}[section]     \newtheorem{corollary}{Corollary}[section]     \newtheorem{property}{Property}[section]     %\newtheorem{proof}{Proof}     \newtheorem{example}{Example}[section]     \newcommand{\bea}{\begin{eqnarray}}     \newcommand{\eea}{\end{eqnarray}}     \newcommand{\be}{\begin{equation}}     \newcommand{\ee}{\end{equation}}     \newcommand{\ba}{\begin{array}}     \newcommand{\ea}{\end{array}}     \newcommand{\bdm}{\begin{displaymath}}     \newcommand{\edm}{\end{displaymath}}     \newcommand{\p}{\partial}     \newcommand{\paf}[1]{\frac{\partial}{\partial{#1}}}     \newcommand{\re}[1]{(\ref{#1})}     \newcommand{\sgn}{\textrm{sgn}}     \newcommand{\cdeg}{\,^{\circ}\mathrm{C}}     \newcommand{\ud}{\mathrm{d}}          \title{\bf{Modeling and Robust Tracking Control of a Limited Angle Torque Motor with Cylindrical Halbach}}          \author{Tan Xin Wen \vspace{0.1in}\\ U1120572E \vspace{0.1in}\\ Industrial Orientation \vspace{0.1in}\\     School of Electrical and Electronics Engineering \vspace{0.1in}\\ Nanyang Technological University}               \begin{document}          \maketitle     \thispagestyle{empty}     \pagestyle{empty}               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \newpage\begin{abstract}          \end{abstract}          \newpage\section{Extended}          *******LOOK HERE*******     \begin{figure}[h]     \centering     \includegraphics[width=\linewidth]{test.eps}     \caption{Tracking error $\tilde\theta$ and state estimation errors $\theta$ - $\hat\theta$, $\dot\theta$ - $\hat{\dot\theta}$ - $\dot\theta$ and $\hat{\ddot\theta}$ - $\ddot\theta$}     \label{fig:Tracking error}     \end{figure}          Helo helo. testing...               \newpage\section{Model}          \newpage\section{Tracking}               %\\includegraphics[]{test}               \end{document}


title: Vertical centering of text inside tabular does not work as expected

text: I have a simple table with three columns. The second and third columns contain minted environments, and the first column contains text that should be vertically centered for each row. I'm using the array package `m` and `t` specifiers, but they are not working as I (naively) expect them to. Basically, the text in the first column is always shown top-aligned instead of centered.               \documentclass[11pt]{article}          \usepackage{minted}     \usepackage{booktabs}     \usepackage{array}     \usepackage{textcomp}     \usepackage[T1]{fontenc}     \usepackage{lmodern}          \begin{document}     \begin{tabular}{m{0.2\textwidth}p{0.3\textwidth}p{0.3\textwidth}}     \toprule     & \textbf{Alpha} & \textbf{Beta} \\     \midrule     \textbf{One} &     \begin{minted}{text}     Testing1     Testing2     \end{minted}     &     \begin{minted}{text}     Testing3     Testing4     \end{minted}     \\     \textbf{Two} &     \begin{minted}{text}     Testing5     Testing6     \end{minted}     &     \begin{minted}{text}     Testing7     Testing8     \end{minted}     \\     \bottomrule     \end{tabular}     \end{document}      What am I missing and how do I solve this?


title: Wrong numbering persists in LyX

text: When I try to organise my notes using Section\Subsection\Subsubsection numeration, I keep getting the wrong numbers in the editor: ![PDF output and the origial text side by side](http://i.stack.imgur.com/qIitt.png) Previously, I've got help finding the solution to fix this problem in my PDF output. Now I want to have a correct output in the editor as well. Is there a way to fix it from within LyX document\editor settings?


title: csvsimple filtering problem

text: The following code works as I would expect.               \documentclass{scrartcl}     \usepackage{csvsimple,filecontents}          \begin{document}           \begin{filecontents*}{chunk.csv}     AAAA,aaaaa     BBBB,bbbbb     CCCC,ccccc     DDDD,ddddd     EEEE,eeeee     FFFFF,fffffff     GGGGG,ggggg     HHHHHH,hhhhh     \end{filecontents*}          \csvreader[no head,before filter= \ifthenelse{\thecsvrow<4}{\csvfilteraccept}{\csvfilterreject}]{chunk.csv}{}{%     \begin{itemize}      \item \csvcoli , \csvcolii     \end{itemize}}          \end{document}       When I change the filter condition from "`\thecsvrow<4`" to "`\thecsvrow=4`" or "`\thecsvrow>4`" the code breaks. Pointers as to how to make this work would be greatly appreciated.


title: Add optional argument to the caption to get into figure list entry

text: I would like to add the optional list entry, which is used for a `listoffigures`, also to the caption. In this basic example:               \documentclass{scrreprt}     \usepackage{caption}     \begin{document}          \begin{figure}     \includegraphics{baz}     \caption[Baz]{Foo Bar}     \end{figure}          \input{foo}     \end{document}      the caption should read " **Figure 1:** Baz- Foo Bar" instead of the default " **Figure 1:** Foo Bar". Any ideas?


title: Change the 'and' in the formatted names of the IEEE bibliography style

text: I am using the IEEEtr bibliography style format. I was wondering how we could change the 'and' string for something else in the case the publication is not in English the same way you can change the '[Online]. Available:' string before a URL. Normally, the style will generate: > S. Marimuthu, A. M. Kamara, D. Whitehead, P. Mativenga, L. Li, S. Yang, > **and** K. Cooke, “Laser stripping of TiAlN coating to facilitate reuse of > cutting tools,” in Proceedings of the Institution of Mechanical Engineers, > Part B : Journal of Engineering Manufacture, vol. 225, no. 10, Aug. 2011, > pp. 1851–1862. I would like to generate automatically the following format ('et'='and' in French): > S. Marimuthu, A. M. Kamara, D. Whitehead, P. Mativenga, L. Li, S. Yang, > **et** K. Cooke, “Laser stripping of TiAlN coating to facilitate reuse of > cutting tools,” in Proceedings of the Institution of Mechanical Engineers, > Part B : Journal of Engineering Manufacture, vol. 225, no. 10, Aug. 2011, > pp. 1851–1862. Is there somewhere in the code where I can change de string 'and' for 'et'?


title: Makeindex (imakeidx) distinguishes entries in main text and footnote

text: I am compiling a text index of a large volume, with the help of `imakeidx` because I have two separate indexes. For some reason, entries in footnotes result in separate listing from entries in the main text. See the following example:               \documentclass[12pt,twoside,a4paper,openright]{book}     \usepackage{xunicode}     \usepackage{imakeidx}      \makeindex[name=texts,title=Texts,columns=3,options=-s mystyle -c -l]      \usepackage{fancyhdr}     \begin{document}          3.28\index[texts]{Alphabet@\textbf{Alphabet}!3.28}\footnote{3.28\index[texts]{Alphabet@\textbf{Alphabet}!3.28}}          \printindex[texts]     \end{document}      The result is two entries of 3.28, which should have been combined into one, because the first entry has an unexplained space between `\textbf` and `{Alphabet}`. How can I avoid this:                 \begin{theindex}            \item \textbf {Alphabet}       \subitem 3.28, 1       \item \textbf{Alphabet}       \subitem 3.28, 1            \end{theindex}


title: Product symbol c on the lower suffix

text: Sorry, this may be very easy question but I didn't get. When I use product symbol, I want to write c(as a cardinal product) in the lower suffix. I am using following command.               \documentclass{12 pt}{article}          \begin{document}          $\prod_{i = 1}^{n}_{c} A_{i}$          \end{document}


title: Performance question - Tabularx or manual column width calculation?

text: I'm using the `tabularx` package and the provided `X` column type to get dynamic column widths. Since the `pdflatex` run takes longer and longer, I'm wondering whether it would be faster to use an individual calculation, e.g., employing `\tabcolsep` etc. General speaking, is there a "fast" and a "slow" way to achieve dynamic column widths or does everything the same, one time easer to use and one time more cumbersome? Thank you!


title: Graphing multiple functions on the same graph

text: I'm new to LaTeX and am attempting to type up some old differential equations notes. The only part I seem to be having trouble with is graphing multiple functions onto a single graph. For example the family of solutions of: `y=2e^x`, `y=e^x`, `y=e^-x`, `y=2e^-x`. I was talking to a physics professor and he suggested that I use TikZ or pfgplots. Would there be one program you would recommend over another?


title: Forest trees on the same line

text: I need to put two trees (package forest) side by side, but I haven't find any info on the package documentation.               \begin{forest}     [P1        [SN           [N[Mary]]]             [VP           [V[loves]]           [N[Luke]]     ]]          \end{forest}          \begin{forest}     [P2        [NP           [Pro[This]]]        [VP           [V[is]]           [NP           [Det[a]]           [N[xx]]     ]]]          \end{forest}


title: Raising one cell in a table

text: ![enter image description here](http://i.stack.imgur.com/xhgBX.png) That is, I would like to raise one cell (e). Currently, the code is as follows:               \documentclass{standalone}     \begin{document}     \begin{tabular}{llll}     \hline     A & B & C & D  \\     \hline     a & b & c & d \\[0.25em]     e & f & g & h \\[0.25em]       & i & j & k \\     \hline     \end{tabular}     \end{document}      I've tried `\raisebox{5pt}{e}`, but this also moves the rest of the row downwards...


title: Placing a wide matrix in a two column paper

text: The terms in the matrix below are actually very wide and it should be inserted in a two column page format, so I would like to put it with the whole width of the page at the end of the page. I was wandering if there is a way to make it as included in the attached image.               \documentclass[conference,a4paper]{IEEEtran}     \begin{document}     \begin{align*}     \mathbf{D} & =\begin{pmatrix}     & a & b & \cdots & c\\     & a & b & \cdots & c\\     &\vdots & \vdots & \vdots & \vdots\\     & a & b & \cdots & c\\     \end{pmatrix}     \end{align*}      \end{document}      ![enter image description here](http://i.stack.imgur.com/VXqVV.png)


title: Why \\ increases interline spacing before the command in center environment?

text: This is about the effect of the line breaking command "\\" in center environment. It appears that the command has the effect of increasing the interline spacing of text appearing **before** the command. The outputs of the following inputs illustrate this. The codes in Examples 3 and 4 produce the same output with a bigger interline spacing when compared to the output of Example 1. Why is it so? Example 1               \begin{center}     {\huge\bf Lapped biorthogonal transform  based  low complexity        image compression algorithm  for wireless sensor network }      \end{center}      Example 2               \begin{center}     {\huge\bf Lapped biorthogonal transform\\  based  low complexity        image\\ compression algorithm  for\\ wireless sensor network }      \end{center}      Example 3               \begin{center}     {\huge\bf Lapped biorthogonal transform \\  based  low complexity      image\\ compression algorithm  for\\  wireless sensor network \\ }      \end{center}      Example 4               \begin{center}     {\huge\bf Lapped biorthogonal transform  based  low complexity        image compression algorithm  for wireless sensor  network \\ }      \end{center}      I don't know whether this problem has been posed earlier. Much thanks in advance.


title: Bibliography after each chapter - classicthesis - LYX

text: I'd like to insert a bibliography for each chapter associated to different `.bib` files. I'm using the `classicthesis` for LYX which has a unique Bibliography.lyx in the appendix. I have tried with `Insert--List/TOC--Bibtex Bibliography` at the and of every chapter without any success (a lot of ? ? ?) Any suggestions? Thank's a lot Lucio


title: How can I expand macros and write the expansion to an external file?

text: I'm trying to do a bit of single-sourcing with my resume, and would like to write given information to an external text file.               \documentclass{article}     \usepackage{expl3,xparse}     \ExplSyntaxOn     \keys_define:nn { resume/contact } {       street   .tl_set:N  = \l_resume_contact_street_tl,       street   .initial:n = {default ~ street},       city     .tl_set:N  = \l_resume_contact_city_tl,       city     .initial:n = {default ~ city},       state    .tl_set:N  = \l_resume_contact_state_tl,       state    .initial:n = {default ~ state},       zip      .tl_set:N  = \l_resume_contact_zip_tl,       zip      .initial:n = {default ~ zip},       name     .tl_set:N  = \l_resume_contact_name_tl,       name     .initial:n = {default ~ name},       phone    .tl_set:N  = \l_resume_contact_phone_tl,       phone    .initial:n = {default ~ phone},     }          \iow_new:N \bcv_iow     \NewDocumentCommand \ContactInformation { m }     {       \keys_set:nn { resume / contact } { #1 }            \iow_open:Nn \bcv_iow { \jobname.bcv.txt }       \iow_now:Nn  \bcv_iow       {         ~~~~~~~ ~~~Name:~ \tl_use:N \l_resume_contact_name_tl    \\         Street~ Address:~ \tl_use:N \l_resume_contact_street_tl  \\         ~~~~~~~ ~~~~~~~:~ \tl_use:N \l_resume_contact_city_tl    ,~                           \tl_use:N \l_resume_contact_state_tl   ,~                           \tl_use:N \l_resume_contact_zip_tl     \\         ~~~~~~~ ~~Phone:~ \tl_use:N \l_resume_contact_phone_tl   \\       }     }     \ExplSyntaxOff          \ContactInformation{       name   = (name),       street = (123 Main St.),       city   = (city),       state  = (state),       zip    = (zip),       phone  = (phone),     }          \begin{document}     hello     \end{document}      which produces the following in `*.bcv.txt`:               Name: \tl_use:N \l_resume_contact_name_tl \\Street Address: \tl_use:N \l_resume_contact_street_tl \\: \tl_use:N \l_resume_contact_city_tl , \tl_use:N \l_resume_contact_state_tl , \tl_use:N \l_resume_contact_zip_tl \\Phone: \tl_use:N \l_resume_contact_phone_tl \\      where I would expect something like:                         Name: (name)     Street Address: (123 Main St.), (city), (state), (zip)              Phone: (phone)      Obviously, the macros set by `l3keys` are not being expanded in the file write. How achieve the desired result?


title: How would one have an equation for an exponent?

text: How can I write `2^((n-1)/3)` or anything similar in `LaTeX`? I am new to the whole thing, but I tried giving it a shot and it doesn't look the way I want it too. It looks like I am taking the 2 to the power of parenthesis, which is silly.


title: Equations inside tabular environment, no vertical spacing

text: I have a problem with the spacing of my equations. According to this http://tex.stackexchange.com/a/50348/15360 booktabs one should rarely have to regulate the spacing. But the result of the code below gives me: ![Table with equations](http://i.stack.imgur.com/78T8b.jpg)               \documentclass[a4paper,10pt,twoside]{article}     \usepackage[cmex10]{amsmath}     \usepackage{booktabs}     \usepackage{multirow}     \usepackage{floatrow}     \begin{document}     \begin{table}[htb!]       \renewcommand{\arraystretch}{1.2}       \caption{Parameters which Torque logs.}       \label{tbl:2_1_1}       \begin{tabular}{c|c|c}                                                                      \toprule       {$\mathbf{q_1/q_2}$} & {$\mathbf{0}$} & {$\mathbf{1}$}       \\ \midrule       \multirow{2}{*}{$\mathbf{0}$}                                &          $\displaystyle\frac{\mathrm{d}v_C}{\mathrm{d}t} =      -\frac{1}{C}I_\mathrm{load}$                                  &         $\displaystyle\frac{\mathrm{d}v_C}{\mathrm{d}t} =      \frac{1}{C}i_L - \frac{1}{C}I_\mathrm{load}$                  \\                                                                  &         $\displaystyle\frac{\mathrm{d}i_L}{\mathrm{d}t} =      -\frac{R_L}{L}i_L$                                            &              $\displaystyle\frac{\mathrm{d}i_L}{\mathrm{d}t} =      -\frac{1}{L}v_C - \frac{R_L}{L}i_L$                       \\ \hline       \multirow{2}{*}{$\mathbf{1}$}                            &         $\displaystyle\frac{\mathrm{d}v_C}{\mathrm{d}t} =      -\frac{R_L}{L}i_L - \frac{1}{L}V_s$                       &         $\displaystyle\frac{\mathrm{d}v_C}{\mathrm{d}t} =      \frac{1}{C}i_L - \frac{1}{C}I_\mathrm{load}$                  \\                                                                  &         $\displaystyle\frac{\mathrm{d}i_L}{\mathrm{d}t} =      -\frac{1}{C}I_\mathrm{load}$                                  &         $\displaystyle\frac{\mathrm{d}i_L}{\mathrm{d}t} =      -\frac{1}{L}v_L - \frac{R_L}{L}i_L + \frac{1}{L}V_s$          \\ \bottomrule       \end{tabular}     \end{table}     \end{document}      I also used `$\begin{aligned} ... \end{aligned}$` for combining the equations such that you don't have to use the `\multirow` command.               \documentclass[a4paper,10pt,twoside]{article}     \usepackage[cmex10]{amsmath}     \usepackage{booktabs}     \usepackage{multirow}     \usepackage{floatrow}     \begin{document}     \begin{table}[htb!]       \caption{Parameters which Torque logs.}       \label{tbl:2_1_1}       \begin{tabular}{c|c|c}                                                                     \toprule       {$\mathbf{q_1/q_2}$} & {$\mathbf{0}$} & {$\mathbf{1}$}            \\ \midrule       {$\mathbf{0}$} &      $\begin{aligned}     \frac{\mathrm{d}v_C}{\mathrm{d}t} &= -\frac{1}{C}I_\mathrm{load}     \\     \frac{\mathrm{d}i_L}{\mathrm{d}t} &= -\frac{R_L}{L}i_L     \\     \end{aligned}$                      &     $\begin{aligned}     \frac{\mathrm{d}v_C}{\mathrm{d}t} &= \frac{1}{C}i_L - \frac{1}{C}I_\mathrm{load}     \\     \frac{\mathrm{d}i_L}{\mathrm{d}t} &= -\frac{1}{L}v_C - \frac{R_L}{L}i_L     \\     \end{aligned}$                                  \\ \hline        {$\mathbf{1}$} &       $\begin{aligned}     \frac{\mathrm{d}v_C}{\mathrm{d}t} &= -\frac{R_L}{L}i_L - \frac{1}{L}V_s     \\     \frac{\mathrm{d}i_L}{\mathrm{d}t} &= -\frac{1}{C}I_\mathrm{load}     \\     \end{aligned}$                     &     $\begin{aligned}     \frac{\mathrm{d}v_C}{\mathrm{d}t} &= \frac{1}{C}i_L - \frac{1}{C}I_\mathrm{load}     \\     \frac{\mathrm{d}i_L}{\mathrm{d}t} &= -\frac{1}{L}v_L - \frac{R_L}{L}i_L +     \frac{1}{L}V_s      \\     \end{aligned}$                                  \\ \bottomrule       \end{tabular}     \end{table}     \end{document}      Playing with `arraystretch` or `\\\\[8mm]` didn't help either.


title: single table cell out of vertical alignment

text: Having been guided by the wisdom of those more experienced than me, I have been using this answer to my previous question to change all my tables into ones that look better using `booktabs`. One of my tables is giving me some grief. The vertical alignment of one of my header row cells is off, and I have no idea why.               \documentclass[12pt, a4paper, oneside, fleqn]{report}     \usepackage{geometry}     \geometry{       top=2.5cm,       left=3.5cm,       bottom=2.5cm,       right=2.5cm,       includehead,       headheight=28pt,       headsep=18pt,       showframe,     }          \usepackage{array,booktabs}          \renewcommand{\arraystretch}{1.5}     \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}     \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}     \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}           \newcommand{\headrow}[1]{%       \bfseries       \begin{tabular}{@{}c@{}}       \strut#1\strut       \end{tabular}%     }          \begin{document}          \begin{table}     \footnotesize     \centering       \begin{tabular}[t]{ l L{5cm} L{3cm} L{3.5cm} }         \toprule               & \headrow{Instrument Name}  & \headrow{Instrument Type} & \headrow{Main Purpose} \\         \midrule         IASI  & Infrared Atmospheric Sounding Interferometer & IR interferometer & Atmospheric temperature and humidity profiles; trace gases \\         AMSU  & Advanced Microwave Sounding Unit & Microwave radiometer & Atmospheric temperature \\         MHS   & Microwave Humidity Sounder       & Microwave radiometer & Atmospheric humidity    \\              \bottomrule       \end{tabular}       \caption{My table of instruments}     \end{table}          \end{document}      Gives the following output. Why is the middle one bottom aligned? ![tbale](http://i.stack.imgur.com/SgThq.jpg)