title: Question marks instead of text when writing Persian with XePersian

text: I am trying to write in Persian in TexShop(Mac) and keep getting question marks instead of my text. Here is my code:               \documentclass{article}     \usepackage{xepersian}     \usepackage{bidi}     \settextfont{HM_XBNiloofar}     \title{چکیده}     \begin{document}     \maketitle     ساقیا     \end{document}      I am compiling it using XeLaTeX btw. I remember being able to write in persian with my TexShop but now I cannot and I cannot find my old document to check it up.


title: Should the appendix be before the bibliography or after?

text: My thesis latex format does not include an appendix, but I need one. Should I put it after the bibliography or before?


title: How to typeset the 'i' used for imbedding?

text: In some books, they use a special 'i' for denoting imbedding of one Sobolev space into a another. This 'i' is not quite like \imath.   It's like a calligraphic 'i'. I try to find it with detexify, but it doesn't come out.   It looks like this   ![imbedding i](http://i.stack.imgur.com/nNbeL.jpg)


title: Still Biblatex will not print bibliography

text: I have read all the related questions and taken all the suggested steps (well, the ones that had anything to do with my situation since for example I am not using Xelatex). As far as i can see, this file ought to produce a pdf with one citation in it and a bibliography with that entry.               \documentclass{amsart}          \usepackage[]{biblatex}     \addbibresource{refs.bib}          \begin{document}     \cite{FefCF}          \printbibliography         \end{document}      Instead it produces a pdf with the name FefCF printed in boldface and no bibliography. I am using TeXworks and have run both BibTeX and pdfLaTex+MakeIndex+BibTeX repeatedly in many combination. To be clear, the reference FefCF is indeed in the file refs.bib (and has been used many time with BibTeX) and it is in the same folder as this file, namely C:/Users/Colin/Documents/TeX Files. I have also tried the full location name C:/Users/Colin/Documents/TeX Files/refs.bib to specify the bib resource. That makes no difference.


title: XeLaTeX RAM usage problem (bug?)

text: There is something wrong with Xe(La)TeX's memory-management with _some_ fonts: Compiling the following MWE with up-to-date xelatex on Mac OS X 10.7.5 uses up to 2.2 GB of the total 4 GB RAM available on my iMac and renders my older laptop with only 2 GB unusable. Most other fonts (e.g. Linux Libertine) work as expected (ca 220 MB usage), but unfortunately not the proprietary one that I need. I have not been able to identify any pattern (ttf or ps-based, OT or not) of which ones work and which don't. The problem neither affects lualatex and probably not other TeXLive- installations (only tested on Linux). (This unanswered question might be caused by the same bug.)               \documentclass[12pt]{article}          \usepackage{fontspec}     \setromanfont{Hoefler Text}     %%: works fine with e.g.     %\setromanfont{Linux Libertine}               \usepackage{ifthen}     \newcounter{ctra}     \setcounter{ctra}{1}                    \usepackage{blindtext}               \begin{document}               \whiledo {\value{ctra} < 500}%     {%     {     \Blindtext     }%     \stepcounter {ctra}%     }               \end{document}


title: Position of colorbar with multi plots without using groupplot

text: I have 6 plots (2 rows, 3 columns) with the same `colormap` and I want to put only one `colorbar` on the top of the plots. Using `anchor` and `at` does not give the expected result, I think this is because they refer to the axis and not to the colorbar (first image). Also if I put the `anchor` and `at` specifications inside `colorbar style` it does not work (second image). There is also a problem with the width of the `colorbar`, I set it to 3 times the axis width but it is a little shorter than expected.               \documentclass{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}               \begin{document}     \pgfplotsset{every axis/.append style={font=\tiny}}     \pgfplotsset{mystyle/.style={         scale only axis,         height=.29\linewidth, width=.29\linewidth,         colormap/cool,         point meta min=-10,         point meta max=10,         view={0}{90}}}     \begin{tikzpicture}     \begin{axis}    [mystyle,                 name=frame66a,                 xticklabels={,,}]         \addplot3[surf,shader=flat] {x+y};     \end{axis}     \begin{axis}    [mystyle,                 name=frame66b,                 at={(frame66a.south west)},                 anchor=north west]         \addplot3[surf,shader=flat] {x+y};     \end{axis}     \begin{axis}    [mystyle,                 name=frame100a,                 at={(frame66a.south east)},                 anchor=south west,                 yticklabels={,,}, xticklabels={,,}]         \addplot3[surf,shader=flat] {x+y};     \end{axis}     \begin{axis}    [mystyle,                 name=frame100b,                 at={(frame100a.south west)},                 anchor=north west,                 yticklabels={,,}]         \addplot3[surf,shader=flat] {x+y};     \end{axis}     \begin{axis}    [mystyle,                 name=frame120a,                 at={(frame100a.south east)},                 anchor=south west,                 yticklabels={,,}, xticklabels={,,}]         \addplot3[surf,shader=flat] {x+y};     \end{axis}     \begin{axis}    [mystyle,                 name=frame120b,                 at={(frame120a.south west)},                 anchor=north west,                 yticklabels={,,}]         \addplot3[surf,shader=flat] {x+y};     \end{axis}     \begin{axis}    [hide axis,                     scale only axis,                 height=0pt, width=0pt,                 colormap/cool,                 colorbar horizontal,                 colorbar style={width=.87\linewidth},                 point meta min=0,                 point meta max=350,                 at={(frame120a.north east)},                 anchor=south east]         \addplot [draw=none] coordinates {(0,0)};     \end{axis}     \end{tikzpicture}     \end{document}       ![enter image description here](http://i.stack.imgur.com/6ukrI.png) ![enter image description here](http://i.stack.imgur.com/tPigX.png)


title: Captioning an mdframed box without making unbreakable

text: I would like to a have a caption below my `mdframed` box (outside the border if possible) which sometimes span across multiple pages. I managed to create a caption several ways but the pagebreaks are unfriendly. How can I do that without making the box unbreakable at pagebreaks? The `listings` package is not an alternative, because I already use it inside somewhere in the mdframed box, and nesting them doesn't seem like a good idea. Associated thread: use this inside `\lstnewenvironment`


title: Replacing calligra Font with Vector Ones

text: The question is similar to Lowercase \mathcal, but I'm not after calligraphic math fonts. I'm in need of some calligraphic font in text mode (which, of course, supports lowercase). Basically, I used `calligra` package, and something like `\calligra{Some text goes here}`. The result is good, but it uses bitmap fonts instead of vector fonts (I think they call it T3 fonts in the LaTeX world, but I'm not sure). **PS:** The FAQ for STIX fonts states: > Several of the STIX organizations use TeX-based systems to produce their > publications, so this is a necessary component of the STIX project. However, > until the packaging of the fonts is reasonably stable, developing LaTeX > support is difficult. A knowledgeable TeX specialist has agreed to develop > the LaTeX support; completion of this phase of the project is expected by > late Spring of 2008. If you suggest STIX fonts (like Andrew Stacey suggested in the aforementioned topic), please tell me how to use it in LaTeX.


title: \chapter* chapter name customisation in fncychap glenn

text: I'm currently writing a book and I've decided to use the fncychap glenn style for my chapter headings. It's working great, but I was wondering if there's a way I could change the chapter name (eg. Chapter 1) in the top left hand corner to "Prologue". ![Example chapter title](http://i.stack.imgur.com/CH4iO.png)               \documentclass[openany]{book}     \usepackage[Glenn]{fncychap}          \begin{document}          \chapter*{Prologue}     \chapter{Redundant Chapter}          \end{document}      So, in the case of what's above, where it says CHAPTER 1, I would like to say 'PROLOGUE', leaving the bottom open for whatever else I want (unconventional, I know. But it's in case I have other stuff I want to put in there later). I have an idea that I'd need to overwrite the \chNameVar but I'm not entirely sure of how to do it. Any help would be greatly appreciated!


title: Problem with wrapfigure and line breaks in the text

text: How can I fix this problem? The text of the second paragraph overwrites the figure and doesn't contain line breaks.               \documentclass[parskip=half]{scrbook}     \usepackage[english]{babel}     \usepackage{graphicx,lipsum,wrapfig}          \begin{document}     \begingroup     \setlength{\columnsep}{30pt}%     \begin{wrapfigure}{r}{0.5\textwidth}       \centering\includegraphics[width=\linewidth]{example-image-a}       \caption{A very very very very very very very very long long long caption}     \end{wrapfigure}     foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo           foo foo foo foo foo foo foofoo foo foo foo foo foo foofoo foo foo foo foo foo foo     \endgroup     \end{document}


title: newenviroment error: Extra }, or forgotten \endgroup \begin{gbox}

text: \noindent         \colorbox{gray!25}{         \begin{minipage}{\textwidth}         \vskip0.5cm         \leftskip0.5cm         \rightskip0.5cm              Text Here!          \\\end{minipage}}      Code above works fine, but I don't want to repeat it every time that I want a box. However, code below doesn't work. I supose is because the **colorbox** starts in the "begin" of **newenviroment** and ends in the "end". So, how can I solve this?               \newenvironment{gbox}     {     \noindent     \colorbox{gray!25}{     \begin{minipage}{\textwidth}     \vskip0.5cm     \leftskip0.5cm     \rightskip0.5cm     }     {     \\\end{minipage}}     }


title: Context: How can I have table of contents with only following sections

text: I want to have a document with some chapters of frontmatter followed by a table of contents showing all subsequent chapters and endmatter but not the frontmatter Best I have found is `\completecontent[criterium=all]` but that includes frontmatter How would I best do this in Context and where is the best place to find such things out in the future? Thanks


title: MakeIndex fails to sort index keys properly

text: My index does not become ordered correctly: ![An incorrectly sorted index](http://i.stack.imgur.com/h3usy.png) As you can see, the keyword "fluid" ends up in the beginning of the index instead of right before "fluid flux", where it should be. What can possibly cause this behavior?


title: TikZ multiple coordinate frame implementation not working

text: I'm attempting to use TikZ to draw three different coordinate frames. I have successfully done it already. However, in an attempt to make my code more readable, I tried breaking it down into a more spread out and sequential manner. The second implementation (shown below) produces a totally different result than the first Below are both blocks of code, the first which works and second that does not. My question is why are these very similar implementations producing different results? First implemenation               \documentclass[10pt, fleqn]{article}          \usepackage{tikz}     \usetikzlibrary{automata, arrows, positioning, fit, petri}          \begin{document}          \begin{tikzpicture}[ultra thick, scale = 2]              \foreach \tilt / \ylength / \xlength / \ylabel / \xlabel in { 0/3/4/{y}/{x}, -45/4/1.5/{q'}/{d'}, -60/4/1.5/{q}/{d} }          \draw [<->, rotate=\tilt] (0, \ylength) node (yaxis) [above] {\ylabel} |- (\xlength, 0) node (xaxis) [right] {\xlabel};          \end{tikzpicture}               \end{document}      Second Implementation               \documentclass[10pt, fleqn]{article}          \usepackage{tikz}     \usetikzlibrary{automata, arrows, positioning, fit, petri}          \begin{document}          \begin{tikzpicture}[ultra thick, scale = 2]              %% Define y-axis nodes for rotational reference frames         \foreach \nodename / \axislength / \axislabel in { {yaxis}/3/{y}, {yaxis}/4/{q}, {yaxis}/4/{q'} }         \node (\nodename) at (0, \axislength) [above] {\axislabel};              %% Define x-axis nodes for rotational reference frames         \foreach \nodename / \axislength / \axislabel in { {xaxis}/4/{x}, {xaxis}/1.5/{d}, {xaxis}/1.5/{d'} }         \node (\nodename) at (\axislength, 0) [right] {\axislabel};              %% Connect nodes to form rotational reference frames         \foreach \tilt / \nodenamey / \nodenamex in { 0/{yaxis}/{xaxis}, -45/{yaxis}/{xaxis}, -60/{yaxis}/{xaxis} }         \draw [<->, rotate=\tilt] (\nodenamey) |- (\nodenamex);          \end{tikzpicture}               \end{document}      Thanks for all help in advance!


title: How does \include work in terms of preamble? And is \input better?

text: When you have different files; say different chapters of a book, that are written in separate Tex files, all having their own preamble packages and document class options, how does it work when you `\include` them in one file with its own preamble options. Do they use the root file preamble alone for things like `\title` or `a4paper,openleft` options? Do different options and packages add up from different files? I also understand that `\input` uses the preamble of the root file alone, is this true? and if so, would that make it better than `\include`; as in easier to manage?


title: Moving an object to the right margin

text: I need a macro that aligns an object against the right margin, on the current line if this leaves a space between the text and the object, and on the next line otherwise. No other material should appear on the same line as the object in the latter case. ![Right alignment illustration](http://i.stack.imgur.com/NcYr6.png) My first attempt (`\tmarksi`) seems to work, but it causes underfull hbox warnings if it occurs at the end of a paragraph (I don't understand why). The second attempt (`\tmarksii`) seems to insert an unwanted paragraph break. Therefore I tried locally setting `\parskip` to zero in the third attempt, but this doesn't work either. Surely this should not be difficult; what am I missing?               \documentclass{article}     \setlength\parindent{0pt}     \setlength\parskip{2cm} %For illustration purposes     %     \newcommand\tmarksi[1]{\hspace*{\fill}~\mbox{[#1]}\newline}     \newcommand\tmarksii[1]{\hspace*{\fill}~\mbox{[#1]}\vskip0pt}     \newcommand\tmarksiii[1]{\hspace*{\fill}~\mbox{[#1]}\bgroup\parskip=0pt\parindent=0pt\par\egroup}     %     \begin{document}     The quick brown fox jumps over the lazy dog. \tmarksi{1}     The quick brown fox jumps over the lazy dog.     The quick brown fox jumps over \tmarksi{1}     the lazy dog.     \end{document}


title: Distance between multiple lines in header of beamer template

text: this is my first question ;). I have defined a custom header in my beamer template and I want to show multiple lines. Since \\\ isn't available in beamercolorbox I had to use \newline instead. The problem is that I cannot define a distance between the lines! I cannot use \vspace or another \newline. Any idea?


title: Change separator between caption label and number

text: I've tried to accomplish this for some time with the caption package, but with no result. What I want to do is change the following: Figure 1: _text_ into Figure-1: _text_ I.e. replace the space with a dash.


title: Large datasets on CTAN

text: I've acquired a recent interest in GIS and do not know of much support in drawing maps/boundaries/locations within LaTeX. `pst-geo` provides some mapping features, specifically at the PostScript level. I'm interested in creating something more open/available in the form of boundary files that have easily accessible latitude/longitude coordinates for the boundaries/shapes, similar to what KML files provide. However, I can see how this could easily blow out of proportion when considering the entire globe (jurisdictions within jurisdictions within jurisdictions, ...) As time goes by, more and higher detail data would probably become available, increasing the size of the data sets. I'm looking for answers to the following:   * What is the best way to tackle this, specifically in terms of its location on CTAN?   * I think it would be unreasonable to require an installation of the entire data set on a user's computer. How would one require users to install large datasets in a piece-meal fashion?   * Would all of it be hosted on CTAN, or do I need to host the large "external" data sets on a server of my own? Here are my thoughts on this:   * Create some base-level package, say `gis-maps`;   * Allow users to load _modules_ , perhaps specific to a country using              \usepackage[italy,south-africa,canada]{gis-maps}      or              \usepackage{gis-maps}     \gissetup{maps={italy,south-africa,canada},...}      that would load a load a list of helper-macros specific to those jurisdictions. For example, based on country codes, the above might create something like `\drawITA`, `\drawZAF` and `\drawCAN` (amongst a host of other macros, perhaps based on some geographical hierarchy).   * The above _modules_ would also load the coordinates of the boundaries.   * The base package and _modules_ might be big, but still manageable. However, the data sets themselves would be very large. So one would include instructions on how to add these to your distribution as a manual addition, perhaps to a location like `texmf-local`. I don't know how this would work... Stay calm, I won't be including any treasure maps...


title: unicode-math and amsmath environments

text: I'd like to use unicode-math but I've run into some problems. The following mwe, compiles without problems. The aligned environment is used               \documentclass{article}     \usepackage{amsmath}     \usepackage{unicode-math}     \setmathfont{XITS Math}     \usepackage{xltxtra}          \begin{document}           \begin{equation}          α = \beta^2_i + β^2_i      \end{equation}          \begin{align}          a &= b\\         b &= c     \end{align}          \end{document}      but if I add the following code (using cases environment - defined in amsmath) then I get a segmentation fault               \begin{equation}     \begin{cases}         a &= b\\          b &= c      \end{cases}     \end{equation}      What I want to ask is if the two packages can be used together (so this is a bug) or if I am going to encounter more problems like this one. The output of the compilation is this one and here is the log file. ps. I know that it is easy to emulate the cases environment. ps2. Although it must be obvious, I am using xelatex. UPDATE I am using TexLive 2010 64bit on Linux


title: Show my results bar chart in latex

text: I have a results of my research in the form of a bar chart created from excel work sheet. The image of my excel sheet and bar chart is given in the figure below;![enter image description here](http://i.stack.imgur.com/7SjLw.png)   Please help me with code, I am new to latex and never draw these kind of bar charts earlier. Thanks in advance.


title: No pdf output in Auctex

text: I reinstall texlive but I auctex don't produce the pdf output.   I tried texwork and its works fine. I'm on fedora 19 I'm asking a question following this one, Local font installation problems.   I could not resolve the problem based on the instruction given.     1. First I'm not sure which file I need to delete:   2. I don't know where is the file I need to enable. Here is my code and the error i get.               \documentclass[english]{article}     \usepackage{lmodern,textcomp} % + the above package use euro directly     \usepackage{babel}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{setspace}     \usepackage{harvard}     \usepackage[margin=1.5in]{geometry}     \begin{document}     \title{mytitle}     \maketitle          Hello world          \end{document}                    [1{/home/DJJ/.texlive2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]     (./DefaultsinMicrofiance.aux)     kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600     rm-lmr10     mktexpk: don't know how to create bitmap font for rm-lmr10.     mktexpk: perhaps rm-lmr10 is missing from the map file.     kpathsea: Appending font creation commands to missfont.log.)     !pdfTeX error: pdflatex (file rm-lmr10): Font rm-lmr10 at 600 not found      ==> Fatal error occurred, no output PDF file produced!      **update** I tried to reinstall emacs but it was no use. (In case you wonder, of course I saved my .emacs file) The dvi works fine though **update 2*** I used fedora to install texlive with yum install texlive. Everything was working fine except that i didn't have some packages. Then I want to get all the packages and did               yum install texlive-scheme-full      But I didn't remove the basic texlive first. I tried to remove everyhting by using               yum remove tex-* texlive-*      and reinstalling again but the problem still persist. I don't know where are the fonts *** Update 3**** I found that rm-lmr10.map was disable here               /home/DJJ/.texlive2013/texmf-config/web2c/updmap.cfg      Now all that needs to be done is to tell texlive to use                /home/DJJ/.texlive2013/texmf-config/web2c/updmap.cfg          /usr/share/texlive/texmf-config/web2c/updmap.cfg      I think still trying to figure this out


title: Actual line numbers for listings: firstnumber=\inputlineno is off by one

text: I would like to have the actual line numbers next to my code listings but if I use `firstnumber=\inputlineno`, this gets evaluated one line too early:               \documentclass{article}     \usepackage{listings}     \lstset{numbers=left, firstnumber=\inputlineno, frame = single}     \begin{document}     \begin{lstlisting}     ... here is some great code on line 6 in our file ...     \end{lstlisting}     This is line $\the\inputlineno$ in our file.     \end{document}      ![line number 5 shown, should be 6](http://i.stack.imgur.com/9Pien.png) Naively, I want to do `firstnumber=\inputlineno+1`. How? Something I already tried was `firstnumber=\value{mycounter}` and set this counter to the right value at the beginning of the code listing via `\AtBeginEnvironment` or `\lstnewenvironment`. Both gave me the error "You can't use `\inputlineno' in horizontal mode.".


title: IEEEtran class: How can I center the title using the two columns option?

text: When I compile, I always get the title as part of the left column. I'd like the title to be on the top of the page, bridging across the two columns. Thanks Diego


title: Beamer not working at all!

text: Suddenly I am getting the cryptic "Text line contains an invalid character" errors (100 of them) on all my beamer files. Even this MWE doesn't work right:               \documentclass{beamer}           \begin{document}           Sample document.           \end{document}      I am using the latest TeXnicCenter (2.02 stable) and Miktex 2.9 - what has gone wrong? My feeling is that something is screwed up with the encodings but I can't figure out what. UPDATE: Texmaker doesn't work either, giving this error: "A funny symbol that I can't read has just been input."


title: Chemfig - command arrow - alignment doesn't work

text: I'm writing my bachelor thesis. I wanted to insert a chemical equation, but the reactant and the product are not horizontally aligned well. I found in Chemfig manual a solution to this problem but when I write `\arrow(.center--.base west){<=>[\ce{H2O}]}`, TeXnicCenter returns 9 errors and in pdf document there is no equation at all. When I write only `\arrow{<=>[\ce{H2O}]}`, it works well ... I'm using TeXnicCenter, MikTeX and SumatraPDF on Windows 7. I'm a beginner with LaTeX. Thanks for help.               \documentclass{article}     \usepackage[czech]{babel}          \usepackage{chemfig}          \begin{document}          \schemedebug{true}     \schemestart       AA       % \arrow{<=>[xxx]} % works       \arrow(.base east--.base west){<=>[xxx]}       BB     \schemestop          \end{document}


title: Math operator names with Neo Euler in XeLaTeX

text: I am writing a document in XeLaTeX using Libertine and Neo Euler as fonts:               \usepackage[math-style=upright]{unicode-math}     \setmainfont{Linux Libertine G}     \setsansfont[Scale=MatchLowercase]{Liberation Sans}     \setmathfont[Scale=MatchLowercase]{Neo Euler}      Now when I use operators like `\log` or `\cos`, XeLaTeX typesets them with Neo Euler instead of Libertine (because of the option `math-style=upright`, required for Neo Euler). How can I keep Libertine, or set an other font (for example Liberation Sans, my sans serif font), as the font for operator names?


title: Elements that looks different when printed with colours or in BW

text: Is there the possibility with `LaTeX` of having some element that change if it is printed with colours or in black and white? I was thinking about the rectangles around links with `hyperref` that are visible on the screen but do not appear when the document is printed. I need something similar but that behaves in different ways if is printed in BW or in colours. The final goal would be to have an image made with `tikz` or/and `pgfplots` with some filling or patterns; when the image is visualized on the screen or is printed with colours I would like to have filling, when instead is printed in BW I would like to have black patterns. This is because the filling with different colours when printed in BW looks very similar and a solution is to use instead different patterns.


title: Is there any way to make a function permanent in math mode?

text: I always have problems with the letter size of my document, but `\displaystyle` helps me to solve it, thus I always use it. Is there any way to make that a default setting, so that `$...$` would mean `$\displaystyle ...$`? Any other solution which would solve this problem are welcome!


title: How to bold (\textbf) an entire example in gb4e?

text: I am presenting linguistic examples using `gb4e`. For one example, I would like to make the entire example bold, either the source utterance or the entire thing (including gloss and free translation). When I compile the code below, the bolded example begins on on the line below the example number. I have many examples like this, and I need to bold one of four options in each one. How can I eliminate the extra line without applying `\textbf` to each individual word?               \documentclass[11pt,letterpaper]{article}     \usepackage{gb4e}     \begin{document}     \begin{exe}         \ex \textbf{             \gll sak=en du xu tat nanen chushma rughd.\\                  we=\textsc{cl} with our father mother hot-spring went\\             \glt `We went to the hot-springs with our parents.'                         }         \ex              \gll sak=en du xu tat nanen chushma rughd.\\                  we=\textsc{cl} with our father mother hot-spring went\\             \glt `We went to the hot-springs with our parents.'     \end{exe}     \end{document}


title: using biblatex to make section titles

text: Updated with MWE: I am making a template for keeping track of articles for a project and for this I want to have costumized \cite-s to use in text and as section titles. I have made a crude solution:               \documentclass[a4paper,13ptmathspec]{scrartcl}     \usepackage{filecontents}     \usepackage{biblatex}               \begin{filecontents}{ref.bib}     @article{szabo2006,       title = {Phase transition in the collective migration of tissue cells: Experiment and model},       author = {Szab\'o, B. and Sz\"oll\"osi, G. J. and G\"onci, B. and Jur\'anyi, Zs. and Selmeczi, D. and Vicsek, Tam\'as},       journal = {Phys. Rev. E},       volume = {74},       issue = {6},       pages = {061908},       numpages = {5},       year = {2006},       month = {Dec},       publisher = {American Physical Society},       doi = {10.1103/PhysRevE.74.061908},       url = {http://link.aps.org/doi/10.1103/PhysRevE.74.061908}     }     \end{filecontents}     \addbibresource{ref.bib}     \begin{document}     \section{First section}     I want to be able to modifiy the citing style separatly here (\citeauthor{szabo2006} \citeyear{szabo2006}\cite{szabo2006}).     \section{\citeauthor{szabo2006}:\citetitle{szabo2006}\cite{szabo2006}}     and in the section title. I also don't want the quotes in the section title.          \printbibliography     \end{document}      ![enter image description here](http://i.stack.imgur.com/po5f6.jpg) My problem is, that I could make these multiple cite-s into one command with newcommand, but for example I would like to remove the quotes around the title, when I put it in the section title. It seems to me that \DeclareCiteCommand would be the way to go, but I was unable to make it work. How could this be accomplished?


title: Authors names at the beginning of article

text: I am trying to submit an article to a journal that requires the authors' names and contact information to be stated right after the title of the article. I am using the amsart style, and the default setting for this style is to list the contact information at the end of the article. Since I would prefer not to change styles, any suggestions as to how to list the contact information with the authors names at the beginning of the article would be much appreciated.


title: Erratic behaviour with TikZ ... \foreach

text: I am using TeXShop v 2.47 on a MAC (OSX 10.6.8) and trying to learn TikZ; which is very powerful but not the easiest package to get to master. I have been getting very strange behaviour with the \foreach command; in that it works sometimes and then does not, with what looks as identical code. I have tried to track the problem down and get the error in its simplest form; stripping the LaTeX document right down. I have used a simple example from p37 of pgfmanualCVS2012-11-04. Which works fine               \documentclass[11pt, oneside]{article}           \usepackage{tikz}     \begin{document}       \begin{tikzpicture}[]         \tikz \foreach \x in {1,...,10}          \draw (\x,0) circle (0.4cm);       \end{tikzpicture}     \end{document}      and produces 10 circles as expected. However if I try to edit this it very often fails. If for example I replace the 0 in the {1,...,10} by a 0 [by either highlighting the 0 and typing 0 or by deleting 0 and typing 0] the code fails and I get an error: .\error.tex:6 Package PGF Math Error: Unknown operator '...' or '...@' (in '...') see PGF Math Package documentation. Possibly the TeXShop editor is adding some control characters? Edit added 12:59 GMT Here is the failing code. With the TeXShop editor they look identical. However I notice here that the `...` spacing looks different? Possibly TexShop is doing something with the `...`?               \documentclass[11pt, oneside]{article}           \usepackage{tikz}         \begin{document}          \begin{tikzpicture}[]          \tikz \foreach \x in {1,…,10}          \draw (\x,0) circle (0.4cm);       \end{tikzpicture}     \end{document}


title: How to modify the appendix chapter numbering?

text: I have:               \appendix     \chapter{Title}     \section{Intro}      and it appears. > Appendix A   >  Title   >  A.1 Intro I would like to have the same except the "A.1 Intro" but instead "1.Intro" How to remove the "A."?


title: Understanding TikZ border anchor

text: Consider the following MWE:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{positioning}     \begin{document}     \begin{tikzpicture}         \node(a)[rectangle,draw,minimum size=3cm]{};             \node [fill,circle] at (a.45){};              \node(b)[below=1cm of a,rectangle,draw,minimum width=5cm,minimum height=3cm]{};             \node [fill,circle] at (b.45){};     \end{tikzpicture}     \end{document}      In the second node I'd expect the `b.45` border anchor to be at the north east corner of the shape, as is in the first node. I think this depends on the shape of the node: if it isn't a square border anchors "move aorund". Is there a way to predict where the `.45` border anchor will be located without going for trials and errors?


title: How can I nicely typeset this MySql query with the listings package?

text: I am trying to show output of MySql explain in my LaTeX document. I am using `listings` package to make listings.   Sample LaTeX code:               \begin{lstlisting}[language=SQL,caption={SQL query explained}]     mysql> explain          select dd.data from dane dd            join test1.tag1 t1 on dd.id = t1.id            join test1.tag2 t2 on dd.id = t2.id            join test1.tag3 t3 on dd.id = t3.id            join test1.tag4 t4 on dd.id = t4.id            join test1.tag5 t5 on dd.id = t5.id            join test1.tag6 t6 on dd.id = t6.id            join test1.tag7 t7 on dd.id = t7.id            join test1.tag8 t8 on dd.id = t8.id            join test1.tag9 t9 on dd.id = t9.id            join test1.tag10 t10 on dd.id = t10.id          where t1.val = 1            and t2.val = 2            and t3.val = 3            and t4.val = 4            and t5.val = 5            and t6.val = 6            and t7.val = 7            and t8.val = 8            and t9.val = 9            and t10.val = 10 ;     +----+-------------+-------+--------+---------------+---------+---------+-------------------+-------+---------------------------------------------------------------+     | id | select_type | table | type   | possible_keys | key     | key_len | ref               | rows  | Extra                                                         |     +----+-------------+-------+--------+---------------+---------+---------+-------------------+-------+---------------------------------------------------------------+     |  1 | SIMPLE      | t1    | ALL    | PRIMARY       | NULL    | NULL    | NULL              | 99901 | Parent of 10 pushed join@1; Using where with pushed condition |     |  1 | SIMPLE      | t2    | eq_ref | PRIMARY       | PRIMARY | 8       | test1.t1.id,const |     1 | Child of 't1' in pushed join@1                                |     |  1 | SIMPLE      | t3    | eq_ref | PRIMARY       | PRIMARY | 8       | test1.t2.id,const |     1 | Child of 't2' in pushed join@1; Using where                   |     |  1 | SIMPLE      | t4    | eq_ref | PRIMARY       | PRIMARY | 8       | test1.t3.id,const |     1 | Child of 't3' in pushed join@1; Using where                   |     |  1 | SIMPLE      | t5    | eq_ref | PRIMARY       | PRIMARY | 8       | test1.t4.id,const |     1 | Child of 't4' in pushed join@1; Using where                   |     |  1 | SIMPLE      | t6    | eq_ref | PRIMARY       | PRIMARY | 8       | test1.t1.id,const |     1 | Child of 't5' in pushed join@1                                |     |  1 | SIMPLE      | t7    | eq_ref | PRIMARY       | PRIMARY | 8       | test1.t5.id,const |     1 | Child of 't6' in pushed join@1; Using where                   |     |  1 | SIMPLE      | t8    | eq_ref | PRIMARY       | PRIMARY | 8       | test1.t7.id,const |     1 | Child of 't7' in pushed join@1; Using where                   |     |  1 | SIMPLE      | t9    | eq_ref | PRIMARY       | PRIMARY | 8       | test1.t5.id,const |     1 | Child of 't8' in pushed join@1; Using where                   |     |  1 | SIMPLE      | t10   | eq_ref | PRIMARY       | PRIMARY | 8       | test1.t8.id,const |     1 | Child of 't9' in pushed join@1; Using where                   |     |  1 | SIMPLE      | dd    | eq_ref | PRIMARY       | PRIMARY | 4       | test1.t5.id       |     1 | Using where                                                   |     +----+-------------+-------+--------+---------------+---------+---------+-------------------+-------+---------------------------------------------------------------+     11 rows in set (0.01 sec)     \end{lstlisting}      And the pdf result: ![pdf result](http://i.stack.imgur.com/YekMe.png) There are two issues:   1\. Text is too wide to fit page.   2\. In LaTeX source white spaces are used to arrange data columns. In pdf output there are truncated. I will appreciate any ideas how to deal with this issues and transform explain output to viewable form in pdf.


title: ybar overlaps axis line (and xtick removal)

text: When I use the MWE below my bar plots are overlapping partly the black x-axis ![enter image description here](http://i.stack.imgur.com/uKZ6q.png) How is it possible that the bar graph starts exactly above the x-axis and not on top of it? And is there a way to remove the xtick between the two bars? If I use `xmajortick=false` it also removes the tick label (300, 500, and 700).                           \documentclass{article}                      \usepackage{pgfplots}                 \usepackage{float}                 \pgfplotsset{compat=newest}                 \pgfplotsset{plot coordinates/math parser=false}                      \begin{document}                 \begin{tikzpicture}                      \begin{axis}[%                 area legend,                 scale only axis,                 xmin=200,                 xmax=800,                 xtick={300,500,700},                 xlabel={weight},                 %xmajorgrids,                 ymin=0,                 ymax=25,                 ylabel={Loss},                 ymajorgrids,                 legend style={at={(0.03,0.97)},anchor=north west,draw=black,fill=white,legend cell align=left},                 xminorticks=false,                 ]                 \addplot[ybar,bar width=0.0685714285714286\textwidth,bar shift=-0.0428571428571429\textwidth,draw=red,fill=red] plot table[row sep=crcr] {                 300 9.30726578814723    \\                 500 12.7793803418804    \\                 700 21.7049648016225    \\                 };                 \addlegendentry{Measurements};                 \addplot[ybar,bar width=0.0685714285714286\textwidth,bar shift=0.0428571428571429\textwidth,draw=green,fill=green] plot table[row sep=crcr] {                 300 5.15137978331173    \\                 500 10.6435633181912    \\                 700 19.5700000419451    \\                 };                 \addlegendentry{simulation};                      \end{axis}                 \end{tikzpicture}%                      \end{document}


title: The required file tex/latex/standalone/standalone.cls is missing after installing MikTex 2.9?

text: After installing the MikTex 2.9, Run the code in WinEdt, it always gives warning that The required file tex/latex/standalone/standalone.cls is missing, can someone help me how to fix the problem?


title: Print biblatex bibliography without labels

text: my question is rather similar to this one, except that I'm using `biblatex` and not `bibtex`. I searched the manual and TE, but I can find only answers how to use a custom label provided by `biblatex`, but not how to completely avoid it. Thank you! Here is a MWE. Basically, I'm using two bibliographies: one "normal" at the end, and one "special" in the middle of the document, containing only entries having the keyword. For this special bibliography, I would like to avoid the label.               \documentclass[12pt,twoside,openright,a4paper,oldfontcommands]{memoir}          \usepackage[sorting=nty, maxnames=99, firstinits=true, backend=biber]{biblatex}          \addbibresource{database.bib}          \begin{document}     \nocite{key}     \printbibliography[heading=none, sorting=ydnt, keyword=SelectFromHugeBibliography]     \end{document}


title: Addition in Columns with proper character spacing

text: I want to perform addition in columns with both letters and digits in LaTeX. I have the following code, but spacing between letters and digits is wrong:               $\begin{array}{r} +  \begin{array}{r}  $ABC$\\  $B0A$ \end{array}\\ \hline \begin{array}{r}  $CA0$  \end{array} \end{array} $


title: After an update a document stopped compiling due to babel

text: I've written a document in my laptop (I have Debian and I use KDE and Kile as my latex editor) This is my header:               \documentclass[a4paper,11pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[spanish]{babel}     \usepackage{enumerate}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{graphicx}      However after an update to the texlive packagages now every time I compile (pdflatex) Kile opens up the babel.sty to this line:               \ifx\bbl@main@language\@undefined       \bbl@error{%         You haven't specified a language option}{%         You need to specify a language, either as a global option\\%         or as an optional argument to the \string\usepackage\space         command;\\%         You shouldn't try to proceed from here, type x to quit.}     \fi      The pdf is generated but any spanish options are not used. I don't understand what can be happening. Any help would be appreciated.


title: How do I add a box as a prefix to sections or float a box left of sections?

text: I am working on converting some old documents at work into LaTeX. I realize that some of the things I need to do do not conform to the LaTeX typesetting standards but that is where I am. I have most of the text formatting handled but as a part of our on the job training documents there are boxes for trainers to "sign off" on training. Attempting to replicate these has been a major headache. Any help would be appreciated. Here is an image of the OJT ![](http://i.imgur.com/5RvdBdc.png) I have tried several different packages and none have done exactly what I need.               \documentclass{article}          \renewcommand\thepart{\arabic{part}:}          \usepackage{titlesec}     \titleformat{\part}[block]{\centering\bfseries\huge}{Part \thepart}{10pt}{}[\setcounter{section}{0}]          \usepackage{enumitem}     \setitemize[0]{itemindent=2.5cm}          %Item Prefix - \so signoff     \newcommand{\so}{\item[\underline{\hspace{0.85cm}}]}          \usepackage{lipsum}          \begin{document}              \part{Personnel Introduction}              \lipsum[1]                  \section{Division Personnel}                      \subsection{Headquarters}                      You have had the opportunity to be introduced to Headquarters personnel, including:                 \begin{itemize}                 \so Name Name                 \so Name Name                 \end{itemize}                 \subsection{Production Department}                      You have had the opportunity to be introduced to some Production personnel, including:                 \begin{itemize}                 \so Name Name                      GROUP \#1                      \so Name Name                 \so Name Name                 \so Name Name                      GROUP \#2                      \so Name Name                 \so Name Name                 \end{itemize}          \end{document}      My code far. I have seen something like below but it obviously doesn't work.               \newcommand{\trainer}{         \fbox{             \resizebox{3cm}{2cm}{                 \rule{2.75cm}{.4pt}                      Trainer\hspace{.7cm}Date             }         }     }          \begin{document}              \part{Personnel Introduction}              \lipsum[1]                  \section{Division Personnel}          \trainer\subsection{Headquarters}                      You have had the opportunity to be introduced to Headquarters personnel, including:                 \begin{itemize}                 \so Name Name                 \so Name Name                 \end{itemize}                 \subsection{Production Department}                      You have had the opportunity to be introduced to some Production personnel, including:                 \begin{itemize}                 \so Name Name                      GROUP \#1                      \so Name Name                 \so Name Name                 \so Name Name                      GROUP \#2                      \so Name Name                 \so Name Name                 \end{itemize}          \end{document}      Thanks in advance


title: How to use custom bibstyle with biblatex

text: I am using Biblatex for bibliography. This works fine with builtin styles like ieee. But when I gave a custom bst file I got it gives me not found error. My command was               \usepackage[bibstyle=splncs]{biblatex}      I put the file splncs.bst in the same folder containing the tex and bib file. Biblatex works fine when inbuilt styles are used


title: Package geometry parameters and changing left margin

text: I want to make an indented paragraph, that is to indent the whole paragraph and not just the first line as happens with `\par`. I use `geometry`, so I thought that package might have a parameter that regulates the indent. I read through the `.log` file of my document and found:               \Gm@cnth=\count186     \Gm@cntv=\count187     \c@Gm@tempcnt=\count188     \Gm@bindingoffset=\dimen277     \Gm@wd@mp=\dimen278     \Gm@odd@mp=\dimen279     \Gm@even@mp=\dimen280     \Gm@layoutwidth=\dimen281     \Gm@layoutheight=\dimen282     \Gm@layouthoffset=\dimen283     \Gm@layoutvoffset=\dimen284     \Gm@dimlist=\toks36      Seeing as I couldn't guess what these were, I came here. I looked at this question and this other one, so I found `\hoffset`, but opening a group and changing that seemed to have no effect. Same goes for `\Gm@layouthoffset`. Typing:               {\makeatletter\Gm@lmargin=2pt     foo bar baz     \makeatother \\     }      with a `\\` just before the `{` makes the `foo bar baz` typeset, but instead of changing the parameter prints out `113.81102pt=2pt`. So the question is: what are those parameters, how do I use them, can I use them to indent the paragraph as I want, and if not how do I?


title: Automatic generation of pages with variable fields

text: I need to produce dozens of same pages, except for the part that each page has to have a different person's name on it. Imagine it as an exam, where the content is equal for every page, except that I want to print the student's name in the header of somewhere else on the page. From my programming perspective, one clue would be to make a list/series (or array in programming terms) of names in the beginning of a document, and invoke it further in the text as, say, `\student[i]`, where `i` is an integer (i.e. number of current page). But I have no idea how to implement it as this is my first touch of this topic. My current document looks like this:               \begin{document}     \newcounter{i}      \setcounter{i}{1}      \whiledo{\value{i} < 50}{           Lorem ipsum ...     % The place where I need to put a variable string     Lorem ipsum ...          \newpage     \addtocounter{i}{1}      }          \end{document}      This produces 49 equal pages, however, I don't know how to create a series of names in a variable, and then print on every page a different name following the series.


title: Customizing varioref to only add "... on page XX", and only when there is more than one page in between reference and figure

text: `varioref` is a nice package as it will, when referencing, add "... on the [facing/next/preceding/following] page" if the reference and figure (or whatever object is being reference) are located on different pages. If there is more than a page in between, `varioref` will add "... on page XX". However, I've noticed that all these "... on the [facing/next/etc] page" becomes a bit excessive; what I only really need is the "... on page XX" when the reference is far away. In my document, I've solved this by redefining the appropriate TeX definitions of `varioref`:               \makeatletter     \vref@addto\extrasenglish{%       \def\reftextfaceafter{}       \def\reftextfacebefore{}       \def\reftextafter{}       \def\reftextbefore{}       \def\reftextcurrent{}     }     \makeatother      However, it doesn't feel very robust as this only works if `english` is selected as option. For `american`, I would have to copy-paste the same commands but replace `extraenglish` with `extraamerican`. Is there some more efficient and "thorough" way of achieving the same thing, but for all language options? It is really not necessary in my case since I know I will be using `english`, but I'm interested out of curiosity. =)


title: Rules for typesetting mathematical constants upright

text: It has been proposed that mathematical constants should be set upright to distinguish them from variables.1 This rule can also be stated as:2 > There's a little-known rule, best stated as > > “Operators and constants with a fixed meaning should be set upright.” This results in more readable equations overall, and adds clarity:2 ![Comparison of upright and italic constants](http://i.stack.imgur.com/PKONE.png) However, I have my doubts as to how far this rule should extend. It is obvious to typeset π, i, or e upright. But should I also typeset the physical constants that I use in my publications upright? Where should one draw the line? Can the simple "little-known rule" mentioned above be extended? * * * [1]: ISO 80000-2   [2]: J. Küster. Math never seen. TUGboat, 31(2):221–229, 2010.


title: If not DeclareOption

text: I have some documents using a same custom package. That "header" package loads by default the package `fullpage`. But I would like to write a new LaTeX document, using the same header, but without loading `fullpage`, and I don't want to change old files. Is there a way to add an "if false" condition about options? I mean. I have currently:               \DeclareOption{fullpage}{       \usepackage{fullpage}     }      But that implies to change all of my old documents to add the fullpage option to my package. I want however to make something like:               if-not-nofullpage {%       \usepackage{fullpage}     }      And in my new document:               \usepackage[nofullpage]{my-header}      Or perhaps a way to "unload" a previously loaded package:               \usepackage{fullpage} % inconditionally          \DeclareOption{nofullpage} {%         unload-or-revert-the-fullpage-inclusion     }      How can I do that? (if plain TeX macros are used in your answers, please, with little explanations).


title: I am using Lyx to edit my document and would like to reduce the spacing between subsections

text: I am using floats throughout the text perhaps this messes with spacing. It seems such an easy thing to adjust, yet I find no answer.


title: define moretexcs (listings)

text: I want to define `moretexcs` lists outside of a `lstdefinestyle` macro because I want to load these definitions from a separate tex file. However inside `lstset` `moretexcs` is ignored:               \documentclass{article}          \usepackage{xcolor}         \usepackage{listings}          \lstdefinestyle{lstStyleLaTeX}{%        ,language = [LaTeX]TeX%        % ,moretexcs={abc},        ,keywordstyle=\color{red}     }     \lstset{%        language=[LaTeX]TeX,        moretexcs={abc},     }%          \begin{document}     \begin{lstlisting}[style=lstStyleLaTeX]     \abc{content}     \end{lstlisting}          \end{document}


title: Whats the problem with the following code?

text: \begin{table}       \caption{Description of the data sets}       \newcolumntype{R}{>{\raggedright \arraybackslash} X}       \newcolumntype{S}{>{\centering \arraybackslash} X}       \newcolumntype{T}{>{\raggedleft \arraybackslash} X}     \begin{tabularx}{\linewidth} {>{\setlength\hsize{.30\hsize}}R >{\setlength\hsize{.17\hsize}}T >{\setlength\hsize{.18\hsize}}T >{\setlength\hsize{.17\hsize}}T >{\setlength\hsize{.18\hsize}}T}  % centered columns (4 columns)       \toprule       \multicolumn{3}{r}{Average Tree Nodes} & \multicolumn{5}{r}{Average Tree Depth} \\       \cmidrule(l){2-3} \cmidrule(l){4-5}       Data Set Name & R\_RF & OVA\_RF & R\_RF & OVA\_RF \tabularnewline       \midrule       Balance Scale & 103.5000 & 66.1717 & 3.0160 & 2.0111 \tabularnewline       Car Evaluation & 129.5560 & 42.0550 & 4.8650 & 2.1050 \tabularnewline       Dermatology & 17.6960 & 10.0304 & 3.5190 & 1.9441 \tabularnewline       Ecoli & 43.4420 & 10.4885 & 7.9280 & 3.3712 \tabularnewline       Glass Identification & 46.3860 & 13.9000 & 8.6480 & 4.0284 \tabularnewline       Hayes-Roth & 14.8810 & 14.1778 & 2.6040 & 2.4626 \tabularnewline       Iris & 10.0400 & 7.1859 & 3.8080 & 2.5778 \tabularnewline       Lenses & 7.1740 & 5.7788 & 2.4010 & 2.0374 \tabularnewline       Soybean (Small) & 6.4750 & 5.1700 & 1.8480 & 1.4020 \tabularnewline       Statlog (Vehicle) & 150.5020 & 65.4100 & 14.3900 & 10.7180 \tabularnewline       \midrule       Average & 52.9652 & 24.0368 & 5.3027 & 3.2658 \tabularnewline       \bottomrule       \end{tabularx}      \end{table}


title: How do you automate the creation of titles from section titles in beamer?

text: I want to automate the creation of titles in beamer such that an environment `Frame` sets the title to this pattern               <current-section> (<frame-number>)      where `<current-section>` is the title of the current section (including subsection or subsubsection) and `<frame-number>` is the number of the frame _within the current section_ (not the total number of frames). Here's a MWE:               \documentclass{beamer}          % includes          \usepackage{ifthen}          % commands          \newcommand{\CurrentSectionTitle}{%     \ifthenelse{%         \equal{\insertsubsubsectionhead}{}%     }%     {%         (...)     }%     {\insertsubsubsectionhead}%     }          \newenvironment{Frame}%     {%         \begin{frame}             \frametitle{\CurrentSectionTitle (\insertframenumber)}     }%     {%         \end{frame}     }%          \title{Test}     \author{}     \date{\today}          \begin{document}          \frame{\titlepage}          \frame{     \frametitle{Table Of Contents}     \tableofcontents     }          \section{A}          \subsection{A.1}          \begin{Frame}     \begin{itemize}         \item a         \item b     \end{itemize}        \end{Frame}          \begin{Frame}     \begin{itemize}         \item c         \item d     \end{itemize}        \end{Frame}          \end{document}      I was running into trouble getting the current section title using `\ifthenelse` and don't know how to get the number of the current frame witin the current section. Any ideas, pointers?


title: Change white-space border in pgfplot, or crop PDF figure?

text: I am toying a bit with the `pgfplot` way of presenting data. It makes pretty nice plots, but unfortunately it is not very economical with my space. This is a problem when using a multi-column layout. Does anyone know how to decrease the extra white space margin around the plot, and possibly move the axis labels closer to the axes? As of now, I get much more "plot for my money" by doing it in matlab and just exporting to PDF. If someone knows of a handy way of cropping PDF-images when inserting in LaTeX, that might also work, as I could export the pgf-plot to a PDF-file and then insert a cropped version of that.


title: Changing the Page Layout (for all pages)

text: I want to add the chapter name at location (x,y) with center alignment , so the page number and the date. But what is wrong with the code? If I get this,How can I add date (for every chapter) and move it the location (x,y)? Here is my MWE:               \documentclass[12pt,oneside]{book}     \usepackage{background}     \usepackage{lipsum}     \usetikzlibrary{calc}     \backgroundsetup{     angle=0,     scale=1,     opacity=1,     color=black,     contents={%     \begin{tikzpicture}[remember picture, overlay]     \node[anchor=center,inner sep=0pt] at ($(current page.north west) + (16.3cm,-1.8cm)$) {\thepage};     \node[anchor=center,inner sep=0pt] at ($(current page.north) + (20cm,-5cm)$) {\thechapter};     \end{tikzpicture}%     }     }               %\usepackage[step=0.5cm,arrows=false,firstcolor=white,secondcolor=white]{pagegrid}    %% comment this     %\pagegridsetup{top-left}      %% comment this          \begin{document}     \thispagestyle{empty}   %% this is needed     \chapter*{Hello World}     \lipsum[4-10]     \end{document}


title: Too many unprocessed floats with marginpar

text: I'm updating my CV, which is written by modifying this template. I have always been very happy with the result, but now I'm getting a _Too many unprocessed floats_ error. For those who do not want to have a look at the template, it basically works like this. In the preamble I have a command               \newcommand{years}[1]{\marginpar{\scriptsize #1}}     ...     \begin{document}     \reversemarginpar      which one then uses like               \section*{Seminars}     \years[2005]Blah blah...     \\     \years[2007]Blah blah blah..      The problem is, when I insert the 10th item, I get the _Too many unprocessed floats_ error. Inserting a clearpage is not an option, since it would just leave half page empty. Also, doing a major change to the CV, like switching to another template or using a CV class is not an option either. I have tried many different ways to write my CV; it always takes time to switch, and I need to compile it soon. Moreover I'm very happy with this template. **Is there a way to increase the number of floats that LaTeX can handle?**


title: Using `\ExerciseSelect` (and friends) command of the `exercise` package

text: In the documentation says: > "The purpose of these commands is to select exercises within a long list > stored on an auxiliary file." But I don't know how to tell the package which is the external file to look in. Can you please post a MWE to see hot to use this feature?


title: footnote counter, would like to restart from '1' each page

text: I would like the footnote counter to automatically restart from '1' for each page of my document.


title: Correct case in namerefs

text: I'd like to use `nameref`s within a sentence, and have the case of the resulting text match the position within the sentence. The section title is naturally title case, but is there some command to either a) force lowercase of `nameref`s (`\lowercase{}` doesn't work), or b) insert init-case, i.e., uppercase the initial word if it's at the beginning of a sentence, lowercase elsewhere? Example:               \section{Object}     \label{sec:obj}     [definition of an object]     ...     \nameref{sec:obj} instance variables are often called simply "\nameref{sec:obj}".      should produce:               Object     [definition of an object]     ...     Object instance variables are often called simply "object".      Note case difference at the start and in the middle of the sentence.


title: Why csquotes does not seem to be persistent?

text: Using the `\hyphenblockcquote` like in What's the advantage of using csquotes over using an editor's auto-replacement for "? seems (for a bloody beginner) not persistent. Inside the same section (another subsection, see below) the '`blockquote`' changes into a kind of `USenglish` 'style'. ![enter image description here](http://i.stack.imgur.com/1KhP3.png)               \documentclass{article}          \usepackage[utf8]{inputenc} % for writing other that basic characters     \usepackage{graphicx}     \usepackage{caption}     \usepackage{subcaption}     \usepackage[UKenglish, USenglish]{babel}     \usepackage{csquotes} % blockquotation and other.     \usepackage{enumitem} % enumerate [1], [2],.. http://ctan.org/pkg/enumitem          % Include any extra LaTeX packages required     \usepackage[authoryear, numbers, comma, sort&compress]{natbib}  % Use the "Natbib" style for the                                                                     % references in the Bibliography          \usepackage{verbatim}  % Needed for the "comment" environment to make LaTeX comments     % \usepackage{vector}  % Allows "\bvec{}" and "\buvec{}" for "blackboard" style bold vectors in maths              \begin{filecontents*}{\jobname.bib}              @article{walton2012,            author = {Walton, Douglas},            title = {Using Argumentation Schemes for Argument Extraction: A Bottom-Up Method},            journal = {Int. J. Cogn. Inform. Nat. Intell.},            issue_date = {July 2012},            year = {2012},            }              \end{filecontents*}          \begin{document}          \chapter{TeXperiments} % history of the jetpak          \section{Argumentation Theory}     \hyphenblockcquote{**UKenglish**}[p. 5]{emeren1996}{Argumentation is a verbal and social activity     of reason aimed at increasing (or decreasing) the acceptability of a controversial standpoint     for the listener or reader, by putting forward a constellation of propositions intended to     justify (or refute) the standpoint before a rational judge.}          \subsection{Walton's Argument Schemes}     Walton proposed the analysis of arguments with \textit{presumptive argumentation schemes}     \citep[p. 3]{walton1996}.          \hyphenblockcquote{**UKenglish**}[p. 34]{walton2012}{Argumentation schemes represent stereotypical     patterns of reasoning used in everyday conversational argumentation, as well as in a variety     of other contexts as well, [...] that aim at a decision on what to do in given circumstances.}               \end{document}


title: Changing heading style of a section

text: I'm porting my CV from Word to latex. I want to include my publication list, but I want to split it into two halves, my thesis and my journal articles, with the appropriate subheadings. Since academic references are always nasty to manually write, I'm using BibTeX to keep track of them appropriately. This is how I want it to look like: ![Current](http://i.stack.imgur.com/2VRvH.jpg) This is how it currently looks: ![Latex's version](http://i.stack.imgur.com/moLv9.jpg) This is generated by the following code (Using http://www.latextemplates.com/template/medium-length-professional-cv from the Internet):               \documentclass{resume} % Use the custom resume.cls style          \usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry} % Document margins          \name{Random Joe} % Your name     \address{Who lives nowhere, really} % Your address     \address{(555) 555 5121~$\cdot$~ email: Joe@nobody.com} % Your phone number and email          \begin{document}          \begin{rSection}{Education}          {\bf University, city} \hfill {\em August 2013} \\      PhD \& Engineering \\      \smallskip \\          \end{rSection}          \begin{rSection}{Work Experience}          \begin{rSubsection}{Nonwhere}{August 2007 - August 2013}{Graduate Research Assistant}{Nowhere, FAR}     \item What do grad students do anyway?     \end{rSubsection}               \begin{rSubsection}{Nowhere}{Summer 2006}{Intern}{Someother place, AWAY}          \item Intern          \end{rSubsection}          %-----------------     \end{rSection}               \begin{rSection}{Skills}          \begin{rSubsection}{Computering}{}{}{}          \item Been on the internets.      \item Note much to see there          \end{rSubsection}                    \end{rSection}               \begin{rSection}{Other}          Native fluency in English. Somewhat               \end{rSection}          \begin{rSection}{CONFERENCE PRESENTATIONS}          \begin{rSubsection}{GRAD STUDENTS Annual Meeting }{2012}{Hell-sinsky}     \item Are grad students really useful for research?      \end{rSubsection}               \end{rSection}          \pagebreak[3]          \begin{rSection}{AWARDS, HONORS}          \item Primary author (\cite{Lee2009} below) of paper selected as the cover of the issue.     \nocite{Lee2012}          \end{rSection}          \pagebreak[3]          \begin{rSection}{Publications}          \begin{rSubsection}{Thesis}{}{}     \item PhD Thesis (2013) ``Grad students: Victims or Whimps?'' Studets-r-us, GA     \end{rSubsection}          \end{rSection}          \bibliographystyle{plain}     \renewcommand{\refname}{Refereed Journal Publications}     \bibliography{Resume}          \end{document}


title: Compiling example provided with pst-dbicons package does not compile

text: I am trying to create an ER diagram using pst-dbicons package (PSTricks). However, on trying the example tex file, I get an error on line 55: "Undefined control sequence". I am pasting the example here:               \ifx\TeXMaster\undefined     %     \documentclass{article}     \usepackage{pstricks,pst-node,pst-coil,color,pst-dbicons}     \addtolength{\topmargin}{-2.5cm}     \special{landscape}     \textheight17cm     \textwidth28cm     \evensidemargin-1.2cm     \oddsidemargin-1.2cm          \newcommand{\Mondial}{\textsc{Mondial}}          \begin{document}          \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \newif\ifblackwhite      %\blackwhitefalse     \blackwhitetrue     \ifblackwhite       \newgray{verylightgray}{0.95}       \seticonparams{entity}{shadow=true,fillcolor=lightgray,fillstyle=solid}       \seticonparams{attribute}{fillcolor=lightgray,fillstyle=solid}       \seticonparams{relationship}{shadow=true,fillcolor=lightgray,fillstyle=solid}     \else       \newrgbcolor{lightblue}{0.68 0.85 0.95}       \newrgbcolor{verylightblue}{0.34 0.42 0.5}       \newrgbcolor{lightgreen}{0.00 0.98 0.60}       \newrgbcolor{verylightgreen}{0.00 0.5 0.30}       \newrgbcolor{lightred}{1.00 0.71 0.76}       \newrgbcolor{verylightred}{0.50 0.351 0.38}       \seticonparams{entity}{shadow=true,fillcolor=lightred,fillstyle=solid}       \seticonparams{attribute}{fillcolor=lightblue,fillstyle=solid}       \seticonparams{relationship}{shadow=true,fillcolor=lightgreen,fillstyle=solid}     \fi          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \ifx\TeXMaster\undefined     \begin{center}     {\huge\bf ER-Diagram of the \Mondial\ Database}     \bigskip     \end{center}     \fi          \thispagestyle{empty}          \psset{nodesep=0pt}          \hspace*{2cm}     \begin{tabular}{ccc}      % lang/rel/ethn       \begin{tabular}{c}      \entity{Language} \\[12em]      \entity{EthnicGrp}[Ethnic Grp] \\[12em]      \entity{Religion}      \end{tabular}      \hspace{10em}      % cities/countries/provinces      \begin{tabular}{c@{\hspace{10em}}c}      &\entity[weak]{City} \\[2em]      \entity{Organization}\\[12em]      \entity{Country} \\[12em]      \entity{Continent}\\[2em]      &\entity[weak]{Province}      \end{tabular}       \hspace{10em}      % geo      \begin{tabular}{c}      \entity{Lake} \\[5em]      \entity{River} \\[5em]      \entity{Sea}\\[9em]      \entity{Mountain}\\[7em]      \entity{Island}\\[7em]      \entity{Desert}      \end{tabular}     \end{tabular}     \nodeconnections{\small      \relationshipbetween{Country}{City}{capital}[is\_capital]      \relationshipbetween{Province}{City}{capital}[is\_capital](0.4)      \relationshipbetween[ident]{Province}{City}{in}/\ncarc[arcangle=-30]/      \relationshipbetween[weak]{Province}{Country}{of}     %       \relationshipbetween{Country}{Organization}{ismember}[is\_member](0.6)      \relationshipbetween{Organization}{City}{has\_hq\_in}     %       \relationshipbetween{Country}{Continent}{encompasses}(0.8)     %       \relationshipbetween{Country}(A)      /\ncline[nodesepB=-1cm,offsetA=0.1em,offsetB=0.4cm]/                          {Country}(B)      /\ncline[nodesepB=-1cm,offsetA=-0.1em,offsetB=-0.4cm]/                         {borders}(7em,0)     %      \relationshipbetween{Province}{Lake}{in}      \relationshipbetween{Province}{River}{in}      \relationshipbetween{Province}{Sea}{in}      \relationshipbetween{Province}{Mountain}{in}      \relationshipbetween{Province}{Island}{in}      \relationshipbetween{Province}{Desert}{in}     %      \relationshipbetween{City}{Lake}{at}      \relationshipbetween{City}{River}{at}      \relationshipbetween{City}{Sea}{at}                                     %      \inrelationship{River}(main)/\ncarc[arcangle=30]/{flows into}       [flows into](4em,0)      \inrelationship{River}(trib.)/\ncarc[arcangle=-30]/{flowsinto}      \inrelationship{Lake}{flowsinto}      \inrelationship{Sea}{flowsinto}     %      \relationshipbetween{Sea}(A){Sea}(B){merges}(4em,270)     %      \relationshipbetween{EthnicGrp}{Country}{belong}(0.3)      \relationshipbetween{Religion}{Country}{believe}(0.3)      \relationshipbetween{Language}{Country}{speak}(0.4)     %      \attributeof{City}{90}[key]{name}      \attributeof{City}{45}{pop.}      \attributeof{City}{0}{longitude}      \attributeof{City}{-45}{latitude}     %      \attributeof{Organization}{70}[key]{abbrev}      \attributeof{Organization}{130}{name}      \attributeof{Organization}[4em]{1800}{establ.}     %      \attributeof{ismember}{40}{type}     %      \attributeof{borders}{60}{length}     %      \attributeof{Country}[3em]{30}{name}      \attributeof{Country}{70}[key]{code}      \attributeof{Country}{130}{pop.}      \attributeof{Country}[3em]{190}{area}      \attributeof{Country}{230}{gov.}      \attributeof{Country}{280}{infl.}      \attributeof{Country}[3em]{330}{gdp}      \attributeof{Country}[4em]{100}{pop.grw}      \attributeof{Country}[5em]{160}{inf.mort}      \attributeof{Country}[6.5em]{-30}{gdp.agr}      \attributeof{Country}[5.5em]{-50}{gdp.serv}      \attributeof{Country}[5em]{-80}{gdp.ind}      \attributeof{Country}[5em]{-120}{governm.}     %      \attributeof{Continent}{-60}[key]{name}      \attributeof{Continent}{-120}{area}     %      \attributeof{Language}{90}[key]{name}      \attributeof{speak}{60}{percent}     %      \attributeof{EthnicGrp}{90}[key]{name}      \attributeof{belong}{-90}{percent}     %      \attributeof{Religion}{90}[key]{name}      \attributeof{believe}{-90}{percent}     %      \attributeof{encompasses}[4em]{-160}{percent}     %      \attributeof{Province}[4em]{180}[key]{name}      \attributeof{Province}{225}{pop.}      \attributeof{Province}{270}{area}     %      \attributeof{Lake}{0}[key]{name}      \attributeof{Lake}{180}{area}     %      \attributeof{River}{90}[key]{name}      \attributeof{River}{180}{length}     %      \attributeof{Sea}{0}[key]{name}      \attributeof{Sea}{180}{depth}     %      \attributeof{Mountain}{135}[key]{name}      \attributeof{Mountain}{45}{height}      \attributeof{Mountain}{-90}{mtcoord}[geo coord]      \attributeof{mtcoord}[3em]{20}{longitude}      \attributeof{mtcoord}[3em]{-20}{latitude}     %      \attributeof{Island}{90}[key]{name}      \attributeof{Island}{40}{islands}      \attributeof{Island}{-90}{islcoord}[geo coord]      \attributeof{islcoord}[3em]{20}{longitude}      \attributeof{islcoord}[3em]{-20}{latitude}     %      \attributeof{Desert}{90}[key]{name}      \attributeof{Desert}{0}{area}     }          \ifx\TeXMaster\undefined     \end{document}     \fi      Any ideas why?


title: Horizontal line not working?

text: I am trying to add a horizontal line in my document.               \documentclass{report}     \begin{document}      \begin{center}     \Huge CV     \end{center}     \line(1,0){250}     \end{document}      For some reason, `\line(1,0){250}` will generate a line that is unequal on your document. What I mean is that the line will appear to be a lot longer on the right than the left. I am tryng to make it long and even. I also want to try to make it thicker if possible.


title: PostScript font not found

text: After switching to a new MikTeX installation on a new computer, I am having a problem with an additional PFB font. The font used to work on the old computer, but I can't see why it doesn't work on the new computer. I installed MikTeX 2.9 for x64.   1. I placed a map file astr1.map with the following text content               astr1 LAstrologyPi-One <astr1___.pfb      into a new subfolder "astrology" of C:\Program Files\MiKTeX 2.9\dvips   2. For specifying the font, I use the TeX command               \font\as=astr1        3. The file `astr1___.pfb` is in a new subfolder "astrology" of folder C:\Program Files\MiKTeX 2.9\fonts\type1   4. In C:\Program Files\MiKTeX 2.9\miktex\config, I appended at the end the following line:               Map astr1.map        5. In a command shell, I started `updmap`   6. After that, I started `initexmf --admin -u` When starting TexWorks and processing the TeX command `\font\as=astr1`, the console logs:               Running miktex-makemf.exe...     miktex-makemf: The astr source file could not be found      Later on, the font cannot be used. I was able to process the same TeX document in an older release on an older machine, however. Why does it log "astr not found" and not "astr1 not found"? Is there a (new) problem with trailing digits in font names? Is my procedure correct so far (I want to install the font in the admin branch, not in the local branch of the file system)? What is going wrong? Can I inspect a list of all installed fonts that are available on my MikTeX installation?


title: Cross-references: managing references when there are 1000+ across 100 pages

text: I am using Emacs with AUCTeX in case that matters. I have many `\label`ed items and was wondering if there is a way to bring up a list of them? I hate having to scroll through to the document to find the `\label{eq:...}`, `\label{fig:...}`, etc. since I can't remember all the names. Is there an easy way to see a list of them when I am looking to cross- reference one. So right now I am trying to reference two equations, but I can't remember the label name. How can I obtain it without scrolling through the `.tex` file? What do I do from here? I can't get to the `\ref` option no matter what I hit or do. ![enter image description here](http://i.stack.imgur.com/Bixjb.png)


title: TeXworks with XeLaTeX + MakeIndex + BiBTeX + shell escape?

text: I have tried following this answer, but it gives me: > xelatex.exe: Invalid command-line option > > xelatex.exe: Data: unknown option Shell-escape is required for minted, and is enabled for XeLaTeX using `-enable-write18`. What I write in LaTeX include articles with BiBTeX references. Here is the usual format I take:               \documentclass[conference]{IEEEtran}     \usepackage{cite}     \usepackage{epstopdf}     \usepackage[cmex10]{amsmath}     \usepackage{filecontents}     \begin{filecontents*}{references.bib}     @phdthesis{michael_power_1991,         title = {The Power of Two Choices in Randomized Load Balancing},         url = {http://www.eecs.harvard.edu/~michaelm/postscripts/mythesis.pdf},         school = {Harvard},         author = {Michael David Mitzenmacher},         year = {1991}     }     }     \end{filecontents*}      …               \bibliographystyle{plain}     \bibliography{references}     \end{document}      ### How do I add PDF rendering support for these typeset requirements within TeXworks?


title: On \atop again: how to obtain the same result without warning

text: I know this question has been already discussed but the answer does not seem to work in my case. I am using the `\atop` command with the `amsmath` package to stack two symbols (more specifically `$a=x$` and `$b=y$`) but, as well known, this is foreign to LaTeX. The standard reply I found (and LaTeX warning suggestion) is to use `\frac` or `\genfrac`, but these will insert a line between the two symbols, that I do not want. The other suggestion is to use `\overset`, but this treats the symbol below as main and prints it bigger than the one above. How do I obtain the same result as `\atop` without getting the LaTeX warning?


title: Accented operators using babel

text: I'm using the `es-minimal` option in `babel` which, among other things, disables accents on operators. Since I want accented operators I used the `\accentedoperators` command however the operators remain unaccented.               \documentclass{article}     \usepackage[spanish,es-minimal]{babel}     \accentedoperators      \begin{document}     $\lim$     \end{document}


title: Making global footnotes inside a minipage with hyperref support

text: I would like to make footnotes inside a minipage that use the global footnote counters and the hyperref package. I'm having trouble getting hyperref to make the correct references. I imagine I need to change the Hfootnote counter but I haven't had any luck with that and I'm not sure exactly what's going on. I tried adding a \addtocounter{Hfootnote}{-1} and \stepcounter{Hfootnote} but that didn't help. Below is a minimal example.               \documentclass{article}     \usepackage{hyperref}     \begin{document}     \noindent\ldots{} main text\footnote{Before minipage} \ldots\par     \fbox{\begin{minipage}{.5\linewidth}         A footnote to use global footnotes.\footnotemark         A second global footnote.\footnotemark     \end{minipage}}     \addtocounter{footnote}{-1}     \footnotetext{First global footnote inside minipage}     \stepcounter{footnote}     \footnotetext{Second global footnote inside minipage}     \par     \noindent\ldots{} main text\footnote{After minipage} \ldots\par     \end{document}      Clicking on the first footnote inside the minipage does not yeild the expected result.


title: How to remove figure label?

text: I'm using `floatrow` package to organise my figures, but then would like to add an image in the preliminary chapters which should NOT contain figure label e.g. _Figure 1_ , but only the caption _To my family_. I also want to eliminate the underline of caption which `floatrow` does. Is there a way to get around this? The code is as below:               \begin{figure}[!h]     \ffigbox[\FBwidth]     {\color{blue}\includegraphics[width=6cm,height=6cm]{./Figures/flower.png}}     {\caption{To my family}}     \end{figure}


title: HTML/mathjax on arXiv

text: have seen some HTML papers on arxiv in the past. > is there a standard for HTML+mathjax or HTML+LaTeX papers on arxiv? > examples? basically am looking for a less complex version of a paper format that does not require full compiling with a latex compiler etc., somewhat like wordpress pages that allow some basic latex expressions, or like on stackexchange.


title: left alignment for equation by using aligned

text: I used equation to write my Comment set. But when I used `aligned`, it doesn't show a left alignment. This is my code :               \begin{equation}     \begin{aligned}     Comments=\{\{7322,{""}\},\{7424,\text{"remove unnecessary default editor parts"},\\ \text{"Add the updated Bugzilla people part"}\}\\, \{7696,\text{"remove unnecessary default editor parts"},\\ \text{"Add the updated Bugzilla people part"},\text{"Add Bugzilla vote Planning part"}\} ,\\ \{8045,\text{"Task Submit Error"},\text{"Please enter a short summary before submitting"},\\ \text{"Please select a component before submitting"},\\,     \{8565,\text{"org.eclipse.mylyn.bugzilla.ui.editors.part.flags"}\\,\text{"org.eclipse.mylyn.bugzilla.ui.editors.part.planning"},\\ \text{"Force the most recent known good token onto the outgoing task data to ensure submit"}\}\\,     \{\{7710,7691\}\text{"remove unnecessary default editor parts"},\\ \text{"Add the updated Bugzilla people part"},\text{"Add Bugzilla vote Planning part"},\\ \text{"org.eclipse.mylyn.bugzilla.ui.editors.part.flags"}\}\}\}     \end{aligned}     \nonumber     \end{equation}       How I can have left alignment?


title: How to imitate great looking Motion Mountain ToC, including hyperlinks?

text: I wanted to customize my ToC to look more or less like the one in Motion Mountain physics textbook, including clickable page numbers. My decision was to use `hyperref` and `titletoc`packages. Now it seems like there is a problem with compatibility (I guess) of these two. **Background.** Table o contents of my `article`-class document shows only sections and subsections. Sections (both labeled/numbered and not) are supposed to be format with basic `\titlecontents`, while subsections with the starred version. It looks like the latter is the cause of the bad linking. **The problem.** Everytime a given section follows one with subsections, the former is improperly linked to first of these subsections. Every other section and all subsections are OK. **MWE:**               \documentclass{article}          \usepackage[cp1250]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{titletoc}         \titlecontents{section}[.5pc]%             {\addvspace{.5pc}\normalsize\makebox[2pc][r]{\thecontentspage\hspace{1pc}}}%             {\makebox[2.5pc][r]{\thecontentslabel\hspace{1pc}}}%             {\makebox[2.5pc][r]{\null}}%             {}%     % comment this starred part and it does work...         \titlecontents*{subsection}[6.5pc]%             {\small}{}{}%             {\hspace{5pt}\thecontentspage}%             [\ \textbullet\ ]          \usepackage[colorlinks,linktoc=page]{hyperref}               \begin{document}          % Frontmatter - only unnumbered/unlabeled sections     \pagenumbering{roman}         \section*{Frontmatter Section Pre-TOC}              % TOC ...goes to TOC.         \clearpage         \phantomsection         \addcontentsline{toc}{section}{\contentsname}         \tableofcontents              \clearpage         \phantomsection         \section*{Frontmatter Section 1}         \addcontentsline{toc}{section}{Frontmatter Section 1}              \clearpage         \phantomsection         \section*{Frontmatter Section 2}         \addcontentsline{toc}{section}{Frontmatter Section 2}          % Mainmatter - only numbered/labeled sections     \clearpage     \pagenumbering{arabic}         \clearpage         \section{Section 1}             \subsection{Subsection 1.1}             \subsection{Subsection 1.2}             \subsection{Subsection 1.3}              \clearpage         \section{Section 2}              \clearpage         \section{Section 3}             \subsection{Subsection 3.1}             \subsection{Subsection 3.2}              \clearpage         \section{Section 4}             \subsection{Subsection 4.1}             \subsection{Subsection 4.2}             \subsection{Subsection 4.3}             \subsection{Subsection 4.4}             \subsection{Subsection 4.5}              \clearpage         \section{Section 5}              \clearpage         \section{Section 6}             \subsection{Subsection 6.1}             \subsection{Subsection 6.2}             \subsection{Subsection 6.3}          % Backmatter - all (sub)sections w/o labels         \clearpage         \phantomsection         \section*{Backmatter Section 1}         \addcontentsline{toc}{section}{Backmatter Section 1}             \phantomsection             \subsection*{Backmatter Subsection 1.1}             \addcontentsline{toc}{subsection}{Backmatter Subsection 1.1}                  \phantomsection             \subsection*{Backmatter Subsection 1.2}             \addcontentsline{toc}{subsection}{Backmatter Subsection 1.2}              \clearpage         \phantomsection         \section*{Backmatter Section 2}         \addcontentsline{toc}{section}{Backmatter Section 2}              \clearpage         \phantomsection         \section*{Backmatter Section 3}         \addcontentsline{toc}{section}{Backmatter Section 3}          \end{document}      So it looks like it is all caused by the starred `\titlecontents*`... I added `\clearpage`s just to lengthen the output file and add some pages, that does not change anything else. Thanks in advance for helping me figure this out. **EDIT:** Maybe a possible workaround would be using `etoolbox` lists with custom counters, most likely with custom links, too? **EDIT 2:** Is there anybody who at least managed to reproduce the error with given MWE? ;-) I somewhat know that `hyperref` doesn't talk to `titletoc` much, but have no idea to what extend they're incompatible with each other. In other words, is my problem a common one? Or maybe the opposite: is it _too localized_? Answer even to that question would mean something to me :-) To summarize this: it seems it's all about some issues with the starred `titlecontents*` macro. All links are fine using _the classic one_ \-- it gets messy only if you group ToC entries in one paragraph... I did some timid attempts to work it out, found examples and made some progress... Now I see it's the `hyperref` thing, it's just something wrong with the link-algorithm in grouped ToC. Initially I blamed `titletoc` only, so tried to make my ToC look the same using other tools. That _of course_ was a dead end, to say the least. Links were everytime wrong in the same manner. I feel helpless... Anyway, maybe someone could give me a hand and **try to work on these links** only? I would appreciate the smallest feedback :-)


title: Tikz Spacing after horizontal line

text: I'm trying to draw an ornament after a horizontal line, with a small spacing between the figure and the line, but `xshift` doesn't seem to work when I connect the line to a node. I'm attempting to do this               \draw ([yshift=-10pt]current page header area.south west) -- %     ([xshift=-5pt,yshift=-10pt]current page header area.south); %     node {\pgfornament[width=0.5cm]{1}};


title: Since adding natbib, my tikz nodes are misplaced

text: > Sorry! My "solution" at the bottom didn't actually fix the problem, and the > reasons I thought it did are too embarrassing to post. I did manage to solve > the problem, by having a total of FOUR TeX runs rather than the usual three. I have been making a dictionary-style reference book based on the beautiful "bilingual dictionary" showcased here. I included the tabs down the side with the current letter in white on a black rectangle. It worked beautifully until I added the references using the "natbib" package. Since then, the tabs on the ODD pages only are appearing at the wrong x coordinate, though their y coordinates are correct. Many are in the correct page, but some wander to the right, even completely off the page, and some wander to the left, covering up text. When I comment out the natbib includepackage (and put in dummy macros so that it compiles), the tabs work fine again. I have not yet worked up a minimal example, but I'm hoping someone may have ideas that will fix it without spending the time doing that. Here is the operative part of the code:               \newcommand{\oddthumb}[1]{%     \begin{tikzpicture}[remember picture, overlay]         \node [thumb,fill=\BoxColor, anchor=north east,] at ($%             (current page.north east)-%             (0,\thumbtopmargin+\value{letternum}*\thumbheight)%         $) {#1};        \end{tikzpicture}     }     \newcommand{\eventhumb}[1]{%     \begin{tikzpicture}[remember picture, overlay]         \node [thumb,fill=\BoxColor, anchor=north west,] at ($%             (current page.north west)-%             (0,\thumbtopmargin+\value{letternum}*\thumbheight)%         $) {\hspace*{.375in}#1};%was .125        \end{tikzpicture}      }          % this macro is invoked at the beginning of each new letter, i.e., A, B, C, etc          \newcommand{\lettergroup}[1]{%     \fancyhead[LE]{\eventhumb{#1}{\sffamily\selectfont{\textbf{\thepage\hspace{1 em}\rightmark}}}}%     \fancyhead[RO]{\oddthumb{#1}{\sffamily\selectfont{\textbf{\leftmark\hspace{1 em}\thepage}}}}%     \stepcounter{letternum}%step the counter of the letters     }


title: What is pronounciation of ConTeXt

text: How should I pronounce ConTeXt? In TeX and LaTeX x is χ so it is TeΧ and LaTeΧ. However the t after X make such pronounciation in ConTeXt difficult.


title: Switching To ConTeXt Minimals: Missing Last Step for MacTeX 2010

text: While digging around in my texmf-dist/doc/context/document/general/manuals directory, as I'm want to do on a Sunday, I found the "tiptrick" PDF, which helpfully suggests that I can install the ConTeXt minimals by doing the following:                cd ..../tex/texmf-local        wget http://www.pragma-ade.com/context/current/cont-tmf.zip        unzip cont-tmf.zip        texexec --make --alone --all      I do this in my $HOMETEXMF directory. The trouble is, I get the following head and tail when I run it from TextMate:               MTXrun | warning: no format found, forcing remake (commandline driven)     MTXrun | fileio: loading configuration file '/usr/local/texlive/2010/texmfcnf.lua'      ...               '/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/e9159e878e989105b2ef2d27fad97515/trees/1240e363db2f4c53de58379d2b0c6f6b.luc'     ...andrew/src/texmf/scripts/context/lua/mtx-context.lua:985: attempt to call upvalue 'make_mkiv_format' (a nil value)      The interweb has suggested a few things. `minstall.pdf` as a document of interest... not found on my computer anywhere...               source /opt/context-minimals/setuptex      Sounded promising, but nothing like that is in my install anywhere, except a Windows batch file called `setuptex.bat` and not in my directory. I tried `texexec --make --all`, if that's supposed to help. So, using texexec seems to work now, but only kinda-sort-of. Getting fonts to work, either with `simplefonts` (`Un defined control sequence. l.139 \doifolderversionelse`) or by using:               \usetypescriptfile[type-mac]     \usetypescript[gillsans]     \setupbodyfont[Gill Sans,12pt]      So, why is `mtxrun` now broken? Which should I be using, `texexec` or `mtxrun`? Why is `simplefonts` broken and what really is the best method for font selection, given that I want to be able to put the fonts into my tds tree and have them portable between multiple computers that are building these documents, which are updated from source control. (I assign my `$HOMETEXMF` directory to `src/texmf` on every computer and plan on updating ConTeXt and related packages within this). I admit to not fully understanding everything about this system, and I appologize for asking things that are probably explained somewhere else. I swear I've done my share of searching for the answer elsewhere. :) I'd be happy to RTFM, if I could find one that had the relevant information! :) Thanks all!


title: Beamer slides look blurry at lower resolutions

text: I prepare slides using Beamer and PDFLaTeX. The command I use to run PDFLaTeX is the default AUCTeX command:               pdflatex  -interaction=nonstopmode "\input" <INPUT_FILE>      The slides look fine on my screen at my default resolution (1360x768), but if I have to step down the resolution (e.g., to 640x480) when I connect to a projector, they look aliased and blurry. Probably this has something to do with the kinds of fonts that are being used, but I don't know how to fix it. Any suggestions?


title: Getting "You have to run LaTeX again to get the references right " over and over again

text: on Ubuntu 10.04 with Emacs 23.1.1 and TexLive, writing a book (scrbook) spread over different files, I have the following problem: Doing C-c C-c in Emacs (the usual cycle LaTeX BibTeX LaTeX LaTeX) I get "You have to run LaTeX again to get the references right" over and over again, although pdfLaTeX writes the files and there are apparently no references missing in the pdf ( a search for "??" gave 0 results). Before telling the whole story I would like to ask If anybody experienced this problem before, because I could not find any reports. Is diagnosis and treatment of similar cases available somwhere?


title: How to prevent different checksums for different typesets

text: If I consider a simple LaTeX document such as:               \documentclass[11pt]{article}     \begin{document}     Hello, World!     \end{document}      then if I typeset it multiple times I get a different checksum each time               $ pdflatex test     This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)      restricted \write18 enabled.     entering extended mode     ...     Output written on test.pdf (1 page, 12592 bytes).     Transcript written on test.log.     $ cksum test.pdf     2770399004 12592 test.pdf     $ pdflatex test     This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)      restricted \write18 enabled.     entering extended mode     ...     Output written on test.pdf (1 page, 12592 bytes).     Transcript written on test.log.     $ cksum test.pdf     1225641903 12592 test.pdf      The different checksum is due to three lines changing in the PDF file:               /CreationDate (D:20101115092454-05'00')     /ModDate (D:20101115092454-05'00')     ...     /ID [<E52BBC1CEFDC95455342C233D35D790A> <E52BBC1CEFDC95455342C233D35D790A>] >>      This is also the case with more complicated LaTeX input. Is there a way to typeset LaTeX files that would avoid this issue, so that if typeset multiple times, the checksum of the PDF file stays the same?


title: Character on hanging list

text: I'm the maintainer of the `ledmac` package (for critical editions). I would like to have the possibility to start all the lines with hanging indentation with some chosen character, like this (where this character would be `[`):               A very long, very long, very long,very long,        [very long, very long, very long line        [A hanged line        [Another hanged line     A very long, very long, very long,very long,        [very long, very long,very long line


title: Remove author from title page keep in footer on Beamer

text: I was wondering since I'm new to Beamer, if there was a way to prevent `\author{}` from showing up on the title page, I would however, like to keep it in the footer of my slides. Thanks,


title: xetex: broken accent over cyrillic letters in some fonts

text: I just noted that XeLaTeX yields wrong accents over cyrillic letters if I use > Arno Pro or > Myriad Pro fonts. I mean the command like these: \'{o}, `{o}, \~{o}, \c{o}, \d{o}, e.c.t. They produce correct output if o is Latin but do not work as expected for cyrilic letters (I tried а, о, в). This problem is absent if I take other fonts (I tried Cambria, Calibri). It seems that fontspec package should be patched to correct this problem but also there is a question of how to bypass the problem before that package right now. My code is attached below.               % !Mode:: "TeX:UTF-8"     \documentclass{article}     \usepackage{ifpdf,ifxetex,ifluatex}          \ifxetex     \usepackage{polyglossia}         \setdefaultlanguage{russian}         %\setotherlanguages{english,german,french}     \usepackage{fontspec}         \defaultfontfeatures{Ligatures={TeX}}         \setmainfont{Arno Pro}% wrong accents         %\setmainfont{Cambria}         %\setmainfont{Calibri}         \setsansfont{Myriad Pro}         \setmonofont{Consolas}     \usepackage[math-style=TeX]{unicode-math}         %\setmathfont{Cambria Math}         \setmathfont{Asana Math}     \fi          \ifluatex     \usepackage[russian]{babel}     \usepackage{fontspec}         \defaultfontfeatures{Renderer=Basic,Ligatures={TeX}}         \setmainfont{Arno Pro}         \setsansfont{Myriad Pro}         \setmonofont{Consolas}     \usepackage[math-style=TeX]{unicode-math}         %\setmathfont{Cambria Math}         \setmathfont{Asana Math}           \fi          \begin{document}%          \ifluatex         This is LuaTeX.     \else\ifxetex         This is XeTeX.     \else\ifpdf         This is PDFLaTeX.     \else         This is LaTeX.     \fi\fi\fi              \begin{table}[h]         \def\MacroFont{\fontencoding\encodingdefault                \fontfamily\ttdefault                \fontseries\mddefault                \fontshape\updefault                \selectfont}%         \def\PrintMacroName#1{{\strut\MacroFont\string #1}}         \newcommand{\X}[1][1]{\ensuremath{^{#1)}}}%         \newcommand{\XX}{\X[2]}%         \newcommand{\tac}[2][o]{\texttt{\PrintMacroName{#2}\string{#1\string}}}%         \vspace{-0.5\baselineskip}         \begin{center}         \caption{Latin Letter o}         \begin{tabular}{@{}*{4}{ll@{\hspace{6ex}}}ll@{}}         \`{o} & \tac{\`}     & \~{o} & \tac{\~}  & \v{o} & \tac{\v}     & \c{o} & \tac{\c}             & \"{o} & \verb§\"{o}§ \\         \'{o} & \tac{\'}     & \={o} & \tac{\=}  & \H{o} & \tac{\H}     & \d{o} & \tac{\d}             & \u{o} & \tac{\u} \\         \^{o} & \tac{\^}     & \.{o} & \tac{\.}  & \r{o}& \tac{\r}      & \b{o} & \tac{\b}             & \t{oo}& \tac[oo]{\t} \\         \end{tabular}              \caption{Cyrillic Letter о}         \begin{tabular}{@{}*{4}{ll@{\hspace{6ex}}}ll@{}}         \`{о} & \tac{\`}     & \~{о} & \tac{\~}  & \v{о} & \tac{\v}     & \c{о} & \tac{\c}             & \"{о} & \verb§\"{о}§ \\         \'{о} & \tac{\'}     & \={о} & \tac{\=}  & \H{о} & \tac{\H}     & \d{о} & \tac{\d}             & \u{о} & \tac{\u} \\         \^{о} & \tac{\^}     & \.{о} & \tac{\.}  & \r{о}& \tac{\r}      & \b{о} & \tac{\b}             & \t{oo}& \tac[oo]{\t} \\         \end{tabular}              \caption{Cyrillic Letter в}         \begin{tabular}{@{}*{4}{ll@{\hspace{6ex}}}ll@{}}         \`{в} & \tac{\`}     & \~{в} & \tac{\~}  & \v{в} & \tac{\v}     & \c{в} & \tac{\c}             & \"{в} & \verb§\"{в}§ \\         \'{в} & \tac{\'}     & \={в} & \tac{\=}  & \H{в} & \tac{\H}     & \d{в} & \tac{\d}             & \u{в} & \tac{\u} \\         \^{в} & \tac{\^}     & \.{в} & \tac{\.}  & \r{в}& \tac{\r}      & \b{в} & \tac{\b}             & \t{oo}& \tac[oo]{\t} \\         \end{tabular}         \end{center}         \end{table}     \end{document}


title: Beamer Graphics driving me nuts

text: I am using the theme here: http://cameron.bracken.bz/beamer-template When I include a figure as:               \begin{frame}{frame 2}     \includegraphics[scale=.2]{beta_1.eps}     \end{frame}      and run pdfLatex, I get the following error:               ! Latex Error: unknown graphics extension .eps      What is going on and how do I fix this? I am using WinEdt as the front end and I am on a windows machine. The picture is in the same folder as the source file and there are no typos etc. Compiles as "Latex" and "Texify", but I don't see the bubbles on the heading bar.


title: The traces of an elliptic paraboloid seem to be off when using pst-3dplot

text: I am trying to sketch an elliptic paraboloid given by `z=\frac{x^2}{4}+y^2` using pst-3dplot. I used `\parametricplotThreeD` to sketch the graph. The trace on the plane z=3 is an ellipse with major axis 4 and minor axis 2. I sketched both the major axis and the minor axis (of that trace) on the same figure. However those two segments do not match the trace. The trace seems to be off in the figure. What am I doing wrong? The following is the code.               \documentclass[12pt]{report}     \usepackage{pst-3dplot}          \begin{document}     \begin{pspicture}(-.25\linewidth,-1)(.25\linewidth,4.5)      \pstThreeDCoor[xMax=3,yMax=3, zMax=4,IIIDticks]     \pstThreeDLine(2,0,3)(-2,0,3)     \pstThreeDLine(0,1,3)(0,-1,3)     \pstThreeDPut(0,0,2){\psdot}     \parametricplotThreeD[plotstyle=curve,yPlotpoints=20](0,360)(0,1){t cos 2 mul u mul t sin u mul u dup mul 2 mul 2 add}     \end{pspicture}     \end{document}