title: How to set font size at exactly 11 pt?

text: I am trying to write a research proposal in LaTeX. To this end, I am using the package `proposal`. The guidelines are strict, my proposal MUST be written in Arial 11 pt. My concern is the following: I have the feeling that the font size is somehow slightly smaller than 11 pt. This feeling was confirmed by comparing the same text printed out from a Word file with Arial fonts, 11 pt. I found a question pretty similar here: How to determine the true size of a font? but I must say it did not suffice to fix my problem. I have tried to look into the `.log` file, and found that line:               LaTeX Font Info:    Font shape `T1/ua1/m/n' will be     (Font)              scaled to size 10.40245pt on input line 22.      although the first lines of the log file show that the 11 pt option was properly transmitted to the base class (through `dfgproposal` -> `proposal` -> `article`):               Document Class: dfgproposal 2013/02/13 v1.4 DFG Proposal     (./proposal.cls     Document Class: proposal 2013/02/13 v1.4 Project Proposal     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size11.clo     File: size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )      EDIT: Alright, I found the answer myself, as I was trying to write a minimal working example (at the request of Harish Kumar). To be able to produce a document with the Arial font, I use the package uarial. What I did not know is that uarial takes an argument called "scaled":               \usepackage[scaled=xxx]{uarial}      By default, scaled is not 1.0, because Arial produces letters that are bigger than other fonts. So, simply writing               \usepackage[scaled=1.0]{uarial}      solved my problems.


title: balance package not found

text: I am getting following error in LaTeX Windows version in Wineditor:               ! LaTeX Error: File `balance.sty' not found.          Type X to quit or <RETURN> to proceed,     or enter new name. (Default extension: sty)          Enter file name:


title: Identical space around \[ \] and the amsmath environments set to a personnal value

text: I wish to have the same spaces around the brackets `\\[` ... `\\]` as the space around the environments `align` and `equation` (above and below, short or not) from `amsmath`, ideally (I set `\parskip=1ex`),               0.75\parskip plus 0.25\parskip minus 0.25 \parskip      MWE               \documentclass{article}     \usepackage{amsmath}     \setlength\parskip{1ex}     \begin{document}                    Some very very very very very long text     \begin{align*}     E \colon Q  &\longrightarrow QQ \\     (x_1 , x_2) &\longmapsto LL     \end{align*}     Some very very very very very long text.          Some very very very very very long text     \[ A=A \]     Some very very very very very long text.          Some very very very very very long text     \begin{equation*}     E \colon Q   =  QQ     \end{equation*}     Some very very very very very long text.          \end{document}


title: Writing Roman numbers in Equation

text: What is the command for writing roman numerals like I, II, IV etc. in an equation ? To be noted that my requirement is to write them within $$ ...$$ and not as counters or page numbers. Any light on this would be extremely helpful.


title: How can I mimic the output of syntax macros (\marg, \oarg, etc.) without using the ltxdoc class?

