title: Chemnum sublabels in section-titles not working properly

text: ## Problem I'm encountering the problem, that sublabeling               \cmpd+{cmpd:main.sub}      does not work properly in section-titles, since the sublables are missing in section-titles and ToC. Its also not working with               \cmpd+{main.sub}      where I thought, that maybe the colon is making problems. Is this a known issue. And is there a simple way to fix this? * * * ## M(N)WE               \documentclass{article}          \usepackage{chemnum}          \begin{document}     \tableofcontents     %     \section{Compounds \cmpd+{cmpd:1.a} and \cmpd+{cmpd:1.b}}         Unfortunately, there is neither a differentiation between \cmpd{cmpd:1.a} and \cmpd{cmpd:1.b} in the section-title, nor in the ToC.     %     \end{document}      * * * ## LaTeX-Params   * Editor: **TeXstudio** (V: 2.7.0) (for the sake of completeness)   * Distribution: **MiKTeX** (V: 2.9.5105)   * Compiler: **LuaLaTeX**


title: \CheckBox with hyperref: not able to check it

text: I'm using this simple example:               \documentclass[hidelinks, english, a4paper, 11pt]{scrartcl}          \usepackage{hyperref}   % typeset hyperlinks     \usepackage[ngerman]{babel}          \begin{document}     \begin{Form}         \CheckBox[name=asd]{label}     \end{Form}     \end{document}      I understand it relies heavily on the PDF viewer, how those check boxes work, and how they appear. I can't seem to get this checkbox working. When I view this in Evince, the box just doesn't do anything when clicked. In Chrome, it creates a red square, which I think means it's checked, but I'm unsure. PDF.js (the PDF viewer inside Firefox) does absolutely nothing. I have yet to check with Adobe Acrobat Reader, but this is getting frustrating already. What I'm eventually trying to do, is create a form as a PDF, that can be filled out, and then printed, it is not meant to be sent like an online form. What I need, is the Box to be visible even when unchecked. The checked box should look like this: ⊠ (Unicode symbol U+22A0 "SQUARED TIMES") while the unchecked box should look like an empty box of the same kind. Since it doesn't work in any of the viewers that are readily available to me, I'm a bit at a loss here. This form should work in as many viewers as possible. Things like `\TextField{}` works fine. Please suggest me the best practice, if possible. I use `xelatex` on Linux (TeX Live 2014/dev)


title: Citing a Reprint of an Article in BibTeX

text: How do I cite a reprint of a given article? I want to cite the postscript of Lewis's Counterpart Theory & QML which only appears in his Philosophical Paper vol. 1. I have the info in my bibtex entry, but how do I get it to show up in my bibliography? Here is the entry:               @article{LewisCTQML,     Author = {David Lewis},     Date-Modified = {2007-03-24 18:24:14 -0400},     Journal = {Journal of Philosophy},     Pages = {113--26},     Reprintedin = {LewisPP1},     Reprintpages = {26--46},     Title = {Counterpart Theory and Quantified Modal Logic},     Volume = {65},     Year = {1968}}      But when I call it via `\citep{LewisCTQML}` it drops the reprint info from my references and only displays Author, Journal, Pages, Title, Volume, and Year. Is this something that is an easy fix? Do I just need to create a new entry for the reprint? Running `TeXShop` on Mac OS X 10.7.4, `BibTeX` with `natbib`, `BibDesk` to manage my `.bib`, and the `phil_review.bst` from http://tedsider.org/latex/phil_review.bst


title: Typesetting unicode phonetic signs

text: This discussion says that to use unicode phonetic signs one needs the following:               \documentclass{scrartcl}          \usepackage[T1]{fontenc}     \usepackage[T1]{tipa}     \usepackage[tipa]{ucs}     \usepackage[utf8x]{inputenc}          \begin{document}          fə'nɛtiks          \end{document}      Is there an easier way?


title: How to select specfic row for \DTLnewdbentry to apply to

