title: How to remove the top horizontal bar in fancyhdr?

text: When using `fancyhdr`, how do you remove the top horizontal rule? I do not want a header at all, just a footer. This is what I do now:               \documentclass{article}     \usepackage{fancyhdr}     \pagestyle{fancy}          \lfoot{text}     \cfoot{text 2}     \rfoot{text 3}          \begin{document}     Foo Bar     \end{document}


title: Remove underline of header

text: I want to remove the underline of the header "NOT FOR DISTRIBUTION" in the following document:               \documentclass[conference,letterpaper]{IEEEtran}          \setlength{\headheight}{12pt}     \setlength{\headsep}{5mm}          \usepackage{fancyhdr}     \usepackage{lipsum}% just to generate text for the example          \pagestyle{fancy}     \fancyhf{}     \fancyhead[C]{NOT FOR DISTRIBUTION}     \makeatletter     \let\ps@IEEEtitlepagestyle\ps@fancy     \makeatother          \begin{document}     \title{The Title}     \author{Michael Shell \and Homer Simpson}          \maketitle          \lipsum[1-20]          \end{document}      Any suggestions on how to fix this?


title: How to remove header bar in fancyhdr's \pagestyle{fancy}

text: > **Possible Duplicate:**   >  How to remove the top horizontal bar in fancyhdr? I am working on my report and found one example.               \documentclass{report}          \usepackage{fancyhdr}     \renewcommand*\familydefault{\sfdefault}      \usepackage[T1]{fontenc}     \pagestyle{fancy}     \fancyfoot{}     \fancyfoot[LE,LO]{MY TEXT}     \renewcommand{\footrulewidth}{0.4pt}          \begin{document}     Foo Bar     \end{document}      This adds footer and header both. But I need only a footer, no header. How can I add footer only (no bar in header)?


title: Use Feynmf and glossaries together

text: I am using the package glossaries for a collection of terms, definitions, explanations to various subjects loosely related to my phd thesis. In some entries I also want to include feynman diagrams that I currently create with feynmp. The problem is, that in order to generate the diagrams I need to put the code into a               \begin{fmffile}{name}     \end{fmffile}      environment that, in order to be compiled by latex, has to be inside of the               \begin{document}     \end{document}      environment. However, all entries for glossaries are in the preamble **before** the `\begin{document}` . With fmfkeep and fmfreuse I can still generate the feynman diagrams within the document and then refer to them in the entries in glossaries. But this means that I have some extra pages where I have all Feynman diagrams - at the moment I need to do this in order to have the Feynman diagrams in an entry... In order to write the diagrams directly at the place of the entry I would have to create and use a new *.mp file in each entry in the glossary. With dozens of entries and much more diagrams it will be way to complicated since it means that each time I run latex I would have to mpost each *.mp file individually... As far as I understand feynmf safes the diagrams as eps files. Is there any way that I can convert the diagrams to eps and then include them with \includegraphics ? In that case I would probably loose all labels, since they are stored in a different file. Are there other possibilities such that I don't have these extra pages with Feynman diagrams? Are there other packages that are more compatible with glossaries that I can use to generate the Feynman Diagrams? Or are there other packages to generate a glossary that are more compatible with feynmf? But I suppose with feynmf and glossaries I already have the two most widely used packages for these purposes? Thank you in advance already for any advice :) Ok, here is the MWE. I added a bit of text and hope it is not disturbing but rather explaining the problem I have...               \documentclass{article}     \usepackage{feynmp}     \listfiles     \usepackage{datatool}     \usepackage{glossaries}     \makeglossaries               \longnewglossaryentry{minimal}{name={minimal}}{I would like to have a Feynman diagram here :) \\          I can either open fmffile here \\~\\          \begin{fmffile}{minimal01}     \begin{fmfgraph*}(125,100)     \fmfkeep{directphoton01}\fmfleftn{l}{2} \fmfrightn{r}{2}     \fmf{fermion,tension=1.5}{v1,l1}\fmf{fermion,tension=1.5}{l2,v2}\fmf{fermion,tension=2}{v2,v1}      \fmf{phantom,tension=1.5}{v1,r1}      \fmf{photon,tension=1.5}{r2,v2}\fmflabel{\(\bar{q}\)}{l1} \fmflabel{\(q\)}{l2} \fmflabel{\(\gamma\)}{r2} \fmflabel{\(g\)}{r1}      \fmfdotn{v}{2}     \fmffreeze \fmf{plain,tension=4}{v1,m1}\fmf{gluon,tension=0.5}{m1,m2}\fmf{plain,tension=4}{m2,r1}      \end{fmfgraph*}     \end{fmffile}           ~\\~\\ and then close it here which means one fmffile for each entry... \\               Or I can use fmfreuse{directphoton02} which allows me to have all diagrams in one fmffile, but generates that additional diagram above header Glossary, which is part of the maintext, since glossary is put at the end of the document...\\~\\          \fmfreuse{directphoton02}     }          \begin{document}          \begin{fmffile}{minimal02}     \begin{fmfgraph*}(125,100)     \fmfkeep{directphoton02}\fmfleftn{l}{2} \fmfrightn{r}{2}     \fmf{fermion,tension=1.5}{v1,l1}\fmf{fermion,tension=1.5}{l2,v2}\fmf{fermion,tension=2}{v2,v1}      \fmf{phantom,tension=1.5}{v1,r1}      \fmf{photon,tension=1.5}{r2,v2}\fmflabel{\(\bar{q}\)}{l1} \fmflabel{\(q\)}{l2} \fmflabel{\(\gamma\)}{r2} \fmflabel{\(g\)}{r1}      \fmfdotn{v}{2}     \fmffreeze \fmf{plain,tension=4}{v1,m1}\fmf{gluon,tension=0.5}{m1,m2}\fmf{plain,tension=4}{m2,r1}      \end{fmfgraph*}     \end{fmffile}           \glsaddall%\makeglossary\makeglossary     \printglossaries     \end{document}


title: like \rightleftarrows from amssymb, but with hook and twohead, respectively

text: I would like to have a symbol that looks like the symbol \rightleftarrows from amssymb, but I want the morphism to the right to be a twoheadrightarrow and the morphism to the left to be a hookleftarrow. Can you help me?


title: Sans-serif font different in output

text: I am currently using Lyx. I was typing with sans-serif font and the interface shows it like the Arial font. However, the output is different; it's still sans-serif but the letters have more spaces in between. How can I make the output like the Arial font in Microsoft?


title: How to set section numbers to use whole numbers, rather than decimals, in ConTeXt?

text: I have a document like this:               \setuphead[part][placehead=yes]          \definestructureresetset[default][1, 0, 1, 0][1]     \setuphead[sectionresetset=default]          \starttext         \part{Animals}             \chapter{Birds}                 \section{Parrot}                 \section{Pelican}                     \subsection{Australian Pelican}                     \subsection{Great White Pelican}             \chapter{Crabs}                 \section{Spider Crab}         \part{Trees}             \chapter{Coniferous}                 \section{Pine}     \stoptext      After compiling, the sectioning appears like this:               1 Animals         1.1 Birds             1.1.2 Pelican                 1.1.2.1 Australian Pelican      I need to change the numbering so that it uses whole numbers and no decimals, like this:               1 Animals         1 Birds             2 Pelican                 1 Australian Pelican      I checked the ConTeXt Garden's instructions for `\definehead`, `\setuphead`, and `\setupheads`, but could not find a solution. How can I set section numbers for all titles to use whole numbers, rather than decimals?


title: 1.a numbering of subfigures within a figure without a caption

text: I am using the `subcaption` package and write a caption for each of my subfigures. In order to get a reference to "Fig. 1a", I also have to write a "big caption" below all subfigures. But I don't want to write this "big caption" always. Anyway, I want my figure to have the label "Fig. 1a". Example:               \documentclass[a4paper]{article}     \usepackage{mwe}     \usepackage{subcaption}     \begin{document}     \begin{figure}[tbp]         \begin{subfigure}[t]{0.48\linewidth}             \includegraphics[width=1\textwidth]{example-image-a}             \caption{An Elephant.}             \label{fig:elephant}         \end{subfigure}         \begin{subfigure}[t]{0.48\linewidth}             \includegraphics[width=1\textwidth]{example-image-b}             \caption{A Mouse.}             \label{fig:mouse}         \end{subfigure}     \caption{"Big caption". How can I avoid this one and get the label "Fig. 1a"?}     \end{figure}     \end{document}      (My question is not about the format of the number (e.g. "1a" or "1.a") but about "how do I get the "1" in my "1a"-reference)


title: Custom font sizes inside section titles

text: I need to change the size of some text within a section title:               \documentclass{article}     \begin{document}         \section{This text is normal {\Large This text is large}}     \end{document}      This works, however, in some situations, I am using an extra-small font. For example:               \def\Tiny{ \font\Tinyfont = cmr10 at 5pt \relax  \Tinyfont}      When `\Tiny` is used within the section title, it produces: > Undefined control sequence   * How can I get the `\Tiny` letters to appear in the section titles   * As the section title text is normally larger than regular text, but `\Tiny` letters also appear throughout the document, how can I ensure that the `Tiny` text within the section title is proportionally small (i.e. slightly larger than the `\Tiny` text within the rest of the document).


title: Converting Text to Title Case

text: is there a way to automatically format a text in title-case? Something like typing:               \somemagiccommand{the table, the ass and the stick}      which would yield:               The Table, the Ass and the Stick      I have searched the internet but have found nothing that would make this more efficient than doing the casing manually...


title: How to mimic BibTeX change.case$ built-in command?

text: > **Possible Duplicate:**   >  Capitalizing strings ignoring closed class words Neither `bibtex.exe` nor `bibtex8.exe` can handle unicoded database properly. Newrtheless some peoplу (and me too) do use these routines to compile list of references. Example of such use provides `unicode-gost*.bst` styles from the package GOST. These styles avoid using `change.case$` primitive since it produces wrong output for Cyrillic alphabets. Could someone direct me how to eleborate LaTeX command that would convert               "Some Paper Title" to "Some paper title"      and               "Some Paper Title on {LaTeX}" to "Some paper title on {LaTeX}"      ?


title: sans serif math in tables and siunitx

