title: Quotation mark in \lstinputlisting becomes white

text: How can I fix this issue with everything inside and including the "quotation mark" itself becomes white, in my case invisible due to the white background. Thanks in advance. I almost forgot that im using following `\lstset`:               \lstset{             basicstyle=\footnotesize\ttfamily, % Standardschrift             %numbers=left,               % Ort der Zeilennummern             numberstyle=\tiny,          % Stil der Zeilennummern             %stepnumber=2,               % Abstand zwischen den Zeilennummern             numbersep=5pt,              % Abstand der Nummern zum Text             tabsize=2,                  % Groesse von Tabs             extendedchars=true,         %             breaklines=true,            % Zeilen werden Umgebrochen             keywordstyle=\color{red},             frame=b,              %        keywordstyle=[1]\textbf,    % Stil der Keywords     %        keywordstyle=[2]\textbf,    %     %        keywordstyle=[3]\textbf,    %     %        keywordstyle=[4]\textbf,   \sqrt{\sqrt{}} %             stringstyle=\color{white}\ttfamily, % Farbe der String             showspaces=false,           % Leerzeichen anzeigen ?             showtabs=false,             % Tabs anzeigen ?             xleftmargin=17pt,             framexleftmargin=17pt,             framexrightmargin=5pt,             framexbottommargin=4pt,             %backgroundcolor=\color{lightgray},             showstringspaces=false,      % Leerzeichen in Strings anzeigen ?               inputencoding=utf8,               literate={å}{{\aa}}1                             {æ}{{\ae}}1                              {ø}{{\o}}1           }          \lstloadlanguages{% Check Dokumentation for further languages ...             %[Visual]Basic             %Pascal             C,             %C++             %XML             %HTML             Java     }     \DeclareCaptionFont{white}{\color{white}}     \DeclareCaptionFormat{listing}{\colorbox[cmyk]{0.43, 0.35, 0.35,0.01}{\parbox{\textwidth}{\hspace{15pt}#1#2#3}}}     \captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white, singlelinecheck=false, margin=0pt, font={bf,footnotesize}}


title: How can I use something like \vspace{\baselineskip plus 10pt}

text: Is it possible to use `\baselineskip` with some extra glue inside of `\vspace`?               \documentclass{scrartcl}          \begin{document}     Text          \vspace{\baselineskip}     Works          \vspace{12pt plus 10pt minus 5pt}     Works          \vspace{\baselineskip plus 10pt minus 5pt}     Fails \dots     \end{document}


title: Comparison of pgf plotting packages

text: I know three ways to do function plots based on the TikZ/`pgf` package:   * TikZ/`pgf` directly   * `pgfplots`   * `tkz-fct` Which of those options is the most powerful? Why? Can you give typical cases where one package is better/easier to use than the other?


title: \intextsep gives doubled space

text: If a float (black box) follows my `{example}` environment (gray left line) the skip between them is too big. I guess it’s twice `\baselineskip` but it should be only one `\baselineskip` plus some glue. It should be the same space as between the float and following text. ![error](http://i.stack.imgur.com/zjJWy.png) I read in `source2e` that `\intextsep` doesn’t behave like `\addvspace` which causes the doubled space in my example. Can on fix this behavior or do I have to insert `\vspace{-\baselineskip}` manually everywhere? I also tried to insert the space around `{example}` via `\addvspace` instead of the `mdframed` method (set skip as option) but that doesn’t work too. **Code**               \documentclass[english]{scrartcl}          \usepackage{mdframed}     \newenvironment{example}[1][]{%         \begin{mdframed}[%             skipabove={\baselineskip plus 5pt minus 1.5pt},             skipbelow={\baselineskip plus 5pt minus 1.5pt},             middlelinewidth=3pt,             middlelinecolor={black!60},             splitbottomskip=1pt,             splittopskip=8pt,             innertopmargin=2pt,             innerbottommargin=2pt,             innerleftmargin=6.89749pt,             innerrightmargin=0pt,             topline=false,             bottomline=false,             rightline=false,         ]%     }{%         \end{mdframed}     }          \usepackage{babel,blindtext}     \begin{document}     \Blindtext     \begin{example}     \blindtext     \end{example}     \begin{table}[h]     \rule{\textwidth}{5cm}     \end{table}     \Blindtext     \end{document}      * * * ## Update After my first try to set `\intextsep=0pt` and add `\addvspace{\intextsep}` to the user level float environments didn’t work for all cases (the space was also inserted if the float floats away) I had a second look at `source2e` and found the `\@addtocurcol` macro which seems to be the one inserting the floats and the space around them. There are two lines in it inserting `\intextsep` via `\vskip`               \vskip \intextsep     \box\@currbox     \penalty\interlinepenalty     \vskip\intextsep      So I tried to change both of them width `\pathcmd` from `etoolbox` and it works for the case where a float follows an example but not if it preceeds.               \patchcmd{\@addtocurcol}%         {\vskip \intextsep}%         {\addvspace{\intextsep}}{}{}     \patchcmd{\@addtocurcol}%         {\vskip\intextsep}{}{}{}      I also tried to place the second `\addvspace` somewhere else but without success. I guess the the two `\addvspace`s of `{table}` and `{example}` can’t _see_ each other to determine the correct spacing if the float precedes the example. **M(half)WE**               \documentclass[english]{scrartcl}          \usepackage[framemethod=TikZ]{mdframed}     \newenvironment{example}[1][]{%         \par\addvspace{\baselineskip}%         \begin{mdframed}[%     %       skipabove={\baselineskip plus 5pt minus 1.5pt},     %       skipbelow={\baselineskip plus 5pt minus 1.5pt},             middlelinewidth=3pt,             middlelinecolor={black!60},             splitbottomskip=1pt,             splittopskip=8pt,             innertopmargin=2pt,             innerbottommargin=2pt,             innerleftmargin=6.89749pt,             innerrightmargin=0pt,             topline=false,             bottomline=false,             rightline=false,         ]%     }{%         \end{mdframed}\par\addvspace{\baselineskip}%     }          \setlength{\intextsep}{\baselineskip}     \usepackage{etoolbox}     \makeatletter     \patchcmd{\@addtocurcol}%         {\vskip \intextsep}%         {\addvspace{\intextsep}}%         {\typeout{*** SUCCESS ***}}{\typeout{*** FAIL ***}}     \patchcmd{\@addtocurcol}%         {\vskip\intextsep}{}%         {\typeout{*** SUCCESS ***}}%         {\typeout{*** FAIL ***}}     \patchcmd{\@addtocurcol}%         {\@inserttrue}%         {\@inserttrue\addvspace{\intextsep}}%         {\typeout{*** SUCCESS ***}}{\typeout{*** FAIL ***}}     \makeatother          \usepackage{babel,blindtext}     \begin{document}     \Blindtext\blindtext     \begin{table}[h]         \rule{\textwidth}{5cm}     \end{table}     \begin{example}         \blindtext     \end{example}     \begin{table}[h]         \rule{\textwidth}{5cm}     \end{table}     \Blindtext     \begin{example}         \blindtext     \end{example}     \blindtext     \end{document}      **Result** ![result](http://i.stack.imgur.com/mCgk7.png) ## Update 2 This is the code including Frank’s solution but it still doesn’t work correctly. There’s too much space between `{example}` and the first table, i.e. above the example. And it seems also not to work if I comment out the example: The two floats have more space between them as between a float and text.               \documentclass[english]{scrartcl}          \usepackage[framemethod=TikZ]{mdframed}     \newenvironment{example}[1][]{%         \par\addvspace{\baselineskip}%         \begin{mdframed}[%     %       skipabove={\baselineskip plus 5pt minus 1.5pt},     %       skipbelow={\baselineskip plus 5pt minus 1.5pt},             middlelinewidth=3pt,             middlelinecolor={black!60},             splitbottomskip=1pt,             splittopskip=8pt,             innertopmargin=2pt,             innerbottommargin=2pt,             innerleftmargin=6.89749pt,             innerrightmargin=0pt,             topline=false,             bottomline=false,             rightline=false,         ]%     }{%         \end{mdframed}\par\addvspace{\baselineskip}%     }          \setlength{\intextsep}{\baselineskip}     \usepackage{etoolbox}     \makeatletter     \patchcmd{\@addtocurcol}%         {\vskip \intextsep}%         {\addvspace{\intextsep}}%         {\typeout{*** SUCCESS ***}}{\typeout{*** FAIL ***}}          \patchcmd{\@addtocurcol}%         {\vskip\intextsep}{\fix@second@intextsep}%         {\typeout{*** SUCCESS ***}}%         {\typeout{*** FAIL ***}}          \def\fix@second@intextsep {%     % was the float seen in vertical mode?        \ifnum\outputpenalty <-\@Mii            \aftergroup\vskip\aftergroup\intextsep       \else           \vskip\intextsep       \fi     }     \makeatother          \usepackage{babel,blindtext}     \begin{document}     \Blindtext\blindtext     \begin{table}[h]         \rule{\textwidth}{5cm}     \end{table}     \begin{example}         \blindtext     \end{example}     \begin{table}[h]         \rule{\textwidth}{5cm}     \end{table}     \Blindtext     \begin{example}         \blindtext     \end{example}     \blindtext     \end{document}


title: pgfplots axis scaling

text: Is it possible to define in pgfplots that `y` should correspond to `Y cm` in my plot? I know how to do this in tkz-fct, so let me add an tkz-fct example to make more clear what I want:               \documentclass{article}          \usepackage{pgfplots}     \usepackage{tkz-fct}     \usetkzobj{all}          \begin{document}          \begin{tikzpicture}[scale=.5]     \tkzInit[xmax=10,ystep=3,ymax=10]     \tkzAxeXY     \tkzGrid     \tkzFct[color=red, thick,domain=0:10]{\x}     \tkzFct[domain=0:10]{\x**2}     \end{tikzpicture}     \begin{tikzpicture}[scale=.5]     \tkzInit[xmax=10,ystep=1.5,ymax=10]     \tkzAxeXY     \tkzGrid     \tkzFct[color=red, thick,domain=0:10]{\x}     \tkzFct[domain=0:10]{\x**2}     \end{tikzpicture}       \end{document}      ![tikz-fct](http://i.stack.imgur.com/vCUQC.jpg) In one case 3 corresponds to 0.5 cm on the y-axis in the picture, in the other case 1.5 corresponds to 0.5 cm on the y axis. This is achieved by using the scale=0.5 option together with the ystep option. Not that it is important for me to have grids as in the tkz-fct example.


title: Connect Tikz Nodes running around nodes

text: I want to connect two tikz nodes with a line which should not overlap the other nodes. It additionally should branch below the node and run into the top again. I also want to label the edge/line. I wrote this code:               \documentclass{minimal}     \usepackage{tikz}     \usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%         decorations.pathreplacing,decorations.pathmorphing,shapes,%         matrix,shapes.symbols}          \begin{document}     \tikzset{     >=stealth',       punktchain/.style={         rectangle,          rounded corners,          draw=black, very thick,         text width=14em,          minimum height=3em,          text centered,          on chain},       line/.style={draw, thick, <-},       every join/.style={->, thick,shorten >=1pt},     }     \begin{tikzpicture}       [node distance=.6cm,       start chain=going below,]          \node[punktchain, join] (intro) {Introduction};          \node[punktchain, join] (initRun)      {InitialRun};          \node[punktchain, join] (nthRun)      {nTh Run};          \node[punktchain, join] (conc) {Conclusion};       \path[line] (nthRun.north east) -- ++(1,0) |- node{Iteration} (nthRun.south east);     \end{tikzpicture}     \end{document}      This leads into the following result (left), what I want is on the right (red color not intended, just for clarification) ![Current status](http://i.stack.imgur.com/GUKIr.png) ![Should status](http://i.stack.imgur.com/sd69A.png) How can this be done using tikz?


title: mathbb not recognized however mathcal works!

text: I get the following error               Writing index file thessamp.idx ) (./thessamp.aux)     [0{/usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap     /pdftex.map}]     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/omscmr.fd)     ./thessamp.tex:115: Missing } inserted. <inserted text>                      } l.115 $\mathbb{Z}  \stackrel{\equiv }$                                             The set of integers \\ ?      I am using a template from my school, and also, when I try to include the package amsmath, it tells me               ./thessamp.tex:7: LaTeX Error: \usepackage before \documentclass.          See the LaTeX manual or LaTeX Companion for explanation. Type  H     <return>  for immediate help.  ...                                                   l.7 \usepackage{                     amsmath} ?      I am guessing this is because the style is old or something .. so my question is HOW DO I USE THE mathbb to get me stuff like `$\mathbb{Z}$`


title: Using aer.bst, removing dashed duplicate authors

text: I am using aer.bst for my bibtex bibliography in LyX 2.1 and I am trying to print recurrent author names instead of using a dash. All the previous Tex.stackexchange.com advice on removing the dashing feature does not seem to apply to the aer style which uses a feature called \bysame to to indicate that authors names have been duplicated in separate entries. If it helps, aer.bst uses natbib. A minimal working example of what this looks like is below: ![Bibliography with dashes for duplicate authors](http://i.stack.imgur.com/NT1Y9.jpg)


title: xtra alignment tab has been changed to \cr?

text: I get the error mentioned in the title of the question. Can you help me please ?               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[siunitx]{circuitikz}     \pagestyle{empty}          \begin{document}               \begin{tabular}{ l c c c r }     $R_L (\Omega)$  &$ V_L (V)$ & $I_L (mA)(experimental)$ & $I_L (mA)(actual)$ & Percent Error (%)\\          $\infty$ & 4.99 & 0 &0 & 0 \\          980 &3.74 & 3.8  & 3.91 & 2.81\\          320 & 2.48 & 7.6 & 7.79 & 2.45\\          99.4 & 1.16 & 11.7&11.89 & 1.60 \\          0 & 0 & 15.1 & 15.5 & 2.58 \\          \end{tabular} \\          \end{document}


title: How to prevent continuation to the next page?

text: i learned of the `samepage environment` based from this link Unbreakable block so i tried it on my case but i think this isn't what I am looking for. My problem is: with the `exam class`, i have created a test question true or false. The questions would rather continue to the next page without knowing the exact number of questions that is only allowed. These should not be the case. What I want is, a command that will prevent question continuation to the next page and pops out an error notification that the `question will break`. Is there any suggested variables which should i include in my command. ## Code               \documentclass{exam}          \newcounter{tfno}     \renewcommand\arraystretch{2}     \newcommand{\nbox}{\resizebox{.5cm}{!}{\raisebox{-.5ex}{$\Box$}}}          \newenvironment{truefalse}{%     \setcounter{tfno}{0}     \setlength\LTleft{0pt}     \setlength\LTright{0pt}     \begin{longtable}{>{\stepcounter{tfno}\thetfno.}cp{.5        \textwidth}@{\extracolsep{\fill}}cc}     \multicolumn{1}{r}{}&  & \fbox{\parbox{.75cm}{True}} & \fbox{\parbox{.75cm}        {False}}    \\     }{%     \end{longtable}      }     \newcommand\tfquestion[1]{ & #1 & \nbox  & \nbox  \\}          \begin{document}     \begin{truefalse}     \tfquestion{Is this the first question?}     \tfquestion{2nd question}     \tfquestion{this series of questions for the true or false, if it reach the        nextpage, the command should prevent it.}       \end{document}      this is an example image: ![enter image description here](http://i.stack.imgur.com/yh4GV.png) As you can see the next page was the continuation of the question. What should I do to prevent this. I'd rather be favor of making a command for this error but i dont know how. pls help.. :(


title: Is there a short diagonal pointing arrow symbol?

text: I understand that the package `stmaryrd` has a shorter version of the `\rightarrow`, `\shortrightarrow`, I wonder if there's a short version of the diagonal arrows (e.g. `\searrow`) and if not, if there's an easy way to draw my own?


title: How do I modify an equation with a long numerator and a normal denominator?

text: I have a long equation from Mathematica with very long numerator and normal elements of denominator.               \begin{equation}     P_1(t)= \frac{\exp \left(-\frac{1}{4} t \left(\sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2}+3 \lambda _{\text{G1}}+3 \mu _{\text{G1}}\right)\right) \left(\lambda _{\text{G1}}^3 \left(\mu _{\text{G1}} \left(2 \exp \left(\frac{1}{4} t \left(\sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2}+3 \lambda _{\text{G1}}+3 \mu _{\text{G1}}\right)\right)-4 e^{\frac{1}{2} t \sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2}}-4\right)-\sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2} \left(e^{\frac{1}{2} t \sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2}}-1\right)\right)-\lambda _{\text{G1}}^2 \mu _{\text{G1}} \left(\mu _{\text{G1}} \left(10 \exp \left(\frac{1}{4} t \left(\sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2}+3 \lambda _{\text{G1}}+3 \mu _{\text{G1}}\right)\right)+11 e^{\frac{1}{2} t \sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2}}+11\right)+3 \sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2} \left(e^{\frac{1}{2} t \sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2}}-1\right)\right)+2 \lambda _{\text{G1}} \mu _{\text{G1}}^2 \left(\mu _{\text{G1}} \left(-5 \exp \left(\frac{1}{4} t \left(\sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2}+3 \lambda _{\text{G1}}+3 \mu _{\text{G1}}\right)\right)+e^{\frac{1}{2} t \sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2}}+1\right)+\sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2} \left(e^{\frac{1}{2} t \sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2}}-1\right)\right)+2 \mu _{\text{G1}}^4 \exp \left(\frac{1}{4} t \left(\sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2}+3 \lambda _{\text{G1}}+3 \mu _{\text{G1}}\right)\right)+\lambda _{\text{G1}}^4 \left(e^{\frac{1}{2} t \sqrt{-6 \lambda _{\text{G1}} \mu _{\text{G1}}+\lambda _{\text{G1}}^2+\mu _{\text{G1}}^2}}+1\right)\right)}{2 \left(-3 \lambda _{\text{G1}}^3 \mu _{\text{G1}}-16 \lambda _{\text{G1}}^2 \mu _{\text{G1}}^2-3 \lambda _{\text{G1}} \mu _{\text{G1}}^3+\lambda _{\text{G1}}^4+\mu _{\text{G1}}^4\right)},     \end{equation}