text: After a pair of `\DTLnewrow`/`\DTLnewdbentry` which creates two rows with the `key1` data, I want to add the `key2` data to the earlier row. I thought that `\dtlgetrow{myDB}{1}` would make the current row the one with `rowid=1`, but that does not appear to be the case as the data just got added to second row. The MWE below yields: ![enter image description here](http://i.stack.imgur.com/j6mG0.png) **Question:** What do I replace instead of `\dtlgetrow{myDB}{1}` so that I obtain the results where `xprime` and `NULL` are swapped. Basically, how can I select which row is the current row for subsequent operations? ## Notes:   * A simple solution would be to change the order in which I do these operations, but I can't easily do that. ## Code:               \documentclass{article}     \usepackage{datatool}          \begin{document}     \DTLnewdb{myDB}          \DTLnewrow{myDB}% create first row     \DTLnewdbentry{myDB}{key1}{x}          \DTLnewrow{myDB}% create second row     \DTLnewdbentry{myDB}{key1}{y}          \dtlgetrow{myDB}{1}% ????? Thought this would make row 1 the current row          \DTLnewdbentry{myDB}{key2}{xprime}% This needs to be in the first row     \DTLdisplaydb{myDB}     \end{document}


title: How to make halo around node with shading?

text: I am trying to do this (do not pay attention to red line above blue node and line in the node): ![enter image description here](http://i.stack.imgur.com/K01C1.png) By so far i have this: ![enter image description here](http://i.stack.imgur.com/VTXFN.jpg) With this code:               \documentclass[tikz,12pt]{standalone}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english,french,russian]{babel}     \usepackage{chemfig}     \usepackage{mathptmx}     \usepackage{esvect}     \usepackage{tikz}     \usetikzlibrary{arrows,decorations.pathmorphing,decorations.pathreplacing,shadows,calc,decorations.markings}      \usetikzlibrary{shapes,shadows}     \usetikzlibrary{intersections}     \usetikzlibrary{positioning}     \definecolor{Green}{RGB}{0,220,70}     \tikzstyle{vecArrow} = [thick, decoration={markings,mark=at position     1 with {\arrow[semithick,fill=blue]{triangle 60}}}, double distance=1.8pt, shorten >= 5.5pt,     preaction = {decorate},     postaction = {draw,line width=1.4pt, white,shorten >= 4.5pt}]          \tikzstyle{vecArrowBlue} = [thick, decoration={markings, mark=at position        1 with {\arrow[semithick, fill=blue]{triangle 60}}},        double distance=1.4pt, shorten >= 5.5pt,        preaction = {decorate},        postaction = {draw, line width=1.4pt, blue, shorten >= 4.5pt}]          \begin{document}     \begin{tikzpicture}[font=\small,line width=1pt,node distance=0]     \tikzset{line width=2pt}          \node[draw,line width=2pt,rounded corners=4pt,minimum width=0.5cm, minimum height=.8cm,shade, shading=axis, top color=Green, bottom color=blue!80,shading angle=0,circular drop shadow={color=red!60!black}] (box) at (0,0) {};          \draw[vecArrowBlue] ($(box.south)+(0,3pt)$) to ($(box.north)-(0,3pt)$);     \end{tikzpicture}     \end{document}      Is there a way to make halo around node? I've tried shadow without any success. Thank you in advance.


title: Dotted line between glossary description and page number

text: Is it possible to have the standard glossary entry, but with page numbers aligned to the right and a dotted line between the end of the description and the first page number?


title: Common scale for pgfplots groupplot

text: The `groupplots` environment allows global values of `xmax` to be set. Is there a way to automatically select a common value for all plots in a group? For example, with the code below, the 4th plot does not have the same x-scale as the other 3 plots. Is it possible to have all 4 plots use the same x-axis without manually defining a maximum x value (in this case, '2')?               \documentclass{article}     \usepackage{pgfplots}     \usepgfplotslibrary{groupplots}     \begin{document}     \begin{tikzpicture}     \begin{groupplot}[group style={group size=2 by 2}]     \nextgroupplot     \addplot coordinates{(0,0)(1,1)(2,2)};     \nextgroupplot     \addplot coordinates{(0,2)(1,1)(2,0)};     \nextgroupplot     \addplot coordinates{(0,2)(1,1)(2,1)};     \nextgroupplot     \addplot coordinates{(0,2)(1,1)(1,0)};     \end{groupplot}     \end{tikzpicture}     \end{document}


title: TikZ: Adjust two words among each other by one character

text: I would like to create a logo in LaTeX. Here I need to adjust two words relative to each other by a chosen letter. Here is an example, where I'd like to get the two red characters exact among the other:               \documentclass{scrreprt}      \usepackage[T1]{fontenc}     \usepackage{selinput}     \SelectInputMappings{         adieresis={ä},         germandbls={ß},         Euro={€},     }     \usepackage{tikz}          \begin{document}           \begin{tikzpicture}             \node at (0, 0) [above] {Irg\textcolor{red}{e}ndeinWort};             \node at (0, 0) [below] {Hi\textcolor{red}{e}r};     \end{tikzpicture}          \end{document}      Do you have an idea how to do this without guessing the right values? Also it would be fine to have a solution independent from font size changes.


title: pgfplots: fill the volume under a 3d surface

text: I have a very simple 3d graph.               \begin{tikzpicture}          \begin{axis}[view={60}{20},     %axis equal image=true,     xlabel=$X(T)$, ylabel={$D(T)$}, zlabel={$V(T)$},     zmin=0     ]     \addplot3[surf,shader=flat,z buffer=sort,     samples=30,domain=0:100,y domain=0:100]     {x+y};      \end{axis}     \end{tikzpicture}      This code draws a surface. What I would like to see is the volume under the surface to be colored. Moreover I would like to label in some way the filled volume as "defaulted". I went through all the pages of the manual but could not find any solution. Does someone know how to do it? Thank you very much.


title: Ugly \usepackage{times} examples

text: I looked at the LaTeX template for a scientific journal and found that they are using the discouraged               \usepackage{times}      See, for example l2tabuen where it says > `times.sty` is obsolete (see psnfss2e [10]). It does set `\rmdefault` to > Times, `\sfdefault` to Helvetica, and `\ttdefault` to Courier. But it does > not use the corresponding mathematical fonts. What's more, Helvetica is not > scaled correctly which makes it appear too big in comparison. So if you want > to use the combination Times/Helvetica/Courier you should use: > > Replace: >   >   >     \usepackage{times} >   > > by >   >   >     \usepackage{mathptmx} >     \usepackage[scaled=.90]{helvet} >     \usepackage{courier} >   What are examples of where the ugliness of `times` is highly visible?


title: Hyphen separating symbols, without intervening spaces

text: What's the easiest/least ugly way to avoid the spaces around the hyphen in the following macro?               \documentclass{article}          \newcommand{\nuSwap}{\nu-\textsf{swap}}          \begin{document}     I get $\nuSwap$, but I want $\nu$-\textsf{swap}.     \end{document}      ![enter image description here](http://i.stack.imgur.com/Us3RJ.png) I would like a macro I can use easily when I'm already in math-mode.


title: Natbib, sort&compress

text: I have finally managed to get my references in my thesis how i want them, correct style etc. however for some reason the natbib package is managing to sort my references, but not compress them. This means if i have referenced 4 references they appear as superscript 1,2,3,4 instead of 1-4. I have a feeling it might be a package conflict, but i am not sure. I am using the following packages,               \usepackage{StyleFiles/watermark}     \usepackage{parskip}     \usepackage{epstopdf}     \usepackage{graphicx}     \usepackage{subfigure}     \usepackage{graphics}     \usepackage{caption}     \usepackage{multirow}     \usepackage{units}     \usepackage[super,sort&compress]{natbib}     \citestyle{nature}      Any help?


title: TikZ: double line: rasterisation issue

text: I have some issues with the following code:               \documentclass[border=5mm]{standalone}     \usepackage{tikz}     \usetikzlibrary{matrix}     \tikzset{every matrix/.style={matrix of math nodes,row sep=3.5em,column sep=3.5em}}     \begin{document}     \begin{tikzpicture}     \matrix (m){             A & A\\             A & A\\     }; \path         (m-1-1) edge[double distance=2pt] (m-1-2)         (m-1-1) edge[double distance=2pt] (m-2-1)         (m-2-1) edge[double distance=2pt] (m-2-2)         (m-1-2) edge[double distance=2pt] (m-2-2);     \end{tikzpicture}     \end{document}      Depending on the zoom setting of my PDF viewer (Okular), the result can be quite ugly (zoom level 300%): ![Okular Example](http://i.imgur.com/up35U4g.png) (Printing though is fine.) I am a bit worried as an unsuspecting person could misread/misunderstand the diagram. Is this a widespread issue or just an Okular bug? Is there any known solution?


title: what Inputenc should I choose in Texmaker (Win7)?

text: I've written a _main.tex_ document in Kile under Debian and I want to continue writing it in Windows where I've just installed TexMaker (I need to type and hear audio-recordigs, Windows has a better sound system). Both OS have a minimum installation of TeXLive 2013 with few additional packages. When I compile the main file, I get over a dozen errors: in Kile/Debian those were classified as _Warnings_ rather than _Errors_. Almost all of them say this: > ! Package textcomp Error: Symbol \textrightarrow not provided by (textcomp) > font family ppl in TS1 encoding. (textcomp) Default family used instead. See > the textcomp package documentation for explanation. Type H for immediate > help. I don't know what encoding to choose or what option to put for `\usepackage[???]{inputenc}`. Clearly `ISO-8859-1` isn't working AND is turning my keyboard crazy (some keys don't corresppond to the symbols above them if Ctrl or Alt keys are also pressed). TexMaker is suggesting UTF-8. I thought adding `\PassOptionsToPackage{warn}{textcomp}` in the preamble would help compile the file...but to no avail! Help me please, I need to expedite my work! **MWE:**                   \documentclass[a4paper,12pt]{scrartcl}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage[italian]{babel}          \usepackage{amssymb, amsmath, amsfonts, xfrac} %tutto matematica     \usepackage{outlines}         \PassOptionsToPackage{warn}{textcomp}     \usepackage{textcomp}          \begin{document}          \begin{outline}[enumerate]      \1 What was blah blaha and blah?      \2[] blah blah \textrightarrow{} lorem ipsum etc.      \end{outline}          \end{document}      **2nd not-so-MWE:**               \documentclass[a4paper,12pt]{scrartcl}     \usepackage{enumerate}     \usepackage{outlines}     \usepackage{enumitem}     \setlist[enumerate,2]{label= \roman*)}     \setlist[enumerate,3]{label=\textbf{\alph*})}     \usepackage{siunitx}     \renewcommand{\SIrange}[3]{\lbrack\num{#1}\ {;}\ \num{#2}\rbrack\,\si{#3}}      \sisetup{range-phrase = \ ;\ ,               range-units  = brackets,               list-units   = brackets,               list-separator = {,\ },               list-final-separator = {\ e\ }}     \usepackage{listings}% needed by siunitex     \usepackage{mathpazo}% needed by siunitex     %\usepackage{helvet}% needed by siunitex     \usepackage{cancel}     \usepackage{blindtext}     \usepackage{miller}     \usepackage{hyperref}     \hypersetup{pdfstartview=FitH}      \usepackage[italian]{cleveref}          \begin{outline}[enumerate]      \1 What was blah blaha and blah?      \2[] blah blah \textrightarrow{} lorem ipsum etc.      \end{outline}          \end{document}


title: Setup font size of different types to be the same

text: For mathematical documents i like using the `fourier` package with the `upright` option, however the symbols `\mathcal` produces are quite too quirky in my opinion, so I replaced them with the default font via `\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}` - however these symbols have a different font size than the `fourier` fonts. Here is an example which shows that the caligraphic X is too big: ![different font sizes](http://i.stack.imgur.com/jbNyz.png) How can I reduce the size of `\mathcal` symbols?


title: Use numbers of ttfamily

text: I like the lining figures of the `\ttfamily`. I would like to use them within math mode, as equation numbering and within tikzpicutres. Concerning math mode, I use `amsmath` and could display numbers the way I want it when putting them into `\texttt{123546789}`, but this is a tiring solution. Same with `$...$`. When placing a tikzpicture like this:               \begin{figure}     \ttfamily     \input{test.tikz}}     \end{figure}      the style of the numbering of the axis won't change. Here is a minimal working example:               \documentclass{scrbook}     \usepackage{pgfplots} %for tikzpictures:     \usepackage{amsmath}     \usepackage[osf,sc]{mathpazo} %the font I use          \begin{document}     In math-mode:     \begin{align}     U=123456890\\      U=\texttt{123456890}\\     U=\mathtt{123456890}     \end{align}     The default figure style should be like in equation 0.2 and 0.3.      \\     The equation numbering on the right side should be in this style: \texttt{(0.1)} \texttt{(0.2)} \texttt{(0.3)}     \\     Same with dollarsign-enviorment, the latter 2 should be default:      $U=123456890$ $U=\texttt{123456890}$ $U=\mathtt{123456890}$     \begin{figure}     \ttfamily %makes only the labeling in \ttfamily, but I want labeling and numbering     \begin{tikzpicture}     \begin{axis}[%     width=10cm,     height=10cm,     scale only axis,     xmin=0,     xmax=10,     xlabel={4 5 6},     ymin=0,     ymax=20,     ylabel={8 10 12},     axis x line*=bottom,     axis y line*=left,     ]     \end{axis}     \end{tikzpicture}%     \end{figure}     \end{document}


title: two titlegraphics

text: In my LaTeX document (`report`) I would like to insert two graphics on top of the title page. Here is a code which already worked in a `beamer` document:               \titlegraphic{\begin{columns}     \begin{column}{0.5\textwidth}         \begin{figure}%         \includegraphics[width=\columnwidth]{pictures/pic1.jpg}%         \end{figure}     \end{column}     \begin{column}{0.5\textwidth}         \begin{figure}%         \includegraphics[width=\columnwidth]{pictures/pic2.jpg}%         \end{figure}     \end{column}\end{columns}}      In `\documentclass{report}` 14 errors are returned. The first one is               undefined control sequence \titlegraphic     {\begin{columns}     LaTeX Error: Environment columns undefined`.


title: Bibtex generates runaway argument

text: When I try to run pdflatex I get the following error:               Runaway argument?     Latex Error: ./texfile.tex:22 File ended while scanning use of \emph .     Latex Error: ./texfile.tex:24 LaTeX Error: \begin{thebibliography} on input line 1 ended by \end{document}.      Here is my tex-file:               \documentclass[a4paper, abstracton]{scrreprt}     \usepackage[utf8]{inputenc}     \usepackage{booktabs}     \usepackage{graphicx}     \usepackage[final]{pdfpages}     \usepackage{longtable}     \renewcommand{\baselinestretch}{1.5}     \usepackage{setspace}     \usepackage[top=2cm,bottom=3cm,right=2cm]{geometry}     \usepackage{fixltx2e}     \usepackage[square]{natbib}     \usepackage{hyperref}               \begin{document}          \citep{Nawroth:2002zr,Hou:2011vn,Rudini:2008kx,Lampugnani:2006uq,Ishiyama:2010fk,Hudry-Clergeon:2005ys,Angelini:2006vn,Andriopoulou:1999kx,Esser:1998uq,Sun:2012fk,Katsamba:2009kx,Vendome:2011uq,Bennett:1995fk,Ahrens:2003bh,Legrand:2001qf,Harrison:2010ve,Haussinger:2004ly,Parisini:2007zr,Shapiro:1995ys,Patel:2006vn,Boggon:2002kx,Pertz:1999uq,Tamura:1998fk,Cain:2010fk,Taddei:2008ys,Gory-Faure:1999vn,Gulino:1998kx,Gentil-dit-Maurin:2010uq,Corada:2001fk,Breviario:1995vn,Huber:1996uq,Lampugnani:1992fk,Suzuki:1991vn,Larson:2004kx,Breier:1996uq,Potter:2005fk,Tonks:2006fk,Allingham:2007uq,Turowski:2008fk,Vestweber:2012uq,Dejana:2012fk,Harris:2010vn,Huveneers:2012kx,Haidari:2011uq,Nelson:2008fk,Brasch:2011fk,huber:eplin,Abe:2008bh,Kobielak:2004qf,Kametani:2007ve,Drees:2005ly,Pokutta:2000zr,Koslov:1997ys,Rimm:1995vn,Kemler:1989kx,Vestweber:1984uq,Vestweber:1984fk,Lewis:1997fv,Cowin:1986bs,Lampugnani:1995ij,Nelson:2004hc,Orford:1997tg,Aberle:1997kl,Huber:2001oq,Fujita:2002nx,Xiao:2005cr,Huber:2001dq,Huber:1997bh,McCrea:1991ve,McCrea:1991ly,Thoreson:2000zr,Ferber:2002ys,Reynolds:1992vn,Reynolds:1989kx,Reynolds:2004uq,Yonemura:2011fk,Perez-Moreno:2006uq,Pokutta:2007fk,Owen:2008kx,Al-Amoudi:2007uq,He:2003fk,Tsukasaki:2007bh,Leckband:2006qf,Franke:2009ve,Pokutta:2002ly,Tachibana:2000zr,Takai:2008ys,Miyaguchi:2000vn,Hirokawa:1981kx,FARQUHAR:1963uq,Harris:2010fk,Nelson:2008dq,Ogita:2006bh,Ivanov:2001qf,Dejana:2008ve,Yonemura:2010ly,Oda:2011zr,Birukova:2011ys,Giampietro:2012kx,Telo:1998bs,Rampon:2005ij,Bardin:1996hc}               \addcontentsline{toc}{chapter}{Bibliography}     \bibliographystyle{cell}     \bibliography{bib.bib}          \end{document}      And my bib-file is here: https://gist.github.com/raw/2368d3797ead69cfc6cf/8f75797f1389c1b42c6bfbad71c8ebd01513a40d/bib- file.bib As far as I understand it a closing bracket is missing in the bib-file, but I cannot find it. The bib-file was generated by BibDesk. Deleting the citation that causes the problem, also doesn't help. The error resurfaces at another citation. Many thanks in advance!


title: Which package do I need for TACL template?

text: I've downloaded the following files from http://www.transacl.org/submission/ and placed them in the same directory:               acl2012.tex     acl2012.sty     acl2012.pdf     acl.bst      but when i tried to compile the .tex file, it doesn't compile and I've got this error in my log:               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)      \write18 enabled.     entering extended mode     (/media/alvas/E418A6B618A686E0/tacl/.acl2012.tex.swp     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 10 languages loaded.     (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo)) (./acl2012.sty     Conference Style for ACL 2005 -- released Octobe 11, 2004     ) (/usr/share/texlive/texmf-dist/tex/latex/psnfss/times.sty)     (/usr/share/texlive/texmf-dist/tex/latex/base/latexsym.sty)     (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty     For additional information on amsmath, use the `?' option.     (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty     (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))     (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)     (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))     (/usr/share/texlive/texmf-dist/tex/latex/multirow/multirow.sty)     (/usr/share/texlive/texmf-dist/tex/latex/url/url.sty)     No file .acl2012.tex.aux.     (/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1ptm.fd)     /media/alvas/E418A6B618A686E0/tacl/.acl2012.tex.swp:35: Font OT1/ptm/m/n/10.95=     ptmr7t at 10.95pt not loadable: Metric (TFM) file not found.     <to be read again>                         relax      l.35 \begin{document}          /media/alvas/E418A6B618A686E0/tacl/.acl2012.tex.swp:35:  ==> Fatal error occurr     ed, no output PDF file produced!     Transcript written on /tmp/.acl2012.tex.log.      **Am I missing some packages? What is`Metric (TFM) file`? How do I resolve the errors?** I've tried reinstalling/updating my `texlive` too but it didn't work:               alvas@ubi:~$ sudo apt-get install texlive-latex-base texlive-latex-extra     Reading package lists... Done     Building dependency tree            Reading state information... Done     texlive-latex-base is already the newest version.     texlive-latex-extra is already the newest version.     0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


title: Speed up compilation by (pre-)compiling chapters separately?

text: I am writing a long document with many chapters. They are all included from a root document using `\input{chapterX.tex}` etc. Compiling everything takes pretty long. As a workaround to make compilation faster, I typically comment out most `\input` commands and include only the chapter I'm currently working on. But that's a bad method because then the references to chapters that are not currently included won't work, and the table of contents is almost empty. I'm wondering if there is a method that does precompilation? Ideally, it would detect that, while I am working on `chapter1.tex`, nothing in `chapter2.tex` etc. has changed, and reuse the results from previous compilation runs. Is that possible? It would be like separate compilation units in languages like `C`.


title: Missing space after "guillemets"

text: I have a problem with the `\og` and `\fg` characters for opening and closing "guillemet". The closing guillemet is always too close to whatever follows, in other words, there is missing space between `\fg` and the next word that follows. I'm using TeXmaker, and a typical piece of code where the problem occurs is               \documentclass[11pt]{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[french]{babel}     \begin{document}     Lalala \og blabla \fg lalala.     \end{document}


title: tikz-3dplot: Drawing an arc with the let syntax in 3d

text: How can I use the `let` syntax to draw an arc when using `tikz-3dplot`? At the present, the arc is drawn but doesn't look right.               \documentclass[tikz, convert = false]{standalone}     \usepackage{tikz-3dplot}     \usetikzlibrary{calc}     \begin{document}     \tdplotsetmaincoords{60}{130}     \begin{tikzpicture}[tdplot_main_coords]       \coordinate (O) at (0, 0, 0);       \node[coordinate] (P) at (3, 4, 5) {};            \draw[-latex] (O) -- +(4, 0, 0) node[font = \small, pos = 1.1] {\(x\)}       coordinate (X);            \draw[dashed, gray] (P) -- +(0, 0, -5) coordinate (P1) -- (O);            \draw[-latex] let         \p0 = (O),         \p1 = (X),         \p2 = (P1),         \n1 = {atan2(\x1 - \x0, \y1 - \y0)},         \n2 = {atan2(\x2 - \x0, \y2 - \y0)},         \n3 = {1cm},         \n4 = {(\n1 + \n2) / 2}       in (O) +(\n1:\n3) arc[radius = \n3, start angle = \n1, end angle = \n2];     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/1Lcio.png)


title: Computing the rectangle encompassing a node and a point

text: I cannot manage to compute and to draw the box (that is, the lower left corner and the upper right corner) that would exactly encompass the green rectangle node and the red point (whose exact coordinates and dimensions can vary). ![enter image description here](http://i.stack.imgur.com/U56M9.png) I tried this code, which does not work:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{calc}          \newdimen\XCoord     \newdimen\YCoord     \newcommand*{\ExtractCoordinate}[1]{\path (#1); \pgfgetlastxy{\XCoord}{\YCoord};}%          \begin{document}     \begin{tikzpicture}       \clip (-2,-2) rectangle (10,8);            \node[inner sep=2cm, fill=green] (rect) at (3,4) {Bla Bla};       \node[inner sep=1pt, outer sep=0, circle, fill=red] (point) at (-1,1) {};            \ExtractCoordinate{point.center}       \edef\xone{\XCoord}       \edef\yone{\YCoord}            \ExtractCoordinate{rect.south west}       \edef\xtwo{\XCoord}       \edef\ytwo{\YCoord}       \pgfmathparse{min(\xone,\xtwo)}       \coordinate (x) at (\pgfmathresult,0);       \pgfmathparse{min(\yone,\ytwo)}       \coordinate (y) at (0,\pgfmathresult);            \ExtractCoordinate{rect.north east}       \edef\xtwo{\XCoord}       \edef\ytwo{\YCoord}       \pgfmathparse{max(\xone,\xtwo)}       \coordinate (xx) at (\pgfmathresult,0);       \pgfmathparse{max(\yone,\ytwo)}       \coordinate (yy) at (0,\pgfmathresult);            \draw ($(x) + (y)$) rectangle (0, 0);       \draw ($(xx) + (yy)$) rectangle (1, 0);             \draw ($(x) + (y)$) rectangle ($(xx) + (yy)$);            %% The expected result should be equivalent to drawing       % \draw[orange, dashed] (\xone,\yone) rectangle (\xtwo, \ytwo);           \end{tikzpicture}     \end{document}      I first extract the X and Y coordinates of the point and of the south west and north east anchors of the rectangle, then call the min and max functions. However, I guess at this stage: `\coordinate (x) at (\pgfmathresult,0);` something goes wrong, so I get incorrect values. The expected result can be seen after uncommenting the last line in tikzpicture.


title: I'm using the standalone package. How can I get regular paragraph breaks?

text: I'm using the standalone class to render images for individual math problems that will be displayed in an app, so the cropping functionality is essential. However, the package seems to destroy paragraph breaks support. What I'd like to have is non-indented paragraphs with about 1 line of space between each paragraph, like:               \setlength{\parindent}{0pt}     \setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}      I've tried the above and a million other things, including using the preview option, the preview package directly, and messing with the varwidth setting, but nothing seems to work. I'm not very knowledgeable about the inner workings of LaTeX or the packages I'm using, so I'm at a dead end. Could someone with better knowledge explain to me a.) why this refuses to work b.) if there's some way to get normal paragraph breaks working without workarounds like `\\\\[7pt]`? Here is what I'm working with right now:               \documentclass[border=1bp]{standalone}          \usepackage[document]{ragged2e}     \usepackage[none]{hyphenat}     \usepackage{amsmath}          \begin{document}     \begin{minipage}{4in}     This is a paragraph. It's a nice long paragraph.           This is another paragraph.          This is a paragraph. It's a nice long paragraph. This is a paragraph. It's a nice long paragraph.     \end{minipage}     \end{document}


title: Typesetting famous 54.43 proof (1+1=2) in Principia Mathematica

text: Here's my best attempt at typesetting the proof that 1+1=2 in _Principia Mathematica_ :               \documentclass[10pt]{article}     \usepackage{amssymb}     \usepackage{amsmath}     \pagestyle{empty} \begin{document}     \noindent $\mathbf{*54\cdot43.} \vdash:.\alpha,\beta\in1.\supset:\alpha\cap\beta=\Lambda.\equiv.\alpha\cup\beta\in2$\\      \indent\emph{Dem.}     \begin{flalign}\nonumber     \vdash .*54\cdot26.\supset\vdash:.\alpha=\iota'x.\beta=\iota'y.\supset:\alpha\cup\beta\in2.&\equiv.x\neq y.\\\nonumber     [*51\cdot 231]\hspace{4.7cm}\hspace{1cm} & \equiv.t'x\cap\iota'y=\Lambda.\\     [*13\cdot 12]\hspace{4.88cm}\hspace{1cm} & \equiv.\alpha\cap\beta=\Lambda \\\nonumber     \vdash.(1).*11\cdot11\cdot35.\supset\hspace{2.88cm}\hspace{1cm}\\     \vdash:.(\exists x,y).\alpha=\iota'x.\beta=\iota'y.\supset:\alpha\cup\beta\in2.&\equiv.\alpha\cap\beta=\Lambda\\\nonumber     \vdash.(2).*11\cdot54.*52\cdot1.\supset\vdash.Prop\hspace{1.09cm}\hspace{1cm}\end{flalign}     \indent From this proposition it will follow, when arithmetical addition has been defined, that $1 + 1 = 2$.     \end{document}      Here's the result: ![enter image description here](http://i.stack.imgur.com/KlRJR.png) And here's the original: ![enter image description here](http://i.stack.imgur.com/GFWQ1.png) Things I don't like:   1. Lot's of manual `hspace`; How do I force left alignment of the equations?   2. I don't think the `\supset` symbol is the most appropriate one for the implication, and it is slightly off the horizontal alignment.   3. The symbol following the `\iota` (`'`) is not quite the same as the original one.   4. I'm also not sure that the usage `\cdot` is the most appropriate. Looking for improvements from the TeX wizards out there ;-) * * *


title: Texstudio and SVN

text: I failed to use SVN with TexStudio. My commands:               SVN: "C:/Program Files/SlikSvn/bin/svn.exe"          SVNADMIN: "C:/Program Files/SlikSvn/bin/svnadmin.exe"      When I try to check in my file, I get the following message: > Process started: "C:/Program Files/SlikSvn/bin/svn.exe" ci -m "" > "C:/Users/rustam/Documents/Thesis/beamer/presentation.tex" > > svn: E205005: The log message is a pathname (was -F intended?); use '-- > force-log' to override


title: Assigning different colors to numerical values below a certain parameter?

text: I'm relatively new to Latex so apologies for any stupidity upcoming. I'm trying to read a Matlab vector into a latex table with values ranging between 0 and 1. For the values less than 0.1, I want them to be returned in the color blue but can't seem to manage it. Here is the code I've been using (Bold and Italic symbolising Latex Code, everything else are Matlab related) strcat( ** _' & \color{blue}\ensuremath{<0.1}{\numprint{'_**,sprintf(format3,M4_tot(i)), ** _'}} \ '_** )]; What this has been returning is values such as '<0.1 0.837' where <0.1 is the Mathematical operator I wish to recognise and 0.837 is merely an example from my Matlab vector. Essentially, I don't know how to make Matrix recognise my operator, all it does it print the data. Can anyone help?


title: visualize parallel operations

text: I have a small dataset of operations which I want to display. The operations each have a name, a start time and an end time (in milliseconds). For example: > Operation 1: 0 to 3000 > > Operation 2: 500 to 2600 > > Operation 3: 1000 to 2900 I want to visualize it in two ways. In the first visualisation I want to show which operations ran parallel. Demonstration:               Operation 3:        ___________          Operation 2:   ____________          Operation 1: ____________________      The second visualization I want to make is basically a chart which visualizes how many operations ran over the whole time. Which would be a chart with a step-after interpolation and these coordinates:               (0|1), (500|2), (1000|3), (2600|2), (2900|1), (3000|0)      It would be awesome if the two were in one image where the jumps in the second visualization have a vertical line to the beginning or end of an operation to indicate where the jump comes from.


title: Creating a custom Beamer theme. Need to remove the footline for the title page only

text: First of all, I'm aware of this question and it's really _not_ what I'm asking: the solution given there is to issue               \setbeamertemplate{footline}{}      in a localized group containing the `\titlepage` frame. That's not what I want. As the title says, I'm creating a custom theme and I don't want to leave the suppression of the footline on the title page up to my end users. How can I go about suppressing the footline just for the title page? Note that I already tried               \setbeamertemplate{title page}{         \setbeamertemplate{footline}{}         % my definitions here     }      and it didn't work. I know that the etiquette around here is to post a MWE, but I'm not really sure what I need to post in this case. If you need me to post parts of my definition, I'll gladly do.


title: TeXnicCenter reports error despite correct execution

text: I've not had any particular issues with TeXnicCenter until recently. This past week it has been reporting an error in all compiled documents. The error is from the first line of the output, which makes no sense, and doesn't impede output, meaning I get my PDF without issue. There is also no mention of any error in the .log file. ![Error on first line of output, no error message, no mention of it in log](http://i.stack.imgur.com/eCEi4.png) Of course, there might be fire somewhere, given the smoke, and it really annoys me to see "1 error(s)" at the bottom when there's nothing wrong. It also means I can't turn on "stop execution if there is an error". Some possible causes:   * I recently installed BitDefender.   * I recently uninstalled NuancePDF reader (it had come on the computer, and worked "fine" until shortly after the new year, when it started crashing after loading any document. I simply replaced it with Foxit). I don't know if installing BitDefender is what broke Nuance or not. I have changed my build profile to use Foxit (once I realized that setting was in the build profile). As far as I know, there was only one place to change that, and I only needed to change the program itself, not the commandline args. If anyone can shed some light on why this is occurring I'd greatly appreciate it. It doesn't prevent me working, but it frustrates me and concerns me, as there may be an underlying issue somewhere.


title: connect to mysql

text: I try to run `nlatexdb` to connect to `mysql`. I'm using Miktex on Windows 7 with TexnicCenter In MySql I have a database called 'world'. In 'world' there is a table called 'city'. The table 'city' consists of four rows: 'ID', 'Name', 'CountryCode', 'District', 'Population'. Using `LaTeX` I try to display the date in this table. My `.tex` file looks like this:               \documentclass[a4paper]{article}     \usepackage[latin1]{inputenc}     \begin{document}          \texdbconnectionnet{MySql.Data.MySqlClient}     {Database=world; Uid=root; Pwd=XXXXX;}          \texdbdef{##stadt}{select ID, Name, CountryCode, District, Population from world.city}     {##ID, ##Name, ##CountryCode, ##District, ##Population}                    \texdbfor{##stadt}{     Die Stadt ##Name hat die ID-Nummer ##ID und den Code ##CountryCode.      }          \end{document}      When I run nlatexdb using the console (nlatexdb -p test.tex) I get the error message: Host 'XXXXX' is not allowed to connect to this MySQL server. I hope you can help me figure out what I'm doing wrong here. Is the Uid correct? I triet different Uid's but always get the same message.


title: Error: File 'circuitikz.sty' not found

text: When using circuitikz to draw circuits using the following command               \usepackage{circuitikz}      gives               LaTeX Error: File 'circuitikz.sty' not found.


title: What does the colon in Tikz coordinates mean?

text: \draw (0,0) -- (60:.75cm) arc (60:180:.75cm);      What does the colon in `(60:.75cm)` mean? Normally, I'd define a normal point there.


title: How can I print index cards two-sided with multiple cards per page?

text: There are several answers about "learning cards" here on Stackexchange, pointing to several solutions, but this particular part of it is not my problem. I already designed them, created them (DIN A 6) with front and back and got a PDF with consecutive pages "front : back" of each index card. ![One index card with front and back side](http://i.stack.imgur.com/v4bK1.jpg) Now I'm going to print them, and right here my problem starts. The idea is to arrange 2x2 of those cards on an DIN A 4 paper, so I can print them with usual hardware. This is possible by using the `pdfpages` package postprocessing the first PDF named "cards.pdf", creating a second one:               \documentclass[landscape]{scrartcl}     \usepackage{pdfpages}          \begin{document}     \includepdf[frame, pages={1, 3, 5, 7}, nup=2x2]{cards.pdf}     \includepdf[frame, pages={6, 8, 2, 4}, nup=2x2]{cards.pdf}     \end{document}      ![Index cards 2x2](http://i.stack.imgur.com/zcRiG.jpg) That works fine, but as you may have realized, I have to specify the page numbers manually, which may be a difficult task in case of a huge number of cards. There must be an easier way to achieve this. And that's my question: How can I print those index cards two-sided with multiple cards per page in a way, that right behind the front side of one card its back side fits on the very back of the printed paper?


title: Scala support in listings package

text: As far as I know, the Scala programming language is not supported by the listings package. Is an implementation under way? Will it be included in the standard listings distribution?


title: Different format for fonttitle and counter in tcolorbox

text: I am wondering how can one format the counter and the title differently within tcolorbox. By using `fonttitle=\small\bfseries,` the results is a bold counter and bold name of the definition e.g. **Definition 2.1: Contraction** However, I would like to accomplish **Definition 2.1:** Contraction Currently I am using the following code                   \documentclass [10pt, twoside, openright, a5paper, showtrims]{memoir}              \newtcbtheorem[auto counter,number within=chapter]{myDefinition}{Definition}{                 unbreakable,                 enhanced,                 arc=0pt,                 outer arc=0pt,                 coltitle=black,                 fonttitle=\small\bfseries,                 fontupper=\noindent,                 left=7pt,                 lefttitle=7pt,                 boxsep=2pt,                 right=7pt,}{def}         \begin{document}         \chapter{Intro}         \chapter{Basic}         \begin{myDefinition}{Contraction}{co-simulation}         some text         \end{myDefinition}     \begin{end}


title: Is there a lipsum-like package for metadata?

text: I know about the `lipsum`, `blindtext` and `kantlipsum` packages. What I would need is a variant creating dummy metadata: author name/affiliation, title, thanks etc. Does anyone know of anything like this? (Paragraphs provided by `lipsum` or `kantlipsum` are way too long, it seems from a glance at the source that `blindtext` has a similar problem.) And a bonus would be fake jpgs with author photos, for testing journal styles with author picture & bio at the end;). If the answer is no (which is quite probable), I might consider adding something like this to `kantlipsum`. What do you think, egreg? Side note: if anyone knows what tags should accompany this question, please edit them. Does it make sense to have a "dummy-text" tag?


title: What is the preferred way of defining a TikZ constant?

text: I'm drawing a TikZ figure and am going to need a couple of constant that I could easily change between compilations, e.g. a main radius, a proportion, a number of lines, etc. What is the preferred way of defining these? It's not just one `\draw` command, so I suppose I can't use `let`.


title: Does combining microtype with ragged right make any sense?

text: My impression when using `microtype` in a document that used `\RaggedRight` (everything said is probably true for `\raggedright` as well but who cares really ...) always was that all lines just get stretched, often to the point where the whole text looked distorted and ugly. Never did I see the enhancement in typographic quality and likely reduction in the number of lines that usually go along with justified text and `microtype`. I tried to test this impression a little bit more systematically:               \documentclass{article}     \usepackage{microtype,ragged2e,lipsum}     \begin{document}     \RaggedRight     \lipsum[1-4]     \newpage     \microtypesetup{activate=false}     \lipsum[1-4]     \end{document}      The result is best inspected in a PDF viewer set to _fit to page_ but to give an immediate impression, here are the two pages overlayed in different colors. Text with `microtype` is red, without is blue. As can be seen, except for the first line and each last line in a paragraph (and the fourth line which has a different line break altogether), `microtype` always stretches the lines (click to enlarge): ![preview](http://i.stack.imgur.com/w3mxi.png) Is this generally true? If so, why? Maybe `microtype` didn't get the memo and still tries to justify the text, stretching it as far as it can? I thought `microtype` used the interword spacing though. That would mean, however, that even with `ragged2e` the typography of ragged text was seriously wanting. In any case, if this really is the behavior of `microtype` in ragged paragraphs, why then doesn't `microtype` switch itself off in `\RaggedRight`, `\RaggedLeft` and `\Centering` paragraphs instead of leaving this to the (probably mostly unsuspecting) user? * * * **Edit:** Oh and sorry for the eye cancer. With red-blue 3D glasses you can seriously cut down on your LSD expenses though. You're welcome. **Edit 2:** Hidden behind a preview image; this should alleviate the permanent pain in the eyes.


title: \hyphenation does not work

text: TeX trys to hypehnate my word "universeller" in a totally wrong way. It makes it to "Üniverseller" and removes the quotation marks in the front before. When I use `\mbox` it writes the word over the margin break point and if i write the word in `\hyphenation{universeller}` it doesn't even show the word. Any idea why?`\hyphenation{uni-ver-sel-ler}` also doesnt work If I write it normally Tex makes the two words `"Fabian" universeller` to `Fabianüni-`: ![enter image description here](http://i.stack.imgur.com/vEOot.png)


title: XeLaTeX - terminal output too verbose

text: Is it possible to reduce the amount of information you get from running:               xelatex texfile.tex      The oh so long output:               This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012/Debian)      restricted \write18 enabled.     entering extended mode     (/home/petr/Dropbox/School/R/3/document.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, sl     ovak, czech, loaded.     (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrartcl.cls     Document Class: scrartcl 2012/05/15 v3.11 KOMA-Script document class (article)     (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrkbase.sty     (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrbase.sty     (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrlfile.sty     Package scrlfile, 2011/03/09 v3.09 KOMA-Script package (loading files)                       Copyright (C) Markus Kohm          ))) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/tocbasic.sty)     (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrsize12pt.clo)     (/usr/share/texlive/texmf-dist/tex/latex/koma-script/typearea.sty     Package typearea, 2012/05/15 v3.11 KOMA-Script package (type area)                       Copyright (C) Frank Neukam, 1992-1994                       Copyright (C) Markus Kohm, 1994-          )) (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty     (/usr/share/texlive/texmf-dist/tex/generic/babel/czech.ldf     (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def)))     (/usr/share/texlive/texmf-dist/tex/latex/xltxtra/xltxtra.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)     (/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3names.sty     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty))     (/usr/share/texlive/texmf-dist/tex/latex/etex-pkg/etex.sty)     (/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty     (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)     (/usr/share/texlive/texmf-dist/tex/xelatex/xetex-def/xetex.def))     (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty     (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)     (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg))     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3basics.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3expan.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3tl.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3seq.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3int.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3quark.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3prg.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3clist.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3token.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3prop.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3msg.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3file.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3skip.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3keys.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3fp.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3box.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3coffins.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3color.sty)     (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3luatex.sty))     (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)     (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-patches.sty     (/usr/share/texlive/texmf-dist/tex/latex/base/fixltx2e.sty)     *************************************************     * LaTeX warning: "xparse/redefine-command"     *      * Redefining document command \oldstylenums with arg. spec. 'm' on line 107.     *************************************************     ) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty     (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty     (/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1enc.def)     (/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmr.fd))     (/usr/share/texlive/texmf-dist/tex/xelatex/xunicode/xunicode.sty     (/usr/share/texmf/tex/latex/tipa/t3enc.def     (/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmss.fd))     (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty))     (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg)))     (/usr/share/texlive/texmf-dist/tex/latex/realscripts/realscripts.sty     *************************************************     * LaTeX warning: "xparse/redefine-command"     *      * Redefining document command \textsubscript with arg. spec. 's' on line 25.     *************************************************     *************************************************     * LaTeX warning: "xparse/redefine-command"     *      * Redefining document command \textsuperscript with arg. spec. 's' on line 28.     *************************************************     ) (/usr/share/texlive/texmf-dist/tex/latex/metalogo/metalogo.sty))     (/usr/share/texlive/texmf-dist/tex/latex/tools/tabularx.sty     (/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty))     (/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty     (/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty)     (/usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg))     (/usr/share/texlive/texmf-dist/tex/latex/float/float.sty)     (/usr/share/texlive/texmf-dist/tex/latex/mdframed/mdframed.sty     (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))     (/usr/share/texlive/texmf-dist/tex/latex/etoolbox/etoolbox.sty)     (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/zref-abspage.sty     (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/zref-base.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty)     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty))     (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty))     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/atbegshi.sty))     (/usr/share/texlive/texmf-dist/tex/latex/mdframed/md-frame-0.mdf))     (/usr/share/texlive/texmf-dist/tex/latex/tools/enumerate.sty)     (/usr/share/texlive/texmf-dist/tex/latex/enumitem/enumitem.sty)     (/usr/share/texlive/texmf-dist/tex/latex/parskip/parskip.sty)     (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))     (/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)     (/usr/share/texlive/texmf-dist/tex/xelatex/xetexconfig/hyperref.cfg)     (/usr/share/texlive/texmf-dist/tex/latex/hyperref/puenc.def)     (/usr/share/texlive/texmf-dist/tex/latex/url/url.sty))          Package hyperref Message: Driver (autodetected): hxetex.          (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hxetex.def     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/stringenc.sty)     (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     (/usr/share/texmf/tex/latex/xcolor/xcolor.sty     (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)     (/usr/share/texlive/texmf-dist/tex/latex/graphics/dvipsnam.def))     (/usr/share/texlive/texmf-dist/tex/latex/psnfss/mathpazo.sty)     (/usr/share/texlive/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)     *************************************************     * fontspec warning: "icu-feature-not-exist-in-font"     *      * OpenType feature 'Ligatures=Common,TeX' (+liga) not available for font     * 'Times New Roman' with script '' and language ''.     *************************************************     *************************************************     * fontspec warning: "icu-feature-not-exist-in-font"     *      * OpenType feature 'Numbers=OldStyle' (+onum) not available for font 'Times     * New Roman' with script '' and language ''.     *************************************************     *************************************************     * fontspec warning: "icu-feature-not-exist-in-font"     *      * OpenType feature 'Ligatures=Common,TeX' (+liga) not available for font     * 'Times New Roman' with script '' and language ''.     *************************************************     *************************************************     * fontspec warning: "icu-feature-not-exist-in-font"     *      * OpenType feature 'Numbers=OldStyle' (+onum) not available for font 'Times     * New Roman' with script '' and language ''.     *************************************************     *************************************************     * fontspec warning: "icu-feature-not-exist-in-font"     *      * OpenType feature 'Ligatures=Common,TeX' (+liga) not available for font     * 'Times New Roman/B' with script '' and language ''.     *************************************************     *************************************************     * fontspec warning: "icu-feature-not-exist-in-font"     *      * OpenType feature 'Numbers=OldStyle' (+onum) not available for font 'Times     * New Roman/B' with script '' and language ''.     *************************************************     *************************************************     * fontspec warning: "icu-feature-not-exist-in-font"     *      * OpenType feature 'Ligatures=Common,TeX' (+liga) not available for font     * 'Times New Roman/I' with script '' and language ''.     *************************************************     *************************************************     * fontspec warning: "icu-feature-not-exist-in-font"     *      * OpenType feature 'Numbers=OldStyle' (+onum) not available for font 'Times     * New Roman/I' with script '' and language ''.     *************************************************     *************************************************     * fontspec warning: "icu-feature-not-exist-in-font"     *      * OpenType feature 'Ligatures=Common,TeX' (+liga) not available for font     * 'Times New Roman/BI' with script '' and language ''.     *************************************************     *************************************************     * fontspec warning: "icu-feature-not-exist-in-font"     *      * OpenType feature 'Numbers=OldStyle' (+onum) not available for font 'Times     * New Roman/BI' with script '' and language ''.     *************************************************     (./document.aux) (/usr/share/texmf/tex/latex/tipa/t3cmr.fd)     (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     (./document.out) (./document.out)          LaTeX Font Warning: Font shape `EU1/TimesNewRoman(0)/m/sc' undefined     (Font)              using `EU1/TimesNewRoman(0)/m/n' instead on input line 71.          [1] (./document.toc (/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1ppl.fd)     (/usr/share/texlive/texmf-dist/tex/latex/psnfss/omlzplm.fd)     (/usr/share/texlive/texmf-dist/tex/latex/psnfss/omszplm.fd)     (/usr/share/texlive/texmf-dist/tex/latex/psnfss/omxzplm.fd)     (/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1zplm.fd)) [2] [3]     <images/bp_consumption.eps> [4] <images/hist_engine.eps> [5]     <images/pie_makes.eps> [6] <images/bar_trans.eps> [7]     (./imports/theoretical_model.tex) (./codes/output.R     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...     ** WARNING ** Failed to convert input string to UTF16...               LaTeX Font Warning: Font shape `EU1/Arial/m/n' undefined     (Font)              using `EU1/lmr/m/n' instead on input line 2.          ) [8] [9]     Overfull \hbox (0.27144pt too wide) in paragraph at lines 204--207     []\EU1/TimesNewRoman(0)/m/n/12 Jednotliví \EU1/TimesNewRoman(0)/bx/n/12 výrob     ci \EU1/TimesNewRoman(0)/m/n/12 nám spotřebu ovlivňují určitým směrem. N     apříklad vozy značky Audi ($\OML/zplm/m/it/12 M[]$\EU1/TimesNewRoman(0)/m/n/     12 )     [10] (./codes/t_test.txt) [11] (./codes/bp_test.txt)     <images/residual_density.eps> [12** WARNING ** << /Rotate 90 >> found. (Not supported yet)     ** WARNING ** << /Rotate 90 >> found. (Not supported yet)     ] (./codes/anova.txt) [13] (./codes/robust.txt     ) [14] [15] (./R_code.R) [16] [17] (./document.aux)          LaTeX Font Warning: Some font shapes were not available, defaults substituted.           )     (see the transcript file for additional information)     Output written on document.pdf (17 pages).     Transcript written on document.log.      With that, it's hard and very inconvenient to find errors, as they can be missed easily. Regular `latexmk` output was simple: Saying "There were no errors. However some warnings:" or something similar. EDIT: my document header:               \documentclass[12pt,a4paper]{scrartcl}          \usepackage[czech]{babel} % czech     \usepackage{xltxtra} % fonts     \usepackage{tabularx} % tables     \usepackage{listings} % code listings     \usepackage{array}     \usepackage{float}     \usepackage{mdframed} % code boxes     \usepackage{enumerate} % numbered items     \usepackage{enumitem} % items     \usepackage{parskip} % no paragraph space     \usepackage[unicode,bookmarks=true]{hyperref} % pdf bookmarks     \usepackage[usenames,dvipsnames]{xcolor} % colors     \usepackage{mathpazo} % nicer math font     \usepackage{fancyhdr} % nice header          % Set fonts     \setmainfont[Ligatures={Common,TeX}, Numbers={OldStyle}]{Times New Roman}     \setmonofont{Consolas}     \linespread{1.2}          \hypersetup{         colorlinks,         citecolor=black,         filecolor=black,         linkcolor=black,         urlcolor=black     }          % Set colors     \definecolor{lightGray}{HTML}{EEEEEE}     % Code box     \newmdenv[backgroundcolor = lightGray, middlelinewidth = 0, linecolor = Gray]{customMdframed}     % Set code listings     \lstset{         % language = R,         basicstyle = \fontsize{9pt}{10pt}\ttfamily,         numberstyle = \fontsize{9pt}{10pt}\ttfamily,         commentstyle = \fontsize{9pt}{10pt}\ttfamily\color{gray},         backgroundcolor = \color{lightGray},         breaklines = true,         breakatwhitespace = true,         postbreak = {\fontfamily{Arial}{\selectfont →}}\space,         prebreak = {\fontfamily{Arial}{\selectfont →}}     }     % Define custom wrap     \newcommand{\embedCode}[1]{ \begin{customMdframed} \lstinputlisting{#1} \end{customMdframed} }          % Set header     \pagestyle{fancy}


title: Can´t draw plain amp with circuitikz

text: I'm trying to use the package circuitikz, and I need to draw a plain amp, I'm traying to do this as the manual says but it keep throwing this error message               "I don´t know the '/tikz/plain amp' and i'm going to ignore it "      this is the code that i'm using.               \documentclass{article}     \usepackage{circuitikz}          \begin{document}          \begin{center}     \begin{circuitikz}      \draw (5,5) node[plain amp](amp){};     \end{circuitikz}     \end{center}      \end{document}      hope you can help me!


title: Problem with headlines

text: I have a problem with headlines. My kode is:               \documentclass[a4paper,11pt.,leqno]{article}     \pagestyle{fancy}     \fancyhead{}     \fancyfoot{}     \fancyhead[LO, LE]{\thepage}     \renewcommand{\headrulewidth}{0pt}      \renewcommand{\footrulewidth}{0pt}      \begin{document}     ...     \end{document}      This makes the page number on the top and on the left. In command `\fancyhead{}` I am trying to write headline. But when I do this I have two headers: one centered on the page and the other on the right. I want to have just one. And he has to have a font: \ scshape \ centering. I do not know how to do it. Headline should look like this: ![enter image description here](http://i.stack.imgur.com/UhpJs.jpg)


title: Proper way to format text when not using a lot of math

text: I'm confused about text formatting, I see almost everywhere the `\text` command, which I believe is part of the `amsmath` package? If I'm doing mostly writing with just a bit of math here and there, is using the `\text` command preferred or is there another method more native to latex without the `amsmath` package for formatting text?


title: Fine-tuning page output upon second compilation

text: _This question is quite general. Nonetheless I believe that it touches upon something fundamental. That said, anyone feel free to improve the question._ LaTeX can be thought of as a complex algorithm that does everything without manual fine-tuning. In most cases, one needs to run LaTeX just twice, which is remarkable given that it is a linear compilation process. However LaTeX's design also leads to the disadvantage that certain types of fine-tuning which conceptually really _are_ best done during a post-compilation phase are not easily done with LaTeX. An example: say I would like to remove the page numbers of all pages with a figure at the top of the page. (If you can think of a better example, feel free to improve the question.) **What are ways in LaTeX to make such post- compilation changes easiest? (The idea is that the user can supply additional data after "compilation proper", and one would then run a post-compiler that does some minor fine-tuning.)** I understand that the right answer wouldn't be "a single LaTeX command". Instead, answers might point to (La)TeX derivatives, constructions or tricks on top of the standard LaTeX engine, or conceptual pointers. (And, yes, of course solving this problem will require one additional compilation pass at the end, either directly by LaTeX or by something else. I suppose one could do the initial compilation phase(s) by "something else" and the final run by LaTeX proper. This is an open question, and creativity is welcome.)


title: undefined control sequence when compiling on Ubuntu (no problem with OSX)

text: I am trying to compile my CV latex file which works fine with a slightly out of date version of Mac OSX. My new computer is running Ubuntu 13.10 with all of the latest updates and all of the Latex packages installed that I can think of. This is the error message I get when I use pdflatex               [Loading MPS to PDF converter (version 2006.09.02).]     ) (/usr/share/texlive/texmf-dist/tex/latex/base/omscmr.fd)     ! Undefined control sequence.     \cftdotfill #1->\def \@tempa                                   {#1}\def \@tempb {\cftnodots }\ifx \@tempa \@te...     l.102 ...ada}{Waterloo}{2011}      When I try to compile using Kile (the KDE Latex editor) the editor seems to be indicating that the problem is coming from the line:               \ressubheading{Math}{Waterloo}{University}{2011}      where ressubheading is defined by               \newcommand{\ressubheading}[4]{     \begin{tabular*}{6.5in}{l@{\cftdotfill{\cftsecdotsep}\extracolsep{\fill}}r}             \textbf{#1} & #2 \\             \textit{#3} & \textit{#4} \\     \end{tabular*}\vspace{-6pt}}      I haven't changed anything about the file between being able to compile on OSX and not being able to compile it on Ubuntu. Worst case is that I have to redo my CV is a template that works with Ubuntu but I would really like to avoid that. Any help is greatly appreciated :)


title: Aligning equations with using fleqn

text: I use `fleqn` as a document class, but now I solve problem, how to align few equations to the center and few to the right. I've tried `\setlength{\mathindent}{1cm}` but after that is the problem that I can't use previously used `fleqn` aligning. Could you help me with any solution? Thank you very much in advance!


title: Create bitmap within TeX file

text: I'd like to create a bitmap (black and white) from within LuaTeX (or pdfTeX) and rescale it afterwards. For example (a 4x4 bitmap) could be made by               \makebitmap{0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0}      I don't really care about the interface. More important for me is the overall approach. I would like to use it in LuaTeX, thus `img.stream` could be useful for me. But a PDFTeX approach with `\pdf...` commands would be fine, too. Important restrictions: I must not create any intermediate file and it must work offline. To make things clear: I am only interested in how to generate a bitmap graphics (png, bmp, whatever) within pdf/LuaTeX. Background: I've developed a qrcode encoding lua library and I'd like make a LuaLaTeX package for it. I see three possible approaches:   1. Use pdf instructions (`0 0 10 10 re f` for example)   2. Use `\rule` commands to make the black parts   3. Create a bitmap "file" and scale it. I still experiment about the best approach. I have tried with pdf instructions (item 1 above), and the result is ugly in some pdf viewer applications: ![sample qrcode](http://i.stack.imgur.com/XNqml.png) The black boxes are divided by some small white lines in some zoom settings. I want to avoid them. That is why I want to create bitmaps instead of pdf instructions.


title: Omitting arguments in macro expansion

text: Changing a simple TeX macro like               \def\macro#1 #2{#1 #2}      into               \def\macro#1 #2{#1}      alters the output of               \macro Hello world      surprisingly for me to               Helloorld      My expectation would have been to get just               Hello      I'm afraid, I fundamentally misunderstand TeX's working mechanisms. It would be great if someone would take the effort to explain the result.


title: Avoid figures encroaching on page numbers with LyX

text: I'm using LyX and have figures in floats and wraps but some of them are too high on the page when converted to PDF and overlap with page numbers. Is there a way to avoid this and respect the text margins that are set?


title: Why does \xspace behave differently for parenthesis vs. braces/brackets?

text: Consider:               \documentclass{article}     \usepackage{xspace}     \begin{document}     (something\xspace)          [something\xspace]          \{something\xspace\}     \end{document}      Or more to the point:               \documentclass{article}     \usepackage{xspace}     \newcommand{\something}{something\xspace}     \begin{document}     (\something)          [\something]          \{\something\}     \end{document}      Either of these yields: ![xspace output image](http://i.stack.imgur.com/NZNtb.png) So the question is, why does `\xspace` produce a space before `]` and `}` but not `)`? I find this very annoying. I would much rather it produces no space in any of these three circumstances. I know I can get rid of the space by using `\xspace{}` or `\something{}`, but it sort of defeats the purpose, which is primarily to define my own macros so that I don't need to think about whether I need `{}` afterwards, and can just use the macro as if it were a word. Do people consider this a bug? And if so, how should I report it?


title: How to set up a quartered layout in beamer

text: Back in Powerpoint days, I encountered a typical quartered layout, which was just tiling the body of the slide horizontally and vertically into equally sized pieces with arbitrary content:               -----------------------     | *bla     | texttext |     |          | texttext |     |          | texttext |     -----------------------     |          | 1. stuff |     |  IMAGE   | 2. stuff |     |          | 3. stuff |     -----------------------      I tried to reproduce this, but failed so far. My first step was to take a column environment and insert the vertical spaces:               \documentclass{beamer}     \begin{document}     \begin{frame}{foo}{bar}         \begin{columns}[t]             \begin{column}{0.5\textwidth}                 \begin{minipage}[t][0.35\textheight]{\textwidth}                     sdjfls\\                     sdjfk\\                     sd                 \end{minipage}                 \begin{minipage}[t][0.35\textheight]{\textwidth}                     sd                 \end{minipage}             \end{column}             \begin{column}{0.5\textwidth}                 \begin{minipage}[t][0.35\textheight]{\textwidth}                     sdjfls\\                     sd                 \end{minipage}                 \begin{minipage}[t][0.35\textheight]{\textwidth}                     sdjfls\\                     sdjfk\\                     sd                 \end{minipage}             \end{column}     \end{columns}     \end{frame}     \end{document}      But the manual tuning `0.35\textheight` is not really what I wanted, since I have to adjust the number 0.35 for every new theme. A better solution would be something like `0.5\columnheight` or `0.5\beamerslidebodyheight`. There might be no better solution with this ansatz, see question Why does vfill not work inside a beamer column?. I'm open to completely different solutions. One possibility could be to define a new length:                   \newlength{\restofpage}         \setlength{\restofpage}{\textheight}         \addtolength{\restofpage}{-\pagetotal}      and replace all the `0.35\textheight` by `0.5\restofpage`, but I don't think this works with footlines.


title: How to make footnote numbers invisible in ConTeXt?

text: I need to put some comments in the footnotes area in a document, but without any note numbers appearing. I've tried several things, including `\footnote[numbercommand={}]{This is the footnote}`, but nothing is working. I need the numbers in the text and the numbers near the footnote to both disappear. How can I make the footnote numbers invisible in ConTeXt?


title: Using `\hhline` coloring cells of a table

text: Sorry for this simple question. I am trying to color some cells of my table. Unfortunately, if I color two neighbouring cells, the lines of the table disappear. I have found some questions about this (here or here) They offer using `\hhline`, but I don't know how I am supposed to use it.               \documentclass{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage{multirow}     \usepackage{hhline}     \usepackage{colortbl}     \begin{document}     \begin{table}     \begin{tabular}{|l|c|c|c|c|}     \hline     \multicolumn{5}{|c|}{Type} \\     \hline       & A  &    B & C & D \\         \hline         X & 53,2\%  &  \cellcolor[gray]{.9}51,6\%  &  \cellcolor[gray]{.9}49\% & 49\% \\          Y  & 53,8\%  &  52,2\%  & 49\% & 49\% \\     \hline     \end{tabular}     \end{table}     \end{document}      ![enter image description here](http://i.stack.imgur.com/EPax4.png) Can anyone help me with this?


title: Word-style headers in LaTeX

text: I was wondering if there was a way to create a header in LaTeX that looks similar to those from Microsoft Word, for, say, a picky teacher.


title: \textbf inside a lemma

text: I have defined `lemma` and use it as follows:               \newtheorem{theorem}{Theorem}[section]     \newtheorem{lemma}[theorem]{Lemma}     ...     \begin{lemma}     abc_\textbf{indice}     \end{lemma}      It turns out that the `indice` becomes italic, does anyone know how to just make it bold, not italic?


title: Bibliography in LyX 2.0.0

text: I am trying to insert bibliography in LyX 2.0.0 in the following steps.   1. First i select Bibliography from drop down menu.   2. Next i click on insert --> list/TOC ---> Bibtex Bibliography ---> Add   3. And then i add Jabref Bib file. But when I click on the button to make pdf file, I receive following error. > Package natbib error: Bibliography not compatible with author-year > citations. Hope that someone will help me.


title: How to check whether two labels fall on the same page?

text: I'd like to have something like `5--10` in the header of an article (my document is a journal issue) if it spans the pages 5-10, and `5` (as opposed to `5--5`) if it is short and fits on one page. I use `\label`s in some hooks when including the individual articles which insert things like `\label{\articlename:beginning}` and `\label{\articlename:ending}`. Now the question is: how to check whether the two labels fall on the same page? Currently, I use something like               \pageref{\articlename:beginning}%     \expandafter\ifx\csname r@\articlename:beginning\expandafter\endcsname       \csname r@\articlename:ending\endcsname\else       --\pageref{\subjobname:end}%     \fi      (Quite obviously, this can be simplified using `etoolbox`'s `\ifcsequal` – I'm in the process of moving to `etoolbox` and that's why I didn't use it before.) My question is: is there a better way than using `\csname r@ something\endcsname` (or its equivalent with `etoolbox`), which seems to me a bit dirty-hackish? Maybe there's a ready-made package for this? (`varioref` comes to mind, which does similar things, but AFAIK it does not have any public interface like `\iflabelsonthesamepage{label1}{label2}{true}{false}`.)


title: Naming enumerated lists referencing the names

text: Currently I have the following TeX               \begin{enumerate}     \item First idea     \item \label{idea:s} Second idea     \end{enumerate}          \begin{enumerate}     \item Point about \ref{idea:s}     \end{enumerate}      I would like to be able to somehow name the lists themselves, and then the reference `idea:s` could be something like `List I.a`, or something like that. How can I name enumerated lists? I was thinking that defining an environment like a `theorem` environment would work, but is there a more preferred way? http://en.wikibooks.org/wiki/LaTeX/Theorems#Basic_theorems


title: Line breaks in subfig

text: I'm trying to put some text in a subfloat using the subfig package. (It's supposed to be part of the figure, not the caption.) I can't figure out how to add a line break. When I try this code:               \documentclass{article}     \usepackage{subfig}          \begin{document}          \begin{figure}[h]       \centering       \subfloat[a]{A\\\texttt{This is a test}}       \subfloat[b]{B}     \end{figure}          \end{document}      I get the error: Something's wrong--perhaps a missing \item. I tried changing the `\\\` to `\linebreak`, `\newline`, and `\par`. They all either do nothing or give an error. I also tried wrapping the text in an `mbox`, and I tried putting the line break inside the `texttt`. Nothing works. How do I do this?


title: Right-aligned line-break with long verses in verse

text: I'm happily using the `verse` environment to typeset French poetry. However, I'm unsatisfied with the behavior of long-line breaks (when the verse is too long to fit on the page). The `verse` behavior is to do:               Most of verses are short     here is another     foo bar bar foo long things will at one moment           break on another line     another short      What French typesetting convention requires is:               Most of verses are short     here is another     foo bar bar foo long things will at one moment                               [break on another line     another short      It's to say long line remainder part right-aligned, starting with an opening bracket, while the normal lines are still left aligned. Any ideas on how to change this behavior?


title: Beamer overlays: changing font between slides

text: I am creating slides with overlays in Beamer, using TiKZ to create a figure consisting mainly of text nodes. The idea is that different parts of the figure are highlighted on each slide. Initially it all appears in a light gray (I'm using "seagull" colours with a white background), and on each slide a different part of the figure is shown in full colour. I've achieved this by basically drawing the figure twice: once in light gray, and then drawing it again using a sequence of "onslide" commands. However, what I'd like is for text in a node to appear as bold face when it appears in colour. Here is an MWE:               \documentclass{beamer}          \usepackage{tikz}          \title{A test}      \author{Me}      \date{\today}          \begin{document}           \begin{frame}          \maketitle      \end{frame}          \begin{frame}{This is the test slide}            \begin{tikzpicture}[remember picture,overlay,color=lightgray]         \draw (current page.south west)++(1,1) coordinate (SW);         \draw (SW)++(2,1) node {First bit of text};         \draw (SW)++(4,3.5) node {Second bit of text};         \draw (SW)++(6,6) node {Third and final text};         \onslide<2>{\draw[color=blue] (SW)++(2,1) node {First bit of text};}         \onslide<3>{\draw[color=blue] (SW)++(4,3.5) node {Second bit of text};}         \onslide<4>{\draw[color=blue] (SW)++(6,6) node {Third and final  text};}            \end{tikzpicture}         \end{frame}          \end{document}      Now there may well be an easier and more natural way of doing this; on the other hand it means I can position text wherever I want. If I include a `text = \bfseries` in the second part of the above, then it seems to stick, and the lightgray text is also bold, which I don't want. So - any ideas on how text will appear in a color and bold, and then go back to lightgray and normal when it's not highlighted?


title: Small editing issues in LyX document

text: I'm editing a LyX document and am struggling with a few issues:   1. I would like to include an abstract but suppresses the word "Abstract" above the abstract.   2. The title sections and "References" are in in default in bold. I can manually change the section titles to not bold, but not the section numbers. Do you know how to unbold these?   3. I would like to change "References" (in bold) to "REFERENCES" not in bold.   4. Titles and "References" are by default on the left; I would like to have them centered. Thank you very much in advanced for enlightening me! Tompv


title: tikz-uml Warning underfull hbox

text: i'm stuck and have no idea what the problem is. I'd like to draw a UML component diagram with tkz-uml package. The drawing ist working fine, but i get a emty Box Message.               pdflatex> Underfull \hbox (badness 10000)      How can I prevent it? Here is some sample code               \documentclass[]{scrreprt}     \usepackage{tikz}     \usepackage{tikz-uml}     \pgfdeclarelayer{component0}     \pgfdeclarelayer{package0}     \pgfsetlayers{package0,component0}          \begin{document}          \begin{tikzpicture}           \begin{umlpackage}{A}             \umlbasiccomponent[x=0,y=0]{B}             \umlbasiccomponent[x=3.5,y=3.5]{C}             \umlbasiccomponent[x=7,y=0]{D}         \end{umlpackage}     \end{tikzpicture}           \end{document}


title: Quickly add text to existing pdf files / fill forms

text: I am sure I am not the only person to have had the following problem: one has a pdf document (usually some kind of a form that one needs to fill out over and over again) in a pdf file, which is not a form in the PDF sense. One wants to be able to fill the form quickly, and some fields are always the same. A solution is to use package pdfpages to include the form into .tex document and add some text with absolute positioning. Then each time one needs to fill the form, all it takes is a quick change of some text. This works, but the process of finding the correct absolute positions is slow even if one uses the binary search. Is there a tool to help with this? Or a better solution perhaps? (I know of pdfedit, but it is unstable for me.)


title: Footer: Typeset by AmS-TeX

text: How can I make a document display as a footer the text "Typeset by AmS-TeX"? I'm having trouble finding how to make this. Can you please help?


title: Multiple Tab stops in Math Split?

text: I am using mathmode with `split`. How can you use multiple tab stops. I want to span an equation across multiple lines, but then the last few I want to indent even more.               \[     \begin{split}          some& stuff here \\         &some &more stuff here \\               &even more stuff here          \end{split}     \]      Notice the 2nd tab stop and I want to look like it's shown with the tabs.


title: Shaped paragraph with centred picture (shapepar & cutwin)

text: I spent much time on this, but could not manage it or find a similar problem. I would like to insert a picture in the center of this heart shaped paragraph, the text should be wrapped around it. ![enter image description here](http://i.stack.imgur.com/RI4DR.png) That's a MWE:               \documentclass[9pt]{minimal}     \usepackage[T1]{fontenc}     \usepackage{lipsum}          \usepackage{shapepar}     \usepackage{cutwin}               \opencutcenter     \renewcommand\windowpagestuff{\centering\includegraphics[width=2cm]{example.jpg}}          \begin{document}     \shapepar{\heartshape}     \lipsum[1]     \end{document}      Any attempt with the package cutwin leads to huge crashes. For example the following:               \begin{cutout}{a}{b}{c}{d}      \shapepar{\heartshape}     \lipsum[1]     \end{cutout}      Does anyone have a clue how to proceed? Thanks !


title: TikZ-ifthen: decision making in a \foreach statement

text: ## Disclaimer I am not a programmer so I may not use the proper terminology to express myself. Please correct me if need be. ## Preamble I'm trying to draw a sinusoidal function and some arrows at specific points (positioned on the reference abscissa for the function) whose length is given by the value of the function at that point. At each point I would also draw a small circle to highlight the point itself. ## Problem Statement In order to implement that, I would like to use a `\foreach` statement. However, if I draw the arrows at points in which the function has zero value, I still get an arrowhead -- just to be clear, I don't want that. To avoid this, I tried to use the `\ifthen` package, imposing something like > "if sin(x) is not 0, then draw the arrow..." > > but in all cases draw the (filled) circle but I'm getting an error. Could someone help me?               \documentclass{article}     \usepackage{tikz,ifthen}     \begin{document}     What I have now:          \begin{tikzpicture}[>=latex]       \draw [thick,dashed] plot [domain=-2*pi:2*pi,samples=100] (\x,{sin(\x r)});       \foreach [evaluate={\y=\x*pi;\z=sin(\y r);}] \x in {-2,-1.5,...,2} {         \fill (\y,0) circle (1.5pt);         %\ifthenelse{\NOT \z=0}{\draw [->,thick] (\y,0) -- +({-sin(\y r)},0);}{};         \draw [->,thick] (\y,0) -- +({-sin(\y r)},0);       }     \end{tikzpicture}          What I am trying to achieve:          \begin{tikzpicture}[>=latex]       \draw [thick,dashed] plot [domain=-2*pi:2*pi,samples=100] (\x,{sin(\x r)});       \foreach [evaluate={\y=\x*pi;}] \x in {-1.5,-0.5,...,1.5} {         \fill (\y,0) circle (1.5pt);         \draw [->,thick] (\y,0) -- +({-sin(\y r)},0);       }       \foreach [evaluate={\y=\x*pi;}] \x in {-2,...,2}         \fill (\y,0) circle (1.5pt);     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/mYTJs.jpg)


title: Name in chemfig: on rotation it is placed above, rather than below the molecule itself

text: please consider the following               \documentclass{minimal}     \usepackage{chemfig, xstring}     \begin{document}     \definesubmol{allicin}{%                % 1          =[::90]S% 2                   (             -[::60]% 3             -[::60]% 4             =[::-60]O% 5                   )          -[::-60]S% 6         -[::-60]% 7          -[::60]% 8          =[::-60]% 9     }% allicin end     \chemfig{[:180]!{allicin}}{allicin}     \end{document}      The molecule is written in a certain way (SMILES and then mol2chemfig!!) and then it is rotated and drawn. Also the label appear somehow rotated, in fact it is not below, as expected but above the molecule. I've been reading the manual, but it only reports `\cheminitname` which regulate the alignment of labels among different molecules. Any idea, (beside rewriting the molecule, of course) on how to write the label under the molecule ? In this case is not that difficult to rewrite the molecule, but in more complex cases, especially when mol2chemfig is involved, the task of rewrite a molecule may be hard and time consuming.


title: Why doesn't \pagestyle{empty} work on the first page of a chapter?

text: Here's a minimal case of the problem:               \documentclass{book}          \pagestyle{empty}          \begin{document}          \chapter{The first}          This page has a page number\ldots          \newpage          \ldots but not this one.          \end{document}      I've surmised (by removing it) that the problem has something to do with the `\chapter` line. But what caused this issue and how do I correct it?


title: Which LaTeX fonts can be practically considered as available on most platforms?

text: Does anyone know of a list of LaTeX fonts that can be considered as already available on typical platforms? My interpretation of "typical platform" now means Windows XP, Vista, 7, whatever the current crop of Mac OSes are and, possibly not very likely, Ubuntu. I know there are other platforms (I've had quite a few Linux distributions around the house), but in my case the above matches the platforms readers of my non-math LaTeX documents would have. Of course, I am aware of the Font Catalogue, but my question is looking for the "safe subset" which I could use without my readers having problems and needing to install fonts. To be precise, I'm producing PDFs. Ignoring Ubuntu, it's quite possible that most readers will also have MS Office installed (which comes with a number of fonts) but I cannot guarantee it, so to play it safe, I cannot fully rely on it. I did google for this, but couldn't find such a list, perhaps others know more. Thanks in advance.


title: pgfplots - legend displays incorrectly for stacked bar chart

text: I have a problem with formatting the legend correctly. Here is my code:               \begin{figure}[H]     \centering     \begin{tikzpicture}     \pgfplotstableread{     x Order                               m0  m132  m3  m460  m6     0 gtx780-cb-s 0.57615 0.627627 0.394365 0.811266 1.05492     1 gtx780-mu-s 0.141668 0.315022 0.145579 0.202026 0.253015     4 gtx780-cb-d 3.784450 10.841200 5.527380 5.881210 8.342070     5 gtx780-mu-d 0.279953 0.918595 0.340272 0.471707 0.422749     8 k40-cb-s 0.695936 0.831193 0.476254 1.05996 1.26672     9 k40-mu-s 0.193261 0.434555 0.195305 0.303927 0.338011     12 k40-cb-d 1.004380 2.401120 1.314340 1.560650 2.067400     13 k40-mu-d 0.377453 1.200990 0.377581 0.598974 0.674917     }\datatable          \begin{axis}[         x post scale=\linewidth/\axisdefaultwidth,         xlabel=Time {[}ms{]},         ytick=data,         yticklabels from table={\datatable}{Order},         xbar stacked,         xmin=0,         ymax=15,         legend style={area legend,at={(0.5,-0.3)},anchor=north,legend columns=-1},     ]          \addplot table [x expr={4 * \thisrow{m0}}, y=x] {\datatable};     \addplot table [x=m132, y=x] {\datatable};     \addplot table [x=m3, y=x] {\datatable};     \addplot table [x=m460, y=x] {\datatable};     \addplot table [x=m6, y=x] {\datatable};          \addlegendimage{blue,sharp plot}     \addlegendimage{red,sharp plot}          \draw[blue] (axis cs:1.77394776117234,\pgfkeysvalueof{/pgfplots/ymin}) -- (axis cs:1.77394776117234,\pgfkeysvalueof{/pgfplots/xmax});     \draw[red] (axis cs:2.12873731340681,\pgfkeysvalueof{/pgfplots/ymin}) -- (axis cs:2.12873731340681,\pgfkeysvalueof{/pgfplots/xmax});          \legend{M0,M132,M3,M460,M6,line1,line2};     \end{axis}     \end{tikzpicture}          \end{figure}      And the output I get is: ![screen](http://i.imgur.com/nxfe3Vm.png?1) As you can see the legend is not formatted nicely. I want little color areas for the bars and two lines for the two lines I've added to the plot. Also, how do I bring the lines on top of the bars? Thanks!


title: bibliography author initial spacing

text: I am using the IEEE LaTeX bibliography style, and I want to make a small change to the format of authors' names. This is not actually for submission to the IEEE so changing the format won't be a problem. Right now, their format produces a space between each initial of an authors first and middle name(s), in addition to the abbreviating period. That is, "John Frederik Camelot Smith" (I made that up if you can believe it) gets formatted as "J. F. C. Smith". I would like it if the only space in that string were the one between the last initial and the last name, i.e. "J.F.C. Smith". Now, IEEE provides a special bibliography entry, `@IEEEtranBSTCTL` that allows you to modify some aspects of their formatting, and one of the member fields is `CTLname_format_string`, which dictates the formatting of the author name field. By default it is: `CTLname_format_string = "{f.~}{vv~}{ll}{, jj}",` I've tried playing around with this, changing the non-breaking spaces to small spaces (`\,`) or negative spaces (`\\!`), but everything I've tried seems to apply to all the spaces. Can someone explain:   1. What the formatting of `CTLname_format_string` means, i.e. what are the `f`, `vv`, etc fields?   2. How to get the format that I'm looking for, so that the only author initial with a space after its period would be the last one before the last name, as follows: "John Frederik Camelot Smith" -> "J.F.C. Smith" "Jason Bourne" -> "J. Bourne" --- Additional Info --- If anyone wants to experiment with this and is unfamiliar with the IEEE `.bib` files, here's the quick run-down:   * They're included with MikTex distributions (at least they were with mine)   * Invoke them with:              \bibliographystyle{IEEEtran}     \bibliography{IEEEabrv,your_bib_file_name}{}      To modify the formatting as I've been talking about you need to do three things:   1. Add the following entry to your bibliography (`.bib` file):              @IEEEtranBSTCTL{IEEEexample:BSTcontrol,         CTLuse_article_number = "yes",         CTLuse_paper = "yes",         CTLuse_forced_etal = "no",         CTLmax_names_forced_etal = "10",         CTLnames_show_etal = "1",         CTLuse_alt_spacing = "yes",         CTLalt_stretch_factor = "4",         CTLdash_repeated_names = "yes",         CTLname_format_string = "{f.~}{vv~}{ll}{, jj}",         CTLname_latex_cmd = "",         CTLname_url_prefix = "[Online]. Available:"     }        2. If you're not also using the IEEEtran style, add the following to your preamble:              \makeatletter     \def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}}     \def\@bstctlcite[#1]#2{\@bsphack       \@for\@citeb:=#2\do{%         \edef\@citeb{\expandafter\@firstofone\@citeb}%         \if@filesw\immediate\write\csname #1\endcsname{\string\citation{\@citeb}}\fi}%       \@esphack}     \makeatother        3. Add the following citation just after your `\begin{document}`:              \bstctlcite{IEEEexample:BSTcontrol}      --- Update After Comment from Lockstep --- The following provides a minimal working example: Main Latex file contents:               \documentclass[12pt, oneside, ]{report}           % Define the IEEE citation control command (not necessary if using IEEEtran class)     \makeatletter     \def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}}     \def\@bstctlcite[#1]#2{\@bsphack       \@for\@citeb:=#2\do{%         \edef\@citeb{\expandafter\@firstofone\@citeb}%         \if@filesw\immediate\write\csname #1\endcsname{\string\citation{\@citeb}}\fi}%       \@esphack}     \makeatother               % Begin Logical Document     \begin{document}     \bstctlcite{IEEEexample:BSTcontrol}          Here is an example citation \cite{smith2009pain}.           \bibliographystyle{IEEEtran}     \bibliography{IEEEabrv,keylatex}{}          % End Logical Document     \end{document}      Bib file contents (named `keylatex.bib` in this example):               @ARTICLE{smith2009pain,       author = {John Frederik Camelot Smith and Jason Bourne},       title = {{The Pain of Having a Foolish Name}},       journal = {Journal of Modern Fiction},       year = {2009},       volume = {52},       pages = {114},       number = {1},       issn = {0010-4620},       publisher = {Grendel Publishing}     }          @IEEEtranBSTCTL{IEEEexample:BSTcontrol,         CTLuse_article_number = "yes",         CTLuse_paper = "yes",         CTLuse_forced_etal = "no",         CTLmax_names_forced_etal = "10",         CTLnames_show_etal = "1",         CTLuse_alt_spacing = "yes",         CTLalt_stretch_factor = "4",         CTLdash_repeated_names = "yes",         CTLname_format_string = "{f.~}{vv~}{ll}{, jj}",         CTLname_latex_cmd = "",         CTLname_url_prefix = "[Online]. Available:"     }      When I compile the above with MikTex 2.8 using pdflatex and bibtex, I get "J. F. C. Smith and J. Bourne" for names when I want "J.F.C. Smith and J. Bourne" (notice the lack of spaces in "J.F.C.").


title: Bibliography Total pages?

text: How can I indicate in my bibliography that the reference has 500 pages in total, for example. As I understand, the keyword "pages" in Bibtex refers to the specific page or page ranges.


title: Defining an abbreviated notation for referencing glossary entries

text: I have defined a command for adding a new symbol to the glossaries as follows:               \newcommand{\NewSymb}[4]{         \newglossaryentry{#1}{             name=#2,             description={\nopostdesc #3},              sort=#4,             type=los,             nonumberlist=true         }     }      which can then be used for example like this:               \NewSymb{s:lattice}{\ensuremath{\Lambda}}{A Lattice}{lattice}      Now, in the text I can refer to this entry via               \gls[hyper=false]{s:lattice}       but this is a bit too long for my taste. Therefore I have defined a command via               \newcommand{\LA}{{\gls[hyper=false]{s:lattice}}}      but I was wondering if it is somehow possible to integrate this `\newcommand` into the `\NewSymb` command, such that, after executing, say               \NewSymb{s:lattice}{\ensuremath{\Lambda}}{A Lattice}{lattice}{LA}      I automatically have access to an abbreviated command `\LA`. The name of the abbreviated command would be provided as a parameter of the NewSymb command.


title: How to create index entry for \n?

text: I can't get LaTeX to generate index entry for newline `\n`. I tried `\index{"\\\n"}` and `\index{"\n"}` and `\index{\n}` and `\index{\\\n}`. None of these seem to work. I am getting errors like:               ! LaTeX Error: There's no line here to end.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.14   \item \\n                     |hyperpage, 19      Anyone knows?