title: Centering problem with beamerposter

text: I use beamerposter in order to do a poster and I have some trouble because the contents of the poster is not centered. I tried to do a minimal example. This is the tex file :               \documentclass[final]{beamer}           \usepackage[T1]{fontenc}          \usetheme{miniposter}     \usepackage[orientation = portrait, size = a0, scale = 1.4]{beamerposter}                       % e.g. for DIN-A0 poster          \usepackage{lipsum}          \title{Title of the poster}     \author[Author]{Author 1, Author 2 \ldots}     \date{2-5 Juillet 2012}     \institute[INSTITUTE]{Institute of wonderthings}          \begin{document}          \begin{frame}{}          \begin{columns}          \begin{column}[t]{0.64\textwidth}          \begin{block}{first block}         \lipsum[1]     \end{block}          \end{column}     \begin{column}[t]{0.32\textwidth}     \begin{block}{a second block}         \lipsum[2]     \end{block}     \end{column}     \end{columns}          \end{frame}          \end{document}      For beamerposter you need to create a kind of beamer theme. Here also I tried to put the minimum things just to see something.               \ProvidesPackage{beamerthememiniposter}           \mode<presentation>          \setbeamercolor{headline}{bg=blue, fg=white}     \setbeamercolor{footline}{bg=blue, fg=white}     \setbeamercolor{author in head/foot}{fg=white, bg=blue}     \setbeamercolor{title in head/foot}{fg=white, bg=blue}     \setbeamercolor{block title}{fg=white,bg=blue}     \setbeamertemplate{navigation symbols}{}  % no navigation on a poster          \setbeamertemplate{headline}{         \leavevmode       \begin{beamercolorbox}[wd=\paperwidth]{headline}             \Huge             \inserttitle\par                  \insertauthor\par                  \insertinstitute\par       \end{beamercolorbox}     }     \mode<all>      This is the output, look at the block at the middle of the page. They are not horizontally centered. They are a little bit on the left side. ![enter image description here](http://i.stack.imgur.com/VPDif.png) I tried some `\centering` or `center` environment or `\hspace*` but I never succeed. Thanks for your help.


title: Damaged PDF file after linearization using qpdf apparently not caused by (La)TeX input

text: Edit3: I've updated the title, hopefully satisfying the people saying this item is off-topic: The reason I think this post does have value to this community is that the answer maybe off-topic (i.e. a bug in `qpdf`), but the question definitely was not. I spent quite some time fiddling with the Beamer frames that appeared to be the culprit, so let's hope this item can save others the effort. BTW: I just send a message to Jay on the `qpdf` issue, referring to this post. I have a PDF document generated using `pdflatex`, and I used `qpdf` to linearize it. The initial document reads and checks fine, while the linearized document has the first pages damaged and produces an error at checking:               (object 269 0, file position 307): expected n n obj      It's a Beamer presentation including a lot of screengrabs. I thought I found the frame responsible (outcommenting it makes the problem disappear), but the frame looks fine, and even replacing it with a copy of the next frame generates the same problem. And nothing suspicious before it. Displaying the linearized document using evince gives me a lot of empty pages at the start and errors like this:               Syntax Error (4697): No font in show/space     Syntax Error: Unknown font tag 'F21'      Any ideas on how to solve this problem or how to debug it? For those willing to try to linearize themselves: here's the document (warning: 50MB download): http://www.offerman.com/private_secure_computing/AOC-Private_Secure_Computing- CyanogenMod-nonlin.pdf (link edited to make room for linearized document) I also tried `pdfopt`, creating a linearized document that appears to be just fine. Checking it with `qpdf`, however, results in a core dump. I'm wondering whether it's a problem with qpdf instead of an issue within the document... Edit: I'm ignoring the `qpdf` core dumping for now; the file generated by `pdfopt` seems to work in Acrobat Reader and Firefox (both on Linux), though Firefox is not showing the document until it has been downloaded completely. Need to look into that. Edit2: Just checked out the `pdfsizeopt` tool suggested by Keks (tnx!). It requires `sam2p` and `tif22pnm`, for which RPM packages can be found, but also `pngout`, that hasn't been updated for Linux for almost a decade. Looks like a Windows-only party, so I'll leave this for now. Edit4: applying `pdf2ps` followed by `ps2pdf` does indeed create a smaller PDF document, but it makes me lose all hyperlinks and meta-data. Will report back on `gs`...


title: How to unset page numbering on beamer

text: I'm adding an annex after my last frame. How do I unable the page numbering, please? Is it possible to show, instead of `30/30` this `--/--` ?


title: Customising counter within enumerate-list

text: Please consider the following code. I would like to use the `enumerate`-environment to generate a list, which (for better understanding) I built with the `tabular`-environment. I would like to have the second item labeled as "2-5.".               \documentclass[fontsize=12pt, paper=a4]{scrartcl}          \usepackage[T1]{fontenc}     \usepackage[latin1]{inputenc}     \usepackage{ngerman}          \begin{document}               \begin{enumerate}     \item bla     \item bla bla     \item bla bla bla     \end{enumerate}               \begin{table}[htbp]        \begin{tabular}{rl}     1. & bla \\     2-5. & bla bla   \\     6. & bla bla bla  \\        \end{tabular}     \end{table}          \end{document}        ![example](http://i.stack.imgur.com/JvSyr.png)


title: Align content with the bottom of a table

text: My sense is that I am missing something basic, but here goes: I have a `\tabular` object, and on the same line as it ends, I wish to put a `\Box` If I create a dummy column to store the `\Box` then the table is not wide enough (I want the box at the end of the line) If I use `\hfill $\Box$` after the end of the table (if there is a manual newline after the table, else it vertically centers it on the right which is also not what I want) it left justifies as it is the only thing on the line. If I use `test \hfill $\Box$` I get what I want (well, its really one line down too far, but thats OK) but with a pesky `test` at the beginning of the line (as an aside, this seems to be a common issue with me, so if there is a way to have a "dummy" (not visible, has no other impact on the document) character that would do as well). How can I get what I am looking for?


title: How to change the x axis position pgfplots

text: I have trouble to shift the y axis. Is there any command to shift the y axis in the right direction (the first point where graph started) and start the graph exactly from the first point. Thanks. ![Is there any ](http://i.stack.imgur.com/NYBlm.png)


title: Problem in bibliography when using revtex4-1 class for publication in AIP

text: I am trying to create a manuscript by using `revtex4-1` class. I am using MikTeX 2.9 on Windows 7 x64. This manuscript is for publication in Physics of Fluids. The following is a MWE.               \documentclass[aip,pof,numerical]{revtex4-1}     \usepackage{blindtext}     \listfiles          \begin{document}          \title[my title]{My title}     \thanks{Footnote to title of article.}          \author{Author1}         \email{author1@email.com}         \affiliation{          Affiliation1.}%          \author{Author2}%         \email{author2@email.com}         \altaffiliation[Also at ]{Affiliation3.}         \affiliation{Affiliation2.}          \author{Author3}         \email{author3@email.com}         \altaffiliation[Also at ]{Affiliation1.}         \homepage{http://www.www.com/}         \affiliation{%         Affiliation3}          \date{\today}          \begin{abstract}     \blindtext     \end{abstract}          \pacs{Valid PACS appear here}     \keywords{Suggested keywords}     \maketitle          \section{\label{sec:level1}Introduction}     \blindtext \cite{asakawa2003cine}.           \begin{thebibliography}{30}          \bibitem{asakawa2003cine}             \textsc{Asakawa, D., Pappas, G., Blemker, S., Drace, J. E. and Delp, S.}             2003             Cine phase-contrast magnetic resonance imaging as a tool for quantification of skeletal muscle motion.             \emph{Semin. Musculoskel. R.}             \textbf{7}(4), 287--296.     \end{thebibliography}          \end{document}      The problem is that the citation in the manuscript includes both the label and a number, as shown by the following picture. ![enter image description here](http://i.stack.imgur.com/RzSIN.png) The error I get during compilation is:               Undefined control sequence \blindtext \cite{asakawa2003cine}      The compiler produces the following logs.               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9) (preloaded format=pdflatex 2013.3.3)  22 JUL 2013 14:58     entering extended mode     **myAIP.tex          ("D:\Files\myAIP.tex"     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,      croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,      lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman     ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm     an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl     ishmax, welsh, loaded.          ("D:\Files\revtex4-1.cls"     Document Class: revtex4-1 2010/07/25/20:33:00 4.1r (http://publish.aps.org/revt     ex4/ for documentation)      Copyright (c) 2009 The American Physical Society.      mailto:revtex@aps.org      Licensed under the LPPL:     http://www.ctan.org/tex-archive/macros/latex/base/lppl.txt      Arthur Ogawa <arthur_ogawa at sbcglobal dot net>      Based on work by David Carlisle <david at dcarlisle.demon.co.uk>.     ltxutil[2010/07/25/20:33:00 4.1r utilities package (portions licensed from W. E     . Baxter web at superscript.com)]     LaTeX Info: Redefining \@centercr on input line 308.     Class revtex4-1 Info: Repairing broken LaTeX eqnarray on input line 358.     \eqncolsep=\skip41     Class revtex4-1 Info: Repairing hyperref-unfriendly LaTeX definition of \mpfoot     note on input line 433.     Class revtex4-1 Info: Repairing broken LateX \@sect on input line 755.     \intertabularlinepenalty=\count79     \@tbpen=\count80     \@arstrutbox@hline=\box26     Class revtex4-1 Info: Repairing broken LaTeX \@xbitor on input line 1786.     Class revtex4-1 Info: Making \typeout \long on input line 2046.     ltxfront[2010/07/25/20:33:00 4.1r frontmatter package (AO,DPC)]     \c@affil=\count81     \c@collab=\count82     \absbox=\box27     ltxgrid[2010/07/25/20:33:00 4.1r page grid package (portions licensed from W. E     . Baxter web at superscript.com)]     \c@linecount=\count83     \output@latex=\toks14     \box@size@1=\box28     \box@size@2=\box29     \@protection@box=\box30     \@topmark@saved=\toks15     \footins@saved=\box31     \footins@recovered=\box32     \column@recovered=\box33     \pagesofar=\box34     \footsofar=\box35     \pagegrid@col=\count84     Class revtex4-1 Info: Overriding \@vspace, \@vspacer, \@no@pgbk, \@newline, and      \\  on input line 5578.     \c@part=\count85     \c@section=\count86     \c@subsection=\count87     \c@subsubsection=\count88     \c@paragraph=\count89     \c@subparagraph=\count90     \abovecaptionskip=\skip42     \belowcaptionskip=\skip43     \c@figure=\count91     \fbox@1=\box36     \c@table=\count92     \fbox@2=\box37     \c@video=\count93     \fbox@4=\box38     \@bibdataout=\write3     \widetext@top=\box39     \widetext@bot=\box40     Class revtex4-1 Info: Selecting society aip on input line 7542.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\revtex\aip4-1.rtx"     File: aip4-1.rtx 2010/07/25 4.1r AIP substyle for REVTeX     Class revtex4-1 Info: RevTeX society AIP selected on input line 67.     )     Class revtex4-1 Info: Selecting journal pof on input line 7544.          Using journal substyle pof.          Class revtex4-1 Warning: No type size specified, using default 12.          Class revtex4-1 Info: Reading file aps12pt4-1.rtx on input line 7547.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\revtex\aps12pt4-1.rtx"     File: aps12pt4-1 2010/07/25/20:33:00 4.1r (http://publish.aps.org/revtex4/ for      documentation)     Class revtex4-1 Info: RevTeX pointsize 12pt selected on input line 30.     )     Class revtex4-1 Info: Overriding 12pt on input line 7547.          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\textcase\textcase.sty"     Package: textcase 2004/10/07 v0.07 Text only upper/lower case changing (DPC)     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ltxmisc\url.sty"     \Urlmuskip=\muskip10     Package: url 2006/04/12  ver 3.3  Verb mode for urls, etc.     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\natbib\natbib.sty"     Package: natbib 2010/09/13 8.31b (PWD, AO)     \bibhang=\skip44     \bibsep=\skip45     LaTeX Info: Redefining \cite on input line 695.     \c@NAT@ctr=\count94     )     Class revtex4-1 Info: Repairing natbib's \BibitemShut on input line 7549.          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\revtex\revsymb4-1.sty"     Package: revsymb4-1 2010/07/25/20:33:00 4.1r (http://publish.aps.org/revtex4/ f     or documentation)     LaTeX Info: Redefining \REV@mathfrak on input line 119.     ))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\blindtext\blindtext.sty"     Package: blindtext 2012/01/06 V2.0 blindtext-Package          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\xspace.sty"     Package: xspace 2009/10/20 v1.13 Space after command names (DPC,MH)     )     \c@blindtext=\count95     \c@Blindtext=\count96     \c@blind@countparstart=\count97     \blind@countxx=\count98     \blindtext@numBlindtext=\count99     \blind@countyy=\count100     \c@blindlist=\count101     \c@blindlistlevel=\count102     \c@blindlist@level=\count103     \blind@listitem=\count104     \c@blind@listcount=\count105     \c@blind@levelcount=\count106     \blind@mathformula=\count107     \blind@Mathformula=\count108     \c@blind@randomcount=\count109     \c@blind@randommax=\count110     \c@blind@pangramcount=\count111     \c@blind@pangrammax=\count112     )     Class revtex4-1 Info: Patching LaTeX tabular. on input line 7.     Class revtex4-1 Info: Robustifying \LaTeX's \boldmath command on input line 7.     Class revtex4-1 Info: cite was not loaded (OK!) on input line 7.     Class revtex4-1 Info: mcite was not loaded (OK!) on input line 7.     Class revtex4-1 Info: multicol was not loaded (OK!) on input line 7.          ("D:\Files\myAIP.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.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <12> on input line 40.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <8> on input line 40.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <6> on input line 40.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <7> on input line 40.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <5> on input line 40.      [1{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}]     ! Undefined control sequence.     <argument> \Hy@backout                             {\@citeb \@extra@b@citeb }\advance \@tempcnta by\@ne ...     l.43 \blindtext \cite{asakawa2003cine}                                           .     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.               ("D:\Files\myAIP.bbl") [2]     ("D:\Files\myAIP.aux")           *File List*     revtex4-1.cls    2010/07/25/20:33:00 4.1r (http://publish.aps.org/revtex4/ for      documentation)       aip4-1.rtx    2010/07/25 4.1r AIP substyle for REVTeX     aps12pt4-1.rtx     textcase.sty    2004/10/07 v0.07 Text only upper/lower case changing (DPC)          url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.       natbib.sty    2010/09/13 8.31b (PWD, AO)     revsymb4-1.sty    2010/07/25/20:33:00 4.1r (http://publish.aps.org/revtex4/ for      documentation)     blindtext.sty    2012/01/06 V2.0 blindtext-Package       xspace.sty    2009/10/20 v1.13 Space after command names (DPC,MH)        myAIP.bbl      ***********           )      Here is how much of TeX's memory you used:      2413 strings out of 493921      32531 string characters out of 3144877      92955 words of memory out of 3000000      5742 multiletter control sequences out of 15000+200000      8532 words of font info for 30 fonts, out of 3000000 for 9000      841 hyphenation exceptions out of 8191      29i,6n,23p,187b,199s stack positions out of 5000i,500n,10000p,200000b,50000s     <C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmbx12.pfb>     <C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmcsc10.pfb><     C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb><C:/     Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr12.pfb><C:/Pro     gram Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr7.pfb><C:/Program      Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr8.pfb><C:/Program Fil     es (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmss12.pfb><C:/Program Files      (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmss8.pfb><C:/Program Files (x     86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmssbx10.pfb><C:/Program Files (x     86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmti12.pfb>     Output written on myAIP.pdf (2 pages, 117817 bytes).     PDF statistics:      49 PDF objects out of 1000 (max. 8388607)      0 named destinations out of 1000 (max. 500000)      1 words of extra memory for PDF output out of 10000 (max. 10000000)      The following is also the log of running `bibtex`:               Process started: bibtex "myAIP"          This is BibTeX, Version 0.99d (MiKTeX 2.9)     The top-level auxiliary file: myAIP.aux     The style file: aipnum4-1.bst     Database file #1: myAIPNotes.bib     Warning--I didn't find a database entry for "asakawa2003cine"     control{REVTEX41Control}, control.key{N/A}, control.author{N/A}, control.editor{N/A}, control.title{N/A}, control.pages{N/A}, control.year{N/A}, control.eprint{N/A},      control{aip41Control}, control.key{N/A}, control.author{N/A}, control.editor{N/A}, control.title{0}, control.pages{1}, control.year{N/A}, control.eprint{N/A},      Warning--jnrlst (dependency: not reversed) set 1     merlin.mbs aipnum4-1.bst 2010-07-25 4.21a (PWD, AO, DPC) hacked     Control: key (0)      Control: author (8) initials jnrlst     Control: editor formatted (1) identically to author     Control: production of article title (0) allowed     Control: page (1) range     Control: year (1) truncated     Control: production of eprint (0) enabled     (There were 2 warnings)          Process exited normally      As can be seen from the above log, `bibtex` complains about `Warning--I didn't find a database entry for "asakawa2003cine"` and uses `Database file #1: myAIPNotes.bib`. I should also mention that the directory in which my manuscript is there contains the following files before compilation:               myAIP.tex             revtex4-1.cls          After I compile, the following files are created:               myAIP.aux             myAIP.bbl             myAIP.blg             myAIP.log             myAIP.pdf             myAIP.synctex.gz      myAIP.tex             myAIPNotes.bib        revtex4-1.cls          I don't know why `myAIPNotes.bib` is also created. The content of `myAIPNotes.bib` is as follows:               @CONTROL{REVTEX41Control}     @CONTROL{aip41Control,pages="1",title="0"}      Could someone please help me?


title: How to set default font size in latex cls file?

text: I am using a custom LaTeX document class for my thesis which is derived from the `report` class. I'd like to set the default size of the font to `12pt`, and still have the option to change it (to `10pt`) via the `\documentclass` command. How can I do it?


title: "Center" table offset, to account for floating figure?

text: I'm composing a document in which I use the `wrapfig` environment to let me wrap text around a floating figure. I've placed this figure (of width `0.3\textwidth`) on the right of a page, and I'd like to include a table inline with the text that's wrapping around the figure, centered relative to the `0.7\textwidth` I have left. Unfortunately:   * When using a regular `center` environment (and no `table`, just `tabular`), the table's centered with respect to the entire page   * When using the `table` environment, the table floats with regard to the text - I'd like it to stay exactly where I put it, rather than head to the bottom or top of the page like a figure (and I can't really figure out how to center it anyway)   * When using `wraptable`, I get warnings about wrapped figure collisions, and the table continues to float relative to the text Is there a way I can tell LaTeX to "center" a `tabular` environment only in the left `0.7\textwidth` of a page? **Edit:** To be clearer, here's a snippet of my current file:               \begin{wrapfigure}{r}{0.3\textwidth}     \includegraphics[width=0.28\textwidth]{someimage.png}     \end{wrapfigure}          Some text here...          \begin{tabular}{c}     table info...     \end{tabular}          More text here...      I'd very much like the layout to look like:               Some text here...                                 someimage.png                                                       someimage.png                     table info...                     someimage.png                                                       someimage.png     More text here...                                 someimage.png      Note how the table info is centered but only in the left portion of the page. I'm looking for the environment I can use to make that happen with the `tabular` chunk I have now.


title: Margins too wide using a5paper Koma-Script option

text: This is my preamble:               \documentclass[a5paper, DIV=classic, 12pt]{scrbook}     \usepackage{xltxtra,fontspec,graphicx,xunicode,color,lettrine}     \setmainfont[Mapping=tex-text, Ligatures={Rare}, Numbers=OldStyle]{ibarraReal}     \usepackage[spanish]{babel}      The problem is in the `a5paper` option, because I get the following ![enter image description here](http://i.stack.imgur.com/75HBy.png) So, how can I fix the problem with margins?


title: Searching for Euro symbol

text: I found egreg's answer to the question "eurosym seems to not be working" some time ago and it works perfect if I compile using `pdflatex`, but if I compile using               latex     dvips     ps2pdf      the Euro symbol is not searchable in the PDF file. How do I make it searchable if I compile using the latter procedure? **Update** I'm wondering if anyone is trying to "make an up to date Type1 font version of `feymr10.pfb` with the correct glyph name (`/Euro`)" (quoting Heiko Oberdiek's last comment) at the moment?


title: Datatool cannot use math macros in tabular headers from csv file

text: I am making a LaTeX table using a CSV file and the `datatools` package. Here is a minimal working example:               \documentclass{minimal}     \usepackage{datatool}     \usepackage{filecontents}          \begin{filecontents*}{data.csv}     ,$x$,$p_x$,     $x$,$0$,$i \hbar$     \end{filecontents*}          \begin{document}          \DTLloaddb{mytable}{data.csv}     \DTLdisplaydb{mytable}          \end{document}      This will compile cleanly. However, if I change the first row (which will become the header) to include a macro (e.g. `,$x$,$\hbar$,`) I get a whole bunch of errors on the `\DTLloaddb{mytable}{data.csv}` line.               ! Missing \endcsname inserted.     <to be read again>     \mathchar     l.12 \DTLloaddb{mytable}{data.csv}     The control sequence marked <to be read again> should     not appear between \csname and \endcsname.     ....(and so forth)...      Things I have tried that did not work:   1. Quoting ("\hbar")   2. Ensuremath (\ensuremath{\hbar})   3. Using tabs as delimiters instead of commas.   4. Unrolling the csv file into equivalent `datatool` commands. These are the equivalent commands:               \DTLnewdb{mydata}     \DTLnewrow{mydata}%     \DTLnewdbentry{mydata}{}{$x$}%     \DTLnewdbentry{mydata}{$x$}{$0$}%     \DTLnewdbentry{mydata}{$p_x$}{$i \hbar$}%     \DTLdisplaydb{mydata}      They give the same errors as the csv file. Manually specifying the headers, however, works fine:               \documentclass{minimal}     \usepackage{datatool}     \usepackage{filecontents}          \begin{filecontents*}{data.csv}     $x$,$0$,$i \hbar$     \end{filecontents*}          \begin{document}          \DTLloaddb[noheader,headers={,$x$,$\hbar$}]{mytable}{data.csv}          \DTLdisplaydb{mytable}          \end{document}      I would like to avoid manually specifying the headers, however, if possible.


title: Adjusting the position of page number in a book/note

text: I have written up a note/book (actually my thesis) with parts in it, and ran into the following problem: To make the note divide into parts, I used `\part` command, e.g. `\part{This is part I}`, and this produced a separate page where it centers the text `part I`, and then write below (still centering) `This is part I` (I typed something different that 'This is part I', however that is irrelevant), and that's all what is on the page. So far this is fine, but while numbering the page, it writes the page number at the central bottom, instead of the top right, where it writes all the other page numbers, different from the 'parting page numbers'. But my university want **all** the pages to be numbered in the same way, and they want all the numbers to appear at the top right of the page. Could you please suggest me how to make all the page numbers appear at the top right of the page, specially, the numbers for those 'parting pages'?


title: List all macro calls

text: Assume I have a big document that uses several macros, say `\AAA`, `\BBB`, etc., through the whole document. Is there a way that I can have a list of all these macros in the final pdf? I want to repeat all the `\AAA` calls at the beginning for example, to have a very quick glance at them while writing the document. An optional feature would use hyperref to click on one `\AAA` of the list to go directly on the pdf page where the macro is actually used.


title: macvim, skim, and sync - skim use *open* copy of file?

text: When using Skim.app for reverse-searches, is there any way to make the .tex file come to the front if it's already open in a macvim tab? What if there are multiple vim _windows_ open (not just tabs)? The 'standard' script (http://sourceforge.net/apps/mediawiki/skim- app/index.php?title=TeX_and_PDF_Synchronization#Editor_Script_for_VIM) works if you have the file open in the active tab, but NOT if you have it open in a non-active tab (the vim command `bufexists` doesn't work for other tabs). The Skim.app standard `mvim --remote-silent +":%line" "%file"` is, to me, completely useless - it overwrites the current open buffer on the first MacVim window open. Is there any way to change this behavior to find the current _open_ copy of the file? EDIT: A note I hope is helpful for others - I could not get the applescript to work at all until I added the line                 -e "delay 0.2" \      to the start of the script and changed the ESC key passing to be               -e "    key code 53 "\


title: Only draw part of a borderline in tcolorbox

text: I want to tune the type of `tcolorbox` that I'm making. I want specifically to only draw a border on one side of the image, similar to how `minted` allows to draw only a border on one side by specifying option `frame=leftline`. I got the following code:               \documentclass[a5paper]{article}     \usepackage[T1]{fontenc}     \usepackage[]{minted}     \usepackage[skins]{tcolorbox}     \usepackage{lineno}     \def\gobble#1{}     \renewcommand\DeleteFile[1]{}     \usepackage{xparse}     \ExplSyntaxOn     \box_new:N \l_fvrb_box     \tl_new:N \l_fvrb_tl          \RenewDocumentCommand \FancyVerbFormatLine { m }      {        \hbox_set:Nn \l_fvrb_box { #1 }         \dim_compare:nNnTF { \box_wd:N \l_fvrb_box }>{ \linewidth }           {             \tl_set:Nn \l_fvrb_tl { #1 }            \fvrb_use_tl:N \l_fvrb_tl           }            {%box fits            \box_use:N \l_fvrb_box           }      }          \cs_new:Npn \fvrb_use_tl:N  #1      {       \group_begin:        \null\hfill\vbox_set:Nn \l_fvrb_box          {\hsize=\linewidth           \renewcommand\thelinenumber                {                  \ifnum\value{linenumber}=1\relax\else                       $\rightarrow$                  \fi                }           \begin{internallinenumbers}             \advance\hsize by -2em             \hspace*{-2em}\tl_use:N #1           \end{internallinenumbers}          }        \box_use:N \l_fvrb_box       \group_end:     }     \ExplSyntaxOff     \definecolor{mintedbg}{RGB}{250,255,250}     \usepackage{etoolbox}     \BeforeBeginEnvironment{minted}{\begin{tcolorbox}[enhanced,     width=\linewidth,     enlarge top by=3pt,enlarge bottom by=3pt,     enlarge left by=3pt,enlarge right by=3pt,     frame hidden,boxrule=0pt,top=1mm,bottom=1mm,     colframe=green!30!black, colbacktitle=green!50!yellow,     coltitle=black, colback=mintedbg,     borderline={.8pt}{-0.5pt}{blue!87!green!13, sharp corners},     borderline={.9pt}{-3pt}{blue!70!green!30, sharp corners},     borderline={1pt}{-5.5pt}{blue!53!green!47, sharp corners}]}%     \AfterEndEnvironment{minted}{\end{tcolorbox}}%     \begin{document}     \begin{minted}{latex}     %Preamble     \usepackage[]{minted}     \usepackage[fancyvrb=true]{listings}     \usepackage{tcolorbox}     \usepackage{etoolbox}     \BeforeBeginEnvironment {minted} { \begin{tcolorbox} } \AfterEndEnvironment {minted} { \end{tcolorbox} }%     \usepackage{lipsum}     \end{minted}     \end{document}      Ideally, I'd want a style very similar to `minted`'s `frame=leftline`, except with multiple (border-)lines as outlined in the example.


title: How do you test whether a known key value has been set in pgfkeys

text: Using the `.code` handler to my keys and a private macro, I can easily test whether a key has been set when using `pgfkeys`. For example:               \documentclass{article}     \newcounter{mytestenvcounter}     \usepackage{pgfkeys}     \makeatletter     \let\ae@mykey@test\relax     \def\ae@get@mykey@test{\ifx\ae@mykey@test\relax{I've not been set.}\else{I am set to:\ae@mykey@test}\fi}     \pgfkeys       {         /ae/mykeys/set/.cd,         mykey/.code = {\def\ae@mykey@test{#1}},         /ae/mykeys/get/.cd,         mykey/.code = {\ae@get@mykey@test},       }     \makeatother     \newenvironment{mytestenv}[1]       {\pgfkeys{ /ae/mykeys/set/.cd, #1}%        \begin{minipage}[t]{2in}%        \stepcounter{mytestenvcounter}\themytestenvcounter.)\hspace*{0.5em}        \pgfkeys{ /ae/mykeys/get/mykey }%       }       {\end{minipage}%       }          \pagestyle{empty}     \begin{document}            \begin{mytestenv}{mykey={testing}}       \end{mytestenv}            \begin{mytestenv}{}       \end{mytestenv}          \end{document}      But in the comments to an earlier question of mine it was suggested that there's a better approach via `.initial` and testing for an empty value. But, I don't know how to implement this. This is as far as I know how to get:               \documentclass{article}     \newcounter{mytestenvcounter}     \usepackage{pgfkeys}     \pgfkeys       {         /ae/mykeys/.cd,         mykey/.initial=,       }     \newenvironment{mytestenv}[1]       {\pgfkeys{ /ae/mykeys/.cd, #1}%        \begin{minipage}[t]{2in}%        \stepcounter{mytestenvcounter}\themytestenvcounter.)\hspace*{0.5em}        \pgfkeys{ /ae/mykeys/mykey }%       }       {\end{minipage}%       }          \pagestyle{empty}     \begin{document}            \begin{mytestenv}{mykey={testing}}       \end{mytestenv}            \begin{mytestenv}{}       \end{mytestenv}          \end{document}      I've tried using `\pgfkeysifdefined`, but that always seems to test positve. I've also seen the following question and answer, but don't understand how it relates to what I'm trying to do. Additionally, in this particular question and answer, I don't understand why the need to `\detokenize` and the syntax for the definition of `\pgfkeysifstyleempty@i` seems incorrect. So, if you're tempted to point me in that direction, I'd greatly appreaciate comments on what's happening there. But, is it really necessary to define a macro to test for `empty` values in `pgfkeys`? To be able to test whether a key has been set or not in the current environment seems to be something rather reasonable. I've poured over the chapter on `pgfkeys` in the `tikz` manual. But nothing there seems very promising, other than what I've already mentioned above.


title: unicode-math and oldstyle figures

text: I'm trying to find a good way to archive the following using `fontspec`, `unicode-math` and `lualatex`:   1. almost global oldstyle figures including inline math   2. lining numbers for displayed equations, e.g. `equation`. My current unstable, ugly solution is the following. I say unstable because class options like `fleqn` will break it to the ugliness. . . well take a look:               \documentclass{article}     \usepackage{fontspec}     \usepackage{unicode-math}     \defaultfontfeatures{Numbers=OldStyle}     \setmainfont[Ligatures=TeX]{Tex Gyre Pagella}     \setmathfont[]{Tex Gyre Pagella Math}     %% PROBLEM   : No +onum in this font (or Cambria Math)     %% "SOLUTION": Take numbers from normal font     \setmathfont[range=\mathup/{num}]{Tex Gyre Pagella}     %% PROBLEM   : Not old style figures in display env.     %% "SOLUTION": Reload the Math variant since it ain't got onum.     \everydisplay={\setmathfont[range=\mathup/{num}]{Tex Gyre Pagella Math}}     \begin{document}     \noindent\centering     123\textit{x}\textsubscript{456}\\     $123x_{456}$     \begin{equation}     123x_{456}     \end{equation}     \end{document}      Output is something like this: ![Output with different number styles in display and inline](http://i.stack.imgur.com/tADxO.png) Spending quite a bit of time going through the manuals of `fontspec`, `unicode-math` and `mathspec` I have not been able to find a better solution. The `version` argument to `setmathfont` (of `unicode-math`) seems to expect stuff like `bold`. Bonus question: am I breaking some typographic style?


title: Closing a path with a "to" curve

text: The "oval" path in too sharp as you can see in the intersection with the horizontal line. How can i fix this problem?               \documentclass{article}     \usepackage{tikz}            \begin{document}          \begin{tikzpicture}[scale=0.3]       \draw (0,7.5)--(5,7.5);       \draw[smooth] (0,0) to[out=75,in=285] (0,7.5) to[out=255,in=105] (0,0)-- cycle;     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/B5uTp.png) I'm tryng to make something like this:               \documentclass{article}     \usepackage{tikz}      \usetikzlibrary{patterns}            \begin{document}          \begin{tikzpicture}[scale=0.3]           \draw[smooth,pattern=north east lines] (0,0) to[out=75,in=285] (0,7.5)   to[out=255,in=105] (0,0)-- cycle;      \draw (0,-7.5) to[out=105,in=255] (0,0);          \draw (0,7.5)--(20,7.5);     \draw (0,-7.5)--(20,-7.5);          \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/niFml.png)


title: Trigonometric notation with Initial capital Letter and Italic

text: How can we make First letter Capital while using trigonometric functions. eg: \cos (60^\circ) gives simple cos (all in small). What is needed is 'Cos' (with initial capital). For italics in mactex i used \it but it didn't italicized 'cos' only the number '60'. So how to do that?


title: Creating special table

text: How can I create a table such as following: I do not know how can I have A and B in the middle of four rows ?![enter image description here](http://i.stack.imgur.com/9jt54.png)


title: How do I change how pgfplot steps the labels along a given axes

text: I have the following MWE               \documentclass{article}     \usepackage{pgfplots}     \pagestyle{empty}     \usepackage{mathtools}     \begin{document}     \begin{tikzpicture}     \begin{axis}       [         minor x tick num=1,         axis y line=center,         axis x line=middle,         xlabel=$x$,         ylabel=$y\mathmbox{{}={}}\frac{1}{3}x-2$       ]     \addplot       [         smooth,         blue,mark=none,         domain=-5:10,         samples=40       ]     {1/3*x-2};     \end{axis}     \end{tikzpicture}          \end{document}      I have no idea how to get `pgfplots` to step the labels along the x-axis by 1 unit (instead of 2 as shown) without doing something funky like changing the size or compact or font used. ![enter image description here](http://i.stack.imgur.com/kxJ9k.png) **UPDATE** Though I'm not entirely happy with this. Here's a bit of a work around which gives me the level of control I want:               \def\xmin{-6}     \def\xmax{10}     \def\xinc{3}     \def\xlabels{\xmin}     \multido{\nx=\xmin+\xinc}{\number\numexpr(\xmax-\xmin)/\xinc+1\relax}{       \ifnum\nx=\xmin\else         \xdef\xlabels{\xlabels,\nx}       \fi     }          \def\ymin{-6}     \def\ymax{4}     \def\yinc{2}     \def\ylabels{\ymin}     \multido{\ny=\ymin+\yinc}{\number\numexpr(\ymax-\ymin)/\yinc+1\relax}{       \ifnum\ny=\ymin\else         \xdef\ylabels{\ylabels,\ny}       \fi     }      A short-coming of this is that it will only work with interger values. So, put into action this looks like:               \documentclass{article}     \usepackage{pgfplots}     \pagestyle{empty}     \usepackage{mathtools}     \usepackage{multido}     \pgfplotsset{compat=1.7}     \begin{document}          \def\xmin{-6}     \def\xmax{10}     \def\xinc{3}     \def\xlabels{\xmin}     \multido{\nx=\xmin+\xinc}{\number\numexpr(\xmax-\xmin)/\xinc+1\relax}{       \ifnum\nx=\xmin\else         \xdef\xlabels{\xlabels,\nx}       \fi     }          \def\ymin{-6}     \def\ymax{4}     \def\yinc{2}     \def\ylabels{\ymin}     \multido{\ny=\ymin+\yinc}{\number\numexpr(\ymax-\ymin)/\yinc+1\relax}{       \ifnum\ny=\ymin\else         \xdef\ylabels{\ylabels,\ny}       \fi     }               \begin{tikzpicture}[]     \begin{axis}       [         unit vector ratio=1 1,         minor x tick num=1,         axis y line=center,         axis x line=middle,         xtick={\xlabels},         ytick={\ylabels},         xlabel=$x$,         ylabel=$y\mathmbox{{}={}}\frac{1}{3}x-2$       ]     \addplot       [         smooth,         blue,mark=none,         domain=\xmin:\xmax,         samples=40       ]     {1/3*x-2};     \end{axis}     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/XnG6I.png) But it seems, given all the power `pgfplots` has to manipulate so many other aspects of the graph, that there should be a simpler approach that what I've come up with.


title: Prevent environments from breaking in two pages

text: I am making my own environments for a mathematical document (environments such as Theorem, Definition, Lemma... which often consists of a title corresponding to the environment and possible things at the end of the environment (such as the proof environment which has a cute little square at the end)). However, I hate it when something such as Lemma. \--------------------------Page break here---------------- Beginning of the text in the lemma happens. Is there any way to require the environment to fit all its content in one page in the environment description? Something like a 'no-page-break- allowed-here' command. EDIT : For example, I'd like this environment to be modified so that it doesn't break :               \newenvironment{definition}     {         \textbf{\underline{Definition.}}         \vspace{12 pt}         \itshape     }


title: pgfplots: how to add a label to a graph with the option clip=true?

text: ## Question I would like to add a label to my graph, on the right of it or at any other place, for instance somewhere above my graph. Is it possible? I want to use the option `clip=true`, because of the graph of `tan(x)` (see the picture below) ## Code and picture               \documentclass{article}     \usepackage{pgfplots}     \begin{document}     \begin{tikzpicture}     \begin{axis}[     axis x line = middle,      axis y line = middle,      domain=-2:2,     xmin = -2,      xmax = 2,       ymin=-10,     ymax=10,     grid = major,      clip = false]     \addplot[color=orange, samples=100, smooth, ultra thick] {tan(deg(x))}  node[right] {$\tan$};     \end{axis}     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/B7aHO.png) If I remove the options `ymin=...`, `ymax=...`, the output is fine, but I would like, if possible, to set the values of ymin and ymax.


title: Conversion of .pl and .vpl files in windows

text: I am trying to install a type 1 font in MiKTeX, I use Windows Seven. I am using fontinst and following step by step the guide here http://ctan.mirror.garr.it/mirrors/CTAN/info/Type1fonts/fontinstallationguide/fontinstallationguide.pdf Nonetheless, I have no idea on how to convert the .pl and .vpl files into .tfm and .vf files respectively. In the guide, this is explained on page 16, §1.3. It talks about Bash shell but, honesty, I am really not an expert and don't even know what that is. So, what should I do? Thank you very much.


title: \dotsc or \dots in this case?

text: I know that we should use `\dotsc` with a comma and `\dots` if there is no comma. But what if I have a comma on the right side and no comma on the left side, for example in               Pr[X_i | X_{i+1}, ... ]      Which one should I use?


title: Showcase of beautiful typography done in TeX & friends

text: If you were asked to show examples of beautifully typeset documents in TeX & friends, what would you suggest? Preferably documents available online (I'm aware I could go to a bookstore and find many such documents called 'books'). Extra bonus for documents whose LaTeX source is available. This is not an idle question. Seeing great examples of any craft is both educational and inspiring, let alone explaining why we prefer TeX to Word or other text editors. For instance, I like how Philipp Lehman's Font Installation Guide looks. I don't know enough LaTeX to realize how much customization was done, but the ToC looks polished. Your nominations, please ...


title: What is the easiest way to get borders around a page in LaTeX?

text: I want my document to have borders in all pages. I imagine I can do that using TikZ, but is there an easier way to do it? I also asked this question here, but as the main question was something else, this one problem got ignored (probably the use of the word "margin" rather than "border" did not help my case). Can anyone help me?


title: Adding line numbers to latex and respecting equations

text: It's often convenient to add line numbers to a page automatically and the lineno package generally does the trick. But I've had two problems with it   1. It doesn't seem to align the line numbers with the actual text lines - linenumbers drift between lines and occasionally skip lines as well as a consequence.    2. Sequences of equations get skipped. Now I've seen this work properly in other PDFs and so was wondering if there's some magic option I'm missing.  All I do is include the package and then turn line numbering on.


title: How to use the exam class in another language

text: Can we use the `exam` document class and all its packages in another language? For example, how can we have the info about the exam translated in another languge?


title: Space in while printing but not viewing PDF

text: I am trying to write in a IEEETran class of latex. I have a very strange problem. The minimum stripped code is as follows -               \documentclass[conference]{IEEEtran}     \def    \b      {\beta~}     \begin{document}     consumed, so the first $\b$ tokens $v_0$, then the next     \end{document}      Now when I generate a pdf using pdflatex, my PDF output looks like this - ![enter image description here](http://i.stack.imgur.com/cv02r.png) However, when I try to print this PDF, the output looks like this - ![enter image description here](http://i.stack.imgur.com/lvnGe.png) I do not understand why there is a space between v and 0. I grabbed this image, using the "print preview" of the printer. Just for complete information, I tried using HP LaserJet p4015 and HP Color LaserJet 4650 pcl3 printers. UPDATE The fonts that are ![enter image description here](http://i.stack.imgur.com/BF9OR.png)


title: Exsheets improve final grade table with subquestions

text: Following the question from here: Exsheets: improve subquestions scores features using tasks. Is it possible to automatically generate a table with the following aspect like:               \documentclass{article}          \usepackage{array}          \begin{document}     \begin{tabular}{|l|l|l|l|l|}     \hline     \multicolumn{2}{|c|}{Question} & \multicolumn{2}{c|}{Points} & Notes \\     \hline     1 & 1.1 & 4 & 1   & \\ \cline{2-2} \cline{4-5}       & 1.2 &   & 1   & \\ \cline{2-2} \cline{4-5}       & 1.3 &   & 2   & \\ \hline     2 & 2.1 & 3 & 1.5 & \\ \cline{2-2} \cline{4-5}       & 2.2 &   & 1.5 & \\ \hline         \multicolumn{2}{|l|}{Total} & \multicolumn{2}{r|}{7} & \\ \hline     \end{tabular}     \end{document}      The code there for the table almost does that, but I think if there was a way to grab properties from subquestions like it is done for questions it would be easier. I am talking about define two new commands `\SubQuestionNumber{#1}` and `\GetQuestionProperty{subpoints}{#1}` (both used inside `\ForEachQuestion{}`), as such `\SubQuestionNumber{#1}` would return the number (label?) of subquestions in each question and `\GetQuestionProperty{subpoints}{#1}` the score for each subquestion. ![enter image description here](http://i.stack.imgur.com/eNmVP.png)


title: Placing a single algorithm in two columns

text: I have a single-column document and to save space I would like to make a long algorithm (produced using packages `algorithm` and `algorithmic`) to be double-column. That is, I would like the float content to start on the left column and continue on the right column, where the rest of the document is single column. I can place two algorithms side by side within a figure environment, but I am not sure if partitioning a single algorithm into columns can be done.


title: Line break "no line to end"

text:
I would like to know how to force a gap say in this instance:               \subsection{$K\nsubseteq L$}
     [Line break here]
     In the next three results that follow, ...      Naively using `\newline` or equivalently `\\` gives the message "no line to end". I can understand the error message but I'm not sure how to get around it. Is there another command I could use? I apologise if I've double posted, let me know and I'll delete it. THANKS!


title: Is it possible to write an arara rule which uses a bash script?

text: I've written a shell script to convert some of my files to different formats for use in my LaTeX files. Is it possible to write an `arara` rule which can use my shell scripts? **EDIT** I should note: the script is loaded through my bash `profile` file where it's defined along the lines               myscript () { <script contents> }      In other words, the script does not exist as an executable residing in some directory.


title: Random polar coordinates

text: I want do draw some random tiny circles inside a bigger one. I use `rnd` at both coordinates (polar): `({30*rnd}:{2*rnd})` \-- here I want to have tiny circles in the range [0;30] degrees. The ouput is random but not limited to 30 degrees. Then I want a constant angle: `({30}:{2*rnd})`. The output doesn't make any sense. Both coordinates are random. Finally I want constant distance to the center: `({30*rnd}:{2})`. Everything OK by the looks of it: it's an arc limited by the 30 degrees. Here's the code:               \documentclass{article}     \usepackage{tikz}        \usepackage{scalefnt}     \usetikzlibrary{arrows,calc, positioning}     \usepackage[active,tightpage]{preview}       \PreviewEnvironment{tikzpicture}     \setlength\PreviewBorder{2mm}          \begin{document}          \begin{tikzpicture}          \draw (0,0) circle(3);          \draw[dashed] (0:0) -- (30:3);     \pgfmathsetseed{\pdfuniformdeviate 1000000};     \foreach \iter in {1,2,...,50} {         \draw[fill=red] ({30*rnd}:{2*rnd}) circle(0.01);     }     \end{tikzpicture}          \begin{tikzpicture}          \draw (0,0) circle(3);          \draw[dashed] (0:0) -- (30:3);     \pgfmathsetseed{\pdfuniformdeviate 1000000};     \foreach \iter in {1,2,...,50} {         \draw[fill=red] ({30}:{2*rnd}) circle(0.01);     }     \end{tikzpicture}          \begin{tikzpicture}          \draw (0,0) circle(3);          \draw[dashed] (0:0) -- (30:3);     \pgfmathsetseed{\pdfuniformdeviate 1000000};     \foreach \iter in {1,2,...,50} {         \draw[fill=red] ({30*rnd}:{2}) circle(0.01);     }          \end{tikzpicture}     \end{document}      Any ideas?


title: Vertical spacing inside beamer \titlepage, got "Token not allowed in a PDF string..."?

text: I'm trying to separate (with a vertical spacing) the word "Me" from "Prof: My professor", basically putting the latter on a new line. This works fine, but I've got a warning: > Package hyperref Warning: Token not allowed in a PDF string (Unicode): > (hyperref) removing `\vskip' on input line 31. Should I care? How can I remove the warning, mantaining the vertical spacing?               % titlepage settings     \title[My title]{My long title}     \author[Me]{Me \vskip25pt \footnotesize Prof: My professor}     \institute{University of Foo\\My title}     \date{18 luglio 2013}


title: Formatting page number (fancyhdr?)

text: Could anyone please show me how to get this page number formatting: ![enter image description here](http://i.stack.imgur.com/PrS3C.png)


title: Lyx: heading texts overlap with heading numbers in Toc

text: I am using Lyx and I have met a problem in my table of contents: the heading texts overlap with the heading numbers. I have found similar questions people asked here before, but unfortunately, I still could not fix it based on previous solutions. I am attaching the source code of my Lyx file as the following. Thanks in advanced!               % Preview source code          %% LyX 2.0.7.1 created this file.  For more info, see http://www.lyx.org/.     %% Do not edit unless you really know what you are doing.     \documentclass[english]{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage{geometry}     \geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}     \usepackage{babel}     \usepackage{float}     \usepackage[unicode=true,      bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,      breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]      {hyperref}     \hypersetup{pdftitle={A DNA Realization of Chemical Reaction Networks},      pdfauthor={Yuan-Jyue Chen, Neil Dalchau, Cezanne Camacho, Matt Olson, David Soloveichik, Andrew Phillips, Luca Cardelli, and Georg Seelig}}          \makeatletter     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.     %\newref{fig}{refcmd = {Fig.~\ref{#1}}}     %\newref{tab}{refcmd = {Table~\ref{#1}}}     %\newref{sub}{refcmd = {\ref{#1}}}     %\newref{sec}{refcmd = {\ref{#1}}}     %\usepackage{prettyref}     %\newrefformat{fig}{Fig.~\ref{#1}}     %\newrefformat{sub}{Section~\ref{#1}}     %\newrefformat{sec}{Section~\ref{#1}}     %\newrefformat{tab}{Table~\ref{#1}}     %\newrefformat{eq}{(\ref{#1})}          \usepackage{mathpazo}     \usepackage[small,bf]{caption}          % allow minimal text w. figs     \renewcommand{\textfraction}{0.001}     \renewcommand{\topfraction}{0.95}           %\renewcommand{\arraystretch}{1.2}     \usepackage{caption}     \usepackage{graphicx} % Inserting images     %\usepackage{subfig}     \usepackage{wrapfig} % Wrapping text around figure     \usepackage{sidecap}     \usepackage{subcaption}          \makeatother          \begin{document}          \section*{Supporting information}          ~          \noindent Ben Groves$^{1}$, Yuan-Jyue Chen$^{1}$, Sergii Pochekailov$^{1}$,     Chiara Zurla$^{2}$, Philip Santangelo$^{2}$, and Georg Seelig$^{1,3}$          ~          \noindent $^{1}$ Department of Electrical Engineering, University     of Washington          \noindent $^{2}$ Wallace H. Coulter Department of Biomedical Engineering,     Georgia Tech and Emory University          \noindent $^{3}$ Department of Computer Science \& Engineering, University     of Washington\tableofcontents{}          \renewcommand{\thesection}{S\arabic{section}}     \renewcommand{\thefigure}{S\arabic{figure}}      \renewcommand{\thetable}{S\arabic{table}}          \newpage{}          \newpage{}               \section{Effect of covalent modifications on strand exchange kinetics}          test test test\newpage{}               \section{Control of double-stranded strand exchange kinetics by varying toehold     and double-stranded domain length}          \newpage{}               \section{In vitro test of different transfection reagents}          \newpage{}               \section{Sequential transfection versus co-transfection}          \newpage{}               \section{Impact of increasing the length of the double-stranded domain on     reporter activation in cells}                    \newpage{}               \section{Reporter: sensitivity to spurious targets}          \newpage{}               \section{The impact of transfection regime on gate colocalization in cells}          \newpage{}               \section{Colocalization of activated reporter with endosome markers}          \newpage{}               \section{Circuit performance using different concentrations of nucleic acids}          \newpage{}               \section{Stability of double-stranded nucleic acid complexes}          \newpage{}               \section{AND logic gate: sensitivity to spurious targets}          \newpage{}               \section{OR logic gate based on 3-way strand displacement}          \newpage{}               \section{Material and methods}               \subsection{Sequence design}               \subsection{In vitro experiments}               \subsection{In vivo experiments}               \subsection{Melt curves}          \newpage{}               \section{Tables of sequences}     \end{document}


title: New relation symbol

text: I am defining a new relation in one of my new papers. I want to use the following symbol, because it conveys the meaning of my relation. Is there such a symbol in LaTex ? It is very similar to \leq and \preceq. If not, is there a way to add new symbols by hacking the back-end of LaTeX. ![enter image description here](http://i.stack.imgur.com/AEsyI.png)


title: How to insert pipe symbol in (La)TeX?

text: How to insert pipe symbol `|` in TeX (LaTeX)? I have tried this sample with `pdflatex tmp.tex`               \documentclass{extarticle}     \begin{document}     \textpipe     \end{document}      And it give `undefined control sequence` error               This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)     restricted \write18 enabled.     entering extended mode     (./tmp.tex     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh     yphenation, loaded.     (/usr/share/texmf-texlive/tex/latex/extsizes/extarticle.cls     Document Class: extarticle 1996/10/08 v1.0 Non Standard LaTeX document class     (/usr/share/texmf-texlive/tex/latex/base/size10.clo)     (/usr/share/texmf-texlive/tex/latex/base/exscale.sty))     No file tmp.aux.     ! Undefined control sequence.     l.3 \textpipe


title: How to render Terminal Output in LaTeX

text: Is there a package which allows me to render (n)curses based output (VT100, ANSI ...) directly in LaTeX (including colors if possible)? I'm currently making screenshots and include the PNGs via graphicx. I'm just wondering whether it's possible to achieve a higher quality.


title: converting Latex to OpenOffice

text: I need to convert a Latex document to OpenOffice -> Word in order to allow cooperation with non-latex users. I've tried two commands:               oolatex foo.tex       and               mk4ht oolatex foo.tex      In both cases tex4ht failed to produce the odt or swx file, but a number of temp files were produced (foo.4ct, 4od, 4oo, 4tc, foo-manifes.4of, foo- meta.4ot, foo-setting.4os, foo-styles.4oy). From my study of env file of tex4ht it became obvious that those files should have been later converted into the OO file. Has anyone else encoutered that problem and found a solution? Edit: After using Lian Tze's suggestion I changed all the path in tex4ht.env file, but still no go, the error I received now is somehow connected to java which is completely outside my league.               C:\Users\Wojtek\Documents\My Dropbox\INSiK\Raporty\Artykuł problemowy>t4ht docum     ent  -cooxtpipes -coo -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env -cvalidate          ----------------------------     t4ht.c (2009-01-31-07:34 kpathsea)     t4ht document       -cooxtpipes       -coo       -ec:\tex4ht\texmf\tex4ht\base\win32\tex4ht.env       -cvalidate     (C:/Program Files (x86)/MiKTeX 2.8/tex4ht/base/win32/tex4ht.env)     Entering document.lg     System call: move document.4oo document.tmp             1 file(s) moved.     System return: 0     System call: java -classpath  c:\Program Files (x86)\MiKTeX 2.8\tex4ht\bin\tex4h     t.jar xtpipes -i c:\Program Files (x86)\MiKTeX 2.8\tex4ht\xtpipes\ -o document.4     oo document.tmp     Exception in thread "main" java.lang.NoClassDefFoundError: Files     Caused by: java.lang.ClassNotFoundException: Files             at java.net.URLClassLoader$1.run(Unknown Source)             at java.security.AccessController.doPrivileged(Native Method)             at java.net.URLClassLoader.findClass(Unknown Source)             at java.lang.ClassLoader.loadClass(Unknown Source)             at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)             at java.lang.ClassLoader.loadClass(Unknown Source)     Could not find the main class: Files.  Program will exit.     --- Warning --- System return: 1     System call: mkdir sxw-document.dir\Pictures     System return: 0     System call: move  document-settings.4os                  sxw-document.dir\setti     ngs.xml             1 file(s) moved.     System return: 0     System call: move  document-styles.4oy    sxw-document.dir\styles.xml             1 file(s) moved.     System return: 0     System call: mkdir sxw-document.dir\META-INF     System return: 0     System call: move  document-manifest.4of sxw-document.dir\META-INF\manifest.xml             1 file(s) moved.     System return: 0     System call: move  document-meta.4ot    sxw-document.dir\meta.xml             1 file(s) moved.     System return: 0     System call: cd    sxw-document.dir & zip -r -m  document.zip * & cd ..       adding: META-INF/ (164 bytes security) (stored 0%)       adding: META-INF/manifest.xml (164 bytes security) (deflated 66%)       adding: meta.xml (164 bytes security) (deflated 58%)       adding: Pictures/ (164 bytes security) (stored 0%)       adding: settings.xml (164 bytes security) (deflated 46%)       adding: styles.xml (164 bytes security) (deflated 91%)     System return: 0     System call: move sxw-document.dir\document.zip document.odt             1 file(s) moved.     System return: 0     System call: del document.4od     System return: 0     System call: if exist sxw-document.dir rmdir /Q /S sxw-document.dir     System return: 0          C:\Users\Wojtek\Documents\My Dropbox\INSiK\Raporty\Artykuł problemowy>      Here is the log of the last converting operation...


title: Error using Minted for syntax highlighting in custom document class

text: I am writing Master thesis in LaTeX and want to use `minted` package for source code syntax highlighting. I have installed it successfully and minimal example from `minted` documentation works just fine. The problem is when I use document class predefined at Prague Technical University called `FITthesis`. I believe it is a `Fitthesis.cls` file (attached). After command `pdflatex -shell-escape MintedTest` I get an error:               ! Undefined control sequence.     \set@color ...\@pdfcolorstack push{\current@color                                                        }\aftergroup \reset@color      l.8 \begin{document}      This is minimal example:               \documentclass[thesis=M,english]{FITthesis}[2012/10/20]          \usepackage{minted}          \begin{document}     \begin{minted}{c}     int main() {     printf("hello, world");     return 0;     }     \end{minted}     \end{document}      Any ideas what to do? I am LaTeX newbie. I didn't even find the file where this error is.   * Link to log file and `Fitthesis.cls` file: http://cl.ly/OGSm


title: How do I declare an option that takes an input value?

text: I know I can declare and execute an option for my package using               \DeclareOption{myoption}{\typeout{I did it!}}     \ProcessOptions      but now I'd like to give the option a value:               \DeclareOption{type}{\typeout{You typed: \CurrentOptionValue}}      which would be used as follows:               \usepackage[type="hello, world!"]{mypackage}      Requirements on the value string is that it can contain at least some nonalphanumeric characters, like spaces, commas and dots (and maybe some others...).


title: How to get rid of the page number

text: I customized my footer so that the page number will be on the right side of the footer instead of its default location which is the center of the footer. When I generated my file, the page number appeared on both the right side and the center. How do I get rid of the page number in the center? Also, how do I get rid of the header?               \usepackage{fancyhdr}     \pagestyle{fancy}     \lfoot{\textsf{www.economics-ejournal.org}}     \rfoot{\thepage}     \renewcommand{\headrulewidth}{0pt}          \begin{document}     Content here.     \end{document}


title: longtable and floatrow: font commands ignored

text: If I load both `longtable` (`ltxtable`) and `floatrow`, then `\sffamily` is ignored and the table is typeset in roman. If I disable `floatrow` everything works as expected. `floatrow`s `\RawFloats` command does not work here as a solution. I had only error messages when I inserted it. Here is the example code:               \documentclass[]{scrbook}          \usepackage{ltxtable} %     \usepackage{filecontents} %     \usepackage{floatrow}     \usepackage{caption} %          \listfiles          \begin{document}          % Creation of the table in a separate file     \begin{filecontents}{content/longtable.tex}     \begin{longtable}{>{\itshape}l*{2}{X}}     \captionabove{longtable tabular with tabularx columns} \\       \hline       title & title \\ \hline     \endhead       \hline     \endlastfoot     description   & content & \\     \end{longtable}     \end{filecontents}          % Loading of the table from the separate file     {       \small\renewcommand{\arraystretch}{1.4}\sffamily       \LTXtable{\textwidth}{content/longtable.tex}     }     \end{document}      Which results in the following ![enter image description here](http://i.stack.imgur.com/hTpwu.png) Any idea how to get the sans serif font in the table back?


title: Storing the original document class page layout with geometry

text: Is it possible, using the `geometry` package, to store (and restore) the original layout specified by the document class (in my case, the class is `report`)? Here is some context. I have been editing a long document in the default page layout for the report document class. Now I found out that I need a title page. There is a particular title page layout, and in fact, it works perfectly if I just load the `geometry` package with _its default_ and change just two settings. But then I want the rest of the document back in the original page layout! I can't do something like `\restoregeometry`, since I think geometry just overrides the class options... i.e. there doesn't seem to be anything to restore. Similarly, it seems I can't use `\savegeometry` or `\loadgeometry`. So how can I get back to my original layout for the rest of the document without painstakingly hard-coding in all of the specific page layout variables? * * * **Here is a minimum working example:**               \documentclass[a4paper,10pt]{report}          \RequirePackage[a4paper,dvips]{geometry} % g1     \geometry{top=2.5cm,bottom=2.3cm}        % g2          \begin{document}          \input{the_title_page}          \SomeGeometryCommandsHere  % g3          \input{the_rest}          \end{document}      If I run the above code with the lines labeled "g" commented out, then the title page does not have the correct page layout, but the rest of the document is formatted perfectly. If I leave lines g1 and g2 uncommented, then the title page has exactly the correct layout, but no matter what I put for g3 (e.g. `\loadgeometry`, `\restoregeometry`, etc.) I can't recover the original layout that I had when g1 and g2 were commented. Of course, I could completely specify the original layout exhaustively in line g3, and this should in principle work. However, I spent almost one hour on this last night and when I still couldn't get it formated correctly I decided I really needed a smarter solution.


title: Different margins for title page

text: My document class is `article` with `a4paper`. The margins that I want for the body are:               top: 1 inch     bottom: 1 inch     right: 0.5 inch     left: 1.5 inch      The title page should have a 1 inch margin on all four sides, but the body of my paper should have margins as specified above. I tried using the `geometry` package to specify these margins. But it didn't come out as I wanted. How can I achieve this?


title: Dimensions of the pages

text: I have used the simple dimensions `top`, `bottom`, `left` and `right` to scale all pages of my document with the `geometry` package. Suppose I want a few pages with different scaling and a few pages with different scaling in the same article. How do I do that?


title: Change margins for title page

text: I am trying to change the margins for the title page - especially the top margin of the title page. How do I go about decreasing this? So, in my report, on the first page (title), the heading has a "large" top margin, and I would like to reduce this.               \usepackage[left=3cm,top=3cm,right=2cm,nohead,nofoot]{geometry}       When I do the above, the margins seem to change for a number of pages, and I do not want this - I would like default behaviour everywhere, expcept the title page, where I would like a "lesser" top margin. When I just do for example:               \usepackage[top=3cm]{geometry}       it seems to screw up my other margins (left, right) too, which I do not want. Would be grateful for any suggestions as to how this can be accomplished.


title: Setting different margin sizes in different pages

text: > **Possible Duplicate:**   >  Change \textwidth and \textheight in mid-document I am currently using `geometry` package to set margin sizes. I want to set different `\topmargin` sizes for different pages. For example, in the first page, `\topmargin` is 1 inch, and in the second page, it is 1.5 inch. How can I do this?


title: Change \textwidth and \textheight in mid-document

text: I set my `\textwidth` and `\textheight` in the preamble and would like to change both for some pages. How can this be done? E.g., the following example for `\textwidth` appears to work for the page number, but not for the text:               \documentclass{article}      \textwidth=5cm \textheight=5cm     \begin{document}     A \hfill B     \eject \textwidth=10cm     A \hfill B     \end{document}      Output (true to scale): ![](http://i.stack.imgur.com/fB8Gv.png)


title: Additional margin for the table of contents / on a single page

text: > **Possible Duplicate:**   >  Change \textwidth and \textheight in mid-document is there a way to adjust the vertical margins, i.e. left and right, on a single page / a certain region (the table of contents in my case) of a TeX document? The reason why I'm asking is, that I've got a simple TeX-Article with two columns, therefor I set the margins left and right to somewhat around 2cm. However, I did not apply multicols on the table of contents (as I do not want that). Now the toc stretches over the full page width, which I find very ugly. Ideally it would have an individual width of 2/3 of the page, somewhat around 12cm.


title: Change page layout after first page

text: currently I'm trying to prepare a letter head with XeLaTeX. The first page of the letter should have a sidebar on the right. For this sidebar, the text width should be shrinked to approx. 80% of its normal size, so that text won't go into the sidebar. For the following pages, the text width should be normal, i.e. without any additional margins. I realized that changing the page layout in LaTeX mid-document isn't a trivial task and there exist some solutions, for example, the `\newgeometry` command within the `geometry` package. One of my first ideas was to use the `atbegshi` package in conjunction with the `geometry` package in order to achieve the desired layout change after the first page:               \documentclass{article}     \usepackage{atbegshi}     \usepackage{geometry}     \usepackage{lipsum} % just to have dummy texts          % define the main page layout     \geometry{a4paper, includeall, left=10mm, right=10mm, top=10mm, bottom=10mm, head=0mm, foot=0mm, marginpar=0mm, marginparsep=0mm, headsep=0mm}          % restore the main page layout for all following pages     \AtBeginShipoutNext{\restoregeometry}          \begin{document}         % define a new page layout for the first page         \newgeometry{left=10mm, right=50mm, top=10mm, bottom=10mm, head=0mm, foot=0mm, marginpar=0mm, marginparsep=0mm, headsep=0mm}              \lipsum[1-30]         \clearpage                 \lipsum[31-50]          \end{document}      Unfortunately, this won't work. It seems that every `atbegshi` hook (`\AtBeginShipout`, `\AtBeginShipoutFirst`, `\AtBeginShipoutNext`) ignores `\newgeometry` and `\restoregeometry` commands. I tried several other methods, but this one seems the most sophisticated one, since it would give a very clean way for changing the page layout just for the first page (for example, consider the following MWE; not working for some reason):               \documentclass{article}     \usepackage{atbegshi}     \usepackage{geometry}     \usepackage{lipsum} % just to have dummy texts          % define the main page layout     \geometry{a4paper, includeall, left=10mm, right=10mm, top=10mm, bottom=10mm, head=0mm, foot=0mm, marginpar=0mm, marginparsep=0mm, headsep=0mm}          % define the first page layout     \AtBeginShipoutFirst{\newgeometry{left=10mm, right=50mm, top=10mm, bottom=10mm, head=0mm, foot=0mm, marginpar=0mm, marginparsep=0mm, headsep=0mm}}          % restore the main page layout for all following pages     \AtBeginShipoutNext{\restoregeometry}          \begin{document}              \lipsum[1-30]         \clearpage                 \lipsum[31-50]          \end{document}      Does there exist another way of achieving the desired result? Or is it just a bug I encountered with `atbegshi`/`geometry`? Note:   Because I neither know the text to be placed at the first page nor its length, the `\restoregeometry` command can't be placed manually.


title: Setting margins for an individual page

text: With the `geometry` package, we can set margins for the whole document (with options like `left`, `right`, etc.). Now, how do we set margins for an individual page so that it doesn't affect the whole document. The reason for this question is that, when using `book` class, the left and right margins are equal in the left page and the right page respectively and the spline is a bit larger. How do I set `left` and `right` margins to be **equal** in the **titlepage**. Here is the MWE:               \documentclass[12pt]{book}     \usepackage{kantlipsum}     \begin{document}     \begin{titlepage}     \noindent \rule{\textwidth}{4pt}     \rule{\textwidth}{4pt}     \kant[1-3]     \end{titlepage}     \end{document}       ![enter image description here](http://i.stack.imgur.com/PXjjf.png)


title: Change margins on selected pages

text: I have an document using the `article` class using the `fullpage` package. The appendices take up the last 15 pages and contain pdf images using the `graphicx` package. I want to change the margins of these pages so that the pdf images can take up as much space as possible; my top margin is rather large for the main body of the text and is not suitable for the appendices. How can this be achieved?


title: Change geometry for 'empty' page style only

text: > **Possible Duplicate:**   >  Change \textwidth and \textheight in mid-document   >  Change page layout after first page I need to make the margins on the first page of my article larger than those on the rest of the pages. I use `\thispagestyle{empty}` for the first page and `\pagestyle{fancy}` for all the other pages. So, since the first page uses a separate page style, I thought of a way to change this particular page style or maybe _redefine_ it in such a way that it would have different margin sizes. Is there a (simple, if it is possible) way to achieve this?


title: An extra blank page in the document

text: the following code inserts an extra blank front page in my document though I have not even mentioned any title or whatsoever. Please guide me where am I going wrong. Thanks In advance.               \documentclass[oneside]{book}     \usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}     \begin{document}     \begin{center}     \chapter*{TITLE}     \section*{\texttt{NAME and ID}}     \section*{ \emph{Supervisor}}     \textbf{\textsf{DISSERTATION INITIAL DRAFT}}     \end{center}     \section*{Description}     \section*{Summary}     \begin{thebibliography}{x}     \bibitem{easley} David Easley, Jon Kleinberg. \emph{Networks, Crowds and Markets: Reasoning about a Highly Connected World}, Cambridge University Press, 2010     \bibitem{macy} Damon Centola, Michael Macy. \emph{Complex Contagion and the Weakness of Long Ties}, American Journal of Sociology, 2007     \end{thebibliography}     \end{document}       I am using TexMaker if that helps :)


title: Problem with solution to ntheorem and bad boxes; involves \newtheoremstyle

text: I'm using the `ntheorem` package to display endmarks on my examples/defns, etc. The problem is that it creates lots of bad boxes when the titles on theorems etc. are too long. I found a solution overfull-hbox-produced-by- ntheorem-subtitles, which is to define the following in the preamble bit:               \makeatletter     \newtheoremstyle{Myplain}%     {\item[\hskip\labelsep \theorem@headerfont ##1\ ##2\theorem@separator]}%     {\item[\hskip\labelsep \theorem@headerfont ##1\ ##2]\theorem@headerfont (##3)\theorem@separator\newline\normalfont\itshape}     \newtheoremstyle{nonumberMyplain}%     {\item[\theorem@headerfont\hskip\labelsep ##1\theorem@separator]}%     {\item[\theorem@headerfont\hskip \labelsep ##1]\theorem@headerfont (##3)\theorem@separator\newline\normalfont}     \makeatother          \theoremstyle{Myplain}     \theoremsymbol{$\bigcirc$}     \newtheorem{example}{Example}      And I use it with:               \begin{defn}[Definition of function]This is a definition of $f(x) = p_i(x^2)$.     \end{defn}      in my document to get this: ![](http://i.stack.imgur.com/I3Rwo.png) I don't want the math stuff to be in bold and italics. If I remove the label/title of the definition (Definition of function), the problem's solved. How do I change it so it looks normal even with a label? I know I have to mess around with the stuff after the `\makeatletter` but I don't understand it. Someone help please :(


title: Know the cell width with tabular* or include a paragraph box without specifying its width

text: I wrote the following table using tabular* inside a \newenvironment. Worked fine but I prefer to have text wrapping on one column. The table uses "phantom" cells to achive what I want that is having one column which takes all available width that all other three (visible) columns leaves, i.e. three columns takes its minimum width depending on the text written into them, and the other column takes the remaining width. The total width is \linewidth, so that's why I did use tabular* instead of tabular. The MWE:               \documentclass{article}     \begin{document}     \begin{tabular*}{\linewidth {|c|l@{\extracolsep{\fill}}cc@{\extracolsep{0pt}}|r|r|}     minwidth& remaining width &&& minw & minw\\     x & x &&& x & x     \end{tabular*}     \end{document}      Now, what I want is text wrapping on the second visible column (the "big" one). Neither a parbox nor a p-like column can be used because of the dynamically-adjusted columns. I don't know how to read the column width of the second column to include a parbox with this width to allow text wrapping into lines. It is possible to read a length in which tabular* stores the width of the current cell? or there is a way to include some paragraph box without specifying its length? I can't use tabu because of [1]. Also may work tabularx but it requires some redefinition of the enddef when including it inside a new environment. Tabularx exhibited another issue which I don't remember now, but if what I need is not possible with tabular*, I'll try again with tabularx. I did read [2]. Using '<' and '>' in column definition with lrbox doesn't solve my problem because the size of the box is restricted to the size of its contents, not the size of the resulting column. Also I did try with zref-savepos to save the x-position of two columns to later take its difference and substracting \tabcolsep and \arrayrulewidth:               \documentclass{article}     \usepackage{zref-savepos}     \newlength{\auxleng}     \newsavebox{\auxbox}     \newenvironment{auxenviron}     {\begin{lrbox}{\auxbox}}{\end{lrbox}\usebox{\auxbox}\global\setlength{\auxleng}{\wd\auxbox}}     \begin{document}     \begin{tabular*}{\linewidth}{|c|l@{\extracolsep{\fill}}cc@{\extracolsep{0pt}}|r|r|}     minw & \zsaveposx{XX}remaining width &&& \zsaveposx{XXX} minw & minw\\     x & \setlength{\auxleng}{\zposx{XXX} sp}\addtolength{\auxleng}{-\zposx{XX} sp}\parbox{\auxleng}{asdf}&&& x & x     \end{tabular*}     \end{document}      ...but every time the document is compiled, the second reference moves to the right because tabular* recalculates the position of the 2th column. [1] Can't include a 'tabu' inside \newenvironment with cells in the postamble [2] \parbox "textwidth" for the combined width of a subset of table cells


title: How to insert mathematical formula /equation in Zotero's note?

text: I've been exploring several reference manager by now and ends up using Zotero, because it's simplicity. previously i had mostly been using Citavi, Citavi had this feature of storing mathematical formula written in latex which i had not found in Zotero. My question is how to get Zotero to store a mathematical formula?, is there some add ons, or a workaround on this. I would like to write the mathematical equation in latex and saving it still in latex and not converting it to pdf/image, is there some add on that also serves as latex equation editor and viewer in Zotero?


title: autounindent cannot work together with hyperref and hypcap

text: This question is related to my previous question answered by Jubobs here. I compiled the given code below with both TeX Live 2013 and TeX Live 2014 pretest. Both produce the same result. ## Case 1 The expected result with `autounindent` is as follows. ![enter image description here](http://i.stack.imgur.com/n0SHt.png) ## Case 2 When I load `hyperref`, the `autounindent` no longer works as follows. ![enter image description here](http://i.stack.imgur.com/WNgXl.png) ## Case 3 The worst case happens when I load both `hyperref` and `hypcap`, I got some errors as follows. ![enter image description here](http://i.stack.imgur.com/sEM0u.png) ## MWE               \documentclass[12pt]{article}          %TODO     % - handle tabs          \usepackage{accsupp}     \newcommand*{\noaccsupp}[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}          \usepackage{xcolor}     \usepackage{listings}          \makeatletter          % -------- ugly details --------          % custom key     \lst@Key{autounindent}f[t]{\lstKV@SetIf{#1}\lst@ifautounindent}          % --- accumulation of tokens ---     \toks@={         \lst@DefSaveDef{`\ }\lsts@myspace{\processmyspace}         %\lst@DefSaveDef{`\^^I}\lsts@mytab{\processmytab}     }               % --- egreg's helper function for accumulating tokens ---     \def\add@savedef#1#2{%       \begingroup\lccode`?=#1\relax       \lowercase{\endgroup       \edef\@temp{%         \noexpand\lst@DefSaveDef{\number#1}%         \expandafter\noexpand\csname lsts@?\endcsname{\noexpand#2% % I had to swap things around to fix a bug here;           \expandafter\noexpand\csname lsts@?\endcsname}%          % otherwise, comment highlighting would be broken.       }}%       \toks@=\expandafter{\the\expandafter\toks@\@temp}%     }          \count@=33     \loop         \add@savedef\count@\processchar       \ifnum\count@<127       \advance\count@\@ne     \repeat          % --- to keep track of the state ---     \newcount\spacesToGobble     \newcount\spacesGobbledSoFar     \newif\ifafterindent     \newif\ifonBasisLine     \newif\ifPostponeCountToNextLine               \lst@AddToHook{Init}     {%       \lst@ifautounindent%         % patch hook macros         \let\@ddedToInitVarsBOLhook\@@ddedToInitVarsBOLhook%         \let\@ddedToEOLhook\@@ddedToEOLhook%         % initialise things         \global\onBasisLinetrue%         \global\afterindentfalse%         \global\spacesToGobble=0%         \lst@ifincluderangemarker%           \ifnum9999999=\lst@firstline% (i.e. if firstline option not used)             \global\PostponeCountToNextLinetrue%           \fi         \fi       \fi     }               \lst@AddToHook{SelectCharTable}     {%         \lst@ifautounindent%             \lst@lAddTo\lst@DeveloperSCT{\the\toks@}%         \fi     }               \lst@AddToHook{InitVarsBOL}{\@ddedToInitVarsBOLhook}     \newcommand\@ddedToInitVarsBOLhook{}     \newcommand\@@ddedToInitVarsBOLhook     {%       \global\afterindentfalse%     }          \lst@AddToHook{EOL}{\@ddedToEOLhook}     \newcommand\@ddedToEOLhook{}     \newcommand\@@ddedToEOLhook     {%       \ifonBasisLine%         \ifPostponeCountToNextLine%         \else           \global\onBasisLinefalse%         \fi       \fi       \global\spacesGobbledSoFar=0%       \global\PostponeCountToNextLinefalse%     }          \lst@AddToHook{DeInit}     {%       \lst@ifautounindent%         % undo patches         \def\@ddedToInitVarsBOLhook{}%         \def\@ddedToEOLhook{}%       \fi     }               % --- helper macros ---     \newcommand\processchar     {%       \global\afterindenttrue%     }          \newcommand\processmyspace     {%       \ifafterindent%         \lsts@myspace%       \else         \ifonBasisLine%           \global\advance\spacesToGobble\@ne\relax%         \else           \ifnum\spacesGobbledSoFar<\spacesToGobble\relax%             \global\advance\spacesGobbledSoFar\@ne\relax%           \else             \lsts@myspace%           \fi         \fi       \fi     }          \makeatother          % ---------- end of ugly details ----------          \usepackage{filecontents}     \begin{filecontents*}{Program.cs}     using System;     using System.Collections.Generic;     using System.Linq;     using System.Text;     using System.Threading.Tasks;          namespace Delegate     {         class Program          {             // start             sdfgsd fgdsfg  static void Main(string[] args)             {                 for (int x = 0; x < 10; x++)                     Console.WriteLine(x);             }             /* sdflkjhsdf */             // stop         }     }     \end{filecontents*}          % --- general style definition ---     \lstdefinestyle{Common}     {            language={[Sharp]C},         numbers=left,         numbersep=1em,         numberstyle=\tiny\noaccsupp,         frame=single,         framesep=\fboxsep,         framerule=\fboxrule,         rulecolor=\color{red},         xleftmargin=\dimexpr\fboxsep+\fboxrule,         xrightmargin=\dimexpr\fboxsep+\fboxrule,         breaklines=true,         breakindent=0pt,         tabsize=2,         columns=flexible,         %includerangemarker=false,         rangeprefix=//\ ,     }          \lstdefinestyle{A}     {         style=Common,         backgroundcolor=\color{yellow!10},         basicstyle=\scriptsize\ttfamily,         keywordstyle=\color{blue}\bf,         identifierstyle=\color{black},         stringstyle=\color{red},         commentstyle=\color{green},     }          %\usepackage[colorlinks,bookmarksnumbered,bookmarksopen]{hyperref} % makes  autounindent no longer work     %\usepackage[all]{hypcap}% causes errors.          \begin{document}               \section*{Using \texttt{linerange} with \texttt{autounindent}}     \lstinputlisting[style=A,linerange=start-stop,autounindent]{Program.cs}               \end{document}      ## Questions How to fix these issues?


title: TikZ Replication

text: I'm trying to play around with TikZ to recreate the following graph. I'm having trouble recreating the curved lines marked `$\hat{sigma}=0$` and `$\hat{e}=0$`. I understand that I can use `to[in=,out=]`, but nothing comes out looking remotely correct. Is there another way to draw curves in TikZ whose closed form equation I don't know? The rest of the graph isn't a problem for me. ![Cycle](http://i.stack.imgur.com/vjdta.jpg) Here is my code for the one curve: What a mess!               \begin{figure}[H]     \centering     \begin{tikzpicture}[domain=0:10]     \draw[->] (0,0) -- (0,8) node[left]{$\pi$};     \draw[->] (0,0) -- (9,0) node[right]{$e$};     \draw (0,3) to[in=5,out=45] (5,4) to[in=45,out=80] (8,8);     \end{tikzpicture}     \caption{Skott model in $e-\sigma$}     \end{figure}


title: Table too wide to go out of the page.

text: I have a table, which seems to be too wide for my page and it pops out of the page border. In lyx, it is like![table too wide to get out of the page](http://i.stack.imgur.com/ZAtfk.jpg) And in PDF, it looks like, it is going out of the page border. ![enter image description here](http://i.stack.imgur.com/OwgIB.jpg) How can I address such issue ?


title: Installed Luximono is not working

text: I am using MacTex-2011 on a mac 10.7. Recently, I have installed luximono using getnonfreefonts. Everything went ok, but when I was compiling the document (pdfLaTeX) with the packages:               \usepackage[T1]{fontenc} \usepackage{luximono}      luximono was not recognized, i.e. LaTeX used the standard font. Any ideas how to get it working?


title: tikz: a big box with fixed width containing smaller boxes

text: I want to render with tikz something like : ![boxes](http://i.stack.imgur.com/DnsTQ.png) The surrounding big box should behave somehow like a minipage : the width is fixed, and the height should grow if we add sufficiently small boxes inside. For the moment, i use the following (simplified) MWE to produces that :               \begin{tikzpicture}     \tikzstyle{bigbox} = [minimum height=2cm,draw,rounded corners, rectangle]     \tikzstyle{box} = [minimum height=0.8cm,draw,rounded corners, draw,rectangle]     \node[bigbox](outbox)%     {         \begin{minipage}{3cm}             \tikz{\node[box]{12};}             \tikz{\node[box]{12};}             \tikz{\node[box]{12};}             \tikz{\node[box]{12};}         \end{minipage}     };     \end{tikzpicture}      As you can notice, i nest `\tikz`'s inside the `tikzpicture`, which is bad, as i just learnt in this post from Andrew Stacey. He advises to use the "fit" option from `\usetikzlibrary{fit}`, but i don't see how to do it, in this case.


title: Create a verbatim mdframed environment

text: I'd like to use and `mdframed` environment with `verbatim` in it. I've read the both documentations, googled but I've found nothing regarding this matter. MWE below:               \documentclass[10pt]{article}          \usepackage[a4paper,pdftex]{geometry}     \usepackage[headings]{fullpage}          \usepackage[utf8]{inputenc}     \usepackage[magyar]{babel}     \usepackage[T1]{fontenc}          \usepackage{color}     \definecolor{shadecolor}{gray}{0.90}          \usepackage{tikz}     \usetikzlibrary{positioning,fit}          \usepackage{verbatim}          \usepackage[framemethof=tikz,%     innerleftmargin=\parindent,%     linewidth=0pt,%     backgroundcolor=shadecolor,%     skipabove=0.6\baselineskip,%     skipbelow=0.6\baselineskip]{mdframed}               % How to create a new environment that uses mdframed and verbatim?     \newenvironment{magic}     {\begin{mdframed}}     {\end{mdframed}}          \begin{document}          \begin{mdframed} % How to make these     \begin{verbatim} % two into one?     From: torva...@klaava.Helsinki.FI (Linus Benedict Torvalds)     Newsgroups: comp.os.minix     Subject: What would you like to see most in minix?     Summary: small poll for my new operating system     Keywords: 386, preferences     Message-ID: <1991Aug25.205708.9541@klaava.Helsinki.FI>     Date: 25 Aug 91 20:57:08 GMT     Organization: University of Helsinki     Lines: 20               Hello everybody out there using minix -          I'm doing a (free) operating system (just a hobby, won't be big and     professional like gnu) for 386(486) AT clones.  This has been brewing     since april, and is starting to get ready.  I'd like any feedback on     things people like/dislike in minix, as my OS resembles it somewhat     (same physical layout of the file-system (due to practical reasons)     among other things).           I've currently ported bash(1.08) and gcc(1.40), and things seem to work.     This implies that I'll get something practical within a few months, and     I'd like to know what features most people would want.  Any suggestions     are welcome, but I won't promise I'll implement them :-)                  Linus (torva...@kruuna.helsinki.fi)          PS.  Yes - it's free of any minix code, and it has a multi-threaded fs.     It is NOT protable (uses 386 task switching etc), and it probably never     will support anything other than AT-harddisks, as that's all I have :-(.     \end{verbatim} % How to make these     \end{mdframed} % two into one?          \end{document}      _P.S._ I don't want to use the `listings` package, because I can set margins and stuff with `mdframed` perfectly, and I don't need code highlighting.


title: Theorem-like environments in Latexit?

text: I want to use Theorem-like environments in Latexit. How can I do this?


title: Drawing with a macro

text: I have just began using MetaPost and I would liked to be able to put a grid on my images, so I could easily read coordinates from it. I would liked to write a macro, that I could import while creating new figures and draw a grid with a single command. My grid macro is the following:               def drawgrid(expr width, height, nx, ny) =      begingroup     ny * u = width;     nx * v = height;     lu = 2 * u;     lv = 2 * v;     my = floor(width / lu);     mx = floor(height / lv);          for y = 0 upto nx:         draw (0,y*v)--(width,y*v);     endfor     for y = 0 upto mx:         draw (0,y*lv)--(width,y*lv) withpen pencircle scaled 2;         label(decimal(y*lv/v), (-0.5u, y*lv));     endfor          for x = 0 upto my:         draw (x*lu,0)--(x*lu,height) withpen pencircle scaled 2;         label(decimal(x*lu/u), (x*lu, -0.5v));     endfor     for x = 0 upto ny:         draw (x*u,0)--(x*u,height);     endfor     endgroup     enddef;     end      It works fine, when called from the same file (grid.mp), but fails to draw anything if I call it from my another figure. My other figures code is:               input grid          beginfig(1); textwidth := 345.0;     width := 0.5textwidth;     radius := 0.25width;          fill fullcircle scaled radius withcolor blob;     draw fullcircle scaled radius withcolor blobBorder;     clip currentpicture to (-0.5,-0.5)--(-0.5,0.5radius+0.5)--(0.5radius+0.5,0.5radius+0.5)--(0.5radius+0.5,-0.5)--cycle;     draw (-0.5, 0.5radius)--(-0.5, -0.5)--(0.5radius, -0.5) withcolor blobBorder;     draw (0, 0)--(0.25radius, 0.45radius);     drawgrid(width,width,2,2);     endfig     end      It does not draw anything (even do not produce an .1 file). What am I doing wrong?


title: Tables below footnotes, is this a good output routine algorithm or a bug?

text: Consider the minimal code below, which produces two different layouts depending on the table position marks. ![enter image description here](http://i.stack.imgur.com/2oRjK.png)![enter image description here](http://i.stack.imgur.com/73bvI.png) The first layout uses               \begin{table}      which results in the table ending below the footnotes and the second,               \begin{table}[htbp]      results in the table ending above the footnotes. Is this normal behaviour in LaTeX? I think a better algorithm would have been to try and position images or tables above the footnotes; is it some form of a bug? Here is the MWE.               \documentclass{book}     \usepackage[paperwidth=4.75in,paperheight=7.25in,                 textwidth=4.5in,textheight=6.5in,                 headsep=0.1in, footskip=0.15in,                 marginratio=1:1]{geometry}     \usepackage[latin,english]{babel}     \usepackage[demo]{graphicx}     \usepackage{booktabs,lipsum}     \begin{document}          \selectlanguage{latin}     \chapter{Errora}          Una imagine tabula, figura et \ae nigma.\footnote{translatio via google}.       \begin{figure}[htbp]     \centering     \includegraphics[width=0.3\textwidth]{./graphics/amato}     \caption{Uno pictorum}      \end{figure}     \begin{table}%[htbp] %uncomment to see difference     \centering     \begin{tabular}{cccc}       \toprule       Error &Errors &error &errors\\       \bottomrule     \end{tabular}           \caption{Test}     \end{table}     %\lipsum[1-3]     \end{document}      **Edit:** I had a look at the documentation of the `footmisc` recommended by Thorsten Donig as a workaround where Robin Fairbairns describes this behaviour as an "infelicity". There is a further infelicity, if you let both floats to float freely, the table floats to the next page and the image goes in the footer area, while there is ample space to have stayed exactly in its position in the text.


title: Floating figures with 'b' ends up below the footnote

text: > **Possible Duplicate:**   >  Tables below footnotes, is this a good output routine algorithm or a bug? Whenever a page contains a figure which is set to be placed at the bottom of the page, and the page also contains a footnote, the figure ends up below the footnote. I don't like this appearance; it looks odd and gives a feel that the figure belongs to the footnote instead of the main text. How do I fix so that the footnote stays at the bottom of the page, and the figure is placed on top of it, even when its positioning marker is set to `b`? Here is a minimal example:               \documentclass[a4paper, 11pt]{article}          \usepackage{tikz}     \usepackage{lipsum}          \begin{document}     \begin{figure}[b]       \begin{tikzpicture}         \node [%           draw,           rectangle,           fill=black,           minimum size=5mm,         ] {};       \end{tikzpicture}     \end{figure}          \lipsum[5] more\footnote{Bla bla bla bla bla}     \end{document}      ![enter image description here](http://i.stack.imgur.com/Lpmsk.png) (Yes, my drawing skills are awesome.) =)