title: Using \ref in moderncv class

text: I have use the `\ref` function to make an internal reference to another section with `\label` and `\ref{}` but my reference is invisible but click able. Someone has the same problem? EDIT BY LOCKSTEP: Strange indeed. Here's a MWE (and yes, there's a click able link):               \documentclass{moderncv}          \firstname{John}     \familyname{Doe}          \begin{document}          \maketitle          \section{Master thesis}\label{sec:th}     \cvline{title}{\emph{Title}}          \section{Experience}     \cventry{year--year}{Job title}{Employer}{City}{}{See section \ref{sec:th}}          \end{document}


title: Remove individual entries from List of Tables?

text: This is my first post here, so the TeX code may not appear as desired, but I'll do what I can to provide a MWE. I want to be able to suppress the appearance of individual figures/tables in the list of figures/tables. There are several approaches out there, but none of them seem to work for me because I'm using a non-standard document class which does not allow the use of the `caption` package, or the `longtable` package (packages load OK, but do not function as expected, or, really, at all). However, I still need to have tables that span multiple pages, which I have enter code here done manually by defining where the page break should be as a new table, controlling float placement, and redefining how the figures are numbered (as well as resetting the counter). So, having done it manually, each table appears in the list of tables, but I want to explicitly suppress the appearance of the second part of that table, defined as its own table in this case. Also, I can't use the `\caption*` command because the tables must be numbered in the text (it's a thesis—lots of special formatting requirements). So, the MWE (note that I am using a standard document class in MWE so that it's universally workable, but I cannot use the `caption` or `longtable` package) is below. How do I delete the second table from the List of Tables?               \documentclass[11pt]{book}     \usepackage{floatrow}     \floatsetup[table]{capposition=top}          \begin{document}               \listoftables          \newpage          \renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}     \setcounter{table}{0}          \begin{table}     \begin{tabular}{ccc}     table & of & data \\     with & many & lines \\     \end{tabular}     \caption[LoT Caption for Example Table, part 1]{Caption that appears with Table, Part 1}     \end{table}          \renewcommand{\thetable}{\arabic{chapter}.\arabic{table}, \textit{continued}}     \setcounter{table}{0}          \clearpage          \begin{table}     \begin{tabular}{ccc}     part & 2 & of table \\     table & of & data \\     with & many & lines \\     \end{tabular}     \caption[LoT Caption for Example Table, part 2]{Caption that appears with Table, Part 2}     \end{table}               \end{document}      Note: I did find a workaround, which I have been using, but I would like something cleaner (less labor-intensive for each compilation). The workaround is to modify the `file.lot` file, deleting the lines that correspond to the tables I want to remove from the LoT. Since this changes the number of pages of the LoT, I then have to recompile, redelete the lines from file.lot, and recompile again. Making the `file.lot` read-only (as suggested by another user in another thread) prevents the page numbers from readjusting to the proper numbers after the change in the length of the LoT, so these lines have to be deleted from file.lot each time the document is compiled.


title: Real numbers symbol in XeTeX

text: How can I get the 'real number' sign (something like `\mathbb{R}` with the amssymb package in LaTeX) in XeTeX?


title: BibTeX reference page appears at start of pdf from IEEE template

text: When using the IEEE template (LaTeX and BibTeX) the references page appears before the title page. Why is this? The LaTeX file:               \documentclass[conference]{IEEEtran}          % correct bad hyphenation here     \hyphenation{op-tical net-works semi-conduc-tor}          \begin{document}     %     % paper title     % can use linebreaks \\ within to get better formatting as desired          \bibliographystyle{IEEEtran}     \bibliography{IEEEabrv,bibliography}     \title{Bare Demo of IEEEtran.cls for Conferences}          % author names and affiliations     % use a multiple column layout for up to three different     % affiliations          \maketitle          \begin{abstract}     %\boldmath     The abstract goes here.      \end{abstract}          \IEEEpeerreviewmaketitle          \section{Introduction}     % no \IEEEPARstart     This demo file is intended to serve as a ``starter file''     for IEEE conference papers produced under \LaTeX\ using     IEEEtran.cls version 1.7 and later. \cite{dp}     % You must have at least 2 lines in the paragraph with the drop letter     % (should never be an issue)     I wish you the best of success.          \hfill mds          \hfill January 11, 2007          \subsection{Subsection Heading Here}     Subsection text here.          \subsubsection{Subsubsection Heading Here}     Subsubsection text here.          \section{Conclusion}     The conclusion goes here.          \section*{Acknowledgment}     The authors would like to thank...          \end{document}      the bib file:               @Article{ dp,       title = {Exact and approximate representations for the sum Dirichlet process},       author = "Ishwaren, H. and Zarepour, M. ",       journal = "Can J Stat",       Volume = 30,       PAGES = {269–283},       year = 2002,     }


title: spacing before scope resolution operator

text: I'm new to LaTeX and I have encountered a problem with the listings package, I have a space before the `::` operator of C++ . after reading lstlisting with c++: spaces around scope resolution operator I added `columns=fullflexible` but it doesn't solve the problem. here are my settings :               \usepackage{listings}     \lstset{basicstyle=\ttfamily,                                                                   frame=lrtb ,        columns=fullflexible           }


title: How to have an image on the left-hand side and text (with mathematics) on the right-hand side which are horizontally aligned in beamer?

text: Doing a presentation with an image of a graph on the left-hand side and the mathematics behind the graph on the right-hand side and I want them horizontally aligned. Thanks.


title: Control Structures in TikZ

text: I'm just now learning TikZ and I'm experimenting with some control structures. Could somebody possibly help me with my code below?               \documentclass{article}          \usepackage{tikz}          \begin{document}          \begin{center}     \begin{tikzpicture}         \draw[fill=black] (0,0)circle(0.05) node[above=1.5]{You};         \foreach \(\x,\y) in {(-2,green),(-1,red),(0,black),(1,blue),(2,yellow)}         {             \filldraw[draw=\y] (0,0)--(\x,-1);             \draw[fill=black] (-\x,-1)circle(0.05);         }        \end{tikzpicture}     \end{center}          \end{document}      I know that the problem is coming from where I try to use               \foreach \(\x,\y) in {(-2,green),(-1,red),(0,black),(1,blue),(2,yellow)}      Is there any way TikZ could handle something like this?


title: XeLaTeX problem with a vector arrow

text: I am trying to write `$\overrightarrow{V}_{AB}$` with the vector over only `V`, but when I do this then the subscript `AB` goes far from `V`. On the other hand when I use the vector over the `V` and `AB` it seems wrong and not so beautiful. What am I doing wrong? Thank you very much!


title: Test if file is in \includeonly

text: Is it possible to check if a file is listed inside `\includeonly{...}` ? For example I would like to do something like this               \includeonly{file1,file2}     \if\isincluded file1       % \isincluded is a placeholder for the real test macro         \usepackage{apackage}      \fi           \begin{document}      \include{file1}      \include{file2}      \end{document}      to avoid loading `apackage` when file1 is not included (because the package is expensive to load, like TikZ)


title: in-cell newlines (in tabular environments)?

text: I'm working on a table containing multi-line cells and I wonder if the following concept is supported by LaTeX. The concept itself is simple: allow a cell to span multiple lines by increasing the line height (similar to how it works in Office suites when you press Ctrl-Enter or Alt-Enter to wrap the current cell). Using `\\\` doesn't work as it causes LaTeX to go to the next table row. Thus what would be required is an equivalent of `\\\` which is scoped to a table cell. Is this implemented already (I suppose not in LaTeX, but perhaps there are packages)? I realize that the same can be achieved with \multirow, but I don't find that approach very user-friendly.


title: Latex bibliography with mixed entry styles

text: I'm writing a PhD thesis with               \bibliographystyle{IEEEtran}      I would like to highlight the papers written by me by using, only for them, a different bibliography style as in the following example: > [1] Reference 1 > > [2] Reference 2 > > (...) > > [Atz13] My reference 1 > > [Atz14] My reference 2 > > (...) Is this possible to implement?


title: Getting Rid of Comma before 'and' in Authors' Names

text: The skeleton of my article looks like               \documentclass[10pt, twoside]{article}     \title{An Example}     \author{S. Barman Roy}     \begin{document}     ....     \bibliographystyle{unsrt}     \bibliography{library}     \end{document}      Among the bib items, whenever an article has only two authors, it's appearing perfectly as [1] John Doe and Richard Rane .... However, when I have more than two authors for an article, it appears as [1] Johan Doe, Richard Rane, and Tommy Atkins... How do I get rid of the comma before the and? The problem persists even if I change the bib style to something else, 'IEEEtran' for example, which I use most frequently.


title: How do I set up MacTeX so admin rights aren't necessary?

text: I'd like to set the permissions of `/usr/local/texlive` so that I don't need admin rights to update my distribution with TeX Live Manager (or `tlmgr`), and so on. What's the best way to do this? Are there any caveats I need to be aware of? * * * Kent, below, asks why I want to do this. Having started to use homebrew, their philosophy is that you don't need admin rights to install user Applications and therefore you shouldn't need them to install CLI programs. (Everything they install goes through a branch of /usr/local that has `group` (I think) ownership to allow this.) So ever since, requiring `sudo` before `tlmgr update` (and so on) has felt like a needless imposition. Can you give a reason TeX Live _should_ require only admin rights to change itself?


title: How do I write a recurring decimal in LaTeX?

text: Title says it all. Since I am a newbie, I don't know how to do this. Any help?


title: How to get rid of vertical space above title from slide 2

text: Using this minimal example I get a vertical space above the title bar on slide 2. This seems to be an unfortunate interaction with CVS versions of pgf/TikZ (I am using the build from 28 September 2010, the version on CTAN does not have this problem)               \documentclass{beamer}     \usetheme{split}     \listfiles          \begin{document}          \begin{frame}      \frametitle{Foo}     \end{frame}          \begin{frame}      \frametitle{Bar}     \end{frame}          \end{document}      Is there an easy fix? My list of files is:                *File List*       beamer.cls    2010/06/21 development version 3.10 A class for     typesetting pre     sentations (rcs-revision a6b1a8434d30)     beamerbasercs.sty    2010/06/12 (rcs-revision c3821710bb40)     beamerbasemodes.sty    2010/05/01 (rcs-revision efa082c6111d)     beamerbasedecode.sty    2010/05/01 (rcs-revision efa082c6111d)     beamerbaseoptions.sty    2010/04/27 (rcs-revision 982469101dd6)       keyval.sty    1999/03/16 v1.13 key=value parser (DPC)     geometry.sty    2008/12/21 v4.2 Page Geometry        ifpdf.sty    2009/04/10 v2.0 Provides the ifpdf switch (HO)       ifvtex.sty    2008/11/04 v1.4 Switches for detecting VTeX and its     modes (HO)     geometry.cfg       size11.clo    2007/10/19 v1.4h Standard LaTeX file (size option)      pgfcore.sty    2010/04/11 v2.00-cvs (rcs-revision 1.7)     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)         trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2009/08/28 v1.8 graphics configuration of TeX Live       pdftex.def    2009/08/25 v0.04m Graphics/color for pdfTeX       pgfsys.sty    2010/06/30 v2.00-cvs (rcs-revision 1.37)       pgfrcs.sty    2008/05/19 v2.00-cvs (rcs-revision 1.22)     everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)       pgfrcs.code.tex       pgfsys.code.tex     pgfsyssoftpath.code.tex    2008/07/18  (rcs-revision 1.7)     pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive      pgfcore.code.tex      xxcolor.sty    2003/10/24 ver 0.1     hyperref.sty    2009/10/09 v6.79a Hypertext links for LaTeX      ifxetex.sty    2009/01/23 v0.5 Provides ifxetex conditional      hycolor.sty    2009/10/02 v1.5 Code for color options of hyperref/     bookmark (HO     )     xcolor-patch.sty    2009/10/02 xcolor patch       pd1enc.def    2009/10/09 v6.79a Hyperref: PDFDocEncoding definition     (HO)     etexcmds.sty    2007/12/12 v1.2 Prefix for e-TeX command names (HO)     infwarerr.sty    2007/09/09 v1.2 Providing info/warning/message (HO)     hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive     kvoptions.sty    2009/08/13 v3.4 Keyval support for LaTeX options (HO)     kvsetkeys.sty    2009/07/30 v1.5 Key value parser with default handler     support     (HO)          url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.       bitset.sty    2007/09/28 v1.0 Data type bit set (HO)      intcalc.sty    2007/09/27 v1.1 Expandable integer calculations (HO)     bigintcalc.sty    2007/11/11 v1.1 Expandable big integer calculations     (HO)     pdftexcmds.sty    2009/09/23 v0.6 LuaTeX support for pdfTeX utility     functions (     HO)     ifluatex.sty    2009/04/17 v1.2 Provides the ifluatex switch (HO)      ltxcmds.sty    2009/08/05 v1.0 Some LaTeX kernel commands for general     use (HO)          atbegshi.sty    2008/07/31 v1.9 At begin shipout hook (HO)      hpdftex.def    2009/10/09 v6.79a Hyperref driver for pdfTeX     beamerbaserequires.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbasecompatibility.sty    2010/07/12  (rcs-revision 6648c3177e4e)     beamerbasefont.sty    2010/05/10  (rcs-revision cd36e8a33c6b)      amssymb.sty    2009/06/22 v3.00     amsfonts.sty    2009/06/22 v3.00 Basic AMSFonts support     beamerbasetranslator.sty    2010/06/11  (rcs-revision 85fd1cc7fc42)     translator.sty    2010/06/12 ver 1.10     translator-language-mappings.tex     beamerbasemisc.sty    2010/06/06  (rcs-revision bff0a9294b45)     beamerbasetwoscreens.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbaseoverlay.sty    2010/05/07  (rcs-revision 5584dad462a9)     beamerbasetitle.sty    2010/06/12  (rcs-revision 717e481ca47a)     beamerbasesection.sty    2010/06/17  (rcs-revision e0d9401bb743)     beamerbaseframe.sty    2010/06/06  (rcs-revision bff0a9294b45)     beamerbaseverbatim.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbaseframesize.sty    2010/06/27  (rcs-revision 6baa2d92e6f1)     beamerbaseframecomponents.sty    2010/07/12  (rcs-revision     09e82992d9b1)     beamerbasecolor.sty    2010/06/06  (rcs-revision d1a9b48be06d)     beamerbasenotes.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbasetoc.sty    2010/06/11  (rcs-revision 242ecaa6783b)     beamerbasetemplates.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbaseauxtemplates.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbaseboxes.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbaselocalstructure.sty    2010/06/01  (rcs-revision     81f9e33f7cc2)     enumerate.sty    1999/03/05 v3.00 enumerate extensions (DPC)     beamerbasenavigation.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbasetheorems.sty    2010/06/06  (rcs-revision 7e7cc5e53e9d)      amsmath.sty    2000/07/18 v2.13 AMS math features      amstext.sty    2000/06/29 v2.01       amsgen.sty    1999/11/30 v2.0       amsbsy.sty    1999/11/29 v1.2d       amsopn.sty    1999/12/14 v2.01 operator names       amsthm.sty    2004/08/06 v2.20     beamerbasethemes.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerthemedefault.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamerfontthemedefault.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamercolorthemedefault.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamerinnerthemedefault.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamerouterthemedefault.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamerthemesplit.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamercolorthemewhale.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamerouterthemesplit.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamerfontthemestructurebold.sty    2010/06/17  (rcs-revision     d02a7cf4d8ae)     supp-pdf.mkii      nameref.sty    2007/05/29 v2.31 Cross-referencing by name of section     refcount.sty    2008/08/11 v3.1 Data extraction from references (HO)     compendium.out     compendium.out     translator-basic-dictionary-English.dict     translator-bibliography-dictionary-English.dict     translator-environment-dictionary-English.dict     translator-months-dictionary-English.dict     translator-numbers-dictionary-English.dict     translator-theorem-dictionary-English.dict      ***********


title: How to insert a running header, but not on the first page

text: I am writing a CV in LaTeX and I want my name as a running header on the top of each page. I used the simple command:               \pagestyle{myheadings}     \markright{Name}      However, I do not want the header to appear on the first page. How can I remove it? Also, is there a way to keep the page number on the bottom of each page? When I use the above comment in `article` document class, it moves the page number to the top right-hand corner.


title: suppress expansion in macro call

text: What I would like is to suppress the expansion of the group as a parameter to a macro so that it can be expanded later. For example we want to pass the paramater unmodified as a string to lua or to a file. Let us suppose we have a macro `\foo` which accepts a parameter.               \def\foo#1{%       \directlua{foo([[#1]]}%       }      if we call it as: `\foo{\bar{abc}}` the `\bar` gets expanded before `\foo` gets to see it. Of course we can manually suppress the expansion with `\foo{\noexpand\bar{abc}}`, but can it be done automatically?


title: Problem with headings

text: I have some problems with the headers for some of my chapters within my Latex document. I’m using a password secured template so I’m a bit afraid to post every detail below. Just considering the heading on every page: Nearly all my chapters starts with a blanc heading (just pagenumber and horizontal line, but no chapter names), followed by the chapter name on every even page and the section name on every odd page (twoside in documentclass). For the following automatically created “chapters” the heading already appears on the first page (or even before: see below): \tableofcontents \listoffigures \listoftables A part of my document:               \documentclass[twoside,open=right, DIV12, 1.1headlines, paper=a4, fontsize=11pt, automark, headsepline, bibliography=totoc, liststotoc, chapterprefix, numbers=noenddot]{scrreprt}     …          % load KOMA script pagestyle package     \usepackage[headsepline,plainheadsepline]{scrpage2}     \let\endgraph\endgraf % necessary for "chapterprefix" in \documentclass call     % Header and footer definition     \clearscrheadfoot % clear header and footer     \ohead[\pagemark]{\pagemark} % page number on the upper right side     \ihead[\headmark]{\headmark} % chapter names at top     \pagestyle{scrheadings} % choose page style     % Factor for the line spacing     %\linespread{1.06}     %\renewcommand{\baselinestretch}{1.0}     % sets the indent of and gap between paragraphs     \setlength\parindent{0cm}     \setlength\parskip{1.5ex plus 0.3ex}     \usepackage[hang,small,bf]{caption}     …          begin{document}     …     \tableofcontents     \chapter{Introduction} text text text     \chapter{xyz} text text text     …     \chapter{last chaper: summary} text text text          \listoffigures          \listoftables          \clearpage     \iflanguage{ngerman}     {\addchap{Abk\"urzungsverzeichnis}}     {\addchap{Acronyms}} \label{chp:acro}     \protect\markboth{Abk\"urzungsverzeichnis}{Abk\"urzungsverzeichnis}     \begin{acronym} … \end{acronym}          \iflanguage{ngerman}     {\renewcommand{\nomname}{Symbolverzeichnis}     \phantomsection     \protect\markboth{Symbolverzeichnis}{Symbolverzeichnis}     \protect\addcontentsline{toc}{chapter}{Symbolverzeichnis}}     {\renewcommand{\nomname}{List of Symbols}     \phantomsection     \protect\markboth{List of Symbols}{List of Symbols}     \protect\addcontentsline{toc}{chapter}{List of Symbols}}     \printnomenclature \label{chp:symbol}          …          \appendix     \chapter{proof1} text text text     …     \chapter{last proof} text text text     \end{document}      My questions:   * How may I clear the heading on the first page for the toc, lof, lot   * My last entry of my acronyms is on an odd page, so a blanc page is added before the lof starts (twoside), but on this blanc page in the heading “List of figures” is written instead of “Acronyms”. This also leads to an entry in the TOC with a wrong page number (74 instead of 75). The heading is correctly placed on page 75. How may I change & correct this?   * I’d like to keep the page numbering and a horizontal line in all headings, so please don’t advise me to totally clear the problematic headings. If I need to add any command, please be so kind and tell me where to put it exactly. Thanks in advance [EDIT] I know this is not a MINIMUM working exaple, but I'm not sure about any issues as a result of a combination. Code: https://www.dropbox.com/s/dv1mo8hfrinmmdl/Test1.tex Output: https://www.dropbox.com/s/s2jk9bnxvuaz8v9/Test1.pdf Please have a closer look to the header of page 16. I'd like to get an output for the toc,tof,... as I get for chaper 1, 2, ...! [\EDIT]


title: Multiple different meta for marker color and marker size

text: How do I set the color of a marker with one meta column in a table AND its size with another meta column? So in this minimal working example, how can I set the marker size with 'w1' and the color with 'w2'?               \begin{filecontents*}{temp.dat}     x y w1 w2     1 1 2 4     2 2 1 3     3 3 4 2     4 4 3 1     \end{filecontents*}          \documentclass[10pt,a4paper]{report}     \usepackage{pgfplots}     \begin{document}          \begin{tikzpicture}     \begin{axis}[]     \addplot[scatter,     only marks,     scatter src=explicit,     scatter/@pre marker code/.append style={/tikz/mark size=2+\pgfplotspointmetatransformed/300}]     table[x=x,y=y,meta=w1]{temp.dat};     \end{axis}     \end{tikzpicture}          \end{document}


title: Aligning text in dcolumn table

text: I want the "Yes" to be perfectly aligned below. As the table is now, if there's stars proceeding the "Yes", it'll push the text to the left. However, I want each column of "Yes"'s to be aligned such that each "Y" in yes is directly on top of the other "Y" in the other yes's in the column, irrespective of the number of stars that proceed. I've tried `\phantom`-ing some stars but it doesn't work. Minimal example:                \documentclass{article}      \usepackage{longtable}      \usepackage{dcolumn}      \usepackage{booktabs}      \usepackage{lscape}           \newcommand{\C}[1]{\multicolumn{1}{c}{#1}}            \newcommand*{\SuperScriptSameStyle}[1]{%        \ensuremath{%          \mathchoice            {{}^{\displaystyle #1}}%            {{}^{\textstyle #1}}%            {{}^{\scriptstyle #1}}%            {{}^{\scriptscriptstyle #1}}%        }%      }           \newcommand*{\oneS}{\SuperScriptSameStyle{*}}      \newcommand*{\twoS}{\SuperScriptSameStyle{**}}      \newcommand*{\threeS}{\SuperScriptSameStyle{*{*}*}}           \newcommand\Ya{\C{Yes}}      \newcommand\Yb{\C{Yes\oneS}}      \newcommand\Yc{\C{Yes\twoS}}      \newcommand\Yd{\C{Yes\threeS}}           \newcolumntype{d}[1]{D{.}{.}{#1}} % "decimal" column type           \begin{document}           \begin{landscape}      \begin{longtable}{@{} l @{\extracolsep{\fill}} *{7}{d{6}} @{}}      \cmidrule[\heavyrulewidth]{1-8}      & \multicolumn{1}{c}{Column 1aa}      & \multicolumn{1}{c}{Column 1aa}      & \multicolumn{1}{c}{Column 1aa}      & \multicolumn{1}{c}{Column 1aa}      & \multicolumn{1}{c}{Column 1aa}      & \multicolumn{1}{c}{Column 1aa}      & \multicolumn{1}{c}{Column 1aa} \\      \cmidrule{1-8}      \endfirsthead      \multicolumn{2}{@{}l}{\emph{(continued)}} \\      \cmidrule[\heavyrulewidth]{1-8}      & \multicolumn{1}{c}{Column 1aa}      & \multicolumn{1}{c}{Column 1aa}      & \multicolumn{1}{c}{Column 1aa}      & \multicolumn{1}{c}{Column 1aa}      & \multicolumn{1}{c}{Column 1aa}      & \multicolumn{1}{c}{Column 1aa}      & \multicolumn{1}{c}{Column 1aa} \\      \cmidrule{1-8}      \endhead      \cmidrule[\heavyrulewidth]{1-8}      \multicolumn{8}{r@{}}{\emph{(continued)}}      \endfoot      \cmidrule[\heavyrulewidth]{1-8}      \endlastfoot      \multicolumn{5}{@{}l}{\emph{Estimates}} \\      $\tau = 0.05$                                                    & -0.078 & -0.959 & -0.695 & -1.754\oneS & 0.339 & -2.925 & 2.553 \\      $\tau = 0.10$                                                    & -0.046 & -0.868 & -0.649 & -1.066 & -0.272 & -4.288\twoS & -0.245 \\      $\tau = 0.50$                                                    & -0.424 & -0.910 & -0.786 & -1.625\oneS & 1.569\twoS & -3.569\twoS & 0.086 \\      $\tau = 0.90$                                                    & -1.008\twoS & 0.001 & -1.924\threeS & 0.906 & 0.284 & -2.444 & 1.552 \\      $\tau = 0.95$                                                    & -0.911\twoS & 0.930 & -2.230\threeS & -0.321 & 1.363 & -2.903 & 0.479 \\                                                                       &  &  &  &  &  &  &  \\        $F:\tau \in \{0.05,0.50\}$                                     & 0.467 & 0.002 & 0.018 & 0.013 & 1.325 & 0.078 & 1.855 \\        $F:\tau \in \{0.50,0.95\}$                                     & 0.842 & 2.808\oneS & 5.230\twoS & 1.447 & 0.031 & 0.022 & 0.028 \\        $F:\tau \in \{0.05,0.95\}$                                     & 2.484 & 2.952\oneS & 3.918\twoS & 1.378 & 0.483 & 0.000 & 0.572 \\                                                                       &  &  &  &  &  &  &  \\      \multicolumn{5}{@{}l}{\emph{\underline{Sigs}}} \\      $\tau = 0.05$                                           & \Yb & \Yd & \Ya & \Yd & \Ya & \Yd & \Yd \\       $\tau = 0.10$                                           & \Ya & \Yd & \Ya & \Yd & \Ya & \Yd & \Ya \\       $\tau = 0.50$                                           & \Yd & \Ya & \Ya & \Ya & \Ya & \Ya & \Ya \\       $\tau = 0.90$                                           & \Yd & \Yb & \Yb & \Ya & \Ya & \Yc & \Ya \\       $\tau = 0.95$                                           & \Yd & \Yc & \Yd & \Yc & \Yd & \Yd & \Yd \\       \end{longtable}      \end{landscape}                     \end{document}


title: Glossaries: Abbreviations not appearing from 2nd use onwards

text: I want two glossaries: 1) Nomenclature 2) Abbreviations In nomenclature, there are four columns and in abbreviations, there are three. Everything is working fine except the Abbreviations are not appearing from 2nd use onwards. What is the problem in the code I am using? Nomenclature file: INP-00-glossary.tex content:               \newacronym[user1={K}]{T}{\textit{T}}{temperature}      Abbreviations file: INP-01-glossary.tex Content:               \newglossaryentry{MC}     {       name={MC},       description={Monte Carlo},       first={\glsentrydesc{MC} (\glsentrytext{MC})}     }      MWE:               \documentclass[12pt,a4paper,times]{report}               \usepackage{hhline}%double line in table     \usepackage{lipsum,appendix}     %\usepackage[backref=page]{hyperref}%creates a reference with additional text corresponding to the target's type     \usepackage{hyperref}     \hypersetup{         bookmarks=true,         % show bookmarks bar?         unicode=false,          % non-Latin characters in Acrobat’s bookmarks         pdftoolbar=true,        % show Acrobat’s toolbar?         pdfmenubar=true,        % show Acrobat’s menu?         pdffitwindow=false,     % window fit to page when opened         pdfstartview={FitH},    % fits the width of the page to the window         pdftitle={My title},    % title         pdfauthor={Author},     % author         pdfsubject={Subject},   % subject of the document         pdfcreator={Creator},   % creator of the document         pdfproducer={Producer}, % producer of the document         pdfkeywords={keyword1} {key2} {key3}, % list of keywords         pdfnewwindow=true,      % links in new window         colorlinks=true,       % false: boxed links; true: colored links         linkcolor=black,          % red,color of internal links         citecolor=black,        % color of links to bibliography         filecolor=black,      % color of file links         urlcolor=black,           % color of external links         anchorcolor=black     }                         \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{amsthm}          %glossaries and acronym     \usepackage[acronym,xindy,sanitize=none,sort=def,toc,     numberline,indexonlyfirst,nomain]{glossaries} %nomain, if you define glossaries in a file, and you use \include{INP-00-glossary}               \newglossary[nlg]{nomenc}{not}{ntn}{Nomenclature}     \newglossary[slg]{abbrev}{sot}{stn}{Abbreviations}                    %custom glossary style     \newglossarystyle{long6col}{%        % put the glossary in a longtable environment:        \renewenvironment{theglossary}%         {\begin{longtable}{lp{\glsdescwidth}cccp{\glspagelistwidth}}}%         {\end{longtable}}%        % Set the table’s header:        \renewcommand*{\glossaryheader}{%         \bfseries Term & \bfseries Description & \bfseries Symbol &         \bfseries Units & \bfseries Dimensions & \bfseries Page List         \\\endhead}%        % No heading between groups:         \renewcommand*{\glsgroupheading}[1]{}%        % Main (level 0) entries displayed in a row optionally numbered:         \renewcommand*{\glossentry}[2]{%           \glsentryitem{##1}% Entry number if required           \glstarget{##1}{\glossentryname{##1}}% Name           & \glossentrydesc{##1}% Description           & \glossentrysymbol{##1}% Symbol           & \glsentryuseri{##1}% Units           & \glsentryuserii{##1}% Dimensions           & ##2% Page list           \tabularnewline % end of row         }%        % Similarly for sub-entries (no sub-entry numbers):        \renewcommand*{\subglossentry}[3]{%           % ignoring first argument (sub-level)           \glstarget{##2}{\glossentryname{##2}}% Name           & \glossentrydesc{##2}% Description           & \glossentrysymbol{##2}% Symbol           & \glsentryuseri{##2}% Units           & \glsentryuserii{##2}% Dimensions           & ##3% Page list           \tabularnewline % end of row         }%        % Nothing between groups:        \renewcommand*{\glsgroupskip}{}%       }     %END: custom glossary style                    %custom glossary1 style     \newglossarystyle{long6col1}{%     % put the glossary in a longtable environment:     \renewenvironment{theglossary}%     {\begin{longtable}{lp{\glsdescwidth}cccp{\glspagelistwidth}}}%     {\end{longtable}}%     % Set the table’s header:     \renewcommand     *     {\glossaryheader}{%     \bfseries Term & \bfseries Description & &      & & \bfseries Page List     \\\endhead}%     % No heading between groups:     \renewcommand     *     {\glsgroupheading}[1]{}%     % Main (level 0) entries displayed in a row optionally numbered:     \renewcommand     *     {\glossaryentryfield}[5]{%     \glsentryitem{##1}% Entry number if required     \glstarget{##1}{##2}% Name     & ##3% Description     & ##4% Symbol     & \glsentryuseri{##1}% Units     & \glsentryuserii{##1}% Dimensions     & ##5% Page list     \\% end of row     }%     % Similarly for sub-entries (no sub-entry numbers):     \renewcommand     *     {\glossarysubentryfield}[6]{%     % ignoring first argument (sub-level)     \glstarget{##2}{##3}% Name     & ##4% Description     & ##5% Symbol     & \glsentryuseri{##2}% Units     & \glsentryuserii{##2}% Dimensions     & ##6% Page list     \\% end of row     }%     % Nothing between groups:     \renewcommand     *     {\glsgroupskip}{}%     }          %          \let\oldgls\gls     \renewcommand{\gls}[1]{%       \ifglsused{#1}%         {\glsentrylong{#1}}%         {\oldgls{#1}}%     }               %END: custom glossary style               \renewcommand*{\glspostdescription}{}%removes dot at end     \glssetwidest{AAAAAAA}% widest name     \renewcommand*{\glsnamefont}[1]{\textmd{#1}}                    \makeglossaries          %\loadglsentries[nomenc]{INP-00-glossary}     \let\oldacronymtype\acronymtype     \def\acronymtype{nomenc}     \loadglsentries[nomenc]{INP-00-glossary}     \let\acronymtype\oldacronymtype          \loadglsentries[abbrev]{INP-01-glossary}                                   \begin{document}     %\maketitle     \printglossary[style=long6col,type=nomenc]     \newpage     \printglossary[style=long6col1,type=abbrev]     \newpage          \gls{MC} used. another \gls{MC}          \gls{T} used , another \gls{T}               \end{document}


title: pgfplots: Plot inverse function (function of y)

text: I am trying to plot the Ramberg-Osgood-relationship for a specific material with pgfplots. The relationship describes the stress-strain-curve, that is the stress as a function of the strain. The relationship itself is defined as the strain as a function of the stress:               strain(stress)=stress/modulus+0.002*(stress/yield stress)^n      I already found a thread which describes plotting inverse functions, so plot x as a function of y. However, everything I tried results in an error, either _Dimension too large_ by TikZ, _Illegal unit of measure_ with fpu as in this thread or the wrong function with gnuplot. Here are the MWE's for the things I tried:   * Plain pgfplots:              \documentclass{standalone}     \usepackage{pgfplots}     \usepackage{siunitx}          \pgfplotsset{compat=1.10}          \begin{document}          \pgfplotsset{stressstrainset/.style={%     axis lines=center,     xlabel={$\varepsilon$ $\left[\si{\percent}\right]$},     ylabel={$\sigma$ $\left[\si{\MPa}\right]$},     restrict x to domain=0:15,     restrict y to domain=0:775,     xmin=0.0, xmax=  15,     ymin=0.0, ymax= 775,     samples=100,     }}          \begin{tikzpicture}     \pgfmathsetmacro\modulus{72400}     \pgfmathsetmacro\yield{325}     \begin{axis}[stressstrainset]     \addplot[black] (x/\modulus+0.002*(x/\yield)^15,x);     \end{axis}     \end{tikzpicture}          \end{document}      Results in:               ! Dimension too large.     <to be read again>      \relax      l.21 \pgfmathsetmacro\modulus{72400}        * pgfplots with fpu:              \documentclass{standalone}     \usepackage{pgfplots}     \usepackage{siunitx}          \pgfplotsset{compat=1.10}          \begin{document}          \pgfplotsset{stressstrainset/.style={%     axis lines=center,     xlabel={$\varepsilon$ $\left[\si{\percent}\right]$},     ylabel={$\sigma$ $\left[\si{\MPa}\right]$},     restrict x to domain=0:15,     restrict y to domain=0:775,     xmin=0.0, xmax=  15,     ymin=0.0, ymax= 775,     samples=100,     }}          \begin{tikzpicture}     \pgfkeys{/pgf/fpu=true}     \pgfmathsetmacro\modulus{72400}     \pgfkeys{/pgf/fpu=false}     \pgfmathsetmacro\yield{325}     \begin{axis}[stressstrainset]     \addplot[black] (x/\modulus+0.002*(x/\yield)^15,x);     \end{axis}     \end{tikzpicture}          \end{document}      Results in:               ! Illegal unit of measure (pt inserted).        * pgfplots with gnuplot:              \documentclass{standalone}     \usepackage{pgfplots}     \usepackage{siunitx}          \pgfplotsset{compat=1.10}          \begin{document}          \pgfplotsset{stressstrainset/.style={%     axis lines=center,     xlabel={$\varepsilon$ $\left[\si{\percent}\right]$},     ylabel={$\sigma$ $\left[\si{\MPa}\right]$},     restrict x to domain=0:15,     restrict y to domain=0:775,     xmin=0.0, xmax=  15,     ymin=0.0, ymax= 775,     samples=100,     }}          \begin{tikzpicture}     \begin{axis}[stressstrainset]     \addplot gnuplot [raw gnuplot,id=nfive, mark=none, draw=black]{     set xrange  [0:15];     modulus = 72400;     yield   = 325;     h(x)=(x/modulus+0.002*(x/yield)^15);     plot h(x),x     };     \end{axis}     \end{tikzpicture}          \end{document}      Gives me a result which is obviously wrong. ## Edit I also tried using GPa as unit for the stress, but I would like to set up the chart in the MPa-System since the rest of my document uses it.               \documentclass{standalone}     \usepackage{pgfplots}     \usepackage{siunitx}          \pgfplotsset{compat=1.10}          \begin{document}          \pgfplotsset{stressstrainset/.style={%     axis lines=center,     xlabel={$\varepsilon$ $\left[-\right]$},     ylabel={$\sigma$ $\left[\si{\GPa}\right]$},     restrict x to domain=0:0.15,     restrict y to domain=0:0.775,     xmin=0.0, xmax=  0.15,     ymin=0.0, ymax= 0.775,     samples=1000,     }}          \begin{tikzpicture}     \pgfmathsetmacro\modulus{72.400}     \pgfmathsetmacro\yield{0.325}     \begin{axis}[stressstrainset]     \addplot[black] (x/\modulus+0.002*(x/\yield)^15,x);     \end{axis}     \end{tikzpicture}          \end{document}      ## Edit2 Thanks to @Christian's answer, there is a running version of the chart. However, I found out, that I need to define the strains, thus the x-axis, not in percent, but in the actual decimal value in order to obtain the correct graph.               \documentclass{standalone}     \usepackage{pgfplots}     \usepackage{siunitx}          \pgfplotsset{compat=1.10}          \begin{document}          \pgfplotsset{stressstrainset/.style={%     axis lines=center,     xlabel={$\varepsilon$ $\left[-\right]$},     ylabel={$\sigma$ $\left[\si{\MPa}\right]$},     domain=0:775,     xmin=0.0, xmax= 0.15,     ymin=0.0, ymax= 775,     samples=100,     }}          \begin{tikzpicture}     \def\modulus{72400}     \def\yield{325}     \begin{axis}[stressstrainset]     \addplot[gray, dashed] ({x/\modulus},x);     \addplot[black] ({x/\modulus+0.002*(x/\yield)^15},x);     \end{axis}     \end{tikzpicture}      Now again, there is the problem that I do get the error               ! Dimension too large.      for the second addplot, but only if the exponent is >10. Is the value getting too small? Can someone please explain how I can set up this chart correctly?


title: Multiple columns with minipage, can't use 100% of \textwidth

text: In a document I'm making, I have several cases where I need to organize things into several "columns." For example, here is some code I might use:               \documentclass[letterpaper,12pt]{report}          \usepackage[margin=1in]{geometry}          \begin{document}          \bigskip     \noindent     \begin{minipage}[t]{.45\textwidth}     \raggedright     This is \\     some left-aligned \\     text in a column \\     for demo purposes     \end{minipage}     \hfill     \noindent     \begin{minipage}[t]{.45\textwidth}     \raggedleft     This is \\     some different \\     text, right-aligned \\     for demo purposes, \\     and with more lines.     \end{minipage}          \end{document}      My question is concerning the `{.45\textwidth}` portion of the definition of the minipage environments. In my first attempt to setup this layout, I used the perhaps more intuitive `{.5\textwidth}` value on each of them - since I want to use up the entire page, splitting it in half. However, when I use this value, I get a warning back from TeX: `Overfull \hbox (2.61107pt too wide) in paragraph at lines 8--28` What I'm wondering is, is this behavior just due to the fact that `minipage` has some implicit padding which I have to deal with via fractions like `0.45`, or is there some cleaner way to define this environment? (Keep in mind, this example is simplified - in the actual document, I may need more than two columns, and the columns may be sized unevenly.)


title: Put a {forest} tree inside a {philex} enviromnent

text: I use the `forest`package to draw linguistic trees, and the `linguex`package to create numeric examples. But there seems to be a problem when I combine the two. The tree is not aligned with the number of the example (the XP should be aligned with (1)).               \documentclass{article}     \usepackage{forest}     \usepackage{linguex}          \begin{document}          \ex. \begin{forest}            [XP [X] [compl ] ]          \end{forest}          \end{document}      If I use the `philex`package instead of `linguex`, the result is exactly the same. So the issue seems to come from the `forest`package. Has anyone any idea how to fix that?


title: Can the makeatletter/makeatother mechanics lead to parsing problems?

text: The reason for using `\makeatletter`/`\makeatother` has been discussed in many places, for instance in this question. However I think that this trick of playing around with the "@" character is itself quite a hack. Couldn't the temporary redefinition of @'s catcode lead to problems? This might not be the practically most commonly occurring usage scenario, but if a section of code embraced by `\makeatletter`/`\makeatother` uses a macro `\somemacro` and we are used to applying this macro to certain arguments without braces, as in `\somemacro@`, couldn't this break code? Also, considering this possibility, is there a non-contrived use case in which such breakage might occur? (Yep, this is a question that likely belongs into the domain "theory", but familiarity with parsing matters and compilation gives me a desire to see this discussed/documented.)


title: mdframed nested frametitle bug

text: > **This issue is fixed in version 1.6b**   >  `mdframed at github` When nesting frames the inner most frametitle is used. The frametitle for all these is frame3.               \documentclass{book}      \usepackage{mdframed}     \begin{document}     \begin{mdframed}[frametitle={frame1}]     asdf         \begin{mdframed}[frametitle={frame2}]         134             \begin{mdframed}[ frametitle={frame3}]                 asdf1324             \end{mdframed}         \end{mdframed}     \end{mdframed}     \end{document}      (mdframed v1.4)


title: Enlarge the integral sign proportional to its content

text: In LaTeX you have a command like `\left(\right)` to enlarge the brackets proportional to the content between the brackets. for instance `\left(a\right)` will produce smaller brackets than `\left(\displaystyle\frac{a}{b^n}\right)` Is there a similar trick for the integral sign?


title: tikz: position label halfway along arrow shaft

text: The following code draws an arrow from a to b with a label g. The label looks like it is too far to the right, and not centered.               \[      \begin{tikzpicture}      \node (a) at (0,0) {$a$};      \node (b) at (1.2,0) {$b$};      \draw[-open triangle 90] (a) to node {$g$} (b);      \end{tikzpicture}     \]      The way to correct this in xymatrix is to add a dash before the label:               \[       \xymatrix{a \ar[r]^-g & b}     \]      Is there a similar fix in tikz, or what is the best way to accomplish this?


title: Drawing a flag with TikZ

text: I am trying to create a flag in TikZ but aesthetically it's not the best. Here is my MWE:               \documentclass[letterpaper]{article}     \usepackage{fullpage}     %\usepackage{amsmath,amssymb,amsthm}     \usepackage[dvipsnames]{xcolor}     \usepackage{tikz}     \begin{document}     \usetikzlibrary{shapes.symbols,shapes.misc}     \begin{tikzpicture}[scale=0.25,transform shape]     \draw[rounded corners=0.1pt] (0,2) rectangle (0.2,4);     \node[tape, draw,right] at (0.32,3.55) {\vphantom{\large i}\hphantom{TEST}};     %\draw[xshift=0.25cm](0,4) -- (1,4) -- (2,3) -- (3,2) -- (2,2) -- (1,2) -- (0,2) -- (0,4)--cycle;     \end{tikzpicture}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% or%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{tikzpicture}[x=1.00mm, y=1.00mm, inner xsep=0pt, inner ysep=0pt, outer xsep=0pt, outer ysep=0pt]     \path[line width=0mm] (138.71,542.78) rectangle +(14.34,14.44);     \definecolor{L}{rgb}{0,0,0}     \path[line width=0.30mm, draw=L] (140.71,555.13) [rotate around={270:(140.71,555.13)}] rectangle +(10.35,1.73);     \path[line width=0.30mm, draw=L] (142.93,554.82);     \path[line width=0.30mm, draw=L] (142.98,549.72) .. controls (142.98,549.72) and (142.98,549.72) .. (142.98,549.72) .. controls (142.99,551.40) and (143.07,553.03) .. (143.01,554.75) .. controls (143.00,554.94) and (142.98,555.18) .. (143.11,555.20) .. controls (144.51,555.37) and (146.55,554.72) .. (147.61,553.60) .. controls (148.77,552.38) and (150.28,551.53) .. (150.87,552.64) .. controls (151.02,552.93) and (151.94,548.83) .. (147.57,549.33) .. controls (146.00,549.51) and (144.56,549.84) .. (142.98,549.72) -- cycle;     \path[line width=0.30mm, draw=L] (147.56,553.67) -- (147.53,549.33);     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/sR7py.png) The second is drawn with TpX. The display are not the best. Maybe a flag like the one shown here in tex.stackexchange.com would suffice. ![enter image description here](http://i.stack.imgur.com/YuPww.png) I am really just looking for a neat representation of a flag which I can scale. This flag will be displayed like an icon on my Lecture Notes for important milestones in certain topics.


title: How to define a function with undefined number of arguments to draw bytefield with variable number of bitbox?

text: I have to draw lots of bytefield with different number of bitbox with different shapes. For that I define 3 functions:   1. _mybytefield_ that takes a variable number of arguments (using xparse with `\SplitList` and `\ProcessList`) and defines the bytefield environment   2. _bitboxlist_ that takes args in a sequential way and sends them to _mybitbox_   3. _mybitbox_ that takes the 2 arguments needed for \bitbox in a sequence and invokes `\bitbox{\value{{bitfieldsize}}{#1}` when the 2 arguments are ready. It almost works ... I can invoke `\mybytefield` with different numbers of args and it draws several bytefield **BUT** the position of the bitbox are wrong or "corrupted" by the `\ProcessList`call. Any idea ? Here is a sample code :               \documentclass[a4paper, 12pt,english]{article}     \usepackage{graphicx}     \usepackage{bytefield}     \usepackage{calc}     \usepackage{xparse}     \usepackage{etoolbox}               \newtoggle{newarg}     \toggletrue{newarg}     \newcounter{bitfieldsize}          \newcommand\mybitbox[1] {     \iftoggle{newarg}{     \setcounter{bitfieldsize}{ #1 }     \togglefalse{newarg}     }{     \bitbox{\value{bitfieldsize}}{#1}     \toggletrue{newarg}}}          \NewDocumentCommand\bitboxlist {  >{\SplitList{;}}m} {     \ProcessList{#1}{\mybitbox}}          \newcounter{instsize}     \NewDocumentCommand\mybytefield{m >{\SplitList{;}}m} {     \setcounter{instsize}{#1 - 1 }     \begin{figure}[htbp]       \begin{center}         \begin{bytefield}[endianness=big,bitwidth=1em]{#1}           \bitheader{0-\value{instsize}} \\           \ProcessList{#2}{\bitboxlist}         \end{bytefield}       \end{center}     \end{figure}}          \newcommand\staticbitbox[4] {       \bitbox{#1}{#2} \bitbox{#3}{#4}}          \begin{document}          \mybytefield{32}{{28;part1};{4;part2}}          %should do     \begin{figure}[htbp]       \begin{center}         \begin{bytefield}[endianness=big,bitwidth=1em]{32}           \bitheader{0-31} \\           \staticbitbox{28}{part1}{4}{part2}         \end{bytefield}       \end{center}     \end{figure}          \end{document}


title: How to remove link from title in foot

text: When using `\insertshorttitle` in the footline (or elsewhere) it is automatically inserted as a click-able link. Therefore it is for example typesetted in a different colour. (marked with a red circle in the image, where the title appears black instead of blue) How can this behaviour be disabled? > ![enter image description here](http://i.stack.imgur.com/1sAF6.png)               \documentclass{beamer}          \setbeamertemplate{footline}{         \leavevmode%         \hbox{%             \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%                 \usebeamerfont{author in head/foot}\insertshortauthor             \end{beamercolorbox}%             \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%                 \usebeamerfont{title in head/foot}\insertshorttitle             \end{beamercolorbox}%         }%         \vskip0pt%     }          \title{test}     \author{Einstein}          \begin{document}              \begin{frame}             test         \end{frame}               \end{document}


title: Norm symbol in subscripts of index

text: I found this related topic but it didn't seem to fix my problem: How to fix symbol index entry? I was using good old `\|\cdot\|` for norms but my index wasn't liking it. So then I did the new command `\norm` to be `\|`. This works great except in subscripts. To be specific I have something like this:               {\index[symbols]{$B_{\norm\cdot\norm}(x,r)$}}      And it appears in the index as `$B_{weird stuff}(x,r)$`. More specifically, going into the index file I see it's recorded as this:               $B_{\delimiter 026B30D \cdot \delimiter 026B30D }(x,r)$      Any ideas?


title: German APA reference: origyear field is incomplete (needs reprinttitle)

text: I use LuaTeX, BibLaTeX and biber with APA bibliography style. The German version has the `origyear` field wrong. The original english APA version wants it like this: > **Author** ( **Year** ). **Title**. **Location** : **Publisher**. (Original > work published **original year** ) The German version is the same, just "Original work published is replaced by "Original erschienen" which is fine. But according to the adjusted version by the German DGP the rest should look like this: > **Author** ( **Year** ). **Title**. **Location** : **Publisher**. (Original > erschienen **original year** : **original title** ) But we can't even use the `origtitle` field and just move it around. Because the `origtitle` field is a field for the title when the `title` field is already used for a self-made translation of the title. Imagine the following case: > Smith, A. (1990). L'amour [Die Liebe]. Paris: Alfons. (Original erschienen > 1988: Love). So we have a French translation of an originally English book and we give a German translation so everybody understands it. `title` field is for our translation "Die Liebe", `origtitle` is for the title of the translated work "L'amour" so we need another field for the title of the original work "Love". This can't be appended to `origyear` because we need `origyear` seperately when we cite it like this: Smith (1988/1990). We would need something like a `origwork` field which is appended to the `origyear` and also very flexible because if the original work has slightly different authors (what the heck??) DGP turns it into: > Zimbardo, P. G. & Gerrig, R. J. (2004). ... (Original erschienen 2002 als > Gerrig, R. J. & Zimbardo, P. G., Psychology and life) And DGP is also a little inconsistent. There can be found: > (Original erschienen 1988: Love) and > (Original erschienen 1988, Love) Anyway, does anybody know how to implement this in the german-apa.lbx? I wouldn't even know where to start ... **EDIT:** Thanks alot Guido, that's almost what I need. It's a little bit messed up though. This shifts everything around. There is no need for that. `title`, `subtitle` and `origtitle` should stay in place. We just need an additional field. We can't use `titleaddon` for that because this is put in square brackets (we couldn't use title/subtitle either because it's in italics but shouldn't be if used as title of an original work). We would just need another field `origwork`. Here is what I got so far:               \documentclass{scrbook}     \usepackage[american,english,ngerman]{babel}     \usepackage[style=apa,backend=biber,bibencoding=utf8,babel=other]{biblatex}     \usepackage[autopunct=true,autostyle=true,german=guillemets,english=american]{csquotes}     \bibliography{test.bib}             \DeclareLanguageMapping{american}{american-apa}     \DeclareLanguageMapping{ngerman}{ngerman-apa}          \begin{filecontents}{biblatex-dm.cfg}         \DeclareDatamodelFields[type=list, datatype=name,skipout=false]{origauthor}         \DeclareDatamodelEntryfields{origauthor}         \DeclareDatamodelFields[type=field, datatype=literal,skipout=false]{origwork}         \DeclareDatamodelEntryfields{origwork}          \end{filecontents}              \DeclareFieldFormat{origyear}{%          \mkbibparens{\bibcpstring{origyear}~\thefield{origyear}%          \ifnameundef{origauthor}            {}            {\addspace als \printnames[author]{origauthor}}%          \iffieldundef{origwork}            {}%            {\ifnameundef{origauthor}              {\setunit{\addcolon\addspace}}              {\setunit{\addcomma\addspace}}%              \printfield{origwork}}}%          }              \renewbibmacro*{origyear}{%           \ifthenelse{               \NOT\iffieldsequal{labelyear}{origdateyear}             \OR               \NOT\iffieldsequal{title}{origwork}             \OR               \NOT\ifnamesequal{author}{origauthor}             }             {\printfield{origyear}}             {}%         }          \begin{document}     \textcite{testentry}     \printbibliography      \end{document}      test.bib:               @BOOK{testentry,       author = {Adam Smith},       title = {Die Liebe},       origtitle = {L'amour},       location = {Paris},       publisher = {Alfons},       date = {1994},       origdate = {1988},       origauthor = {Adam Smith-Degen},       origwork = {Love},       hyphenation = {ngerman},     }      **EDIT 2:** I see now, you have turned everything upside down so it fits its semantic purpose. And biblatex-apa is a little inconsistent using `title` for title but using `origtitle` for title if there is a selfmade translation which is filled in as `title`. Anyway this is what everyone is using right now. We can just add up missing pieces using unused fields. Here is my try with `reprinttitle`:               \documentclass{scrbook}     \usepackage[american,english,ngerman]{babel}     \usepackage[style=apa,backend=biber,bibencoding=utf8,babel=other]{biblatex}     \usepackage[autopunct=true,autostyle=true,german=guillemets,english=american]{csquotes}     \bibliography{test.bib}             \DeclareLanguageMapping{american}{american-apa}     \DeclareLanguageMapping{ngerman}{ngerman-apa}          \DeclareFieldFormat{origyear}{%      \mkbibparens{\bibcpstring{origyear}~\thefield{origyear}%      \ifnameundef{origauthor}        {}        {\addspace als \printnames[author]{origauthor}}%      \iffieldundef{reprinttitle}        {}%        {\ifnameundef{origauthor}          {\setunit{\addcolon\addspace}}          {\setunit{\addcomma\addspace}}%          \printfield{reprinttitle}}}%      }          \renewbibmacro*{origyear}{%       \ifthenelse{           \NOT\iffieldsequal{labelyear}{origdateyear}         \OR           \NOT\iffieldsequal{title}{reprinttitle}         \OR           \NOT\ifnamesequal{author}{origauthor}         }         {\printfield{origyear}}         {}%     }          \begin{document}     \textcite{testentry}     \printbibliography      \end{document}      test.bib:               @BOOK{testentry,       author = {Adam Smith},       title = {Die Liebe},       subtitle = {in all ihren Formen},       origtitle = {L'amour},       location = {Paris},       publisher = {Alfons},       date = {1994},       origdate = {1988},       origauthor = {Adam Smith},       titleaddon = {Special issue},       reprinttitle = {Love},       hyphenation = {ngerman},     }      Now it looks like: > Smith, A. (1994). _L'amour_ [Die Liebe: in all ihren Formen] [Special > issue]. Paris: Alfons. (Original erschienen 1988 als Smith, A., Love). **Things to do:** "als" would also need to be a key that is "als" in a German bibliography and "as" in an English bibliography. The author's name is Surname, F. but should be F. Surname. I would be glad if you could elaborate on that.


title: TeXstudio 2.6.2 internal pdf previewer

text: How to disable continuous view in the internal previever? I need it to preview beamer presentations properly. I have TeXstudio 2.6.2 installed on Lubuntu 13.04


title: Missing $ inserted. <inserted text> on a math algorithm

text: I've made the following pseudocode:               \documentclass[]{article}     \usepackage[]{algorithm2e}          \begin{document}          \title{Title}     \author{Author}     \date{Today}     \maketitle          \begin{algorithm}[H]     pseudoalgoritmo GRASP(maxIt, seed)\;      \For{k = 1, ..., itmax }{     solucion \leftarrow faseConstructiva(seed):\;          solucion \leftarrow busquedaLocal(solucion);\;          ActualizarSolucion (solucion, mejorSolucion)\;     }     return mejorSolucion\;     \caption{Pseudoalgoritmo GRASP}     \end{algorithm}          \end{document}      And I'm getting the `Missing $ inserted. <inserted text>` error at the line where the `for`statement closes. How can I fix it? Thanks in advance.


title: How can I horizontally align an image created with psmatrix?

text: I've got an image created with `psmatrix` code and I would like to put it at 1/4 of the text width. Using `\centering` in the image environment it gets too far to the right. I'm sorry but my code is a mess ;)               \documentclass{article}     \usepackage[italian]{babel}          \usepackage{pst-node}     \usepackage{caption}     \usepackage[showframe=true]{geometry}          \begin{document}      \begin{figure}[htbp]      \psscalebox{1}{     $       \begin{psmatrix}[framesep=5pt,colsep=2cm]           & \psframebox[]{SET~T_1} \\             \psframebox[]{SET~T_2} & \psframebox[]{IMT}\\            & \psframebox[]{SEM}          \psset{arrows=->,nodesep=5pt}           \ncline{1,2}{2,2}           \naput{\textit{flusso di energia chimica}}\nbput{\begin{minipage}{1.5cm}\begin{center}\boldmath{$\dot{m}_cH_i$ }\end{center}\end{minipage}}             \ncline{2,2}{2,1}\nbput{\textit{perdite}}           \ncline{2,2}{3,2}           \naput{\textit{potenza meccanica utile all'asse}}\nbput{\begin{minipage}       {1.5cm}\begin{center}\boldmath{$P_u$ }\end{center}\end{minipage}}       \end{psmatrix}          $}         \end{figure}     \end{document}


title: longtable multirow problem with cline and nopagebreak

text: I have a problem using with the package lontable and multirow together. It seems that the \* is not avoiding the page breack, if I'm using \cline{i-j} just afterwards. Here the original code for test.pdf:               \documentclass{article}     \usepackage{longtable}     \usepackage{multirow}     \begin{document}     \begin{longtable}{|c|p{1cm}|p{2cm}|p{5cm}|}     \hline     {} & {\bf ID} & {\bf name} & {\bf short Description} \\ \hline     \multirow{2}{*}{\bf 1} & \multirow{2}{*}{test1} & {name}& {short descrition} \\* \cline{3-4}     & & \multicolumn{2}{c|}{detailed description} \\ \hline     ....     \multirow{2}{*}{\bf 21} & \multirow{2}{*}{test1} & {name}& {short descrition} \\* \cline{3-4}     & & \multicolumn{2}{c|}{detailed description} \\ \hline     \multirow{2}{*}{\bf 22} & \multirow{2}{*}{test1} & {name}& {short descrition} \\* \cline{3-4}     & & \multicolumn{2}{c|}{detailed description} \\ \hline     \multirow{2}{*}{\bf 23} & \multirow{2}{*}{test1} & {name}& {short descrition} \\* \cline{3-4}     & & \multicolumn{2}{c|}{detailed description} \\ \hline     ....     \multirow{2}{*}{\bf 35} & \multirow{2}{*}{test1} & {name}& {short descrition} \\* \cline{3-4}     & & \multicolumn{2}{c|}{detailed description} \\ \hline     \end{longtable}     \end{document}      Each record of this table is composed by 2 lines. The results of this code is to break the record 22 in two pages: first line in page 1 and second line in page 2. That means that \* is not working properly. \* seems to work correct if I remove \cline{2-4] corresponding to the record 22. This is the source code:               \documentclass{article}     \usepackage{longtable}     \usepackage{multirow}     \textheight=5\baselineskip     \begin{document}     \begin{longtable}{|c|p{1cm}|p{2cm}|p{5cm}|}     \hline     {} & {\bf ID} & {\bf name} & {\bf short Description} \\ \hline     \multirow{2}{*}{\bf 1} & \multirow{2}{*}{test1} & {name}& {short descrition} \\* \cline{3-4}     & & \multicolumn{2}{c|}{detailed description} \\ \hline     \multirow{2}{*}{\bf 21} & \multirow{2}{*}{test1} & {name}& {short descrition} \\* \cline{3-4}     & & \multicolumn{2}{c|}{detailed description} \\ \hline     \multirow{2}{*}{\bf 22} & \multirow{2}{*}{test1} & {name}& {short descrition} \\*     & & \multicolumn{2}{c|}{detailed description} \\ \hline     \multirow{2}{*}{\bf 23} & \multirow{2}{*}{test1} & {name}& {short descrition} \\* \cline{3-4}     & & \multicolumn{2}{c|}{detailed description} \\ \hline     \multirow{2}{*}{\bf 35} & \multirow{2}{*}{test1} & {name}& {short descrition} \\* \cline{3-4}     & & \multicolumn{2}{c|}{detailed description} \\ \hline     \end{longtable}     \end{document}      The record 22 is not divided in two pages anymore, but it there is no cline. How can I maintain the partial horizontal line, and at the same time avoid the pagebreack?


title: Alignment of the bar labels of ganttbar

text: The labels of `\ganttbar` in `pgfgantt` are right aligned by default (at the border of chart). Is it possible to have it left aligned?


title: How to converge various nodes with rectangular shapes and arrow in TikZ?

text: I'm very new to TikZ. I would like to join some nodes as shown in the attached image ![enter image description here](http://i.stack.imgur.com/v1k0x.jpg) I've got some idea from this thread tree rectangular. However, I could not manage to implement this properly with the arrow. I would appreciate if you share your comments/suggestion to implement this.


title: Hyperlink in Beamer

text: I have used `hyperlink(say fig.pdf)` for my presentation in main pdf. In the `fig.pdf` I have again used `hyperlink` to main document. But my problem is when I come back to main document its starting from first page. I should come back to the slide where I left. In ubuntu document viewer its working fine but in the Acrobat Reader it always go to first page. Any settings which has to be done in Acrobat Reader?????


title: Integrating equation into Google Docs

text: I'm just wondering whether or not it is possible to have LaTeX equations inside my Google doc? At the moment, I'm including images of the equation which isn't really the desired method I would like to choose. For example: `Y[n] = X[n] - 0.95 \cdot X[n - 1] \hspace{.5in} (1)` Whenever I insert the above into the equation editor, it does not format correctly, or, show up, just shows up as the raw code. Any ideas or suggestions would be most welcome.


title: Questions on basic LaTeX typesetting in mathematics

text: I have one or two elementary questions on basic LaTeX typesetting:   1. I know putting `$$...$$` sign puts the mathematical expression in the middle (center), but what if I also want to center the mathematical expression as well as some (English) texts, say for example, I want to center the whole line                       We know $x^2\to 4$ as $x\to 2$.       How do I center the whole English plus mathematics expression together in the middle of the page?   2. How do I write, using `$$...$$`, the following in LaTeX:              (5) $lim_{x\to 2} x^2=4$      Again I can center the part: `$lim_{x\to 2} x^2=4$`, but how do I number it together and the number does NOT get centered, but rather appears as I wrote above?


title: Interaction between \hdotsfor and colortbl: Bug/Feature?

text: When using package `colortbl`, the command `\hdotsfor` fails (partially), leaving too much white space before and after the dotted part. The mwe               \documentclass{book}     \usepackage{colortbl}     \usepackage{amsmath}     \begin{document}         \[     \begin{pmatrix}         1&a_{11}&\dots&a_{1n}\\         \hdotsfor{4}\\         1&a_{r1}&\dots&a_{rn}         \end{pmatrix} = r.     \]     \end{document}      produces ![hdostsfor fails](http://i.stack.imgur.com/HFUDm.png) Removing the package `colortbl` makes everything right: ![hdotsfor is OK](http://i.stack.imgur.com/YrJoc.png) I understand this may be related to `\leader`s and/or _glue_ , which **are** explicitly mentioned in `colortbl`'s documentation, so maybe this is a feature and not a bug. **Question:** is there an easy workaround, bar removing `colortbl`?


title: Align multiline equation with expression after equal sign

text: I am trying to align a multiline equation using array within the equation but it turns out it doesn't do very well. The code I am using is as follows:               \begin{equation}\     \begin{array}{lcl}     \mathcal{L}^{-1}\left\{f(d)\right\} &= \mathcal{L}^{-1}\left\{f_1(\delta).f_2(\delta)\right\} \\     & = exp(mt) \star \left\{\frac{l}{2\sqrt{\pi t^3}} exp(-l^2/{4t})\right\} \\     & = F_1 * F_2     \end{array}     \end{equation}      Can anyone suggest better way to deal with it ?


title: How to draw an overlaid pages image for a Tikz flowchart node?

text: In Natural Language Processing and related disciplines, it's common to see an "overlaid pages" image included as a node in a flowchart of a system:                 _____      |  ___|__      | |   ___|___      | |  |       |      | |  |       |      |_|  |       |        |__|       |           |       |           |_______|      The image is meant to represent a corpus or some other large collection of text data. How can I draw something like this for a Tikz flowchart?


title: Chemfig reaction to wide for twocolumn

text: For a paper I have to describe certain reactions. I am using the chemfig package to do this. The paper has to be two columns and this is where it goes wrong. When I compile this reaction:               \documentclass[12pt,twocolumn]{article}          \usepackage{chemfig}     \usetikzlibrary{decorations.pathmorphing}     \usepackage{lipsum}          \begin{document}          \lipsum[1]          \begin{minipage}{0.5\columnwidth}     \schemestart[][west]     \chemfig{CO}     \+     \chemfig{M}     \arrow{->}     \chemfig{M-[:90,,,,decorate,decoration=snake]CO}     \arrow{->}     \chemfig{M-[:90,,,,decorate,decoration=snake]C}     \arrow{0}[,0]\+\arrow{0}[,0]     \chemfig{M-[:90,,,,decorate,decoration=snake]O}     \schemestop     \end{minipage}          \lipsum[2-4]     \end{document}      It is to wide to fit in one column. I have tried putting it in a minipage environment but it seems to ignore the minipage and remain the same size. Is there a way to make my reaction fit in one column?


title: traditional German sans-serif (and serif) blackboard-bold symbols

text: What I have always been looking for in LaTeX were traditional German sans- serif blackboard-bold letters, mainly for: N (natural numbers), Z (integers), Q (rational numbers), R (reals), C (complex numbers). These five symbols are used widely in German secondary-school math textbooks and in a type of book called "Formelsammlung" (a book that functions as a collection of formulas; usually secondary school students will use one for math and physics each). The most widely used Formelsammlung was (for a long time at least) "Mathematische Formeln / Erweiterte Ausgabe E" by Sieber/Klett. The standard array of German textbook publishers (such as Cornelsen and Klett; I'm afraid I don't remember which math textbook my school used) always styled the blackboard-bold letters in a particular, uniform way: **for sans-serif letters this was with the doublestroke having equal strength as the one that it is doubling, and also without a connection to the original stroke (for vertical-ish doubled strokes)**. The symbols look very similar (and are I think homotopy-equivalent (a notion from topology)) to the ones of `dsfont`'s `sans` option (`\\(\mathds{N},\mathds{Z},\mathds{Q},\mathds{R},\mathds{C}\\)`), except I see that the vertical stroke for "Q" is rendered imperfectly in my viewer (the vertical stroke is not perfectly connected at the bottom) but not all viewers it seems; also for "A" we'd expect the doubled stroke to be on the left (though technically German secondary school math has no precedent here, since "A" is not commonly used to denote a specific set). **Important:** After initially posting my question, I do believe to remember that there are _both_ sans-serif and serif styles in standard German schoolbooks and (at least lower-division) math textbooks. As for serif letters, the `\varmathbb` symbols of the `txfonts` package look very close to what I remember. (I initially thought that the doubled stroke for at least Z was too thin there, but now I don't remember whether this perhaps applied only to the German sans-serif style.) **Is anyone aware of a DIN standard defining the proper symbols?** I suspect there might be one. **Much more importantly, is anyone aware of a font for (La)TeX that provides the type of blackboard bold symbols that are commonly used in German school literature for both (a) sans-serif and (b) serif styles?** (I can not find online scans of this literature and do not have easy access to it right now. If someone else can help out here that would be much appreciated.)


title: Syntax for the node command

text: Look at the two diagrams at the top of page 50 and the diagram at the top of page 220 in the manual at the following web site. http://mirrors.rit.edu/CTAN/graphics/pgf/base/doc/pgfmanual.pdf I have two questions about these diagrams. For the diagram on page 50, here is the code.               \begin{tikzpicture}          [place/.style={circle,draw=blue!50,fill=blue!20,thick},     transition/.style={rectangle,draw=black!50,fill=black!20,thick}]     \node at (0,2) [place] {};     \node at (0,1) [place] {};     \node at (0,0) [place] {};     \node at (1,1)[transition] {};     \node at(-1,1)[transition] {};          \end{tikzpicture}      For the diagram on page 220, here is the code.               \begin{tikzpicture}     \draw          (0,0) node[inner sep=0pt,draw] {tight}     (0cm,2em) node[inner sep=5pt,draw] {loose}     (0cm,4em) node[fill=yellow!80!black] {default};          \end{tikzpicture}      On page 50, it seems to me that variables "place" and "transition are being declared. What is the sytax for the `/.style` command? I could have written               \node at (0,2) [circle,draw=blue!50,fill=blue!20,thick] {}      instead of               \node at (0,2) [place] {};  .      Is that right? When does one use `node` as was used on page 220 and when does one use `\node` as on page 50? On page 220, why does TikZ draw a rectangle about the given text? I have three questions about the syntax for the code on page 50.   * The rectangle is drawn with `black!50`. Is there a `black50`?   * Why is there an exclamation point?   * To what is `thick` referring?


title: AUCTeX and XeTeX

text: I use Emacs+AUCTeX to write my *-tex. Using the PDF mode, I can run pdfTeX automatically with the `C-c C-c` command. However, I don't see a way to run XeTeX automatically, or even set up a command option in the drop down window. My LISP skills are very rusty, and I was wondering if someone had a `tex.el` patch to enable XeTeX support ?


title: Line emanating from a point

text: I have six lines emanating from a single point or six lines converging to a single point. Is there any simple way to write one line code in TikZ? Basically, I have this code and I want to reduce the number of lines. I know I can use options for node               \documentclass{article}     \usepackage{pgfplots,tikz}     \usetikzlibrary{       positioning,       snakes,       shapes,       shadows     }     \begin{document}     \begin{tikzpicture}     \draw[fill=green!80] (0,0) circle (1);     \draw[fill=black](0,0)circle(0.5ex) node[right]{Access Point};     \draw[fill=blue!50] (1,3)--+(300:5) arc (300:330:5)--cycle;     \draw(3,1.5) node{Main Beam};     \draw[fill=black](1,3) circle(0.5ex) node[above]{Base Station};     \node[draw,star,fill=black,scale=0.3] at (4,0){};     \draw(4,0) node[above] {Cell User};     \draw(55:0.5) node[rectangle,fill=black,scale=0.5](a){};     \draw(120:0.8) node[rectangle,fill=black,scale=0.5](b){};     \draw(210:0.7) node[rectangle,fill=black,scale=0.5](c){};     \draw(235:0.3) node[rectangle,fill=black,scale=0.5](d){};     \draw(275:0.8) node[rectangle,fill=black,scale=0.5](e){};     \draw(320:0.6) node[rectangle,fill=black,scale=0.5](f){};     \draw[-,dashed](-2,0)--++(a);     \draw[-,dashed](-2,0)--++(b);     \draw[-,dashed](-2,0)--++(c);     \draw[-,dashed](-2,0)--++(d);     \draw[-,dashed](-2,0)--++(e);     \draw[-,dashed](-2,0)--++(f);     \node[left] at(-2,0){Sensing Devices};     \end{tikzpicture}     \end{document}


title: APA6: \citeauthor adds only the first author when citing a source for the first time

text: When citing a group of 3 to 5 authors for the first time in a paper using the document class `apa6`, the command `\citeauthor` adds only the first author followed by "et al.". The APA manuscript guidelines (6th version) require to refer to all authors in the first citation of the document. `\textcite` and `\parencite` work as expected, though. This is what I get: ![wrong](http://i.stack.imgur.com/Oxv9k.png) This is how it should look like: ![right](http://i.stack.imgur.com/6RE7S.png) Here my example:               \documentclass[man]{apa6}          \usepackage[american]{babel}     \usepackage[utf8]{inputenc}          \usepackage[style=apa, backend=biber,doi,url]{biblatex}     \DeclareLanguageMapping{american}{american-apa}          \begin{filecontents}{literature.bib}     @article{foobar,       Author = {Foo, A. and Bar, B. and Baz, C.},       Journal = {Journal of Foo},       Pages = {1--2},       Title = {Foo is bar},       Volume = {1},       Year = {1999}     }     \end{filecontents}     \addbibresource{literature.bib}          \shorttitle{foo}          \begin{document}          \citeauthor{foobar}     % \textcite{foobar}               \end{document}


title: pgfkeys - .is family handler

text: This might seem a trivial question, but not for someone wanting to understand **pgfkeys** very well. In the following definition from pgfkeys package, why can't the `\edef` be replaced by `\def`? I have asked a pgfkeys master this question before but apparently he didn't get the question correctly, since I mixed it with other issues.               \pgfkeys{%         /handlers/.is family/.code=         \pgfkeys{\pgfkeyscurrentpath/.ecode=           \edef\noexpand\pgfkeysdefaultpath{\pgfkeyscurrentpath/}         }     }      The following gives me the same result even as `\edef` is replaced by `\def`. Am I right?               \pgfkeys{%         /handlers/.is family/.code=         \pgfkeys{\pgfkeyscurrentpath/.ecode=           \def\noexpand\pgfkeysdefaultpath{\pgfkeyscurrentpath/}         }     }          \def\firstlayerfam{/fam/subfam}     \def\secondlayerfam{\firstlayerfam}     \def\family{\secondlayerfam}          \pgfkeys{       \family/.is family,       \family % This changes the path even without '.cd'. OK!     }      **EDIT** The reason I see is in the following               \long\def\pgfkeys@unpack#1=#2=#3\pgfkeys@stop{%       \pgfkeys@spdef\pgfkeyscurrentkey{#1}%        % The following \edef is crucial. In fact, it should come before the last line        % (ie, before calling the Carlisle despacer \pgfkeys@spdef). Because if #1 is        % a macro, the content may be the one that carries spurious leading and         % trailing spaces. Without expansion, \pgfkeys@add@path@as@needed may even add         % default path when it isn't needed. See below.        \edef\pgfkeyscurrentkey{\pgfkeyscurrentkey}%        \ifx\pgfkeyscurrentkey\pgfkeys@empty%         % Skip       \else         \pgfkeys@add@path@as@needed         \pgfkeys@spdef\pgfkeyscurrentvalue{#2}%         \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text% Hmm... no value           \pgfkeysifdefined{\pgfkeyscurrentkey/.@def}%           {\pgfkeysgetvalue{\pgfkeyscurrentkey/.@def}{\pgfkeyscurrentvalue}}%           {}% no default, so leave it         \fi%         \ifx\pgfkeyscurrentvalue\pgfkeysvaluerequired%           \pgfkeysvalueof{/errors/value required/.@cmd}%            \pgfkeyscurrentkey\pgfkeyscurrentvalue\pgfeov%         \else%           \pgfkeys@case@one%         \fi%       \fi     }      Trace log:               {changing \pgfkeyscurrentkey=macro:->\family /.is family}     {into \pgfkeyscurrentkey=macro:->//fam/subfam/.is family}


title: Weird behaviour in Texmaker (Changing the papersize)

text: I'm trying to change the page size in a tex document (I want a letterpaper size). I'm using Texmaker and the sequence Latex -> Dvips -> ps2pdf and my code is               \documentclass[letterpaper]{report}     \begin{document}     \special{papersize= 8.4in, 11in}     test     \end{document}      Now... whichever value I choose in the code line \special{papersize= 8.4in, 11in} for the width (in this case 8.4in) my result is as it should be. In the present example the pdf comes out with pages with dimensions 8.4in and 11in. But, when I choose the pair 8.5in and 11in the outputed pdf has a4 size. What's going on? Thank you.


title: What is bad in these lines with listings?

text: How is bad in the line 28 (AppendTo....)? LATEX tell me that"missing $"               \documentclass[a4paper,12pt]{scrartcl}     \usepackage[utf8,latin1]{inputenc}     \usepackage{listings,xcolor}     %\usepackage{listingsutf8}     \usepackage[T1]{fontenc}     \usepackage[spanish]{babel}          \input{listings-spa.tex}     \lstset{language=Mathematica}     \lstset{basicstyle={\sffamily\footnotesize},       numbers=left,       numberstyle=\tiny\color{gray},       numbersep=5pt,       breaklines=true,       captionpos={t},       frame={lines},       rulecolor=\color{black},       framerule=0.5pt,       columns=flexible,       tabsize=2     }          \begin{document}     %\lstset{inputencoding=utf8/latin1}       \begin{lstlisting}[language=Mathematica,caption={Example code}]       Do[Print["número=number -> ",i],{i,1,10}];              AppendTo[bigstat, Last[x]](*    Añadimos la propuesta de solución del algoritmo Codicioso a la lista bistat donde almacenamos todas lassolcuiones propuestas en cada ejecución del mismo. *)    , {p, 1, simulaciones}  (\* Numero de simulaciones \*)         ];             Which[opneigh == 1, bigstatbestn2 = bigstat, opneigh == 2,         bigstatbestn6 = bigstat];(* Almacenamos en bigstatn2,6 o t,        TODOS los puntos que el algoritmo codicioso da como propuessta de \     solución en cada una de las simulaciones hechas         La opción=1 indica que consideramos vecindarios de 2 vecinos;        opción=2 vecindario de 6 vecinos; opcion=3,        vecindarios de todos los vecinos *)        Clear[bigstat](*        Borramos bigstat dado que ya lo tenemos almacenado en la \     correspondiente lista para el analisis finales despues *)        , {opneigh, 1, 2}        ] ; (* 1.- con 2 vecinos    2.-con6 vecinos    *)           Button[" Generar Simulacion", astart = ! astart],      Style["Versión 1.35b", Darker@Blue, 12],      Style["Mika Ike . m@gmail.com)", Blue,       TextAlignment -> Right, 11]      , ControlPlacement -> Right, Initialization -> (astart = True),      TrackedSymbols :> {astart}]            \end{lstlisting}     \end{document}       listing-spa is to solve the problem af characters á, í, ñ, ... https://www.dropbox.com/s/4mip8tkayotqpoj/listings-spa.tex from Tomas message How to insert code with accents with listings?


title: Sublime Text 2 for Plain TeX?

text: I'm currently working on a project that requires plain TeX, not LaTeX. Is it possible to configure Sublime Text 2 to compile plain TeX?


title: bibdata command

text: My `.aux` file says `\bibdata{all}`. How can I find out which of several files named `all.bib` is being interrogated? Presumably this depends on some path defined in my copy of TeX. How do I find out which path is being used by BibTeX? Is there a way of persuading BibTeX to give the full path name of the database it is using, just as the TeX `.log` file gives the full path names of the files it is using? How does one make an enhancement request?


title: Why is \patchcmd not working when also using \@ifclassloaded?

text: Why do these two MWEs produce different effects?               \documentclass{article}     \usepackage{etoolbox}     \makeatletter     \def\aeloaded{Not loaded}     \def\aechanged{Not changed}     \patchcmd{\l@section}              {#1\nobreak\hfil}              {#1\nobreak                \xleaders\hbox{$\m@th                 \mkern \@dotsep mu\hbox{--}\mkern \@dotsep                 mu$}               \hfil}              {\def\aechanged{Yes}}              {\def\aechanged{No}}%     \def\aeloaded{LOADED}     \makeatother     \pagestyle{empty}     \begin{document}          \begin{tabular}{ll}     Did \verb=article.cls= load? & \aeloaded \\     Did \verb=\patchcmd=  work?   & \aechanged     \end{tabular}          \end{document}      which generates: ![enter image description here](http://i.stack.imgur.com/m0UmE.png) But,               \documentclass{article}     \usepackage{etoolbox}     \makeatletter     \def\aeloaded{Not loaded}     \def\aechanged{Not changed}     \@ifclassloaded{article}       {\patchcmd{\l@section}                 {#1\nobreak\hfil}                 {#1\nobreak                   \xleaders\hbox{$\m@th                    \mkern \@dotsep mu\hbox{--}\mkern \@dotsep                    mu$}                  \hfil}                 {\def\aechanged{Yes}}                 {\def\aechanged{No}}%        \def\aeloaded{LOADED}      }{\def\aeloaded{load FAILED}}     \makeatother     \pagestyle{empty}     \begin{document}          \begin{tabular}{ll}     Did \verb=article.cls= load? & \aeloaded \\     Did \verb=\patchcmd=  work?   & \aechanged     \end{tabular}          \end{document}      generates: ![enter image description here](http://i.stack.imgur.com/16gbC.png)


title: How to make dcases environment work in LaTeX

text: I'm using Kile (kde4) on Mac OS. I can use the `cases` environment just fine but my version of Kile doesn't have `dcases`. I'm using Kile via MacPorts. Does anyone know of a way to update my distribution so I can access this environment? I'm not too good with MacPorts so I haven't really touched it after following the directions to get it installed. Or is there a quick/lazy fix I could do, like maybe defining my own command to do the same things as `dcases`?


title: Input manually a number into \eqref

text: Often while writing papers I find the need to cite particular equations from other papers. For example, the landmark paper by Einstein, Newton, and White (2015) lays out the theory of everything in the equation immutably numbered 42. In some other paper I'd like to cite this equation by number, using _exactly_ the same formatting that would be applied to `\eqref` from `amsmath`, whatever that may be. Essentially, I want to be able to say something like               One can see that \eqref{eq:my_above_equation} above is a specific case of     \pseudoeqref{42} from \citet{ENW2015}.      The two equation numbers should be typeset identically. I _could_ just hard- code in the (admittedly simple) formatting, but this seems against the spirit of LaTeX, with the same formatting being done both automatically and manually in different places. It also occurred to me to create a ghost equation somewhere at the end of the document, manually set its number, and give it a normal `\label{}`, but this idea seems wrong on many levels. **Is there a simple solution for matching the format of`eqref` but with hard- coded equation numbers?**


title: Tabularx moving table to next page, ignoring optional arguments

text: Using the `tabularx` and `booktabs` packages to include tables I have a problem in my Appendix. A table, when inserted, appears on the start of the next page, above the next appendix's designation and title. I have tried adding optional arguments as follows: [h] does nothing (it still moves to the next page) [t] positions the table above the Section title [!] positions the table above the Section title I have tried creating an MWE but the effect is not reproduced, i.e., the MWE positions the table correctly, even though I copied the code from my actual file. Here is the MWE (even though it acts correctly):               \documentclass{article}          \usepackage{titlesec}     \titleformat{\section}{\large}{\thesection}{1em}{}     \titlespacing{\section}{0pt}{2.5ex}{2.5ex}     \titleformat{\subsection}{\small}{\thesubsection}{1em}{}     \titlespacing{\subsection}{0pt}{2.5ex}{0ex}     \titleformat{\subsubsection}{\sffamily\itshape}{\thesubsubsection}{1em}{}     \titlespacing{\subsubsection}{0pt}{1.5ex}{0ex}     \titleformat{\paragraph}[runin]{\normalfont\normalsize}{\theparagraph}{1em}{}     \titleformat{\subparagraph}[runin]{\normalfont\normalsize}{\thesubparagraph}{1em}{}          \usepackage{lipsum}          \usepackage{appendix}          \usepackage{tabularx}     \usepackage{booktabs}          \title{Minimal Working Example}     \date{}     \author{Author}          \begin{document}     \maketitle          \section{Section 1}          \lipsum[1]          % APPENDIX     \newpage     \appendix     \appendixpage     \addappheadtotoc          \section{Appendix 1}     \label{app:1}                    \newpage     \section{Appendix 2}     \label{app:2}          \begin{table}[h]     \caption{Heading} \label{tab:table}     \centering     \sffamily     \begin{tabularx}{0.90\textwidth}{ X X X }     \toprule         \multicolumn{3}{ c }{Multicolumn} \\         \textbf{1}  & \textbf{2}    & \textbf{3} \\              \bottomrule     \end{tabularx}     \end{table}          \newpage     \section{Appendix 3}     \label{app:3}          \end{document}      Any ideas on what's causing the odd behaviour? Edit: I have changed my real file to the following format:               \clearpage     \section{Title}     \label{app:table}               \begin{center}     \begin{tabular}{c c c}         \multicolumn{3}{ c }{Heading} \\         \textbf{1}  & \textbf{2}    & \textbf{3} \\              \end{tabular}     \end{center}      Which makes it place the table in the correct location, but this does not work with the `booktabs` package, which makes it an unacceptable solution.


title: Tikz in Beamer: Giving up on this path. Did you forget a semicolon?

text: I'm trying to add a very big graph in Beamer. However, it returns > Package tikz Error: Giving up on this path. Did you forge t a semicolon?. Here is a small part of my code                \documentclass{beamer}              \usepackage{tikz}         \usetikzlibrary{arrows}         \tikzset{           treenode/.style = {align=center, inner sep=0pt, text centered,             font=\sffamily},           arn_n/.style = {treenode, circle,black, draw=black, text width=1.3em}%          }              \begin{document}         \begin{frame}         \frametitle{Paragraphs of Text}         $\bf{Step \ 0 }$         \begin{tikzpicture}[->,>=stealth',level distance = 2.5cm,         level 1/.style={sibling distance=5.75cm},         level 2/.style={sibling distance=1.95cm},         level 3/.style={sibling distance=0.6cm}]          \node [arn_n] {}             child{ node [arn_n] {}                      child{ node [arn_n] {}                          child{ node [arn_n] {} }                                      child{ node [arn_n] {}                                     }                                     child{ node [arn_n] {}                                     }                     }                                        }              \end{tikzpicture}         \end{frame}      How to fix it? * * * update: I have add ; but it still returns error. \begin{frame} \frametitle{Paragraphs of Text}               \begin{tikzpicture}[->,>=stealth',level distance = 2.5cm,     level 1/.style={sibling distance=5.75cm},     level 2/.style={sibling distance=1.95cm},     level 3/.style={sibling distance=0.6cm}]      \node [arn_n] {}         child{ node [arn_n] {} ;                 child{ node [arn_n] {}                      child{ node [arn_n] {} };                                  child{ node [arn_n] {}                                 };                                 child{ node [arn_n] {}                                 };                 };                                     };      \end{tikzpicture}          \end{frame}      > Missing $ inserted. $ l.137 \end{frame}


title: Differences between SIunits and siunitx packages

text: I was reviewing What packages do people load by default in LaTeX?, and noticed that the `siunitx` package was recommended. I have been using `\usepackage[mediumspace,mediumqspace,squaren,binary]{SIunits}`. So, what are the differences between these two packages? Has the `SIUnits` been deprecated? Are there anything to watch out for when switching from `SIUnits` to `siunitx`? Ideally I would like to use a package that takes care of non-SI units as well, such as miles, lbs, Fahrenheit temperature, etc.


title: Customizing citation style

text: A quick follow-up to question to Customize citation style, basically. Right now I am defining a custom command like this               \newcommand{\mycite}[1]{\cite{#1}}      How should I modify it to produce an output like "[1.]"? It should also work with multiple arguments and then output "[1, 2, 3.]". Or if not modifying the command presented, would an easier way exist?


title: How can I make references to the glossary more explicit to the reader (of a hard copy)?

text: I have included a glossary as a separate chapter at the end of my thesis. This chapter lists new terms defined by me. To refer to the glossary in other chapters, I used the `\gls` command, which creates a hyperlink between an occurence of a given "term" in the text and its corresponding glossary entrie(s). This hyperlink clearly signals to the reader of a **soft copy (PDF)** when I'm referring to the glossary. However, if the reader only has a **hard copy** , there is no clear indication that a given term is defined in the glossary. My question is: is there a more explicit way of indicating to the reader that I'm referring to the glossary? I'm thinking along the lines of what the `\cite` command does when I refer to a bibliography entry...


title: Index, Indic words, XeLaTeX

text: I am hoping to learn how to make an index that displays words sorted in accordance with the Indic alphabet after having been input directly in Unicode.


title: Title and TableofContents in the first page, real contents from second page, how to make it?

text: I want the title and table of contents in the first page, and the real contents start from the second page. But when i use \tableofcontents, all title, TOC, and contents are in the first page. How can I make the contents start from the second page? And i use article template.               ...     \title{The title is here}     \author{OUR TEAM}     \date{}      \begin{document}     \maketitle     \tableofcontents          \section{blablabla...}     ...


title: IEEEtran BibTeX Style - how to deactivate URLs?

text: I am using the following BibTeX style for my bibliography.                  \bibliographystyle{IEEEtran}        \bibliography{IEEEabrv,references,thesis}      This formats bibliography entries like this: ![enter image description here](http://i.stack.imgur.com/ihatn.png) , including a hyperlink to the web if provided. For brevity, I don't want it to show the URLs. How can I deactivate them? EDIT: Let me clarify - I want to save space by not showing the URL, although the BibTeX entry for the publication contains a URL.


title: a couple of questions on xy-pic

text: I used xy-pic to typeset the following (long exact sequence)               \[ \xymatrix@1{ \cdots \ \ar[r] & \widetilde{H}_n(A) \ar[r]^{i_*} & \widetilde{H}_n(X)  \ar[r]^{j_*} & \widetilde{H}_n(X/A) \ar[r]^{\partial} & \widetilde{H}_{n-1}(A) \ar[r] & \ \cdots \ \ar[r] &  \widetilde{H}_0(X/A) \ar[r] & 0  } \]       I was wondering if there is a (simple) way of equating each entry with something below it, in other words I would like a (short) vertical equals sign below each entry and something below that. I looked at the guide but I can't find where it explains how to do this. Also, one more thing: is there a way to control the arrow length? I couldn't find this either... Thank you very much for your help.


title: Formatting Equation Numbers

text: I need the numbers of equations and brackets around to be in bold. Doing like this               \usepackage{etoolbox}     \pretocmd{\theequation}{\bf}{}{}      only the number is produced in bold, how to bold brackets? And second question. I want my references to equations also to be with bolded brackets automatically, how to do this?


title: Measure total glue in a box

text: Someone gives me a box, and my goal is to know as much as possible about the amount of glue inside that box. I can assume that the box is not huge, but it may contain arbitrary stuff (so I cannot deconstruct the box using `\unskip` and friends). For definiteness, say that the box `\mybox` was defined with `\newbox\mybox` then constructed using `\setbox\mybox\hbox to 50pt{a b c}`. To get the natural width of the box's contents, I can do `\setbox0\hbox{\unhcopy\mybox}\showthe\wd0` (and I'll get `21.66669pt`). To know if the box contains infinite stretch I can typeset it inside a box of width `\maxdimen` and check for the badness (well, that's not entirely fool- proof, but should be ok), and similarly for infinite shrink. What I'd be interested in is to know the stretch or shrink in the finite case. My feeling is that it should be possible to extract that by checking the `\badness` after `\setbox0\hbox spread \somedim{\unhcopy\mybox}` with various `\somedim`. Is this correct? Is there a more efficient approach?


title: Problem with lstlisting in beamer... What am I doing wrong?

text: I am trying to to put an `lstlisting` environment in the left column, but I'm getting errors. Are `lstlisting` and the `columns` environment in `beamer` incompatible? Or is it something else?               \documentclass{beamer}          \usepackage{remreset}     \usepackage{comment} % end and begin comment     \usepackage{dtklogos} % for \BibTeX          \usepackage{listings} % display code on slides; don't forget [fragile] option after \begin{frame}     \usepackage{bera} % pause in listing     \usepackage{color}     \definecolor{lightgrey}{rgb}{0.92,0.92,0.92} % defining color for listing     \definecolor{darkgreen}{rgb}{0,0.6,0} % defining color for listing          \usepackage{graphicx} % importing figure          \usepackage{verbatim} % writing code           \makeatletter     \@removefromreset{subsection}{section} % creates navigation circles for every slide not section     \makeatother     \setcounter{subsection}{1} % creates navigation circles for every slide not section          \usetheme{Frankfurt}          \lstset{language=[LaTeX]TeX,     basicstyle=\small\ttfamily,     texcsstyle=*\bf\color{blue},     numbers=left,     breaklines=true,     keywordstyle=\color{darkgreen},     commentstyle=\color{red},     otherkeywords={$},     frame=leftline,     tabsize=2,     backgroundcolor=\color{lightgrey},     escapeinside=||     }          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{document}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \begin{frame}     \begin{columns}          \begin{column}{5cm}     \begin{lstlisting}[float=*]     \pause     \end{lstlisting}     \end{column}          \begin{column}{5cm}     text     \end{column}          \end{columns}          \end{frame}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \end{document}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


title: Vertical lines in a table

text: % Table generated by Excel2LaTeX from sheet 'paper2'     \begin{table}[htbp]       \centering       \caption{Comparison of the CCSHR estimators based on beta and logit-normal distributions}         \begin{tabular}{cc|ccc|ccc}     \toprule           &       & \multicolumn{3}{c}{CCSHR\_11} & \multicolumn{3}{c}{CCSHR\_12} \\     \midrule     \multicolumn{1}{c}{mu} & \multicolumn{1}{c}{sigma} & Beta  & Logit-normal & TRUE  & Beta  & Logit-normal & TRUE \\ \hline     \multicolumn{1}{c}{0} & \multicolumn{1}{c}{0.33} & 2.099 (0.134) & 2.106 (0.170) & 2.053 & 1.918 (0.129) & 1.915 (0.132) & 1.947 \\     \multicolumn{1}{c}{0} & \multicolumn{1}{c}{1.00} & 2.359 (0.170) & 2.348 (0.187) & 2.347 & 1.665 (0.134) & 1.677 (0.143) & 1.653 \\     (many lines omitted)     \bottomrule     \end{tabular}%     \label{tab:addlabel}%     \end{table}%      ![enter image description here](http://i.stack.imgur.com/bG4sO.png) Here are my LaTeX code for a table and the result. I intended to add vertical lines between the 2nd and 3rd columns and between 5th and 6th columns. But the 1st vertical line appears only in the 1st row and the 2nd vertical line is shown in the 2nd row and beyond. How can I modify these TeX code so that I can see both vertical lines at all rows? This code is generated from Excel2LaTeX add-in.


title: How to define a starred version of an environment in LaTeX

text: I am interested in defining a new environment in LaTeX that has a starred version. How is this done?