text: I want to know the easiest way to ensure that the content inside a tabular, including siunitx columns is set using a/the sans serif math font. The normal document is set in serif font. This approach shows some of my attempts:               \documentclass[paper=a4, fontsize=11pt]{scrartcl}     \usepackage{lmodern}     \usepackage{amsmath}     \usepackage{dcolumn}     \usepackage{siunitx}          \makeatletter      % dcolumn column     \newcolumntype{d}[1]{>{\DC@{.}{ ,}{#1}}l<{\DC@end}}     % sans serif d-column (from http://www.torsten-schuetze.de/tex/tabsatz-2004.pdf)     \newcolumntype{j}[1]{%     >{\DC@{.}{,}{#1}\mathsf\bgroup}l%     <{\egroup\DC@end}%     }     % sans serif column, including math     \newcolumntype{k}{%     >{$\mathsf\bgroup}l%     <{\egroup$}%     }     \makeatother          \begin{document}%          % table with d-columns: fails to compile     \begin{tabular}{j{4.2}d{4.2}ll}     \hline     2.3456 & 2.3456 & 2.3456 & 2.3456 \\     34.2345 & 34.2345 & 34.2345 & 34.2345 \\     56.7835 & 56.7835 & 56.7835 & 56.7835 \\     \hline     \end{tabular}          \mbox{}\vspace{1em}\\          % using siunitx commands instead     \sisetup{table-figures-integer = 2, table-figures-decimal = 4, math-rm=\mathsf}     \sffamily     \begin{tabular}{S     k     S[table-number-alignment = left]     S[table-number-alignment = right]}     \hline     {Some Values} & {Some Values} & {Some Values / \si{kg/m^2}} & {Some Values} \\     \hline     2.3456 & 2.3456 & 2.3456 & 2.3456 \\     {$\mathsf{a^2}$} & 34.2345 & 34.2345 & 34.2345 \\     56.7835 & 56.7835 & 56.7835 & 56.7835 \\     \hline     \end{tabular}          \end{document}%      The first tabular fails to compile. The second is set in sans serif except the `\si{}` command. However the code looks quite complicated. Appended is the result. ![enter image description here](http://i.stack.imgur.com/oRo16.png)


title: How to disable pagebreak on \hline in supertabular?

text: This is similar to How to disable pagebreak on \hline in longtable? but for `supertabular` or `xtab`: With `\tabularnewline\hline` I get pagebreaks (or in my case columnbreaks) _before_ the hline, i.e. the hline appears at the top of the next column. I'm using this code to make `supertabular` work inside `multicols`. How can I change this so that the hline is kept together with the row?


title: Determining which TeX Live collection a package belongs to

text: When using the TeX Live Manager or browsing CTAN, sometimes I want to know what TeX Live collection a particular package is found in. What is a convenient way to check?


title: Custom biblatex style for IET Journal (bbx)

text: I would adapt the numeric-comp style in biblatex to give the following reference/citation format sepcified by the IET Journals: Journal article > Smith, T., and Jones, M.: ‘The title of the paper’, IET Syst. Biol., 2007, > **1** , (2), pp. 1–7 Conference paper > Jones, L., and Brown, D.: ‘The title of the conference paper’. Proc. Int. > Conf. Systems Biology, Stockholm, Sweden, May 2006, pp. 1–7 Book, book chapter and manual > Hodges, A., and Smith, N.: ‘The title of the book chapter’, in Brown, S. > (Ed.): ‘Handbook of Systems Biology’ (IEE Press, 2004, 1st edn.), pp. 1–7 > > Harrison, E.A., and Abbott, C.: ‘The title of the book’ (XYZ Press, 2005, > 2nd edn. 2006) Thesis > Abbott, N.L.: ‘The title of the thesis’. PhD thesis, XYZ University, 2005 * * * but I have no idea where to start. This is what I have done so far:               \documentclass{article}          \usepackage[style=numeric-comp,sorting=none,firstinits=true,maxbibnames=999,isbn=false,doi=false]{biblatex}     \DeclareNameAlias{default}{last-first}     \DeclareFieldFormat       [article,inbook,incollection,inproceedings,patent,thesis,unpublished]       {title}{`#1'}     \DefineBibliographyStrings{english}{%     edition = {edn.}     }     \renewcommand*{\newunitpunct}{\addcomma\space}     \DeclareFieldFormat[article]{volume}{\mkbibbold{#1}}     \DeclareFieldFormat[article]{number}{\mkbibparens{#1}}     \renewbibmacro*{volume+number+eid}{%       \printfield{volume}%       \setunit*{\addcomma\space}%       \printfield{number}%       \setunit{\addcomma\space}%       \printfield{eid}}     \renewbibmacro{in:}{%       \ifentrytype{article}{%       }{%         \printtext{\bibstring{in}\intitlepunct}%       }%     }     \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @ARTICLE{zierler_linear_1959,       author = {Zierler, N.},       title = {Linear recurring sequences},       journaltitle = {J. Soc. Ind. Appl. Math.},       year={1959},       volume = {7},       number = {1},       pages = {31--48}     }     @incollection{serfling_asymptotic_2011,         address = {London},         title = {Asymptotic relative efficiency in estimation},         volume = {1},         isbn = {978-3-642-04897-5},         booktitle = {International Encyclopedia of Statistical Science},         publisher = {Springer},         author = {Serfling, Robert},         editor = {Lovric, Miodrag},         year = {2011},         pages = {68--72}     }     @PHDTHESIS{enqvist_linear_2005,       author = {Anon, B.},       title = {A PhD Thesis},       school = {\LaTeX University},       year = {1999},       location = {London}     }     @inproceedings{wong_sysid_2012,     author = {Anon, B.},     title = {Writing in \LaTeX},     eventtitle = {Some conference},     location = {Brussels, Belgium},     eventdate = {2012-07}     }     \end{filecontents}          \addbibresource{\jobname.bib}          \nocite{*}          \begin{document}          \printbibliography          \end{document}      gives > Zierler, N., ‘Linear recurring sequences’, J. Soc. Ind. Appl. Math. **7** , > (1) (1959), pp. 31–48. > > Serfling, R., ‘Asymptotic relative efficiency in estimation’, in: Interna- > tional Encyclopedia of Statistical Science, ed. by Lovric, M., vol. 1, > London: Springer, 2011, pp. 68–72. > > Anon, B., ‘A PhD Thesis’, PhD thesis, London: LATEX University, 1999. > > Anon, B., ‘Writing in LATEX’, in: Some conference (July 2012), Brussels, > Belgium. which isn't exactly right. Noticeably, lack of colons, parentheses in book publishers, etc Thank you very much in advance.


title: How to show content only on the current slide in a Beamer specification?

text: Here is a beamer frame that shows "Item 1" in the first slide, "Item 1 Item 2" in the second and only "Item 1 Item 3" in the third. How can I get the same result without having to count the items for `\uncover<2>`? I tried changing it to `\uncover<.>`, but then "Item 2" never appeared.               \documentclass[pdf]{beamer}     \begin{document}     \begin{frame}{Introduction}         \begin{itemize}             \item Item 1             \pause             \uncover<2>{\item Item 2}             \pause             \item Item 3         \end{itemize}     \end{frame}     \end{document}


title: Environment for listing personal information or similar data

text: Following good typography, what is the proper environment or LaTeX code for displaying this kind of list? > Name: > > Telephone: > > E-mail: > > Web site: The description environment never seems to look right for this kind of situation, especially when I have many such lists appearing within a document. Is there a special environment recommended for this kind of information? Note, I am not necessarily referring to data appearing in in the front-matter. This can be information within the document and need not necessarily be presenting information about the author of the document.


title: Including a .bib file with \input does not work

text: In the following simple document, the bibliography does not work :               \documentclass{article}     \usepackage[numbers]{natbib}     \usepackage{inputenc}          \inputencoding{utf8}     \begin{filecontents}{\jobname.bib}     \input{references_utf8}     \end{filecontents}     \inputencoding{latin1}          \begin{document}     \noindent     \cite[voir][chap. 12]{2009solar}     \bibliographystyle{plainnat}     \bibliography{\jobname}     \end{document}      I want to do this because my main documents are in latin-1 and the .bib file is in utf-8. The idea of using `\inputencoding` was recommended in this question : How to convert UTF-8 to latin-1 on the fly?. The file references_utf8.bib looks like this :               @book{2009solar,     address = {New Delhi},     author = {Solanki, Chetan Singh},     booktitle = {Solar Photovoltaics: Fundamentals, Technologies and Applications},     chapter = {12},     edition = {1},     isbn = {9788120337602},     pages = {478},     publisher = {Prentice-Hall of India},     title = {{Solar Photovoltaics: Fundamentals, Technologies and Applications}},     url = {http://books.google.ca/books?id=hdvYA9KsI2YC},     year = {2009}     }      But it has to be encoded in utf-8. How can I make this setup work?


title: Double square brackets

text: In many equation editors (e.g. MS Word 2007 and Daum Equation Editor), there's a double square bracket. Is there a TeX equivalent for `[[`, `((`, `))`, and `]]`?


title: How to write left aligned multi-line conclusion in inference rule?

text: This question is very similar to How to write centered multi-line conclusion in inference rule?. However, I can't figure out how to align an multi-line conclusion on the left. What am I missing? I'm using the `semantic` package to write inference rules:               \documentclass{article}     \usepackage[inference]{semantic}     \usepackage{amsmath}          \begin{document}          \inference{expr}{ \begin{aligned} This is a very long \\ expression \end{aligned} }     \inference{expr}{ \begin{gathered} This is a very long \\ expression \end{gathered} }          \end{document}      In this code, The first conclusion is aligned on the right. The second one is aligned in the middle. How can I align it on the left? Using `align` or `flalign` doesn't work and yields the following error:               ! Package amsmath Error: \begin{align} allowed only in paragraph mode.     ! Package amsmath Error: \begin{flalign} allowed only in paragraph mode.


title: Ambiguity feature in apa style for biber creating non-apa-like et al behavior

text: we are currently experiencing some issues with the ambiguity feature of apa for biblatex/biber (we use biber) in TexLive 2012. What would be correct with the ambiguity feature:               Doe J., Peters M., Kramer N., Conan B. (2012)     Doe J., Mayer M., Smith N., Walker J. (2012)          Citations in text (subsequent ones) - AS IS AND CORRECT     Doe, Peters et al (2012)     Doe, Mayer et al (2012)      But in case of different years, it shouldn't actually do this ...               Doe J., Peters M., Kramer N., Conan B. (2012)     Doe J., Mayer M., Smith N., Walker J. (2009)          Citations in text (subsequent ones) - AS IS:     Doe, Peters et al (2012)     Doe, Mayer et al (2009)          Citations in text (subsequent ones) - HOW IT SHOULD BE:     Doe et al (2012)     Doe et al (2009)      Can anyone help here? Thank you!


title: \evensidemargin & \oddsidemargin geometry package

text: how can I put this length with the `geometry` package?               \setlength{\evensidemargin}{92.58438pt}%     \setlength{\oddsidemargin}{24.38356pt}%


title: tikz picture in column disturbs other column

text: I would like a slide with two columns in which one column is text and the other is a tikz picture. The problem is that when I make one column a tikz picture, it does not allow the text to start at the top of the page but instead pushes the text below the level of the tikz picture. Any advice would be greatly appreciated. The source code that illustrates this is below:               \documentclass[10pt]{beamer}     \title{My title is quite short}     \author[My Team]{My Name}     \date{\today}     \usepackage{tikz}     \begin{document}     \begin{frame}[t]     \frametitle{My slide title -- What I want}     Both columns start from the top of the page, which is what I want.  I     just want one column to be a tikz drawing.     \begin{columns}[t]     \begin{column}{0.5\textwidth}     \begin{itemize}     \item A     \item A     \item A     \end{itemize}     \end{column}     \begin{column}{0.5\textwidth}     \begin{itemize}     \item B     \item B     \item B     \end{itemize}     \end{column}     \end{columns}     \end{frame}     \begin{frame}[t]     \frametitle{My slide title -- Not what I want}     The text column begins vertically where the tikz picture ends.     \begin{columns}[t]     \begin{column}{0.5\textwidth}     \begin{itemize}     \item A     \item A     \item A     \end{itemize}     \end{column}     \begin{column}{0.5\textwidth}     \begin{tikzpicture}     \draw (0,0) circle (1cm);     \draw (0,-2) circle (1cm);     \end{tikzpicture}     \end{column}     \end{columns}     \end{frame}     \end{document}


title: How to fit big table automatically?

text: I have this table:               \resizebox{\textwidth}{!}{%       \begin{tabular}{ l | l | l | l}         \hline         Tipus & Pot incloure com a membres: & Permisos & Es pot convertir a: \\ \hline         Universal & Comptes de qualsevol domini del bosc en el qual resideix aquest grup universal\\Els grups globals de qualsevol domini del bosc en el qual resideix aquest grup universal\\Els grups universals de qualsevol domini del bosc en el qual resideix aquest grup universal & Qualsevol domini o bosc & Domini local\\Global (sempre que no hi hagi altres grups universals com a membres) \\ \hline         Global & Comptes en el mateix domini que el grup global dels pares\\Els grups globals del mateix domini que el grup global dels pares & Els permisos de membre es poden assignar en qualsevol domini & Universal (sempre que no sigui un membre d'altres grups globals) \\ \hline         Domini local & Comptes de qualsevol domini\\Grups globals de qualsevol domini\\Grups universals de qualsevol domini\\Grups locals de domini, però només des del mateix domini que el grup local de domini principal & Els permisos dels membres es poden assignar només dins del mateix domini que el grup local de domini principal & Universal (sempre que no hi hagi altres grups locals de domini com a membres)\\         \hline       \end{tabular}     }       And I don't get the result I want: ![enter image description here](http://i.stack.imgur.com/1XRgX.png) I did a research here at stackexchange first but I'm too new for this at the moment. Thanks!


title: enumerate in multicols

text: The following image illustrates what am looking for: ![enter image description here](http://i.stack.imgur.com/hPUHC.png) Essentially I want the numbering to occur as shown above but using the `multicol` and `enumitem` package. But when I try it by using the following code:               \documentclass{article}     \usepackage{amsmath,amssymb}     \usepackage{enumitem,multicol}     \begin{document}     \begin{enumerate}     \item Evaluate each of the following if $x$ is a non-zero real number.         \begin{multicols}{2}         \begin{enumerate}[itemsep=1cm]% The item sep is my choice here.         \item $\dfrac{|x|}{x}$         \item $\dfrac{x}{|x|}$         \item $\dfrac{|-x|}{-x}$         \item $|x|-|-x|$         \end{enumerate}          \end{multicols}     \end{enumerate}     \end{document}      I get: ![enter image description here](http://i.stack.imgur.com/gPeJY.png) Essentially, I want the `(b)` to be where the `(c)` is. I know this has been done but I can't seem to find it.


title: Memoir custom title page and twocolumns.

text: Using the package memoir, I am having some trouble creating my (Oh so simple) custom title page. In the preamble, I have this:               \documentclass[medievalpage,twosides,twocolumn,pdftex,final]{memoir}      So, I get two columns for the text which is what I want. The definition I have for the title is this:               \newcommand*{\titleDS}{\begingroup     \newlength{\drop}     \drop = 0.08\textheight     \centering{         {\Huge{The Title}}\\         {\Large{A funky subtitle}}\\         \vspace*{\drop}         {by The Author}\\     }     \thispagestyle{title}     \endgroup}      Finally, in the document body, I have:               \pagestyle{empty}     \titleDS     \clearpage      What happens is that the title is centred on the left column and not in the centre. What have done wrong? I suspect it's really simple and I am just being dense.


title: Multiple ternary plots and pie charts in pgfplots

text: I'm trying to plot lots of ternary plots and pie charts. Ideally it should look smth like this: ![enter image description here](http://i.stack.imgur.com/LdJrE.png) ![enter image description here](http://i.stack.imgur.com/AwI8N.png) The pie-chart (ternary plot) on the left-hand side serves as an explanation of what is happening, whereas on the right-hand side are the actual plots with data. I need to plot pie-charts (ternary plots) for 72 benchmark, so in total 72 pie-charts and 72 ternary plots. The current approach that I'm using implies a lot of code duplication and manual adjustment. Is there a smarter way of organizing it? Smth akin to grouplots? Moreover, my knowledge in pgfplots is very little, therefore the code needs a lot of polishing. In particular, I've no clue how to change font size in titles in pie-charts and how to move titles closer to the charts in ternary plots. Here's the MWE:               \documentclass{article}     \usepackage{pgfplots, pgfplotstable}     \usepgfplotslibrary{ternary, units}     \usepackage{tikz}     \begin{document}     \newcommand{\legend}[2][]{      \begin{scope}[#1]      \path         \foreach \n/\s in {#2}             {                   ++(0,-10pt) node[\s,legend box] {} +(5pt,0) node[legend label] {\n}             }     ;     \end{scope}     }     \tikzstyle{chart}=[     legend label/.style={font={\scriptsize},anchor=west,align=left},     legend box/.style={rectangle, draw, minimum size=5pt},     axis/.style={black,semithick,->},     axis label/.style={anchor=east,font={\tiny}},     ]     \tikzstyle{pie chart}=[     chart,     slice/.style={line cap=round, line join=round, very thick,draw=white},     pie title/.style={font={\bf}},     slice type/.style 2 args={         ##1/.style={fill=##2},         values of ##1/.style={}     }     ]     \pgfdeclarelayer{background}     \pgfdeclarelayer{foreground}     \pgfsetlayers{background,main,foreground}     \newcommand{\pie}[3][]{     \begin{scope}[#1]     \pgfmathsetmacro{\curA}{90}     \pgfmathsetmacro{\r}{1}     \def\c{(0,0)}     \node[pie title] at (90:1.3) {#2};     \foreach \v/\s in{#3}{         \pgfmathsetmacro{\deltaA}{\v/100*360}         \pgfmathsetmacro{\nextA}{\curA + \deltaA}         \pgfmathsetmacro{\midA}{(\curA+\nextA)/2}              \path[slice,\s] \c             -- +(\curA:\r)             arc (\curA:\nextA:\r)             -- cycle;         \pgfmathsetmacro{\d}{max((\deltaA * -(.4/50) + 1) , .5)}              \begin{pgfonlayer}{foreground}         \path \c -- node[pos=\d,pie values,values of \s]{$\v\%$} +(\midA:\r);         \end{pgfonlayer}              \global\let\curA\nextA     }     \end{scope}     }     \begin{figure}     \begin{minipage}{0.3\linewidth}     \begin{tikzpicture}     [     pie chart,     slice type={inlined}{lightgray},     slice type={noninlined}{darkgray},     pie values/.style={font={\tiny}},     scale=1.5     ]     \pie{benchmark}{41/inlined,13/noninlined}     \legend[shift={(-1cm,-1cm)}]{{Inlined}/inlined, {Not inlined}/noninlined}          \end{tikzpicture}     \end{minipage}     \begin{minipage}{0.12\linewidth}     \begin{tikzpicture}     [     pie chart,     slice type={inlined}{lightgray},     slice type={noninlined}{darkgray},     pie values/.style={font={\tiny}},     scale=0.7     ]     \pie{benchmark1}{14/inlined,43/noninlined}          \end{tikzpicture}     \end{minipage}     \begin{minipage}{0.2\linewidth}     \begin{tikzpicture}     [     pie chart,     slice type={inlined}{lightgray},     slice type={noninlined}{darkgray},     pie values/.style={font={\tiny}},     scale=0.7     ]     \pie{benchmark2}{34/inlined,9/noninlined}     \end{tikzpicture}     \end{minipage}     \begin{minipage}{0.12\linewidth}     \begin{tikzpicture}     [     pie chart,     slice type={inlined}{lightgray},     slice type={noninlined}{darkgray},     pie values/.style={font={\tiny}},     scale=0.7     ]     \pie{benchmark3}{14/inlined,43/noninlined}     \end{tikzpicture}     \end{minipage}     \begin{minipage}{0.12\linewidth}     \begin{tikzpicture}     [     pie chart,     slice type={inlined}{lightgray},     slice type={noninlined}{darkgray},     pie values/.style={font={\tiny}},     scale=0.7     ]     \pie{benchmark4}{34/inlined,9/noninlined}           \end{tikzpicture}      \end{minipage}      \end{figure}          \begin{figure}     \begin{minipage}{0.4\linewidth}     \pgfplotsset{width=5cm}     \begin{tikzpicture}     \begin{ternaryaxis}[      xmin=0,     xmax=100,     ymin=0,     ymax=100,     zmin=0,     zmax=100,      font=\scriptsize,     xlabel=frequency,     ylabel=size,     zlabel=monomorphism,     minor tick num=3,     grid=both,      title={\textbf{benchmark}},     cycle list={{fill=darkgray, mark = triangle*},      {fill=lightgray, mark=*}},     legend cell align=left,     legend entries={Inlined, Not inlined},     legend style={mark size=2.6pt, at={(0,1)},     font=\scriptsize,     anchor=south,at={(axis description cs:0.5,-0.8)}},     mark size=2.6pt,     ]     \addplot3+[only marks]       coordinates {      (20, 20, 40)      };      \addplot3+[only marks]       coordinates {      (10, 80, 10)      };     \end{ternaryaxis}     \end{tikzpicture}     \end{minipage}     \pgfplotsset{width=3.3cm}     \begin{minipage}{0.1\linewidth}     \begin{tikzpicture}      \begin{ternaryaxis}[     ticks=none,      xmin=0,      xmax=100,      ymin=0,      ymax=100,      zmin=0,      zmax=100,       mark size=2pt,      font=\tiny,      minor tick num=0,      cycle list={{fill=darkgray, mark = triangle*},       {fill=lightgray, mark=*}},      title={\bf{benchmark1}},      grid=both,      minor tick num=2,     ]     \addplot3+[only marks]       coordinates {      (20, 40, 20)      };      \addplot3+[only marks]       coordinates {      (10, 10, 80)      };     \end{ternaryaxis}     \end{tikzpicture}     \end{minipage}      \pgfplotsset{width=3.3cm}       \begin{minipage}{0.1\linewidth}       \begin{tikzpicture}       \begin{ternaryaxis}[       ticks=none,      xmin=0,     xmax=100,     ymin=0,     ymax=100,     zmin=0,     zmax=100,      mark size=2pt,     font=\tiny,      minor tick num=2,      grid=both,      cycle list={{fill=darkgray, mark = triangle*},       {fill=lightgray, mark=*}},      title={\bf{benchmark2}}      ]     \addplot3+[only marks]       coordinates {      (15, 45, 40)      };      \addplot3+[only marks]       coordinates {      (33, 33, 33)      };     \end{ternaryaxis}     \end{tikzpicture}     \end{minipage}     \begin{minipage}{0.1\linewidth}     \begin{tikzpicture}     \begin{ternaryaxis}[     ticks=none,      xmin=0,      xmax=100,      ymin=0,      ymax=100,      zmin=0,      zmax=100,       mark size=2pt,      font=\tiny,      minor tick num=2,      grid=both,      cycle list={{fill=darkgray, mark = triangle*},      {fill=lightgray, mark=*}},     title={\bf{benchmark3}}     ]     \addplot3+[only marks]       coordinates {      (15, 45, 40)      };      \addplot3+[only marks]       coordinates {      (33, 33, 33)      };      \end{ternaryaxis}      \end{tikzpicture}     \end{minipage}     \begin{minipage}{0.1\linewidth}     \begin{tikzpicture}     \begin{ternaryaxis}[      ticks=none,     xmin=0,     xmax=100,     ymin=0,     ymax=100,     zmin=0,     zmax=100,      mark size=2pt,     font=\tiny,     minor tick num=2,     grid=both,     cycle list={{fill=darkgray, mark = triangle*},      {fill=lightgray, mark=*}},     title={\bf{benchmark4}}     ]     \addplot3+[only marks]       coordinates {      (15, 45, 40)      };      \addplot3+[only marks]       coordinates {      (33, 33, 33)      };     \end{ternaryaxis}     \end{tikzpicture}     \end{minipage}     \end{figure}     \end{document}


title: How to pass parameters in a class file to different packages?

text: I'm writing a new class file that is based on `book`, and thought of making it available both in an English and in a Dutch version. Easiest to do seemed passing the arguments, so I constructed following class file :               ...     \ProvidesClass{UGentCourse}[2011/07/28 v1.0 UGentCourse]          \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}     \ProcessOptions \relax     \LoadClass[12pt,a4paper,twoside]{book}          \RequirePackage{babel} %francais, polish, spanish, ...     ...      Which I believed would allow me to do :               \documentclass[dutch]{UGentCourse}      Strange thing, it doesn't work completely. If I switch it from dutch to English (or back), I get an error :               Package babel Error: You haven't loaded the option english (dutch) yet.      If I rerun the file, the error is gone. I have a faint idea about what is going on, but not really a clue of how I can prevent this from happening. All help appreciated.


title: Can the standalone package work with sections?

text: While I was reading a thread on LaTeX workflows, I came across a comment in http://tex.stackexchange.com/a/22433/32782 which seemed to indicate that there are more than one person who can/could use the standalone package for book chapters. Usually people would use `\includeonly` rather than the standalone package for dividing a document into different tex files and activating just one tex file, but the idea of using standalone intrigued me and I thought I should give it a try, starting with an article with sections first, but my example doesn't seem to work. Here is my example: The main tex file, `flying-animals.tex`:               \documentclass{article}     \usepackage{standalone}     \begin{document}     \input{dragons}     \input{birds}     \input{superman}     \end{document}      And a tex file for one section, `dragons.tex`:               \documentclass{standalone}     \begin{document}     \section{Theories of dragons}     Being dragons.     \subsection{Theory of angry dragons}     Being angry dragons.     \subsection{Theory of tiny dragons}     Being tiny dragons.     \end{document}      When I compile `dragons.tex`, I get the following error.               LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.3 \section                 {Theories of dragons}      Is it possible to make standalone work with sections?


title: How to use paths with space in usepackage?

text: I need to use an absolute path for my package. One of the folder I use contains a space. I cannot change the name of this folder. **So, how can I use paths containing the space character in`usepackage` ?** * * * EDIT I tried to put my path between double quotes (`"`) but then, Latex tries to open the `"<my path>".sty` !! I am using `pdftex` (I don't know if this info is relevant).


title: How to install TeX Live on Android tablet 4.2.2?

text: I'm reading this How to install TeX on android phones? post and I can't install TeX Live on Android 4.2.2 and I have `tl4a-2013-06-10.tar.xz`, `TL4A.apk`, `tl4a-2013-06-18.tar.xz`, and `texmf.cnf` on my tablet.


title: Single quotes in double quotes

text: I want to write "''" (to denote the empty string). However in LaTeX, when I try to enter `"''"`, TexnicCenter replaces it with ```''''` , which displays as “”” (first pointing left, second two pointing right). How can I fix this?


title: A beamer fade out-fade in effect?

text: In some of my slides, especially the technical ones, I would like to keep the bottom of the previous slide, preferably somewhat faded, as the bottom of the next slide as I start introducing new material so that readers could keep in sight the flow of ideas and notations. In a sense, like when one writes on the blackboard. Ànd erases one line at a time... For instance, something like an automated version of the following...               \documentclass[xcolor=dvipsnames,professionalfonts]{beamer}     \usepackage{xcolor}     \begin{document}     \begin{frame}     This is an important theorem due to Euler:          \pause     \bigskip     \begin{block}{Theorem}     If $n$ and $a$ are coprime positive integers, then     $$         a^{\varphi (n)} \equiv 1 \pmod{n}     $$     where $\varphi(n)$ is Euler's totient function     \end{block}     \end{frame}     \begin{frame}     There is a direct proof: Let $R = \{x_1, x_2, ..., x_{\varphi(n)}\}$ be a reduced residue system     (mod $n$) and let $a$ be any integer coprime to $n$. The proof hinges on the fundamental fact that     multiplication by $a$ permutes the $x_i$:          \only<1>{     \textcolor{lightgray}{\begin{block}{Theorem}     \textcolor{lightgray}{If $n$ and $a$ are coprime positive integers, then     $$         a^{\varphi (n)} \equiv 1 \pmod{n}     $$     where $\varphi(n)$ is Euler's totient function}     \end{block}}}     \only<2>{     in other words if $ax_j ≡ ax_k (\pmod n)$ then $j = k$. That is, the sets $R$ and $aR = \{ax_1, ax_2, ..., ax_{\varpi(n)}\}$,     considered as sets of congruence classes $(\pmod n)$, are identical     so the product of all the numbers in $R$ is congruent $(\pmod n)$ to the product of all the numbers in $aR$:     $$         \prod_{i=1}^{\varphi(n)} x_i \equiv \prod_{i=1}^{\varphi(n)}         ax_i \equiv a^{\varphi(n)}\prod_{i=1}^{\varphi(n)} x_i \pmod{n},     $$     and using the cancellation law to cancel the $x_i$'s gives Euler's theorem:     $$         a^{\varphi(n)}\equiv 1 \pmod{n}.     $$}     \end{frame}     \end{document}


title: tocloft removes content title formatting

text: I am using code from this answer http://tex.stackexchange.com/a/93792/19817 to make horizontal lines above and under chapter title.               \documentclass{book}      \usepackage{titlesec}          \titleformat{\chapter}[display]       {\bfseries\huge}       {\filleft\Large\chaptertitlename~\thechapter}       {3ex}       {\titlerule\vspace{1.5ex}\filright}       [\vspace{1ex}\titlerule]          \begin{document}          \chapter{Test Numbered Chapter}          \end{document}      However, I wanted to remove space above content title and used code from this answer http://tex.stackexchange.com/a/46863/19817.               \usepackage{tocloft}      \setlength{\cftbeforetoctitleskip}{-3em}      `tocloft` does what I want, but it also removes horizontal lines above "content". My question is: how to use `tocloft` and keep chapter title formating?


title: Is it possible to have connecting loop lines (like algorithm2e) in algorithmic?

text: I am using the `algorithmic` package to typeset an algorithm. I would like to have connecting lines between the beginning and end of a loop or conditional like in the `algorithm2e` package. Is there an easy way to accomplish this, or am I better off switching to `algorithm2e`?


title: How to use dotted line to make indentation clearer in algorithmicx?

text: I wish to indicate clearly when a block starts and ends with "enclosing lines" in addition to the indentation. I understand that I can do it with `algorithm2e` like so               \begin{algorithm}[H]      \SetLine % For v3.9      %\SetAlgoLined % For previous releases [?]      \KwData{this text}      \KwResult{how to write algorithm with \LaTeX2e }      initialization\;      \While{not at end of this document}{       read current\;       \eIf{understand}{        go to next section\;        current section becomes this one\;        }{        go back to the beginning of current section\;       }      }      \caption{How to write algorithms}     \end{algorithm}      rendering as ![enter image description here](http://i.stack.imgur.com/Xuhdy.png) However now, I am **using`algorithmicx`. How may I achieve the same effect?**


title: How to place a footnote inside a float environment

text: How can one declare a footnote within a float environment, such that it appears on the same page with the float (regularly on the page, not inside the float)? Is there any trick or additional package apart from the widely used workaround               % Let 'floatenv' be any float environment such as figure or table     \begin{floatenv}         [...] \footnotemark [...]     \end{floatenv}          \footnotetext{<text>}      which already fails if the float is put on a dedicated float-page (`{floatenv}[p]`)?


title: What are the less known TeX like macro-packages?

text: ConTeXt and Latex are well known. And I'm aware of different engines to process those e.g. XeTeX, pdfTeX, LuaTeX. But on this meta question discussion came up about TeX, plain-TeX, initex. Can someone please tell me the quick difference between those? Are there any other meta-packages? And what is bare minimum TeX (the one everything else is based upon)? And which one of these are "frozen" in featureset and bugs.


title: Alignment in Siunitx with Comma separators

text: How can I right align the following two columns, just specifying that there will be at most 5 integer digits and never any decimals? I can't seem to get the right combination of options. I can align it properly, but I lose all the commas for some reason.               \documentclass{article}          \usepackage{siunitx}          \begin{document}     \begin{tabular}{r     S[table-format = 5.0,group-digits=true,group-separator={,},table-number-alignment = right,input-ignore={,},input-decimal-markers={.},group-digits=true,group-separator={\,}]     S[table-format = 5.0,group-separator={,},table-number-alignment = right,input-ignore={,},input-decimal-markers={.},group-digits=true,group-separator={\,}]     }     siunitx: &\num{19000}                &\num{19,000} \\     siunitx: &\num{7,000}                &\num{7,000} \\     siunitx: &\num{900}                &\num{900} \\     siunitx: &\num{90}                &\num{90} \\     \end{tabular}     \end{document}


title: Odd date output from biblatex-apa

text: I am using biblatex-apa for my references and I have this enty in my .bib file:               @ONLINE{habitat,         TITLE = {Mission, Vision \& Values},         URL = {http://www.tchabitat.org/missionvisionvalues},         ORGANIZATION = {Twin Cities Habitat for Humanity website},         URLDATE = {2011-09-15}     }      The output shows the date of the reference as 'Retrieved 15 September 2011 from...'. Shouldn't the date be like the english date format, September 15th, 2011? EDIT: This is my preamble               \documentclass[letterpaper]{apa6e}     \usepackage{url}     \usepackage[margin=1in]{geometry}     \usepackage[american]{babel}     \usepackage{csquotes}     \usepackage[style=apa]{biblatex}     \DeclareLanguageMapping{american}{american-apa}     \bibliography{libros}     \defbibheading{bibliography}{\section*{\normalfont\refname}}


title: Is it normal for BibTeX to replace similar author names with "------"?

text: In my `.bib` file, I have two entries with exactly the same author names:               @article{Seshadrinathan2010A-Subjective-St,         Author = {K. Seshadrinathan and R. Soundararajan and A. C. Bovik and L. K. Cormack},     ....          @article{Seshadrinathan2009Study-of-Subjec,         Author = {K. Seshadrinathan and R. Soundararajan and A. C. Bovik and L. K. Cormack},     ....      When cited after each other, and typeset with the `IEEEtran` bibliography style, the `.bbl` file reads:               \bibitem{Seshadrinathan2010A-Subjective-St}     K.~Seshadrinathan, R.~Soundararajan, A.~C. Bovik, and L.~K. Cormack, ``A       subjective study to evaluate video quality assessment algorithms,''       \emph{SPIE Proceedings Human Vision and Electronic Imaging}, 2010.          \bibitem{Seshadrinathan2009Study-of-Subjec}     ------, ``Study of subjective and objective quality assessment of video,''       \emph{IEEE Transactions on Image Processing}, 2009.      As you can see, the author names have been replaced with `\------`. It looks like this in the final PDF: ![enter image description here](http://i.stack.imgur.com/n0gWD.png) Is this normal behavior?


title: Consecutive references in BibTeX

text: > **Possible Duplicate:**   >  Is it normal for BibTeX to replace similar author names with "------"? I have three consecutive BibTeX references where the authors list is same in all three. When I compile BibtTeX only keeps the authors list in the first reference. In the consecutive references, the authors list is ------ ( a long dash). Is there a way to stop this automatic behavior?


title: Bibliography entry wrong

text: I have a bibliography entry which shows up in my .bib file as                   @article{Weber1885,         author = {Weber, H F},         journal = {Sitzungsberichte der Akademie der Wissenschaften zu Berlin},         pages = {809--815},         title = {{Das W\"{a}rmeleitungsverm\"{o}gen der tropfbaren Fl\"{u}ssigkeiten}},         year = {1885}         }      However when I compile this the entry shows the authors name as ----- instead of H F Weber (as shown in the picture). I have no idea what to do, however, it does seem to be linked to another article in my .bib file which is:                 @article{Weber1880,       author = {Weber, H F},       journal = {Annalen der Physik und Chemie},       number = {5},       title = {{Untersuchungen \"{u}ber die W\"{a}rmeleitung in Fl\"{u}ssigkeiten}},       volume = {10},       year = {1880}       }      In the .bbl file the same reference shows up as:                \bibitem{Weber1885a}        ------, ``{Das W\"{a}rmeleitungsverm\"{o}gen der tropfbaren Fl\"{u}ssigkeiten},'' \emph{Sitzungsberichte der Akademie der Wissenschaften zu Berlin}, vol.~1, pp. 809--815, 1885.      Hence why I see the result I see in the bibliography... Has anyone come across this or have a solution? Cheers ![Bibliography problem](http://i.stack.imgur.com/Xb6qv.png)


title: Problem about bibdesk 1.5.10

text: > **Possible Duplicate:**   >  Is it normal for BibTeX to replace similar author names with “------”? I have bibdesk that I created my reference list. I use texmaker on my mac. In my `.tex` file I am using them like this:               \ensuremath{\cite{Dahlstedt2009Thoughts}}     \ensuremath{\cite{dahlstedt2005DescAndCrea}}      When there are two publications of the same author, her/his name is not repeated but replaced by "——": > [1] P. Dahlstedt, Thoughts on Creative Evolution: A Meta generative Approach > to Composition, Standard, February 2009. > > [2] ——, “Defining spaces of potential art”, IT University of Göteborg and > Chalmers University of Technology Faculty of applied information technology, > Anders Carlssons Gata 9, SE 417 55 Göteborg Sweden, Tech. Rep., 2005. How can I prevent the replacement of the name with "——"?


title: Why does adding a middlename omit authors in References list

text: I cite a specific paper for my publication. The problem is when I add the middle initial of one author, the entire author list gets omitted from the references list, as shown in the image. I omitted the middle initial in the second example. ![enter image description here](http://i.stack.imgur.com/2WfyS.png) Any clues as to why?


title: problems in references with `IEEEtran`

text: @ARTICLE{garfield2006history,       author = {E. Garfield},       title = {The history and meaning of the journal impact factor},       journal = {Jama},       year = {2006},       volume = {295},       pages = {90--93},       number = {1},       publisher = {American Medical Association}     }      What's the problem with the bibtex below? Why the author name is not shown in the generated reference list? And I am using IEEEtran.cls.               [2] ——, “The history and meaning of the journal impact factor,” Jama, vol. 295, no. 1, pp. 90–93, 2006.


title: Name of authors in the references is replaced by a dashed line

text: > **Possible Duplicate:**   >  Is it normal for BibTeX to replace similar author names with "------"? I am compiling a latex file and the some papers in the references section do not have the authors' name after compilation. Please see reference [7] in the image below. Its bibtex entry is as below               @book{Welford1968_Book,     Address = {London},     Author = {Alan Traviss Welford},     Publisher = {Methuen},     Title = {Fundamentals of Skill},     Year = {1968}}      ![enter image description here](http://i.stack.imgur.com/dCJwV.png) does any body know why this happens?


title: multiple author listing bibtex results in _ _ in place of authors names

text: > **Possible Duplicate:**   >  Is it normal for BibTeX to replace similar author names with “------”? I had to cite two papers of same group of authors in Latex:               @inproceedings{Lai_etal_ICRA11_RGBD_dataset,         author    = {Kevin Lai and                   Liefeng Bo and                   Xiaofeng Ren and                   Dieter Fox},       title     = {A large-scale hierarchical multi-view RGB-D object dataset},       booktitle = {ICRA},       year      = {2011},       pages     = {1817-1824},       ee        = {http://dx.doi.org/10.1109/ICRA.2011.5980382},       crossref  = {DBLP:conf/icra/2011},       bibsource = {DBLP, http://dblp.uni-trier.de}       }                    @inproceedings{lai_etal_icra12,        title = {Detection-based Object Labeling in 3D Scenes},        author    = {Kevin Lai and                     Liefeng Bo and                   Xiaofeng Ren and                   Dieter Fox},        booktitle = {ICRA},        year = {2012},       pdf =  {http://www.cs.washington.edu/homes/kevinlai/publications/lai_icra12.pdf}      }      It appears as: [4] K. Lai, L. Bo, X. Ren, and D. Fox, “A large-scale hierarchical multi-view rgb-d object dataset,” in ICRA, 2011, pp. 1817–1824. [5] ——, “Detection-based object labeling in 3d scenes,” in ICRA, 2012. I am not getting author names for the second paper. I am using IEEEtran.bst for bibtex. What should I do to get the proper author names?


title: How can i convert the tabular into longtable

text: I have this report and i can be as long as 40 pages. My current setting is cutting it on one page only. I am very new to latex and i am just copy pasting from internet. If you guys can fix that. This is the working copy of that https://www.writelatex.com/174546bmvnqt               \subsection{Current Students}     \begin{table}[H]       \caption{Current Objects }       \centering       \begin{tabular}{*{4}{|p{4cm}}{|p{7cm}}}         \hline\hline         \rowcolor{orange}           Proponent                     &Statutory Process        &Student Name                 &Student Region          &Subjects\\         \hline\hline         Nevertheless, the natural ... &EP Act Environmental ... &With this clarification, ... &[uNorthwest Transition] &           \begin{tabular}{*{1}{|p{0.5cm}}{|p{6cm}}}             \hline\hline             \rowcolor{orange}             \# &Subject Type      \\             \hline             \rowcolor{white}             1 &Research           \\\hline             2 &Restoration        \\\hline             3 &Research           \\\hline             4 &Land aquisition    \\\hline             5 &Onground management\\\hline           \end{tabular}\\         \hline         Of course, the ...            &EP Act Clearing ...      &Of course, the ...           &[uGibson Desert]        &           \begin{tabular}{*{1}{|p{0.5cm}}{|p{6cm}}}             \hline\hline             \rowcolor{orange}             \# &Subject Type      \\             \hline             \rowcolor{white}             1 &Education          \\\hline             2 &Land aquisition    \\\hline             3 &Subject funds      \\\hline             4 &Other              \\\hline             5 &Restoration        \\\hline             6 &Recovery plans     \\\hline             7 &Subject funds      \\\hline           \end{tabular}       \end{tabular}     \end{table}


title: Setting caption/rule width in Algorithm2e algs

text: Many of the algorithms I have with the `algorithm2e` package do not extend across the page width. If I use the package's `boxruled` or `ruled` options, the result is a box or rule that extends the pagewidth with a lot of whitespace on the right side. I have changed the width of the algorithm itself using `\setlength{\algomargin}{2in}` but this does not have an effect on the width of the rules. The effect is to 'center' the algorithm code, but leave the environment itself the width of the page. Is there a way to change that without having to squeeze it into a `minipage`? UPDATE: Minimal example:               \documentclass[10pt]{article}     \usepackage[ruled]{algorithm2e}     \begin{document}     \setlength{\algomargin}{2in}     \begin{algorithm}[t]     \caption{NaiveSelect}\label{algo:naive-option}     Some alg step \;     \end{algorithm}     \end{document}


title: Mypackage on Macbook Pro

text: I created a `mypackage.sty` file using all the packages, new-commands, other command shortcuts. Instead of loading packages I just load `mypackage` which mostly contains everything for my needs. I recently switched from a Linux machine to a Macbook. Where should I keep the mypackage files in OS X?


title: What is a good way to draw Dynkin diagrams in LaTeX?

text: I'm about to start writing something up which includes a fair number of Dynkin diagrams, and I can think of several ways of going about it:   * Just draw the darn things in, _e.g.,_ InkScape, and include the graphics in the standard way.   * Hack them together using the `picture` environment or tikz, as this person suggests.   * Abuse the feynmf package, possibly with defining new kinds of "propagator" lines. Anybody have experience with this sort of task?


title: TikZ and Gnuplot: Put all *.gunplot and *.table in a customized folder

text: My question is an extension from the question "bodegraph on Ubuntu 10.04" Based on the answers of that question, we can either put all generated *.gnuplot in the directory `gnuplot/\jobname/`, or in the current directory with the tex file by using the accepted answer of that question. My questions are: how to manipulate the command `gnuplot def/.append style={prefix={}}` to define a customized folder for all those generated *.gnuplot files? And a further question is: is there any tutorial talking about the configurations after `\begin{tikzpicture}`? Take this figure as an example. First of all, it would generate 16 extra files with .gnuplot or .table. I'd like to put them in a separate folder. Furthermore, for the configuration after `\begin{tikzpicture}`:               \begin{tikzpicture}[>=latex',         ref lines/.style={thin, blue!60},         ref points/.style={circle, black, opacity=0.7, fill, minimum size= 3pt, inner sep=0},         every node/.style={font=\small},         bode lines/.style={very thick, blue},         Gclabel/.style={text=blue},         xscale=12/3]      I can guess their intension, but I don't know what the syntax rule is.


title: Inlage 4 configuration - Windows 8.1 - very slow In generating the PDF

text: In Windows, I really like the Inlage 4 editor. But it takes a very long time to generate the PDF, even for a small document. Even in the shell, the `pdflatex` command is very slow. I feel my system is hanged. How do I configure Inlage to make it faster?


title: Expressing a y-only shift with `axis direction cs` with symbolic x coords

text: I have a vertical bar chart with error bars. I want to put a star just above or below the error bar where the results are significant. I achieved this using the very neat trick provided in this answer. Here is a minimal example: ![vertical bar chart with error bars](http://i.stack.imgur.com/HxEN2.png) It works, but my problem is that, as opposed to what was the case in the original question, my x coordinates are symbolic. This results in error messages like this:               ! Package pgfplots Error: Sorry, the input coordinate `0' has not been defined      with 'symbolic x coords={α,β,γ,δ}... Maybe it has been misspelled?.      My real plots have a lot more stuff than that, but here is the code for producing the example above:               \documentclass{article}      \usepackage[no-math]{fontspec}     \setmainfont{Linux Libertine O}     \usepackage[libertine]{newtxmath}     \usepackage{pgfplots}     \usepackage{filecontents}          \begin{document}            \begin{filecontents}{data1.dat}         X Y Y_error Label         α -0.06 0.33 \\         β -0.51 0.19 $\star$         γ -0.80 0.19 $\star$         δ 0.54 0.27 \\       \end{filecontents}            \begin{filecontents}{data2.dat}         X Y Y_error Label         α -0.04 0.33 \\         β -0.85 0.17 $\star$         γ 0.89 0.15 $\star$         δ 0.36 0.31 $\star$ \\       \end{filecontents}            \begin{figure}         \begin{tikzpicture}            \begin{axis}[             enlargelimits=0.15,              symbolic x coords={α,β,γ,δ},             xtick=data,             ybar,             point meta=explicit symbolic,             nodes near coords,             nodes near coords align={vertical},             visualization depends on=abs(y)/y*(0.1+\thisrow{Y_error}) \as \myshift,             every node near coord/.append style={               anchor=center,shift={(axis direction cs:0,\myshift)},font={\bfseries},             }]             \addplot+[error bars/.cd, y dir=both, y explicit]               table[x=X, y=Y, y error=Y_error, meta=Label] {data1.dat};             \addplot+[error bars/.cd, y dir=both, y explicit]               table[x=X, y=Y, y error=Y_error, meta=Label] {data2.dat};           \end{axis}          \end{tikzpicture}       \end{figure}          \end{document}      The heart of the problem seems to be with `shift={(axis direction cs:0,\myshift)}`. Having `0` for the x component doesn't make sense for symbolic coords, but I haven't found a way to express a "stand alone y shift". Am I missing something obvious? It's not a show stopper, but I get tons of error messages and it's preventing me from tikzexternalizing those plots.


title: Equation number in an array

text: I want to put the equation number at the right for the following code:               \[      \log{y_{i}} =      \left\{       \begin{array}{l l}         y_{2i}^{*} & \quad \textrm{if $y_{2i}^{*}\succ0$}\\         0 & \quad \textrm{otherwise}       \end{array}          \right.         \]      Any idea?


title: Tikz: using functions for calculaton x, y parts of the coordinate in the stream of path operations

text: Is it possible to write something like this?               \draw[dotted] (pi*0.5,sin(pi*0.5)) -- ++(10,0);      I would like to use the trigonometric functions when entering x, y-parts of the coordinates. I got Package Tikz error. It is incorrect syntax, or this method is not possible?


title: Two letter variables with upright Delta

text: I'm using `newtxmath` with the `slanted` and `libertine` option in order to get standard slanted greek letters in mathmode as well as the option for upright greek letters. My question concerns a common two letter variable consisting of a captial Delta and a variable (either latin or greek). It is used in physics to denote the finite increase of a quantity (cf. IUPAP Red Book, Sec. 5.2). The problem when simply typing `\upDelta x` it can lead to results that look confusing: ![Meaning of expression unclear](http://i.stack.imgur.com/EQ2iI.png) The Problem is that the spacing between all symbols is equal and it is not clear that the Delta belongs to the following variable. My attempt now is to remove the space after the Delta that denotes hidden multiplication. In the accepted answer to a similar question (Two letter variable names) the use of `\mathit{}` was recommended:               \mathit{NA} \neq NA = N \cdot A      ![enter image description here](http://i.stack.imgur.com/hP2AS.png) This, however, doesn't work if greek letters are involved. The second answer says removing the space with `hspace{-0.1em}`. This works for a lot of letters but in some cases the Delta clashes with the variable. Furthermore, I don't know if ´0.1em` is the right amount of space to be removed, for me this choice seems rather arbitrary. This MWE illustrates the problem at hand:               \documentclass{scrartcl}          \usepackage{mathtools}     \usepackage{libertine}     \usepackage[slantedGreek,libertine]{newtxmath}          \newcommand{\updel}[1]{\upDelta\hspace{-0.1em}#1}     \newcommand{\sldel}[1]{\Delta\hspace{-0.1em}#1}          \begin{document}     Doesn't work:     \begin{equation}       \mathit{\upDelta\Phi} \quad \mathit{\upDelta A}\text{.}     \end{equation}     Works only with \(\Phi\) but not with \(A\):     \begin{equation}      \updel{\Phi} \quad \updel{A}\text{.}     \end{equation}     With slanted \(\Delta\):     \begin{equation}      \sldel{\Phi} \quad \sldel{A}\text{.}     \end{equation}          \end{document}      ![enter image description here](http://i.stack.imgur.com/z4eob.png) A different approach would be to add spaces before and after `\upDelta x` but I couldn't say how much space is appropriate.


title: \edef in LaTeX 3?

text: Is there a version of `\DeclareDocumentCommand` (in LaTeX 3) which performs like `\edef`? I.e. where the argument is evaluated at the time of definition as opposed to the time the macro is called? For example               \ExplSyntaxOn     \fp_zero_new:N {\fpX}        \fp_set:Nn {\fpX} {6}        \DeclareDocumentCommand { \dX } {} {\fp_to_decimal:N{\fpX}}          \fp_set:Nn{\fpX} {12}          \dX     \ExplSyntaxOff      prints 12               \ExplSyntaxOn     \fp_zero_new:N {\fpX}        \fp_set:Nn {\fpX} {6}        \edef\dX{\fp_to_decimal:N{\fpX}}          \fp_set:Nn{\fpX} {12}          \dX     \ExplSyntaxOff      prints 6 and I would like \dX to expand to 6


title: How to create a list of articles including the references in each?

text: I want to create a list of articles and the references included in each article. I tried the following Create a list of references using the \nocite{bibtexkey}. In the bibtex file I have entries with keyword=publications, in an individual entry I have in addendum the command \printbibliography There was a similar question answered earlier (Bibliography with subbibliographies with biblatex) This requires creation of a custom field "usera" which has a list of the bibkeys. Is it possible to use keyword eg.referencesinarticle1, referencesinarticle2 etc to define the contents of the subbibliographies following article1, or article2. OR pass a command to print the subbibliography in the addendum field in the bib file listing the keyword to be used to create the subbibliography. Compiling results in just the original entry being listed in bibliography. The MWE follows:               \documentclass[11pt,letterpaper,english]{scrbook}     \usepackage[colorlinks=true]{hyperref}     \usepackage[style=chem-acs,hyperref=true,babel=hyphen,doi=true,notes=true,language=false]{biblatex}     \ExecuteBibliographyOptions{%       citetracker=true,sorting=none,alldates=long,dateabbrev=false,%       articletitle=true,maxcitenames=1}       \AtEveryBibitem{\clearlist{language}}      \usepackage{filecontents}            \begin{filecontents*}{\jobname.bib}     @Article{Benfield2003,       Title                    = {Changing trends in pediatric transplantation: 2001 Annual Report of the North American Pediatric Renal Transplant Cooperative Study.},       Author                   = {Benfield, Mark R. and McDonald, Ruth A. and Bartosh, Sharon and Ho, P. L. and Harmon, William},       Journal                  = {Pediatr Transplant},       Language                 = {eng},        Pages                    = {321--335},       Volume                   = {7},       Year                     = {2003},       Month                    = {Aug},       Number                   = {4},       Keyword                  = {publication},       Addendum                 = {\printbibliography[keyword=Benfield2004],title=Reference}       }     @Article{Benfield2004,       Title                    = {Changing trends in pediatric transplantation: 2001 Annual Report of the North American Pediatric Renal Transplant Cooperative Study.},       Author                   = {Benfield, Mark R. and McDonald, Ruth A. and Bartosh, Sharon and Ho, P. L. and Harmon, William},       Journal                  = {Pediatr Transplant},       Language                 = {eng},        Pages                    = {321--335},       Volume                   = {7},       Year                     = {2004},       Month                    = {Aug},       Number                   = {4},       Keyword                  = {Benfield2004}      }     \end{filecontents*}     \addbibresource{\jobname.bib}               \begin{document}               The first citation.\nocite{Benfield2003}          \printbibliography      \end{document}


title: How to define a title page

text: I am very new to LaTeX. Now I am trying to define the cover page of my document. It currently consists of the title and a single picture. I have tried               \begin{titlepage}     \maketitle     \begin{figure}     \includegraphics[height=100mm]{../images/dragon.jpg}     \end{figure}     \end{titlepage}      But this still does not place the image and title on the same page. Moreover, I would like to define a set of objects to belong to the cover page and they to be resized and positioned as deemed fit. That is, I wouldn't like to care about absolute sizes of pictures. How can I define a set of objects, that compose the cover page?


title: Speed problems beamer presentation (post-compilation)

text: I am running kubuntu 14.04 and pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian). When including images (jpg,eps,png) into a beamer presentation via `\includegraphics[]{}`, I encountered delays of several seconds when loading the slide during the presentation. This delay occured in all sort of pdf viewers and enviromnents (windows, gnome, kde). Moreover, the delay increased even further when putting the `\includegraphics[]{}` command into a tikzpicture via a node. However, if I just click once backwards and forwards trough the whole presentation, everything runs smoothly. Since I won't be able to do this before the talk, I will have to exclude all the images or find the reason for the delay and eliminate it. Has anyone an idea what the cause for this delay is.


title: Centering images

text: I made my images in Ipe. But there are some not centered: ![enter image description here](http://i.stack.imgur.com/DOAZA.png) But, there are others centered: ![enter image description here](http://i.stack.imgur.com/wNMFj.png) I use the same code for both (just changing, of course, the files names):               \begin{center}       \begin{minipage}{\linewidth}         \centering         \includegraphics[scale=1]{m5c5f7}       \end{minipage}     \end{center}      (it's .eps file). What should I do to change it? I also tried to put the 1st image centered in Ipe, but it didn't work. Another thing that I tried to do it is to write `\hspace{6cm}\includegraphics[scale=1]{m5c5f7}`, but it didn't work either. Thanks :)


title: How should I convert my beamer slides to PowerPoint according to these odd specifications?

text: I am working with a program at my university that will videorecord my lectures, take my slides, and bundle them together into a movie to be put on the web, iTunesU, etc. They have asked me to produce PowerPoint slides at the standard (standard for PPT, that is) 10" by 7.5" size with a 1" margin on the top and a 2" margin on the bottom. This is to align with other logo elements put on the screen later and to allow for subtitles. I have a workflow but I'm asking if there might be a better one. Producing PowerPoint is not going to be a big problem for me. I can use PDF2Keynote, then open in Keynote and save as PowerPoint. That might even be AppleScriptable, hm... Instead of coercing `beamer` to create margins on my slides, I am thinking about using `pgfpages` to rescale the slide's page size and place it on the physical page with the requested margins. Then the version that I put on the projector in the classroom would not use `pgfpages` and wouldn't have the margins (why would it need them anyway?) When I sent a proof-of-concept to the program coordinators they asked if I could make the left and right margins smaller. The answer is no without changing the aspect ratio of the slide. With the top and bottom margins so constrained and a 4:3 aspect ratio of the logical slide, the left and right margins have to be 2". But if I produce slides in a 16:9 ratio, scale them and place them on the page with 1" margin at the top and 2" margin at the bottom, the left and right margins will be 1". So that all works out. I'm just slightly worried it will be suboptimal in class because the projector is still 4:3 and I will have to show letterboxed slides. Is there any part of this process that I could do a better way? I had thought about using `beamerposter` to set the paper size to 20.32cm by 11.43cm, then scaling all the fonts up. This might look a bit better than scaling 16cm by 9cm PDFs up to that size. But screwing with the paper size is strongly discouraged by beamer, so I don't know how much extra work that's going to cause.


title: Multiple graphics.cfg?

text: I'm using tex-live on a Ubuntu machine. I got a customized graphics.cfg file (configuration file for the graphix package) that I'd like to use as default on my system. I've tried to locate the graphics.cfg used on my system:               locate graphics.cfg      but I got many results:               /etc/texmf/tex/latex/config/graphics.cfg     /usr/share/doc/texlive-doc/latex/latex-graphics-companion/inputs/graphics.cfg     /usr/share/doc/texlive-doc-en/latex/latex-graphics-companion/inputs/graphics.cfg     /usr/share/texlive-base/graphics.cfg      Which file should I substitute with the desired one? Thanks for the help P.s. I know that I might modify the one in my local tree, but I'm writing a tutorial and would like to write a section explaining how to modify it system- wide and user-wide.


title: Big mess with my LaTeX code: I want the curvy integral back!

text: The truth is that, up to now, I have used a template that I created long ago to write my lecture notes. All seems OK, but the only thing that's been bothering me lately is that the integral sign in my equations is not curved (as it should), but it appears rigid and vertical, just like the left integral in this picture: ![Enter image description here](http://i.stack.imgur.com/JiMoM.png) I really don't know what package I'm missing (or what package I'm importing that does this). I've read several manuals, but can't find the solution to my problem :-(. The packages that I import before the `\begin{document}` are:               \documentclass[12pt]{article}     \usepackage{amssymb,amsmath,amsthm,mathabx,wrapfig}      \usepackage[spanish]{babel} % I'm writing lecture notes in spanish!     \usepackage[utf8x]{inputenc}      \usepackage[margin=1.25in]{geometry}     \usepackage{graphics,graphicx,ctable,booktabs}     \usepackage{ccaption}     \usepackage{fancyhdr}      How do I fix this problem?


title: image { } problem

text: \def \mic {\unit{\micro\meter}}          \begin{figure}[h]          \includegraphics[scale=0.8]{C:/Users/21_12_test10}          \caption[6 nozzles working in parallel at 40V with 20~\mic drop spacing.]{6 nozzles working in parallel at 40V with 20~\mic drop spacing.\newline     top row images: line widths of 158 - 170 - 160 - 173~\mic ;\newline bottom row images: uniform spacings of 109 - 71 - 74~\mic}          \label{IJ_2_8}          \end{figure}      I other image with similar syntax in the same folder work completely correct, but with this one I always get:               ! Missing } inserted.     <inserted text>     }     l.1399 ...e widths of 158 - 170 - 160 - 173~\mic }     ; \newline bottom row imag...     I've inserted something that you may have forgotten.     (See the <inserted text> above.)     With luck, this will get me unwedged. But if you     really didn't forget anything, try typing `2' now; then     my insertion and my current dilemma will both disappear.     ! Missing } inserted.     <inserted text>     }      I really do not know whats meant by "try typing 2 now"? where do I type this?


title: Updated AMA.bst file?

text: Dear LaTeX/BibTeX gurus, I have one final hurdle to overcome to satisfy my university's thesis editors: proper bibliography formatting. Throughout the entire process I simply declared `\bibliographystyle{ama}` and of course included the most updated ama.bst file I can find (http://www.tex.ac.uk/tex- archive/biblio/bibtex/contrib/misc/ama.bst) in the working directory. I hadn't really scrutinized the bibliography, but the thesis editor pointed out that author names are not being abbreviated and article titles are not using proper capitalization (i.e., capitalizing only the first letter of the title, in general). Instructions at the top of the `ama.bst` file provide an example that suggests the file should handle those requirements, but there is also a note that the present version does not work in BibTeX 0.98i. My current version is 0.99d, so I assume `ama.bst` "simply" needs updated. :) Has anyone else come across an updated `ama.bst` file or know how to fix it? Thanks for your help!


title: How do I install TikZ into my MiKTeX

text: How do I install the TikZ package to my current MiKTeX?


title: How to redefine or patch the '\newcommand' command?

text: ## The Problem There are several packages I would like to write which require me to redefine the `\newcommand` (`\renewcommand`, etc.) command so I can track or change the commands that authors subsequently define. But I have no idea how to go about it. My naive attempts so far have failed. Probably because I am still very weak at the TeX level. I'm surprised that I couldn't find more than vague hints towards this concept. It feels like such an obvious thing to do. ## Motivation A simple usecase, and the first package I plan write, is to ensure the following: that using `\newcommand` to define a command - say: `\cmd` - that has already been defined does not immediately generate an error. `\cmd` would simply be in a state of conflict. Subsequently trying to expand `\cmd` would then generate an error (since it's ambiguous which of the two definitions you want). The conflict could be resolved by subsequently redefining `\cmd` using `\renewcommand`, after which `\cmd` can once again safely be expanded. Example:               \newcommand{\cmd}{FIRST}   %     \cmd                       % outputs FIRST     \newcommand{\cmd}{SECOND}  % no problem yet     \cmd                       % error: expanding ambiguous command     \renewcommand{\cmd}{THIRD} %     \cmd                       % outputs THIRD      This could, for example, be used to mediate conflicts between packages (that use `\newcommand`). Of course, this concept is still quite weak (for example, what to do if two packages independently use `\renewcommand` on the same command?). But it is enough to serve as a usecase for my question. After I learn more about this, I plan to exercise more fine-grained control. ## Pseudo Code Solution It feels like I have to do something like this (ignoring the optional argument for now):               \let\old@newcommand\newcommand     \MetaRenewCommand{\newcommand}{         \ifdefined#1             \old@newcommand{#1}{                 \PackageError{lazyfail}{Expanding ambiguous command \protect #1}             }         \else             \old@newcommand{#1}{#3}         \fi     }      Of course, there are many things wrong with this code. There is no `\MetaRenewCommand` and I still have to handle the optional argument of `\newcommand`. So, how do I start? It feels like it must be possible, as `\newcommand` and friends are not primitives of LaTeX, but defined in terms of lower level commands. ## Further Motivation Here's another use-case I have in mind for this. When including a package, I would like to ignore all commands it provides except for a small list which I specify:               \usepackagefor[\Lightning]{marvosym}      Here I am loading the `marvosym` package, but only to use `\Ligntning`. I choose this example because the `marvosym` `\CheckedBox` command conflicts with the one in the `llncs` class. I already routinely specify the commands I plan to use a package for with a comment, but it would be nice to actually enforce that.


title: (Why) did the Gyre project fork the URW fonts rather than just extending them?

text: _As I understand it:_ During the 1980s, the URW++ foundry created clones of the PostScript Core Font Set and gave those clones the following names:               ╔════════════════════════╤══════════════════════╗     ║ Original typeface name │ URW++ clone name     ║     ╟────────────────────────┼──────────────────────╢     ║ ITC Avant Garde Gothic │ URW Gothic L         ║     ║ ITC Bookman            │ URW Bookman L        ║     ║ Courier                │ Nimbus Mono L        ║     ║ Helvetica              │ Nimbus Sans L        ║     ║ New Century Schoolbook │ Century Schoolbook L ║     ║ Palatino               │ URW Palladio L       ║     ║ Symbol                 │ Standard Symbols     ║     ║ Times                  │ Nimbus Roman No9 L   ║     ║ ITC Zapf Chancery      │ URW Chancery L       ║     ║ ITC Zapf Dingbats      │ Dingbats             ║     ╚════════════════════════╧══════════════════════╝      Those URW++ clones were subsequently re-licensed in 1996 as Type 1 fonts for Ghostscript under the GPL and AGFPL (and in 2009 under the LPPL). In 2006, the TeX Gyre project was announced, which extended several of the URW++ clones and also gave them new names (thereby effectively forking them):               ╔════════════════════════╤══════════════════════╤═══════════════════╗     ║ Original typeface name │ URW++ clone name     │ Gyre fork name    ║     ╟────────────────────────┼──────────────────────┼───────────────────╢     ║ ITC Avant Garde Gothic │ URW Gothic L         │ TeX Gyre Adventor ║     ║ ITC Bookman            │ URW Bookman L        │ TeX Gyre Bonum    ║     ║ Courier                │ Nimbus Mono L        │ TeX Gyre Cursor   ║     ║ Helvetica              │ Nimbus Sans L        │ TeX Gyre Heros    ║     ║ New Century Schoolbook │ Century Schoolbook L │ TeX Gyre Schola   ║     ║ Palatino               │ URW Palladio L       │ TeX Gyre Pagella  ║     ║ Symbol                 │ Standard Symbols     │                   ║     ║ Times                  │ Nimbus Roman No9 L   │ TeX Gyre Termes   ║     ║ ITC Zapf Chancery      │ URW Chancery L       │ TeX Gyre Chorus   ║     ║ ITC Zapf Dingbats      │ Dingbats             │                   ║     ╚════════════════════════╧══════════════════════╧═══════════════════╝      To explain their decision to use new names for their extended versions of the URW++ clones, the Gyre project leaders said: > Unfortunatelly[sic], the original Adobe names cannot be retained due to > copyrights and registered trademarks issues. URW names, on the other hand, > are somewhat incongruous. Therefore we decided to coin new names, mnemonic > to some extent, consistent within the project. _I would be grateful to know:_   1. **Whether my understanding (as given above) is correct** ; and if not, what my mistakes are.   2. **Why the Gyre project decided to fork the URW++ clones rather than just extending them under their existing names.** The explanation they gave - that the URW++ names were "somewhat incongruous" - is incomprehensible to me, especially since the new names given to the Gyre project's extended versions don't seem to me to be any more "congruous" or memorable than the URW++ names. Bonus points for linking to, and translating if necessary, archived discussion(s) explaining the process by which the decision was reached.


title: redefined math command printed with error

text: why is my command `\mercur` shown with error, but the default `\mercury` command without? MWE:               \documentclass[10pt,a4paper]{article}     \usepackage[latin1]{inputenc}     \usepackage{wasysym}     \newcommand{\mercur}{\footnotesize\mercury\small\xspace}     \begin{document}     \mercur     \mercury     \end{document}


title: adjusting column width tabularx + table margin

text: As you can see from the following MWE, it would be really great to adjust the widths individually for a couple of columns individually. Also how can I decrease the page margins of the table, if the need arises?               \documentclass{article}     %\usepackage{showframe}% http://ctan.org/pkg/showframe     \usepackage{booktabs}% http://ctan.org/pkg/booktabs     \usepackage{array}% http://ctan.org/pkg/array     \usepackage{tabularx}% http://ctan.org/pkg/tabularx     \begin{document}          \begin{table}[htbp]       \centering       \caption{Add caption}         \begin{tabularx}{\textwidth}{>{\raggedleft\arraybackslash}XXXXX}         \addlinespace         \toprule         \multicolumn{1}{c}{Variable } & Source & Spatial coverage & Temporal coverage & Frequency \\         \midrule         Urban Social Disturbances & USDAA, PRIO, Oslo & 55 cities (49 countries) & 1960-2010 & Event-based \\         Local food prices & FAO GIEWS database  & 43 markets (in common with USDAA) & 1990-Present (unbalanced) & Monthly \\         Total population & WDI 2010, World Bank & 190 countries & 1960-2011 & Annual \\         Urban population (as p.c. of total) & WDI 2010, World Bank & 190 countries & 1960-2011 & Annual \\         Internet penetration & WDI 2010, World Bank & 177 countries & 1960-2011 & Annual \\         Percapita GDP (constant, 2000 level) & WDI 2010, World Bank & 248 countries & 1960-2011 & Annual \\         Index of democracy & QoG database, U of Gothenberg & 202 countries & 1960-2011 & Annual \\         \bottomrule         \end{tabularx}%       \label{tab:addlabel}%     \end{table}%               \end{document}


title: Data conversion (datatool, fp)

text: Ich bin auf der Suche nach einer Möglichkeit aus einer Datei folgender Struktur               1,a     2,a     2,a     2,a     3,a     3,a     4,a     4,a     4,a     4,a     5,a     5,a     6,a     6,a     7,a      folgendes zu machen               1 1     2 3     3 2     4 4     5 2     6 2     7 1      (Das A dient nur dazu um zu zeigen, dass es mehrere spalten geben kann... ICh denke an das package datatool, aber ich kann das irgendwie nicht umsetzen, meine versuche basieren auf folgenden überlegungen.... datenbank laden.... in der datenbank nach dem minimum suchen counter erhöhen, zeile löschen bis die datenbank das erste mal durch ist.... dann neue zeile in neuer datenbank.... und den counter übertragen.... dann die prozedurer wieder von vorne, bis die anzahl der daten null sind.... ergebnisdatenbank sortieren...hm.... an der Umsetzung scheitert es; ich schaffe es nicht zwei ineinander geschachtelte for schleifen innerhalb von datatool zu realisieren... LG Goldnas


title: heading of section with first letter big capital letter and rest as small capital letters

text: How do i format the heading of the section such that first letter is bigger size capital letter and following letters as smaller sized capital letters in the same word ?


title: How to typeset an Arabic paper with the equations in the usual Latin in Latex?

text: I want to typeset a paper so that the text is in Arabic and the equations are in Latin (I mean, the equations as usual, you know what I mean). How can I do that?


title: Where does XeLaTeX look for smallcaps shapes in fonts?

text: In response to a deleted post, here is my attempt at formulating a question to an answer: Where does XeLaTeX look for smallcaps shapes in fonts, on an Ubuntu system?


title: PSTricks and LaTeX vs. pdfLaTeX

text: I'm trying to convert my thesis to `pdfLaTeX`, as `latex` + `dvips` behaves ugly when it comes to break (really long) URLs... I'm using up-to-date TeXLive 2012 on Linux. The only problem is (so far), that I heavily used `pstricks` and the related packages and I am not able to get them working nicely on `pdfLaTeX` (see my pictures) when interacting between different `pspicture`-environments (also using this sometime to have text directly related to pictures underneath): * * * `latex` + `dvips` + `ps2pdf` (gs) ![latex](http://i.stack.imgur.com/SNdjU.png) * * * `pdflatex` (arrow is missing) ![pdflatex](http://i.stack.imgur.com/78kD1.png) * * * Code for the example above:               \documentclass[12pt]{scrbook}        \PassOptionsToPackage{pdf}{pstricks} %used for pdflatex     \usepackage{pstricks,pst-plot,pst-node,pst-func}          \begin{document}          \begin{pspicture}(-1.5,0)(1.5,4)         \psTextFrame[ref=c,linestyle=none](-1.5,3)(1.5,4){First Plot}         \psplot[fillcolor=blue!30,fillstyle=solid,opacity=0.5]{-1.5}{1.5}{x 0 0.3 GAUSS}         \psaxes[labels=none,ticks=none]{->}(-1.5,0)(1.5,3)         \pnode(1.5,0.5){A}     \end{pspicture}     \vspace{5mm}     \begin{pspicture}(-1.5,0)(1.5,4)         \psTextFrame[ref=c,linestyle=none](-1.5,3)(1.5,4){Second Plot}         \psplot[fillcolor=blue!30,fillstyle=solid,opacity=0.5]{-1.5}{1.5}{x 0 0.6 GAUSS}         \psaxes[labels=none,ticks=none]{->}(-1.5,0)(1.5,3)         \pnode(1.5,0.5){B}         \nccurve{->}{A}{B}     \end{pspicture}          \end{document}


title: Subscript spacing in equation

text: I have a document, where I want to use `$\tau_{ff}$`. If this is rendered it looks like a space is inserted between the two f's. `$\tau_{rl}$` looks fine ... Where does this additional space come from and how can I avoid it being inserted? (Miktex 2.9 on windows, if this is relevant).


title: Package csquotes does not seem to work within a mdframed box defined via a macro

text: If I define a macro which uses a `mdframed` box, this seems to disable `csquotes` (red box). But using `mdframed` directly (i.e., without defining it via a macro), then the `csquotes` package can do its job just fine (green box). ![enter image description here](http://i.stack.imgur.com/XeN8O.png) How can I define an `mdframed` environment within a macro _and_ also use the nice features of the `csquotes` package? ## References:   * Automatically convert quotations in the form of "abc" to become ``abc". ## Code:               \documentclass{article}          \usepackage{mdframed}     \usepackage{xcolor}          %%% http://tex.stackexchange.com/questions/50712/automatically-convert-quotations-in-the-form-of-abc-to-become-abc     \usepackage{csquotes}     \MakeOuterQuote{"}          \mdfsetup{frametitlerule=true, frametitlerulecolor=brown}          \newcommand{\HelloWorld}{%         \begin{mdframed}[backgroundcolor=red!25,frametitle={Usage of mdframed via a macro (Quotes Are Incorrect)}]             "Hello World."         \end{mdframed}%     }%          \begin{document}          \HelloWorld          \begin{mdframed}[backgroundcolor=green!25,frametitle={Direct usage of mdframed (Quotes Are Correct)}]         "Hello World."     \end{mdframed}%               \end{document}


title: How can I use multiple declarations (\textbf, \emph) in listings' emphstyle?

text: How do I provide multiple emphstyles with the listings package?               \begin{lstlisting}[emph={if,for},emphstyle={\textbf\emph}]     if something     end if     \end{lstlisting}      Both styles above (`\emph` and `\textbf`} don't get applied. If I use only one style, it works.


title: Sectional plane disappears after using "unit vector ratio"

text: I simply can't find a solution for my problem. I hope you can help! I use matlab2tikz to plot a 3D slice plot from matlab in tikz. The problem is after setting the unit vector ratio = 1 1 1 the sectional plane disappears. Without that command everything looks great except the aspect ratio ;-). In the .tikz file the `\begin{axis}` environment is used to set the ticks, labels and the aspect ratio. After that a simple `\addplot3[surf, ...` generates the actual plot. Here is the code I use so far, missing many data points of course ;-):               \documentclass[12pt, a5paper, german, bibliography=totoc, listof=totoc, parskip=half, numbers=noenddot]{scrreprt}          \usepackage[utf8]{inputenc}          \usepackage{textcomp}          \usepackage[english, ngerman]{babel}     \usepackage[babel,german=quotes]{csquotes}          \usepackage{lmodern}          \usepackage{tikz, tikz-3dplot, pgfplots}     \usepackage{datatool}          \usepackage[detect-all,locale=DE]{siunitx}          \usetikzlibrary{shapes, arrows, plotmarks, calc, fpu, positioning, fit, external}     \tikzset{>=latex}     \pgfplotsset{compat=1.9}          \begin{document}          \begin{figure}[htbp]     \begin{tikzpicture}          \begin{axis}[%     view={-37.5}{30},     scale only axis,     scaled ticks=false,     xmin=0,     xmax=0.00320518432167527,     xtick={0,0.0005,0.001,0.0015,0.002,0.0025,0.003},     xticklabels={0, {0,5}, 1, {1,5}, 2, mm, 3},     xmajorgrids,     ymin=0.000732892756480625,     ymax=0.00146578551296125,     ytick={0.000732892756480625,0.00109933913472094,0.00146578551296125},     yticklabels={{0,7}, mm, {1,5}},     ymajorgrids,     z dir=reverse,     zmin=0,     zmax=0.0029315710259225,     ztick={0,0.0005,0.001,0.0015,0.002,0.0025},     zticklabels={0, mm, 1, {1,5}, 2, {2,5}},     zmajorgrids,     axis x line*=bottom,     axis y line*=left,     axis z line*=left,     unit vector ratio*=1 1 1     ]          \addplot3[%     surf,     shader=interp,     colormap/blackwhite,     point meta=explicit,     mesh/rows=37]     table[row sep=crcr,header=false,meta index=3] {     0 0.000732892756480625 0 300.000000126657\\     0 0.000773609020729548 0 300.000000214474\\     0 0.000814325284978472 0 300.000000266991\\          ...          };     \end{axis}     \end{tikzpicture}%          \label{fig:KH_3D}     \end{figure}          \end{document}      I also tried the answers on this post: Setting the unit vector ratio And here are the plots I am talking about: ![missing sectional plane](http://i.stack.imgur.com/Ewuho.png) ![wrong aspect ratio](http://i.stack.imgur.com/D0pTK.png) Thanks for your help!!


title: Selecting best file extension for graphics figures pictures

text: So, lets say I have the chance to **choose** which file extension I want for my figure/graphic/picture that I want to include in my work. I went over How do I insert an image in LaTeX so it looks good on print?, but I wanted to know if this still applies for nowadays, and specially if given the chance to select the extension **at the source**... and if this also applies for electronic pdf documents (i.e., not printed) Which one should I choose that brings the best results? PS: This question has very nice complementary information: Which graphics formats can be included in documents processed by latex or pdflatex?


title: Use detokenize with command line input that has underscores

text: I'm calling a script where I give a command line input to LaTeX:               pdflatex "\def\myvar{given_test} \input{figures.tex}"      And then in the script, I try to use this "given_test" input and print it:               \textbf{filename: \myvar}      This breaks LaTeX, then I try to use detokenize               \textbf{filename: \detokenize{\myvar}}      And that just prints the text "\myvar" The underscore is a necessity, since we are reading from a more complex pipeline that uses them for the file identifiers. So how do I read what is inside `\myvar` and not break LaTeX.


title: New LaTeX user trying to install VauCanSon-G (state machine style)

text: I'm completely new to LaTeX and I'm trying to draw some state diagrams for an assignment. So far the options I have found are               1- Use VauCanSon-G to generate the diagrams     2- Draw the diagrams in an external application      I definitely don't want to need 2 applications to write my assignment, so I must use the style. However, I have only ever install single `.sty` files and moved them to `usr/share/texmf/tex/latex/[stylename]` and use `usepackage{[name]}`. This style is actually more than one (?) and has a bunch of other types of files listed on the download page. I've tried a couple times and always get errors. Can somebody point me in the right direction? **EDIT** I have downloaded and install `texlive` (and, thus `tlmgr`). I am sure that my setup is correct because I have been able to use styles I have not explicitly downloaded and install manually. However, when trying to run Herbert's example, I get several errors. I double check if I have the package installed:               max@linux-vwzy:~/downloads> tlmgr show vaucanson-g     package:     vaucanson-g     category:    Package     shortdesc:   PSTricks macros for drawing automata     longdesc:    VauCanSon-G is a package that enables the user to draw automata within texts written using LaTeX. The package macros make use of commands of PStricks     installed:   Yes     revision:    15878     cat-version: 0.4     cat-date:    2008-10-30 09:45:25 +0100     cat-license: lppl     collection:  collection-pstricks      So it is installed. Ideas?


title: Split beamer notes across multiple notes pages

text: I've only recently discovered the `notes` mode for `beamer`, and I'm trying to build a presentation with notes containing my speech. However, my speech is quite large, and is causing note page overflows. I'm thus looking for something akin to the `\allowframebreaks` flag to the `frame` environment. Is there something that performs this function?


title: What's the difference between a class and a style?

text: What are the actual differences between the two? I am new to LaTeX and I need to create a custom "look & feel" -- should I be looking into making a class or a style?