title: dot2tex: some frames are missing

text: I'm trying to dot2tex to render automata. For reasons I do not understand, the rendering is missing some boxes. For the following Dot file input:               digraph     {       rankdir = LR       {         I0 [shape = point, width = 0]         F4 [shape = point, width = 0]       }       {         0 [label = "a((a+b) : b^* :  c)", texmode = math, shape = box ]         1 [label = "(a+b):b^*:c"        , texmode = math, shape = box ]         2 [label = "b^*:c"              , texmode = math, shape = box ]         3 [label = "(a+b):b^*"          , texmode = math, shape = box ]         4 [label = "b^*"                , texmode = math, shape = box ]       }       edge [texmode = math]       I0 -> 0       0 -> 1 [label = "a"]       1 -> 1 [label = "b"]       1 -> 2 [label = "a, b"]       1 -> 3 [label = "c"]       2 -> 2 [label = "b"]       2 -> 4 [label = "c"]       3 -> 3 [label = "b"]       3 -> 4 [label = "a, b"]       4 -> F4       4 -> 4 [label = "b"]     }      Using `dot2tex --crop --nominsize --autosize --usepdflatex ex.dot > ex.tex && texi2dvi --pdf ex.tex` to compile, I don't have a single box displayed at all in the generated PDF: ![enter image description here](http://i.stack.imgur.com/Qw2pT.png) As demanded, this is the generated LaTeX file:               \documentclass{article}     \usepackage[x11names, rgb]{xcolor}     \usepackage[utf8]{inputenc}     \usepackage{tikz}     \usetikzlibrary{snakes,arrows,shapes}     \usepackage{amsmath}     %     %          \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}     \setlength\PreviewBorder{0pt}%          %          \begin{document}     \pagestyle{empty}     %     %     %          \enlargethispage{100cm}     % Start of code     % \begin{tikzpicture}[anchor=mid,>=latex',line join=bevel,]     \begin{tikzpicture}[>=latex',line join=bevel,]       \pgfsetlinewidth{1bp}     %%     \begin{scope}       \pgfsetstrokecolor{black}       \definecolor{strokecol}{rgb}{1.0,1.0,1.0};       \pgfsetstrokecolor{strokecol}       \definecolor{fillcol}{rgb}{1.0,1.0,1.0};       \pgfsetfillcolor{fillcol}     \end{scope}     \begin{scope}       \pgfsetstrokecolor{black}       \definecolor{strokecol}{rgb}{1.0,1.0,1.0};       \pgfsetstrokecolor{strokecol}       \definecolor{fillcol}{rgb}{1.0,1.0,1.0};       \pgfsetfillcolor{fillcol}     \end{scope}       \pgfsetcolor{black}       % Edge: 1 -> 1       \draw [->] (236.33bp,68.032bp) .. controls (232.73bp,77.033bp) and (236.41bp,86bp)  .. (247.37bp,86bp) .. controls (254.05bp,86bp) and (258.02bp,82.67bp)  .. (258.41bp,68.032bp);       \definecolor{strokecol}{rgb}{0.0,0.0,0.0};       \pgfsetstrokecolor{strokecol}       \draw (247.37bp,95bp) node {$b$};       % Edge: 2 -> 2       \draw [->] (374.7bp,100.02bp) .. controls (370.35bp,108.81bp) and (373.74bp,118bp)  .. (384.87bp,118bp) .. controls (391.65bp,118bp) and (395.56bp,114.59bp)  .. (395.04bp,100.02bp);       \draw (384.87bp,127bp) node {$b$};       % Edge: 4 -> 4       \draw [->] (491.47bp,65.023bp) .. controls (489.16bp,73.814bp) and (490.96bp,83bp)  .. (496.87bp,83bp) .. controls (500.38bp,83bp) and (502.44bp,79.762bp)  .. (502.27bp,65.023bp);       \draw (496.87bp,92bp) node {$b$};       % Edge: 1 -> 3       \draw [->] (287.93bp,42.947bp) .. controls (304.38bp,37.725bp) and (323.54bp,31.646bp)  .. (350bp,23.248bp);       \draw (319.37bp,44.5bp) node {$c$};       % Edge: 4 -> F4       \draw [->] (512.68bp,54.5bp) .. controls (520.55bp,54.5bp) and (530.34bp,54.5bp)  .. (549.15bp,54.5bp);       % Edge: I0 -> 0       \draw [->] (21.657bp,55.5bp) .. controls (28.347bp,55.5bp) and (37.759bp,55.5bp)  .. (58.115bp,55.5bp);       % Edge: 3 -> 3       \draw [->] (374.16bp,25.032bp) .. controls (370.67bp,34.033bp) and (374.24bp,43bp)  .. (384.87bp,43bp) .. controls (391.34bp,43bp) and (395.2bp,39.67bp)  .. (395.58bp,25.032bp);       \draw (384.87bp,52bp) node {$b$};       % Edge: 0 -> 1       \draw [->] (153.71bp,55.5bp) .. controls (167.21bp,55.5bp) and (181.99bp,55.5bp)  .. (205.95bp,55.5bp);       \draw (179.87bp,63.5bp) node {$a$};       % Edge: 3 -> 4       \draw [->] (419.6bp,24.191bp) .. controls (433.26bp,29.053bp) and (449.13bp,34.869bp)  .. (463.37bp,40.5bp) .. controls (466.1bp,41.581bp) and (468.95bp,42.746bp)  .. (481.06bp,47.899bp);       \draw (450.37bp,50.5bp) node {$a, b$};       % Edge: 1 -> 2       \draw [->] (288.66bp,65.609bp) .. controls (309.19bp,70.762bp) and (333.78bp,76.932bp)  .. (362.78bp,84.207bp);       \draw (319.37bp,86.5bp) node {$a, b$};       % Edge: 2 -> 4       \draw [->] (407.08bp,82.752bp) .. controls (425.49bp,76.892bp) and (452.16bp,68.406bp)  .. (481.06bp,59.211bp);       \draw (450.37bp,80.5bp) node {$c$};       % Node: F4     \begin{scope}       \definecolor{strokecol}{rgb}{0.0,0.0,0.0};       \pgfsetstrokecolor{strokecol}       \definecolor{fillcol}{rgb}{0.0,0.0,0.0};       \pgfsetfillcolor{fillcol}     \end{scope}       % Node: I0     \begin{scope}       \definecolor{strokecol}{rgb}{0.0,0.0,0.0};       \pgfsetstrokecolor{strokecol}       \definecolor{fillcol}{rgb}{0.0,0.0,0.0};       \pgfsetfillcolor{fillcol}     \end{scope}       % Node: 1     \begin{scope}       \definecolor{strokecol}{rgb}{0.0,0.0,0.0};       \pgfsetstrokecolor{strokecol}       \draw (247.37bp,55.5bp) node {$(a+b):b^*:c$};     \end{scope}       % Node: 0     \begin{scope}       \definecolor{strokecol}{rgb}{0.0,0.0,0.0};       \pgfsetstrokecolor{strokecol}       \draw (105.87bp,55.5bp) node {$a((a+b) : b^* :  c)$};     \end{scope}       % Node: 3     \begin{scope}       \definecolor{strokecol}{rgb}{0.0,0.0,0.0};       \pgfsetstrokecolor{strokecol}       \draw (384.87bp,12.5bp) node {$(a+b):b^*$};     \end{scope}       % Node: 2     \begin{scope}       \definecolor{strokecol}{rgb}{0.0,0.0,0.0};       \pgfsetstrokecolor{strokecol}       \draw (384.87bp,89.5bp) node {$b^*:c$};     \end{scope}       % Node: 4     \begin{scope}       \definecolor{strokecol}{rgb}{0.0,0.0,0.0};       \pgfsetstrokecolor{strokecol}       \draw (496.87bp,54.5bp) node {$b^*$};     \end{scope}     %     \end{tikzpicture}     % End of code          %     \end{document}     %      If I comment the definition of nodes I0 and F4, then I get some boxes, but not all of them! I would prefer rounded boxes, but that does not seem to work properly either.               digraph     {       rankdir = LR       {         node [shape = point, width = 0]         I0         F4       }       {         node [texmode = math, shape = box, style = rounded]         0 [label = "a((a+b) : b^* :  c)"]         1 [label = "(a+b):b^*:c"]         2 [label = "b^*:c"]         3 [label = "(a+b):b^*"]         4 [label = "b^*"]       }       edge [texmode = math]       I0 -> 0       0 -> 1 [label = "a"]       1 -> 1 [label = "b"]       1 -> 2 [label = "a, b"]       1 -> 3 [label = "c"]       2 -> 2 [label = "b"]       2 -> 4 [label = "c"]       3 -> 3 [label = "b"]       3 -> 4 [label = "a, b"]       4 -> F4       4 -> 4 [label = "b"]     }      I've read the doc, and found nothing interesting. Same problem with tikz output. I looked at the xdot output, and it does output the boxes, the problem seems to come from dot2tex. I've read the --debug logs, and saw nothing fishy. Is there something I missed? Thanks in advance! # `style` has too many meaning (EDIT) Well, it appears that I was using "style" as Graphviz expects it; however it is also interpreted by dot2tex as TikZ style to apply to the node. That might be why I was getting weird results. Further experience led me to the following Dot input file:               digraph     {       d2tdocpreamble = "         \usetikzlibrary{arrows, automata, positioning}         \tikzstyle{automaton}=[shorten >=1pt, pos=.4, >=stealth', initial text=]         \tikzstyle{state}=[rectangle, rounded corners]         \tikzstyle{accepting}=[accepting by arrow]       "       rankdir = LR       {         node [texmode = "math", style = "state"]         0 [label = "a((a+b) : b^* :  c)", style = "state, initial"]         1 [label = "(a+b):b^*:c"]         2 [label = "b^*:c"]         3 [label = "(a+b):b^*"]         4 [label = "b^*", style = "state, accepting"]       }       edge [texmode = "math", lblstyle = auto]       0 -> 1 [label = "a"]       1 -> 1 [label = "b"]       1 -> 2 [label = "a, b"]       1 -> 3 [label = "c"]       2 -> 2 [label = "b"]       2 -> 4 [label = "c"]       3 -> 3 [label = "b"]       3 -> 4 [label = "a, b"]       4 -> 4 [label = "b"]     }      to compile with `dot2tex -f tike --tikzedgelabels --graphstyle=automaton --crop -w --nominsize --autosize ex.dot > ex.tex && texi2dvi --pdf ex.tex`, in which case I get the following result. The edges are too long, but overall, it looks nice. ![Rendering in TikZ format](http://i.stack.imgur.com/KsvqH.png)


title: Big floor symbols for fraction

text: When I write               \lfloor\dfrac{1}{2}\rfloor      the floors come out too short to cover the fraction. How can I lengthen the floor symbols?


title: fancy chapter heading for a book

text: I would like to change the default chapter heading formatting of `book` document class. How can I output something like below : ![](http://i.stack.imgur.com/1rU8n.png)


title: biblatex defernumbers per refsection

text: In one refsection of my document the references are grouped into categories by their keywords. Now I want to print the bibliography for every section based on the category of the citation, e.g. one bibliography for articles with keyword `in` and one bibliography with keyword `out`. For aesthetic I want the bibliographies to be numbered continuously, like in this textual mockup               **In**     [1-1] a. “a”. In: a (a).     [1-2] c. “c”. In: c (c).     [1-3] e. “e”. In: e (e).     **Out**     [1-4] b. “b”. In: b (b).     [1-5] d. “d”. In: d (d).      Hence, I use the `defernumbers` of `biblatex` to number the entries continuously. The problem is, that this leads to the numbering starting with 1 again for every `\printbibliography`. **I'd like to enable`defernumbers` across `\printbibliography` per `\refsection`.** # MWE               \documentclass{article}     \pagestyle{empty}     \usepackage{filecontents}     \begin{filecontents*}{test.bib}     @article{a,       title = {a},       author = {a},       journal = {a},       year = {a},       keywords = {in}     }     @article{b,       title = {b},       author = {b},       journal = {b},       year = {b},       keywords = {out}     }     @article{c,       title = {c},       author = {c},       journal = {c},       year = {c},       keywords = {in}     }     @article{d,       title = {d},       author = {d},       journal = {d},       year = {d},       keywords = {out}     }     @article{e,       title = {e},       author = {e},       journal = {e},       year = {e},       keywords = {in}     }     \end{filecontents*}     \usepackage[       defernumbers=true,       citestyle=numeric,     ]{biblatex}     \defbibheading{subbibliography}[\bibname]{%       \subsubsection*{#1}     }     \addbibresource{test.bib}     \begin{document}     \section{Testing biblatex}     \refsection     \cite{a,b,c,d,e}     \printbibliography[       title={In},       prefixnumbers={\thesection-},       heading=subbibliography,       keyword=in     ]     \printbibliography[       title={Out},       prefixnumbers={\thesection-},       heading=subbibliography,       keyword=out     ]     \endrefsection          \section{Testing biblatex}     \refsection     \cite{a,b,c,d,e}     \printbibliography[       title={In},       prefixnumbers={\thesection-},       heading=subbibliography,       keyword=in     ]     \printbibliography[       title={Out},       prefixnumbers={\thesection-},       heading=subbibliography,       keyword=out     ]     \endrefsection     \end{document}      # Output > ![enter image description here](http://i.stack.imgur.com/cYnMt.png) * * * Of course, bounty will be offered!


title: Adding lines that go from one cell to another on a different row

text: I've google a bit about this topic but I've found no result. I'm trying to write some notes for my University course. The topic is "numerical interpolation methods". More precisely I have to build a table of "finite differences" (here a description, about at mid page you can see a table of values which are "triangular", that's what I have to do) which is pretty easy to do with the `\multirow{n}*{text}` command. What I need though is to add a line that "links", say, the first cell in the first column with the second cell in the second column. How would I do that? Here's an example, you can see lines going from one cell to another. ![An example](http://i.stack.imgur.com/KTJek.png)


title: Combine shorten and bend option in TikZ

text: Is there a way to combine the `bend left` and `shorten` option to make an arc shorter **while keeping its shape** otherwise? i.e., when I do               \begin{tikzpicture}     \node[] (n1) at (0,0) {1};     \node[] (n2) at (4,0) {2};     \draw[->] (n1) to [bend left, shorten >=1cm] (n2);     \draw[->] (n1) to [bend left] (n2); % original arc     \end{tikzpicture}      the shortened arrow has a different shape than the original one.


title: Error designing new arrow in tikz

text: I'm a trying to design a new arrow following instructions from the pgfmanual. I tried the example code (pp 610):               \pgfarrowsdeclare{arcs}{arcs}{...}     {     \pgfsetdash{}{0pt} % do not dash     \pgfsetroundjoin   % fix join     \pgfsetroundcap    % fix cap     \pgfpathmoveto{\pgfpoint{-10pt}{10pt}}     \pgfpatharc{180}{270}{10pt}     \pgfpatharc{90}{180}{10pt}     \pgfusepathqstroke     }          \begin{tikzpicture}          \draw[-arcs,line width=3pt] (-2,0) -- (0,0);     \draw[arcs-arcs,line width=1pt] (-2,-1.5) -- (0,-1);     \useasboundingbox (-2,-2) rectangle (2,2);          \end{tikzpicture}      But I get the following result instead of the one shown in the manual. Any suggestions? ![resultado](http://i.stack.imgur.com/YWstV.png)


title: Figure next to text in beamer

text: I can't get my code to do what I want. I'm working in `beamer` and I want to position my figure on the left side of the frame and the text next to it, but I would like to work with alineas in my text. Here's my latest attempt:               \documentclass{beamer}       \usetheme{Madrid}        \usepackage[dutch]{babel}       \usepackage{curvedarrows}       \usepackage{cutwin}       \usepackage{lipsum}       \usepackage[3D]{movie15}       \def\leq{\leqslant}       \def\geq{\geqslant}             \title{De regel van Horner: \\ Een vleugje geschiedenis}       \date{}            \begin{document}          \addtocounter{framenumber}{-1}            \begin{frame}[plain]         \titlepage       \end{frame}            \begin{frame}              \begin{tabular}{cl}                  \includegraphics[height=5cm, width=3.5cm]{horner} & bla bla               *here I want to start a new alinea, so in my second column* bla bla                \end{tabular}           \end{frame}          \end{document}


title: Curious behaviour of nested list environments

text: Could someone explain what is happening in the example below? It looks like a bug in the `exam` document class to me.               \documentclass{exam}     \begin{document}     \begin{questions}     \question     This is a question.     \begin{parts}     \part     \begin{subparts}     Text in the wrong place.     \subpart     A subpart.     \end{subparts}     \end{parts}     \end{questions}     \end{document}      The `subparts` environment is defined using a list, so I expected the 'Text in the wrong place' to trigger a 'missing item' error, but it does not. ![Exam bug](http://i.stack.imgur.com/5QjXY.png)


title: "Undefined control sequence" error in .rnw file

text: I see that this error has been posted to tex.stackexchange but the answers seem to differ based on the sytnax used to cause the error, and I cannot find a similar enough context to my own (For instance the answers here would not apply to me because I am not using the multirow package: Error “Undefined control sequence”) In this case, I am using RStudio .rnw file and using knitr to convert it to a .pdf. But I have this common error (the one in the title of my post) at the very first line in this sequence:               <<data,echo=TRUE,cache=TRUE,message=FALSE,tidy=TRUE,warning=FALSE>>=     library(RMySQL)     library(ggplot2)     library(plyr)     library(xtable)     drv <- dbDriver("MySQL")     co <- dbConnect(drv, user="2009Expo", password="R R0cks", port=3306, dbname="accidents", host="headnode.stat.iastate.edu")          dbListTables(co)     dbListFields(co, "accidents")          q = dbGetQuery(co, "select Year, DAY_WEEK, avg(DRUNK_DR>0), stddev(DRUNK_DR>0),     sum(DRUNK_DR>0) from accidents group by Year, DAY_WEEK")     names(q) = c("year", "day", "drunk_avg", "drunk_stdev", "total")     q$day = as.factor(q$day)     levels(q$day) = c("sun", "mon", "tues", "wed", "thurs", "fri", "sat", "NA")          @


title: \printbibliography only with \citetitle occurrences

text: I want to print two bibliographies:   * first, a classic bibliography with documents I cited in my text, I always use `\footcite{}`   * and a second who references only occurrences `\citetitle{}` Actually, I mark my references of pictures, artworks, musical works, performances, art exhibitions, museum exhibitions or architectural works in my text with `\citetitle{}`. I don't need use `\footcite{}` for that. I reserved to verbal works: books, articles, podcasts, etc. But I want they be referenced in another final references section, named here "Œuvres & monuments", possibly classifed by type of document. Classify by type of document is a section named "film" with all my films referenced, another one named "paintings" with all my paintings, "photographies" etc. Types appears in my '.bib' with '@misc' for exemple. (Of course, other problem is the translation from my reference management software : `@film` becomes `@electronic` or here `@painting` -> `@misc`…) So, it's between bibliography & index: I have a lot of entries referenced (author, title, date…) like in a bibliography but I want to facilitate indexing like in an index. My solution is using `[backref=true]`… Well, subsidiary question: is it possible using `backref` in a bibliography and not in another ? I resume my questions:   * `\printbibliography` with only `\citetitle` references ?   * classify my first bibliography by `sorting=nyvt` & my second by type (`@image`,`@movie`…) ?   * using `backref` in a bibliography and not in another ? An idea ? Thank you.               \documentclass{scrbook}     \usepackage[style=authortitle-ticomp,sorting=nyvt,isbn=false,doi=false,backref=true]{biblatex}     \usepackage[english,frenchb]{babel}     \addbibresource{Biblio.bib}          \begin{document}     … some \footnote{MerleauPonty:1985wh}, some \citetitle{Burton:1982td,Leradeaudelamedu:1819wn,Persepolis:2007wt} & some words indexed.          \printbibheading     \printbibliography[heading=subbibliography,title={Bibliographie},backref=false]     \printbibliography[heading=subbibliography,title={Œuvres & monuments},backref=true]     \printindex[nam]     \printindex[loc]          \end{document}      My `biblio.bib`               @electronic{Burton:1982td,     author = {Burton, Tim},     title = {{Vincent}},     year = {1982},     language = {anglais}}          @book{MerleauPonty:1985wh,     author = {Merleau-Ponty, Maurice and Lefort, Claude},     title = {{L'{\OE}il et l'Esprit}},     publisher = {Gallimard},     year = {1985},     series = {Folio. Essais},     address = {Paris},     language = {fran{\c c}ais}}          @electronic{Persepolis:2007wt,     author = {Satrapi, Marjane and Paronnaud, Vincent},     title = {{Persepolis}},     year = {2007},     language = {fran{\c c}ais}}          @misc{Leradeaudelamedu:1819wn,     title = {{Le radeau de la m{\'e}duse}},     author = {G{\'e}ricault, Th{\'e}odore},     year = {1819},     read = {Yes}}


title: Why poor display quality for LaTeX PDFs in all readers except those from Adobe?

text: I actually asked this question to superuser.com before, and received some answers. However, I thought my question is specific to LaTeX-generated PDF files, so tex.SE people perhaps know better for such PDFs and font problems, etc. When I read LaTeX-generated PDF files with Adobe Reader or Adobe Acrobat Pro, the display quality is superb. However, for the same PDF files, other PDF readers like Foxit Reader, Sumatra PDF Reader, etc show poor quality: quite timid and fuzzy display. At least in Windows. In Linux systems, any reader is not satisfactory even the Adobe Reader. Why? Is it because the PDF format is created by Adobe? Is there any LaTeX-font problem for other readers? Here are some sample screenshots. All viewers are set to zoom to page width. **(1) Sumatra PDF** ![Sumatra PDF](http://i.stack.imgur.com/sclTJ.png) **(2) PDF X-Change** ![PDF X-Change](http://i.stack.imgur.com/eKpnX.png) **(3) Foxit Reader** ![Foxit Reader](http://i.stack.imgur.com/7N31i.png) **(4) BlueBeam** ![BlueBeam](http://i.stack.imgur.com/bYjl3.png) **(5) Adobe Reader** ![Adobe](http://i.stack.imgur.com/azx2u.png) To me, Adobe Reader clearly is the best. Especially look at the italic capital _T_. Here is the sample PDF file.


title: Section outside multicols environment if section contains a table

text: I am using `\begin{multicols*}{2}` to split my text in two columns on the landscape format paper. Now if I have a tabular, it resizes the tabular to `\linewidth`. What I want is to ask if there is a tabular in a section and if it is the case, I want the whole section to be outside the `\begin{multicols*}{2}`. I know that I could do it manually by inserting `\end{multicols*}` before the section and `\begin{multocols*}{2}` after the section, but I need it to be done automatically, if it is even possible. Maybe someone could help me with my question. I would be very greatful for help. This is what I see: ![enter image description here](http://i.stack.imgur.com/9CONI.png) And this is what I want it to be: ![enter image description here](http://i.stack.imgur.com/8wBic.png)


title: Reset the counter of references in each chapter

text: I am currently busy with writing my PhD book in LaTeX. I want to have separate references list at the end of each chapter. Thanks to my colleague, we have added some line for this purpose and it works great at the moment. The problem now is that the counter continues increasing from the previous chapter. I want to have complete separate references list for each chapter, meaning that the counter should start from 1 for each chapter. Could you please tell me if there is any short solution like an option for this purpose?               \usepackage[backend=bibtex,style=ieee,natbib=true]{biblatex}           \addbibresource{bibliography/ref.bib}          \ExecuteBibliographyOptions{refsegment=chapter,     firstinits=true,backref=true,backrefstyle=two,block=space,defernumbers=true}          \newcommand{\printreferences}%     {\printbibliography[segment=\therefsegment ,heading=myref]}     \defbibheading{myref}{%     \chapter*{References}      then at the and of each chapter I use               \printreferences      Thanks for any comment.


title: ifthenelse equal string comparison fails

text: I am trying to fix some problems with the accessibility.sty package from www.babs.gmxhome.de There is one string comparison which always results to false, i.e. the language code definition will not be executed.               \ifthenelse{\equal{#1}{\string german}}{\gdef\LanguageCode{/Lang(DE)}}{}%      Now if I try               \message{#1}     \message{\string german}      The output when compiling a document will be: german german I am really lost, why #1 and the string `german` do not compare to true here... What could be the reason?


title: Itemize with not so small items (vs. Description with unaligned text)

text: My problem is that the items are not so small (hence not bullets) that they exceed left margin. See the example below.               \documentclass[a4paper,12pt]{report}     \begin{document}          \begin{itemize}          \item[ABCD] in the first item, ....          \item[KLMN] in some items like this one, there is so much text that it does not fit in a single line (but this is fine!!!)          \item[WXYZ] ...          \end{itemize}     \end{document}      I tried things like `\setlength{\itemindent}{15pt}` but it does not look good since I obtain lines (after the item) not aligned. I also tried `description` instead of `itemize`, but again I get unaligned text. Thanks.


title: Bold fraction line

text: I would like to use a "bold style" for the fraction line in a math formula. I've seen it in some PDFs, but I do not know the proper command.


title: \includepdfmerge starting new documents on right side page

text: I'm using `pdfjam` to merge a large number of PDF files for subsequent printing. Because I don't want to have pages from different documents on the same physical sheet of paper, I want to issue a `\cleardoublepage` after every document (I have one page per sheet, but I'm printing double-sided). From the `pdfjam` source I found that the core of the call is `\includepdfmerge[$miscOptions]{$filePageList}`. So then the question is: _is there any option for`\includepdfmerge` that will have the effect of `\cleardoublepage` before every inserted document_? I tried:   * `pdfjam --openright`, but this simply unconditionally inserts an empty page before the first page of the document.   * `pdfjam --pagecommand '\\cleardoublepage'`, I had expected this to add empty pages between all pages (not what I want), but tried anyway; it fails with `! LaTeX Error: There's no line here to end.`. * * * Note: The reason I want a single PDF is because the actual process of sending the document to the printer is a bit involved, so I rather have one document with very many pages, than many small documents.


title: How to create numbered examples potentially with letter suffixes, e.g. using enumitem?

text: I have a weird numbering problem in a manuscript that uses sequentially numbered text examples. When an example demonstrates something which is e.g. wrong and later to be corrected they have suffixes a, b, and so on. In between it happens that there is text and possibly other examples which continues the original numbering, e.g: (1) ... example ... ... text ... (2a) ... bad example ... ... enlightening text and example: (3) ... example ... ... after which we might return to the earlier bad example (2a) and show the correction (2b) ... good example ... ... back to normal with more examples: (4) ... example ... I was asked how one would do this in a smart way in LaTeX. I have tried using the enumitem package as follows, but ran into trouble:               \documentclass{article}          \usepackage{enumitem}          \newlist{examples}{enumerate}{1}     \setlist[examples]{label=(\arabic*)}     \newlist{subexamples}{enumerate}{1}          \begin{document}     First an example, which we call 1.     \begin{examples}       \item example     \end{examples}     Then a bad example which we would like to call 2a:      \addtocounter{examplesi}{1}     \begin{subexamples}[series=aname, label=(\theexamplesi\alph*)]       \item example     \end{subexamples}     We learn something new in examples 3 and 4 (with wrong labels):     \begin{examples}[resume]       \item example       \item example     \end{examples}     And we get back to the bad example, which should be 2b:      \begin{subexamples}[resume*=aname]       \item example     \end{subexamples}          \end{document}      The above example produces the labels 1, 2a, 2, 3, 3b. The goal was 1, 2a, 3, 4, 2b. One should be able to reference the individual items, and it should be flexible enough to have more than a single "hanging" example...


title: \openin error using \includecollection from package collect

text: I'm writing a package for a software design document. There is a section related to software interfaces between modules, and another section to describe each module. Here there is a summary of interfaces (functions and variables) used by module, collected from previous section using the package `collect`. I've created some macro to create interfaces (and collecting needed info), and others to place collected info into desired place, but compiling the document gives me multiple occurrences of following error:               ! You can't use a prefix with `\openin'.     <to be read again>                         \openin      l.306 \insertprovidedinterfaces{SUP}      Typing `r` run pdfLaTeX to the end, and the result is exactly what is expected, but I'm not able to understand/get rid of this messages. Any hints? Here is a MWE:               \documentclass[a4paper, oneside, 10pt]{article}     \usepackage[english]{babel}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \renewcommand*\familydefault{\sfdefault}      \usepackage[table, svgnames]{xcolor}     \usepackage{booktabs}     \usepackage{xparse}     \usepackage{xstring}     \usepackage{longtable}     \usepackage{collect}     \usepackage{tikz}%     \usepackage{hyperref}     %%     \colorlet{IFcolor}{Yellow!30!Blue!20}     \colorlet{IFVcolor}{Yellow!80!Blue!20}     %     % definitions of variables containing modules list, later used     % to avoid re-defining an already defined collection     % pfun -> provided functions     % nfun -> needed functions     % pvar -> provided variables     % nvar -> needed variables     \def\pfuncollectionlist{}     \def\nfuncollectionlist{}     \def\pvarcollectionlist{}     \def\nvarcollectionlist{}     %     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % environment for interfaces - functions     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Usage:      % param 1: Provider acronym     % param 2: name of function including ()     % param 3: comma-separated caller list     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \NewDocumentEnvironment{int-interface}{mmm}%     {%before       \phantomsection\label{iifprovided#1-#2}%       % provided function interfaces       \newpfuncollection{#1-provided-fun}%         \begin{collect} {#1-provided-fun}{}{}%        \item \hyperref[iifprovided#1-#2]{#1\_#2}       \end{collect}%       %        % needed function interfaces       \def\callers{#3}       \foreach \caller in \callers%       {%         \newnfuncollection{\caller-needed-fun}%           \begin{collect}{\caller-needed-fun}{}{}%          \item \hyperref[iifprovided#1-#2]{#1\_#2}%         \end{collect}%     }%     %     \small          \longtable[htbp]{>{\columncolor{IFcolor}}p{3.5cm}p{12cm}}\kill%\toprule     \endfirsthead     \multicolumn{2}{l}{\footnotesize\emph{Follows from previous page}} \\     \endhead     % normal foot     \multicolumn{2}{r}{\footnotesize\emph{Continue in the next page}} \\     \endfoot     % last foot     \bottomrule     \endlastfoot     %     % here the stationary contents     \toprule     Syntax & #1\_#2 \\     }%     {%     %after     Callers & #3 \\%     \endlongtable     }%     %     %     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % environment for interfaces - variables     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Usage:      % param 1: Provider acronym     % param 2: name of variable     % param 3: comma-separated caller list, read access     % param 4: comma-separated caller list, write access     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \NewDocumentEnvironment{int-interface-var}{mmmm}%     {%before       \phantomsection\label{iifprovided#1-#2}%     %  provided function interfaces       \newpvarcollection{#1-provided-var}%       \begin{collect}{#1-provided-var}{}{}%      \item \hyperref[iifprovided#1-#2]{#1\_#2}     \end{collect}%     %     %     % needed interfaces      % two consecutive \foreach are used to decide whether writing R, W or R/W     % first loop search for every read caller in writecaller list;      % if read caller is found in writecallers list,      % a 'R/W' is appended; elsewhere, it is 'only' R.      % Then similar thing is done starting from writecaller list:     % if actual writecaller is NOT found in readcaller list, it is marked only W;     % elsewhere nothing has to be done, because R/W has been already treated in      % previous loop (RW)     \def\callersreadlist{#3}     \def\callerswritelist{#4}     % detecting RW or R     \foreach \readcaller in \callersreadlist     {       \IfSubStr{\callerswritelist}{\readcaller}       {         \newnvarcollection{\readcaller-needed-var}%           \begin{collect}{\readcaller-needed-var}{}{}%          \item \hyperref[iifprovided#1-#2]{#1\_#2} [Read/Write]         \end{collect}%       }%       % else%       {%         \newnvarcollection{\readcaller-needed-var}%           \begin{collect}{\readcaller-needed-var}{}{}%          \item \hyperref[iifprovided#1-#2]{#1\_#2} [Read only]         \end{collect}%       }%     }     % detecting W       \foreach \writecaller in \callerswritelist     {       \IfSubStr{\callersreadlist}{\writecaller}       {         % if found, nothing to do       }%       % else%       {%         \newnvarcollection{\writecaller-needed-var}%           \begin{collect}{\writecaller-needed-var}{}{}%          \item \hyperref[iifprovided#1-#2]{#1\_#2} [Write only]         \end{collect}%       }%     }        %     % write longtable     \small           % didascalia ed etichetta     \longtable[htbp]{>{\columncolor{IFVcolor}}p{3.5cm}p{12cm}}\kill%\toprule     \endfirsthead     \multicolumn{2}{l}{\footnotesize\emph{Follows from previous page}} \\     \endhead     % piede normale     \multicolumn{2}{r}{\footnotesize\emph{Continue in the next page}} \\     \endfoot     % piede finale     \bottomrule     \endlastfoot     %     % here the stationary contents     \toprule     Syntax & #1\_#2 \\%     }%     {%     %after     % do the same search as before, to build list of read only, write only and read/write access modules     \def\callersreadlist{#3}%     \def\callerswritelist{#4}%     Accessed by: & %     \foreach\readcaller in \callersreadlist     {%       \IfSubStr{\callerswritelist}{\readcaller}%     {%         % if found     \readcaller{} \accessmode{rw}$\quad$%     }%       % else%     {%     \readcaller{} \accessmode{r}$\quad$%     }%     }%     %       %     \foreach\writecaller in \callerswritelist     {%       \IfSubStr{\callersreadlist}{\writecaller}%     {%     }%       % else%     {%     \writecaller{} \accessmode{w}$\quad$%     %     }%     }%     \\        \endlongtable     }%     %     %     %     %     %     \newcommand{\accessmode}[1]{%       (#1),     }%     %     \DeclareRobustCommand{\insertprovidedinterfaces}[1]{%       \paragraph{Function interfaces}       \IfSubStr{\pfuncollectionlist}{#1}{%     %    Collection '#1-provided-fun' exists         \begin{itemize}           \includecollection{#1-provided-fun}%         \end{itemize}       }{%            None.       }%       \paragraph{Variable interfaces}       \IfSubStr{\pvarcollectionlist}{#1}{%     %    Collection '#1-provided-var' exists         \begin{itemize}           \includecollection{#1-provided-var}%         \end{itemize}       }{%            None.       }%     }%     %     \DeclareRobustCommand{\insertneededinterfaces}[1]{%       \paragraph{Function interfaces}       \IfSubStr{\nfuncollectionlist}{#1}{%     %    Collection '#1-needed-fun' esists         \begin{itemize}           \includecollection{#1-needed-fun}%         \end{itemize}       }{%            None.       }%       \paragraph{Variable interfaces}       \IfSubStr{\nvarcollectionlist}{#1}{%     %    Collection '#1-needed-var' esists         \begin{itemize}           \includecollection{#1-needed-var}%         \end{itemize}       }{%            None.       }%     }%     %     \DeclareRobustCommand{\newpvarcollection}[1]{%       \IfSubStr{\pvarcollectionlist}{#1}{%       }{%         \xdef\pvarcollectionlist{\pvarcollectionlist{} #1}         \definecollection{#1}%       }%     }%     %     \DeclareRobustCommand{\newnvarcollection}[1]{%       \IfSubStr{\nvarcollectionlist}{#1}{%       }{%         \xdef\nvarcollectionlist{\nvarcollectionlist{} #1}         \definecollection{#1}%       }%     }%     %     \DeclareRobustCommand{\newpfuncollection}[1]{%       \IfSubStr{\pfuncollectionlist}{#1}{%       }{%         \xdef\pfuncollectionlist{\pfuncollectionlist{} #1}         \definecollection{#1}%           }%     }%     %     \DeclareRobustCommand{\newnfuncollection}[1]{%         \IfSubStr{\nfuncollectionlist}{#1}{%       }{%         \xdef\nfuncollectionlist{\nfuncollectionlist{} #1}         \definecollection{#1}%       }%     }%     %     \begin{document}     \section{Interfaces}     Here some software interfaces:     \begin{int-interface}{SUP}{eGetActualSystemStatus}{ICP}       Parameters  & None                                        \\       Return type & System status code. Codified value          \\       Purpose     & Obtain actual system status from \emph{SUP} \\     \end{int-interface}     %     \begin{int-interface}{SUP}{eSetOverrideRequest()}{SMB}       Parameters  & Request code: ENTER, EXIT                   \\       Return type & Operation result. Codified value.           \\       Purpose     & To set an override request to \emph{SUP}    \\     \end{int-interface}     %     \begin{int-interface-var}{HAL}{ausInputVoltageSamples}{SENS, I2C}{I2C, ICP}       Type           & Buffer of 5 samples \\       Purpose        & To store acquired input voltage samples\\     \end{int-interface-var}     %     \section{Modules description}     Some descriptive stuff\ldots          \subsection{SUP module}     Other descriptions\ldots          Here is a list of provided interfaces:     \insertprovidedinterfaces{SUP}          \subsection{HAL module}     Other descriptions\ldots          Here is a list of provided interfaces:     \insertprovidedinterfaces{HAL}     \end{document}


title: How to reference the whole figure with subfig?

text: I'm using the `subfig` package in the following way:               Samples of our recordings are shown in the Figure XXXXX.      \begin{figure}     \centering     \subfloat[`One']{\includegraphics[width=8cm]{One.eps} \label{fig:One}}\qquad     \subfloat[`Two']{\includegraphics[width=8cm]{Two.eps} \label{fig:Two}}\\     \subfloat[`Three']{\includegraphics[width=8cm]{Three.eps} \label{fig:Three}}\\     \parbox{15cm}{\vspace{0.4cm}     \caption{The caption goes here.}}     \end{figure}      I'd like to have the XXXXX replaced with something like `\ref{fig:TheWholeFigure}`, so that I can refer to the _whole figure_ , e.g. "Figure 3" (and not each part e.g. "Figure 3b"). How could I achieve this?


title: ^^M garbles my terminal output

text: Contrarily to pdfTeX and XeTeX, which send `^^M` to the terminal for the character `13`, LuaTeX sends the character `13` itself. This garbles the output of my terminal (bash under Ubuntu 10.04).               \edef\foo{\string\^^M}     \message{\meaning\foo ab}      gives               abcro:->\      i.e., the same as               macro:->\     ab       but smashed into a single line. How can I tell LuaTeX to output `^^M` instead?


title: Add new field to biblatex entries

text: Many of the books I use are parts of series. `biblatex` gives you more fields to add bibliographic information to than BibTeX does, but it has no fields appropriate for the editor of a series. If I use the `EDITOR` field, the bibliography will (by default) print `edited by`, which doesn't give the right impression of what the role of the series editor is. I'm wondering if there is any easy way to add a new field `SERIESEDITOR`, which will make `biblatex` by default print its content preceded by `Series edited by` _or_ make sure that whatever is in `SERIESEDITOR` gets printed directly after the name of the series, such that is says something like `[Name of series], edited by [series editor]`. In other words, is there any way I can do this in the preamble of my document, without having to venture into writing new bibliography styles?


title: Pass parameter to texlua script

text: Calling `texlua file.lua` on the command line runs the file through a Lua interpreter. Is it possible to give arguments to the script? For instance, in               -- file.lua     io.write(3.4 + 5.6)     io.write("\n")      How do I make 5.6 into a parameter given on the command line?


title: How to make half-title pages containing captions with conditional headers

text: I am required to typeset some (long) figure captions in the "half-title page(s)" as they do not fit in one page with the figure, for a similar example see this link (except that on the first page I would put the caption instead of "Appendix". https://etd.helpdesk.ufl.edu/present/halftitle.html In other words, I need to typeset captions as if they are texts (except that the caption title needs to appear in the `\listoffigures`, which is taken care of by `\captionof` from the caption package.) However my situation is a bit different:   1. The caption is very long and it does not fall in one page, so I need more than one "half-title page(s)" and cannot use \captionof command. How can I manually typeset a caption as if it it text and have the entry appear int the LOF?   2. Every page after the first half-title page needs to have a header showing "Figure X: continued", including the page with the figure on it. How can I enable headers only for these several "half-title pages", but not for the rest of the document? Even a more "manual" implementation would suffice. I've searched and attempted a bit but nothing really satisfies the requirement. Thanks for any suggestions! Here is a MNWE for your convenience:               \documentclass{report}     \usepackage{setspace}     \usepackage{lipsum}          \begin{document}          \listoffigures          \doublespacing     \clearpage          Figure 1: \lipsum*      % however for the 2nd page of caption, a header "Figure 1: continued"      %on top of each page is required     \clearpage          \centering{Figure 1: continued}      % how to get this Figure X showing the  right number as "Figure 1",     % if I cannot do this with a header (but only in this part of document)?      \begin{figure}     \end{figure}          \end{document}


title: aligning numbers with brackets in tables

text: I am attempting to use Latex to present financial statements. The majority of the work involves the tabular environment with numbers presented in columns which I have set as ragged right. My problem is aligning numbers so that negative numbers which are in parentheses align with the positive ones above and below. there are no decimal points by which I can align the numbers. I have tried adding `hspace` to the positive numbers, but this doesn't do the trick; neither does the `\quad`, `\qquad`. Unable to find any help from google etc. Here is, what I hope is an mwe.               \documentclass[12pt]{report}     \usepackage[top=.8in,bottom=.89in,left=1.25in,right=1.5in]{geometry}     \usepackage[UKenglish]{babel}     \usepackage{amsmath,amssymb,mathtools}     \usepackage{array,booktabs}     \usepackage{parskip}     \usepackage{siunitx}     \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \begin{document}     \begin{tabular}{p{3.5in}p{1in}R{1in}} %     Turnover &  & 24,500\\      Direct Costs &  & (12,250)\\      Gross Profit &  & 12,500\\      \end{tabular}      \end{document}      Am I trying to do the impossible or missing something glaringly obvious? Any help would be greatly appreciated.


title: Spacing between minitoc and next section

text: Please, how can I delete space between minitoc and the introduction?               \chapter{chapter 1}     \renewcommand{\baselinestretch}{1}     \minitoc     \label{CHAPTER1}     \thispagestyle{empty}     \section{Introduction}


title: Line under chapter name at top of the page

text: I am writing a thesis, under the chapter name at the top of the page I would like a line to appear, but I don't have the palest idea on how to do that, I hope you can help. **Edit:** I definitely wasn't clear enough. I meant this part of the page, as shown below: ![enter image description here](http://i.stack.imgur.com/ggdf3.png)


title: pgfplots custom axis scaling function

text: If I have a data set in which most of the interesting stuff happens for small values of `x` then I can use `\begin{semilogxaxis} ... \end{semilogxaxis}` to create a plot with a logarithmic `x` axis, which has the effect of compressing the plot for large `x` values and using more of the plot area for small values of `x`. I have a data set where `0 < x < 1` and everything interesting happens for values of `x` close to 1. I would therefore like to do the opposite of a log plot: use a custom function to specify the progression along the `x` axis so that large values of `x` occupy a disproportionately large part of the plot area. I know I could hack this by transforming the `x` values in my data and then faking custom tick labels, but is there an easy way to get pgfplots to do this automatically?


title: Longtable and multicolumn

text: I've been having some issues with the `longtable` package. I'm creating a table for some UML Case Details but there must be something that I cannot find which is continuously giving me an error (Misplaced \omit. \multispan ->\omit ).               \documentclass[12pt]{article}          \usepackage{longtable}          \begin{document}               \begin{longtable}{| p{3.5cm} | p{2.5cm} | p{3.5cm} | p{2.5cm} |}          \caption{Use case detail}\label{chap3:tab1}          \multicolumn{4}{c}{}\\     \endfirsthead          \multicolumn{4}{c}{\tablename\ \thetable\ -- \textit{Continued from previous page}} \\          \multicolumn{4}{c}{}\\     \hline     \endhead     \hline \multicolumn{4}{r}{\textit{Continued on next page}} \\     \endfoot     \hline     \endlastfoot          \hline     %--------------------------------------------------------------------------------------------------------------     Use Case ID: & \multicolumn{3}{l|}{no}\\     %--------------------------------------------------------------------------------------------------------------     \hline     %--------------------------------------------------------------------------------------------------------------     Use Case Name: & \multicolumn{3}{l|}{nameaaaaaaaaaaaaaaaaaaaaaaa}\\     %--------------------------------------------------------------------------------------------------------------     \hline     %--------------------------------------------------------------------------------------------------------------     Created by: & & Last updated by: &\\     %--------------------------------------------------------------------------------------------------------------     \hline     %--------------------------------------------------------------------------------------------------------------     Date created: & & Date last updated: &\\     %--------------------------------------------------------------------------------------------------------------     \hline     %--------------------------------------------------------------------------------------------------------------     Actors & \multicolumn{3}{l|}{prova}\\     & \multicolumn{3}{l|}{prova}\\     & \multicolumn{3}{l|}{prova}\\     %--------------------------------------------------------------------------------------------------------------     \hline     %--------------------------------------------------------------------------------------------------------------     Description: & \multicolumn{3}{l|}{\parbox{8.5cm}{inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione inserire qui la descrizione }}\\     %--------------------------------------------------------------------------------------------------------------     \hline     %--------------------------------------------------------------------------------------------------------------     Preconditions: & \multicolumn{3}{l|}{1. prova}\\     & \multicolumn{3}{l|}{2. prova}\\     & \multicolumn{3}{l|}{3. prova}\\     %--------------------------------------------------------------------------------------------------------------     \hline     %--------------------------------------------------------------------------------------------------------------     Postconditions: & \multicolumn{3}{l|}{prova}\\     %--------------------------------------------------------------------------------------------------------------     \hline     %--------------------------------------------------------------------------------------------------------------     Normal flow: & \multicolumn{3}{l|}{1. prova}\\     & \multicolumn{3}{l|}{2. prova}\\     & \multicolumn{3}{l|}{3. prova}\\     %--------------------------------------------------------------------------------------------------------------     \hline     %--------------------------------------------------------------------------------------------------------------     Alternative flows: & \multicolumn{3}{l|}{prova}\\     %--------------------------------------------------------------------------------------------------------------     \hline     %--------------------------------------------------------------------------------------------------------------     Exceptions: & \multicolumn{3}{l|}{prova}\\     %--------------------------------------------------------------------------------------------------------------     \hline     %--------------------------------------------------------------------------------------------------------------     Notes and issues: & \multicolumn{3}{l|}{prova}\\     %--------------------------------------------------------------------------------------------------------------     \hline     %--------------------------------------------------------------------------------------------------------------     Attachments: & \multicolumn{3}{l|}{prova}\\     %--------------------------------------------------------------------------------------------------------------     \hline     \end{longtable}          \end{document}          Now, I've put the `\multicolumn{4}{c}{}\\` code before the head and foot because there isn't any recurrent header which I want to reiterate, so I inserted that blank line (which is necessary if I want the "continued from previous page/continued on next page" to be displayed correctly). As you can see on the images, the right margin is not displayed correctly, and the software won't export the pdf. ![This is what Latexian displays on the live preview function, but fails to export the pdf](http://i.stack.imgur.com/3zc9a.png) ![This is what Latexian displays on the live preview function, but fails to export the pdf](http://i.stack.imgur.com/ZZ93o.png)


title: How can I put \cbstart...\cnbend inside \begin{Verbatim}...\end{Verbatim} in LaTeX

text: I am trying to place a changebar outside a block of Verbatim text in LaTeX and it barfs at me every time.               \cbstart     \begin{Verbatim}     blah     blah ...blah     blah...     \end{Verbatim}     \cbend      Results in: ! Argument of \cb@pdfparsexy has an extra }.


title: Faulty page-break in longtable: starts with endfoot

text: while intensively using the `longtable` environment, I ran into a situation where a the table is broken to the next page immediately after its `endfoot` line, without any real table row on the starting page. How to fix this? ![](http://imageshack.us/a/img688/347/longtablepagebreak1.png) MWE:               \documentclass[english,11pt,a4paper]{article}     \usepackage{longtable}[2004/02/01]          \begin{document}     \vspace*{188mm}          Here nearly at bottom of page, a longtable follows\ldots     \begin{longtable}{|l|p{58mm}|}     %     \hline     \endfirsthead     %     \hline\multicolumn{2}{|l|}{\textsl{\ldots continued from previous page}}     \endhead     %     \multicolumn{2}{|l|}{\textsl{will be continued on next page\ldots}}\\*     \hline     \endfoot     %     \hline     \endlastfoot     %     aa: & 4711\\     \hline%     aaa: & 2\\     \hline%     aaaa: & 4711-2\\     \end{longtable}          \end{document}      The problem is that I'm going to create many documents automatically and therefore may not see such layout problems. If the initial vertical space is a bit less or more, the problem disappears... Thanks in advance for help and ideas!


title: Using \eqref with RefTeX

text: How can I open the equation selection buffer in RefTeX automatically when entering `\eqref` in Emacs? I have the following line in my `.emacs` file               (setq reftex-label-alist '((nil ?e nil "~\\eqref{%s}" nil nil)))      But this does not seem to work as I hoped (http://www.gnu.org/software/emacs/manual/html_node/reftex).. Now, entering `\eqref` and then pressing enter, will just insert an empty `\eqref{}` into the buffer. What I would like to happen is the equation selection buffer in RefTeX to be opened, after which I will be able to choose the label to reference from that buffer.. (Note that entering `\ref` (not `\eqref`) works as expected, that is, first I get a question: "Label type: [ efinNst]" and after having chosen the type, the selection buffer is opened) I am using GNU Emacs version 23.3.1 on Ubuntu 12.04. My `.emacs` init file is               (setq TeX-electric-escape t)     (setq reftex-label-alist '((nil ?e nil "~\\eqref{%s}" nil nil)))     (add-hook 'LaTeX-mode-hook 'turn-on-reftex)     (setq reftex-plug-into-AUCTeX t)      Consider the sample file `t.tex`               \documentclass{amsart}     \begin{document}     \begin{align}       \label{eq:1}         1+1=2     \end{align}     \end{document}      Running `emacs t.tex` produces the following in the Emacs message buffer:               Loading 00debian-vars...done     Loading /etc/emacs23/site-start.d/50auctex.el (source)...     Loading /usr/share/emacs/23.3/site-lisp/auctex.el (source)...done     Loading /usr/share/emacs/23.3/site-lisp/preview-latex.el (source)...done     Loading /etc/emacs23/site-start.d/50auctex.el (source)...done     Loading /etc/emacs/site-start.d/50autoconf.el (source)...done     Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...     Loading debian-ispell...     Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done     Loading debian-ispell...done     Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done     Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done     Loading /etc/emacs/site-start.d/50emacs-goodies-el.el (source)...done     Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...     Loading cjk-enc...done     Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done     Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done     Loading /etc/emacs/site-start.d/50lilypond-data.el (source)...done     Loading /etc/emacs/site-start.d/50magit.el (source)...done     Loading /etc/emacs/site-start.d/50octave3.2-emacsen.el (source)...done     Loading /etc/emacs/site-start.d/50org-mode.el (source)...done     Loading /etc/emacs/site-start.d/50psvn.el (source)...done     Loading /etc/emacs/site-start.d/50thailatex.el (source)...done     For information about GNU Emacs and the GNU system, type C-h C-a.     Automatic display of crossref information was turned on     Applying style hooks... done     Sorting environment...     Removing duplicates... done


title: Creating a font with blackboard characters for as many engines as possible?

text: For some texts that I am typesetting, I would like to have more blackboard letters than are usually available with the AMS fonts (or with fourierbb etc.) In particular, I felt the need to denote the function that only assumes 0 as a blackboard 0, but _not_ with, say, `$\mathbb{O}$` (that's a capital letter o, not a zero), and a blackboard 1 for the function that only assumes 1 (this is particularly useful when one is talking about arithmetic functions and the Möbius inversion formula). For typesetting with plain latex, I have used `MinionPro` with `MnSymbols` and looking a little bit, I found the package `bbold` to be _almost_ what I wanted, but with two exceptions:   1. The fonts embedded in the final PDF document are Type 3 fonts.   2. They don't actually match the look of `MinionPro`. Looking a bit further, I saw that the DejaVu fonts produced by the DejaVu project has all symbols in the set `[A-Za-z0-1]` in a very free license, they actually look reasonable with `MinionPro` (and Linux Libertine) and, with the source format in Fontforge, I was able to strip all the characters to create a PostScript Type 1 font. But here is my problem: After I did all that, I am using the following python script to create the `pfb` file, but I had no success using the fonts after installation, but I _did_ have success if I used directly               $\font\blackboardfont=fdjr8r at 10pt$      instead of what I would understand as being the "normal" way:               $\font\blackboardfont=fdj at 10pt$      that is, without the type and encoding hardcoded. This must be a really elementary question, but I am lacking some background here and I would appreciate if others could help me learn what I am doing incorrectly so that I can also offer this on CTAN, as I saw that looking for blackboard letters and numbers is more popular than what I thought at first. If it helps, I can upload the whole stuff that I have here to github.


title: how to use IEEEeqnarray in standard latex classes?

text: Is it possible to use IEEEtran commands in standard latex classes, e.g. \documentclass{article}? I want to import IEEEtran as a package, not a documentclass. Thanks,


title: Compile to one picture per pages

text: I would like to compile one document so as that each page becomes one single picture. Is it-possible ?


title: option clash for tocloft

text: I have the following packages:               \usepackage{amssymb,amsmath,graphicx}      %\usepackage{subfigure}     \usepackage[titles,subfigure]{tocloft}      \usepackage{epstopdf,mathrsfs}     \usepackage{algorithm}      \usepackage{algorithmic}      \usepackage{tabularx}     \usepackage{url}      If I just keep the `subfigure` package, I get error that `c\@lofdepth` and `c\@lotdepth` already defined. Can you please help?


title: Centering long sentence causes strange vertical spacing

text: In the following MWE I have a centred piece of unbreakable text. Problem is that this causes an extra bit of vertical space, so that visually the centred text is not vertically centred between the two paragraphs. What is the best way to deal with this?               \documentclass{article}          \usepackage{lipsum}          \begin{document}          \lipsum[2]          \begin{center}     \texttt{a~sentence~that~is~long~and~continues~with~the~reason~so~that~it~sticks~out~a~bit}     \end{center}          \lipsum[3]          \end{document}


title: Methods to edit column order in an existing LaTeX table?

text: What is the best way of editing an existing LaTeX table? I need to swap the order of two columns and can't think of an efficient way of doing this. My table is a long creature of the following structure:               A &     -0.523 &      26.94 &     0.8243 &     0.0000 &     -12.67 \\     B &     -0.614 &      30.02 &     0.8509 &     0.0000 &     -13.12 \\     C &     -0.630 &      32.92 &     0.9254 &     0.0000 &     -21.45 \\      I need to change the values so that it is:               A &     26.94 &      -0.523 &     0.8243 &     0.0000 &     -12.67 \\     (etc)      The thoughts that I had were to import it into Excel and to drag columns around, and then use the `concatenate()` function to produce the `number & number` structure. I feel like there might be a better way of doing this that I am unaware of.


title: Circuitikz label in middle of open circuit

text: I've just started using Circuitikz and and I'd like to know how one would go about getting a label say, 'v', in the middle of the open circuit (perhaps with a plus and minus either side of it). Also, is it possible to insert an ammeter or a voltmeter which don't have the diagonal line going through it? Thanks Edit:               \begin{circuitikz}[american, scale = 2]\draw     (0,0)       to [sV = $V_m\cos(\omega t + \theta)$]  (0,2)                 to [C = \si{10}{\pico\farad}]           (2,2)                 to [R = \si{250}{\ohm}, *-*]            (2,0)                 to [L = \si{300}{\micro\henry}]         (0,0)     (2,2)       --                                      (4,2)                 to [voltmeter = \si{800}{\nano\farad}]  (4,0)                 --                                      (2,0)     (0,2)       to [short, *-o]                         (0,3)     (2,2)       to [short, -o]                          (2,3)     ;\end{circuitikz}      ![circuit](http://i.stack.imgur.com/F0JKd.png)


title: How to cite website

text: I'm trying to cite a website but having no luck. I found a website that said the following approahc should work:               @ONLINE{Ford:2011:Online,     author = {Ford, Rebecca},     title = {Earthquake: Twitter Users Learned of Tremors Seconds Before Feeling Them {@ONLINE}},     month = Aug.,     year = {2011},     url = {http://www.hollywoodreporter.com/news/earthquake-twitter-users-learned-tremors-226481}     }      but this only yields the following output: 5] R. Ford. Earthquake: Twitter users learned of tremors seconds before feeling them @ONLINE, 2011.


title: Acro package: Commas in the acronym

text: I'm using the `acro` package, and I want to use a comma in one of the acronyms. Unfortunately TeXnicCenter throws a wobbly:               !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     !     ! LaTeX error: "xparse/split-excess-tokens"     !      ! Too many ',' tokens when trying to split argument.     !      ! See the LaTeX3 documentation for further information.     !      ! For immediate help type H <return>.     !...............................................            l.24 ...m{pvt}{PVT}{process, voltage, temperature}          |'''''''''''''''''''''''''''''''''''''''''''''''     | LaTeX was asked to split the input 'process, voltage, temperature' at each     | occurrence of the token ',', up to a maximum of 2 parts. There were too many     | ',' tokens.     |...............................................       My code:               \documentclass{article}     \usepackage{acro}     \acsetup{list-long-format=\capitalisewords}     \usepackage{mfirstuc}% provides \capitalisewords          \DeclareAcronym{pvt}{PVT}{process, voltage, temperature}          \begin{document}     The environmental space is known as \ac{pvt} blah blah blah     \end{document}      Clearly in its current form the only way I am going to get it to work is to remove the commas, however I'd very much like to have my cake and eat it. So how do I get it written as: > The environmental space is known as process, variation, temperature (PVT) > blah blah blah...


title: Produce PostScript file in TeXShop on MacOS X

text: I would like to produce a PostScript file when compiling my LaTeX file on TeXShop running on MacOS X. I already tried checking the box "Save Postscript File" under the preferences->Engine tab + selected the radio button "Tex + DVI" in the Typesetting tab, but this doesn't produce the .ps file. Any suggestion? This is driving me crazy. Thanks


title: PGFplots axis scale and value manipulation

text: I'm a tikz-pgf beginner and try to do two simple things:   1. i have x-values between 2^20 and 2^30 (the size, always a power of two). How can i modify the xticks respectivly (not having a power of ten)?   2. each and very y-value should be divided by (size/1024) automatically (in gnuplot it would look like: ($8):($9/($8/1024)), iff $8:=size and $9:=time) My minimal code example looks like:                   \documentclass{minimal}         \usepackage{pgfplots}         \begin{document}              \begin{tikzpicture}         \begin{axis} [           xmode = log,           xlabel=size in bytes,           ylabel=time in $\frac{s}{KiB}$            ]                \pgfplotstableread{datafile}           \datatable                \addplot table[x = size, y = time] from \datatable ;              \end{axis}         \end{tikzpicture}              \end{document}      What's the simplest way to do this?


title: Macro to automatically save section name of previous section and next section

text: EDIT: I've edited the code that reproduces the anomalies, but I'll work on the code to more accurately depict the problem later on the day.   1. Weird spacing in index   2. Index doesn't appear in footlinks / isn't recognised as a section The code won't show properly on this page (somehow 4 spaces doesn't do the trick), so I pasted it here. * * * I'm trying to create a macro to save the **name** of the previous and next section automatically, so I can reuse it in my footer (with a link, but that's easily done through `\hyperlink{page.\getpagerefnumber{<anchor>}}` and anchors). See the rfoot with the hyperlinks to different appendices. MWE:               \documentclass{article}           \usepackage{marginnote}     \usepackage{pbox}     \usepackage[heightrounded]{geometry}     \usepackage{lastpage}     \usepackage[toc,titletoc,page]{appendix}          % Set some commands that I'll use for all footers     \usepackage{fancyhdr}     \fancyhf{}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{.4pt}          % Command for pageref for page/LastPage in footer     \cfoot{\thepage /\pageref{LastPage}\hyperlink{page.\getpagerefnumber{anchor.lastpage}}{ $\rightarrow$}}          % Global pagestyle commands     \fancypagestyle{contents}{     \lfoot{\textbf{Inhoudsopgave}}     }     \fancypagestyle{document}{                         \rfoot{\hyperlink{document.toc}{$\leftarrow$ Naar inhoudsopgave}}                         \lfoot{\currentsection}     }          % By declaring the plain pagestyle explicitly, the first page is forced in terms of header and footer settings     % Not declaring this page style will not apply fancyhdr settings to the first page     \fancypagestyle{plain}{     \lhead{}     \chead{}     \rhead{}     \lfoot{\textbf{Inhoudsopgave}}     \cfoot{\thepage /\pageref{LastPage}\hyperlink{page.\getpagerefnumber{anchor.lastpage}}{ $\rightarrow$}}     \rfoot{}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0.4pt}     }          % header dummies which will be used in appendices - Auto-adjustment for variable page print of appendices     % It's also possible to use \getpagerefnumber and link thereto, but that gets you to the top of the page rather than the top of the appendix     % It's a small difference, but this yields a (slightly) prettier result     \fancypagestyle{a.appendix.headerref}{                         \rfoot{\pbox{5cm}{\hyperlink{document.toc}{$\leftarrow$ Naar inhoudsopgave} \\ \hyperlink{appendix.b}{Naar begrippenlijst $\rightarrow$}  \\ \hyperlink{appendix.c}{Naar Index $\rightarrow$ }}}%                          \lfoot{\currentsection}                         \fancyhead[C]{\hypertarget{appendix.a}{}}     }     \fancypagestyle{b.appendix.headerref}{                         \rfoot{\pbox{5cm}{\hyperlink{document.toc}{$\leftarrow$ Naar inhoudsopgave} \\ \hyperlink{appendix.a}{$\leftarrow$ Naar \textbf{\textcolor{blue}{R}} commando's} \\ \hyperlink{appendix.c}{Naar Index $\rightarrow$ }}}%                          \fancyhead[C]{\hypertarget{appendix.b}{}}     }     \fancypagestyle{c.appendix.headerref}{                         \rfoot{\pbox{5cm}{\hyperlink{document.toc}{$\leftarrow$ Naar inhoudsopgave} \\ \hyperlink{appendix.b}{$\leftarrow$ Naar begrippenlijst} \\ \hyperlink{appendix.d}{Naar Nesting $\rightarrow$ }}}%                         \fancyhead[C]{\hypertarget{appendix.c}{}}     }     \fancypagestyle{d.appendix.headerref}{                         \rfoot{\pbox{5cm}{\hyperlink{document.toc}{$\leftarrow$ Naar inhoudsopgave} \\ \hyperlink{appendix.b}{$\leftarrow$ Naar begrippenlijst } \\ \hyperlink{appendix.c}{$\leftarrow$ Naar Index }}}%                         \fancyhead[C]{\hypertarget{appendix.d}{}}     }          \fancypagestyle{a.appendix.sep}{                         \rfoot{\pbox{5cm}{\hyperlink{document.toc}{$\leftarrow$ Naar inhoudsopgave} \\ \hyperlink{appendix.b}{Naar begrippenlijst $\rightarrow$}  \\ \hyperlink{appendix.c}{Naar Index $\rightarrow$ }}}%                          \lfoot{\currentsection}                         \fancyhead[C]{} % Reset the header from headerref construction     }     \fancypagestyle{b.appendix.sep}{                         \rfoot{\pbox{5cm}{\hyperlink{document.toc}{$\leftarrow$ Naar inhoudsopgave} \\ \hyperlink{appendix.a}{$\leftarrow$ Naar \textbf{\textcolor{blue}{R}} commando's} \\ \hyperlink{appendix.c}{Naar Index $\rightarrow$ }}}%                          \lfoot{\currentsection}                         \fancyhead[C]{}      }     \fancypagestyle{c.appendix.sep}{                         \rfoot{\pbox{5cm}{\hyperlink{document.toc}{$\leftarrow$ Naar inhoudsopgave} \\ \hyperlink{appendix.b}{$\leftarrow$ Naar begrippenlijst} \\ \hyperlink{appendix.d}{Naar Nesting $\rightarrow$ }}}%                         \lfoot{\currentsection}                         \fancyhead[C]{}     }     \fancypagestyle{d.appendix.sep}{                         \rfoot{\pbox{5cm}{\hyperlink{document.toc}{$\leftarrow$ Naar inhoudsopgave} \\ \hyperlink{appendix.b}{$\leftarrow$ Naar begrippenlijst } \\ \hyperlink{appendix.c}{$\leftarrow$ Naar Index }}}%                         \lfoot{\currentsection}                         \fancyhead[C]{}     }                    % Cross-references     \usepackage[pageanchor]{hyperref}     \hypersetup{colorlinks=true,             linkcolor=red,             hypertexnames=false,             pdfhighlight=/N,             pdfstartview={XYZ null null 1.00}             }          \title{}     \author{}     \date{}          \begin{document}          \pagestyle{contents}     \hypertarget{document.toc}{}     \maketitle     \tableofcontents          % Footer section name - Declare after ToC to keep section numbering intact     \newcommand{\currentsection}{}     \let\oldsection\section     \renewcommand{\section}[1]{\oldsection{#1}\renewcommand{\currentsection}{#1}}          \newpage          \pagestyle{document}     \section{Week 1 - Intro \textcolor{blue}{\textbf{R}}}     \subsection{Objecten}     \subsubsection{Objecten met \'e\'en getal}          \newpage          % Clearpage to move floats as well, use newpage if you don't have floats on the last page     \clearpage     \addtocontents{toc}{\protect\setcounter{tocdepth}{0}}     \begin{appendices}     \addtocontents{toc}{\protect\setcounter{tocdepth}{1}}          % I am using hypertargets from the preamble to make sure hyperref takes you to the top of the page and not the middle of it     % I've already explained why I picked this solution over \getpagerefnumber     \pagestyle{a.appendix.headerref}     \section{\textbf{\textcolor{blue}{R} commando's}}          text          \newpage          \section{\textbf{Begrippenlijst}}     \pagestyle{b.appendix.headerref}          \newpage          \pagestyle{c.appendix.headerref}     \section{\textbf{Index}}          text          \newpage          \section{\textbf{Nesting}}          text          \end{appendices}          % Because the footer is printed last and there is a space between the appendices environment and the end of the document, we have to force this value or define set a manual environment. Setting a new environment would be the more tedious solution                         \rfoot{\pbox{5cm}{\hyperlink{document.toc}{$\leftarrow$ Naar inhoudsopgave} \\ \hyperlink{appendix.b}{$\leftarrow$ Naar begrippenlijst } \\ \hyperlink{appendix.c}{$\leftarrow$ Naar Index }}}%                         \lfoot{\textbf{Nesting}} % This will have to be set manually to circumvent cross-environment anomalies with fancyhdr                         \lhead{}                         \fancyhead[C]{\hypertarget{appendix.d}{}}          % Anchor on last page     \label{anchor.lastpage}          \end{document}


title: Stopping hang into left margin with enumitem

text: I'm trying to use `enumitem` to present various numbered principles, and to keep a running count on these principles. I'm getting stuck because I can't get enumerate not to shift the label into the left margin, except by forcing a very large margin for the whole principle. I'm hoping for something betweeen the two (not working) examples below, where - where the label doesn't hang into the left margin, but the text is allowed to wrap so it isn't so heavily indented. Do you have any suggestions? Many thanks!               \documentclass{article}     \usepackage{enumitem}               \begin{document}      dolor sit amet, consectetur adipiscing    elit. Duis tincidunt mi ut purus varius aliquet posuere enim    ultricies.          \begin{enumerate}[label=\small\textsc{Longlabel}-\arabic*\normalsize,labelindent=7em,itemindent=2em]       \item   elit. Duis tincidunt mi ut purus varius aliquet posuere eni ultricies.  dolor sit amet, consectetur adipiscing    elit. Duis tincidunt mi ut purus varius aliquet posuere enim    ultricies.       \item  mi vel lacus dictum iaculis. Aenean vestibulum    pharetra magna, sit amet    venenatis velit posuere ut. dolor sit amet, consectetur adipiscing    elit. Duis tincidunt mi ut purus varius aliquet posuere enim    ultricies.     \end{enumerate}           dolor sit amet, consectetur adipiscing dolor sit amet, consectetur adipiscing    elit. Duis tincidunt mi ut purus varius aliquet posuere enim ltricies.          \begin{enumerate}[label=\small\textsc{Longlabel}-\arabic*\normalsize,leftmargin=7.2em]       \item   elit. Duis tincidunt mi ut purus varius aliquet posuere enim    ultricies.  dolor sit amet, consectetur adipiscing    elit. Duis tincidunt mi ut purus varius aliquet posuere enim    ultricies.       \item  mi vel lacus dictum iaculis. Aenean vestibulum   pharetra magna, sit amet venenatis velit posuere ut. dolor sit amet, consectetur adipiscing   elit. Duis tincidunt mi ut purus varius aliquet posuere enim.     \end{enumerate}               \end{document}      ![enter image description here](http://i.stack.imgur.com/rwrNX.jpg) EDIT: Lockstep's fix works pretty near perfectly for enumerate environment. Is there a way of replicating it when I use itemize to refer back to a previous example? Minimal example below shoes problem with hanging indent again.               \documentclass{article}     \usepackage{enumitem}               \begin{document}      dolor sit amet, consectetur adipiscing    elit. Duis tincidunt mi ut purus varius aliquet posuere enim    ultricies.          \begin{enumerate}[label=\small\textsc{Longlabel}-  \arabic*\normalsize,labelindent=*,itemindent=*]       \item\label{test2}   elit. Duis tincidunt mi ut purus varius aliquet posuere eni ultricies.  dolor sit amet, consectetur adipiscing    elit. Duis tincidunt mi ut purus varius aliquet posuere enim    ultricies.     \end{enumerate}          \begin{itemize}[labelindent=*,itemindent=*]     \item[\ref{test2}]elit. Duis tincidunt mi ut purus varius aliquet posuere eni ultricies.  dolor sit amet, consectetur adipiscing    elit. Duis tincidunt mi ut purus varius aliquet posuere enim    ultricies.     \end{itemize}          \end{document}


title: How to use hyph-utf8 correctly?

text: I'm using MiKTeX and pdfLaTeX and the package manager tells me that `hyph- utf8` is installed and auto-download of packages is activated, too. But when I do `\usepackage{hyph-utf8}`, because I hope that it will correct some currently wrong german hyphenations in my documents, I only get a warning about a missing `hyph-utf8.sty` file. Did I understand the purpose of `hyph-utf8` correct ("provide more hyphenation patterns for words in many languages") and do I try to use it correctly (`\usepackage{hyph-utf8}`)?


title: Centering case-defined functions in the middle of the page and centering a figure(diagram)

text: I have two questions regarding centering:   1. I am trying to center a case-defined function, say defined as follows:              $f_i(z)=$  \begin{cases}\frac{1}{t}dist (z,\gamma_i ) &\text {if} z\in  A_i(t)\\                                       1 &\text{if} z \in A_i \backslash A_i(t)\\                                        0 & \text{if} z \in  \tilde{M} \backslash A_i\\               \end{cases}      How do I center it?   2. Say the name of the figure I am inserting is 'egnpic', and I am using the following command to insert it in my LaTeX document:                  \hspace{11 mm} \includegraphics[height=100mm]{egnpic}\\      Apparently I am not seeing any effect of using `\hspace{11 mm}`, the relative position of the figure {egnpic} remains the same when I use `\hspace{5 mm}` and when I use `\hspace{11 mm}`.


title: What does this error mean and why does it keep moving?

text: The following MWE gives me an error:               %Page layout here     \documentclass[letterpaper]{article}     \usepackage{kantlipsum}          %Font stuff here     \usepackage{tgtermes}               \begin{document}     \kant     \oldstylenums{314159} %This is line 11     \kant     \end{document}      > LaTeX Font Info: Try loading font information for OML+qtm on input line 11. > LaTeX Font Info: No file OMLqtm.fd. on input line 11. > > LaTeX Font Warning: Font shape `OML/qtm/m/it' undefined (Font)   >  using`OML/cmm/m/it' instead on input line 11. > > [2] [3] [4] (./MWE.aux) > > LaTeX Font Warning: Some font shapes were not available, defaults > substituted. Now, this seems pretty obvious that it is a problem using `\oldstylenums{314159}` with `tgterms`. However, I had to edit out everything but this code to find that: In this MWE (based on my original document)               %Page layout here     \documentclass[letterpaper]{article}     \usepackage{kantlipsum}          %Font stuff here     \usepackage{tgtermes}          \usepackage{fancyhdr}     \pagestyle{fancyplain}     \fancyhf{}     \renewcommand{\headrulewidth}{0pt} % remove lines as well     \setlength{\headheight}{30pt}     \chead{\oldstylenums{314159}}          \begin{document}     Here is some normal text     \kant     More normal text %This is line 18     \end{document}      The error points to the last line before the end of the document, line 18. However, I made another MWE, where I pasted a couple of pages of the lipsum in manually and got something strange that seems replicate my original problem: The error message moves seemingly randomly (In this case it is on the first blank line after a command; in my more complex document... I have no idea, it is line 97, which is the first blank line on the second page, but there are lots of commands on the first page. Possibly the first blank line after `\emph{}`?               %Page layout here     \documentclass[letterpaper]{article}     \usepackage{kantlipsum}          %Font stuff here     \usepackage{tgtermes}          \usepackage{fancyhdr}     \pagestyle{fancyplain}     \fancyhf{}     \renewcommand{\headrulewidth}{0pt} % remove lines as well     \setlength{\headheight}{30pt}     \chead{\oldstylenums{314159}}          \begin{document}        Here is some normal text As any dedicated reader can clearly see, the Ideal of practical        reason is a representation of, as far as I know, the things in themselves; as I have        shown elsewhere, the phenomena should only be used as a canon for our understanding.        The paralogisms of practical reason are what first give rise to the architectonic of        practical reason.              Kant here          \kant %This is line 23, error occures on next line unless I put a comment there          As we have already seen, what we have alone been able to show is that the objects     in space and time would be falsified; what we have alone been able to show is that,     our judgements are what first give rise to metaphysics. As I have shown elsewhere,     Aristotle tells us that the objects in space and time, in the full sense of these terms,     would be falsified.     \end{document}      That one puts the error on the first blank line after `\kant`. Can someone explain what this error is and why the heck it keeps moving around?


title: Reference in small font, italic at the bottom

text: I am trying to have my reference appear on the bottom of the slide (not as footnotes), and I hope someone can help me solve this. I am using `beamer` and `biblatex`, and here is a minimal example:               \documentclass{beamer}          \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @misc{A01,         author = {Author, A. and Buthor, B. and Cuthor, C.},         year = {2001},         title = {Alpha}     }     \end{filecontents}          \usepackage{biblatex}          \renewcommand*{\citesetup}{\vfill\tiny\itshape}     \setbeamertemplate{navigation symbols}{}     \setbeamertemplate{footline}{\hspace{\fill}\textbf{\insertframenumber/\inserttotalframenumber}}          \addbibresource{\jobname.bib}          \begin{document}          \begin{frame}     \frametitle{Test1}     Test     \vfill     \fullcite{A01}     \end{frame}          \begin{frame}     \frametitle{Bibliography}          \printbibliography          \end{frame}          \end{document}      Ideally, I would like to have the references appear using overlay and all of them only being at the bottom with tiny fontsize/italic. I tried to achieve this by using only and `\vfill`, but `\vfill` does not seem to put them at the bottom.


title: Problem with making table

text: I have been in a problem with making a table in LaTeX as attached in the figure below. Please help me out. ![Table](http://i.stack.imgur.com/6QhUu.jpg) I am trying like:               \begin{document}     \begin{tabular}{|p{1cm}|p{1cm}|p{5cm}|}     \hline     \multicolumn{2}{l|}{Input Values} & \multicolumn{1}{l|}{Output Values} \\     \hline     1&2&The values  \\     \hline     3&5&\begin{tabular}{|c|c|c|c|c|}           \hline           % after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...           1 & 2 &  &  &  \\           \hline            & &  &  &  \\           &  &  &  &  \\            &  &  &  &  \\            &  &  &  &  \\            &  &  &  &  \\            &  &  &  &  \\           \hline         \end{tabular}      \end{tabular}     \end{document}      But not coming. I am new to the latex so please help me.


title: Using the charter font, F followed by a full stop looks like an E. What should I do?

text: Here is a screenshot of my document: ![enter image description here](http://i.stack.imgur.com/KEu27.png) On the second line, there is an instance of "CNF." which totally looks like "CNE" to me (because the dot takes the place of the serif on the feet of an E). I'm using the `charter` package and font. What should I do to bring the period a little bit further from the F? MWE:               \documentclass[12pt]{article}     \usepackage{fullpage}     \usepackage{charter}     \usepackage[charter]{mathdesign}          \begin{document}     \noindent     This clausification follows from a straightforward conversion of the formula $(s \leftrightarrow x \oplus y \oplus c_{in}) \land (c_{out} \leftrightarrow ((x \oplus y) \land c_{in}) \lor (x \land y))$ to CNF. We see that we need $32$ extra variables and $32 \times 14 = 448$ clauses to encode a $32$-bit adder circuit using this method. This is almost certainly better than the circuit encoding, which requires both more variables and more clauses.     \end{document}      **Edit** : About the formula, I know...


title: Problems with WinEdt 7.0

text: I'm a newbie here, so forgive me if it's not the right kind of question to be posted. I've just updated to WinEdt 7.0 and I wonder where are the old good features I loved in my previous version. Namely:   1. Accents. My old WinEdt was well-trained and knew how to translate into LaTeX some non-English words with accents like "aquí" ("here" in Spanish), so I would never bother to actually writing down the correct TeX code for this accent on the `i` letter. This was part of the Options menu in my old WinEdt, but now has disappeared. Someone knows how:     * Allow me to write `á` on my `.tex` file and let WinEdt 7.0 to translate it to TeX jargon?     * Even better: _with_ or _without_ actually changing `á` into `\'a` in my `.tex` file? (I have reasons for both possibilities: when sharing the file with a colleague `\'a` would be better; when running my grammar checker `á` would be appreciated.)   2. Delimiters. With my old WinEdt we were so happy... When I wrote `\begin{something}` it would automatically add `\end{something}` and I even knew the place in the "Options" menu to teach her to do it. But, again, this possibility has now disappeared in the "Options" menu of WinEdt 7.0. (as far as I can see). So: where is this now hidden in WinEdt 7.0? I would also like to train it to "double" things like `$`, or to close automatically some other delimiters as (`[`, `{` and the like, without having to think about it twice).  All this is hidden, I guess, somewhere in the "help" manual of my WinEdt 7.0, but, I'm sorry, I'm unable to find it. Thank you for your patience with this un-updated WinEdt user.


title: multilang with babel problem

text: I've loaded babel in my `.sty` file like this:               \RequirePackage[ukrainian,russian,english]{babel}      Then at `.tex` or at the same `.sty` file I am trying to:               \selectlanguage(X)     \languagename     \iflanguage{english}{eng}{}     \iflanguage{russian}{rus}{}     \iflanguage{ukrainian}{ukr}{}      And the result is:               X=>output     russian => rus (\languagename says russian)  OK!     ukrainian => rus (!!!) (languagename says ukrainian) WRONG!     english => eng (\languagename says english) OK!      What a magic it is? Note: everything else like word "Content", "Chapter" and so on are correctly translates to specified language.


title: How to use limits and nolimits together?

text: In some case limits and nolimits need to be used together, e.g. an expression `\prod\nolimits^{B}\limits_{x \in X}`, in which `B` is in the right-upper corner and `x \in X` under the `\prod`, is not displayed it should be, `B` is displayed above the `\prod`, not in the right-upper corner. How to resolve this?


title: How to draw an 3+1 decomposition in tikz

text: I am trying to draw the following picture in tikz but I can't make it. ![enter image description here](http://i.stack.imgur.com/tYCrn.png) Any suggestions on how this can be done in TikZ or somewhere else?


title: Latex stops referencing theorem environment

text: I'm resuming a project after some weeks. Now, when I reference some theorem, the result are that bored question marks (??). For theorems that already exists, refence to that works well, but referencing other theorems doesn't. It's weird. Before all was fine. For example:               \begin{def:conv_method_1}          ...          \end{def:conv_method_1}          ...          Theorem~\ref{def:conv_method_1}      and the result is               Theorem ??      Any trick?


title: Can I use the \LaTex logo using the XeLaTex compiler?

text: I want to use the `\LaTex` logo for a `XeLatex` template that I am using. I get the following error:               ! Undefined control sequence \LaTex      I think this is a dumb question but I didn't find any suitable answer searching online. Please tell me if you need more specific information, I didn't include it because I think the question is really simple.


title: Draw only regions of a hyperboloid in pgfplots

text: I'm interested in the hyperboloid `u^2 + v^2 - w^2 = 1`, which can be parameterized as               u = cosh(x) cos(y),     v = cosh(x) sin(y),     w = sinh(x).      This parameterization can be used to draw the hyperboloid in pgfplots as follows:               \documentclass{article}          \usepackage{pgfplots}     \pgfplotsset{compat=1.6}          \begin{document}          \begin{tikzpicture}      \begin{axis}       \addplot3[surf,                 fill=white,                 samples=10,                 samples y=72,                 domain=-1:1,                 y domain=0:360,                 z buffer=sort]                 ( {cosh(x)*cos(y)}, {cosh(x)*sin(y)}, {sinh(x)} );      \end{axis}     \end{tikzpicture}          \end{document}      That works beautifully, but now I would like to restrict the plot to, say, the region where `v + w > 0`. In terms of my `(x,y)` parameters this reads `cosh(x) sin(y) + sinh(x) > 0`. According to the PGFPlots manual I should be able to use the `restrict expr to domain` option to accomplish this, but when I try it I get a LaTeX error:               ! Package PGF Math Error: Could not parse input '' as a floating point number, sorry. The unreadable part was near ''..      I'm assuming this option should be given at the `\addplot3` level, not at the `\begin{axis}` level, but the error appears either way. Actually what I would like to do is plot the hyperboloid twice; first, the full hyperboloid in a nice subdued gray, and then, on top of it, the region of interest in bright colors, so that it can actually be identified as part of the hyperboloid. * * * I'm providing an updated MWE since I guess the whole thing got a bit confusing with all the changing in variable names. Here's what I intended to do:               \documentclass{article}          \usepackage{pgfplots}          \begin{document}          \begin{tikzpicture}      \begin{axis}[view={120}{5},                   samples=20,                   samples y=72,                   domain=-2:2,                   y domain=0:360,                   z buffer=sort,                   variable=\u,                   variable y=\v]       \addplot3[surf,                 restrict expr to domain={y+z}{0:100}]                 ( {cosh(u)*cos(v)}, {cosh(u)*sin(v)}, {sinh(u)} );      \end{axis}     \end{tikzpicture}          \end{document}      With the unstable version of pgfplots installed, this draws only half of the hyperboloid---the half determined by the condition `y + z > 0`\---, as expected.


title: sort&compress citations latex

text: everyone! I've been searching for this topic for too long, so I'm asking it here. I need to create a citation in my article by compressing numbers that goes with authors. For example:               Blah-blah-blah~\cite{kerchev-paz} blah-blah-blah.....      and I have `\begin{thebibliography}{4}`:                \bibitem{kerchev} Kerchev     \bibitem{chernova} Chernova     \bibitem{krivetz} Krivetz     \bibitem{paz} Paz      I need to latex this code into `Blah-blah-blah [1-4] blah-blah-blah.....` After including `\usepackage{cite}` I've got something like this `Blah-blah- blah [??] blah-blah-blah.....` I need an emergent help =)


title: Latex: Table with Sideways text in one column and groups of rows in alternating colors

text: I am very new to latex, and am having some problems making a specific table. I essentially want two columns, where the text in the left column is rotated to be written sideways (and would represent a category of the text to the right. Additionally, I would like these categories to have alternating colors. Example: There are three categories, "Managerial", "Strategic", and "Technical". Each of these is in the left column and written sideways (overlaps 5 rows). Each category has 5 corresponding items written in the right column, taking up the rows that the category overlaps. The background color of a category and its items are a given color, with this color alternating down the chart with every other category. ...This would be much easier to describe if I could post a picture, too new around here... My problem is that I can't get the rotated text and the colors together... my rotated text gets covered by the row color below it. Any ideas about how to fix this? Again, I am brand new to tex, so anything will help. Thanks! This is the code I have so far...               \documentclass[english]{article}     \usepackage{fancybox,array,amsmath,amssymb,babel}     \usepackage{graphicx,colortbl}     \usepackage{rotating}     \usepackage{ltxtable,tabularx,multirow,dcolumn}     \usepackage[table]{xcolor}          \definecolor{blue1}{rgb}{0.94, 0.97, 1.0}     \definecolor{blue2}{rgb}{0.53, 0.81, 0.98}          \begin{document}     \begin{table}[!ht]         \begin{tabular}{>{\columncolor[rgb]{0.53, 0.81, 0.98}}l r}              \multicolumn{2}{r}{\textbf{Competencies}}\\             \rowcolor{blue2}             \multirow{5}{*}{\rotatebox{90}{\textbf{Managerial}}} & Something1\\             & Something2\\             & Something3\\             & Something4\\             & Something5\\             \multirow{5}{*}{\rotatebox{90}{\textbf{Strategic}}} & Something1\\             & Something2\\             & Something3\\             & Something4\\             & Something5\\             \multirow{5}{*}{\rotatebox{90}{\textbf{Technical}}} & Something1\\             & Something2\\             & Something3\\             & Something4\\             & Something5\\         \end{tabular}     \end{table}          \end{document}


title: Can you get Vim to behave like TeXworks or vice versa?

text: There are several features of TeXworks that I find substantially decrease my editing time. I tend to write a large number of rather small LaTeX files, which means I'm opening and closing files frequently. The fact that TeXworks automatically opens a pdf if available, and automatically tiles the editing and previewing windows for me saves a lot of time! However, TeXworks, as a text editor, simply isn't as powerful as Vim (I much prefer the console version over Gvim). I would like to have the editing power of Vim, while retaining the windowing features of TeXworks. Is there any way to do this? Perhaps a set of Vim scripts that someone has written? Or is there a Vim plugin for TeXworks? [EDIT] I can see from some comments that some folks are assuming I'm running Linux. While I am hoping to acquire a Linux laptop soon, right now I am running Windows XP. So terminal options are considerably more limited.


title: How can I make this circuit as a module?

text: I started to use the `circ` package and I would like to draw this kind of black box, but the final result is unsatisfactory: how can I take advantage of LaTeX principles in this kind of code? For example, the square is not precise and I would like to add the arrows and other symbols inside the square.               \documentclass{article}     \usepackage[basic,box,gate,oldgate,ic,optics,physics]{circ}     \usepackage{tikz-timing}     \newcommand{\degr}{degr}     \usepackage{tikz}          \begin{document}          \begin{center}     \begin{circuit}1     \- 20 l     \- 20 u     \- 20 r     \- 20 d     \at{-19} {17}     \centertext CMD from { } to { }     \at{-20} {17}     \bundle { } 10 l     \at{-20} {10}     \bundle {1} 10 l     \at{-19} {10}     \centertext DSI from { } to { }     \at{-20} {3}     \bundle {64} 10 l     \at{-19} {3}     \centertext DATAIN from { } to { }     \at{0} {16}     \bundle {1} 10 r     \at{-4} {16}     \centertext DSO from { } to { }     \at{0} {12}     \bundle {1} 10 r     \at{-4} {12}     \centertext ERR from { } to { }     \at{0} {8}     \bundle {1} 10 r     \at{-4} {8}     \centertext ACK from { } to { }     \at{0} {4}     \bundle {64} 10 r     \at{-5} {4}     \centertext DOUT from { } to { }     \at{-10} {10}     \centertext BLACKBOX from { } to { }     \at{-18} {0.3}     \centertext $\bigtriangleup$ from { } to { }     \at{-17.4} {0}     \- 5 d      \centertext CLK from { } to { }     \at{-14} {-0.6}     \centertext $\bigcirc$ from { } to { }     \at{-13.4} {-1.2}     \- 5 d      \centertext RST from { } to { }     \end{circuit}     \end{center}          \end{document}


title: Suppress certain Acronyms in the list

text: I like the package acronyms very much, and I used it in my whole master thesis. I often used it just to write the same word the same in the whole work. f.e. I used xa for x-Achse but I never use the \acs. Therefore I dont want this acronym in the list. How can I change the script to just show acronyms where \acs was used in the document?