title: How to (properly) remove the parentheses around the year in authoryear style? (v2)

text: I have the same question as asked in How to (properly) remove the parentheses around the year in authoryear style?. The accepted answer, however, no longer works (presumable due to some update to `biblatex`). What would the current solution be?               \documentclass{article}          \usepackage[style=authoryear]{biblatex}     \usepackage{xpatch,filecontents}          \begin{filecontents}{\jobname.bib}     @misc{A01,author={Author, A.},year={2001},title={Alpha}}     @misc{A02,author={Author, A.},year={2001},title={Beta}}     \end{filecontents}     \addbibresource{\jobname.bib}     \xpatchbibmacro{date+extrayear}{%       \printtext[parens]%     }{%       \setunit{\addperiod\space}%       \printtext%     }{}{}     \begin{document}     \nocite{*}     \printbibliography     \end{document}      ![enter image description here](http://i.stack.imgur.com/oFO8d.png)


title: 81 figures in a Latex document

text: I have 81 figures saved as .png files . I want to display them all on a Latex document . I can plot about 10 of them before Latex starts complaining . Here is my Latex code :               \documentclass[a4paper]{article}     \usepackage{graphicx}          \author{me}     \title{81 figures}          \begin{document}     \maketitle          \begin{figure}     \centering     \includegraphics[width=\textwidth]{...location of figure 1...png}     \end{figure}          \begin{figure}     \centering     \includegraphics[width=\textwidth]{...location of figure 2...png}     \end{figure}          \end{document}       then I do the following : pdflatex file.tex (sometimes I do this 2 or 3 times to be sure but this time no cigar) If I just do one figure then there's no problem but after I add 81 figures it complains . ! LaTeX Error: Too many unprocessed floats. Anyone know a way around this ? Thanks .


title: Introductions and Conclusions - treating as normal chapters without numbers

text: Pardon the novice asking what is probably quite a silly question - I have already Googled without much success... I note that LaTeX allows you to stop a chapter from being numbered by inserting an asterisk into the code ie. `\chapter*` What is the equivalent code for classicthesis, and is it possible to have my introduction treated in all other respects like the other chapters in terms of layout? Essentially, I'd like to have my introduction, a set of numbered chapters, then an unnumbered conclusion and my references.


title: Indexing an interval of words on top of every page

text: Friends, I'm curious on how to do the following in LaTeX: Dictionaries have two words on the top of each page, meaning the interval of words to be found on that specific page, e.g., ![Dictionary](http://i.stack.imgur.com/Wr0Ui.gif) In the figure, **analyst** refers to the _lower bound_ (the first word), and **ancillary** refers to the _upper bound_ (the last word) in this page. I was wondering of how we could achieve something similar in LaTeX. Let's say we have the following document:               \documentclass{article}     \usepackage{multicol}     \usepackage{enumerate}     \usepackage{lipsum}          \begin{document}     \begin{multicols}{2}     \begin{description}         \item[adequate] \lipsum[1]         \item[adhere] \lipsum[2]         \item[adherence] \lipsum[3]         \item[adhesion] \lipsum[4]         \item[adhesive] \lipsum[5]         \item[adjacent] \lipsum[6]         \item[adjective] \lipsum[1]         \item[adjoin] \lipsum[2]         \item[adjourn] \lipsum[3]         \item[adjournment] \lipsum[4]         \item[adjunt] \lipsum[5]         \item[adjust] \lipsum[6]     \end{description}     \end{multicols}     \end{document}      ![My example](http://i.stack.imgur.com/3xfBO.png) For this page, I expect to see both **adequate** and **adhesive** in the top of the page (first and last items on the page, respectively). The same rule applies to the rest of the pages. **Update:** I should've mentioned that I'm curious of an "automatic" way of choosing which words will be set in the page headers. `=)` Any ideas?


title: How do you put multiple things under a limit?

text: I'm reading about inverse limits, and the notation sometimes requires some sort of index or set over which to take the inverse limit. It looks something like this: ![enter image description here](http://i.stack.imgur.com/UBJ5w.png) How would I correctly TeX that? I tried something like `{\lim_{\longleftarrow}}_{H\in\mathscr{F}}` but the arrow and the set are side by side, not one over the other.


title: Beamer image not centered

text: The following code:               \frame[plain]     {       \frametitle{}       \includegraphics[scale=0.75]{1.jpg}     }      is resulting in an image which is offset to the right. The left margin is larger than the right margin. Wrapping the `\includegraphics` in a `figure` or `center` environment does not solve the problem. How can I center the image in beamer?


title: Are there any Tablet (Android/iOS/Windows) Apps for ctan.org, tug.org and texdoc.net?

text: I had no idea if it was on-topic here, but I would like to draw attention to TeX.SX community and especially mobile App developers. Are there any Mobile/Tablet optimised website/Apps for ctan.org,tug.org and texdoc.net on Android/iOS/Windows platform similar to tex.sx mobile apps for   1. better visual organisation of website content   2. be able to search and read package documentation online   3. RSS feeds/TUG news ? etc.. similar to any Apps on Android/iOS   4. Basically get the same functionality of a ctan/tug/texdoc website with ease/screen optimisation on tablet/mobile with help of App I am sorry I have no idea on App development. Is there any place where we can suggest/request `TUG/CTAN` for a future work project ?


title: How do I remove the added space with default labels on nested enumerate environments

text: I would like to remove the added space before nested `enumerate` environments, when using the default labelling system. Note that I would like to make this change globally, rather than having to do it with each environment. Here is a MWE illustrating what I would like to have.               \documentclass{article}     \usepackage{enumerate}          \newcommand\insertitem[1]{\item{#1}}          \begin{document}     \begin{enumerate}     \item     \begin{enumerate}[(a)]     \item     This is the first enumerate, with the ``custom'' labels.     This is how I would like mt enumerate environments to look in general     \end{enumerate}     \end{enumerate}          \begin{enumerate}     \item     \begin{enumerate}     \item     This is my second enumerate, with the default labels.     Note the extra space between the 1. and (a).     I would like to change this globally to have the same spacing as the first enumerate environment.     \end{enumerate}     \end{enumerate}     \end{document}      Does anyone know how to do this? I have tried messing with `\leftmargin`, `\itemsep`, etc., with no success.


title: Embedding a PDF file with clickable external links into a LaTeX document

text: I want to embed a screenshot of a web page into a LaTeX document as a vector graphic with clickable links. I'm using wkhtmltopdf to render the web page as a letter-sized pdf file with working links. Then, I'm using this command to crop the pdf file while retaining the links:               gs -sDEVICE=pdfwrite -o "screenshot_cropped.pdf" -c "[/CropBox [`gs -sDEVICE=bbox -dBATCH -dNOPAUSE "screenshot.pdf" 2>&1 | awk '/HiRes/ { print $2,$3,$4,$5 }'`] /PAGES pdfmark" -f "screenshot.pdf"      (Commands taken from this thread on comp.text.tex; I can't use pdfcrop, since it apparently removes the links) Finally, I'm embedding the file into my LaTeX document with the following:               \includegraphics[width=6 in]{screenshot_cropped.pdf}      Unfortunately, the links no longer work in the resulting pdf file. How can I fix this? I'm using XeLaTeX if it matters.


title: Multiple rules for sign in sheet with automatic field generation

text: ![enter image description here](http://i.stack.imgur.com/RCsTU.jpg)I am trying to make a sign in sheet with multiple rules that generates however many fields I need for different occasions. I've got a working solution but I can't figure out how to make it so that each entry has two or three rules if necessary. Here's my code so far.               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \documentclass{article}          \usepackage[top=1in, right=1in, left=1in, bottom=1in]{geometry}     \usepackage{mathspec}     \setmainfont{Times New Roman}     \setmonofont{Lucida Sans Typewriter}          \usepackage{titling}          \title{ Computer Sign In Sheet}     \author{\ttfamily Physics Department}          \date{}          \usepackage{mathabx}          \usepackage{xkeyval}     \makeatletter     \define@key{setpar}{left}[0pt]{\leftmargin=#1}     \define@key{setpar}{right}[0pt]{\rightmargin=#1}     \define@key{setpar}{both}{\leftmargin=#1\relax\rightmargin=#1}          \usepackage{titling, xcolor}     \definecolor{title}{HTML}{000000}     \definecolor{title2}{HTML}{000000}     \pretitle{\begin{center}\hspace{0cm}\Huge\textcolor{title} \ttfamily}     % %% center can also be flushrig%          \posttitle{\par\end{center} }                                                 %% don't use centering %%%%     \preauthor{\begin{center}\large\rmfamily\vskip 0mm  }           %%%% \scshape give small caps fonts %%%     \postauthor{\end{center}  }     \predate{\begin{center}\large\scshape \vskip -1cm}     \postdate{\end{center} \vskip 2mm}               \usepackage{calc}                              \newenvironment{instructions}[1][both=1.5in]       {\normalsize\list{}{\setkeys{setpar}{left,right}%          \setkeys{setpar}{#1}%          \listparindent=0em          \topsep=0pt          \partopsep=0pt          \parsep=0ex}\item\relax\hspace{\listparindent}\ignorespaces}       {\endlist\vspace{3ex}}                         \begin{document}          \ttfamily          \maketitle          \rmfamily                    \begin{instructions}     Please sign your name below on the line corresponding to the computer that you are going to use for the day.  You must sign for the computer in order to borrow it.  Please sign in all of your group members.  Thank you.     \end{instructions}          \vspace{5ex}     %\setlength{\parindent}{0ex}               \newcounter{computer}                        \newcommand{\makelines}[1]{  \mbox{\noindent Computer no. #1 \rule{0.35\textwidth }{0.1 ex} }}                          \setcounter{computer}{1}           \noindent           \@whilenum{\value{computer}<20}\do{%              \makelines{\thecomputer}\vspace{2em} \hfill%              \addtocounter{computer}{1}}%           \newpage\stepcounter{computer}                     \end{document}


title: tikz diamond node white space

text: I wonder how I can remove the white space between the diamond node and the link in the following MWE.               \documentclass[10pt]{article}          \usepackage{tikz}     \usetikzlibrary{positioning,shapes,arrows}          \usepackage[a4paper, margin=0.2in, includefoot]{geometry}          \usepackage{fontspec,lipsum}     \defaultfontfeatures{Ligatures=TeX}     \setromanfont{Century Gothic}          \begin{document}          \tikzset{font=\Large,     every node/.style=         {rectangle,rounded corners,         draw=black,         very thick,         align=center         }}          \begin{tikzpicture}[node distance = 2cm, auto]     \node (a) {AAAAA};     \node[diamond, below=of a] (R) {BBBBB};     \node[below right=of R](d){CCCCC};     \draw[->][ultra thick](R.east) -| node[above, draw=none,near start,yshift=0.1cm] {No} (d.north);     \draw[->][ultra thick](a.south) -- (R.north);     \end{tikzpicture}          \end{document}


title: Use TikZ foreach variable in node

text: This MWE               \documentclass{standalone}     \usepackage{pgfplots}          \begin{document}          \begin{tikzpicture}[scale=0.75]         \begin{axis}[ylabel=Y-Axis, xlabel=X-Axis     , xmin=2, xmax=10, ymin=0, ymax=12, clip=false, axis y line*=right]         \foreach \blah in {0.9,0.5,0.2,0.1,0.05,0.02,0.01,0.005}{             \addplot[mark=none, domain=2:10, thick] {-ln(\blah/x^2)/ln(x)} node [pos=0,left] {$c_2=$}; %Varying c_2 values         }         \end{axis}     \end{tikzpicture}          \end{document}      produces this result ![Graph showing unlabeled c_2 values](http://i.stack.imgur.com/FVYXb.png) Note that the `c_2=` nodes on the left-hand side have no values on by the equal sign. I thought I could fix that by using               \addplot[mark=none, domain=2:10, thick] {-ln(\blah/x^2)/ln(x)} node [pos=0,left] {$c_2=$\blah}; %Varying c_2 values      But this doesn't work because PDFLaTeX tells me that I have an "Undefined control sequence." while referring to `\blah`. How can I get this to work?


title: Texshop cannot typeset .idx files

text: For some reason, Texshop refuses to typeset my index idx files. I'm working with a mac and a .ltx file this is my code:               % XeLaTeX can use any Mac OS X font. See the setromanfont command below.     % Input to XeLaTeX is full Unicode, so Unicode characters can be typed directly into the source.          % The next lines tell TeXShop to typeset with xelatex, and to open and save the source with Unicode encoding.          %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode     \documentclass[11pt]{book}     \usepackage{ledmac}     \usepackage{fancyhdr}     \pagestyle{myheadings}     \usepackage{hanging}     \textheight = 180.5 mm     \textwidth = 108.5 mm     \pagenumbering{arabic}     \usepackage{amsmidx}      \makeindex{nominum}     \makeindex{rerum}          \input{style}     \raggedbottom               \newcommand*{\LeftWidth}{3.0cm}%     \newcommand*{\RightWidth}{\dimexpr\linewidth-\LeftWidth-2em\relax}%     \newcommand{\AlignedBrace}[2]{%         \medskip\par\noindent%         \parbox{\LeftWidth}{\raggedleft\textbf{#1}\strut~}%         $\left\{~\parbox{\RightWidth}{\strut\textit{#2}\strut}\right.$%     }%               %\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.     %\geometry{a4paper}                   % ... or a4paper or a5paper or ...      %\geometry{landscape}                % Activate for for rotated page geometry     %\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent     \usepackage{graphicx}     \usepackage{amssymb}     \usepackage{amsmath}     %\renewcommand %These two commands are for double-spacing     %\baselinestretch{2}          % Will Robertson's fontspec.sty can be used to simplify font choices.     % To experiment, open /Applications/Font Book to examine the fonts provided on Mac OS X,     % and change "Hoefler Text" to any of these choices.          \usepackage{fontspec,xltxtra,xunicode}     \defaultfontfeatures{Mapping=tex-text}     \setromanfont[Mapping=tex-text]{Brill}     \setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans}     \setmonofont[Scale=MatchLowercase]{Andale Mono}     \frenchspacing               \begin{document}     .............................     \backmatter     \Printindex{nominum}{Index nominum}     \Printindex{rerum}{Index rerum}     \end{document}      and this is the log file I get:               This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6)      %&-line parsing enabled.     entering extended mode     (./medlyeM2.ltx     LaTeX2e <2005/12/01>     Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh     yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng     erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,      french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc     us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por     tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,      turkish, ukenglish, ukrainian, loaded.     (/usr/local/texlive/2007/texmf-dist/tex/latex/base/book.cls     Document Class: book 2005/09/16 v1.4f Standard LaTeX document class     (/usr/local/texlive/2007/texmf-dist/tex/latex/base/bk11.clo))     (/usr/local/texlive/2007/texmf-dist/tex/latex/ledmac/ledmac.sty     (/usr/local/texlive/2007/texmf-dist/tex/latex/ledmac/ledpatch.sty))     (/usr/local/texlive/2007/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)     (/usr/local/texlive/2007/texmf-dist/tex/latex/hanging/hanging.sty)     (./amsmidx.sty          ! LaTeX Error: \printindex undefined.          ! LaTeX Error: \indexchap undefined.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.108 \renewcommand{\indexchap}


title: PgfPlot with Y-axis only on the right hand side

text: I'm trying to draw graph similar to the one below with the Y-axis only on the RHS. ![A graph with the Y-axis only on the right hand side.](http://i.stack.imgur.com/QWFx7.png) The following MWE produces something close the desired result:               \documentclass{standalone}     \usepackage{pgfplots}          \begin{document}          \begin{tikzpicture}[scale=0.75]         \begin{axis}[ylabel=Y-Axis, xlabel=X-Axis     , xmin=2, xmax=10, ymin=0, ymax=12, clip=false, axis y line*=right]         \foreach \blah in {0.9,0.5,0.2,0.1,0.05,0.02,0.01,0.005}{             \addplot[mark=none, domain=2:10, thick] {-ln(\blah/x^2)/ln(x)} node [pos=0,left] {$c_2=$}; %Varying c_2 values         }         \end{axis}     \end{tikzpicture}          \end{document}      as this image shows: ![Graph showing the Y-axis almost on the right hand side, but the line on the left has disappeared](http://i.stack.imgur.com/a57yN.png) The y-axis label has not moved to the right and the box line on the left has disappeared entirely. Any thoughts on how to make things right and get a y-axis on the right-hand side and a box line on the left-hand side? Thanks!


title: Can one install LyX without LaTeX?

text: I wish to collaborate with a LyX file, using the "track changes" functionality. The collaborator doesn't have LyX or TeX installed. They are using Mac OS X, and don't have room for the 2.3 GB MacTex package (presumably it inflates to even larger than that). Is it possible for them to install LyX and use all the basic functionality (with the exception of exporting the via TeX into other formats)?


title: Beamer Bibliography Text Margin

text: To make reference in beamer bibliography, I used the following commands               \setbeamertemplate{bibliography item}[text]     \bibliographystyle{amsalpha}      Then I created a frame that allows frame break using               \begin{frame}[allowframebreaks]      And started bibliography with usual \begin{bibliography} command. The references are coming is text-style (e.g. [ABC14] etc) but the margin of the description of [ABC14] is not restricted to right side of [ABC14] as mentioned in following Beamer Pic. ![Beamer Pic](http://i.stack.imgur.com/jWoQI.png) I want it to be like usual latex, as shown in following Latex Pic.![enter image description here](http://i.stack.imgur.com/Oi7vv.png) Can anyone please help me out? If [amsalpha] style referencing is possible without this kind of margin issue, it will be helpful. Code:               \documentclass{beamer}     \setbeamertemplate{navigation symbols}{}     \usetheme{Antibes}          \usepackage[utf8x]{inputenc}     \newcommand\Fontvi{\fontsize{11.2}{7.2}\selectfont}          \begin{document}     \section{Introduction}     \cite{HVE-A} did this. \cite{HVE-B} did something else.     \pagebreak          \section{References}         \setbeamertemplate{bibliography item}[text]         \bibliographystyle{amsalpha}              \begin{frame}[allowframebreaks]             \begin{thebibliography}{}                 \frametitle{References}                 \Fontvi                 \bibitem[BW07]{HVE-A} Dan Boneh and Brent Waters, ``Conjunctive, subset, and range queries on encrypted data''.                 \bibitem[IP08]{HVE-B} Vincenzo Iovino and Giuseppe Persiano, ``Hidden-vector encryption with groups of prime order''.             \end{thebibliography}         \end{frame}     \end{document}


title: formatting of the table of contents

text: How can I change the settings of my table of contents, so that the sections and subsections are not indented as shown in the second picture. I would also like to center the title of the Contents. I am using the `article` class. ![enter image description here](http://i.stack.imgur.com/XQmyc.jpg)


title: mysterious error: \pdfendlink ended up in different nesting level than \pdfstartlink

text: I ran into the "mysterious"               \pdfendlink ended up in different nesting level than \pdfstartlink      error. According to http://www.tug.org/errors, "this happens when `hyperref` is used under pdftex and a citation splits across a page boundary". The given solution is to manual fix the citation to not split across the page boundary. However, this workaround isn't feasible for me, as the documents are automatically generated on a server with no user interaction. Is there any solution to the problem known, perhaps an experimental `hyperref` action or a patch to pdftex? (Probably, one could use luatex to solve the problem, but for other reasons, luatex is not an option in this project.) MWE:               \documentclass[%draft                   ]{article}     \usepackage{hyperref}     \setlength{\textwidth}{3cm}     \setlength{\textheight}{3cm}          \begin{document}     Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam     nonumy eirmod tempor invidunt ut labore et dolore magna     \href{http://www.tug.org/errors}{aliquyam erat, sed diam voluptua.}     \end{document}


title: Running Header w/ Tufte Latex

text: I'm trying to get a running header on the pages of a Tufte-formatted document. How does one do this? I put in information about the `\title`, `\author`, `\publisher` but this results in errors. Any help out there?               \documentclass{tufte-book}          %\title{Machiavelli and Pluralism}     %\author{Rod Johnson}     %\publisher{Interdisciplinary Institute}          \definecolor{Ahrenge}{RGB}{214, 88, 18}     \usepackage{fontspec}     \setmainfont{Amiri}          %------------------------------          \usepackage{hyperref}     \hypersetup{colorlinks,linktocpage,urlcolor=Ahrenge}               \usepackage{pifont}          %\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}                    \begin{document}                    \chapter{Machiavelli and Pluralism}          \ding{96} Rod Johnson, BYU          \section{Introduction}          Machiavelli’s cardinal achievement is his uncovering of an insoluble dilemma, the planting of a permanent question mark in the path of posterity. It stems from his \emph{de facto} recognition that ends equally ultimate, equally sacred, may contradict each other, that entire systems of value may come into collision without possibility of rational arbitration, and that not merely in exceptional circumstances, as a result of abnormality or accident or error—the clash of Antigone and Creon or in the story of Tristan—but (this was surely new) as part of the \href{http://www.google.com}{\textbf{normal human situation}}.\sidenote{Johnson, Rod. \emph{A Machiavellian Pluralism}. New York: NYU P, 2010.}          \end{document}


title: Spacing before and after with \newtheoremstyle

text: I want to define my own theorem style for examples. I want them to be numbered the same way as theorems (so Example 2.4 follows Theorem 2.3); I want them to be formatted exactly the same as theorems _except_ I don't want the text to be in italics. Here is the current solution my research has given me:               \newtheorem{thm}{Theorem}[chapter]          \newtheoremstyle{exampstyle}     {3pt} % Space above     {3pt} % Space below     {} % Body font     {} % Indent amount     {\bfseries} % Theorem head font     {.} % Punctuation after theorem head     {.5em} % Space after theorem head     {} % Theorem head spec (can be left empty, meaning `normal')          \theoremstyle{exampstyle} \newtheorem{examp}[thm]{Example}      The `examp` format does everything I need, except that there is no line- spacing before and after each example (whereas there is spacing before and after theorems).


title: Use \sbweight and \lgweight with cfr-lm package

text: cfr-lm provides `\sbweight` and `\lgweight` font weights.   1. With              \renewcommand\bfdefault{sb}      we can use this like default bold font. Is this the best way?   2. How can I use the `\lgweight` font weight with `\texttt` and `\ttfamily`?


title: Using one bib file, how can I make a References chapter and a Bibliography chapter?

text: I am writing my dissertation in LaTeX. I need to include a chapter for References (entries cited in the document) as well as another chapter for the Bibliography (the rest of the entries in the `.bib` file which were not cited). Ideally I would have just 1 `.bib` file. I came across something here: http://www.eng.cam.ac.uk/help/tpl/textprocessing/bibliographies.html But it didn't really work.


title: Error in multline

text: This is related to my early question, but with some changes:               \documentclass[11pt,twoside,a4paper]{article}     \usepackage{amsmath}     \usepackage{enumerate}      \begin{document}       \begin{multline}      E(y_{i})=     \left(      x_{2i}'\beta_{2}+     \frac{\sigma}{\Psi\left(x_{1i}'\beta_{1},\tfrac{x_{2i}'\beta_{2}}{\sigma},\rho\right)}     \left[     \phi\left(\tfrac{x_{2i}'\beta_{2}}{\sigma}\right)\Phi\left(\tfrac{x_{1i}'\beta_{1}-   \rho\tfrac{x_{2i}'\beta_{2}}{\sigma}}{\left(1-\rho^{2}\right)^{1/2}}\right)\right.\\     \qquad      + \left.      \rho\phi(x_{1i}'\beta_{1})\Phi\left(\tfrac{\tfrac{x_{2i}'\beta_{2}}{\sigma}-\rho x_{1i}'\beta_{1}}{\left(1-\rho^{2}\right)^{1/2}}\right)     \right]     \right)     \times\Psi\left(x_{1i}'\beta_{1},\tfrac{x_{2i}'\beta_{2}}{\sigma},\rho     \right)     \end{multline}      \end{document}      I have no idea why this is generating an error. `!Missing right \\.inserted`


title: How to make a grid of images?

text: Is it possible to place 4 images in an 2x2 grid? I don't want to float them, I don't want any captions. Each image should have the same width. **Edit:** Thanks for all the answers. After trying it out, I realized, that I forgot to ask one point: Suppose I have a counter like this:               \newcounter{eqn}     \renewcommand*{\theeqn}{\alph{eqn})}     \newcommand{\num}{\refstepcounter{eqn}\text{\theeqn}\;}      Now I want to add `\num` before each picture, the enumeration should be displayed above to the left of each image.


title: Bad pagebraks in longtable (empty table on second page)

text: I have some strange problem with my longtables. In some tables there is a pagebreak after the last row and on the second page there is the table header printed again without following content. I use the patched longtable from How to make longtable respect \nopagebreak in the beginning?. Here is a not really minimal example, which shows the problem in the second table:               \documentclass[open=any, a5paper, fontsize=9pt, DIV12]{scrbook}     %\usepackage[utf8x]{inputenc} only for pdflatex          \usepackage{etoolbox}     \usepackage{array}     \usepackage{longtable}     \usepackage{libertine}     \setcounter{secnumdepth}{-1}          \newcommand{\br}{\hfill\break}          \newif\ifnormalLT     \normalLTtrue          \makeatletter     \patchcmd {\LT@start}           {\vfil\break}           {\ifnormalLT\vfil\break\fi}           {\typeout{Patching longtable succeeded!}}           {\typeout{Patching longtable failed!}\ERROR}     \patchcmd {\LT@start}           {\penalty\z@}           {\ifnormalLT\penalty\z@\fi}           {\typeout{Patching longtable succeeded!}}           {\typeout{Patching longtable failed!}\ERROR}          \makeatother               \newenvironment{deklination}     {     \setlength{\extrarowheight}{.75ex}%     \normalLTfalse     \longtable{lp{3cm}p{3cm}p{3cm}}     &\textbf{Sg.}&\textbf{Du.}&\textbf{Pl.}\\     \endhead     }     {\endlongtable}          \usepackage{hyperref}          \begin{document}          \chapter{Lektion IX}          \section{Grammatik}          \subsection{Pronomen der zweiten Person svad, yuṣmad}          \begin{deklination}     \textbf{Nom.}&{svam}&{yuvām}&{yūvam}\\     \textbf{Akk.}&{svām},\br {svā}&{yuvām},\br {vām}&{yuṣmān},\br {vaḥ}\\     \textbf{Inst.}&{svayā}&{yuvābhyām}&{yuṣmābhiḥ}\\     \textbf{Dat.}&{tuhyam},\br {te} &{yuvābhyām},\br {vām}&{yuṣmabhyam},\br {vaḥ}\\     \textbf{Abl.}&{svat}&{yuvābhyām}&{yuṣmat}\\     \textbf{Gen.}&{tava},\br {te}&{yuvayoḥ},\br {vām}&{yuṣmākam},\br {vaḥ}\\     \textbf{Lok.}&{svayi}&{yuvayoḥ}&{yuṣmāsu}\\     \end{deklination}          \subsection{Pronomen der dritten Person tad – er, sie, es; jener, jene, jenes}     \subsubsection{Masculinum}          \begin{deklination}     \textbf{Nom.}&{saḥ}&{tau}&{te}\\     \textbf{Akk.}&{tam}&{tau}&{tān}\\     \textbf{Inst.}&{tena}&{tābhyām}&{taiḥ}\\     \textbf{Dat.}&{tasmai}&{tābhyām}&{tebhyaḥ}\\     \textbf{Abl.}&{tasmāt}&{tābhyām}&{tebhyaḥ}\\     \textbf{Gen.}&{tasya}&{tayoḥ}&{teṣām}\\     \textbf{Lok.}&{tasmin}&{tayoḥ}&{teṣu}\\%     \end{deklination}          \subsubsection{Femininum}     \begin{deklination}     \textbf{Nom.}&{sā}&{te}&{tāḥ}\\     \textbf{Akk.}&{tām}&{te}&{tāḥ}\\     \textbf{Inst.}&{tayā}&{tābhyām}&{tabhiḥ}\\     \textbf{Dat.}&{tasyai}&{tābhyām}&{tābhyaḥ}\\     \textbf{Abl.}&{tasyāḥ}&{tābhyām}&{tābhyaḥ}\\     \textbf{Gen.}&{tasyāḥ}&{tayoḥ}&{tāsām}\\     \textbf{Lok.}&{tasyām}&{tayoḥ}&{tasu}\\%     \end{deklination}          \subsubsection{Neutrum}     \begin{deklination}     \textbf{Nom.}&{tat} (d)&{te}&{tāni}\\     \textbf{Akk.}&{tat} (d)&{te}&{tāni}\\     \textbf{Inst.}&{tena}&{tābhyām}&{taiḥ}\\     \textbf{Dat.}&{tasmai}&{tābhyām}&{tebhyaḥ}\\     \textbf{Abl.}&{tasmāt}&{tābhyām}&{tebhyaḥ}\\     \textbf{Gen.}&{tasya}&{tayoḥ}&{teṣām}\\     \textbf{Lok.}&{tasmin}&{tayoḥ}&{teṣu}\\     \end{deklination}          \end{document}


title: newcommand about array

text: $     \left\{     \begin{array}{l}     a+b=c\\     c+d=e     \end{array}     \right.     $      I define a macro command for it.               \newcommand{\curleq}[2]{\left\{\begin{array}{#1}{#2}\end{array}\right.}      When I type               $\curleq{l}{a+b=c\\c+d=e}$      Latex reports error: "Extra }, or forgotten $." I wonder if anyone can help me solve the problem. Thanks.


title: indexing with sed using less brittle \gls and \acs and \index commands

text: I'm writing a book for which I produce sections for glossaries, acronyms and index entries using the `glossaries`, `acronym` and `makeidx` packages on a template derived from the Springer book template. To support this I have a build process using SED to run around 230 sed commands like this: ` s/([^a-zA-Z\\{\\}\\(\\)\/\\\\-]+)(UML)([^a-zA-Z\\{\\}\\(\\)\/\\\\-]+)/\1\\\myac{\2}\3/ ` the `\myac` command is defined as: ` \newcommand{\myac}[1]{#1\acs{#1}\index{#1}} ` That is, try to find matching whole words and insert acronym, glossary or index entries. This approach is _very_ fragile - if the glossary entries get inserted into captions or labels my build process almost always fails. Is there some way to define `\myac`, or any other command for that matter, so that it will not interfere with things like labels or other commands and environments if it finds itself embedded somewhere it shouldn't be? Or, alternatively, is there a better way to batch index a document? My doc is about 250 pages, and I don't really have time to go through it all manually entering index entries.


title: No page break for \listoffigures with scrreprt

text: I include three lists: `\listoffigures`, `\listoftables`, and `\lstlistoflistings`. However each list on a new page. I don't want to have a page break after each list but to list all three on one page. After some googling I found out that this behavior is connected to the document class. My documents is using `scrreprt` and I cannot (don't want to) change the type. If I'm not mistaken I need to rewrite / overwrite these commands to remove the page breaks. But I don't know how to do this.


title: Bibliographic entry for websites does not show up in the compiled document

text: This is what I have at the top:               \usepackage{csquotes,hyperref,url}     \usepackage[style=mla,guessmedium=false]{biblatex}      This is the bibligraphic entry:                @Misc{owlparagraph,           author = {Dana Lynn Driscoll and Allen Brizee},           title = {On Paragraphs},           note = "[Web. 17 April. 2010.]",           year = {2010},           uhowpublished = "\url{http://owl.english.purdue.edu/owl/resource/606/01/}"     }      The entry does not show up in the document after compiling it. If I remove `[style=mla,guessmedium=false]`, then the entry appears. I must have the bibliography in MLA format.


title: JabRef - Can't use ISBN to Bibtex-feature anymore, windows just closes

text: After I recently did a drag & drop action with several PDF files and let JabRef auto-import their properties/details, I noticed the ISBN to Bibtex- feature stopped working. If I enter (via c&p, of course) any ISBN into the field and hit enter, the result windows pops up for a moment and closes immediately after. Nothing happens, no import, no new entry whatsoever. Would anyone have a clue as to what could be done to fix this? If it helps: Windows 7 64 bit, JabRef 2.10. _Note:_ I am only posting this because I haven't received a reply on the official JabRef forums yet.


title: A&A template returns error \renewcommand{\Newassociation}

text: I got the template to make scientific papers from the Astronomy&Astrophysics official website. Since I can not compile my own document, due to an error, I tried to compile the demo that is within the package `aa.dem`. But still, the same error is returned:               (/usr/share/texmf/tex/latex/base/ifthen.sty)) (./answers.sty)          ! LaTeX Error: \Newassociation undefined.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.250 \renewcommand{\Newassociation}                                     [3]{%      I don't know much about how to properly compile, nor to the class/package I am using and which return the error, but this should not happen anyway, right?


title: using easybmat and tikz packages together?

text: In continuation to this question, I was looking for a way to add nice diagonal lines inside a BMAT matrix to express a band structure of the matrix. However, a LaTeX file with both TikZ and easybmat fails to compile. Is there anything I could do to have these two packages compile together? Minimal example:               \documentclass[a4paper,10pt]{article}          %\usepackage{easybmat}     %\usepackage{tikz}          \begin{document}     This document fails to compile if you remove both percent     signs. Remove any one of them and it compiles fine.     \end{document}


title: Adding a legend entry to a plot

text: In the following figure I want to add as legend in the figure               \ldots: st. 1          ___: st. 2      Please help me.               \begin{figure*}[htp]     {\tiny       \centering        \subfloat[$U(0.5)  $]{       \begin{tikzpicture}[scale=0.70,transform shape]         \draw (0,30*0.84) -- (5*1,30*0.84);     \draw (0,30*1.0) -- (5,30*1.0);     \draw (0,30*0.84)-- (0,30*1.0);     \draw (5,30*0.84)-- (5,30*1.0);     \draw (2.5,3*8.6-1.8)node{\large{$p\rightarrow$}};     \draw (-0.5-0.8,28.5)node{\large{$\uparrow$}};     \draw (-0.5-0.8,28)node{\large{$\delta$}};     \draw (0,26.8-2.0) node{0};     \draw (5*0.2,26.6-2) node{0.2};     \draw (5*0.2,26.8-1.8)--(5*0.2,26.8+0.4-1.8);     \draw (5*0.4,26.6-2) node{0.4};     \draw (5*0.4,26.8-1.8)--(5*0.4,26.8+0.4-1.8);     \draw (5*0.6,26.6-2) node{0.6};     \draw (5*0.6,26.8-1.8)--(5*0.6,26.8+0.4-1.8);     \draw (5*0.8,26.6-2) node{0.8};     \draw (5*0.8,26.8-1.8)--(5*0.8,26.8+0.4-1.8);     \draw (5*1.0,26.6-2) node{1.0};     %\draw (5*0.0-0.6,27.0-3) node{0.9};     %\draw (5*0.0-0.2,27.0)--(5*0.0+0.2,27.0);     %\draw (5*0.0-0.6,30*0.92-3) node{0.82};     %\draw (5*0.0-0.2,30*0.92-3)--(5*0.0+0.2,30*0.92-3);     \draw (5*0.0-0.6,30*0.94-3) node{0.84};     %\draw (5*0.0-0.2,30*0.94-3)--(5*0.0+0.2,30*0.94-3);     \draw (5*0.0-0.6,30*0.96-3) node{0.86};     \draw (5*0.0-0.2,30*0.96-3)--(5*0.0+0.2,30*0.96-3);     \draw (5*0.0-0.6,30*0.98-3) node{0.88};     \draw (5*0.0-0.2,30*0.98-3)--(5*0.0+0.2,30*0.98-3);     \draw (5*0.0-0.6,30*1.0-3) node{0.90};     \draw (5*0.0-0.2,30*1.00-3)--(5*0.0+0.2,30*1.00-3);     \draw (5*0.0-0.6,30*1.02 -3) node{0.92};     \draw (5*0.0-0.2,30*1.02-3)--(5*0.0+0.2,30*1.02-3);     \draw (5*0.0-0.6,30*1.04 -3) node{0.94};     \draw (5*0.0-0.2,30*1.04-3)--(5*0.0+0.2,30*1.04-3);     \draw (5*0.0-0.6,30*1.06 -3) node{0.96};     \draw (5*0.0-0.2,30*1.06-3)--(5*0.0+0.2,30*1.06-3);     \draw (5*0.0-0.6,30*1.08 -3) node{0.98};     \draw (5*0.0-0.2,30*1.08-3)--(5*0.0+0.2,30*1.08-3);     \draw (5*0.0-0.6,30*1.08+30*0.02 -3) node{1.00};     %\draw (5*0.0-0.2,30*1.08+30*0.02-3)--(5*0.0+0.2,30*1.08+30*0.02-3);          \draw[dotted](0.000000,27.213000)--(0.050000,27.271800)--(0.100000,27.403200)--(0.150000,27.286800)--(0.200000,27.270000)--(0.250000,27.396600)--(0.300000,27.445200)--(0.350000,27.395400)--(0.400000,27.491400)--(0.450000,27.558600)--(0.500000,27.593400)--(0.550000,27.642600)--(0.600000,27.593400)--(0.650000,27.645600)--(0.700000,27.601800)--(0.750000,27.756000)--(0.800000,27.772200)--(0.850000,27.815400)--(0.900000,27.832200)--(0.950000,27.785400)--(1.000000,27.897600)--(1.050000,28.033200)--(1.100000,28.022400)--(1.150000,27.937800)--(1.200000,28.015200)--(1.250000,28.065000)--(1.300000,28.057200)--(1.350000,28.114800)--(1.400000,28.057200)--(1.450000,28.150800)--(1.500000,28.200000)--(1.550000,28.152000)--(1.600000,28.206600)--(1.650000,28.246200)--(1.700000,28.246200)--(1.750000,28.264200)--(1.800000,28.393800)--(1.850000,28.347600)--(1.900000,28.317000)--(1.950000,28.417200)--(2.000000,28.447200)--(2.050000,28.464600)--(2.100000,28.440000)--(2.150000,28.483800)--(2.200000,28.481400)--(2.250000,28.524000)-     -(2.300000,28.584600)--(2.350000,28.576200)--(2.400000,28.572600)--(2.450000,28.646400)--(2.500000,28.604400)--(2.550000,28.718400)--(2.600000,28.684200)--(2.650000,28.727400)--(2.700000,28.774200)--(2.750000,28.805400)--(2.800000,28.812600)--(2.850000,28.783800)--(2.900000,28.809600)--(2.950000,28.875600)--(3.000000,28.821600)--(3.050000,28.910400)--(3.100000,28.905600)--(3.150000,28.886400)--(3.200000,28.953600)--(3.250000,29.024400)--(3.300000,29.046600)--(3.350000,29.072400)--(3.400000,29.064600)--(3.450000,29.053800)--(3.500000,29.062200)--(3.550000,29.098800)--(3.600000,29.151000)--(3.650000,29.130000)--(3.700000,29.157600)--(3.750000,29.173200)--(3.800000,29.223600)--(3.850000,29.190000)--(3.900000,29.168400)--(3.950000,29.278200)--(4.000000,29.243400)--(4.050000,29.319600)--(4.100000,29.318400)--(4.150000,29.319000)--(4.200000,29.350200)--(4.250000,29.377800)--(4.300000,29.402400)--(4.350000,29.380800)--(4.400000,29.385600)--(4.450000,29.393400)--(4.500000,29.410800)--(4.550000,29.469000)--(4.600000,     29.451600)--(4.650000,29.487000)--(4.700000,29.490600)--(4.750000,29.547600)--(4.800000,29.556000)--(4.850000,29.553000)--(4.900000,29.567400)--(4.950000,29.586000)--(5.000000,29.558400);          \draw[black](0.000000,27.258600)--(0.050000,27.285000)--(0.100000,27.309600)--(0.150000,27.370800)--(0.200000,27.468600)--(0.250000,27.417600)--(0.300000,27.533400)--(0.350000,27.564000)--(0.400000,27.643800)--(0.450000,27.719400)--(0.500000,27.699000)--(0.550000,27.803400)--(0.600000,27.756600)--(0.650000,27.845400)--(0.700000,27.796200)--(0.750000,27.867600)--(0.800000,27.967800)--(0.850000,27.989400)--(0.900000,28.036200)--(0.950000,28.023000)--(1.000000,28.137000)--(1.050000,28.153800)--(1.100000,28.159200)--(1.150000,28.160400)--(1.200000,28.254000)--(1.250000,28.348800)--(1.300000,28.344000)--(1.350000,28.408200)--(1.400000,28.384800)--(1.450000,28.336800)--(1.500000,28.423800)--(1.550000,28.405200)--(1.600000,28.572000)--(1.650000,28.556400)--(1.700000,28.540800)--(1.750000,28.571400)--(1.800000,28.649400)--(1.850000,28.629000)--(1.900000,28.648800)--(1.950000,28.671600)--(2.000000,28.682400)--(2.050000,28.703400)--(2.100000,28.755000)--(2.150000,28.761000)--(2.200000,28.789800)--(2.250000,28.803600)--     (2.300000,28.798200)--(2.350000,28.861800)--(2.400000,28.911000)--(2.450000,28.933800)--(2.500000,28.946400)--(2.550000,28.995000)--(2.600000,28.963800)--(2.650000,28.984200)--(2.700000,29.019000)--(2.750000,28.983000)--(2.800000,29.048400)--(2.850000,29.046000)--(2.900000,29.091000)--(2.950000,29.081400)--(3.000000,29.128800)--(3.050000,29.142000)--(3.100000,29.175600)--(3.150000,29.137200)--(3.200000,29.160000)--(3.250000,29.180400)--(3.300000,29.222400)--(3.350000,29.279400)--(3.400000,29.225400)--(3.450000,29.253000)--(3.500000,29.287800)--(3.550000,29.290200)--(3.600000,29.309400)--(3.650000,29.324400)--(3.700000,29.359200)--(3.750000,29.334600)--(3.800000,29.349000)--(3.850000,29.379000)--(3.900000,29.381400)--(3.950000,29.367000)--(4.000000,29.375400)--(4.050000,29.434200)--(4.100000,29.407800)--(4.150000,29.446800)--(4.200000,29.400000)--(4.250000,29.436000)--(4.300000,29.485800)--(4.350000,29.457600)--(4.400000,29.544000)--(4.450000,29.488800)--(4.500000,29.521800)--(4.550000,29.532000)--(4.600000,     29.498400)--(4.650000,29.520000)--(4.700000,29.560200)--(4.750000,29.545200)--(4.800000,29.543400)--(4.850000,29.589600)--(4.900000,29.593800)--(4.950000,29.587800)--(5.000000,29.572800);          \end{tikzpicture}      \label{fig0}}     }     \end{figure*}


title: No space between section heading and numbering

text: I'd like my section headings to be displayed directly after the section numbering with no space in between. This should be the case regardless of the number. Something like this:               1. A section heading     2. Another section heading     ...     1526. Yet another section      Currently I'm using `titlesec` with               \titleformat{\section}{\large\bfseries}{\makebox[1pt][l]{\thesection}}{12pt}{}      but this causes heading and large numbers to overlap.


title: sidewaystable is positioned before normal table when using the apa6 document class

text: I tried to use a normal table together with a sidewaystable in an apa6 class document. Following the APA guidelines, the table order should equal the order of appearance. However, if the normal table is positioned before the sidewaystable in the document, the table order is reversed in the output and the sidewaystable is placed before the normal table. Here is my example code:               \documentclass[man]{apa6}     \usepackage[american]{babel}     \usepackage[utf8]{inputenc}     \usepackage{rotating} % sidewaystable          \shorttitle{foo}          \begin{document}          Table \ref{tab:one} and \ref{tab:two}.          \begin{table}     \noindent     \captionbox{A small table.\label{tab:one}}{%     \begin{tabular}{ccc}\toprule     a & b & c \\ \midrule     1 & 2 & 3\\     \bottomrule     \end{tabular}     }     \end{table}          \begin{sidewaystable}     \noindent     \captionbox{One large table.\label{tab:two}}{%     \begin{tabular}{ccccc}\toprule     \textbf{a} & \textbf{b} & \textbf{c} & \textbf{d} & \textbf{e} \\ \midrule     1 & 2 & 3 & 4 & 5\\     \bottomrule     \end{tabular}     }     \end{sidewaystable}          \end{document}      The text in the resulting document is `Table 2 and 1.` and not `Table 1 and 2.`. I'm using the latest TeX Live packages.


title: adding co-authors to customised title page for beamer presentation

text: I have customised my title page, using `\title` `\date` and `\institute`. I would like to add another line with co-authors, but I couldn't find any examples of how to do it. My ideas at the moment are   1. I could hi-jack `\insertshortinstitute`, since I don't use this in anywhere else.   2. I could define a new variable e.g. `\def\mycoauthor{}` (like on Use the values of \title, \author and \date on a custom title page) but then I don't know how to access it, especially since my maketitle definite is in a separate style file. Here is a MWE showing how I create the title page at the moment, and an attempt to include coauthors:               \documentclass{beamer}      \usetheme{_MWE}          \title[short title]{TITLE TITLE TITLE TITLE TITLE TITLE}     \author[me]{A. U. Thor}     \def\coauthors{A. N. Other, J. Bloggs, J. Doe}     \institute[\coauthors]{My Institute}     \date{1.1.2012}          \begin{document}     \maketitle     \end{document}      `beamertheme_MWE.sty`:               \ProvidesPackage{beamertheme_MWE}          \makeatletter     \def\maketitle{%     \begin{frame}[plain]     {%      \vspace{10mm}      \parbox{122mm}%       {%        \centering        {\Large \inserttitle}\\        \vspace{8mm}        {\large \insertauthor}\\        \vspace{3mm}        {\large \insertshortinstitute}        \vspace{7mm}        {\small \insertinstitute}\\        \vspace{-5mm}        {\flushleft         \hspace{1mm}         LOGO1         \hspace{60mm}         \raisebox{0.5mm}{             LOGO2         \hspace{10mm}         }       }\\       \vspace{0mm}       {        \parbox{53mm}{\centering \small \insertdate\\        }       }      }     }     \end{frame}       }     \makeatother      incidentally... why doesn't the `\centering` command work for `\insertshortinstitute`, and why do I get an error "there's no line here to end" if I put a `\\\` after it, as I do with `\author` etc.?


title: Diagram showing all tex-related methods/approaches/engines

text: are you aware of a diagram showing all the connections between tex-related methods/engines. It would use terms such as tex - latex - context - luatex - xetex - xelatex - pdftex - pdflatex - etex and could even be extended to terms like xdvipdfmx and so on? All this is getting confusing, I think and it would be a good way to summarize. Thanks


title: problem compiling some 'math' using LuaLaTeX

text: Have a couple of documents with the following sort of construct:               \begin{equation}     y=\sqrt[n]{\prod_{i=1}^{n} x_{i}}     \end{equation}      Compiles/renders fine using 'standard' LaTeX, but fails miserably using LuaLaTeX. (I'm using MikTeX 2.9 for both). Any suggestions? Here is a MWE to 'play with'. As noted, the problem arises because of the 'product' inside the square root. luaLaTeX seems to be having problems handling 'big expressions' nested within the square-root construct. Thanks in advance.               \documentclass{article}     \usepackage{amsmath}          \begin{document}          This equation is properly rendered using a standard \LaTeX. However, it is not when compiled using lua\LaTeX.          \begin{equation*}     y=\sqrt[n]{\prod_{i=1}^{n} x_{i}}     \end{equation*}          This simpler expression compiles correctly.          \begin{equation*}     y=\sqrt[n]{x}     \end{equation*}          \end{document}       * * * OK, tried               \usepackage{unicode-math}     \setmathfont{Asana Math}      and it compiles fine, except I don't particular want to use Asana Math (given everything else is CM). So, for my (never-ending) edification, the * trick* (solution) hinges on using unicode? It seems as if the problem (as originally described) relates specifically to the `\prod` operator. For example,               \begin{equation}     y=\sqrt[n]{\frac{x^n-y^n}{1+u^{2n}}}     \end{equation}      compiles/renders fine. * * * Here is what the PDF I'm rendering _before_ adding the suggested unicode-math package. http://canuck.dnr.cornell.edu/misc/mah-example.pdf


title: How can I debug this problem with math typesetting?

text: > **Possible Duplicate:**   >  problem compiling some 'math' using LuaLaTeX While trying to write an equation it seems that the square root does not like particular elements. I tried to pinpoint the problem but I am a little stuck. After some time I could get a MWE together to reproduce the problem.               \documentclass[12pt]{article}          \usepackage{lmodern}          \usepackage[intlimits]{amsmath}          \begin{document}          \begin{align}      \tau_{1,2} = \sqrt{ \frac{(k)^2}{4 k_a^2} } \\      \tau_{1,2} = \sqrt{ \frac{(k)^2}{4 k_a} }      \end{align}          \end{document}      The output with `lualatex` looks as follows: ![enter image description here](http://i.stack.imgur.com/KNm7S.png) There are no error messages in the output. The problem disappears when I either disable `\usepackage{lmodern}` or switch to `pdftex` instead of `lualatex`. Is this a known bug, am I doing something wrong or is there a workaround?


title: "\Ualgocf@original@chapter" undefined when using algorithm2e with natbib

text: Is it possible to just use `plainnat` without using the package `natbib`? When I do so, multiple author references don't work too well. I get > [author et al (year)auhtor1, author2 and author3] when what I want is just > [author et al (year)] Anyway to fix this? If I add `\usepackage{natbib}` I just get an error:               Undefined control  sequence.          \chtapter ...ace {10\p@ }}\algocf@original@chapter          1.1 \begin{thebibliography}{28}      So using `plainnat` without `natbib` is the closest I got to get this working. Example:               \documentclass[a4paper,12pt]{article}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage{rotating}     \usepackage{listings}     \usepackage[ruled,vlined]{algorithm2e}     \usepackage[ngerman,english]{babel}     \usepackage{babelbib,url}      \usepackage{breakcites}     %\usepackage{natbib}     %\usepackage[square, comma, sort&compress]{natbib}     \usepackage[latin1]{inputenc}     \usepackage{pslatex}     \usepackage{setspace}     \setstretch{2}      \begin{document}         \cite{DPS2000}     \newpage\pagebreak     \nocite{*}     \bibliographystyle{plainnat}     \bibliography{references}     \end{document}      It compiles fine but I get > [author et al (year)auhtor1, author2 and author3] style referencing and if I uncomment `natbib` it won't compile.


title: KOMA-Script article in LyX

text: I would like to set the document class of my LyX document to KOMA-Script article. When I try this via `Document > Settings > Document Class`, the document does not compile any more. Last part of Error message:               Package amsthm Warning: Unknown theoremstyle `slplain' on input line 158.          (/usr/local/texlive/2012/texmf-dist/tex/latex/preprint/fullpage.sty)     (./KOMA.aux) (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/nameref.sty     (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     (./KOMA.out) (./KOMA.out)     (/usr/local/texlive/2012/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     ) ABD: EveryShipout initializing macros     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/t1cmss.fd)     (/usr/local/texlive/2012/texmf-dist/tex/latex/amsfonts/umsa.fd)     (/usr/local/texlive/2012/texmf-dist/tex/latex/amsfonts/umsb.fd)     ./KOMA.tex:181: Undefined control sequence.     \chapter ...ace {10\p@ }}\algocf@original@chapter           l.181 \tableofcontents                           {}     ?      (./KOMA.toc) [1{/usr/local/texlive/2012/texmf-var/fonts/map/pdftex/updmap/pdfte     x.map}] (./KOMA.aux) ){/usr/local/texlive/2012/texmf-dist/fonts/enc/dvips/cm-su     per/cm-super-t1.enc}</usr/local/texlive/2012/texmf-dist/fonts/type1/public/cm-s     uper/sfrm1000.pfb></usr/local/texlive/2012/texmf-dist/fonts/type1/public/cm-sup     er/sfrm1440.pfb></usr/local/texlive/2012/texmf-dist/fonts/type1/public/cm-super     /sfsx2074.pfb>     Output written on KOMA.pdf (1 page, 27879 bytes).     SyncTeX written on KOMA.synctex.gz.     Transcript written on KOMA.log.      What is wrong with the TOC here? Why is it not compatible with the document class? EDIT: As requested, here is a minimal example for which the error appears:               %% LyX 2.0.5.1 created this file.  For more info, see http://www.lyx.org/.     %% Do not edit unless you really know what you are doing.     \documentclass[10pt,english]{scrartcl}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{babel}     \usepackage[unicode=true,pdfusetitle,      bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,      breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]      {hyperref}          \makeatletter     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.     %------------------- My Packages --------------------------     \usepackage{graphicx}     \usepackage{amssymb}     \usepackage{epstopdf}          \usepackage[ruled,vlined, linesnumbered]{algorithm2e}     \usepackage{amsmath, amsthm, amssymb}     \usepackage{shadethm}     \numberwithin{equation}{section}     \usepackage{rotating}     \usepackage{subfigure}     \usepackage{hyperref}     \usepackage{float}      \usepackage{soul} % text highlighting     %\usepackage{minted} % code     \usepackage{multirow}     \usepackage{todonotes}     \usepackage{wrapfig}     %\usepackage{mparhack}     \usepackage{rotating}     %\usepackage[ngerman]{babel}     \usepackage{xcolor}     \usepackage{fancyhdr}     \usepackage{array}     \usepackage{numprint}     \usepackage{xspace}     \usepackage[switch]{lineno}     \usepackage{balance}               %----------------- My Settings ------------------------------          \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}     \graphicspath{{graphics/}}               %------------------- My Commands --------------------------               % text formatting     \newcommand{\algo}[1]{\textsf{#1}}     \newcommand{\term}[1]{\emph{#1}}     \newcommand{\atitle}[1]{\textsl{#1}}     \newcommand{\func}[1]{ \mathit{#1} }     \newcommand{\var}[1]{\mathtt{#1}}     \newcommand{\name}[1]{\textsc{#1}}     \newcommand{\software}[1]{\textsf{#1}}     \newcommand{\code}[1]{\textsf{#1}}     \newcommand{\class}[1]{\textsf{#1}}     \newcommand{\method}[1]{\textsf{#1}}     \newcommand{\prb}[1]{\textsc{{\small#1}}}     \newcommand{\smallcaption}[1]{\caption{\scriptsize{#1}}}                    % symbols     \newcommand{\NP}{$\mathcal{N}\mathcal{P}$}     \newcommand{\auth}{\smile}     \newcommand{\coauth}{\frown}     \newcommand{\mb}[1]{\mathbf{#1}}     \newcommand{\orp}{\; | \;}     \newcommand{\AND}{\wedge}          % notes      \newcommand{\vertical}[1]{\begin{sideways}#1\end{sideways}}     \newcommand{\TODO}[1]{\todo[size=\small, inline]{#1}}     \newcommand{\tinytodo}[1]{\todo[size=\tiny, inline]{#1}}     \newcommand{\note}[1]{\textcolor{orange}{\textbf{#1}}}          % abbreviations     \newcommand{\pairs}[1]{\textstyle{#1 \choose 2}}     \newcommand{\set}[1]{ \{ #1 \} }     \newcommand{\fig}[1]{Fig.~\ref{#1}}     %\newcommand{\ie}{i.e.\ }     %\newcommand{\eg}{e.g.\ }     %\newcommand{\etal}{et\! al.\! }          \newcommand{\ie}{i.\,e.,\xspace}     \newcommand{\eg}{e.\,g.,\xspace}     \newcommand{\etal}{et al.\xspace}     \newcommand{\Wlog}{w.\,l.\,o.\,g.\ }     \newcommand{\wrt}{w.\,r.\,t.\xspace}               % other     \newcommand{\margindef}[1]{\marginpar{\textsf{{\scriptsize #1}}} } % margin definition in small caps          \newcommand{\defblock}[2]{\begin{definition} \margindef{\\ #1}#2 \end{definition}} % definition block with margin definition               \makeatletter     \@addtoreset{paragraph}{section}     \makeatother          % ------------------- My Environments ---------------------          \newenvironment{citemize}{     \begin{itemize}       \setlength{\itemsep}{1pt}       \setlength{\parskip}{0pt}       \setlength{\parsep}{0pt}     }{\end{itemize}     }          \newenvironment{fitemize}{     \renewcommand{\labelitemi}{\small$\circ$}     \begin{itemize}       \setlength{\itemsep}{1pt}       \setlength{\parskip}{0pt}       \setlength{\parsep}{0pt}     }{\end{itemize}     }               \newenvironment{termdef}[2][default]     {\margindef{\\ #2} Def.: \textbf{#2} \\}     {}               \newenvironment{noteblock}{     \color{orange} }     {}               %------ This set of macros generates the daytime and puts it to the footline     \newcount\shortyear\newcount\shorthour\newcount\shortminute     \shorthour=\time\divide\shorthour by 60\shortyear=\shorthour     \multiply\shortyear by 60\shortminute=\time\advance\shortminute by     -\shortyear     \shortyear=\year\advance\shortyear by -1900          \def\zeit{\number\shorthour:\ifnum\shortminute<10 0\number\shortminute     \else\number\shortminute\fi}          \def\rightmark{{\small \today, \zeit{}}}     %\def\rightmark{}    %<-- Uncomment this line to remove the daytime!     %------                         %------------ My Theorems --------------------               \theoremstyle{slplain}          \newtheorem{theorem}{Theorem}     \newtheorem{corollary}[theorem]{Corollary}     \newtheorem{definition}{Def.}               % My Packages          \usepackage{fullpage} % smaller page margins          \makeatother          \begin{document}          \title{Title}               \author{Author}     \maketitle     \begin{abstract}          \end{abstract}     \tableofcontents{}          \pagebreak{}     \end{document}


title: Correct way to set margins

text: I set the margins of my document in this way using the `geometry` package               \usepackage[left=2.5cm,top=3cm,right=2.5cm,bottom=3cm,bindingoffset=0.5cm]{geometry}      Is it a correct way or does there exist a better way?


title: Text in the top-right margin on every page

text: I am trying to put my name in the top-right margin on every page. How could I do this?


title: Dual table alignment and lines

text: I have a table that is to big to fit in the page width, thus it is separated into two tables. The truth is that I only use one table but insert an empty row in the middle so that the columns stay aligned. Here's a reduced size example: ![enter image description here](http://i.stack.imgur.com/n6HCR.png) The idea is to removed the double line from the last column in the first row, and the vertical line that separates the last column from the empty column in the second table. The lines are the ones inside the green ellipsis. The code for the image is:               \begin{table}[t]     \centering     \begin{tabular}{c | c | r | r | r | r | r}     \multicolumn{2}{}{} & \multicolumn{3}{|c}{NS} & \multicolumn{2}{|c}{PV}      \\     Game Phase & Depth & \multicolumn{1}{|c}{TNC} & \multicolumn{1}{|c}{\# Cutoffs} & \multicolumn{1}{|c}{\# Re-searches} & \multicolumn{1}{|c}{TNC} & \multicolumn{1}{|c}{Gain}     \\\hline\hline     \multirow{2}{*}{Opening} & 8 & 336 & 10 568 & 1 231 & 336 & 0.00     \\     & 12 & 6 871 & 246 028 & 5 520 & 6 871 & 0.00     \\\hline     \multirow{2}{*}{Middle Game} & 8 & 1 605 & 71 728 & 5 532 & 1 605 & 0.00     \\     & 12 & 43 167 & 2 811 969 & 30 219 & 43 167 & 0.00     \\     \multicolumn{7}{}{}     \\     \multicolumn{2}{}{} & \multicolumn{4}{|c}{Two Bounds}     \\     Game Phase & Depth & \multicolumn{1}{|c}{TNC} & \multicolumn{1}{|c}{\# Cutoffs} & \multicolumn{1}{|c}{\# Re-searches} & \multicolumn{1}{|c}{Gain}     \\\hline\hline     \multirow{2}{*}{Opening} & 8 & 334 & 10 436 & 1 232 & 0.58     \\     & 12 & 6 844 & 244 147 & 5 524 & 0.39     \\\cline{1-6}     \multirow{2}{*}{Middle Game} & 8 & 1 599 & 71 490 & 5 519 & 0.38     \\     & 12 & 42 957 & 2 796 029 & 30 011 & 0.48     \end{tabular}     \caption{example}     \label{tab:example}     \end{table}


title: Using Palatino and Euler Math

text: I'm using Palatino font for my thesis calling in the preamble               \usepackage[sc]{mathpazo}     \linespread{1.05}            \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english,italian]{babel}      To use `eulervm` which is the correct way to call it? Before `fontenc` or after?


title: Reducing the console output of LaTeX

text: When I run pdfLaTeX, I get very verbose output:               (/usr/local/texlive/2008/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie     s/tikzlibrarycalc.code.tex)     ...      Is there a script to soak up all the verbose output and allow the important stuff to pass through, like errors, overfull hboxes, and so on? Also, is there a reason why it sends a hard return to the console for lines longer than 79 characters?


title: Latex compile reduce command line output

text: > **Possible Duplicate:**   >  Reducing the console output of LaTeX Any time I compile a tex document I get a ton of command line outputs about loading sty's and other useless information for me. How can I stop all this information and just display the errors themselves. Basically only stuff having to do with after `\begin{document}` It will be helpful because in WinEdt it always requires me to scroll down to to find the errors (which are somewhere in the middle).               Command Line:   lualatex.exe "doc.tex"     Startup Folder: D:\Documents\          This is LuaTeX, Version beta-0.70.1-2011080216 (rev 4277)      LaTeX2e <2011/06/27>     LuaTeX adaptation of babel <v3.8l-luatex-1.4> and hyphenation patterns for engl     ish, loaded.     ("D:/Program Files/Text/MiKTeX 2.9/tex/latex/base/book.cls"     Document Class: book 2007/10/19 v1.4h Standard LaTeX document class     ("D:/Program Files/Text/MiKTeX 2.9/tex/latex/base/bk10.clo"))     ("D:/Program Files/Text/MiKTeX 2.9/tex/latex/geometry/geometry.sty"          ....     ....     ....          LuaLaTeX failed to create a pdf file.     For possible explanations start the command from the Command Prompt...


title: Reducing output garbage

text: > **Possible Duplicate:**   >  Reducing the console output of LaTeX               running: C:\Program Files\Text\MiKTeX 2.9\miktex\bin\x64\lualatex.exe -interaction=batchmodesrc-specials main.tex      lualatex.exe> This is LuaTeX, Version beta-0.70.2-2012060719 (MiKTeX 2.9 64-bit)      lualatex.exe>  \write18 enabled.     lualatex.exe> Chapter 1.     lualatex.exe> [1{C:/Users/Me/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}] [2]     lualatex.exe> [3] [4] [5] [6] ("C:/Program Files/Text/MiKTeX 2.9/tex/latex/base/t1cmss.fd")     lualatex.exe> [7] [8]     lualatex.exe> Overfull \hbox (12.08553pt too wide) in paragraph at lines 69--271     lualatex.exe>  []      lualatex.exe> [9] [10] [11] [12] [13] [14]     lualatex.exe> ("C:/Program Files/Text/MiKTeX 2.9/tex/latex/inconsolata/t1fi4.fd") [15]     lualatex.exe> [16] [17] [18]     lualatex.exe> Chapter 2.     lualatex.exe>      lualatex.exe>      lualatex.exe>      lualatex.exe>      lualatex.exe> Time: 8s 855ms     lualatex.exe>       Is the output of my latex after compiling a document with several images included using about 20 packages(tikz, several custom packages, etc...) I would like to reduce the output even further. Specifically the `t1fi4.fd`, `t1cmss.fd`, and `pdftex.map` line as that is garbage to me. I guess it has to do with fonts and someone left in a `message` that outputs that junk to the console. The `[]` are not so bad and I believe have to do with the included images. With the `.fd`'s gone they will not look so bad and might be useful for a sort of progress report. It would be nice if I could make it skip a few counts though(like every 5 instead of every 1). The overfull box is sort of annoying but I can fix that easy enough. Does anyone recognize where the `.fd`/`.map` lines are coming from and/or know how to get rid of them? (I've disabled all outputting messages I could think of but these always show up and break the flow of the program for no good reason) Thanks


title: Changing page numbering style occurs one page earlier than expected?

text: I want my report to have the first few sections with roman numbering (i, ii, iii...), and the body of the report with arabic numbering (1, 2, 3...) for the page numbers. The problem is that the switch appears to be occurring a page earlier than I would expect from my code:               \documentclass{report}     \begin{document}     % === Abstract etc ===     \pagenumbering{roman}     \section*{first section}     Want this to be page i     \pagebreak     \section*{second section}      Want this to be page ii, but it appears as 1 instead     \pagebreak     % === Body of report ===     \pagenumbering{arabic} %change to arabic for final page     \section*{third section}     Want this to be page 1, but it appears as 2 instead     \section*{fourth section}     \end{document}      I can see that If I put the `\pagenumbering{arabic}` command on the line below the third section then it fixes the problem, but this is inconvenient because if I have a modular document and comment out a section then I have to keep changing the position of `\pagenumbering{arabic}`. Furthermore, If I put a line break before `% === Body of report ===` it fixes the problem in my MWE (but not my actual report for some reason). Very confused at this behaviour. Is this a bug? and is there a solution around it?


title: Tikz : texture cube faces using png image

text: I would like to draw a cube using Tikz with some faces of the cube having a texture on it (texture would be a PNG image) my current code is at follows :               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{3d,calc}     \tikzset{persp/.style={scale=3.0,x={(-0.8cm,-0.4cm)},y={(0.8cm,-0.4cm)}, z={(0cm,1cm)}},points/.style={fill=white,draw=black,thick}}          \begin{document}     \begin{tikzpicture}[persp]\def\i{-15}         \pgfmathparse{cos(\i)}\let\ci\pgfmathresult         \pgfmathparse{sin(\i)}\let\si\pgfmathresult          \coordinate (Ocube) at (0,0,0);         \coordinate (Xcube) at (\ci,\si,0);         \coordinate (Ycube) at (-\si,\ci,0);         \coordinate (Zcube) at (0,0,1);         \coordinate (C0) at ($(Ocube)-(Xcube)-(Ycube)-(Zcube)$);         \coordinate (C1) at ($(Ocube)+(Xcube)-(Ycube)-(Zcube)$);         \coordinate (C2) at ($(Ocube)-(Xcube)+(Ycube)-(Zcube)$);         \coordinate (C3) at ($(Ocube)+(Xcube)+(Ycube)-(Zcube)$);         \coordinate (C4) at ($(Ocube)-(Xcube)-(Ycube)+(Zcube)$);         \coordinate (C5) at ($(Ocube)+(Xcube)-(Ycube)+(Zcube)$);         \coordinate (C6) at ($(Ocube)-(Xcube)+(Ycube)+(Zcube)$);         \coordinate (C7) at ($(Ocube)+(Xcube)+(Ycube)+(Zcube)$);         \fill[black!20, draw=black, dashed,opacity=0.3] (C0)--(C1)--(C3)--(C2)--cycle;         \fill[black!20, draw=black, dashed,opacity=0.3] (C0)--(C1)--(C5)--(C4)--cycle;         \fill[black!20, draw=black, dashed,opacity=0.3] (C0)--(C2)--(C6)--(C4)--cycle;         \fill[black!20, draw=black, thick,opacity=0.3] (C4)--(C5)--(C7)--(C6)--cycle;         \fill[black!20, draw=black, thick,opacity=0.3] (C2)--(C3)--(C7)--(C6)--cycle;         \fill[black!20, draw=black, thick,opacity=0.3] (C1)--(C3)--(C7)--(C5)--cycle;            \coordinate (Q0) at ($(Ocube)-.8*(Xcube)+(Ycube)-.8*(Zcube)$);         \coordinate (Q1) at ($(Ocube)+.8*(Xcube)+(Ycube)-.8*(Zcube)$);         \coordinate (Q2) at ($(Ocube)-.8*(Xcube)+(Ycube)+.8*(Zcube)$);         \coordinate (Q3) at ($(Ocube)+.8*(Xcube)+(Ycube)+.8*(Zcube)$);         \fill[white!20, draw=black, thick,opacity=0.3] (Q0)--(Q1)--(Q3)--(Q2)--cycle;     \end{tikzpicture}     \end{document}      On the last line, rather then filling white a color (white!20), I would like to draw the image "face.png". This drawing must be distorded so to fit the face realisticaly. Could someone help me doing that ?


title: How to draw a TikZ diagram that does not occupy space

text: I am new to TikZ and I have a trivial question. How to draw a borderless diagram? In other words, I need something that does not displace the text. Similar to the effect achieved with a regular LaTeX picture with {0,0} for width and height. Here is a minimal example of what I need the diagram to look like:               \documentclass[a4paper]{report}     \usepackage{tikz}     \begin{document}     \begin{picture}(0,0)(0,0)       \put(0,3){\vector(1,0){60}}     \end{picture}     Picture     \tikz{\draw [->] (0,0) -- (0:80pt);}     TikZ     \end{document}      This results in the following: ![example](http://ubuntuone.com/1Kgnezgx4gUSZ9sgJIcjJR) I would like the vector (and the environment in general) of TikZ to be over the word and not displace it. Similar to the one with Picture. I feel there's a straightforward solution for this, but I can't seem to find it. Thank you


title: Enumitem, Listings, Tabbing to a Certain Point

text: I was wondering whether it was possible to align a `lstlisting` environment to a certain point within an `enumerate` . The purpose of my doing this is to fit as much code sample on the page as possible, while maintaining a two-column environment. In the following code sample:               \documentclass[twocolumn]{article}          \usepackage{enumitem, listings}          \begin{document}     \begin{enumerate}     \item First enumerate level     \begin{lstlisting}[frame = single]     First code sample     \end{lstlisting}     \begin{enumerate}     \item Text that is stationary     \begin{lstlisting}[frame = single, breaklines = true, breakindent = 0pt]     Code sample that has the same alignment as the First code sample     \end{lstlisting}     \end{enumerate}     \end{enumerate}     \end{document}      The code sample produces: ![Code Sample Alignment](http://i.stack.imgur.com/IKcfm.png) How do I move the second code sample to the left, so that its alignment is the same as the first code sample? Note that I have tried using `\end{enumerate}` and `\begin{enumerate}[resume]`. However, this only seems to suspend the level of enumeration 1 level. Also, I have tried exiting the `enumerate` environment altogether by doing `\end{enumerate}` before the `lstlisting` environment. However, sometimes I have items following the `lstlisting` environment.


title: Less vertical space in frac

text: I'm using unicode-math in lualatex with the Cambria Math fonts. Compared to Computer Modern math, there is too much vertical space between fractions. Is there a way I can achieve my adjustment without having to patch `\frac`? For example a fontspec or unicode-math option? i.e. I'm looking for an option to change the vertical space around the fraction bar. **Edit** : added xfrac case and +frac, +numr/+dnom. +frac just +sups all digits. Custom xfrac only works in math mode when enclosing the arguments in `\text{19}` but not with `\text{#1}`?!. LuaTeX-0.70.2, Cambria 5.96               \documentclass{article}     \usepackage{fontspec}     \usepackage{xfrac}     \usepackage{unicode-math}     \setmathfont{Cambria Math}     \setmainfont{Cambria}          \newcommand{\otfrac}[2]{%         \frac%             {\raisebox{-.1em}{\scriptsize $#1$}}%             {\raisebox{.15em}{\scriptsize $#2$}}%     }          \newcommand{\ofrac}[2]{%         \text{%             {\addfontfeature{VerticalPosition=Numerator}#1}%             \divslash{}%             {\addfontfeature{VerticalPosition=Denominator}#2}         }%     }          \begin{document}     % tfracs look weird:     \noindent here is a first ygygyg line of text\\     bit too large: $\frac{19}{30}$. $\otfrac{19}{30}$ better?\\     here is anothÁÁÁÁÁÁ line of text\\[.5em]     %     % default sfrac looks weirder:     default sfrac text \sfrac{19}{30} math $\sfrac{19}{30}$\\     %     % customising helps some:     \DeclareInstance{xfrac}{default}{text}{         numerator-top-sep = -.1ex,         denominator-bot-sep = -.1ex,         slash-symbol=\divslash,     }     \DeclareCollectionInstance{plainmath}{xfrac}{mathdefault}{math}{         numerator-top-sep = -.2ex,         denominator-bot-sep = -.1ex,         scale-factor = 0.8333,         scale-relative = true,         slash-right-mkern = -0mu,         slash-left-mkern = -0mu,         slash-symbol=\text{\divslash}     }     \UseCollection{xfrac}{plainmath}     custom sfrac text \sfrac{19}{30} math $\sfrac{19}{30}$\\     %     % +frac feature just superscripts all digits     {\addfontfeature{Fractions=On} +frac 19/30, bad: 24. }     +numr/+dnom: \ofrac{19}{30} \\     %     % customize sfrac this way:     \DeclareInstance{xfrac}{default}{text}{         numerator-bot-sep = 0pt, denominator-bot-sep = 0pt,         scaling = false, slash-symbol=\divslash,         numerator-format={\addfontfeature{VerticalPosition=Numerator}#1},         denominator-format={\addfontfeature{VerticalPosition=Denominator}#1},     }     \ExplSyntaxOn     \DeclareCollectionInstance{plainmath}{xfrac}{mathdefault}{math}{         numerator-top-sep = \c_max_dim, numerator-bot-sep = 0pt,         denominator-bot-sep = 0pt, scaling = false,         slash-right-mkern = 0mu, slash-left-mkern = 0mu,         slash-symbol=\text{\divslash},         %------------------vvvv-- or no \text{}, doesn't matter.         numerator-format={\text{\addfontfeature{VerticalPosition=Numerator}#1}},         denominator-format={\text{\addfontfeature{VerticalPosition=Denominator}#1}},     }     \ExplSyntaxOff     \UseCollection{xfrac}{plainmath}     % nice     otf custom sfrac text \sfrac{19}{30}     % what?!     math $\sfrac{19}{30}, \sfrac{\text{19}}{\text{30}}$\\          \end{document}      ![rendering of code sample](http://i.stack.imgur.com/JKpVm.png) * * * I'm not using `\sfrac` with anything other than digits as arguments anyway so I'll use this instead for consistency, but a way to modify `\tfrac` would still be interesting, or is `\tfrac = \otfrac` the best way?


title: Partway calculation along a bend

text: I apologize if this question has been asked. I think it should be fairly simple, but I've looked around a bit and I can't find anything that does what I'm looking for. I know you can calculate, e.g., the point 10% of the way between two nodes:               \node (A) at (0,0) {};     \node (B) at (1,0) {};     \coordinate (C) at ($(A)!0.1!(B)$);      But what if I were drawing a bent line between nodes A and B:               \draw (A) to [bend left=30] (B);      How to I calculate the coordinate that is 10% of the way along this bent path? Thanks in advance.


title: Calculator style base 10 notation in LaTeX

text: What is the best way to write something like 6.22E-21 in LaTeX, given that I don't want the numerals to be \tt, I do want the E to be small, and I may want the exponent to be negative (without the huge LaTeX minus sign)? I'm sure this is a duplicate of another question that I just can't find. Example here: ![enter image description here](http://i.stack.imgur.com/OTXmR.jpg)


title: Labeling part of an equation

text: How do I label part of an equation using the same counter as for equations? For example,               \begin{align}     x^2+bx+c&=x^2+bx+\frac{b^2}{4}-\frac{b^2}{4}+c \label{eq:1}\\     &=(x+b/2)^2+\underbrace{(-\frac{b^2}{4}+c)}{(*)} \label{eq:2}     \end{align}     The quantity~\ref{eq:2}...      produces ![labeling](http://i.stack.imgur.com/Q0pbj.png) But I want the (2) to appear where the (*) is. (I.e., I want to use the equation counter but place the label in an arbitrary location, which is under the underbrace here.) Thanks in advance.


title: Using \glsaddallunused for customized Glossaries

text: This question is related to the following answer Suppress symbol in nomenclature after first use As I am using the cusmized glossaries (Thanks to @karlkoeller), the command \glsaddallunused is not working. How can I use \glsaddallunused in the scheme of above link? I am using Glossaries version v4.06. Thanks.


title: A good tool to make electronic schematics and export them vectorially?

text: I have to make a relative simple diagram and import it to latex vectorially. What would you recommend me to do this? This question might not be best asked here, but I suspect a lot of you have created LaTeX documents that contain electronic diagrams. I know about circuitikz, and xcircuit. But the first option is very slow and the second is very weird. I want something faster yet with high quality.


title: Package: pifont

text: What does the following message mean? The line indicated has a command which relates to how I call the theorems, lemmas and so on.               Package: pifont 2005/04/12 PSNFSS-v9.2a Pi font support (SPQR)      LaTeX Font Info:    Try loading font information for U+pzd on input line 63.      ("C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\upzd.fd"     File: upzd.fd 2001/06/04 font definitions for U/pzd.     )     LaTeX Font Info:    Try loading font information for U+psy on input line 64.      ("C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\upsy.fd"     File: upsy.fd 2001/06/04 font definitions for U/psy.     )     ! Font U/psy/m/n/10.95=psyr at 10.95pt not loadable: Metric (TFM) file not found.     <to be read again>                         relax      l.64 {\Pifont{psy}                       }


title: How to enable the page number counter but don't display it in the titlepage in ConTeXt?

text: I have observed some books and find that these books start the page number counter in the titlepage (some even do this from the cover) but don't display the page number in the titlepage, also the verso of it. The structure of the document is as follows:               % we assume that page numbers are doublesided.     \starttext     \startfrontmatter     \startstandardmakeup     ... % titlepage     \stopstandardmakeup     \stopfrontmatter     \stoptext      how to do this in ConTeXt?