title: PDF Preview not working

text: I'm using LyX 1.6.8 on Windows 7 Pro x64. Today I installed Adobe Reader X - and it doesn't work with LyX any more: Adobe Reader does not open the generated PDF after you created the PDF with LyX. It only shows a welcome dialog like "Open last files - Acrobat services - etc". First idea of course was "file association" - But the pdf file association is alright. Double clicking a pdf works from any place (also paths with spaces). Anyone having ideas? Confirmthis? Maybe related to some 64 bit thing?


title: Using LaTeX for pre-printed paper

text: I'm thinking of moving from Crystal Reports to a LaTeX based solution, but it's a requirement to be able to make a pdf that conforms to a pre-printed layout (in the company I work we use pre-printed invoices, so they can be filled manually or printed). Is there a way to do this with latex? i should need to define:   * the maximum width of a field.   * the position of this field.   * the paper size in milimeters (there are printed checks too!)


title: Indexing: inverting names

text: I have defined `\Index` to mark a word or phrase for indexing and also preserve it in text:               \newcommand{\Index}[1]{#1\index{#1}}      How would I define a macro to invert the index entry? e.g. `\NewIndex{Tom Jones}` would put "Tom Jones" in the text and "Jones, Tom" in the index. I tried `\newcommand{\N}[2]{#1 #2\index{#2, #1}}` but `\N{Tom Jones}`, produces "Tom Jones ," in the text and ",, Tom Jones" in the index. If this is possible, is it also possible to provide for names with an arbitrary number of elements so that `\NewIndex{Tom Jones}` works as above but `\NewIndex{Homer W. Simpson}` puts "Homer W. Simpson" in the text and "Simpson, Homer W." in the index? (There are only a few special forms like "Homer Simpson Jr" in my text and I can deal with them manually.)


title: Reducing font size in equation

text: I wanted to type an equation in LaTeX. But it is too long to fit into one line. It involves big arrays with many columns so I cannot split it. I wanted to reduce the font size so that it can fit in one line. However, `\small` doesn't work in the `equation` environment.


title: Strange behavior of \footnotemark/\footnotetext in revtex4-1

text: I've been writing using the class `revtex4-1` (for the APS journals...) and have come across the following: When using `footnotemark` and `footnotetext` they each advance the `footnote` counter rather than only `footnotetext`, as in the `article` class. Here's a minimal example (I use `nofootinbib` to override the default which is to place the footnotes with the bibliography..., and the minipage is so that I can show you the output, it has no other effect):               \documentclass[nofootinbib]{revtex4-1}     \begin{document}          \begin{minipage}{5cm}     hello\footnotemark          \footnotetext{hello's text}          \begin{equation}     1+1=2 \footnotemark\label{eq:1}     \end{equation}     \footnotetext{equations footnote}     \end{minipage}     \end{document}      which results in the following strange output: ![alt text](http://i.stack.imgur.com/HJTMR.png) Sure, I can fix it by inserting a `\addtocounter{-1}{footnote}` between the two commands...but I'm more interested in why this is happening, and whether its a bug. * * * hmmm. I just checked, it works fine with `revtex4`, so this is probably a bug in `revtex4-1`...Still, I'd like to hear your input.


title: How to avoid heading orphan?

text: I want to get rid of pages ending with a heading title only. I want at least 2 text rows following the heading title to make a better look. What is the exact value to be passed to `\Needspace*{}` to avoid this heading orphan?


title: pagenote: Adding a cross-referencing mechanism

text: This question originates from a bug report at SourceForge.net: biblatex from April 2010. A user pointed out that a certain `biblatex` style (`verbose- inote`) produced wrong references when used together with the `pagenote` package (which, quoting from its documentation, "provides notes similar to footnotes except that they are typeset on a different page"). What follows is the response of Philipp Lehman, the author of `biblatex`: > Looks like a bug in the pagenote package which does not seem to support > \label in the pagenotes: >   >   >     \documentclass{scrartcl} >     \usepackage{pagenote} >     \makepagenote >     \begin{document} >     Text\pagenote{Page note.\label{test1}} >     Text\pagenote{See note \ref{test1}.} >     Text\pagenote{Another page note.\label{test2}} >     Text\pagenote{See note \ref{test2}.} >     \printnotes >     \end{document} >   > > It works fine with the endnotes package so I suggest you try that: >   >   >     \documentclass{scrartcl} >     \usepackage{endnotes} >     \begin{document} >     Text\endnote{Endnote.\label{test1}} >     Text\endnote{See note \ref{test1}.} >     Text\endnote{Another endnote.\label{test2}} >     Text\endnote{See note \ref{test2}.} >     \theendnotes >     \end{document} >   > > The verbose-inote style uses the \label+\ref mechanism. Since this is a > standard LaTeX feature, I consider this a bug in/a limitation of the > pagenote package. Recently, I took a look into `endnotes.sty` (which also contains the package documentation) and stumbled upon the following change note: > Modification by Dominik Wujastyk, London, 19 September 1991: > > Moved the line >   >   >     \edef\@currentlabel{\csname p@endnote\endcsname\@theenmark} >   > > out of the definition of \@endnotetext and into the definition of > \@doanenote so that \label and \ref commands work correctly in endnotes. > Otherwise, the \label just pointed to the last section heading (or whatever) > preceding the \theendnotes command. This former bug of the `endnotes` package actually equates to the current behaviour of `pagenote`. It is unclear to me if the author of the `pagenote` package, Peter Wilson, did not want to include a cross-referencing mechanism or if `pagenote` suffers from a similar bug as `endnotes` once did, but for `biblatex`'s verbose-inote style, a `\label`+`\ref` mechanism in `pagenote` would be extremely useful. By now, you may have guessed the actual question: _What modifications in / additions to`pagenote.sty` would be necessary to support the standard LaTeX cross-referencing mechanism?_


title: LaTeX prevent oversized table from getting cut off

text: I have a LaTeX file with a very wide table with many many columns. When I compile this and convert to pdf, the right part of the table is cut off because it is too big to fit on a page. Is there a way to either   1. extend the size of the page to avoid cutoff   2. reduce the size of the table text such that the entire table can fit on a page


title: How to typeset a list of specifications?

text: I need to make a list of technical specifications like this: ![example of list of specifications](http://i.stack.imgur.com/EbNM6.png) It looks like description but I would like to have numbers flushed right like in my example, how could I do that ?


title: Minitoc is not updating itself

text: The following MWE utilises minitoc.               \documentclass[a4paper]{book}     \usepackage{lipsum}     \usepackage{hyperref}          \usepackage{minitoc}     \dominitoc          \begin{document}     \include{TOC}     \include{chap1}     \include{chap2}     \end{document}      TOC.tex:               \tableofcontents      Chap1.tex:               \chapter{One}     \minitoc          \section{One One}     \lipsum[1-10]          \section{One Two}     \lipsum[20-30]      Chap2.tex:               \chapter{Two}     \section{Two One}     \section{Two Two}     \minitoc          \lipsum[2]      It works fine as expected and mini tocs are created. However, the problem starts when \includeonly{chap1}, as an example, is used. The minitoc for chap1.tex does not update itself when additional sections are added to the file. Also when I run the following command from terminal: pdflatex -jobname=thechap01 "\includeonly{chap1}\input{tmp}" I get the following error.               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)      restricted \write18 enabled.     entering extended mode     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, et     hiopic, farsi, arabic, pinyin, croatian, bulgarian, ukrainian, russian, slovak,      czech, danish, dutch, usenglishmax, ukenglish, finnish, french, basque, ngerma     n, german, swissgerman, ngerman-x-2012-05-30, german-x-2012-05-30, monogreek, g     reek, ibycus, ancientgreek, hungarian, bengali, tamil, hindi, telugu, gujarati,      sanskrit, malayalam, kannada, assamese, marathi, oriya, panjabi, italian, lati     n, latvian, lithuanian, mongolian, mongolianlmc, nynorsk, bokmal, indonesian, e     speranto, coptic, welsh, irish, interlingua, serbian, serbianc, slovenian, friu     lan, romansh, estonian, romanian, armenian, uppersorbian, turkish, afrikaans, i     celandic, kurmanji, polish, portuguese, galician, catalan, spanish, swedish, th     ai, loaded.     (./tmp.tex (/usr/share/texlive/texmf-dist/tex/latex/base/book.cls     Document Class: book 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texlive/texmf-dist/tex/latex/base/bk10.clo))     (/usr/share/texlive/texmf-dist/tex/latex/lipsum/lipsum.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/graphics/keyval.sty)     (/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)     (/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)     (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)     (/usr/share/texlive/texmf-dist/tex/latex/url/url.sty))          Package hyperref Message: Driver (autodetected): hpdftex.          (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def     (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     (/usr/share/texlive/texmf-dist/tex/latex/minitoc/minitoc.sty     (/usr/share/texlive/texmf-dist/tex/latex/minitoc/mtcmess.sty) (./thechap01.mtc0     ) (/usr/share/texlive/texmf-dist/tex/latex/minitoc/english.mld)     (/usr/share/texlive/texmf-dist/tex/latex/minitoc/english.mld)) (./thechap01.aux      (./TOC.aux) (./chap1.aux) (./chap2.aux))     (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     (./thechap01.out) (./thechap01.out)          Package minitoc(hints) Warning: W0030     (minitoc(hints))                --- The \part command is altered      (minitoc(hints))                after minitoc.               Package minitoc(hints) Warning: W0023     (minitoc(hints))                --- It may be the consequence      (minitoc(hints))                of loading the ``hyperref'' package.               Package minitoc(hints) Warning: W0028     (minitoc(hints))                --- The \chapter command is altered      (minitoc(hints))                after minitoc.               Package minitoc(hints) Warning: W0023     (minitoc(hints))                --- It may be the consequence      (minitoc(hints))                of loading the ``hyperref'' package.               ! LaTeX Error: No counter 'Hy@AnnotLevel' defined.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.12 \include{TOC}          ? x     No pages of output.     Transcript written on thechap01.log.      Any help is appreciated.


title: What is the ConTeXt equivalent of LaTeX “\@.”

text: In English text, TeX follows the convention of putting extra space after a period by default, which I like. However, in the case of abbreviations it causes a problem. To suppress the extra space, one can use `\ ` or `~`, which is useful for lower case abbreviations such as “e.g.” Unfortunately, for upper-case abbreviations, TeX archaically assumes that the period is part of the abbreviation, and uses a narrow space. You can force a wide space in LaTeX via the `\@.` macro:               \documentclass{article}     \begin{document}     Wrong: \\     First.  An abbreviation, e.g. PC.  Second. \\     First.  An abbreviation, e.g.\ PC\@.  Second. \\     :Right     \end{document}      In ConTeXt, this causes an error – the `\@.` macro is not defined.               \starttext     Wrong: \\     First.  An abbreviation, e.g. PC.  Second. \\     First.  An abbreviation, e.g.\ PC\@.  Second. \\  % Error here.     :Right     \stoptext      So, is there an equivalent of `\@.` for ConTeXt?


title: MetaUML with LyX?

text: How to install MetaUML for LyX?   How to use it? Is there a site where I can find resources about this subject? And if not, is there an equivalent tool for this **not Dia**?


title: Place node above specific path segment

text: I am trying to put a node above a specific segment of a path that is "bent" using "|-" (kind of broken into segments). A minimal example follows here:               \begin{tikzpicture}       \node[rectangle,draw] (N1) at (0,0) {N1};       \node[rectangle,draw] (N2) at (5,1) {N2};            \path[draw,blue,rounded corners] (N1) -- ++(0,2) -| node[above] {text} (N2);       \path[draw,red] (N1) -- node[above] {works} (N2);      \end{tikzpicture}      I would like to be able to control the position of the node in the first \path command, being able to place it on either of the three path segments, possibly shifting it more to the beginning/end as I wish. Any help is appreciated!


title: How to create an index entry for “|| operator”?

text: Following the `\index` quoting rules (prepend a reserved character with a double-quote), I do               \index{"|"| operator}      but the entry never shows up in the index. Doing these (similar) things does work as expected:               \index{"!"! operator}     \index{"| operator}      So what is special about '||'? Needless to say, it also doesn't work without double-quotes.


title: Integer related issue in the domain of a function. It works with 1.0 but not with 1

text: I write a little script to draw a line with a Gaussian pulse. I define some commands (`\verticalSpace`, `\HorizontalSpace` and so on) to parametrize the figure. In particular, I define `\length` to set a certain space that I have to leave. `\length` does not have any restriction, or at least I cannot find them, but I set               \newcommand{\length}{1.0}      it works, but it doesn't if I set               \newcommand{\length}{1}      Can anyone understand why? Here's the code               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{intersections,arrows,positioning}          \begin{document}          \newcommand{\verticalSpace}{1}     \newcommand{\HorizontalSpace}{5}     \newcommand{\length}{1} % HERE! with 1 it does not work, but it does with 1.0     \newcommand{\Ox}{.5}     \newcommand{\Oy}{0}     \newcommand{\pulse}{plot[domain=-\length/2:\length/2,samples=100] function{exp(-20*x*x)/2}}     \begin{figure}     \centering     \begin{tikzpicture}[scale=1]       \tikzstyle{linea}=[line width=1pt]       \tikzstyle{riempimento}=[fillstyle=gradient,gradangle=0,gradbegin=white,gradend=white,gradmidpoint=1.0]       %       \path (\Ox-1*\length,\Oy+0.3) node {$x$};       \filldraw[shift={(\Ox+.5+3*\length+\length/2,\Oy)},linea,draw=blue,top color=blue,shading=axis,shading angle=0] plot[domain=-\length/2:\length/2,samples=100] function{exp(-20*x*x)/2};%\pulse;       \draw[->,linea] (\Ox , \Oy) -- (\Ox+\HorizontalSpace,\Oy);      \end{tikzpicture}     \end{figure}          \end{document}      Here's the content of the log file I get adding \listfiles in the preamble.               This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (preloaded format=latex 2011.11.19)  6 MAY 2013 13:27     entering extended mode     **D:/work/PPM/paper/dummy.tex     (D:/work/PPM/paper/dummy.tex     LaTeX2e <2005/12/01>     Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge     rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded.     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\base\size10.clo"     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count79     \c@section=\count80     \c@subsection=\count81     \c@subsubsection=\count82     \c@paragraph=\count83     \c@subparagraph=\count84     \c@figure=\count85     \c@table=\count86     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\pgf\frontendlayer\tikz.sty"     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\pgf\basiclayer\pgf.sty"     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\pgf\utilities\pgfrcs.sty"     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\utilities\pgfutil-common.te     x"     \pgfutil@everybye=\toks14     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\utilities\pgfutil-latex.def     "     \pgfutil@abb=\box26      ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\ms\everyshi.sty"     Package: everyshi 2001/05/15 v3.00 EveryShipout Package (MS)     ))     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\utilities\pgfrcs.code.tex"     Package: pgfrcs 2010/10/25 v2.10 (rcs-revision 1.24)     ))     Package: pgf 2008/01/15 v2.10 (rcs-revision 1.12)      ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\pgf\basiclayer\pgfcore.sty"     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\graphics\graphicx.sty"     Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)          ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\graphics\keyval.sty"     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks15     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\graphics\graphics.sty"     Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)          ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\graphics\trig.sty"     Package: trig 1999/03/16 v1.09 sin cos tan (DPC)     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\00miktex\graphics.cfg"     File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive     )     Package graphics Info: Driver file: dvips.def on input line 91.          ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\graphics\dvips.def"     File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)     ))     \Gin@req@height=\dimen103     \Gin@req@width=\dimen104     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\pgf\systemlayer\pgfsys.sty"     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\systemlayer\pgfsys.code.tex     "     Package: pgfsys 2010/06/30 v2.10 (rcs-revision 1.37)      ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\utilities\pgfkeys.code.tex     "     \pgfkeys@pathtoks=\toks16     \pgfkeys@temptoks=\toks17          ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\utilities\pgfkeysfiltered.c     ode.tex"     \pgfkeys@tmptoks=\toks18     ))     \pgf@x=\dimen105     \pgf@y=\dimen106     \pgf@xa=\dimen107     \pgf@ya=\dimen108     \pgf@xb=\dimen109     \pgf@yb=\dimen110     \pgf@xc=\dimen111     \pgf@yc=\dimen112     \w@pgf@writea=\write3     \r@pgf@reada=\read1     \c@pgf@counta=\count87     \c@pgf@countb=\count88     \c@pgf@countc=\count89     \c@pgf@countd=\count90          ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\systemlayer\pgf.cfg"     File: pgf.cfg 2008/05/14  (rcs-revision 1.7)     )     Package pgfsys Info: Driver file for pgf: pgfsys-dvips.def on input line 900.          ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\systemlayer\pgfsys-dvips.de     f"     File: pgfsys-dvips.def 2008/04/03  (rcs-revision 1.20)          ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\systemlayer\pgfsys-common-p     ostscript.def"     File: pgfsys-common-postscript.def 2008/10/01  (rcs-revision 1.22)     \pgf@objectcount=\count91     )))     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\systemlayer\pgfsyssoftpath.     code.tex"     File: pgfsyssoftpath.code.tex 2008/07/18  (rcs-revision 1.7)     \pgfsyssoftpath@smallbuffer@items=\count92     \pgfsyssoftpath@bigbuffer@items=\count93     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\systemlayer\pgfsysprotocol.     code.tex"     File: pgfsysprotocol.code.tex 2006/10/16  (rcs-revision 1.4)     )) ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\xcolor\xcolor.sty"     Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)          ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\00miktex\color.cfg"     File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive     )     Package xcolor Info: Driver file: dvips.def on input line 225.     Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.     Package xcolor Info: Model `RGB' extended on input line 1353.     Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.     Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.     Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.     Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.     Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.     Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcore.code.tex     "     Package: pgfcore 2010/04/11 v2.10 (rcs-revision 1.7)      ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmath.code.tex"     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmathcalc.code.tex"     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmathutil.code.tex")     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmathparser.code.tex     "     \pgfmath@dimen=\dimen113     \pgfmath@count=\count94     \pgfmath@box=\box27     \pgfmath@toks=\toks19     \pgfmath@stack@operand=\toks20     \pgfmath@stack@operation=\toks21     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmathfunctions.code.     tex"     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmathfunctions.basic     .code.tex")     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmathfunctions.trigo     nometric.code.tex")     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmathfunctions.rando     m.code.tex")     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmathfunctions.compa     rison.code.tex")     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmathfunctions.base.     code.tex")     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmathfunctions.round     .code.tex")     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmathfunctions.misc.     code.tex")))     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\math\pgfmathfloat.code.tex"     \c@pgfmathroundto@lastzeros=\count95     ))     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcorepoints.co     de.tex"     File: pgfcorepoints.code.tex 2010/04/09  (rcs-revision 1.20)     \pgf@picminx=\dimen114     \pgf@picmaxx=\dimen115     \pgf@picminy=\dimen116     \pgf@picmaxy=\dimen117     \pgf@pathminx=\dimen118     \pgf@pathmaxx=\dimen119     \pgf@pathminy=\dimen120     \pgf@pathmaxy=\dimen121     \pgf@xx=\dimen122     \pgf@xy=\dimen123     \pgf@yx=\dimen124     \pgf@yy=\dimen125     \pgf@zx=\dimen126     \pgf@zy=\dimen127     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcorepathconst     ruct.code.tex"     File: pgfcorepathconstruct.code.tex 2010/08/03  (rcs-revision 1.24)     \pgf@path@lastx=\dimen128     \pgf@path@lasty=\dimen129     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcorepathusage     .code.tex"     File: pgfcorepathusage.code.tex 2008/04/22  (rcs-revision 1.12)     \pgf@shorten@end@additional=\dimen130     \pgf@shorten@start@additional=\dimen131     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcorescopes.co     de.tex"     File: pgfcorescopes.code.tex 2010/09/08  (rcs-revision 1.34)     \pgfpic=\box28     \pgf@hbox=\box29     \pgf@layerbox@main=\box30     \pgf@picture@serial@count=\count96     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcoregraphicst     ate.code.tex"     File: pgfcoregraphicstate.code.tex 2008/04/22  (rcs-revision 1.9)     \pgflinewidth=\dimen132     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcoretransform     ations.code.tex"     File: pgfcoretransformations.code.tex 2009/06/10  (rcs-revision 1.11)     \pgf@pt@x=\dimen133     \pgf@pt@y=\dimen134     \pgf@pt@temp=\dimen135     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcorequick.cod     e.tex"     File: pgfcorequick.code.tex 2008/10/09  (rcs-revision 1.3)     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcoreobjects.c     ode.tex"     File: pgfcoreobjects.code.tex 2006/10/11  (rcs-revision 1.2)     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcorepathproce     ssing.code.tex"     File: pgfcorepathprocessing.code.tex 2008/10/09  (rcs-revision 1.8)     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcorearrows.co     de.tex"     File: pgfcorearrows.code.tex 2008/04/23  (rcs-revision 1.11)     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcoreshade.cod     e.tex"     File: pgfcoreshade.code.tex 2008/11/23  (rcs-revision 1.13)     \pgf@max=\dimen136     \pgf@sys@shading@range@num=\count97     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcoreimage.cod     e.tex"     File: pgfcoreimage.code.tex 2010/03/25  (rcs-revision 1.16)          ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcoreexternal.     code.tex"     File: pgfcoreexternal.code.tex 2010/09/01  (rcs-revision 1.17)     \pgfexternal@startupbox=\box31     ))     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcorelayers.co     de.tex"     File: pgfcorelayers.code.tex 2010/08/27  (rcs-revision 1.2)     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcoretranspare     ncy.code.tex"     File: pgfcoretransparency.code.tex 2008/01/17  (rcs-revision 1.2)     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\basiclayer\pgfcorepatterns.     code.tex"     File: pgfcorepatterns.code.tex 2009/07/02  (rcs-revision 1.3)     )))     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\modules\pgfmoduleshapes.cod     e.tex"     File: pgfmoduleshapes.code.tex 2010/09/09  (rcs-revision 1.13)     \pgfnodeparttextbox=\box32     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\modules\pgfmoduleplot.code.     tex"     File: pgfmoduleplot.code.tex 2010/10/22  (rcs-revision 1.8)     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\pgf\compatibility\pgfcomp-version     -0-65.sty"     Package: pgfcomp-version-0-65 2007/07/03 v2.10 (rcs-revision 1.7)     \pgf@nodesepstart=\dimen137     \pgf@nodesepend=\dimen138     )     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\pgf\compatibility\pgfcomp-version     -1-18.sty"     Package: pgfcomp-version-1-18 2007/07/23 v2.10 (rcs-revision 1.1)     ))     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\pgf\utilities\pgffor.sty"     ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\pgf\utilities\pgfkeys.sty"     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\utilities\pgfkeys.code.tex"     )) ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\utilities\pgffor.code.te     x"     Package: pgffor 2010/03/23 v2.10 (rcs-revision 1.18)     \pgffor@iter=\dimen139     \pgffor@skip=\dimen140     \pgffor@stack=\toks22     \pgffor@toks=\toks23     ))     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\frontendlayer\tikz\tikz.cod     e.tex"     Package: tikz 2010/10/13 v2.10 (rcs-revision 1.76)          ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\libraries\pgflibraryplothan     dlers.code.tex"     File: pgflibraryplothandlers.code.tex 2010/05/31 v2.10 (rcs-revision 1.15)     \pgf@plot@mark@count=\count98     \pgfplotmarksize=\dimen141     )     \tikz@lastx=\dimen142     \tikz@lasty=\dimen143     \tikz@lastxsaved=\dimen144     \tikz@lastysaved=\dimen145     \tikzleveldistance=\dimen146     \tikzsiblingdistance=\dimen147     \tikz@figbox=\box33     \tikz@tempbox=\box34     \tikztreelevel=\count99     \tikznumberofchildren=\count100     \tikznumberofcurrentchild=\count101     \tikz@fig@count=\count102          ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\modules\pgfmodulematrix.cod     e.tex"     File: pgfmodulematrix.code.tex 2010/08/24  (rcs-revision 1.4)     \pgfmatrixcurrentrow=\count103     \pgfmatrixcurrentcolumn=\count104     \pgf@matrix@numberofcolumns=\count105     )     \tikz@expandcount=\count106          ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\frontendlayer\tikz\librarie     s\tikzlibrarytopaths.code.tex"     File: tikzlibrarytopaths.code.tex 2008/06/17 v2.10 (rcs-revision 1.2)     )))     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\frontendlayer\tikz\librarie     s\tikzlibraryintersections.code.tex"     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\libraries\pgflibraryinterse     ctions.code.tex"     \pgf@intersect@solutions=\count107     ))     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\frontendlayer\tikz\librarie     s\tikzlibraryarrows.code.tex"     File: tikzlibraryarrows.code.tex 2008/01/09 v2.10 (rcs-revision 1.1)          ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\libraries\pgflibraryarrows.     code.tex"     File: pgflibraryarrows.code.tex 2008/10/27 v2.10 (rcs-revision 1.9)     \arrowsize=\dimen148     ))     ("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\frontendlayer\tikz\librarie     s\tikzlibrarypositioning.code.tex"     File: tikzlibrarypositioning.code.tex 2008/10/06 v2.10 (rcs-revision 1.7)     ) (D:\work\PPM\paper\dummy.aux)     LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 7.     LaTeX Font Info:    ... okay on input line 7.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 7.     LaTeX Font Info:    ... okay on input line 7.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 7.     LaTeX Font Info:    ... okay on input line 7.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 7.     LaTeX Font Info:    ... okay on input line 7.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 7.     LaTeX Font Info:    ... okay on input line 7.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 7.     LaTeX Font Info:    ... okay on input line 7.          ABD: EveryShipout initializing macros     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <7> on input line 21.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <5> on input line 21.               Package pgfshade Warning: No path specified that can be filled on input line 22     .          [1] (D:\work\PPM\paper\dummy.aux)           *File List*      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)         tikz.sty    2010/10/13 v2.10 (rcs-revision 1.76)          pgf.sty    2008/01/15 v2.10 (rcs-revision 1.12)       pgfrcs.sty    2010/10/25 v2.10 (rcs-revision 1.24)     everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)       pgfrcs.code.tex      pgfcore.sty    2010/04/11 v2.10 (rcs-revision 1.7)     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)       keyval.sty    1999/03/16 v1.13 key=value parser (DPC)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)         trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive        dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)       pgfsys.sty    2010/06/30 v2.10 (rcs-revision 1.37)       pgfsys.code.tex     pgfsyssoftpath.code.tex    2008/07/18  (rcs-revision 1.7)     pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive      pgfcore.code.tex     pgfcomp-version-0-65.sty    2007/07/03 v2.10 (rcs-revision 1.7)     pgfcomp-version-1-18.sty    2007/07/23 v2.10 (rcs-revision 1.1)       pgffor.sty    2010/03/23 v2.10 (rcs-revision 1.18)      pgfkeys.sty          pgfkeys.code.tex       pgffor.code.tex         tikz.code.tex      ***********           )      Here is how much of TeX's memory you used:      9254 strings out of 495286      185626 string characters out of 3179897      222187 words of memory out of 3000000      12310 multiletter control sequences out of 15000+200000      3640 words of font info for 14 fonts, out of 3000000 for 9000      14 hyphenation exceptions out of 8191      56i,5n,55p,463b,601s stack positions out of 5000i,500n,10000p,200000b,50000s          Output written on dummy.dvi (1 page, 4352 bytes).