text: I have come to realize that the pleasant style (argument in italics, enclosed by angle brackets) of macro descriptions in numerous package documentations is actually produced by a number of special commands, such as `\marg` and `\oarg`, provided by the `ltxdoc` document class. The following screenshot is taken from documentation of the `listings` package. ![enter image description here](http://i.stack.imgur.com/PLA3k.png) How can I produce the same (or similar) result with normal packages (e.g. `listings`) in, say, the `article` document class?


title: Check for first occurrence of element in chapter

text: I'm writing a text containing several chapters. In addition, I use about 50 acronyms. Now I would like to expand the acronym in each chapter, but only at its first occurrence. For this, I'm thinking of a macro like               \newcommand{\acronym}[2]{%        % if first occurence in chapter        \emph{#1} (#2}        % else        #2     }      The macro describes the command I'm planning to use in my text, e.g., "this is a \acronym{very simple}{VS} example". All acronyms do neither contain white spaces or special characters. In contrast, acronyms are only built of letters. So I think it is possible with counters, but I have no clue how to start. A counter for each acronym? Or check the sectioning counter? EDIT: since my package list is already quite long, I would prefer a solution without an additional package. If this is not possible, ok, but normally, there is a way without a package, e.g., use simple tabular and calculate column widths manually.


title: How to print only solution sheet in the end of the document in probsoln package

text: I use:               \newproblem{1}{bla bla bla}{ble ble ble}      in an external file.tex. Then in my main file, I use:               \loadallproblem....          \begin{enumerate}          \foreachproblem[...]{\item \thisproblem}          \end{enumerate}      The question is how can I print only solution in the end of document. Somebody help me! P/S: Sorry for my bad English.


title: How to align these tqft cobordisms?

text: I find placement and alignment with the otherwise great tqft package irksome. I'm trying to align several cobordisms in a tikz matrix:               \documentclass{article}     \usepackage{tikz}     \usepackage{tqft}     \begin{document}         \begin{tikzpicture}[tqft/flow=south,anchor=south,every tqft/.style={draw}]             \matrix{                 \node[tqft/cup] {}; & \node[tqft/cap] {};\\                 \node {Cup}; & \node {Cap};\\             };         \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/ihMgZ.png) How do I align the cobordisms so they are on the same height (approximately)?


title: How can I make amsthm and cleveref to work with htlatex?

text: I have the following `test.tex` document:               \documentclass{article}     \usepackage{hyperref}     \usepackage{amsthm}     \usepackage{cleveref}     \newtheorem{thm}{Theorem}[section]     \newtheorem{rmk}[thm]{Remark}     \begin{document}     \begin{rmk}     .     \end{rmk}     \end{document}      With `pdflatex` and `latex`, everything works fine:               D:\Documents\GitHub\book>latex test.tex     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9 64-bit)     entering extended mode     (D:\Documents\GitHub\book\test.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,     croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,      lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman     ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm     an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl     ishmax, welsh, loaded.     ("D:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("D:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))     ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"     ("D:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"     ("D:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"))     ("D:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty")     (D:\Documents\GitHub\book\ifxetex.sty)     ("D:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\auxhook.sty")     ("D:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty")     ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")     ("D:\Program Files\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg")     ("D:\Program Files\MiKTeX 2.9\tex\latex\ltxmisc\url.sty"))          Package hyperref Message: Driver (default): hdvips.          ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hdvips.def"     ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\pdfmark.def"     ("D:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty")))     ("D:\Program Files\MiKTeX 2.9\tex\latex\amscls\amsthm.sty")     (D:\Documents\GitHub\book\cleveref.sty)     No file test.aux.     ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"     ("D:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"))          Package hyperref Warning: Rerun to get /PageLabels entry.          [1] (D:\Documents\GitHub\book\test.aux)          Package rerunfilecheck Warning: File `test.out' has changed.     (rerunfilecheck)                Rerun to get outlines right     (rerunfilecheck)                or use package `bookmark'.           )     Output written on test.dvi (1 page, 2332 bytes).     Transcript written on test.log.          D:\Documents\GitHub\book>pdflatex test.tex     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9 64-bit)     entering extended mode     (D:\Documents\GitHub\book\test.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,     croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,      lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman     ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm     an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl     ishmax, welsh, loaded.     ("D:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("D:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))     ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"     ("D:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"     ("D:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"))     ("D:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty")     (D:\Documents\GitHub\book\ifxetex.sty)     ("D:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\auxhook.sty")     ("D:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty")     ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")     ("D:\Program Files\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg")     ("D:\Program Files\MiKTeX 2.9\tex\latex\ltxmisc\url.sty"))          Package hyperref Message: Driver (autodetected): hpdftex.          ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hpdftex.def"     ("D:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty"))     ("D:\Program Files\MiKTeX 2.9\tex\latex\amscls\amsthm.sty")     (D:\Documents\GitHub\book\cleveref.sty) (D:\Documents\GitHub\book\test.aux)     ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"     ("D:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"))     (D:\Documents\GitHub\book\test.out) (D:\Documents\GitHub\book\test.out)     [1{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}]     (D:\Documents\GitHub\book\test.aux) )<D:/Program Files/MiKTeX 2.9/fonts/type1/p     ublic/amsfonts/cm/cmbx10.pfb><D:/Program Files/MiKTeX 2.9/fonts/type1/public/am     sfonts/cm/cmr10.pfb><D:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm     /cmti10.pfb>     Output written on test.pdf (1 page, 28695 bytes).     Transcript written on test.log.          D:\Documents\GitHub\book>      However, with `htlatex`, I get errors:               D:\Documents\GitHub\book>htlatex test.tex          D:\Documents\GitHub\book>latex  \makeatletter\def\HCode{\futurelet\HCode\HChar}\     def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafte     r\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#     1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HC     ode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentsty     le[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode .a.     b.c.\input  test.tex     This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9 64-bit)     entering extended mode     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,     croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,      lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman     ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm     an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl     ishmax, welsh, loaded.     (D:\Documents\GitHub\book\test.tex     ("D:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("D:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.sty")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\usepackage.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"     ("D:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"     ("D:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"))     ("D:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty")     (D:\Documents\GitHub\book\ifxetex.sty)     ("D:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\auxhook.sty"          Package auxhook Warning: Cannot patch \document,     (auxhook)                using \AtBeginDocument instead.          ) ("D:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty")     ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")     ("D:\Program Files\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg")     ("D:\Program Files\MiKTeX 2.9\tex\latex\ltxmisc\url.sty")          Package hyperref Message: Stopped early.          )          Package hyperref Message: Driver: htex4ht.          ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\htex4ht.def")     ("D:\Program Files\MiKTeX 2.9\tex\latex\amscls\amsthm.sty")     (D:\Documents\GitHub\book\cleveref.sty)     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.4ht"     ::::::::::::::::::::::::::::::::::::::::::      TeX4ht info is available in the log file     ::::::::::::::::::::::::::::::::::::::::::     ) ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.sty"     ("D:\Program Files\MiKTeX 2.9\tex\latex\graphics\color.sty"     ("D:\Program Files\MiKTeX 2.9\tex\latex\00miktex\color.cfg")     ("D:\Program Files\MiKTeX 2.9\tex\latex\graphics\dvips.def")     ("D:\Program Files\MiKTeX 2.9\tex\latex\graphics\dvipsnam.def"))     --- needs --- tex4ht test ---     (D:\Documents\GitHub\book\test.tmp)     l.1437 --- TeX4ht warning --- No file test.xref ---     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\latex.4ht"     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\fontmath.4ht"     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\article.4ht"     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\hyperref.4ht"     ("D:\Program Files\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"     ("D:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\nameref.4ht"     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\pd1enc.4ht"     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\url.4ht"     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\amsthm.4ht"     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\color.4ht"     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\dvips.4ht"     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\dvipsnam.4ht"     ("D:\Program Files\MiKTeX 2.9\tex\latex\graphics\dvipsnam.def")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")     ("D:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))     No file test.aux.     ! Argument of \eorem:syle has an extra }.     <inserted text>                     \par     l.8 \begin{rmk}          ?      What went wrong, and how do I fix it?


title: Create a BibTeX style formatting function

text: I would like to hack a new BibTeX style file based on `plain.bst`, in which I make it possible to display the value of a `location` field in the `inproceedings` entry type. I have started as follows:   1. I have added `location` to the list of defined fields in the `ENTRY` block.   2. In `FUNCTION{inproceedings}`, I have simply inserted the line `location output` right after where it prints the `booktitle`. This works! However, now I would like simply to enclose the value of `location` in parentheses. I have tried defining a `FUNCTION{format.location}`, but I don't understand the BibTeX language well enough to get this right. Any suggestions for the function? And how do I call it in `FUNCTION{inproceedings}`?


title: How do I get bibtexU working?

text: Running `bibtexu -v` (from TeX Live bundle) yields the message               This is BibTeXu: a UTF-8 Big BibTeX version 0.99d     Implementation:  Microsoft(R) C/C++ for Win32     Release version: 3.71 (18 mar 2013)      however I don't see any other manifestation that `bibtexu` could be really unicode-aware software. Moreover, when I run `bibtexu` on an `aux` file, it reports using 8-bit `csf` file:               The 8-bit codepage and sorting file: 88591lat.csf      and proceeds so slowly that I never could reach a finish. So my question: _What is`bibtexu` in fact?_


title: How do I draw bar graphs in my LaTeX documents?

text: I have set up the TexLive distribution on my Ubuntu system. What graphics or graph-drawing package should I use to embed bar graphs in my LaTeX documents?


title: Most useful additions in KOMA-Script?

text: (Background: I'm a beginner who will mostly use LaTeX for university articles and reports, but no math. Also, as I reside in Canada, the German typography conventions, which I understand KOMA-Script supports better than LaTeX, are less relevant). I've read that the KOMA-Script package has a lot of improvements for the default document classes. Yet the manual's length, about 250 pages, is somewhat daunting. I plan to read the chapters I'm interested in anyway but it'd be useful to have some pointers about low hanging fruits. I searched the site and other answers say KOMA-Script adds improvements but do not delve into details. I'll ask this as a community wiki topic and, since the audience of this site is international, feel free to mention German typography if KOMA-Script is better there.


title: Biblatex Ibid. citations inside longtabu environment

text: When using ibid citations inside a `longtabu` whilst on a page that already has a citation on it, the citation is ibid regardless of whether the author has been cited on that page already or not.               \documentclass{article}     \usepackage[style=authoryear-icomp]{biblatex}     \usepackage{longtable, tabu}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @article{test1,       author = {Doe, John},       year = {1999},       title = {Testing title},       journaltitle = {Journal of tests},       volume = {100},       number = {5},       pages = {100--200},     }     @article{test2,       author = {Dee, Jane},       year = {2000},       title = {Second title},       journaltitle = {Second journal},       volume = {150},       number = {10},       pages = {300-400},     }     \end{filecontents}     \addbibresource{\jobname.bib}     \begin{document}     One \autocite{test1}.     \begin{longtabu}{X}     Two \autocite{test2}.     \end{longtabu}     \end{document}      This produces the following output: ![Output of a file with a citation inside longtabu with another citation elsewhere on the page](http://i.stack.imgur.com/etOFK.png) Am I using `tabu` or `biblatex` incorrectly?


title: line/ arrow to node with rounded corners

text: A line to/from a rounded corner ends at the position 'north east' and not at the line around the node. ![enter image description here](http://i.stack.imgur.com/giklr.png) Is there a simple way to end the line/arrow at the drawn line around A? MWE:               \documentclass{standalone}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     \node[draw,rounded corners] (A) {A};     \node[draw] (B) at (1,1) {B};     \fill[red] (A.north east) circle(0.5pt) node[font=\tiny, above, anchor =west]{(A.north east)};     \draw[<->] (A) -- (B);     \end{tikzpicture}     \end{document}


title: Force 10 base multiplier

text: How can I get a 10 base multiplier at every tick? I only get 1 multiplier that has a strange position               scaled y ticks={base 10:-3}      I can't recreate it right now, however by default I got the lowest numbers scaled, the rest was normal decimal numbers. I would like to keep it consistent throughout the complete axis. Either no scaling at all (which looks bad if the numbers are small enough) or scaling all the way.               scale ticks below exponent={-2}      Does not work if the ticks values from the axis differ too much (then only 1 axis is scaled properly). Thanks in advance! Still learning.


title: REVTEX 4.1 and PeerX-Press LaTeX workflow

text: I am having trouble finding a practical workflow for REVTEX 4.1 documents to be uploaded using the AIP PeerX-press system. The PeerX system only accepts images in EPS and TIFF format. My native figure formats are EPS,PNG and JPG. The problem is that neither pdfLaTeX nor LaTeX can is able to process TIFF files so once I do my final conversions to EPS and TIFF and update all of my includegraphics commands I can no longer render my own document locally. It is a real pain to maintain two parallel TeX files during the peer review process. How do people usually overcome this? I suppose I could also convert raster images to EPS. This would satisfy both, but I don't have a convenient way to get a reasonably sized compressed EPS with the correct dimensions for printing.


title: Align text on a vertical axis similar to movie credits

text: I would like to align text on a cover page in a way often seen in movie credits, with the "key" ragged right and the "value" left: ![enter image description here](http://i.stack.imgur.com/SoH6r.png) I use two minipages next to each other to achieve this. However, when I zoom in I see that the vertical alignment of the text is not right: ![enter image description here](http://i.stack.imgur.com/Bp0Ck.png) How can I get this right? MWE:               \begin{minipage}{0.4\textwidth}     \begin{flushright}          Berichterstatter (1. Referent):\par     Mitberichterstatter (2. Referent):\par \vspace*{0.5cm}          Tag der Einreichung:\par     Tag der mündlichen Prüfung:           \end{flushright}     \end{minipage}\hspace{0.2cm}     \begin{minipage}{0.4\textwidth}          Prof. Dr. A\par     Prof. Dr. B\par \vspace*{0.5cm}     2. Mai 2013 \par     12. Juli 2013          \end{minipage}


title: Making a stand-alone image with gastex

text: I want to do the following:   1. Make an image using `gastex`.   2. Compile the image to a stand-alone pdf image. I.e., at the end of this stage I'll have a `myImage.pdf` file.   3. Include my image in a large latex file. The idea is that I like working with `gastex` but I want to compile my latex file with `pdflatex`. (I know there is a new feature of compiling `gastex` with `pdflatex` but I can't make it work so I prefer going this way.) The problem with step (2) is that I don't know what should be the `documentclass` I should use. E.g., using `\documentclass{article}` produces a A4 page with the image on it. I want the file to contain only the image. Also, maybe there a way to do this with `\documentclass{article}` and with playing with the page sizes? For some reason `standalone` doesn't work for me. This code passes `latex` but `dvipdf` crashes on it:               \documentclass{standalone}          \usepackage{gastex}          \begin{document}     \begin{picture}(100,10)(0,0)     \setlength{\unitlength}{3.5pt}     \gasset{Nw=5,Nh=5} %nWidth nHeight     \node[Nmarks=i,iangle=90](A1)(5,0){$s_1$}     \node(A2)(15,0){$s_2$}     \end{picture}     \end{document}


title: Force beamer to look in the CWD for theme?

text: I have a multiple-author document that I want to use a custom theme for. The document is stored in git, and I would like to store the theme file in the same directory (or a sub-directory), so that it we can keep track of them. The theme file is called `beamerthemeTHEMENAME.sty`. I've tried storing it in the same directory, and including it with               \usetheme{THEMENAME}      But beamer refuses to find it. This is really annoying, because when I compile with my document `latexmk -pdf ...` I can _manually_ change the theme name to `./beamerthemeTHEMENAME.sty` during compilation, and it works fine, but beamer just doesn't look in the local directory. Is there any way to force beamer to look for theme files in the current working directory, or a subdirectory of it?


title: Aligning a table (vertically) with a subfigure

text: I want to show three pictures and a tabel with explanatory text:                   ---------   ---------         |       |   |       |         | Pic 1 |   | Pic 2 |         |       |   |       |         ---------   ---------              ---------      TABLE         |       |   |txt | txt|          | Pic 3 |   |txt | txt|         |       |   |txt | txt|         ---------       I'm using `\subfigure` for to place the pictures, but regardless of if I put the `\tabular` inside a subfigure, alone or in a `\minipage`, it vertically aligns itself with the midpoint at the bottom of Pic 3:                   ---------   ---------         |       |   |       |         | Pic 1 |   | Pic 2 |         |       |   |       |         ---------   ---------              ---------           |       |         | Pic 3 |      TABLE         |       |   |txt | txt|         ---------   |txt | txt|                     |txt | txt|      How can I sort this? I know subfigure is old, but if possible I'd rather not start over with a new package. I've tried `\subtable` but no change. It doesn't have to be perfect, a quick fix would be great! I've tried putting a negative `\vspace` before, but doesn't help.


title: Webpage without author, using the title can make a very long apa citation

text: \documentclass{article}     \usepackage{apacite}     \usepackage[hyphens]{url}     \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}       @book{forbes,         author = {},         year = {2013},         title = {Supremes Unsympathetic to Farmer's Deception at Center of Monsanto GMO Soybean SCOTUS Patent Challenge},         note = {\url{http://www.forbes.com/sites/jonentine/2013/02/19/farmers-deception-at-center-of-monsanto-gmo-soybean-scotus-patent-challenge-genetic-innovation-threatened/}}       }     \end{filecontents}          \begin{document}          That's a long ref \cite{forbes}.          \bibliographystyle{apacite}     \bibliography{\jobname}     \end{document}      ![Sentence with an extremely long webpage title cited as a reference](http://i.stack.imgur.com/L4JXZ.png) The APA reference suggests shortening titles when cited, such as (Supremes Unsympathetic, 2013) for the above example. Of course I can edit the title in BibDesk, but then the list of references contains the abbreviated title. How should I handle this?


title: How do I prevent the beamer class from removing my global options

text: I'm currently writing a latex package (or actually a beamer theme, but apparently that makes no difference) and I want to be able to specify a few things using key-value pairs in the global options. However when using the beamer class, this fails. As a minimal example, take the following: document:               \documentclass[key=bla]{beamer}     \usepackage{needsoption}     \begin{document}      \MOPstore     \end{document}      package:               \ProvidesPackage{needsoption}     \RequirePackage{pgfopts}     \pgfkeys{         /MOP/.cd,         key/.store in=\MOPstore     }     \ProcessPgfOptions{/MOP}      Even though the option is clearly specified, it is never handled by \ProcessPgfOptions. If I specify the option locally (i.e. `\usepackage[key=bla]{needsoption}`) everything works fine, if I remove the value (i.e. `\documentclass[key]{beamer}`) everything works fine, if I switch to a different document class (e.g. `\documentclass[key=bla]{article}`) again everything works fine. I also tried using kvoptions instead of pgfopts but ran into the same problem. So what I deduce from that is that apparently something in the beamer class removes key-value options from the list of global options, while leaving other options intact. So I guess I have two questions: Firstly I would really like to know why the hell this happens and secondly how do I prevent the beamer class from behaving that way? I will also accept answers telling me how to hack around the problem if solving it is not an option.


title: Are there any tools that convert a table from MS Word to LaTeX tabular format?

text: I have a really big table in MS Word and would like to convert it to tabular format automatically. I'm using Texmaker and their quick tabular wizard is good but it doesn't let you copy paste data across column and rows from MS Word.


title: Change the style and add pictures

text: I need to make a presentation and am using `beamer`. I need to change this style. I want to replace this way: Standard style (wide or German, I need only one style) looks this way: ![standard style](http://i.stack.imgur.com/0jCLw.png) And what I need is to add two fields in the upper part of the slide and in the lower part of the slide, but it can be my own style (this pictures must be on every slide) ![needed style](http://i.stack.imgur.com/8knuU.png) How can I do it?


title: Decrease vertical whitespace when stacking above and below arrow

text: I'd like to have symbols below and above an arrow. The best result so far is accomplished using `\stackrel{\tau}{\underset{\equiv}{\rightarrowtriangle}}}}` ![rendered](http://i.stack.imgur.com/GCNDu.png) However, the vertical distance between the symbols is quite large, which also causes this construct to be quite high. How can I decrease these distances? Using `\vspace` seems to be wrong, as I intend to use the construct in different environments (and font sizes).


title: Typing the semidirect product symbol

text: I am using writelatex to write a paper and I need to type the semidirect product symbol...but for some reason, it keeps saying "error" and I can't see the semidirect product in the paper. I tried both `\rtimes` and `\ltimes` and both did not work. I searched the internet to see if there were other ways to type it using latex but I only found these two, and they both didn't work in writelatex...so I was wondering if anybody could help me with this...


title: Format abstracts as unnumbered chapters

text: I'm writing master thesis and working on LaTeX template for the successors ... The standard of the university requires abstract in every language to be formed as unnumbered Chapter:               \chapter*{Abstract}     \addcontentsline{toc}{chapter}{Abstract}     ...     \chapter*{Résumé}     \addcontentsline{toc}{chapter}{Résumé}     ...      Is it possible to customize the `abstract` environment (or to use other workaround) to be able to write:               {     \selectlanguage{russian}     \begin{abstract}         This is ABSTRAAAAACT!!!     \end{abstract}     }     {     \selectlanguage{french}     \begin{abstract}         This is ABSTRAAAAACT!!!     \end{abstract}     }      So that the titles would still appear in the ToC as unnumbered chapters? P.S. I'm using the `report` class


title: Including TikZ image (with external inputs) inside adjustbox adds horisontal spacing, why?

text: I'm working on my masters thesis and so I have a bunch of tikz files that I want to include in the thesis. This I do by using adjustbox to limit the size to `\textwidth` as such `\adjustbox{max width=\textwidth,bgcolor=blue}{\input{test.tikz}}`. Now my problem is that I have created external files containing common draw commands in order to creating multiple UML like diagrams and memory diagrams easier... this however, for some reason, adds padding to the including picture! Why, and what can I do to avoid it? Example: The test file "test.ext" used in the example only contains 100x5 '%'s so nothing really should be included in the final image? Code:               \adjustbox{max width=\textwidth,bgcolor=blue}{       \input{test.ext}                              <-- this causes the problem       \begin{tikzpicture}[]         \draw[fill=blue!20] (0,0) rectangle (3,1);       \end{tikzpicture}     }      Result: ![here](http://i.imgur.com/qc529.png).


title: How can I add something to the page resource dictionary using dvips

text: I use dvips and ps2pdf and want to add something (Properties) to the page resource dictionary. I know how to add something to the documents catalog:               \special{ps: mark {Catalog} <<     ... what I want to add ...     \>> /PUT pdfmark}      I know under xelatex @resources can be used for the page resource dictionary and @catalog for the catalog. But with dvips and ps2pdf it seems that {Resources} can not be used. But how can I add something to the page resource dictionary using dvips and ps2pdf?


title: Move .tex files from TeXlipse to TeXShop

text: I am a newbie at LaTeX/TeXlipse/TeXShop. I am currently writing a LaTeX document using TeXlipse plugin in Ubuntu. Due to hardware issues on the Ubuntu machine I need to port the `.tex` files to TeXShop on a Mac OS X. Since I was using TeXlipse, it had created all the `.tex` files in a project format. My entry point is `document.tex`               \begin{document}          %include other pages     \input{./title.tex}     %\input{./certificate.tex}          \input{./abstract.tex}     \input{./acknow.tex}     \pagenumbering{roman} %numbering before main content starts     \tableofcontents     \listoffigures          \newpage     \pagenumbering{arabic} %reset numbering to normal for the main content          \input{./introduction.tex}     \input{./systemarchitecture.tex}     \input{./implementation.tex}     \input{./experimentresults.tex}     \input{./conclusion.tex}     \input{./ref.tex}          \end{document}      When I try to preview this `document.tex` file I am able to see the corresponding PDF file. But any changes made to the `introduction.tex` file are not visible. I am not sure if this is because TeXShop does not support this kind of a project structure, or do I have to include all of the data into a single `.tex` file? The error I see in the console is as follows:               /introduction.tex:3: LaTeX Error: Missing \begin{document}.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.     ...             Since `introduction.tex` is not another document but the part of a bigger document should I include `\begin{document}` in every `.tex` file?


title: cross reference doesn't work with memoir

text: I'm getting to know `memoir`, and I cannot make cross references work.               \usepackage[utf8]{inputenc}     \usepackage{lipsum}     \usepackage{graphicx}     \usepackage{subfig}     \usepackage{array}     \usepackage{color}     \usepackage{amsmath,amsfonts,amssymb,amsthm}     \usepackage{hyperref}     \hypersetup{       hypertexnames=true,                       linktocpage=true,       linktoc=section,       colorlinks=true,                                             }     \usepackage{makeidx} % enables indexing     \makeindex      These are the major packages I'm loading and `cleveref` in addition. However, cross references in the document doesn't work. Neither in the TOC nor in when using `\cref` nor `\ref`. What am I missing? If I need to provide more information let me know.


title: Multiple bibliography/addbibresource in reftex

text: It seems that reftex only scans the file associated with the first bibliography/addbibresource command:               \usepackage[backend=biber,bibencoding=utf8,url=false, isbn=false,                 doi=false, backref=true,style=alphabetic]{biblatex}     \bibliography{a.bib}     \bibliography{b.bib}      only entries in `a.bib` are suggested when using `C-[`. Is it a bug or am I wrong?


title: Lyx: Include subsubsections in PDF index but without numbering

text: I am attempting to enable PDF indexing of subsubsections in my Thesis but do not want them numbered. At the moment, the PDF output displays the subsubsections in the index but they link back to the last numbered subsection. If I increase the depth of numbering in (LyX: Document Settings > Numbering and TOC > Numbering) then the links work correctly but numbers are shown in the PDF document (which I don't want). I have tried increasing the numbering depth and using `\subsubsection*` for the titles but then they are not shown at all in the index. I also tried with `\setcounter{secnumdepth}{2}` but this also removes them from the index I would prefer a document wide setting rather than having to change all the subsubsections but have even tried with `\pdfbookmark` which seems to cause some strange output in the PDF I am using the `hyperref` settings from the `classicthesis` preamble (not from Document settings).   The files for a minimal example are linked below: Files here


title: TikZ: Handdrawn boxes/arrows/circles for flowcharts

text: I saw the following style of boxes in Aditya's presentation as he mentioned it during his TeXTalk. I am almost positive that Aditya is using `Metafun` for this. But I was wondering how would one go about doing this in `tikz`. The cool thing about the boxes and arrows is that they keep changing with every new instance. Some sort of randomisation is going on. ![Aditya's boxes](http://i.stack.imgur.com/9hM5H.png)


title: Vertical alignment of cells in LyX

text: How can you set the vertical alignment of table cells in LyX? The right-click menu shows three choices ("Top", "Middle", "Bottom") but none of them is enabled, they are all greyed out.


title: \pbox vertical alignment

text: What's going on here, why are the `TEXT`s not aligned? ![enter image description here](http://i.stack.imgur.com/c5mnv.png)               \documentclass{article}     \usepackage{pbox}          \begin{document}          \hrule     \pbox[c][20pt][b]{\textwidth}{TEXT\\ Short}     \pbox[c][20pt][b]{\textwidth}{TEXT\\ Long Text}     \pbox[c][20pt][b]{\textwidth}{TEXT\\ Short}     \pbox[c][20pt][b]{\textwidth}{TEXT\\ Long Text}     \hrule          \end{document}


title: Table of images with automatic scaling

text: How to create a table of images so that every column has exactly the same width and images are scaled to fit the width (with aspect ratio kept)? Assuming that I choose the table width.


title: Formatting table issues

text: I have a table here, which is formatted in Microsoft Word. I wish to have the same table in LaTeX. Here is what I have tried to no avail:               \begin{table}[H]          \noindent     \begin{tabularx}{\linewidth}{|p{1cm}|p{2cm}|l|X|}\toprule          \multicolumn{1}{c}{Aim} & \multicolumn{1}{c}{Personnel} & \multicolumn{1}{c}{Timelines} & \multicolumn{1}{c}{Outcomes} \\ \midrule         1     & CI In, RA & 01/2014 - 06/2014 &  1. Collect data on fund characteristics, returns, and screening information for SRI funds. 2. Calculate Bayesian abnormal performance measures for SRI funds. 3. Determine the impact of investment screens and prior information on SRI fund performance. 4. Write working paper and send it for publication. \\         2     & CI In, RA & 06/2014 - 11/2014 & 1. Collect data on cash flows, fund expenses, fund returns, benchmark and nonbenchmark asset returns, and screening information for SRI funds. 2. Calculate Bayesian and frequentist alphas, and apply sorting procedure. 3. Determine the impact of prior information, fund expenses, and nonbenchmark assets on SRI fund performance persistence and cash flow predictability. 4. Write working paper and send it for publication. \\         3     & CI In, RA & 11/2014 - 05/2015 &  1. Collect data on stock characteristics, institutional ownership, analyst coverage, and screening information. 2. Model relationship between stock characteristics and stock screening policies. 3. Determine how SRI strategies influence a firm's economic behaviour. 4. Write working paper and send it for publication. \\         4     & CI In, RA, PhD student & 05/2015 - 10/2015 & 1. Collect key economic and demographic data, SRI mutual fund, SRI indices characteristics, and return data. 2. Create database of economic and demographic factors. 3. Model relationship between SRI growth and economic and demographic factors. 4. Write working paper and send it for publication. \\         5     & CI In, RA & 10/2015 - 03/2016 & 1. Collect fund characteristics data, screening data, and ESG rankings. 2. Create database with key analysis of types, total numbers, detailed screening process, and ethical ratings of portfolios. 3. Determine relationship between different types of fees, screening types/intensity, and ethicality of portfolios. 4. Write working paper and send it for publication. \\         6     & CI In, RA, PhD student & 03/2016 - 12/2016 & 1. Collect available portfolio holdings data, SRI fund characteristics, and general Australian mutual fund market data. 2. Create database with calculation of competitive measure, ranked returns, and other relevant variables. 3. Determine relationship between the probability of disclosure and relevant factors. 4. Write working paper and send it for publication. \\      \\\bottomrule               \end{tabularx}%     \end{table}      I would like to maintain the same borders (i.e., vertical lines between columns, horizontal lines around the entire table, etc) as in the MS Word file, however any other suggestions to make it look nicer is appreciated. Also, this table will most likely span across 2 vertical pages (as shown in MS Word), how do I do that in LaTeX? * * * Here are pictures of the MS Word table: ![enter image description here](http://i.stack.imgur.com/qyajT.jpg) ![enter image description here](http://i.stack.imgur.com/wdTO2.jpg) Also I just realised the MS Word table didnt format the column titles properly, the titles should all be on one row. To be honest, the MS Table doesn't look very nice, it be would be good to somehow make it look much nicer in LaTeX. * * * Using Excel2Latex's code:               \begin{table}[htbp]       \centering         \begin{tabular}{llll}         \toprule         Aim   & Personnel & Timeline & Outcomes \\         \midrule         1     & CI In, RA & 01/2014 - 06/2014 & 1. Collect data on fund characteristics, returns, and screening information for SRI funds.  \\               &       &       & 2. Calculate Bayesian abnormal performance measures for SRI funds.  \\               &       &       & 3. Determine the impact of investment screens and prior information on SRI fund performance.  \\               &       &       & 4. Write working paper and send it for publication. \\         2     & CI In, RA & 06/2014 - 11/2014 & 1. Collect data on cash flows, fund expenses, fund returns, benchmark and nonbenchmark asset returns, and screening information for SRI funds.  \\               &       &       & 2. Calculate Bayesian and frequentist alphas, and apply sorting procedure.  \\               &       &       & 3. Determine the impact of prior information, fund expenses, and nonbenchmark assets on SRI fund performance persistence and cash flow predictability.  \\               &       &       & 4. Write working paper and send it for publication. \\         3     & CI In, RA & 11/2014 - 05/2015 & 1. Collect data on stock characteristics, institutional ownership, analyst coverage, and screening information.  \\               &       &       & 2. Model relationship between stock characteristics and stock screening policies.  \\               &       &       & 3. Determine how SRI strategies influence a firm's economic behaviour.  \\               &       &       & 4. Write working paper and send it for publication. \\         4     & CI In, RA, PhD student & 05/2015 - 10/2015 & 1. Collect key economic and demographic data, SRI mutual fund, SRI indices characteristics, and return data.  \\               &       &       & 2. Create database of economic and demographic factors.  \\               &       &       & 3. Model relationship between SRI growth and economic and demographic factors.  \\               &       &       & 4. Write working paper and send it for publication. \\         5     & CI In, RA & 10/2015 - 03/2016 & 1. Collect fund characteristics data, screening data, and ESG rankings.  \\               &       &       & 2. Create database with key analysis of types, total numbers, detailed screening process, and ethical ratings of portfolios.  \\               &       &       & 3. Determine relationship between different types of fees, screening types/intensity, and ethicality of portfolios.  \\               &       &       & 4. Write working paper and send it for publication. \\         6     & CI In, RA, PhD student & 03/2016 - 12/2016 & 1. Collect available portfolio holdings data, SRI fund characteristics, and general Australian mutual fund market data.  \\               &       &       & 2. Create database with calculation of competitive measure, ranked returns, and other relevant variables.  \\               &       &       & 3. Determine relationship between the probability of disclosure and relevant factors.  \\               &       &       & 4. Write working paper and send it for publication. \\         \bottomrule         \end{tabular}%     \end{table}%      Creates this output: ![enter image description here](http://i.stack.imgur.com/6hXbY.jpg)


title: How to display Euro sign in verbatim mode?

text: I need to display the Dollar and Euro sign in verbatim mode. This is the code I got:               \begin{verbatim}     fr_FR: 123 456,78 €     de_DE: 123.456,78 €     en_US: $ 123,456.78     \end{verbatim}      It works with the Dollar sign, but not with the Euro sign. I tried escaping but that didn't work either. Any thoughts? I reduced the document to the following lines. And there is still no Euro sign:               \documentclass[10pt,a4paper,compsoc]{IEEEtran}               \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{textcomp}          \begin{document}          \begin{verbatim}     fr_FR: 123 456,78 €     de_DE: 123.456,78 €     en_US: $ 123,456.78     \end{verbatim}          \end{document}      Eclipse also shows an Error: > Keyboard character used is undefined \end{verbatim} (followed by: )


title: Accessing user-selectable features in GentiumPlus in XeLaTeX/LuaLaTeX

text: Specifically, the combination of **f** plus **î** in the italic ends up with the upper curl of the **f** smashed into the peak of the circumflex (other fonts have the same problem, but the result is even uglier). I would like to improve the situation by using the GentiumPlus user-selectable feature "Low- profile diacritics" (feature ID code `lopr` in the latest release (version 1.510), `1054` in previous releases --per the newest version of _gentiumPlus- features.pdf_ , apparently only available online in the font package download-- with values `1=true` and `0=false`, as corrected in the SIL tech notes for this font). This would produce a squatter circumflex that _should_ miss the collision with **f**. Other notes on the SIL page regarding features new with GentiumPlus _seems_ to indicate that this feature is available both as Graphite and OpenType features, and since I would like to be able to do this in both LuaLaTeX and XeLaTeX, I would like to use OpenType, since Graphite is not supported in LaTeX (except possibly via the Fontspec back door of including Graphite instructions in a Font Feature File, as mentioned in a post here, but not in the Fontspec manual, where it is supposed that it will only be used for OpenType features). Now _if_ I am reading the Fontspec documentation correctly, and _if_ I am correct that this exists as an OpenType feature, I can add this feature with `\addICUfeature` (in XeLaTeX) or `\addopentypefeature` (in LuaLaTeX). The Fonspec manual (page 43) gives the syntax (using the XeLaTeX version of the command name) as > `\newICUfeature{<feature>}{<option>}{<feature tag>}` with an example (using the LuaLaTeX version) > `\newopentypefeature{Style}{NoLocalForms}{-locl}` Comparing with the syntax and use of `\addAATfeature` on the same page, it seems clear that `<feature>` and `<option>` are the names that would go on the righthand and lefthand sides of the `=` in an argument to e.g. `\addfontfeatures`, while `<feature tag>` would, in this case, be `+lopr`, assuming a prefixed plus/minus sign works as an on or off switch. **BUT** I seem not to have done this correctly. I had guessed that `<feature>` and `<option>` were simply user-created discriptive names, as with `\newcommand`. What I used was > `\newICUfeature{GentiumPlusFeatures}{LowProfile}{+lopr}` in the preamble, and for an activation command (which I grouped with just the combining circumflex character, immediately following the dotless i) I used > `fı{\addfontfeature{GentiumPlusFeatures=LowProfile}\char"0302}` My document compiled successfully without stopping, but the result was visually identical to the combined characters _without_ the command, and with the original i-circumflex character. The log shows a fontspec warning `"icu- feature-not-exist-in-font"` with an explanation               OpenType feature 'GentiumPlusFeatures=LowProfile' (+lopr) not available for       font 'GentiumPlus-R.ttf' with script 'Latin' and language 'Default'.      Finally, I tried adding `Renderer=ICU` to the `\addfontfeatures` argument, as suggested in a possibly-relevant post here but the result was unchanged. (I am guessing `Renderer=ICU` would still be necessary once corrections to the rest are made, but also don't know that `Renderer=ICU` would work in LuaLaTeX). UPDATE: I have tried substituting the name `Low-profile diacritics` in the `<feature>` field and `True` for `<option>`, so that by using these, along with `+lopr` (plus trial variants `-lopr` and `lopr`), I am now using only the exact language of the font documentation, but still no success. I have gone as far as I can with this on my own, and am hoping someone with real expertise will be able to look it over and fix it in a few seconds. It is a small thing, I know... much like a grape seed in one's appendix.


title: TDS Problem - Root Direction / My Folder: C:\tex - Should work?

text: My Problem is that I want to include a stylesheet for LaTeX from my university. I have MikTeX 2.9 running. With MiKTeX Options I should be able to add a root direction, such as                   MiKTeX Problem Report     Message: Not a TDS-compliant root directory.       Data: C:\localtexmf       Source: Programs\MiKTeX\MO\MFC\PropPageRoots.cpp       Line: 367       MiKTeX: 2.9       OS: Microsoft Windows 7 Business Edition, 64-bit Service Pack 1 (build 7601)       Invokers: non-existing/explorer       SystemAdmin: yes       PowerUser: no       Root0: C:\Users\Chef\AppData\Roaming\MiKTeX\2.9       Root1: C:\Users\Chef\AppData\Local\MiKTeX\2.9       Root2: C:\ProgramData\MiKTeX\2.9       Root3: C:\Program Files\MiKTeX 2.9       UserInstall: C:\Users\Chef\AppData\Roaming\MiKTeX\2.9       UserConfig: C:\Users\Chef\AppData\Roaming\MiKTeX\2.9       UserData: C:\Users\Chef\AppData\Local\MiKTeX\2.9       CommonInstall: C:\Program Files\MiKTeX 2.9       CommonConfig: C:\ProgramData\MiKTeX\2.9       CommonData: C:\ProgramData\MiKTeX\2.9        If I am also putting it for example: `C:\Program Files\MiKTeX 2.9\TUD` It doesn't work What am I doing wrong? Any ideas?


title: Using sidewaystable enviroment with footnotetext

text: my new problem si this code:               \documentclass[a4paper,12pt]{article}     \usepackage{rotating}          \begin{document}         \begin{sidewaystable}[h!]           \centering            \setlength{\tabcolsep}{5pt}            \begin{tabular}{|p{3cm}||p{4cm}|p{4cm}|p{4cm}|p{4cm}|}              \hline                EJ       & \textbf{471}   & \textbf{575}    & \textbf{671}  & \textbf{675}    \\              \hline                a        & 12  & dfg   & fg\footnotemark[1] &  ffd  \\               \hline                a        & 42  & fdg   & s\footnotemark[2] &  sdf  \\               \hline                      \end{tabular}           \caption{Bla bla bla bla bla.}           \label{A7660C1}           \footnotetext[1]{ bla}           \footnotetext[2]{ bla bla}         \end{sidewaystable}      \end{document}      ![table](http://i.stack.imgur.com/5lCMe.png) I don't understand why, in the table are footnote references (`\footnotemark`) as numbers -> 1 and [2], but footnote text are referenced as letters -> [a] and [b] (`\footnotetext`). This problem is seen in the attached pdf document. I am running Miktex 2.9 (XeLaTeX).


title: eps figure (image) quality loss on including it in latex

text: I saw Included PNG appears blurry in PDF and How do I insert an image in LaTeX so it looks good on print? also etc. However, I am trying to include .`eps` images, which are generated using gnuplot. Still, there is a loss of details. Here is how I generate in gnuplot.               set term postscript eps color blacktext "Helvetica" 24     set output "filename.eps"      When I see `.eps` itself with evince, it looks fine, but after I use latex and make pdf using:               dvipdf PAPER.dvi  PAPER.pdf      the image does not look to be that clear. Here is the MWE:               \documentclass{article}     \usepackage{graphicx}     \begin{document}     \begin{figure}[htbp]     \centering       \includegraphics [scale=0.5] {rough}      \end{figure}     \end{document}      rough.eps is here: http://www.tempfiles.net/download/201208/256505/rough.html. It was generated as png using powerpoint, then changed to eps using inkscape. Those generated using gnuplot are my results, hence I shared this instead.


title: Letters and numbers have a different dimension in subscripts

text: I am writing in math mode symbols with long lists of subscripts, that can either be letters or numbers. For example, I write something like               \begin{equation}     p_{51y_4y_3}     \end{equation}      to obtain ![!\[symbol\] \(http://i57.tinypic.com/250qpae.png\)](http://i.stack.imgur.com/OWSaF.png) This looks rather inelegant though. Have you got any suggestion on how to improve it?


title: Latex IEEETran cls use titlesec package

text: Anyone know how to use titlesec package if I am under \documentclass[conference]{IEEEtran} ? I got following error:               ！Undefined control sequence.          <argument> \subparagraph      Thanks


title: Text below equation with hf-tikz

text: I would like to put explanation below math after boxing the pieces with hf- tikz. The solution I could find is using \underbrace but it does not look good. I am looking for an underbrace-like alignment without the brace. Is there such a thing? ![the image](http://i.imgur.com/gtiVJme.png) Here is a working example in Beamer               \documentclass[aspectratio=169]{beamer}          \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{mathtools}     \usepackage{hf-tikz}          \begin{document}          \begin{frame}     \frametitle{Text under equation blocks}          \begin{equation*}     \begin{aligned}     a = \onslide<2->\underbrace{ \tikzmarkin{a} \onslide<1-> b \onslide<2-> \tikzmarkend{a}}_{\alert{\text{text1}}} \onslide<1->+ \onslide<3->\underbrace{ \tikzmarkin{b} \onslide<1-> c \onslide<3-> \tikzmarkend{b}}_{\color{brown}{\text{text2}}}     \end{aligned}     \end{equation*}          \end{frame}          \end{document}


title: What is the correct way based on the consensus to write a volume measurement followed by its unit in liter?

text: Which one is the correct one?   1. `100l` There is no space between number and unit. Unit is written in small letter.   2. `100L` There is no space between number and unit. Unit is written in big letter.   3. `100 l` There is a space and unit in small letter.   4. `100 L` There is a space and unit in big letter.


title: Separate styles for section headers in table of contents and body

text: I'm looking to have different 'styles' (not sure if this is the right word) for my section headers depending on whether they're listed in the TOC or the body. That's probably not clear, so let me demonstrate. In the body, I'd like to see:               Article I. Intro      ....     Article II. Methods     ....      But in the TOC I'd like to see               I. Intro .......... 5     II. Methods ........10      without the "Article" bit. Right now, I'm using this to set the section headers:               \renewcommand{\thesection}{Article \Roman{section}.}      I should mention I'm using the `article` class.


title: LaTeX templates/packages for writing a patent specification

text: Are there any templates or useful packages for writing a patent specification, such as the ones in this collection?


title: biblatex 2.0 to MacTeX package, TeX Live

text: I want to install the new version of `biblatex` 2.0 in the Tex Live 2011 distribution installed on my Mac. Could someone give the steps to do this?


title: xelatex+fontspec is slow (after a fast xelatex -no-pdf)

text: `xelatex -no-pdf` blazes through a single page diagram using pstricks+fontspec but `xdvipdfmx` on the `.xdv` output is VERY slow (about 20 seconds delay). Using `xdvipdfmx -E -vv efa.xdv` makes me think most of the work is related to processing fonts in some way. How can I speed this up? Obviously when I run `xelatex` so that it does the `xdvipdfmx` in a single command, it's equally slow; I just separated the commands to see more logs.               \usepackage{fontspec}     \newfontfamily{\arabicfont}[Script=Arabic,Scale=1.5,Path=/usr/local/texlive/texmf-local/fonts/truetype/]{arabic}      This finds and uses a font file named `arabic.ttf`. My only complaint is that it's slow. I haven't taken any steps to properly install the font. Is there some kind of indexing or other precomputation that would help? Is there a possible permission problem if I'm not the owner of the texlive installation? When I use regular latex->dvips, it's really fast - 1 sec instead of 30 sec - (but I don't use fontspec; it just finds an appropriate font for me with               \usepackage{arabtex,atrans,nashbf,utf8}     \usepackage{times}


title: luatex cannot find font metric data

text: After installing TeX Live 2012 in a non system directory (not sure if this makes a difference) and running some of the tests found at TeX Live Install, LuaTeX can't find the example font metrics even though xetex can.               $ luatex opentype-info.tex      This is LuaTeX, Version beta-0.70.2-2012062812 (TeX Live 2012)      restricted \write18 enabled.     (./opentype-info.tex     ! Font \testfont=Latin Modern Roman/ICU at 12pt not loadable: metric data not found or bad.     <to be read again>                         \par      l.27           ? X     No pages of output.     Transcript written on opentype-info.log.     $ xetex opentype-info.tex      This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012)      restricted \write18 enabled.     entering extended mode     (./opentype-info.tex [1] )     Output written on opentype-info.pdf (1 page).     Transcript written on opentype-info.log.     $       How can I fix my LuaTeX install?


title: Should I prefer {pdflscape} over [pdftex]{lscape}?

text: I came across a problem with `pdflscape` and TikZ' `external` library where externalized `tikzpicture`s in a `landscape` environment were rotated incorrectly ( Using tikzexternalize with pdflscape results in rotated image). Apparently, this is a known bug (added to the `pgfplots` "to-do" list in 2009). In my case, it turns out that everything works fine if I use `\usepackage[pdftex]{lscape}` instead of `\usepackage{pdflscape}`: The landscape page is correctly rotated and displayed in the PDF viewer, and the externalized image is oriented correctly. Is there a reason why I should _not_ use `[pdftex]{lscape}` instead of the `{pdflscape}` package? It seems that both do the same thing (make sure that landscape pages are displayed in landscape mode in the viewer). However, on the `lscape` CTAN page it says: > Note that the package makes no special provision for PDF output, where in > principle a single page can be shown at full landscape width; such an effect > may be achieved using the `pdflscape` package instead. Why does the `lscape` package recommend using `pdflscape` instead of its own `pdftex` switch?


title: Using Beamer to step through an algorithm written in pseudocode.

text: I am trying to create a beamer presentation in which I would step through an algorithm, highlighting the current line in the algorithm on each slide. I know it is possible to do with the `semiverbatim` environment, however, my algorithm has to be written in pseudocode. I am trying to match the pseudocode format that is used by the textbook I am using, and for that the `algpseudocode` package that is a part of the `algorithmicx` package seems to do an excellent work. However, I cannot figure out how to highlight the current line in the `algorithmic` environment. I tried to do this:               \documentclass[ignorenonframetext]{beamer}     \usepackage{algpseudocode}          \begin{document}     \section{Blah}     \begin{frame}        \frametitle{Blah}        \begin{columns}      \begin{column}{.4\hsize}         \begin{algorithmic}            \alert<1>{\State $z \gets 1$}            \alert<2>{\For{$i = 1 \to n$}}            \alert<3>{\State $z \gets z + \frac{1}{i}$}            \alert<4>{\EndFor}         \end{algorithmic}      \end{column}%      \begin{column}{.6\hsize}         Some text discussing the current line.      \end{column}        \end{columns}     \end{frame}     \end{document}      however that gives me an error about missing `\endcsname`. Does anybody have any suggestion on how to achieve this?


title: MikTex Download Failure - toptesi.tar.lzma

text: I try to install Complete MiKTeX 2.9 But there is this:               Error: The operation could not be completed because the following file failed verification:          C:\...\mikTex\toptesi.tar.lzma      There is the same with the basic version. How can I solve my problem?


title: Within a single paragraph, hang a wrapped line, but do not hang new lines

text: I'm writing a list, and would like the line hanging to work like this ![Want this line hanging](http://i.stack.imgur.com/Fk6Jx.png) I do not want to use separate paragraphs for each item in the list, and I do not want to use the list environments; I will be using the entire text of the list as an input argument to a new command that I hope will, in addition to placing the list where I want it, be able to make it hang properly--so the kind of list that I want would look something like this (I'm using the minipage environment here so that the lines will break just as in the image):               \documentclass{article}     \usepackage{units}     \begin{document}          \begin{minipage}{4.5cm}     \setlength{\parindent}{0cm}     \nicefrac{1}{2} lb.\ (about 1\nicefrac{1}{2} cups) thinly sliced yellow onions\\     2 (about 1 cup) sliced green bell peppers\\     2 to 3 Tb olive oil, if necessary\\     2 cloves mashed garlic\\     Salt and pepper to taste     \end{minipage}          \end{document}      But, of course, that produces output that looks like this: ![Attempt with no hangs etc](http://i.stack.imgur.com/vA0cK.png) I understand that `\hangindent` will do the trick for paragraphs, but I do not want to use separate paragraphs for each item (and even if I did, `\hangindent` is local, so it'd have to go at the beginning of each item--also no good). When I try this anyway, hoping that it'll somehow know what I want (works surprisingly often with many other things LaTeX . . .), I get that this:               \documentclass{article}     \usepackage{units}     \begin{document}          \begin{minipage}{4.5cm}     \setlength{\parindent}{0cm}     \hangindent=1em     \nicefrac{1}{2} lb.\ (about 1\nicefrac{1}{2} cups) thinly sliced yellow onions\\     2 (about 1 cup) sliced green bell peppers\\     2 to 3 Tb olive oil, if necessary\\     2 cloves mashed garlic\\     Salt and pepper to taste     \end{minipage}          \end{document}      produces this: ![Using hangindent to get something I don't want](http://i.stack.imgur.com/aHvKn.png) So no real surprise, but that means I'm officially out of ideas. Does someone know whether it's possible to, within a single paragraph, hang a wrapped line, but not hang new lines?


title: How do I Auto-Label Hyperref Fillable Forms \TextField?

text: Is there any way to put an automatic label into the hyperref package's `\TextField` parameters field like this:               \newcounter{lexemeCounter}     \newcommand\lexemeCount{\stepcounter{lexeme}\lexemeCounterrabic{lexemeCounter}}          \newcommand{\formlabel}{\value{lexemeCounter}}          \TextField[name=\formlabel]{}      The reason I need to do this is because I have a table with about 1000 entries and I would like to add an editable comment column. A minimal example would look like this (Although this is a minimal example, I purposely chose to use the `longtabu` environment, because that is the real- world scenario):               \documentclass{scrartcl}     \usepackage{fontspec} %I only use xelatex     \usepackage{tabu}     \usepackage{longtable}     \usepackage{hyperref}          \newcounter{lexemeCounter}     \newcommand\lexemeCount{\stepcounter{lexemeCounter}\arabic{lexemeCounter}}     \newcommand{\formlabel}{\value{lexemeCounter}}          \begin{document}          \begin{longtabu} to \textwidth{|[1pt black] X[.10,l] | X[.20,l] || X[.20,l] | X|[1pt black]}        Row & English & German & Comments\\        \hline        \lexemeCount & apple   & Apfel  & \TextField[name=\formlabel]{}\\        \lexemeCount & mouse   & Maus   & \TextField[name=\formlabel]{}     \end{longtabu}          \end{document}      All of my attempts have failed. For some reason, the `name=\formlabel` stays literal (or does not increment) and therefore all edits are applied to each `\TextField`


title: How to center 3 factors in one table?

text: I want to center the 3 factors in the bottom line in the under table"Ref1.i, Ref1.ii and Ref1.iii". Just as the upper line showed. I'm entry level, thank you for any kind help! code:               \documentclass{article}     \usepackage{booktabs,multirow}% http://ctan.org/pkg/{booktabs,multirow}          \begin{document}     \centering     Table 1. Table testing\\     \begin{tabular}{*{4}{c}}         \toprule         \textbf{Title1} & \textbf{Title2} & \textbf{Title3} & \textbf{Title4} \\         \midrule         \textbf{Ref1} & Val2a & Val3a $\left\{\begin{tabular}{@{\ }l@{}}             Ref1.i \\ Ref1.ii \\ Ref1.iii         \end{tabular}\right.$ & Val4a \\         \bottomrule     \end{tabular}          \bigskip          \begin{tabular}{*{4}{c}}         \toprule         \textbf{Title1} & \textbf{Title2} & \textbf{Title3} & \textbf{Title4} \\         \midrule         \multirow{3}{*}{\textbf{Ref1}} & \multirow{3}{*}{Val2a} & Ref1.i & \multirow{3}{*}{Val4a} \\             & & Ref1.ii & \\             & & Ref1.iii & \\         \multirow{3}{*}{\textbf{Ref1}} & \ Ref1.i & \multirow{3}{*}{Val3a} &\multirow{3}{*}{ } \\             & Ref1.ii & \\             & Ref1.iii & \\         \bottomrule     \end{tabular}     \end{document}


title: Changing the section format

text: Consider the `\section{abc}` the output will be like               1. abc      how can I change the '.' to '-' or vice versa. i.e.               2- abc


title: Is there any package to create bullet gauge graphs?

text: I am looking for a package to create bullet gauge graphs, but I couldn't find any. A bullet graph looks like this: ![enter image description here](http://i.stack.imgur.com/tjFOL.png) and an ample description/specification can be found here It is available in Mathematica 9 (see here) Is it possible create this kind of graphs in a easy way with `TeX` (like Matehmatica 9 or similar)?


title: How to create vertical Bullet Graphs with PSTricks?

text: I was looking for a package to create bullet gauge graphs, but I couldn't find any. A good person in this forum show me how he would make it in TikZ, with a little options. I was waiting any moths but no package appear to make this fantastic kind of graphs with LATEX, so... A bullet graph looks like this: ![enter image description here](http://i.stack.imgur.com/EL8vC.png) and an sample description/specification can be found here It is available in Mathematica 9 (see here), with multiple details (but only in horizontal, it´s a pity!! vertical is very usefull ) _**How you would create this kind of graphs (preferent in vertical) in a easy way with PSTricks in`LaTeX` (like Matehmatica 9 or similar)?_** I hope that a package to do this kind of graphics appear! You can see the available multiple options on horizontal bullets in Mathematica v.9 I´m only interested in the options of the simple graphs that you can see in the first little image. At most, any color changes.


title: Multiple Y-axis plot (4 Ys YY-YY)?

text: Can someone help me creat a figure like the attached one which is generated by Origin Lab? ![enter image description here](http://i.stack.imgur.com/MWVQC.jpg) According to Jack's suggestion, I made my tex code as follows. The last thing I have to complish is the legend. Even though Jack has told the way, I still do not know to how to make this legend out.               \documentclass[border=5mm]{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \begin{document}     \definecolor{mycolor1}{rgb}{1,0,1}     \definecolor{mycolor2}{rgb}{0,0.498039215803146,0}               \begin{tikzpicture}     % f1     \begin{axis}[     color=black,     scale only axis,     xmin=0.5,     xmax=20.5,     xtick={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20},     xlabel={$y$},     ymin=1,     ymax=2,     ytick={1.0,1.2,1.4,1.6,1.8,2.0},     yticklabels={1.0,1.2,1.4,1.6,1.8,2.0},     y axis line style={blue},     ytick style={blue},     yticklabel style={blue},     axis x line*=bottom,     axis y line*=left,     tick align = outside,]     \addplot [     color=blue,     solid,     line width=1.5pt,     mark size=2.7pt,     mark size=2.7pt,     mark=square*,     mark options={solid,,rotate=180,fill=blue}]     table[row sep=crcr]{     1 1.09754040499941\\     2 1.12698681629351\\     3 1.14188633862722\\     4 1.15761308167755\\     5 1.27849821886705\\     6 1.42176128262627\\     7 1.48537564872284\\     8 1.54688151920498\\     9 1.63235924622541\\     10 1.79220732955955\\     11 1.8002804688888\\     12 1.81472368639318\\     13 1.90579193707562\\     14 1.91337585613902\\     15 1.91573552518907\\     16 1.95716694824295\\     17 1.9575068354343\\     18 1.9594924263929\\     19 1.96488853519928\\     20 1.97059278176062\\};     \end{axis}     % f2     \begin{axis}[     color=mycolor2,     scale only axis,     xmin=0.5,     xmax=20.5,     ymin=2,     ymax=3,     ytick={2.0,2.2,2.4,2.6,2.8,3.0},     yticklabels={2.0,2.2,2.4,2.6,2.8,3.0},     axis x line*=none,     axis y line*=left,     ylabel={$x$},     ylabel style=black,     hide x axis,     tick align =outside,]     \pgfplotsset{every outer y axis line/.style={xshift=-1.5cm}, every tick/.style={xshift=-1.5cm}, every y tick label/.style={xshift=-1.5cm} }     \addplot [     color=mycolor2,     solid,     line width=1.5pt,     mark size=2.7pt,     mark=*,     mark options={solid,fill=mycolor2}]     table[row sep=crcr]{     1 2.03183284637742\\     2 2.03444608050291\\     3 2.03571167857419\\     4 2.04617139063115\\     5 2.09713178123585\\     6 2.17118668781156\\     7 2.27692298496089\\     8 2.31709948006086\\     9 2.39222701953417\\     10 2.65547789017756\\     11 2.65574069915659\\     12 2.67873515485777\\     13 2.69482862297582\\     14 2.70604608801961\\     15 2.74313246812492\\     16 2.75774013057833\\     17 2.82345782832729\\     18 2.84912930586878\\     19 2.93399324775755\\     20 2.95022204883836\\};     \end{axis}     % f3     \begin{axis}[     color=mycolor1,     scale only axis,     xmin=0.5,     xmax=20.5,     ymin=3,     ymax=4,     ytick={3.0,3.2,3.4,3.6,3.8,4.0},     yticklabels={3.0,3.2,3.4,3.6,3.8,4.0},     ytick style={mycolor1},     axis x line*=none,     axis y line*=right,     hide x axis,     tick align = outside,]     \addplot [     color=mycolor1,     solid,     line width=1.5pt,     mark size=2.7pt,     mark=triangle*,     mark options={solid,fill=mycolor1}]     table[row sep=crcr]{     1 3.11899768155838\\     2 3.16261173519463\\     3 3.18687260455438\\     4 3.22381193949114\\     5 3.27602507699858\\     6 3.34038572666613\\     7 3.38155845709301\\     8 3.4387443596564\\     9 3.4455862007109\\     10 3.48976439578823\\     11 3.49836405198214\\     12 3.58526775097978\\     13 3.64631301011127\\     14 3.65509800397384\\     15 3.67970267685367\\     16 3.70936483085807\\     17 3.75468668198236\\     18 3.765516788149\\     19 3.79519990113706\\     20 3.95974395851608\\};     \end{axis}     % f4     \begin{axis}[     color=red,     scale only axis,     xmin=0.5,     xmax=20.5,     ymin=4,     ymax=5,     ytick={4.0,4.2,4.4,4.6,4.8,5.0},     yticklabels={4.0,4.2,4.4,4.6,4.8,5.0},     axis x line*=none,     axis y line*=right,     hide x axis,     tick align = outside,]     \pgfplotsset{every outer y axis line/.style={xshift=1.5cm}, every tick/.style={xshift=1.5cm}, every y tick label/.style={xshift=1.5cm}}     \addplot [     color=red,     solid,     line width=1.5pt,     mark size=2.7pt,     mark=triangle*,     mark options={solid,,rotate=270,fill=red}]     table[row sep=crcr]{     1 4.13862444282868\\     2 4.14929400555906\\     3 4.19659525043121\\     4 4.24352496872499\\     5 4.25108385797603\\     6 4.25428217897153\\     7 4.25509511545927\\     8 4.25750825412374\\     9 4.34998376598481\\     10 4.47328884890273\\     11 4.50595705166514\\     12 4.5472155299638\\     13 4.61604467614664\\     14 4.69907672265669\\     15 4.75126705930565\\     16 4.81428482606882\\     17 4.84071725598366\\     18 4.8909032525358\\     19 4.92926362318723\\     20 4.95929142520544\\};     \end{axis}     \end{tikzpicture}%     \end{document}      ![enter image description here](http://i.stack.imgur.com/rMkjp.jpg)


title: pgfplots: howto read touchstone files (s1p, s2p, s3p,...)

text: With pgfplots you can simply create nice plots that seamlessly integrate into your tikz figure. As a high frequency engineer you will inevitably use a network analyzer to measure S-parameters. The de facto standard to save your measurements are the Touchstone files. For a two port system you get a *.s2p file, that looks like this:               ! TOUCHSTONE file generated by XXXX     ! Date and time: Wed Jun 04 19:21:59 2014     ! Project name: transition     # GHZ S MA R 50     0                              1             180     4.05226e-006             -45       0.00214819            -135        0.0326957               0       0.0749999955            0.999678         178.746        0.0001547         44.2365     4.40317e-005        -137.093        0.0312474         -13.366       0.149999991             0.998953         177.518      0.000154895         156.805     6.23325e-005        -137.592        0.0280867        -24.2334       0.224999994             0.998173         176.312      0.000191275        -138.125     7.47758e-005        -137.862        0.0245106        -31.5581       0.299999982             0.997505         175.117      0.000132603        -89.9357     8.48586e-005        -139.217        0.0214594        -36.0664       0.375                   0.996964         173.926     6.99054e-006         -136.62     9.55566e-005        -140.334             [...]      You can parse that file directly by:               \begin{tikzpicture}         \begin{axis}[width=0.8\textwidth,height=7.5cm,xmin=0,xmax=75,ymin=-80,xlabel={frequency [GHz]},ylabel={S [dB]},legend pos=outer north east]             \addplot[color=red] table[mark=none,comment chars=!, x index=0, skip first n=5, y expr={20*log10{\thisrowno{1}}}] {transition.s2p};             \addlegendentry{$s_{11}$}             \addplot[color=blue] table[mark=none,comment chars=!, x index=0, skip first n=6, y expr={20*log10{\thisrowno{3}}}] {transition.s2p};             \addlegendentry{$s_{21}$}             \node[coordinate, pin={below:$\small{s_{21}=\SI{-0,30}{dB}}$}] at (axis cs:61.25,-0.3) {};         \end{axis}     \end{tikzpicture}      what results in: ![example for parsing a s2p file](http://i.stack.imgur.com/SQU0t.png) But a s4p file has 16 elements written as a matrix. Example:               ! TOUCHSTONE file generated by xxx     ! Date and time: Fri Jun 06 12:06:41 2014     ! Project name: coupler     # GHZ S MA R 50     0                      0.0419805               0     9.42573e-005               0      0.000111583               0     8.80383e-005             180                           9.42259e-005               0        0.0419806               0     8.79926e-005             180      0.000111677               0                            0.000111607               0     8.80789e-005             180        0.0419801               0     9.42701e-005               0                           8.80392e-005             180      0.000111656               0     9.42518e-005               0        0.0419793               0       0.0749999955           0.0394465        -13.0429      0.000193207        -28.6791     8.60595e-005         70.0056      0.000106558        -80.3171                            0.000193175        -28.6827         0.039446        -13.0437      0.000106588        -80.2888     8.60951e-005         69.9513                           8.60757e-005         69.9988      0.000106582        -80.3272        0.0394461        -13.0419      0.000193195        -28.6752                            0.000106596        -80.3031      8.6086e-005         69.9705       0.00019319        -28.6779        0.0394467        -13.0423       0.149999991            0.0343958        -22.6939      0.000239256        -3.93789     5.10449e-005        -177.505      0.000121496        0.965584                            0.000239219        -3.93766        0.0343964         -22.694       0.00012157        0.961136     5.09615e-005        -177.497                           5.10392e-005        -177.503      0.000121511        0.965866        0.0343962        -22.6947      0.000239235        -3.93823                            0.000121562         0.96405     5.09984e-005        -177.493      0.000239232        -3.93833        0.0343972         -22.694       0.224999994            0.0299796        -27.6324      0.000161031         22.3635     8.78685e-005        -68.1676       0.00010533         82.8833                            0.000161004         22.3691        0.0299786        -27.6333      0.000105341         82.8535     8.79148e-005        -68.1169                           8.78884e-005        -68.1626      0.000105358         82.8922        0.0299787        -27.6337      0.000161021         22.3588                            0.000105368          82.869     8.79103e-005        -68.1415      0.000161014         22.3621        0.0299785        -27.6333       [...]      I can't imagine how you could read that file e.g. for plotting s21 (second line, first row of each matrix). You can try as an option               each nth point=4      but then your value for your x axis (the frequency) vanishs. Did someone manage my problem before? Thanks in advance!


title: Create a document cover using style class

text: I'm wanting to create a latex class called `projeto.cls` that should create this report cover image below, which has the following headers and footer for all reports generated. The fields defined entrie tags should be variable (define) `\title {}`, `\subtitle{}`, `\description{}`,`\revision{} (xx)`, `\date{}`, `\description2{}`, `\author{}` produced by the file `.tex`. The table appears only on 1st page. I already have the following source code: `.cls` and `.tex` File: projeto.cls               %File: Projeto.cls     \ProvidesClass{proposta_projeto}[2014/06/03 v0.1 Proposta de Projeto class]          \LoadClass[11pt,a4paper]{article} % Font size and paper type          %\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry} % Document margins     \usepackage[margin=2cm,headheight=5\baselineskip,headsep=1\baselineskip,includehead]{geometry}          \usepackage[brazilian]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}               \usepackage{tabularx}     \usepackage{graphicx}     \usepackage{multirow}     \usepackage{lastpage}     \usepackage[iso, english]{isodate}                         %----------------------------------------------------------------------------------------     %   HEADINGS COMMANDS: Commands for printing name and address     %----------------------------------------------------------------------------------------          \def\projeto#1{\def\@projeto{#1}} % Defines the \projeto command to set name     %\def\@projeto {} % Sets \@projeto to empty by default          \newcommand{\printprojeto}{\@projeto}          %----------------------------------------------------------------------------------------     %   PRINT THE HEADING LINES     %----------------------------------------------------------------------------------------                    %% set up and width for the tabularx environment to expand and fit to.     \newlength{\headerwidth}     \setlength{\headerwidth}{\textwidth}     \newsavebox{\myheader}     \begin{lrbox}{\myheader}%         \begin{minipage}[b]{\headerwidth}         \renewcommand{\arraystretch}{1.29}%         \begin{tabularx}{\headerwidth}{|@{}c@{}|X|c|c|}\hline             \multirow{2}{*}{\includegraphics[scale=0.75]{image1.png}} & \centering\normalsize{Método de Instrução} & \small{DOC Nº} & \small{MI.02} \\ \cline{2-4}     & \centering\large{PROPOSTA DE PROJETO} & \small{Versão:} & \small{06} \\ \hline          \multirow{2}{*}{\includegraphics[scale=0.75]{image2.png}} & \multicolumn{1}{c|}{\multirow{2}{*}{\textbf{\LARGE{ >  }}}} & \multicolumn{2}{c|}{\small{Data: 08/10/13}} \\ \cline{3-4}     & & \multicolumn{2}{c|}{\small{Página: \thepage\ de \pageref{LastPage} }} \\ \hline         \end{tabularx}              \end{minipage}     \end{lrbox}     %% Setting up the header     \usepackage{fancyhdr}     \pagestyle{fancy}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt}     \lhead{}     \chead{\usebox{\myheader}}     \rhead{}     \lfoot{\small{RG-481}}     \cfoot{\small{Revisão: 01}}     \rfoot{\small{Data: \shortromandate\today}}      And the file 'projeto.tex'               \documentclass{projeto} % Use the custom projeto.cls style     \title{>}     \subtitle{>}     \description{>}     \revision{>}     \description2{>}     \date{>}     \author{>}     \begin{document}     \section{Section 1}     \section{Section 2}     \end{document}      How could I create this document? ![Template ](http://i.stack.imgur.com/3cixh.png)


title: Can't find the documentation for \tikzstyle or `+=` operator in tikz

text: I've noticed in a number of examples that the following is occasionally used when working with `tikz`:               \tikzstyle{every picture}+=[remember picture]      When I search the documentation I can't find anything about this particular syntax. I can find no documentation for either `\tikzstyle` or `+=`. I'm guessing that this means something like               \tikzset{every picture/.append style={remember picture}}      Could someone explain what this syntax is about and where I can find documentation for it?


title: Why does the name of the authors occur in uppercase in my references?

text: I want references in my article to be Surname, Forename{Initials}. Also with only the first letter of the surnames to be caps lock. I am running these commands but I do not get the desired format. How should I do it?               \documentclass[11pt, a4 paper]{article}     \usepackage{amsmath}     \usepackage{graphicx}     %\usepackage[british]{babel}     \usepackage[english]{babel}     %\usepackage{natbib}     \bibliographystyle{plaindin}      ![enter image description here](http://i.stack.imgur.com/EwsTH.jpg)


title: Styles in standard LaTeX distribution

text: A conference I'm submitting to wants any styles (and packages I assume) that are not in the 'standard latex distribution' to be included with the .tex source. What are the standard styles and packages?


title: how to make mindmap fit on frame?

text: I'm in the process of creating a Beamer presentation using some tikz concepts, how do I make a mindmap fit to the slide? My code is as follows:               \documentclass[T]{beamer}          \definecolor{links}{HTML}{2A1B81}     \hypersetup{colorlinks,linkcolor=,urlcolor=red}          \usetheme{Frankfurt}     \usecolortheme{dolphin}     \usefonttheme{structuresmallcapsserif}     \usefonttheme{serif}     \usepackage{multicol}     \usepackage{graphicx}     \usepackage{xcolor}     \usepackage{caption}     \usepackage{hyperref}     \usepackage{tikz}     \usetikzlibrary{mindmap}     \usepackage[graphics,tightpage]{preview}          \setbeamertemplate{button}{\tikz     \node[     inner xsep=10pt,     draw=structure!80,     fill=structure!50,     rounded corners=4pt]  {\Large\insertbuttontext};}               \title{Presentation Template}     \setbeamercolor{author}{fg=yellow}     \author{asdfasdfa}     \setbeamercolor{date}{fg=yellow}     \date\today                    \begin{document}          \begin{frame}     \titlepage     \end{frame}          \section*{Outline}               \begin{frame}     \begin{multicols}{2}     \frametitle{Contents}     \tableofcontents     \end{multicols}      \end{frame}          \section{Timeline}     \begin{frame}     \frametitle{ Timeline}     \centering          \end{frame}          \begin{frame}     \begin{tikzpicture}     \path[mindmap,concept color=blue, text=white, transform shape]     node[concept]{bicycle}         child[grow=0, concept color=red]{node[concept]{road bicycle}             child[grow=30]{node[concept]{time trial bicycle}}             child[grow=30]{node[concept]{road racing bicycle}}}         child[grow=60, concept color=black]{node[concept]{mountain bicycle}}             child[grow=120, concept color=orange]{node[concept]{tandem bicycle}};     \end{tikzpicture}     \end{frame}     \end{document}


title: What's the difference in behavior between ifx and ifthenelse?

text: Why does the `\ifx` test give a different answer than `\ifthenelse` in the following simple example? testclass.cls (without the head and tail):               \newcommand{\isempty}{\@empty}          \ifthenelse{\equal{\isempty}{\@empty}}        {\newcommand{\foo}{ifthen says yes}}        {\newcommand{\foo}{ifthen says no}}     \ifx\isempty\@empty        \newcommand{\foofoo}{ifx says yes}        \else\newcommand{\foofoo}{ifx says no}     \fi      Now if I call commands `\foo` and `\foofoo` in a .tex file, I'll get the following output: ifthen says yes ifx says no Why? Where's the difference? I thought that the following two would be equivalent:               \ifx\macroA\macroB\DoSomething\else\DoSomethingElse\fi     \ifthenelse{\equal{\macroA}{\macroB}}{\DoSomething}{\DoSomethingElse}      Are there some expansion problems?


title: Display problems when plotting large datasets (unwanted spikes)

text: I have a problem concerning `pgfplots` and large datasets. I have the following minimal example:               \documentclass{scrartcl}          \usepackage{tikz}     \usepackage{pgf}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \pgfplotsset{plot coordinates/math parser=false}     \usetikzlibrary{plotmarks}     \usepgfplotslibrary{external}     \tikzexternalize          \begin{document}          %\tikzset{external/system call={lualatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"}}     \tikzset{external/remake next}     \input{lw05.tikz}          \tikzset{external/remake next}     \input{lw01.tikz}          \tikzset{external/remake next}     \input{lw005.tikz}          \end{document}      The three files `lwXX.tikz` can be found here (also the `.tex`-file and the result). Since I know there are problems concerning the memory in LaTeX, I use the externalization option and the parameter `-buf-size=5000000` while compiling the file (I also tried to compile the figures using LuaLaTeX which can be done by uncommenting the comment, but the output did not change) My problem now is, there are unwanted spikes in the output. I illustrated it in a picture, which can be seen here ![here](http://www.uni-ulm.de/~pqa62/pgfplots_large_dataset/illustration.png). The three figures are plotted using different line widths in the TikZ file. If you zoom in in the `.pdf`-file you will see what I mean. Also in the second pictures some spikes will then appear. Does anybody know, where these errors come from and how to avoid them? I can hardly reduce the size of the dataset, since the underlying data is a sinusoidal function multiplied with some other function and one period of the sinusoidal is already only made up of approximately 14 datapoints. I don't want to reduce this number any further.


title: how to make mindmap nodes links within presentation

text: Wanting to make secondary and tertiary nodes links to other frames within presentation. A great example would be linking the mountain bicycle node to the frame titled "mountain bicycle". The code I have constructed is as follows:               \documentclass{beamer}           \usetheme{Frankfurt}      \usecolortheme{dolphin}      \usefonttheme{structuresmallcapsserif}      \usefonttheme{serif}      \usepackage{tikz}      \usetikzlibrary{mindmap}           \begin{document}           \begin{frame}          \makebox[\textwidth][c]{%            \begin{tikzpicture}             \path[mindmap,concept color=blue, text=white, transform shape]             node[concept,scale=0.8]{bicycle}             child[grow=0, concept color=red]{node[concept]{road bicycle}                 child[grow=30]{node[concept]{time trial bicycle}}                 child[grow=90]{node[concept]{road racing bicycle}}}             child[grow=60, concept color=black]{node[concept]{mountain bicycle}}                 child[grow=120, concept color=orange]{node[concept]{tandem bicycle}};         \end{tikzpicture}         }      \end{frame}              \begin{frame}        \frametitle{mountain bicycle}        \begin{itemize}        \centering        \begin{Large}        \item \hyperlink{PARTICIPANTS}{\beamergotobutton{Participants}}         \item \hyperlink{PRESENTERS}{\beamergotobutton{Presenters}}        \item \hyperlink{KEYNOTESPEAKER}{\beamergotobutton{Keynote Speaker}}        \item \hyperlink{SPONSOR}{\beamergotobutton{Sponsors}}        \end{Large}          \end{itemize}        \end{frame}     \end{document}


title: $327.68 Knuth reward check

text: I know something about $327.68 Knuth reward check. However, I cannot find a comprehensive list of people rewarded for finding errors in TeX. I do know, that among them is Bogusław Jackowski (Twice, for TeX and METAFONT. In late 70's in Poland an annual salary was about the value of the "big" check). Marek Ryćko and Piotr Strzelczyk obtained "small" checks. Any piece of information about other people, any source (well... not Wikipedia), any additional information would be very interesting for me. Some of SX users are winners of Knuth's checks. Their knowledge may be invaluable.


title: Bibliography LaTeX

text: I have got a little problem with Bibliography in LaTeX. I'm using `report` style of document. When I use `\begin{thebibliography}` it will automatically add item to Table of Contents and type `\bibname` like a section in last chapter, not like a new chapter. I have to type `\bibname` like a single chapter and add the bibliography to the Table of Contents like a chapter, not like a section of last chapter. Do you have any ideas how to solve it?


title: Vertical Chinese text that contains characters in a "CJK fallback family font"

text: I am having trouble with vertical (i.e. rotated) Chinese text that contains characters in two different fonts. Rare characters requiring the "CJK fallback family font" are not displaying in the typeset output, although the font (PMingLiU-ExtB) is correctly installed and these characters do display in other applications, and even in LaTeX with the `xeCJK` package but without character-rotation. I've tried another font containing one of the characters in question, with the same result. Here is a MWE, incorporating code from http://tex.stackexchange.com/a/38585/3935 and http://tex.stackexchange.com/a/16087/3935:               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode          \documentclass{article}          \usepackage{xeCJK}     \newfontlanguage{Chinese}{CHN}     \setCJKmainfont[Script=CJK,Language=Chinese,Vertical=RotatedGlyphs]{SimSun}     \setCJKfallbackfamilyfont{rm}{PMingLiU-ExtB}          \newcommand*\CJKmovesymbol[1]{\raise.35em\hbox{#1}}     \newcommand*\CJKmove{\punctstyle{plain}% do not modify the spacing between punctuations       \let\CJKsymbol\CJKmovesymbol       \let\CJKpunctsymbol\CJKsymbol}          \usepackage{everypage}     \AddEverypageHook{\CJKmove\special{pdf: put @thispage <</Rotate 90>>}}          \begin{document}     　　秋夜思          旅夢何時盡、征途望每賖、晩秋淮上水、新月楚人家          嘯空山近、鴻飛極浦斜、明朝南岸去、言折桂枝花     \end{document}      The character that produces the problem is (U+24814), the first character in the third "paragraph" of the text. I am using               revision:    28816     cat-version: 3.1.2      of `xeCJK` on OS 10.6.8 and 10.8.3; my LaTeX client is TeXShop v. 2.47. If I change               \usepackage{xeCJK}      to               \usepackage[fallback]{xeCJK}[2011/05/01] % ver 2.3.19      following http://tex.stackexchange.com/a/16087/3935, the character in question displays correctly but the text is no longer rotated. Is there a way to get both effects simultaneously? * * * **Added, 20130426** : Using               \usepackage[AutoFallBack=true]{xeCJK}     \newfontlanguage{Chinese}{CHN}     \setCJKmainfont[Script=CJK,Language=Chinese,Vertical=RotatedGlyphs]{SimSun}     \setCJKfallbackfamilyfont{rm}[Script=CJK,Language=Chinese,Vertical=RotatedGlyphs]{MingLiU-ExtB}      as in @Leo Liu's answer produces overstriking of the graphs and 嘯: ![enter image description here](http://i.stack.imgur.com/wcGAk.png)