title: Add html preformatted text into latex

text:
I am writing my thesis using LaTeX, and a would like to add some code in it. I tried so far the `listings` by I am not satisfied with the result. Is there a way to add a pre-formated code in HTML into LaTeX? I want to take my code from `Kate` as a pre-formated text in HTML and put it into my thesis text. Is that possible? For example I have the following code in C:               struct cpu_info {         long unsigned utime, ntime, stime, itime;         long unsigned iowtime, irqtime, sirqtime;     };      I copy from Kate that code as HTML. The contents of the clipboard are
     struct cpu_info {         long unsigned utime, ntime, stime, itime;         long unsigned iowtime, irqtime, sirqtime;     };
      I want to insert this code in Latex in order to produce the formatted text of the above HTML code without using listings if it is possible. My code is written in C so if anyone has a good `lstset` for C, that would be also great for me. I use `\documentclass[a4paper,10pt]{article}`.


title: LaTeX to Braille

text: Accessibility for the visually impaired is becoming a big issue. The posts that I have linked to below ask questions about `alt-tags` or `tooltips`, both of which would be great options. I would like to ask a question along a different tack. The TUG website http://www.tug.org/tex4ht/ states that `tex4ht` can convert documents to Braille. I have searched for the commands to do so, but to no avail. Does anyone know how to convert a `LaTeX` document (with mathematical content and graphs) to Braille? An OS-independent solution would be ideal. **Related posts:**   * Is there an easy way to add hover text to all incidents of math mode where the hover text would contain the LaTeX code?   * LaTeX accessibility


title: How can I put "=" in a TikZ node label specified as an option

text: When I try to put an `=` symbol into a TikZ node label specified as an option (using `label=`), I get an error:               Extra }, or forgotten $.      Is there a way to specify `=` in such cases that I'm missing? * * *               \documentclass{article}     \usepackage{tikz}          \begin{document}     \begin{tikzpicture}       \node(x){$X$};       \path(x)[late options={label=right:=$A$}];     % Works but doesn't display anything       \path(x)[late options={label=above:$\neq B$}]; % Works        \path(x)[late options={label=below:$C$}];      % Works        \path(x)[late options={label=left:$=D$}];      % Fails!      \end{tikzpicture}     \end{document}


title: How to reference the Index?

text: How can I reference the index created by the package `makeidx`? **Minimal working example:**               \documentclass{scrbook}          \usepackage{hyperref} % creates links on refs     \usepackage{makeidx}     \makeindex          \begin{document}         % add something to the index...         The foobar\index{foobar} is quite impressive!              % some reference to the index...         Please follow the \ref{index}.              % print index...         \printindex      \end{document}      The obvious `\label{index}` does neither work before nor after `\printindex`. **Edit** (thanks to daleif): An important fact I forgot to tell: I want the index to be linked at `\ref{index}`. That's why I cannot just say `See index.`


title: Which spacing after a semicolon following acronym?

text: Similar to my previous question, I have a few sentences ending `ACRONYM; word`. `chktex` recommends I insert intersentence spacing (`ACRONYM\@; word`). I can't find a decent reference to explain why an intersentence spacing should be used mid-sentence - I assume that, should I not precede a semicolon with an acronym, an intersentence spacing is used? If intersentence spacing is the correct choice (as opposed to my naive assumption of interword spacing), my question: is this a styling issue (I should choose intersentence because that's the way the semicolons not preceded by acronyms will be spaced), or is one spacing more technically correct than the other? Is there a set of English typography rules I can reference when I'm unsure why I'm doing one thing over another?


title: Block Diagrams in TikZ