title: Changing line spacing within a new command

text: I have a command written as follows:               \documentclass[12pt]{book}     \usepackage{setspace}          \newcommand{\statshyp}[2]{\noindent \hangindent=1cm \hangafter=0      \begin{singlespace*}     \textbf{#1}: \emph{#2}     \end{singlespace*}     }      Unfortunately, changing the line spacing just within the new command doesn't work. The intention is to create a macro which allows me to create identically formatted single-spaced hypotheses in a generally doublespaced document. Is there a way to do this? I found one other person asking a similar question but the answers given to him provided a way for him to get what he needed without using the spacing commands at all.


title: ACM bibtex format problem

text: all, I am using ACM format (Strict Adherence to SIGS style) to edit my bibtex file. Now I have a strange problem, this is my code:                @INCOLLECTION{Chen06      AUTHOR = "Chen, Yi-Wei and Lin, Chih-Jen",      TITLE = "Combining SVMs with Various Feature Selection Strategies",      BOOKTITLE = {Feature Extraction},      PUBLISHER = "Springer Berlin Heidelberg",      PAGES = {315-324},      YEAR={2006} }      Now when I BibTex it, I got the following error:                I was expecting a `,' or a `}'---line 262 of file cikmRefs.bib      :       : AUTHOR = "Chen, Yi-Wei and Lin, Chih-Jen",     (Error may have been on previous line)     I'm skipping whatever remains of this entry     Warning--empty author in Chen06     Warning--empty title in Chen06     Warning--empty booktitle in Chen06     Warning--empty publisher in Chen06     Warning--empty year in Chen06      I missed a comma after 'Chen06', thx guys. Another problem is that the compiler gave me the following error and corresponds to the following code:                @INCOLLECTION{Platt99a,      AUTHOR = "Platt, John C.",      CHAPTER = "Fast training of support vector machines using sequential minimal optimization",      BOOKTITLE = {Advances in kernel methods},      PUBLISHER = "MIT Press",      ADDRESS = "Cambridge, MA, USA",      YEAR = {1999}  }            Warning--empty title in Platt99a      I can't find any problem with my code.


title: Define and use new colors for \rowcolor (Colortbl)

text: How can I use the maroon that I have defined, instead of the gray? Or (better) how can I use directly the maroon from:               \usepackage[dvipsnames]{xcolor}      * * *               \documentclass{scrbook}          \usepackage{colortbl}          \definecolor{maroon}{cmyk}{0,0.87,0.68,0.32}          \newcommand{\gray}{\rowcolor[gray]{.90}}          \begin{document}          \begin{tabular}{|l|c|}     \rowcolor[gray]{.9}     one&two\\     \rowcolor[gray]{.5}     three&four     \end{tabular}          \end{document}


title: Using opacity in tikz and the background package

text: I'm trying to take a given figure, make it a little whiter and put the result in the middle of the page _under_ the text, using the package background.               \documentclass[12pt]{article}     \usepackage{graphicx}     \usepackage{background}     \begin{document}          \SetBgContents{     \begin{tikzpicture}         \node(0,0) {\includegraphics[scale=.1]{logo}};         \node(0,0)[fill opacity=.5,fill=black]          {\phantom{\includegraphics[scale=.1]{logo}}};      \end{tikzpicture}      }     \SetBgOpacity{1}\SetBgAngle{0}\SetBgScale{1}\SetBgPosition{current page.north}\SetBgAnchor{below}          text     \phantom{     \begin{tikzpicture}         \node(0,0)[fill opacity=.5,fill=black]{a};      \end{tikzpicture}}          \end{document}      Works for me and produces ![enter image description here](http://i.stack.imgur.com/6fY38.png) What's all that stuff with `\phantom`? I hear you. But that's _MY_ question! (the first phantom is to make my life easy so that the box will cover the image) If I remove the second phantom (and its argument of course) the transparency no longer works. I get the following: ![enter image description here](http://i.stack.imgur.com/hrKeZ.png) That's right, no longer transparent! I have no idea why this is...Any help?? (As if things are not strange enough, the fill opacity have to be the same for the this to work, i.e. even with the \phantom, if the fill opacity is different, the image is hidden!)


title: Mutliple inputs with line breaking

text: I am trying to write an algorithm with multiple inputs in `algorithm2e`. The result I would like to have is something like               Algorithm     -------------------     Input: Input number 1            Input number 2            Input number 3          [Some clever algorithm]      The best I could do yet was one of those two solutions               \begin{algorithm}     \KwIn{Input number 1}     \KwIn{Input number 2\\ Input number 3     \end{algorithm}      which archives               Algorithm     -------------------     Input: Input number 1     Input: Input number 2     Input number 3      Any idea how to get the desired result?


title: vertical extra space below lstlisting environment inside a list environment

text: i want several code listings to be embedded in an item of a custom list environment. To achieve this i employ the `lstlisting` environment of the `listings` package. Unfortunately extra vertical space is appended to the `lstlisting` environment inside a `list` environment (see image below). Not a large skip but by all means annoying. This extra space vanishes if the same listing is placed outside the list environment. I can't figure out the reason for this extra space. Probably my current knowledge don't suffice to get rid of this space. Maybe one of you experts can figure out the reason and can give me a hint how to remove the vertical extra space!? Maybe even a short explanation of this at least for the laymen strange behavior. Thanks a lot for your effort... * * * Here is a minimal example which illustrates the problem:                \documentclass[10pt]{article}      \usepackage{listings}           \lstset{frame=lines, aboveskip=0pt, belowskip=0pt}      \begin{document}      \begin{list}{}{}          \item asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd           \begin{lstlisting}      asdasd          \end{lstlisting}%      asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd      \end{list}      asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd      \begin{lstlisting}      asdasd      \end{lstlisting}%      asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd      \end{document}      The crucial snippet of the compiled document is shown below: ![vertical extra space after listings env in list env](http://i.stack.imgur.com/XuXGe.png)


title: How should I use an alternative font such as TeX Gyre Pagella? LuaLaTeX?

text: I have long been using the TeX Gyre Pagella font for my documents. However, like many users, when I'm trying to find out how to customize documents by searching StackExchange (or often) googling, there are so many options, packages, old information, bleeding edge information, and alternative compilers I'm not sure if I'm responsibly using the available software. Ideally I could set up a preamble and use it over and over for my documents. The preamble should:   1. Let me use TeX Gyre Pagella   2. Enable proper matching math fonts, get ligatures correct   3. Play well with unicode   4. Packages and compilers are available in TeX Live/MacTeX/TeX Shop   5. Highly stable -- no known bugs or conflicts with other popular packages   6. Uses packages that are not 'orphaned' i.e. they will continue to be improved but not deprecated in the years to come. For example: for a long time I had used XeLaTeX but after trying to read around about 'good ways to do things' I read about some combination of using LuaLaTeX and certain packages/preamble lines such as below, that appeared to be more 'preferred'. But I really am not sure what everything here does, and using fonts in TeX has been explicitly called a black hole, so I thought I could open up a question and see what people think. Here's a (minimal) preamble I am now trying to use with LuaLaTeX:                  \documentclass[english]{exam}        \usepackage{babel}        \usepackage{parskip}                 \usepackage{fontspec}           \usepackage{fontenc,unicode-math}        \setmainfont[Ligatures=TeX]{TeX Gyre Pagella}        \setmathfont[Ligatures=TeX]{TeX Gyre Pagella Math}      Am I missing or misusing something important? Any further ideas about what would be 'good' to have in a preamble?


title: Perl.exe has stopped working

text: When I tried to install Texlive2013 by running install-tl.bat, the message 'Perl.exe has stopped working' showed up. It failed too even I tried install- tl-advanced.bat while running it as an administrator. I also tried various ways including running it from command prompt with command like: -no gui something like that, which I found on the web but still it failed misearbly. Anyone has any idea? I run the installer from the iso I downloaded from CTAN server. I thought about installing it directly online but I scared it will fail too. I have my computer installed with strawberry Perl.


title: How to change all the fonts correctly?

text: I am very new to LaTeX. I'm learning it basically to write texts which are very heavy on mathematics. Also I am not an English speaker (my language is not too crazy, it just has a few letters with accents). After doing some research I ended up with XeLaTeX using _fontspec_ and _polyglossia_. Everything is fine, however default fonts look awkward, namely some letter parts look too thin when printed. Since I am not a font-fashion guru I'd love to know some popular alternatives and how to implement them correctly... Here is my clumsy preamble at the moment:               \documentclass[a4paper,12pt]{article}     \usepackage{fontspec}     \usepackage{polyglossia}     \setdefaultlanguage{lithuanian} %Do I need this?     \usepackage[a4paper, inner=2.5cm, outer=1.5cm, top=2cm, bottom=2cm, bindingoffset=0cm]{geometry}     \usepackage{fancyhdr}     %Fancyhdr settings here     \usepackage{graphicx}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{mathtools}      I looked around and found out that some people like _Palatino_ font and _mathpazo_ which may be somewhat matching (text and math wise). As a result I tried adding:               \usepackage{mathpazo}     \setmainfont{Palatino Linotype}      Above seems to work at a first glance, but I'm worried that I'll run into some problems later on (now my texts are very basic). What do you think about that?


title: shortcut for insert a Program Listing at LyX

text: There is a way to make a shortcut for Program Listing at LyX? Thank you!


title: How to wrap text around a landscape table over multiple pages? \sidewaystable or \landscape + \longtable

text: I am trying to create a landscape table that breaks over multiple pages. I have successfully done this with the following:               \begin{landscape}     \begin{longtabu} to \textwidth{some columns}     \caption[my caption]{my caption}     table code here     \end{longtabu}     \end{landscape}      This does almost everything I want. I insert this code in my desired section of my document. The problem is that the text breaks for the `landscpae` environment. I have a paragraph at the top of the page and then because I inserted my table code after this paragraph, the rest of the page is blank, and then on the next pages is my landscape table. I want the text to go until the end of its page and then the `landscape` environment to run its thing for my table. The text will wrap if the `\begin{landscape}` is changed to `\begin{sidewaystable}`. However, `sidewaystable` will not break over multiple pages; it does not allow a `longtable` or `longtabu` to work. So sideways table won't allow a longtable and landscape won't allow text wrapping. I've searched around on here and on Google but most of the solutions are suggesting to use either `sidewaystable` or `landscape`. However, none of the solutions really address my specific problem. Does anyone have any suggestions how to proceed? I wish I could show an image but I'm not allowed to post one as a new user.


title: How to pass PostScript expression to nodesep and offset when using ([...]node) syntax?

text: Quoted from `pst-news13.pdf` on page 3: > The `labelsep` is the first – optional – argument of `\uput`. It is now > possible to use the PostScript notation for this length, eg `{! 45 sin 3 > mul}`. Then the unit which is active when `\uput` is active is used. With a > unit the PS notation is not allowed and leads to an error! If `labelsep` (which is a length key) can accept an RPN expression, why can't `nodesep` and `offset` (which are also length keys) accept RPN expressions? For the current implementation, `angle` can be expressed in RPN such as `angle={!30 60 add}`. The following is the MWE for you.               \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pstricks-add}          \begin{document}         \begin{pspicture}[showgrid](3,3)             \pnode{A}             \pnode             [!                 60 cos 3 mul                 60 sin 3 mul             ](A){B}             \psline{->}(A)(B)         \end{pspicture}          %   \begin{pspicture}[showgrid](3,3)     %       \pnode{A}     %       \psline(A){->}([nodesep=,offset=]A)     %   \end{pspicture}     \end{document}


title: Reduce the space between \email symbol and the mail in moderncv

text: Yesterday I asked several questions such as changing the color of specific headings. The answers are here: Change colors of \mobile, \address and \title in Modern Cv The other problem I didn't manage to solve was that I wanted to put in bold the mail. The following command does it:               \renewcommand*{\emaillink}[2][]{     \ifthenelse{\equal{#1}{}}     {\textbf{\href{mailto:#2}{#2}}}     {\textbf{\href{mailto:#2}{#1}}}}      But I would like to reduce the space between `\email` symbol and the mail. Something like `\email{hspace{-0.2cm} aaa@aaa.com}` doesn't work.


title: Switch statement in LaTeX using package pseudocode

text: I am using `\usepackage{pseudocode}` in LaTeX for writing pseudocode. How to write **switch** statement using this package? I write more 90% pseudocode using the package **pseudocode**. In function Validate i want to write **switch** Statement.               \PROCEDURE{Validate}{location1,location2}     l1 \GETS 0 \\     l2 \GETS 0 \\     validate \GETS true \\     \IF board[location1] \neq 0 \THEN         \BEGIN          l1 \GETS board[location1]         l2 \GETS board[location2]         \IF l1 + l2 is odd and l2 \neq 0 \THEN             validate \GETS false         \ELSE             \BEGIN                 %\SWITCH  here i want to write switch statement                        %\BEGIN                      %\END             \END         \END           \RETURN {validate}\\      \ENDPROCEDURE      I can find add switch statement in pseudocode using other packages like algorithmicx and algorithm. There is any way to add switch statement using **pseudocode** * _package_ * ?


title: Single chapter in two languages

text: I'm writing a thesis in english but I have to insert some abstracts in Italian (my native language). In particular I have to write an introduction of each chapter in Italian. I mean > Chapter 1 (in Italian) > > Chapter 1 (in English) Is there a way to do that? I've been trying many workaround and googling but nothing is helping me. If I try with the `otherlanguage` tag latex creates two separate chapters, and if I use `*` I don't have the word 'Chapter' (in Italian) in my thesis.


title: Tocloft and List of Figures: Get rid of title and begin right at the top

text: I am using `tocloft` to create an List of Figures. Now I would like to get rid of title and the list of figure should begin right at the top after the chapter title. I know the following is not a minimal example, but it should be understandable. In the preamble I have this:               \usepackage{tocloft}     \renewcommand{\cftfigpresnum}{Abb. }     \settowidth{\cftfignumwidth}{Abb. 10\quad}     %\setlength{\cftfignumwidth}{2cm}     \renewcommand\cftfigfont{\footnotesize}      \renewcommand{\cftfigdotsep}{\cftnodots}%punkte im abb. verzeichnis.     \cftpagenumbersoff{figure}     \setlength{\cftfigindent}{0pt}       And between begin and end               \begin{document}          % in between there are many figures...           \renewcommand\listfigurename{}     \chapter{Abbildungsnachweise}          It should begin here.          \listoffigures          \end{documen}      ![Example of output](http://i.stack.imgur.com/GwuRi.png)


title: Aligning subfigures with the plots starting at the same level

text: I have two figures that I am trying to align side by side. The difficulty is trying to get the two plots on a same horizontal line. In the _bad example_ picture shown below![enter image description here](http://i.stack.imgur.com/XV2fP.jpg) the problem is that the picture to the right is put rather up. What I would like to do is to have the horizontal axes of both graphs at the same level so that for example the figure to the right is lowered down such that its horizontal axis is at the same level as that of the left figure. I am putting my code here and all files are available on this link: http://petitlien.fr/latexfiles (Just click on the green guest file storage/guest access) In my code I am keeping the size of the page as I need in my final document. Here is the code:               \documentclass[fleqn,a4paper,openany,twoside,11pt]{book}     \usepackage[top=5.5cm,left=45mm,right=45mm,bottom=5.5cm]{geometry}     \usepackage[latin1]{inputenx}     \usepackage[OT1]{fontenc}     \usepackage{graphicx}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage[below]{placeins}     \usepackage{subfig}     \captionsetup[subfloat]{captionskip=15pt}     \usepackage{xcolor}     \usepackage{psfrag}     \newcommand{\figtext}{\small}               \begin{document}     \begin{figure}[htp]     \psfrag{A}{$\text{A}$}     \psfrag{B}{$\text{B}$}     \psfrag{C}{$\text{C}$}     \psfrag{D}{$\text{D}$}     \psfrag{E}{$\text{E}$}     \psfrag{F}{$\text{F}$}     \psfrag{G}{$\text{Alphabet letters}$}     \centering{\figtext     \subfloat[Money histories]{          \input{moneypredicted.tex}          \includegraphics[width=0.45\textwidth]{moneypredicted.eps}}     \hfill     \subfloat[Health indicator]{          \includegraphics[width=0.45\textwidth]{alphabet.eps}}     \caption{Hi there}}     \end{figure}     \end{document}      Thanks for any suggestions.


title: Adding extra documents in moderncv

text: I would like to add extra documents (like reference letters and certificates) to the moderncv in a way that everything is in the same pdf. I can´t include them as text because they will actually be scanned copies. Is there any way to add it so every scan occupies an extra page in the same pdf or has the template been created to just have the CV and cover letter?


title: Color the faces of a graph

text: I want to modify the image (see code below) ![enter image description here](http://i.stack.imgur.com/AlmvG.png) by shading in the regions formed by the dashed lines that contain a black dot. The goal is to obtain something like ![enter image description here](http://i.stack.imgur.com/YYL7G.png) > How can I shade these regions? Code for image:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows,positioning}     \begin{document}     \tikzstyle{open}   = [draw, black, fill=white, shape=circle]     \tikzstyle{closed} = [draw,        fill,       shape=circle]     \tikzstyle{invisibleVertex} = [shape=circle]     \tikzstyle{invisibleEdge} = [draw opacity=0]     \begin{tikzpicture}[scale=1,transform shape,node distance=2.5cm,>=open triangle 60,semithick]      \node[closed] (0)              {};      \node[closed] (1) [right of=0] {};      \node[closed] (2) [below of=1] {};      \node[closed] (3) [left  of=2] {};      \path (0) edge node[open] (m0) {} (1)            (1) edge node[open] (m1) {} (2)            (2) edge node[open] (m2) {} (3)            (3) edge node[open] (m3) {} (0);      \path (m0) edge[->, densely dashed]                                                                        (m1)                 edge[<-, densely dashed, out=  45, in=  45, looseness=3, overlay] node[invisibleVertex] (e0) {} (m1)            (m1) edge[->, densely dashed]                                                                        (m2)                 edge[<-, densely dashed, out= -45, in= -45, looseness=3, overlay] node[invisibleVertex] (e1) {} (m2)            (m2) edge[->, densely dashed]                                                                        (m3)                 edge[<-, densely dashed, out=-135, in=-135, looseness=3, overlay] node[invisibleVertex] (e2) {} (m3)            (m3) edge[->, densely dashed]                                                                        (m0)                 edge[<-, densely dashed, out= 135, in= 135, looseness=3, overlay] node[invisibleVertex] (e3) {} (m0);      \node[invisibleVertex, below=0cm of e0] {};      \node[invisibleVertex, left =0cm of e1] {};      \node[invisibleVertex, above=0cm of e2] {};      \node[invisibleVertex, right=0cm of e3] {};     \end{tikzpicture}     \end{document}


title: Table with figures

text: I have a special table layout in which i want to place figures. The table looks like this:               "-------------------------------------------------"     " Figure 1       | Figure 2                      |"     "----------------|                               |"     " Figure 3       |                               |"        "-------------------------------------------------"      I created this table with the following LaTeX code:               \begin{table*}[t]     \begin{tabular}{l l}          \includegraphics[width=0.35\textwidth]{Figure1} & \multirow{2}     {*}{\includegraphics[width=0.65\textwidth]{Figure2}} \\          \includegraphics[width=0.35\textwidth]     {Figure3}           \end{tabular}     \end{table*}      However when it comes to layouting the table it places the figure somewhere in the vertical center of the multirow cell, like this:               "-------------------------------------------------"     " Figure 1       |                               |"     "----------------| Figure 2                      |"     " Figure 3       |                               |"        "-------------------------------------------------"      How do I get it up to the desired position (same top position as Figure 1)?


title: subcaption: remove page number from lof

text: I use the `caption` and `subcaption` package as shown in the example below:               \documentclass{article}          \usepackage{caption}     \usepackage{subcaption}          \captionsetup[subfigure]{list=true}          \begin{document}     \listoffigures          \begin{figure}[!ht]     \centering     \begin{subfigure}{.5\linewidth}     \centering     A     \caption{test subfigure}     \end{subfigure}%     \begin{subfigure}{.5\linewidth}     \centering     B     \caption{another test subfigure}     \end{subfigure}     \caption{A figure with subfigures}     \end{figure}          \end{document}      How can i remove the page numbers of the subfigures from the list of figures? (subfigures are in my document always on the same page as the "main figure") PS: tocloft seems not to be compatible with the caption/subcaption packages


title: Pgfplotstable adding a growth column without column names and then offsetting it

text: I'm trying to create a new column in a pgfsplotstable which shows the compound growth over the preceding columns. The columns don't have names, and I want to shift the column a little to the right to show that the information it contains isn't part of the main data. I've got two problems. First the \newcolumntype I've defined below doesn't compile. Bizarrely the following `\newcolumntype{R}[1]{>{\RaggedLeft\hspace{0pt}}p{#1}}` compiles just fine.. Secondly and more importantly, I can't figure out how to `create on use` using column indices. something like               pgfplotstableset{create on use/cagr/.style={create col/expr={       \thisrow{[index]{3}}/\thisrow{[index]{0}}}}}      just causes errors. Any help most gratefully appreciated. Thanks               \documentclass{article}     \usepackage{array}     \usepackage{pgfplotstable}          \begin{document}          %\newcolumntype{hl}[1]{>{\hspace{1cm}}p{#1}}     \newcolumntype{x}[1]{>{\hspace{1cm}}p{#1}}               \pgfplotstabletypeset[string type,debug,     column name={},     format=inline,col sep=&,row sep=\\,header=false,ignore chars={\^^M},     columns/3/.style={column type={x{1cm}}]{     1&2&3&4\\     5&6&7&8\\     9&10&11&12\\          }          \end{document}


title: pagebackref option is not working in Beamer

text: When I use `\usepackage[pagebackref]{hyperref}` in `\documentclass{article}`, it works perfectly. But when I use it in `beamer` class i.e. `\documentclass[hyperref={pagebackref=true}]{beamer}`, it does not work and no error is displayed. My task is to include the page numbers where the reference is cited in the bibliography produced by `beamer`. Please advise how I can achieve my task. the following example is working perfectly               \documentclass{article}     \usepackage[colorlinks=true,citecolor=blue,pagebackref=true]{hyperref}     \usepackage[english]{babel}     \usepackage{Sweave}          \begin{document}     Antecedent to 1970, Luce and Tukey's \cite{Luce1964} present first article on conjoint. Explain the relation between consumer's decision and the factors involved in his/ her decision making \cite{Orme2010}. In 1971, Green and Rao's joint effort of card-sort conjoint analysis \cite{Green1971} gained success beyond imagination. In 1975, Green and Wind \cite{Green1975} described the measures consumer judgments for carpet cleaners, and business leaders, this new method was soon taken into consideration.          \bibliographystyle{Ieeetr}     \bibliography{References/conjoint}          \end{document}      but when I used the following               \documentclass[hyperref={pagebackref=true,colorlinks=true,citecolor=blue,pagebackref=true}]{beamer}     \usepackage{graphicx}     \usepackage[english]{babel}     \usepackage[square, numbers]{natbib}     \usepackage{Sweave}     \usepackage{ragged2e}          \usepackage{beamerthemeshadow}          \begin{document}     \justifying          \section{Conjoint Analysis }     \begin{frame} \frametitle{Conjoint Analysis}      Antecedent to 1970, Luce and Tukey's \cite{Luce1964} present first article on conjoint. Explain the relation between consumer's decision and the factors involved in his/ her decision making \cite{Orme2010}. In 1971, Green and Rao's joint effort of card-sort conjoint analysis \cite{Green1971} gained success beyond imagination. In 1975, Green and Wind \cite{Green1975} described the measures consumer judgments for carpet cleaners, and business leaders, this new method was soon taken into consideration.     \end{frame}          \bibliographystyle{Ieeetr}     \bibliography{References/conjoint}          \end{document}      no error found, but I am unable to find the page number in the bibliography to go-back at the page where it was cited as done in article class in first example.


title: Insert empty pages until certain page number

text: I have sections which have to start exactly at the predefined page numbers and the potentially unfilled pages between these sections should be filled with empty pages. Is there a for-loop available that would insert `\newpage` until the right page where the new section starts is reached?


title: Position the date with dinbrief

text: How do I change the horizontal position of the date with dinbrief? I have written some nice looking letters but now I am trying to align the date with part of my letterhead. I'm using dinbrief and I cannot figure out how to change the horizontal position of the date. The date (with location) are the only reference fields that I am using. I am open to dirty hacks. Here's a minimal document as a starting point:               % !TEX encoding = UTF-8 Unicode     \documentclass[10pt]{dinbrief}     \usepackage[a4paper]{geometry}     \usepackage{fontspec}          \begin{document}     \begin{letter}{Bill Bixby \\ 123 Hulk Rd. \\ Sheboygan, WI 01234}       \opening{Dear Bill}     Long time no see.  Lorem ipsum etc.       \closing{Kind Regards}          \end{letter}     \end{document}


title: How can I suppress page breaks?

text: This is a response, because it seems I was banned for poor explanations. Sorry, that there is was no concision in the explanations.   I found what can be done. it is explained in the second part of the question. If I can ever post again I'll try to explain better how it worked. So first code: the question; second code: the answer- => no more silly pagebreaks.   Q:   I didn't seem to escape the annoying page breaks, no matter what I try: `\nopagebreak` or `samepage` or `\fillbreak` or `\nobreak` or `\needspace{48pt}`, etc. I'm using the moderncv template and I'm starting to think it can't be done, a simple control of like paging... In `moderncv` it seems as if I want to use on the first page more than 4 sections I will get a page break. Here's part of the code where I'm stuck with these annoying page breaks: Ok.   I'll just put the complete code, because I don't know to take out _safely_ :)) what's extra. The rest of included files are at this website http://www.ctan.org/tex-archive/macros/latex/contrib/moderncv If I must put everything together for a full run tell me :)) So, the main code:               \documentclass[11pt,a4paper,sans]{moderncv}   % possible options include font size           % ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')          % moderncv themes     \moderncvstyle{classic}                        % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'     \moderncvcolor{green}                          % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'     %\renewcommand{\familydefault}{\sfdefault}    % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name     %\nopagenumbers{}                             % uncomment to suppress automatic page numbering for CVs longer than one page          % character encoding     %\usepackage[utf8]{inputenc}                  % if you are not using xelatex ou lualatex, replace by the encoding you are using     %\usepackage{CJKutf8}                         % if you need to use CJK to typeset your resume in Chinese, Japanese or Korean          %\usepackage{ulem}     \usepackage{needspace}     % adjust the page margins     \usepackage[scale=0.75]{geometry}     %\setlength{\hintscolumnwidth}{3cm}           % if you want to change the width of the column with the dates     %\setlength{\makecvtitlenamewidth}{10cm}      % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...          % personal data     \firstname{Ion}     \familyname{Ciobanu}     \title{Curriculum Vitae}                          % optional, remove / comment the line if not wanted     \address{Str}{7}    % optional, remove / comment the line if not wanted     \mobile{1}                     % optional, remove / comment the line if not wanted     %\phone{}                      % optional, remove / comment the line if not wanted     %\fax{+3~(456)~789~012}                        % optional, remove / comment the line if not wanted     \email{lu@hotmail.com}                          % optional, remove / comment the line if not wanted     \homepage{www.dt.blogspot.com}                    % optional, remove / comment the line if not wanted     %\extrainfo{additional information}            % optional, remove / comment the line if not wanted     \photo[80pt][0.4pt]{picture}                  % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file     \quote{Just a thought of a dream being: \\*Reality is wrong. Dreams are for real.}                            % optional, remove / comment the line if not wanted     %No papers, no person     % to show numerical labels in the bibliography (default is to show no labels); only useful if you make citations in your resume     %\makeatletter     %\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}     %\makeatother     \makeatletter     \renewcommand*{\nopagenumbers}{\@displaypagenumbersfalse}     \AtEndPreamble{%       \AtBeginDocument{%         \if@displaypagenumbers%           \@ifundefined{r@lastpage}{}{%             \ifthenelse{\pageref{lastpage}>1}{%               \settowidth{\pagenumberwidth}{\color{color2}\addressfont\itshape\strut\thepage/\pageref{lastpage}}%               \fancypagestyle{plain}{%                 \fancyfoot[r]{\parbox[t]{\pagenumberwidth}{\color{color2}\addressfont\itshape\strut\color{blue}{Ion}\,\color{yellow}{Ciobanu}\,\color{red}\thepage/\color{red}\pageref{lastpage}}}}% the parbox is required to ensure alignment with a possible center footer (e.g., as in the casual style)     %            \fancyfoot[r]{\parbox[t]{\pagenumberwidth}{\color{color2}\addressfont\itshape\strut\color{blue}{Ion}\,{Ciobanu}\,\color{color2}\thepage/\color{red}\pageref{lastpage}}}}% the other option               \pagestyle{plain}}{}}%     %\thispagestyle{empty}           \AtEndDocument{\label{lastpage}}\else\fi}}     %\makeatother          % bibliography with mutiple entries     %\usepackage{multibib}     %\newcites{book,misc}{{Books},{Others}}     %----------------------------------------------------------------------------------     %            content     %----------------------------------------------------------------------------------     \begin{document}     %\begin{CJK*}{UTF8}{gbsn}                     % to typeset your resume in Chinese using CJK     %-----       resume       ---------------------------------------------------------     \makecvtitle          \section{Objective}     %\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}  % arguments 3 to 6 can be left empty     \cventry{}{\textit{\textmd{To design}}}{}{}{}{}          \section{Education}     \cventry{2010 -- 2012}{many}{Univ}{Tanzania}{}{Computer Science }     \cventry{2006 -- 2010}{many}{Univ}{Tanzania}{}{Computer Science }          \section{tales}     \cvitem{title}{\emph{Optima\,}{(Grade, 11.00)}}     \cvitem{supervisors}{Prof}     \cvitem{description}{prj}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Here is the problem. This would be the 5 the section "Professional     %  Experience" so it puts it on the next page.      %     % Tried several options which are commented       %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \section{Professional Experience}%\nopagebreak[4]%\needspace\baselineskip%{\needspace{48pt}}%{\,\nopagebreak}     \subsection{Vocational}          \cventry{April\,2001--December\,2012}{ Engineer}{Company}{City}{}{A lot.\newline{}%     Detailed achievements:%     \begin{itemize}%     \item Achievement 1;     \item Achievement 2, with sub-achievements:       \begin{itemize}%       \item Sub-achievement (a);       \item Sub-achievement (b), with sub-sub-achievements (don't do this!);         \begin{itemize}         \item Sub-sub-achievement i;         \item Sub-sub-achievement ii;         \item Sub-sub-achievement iii;         \end{itemize}       \item Sub-achievement (c);       \end{itemize}     \item Achievement 3.     \end{itemize}}     \cventry{year--year}{Job title}{Employer}{City}{}{Description line 1\newline{}Description line 2}     \subsection{Miscellaneous}     \cventry{year--year}{Job title}{Employer}{City}{}{Description}          \section{Languages}     \cvitemwithcomment{Language 1}{Skill level}{Comment}     \cvitemwithcomment{Language 2}{Skill level}{Comment}     \cvitemwithcomment{Language 3}{Skill level}{Comment}          \section{Computer skills}     \cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}     \cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}     \cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}          \section{Interests}     \cvitem{hobby 1}{Description}     \cvitem{hobby 2}{Description}     \cvitem{hobby 3}{Description}          \section{Extra 1}     \cvlistitem{Item 1}     \cvlistitem{Item 2}     \cvlistitem{Item 3}          \renewcommand{\listitemsymbol}{-~}            % change the symbol for lists          \section{Extra 2}     \cvlistdoubleitem{Item 1}{Item 4}     \cvlistdoubleitem{Item 2}{Item 5\cite{book1}}     \cvlistdoubleitem{Item 3}{}          % Publications from a BibTeX file without multibib     %  for numerical labels: \renewcommand{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}     %  to redefine the heading string ("Publications"): \renewcommand{\refname}{Articles}     \nocite{*}     \bibliographystyle{plain}     \bibliography{publications}                   % 'publications' is the name of a BibTeX file          % Publications from a BibTeX file using the multibib package     %\section{Publications}     %\nocitebook{book1,book2}     %\bibliographystylebook{plain}     %\bibliographybook{publications}              % 'publications' is the name of a BibTeX file     %\nocitemisc{misc1,misc2,misc3}     %\bibliographystylemisc{plain}     %\bibliographymisc{publications}              % 'publications' is the name of a BibTeX file          \clearpage          %\clearpage\end{CJK*}                         % if you are typesetting your resume in Chinese using CJK; the \clearpage is required for fancyhdr to work correctly with CJK, though it kills the page numbering by making \lastpage undefined     \end{document}      A:   Apparently if I remove from the 5th section--the Professional Experience section--the following code allows me to avoid undesired page breaks:               \begin{itemize}%     \item Achievement 1;     \item Achievement 2, with sub-achievements:       \begin{itemize}%       \item Sub-achievement (a);       \item Sub-achievement (b), with sub-sub-achievements (don't do this!);         \begin{itemize}         \item Sub-sub-achievement i;         \item Sub-sub-achievement ii;         \item Sub-sub-achievement iii;         \end{itemize}       \item Sub-achievement (c);       \end{itemize}     \item Achievement 3.     \end{itemize}}     \cventry{year--year}{Job title}{Employer}{City}{}{Description line 1\newline{}Description line 2}     \subsection{Miscellaneous}     \cventry{year--year}{Job title}{Employer}{City}{}{Description}      To have nicely itemized the texts I use directly `\listitemsymbol` and with this I can have both the left column with dates and the big right column, in which I needed these item symbols before a next job explained.


title: Can't get real currfile if used in precompiled .fmt file

text: ## Background: I am not sure if this is a bug with the `currfile` package, or if I not properly using the package, or perhaps an issue with using `.fmt` files. BTW, this is my first attempt at using `.fmt` files. Since I use the same preamble in all my documents I am trying to speed up compilation by generating a `.fmt` file as per the referenced questions below, but am having trouble with some of the things that are performed `\AtBeginDocument`. The example below test to see that the value of the token `\MyToken` is set to the portion of the file name between the two dashes. ## Problem: Using the precompiled `.fmt` file I get: ![enter image description here](http://i.stack.imgur.com/ZcfLt.png) Note that the value of `\currfilename` is the file name of the preamble file, which is not what I want (Perhaps some `\expandafter` magic can help). However, if I make one complete .tex file with the two given below (and remove the `%& MyPreamble`), the output you get is the desired behavior. The value of `\currfilename` is the name of the file. ![enter image description here](http://i.stack.imgur.com/4OPTR.png) ## Partial Solution   * One partial solution is to use `\jobname` (as per the commented line in the preamble). Then this produces identical results in both cases. But, I can't use that in my real application as I change `\jobname` in order to generate multiple versions from the same source document. ## References:   * Custom format file: How to automate the generation of the "precompiled preamble" whenever one of the files that are used there are changed   * ultrafast pdflatex with precompiling ## Notes:   * The actual files names here matter.   * To generate the `MyPreamble.fmt`, I use:              pdflatex -ini -jobname=MyPreamble "&pdflatex MyPreamble.tex\dump"      ## Code: `MyPreamble.tex`:               \documentclass{article}     \usepackage{xcolor}     \usepackage{xstring}     \usepackage{lipsum}     \usepackage[realmainfile]{currfile}%           \newtoks{\MyToken}     \MyToken={oo}% set default value     \AtBeginDocument{%         \par\noindent\textcolor{blue}{Debug: currfilename = "\currfilename"}\par%         % These two (StrBefore and StrBetween) statements do not work,         % if this is used via .fmt file.         \StrBefore{\currfilename}{.}[\CurrentFileName]%          \StrBetween[1,2]{\CurrentFileName}{-}{-}[\ExtractedValue]%         %         %\StrBetween[1,2]{\jobname}{-}{-}[\ExtractedValue]% this works         \IfStrEq*{\ExtractedValue}{\the\MyToken}{}{%             \par\noindent\textcolor{red}{Error: MyToken (middle) was "\the\MyToken",                      but was expected to be "\ExtractedValue".}\par%         }%     }     %% ----- preamble ends here      ## Code: `foo-x-bar.tex`:               %& MyPreamble          % This file need to be named in three parts separated by two dashes.     % This need to be set to be the value in between the two dashes. So,     % if this file is named "foo-x-bar.tex", then this needs to be "x"     \MyToken={x}%          \begin{document}         \lipsum[1]     \end{document}


title: How to line up a chemical structure in the table (chemfig)?

text: I have a table which has three rows of chemical structures. The structures in the second row are not lined up with the first and third rows. I tried to use `\vspace` to bring the structure down but it didn't help. How to change the position of the structure in the table? Any help is greatly appreciated! My sample code:               \documentclass[12pt,doublespacing,letterpaper]{report}     \usepackage{etex}     \usepackage[usenames,dvipsnames]{color}     \usepackage{lscape}      \usepackage{morehelp}     \usepackage{setspace}     \usepackage{easytable}     \usepackage{chemfig}     \usepackage{longtable}      \usepackage{graphicx}     \usepackage{dcolumn}     \usepackage{bm}     \usepackage{geometry}     \usepackage{multirow}     \usepackage{caption}          \begin{document}          \setatomsep{2em}     \setbondoffset{1pt}     \setdoublesep{4pt}     \setbondstyle{line width=0.8 pt}               \renewcommand{\printatom}[1]{\fontsize{14pt}{14pt}\selectfont{\ensuremath{\mathrm{#1}}}}          \begin{table}[t]     \centering \caption{Test}      \begin{footnotesize}     \begin{tabular}{>{\centering\arraybackslash}p{20pt}>     {\centering\arraybackslash}p{160pt}     >{\centering\arraybackslash}p{60pt}>{\centering\arraybackslash}p{160pt}>  {\centering\arraybackslash}p{20pt}}     \hline\hline     \\[-5pt] %controls the spacing between line and text     \vfill Entry & \vfill RBF$_3$K  &\vfill Ar-Br &\vfill R-R & Yield (\%)\\     \\[-5pt]\hline     \\[-7pt]      1 & \chemfig[][scale=0.6]{[:30]--[::-60]--[::-60]-[:30]-[:-30]~[:0]-[:0]BF_3K} & \chemfig[][scale=0.6]{[:30]NC-*6(-=-(-[,1.3]Br)=-=)} & \chemfig[][scale=0.6]{[:30]--[::-60]--[::-60]-[:30]-[:-30]~[:0]-[:0]*6(-=-(-CN)=-=-)}&75\\      2 & \chemfig[][scale=0.6]{[:30]--[::-60]--[::-60]-[:30]-[:-30]~[:0]-[:0]BF_3K} & \chemfig[][scale=0.6]{[:30]Cl-*6(-=-(-[,1.3]Br)=-=)} & \chemfig[][scale=0.6]{[:30]--[::-60]--[::-60]-[:30]-[:-30]~[:0]-[:0]*6(-=-(-Cl)=-=-)}&65\\           \hline\hline     &\\     \end{tabular}     \end{footnotesize}     \\     \end{table}          \end{document}


title: Alignment of page numbers in table of contents

text: Consider the following example:               \documentclass[a4paper,12pt]{article}     \begin{document}     \tableofcontents     \newpage     \section{test}     \newpage     \setcounter{page}{22}     \section{introduction}     \newpage     \setcounter{page}{222}     \section{discussion}     \end{document}      which produces: ![enter image description here](http://i.stack.imgur.com/9bNul.png) As you can see the page numbers are aligned so that ones are written under ones, tens are written under tens, etc. Was this alignment the aim of LaTeX or LaTeX aim was simply to put page numbers at the end of each line? In other words, if this document was RTL, which of the followings would be the correct alignment of page numbers? ![enter image description here](http://i.stack.imgur.com/yTnnP.png) ![enter image description here](http://i.stack.imgur.com/Zb9ex.png)


title: Latex leaves blank space in references

text: I am using the official IEEE template for writing a paper in latex. The references are **not** stored in a separate file, but are appended at the end of the main .tex file in the `\begin{thebibliography}` block. Everything works fine, including the citation of references in the text. There is though a problem: for the references 1-9, the text is displayed in the generated pdf file correctly. For references with the number greater than 10, the text is "indented" by some blank spaces, which makes it look horrible: > [8]   Author 1, book 1, year   >  [9]   Author 2, book 2, year   >  [10]   Author 3, book 3, year   >  [11]   Author 4, book 4, year   > What I want is to force latex display every first letter of each reference at the same (imaginary) vertical line as the others. Is this possible?


title: bibunits and natbib

text: I a writing a report which contains serveral section each of them should have their own references. This task should be done with natbib. Unfortunately `natbib` and `binunits` seem not go together very well and it just does't create any references. If I use               \defaultbibliographystyle{alphadin}      instead of               \bibliographystyle*{plainnat}      however, it seems to work. Here is a snippet of my LaTeX file:               \begin{bibunit}     some text          \nocite{*}     \putbib[bib]          \end{bibunit}               \RequirePackage{bibunits}     \RequirePackage[sort&compress]{natbib}     \RequirePackage{natbib}          \bibliographyunit[\section]     \bibliographystyle*{plainnat}     \bibliographyunit          \begin{bibunit}     some tex     \nocite{*}     \putbib[bib]     \end{bibunit}


title: Custom bibliography inclusions

text: I have a bib file generated by Zotero (can become biblatex if needed) and I use natbib bibliographies through the package revtex4 (I could also use aastex if needed). Zotero kindly outputs every single detail (DOI, URL and abstracts etc). I need the bibliography entries to include only the names, year and journal like so: `Abadi M. G., Moore B., Bower R. G., 1999, MNRAS, 308, 947` (see http://arxiv.org/abs/1002.0583) I've also come across true/false conditions of properties like author, doi, url etc from Bibliography with only initials of names. There must be a simple way just to turn off features like DOI and URL! Thanks Here's MWE:               \documentclass[preprint2]{aastex}        % \usepackage[authoryear,round,comma]{natbib}     % \usepackage[%     %     style=numeric-comp,sorting=none,     %     sortcites=true,doi=false,url=false,     %     firstinits=true,hyperref]{biblatex}     \setcitestyle{authoryear,round,comma}     \begin{document}         hello \citep{christlein_can_2004}               \bibliography{Zotero}     \bibliographystyle{plainnat}     \end{document}


title: Is there a way to suppress the black boxes in the margin only?

text: I want index entries to be visible in the margins. We are using the `index`package for multiple indexes. This package provides the option to display the index entries in the margin. For some cases I get a black box. I do not want to disable the black boxes all together since they are needed for normal text, but I do not want to see them with the index entries. Is there a way to disable them locally?               \documentclass[draft]{scrbook}          \usepackage[ papersize={170mm,240mm}             ,top=27.4mm              ,inner=20mm              ,outer=25mm                         ,marginparwidth=50pt             ]{geometry}          \usepackage{index}     \makeindex          \proofmodetrue          \begin{document}          ~     \newpage     This is some text and there is some index\index{package!lsp-gb4e} entry.          \end{document}      Edit: An alternative would be to make LaTeX break these long items in the margin and put them into two lines. Is this possible?


title: Making an invisible section title appear in pdf bookmarks

text: One section of my article is a table. Because of space limitation, I cannot put section title in the same page as the table. On the other hand, I want my section title appear in pdf bookmarks. How can I define a hidden section name and make sure that it is going to appear in toc and more importantly in pdf bookmarks. By the way, I don't want to make my table smaller. I tried the solution suggested in make section headings invisible and it doesn't work.


title: How can I get the Title, Author, and Date on the same line?

text: I would like to have   * Title flush left   * Author flush right   * Date flush right How can I do this on the same line or on a shared line? I was hope to achieve the following: ![Title Author Date shared line](http://i.stack.imgur.com/sDUZB.png) This is as far as I got using xelatex:               \documentclass{article}          \usepackage[T1]{fontenc}     \usepackage{titlesec, blindtext, color}     \definecolor{gray75}{gray}{0.75}     \newcommand{\hsp}{\hspace{20pt}}     \titleformat{\section}[hang]{\Huge\bfseries}{Woche\hspace{.3cm}\thesection\hsp\textcolor{gray75}{|}\hsp}{0pt}{\Huge\bfseries}          \usepackage{titling}     \pretitle{\begin{minipage}{0.4\textwidth}\begin{flushleft}\Huge}     \posttitle{\end{flushleft}\end{minipage}\hfill}     \predate{\hfill\begin{minipage}[t]{0.4\textwidth}\begin{flushright}\large}     \postdate{\end{flushright}\end{minipage}}          \title{Class Plan}          \begin{document}     \maketitle     \section{Less is More}     \blindtext     \end{document}      There is one catch. I need this to work in my .emacs file. I would like the MACRO #+Title and #+Author to work **without extra code in my org-mode file**


title: How can I date my entries into a latex document? (Not just one date, but several dates)

text: I know the \date command inserts a date in the title, but as I keep working on this document of mine I want to be able to keep a record of what I wrote on each day. I've been simply writing the date now every time I write every day, but I was wondering if there was a command I could use to place the date in a less obtrusive part that's not the body of my document.


title: Expex glosses get broken when unicode-math is loaded in XeLaTeX and LuaLaTeX

text: I'm trying to typeset multiline numbered examples with John Frampton's expex package (version 4.1). Since I'm using XeLaTeX (TeXLive 2012), I've picked unicode-math to typeset maths. The following MWE illustrates the problem, which is that the first and second lines of the multiline example are no longer separated properly:               \documentclass{article}          \usepackage{fontspec}     \usepackage{unicode-math}     \usepackage{expex}          \setmathfont{Latin Modern Math}          \begin{document}          \ex      \begingl     \gla See on lühike tekst {eesti keeles}.//     \glb This is short text {in Estonian}//     \glft `This is a short text in Estonian.'//     \endgl     \xe          \end{document}      The only warning I get is the innocuous _xparse/redefine-command_ warning, and once I remove unicode-math, the output looks as desired. What's going on here and is there a solution? I should probably add that the same behaviour is observed when I compile with LuaLaTeX.


title: Decrease footnotes margin in moderncv

text: I'm beginning with LaTeX, so this question is may be obvious. When using `moderncv` package, if I add footnotes to my document, the footnotes take too much space. How can I decrease the footnotes margin? Here is a miminal example (MWE) to reproduce the problem:               \documentclass[11pt,a4paper,sans]{moderncv}     \moderncvstyle{classic}          \usepackage[bottom,norule]{footmisc}     \usepackage[utf8]{inputenc}     \usepackage[scale=0.75]{geometry}          \firstname{John}     \familyname{Doe}     \address{street and number}{postcode city}     \mobile{+1~(234)~567~890}     \phone{+2~(345)~678~901}     \email{john@doe.org}     \homepage{www.johndoe.com}          \begin{document}          \makecvtitle          \section{Computer skills}     \cvdoubleitem{category 1}{XXX\footnotemark[1], YYY\footnotemark[2], ZZZ}{category 4}{XXX, YYY, ZZZ}     \cvdoubleitem{category 2}{XXX\footnotemark[1], YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}          \footnotetext[1]{First note}     \footnotetext[2]{Second note}          \end{document}


title: Typesetting ZeroMQ in LaTeX

text: I'm currently typesetting ØMQ (a.k.a ZeroMQ, 0MQ) project name using utf8 coding :               \documentclass[a4paper,10pt]{article}     \usepackage[utf8x]{inputenc}     \begin{document}     ØMQ     \end{document}      is there any way of proper typesetting of project name, like with utf8, but without using utf8 ? (I've tried `$\varnothing$MQ` from `amssymb` package but it looks funny. `$\emptyset$MQ` does not look as supposed as well)


title: How to remove the vertical space between two images latex

text: I know this topic is allready discussed but I still don't manage to solve this problem. I have 2 pictures in my document. I would like to delete the white vertical space between them. I found something about floatsep but it seems not work. I just have 2 simple images:               \begin{figure}[H]     \centering     \includegraphics[scale=0.37]{Cube.png}     \end{figure}          \begin{figure}[H]     \centering     \includegraphics[scale=0.37]{Cog.png}     \end{figure}      What do I have to add to solve this problem? And where I have to do it? Thank you!


title: Breaking equation through pages

text: In a former post I learnt how to break an align equation by using the `\allowdisplaybreaks` command on the preamble. However, I found the package `breqn`, which is impressive! So far I've been unable to found a way to allow page-break-equations using `dmath` environment. Does anyone know if it is possible? If so... How could I do that? Interesting references: TUGboat ref. and Manual


title: Creating Excel documents with LaTeX

text: I've been using an own class with some commands for writing exams in my classes (I'm a teacher). In this, I use a rather complex point system (why I do this is kind of irrelevant) with 9 different kind of points. In order to show the students what kind of points they earned on a particular question, I've been using `newfile` to create a `.xml` file showing the question number and what kind of point that can be earned on that particular question, as shown in the picture (when opened in Excel) ![Picture showing Excel](http://i.stack.imgur.com/gWGTj.png) When I enter the questions I put some point commands to that question (9 different) which each add a row to the `.xml` file. The class uses a load of counters and commands, and lots of text to produce the beginning and ending of the `.xml` file. I've come to the conclusion that I really need a barchart, showing the points earned and not earned, but `.xml` in Excel wont give me any (well, it does but it can not be saved so I can't harvest the code by opening the file in a text editor). So, this might be more Excel related than LaTeX, but since I use LaTeX to produce the file in question, I thought I could ask it here: Is there a way (or package) to create Excel files via LaTeX, that can add charts (in some way)? Or is there a better way than using `newfile` and `.xml`? Perhaps a different file format is needed?


title: Manually Break line in custom chapter title

text: \documentclass[openany, 10pt]{book}     \usepackage[utf8]{inputenc}     \usepackage[MeX]{polski}     \usepackage{titleps}          \usepackage{lipsum}     \usepackage{tocloft}      \renewcommand\cftchapaftersnum{.}% adds dot after chapter title in ToC      \renewcommand\cftchapdotsep{\cftdotsep}% adds leader dots from chapter titles to page numbers     \frenchspacing          \usepackage{pstcol}     \makeatletter       \def\LigneVerticale{\vrule height 5cm depth 2cm\hspace{0.1cm}\relax}       \def\LignesVerticales{       \let\LV\LigneVerticale\LV\LV\LV\LV\LV\LV\LV\LV\LV\LV}       \def\GrosCarreAvecUnChiffre#1{%       \rlap{\vrule height 0.8cm width 1cm depth 0.2cm}%       \rlap{\hbox to 1cm{\hss\mbox{\white #1}\hss}}%       \vrule height 0pt width 1cm depth 0pt}            \def\@makechapterhead#1{\hbox{%       \Huge        \LignesVerticales       \hspace{-0.5cm}%       \GrosCarreAvecUnChiffre{\thechapter.}% the final dot adds a dor after the chapter number in the document            \hspace{0.2cm}\hbox{#1}%       \renewcommand\numberline[1]{#1.\hskip0.7em}      }\par\vskip 2cm}            \def\@makeschapterhead#1{\hbox{%       \Huge        \LignesVerticales       %\hspace{0.5cm}%       \hbox{#1}%      }\par\vskip 2cm}                \begin{document}      \chapter{Much too long chapter title with linebreak}      \lipsum[1-10]      \end{document}      Hello, my problem is that chapter dosen't fit the text on a page. I have tried many things such as: \protect How to make (force) line-break in Chapter Title (in ToC, Chapter, Header) - if possible? chapter title long and necessity to cut it How to make title of chapter to fit the page size?


title: Vector graphics in LaTeX

text: I need to add some vector graphics to my LaTeX files. I would like to end up with good looking wireframes, such as in Hatcher's book "Algebraic Topology" (for an example take a look here). Which tools would you recommend? Any help would be appreciated, thanks in advance. EDIT: The best thing would be to use an external tool, such as a 3d editor (just a simple one, which lets you easily model a 3d mesh from scratch) and then export the wireframe as a vector image. I don't know if something like this could exist. Tools like tikz or pstricks could do the job, but they are mainly suitable for flat drawings, and require more effort for 3d (drawing something like this could be very tedious).


title: Figure style with memoir class

text: I'm trying to modify the defaut figure style with the memoir class. More precisely, I would like to have the Figure X.Y part in bold. To get X.Y in bold isn't a problem, as the `\captionnamefont{\bfseries}` does the job. But what about "Figure" ? Note that adding the caption package conflicts with memoir, for those not knowing...


how to make maths equations start at the left?               $$ \lim_{ x \to 0} \frac{\log {10 + \log(x+ \frac{1}{10})}}{x} = 10 $$      this display on center we want to start it left


title: How to rotate a composition of Tikz nodes correctly, without rotating the text of their labels?

text: I have seen How to allow labels' anchors in TikZ to be affected by rotations without rotating the text itself?; but that question doesn't seem to answer my problem, so here it goes. With the MWE below, I get this as the node diagram that I want: ![test51.png](http://i.stack.imgur.com/NalsQ.png) If I uncomment `rotate=180` and `anchor=center`, I get this below - it is good the text in labels is not rotated, as I want it, but the composition is otherwise a mess: ![test52.png](http://i.stack.imgur.com/aQxZk.png) Finally, if I also enable/uncomment the `transform shape` - the composition is better for some elements, worse for others, but now also text in labels is rotated, which I don't want: ![test53.png](http://i.stack.imgur.com/8RUiR.png) So the question is - is there a way to rotate the whole composition correctly, AND not have the text in nodes rotated? My desired output, faked in GIMP: ![test54-gimp.png](http://i.stack.imgur.com/FAJ7w.png)               \documentclass{standalone}          \usepackage{tikz}          \begin{document}          \usetikzlibrary{calc}     \usetikzlibrary{positioning}     \usetikzlibrary{fit}          \makeatletter     % http://tex.stackexchange.com/a/47709/2595     \tikzset{       fitting node/.style={         inner sep=0pt,         fill=none,         draw=none,         reset transform,         fit={(\pgf@pathminx,\pgf@pathminy) (\pgf@pathmaxx,\pgf@pathmaxy)}       },       reset transform/.code={\pgftransformreset},     }     \makeatother          \begin{tikzpicture}          \tikzstyle{drc} = [draw, rectangle, line width=1pt, align=center]     \tikzstyle{arr_edge} = [>=latex,->, line width=1pt]          \node[] (tdrag3) at (27.5,1.5) {};     \begin{scope}[shift={(tdrag3)},     %rotate=180,     %anchor=center,     %transform shape,     ]     \node[drc,anchor=south west] (nd01) at (0,0) {Some \\ Words};          \node[drc,anchor=south] (nd02) at (3.5,2) {Some Terms};     \node[drc] (nd03) [above=0pt of nd02] {Something};     \node[drc] (nd04) [above=0pt of nd03] {Some Notions \\ Emulation \\ (Next)};          \draw[drc] (5.5,1.5) rectangle (12,5.5) node[fitting node] (nd05) {};     \node[drc,anchor=south,minimum width=6cm,minimum height=0.8cm] (nd06) [above=5pt of nd05.south] {Generic Definition Terms};     \node[drc] (nd07) [above=5pt of nd06.north east,anchor=south east] {Tests \\ (Conversion, Exchange, etc.)};          \draw[drc] let \p1=(nd06.north west), \p2=(nd07.south west), \p3=($(nd07.north west)+(-5pt,5pt)$), \p4=($(nd07.north east)+(0,5pt)$) in (\x1,\y2) -| (\x3,\y3) to node[above left=2pt and -2em]{Plain access} (\x4,\y4) -- ++(0,0.8cm) -| (\x1,\y2);     \node[align=center] (nd05titl) [below=2pt of nd05.north,anchor=north] {Generic Definition};          \draw[drc] (-0.5,6) rectangle (7.5,9) node[fitting node] (nd08) {};     \node[drc] (nd09) [above right=0pt of nd08.south east, anchor=south east] {Generic List Terms\\Word\ Number\ Variable\ Constant} ;     \draw let \p1=(nd01.center), \p2=(nd09.north) in node[drc] (nd10) at (\x1,\y2) [below=0pt,anchor=north] {Some Terms};     \node[drc] (nd11) [above=0pt of nd10.north,anchor=south] {More Than\\Interesting};     \node[drc] (nd12) [above=0pt of nd09.north,anchor=south] {Generic\\List One};     \node[align=center] (nd13) [below=2pt of nd08.north,anchor=north] {Another List};          \draw[arr_edge] (nd01) -- (nd10);     \draw[arr_edge] (nd11) -- (nd12);     \draw[arr_edge] (nd09) -| (nd05);     % wrap in calc $$ for tikzedt     \draw[arr_edge] (nd04) |- ($(nd05.north west)-(10pt,10pt)$) -- ($(nd05.south west)-(10pt,7.5pt)$) -| ($(nd06.south west)+(10pt,0)$);          \end{scope}          \end{tikzpicture}          \end{document}


title: Changing section number format without changing ToC

text: I am trying to stylize the numbering of sections/subsections/subsubsections using renewcommand like this:               \renewcommand{\thesection}{\opensans\arabic{section}}     \renewcommand{\thesubsection}{\hspace{2em}\bfseries\thesection.\alph{subsection}}     \renewcommand{\thesubsubsection}{\hspace{2em}\thesubsection.\roman{subsubsection}}      This works great for the main matter; however, it alters the formatting for the table of contents as well. How can I avoid having these changes roll over to the table of contents? EDIT: This is for a LaTeX book, and it is divided into \frontmatter and \mainmatter if that makes a difference.


title: Repetition of a word on two lines

text: > **This question led to a new feature in a package:**   >  `impnattypo` There have been questions about rivers asked in the past. I'm wondering about words that are repeated in the same place on two consecutive lines, like "le monde" in the following example: ![example of a word repetition](http://i.stack.imgur.com/64lF8.png) Does this have a name? Should this be avoided? If so, how do you avoid such things (I guess in a similar way as you would avoid rivers)? **Edit:** A LuaTeX implementation allowing to automate this would be welcome. **Addendum by Mico** : I've added a bounty of 100 points to second Raphink's plea for a LuaTeX implementation of his idea. **Edit 2:** I understand that fixing it automatically greatly increases time complexity since you need to do the analysis after the paragraph rendering, but the changes require to trigger a new paragraph rendering so it's a recursive process. What _might_ be doable without increasing time complexity is to _detect_ homeoarchies and highlight them (or underline them) using PDF annotations. I'd be quite happy with that already, as it would help to spot them and fix them manually afterwards.