text: for my thesis i need to put some block diagrams in my LaTeX document. I was recommended to use TikZ for that.   This is the only sample code i could find. Do you guys maybe have some tutorials / doc on that? Especially i am interested in how to put graphical symbols into the boxes instead of text. And how to draw a dashed box around blocks. Something like: ![image](http://i.stack.imgur.com/ozS2X.gif)


title: Table of Contents Capitals for both "CHAPTER 1" as well as its name "PRACTICAL PHILOSOPHY."

text: I cannot find anyplace to clarify this or send me in the correct direction. At the beginning of Chapters and in the TOC, it begins "Chapter 1." and needs to be "CHAPTER 1", with a double space after. My title then follows in all caps and this is happening automatically. I cannot find where the TOC command is getting "Chapter 1." in the TOC or for the Chapters themselves. Not that advanced in knowing how to change style files, which I got from my university. But it was for EE and I am humanities trying to make it work for Turabian Style, Chicago style. Here's the relevant portion of the `utdallas.sty` file. It has entries for everything but the chapters themselves, but adding the Appendix and such is there since they need the `addcontentsline`.               \def\appendixname{APPENDIX}          \def\appendix{\clearpage         \typeout{APPENDIX.}         \thispagestyle{empty}         \vspace*{\fill}         \centerline{\normalsize APPENDIX}         \vspace*{\fill}         \nopage@addcontentsline{toc}{chapter}{APPENDIX}         \setcounter{chapter}{0}         \setcounter{section}{0}         \def\@chapapp{\appendixname}         \chap@or@app=2         \def\thechapter{\Alph{chapter}}}          \def\appendices{\clearpage         \typeout{APPENDICES.}         \thispagestyle{empty}         \vspace*{\fill}         \centerline{\normalsize APPENDICES}         \vspace*{\fill}         \nopage@addcontentsline{toc}{chapter}{APPENDICES}         \setcounter{chapter}{0}         \setcounter{section}{0}         \def\@chapapp{\appendixname}         \chap@or@app=2         \def\thechapter{\Alph{chapter}}}          \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne         \refstepcounter{chapter}         \typeout{\@chapapp\space\thechapter.}         \addcontentsline{toc}{chapter}{\@chapapp\space\thechapter.\hspace*{1em}\uppercase{#1}}\else         \addcontentsline{toc}{chapter}{\uppercase{CHAPTER}}\fi         \chaptermark{#1}         \addtocontents{lof}{\protect\addvspace{10pt}}         \addtocontents{lot}{\protect\addvspace{10pt}}         \@makechapterhead{#2} \@afterheading         \ifnum\chap@or@app=1\ifnum\value{chapter}=1     % if Chapter 1             \markboth{}{}\pagestyle{myheadings}             \pagenumbering{arabic}\fi\fi         \thispagestyle{plain}}          \def\@schapter#1{\thispagestyle{plain}         \@makeschapterhead{#1} \@afterheading}          %%% Stolen from latex.tex (to unindent the first para of (sub)sections)     \def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi        \par \@tempskipa #4\relax        \@afterindentfalse        \if@nobreak \everypar{}        \else\addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi        \@ifstar{\@ssect{#3}{#4}{#5}{#6}}%                {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}          \def\section{\@startsection{section}{1}{\z@}%         {4.6ex plus -1ex minus -.2ex}{.3ex plus .2ex}{\normalsize\it}} % Moh     \def\subsection{\@startsection{subsection}{2}{\z@}%         {3.9ex plus -1ex minus -.2ex}{.2ex plus .2ex}{\normalsize\it}} % Moh     \def\subsubsection{\@startsection{subsubsection}{3}{\z@}%         {3.25ex plus -1ex minus -.2ex}{.1ex plus .2ex}{\normalsize\it}}          \def\thebibliography#1{\chapter*{REFERENCES}         \addcontentsline{toc}{chapter}{REFERENCES}


title: Remapping LaTeX symbol to another unicode value

text: When compiling the following piece of LaTeX code, the ∖ symbol does not show up.               \documentclass{article}     \usepackage{unicode-math}     \setmainfont{Latin Modern Roman}     \setmathfont{Latin Modern Math}     \begin{document}     This will not show: $\setminus$ \\     This will show: $\smallsetminus$     \end{document}      I know why this happens: `\setminus` translates to unicode character `0x29F5`, and this character is not part of Latin Modern Math. What I would like to do is to use Unicode character for `\smallsetminus`, `0x2216`, instead. So what I am really looking for is a way to remap the `\smallsetminus` command to another Unicode value than the one defined by the unicode-math package. I know a possible way to get a value for `\setminus` would be to use another math font that does have Unicode character `0x29F5`. Adding the line               \setmathfont[range={"29F5}]{XITS Math}      gives me a ∖ symbol, but I don’t want to use another font for this character.


title: showonlyrefs and cleveref

text: > **This question led to a new package:**   >  `autonum` I know that `cleveref` is not compatible with `showonlyrefs` as it says in the `cleveref` manual. But I have a book-length document that depends on `showonlyrefs` and I would like to start using `cref` without having to go back and add a `\notag` to each of the equations that I do not want to assign a number to. Is there a known hack or an easy way to use `cref`? I have recently begun to appreciate the power of `cleveref` and would like to use it without going back and changing each and every one of my equations.


title: displaymath/split environment with three columns

text: I am writing the following equation:               \begin{displaymath}     \begin{split}       MA &= MAAMB + MACAMB\\       \Leftrightarrow MA &= (MAAM + MACAM)B\\       \Leftrightarrow (MAAM + MACAM)^{-1}MA &= B     \end{split}     \end{displaymath}      The problem is that I cannot introduce another `&` to separate the equivalent sign (the `\Leftrightarrow`) from the line itself; i.e. to create a distance between the sign and the beginning of the formular. I want that the equivalent signs are aligned similar the the equal signs. Is there a way to accomplish this? I read somewhere that the `eqnarray` is deprecated? Is this true? Even using an `eqnarray` is not optimal, because the cells are left aligned.


title: Adding overfull hbox 'slugs' to final document version

text: I'm using a `documentclass` which looks dramatically different in `draft` mode compared to `final`. I'm preparing my document for the `final` formatting, so I don't want to pass the `draft` option. However I _would_ like to see overfull hboxes marked with the visible black bar (slug) in the same way as `\documentclass[draft]{article}`. Is there a way to turn on this visualization separately to using the `draft` option?


title: xstring functions in section/paragraph headers

text: In the following example,               \documentclass{article}     \usepackage{xstring}     \newcommand\foo[1]{\StrSubstitute{#1}{love}{hate}}          \begin{document}      \section*{\foo{I love Mondays}}     \end{document}      if I remove the `*` from `\section*` the code stops compiling.   1. What is the trick that makes `\section*` work ok with `\StrSubstitute` but not `\section`?   2. Is there a workaround to include the command `\foo` in a `\section` header too?


title: Caption not working while subcaptions are present

text: I have the following code:               \documentclass{article}     \usepackage[demo]{graphicx}     \usepackage{caption,subcaption}          \begin{document}     \begin{figure}       \vspace*{\fill}       \centering       \includegraphics[width=120mm]{image1}       \subcaption{Lorem1}       \label{asd:a}\par\vspace{5mm}       \includegraphics[width=120mm]{image1}       \subcaption{Lorem2}       \label{asd:b}\par\vspace{5mm}       \includegraphics[width=120mm]{image1}       \subcaption{Lorem3}       \label{asd:c}\par\vspace{5mm}       \caption{ASD}       \label{asd}     \end{figure}     \end{document}      And I get the following output: ![enter image description here](http://i.stack.imgur.com/5ZVyW.png) The code delivers an output with 'ASD' subcaption. However, I want to get it as a caption in form `Figure xx`. How can I do that?


title: Underfull hbox error on tabular context

text: I am having a problem with the following document, pdflatex is continuously complaining with `Underfull \hbox (badness 10000) in alignment at lines 3--7` in this sample, but it does for many more lines in the original doc. I've read it has to do with the `\\` in the code, but as far as I know it is the way of finishing a row in a tabular context, and if I remove them it does not compile.               \documentclass{article}     \begin{document}     \begin{tabular*}{0.9\textwidth}{l}       \hline       Test \\       \hline     \end{tabular*}     \end{document}


title: MnSymbol fails with `\mathcal`?

text: Let me first give you this minimal example:               \documentclass[11pt]{minimal}     \usepackage[retainmissing, abx]{MnSymbol}     \usepackage{fontspec}          \begin{document}     \[ \mathcal{ABC 123} \]     \end{document}      I'm compiling that with `xelatex`. It seems, MnSymbol fails with the `abx` option when doing a `\mathcal{}` command. I get many errors, but they all look pretty much the same:               kpathsea: Running mktexmf mathcm10     ! I can't find file `mathcm10'. <*> ...ljfour; mag:=1; nonstopmode; input mathcm10 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input mathcm10 Transcript written on mfput.log.     grep: mathcm10.log: No such file or directory     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input mathcm10' failed to make mathcm10.tfm.     kpathsea: Appending font creation commands to missfont.log.      So, where do I go from here? should I just not use **MnSymbol** with `abx`?


title: Emacs' Preview LaTeX: Using different background colors depending on environment

text: In Emacs' Preview LaTeX, I would like included graphics (e.g., what's inside `\includegraphics`) to look different than all other previewed environments. Otherwise, graphics that have black lines become unreadable in a black- background buffer. I know that Preview LaTeX sets color replacements according to the variable `preview-reference-face`. How can I dynamically change this variable depending on the environment being previewed?


title: Exporting from Inkscape to LaTeX - via TikZ

text: I know only the very basics of TikZ, having only used it to produce a pretty flow chart for one of my documents. I recently learned that you can use Inkscape and export to TikZ. What are the limitations of the Inkscape->TikZ workflow? Is there some compelling reason to take the time to learn TikZ (which I'm told has a fairly steep learning curve) rather than simply exporting to TikZ from Inkscape?


title: Fancyhdr and Tikz, runaway argument?

text: I am trying to draw some of the headers for a document with TikZ inside a fancy custom header, using the following code:               \documentclass[letter,11pt]{article}     \usepackage{tikz}     \usepackage{fancyhdr}     \usepackage{lastpage}          \fancypagestyle{aero450}     {         \fancyhf{}         \renewcommand{\headrulewidth}{0pt}         \renewcommand{\footrulewidth}{0pt}              \fancyhead[C]{                  \begin{tikzpicture}[remember picture]                      \draw (current bounding box.center) node (__head_c)                     [font=\scriptsize]                 {HEADER HEADER HEADER};                  \end{tikzpicture}              }     }          \pagestyle{aero450}          \begin{document}         TEST TEST TEST     \end{document}      However, either with xelatex, pdflatex or writelatex.com, I get the following error:               Runaway argument?      { \begin {tikzpicture}[remember picture]      Paragraph ended before \f@ncyhf was complete. <to be read again>      \par l.23 \pagestyle{aero450}      What am I doing wrong? writelatex.com says that I might have forgotten a }, but I am pretty sure that I haven't...


title: How to write a command to file

text: I am trying to write to a auxillary file using               \newwrite\tempfile          [...]          \immediate\openout\tempfile=list.tex     \immediate\write\tempfile{Text to write to file}     \immediate\closeout\tempfile      It works like a charm for plain text but I need it to work with               \input{ans\thesection-\arabic{enumi}}      How do I write it to the file without expansion and thus allowing me to insert the entire file in the end (in my answer section) of my document.


title: Plot functions and data together using PSTricks

text: I would like to create the following graph using PSTricks: ![want](http://i.stack.imgur.com/6MgOK.jpg) The data, which can be downloaded from http://gupl.dk/705644/, should be plotted together with the three graphs. I have managed to plot data and functions similar to this before, but for some reason I can't figure out how to plot this. I tried to put a `psgraph` environment inside a `pspicture` environment inside a `figure` environment, but then the y-axis is scaled wrong:               \documentclass{article}     \usepackage{pst-plot}     \begin{document}     \begin{figure}      \centering        \psset{          xAxisLabel = {$t$~(s)},          yAxisLabel = {$x$~(m)}        }        \begin{pspicture}(-0.7,0.06)(5.4,0.14)        \begin{psgraph}[          Dy = 0.01,          Oy = 0.0954        ]{->}(0,0.0954)(0,0.065)(5.2,0.13){10cm}{7cm}          \readdata{\daempning}{daempning.txt}          \dataplot[            plotstyle = dots,            dotsize = 4pt,            dotstyle = o,            fillstyle = solid,            fillcolor = blue          ]{\daempning}        \end{psgraph}        \end{pspicture}       \caption{D{\ae}mpede svingninger af fjeder.}      \label{fig:daempede-svingninger}     \end{figure}          \end{document}      ![got](http://i.stack.imgur.com/qyG7l.jpg) **Update** I've now managed to plot the data;               \documentclass{article}          \usepackage{       pst-plot,       pst-math     }     \psset{       xunit = 1.95,       yunit = 0.8,       algebraic     }          \begin{document}          \begin{figure}     % constants.     \def\bKonst{0.182323628}     \def\mKonst{0.179887}     \def\kKonst{25.04285714}     \def\omegaSHBKonst{12.1277}     \def\omegadKonst{1.026}     \def\AKonst{0.0264572}     \def\pKonst{0.095398}     % functions (something is wrong here)     \def\hFunk(#1){\AKonst*exp(-\bKonst/(2*\mKonst)*#1)}     \def\spring(#1){\hFunk(#1)*ACOS(sqrt(\kKonst/\mKonst-(\bKonst/(2*\mKonst))^2)*#1+ATAN(\bKonst/\mKonst/(\omegaSHBKonst^2-\omegadKonst^2)))+\pKonst}     % data     \readdata{\daempning}{daempning.txt}     % plot     \centering       \begin{pspicture}(-0.57,5.35)(5.65,16.9)         \pstScalePoints(1,8){1000 div}{660 sub 600 div}         \psaxes[           dx = 1,           Dx = 1.00,           xsubticks = 5,           dy = 1,           Dy = 0.005,           Oy = 0.095,           comma         ]{->}(0,9.5398)(0,5.5)(5.25,16)[$t$~(s),0][$x$~(m),90]         \listplot[           plotstyle = dots,           dotstyle = o,           fillcolor = red         ]{\daempning}     %    \psplot{0}{5}{\spring(x)}       \end{pspicture}       \caption{D{\ae}mpede svingninger af fjeder.}      \label{fig:daempede-svingninger}     \end{figure}          \end{document}      ![output-half-finished](http://i.stack.imgur.com/yiMxc.jpg) but the three graphs are still giving me headaches. How do I plot these?


title: Define new argument in LaTeX

text: I have tried many times something like the following:               \def\variable{English}      that can be used in the following way later:               \selectlanguage{\variable}      I am searching for a generic way to solve such problems (I want to predefine arguments, that can be passed to commands). A similar issue would be the following: Your want to define a string of arguments `\list` passed to `\printbibliography[\list]`. I would be very thankful if someone could help me, as I was not able to solve that issue with Google.


title: Where can I find which packages are available as tds.zip?

text: When I need to install a package manually I much prefer to use the ready- zipped TEX Directory Structure-compliant version rather than install it manually with `.dtx` or `.ins` files. Normally when I want to do this, I just search for `package.tds.zip` which normally gets it. But I'd really just like a list or a searchable database of those packages that are available as a tds.zip version. CTAN doesn't seem to make this information available, as you might expect it would. (weirdly, CTAN will link to _a_ zip file, but not the tds.zip file...) I found this list on CTAN, but it doesn't seem comprehensive.


title: Writing bold small caps with mathpazo package

text: The URW Palldio font (`mathpazo` package) does not provide bold small caps. To get round this issue, I'd want to make a macro to use small caps usually and normal caps in bold text. I tried this code:               \documentclass{minimal}     \usepackage[sc,osf]{mathpazo}          % Use small caps normally except in a bold font: switch to uppercase instead.     % This macro does not work: the `\ifx\f@series\bfdefault` test always fails.     \makeatletter     \DeclareRobustCommand{\mytextsc}[1]{%         \ifx\f@series\bfdefault%             \uppercase{#1}%         \else              {\scshape #1}%         \fi     }     \makeatother          % An other macro, where the same test is ok here !?     \newcommand\normal{\fontseries{\ifx\f@series\bfdefault\then m \fi}\selectfont}               \begin{document}     % this works OK     This is a \mytextsc{small caps} text.          % this fails     \textbf{This is a bold \mytextsc{upper case} text.}          % here the normal macro works     \textbf{This is a bold \mytextsc{upper \normal case} text.}     \end{document}      For some strange reason, the test `\ifx\f@series\bfdefault` always fails in the `\mytestsc` macro, although it works well in the `\normal` macro. Any ideas how to correct the `\mytextsc` macro?


According to the change log at http://code.google.com/p/fontidguide/wiki/Changelog the "Edwardian Script ITC" font should be available in TexLive version 20110727. However, it doesn't appear to be. Can anyone help? Thanks. Regards, Jeff.


title: Latex memory usage & CPU

text: I want to buy a VPS with some sort of Linux on it in order to run apache, LaTeX. I need to choose processor and ram. How much does LaTeX use? What will be an appropriate configuration to run LaTeX smoothly? I didn't know whever to put this question in ServerFault or not, but here seems more appropriate.


title: My document keeps resetting itself everytime I try to compile to pdf

text: I'm at my wits end. I'm typing up some math homework. I use texmaker for mac. I have a certain template I use and its always worked before. I open up the last HW file, copy and paste to a new, then just redo the Q&A part. For the last couple of days I haven't been able to compile. For whatever reason my document keeps resetting to a much, much earlier version of the template thingy I use. This semester I did end up opening a HW where I used that version, but when I realized I swapped out. What is going on and how do I fix it? -EDIT- I still don't know what was happening, but I removed/deleted all my HW files and found my official template. Copied and pasted that into a new file and it seems to work fine. Anybody have any clue as to what was going on, let me know.


title: Replace lambdas by bold lambdas in a macro

text: I am looking for a way to replace `\lambda` by `\bm\lambda` in some of my expressions. This is what I tried, without success:               % arara: pdflatex     \documentclass{article}     \usepackage{bm}     \usepackage{xstring}     \usepackage{xpatch}     \begin{document}              \def\MakeLambdaBold#1{\StrSubstitute{#1}{\lambda}{\bm\lambda}}         $\MakeLambdaBold{\lambda}$              \pretocmd{\lambda}{\bm}         $\lambda$          \end{document}


title: Plotting several functions with TikZ/pgf

text: How do I plot several functions in Latex with tikz? I want it to look something like this: ![enter image description here](http://i.stack.imgur.com/miGGl.jpg) With the this code:               \documentclass{article}          \usepackage[latin1]{inputenc}     \usepackage{tikz}          % GNUPLOT required     \begin{document}     \pagestyle{empty}               \begin{tikzpicture}[domain=0:4]     \draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9);     \draw[->] (-0.2,0) -- (4.2,0) node[right] {$x$};     \draw[->] (0,-1.2) -- (0,4.2) node[above] {$f(x)$};     \draw[color=red] plot[id=x] function{x}          node[right] {$f(x) =x$};     \draw[color=blue] plot[id=sin] function{sin(x)}          node[right] {$f(x) = \sin x$};     \draw[color=orange] plot[id=exp] function{0.05*exp(x)}          node[right] {$f(x) = \frac{1}{20} \mathrm e^x$};     \end{tikzpicture}               \end{document}      This does actually work. But as soon as I insert a little bit more complicated functions like: ![enter image description here](http://i.stack.imgur.com/MRPyI.jpg) And: ![enter image description here](http://i.stack.imgur.com/ZNHYm.jpg) It simply fails, and gives me an error:               \begin{tikzpicture}[domain=0:4]     \draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9);     \draw[->] (-0.2,0) -- (4.2,0) node[right] {$x$};     \draw[->] (0,-1.2) -- (0,4.2) node[above] {$f(x)$};     \draw[color=red] plot[id=x] function{-1/3x+1/5}          node[right] {$f(x) =x$};     \draw[color=blue] plot[id=sin] function{1/2x+1/2-1/2\sqrt{5x^2+2x+1}}          node[right] {$f(x) = \sin x$};     \end{tikzpicture}      How do I solve this?


title: How do I number a equations with roman numbers?

text: I would like to display a set of equations with roman numerals on the left side. The equations should be left aligned and the = should be aligned. Something like that:               I)   ae + bg = ae + cf \Leftrightarrow bg = cf     II)  af + bh = be + df     III) ce + dg = ag + ch     IV)  cf + dh = bg + dh \Leftrightarrow cf = bg      **How do I generally write left-aligned equations with roman numerals? How do I make it with mathjax?** This is the best I came up with:               \begin{eqnarray*}       I)   & ae + bg &= ae + cf &\Leftrightarrow bg = cf \\       II)  & af + bh &= be + df\\       III) & ce + dg &= ag + ch\\       IV)  & cf + dh &= bg + dh &\Leftrightarrow cf = bg     \end{eqnarray*}      With this solution, the numeration is italic.


title: Drawing a gameboard

text: I desperately need help drawing a board for a board game which looks like the one in the picture or an even better one. The corners could be made to look more appealing visually. ![boards game background](http://i.stack.imgur.com/pNOII.png)


title: £ = $ with OT4 and tgpagella loaded

text: There seems to be a incompatibility between the OT4 font encoding and the tgpagella package. When I load either of the packages, the pound sign comes out as $ (a dangarous thing since we are in a financial crisis already =;-). I have these two packages pre-loaded by a journal file. Can I do anything about this?               \documentclass{article}                    \usepackage{tgpagella}     %\usepackage[OT4]{fontenc}          \usepackage[utf8]{inputenc}          \usepackage{textcomp}          \begin{document}               15€ + \$17 = 13£?               \end{document}


title: Correct spacing around environments without the comment symbol when using parskip?

text: I prefer inserting blank lines between paragraphs, and no indenting. I know that the package parskip can offer this functionality, but it comes with a catch. When writing               \documentclass{article}     \usepackage{parskip}          \begin{document}       This is a block of text of paragraph 1.            \begin{equation}         a + b = c       \end{equation}            This is a continuation of paragraph 1.          \end{document}      Using an environment between paragraphs is interpreted as a paragraph of its own, and hence it adds additional blank lines around the environment. To make it one paragraph block a comment symbol can be applied:               \documentclass{article}     \usepackage{parskip}     \begin{document}            This is a block of text of paragraph 1.       %       \begin{equation}         a + b = c       \end{equation}       %       This is a continuation of paragraph 1.          \end{document}      This solves my typesetting problem, but it creates a different problem for me. I use Vim to edit my .tex files. By using the comment symbol Vim will see the entire block (pre-equation, equation, post-equation) as a single paragraph (a Vim text object). Text objects can be used to move around and do edits. For example, I can skip easily towards the text before the environment, the environment itself and the text after the environment when they are separated by white lines. It is also easy to comment, delete or change entire (Vim) paragraphs with a few key strokes. I lose these editing capabilities when I have to include the comment symbol, because then Vim sees the text before the environment, the environment itself and the text after the environment as one paragraph. In short: I want LaTeX to see the three-part block as one paragraph to prevent it from adding extra blank lines, but I want to actually keep blank lines between the three parts in the .tex file for ease of editing reasons. My question therefore is this: can I get the typesetting that results from the second piece of code without having to include the comment symbols, thus allowing me to navigate my files easily by using vim's paragraph text object?


title: pgfplots: node positioning

text: I want to place a node at the end of a curve. Since I did not find an automatic way to realize it I tried to place it manually. But the node does not appear at the expected position. It's placed near (2,12) but not (18,17.56). Here's a MWE (Sorry for not formatting. But I have to use my smartphone for asking since StackExchange is blocked by our proxy. And this interface doesn't offer formatting options):               \documentclass{article}     \usepackage{pgfplots,pgfplotstable}     \begin{document}          \pgfplotstableread[col sep=tab]{%     Alter   P3       0   10.20        0.5 14.38        1   14.58        1.5 14.31        2   14.00        2.5 13.73        3   13.55        3.5 13.44        4   13.36        4.5 13.30        5   13.24        5.5 13.20        6   13.18        6.5 13.19        7   13.23        7.5 13.29        8   13.37        8.5 13.46        9   13.56        9.5 13.67        10  13.80        10.5    13.94        11  14.11        11.5    14.30        12  14.50        12.5    14.73        13  14.97        13.5    15.23        14  15.50        14.5    15.77        15  16.04        15.5    16.31        16  16.57        16.5    16.83        17  17.08        17.5    17.32        18  17.56     }\perzentile          \begin{tikzpicture}       \begin{axis}[%         no markers,%         ]         \addplot table[x=Alter, y=P3]         {\perzentile};%         \node at (18,17.56) {P3};%       \end{axis}     \end{tikzpicture}     \end{document}


title: Can you force the "move-by-word" keyboard shortcut to count \, $ and braces as part of the word?

text: I'm using OS 10.6, and I like to use the option-arrow command to move forwards and backward one word at a time. But one thing is annoying to me: If the cursor is here: > >       \command >               ^ >   option-leftarrrow moves it here: > >      \command >       ^ >   when I really want it here: > >      \command   >      ^ >   And similarly with other special characters like $, braces etc. One reason this is a pain is because I'd like to be able to select a whole command using the shortcut shift-option-arrow. It's also annoying because it really slows down navigation through a long equation. Does anyone know a workaround for this? Hopefully it would be an OS X or TexShop preference, since I use TexShop.


title: How to make the style of subsection and subsubsection identical?

text: I'm observing a strange behavior in the subsection/subsubsection titles. Their styles look different. Is there a simple way to fix it? ![enter image description here](http://i.stack.imgur.com/eDYBZ.png)               \documentclass{amsbook}               \usepackage[english]{babel}     \usepackage{blindtext}          \begin{document}          \blinddocument          \end{document}


title: Symbols for EAI diagrams in TikZ/PGF?

text: I would like to produce some diagrams (preferably using TikZ/PGF) using the visual notation given in _Enterprise Integration Patterns_ by Hohpe & Woolf. I'm aware of stencils from the above site, based on Visio, but I'd rather be able to compose them directly in my LaTeX documents. Is anyone aware of PGF library packages that I can use, or failing that how I can create _reusable_ symbols for use in a TikZ/PGF figure?


title: How to remove header on a certain page

text: I've written a synopsis section for each chapter of my thesis, and I've noticed a minor issue. Since the synopsis section comes _before_ the `\chapter` its header is from the last section of the previous chapter. Is there a simple fix to either remove the header for this page only or replace the header with something like `Synopsis: Chapter X`? ![enter image description here](http://i.stack.imgur.com/LcANX.png) I've include some code below.               \documentclass{amsbook}               \usepackage[english]{babel}     \usepackage{blindtext}          \begin{document}               \blinddocument          \newpage     \begin{center}      {\bf Synopsis: Chapter 2}      \end{center}     \blindtext     \end{document}


title: How to forbid LaTeX to put text between figures?

text: I have some figure, which I want to have one right after another in the document. Is it possible to forbid pasting anything inbetween, even if there is some space?               \begin{figure}[h!bt]     \includegraphics[scale=1]{images/shape.png}     \caption{ShapeWithSlotsDoubleLevel}     \label{fig:ShapeWithSlotsDoubleLevel}     \end{figure}          \begin{figure}[h!bt]     \includegraphics[scale=1]{images/shape2.png}     \caption{ShapeWithSlotsDoubleLevel}     \label{fig:ShapeWithSlotsDoubleLevel}     \end{figure}


title: Multiple data columns in tikzpicture

text: Suppose we got a .txt data file myplot.txt from MATLAB, and it contains in total 51 columns. I want to plot these data in `pgfplots` in the following way. The first column of myplot.txt is always for the x-axis, while each of the columns 2 to 51 is for the y-axis, starting from the plot (column 1, column 2) until the plot (column 1, column 51). That is, I want to plot 50 figures in the same plot. I am trying to use the following code. However, it does not work correctly.               \documentclass{article}     \usepackage{pgfplots}     \usepackage{xcolor}          \begin{document}          \begin{figure}     \centering     \begin{tikzpicture}     \begin{axis}[grid=both,xmin=0,xmax=1,     xtick={0,1},     ymin=0,ymax=1,     width=7cm]     \addplot[color=black,mark=none,x index=0,y index=1] table {myplot.txt};     \addplot[color=black,mark=none,x index=0,y index=2] table {myplot.txt};     \addplot[color=black,mark=none,x index=0,y index=3] table {myplot.txt};     ....     \addplot[color=black,mark=none,x index=0,y index=50] table {myplot.txt};     \end{tikzpicture}     \end{figure}          \end{document}      Is there anyone know how to do this? Thanks very much.


title: Problem with polyglossia and MinionPro

text: I have a problem with small caps not showing correctly when loading `polyglossia`. I am trying to use `polyglossia` with `classicthesis`, which I know is unsupported, but the same problem appears when loading `MinionPro`, `polyglossia` and using small caps. MWE:                 \documentclass{scrbook}       \usepackage{polyglossia}       \usepackage{classicthesis}       \begin{document}       \chapter{Foo}       \section{Bar}       \subsection{Baz}       \end{document}      Here Bar is not set in small caps. MWE2:                 \documentclass{scrbook}       \usepackage{polyglossia}       \usepackage{MinionPro}       \begin{document}       \textsc{Should be small caps}       \end{document}      Now I do get font substitution warnings but these don't make sense. Why would polyglossia change the font encoding and is there a way to stop it?


title: Right justify inline

text: I am trying to right justify some code as a text wrap for a memo on the C language and I encountered some issues... In the following exemple I'm trying to right justify the "const struct tm *ptm);" part as shown below.               size_t strftime(char *dest, size_t taillemax, const char *format,                                                                           const struct tm *ptm);      I tried the \raggedleft and the flushright environnement. The latter creates a too important separation between the too lines. And I couldn't get \raggedleft to do something.               \documentclass[10pt,a4paper,twoside]{article}     \setlength{\hoffset}{-18pt}     \setlength{\oddsidemargin}{0pt}     \setlength{\evensidemargin}{9pt}     \setlength{\marginparwidth}{54pt     \setlength{\textwidth}{481pt}     \setlength{\voffset}{-18pt}     \setlength{\marginparsep}{7pt}     \setlength{\topmargin}{0pt}     \setlength{\headheight}{13pt}     \setlength{\headsep}{10pt}     \setlength{\footskip}{27pt}     \setlength{\textheight}{680pt}     \setlength{\parskip}{2ex plus .4ex minus .4ex}     \setlength{\parindent}{0pt}     \usepackage{times}     \usepackage[latin9]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[french]{babel}     \usepackage{graphicx}     \usepackage{hyperref}     \usepackage{authblk}     \usepackage{listings}     \usepackage{lastpage}     \usepackage{makeidx}     \makeindex     \usepackage{fancyhdr}     \pagestyle{fancy}     \lhead[\leftmark]{}     \chead[]{}     \rhead[]{\leftmark}     \lfoot[\thepage\ sur \pageref{LastPage}]{}     \cfoot[]{}     \rfoot[]{\thepage\ sur \pageref{LastPage}}     \usepackage[titles]{tocloft}          \newcommand\fichier[1]{{\textit{#1}}}     \newcommand\code[1]{{\texttt{#1}}}     \newcommand\tab[1]{{\tt\hspace{#1em}}}          \newenvironment{codepar}{\begin{list}{}{\leftmargin20pt}\item[]\obeylines\obeyspaces\begingroup\parskip0pt\tt}{\endgroup\end{list}\par}          \newcommand\codedescr[2]{{ \noindent\code{#1} \begin{list}{}{\leftmargin20pt}\item[]\begingroup\parskip0pt #2 \endgroup\end{list}\par }}          \newcommand{\superscript}[1]{\ensuremath{^{\texttt{#1}}}}          \renewcommand{\arraystretch}{1.3}          \begin{document}          \codedescr{char *ctime( const time\_t *pSec );\newline     char *asctime( const struct tm *ptm );\newline     size\_t strftime(char *dest, size\_t taillemax, const char *format,\newline     \hfil const struct tm *ptm);\index{fonction2@fonction!ctime}\index{fonction2@fonction!asctime}\index{fonction2@fonction!strftime}}{bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla}          \end{document}      Thank you for your help, Cédric


title: What's the use of the @compatibility condition?

text: All of the standard LaTeX document classes (`article`, `book` and `report`) declare some basic functionality and parameters based on the condition `@compatibility`. Here's an extract from from `article.cls` that defines the standard paper size options available to the class(es):               \if@compatibility\else     \DeclareOption{a4paper}        {\setlength\paperheight {297mm}%         \setlength\paperwidth  {210mm}}     \DeclareOption{a5paper}        {\setlength\paperheight {210mm}%         \setlength\paperwidth  {148mm}}     \DeclareOption{b5paper}        {\setlength\paperheight {250mm}%         \setlength\paperwidth  {176mm}}     \DeclareOption{letterpaper}        {\setlength\paperheight {11in}%         \setlength\paperwidth  {8.5in}}     \DeclareOption{legalpaper}        {\setlength\paperheight {14in}%         \setlength\paperwidth  {8.5in}}     \DeclareOption{executivepaper}        {\setlength\paperheight {10.5in}%         \setlength\paperwidth  {7.25in}}     \DeclareOption{landscape}        {\setlength\@tempdima   {\paperheight}%         \setlength\paperheight {\paperwidth}%         \setlength\paperwidth  {\@tempdima}}     \fi      Starting a document with               \makeatletter\@compatibilitytrue\makeatother     \documentclass{<standard document class>}      skips these paper definitions, including many others. What is the use of this compatibility condition? Does it allow some form of compatibility with LaTeX 2.09 or other platforms? Why would one use it? For example, the following compiles fine:               %\makeatletter\@compatibilityfalse\makeatother     \documentclass[a4paper]{article}     \begin{document} Hello world. \end{document}      while the following issues a warning:               \makeatletter\@compatibilitytrue\makeatother     \documentclass[a4paper]{article}     \begin{document} Hello world. \end{document}      for the reasons described above.


title: Strange vertical blank

text: Typesetting:               \documentclass[a4paper]{report}     \usepackage{amsmath,mathptmx,hyperref}     \usepackage[top=3cm, bottom=3.5cm, outer=4cm, inner=4cm, marginparsep=0.7cm, marginparwidth=1.5cm]{geometry}     \newtheorem{teor}{Teorema}          \begin{document}          \noindent Proseguendo su queste cose, parliamo di Decomposizione in Parte Libera e Parte di Torsione.     \begin{teor}     \end{teor}     \end{document}      yields: ![With hyperref](http://i.stack.imgur.com/BHvCM.png) whereas without `hyperref` I get: ![Without hyperref](http://i.stack.imgur.com/ubbox.png) that is a significantly smaller amount of vertical space between the theorem and the top line. If I replace the theorem with another line, e.g. `\par s`, I don't get the big vertical space. Why does that happen? **Update:** Following egreg's answer, I tried loading `amsthm`, obtaining a strange error. Precisely, typesetting:               \documentclass[a4paper]{report}     \usepackage{thmtools,amsthm,hyperref}     \newtheorem{defi}{Definizione}          \begin{document}               \renewcommand\listtheoremname{Definizioni, Teoremi, Proposizioni, ecc.}     \listoftheorems[ignoreall,show={defi}]     \end{document}      yields:               This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013)      restricted \write18 enabled.     entering extended mode     (./gungugungu4.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 78 languages loaded.     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/report.cls     Document Class: report 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo))     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/thmtools.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/thm-patch.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/parseargs.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/thm-kv.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/etexcmds.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/thm-autoref.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/aliasctr.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/carlisle/remreset.sty)))     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/thm-listof.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/thm-restate.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/amscls/amsthm.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/hyperref.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))     (/usr/local/texlive/2013/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/auxhook.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/kvoptions.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/pd1enc.def)     (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/hyperref.cfg)     (/usr/local/texlive/2013/texmf-dist/tex/latex/url/url.sty))          Package hyperref Message: Driver (autodetected): hxetex.          (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/hxetex.def     (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/puenc.def)     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/stringenc.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     (./gungugungu4.aux)          Package thmtools Warning: amsthm loaded after thmtools .               Package thmtools Warning: ntheorem loaded after thmtools .          (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/nameref.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))     (./gungugungu4.out) (./gungugungu4.out)          Package hyperref Warning: Rerun to get /PageLabels entry.          ./gungugungu4.tex:9: Extra \else.     \@forloop ...lse #5\def #4{#2}\ifx #4\@nnil \else                                                        #5\@iforloop #3\@@ #4{#5}\...     l.9 \listoftheorems[ignoreall,show={defi}]      Loading `thmtools` _after_ `amsthm` solves everything, and removing `hyperref` yields:               This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013)      restricted \write18 enabled.     entering extended mode     (./gungugungu4.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 78 languages loaded.     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/report.cls     Document Class: report 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo))     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/thmtools.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/thm-patch.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/parseargs.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/thm-kv.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/etexcmds.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/thm-autoref.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/aliasctr.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/carlisle/remreset.sty)))     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/thm-listof.sty)     (/usr/local/texlive/2013/texmf-dist/tex/latex/thmtools/thm-restate.sty))     (/usr/local/texlive/2013/texmf-dist/tex/latex/amscls/amsthm.sty)     (./gungugungu4.aux)          Package thmtools Warning: amsthm loaded after thmtools .               Package thmtools Warning: ntheorem loaded after thmtools .          ./gungugungu4.tex:9: Missing \endcsname inserted.     <to be read again>                         \relax      l.9 \listoftheorems[ignoreall,show={defi}]      Why is that happening?


title: Curious interaction between KOMA, fontenc and hyperref when using hidden glossary entries

text: In this question is asked how to hide single entries from my acronyms list. The solution works fine in the minimal example from that question. However, trying to use that solution in my actual document, I get another strange problem. My new minimal example:               \documentclass{scrartcl}                             \usepackage[T1]{fontenc}             \usepackage{hyperref}          \usepackage[acronym,shortcuts,acronymlists={hidden}]{glossaries}          \newglossary[algh]{hidden}{acrh}{acnh}{Hidden Acronyms}     \makeglossaries          \newacronym{ex1}{Example 1}{should be displayed in list of acronyms when used at least once}     \newacronym[type=hidden]{ex2}{Example 2}{should never be displayed in list of acronyms}          \begin{document}     \printglossary[type=\acronymtype]     I use \textbf{\acs{ex1}} and \textbf{\acs{ex2}}  in my text.     \end{document}      This results in a pdftex warning about a non-existing reference, `name:{glo:ex2}`, which gets replaced by a fixed one. I'd say, this comes from the `hyperref`-package. But the warning only appears, when I use KOMA- documentclass `scrartcl` AND the `T1` option of `fontenc-package`. When using plain `article` or just `fontenc` without options, everything is fine. Any clues?


title: How can I change the TexMaker interface language?

text: Turns out my PC thinks it's Italian... any way, the TexMaker interface is, for some unknown reason, suddenly in Italian and I don't speak a word (I would love to, thou). Can anyone guide me through the interface language setting ?


title: \addplot graphics: maintaining image's aspect ratio despite different scaling of axes

text: I have created a plot using a sophisticated program and would like to put the content of that plot into `pgfplots' axis environment`. Naturally, `\addplot graphics` is the way to achieve this. The Image's aspect ratio (in this case) is `height > width`. However, the two axes have a different scaling with `x/cm >> y/cm`. Now, without `axis equal image`,`pgfplots` tends to create square plots. Switching on `axis equal image`, the plot will be created using `x/cm = y/cm`. Both options will result in a plot that does not respect the original image's aspect ratio. The only way I have found so far to preserve the aspect ratio, is to manually define the `x` and `y` `unit vectors`. But this might be rather hard to do, depending on the original image's size and the different scaling for the axes.   Is there an easy (and preferably automatic) way to create an image plot preserving the image's aspect ratio regardless of the axes' scalings?   The problem is illustrated by the code below.               \documentclass[10pt,varwidth=300pt]{standalone}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[english]{babel}     \usepackage{pgfplots}     \pgfplotsset{compat=1.10}     \usepackage{mwe}     \begin{document}     \includegraphics[width=100pt]{example-image-10x16}     \begin{tikzpicture}      \begin{axis}[       xmin=0,xmax=10,ymin=0,ymax=1,       enlargelimits=false,       axis equal image,       x=1cm,y=16cm,%In this case, x and y are easy to calculate, but this will not always be the case       ]       \addplot graphics [xmin=0,xmax=10,ymin=0,ymax=1] {example-image-10x16};       \end{axis}       \node[red,anchor=south] at (current axis.north) {This is what I want};     \end{tikzpicture}     \begin{tikzpicture}      \begin{axis}[       xmin=0,xmax=10,ymin=0,ymax=1,       enlargelimits=false,       axis equal image,       ]       \addplot graphics [xmin=0,xmax=10,ymin=0,ymax=1] {example-image-10x16};      \end{axis}      \node[red,anchor=south,align=center] at (current axis.north) {This is what I get without \\ manually defining unit vectors};     \end{tikzpicture}     \begin{tikzpicture}      \begin{axis}[       xmin=0,xmax=10,ymin=0,ymax=1,       enlargelimits=false,     %   axis equal image,       ]       \addplot graphics [xmin=0,xmax=10,ymin=0,ymax=1] {example-image-10x16};      \end{axis}      \node[red,anchor=south,align=center] at (current axis.north) {This is what I get without \\ manually defining unit vectors and \\ without axis equal image};     \end{tikzpicture}     \end{document}


title: Workflow for using SVN for many variations of some base documents (job applications)

text: For some time now I'm using `pdfLaTeX` for writing my job applications, which normally contain 3 pdf documents all created with `LaTeX`:   1. the letter of motivation   2. the CV and more information about my projects    3. diploma, certificates, etc. I now noticed that it would have been good to use version control of the different versions to document the differences or take notes about what was changed. I already used version control with the `svn-multi`package for my dissertation, but that is only a "linear" process where I save a "snapshot" and don't have different versions in parallel. => So what would be an appropriate workflow for SVN to handle those documents   under the following conditions:   * it should be clear in the .tex source which document/version was taken as "template" for the actual file, but this shall _not_ be visible in the pdf   (to avoid the potential employer seeing "ah, this is application number 323a ...")   * I'll create a directory for each application "somewhere" outside my svn repository,   -> I think this would be done by an `export` of an existing version - is that correct?   (That directory will also contain other documents with information about the company, the job etc., which will not be managed by svn)   * If the documents are finished, is it correct to save them in the repository by 'update'?   * How could I create different "main versions"   (e. g. one focussing on jobs in IT business which puts more emphasize on my computer skills and another one for the more "technical" jobs where those computer skills are not shown in detail)   * Would it be a problem for SVN if in the custom directory of each application I change the name of `LetterOfMotivation.tex` to `LetterOfMotivation_CompanyXY.tex`?   I suppose when I do that and then send it back to the repository, `SVN` would be confused and not recognize the new document as a changed version of `LetterOfMotivation.tex`? _I'm sorry if that sounds like stupid questions, but I have no experience with the "real" use of svn up to now. :-(_


title: How to fine-tune the vertical placement of characters in ConTeXt?

text: I need to insert a dot symbol, such as “•” or a METAPOST circle into my document, at different heights between the baseline and top of characters, like this example:                           _____ _____        _____     *             |   |     \    /   |      * *   *      |   |      \  /    |       * * * *     |   |____   \/     |          *   *    |   |       /\     |               *   |   |      /  \    |                *  |   |____ /    \   |      The letters `TEXT` appear as regular sized text, and the `*` are circles placed at different heights. There are never dots above or below each other. Using `^` and `_` in math mode, I was able to place the dot at 3 different placements vertically, e.g.:               \math{^•} prints high     \math{•} prints in the middle     \math{_•} prints low      This has several problems though:   * The superscript and subscript dots are smaller than the middle dot, but I need a consistent radius.   * The superscript is too high, going beyond the top of characters in the same line. The subscript is also too low, going below the baseline. Ideally, the lowest dot will not fall below the baseline, and the highest dot will not go higher than the top of a capital letter.   * I need to draw the dots at 6 different levels. If the dots are large, there can be overlap in their levels, e.g.:                 __      /  \     |    |  __      \__/  /  \           |    |            \__/      How can I control the vertical placement of a dot character, or similar METAPOST dots and ensure that the placement falls between the baseline and top of words on the same line?


title: LaTeX float controls - what is the denominator of the fraction macros?

text: I'm looking in Section C.9 of the LaTeX manual (pages 199 and 200). LaTeX defines a few macros to control the float placement algorithm, namely, `\topfraction`, `\bottomfraction`, and `\textfraction`. The macro `\topfraction`, for example, defines "The maximum fraction of the page that can be occupied by floats at the top of the page." The text of the manual is not clear as to what the "page" is for these macros. My question is this: is the denominator of these fractions the length `\paperheight`, the length `\textheight`, or something else? Thanks in advance.


title: Formatting In LateX

text: I am new latex and in the learning phase. I making a document on it, but the problem is that its formatting is incorrect as i compile the source code of the latex. like i am making a table and it inserted in between the item list and i am making it after the list. i don't know why it is doing this. Secondly if I remove some of the item list, the table goes on the next page but in the end of the page leaving the above potion blank. I searched a lot but can't find the suitable answer. this is code               \documentclass{report}     \begin{document}             \include{criterion1}          \end{document}      in `criterion` chapter I have               \begin{itemize}            \item  4 items here               \begin{itemize}         \item 8 item here       \end{itemize}     \end{itemize}      if I put table after this               \begin{table}          \centering           \caption{correlation between objectives and features of the program}              \begin{longtable}{|c|p{3in}|}            \end{longtable}      \end{table}      It went wrong in a seance that it comes either in between the 2nd nested item list or goes on the next page but in the middle of it leaving the whole page blank


title: Unwanted space around def-generated tabular

text: I'm using some code I found to generate, from simple input, a nicely formatted list of steps in solving an equation. However, my method is adding unwanted space to the left and at the bottom of the result. Please have a look:               \documentclass{article}          \usepackage{xstring} % using: StrSubstitute          % equation solving list     \renewcommand\equation[1]{     \everymath{\displaystyle}     \renewcommand{\arraystretch}{2.5}     \begin{tabular}{@{}r@{}c@{}l@{}}     \foreach{\makeeq}{}{#1}     \end{tabular}\\     }          % equation helper function (first parameter is unused)     \def\makeeq#1#2{     \saveexpandmode\expandarg     \StrSubstitute[1]{#2}{=}{$&$\ =\ $&$}[\subbed]     \restoreexpandmode     \subbed\\     }          % % % FOREACH % % %          \makeatletter          % Functional foreach construct      % #1 - Function to call on each comma-separated item in #3     % #2 - Parameter to pass to function in #1 as first parameter     % #3 - Comma-separated list of items to pass as second parameter to function #1     \def\foreach#1#2#3{%     \@test@foreach{#1}{#2}#3,\@end@token%     }          % Internal helper function - Eats one input     \def\@swallow#1{}          % Internal helper function - Checks the next character after #1 and #2 and      % continues loop iteration if \@end@token is not found      \def\@test@foreach#1#2{%     \@ifnextchar\@end@token%      {\@swallow}%      {\@foreach{#1}{#2}}%     }          % Internal helper function - Calls #1{#2}{#3} and recurses     % The magic of splitting the third parameter occurs in the pattern matching of the \def     \def\@foreach#1#2#3,#4\@end@token{%     #1{#2}{#3}%     \@test@foreach{#1}{#2}#4\@end@token%     }          \makeatother          % % % % % %          \begin{document}          desired result: \\          start          \everymath{\displaystyle}     \renewcommand{\arraystretch}{2.5}     \begin{tabular}{@{}r@{}c@{}l@{}}     $ X $&$\ =\ $&$ 1 + 1 $ \\     $ $&$\ =\ $&$ 2 $ \\     \end{tabular}\\          end          \bigskip     actual result: \\          start          \equation{     $ X = 1 + 1 $,     $ = 2 $     }          end          \end{document}      The output: ![result](http://puu.sh/4r8AR.png) I can't figure out what's adding the whitespace. Any help would be appreciated. Thanks!


title: standalone: subprambles inverse

text: When splitting a document with the `standalone` class and package, the option `subpreambles` causes the main document to include all the preambles of the sub-files. The other way around is more difficult. I thought of exporting the main preamble to a class file and then start all the sub-files with `\documentclass[class=mainclass]{standalone}`. But I want to avoid another file with a dedicated name. So is there a possibility to include the preamble of the main document in the standalone sub-files?


title: Dotted lines in TikZ with round dots

text: Well, the title explains all, I guess. Sorry if this is too simple for all the TikZ gurus here: but I want a dash pattern like "dotted" for drawning but with round dots and not the little squares. How can I achieve this in a simple way?


title: Increasing left margins when using scrbook with geometry

text: I am producing a very large book and need to shift the pages just a little to the right because of excess content generated in the left margin. I cannot have it set both margins bigger as the problem is always inside the left margin. I've tried to increase the left parameter of the `\geometry` package but that just increases all the inside margins which in a book alternates between left and right. The following is the top part of my `.tex` file showing which packages gets loaded. The culprit is the `mvd-verse` package, but it is a specialised package producing numbers in the left margin. However I think it is not actually using the actual margin and that is why I need to move the whole page to the right, since some of the numbers gets pushed off the page.               \documentclass[pagesize=pdftex, fontsize=9.2pt]{scrbook}     \usepackage[pagestyles]{titlesec}     \usepackage{geometry}     \usepackage{xltxtra}          \usepackage{graphicx}     \usepackage{adjustbox}     \usepackage{wrapfig}          % Paragraph formatting     \setlength{\parindent}{0pt}          \usepackage{mvd-verse}          \geometry{     paperwidth=15.3cm,     paperheight=23.2cm,     top=1.5cm,     bottom=.8cm,     left=1.9cm,     right=1.9cm     }


title: Problem of white space

text: I am creating my thesis for my master degree,and i am new to latex In my latex try to do page numbering acording to the chaper.It worked but white space pop up. not worked `\clearpage` or `\raggedbottom` for the issue of white space..what i need to do..other all are correct...sample code is,               \documentclass[12pt,a4paper,oneside]{report}     \usepackage[left=1.5in,top=1in,right=1in,bottom=5em]{geometry}     \usepackage{graphicx}     \usepackage{ragged2e}     \usepackage{mathptmx}     \usepackage{setspace}     \usepackage{placeins}     \usepackage[font=bf,labelfont={sf,bf}]{caption}     \usepackage{subfigure}          \usepackage[labelsep=period]{caption}     \usepackage{fancyheadings}     % \usepackage{fancyhdr}     % \fancyhf{} % clear all header and footers     % \renewcommand{\headrulewidth}{0pt}      % \rfoot{\thepage}     % \pagestyle{fancy}               \begin{document}     \renewcommand*\thesection{\arabic{section}}               \pagestyle{fancy}      \lhead{}     \chead{}     \rhead{\bfseries Chapter1.      INTRODUCTION }     \lfoot{unix chicargo}     \cfoot{}     \rfoot{\thepage}     % \thispagestyle{plain}          \begin{spacing}{1.5}     \captionsetup{}          \begin{center}     \chapter { Chapter 1 \hspace{0.5cm} INTRODUCTION}     \end{center}          \section{ secone}          \subsection{subsec1}     \begin{figure}[ht]        \begin{center}        \includegraphics[width=2cm,height=2.5cm]{images_ch1/dd.jpg}        \end{center}     \begin{center}     \caption[dd]{ ddd}     \end{center}     \end{figure}     ....     ...     ....     \end{spacing}     \end{document}


title: Equivalent of \mathup for upright text in math mode?

text: To insert text in mathmode, there are a couple of commands:   * `\mathrm` for Roman script,   * `\mathbf` for bold weight,   * `\mathit` for italic shape,   * `\mathsf` for the sans serif variant, and so on. Now, sometimes I would like to have some math entities typeset upright (see for example How to best typeset "special" constants (complex unit i, Euler's number e,...)?). I understand that `\mathrm` sets the text in Roman _and_ upright, but in some cases I do not want serifs (e.g., in presentations). The command `\mathup` does not seem to exist. What is recommended way to set upright text in math mode?


title: Typesetting the same content in every margin

text: I'm creating a class for meeting notes and I'm hoping to put the word 'Notes' and possibly lines for people to write on once the meeting notes have been printed out. How would one get the class to typeset the same thing in every margin? Just to be clear, by 'margin' I mean specifically the box where `marginpar` would typeset. I'm currently using the memoir class (although I'm open to suggestions if another class provides this functionality) with XeLaTeX. Picture of roughly what I'm after: ![badly drawn picture of what I'm after](http://i.stack.imgur.com/gA4SH.png)               \documentclass{memoir}          %% Packages I'm using, not needed for this example, but included just in case they'd clash.     \usepackage{paralist}     \usepackage[english]{datetime}     \usepackage{fontspec}     \usepackage{libertine}          %% in the real thing there is some redefinition of the title, not included here for simplicity          %% Here something would go to make the notes section.          \title{Title}     \begin{document}     \maketitle          Main text          \end{document}


title: Start placing figures on right-hand side column of first page

text: I am trying to use IEEETrans to write a scientific paper in two column format. The issue is that one is not allowed to place figures in the left-hand side column of the first page. Figures should start on the top of the right-hand side column of the first page or alternatively, on the second page (any column). Is there any way to restrict the placement of floats to avoid using the left-hand side column of the first page?


title: How to abbreviate author's firstname in bibliography

text: I am currently finalizing the bibliography of my thesis. I am using               \bibliographystyle{unsrtdin}     \bibliography{bibtex/library}      Now, my problem is that my Zotero library sometimes has the full first name of the authors and sometimes just the initials. This leads to an inconsistend bibliography. I don't feel that the right solution is to remove information from my Zotero library, so I would like to have BibTeX abbreviate all first names. The style is not fixed, I only need unsrt behavior and included URLs, since I cite online resources. (That's why I use -din, the fact that some things are German is unde sired but not too critical.) If Biber or other more sophisticated implementations simplify the solution: I tried to get it to work, but TeXlipse told me that `\cite` was undefined, so I gave it up, as I didnt see too many advantages in this case. If all that is too complicated, I could still hack the Zotero translator for `.bib` export.


title: Hindi numbers are displayed instead of Arabic numbers using polyglossia and breaking index

text: I have tried to display Arabic numbers instead of Hindi numbers in my document. Below is my MWE.               \documentclass[a4paper,12pt]{article}          \usepackage{fontspec}     \usepackage{fancyhdr}     \usepackage[pdfauthor={Yousef Raffa},pdftitle={Translation of The ARRL LoTW Registration Instructions in Arabic}]{hyperref}     \hypersetup{         colorlinks=true,         citecolor=black,         filecolor=black,         linkcolor=YellowOrange,         urlcolor=Maroon     }          \usepackage[usenames,dvipsnames]{xcolor}     \usepackage{graphicx}     \graphicspath{ {./img/} }     \usepackage{makeidx}     \makeindex          \usepackage{polyglossia}          \setmainlanguage{arabic}     \setotherlanguage{english}          \setmainfont[Ligatures=TeX,Numbers=OldStyle,Mapping=arabicdigits]{Amiri}     \setsansfont[Script=Arabic,Scale=1.5,Mapping=arabicdigits,Numbers=OldStyle]{Amiri}     \setmonofont{Courier New}     \newfontfamily\arabicfont[Script=Arabic,Scale=1,Numbers=OldStyle]{Amiri}               \pagestyle{fancy}     % with this we ensure that the chapter and section     % headings are in lowercase.     \renewcommand{\sectionmark}[1]{%         \markboth{#1}{}}     \renewcommand{\sectionmark}[1]{%         \markright{\thesection\ #1}}     \fancyhf{}  % delete current header and footer     \fancyhead[LE,RO]{\bfseries\thepage}     \fancyhead[LO]{\bfseries\rightmark}     \fancyhead[RE]{\bfseries\leftmark}     \renewcommand{\headrulewidth}{0.5pt}     \renewcommand{\footrulewidth}{0pt}     \addtolength{\headheight}{0.5pt} % space for the rule     \fancypagestyle{plain}{%     \fancyhead{} % get rid of headers on plain pages       \renewcommand{\headrulewidth}{0pt} % and the line     }     % Setting newcommands     % \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}     % \renewcommand{\thepage}{\texorpdfstring{\lr{\arabic{page}}}{\arabic{page}}}          % Title and Author data          \title{ترجمة لتعليمات التسجيل في دفتر سجلات العالم \textenglish{ARRL LoTW}}          \author{\emph{ترجمة\thanks{هذا المكان مخصص}: }يوسُف عَدنَان رَفـَّـه -    \textenglish{HZ1YR} \\ \\     \href{http://www.HZ1YR.com}{\textenglish{HZ1YR.com}}}     \date{10 فبراير 2013م}                    % Beginning of document     \begin{document}     \maketitle     \thispagestyle{empty} % No page number on 1st page          % Table of Contents     \newpage     \tableofcontents     \newpage               \begin{center}     \includegraphics{LOTW_Banner.eps}     \end{center}          % Abstract/Summary     \begin{abstract}     هذه الوثيقة عبارة عن ترجمة للخطوات وطريقة التسجيل في دفتر سجلات العالم \textenglish{Logbook of The World (LoTW)}\footnote{دفتر سجلات العالم يقصد به \textenglish{Logbook of The World} أو ما يُعرف اختصارا بـ \textenglish{LoTW}.} الموجودة على \href{http://www.arrl.org/}{موقع \textenglish{\footnote{إتحاد نواب الراديو الأمريكي \textenglish{American Radio Relay League}}ARRL}} والذي يختص بتوثيق الإتصالات \textenglish{QSO\index{QSO}s} بين الهواة بطريقة آمنة و محمية ويستخدمها معظم الهواة المحترفين.\\     حاولت تبسيط الترجمة والخطوات لتكون سهلة وواضحة للجميع قدر الإمكان ولكن إن أخطأت فمن نفسي وأرجوا أن تستميحوا لي العذر وتراسلوني عبر الموقع الموجود في أول صفحة أسفل العنوان.     \\     \begin{flushleft}     \textenglish{\textbf{Disclaimer:} This document is a personal effort by   \emph{HZ1YR} in translating ARRL's article on how to register for LoTW. All images are \copyright copyrighted to ARRL.}     \end{flushleft}          \end{abstract}          \end{document}      I think this is why it is also breaking my index and stopping it from being printed in the document. Here is my LoTW.ilg content               This is makeindex, version 2.15 [TeX Live 2012] (kpathsea + Thai support).     Scanning input file LoTW.idx...     !! Input index error (file = LoTW.idx, line = 1):        -- Illegal page number ٥.     !! Input index error (file = LoTW.idx, line = 2):        -- Illegal page number ٥.     done (0 entries accepted, 2 rejected).     Nothing written in LoTW.ind.     Transcript written in LoTW.ilg.


title: Hyperref: Changing the linkcolor locally in the TOC

text: I found that the link-color for TOC text is identical to the link-color for Figures and Tables. When I change the color to black in the TOC also the color for Figures/Tables citation etc. is changed. Is there a way to separately set the colors inside the TOC and outside?


title: General question on floating and non-floating objects in LaTeX

text: I am wondering when you place a non-floating object such as a `minipage` into a floating environment such as a `table` or `figure` if this construction as a whole is then a floating or a non-floating object? Example:               \begin{table}         \begin{minipage}         ...         \end{minipage}              \begin{minipage}         ...         \end{minipage}     \end{table}      Is this table considered to be a floating object or in different words, is this object still floating?


title: Locally use only one smoothbar bullet within one subsection

text: Inspired from this question Modify Beamer's outer theme smoothbars I want to apply one smoothbar only locally, in only one long subsection that is. I thought of defining a new `boolean` variable but it seems that it's not working... My code is               \documentclass[slidestop,compress,10pt,xcolor=dvipsnames]{beamer}     \newcommand*\oldmacro{}%     \let\oldmacro\insertshorttitle%     \renewcommand*\insertshorttitle{%       \oldmacro\hfill%     \insertframenumber\,/\,\inserttotalframenumber}     \setbeamertemplate{footline}[frame number]      \setbeamertemplate{blocks}[rounded][shadow=true]      \setbeamertemplate{navigation symbols}{}      \usetheme{Ilmenau}          \usepackage{ifthen}     \newboolean{circles}%Define new variable     \setboolean{circles}{false}%Set the variable false          \usepackage{etoolbox}     \ifthenelse{\boolean{circles}}{\makeatletter     \patchcmd{\slideentry}{\advance\beamer@xpos by1\relax}{}{}{}     \def\beamer@subsectionentry#1#2#3#4#5{\advance\beamer@xpos by1\relax}%     \makeatother}          \begin{document}          \section{Results}          \subsection{First Subsection}     \frame{Frame 0}          \subsection{Long Subsection}     \setboolean{circles}{true}%Set the variable true only for this long subsection     \frame{Frame 1}     \frame{Frame 2}     \frame{Frame 3}     \frame{Frame 4}     \frame{Frame 5}     \frame{Frame 6}          \subsection{Third Subsection}     \setboolean{circles}{false}%Set the variable back to false     \frame{Frame 7}     \frame{Frame 8}     \frame{Frame 9}     \frame{Frame 10}          \end{document}       **EDIT** The output of Andrew Swann's answer is ![](http://i.imgur.com/qHCPoDz.jpg)


title: Placement of scale tick labels in pgfplots

text: When i use `scale ticks` in my plots i can't get those multiplicators to move anywhere. So basically i use plots like:               \documentclass[border=5mm]{standalone}     \usepackage{pgfplots}      \begin{document}       \begin{tikzpicture}          \begin{axis}[scaled ticks=true]         \addplot coordinates { (20000,0.0005) (40000,0.0010) (60000,0.0020)};          \end{axis}       \end{tikzpicture}%      \end{document}      which gives: ![enter image description here](http://i.stack.imgur.com/ehhd5.png) So my Question is: How can i get this `x tick scale label` to move onto the right side of the right y-axis? So that it is above the x-axis? (The mind behind this question is, that i sometimes have large x-labels, which then are very close to the scale label)


title: Centering a \noalign section

text: I'm trying to format a list of steps to solve a quadratic equation. I have it so that it is aligning correctly for each of the math steps, but now I want to add some headings. This is what I have so far:               \begin{aligned}       x^2-4x+3&=&0\\\\       \noalign{\noindent some text in the middle.}\\\\       (x - 1)(x - 3)&=&0\\\\       \noalign{\noindent Solve Factor 1}\\\\       x - 1&=&0\\\\       +1& &+1\\\\       x&=&1\\\\       \noalign{\noindent Solve Factor 2}\\\\       x - 3&=&0\\\\       +3& &+3\\\\       x&=&3\\\\       \end{aligned}      The problems that I still have are: the noalign steps are still showing a lot of space around them. Also, is there a way to center the \noalign sections? Thanks!


title: Collecting contents of LaTeX environment

text: I have the following for collecting contents of an environment and printing them later, it works but for my real task i want to use the **environ** package because i need to be able to have access to **\BODY**. How can i produce the same output with **\NewEnviron** instead of **\newenvironment** used?               \documentclass{article}     \usepackage{collect}     \usepackage{environ}          \definecollection{notes}               %works but not what i realy want i need access to \BODY and for that i cant  use \newenvironment command     \makeatletter     \newenvironment{note}       {\@nameuse{collect}{notes}{\par\noindent}{\par}{}{}}        {\@nameuse{endcollect}}     \makeatother          %what i realy want     %\NewEnviron{note}{     %\@nameuse{collect}{notes}{\par\noindent}{\par}{}{}       %\BODY     %\@nameuse{endcollect}     %}               \begin{document}          \begin{note}      First note      \end{note}          \begin{note}      Second note      \end{note}           \begin{note}     Third note     \end{note}          \section{collected}     \includecollection{notes}     \end{document}


title: The symbol for a map which is an isomorphism?

text: Suppose I have a map `$A\rightarrow B$` which is an isomorphism. So I'd like to have smth like: `\rightarrow` and `\sim`under it. I could try `\underset{}_{}`, but there is certainly a ready made symbol? I couldn't find the symbol in Detexify service, neither in the comprehensive list of LaTeX symbols.


title: Is it possible to reuse a part of a tikz image

text: I have a part of my plot that I want to repeat several times. To be exact, the part I want to replicate is:               \draw[yscale=2.0,yshift=-3,xscale=0.1,domain=0:10] plot[id=gauss1] function{exp(-(x-5)*(x-5)/2/2/2.0)/sqrt(pi)/2};     \draw[yscale=2.0,yshift=-3,xscale=0.1,domain=5:15] plot[id=gauss2] function{exp(-(x-10)*(x-10)/2/2/2.0)/sqrt(pi)/2};      I want to place this same function in multiple places in my tikz matrix (I want to repeat this two exact statements on multiple places) What is the best way of doing this? Is there a way to not copy-paste this? I tried including this with \input{sometexfile} but that does give compile errors.


title: Latex how to group subfigures

text: HI I want to do the following in Latex. How can I do it? ![enter image description here](http://i.stack.imgur.com/x947O.png)


title: How to make hexagon diagram from Smart diagram package?

text: I know **How to make a smart diagram** from Smart Diagram Package, but "How to make hexagon diagram from Smart Diagram package" and **How to change from bubble diagram to be hexagon diagram?** like this : ![pentagram diagram from Microsoft Office Word 2013](http://i.stack.imgur.com/NZCm3.png) and I copy-paste code for bubble diagram from Smart Diagram Package document               \begin{center}     \smartdiagram[bubble diagram]{     Build a program,Set up,Run,Analyze,Modify~/\\ Add,Check     }     \end{center}


title: Is natbib included in TeX Live?

text: I'm extremely new at this. Basically I'm a would-be academic who needs (and therefore wants) to use LaTeX for my professional writing stuffs. This means that the most important thing to me is to be able to get a decent bibliography sorted. I've been having trouble installing `natbib` (which I apparently need) so I heard that TeXLive comes with `natbib` built in. Can anyone tell me whether this is right? And if so, does this mean that it's already set up to use the `natbib` commands? Many thanks and sorry if this is embarrassingly basic.


title: pandoc: markdown to pdf without page numbers

text: I want to convert a document written in markdown to PDF via tex, so that it looks like I wrote it in tex. The problem is that I don't want the page number. What do I write in the Terminal in order to avoid it? (I'm on a mac, if that makes any difference.)


title: Vertical spacing for writing answers

text: I couldn't find any answers to this issue, so I hope you LaTeX gurus can help me out. I am formatting a study guide with the KOMA `scrbook` class. Throughout there are (enumerated) lists of discussion questions, and there needs to be vertical space to write down responses. (I imagine this is similar to writing tests, so somebody must have done this before and can tell me how...) What I'm doing is pretty hacky, I just have manually-inserted `\vskip`s between `\item`s, like this:               \begin{enumerate}     \item Here is the first question.     \vskip 3cm % space to write an answer     \item Here is a second question.     \vskip 3cm      \item Hey look another question.     \vskip 3cm     \end{enumerate}      The problem is that when a pagebreak lands in the middle of such a list, the last question on the page ends up flush to the bottom, so it gets no writing space (except the bottom margin). Also, the spacing above the start of the list is spread out to try and compensate for the stretch. What I want is   1. to force vertical space after every question, even at the bottom of a page   2. to keep vertical space above the beginning of a question section normal -- extra space can be either added to the bottom question on the page, or stretch applied equally just to the `\item`s in the enumerated list   3. to do this without having to put manual commands at the pagebreaks, because      * this would be a pain to correct if the pagination changes while I edit, and     * this obviously goes against the spirit of LaTeX. Thx in advance for help, I'm sure it will turn out to be easier than I realize! Edit: as suggested, I will start reading the `enumitem` documentation, but meanwhile here is a complete LaTeX file that illustrates how Question 3 doesn't get its full space.               \documentclass{article}          \usepackage[showframe]{geometry}          \usepackage{enumitem}     \setlist[enumerate]{itemsep=8\baselineskip, after=\vspace{8\baselineskip}}          \begin{document}          Lorem ipsum dolor sit amet...          \vskip 8cm          ...pronunciation e plu sommun paroles.          \section*{Discussion}     \begin{enumerate}     \item This is the first question     \item This is the second question; both of these should share the          extra stretch from Question 3     \item Here's the third question,          which should trigger a pagebreak so it can get its full allotment of vspace.     \item Question     \item Question     \item Question     \end{enumerate}          Lorem ipsum dolor sit amet...          \end{document}      Edit again: stackexchange is not letting me answer my own question for 8 hours, so here it is here instead... So the `enumitem` package didn't help me; maybe it's possible to get it to do what I want, but what did work was to enclose each `\item` in a `\parbox[t]{\linewidth}{item text goes here}` (which LaTeX will not break), like this:               \documentclass{article}          \usepackage[showframe]{geometry}          \begin{document}          Lorem ipsum dolor sit amet...          \vskip 8cm          ...pronunciation e plu sommun paroles.          \section*{Discussion}     \begin{enumerate}     \item \parbox[t]{\linewidth}{This is the first question\vskip 8\baselineskip}     \item \parbox[t]{\linewidth}{This is the second question; both of these should         share the extra stretch from Question 3\vskip 8\baselineskip}     \item \parbox[t]{\linewidth}{Yay, I'm on the next page!.\vskip 8\baselineskip}     \item \parbox[t]{\linewidth}{Were any of questions 1-3 actually        questions?\vskip 8\baselineskip}     \end{enumerate}          Lorem ipsum dolor sit amet...          \end{document}


title: Covington Gloss in Parbox/Makebox/Minipage

text: I am using LyX and I'm trying to place a Convington Gloss (Covington usage) inside a `\parbox`, `\makebox`, or `minipage` but I get the error: http://pastie.org/1814468 Here is the file: http://pastebin.tlhiv.org/iHOSWyqg


title: amsart maketitle problem

text: I am editing a paper using amsart documentclass. However, the               \maketitle      command does not give me the author and abstract. My codes are here:               \documentclass[12pt]{amsart}     \usepackage{amsmath,amsfonts,amssymb,amsthm,latexsym}     \usepackage{enumerate}     \usepackage{cancel}     \usepackage{color}     \usepackage{todonotes}     \usepackage{graphicx}     \usepackage{epstopdf}     \usepackage{titling}     \usepackage{verbatim}          \begin{document}     \title{MyTitle}     \author{MyAuthor}     \begin{abstract}     MyAbstract     \end{abstract}          \maketitle     Text     \end{document}      And the resulting file only have "MyTitle" as title and "Text" as text. Author and abstract information are missing. How can I add adstract and authors by using maketitle?


title: Horizontal centering in table

text: Consider the following example:               \documentclass{article}          \usepackage{booktabs,dcolumn}     \usepackage{siunitx}          \newcolumntype{d}[1]{D{.}{,}{#1}}     \newcommand*\mc[1]{\multicolumn{1}{c}{#1}}          \begin{document}          \begin{table}[htbp]      \centering      \caption{Something.}      \label{tbl:1}       \begin{tabular}{d{2.1} d{2.0} d{3.0} d{2.0} d{3.0}}        \toprule         \mc{S{\o}vnm{\ae}ngde}                           &         \multicolumn{2}{c}{Eleverne fra $9$.~A}          &         \multicolumn{2}{c}{Eleverne fra $9$.~B}                                           \\        \midrule                         & \mc{Abs.} & \mc{Rel.}          & \mc{Abs.} & \mc{Rel.}          \\         \mc{\si{\hour}} & \mc{---}  & \mc{\si{\percent}} & \mc{---}  & \mc{\si{\percent}} \\        \midrule          6.5            &  1        &   4                &  0        &   0                \\          7.0            &  4        &  16                &  2        &  10                \\          7.5            &  3        &  12                &  3        &  15                \\          8.0            &  8        &  32                &  9        &  45                \\          8.5            &  5        &  20                &  3        &  15                \\          9.0            &  2        &   8                &  3        &  15                \\          9.5            &  1        &   4                &  0        &   0                \\         10.0            &  1        &   4                &  0        &   0                \\        \midrule         \mc{I alt}      & 25        & 100                & 20        & 100                \\        \bottomrule       \end{tabular}     \end{table}          \end{document}      ![output](http://i.stack.imgur.com/z7d2k.jpg) Why are the second and third columns not horizontally centered relative to "Eleverne fra 9. A" and the fourth and fifth columns not horizontally centered relative to "Eleverne fra 9. B"? (They need to be pushed slightly to the right.) **Update** I would like the width of the second and third column to be half the width of the box containing "Eleverne fra 9. A", and the width of the fourth and fifth column to be half the width of the box containing "Eleverne fra 9. B". **Update 2** I now have the following:               \documentclass{article}          \usepackage{booktabs,dcolumn}     \usepackage{siunitx}          \newcommand*\mc[1]{\multicolumn{2}{c}{Eleverne fra $9$.~#1}}          \begin{document}          \begin{table}     \def\spc{\hspace{0.8em}}     \centering      \caption{Something.}      \label{tbl:1}       \begin{tabular}{                S[table-format = 2.1]         >{\spc}S[table-format = 2]                S[table-format = 3]         >{\spc}S[table-format = 2]                S[table-format = 3]        }        \toprule         {S{\o}vnm{\ae}ngde} & \mc{A} & \mc{B}          \\        \midrule         \si{\hour} & {Abs.} & {Rel.} & {Abs.} & {Rel.} \\        \midrule          6.5       &  1\spc &   4    &  0\spc &   0    \\          7         &  4\spc &  16    &  2\spc &  10    \\          7.5       &  3\spc &  12    &  3\spc &  15    \\          8         &  8\spc &  32    &  9\spc &  45    \\          8.5       &  5\spc &  20    &  3\spc &  15    \\          9         &  2\spc &   8    &  3\spc &  15    \\          9.5       &  1\spc &   4    &  0\spc &   0    \\         10         &  1\spc &   4    &  0\spc &   0    \\        \midrule                    & 25\spc & 100    & 20\spc & 100    \\        \bottomrule       \end{tabular}     \end{table}          \end{document}      My problem is that I get a lot of warnings;               Overfull \hbox (8.00003pt too wide) detected at line XXX      How do I get rid of these?


title: How to suppress ALL hyperfootnotes; not just the first

text: Here the author points out a comment in the `footmisc` manual: > The `hyperref` package has ambitions to make hyperlinks from footnote marks > to the corresponding footnote body; naturally this causes grief to > `footmisc`, and unfortunately no remedy is currently known. If you use > footmisc, **suppress hyperref's hyperfootnotes, by loading it > as:`\usepackage[hyperfootnotes=false,...]{hyperref}`** Further work on the > interaction between the two packages is proposed, but not yet scheduled. > (emphasis added) And while I have indeed done that, it's not working as advertised. Here's my (slightly revised, to test my assertion in the comment below) MWE:               \documentclass[12pt]{article}     \usepackage[symbol]{footmisc}     \usepackage{lipsum}     \usepackage[colorlinks=true,urlcolor=cyan,hyperfootnotes=false]{hyperref}          \title{Brief Article}     \author{The Author}          \begin{document}     \maketitle     This is a worthwhile document.\footnote{\label{note1}Here is a \href{http://     www.wikipedia.org}{reference}.} Please have a look at it.          \lipsum[1-10] % to generate filler text.          And I'd like to draw your attention to the      same document here\footref{note1}, here\footref{note1}, and here\footref     {note1} too.          Here is another good read.\footnote{\label{note2}Please see Title 17 USC \S 107.}          \lipsum[10-20] % to generate filler text.          And here\footref{note2} is a good place to refer to the second footnoted document.          \end{document}      This suppresses the first hyperfootnote, but the second (for both * and dagger footnote markers), third, and fourth (for * footnote markers) are still hyper- sensitive (so-to-speak). How do I make **all** of them non-hyper? This is important because as I show in this revised example, when the reader clicks the second dagger footnote marker on page 6, the hypertext should (if the two packages played well together) take the reader back to page 3 (where the footnote for the dagger mark is typeset and where the first footnote marker appears in the text). But in fact, it takes the reader back to page 1, apparently referring the reader to the * footnote when the reader clicked on the dagger footnote mark. My solution would be to simply suppress all hyperness in the hyperfootnotes, but my problem with that is that suppressing it as described in the documentation causes suppression of hypertext in only the _first_ footnote mark, not subsequent marks. One comment below indicates that the footnote marks are still red, but not hyper. However that differs from my experience. Is that because I have the TeXlive 2011 version? I tried typesetting the MWE above using both LaTeX and XeLaTeX and in both cases, the second, third, and fourth footnote marks are both red and hypertext. # EDIT Thank you @Sverre for compiling with TeXLive 2013. Can anyone else confirm these results with different versions than 2011 and 2013? It's beginning to look like it's time for me to file a bug report. I would still welcome any work-arounds.


title: Indenting wrapped words in tabular environment

text: How do I indent wrapped words in a tabular environment? I would like my table to look like this:               +-----------+-----------+     | heading 1 | heading 2 |     +-----------+-----------+     | cell 1    | cell 2    |     +-----------+-----------+     | cell 3    | Wrapped   |     |           |   words   |     |           |   with    |     |           |   indent. |     +-----------+-----------+     | cell 4    | cell 5    |     +-----------+-----------+ Thanks


title: AUCTeX/ RefTeX: ignore files by extension

text: I'm writing a very long document with dozens of figures that are all generated with matplotlib and exported as pgf files. Each figure environment then looks something like               \begin{figure}       \input{example-fig.pgf}       \label{fig:example-fig}     \end{figure}      The issue is with commands such as `reftex-reference` (`C-c )`) or `LaTeX- section` (`C-c C-s`). Both of these commands are forced to parse the entire document to do things like build a TOC (`reftex-reference`) or check for conflicting label names (`LaTeX-section`). The problem is that because of all of the pgf files, this parsing sometimes takes forever. **Question:** Can I somehow make AUCTeX and/or RefTeX completely ignore all `.pgf` files included with a `\input{}` statement?


title: Get confused about the `command` option in some ConTeX \setup*

text: Since I switched to ConTeXt from plain TeX, I always get confused about macros in it. Now it is the command option in `\setup*` of ConTeXt. In ConTeXt, some macros, like `\setuphead`, `\setuplist`, have some options which contain the `command=\...#1#2` that we can define some `\def\...` to assign. for example, the `\setuphead`:                   \setuphead [1][2]           1. SECTION           2. ...              command = \...#1#2              ...      An example using this is given in page 209 of the ConTeXt manual                   {\hbox to \hsize            {\hfill             \framed[height=1cm, width=2cm, align=left]{#1}%             \framed[height=1cm, width=4cm, align=right]{#2}}}      here, it is obviously that `#1` is the `headnumber` and `#2` the `title`. At the same time, some commands don't have the examples like this, so, how can I get the information about what meaning the parameters (#1, #2, and so on) refer to?


title: Converting word to lyx

text: Is there a tool or script which converts word documents to lyx. This python script  works nicely but is not able to preserve the formatting styles of the text. Is there a way to solve this? Note : I am not interested in the indirect option i.e converting to latex and then lyx, After studying the above script ,I understand that the model of lyx is much more closer to word which led the author to suggest an interesting tool from this script which I find promising.