title: Making a title page with a subtitle in Memoir

text: This is my first ever posting. I am quite new to LaTeX but have recently written a book in it. I have got the whole thing set up, including margins, page size and everything. But the title page has defeated me. I have used the `\maketitle` command, and it makes quite a good page. But my book has a subtitle, which I would like to include between the title and my name. I have looked around the internet for hours, and as far as I can see, you need to be a LaTeX expert to do this. I have tried pasting in the code from the memoir title page examples here: ftp://ftp.dante.de/tex- archive/info/latex-samples/TitlePages/titlepages.pdf, but none of them seem to work. So I wondered whether anyone could help me. All I want is a page that is very like the standard `\maketitle` page, but has a subtitle between the title and the author name.


title: Spurious space problem

text: I have a problem of spurious space, but I can't find its origin. Here is my MWE:               \documentclass{beamer}          \begin{document}     \begin{frame}{Dimensions et boites}{Commandes de manipulation des boites}     \parbox[c][.3\textheight][t]{\columnwidth}{%     %   \mbox{}%         \only<+>{%             \begin{itemize}             \item Exemple:              \end{itemize}             \parbox[c][.15\textheight][c]{\columnwidth}{%                 \centering\fbox{exemple}\raisebox{0pt}{\fbox{exemple}}\fbox{exemple}%                 \vphantom{\raisebox{-1ex}{\fbox{exemple}}\raisebox{\totalheight}{\fbox{exemple}}}             }%         }%         \only<+>{%             \begin{itemize}             \item Exemple:              \end{itemize}             \parbox[c][.15\textheight][c]{\columnwidth}{%                 \centering\fbox{exemple}\raisebox{1ex}{\fbox{exemple}}\fbox{exemple}                 \vphantom{\raisebox{-1ex}{\fbox{exemple}}\raisebox{\totalheight}{\fbox{exemple}}}             }%         }%         \only<+>{%             \begin{itemize}             \item Exemple:              \end{itemize}             \parbox[c][.15\textheight][c]{\columnwidth}{%                 \centering\fbox{exemple}\raisebox{\totalheight}{\fbox{exemple}}\fbox{exemple}                 \vphantom{\raisebox{-1ex}{\fbox{exemple}}\raisebox{\totalheight}{\fbox{exemple}}}             }%         }%         \only<+>{%             \begin{itemize}             \item Exemple:              \end{itemize}             \parbox[c][.15\textheight][c]{\columnwidth}{%                 \centering\fbox{exemple}\raisebox{-1ex}{\fbox{exemple}}\fbox{exemple}                 \vphantom{\raisebox{-1ex}{\fbox{exemple}}\raisebox{\totalheight}{\fbox{exemple}}}             }%         }%     }     \end{frame}     \end{document}      The `\vphantom` construction is here to make no vertical shift between the 4 baselines. The first slide of the frame is slightly left shifted in comparison to the next 3, as shown on the picture below, resulting a bad looking animation. ![enter image description here](http://i.stack.imgur.com/LdlVT.png)


title: fancyvrb and multicols together

text: I am using `fancyvrb` to list code in a `multicols` situation. I number the code using:               \begin{Verbatim}[numbers=left]      When the code is in the left column, this is good, but not when it is in the right column. I wish to put the numbers in the right column on the right side. Is there a way to automatically put the numbers on the side that the code is being listed on? Or is there a way of determining what column I am in in the `multicols` environment?


title: About the list of tables and header in memoir type of classicthesis

text: @gablin: Will you please tell, how `mypreamble.sty` was modified in order to get header in `classicthesis` of `memoir` type and also the list of figures, list of tables etc. I am explicitly using the template uploaded by gablin for my PhD thesis. Any help is appreciated. Thank you,


title: \autocite help with multiple entries in a single footnote

text: I am using BibTex and trying to get more than one citation in each footnoted citation. For example, this is what I want: >   1. D. C. Greetham, ``Introduction,’’ Scholarly Editing: a Guide to > Research. New York: The Modern Language Association, 1995. pp. 1-7. p. 2. > **As cited in** Kelemen, Erick. Textual Editing and Criticism: An > Introduction. USA: W. W. Norton & Co., 2009. p. 5. > But right now all I have is               \autocite[As cited in][5]{Kelemen2009}      I cannot figure out how to include the first citation with the second. I was thinking of maybe \cite in the note section but I could not really find a good layout that fits with the Chicago referencing style. Note:This is in the case of not having a cross-referenced entry. Any thoughts would be appreciated. Thanks. *bolded "as cited in" not necessary, just there to try and make the division easier to see.


title: How to use multirow inside a multicolumn with p attribute?

text: Is it possible to use the `p` attribute in a `multicol`, with a `multirow` embedded? A previous post doesn't provide a useful answer, since it only works with attributes other than `p`. It is exactly my issue. When a try to do that, I ran into the following error: `Overfull \hbox (901.70518pt too wide) in paragraph at lines 27--27` **Code snippet:**               \documentclass[final,5p,times]{elsarticle}          \usepackage{multirow}     \usepackage{multicol}          \begin{document}          \begin{table}             \begin{tabular}{|c|l|l|c|p{9cm}|}                \hline                   1 & & Lorem Ipsum quia & no & \\                \cline{1-1}              \cline{3-4}                   2 & \multirow{-2}{*}{Lorem Ipsum} & Lorem Ipsum dolor & yes &                \multicolumn{1}{p{9cm}}{\multirow{-2}{*}{Ut justo ante, euismod a viverra                nec, blandit a diam. Quisque placerat, urna ut fringilla imperdiet, leo nisl                rhoncus lectus, volutpat luctus felis ante in lectus. Sed gravida gravida                neque nec bibendum. Duis fringilla urna et mi tempus in pellentesque velit                cursus. Nullam sit amet porta massa.}}\\                \hline             \end{tabular}          \end{table}          \end{document}      Below is a snapshot of such unexpected error: ![snapshot-pdf-unexpected](http://i.stack.imgur.com/lk2Hn.png) **UPDATED** The expected output would be like this: ![enter image description here](http://i.stack.imgur.com/kD4Fx.png)


title: Enlarging tracking (= letter spacing)

text: I am trying to enlarge letter spacing. I have already tried soul package, but it seems it can enlarge only for a single phrase and i would like to enlarge for entire document. Soul command was something like this:               \so{phrase with more letter spacing here}      Which is the command to set a higher letter spacing for all the document?


title: Erratic alignment inside table

text: I have got the following two-column `longtable` for items in my CV:               \begin{longtable}{ r l }     ...     \end{longtable}      ![](http://i.stack.imgur.com/fIG7E.png) Now the problem is: The second column containing the job descriptions is aligned quite fine, whereas the first column does not respect its right alignment although it only contains simple text (the dates) generated by some `\ifstrequal` commands to allow for special cases like (.. - present). Can anyone point me in the right direction please?               \documentclass[11pt]{article}          \usepackage{color}     \usepackage{xifthen} % provides \ifthenelse and \isempty     \usepackage[none]{hyphenat}     \usepackage{geometry}      \usepackage[parfill]{parskip}     \usepackage{sectsty}      \usepackage{array}     \usepackage{etoolbox}     \usepackage{longtable}           \geometry{a4paper}      \geometry{margin=2cm}      \pagestyle{empty}           \providecommand*{\cvitem}[4][]{         \ifstrequal{#3}{-}{#2 – present}{                 \ifstrequal{#2}{#3}{#2}{                     #2 – #3                 }         } & \parbox[t]{12.3cm}{ \raggedright                     \textbf{#4}                          \ifthenelse{\isempty{#1}}{}{  \\ #1 } % Only output second line if optional parameter given                 \\[0.5cm] }  \\     }          \begin{document}          \begin{longtable}{ r l }         \cvitem[foobar]{08/2011}{-}{foobar}         \cvitem[foobarfooba]{04/2008}{08/2011}{foobar}         \cvitem[foobar]{09/2006}{08/2007}{foobar}         \cvitem[foobar]{08/2005}{08/2005}{foobar}         \cvitem[foobar]{03/2005}{03/2005}{foobar}         \cvitem[foobar]{05/2004}{05/2004}{foobar}         \cvitem[foobar]{03/2004}{12/2005}{foobar}     \end{longtable}          \end{document}


title: aligning a table with a figure side to side using llncs format

text: using the `\documentclass{llncs}` instead of for example `\documentclass{book}` will not make the captions aligned together for the following example. How can I do to align them together:               \documentclass{llncs}     \usepackage{capt-of, showframe, blindtext}     \usepackage[demo]{graphicx}     \begin{document}     \blindtext          \begin{table}[t]\fbox{     \begin{minipage}[b]{.50\textwidth }%     \footnotesize     \begin{tabular}{ | c || c | c | c | c | } \hline     \textbf{ABC} & \textbf{KO} & \textbf{Ro} & \textbf{Ov} & \textbf{Params} \\ \hline     \multicolumn{5}{|c|}{\textbf{Well this is a text here}} \\ \hline     \textit{A1} & 123 & 123 & 123 & 123 \\ \hline     \textit{Z2} & 123 & 123 & 123 & 123 \\ \hline     \multicolumn{5}{|c|}{\textbf{Well this is another text here)}} \\ \hline     \textit{O1} & 123 & 123 & 123 & 123 \\ \hline     \textit{U9} & 123 & 123 & 123 & 123 \\ \hline     \end{tabular}%     \caption{results in this table}\label{validation}%     \end{minipage}}%     \fbox{\begin{minipage}[b]{.45\textwidth}%     \hspace*{0pt}\includegraphics[width=0.45\textwidth]{plot.pdf}%     \captionof{figure}{This is a figure not a table\label{x}}%     \end{minipage}}     \end{table}          \end{document}


title: I can't run Asymptote with Mac OS X Lion

text: Should I wait for MacTeX 2012? Can I use TeXShop to run asymptote? I am not good with terminal. Can you help me?


title: epslatex doesn't generate correct output files .eps and .tex (missing include-graphics line)

text: I'm trying to generate a simple plot using the epslatex of gnuplot (version 4.6, recently installed). The script is the following:               set terminal epslatex 8     set output 'sample1.eps'     set size 0.75,0.75     set xrange [-pi:pi]     set yrange [0:1.2]     set xlabel "$x$"     set ylabel "$y$"     plot sin(x)*sin(x) title "$\\sin^2(x)$"      Unfortunately, the generated sample1.tex file is missing (if I'm not mistaken) the last lines of the code, where there should be an "include-graphics{}" declaration:               % GNUPLOT: LaTeX picture with Postscript     \begingroup       \makeatletter       \providecommand\color[2][]{%         \GenericError{(gnuplot) \space\space\space\@spaces}{%           Package color not loaded in conjunction with           terminal option `colourtext'%         }{See the gnuplot documentation for explanation.%         }{Either use 'blacktext' in gnuplot or load the package           color.sty in LaTeX.}%         \renewcommand\color[2][]{}%       }%       \providecommand\includegraphics[2][]{%         \GenericError{(gnuplot) \space\space\space\@spaces}{%           Package graphicx or graphics not loaded%         }{See the gnuplot documentation for explanation.%         }{The gnuplot epslatex terminal needs graphicx.sty or graphics.sty.}%         \renewcommand\includegraphics[2][]{}%       }%       \providecommand\rotatebox[2]{#2}%       \@ifundefined{ifGPcolor}{%         \newif\ifGPcolor         \GPcolorfalse       }{}%       \@ifundefined{ifGPblacktext}{%         \newif\ifGPblacktext         \GPblacktexttrue       }{}%       % define a \g@addto@macro without @ in the name:       \let\gplgaddtomacro\g@addto@macro       % define empty templates for all commands taking text:       \gdef\gplbacktext{}%       \gdef\gplfronttext{}%       \makeatother       \ifGPblacktext         % no textcolor at all         \def\colorrgb#1{}%         \def\colorgray#1{}%       \else         % gray or color?         \ifGPcolor           \def\colorrgb#1{\color[rgb]{#1}}%           \def\colorgray#1{\color[gray]{#1}}%           \expandafter\def\csname LTw\endcsname{\color{white}}%           \expandafter\def\csname LTb\endcsname{\color{black}}%           \expandafter\def\csname LTa\endcsname{\color{black}}%           \expandafter\def\csname LT0\endcsname{\color[rgb]{1,0,0}}%           \expandafter\def\csname LT1\endcsname{\color[rgb]{0,1,0}}%           \expandafter\def\csname LT2\endcsname{\color[rgb]{0,0,1}}%           \expandafter\def\csname LT3\endcsname{\color[rgb]{1,0,1}}%           \expandafter\def\csname LT4\endcsname{\color[rgb]{0,1,1}}%           \expandafter\def\csname LT5\endcsname{\color[rgb]{1,1,0}}%           \expandafter\def\csname LT6\endcsname{\color[rgb]{0,0,0}}%           \expandafter\def\csname LT7\endcsname{\color[rgb]{1,0.3,0}}%           \expandafter\def\csname LT8\endcsname{\color[rgb]{0.5,0.5,0.5}}%         \else           % gray           \def\colorrgb#1{\color{black}}%           \def\colorgray#1{\color[gray]{#1}}%           \expandafter\def\csname LTw\endcsname{\color{white}}%           \expandafter\def\csname LTb\endcsname{\color{black}}%           \expandafter\def\csname LTa\endcsname{\color{black}}%           \expandafter\def\csname LT0\endcsname{\color{black}}%           \expandafter\def\csname LT1\endcsname{\color{black}}%           \expandafter\def\csname LT2\endcsname{\color{black}}%           \expandafter\def\csname LT3\endcsname{\color{black}}%           \expandafter\def\csname LT4\endcsname{\color{black}}%           \expandafter\def\csname LT5\endcsname{\color{black}}%           \expandafter\def\csname LT6\endcsname{\color{black}}%           \expandafter\def\csname LT7\endcsname{\color{black}}%           \expandafter\def\csname LT8\endcsname{\color{black}}%         \fi       \fi       \setlength{\unitlength}{0.0500bp}%       \begin{picture}(5400.00,3780.00)%         \gplgaddtomacro\gplbacktext{%           \csname LTb\endcsname%           \put(688,512){\makebox(0,0)[r]{\strut{} 0}}%           \put(688,1025){\makebox(0,0)[r]{\strut{} 0.2}}%           \put(688,1537){\makebox(0,0)[r]{\strut{} 0.4}}%           \put(688,2050){\makebox(0,0)[r]{\strut{} 0.6}}%           \put(688,2562){\makebox(0,0)[r]{\strut{} 0.8}}%           \put(688,3075){\makebox(0,0)[r]{\strut{} 1}}%           \put(688,3587){\makebox(0,0)[r]{\strut{} 1.2}}%           \put(882,352){\makebox(0,0){\strut{}-3}}%           \put(1570,352){\makebox(0,0){\strut{}-2}}%           \put(2259,352){\makebox(0,0){\strut{}-1}}%           \put(2948,352){\makebox(0,0){\strut{} 0}}%           \put(3636,352){\makebox(0,0){\strut{} 1}}%           \put(4325,352){\makebox(0,0){\strut{} 2}}%           \put(5013,352){\makebox(0,0){\strut{} 3}}%           \put(128,2049){\rotatebox{-270}{\makebox(0,0){\strut{}$y$}}}%           \put(2947,112){\makebox(0,0){\strut{}$x$}}%         }%         \gplgaddtomacro\gplfronttext{%           \csname LTb\endcsname%           \put(4376,3444){\makebox(0,0)[r]{\strut{}$\sin^2(x)$}}%         }% ` Also, the generated *.eps file contains only the frame of the plot. I know the example is very simple, but this happens even with scripts I had used before (one and a half month ago, no major changes in the laptop, Xubuntu 12.04) to successfully produce epslatex plots in the same machine. It looks as if there is something preventing the generation of the .tex file from finishing, but I can't figure out what that is. I also don't know if gnuplot allows for some kind of debugging, but the problem is really weird. Any idea where I should start looking? I already tried to reinstall gnuplot, without any success.


title: pdfTeX warning (ext4): destination with the same identifier (name{figure.1}) has been already used, duplicate ignored

text: I've tried to make bilingual caption with package "ccaption" and compiled it with pdfLaTeX. It works fine but with a warning: > pdfTeX warning (ext4): destination with the same identifier (name{figure.1}) > has been already used, duplicate ignored. Here is a mini example:               \documentclass[UTF8]{ctexart}                      \usepackage{graphicx}                    \usepackage{ccaption}     \usepackage{hyperref}          \begin{document}     Figure \ref{fig1}     \begin{figure}     \bicaption[fig1]{}{中文标题}{Fig.}{English caption}     \end{figure}     \end{document}      Sorry for the inconvenience if you don't have package **ctex** which defines a documents class **ctexart** for typesetting Chinese. You can replace the `documentclass` with `article` and the warning it still there.


title: TikZ read out file

text: I have a file called `assocFile.dat`. The file has the following format: > 0/b > > 1/d > > 2/f > > 3/h I want to use this file to draw nodes (however it would be nice if this question can be answered in a general way, without having to worry about the number of values in a row).               \foreach\a/\b in {??} {         \draw (\a,0) node{\b};     }      is there a way to open the file and process tikz commands with the content of it? **EDIT** : The `.tex` file also writes to the file: I've defined the following macro:               \newcommand{\writeToAssoc}[1]\newcommand{\writeToFile}{\immediate\write\assocfile{\arabic{assocCounter}/#1}\refstepcounter{assocCounter}}      **after** (!) writing the TikZ code I have the following sequence of commands:               \newwrite\assocfile     \immediate\openout\assocfile=assocFile.dat     \writeToAssoc{b}     \writeToAssoc{d}     \writeToAssoc{f}     \writeToAssoc{h}     \immediate\closeout\assocfile


title: How to show the bibliography which is only cited

text: I have a file called `paper.tex`. Another file called `PaperBib.bbl` contains all the bibliography for this. I've used `\cite{...}` to cite a paper and `\bibliography{PaperBib}` to print the references in the end of the document. One problem is that currently all the papers in `PaperBib.bbl` are listed no matter whether they are cited or not. Is there a way to list:   * Only the ones which are cited?    * Only the ones which are not cited?  By the way, I have searched a little bit in the similar questions. Someone suggested using `biblatex`, but I would prefer not to. PS: I do not have `\nocite{*}` in either of these 2 files.


title: How to add length outside of square with tkz-euclide

text: This is what I want to achieve. ![enter image description here](http://i.stack.imgur.com/EcwdF.png) And this is what I got so far. ![enter image description here](http://i.stack.imgur.com/FzTLs.png) I am not sure how to add length x at the top.               \documentclass{article}     \usepackage{tkz-euclide}     \usetkzobj{all}                \begin{tikzpicture}             \tkzDefPoint(2,0){A}             \tkzDefPoint(4,2){B}             \tkzDefPoint(2,4){C}             \tkzDefPoint(0,2){D}             \tkzDefPoint(2,2){E}             \tkzDrawPolygon[fill=gray!10](A,B,C,D)             \tkzDrawSegment[dashed](D,B)             \tkzDrawSegment[dashed](C,A)             \tkzLabelSegment[left=4pt](E,C){$7$}             \tkzLabelSegment[below=4pt](B,A){$10$}             \tkzMarkSegments[mark=|,size=4pt](A,B B,C C,D A,D)             \tkzMarkRightAngle(C,E,B)             \foreach \Nodo in {B,D}             \draw ([yshift=9pt]\Nodo) -- ([yshift=15pt]\Nodo);             \draw[<->,>=latex] ([yshift=12pt]A) -- node[fill=white] {$x$} ([yshift=12pt]B);          \end{tikzpicture}          \end{document}


title: Is there a pre-defined width that covers the text area and the margin?

text: Is there a pre-defined width that covers both the text and margin areas? Correct me if I am wrong, but it would basically be equal to `\textwidth+\marginparsep+\parginparwidth`. Is that provided by LaTeX somewhere? If not, I am currently defining it this way in the preamble:               \newlength{\widewidth}     \setlength{\widewidth}{\textwidth+\marginparsep+\marginparwidth}      Is that the right approach? Are there any caveats? For example, if I change a page's orientation, would `\widelength` change its size to reflect that?


title: multicolumn design problem

text: I tried to use multiple approaches to obtain the following general template with multicolumn, however, one problem that I come across is that the fontsizes changes; is there any take on how to beautify the general outline ?


title: Remove hyper reference (back reference) in bibliography

text: I'm having a trouble with removing the hyperlinks that LaTeX generates after each bibliographic entry. Example: > A. Jonas, J. App. Chem, 2000, **1,5,8,13,15,17** The numbers "1,5,8,..." are in fact the pages on which I refer to this reference. The template that I use includes the `hyperref` package. I have disabled this package (inserted a `%`) but still, there is no change. I am sure that the trouble comes from the main .tex file (and not from the class file that I use for the bibliography, because I tried different classes, and I still get the page numbers.) Summary: **I want to disable hyperlinks in my bibliography (or in my whole text). Although I commented out the`hyperref` package, it doesn't work.** It would be great if you could help me. I have to submit my thesis the day after tomorrow!!!


title: Storing environment arguments

text: Consider this example:               \documentclass{article}          \newcommand{\baz}{}     \newenvironment{foo}[1]{#1}{\makeatletter\g@addto@macro\baz{#1}\makeatother}          \begin{document}          \begin{foo}{bar}     \end{foo}     \end{document}      The example does not work. What I am aiming to achieve is concatenating all parameters used with `foo`, so I can output them at the end of the document. What is the correct approach for that?


title: Chapter Title in rotated vertical box at the margin

text: I am using the `book` document class. I would like to have Chapter name (Interduction, Results, Discussion, ...conclusion...) to appear in every page, in the right side small vertical (color filled) box (box size, let say 3cm). So, instead of chapter name in the header or footer, I want it to keep it in right side color filled box ..... sometime we see the style in Dairy, and also in many books as well. For the first chapter, this right side box will appear at the upper top right margin....then in next chapter the box will be little lower and will have different color. Is there anyone who can help me on this?


title: How to draw a dashed line and length with tkz-euclide

text: This is what I want to achieve. ![enter image description here](http://i.stack.imgur.com/EM5Cp.png) And this is what I got so far. ![enter image description here](http://i.stack.imgur.com/hozNa.png) Q1. How to add a dotted line between CE? Q2. How to add length 8? Q3. How to add equal length sign for CD and DA?               \documentclass{article}     \usepackage{tkz-euclide}     \usetkzobj{all}              \item[b)]\leavevmode\vadjust{\vspace{-\baselineskip}}\newline           \begin{tikzpicture}             \tkzDefPoint(0,0){A}             \tkzDefPoint(5,0){B}             \tkzDefPoint(3,3){C}             \tkzDefPoint(0,3){D}             \tkzDefPoint(3,0){E}             \tkzDrawPolygon[fill=gray!10](A,B,C,D)             \tkzDrawSegment(C,E)             \tkzLabelSegment[above=4pt](D,C){$5$}             \tkzLabelSegment[right](B,C){$y$}             \tkzLabelSegment[below](E,B){$x$}             \tkzMarkRightAngle(C,D,A)             \tkzMarkRightAngle(D,A,E)             \tkzMarkRightAngle(C,E,B)           \end{tikzpicture}     \end{document}


title: Use Revtex 4.1 in Lyx or simply on linux

text: I am new to latex under Linux and I recently installed LyX on an Ubuntu derivative and as we all know a lot of the provided templates don't work, one particular one that I am really interested in getting to work is the Revtex one, the error message I get is as follows:               Using revtex.lyx template:          LaTeX Error: File 'revtex.sty' not found.           Description:            \renewcommand                       {\usepackage}{\RequirePackage}^^M     *** (cannot \read from terminal in nonstop modes)          Using revtex4.lyx template:           The layout file requested by this document,     revtex4.layout,     is not usable. This is probably because a LaTeX     class or style file required by it is not     available. See the Customization documentation     for more information.     LyX will not be able to produce output.      Now I do realize that the style and the layout files are missing, can anyone please guide me so I can install it it properly, I think I need to put the files somewhere LyX can see them, how do I do that?. Thank you very much for your time.


title: How to make xkvview record keyreader defined keys?

text: Since `keyreader` is based on `xkeyval` i wonder if it’s possible to make it wokr with `xkvview` which comes with `xkeyval`.               \documentclass{scrartcl}          \usepackage{xkvview}     \usepackage{keyreader}          \makeatletter          % recorded     \define@boolkey{LI@package}[li@]{savemode}[true]{}     % not recorded     \krddefinekeys{LI@all}[li@]{%        cmd/testa/;     }               \begin{document}     \xkvview{}     \end{document}      The example shows that keys defined with the `xkeyval` way are recognized but not the ones defined via `keyreader`. I thought `keyreader` uses the `xkeyval` commands internally so I expect it to be also in the `\xkvview{}` list


title: Adding table with restricted horizontal line

text: I am new to LaTeX and having a hard time trying to figure out a way to draw a table like the one in the image below.   * To be precise, how do I get the horizontal line only above the texts "Ruin" and "Success".    * Another issue is how to align the text "Probability of" exactly between "Ruin" and "Success". ![MWE Tabular](http://i.stack.imgur.com/lTlVm.png) I tried:               \begin{tabular}{c c  c p{2cm}}     \hline     &&Probability of \\     Capital,$a$ & Ruin & Success & Average duration,$N_a$  \\      \hline     \end{tabular}


title: Condensing everything to force fit a page?

text: I have a math exam I can use three pages of notes for and I was thinking, is there a way to type a document in LaTeX that will auto adjust to fit three pages or should I just play with the font sizes and margins?


title: Tikz figure with multi columns table

text: I am trying to read from a file with 100000 rows (I plot only the first 600) and 12 columns of data and to plot it with different colors. The data does not contain `x` components, that is why I use `x expr=\coordindex` in my code. At the moment I am facing two problems with my plot.   1. The different columns have the same color (black)   2. The label in the legend should be `$d_1$,...,$d_{12}$` instead of `$d_0$,...,$d_{11}$` I tried the following code:               \documentclass[pdftex]{scrbook}     \usepackage{pgfplots,pgfplotstable}          \newcommand{\plotfile}[1]{      \pgfplotstableread{#1}{\table}      \pgfplotstablegetcolsof{#1}      \pgfmathtruncatemacro\numberofcols{\pgfplotsretval - 1}      \pgfplotsinvokeforeach{0,...,\numberofcols}{      \pgfplotstablegetcolumnnamebyindex{##1}\of{\table}\to{\colname}        \addplot[only marks, mark size=0.3pt,mark=*] table [x expr=\coordindex,y index=##1] {#1};        \addlegendentryexpanded{$d_{##1}$}      }     }          \begin{document}      \begin{tikzpicture}       \begin{axis}[xlabel={Influx},         ylabel={Center of mass},         grid=major,         ymin=-1,         ymax=1,         xmin=0,         xmax=600,               legend style={           font=\footnotesize,           at={(1.3,1)},           anchor=north east}]         \plotfile{./tables/schwerpunkt_12_.0220.log}       \end{axis}      \end{tikzpicture}     \end{document}      The result I get is: ![plot](http://i.stack.imgur.com/j1yFK.png) **EDIT** I was able using the tip from @Jake (color list) to create my plot with 12 different colors. What is still not solved, is that i would like to add `+1` to the number near `d`. This mean, instead of `$d_0$`, there should be `$d_1$` and etc. My guess is that i need to create somehow a macro that do a summation of `##1 + 1` and the result of it to place in `addlegendentryexpanded{$d_{##1}$}` instead of `##1` How could i do it?


title: Beyond Bringhurst: mathematical typesetting

text: I've been reading _The Elements of Typographic Style_ and I was wondering whether there was a similar resource for specifically _mathematical_ typesetting. Is there a book or other document that sets out answers to the following questions: \- What are the basic units of mathematical writing and how much space should there be between each of them? \- What fonts are available that contain a good selection of specially designed mathematical symbols (Sum and integral symbols; Greek letters that fit with the italic and roman alphabets; arrows, primes, etc. that fit with the typeface) \- Advice on when inline maths is appropriate and when formulae should be on a new line. Ideally something that deals with these questions with an eye to TeX and friends, but I'm really looking for something on _typography_. N.B. I'm not really looking for answers to the above questions here, but for resources that offer answers to them as part of a systematic treatment of mathematical typesetting in the mould of Bringhurst's _Elements …_


title: How to make text and its picture pop up together in Beamer?

text: I am using Beamer to make a presentation. I wish to make the text and its corresponding picture showing up simultaneously. Currently, I am able to show the pictures in the frame together with the texts with the help of `minipage`, but they overlap and are always static there from the beginning to the end. Here is my MWE.               \documentclass{beamer}          \begin{document}          \begin{frame}     \frametitle{Background}          \begin{minipage}[0.2\textheight]{\textwidth}     \begin{columns}[T]     \begin{column}{0.8\textwidth}     \begin{itemize}     \item 1\pause     \begin{enumerate}         \item 1\pause         \item 2\pause     \end{enumerate}     \end{itemize}     \end{column}     \begin{column}{0.2\textwidth}     \rule{50pt}{50pt}% pic corresponding to 1.1     \rule{50pt}{50pt}% pic corresponding to 1.2     \end{column}     \end{columns}     \end{minipage}               \end{frame}     \end{document}      The desired effect should be...   * 1 pops up   * 1.1 pops up together with pic1   * 1.2 pops up together with pic2 Pic1 can either disappear or remain there, when pic2 comes, as long as pic2 is visible. How can I make it happen?


title: Interweave .tex files to create single PDF

text: I have three `.tex` files.   1. contains all the verses in a document in this format: `\subsection*{वृद्धिरादैच् 1.1.1} \label{1.1.1}`   2. contains explanation 1   3. contains explanation 2 Is there a way to merge these three documents to create a single PDF? To create a single PDF file: What sort of delimiters do I need to put in document 2 & 3 to show the explanations 1 & 2 from these documents under corresponding verses in document 1? In document 1 some marker (i.e. rule or exp1 exp2) shall be shown at the start of each explanation. It would be ideal if I could use two different font sizes. ![](http://i.stack.imgur.com/7GBUu.jpg)


title: tikz-uml sequence diagram "Extra \or" error

text: I was compiling the following code which uses the `tikz-uml` package.               \documentclass{article}     %\usepackage{pgf}     %\usepackage{tikz}     \usepackage{tikz-uml}          \begin{document}     \begin{tikzpicture}         \begin{umlseqdiag}             \umlobject{a}             \begin{umlcall}{a}{a}                 \begin{umlcall}{a}{a}           % line 11                 \end{umlcall}                   % line 12             \end{umlcall}         \end{umlseqdiag}     \end{tikzpicture}     \end{document}      It compiles on one machine without any problems. ~~However, on another one, it gives an error.~~ Both machines use Windows 7 64-bit, MikTeX 2.9 64-bit. Error message:               ! Extra \or.     \ifthenelse #1->\toks@ {#1}\TE@repl \or                                             \TE@or \TE@repl \and \TE@and \TE@rep...     l.12            \end{umlcall}     I'm ignoring this; it doesn't match any \if.      Anyone knows the reason for it and how to resolve it? I know it's due to an `umlcall` environment inside another one. It's actually enough to uncomment lines 11 and 12 to make the error disappear, but the result is not the same obiously. The problem doesn't depend on including PGF or TikZ packages, nor on defining `inputenc` or `fontenc`. It doesn't depend on the fact that the `a` object calls itself neither. **EDIT 1:** I was mistaken, the code that I tested and that worked on other machine was actually a bit different (precisely: everything inside the `tikzpicture` environment was a part of a bigger file). **The solution is to add`\usepackage[language]{babel}` in the preamble.** But why does the documentation not say anything about it...? **EDIT 2:** The wanted result is: ![tikz-uml nested self-umlcall](http://i.stack.imgur.com/aXfmA.png)


title: Unwanted double spacing

text: I have the following LaTeX code:               \documentclass[a4paper]{report}          \usepackage{color}     \usepackage{hyperref}     \usepackage[usenames,dvipsnames,table]{xcolor}          \newcommand{\ADDRESS}{     \begin{minipage}[t]{0.40\textwidth}     \begin{flushright}     {\bf \textcolor{gray}{\tiny{My company}}}\\     \textcolor{gray}{\tiny{1 West 1st Avenue}}\\     \textcolor{gray}{\tiny{City Province}}\\     \textcolor{gray}{\tiny{Tel: 1-777-777-7777}}\\     \textcolor{blue}{\tiny{\href{mailto:customerservice@mycompany.com}{customerservice@mycompany.com}}}\\     \textcolor{blue}{\tiny{\href{http://www.mycompany.com/}{www.mycompany.com}}}\\     \end{flushright}     \end{minipage}     }          \begin{document}     \hfill \ADDRESS     \end{document}      However, when I compile this document I get some unwanted double spacing ... How can I get rid of the double spacing and why does the double spacing show up ?


title: Number in newtheoremstyle is not italic

text: I defined and used a new theormestyle using amsmath package:               \newtheoremstyle{standard}       {\topsep}      % ABOVESPACE       {\topsep}      % BELOWSPACE       {\normalfont}  % BODYFONT % \itshape       {0pt}          % INDENT (empty value is the same as 0pt)       {\itshape}     % HEADFONT       {.\ }          % HEADPUNCT       {0pt}          % HEADSPACE. `plain` default: {5pt plus 1pt minus 1pt}       {}             % CUSTOM-HEAD-SPEC      When I see it correctly this leads e.g. to _Remark_ 1\. instead of _Remark 1._   So the number is not italized. How should I do that?   Maybe internally the `\emph` environment is applied to the number, neutralizing italics already in place.


title: Multiple pspicture environments breaks when using \pstMarkAngle

text: I have a pretty weird problem. If I use multiple `pspicture` environments in the same document, the first one gets rendered, but the other breaks. For example,               \begin{pspicture}(-3,-3)(3,3)         \pstGeonode[PointName=none](0, 0){O}         \pstGeonode[PointSymbol=none, PointName=N](1, 0.66){N}           \pstGeonode[PointSymbol=none, PointName=B](-1, 1){B}         \pstGeonode[PointSymbol=none, PointName=W](0, -2){W}              \pstLineAB[linecolor=black]{O}{N}         \pstLineAB[linecolor=black]{O}{B}         \pstLineAB[linecolor=black]{O}{W}              \pstMarkAngle[linecolor=black, Mark=none]{N}{O}{B}{}     \end{pspicture}      followed by something ala'               \begin{pspicture}(3,5)         \pstTriangle[PointSymbol=none, linecolor=black, linewidth=1.5\pslinewidth](0,4){A}(0,0){B}(3,0){C}     \end{pspicture}      makes the second element break, however, if i have just two of the second element there is no problem. Taking out the `\pstMarkAngle` line of the first enviroment seems to fix the problem. So, my question in all its simplicity, how do I use `pstMarkAngle` without breaking subsequent `pspicture` environments? EDIT: complete example               \documentclass{article}     \usepackage{pst-eucl}     \begin{document}     \begin{enumerate}[(a)]         \item         \begin{enumerate}[(i)]             \item             \begin{center}             \begin{pspicture}(-3,-3)(3,3)                 \pstGeonode[PointName=none](0, 0){O}                 \pstGeonode[PointSymbol=none, PointName=N](1, 0.66){N}                   \pstGeonode[PointSymbol=none, PointName=B](-1, 1){B}                 \pstGeonode[PointSymbol=none, PointName=W](0, -2){W}                 \pstLineAB[linecolor=black]{O}{N}                 \pstLineAB[linecolor=black]{O}{B}                 \pstLineAB[linecolor=black]{O}{W}                 \pstMarkAngle[Mark=none]{N}{O}{B}{}             \end{pspicture}             \end{center}          \item             \begin{center}             \begin{pspicture}(3,5)                 \pstTriangle[PointSymbol=none, linecolor=black, linewidth=1.5\pslinewidth]                 (0,4){A}(0,0){B}(3,0){C}             \end{pspicture}             \end{center}             \end{enumerate}     \end{enumerate}     \end{document}      gives the following error:               GPL Ghostscript 9.05: Unrecoverable error, exit code 1          ** WARNING ** Filtering file via command -->rungs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sOutputFile='/var/folders/ry/zcbxz44d46j7w58g2cvh8vf40000gp/T//dvipdfmx.NEz14AXD' '/var/folders/ry/zcbxz44d46j7w58g2cvh8vf40000gp/T//dvipdfmx.EXaHSm0G' -c quit<-- failed.     ** WARNING ** Image format conversion for PSTricks failed.     ** WARNING ** Interpreting special command pst: (ps:) failed.     ** WARNING ** >> at page="1" position="(275.731, 343.294)" (in PDF)     ** WARNING ** >> xxx "pst:  tx@Dict begin STP newpath /ArrowA { moveto } def /ArrowB "     ** WARNING ** 7 memory objects still allocated     You may want to report this to tex-k@tug.org      and the second `pspicture` does not get rendered. Removing the `\pstMarkAngle` element resolves the problem. **UPDATE** : using latex instead of XeLaTeX works. I suppose my installation of XeLaTeX (which came with TeXLive 2012) is buggy.


title: Explicit line spacing in revtex 4

text: I am required to use 13pt line spacing for a report and want to use revtex 4 as document class. However, I am not able to set the line spacing explicitly.


title: pgfplots: three dimensional plot with one variable as exponent?

text: In want to draw this function with pgfplots: f(x,y) = 1-(1-(1+y)^(-x))/x*y. When compiling, I get some error message about `z buffer reoderings`. I already played around a bit and ist seems to me the problem is that one variable (x) is in the exponent. So I broke it down to the simple function (1+y)^(x) and the problem still arises. Is there a way to plot this function type with pgfplots or is it just not possible?               \documentclass{scrartcl}     \usepackage{pgfplots}     \begin{document}     \begin{tikzpicture}     \begin{axis}     \addplot3[surf] {(1+y)^(x)};     %\addplot3[surf] {1-(1-(1+y)^(-x))/(x*y)};     \end{axis}     \end{tikzpicture}     \end{document}      * * * Edit: Just to show what it should look like: ![enter image description here](http://i.stack.imgur.com/zW32K.png)


title: Hyphenation in a table of contents causing bad blocks

text: I want to turn off words hyphenation in a TOC but leave it in the rest of a document. The intention to do it is to avoid bad blocks such as you can see below in my MWE. I prefer a solution that wouldn't use other packages. ![enter image description here](http://i.stack.imgur.com/4urUs.png)               \documentclass[14pt, DIV = calc]{scrreprt}          \usepackage[T2A]{fontenc}     \usepackage[english]{babel}          \usepackage{geometry}     \geometry{left = 3cm, right = 2cm}          \begin{document}     \tableofcontents     \chapter{Lorem ipsum dolor sit amet, consectetur adipisicing elit}     \chapter{Loremipsum dolor sitametar consectetu adipisicin aberm models}     \end{document}


title: How can an arrow cross under an entry in xymatrix?

text: I know how can an arrow cross under another arrow in xymatrix (i.e. using `|\hole`). But how can it cross under an entry (e.g. wide textual entry). One solution would be to fill the box under the entry with white color. However it seems that only black color works in pdflatex, which seems weird. I don't really need colors, just white color so that the arrow doesn't intersect with the text. Minimal example follows.               \def \objectstyle {\hbox}     \xymatrix{         short & short \ar@/_/[lddd] \\         short & short \\         long long long & short \\         short     }


title: Mulitibib not linking to all .bib files wanted

text: I am running LaTeX on a Mac and am having problems trying to use the `multibib` package. the code I am running is (linking to relevant .bib files):               \usepackage{multibib}          \newcites{h}{Reference List 1}     \bibliographystyle{plain}     \bibliographystyleh{plain}     .....          %\bibliographystyleh{plain}     \bibliographyh{references}          \newpage     %\bibliographystyle{plain}     \bibliography{designstudy}      However, only the references linked to the normal bibliography come out and not those linked to the one i've called h? I've tried to compile it multiple times but it still doesn't find the other reference database.


title: Issues with installing "tikz-cd" and "arrows.meta"

text: I have an up-to-date MikTeX 2.9 installation with tikz/pgf 3.0, but trying to compile               \documentclass{amsart}          \usepackage{tikz}     \usetikzlibrary{decorations.markings}     \usetikzlibrary{arrows}     \usetikzlibrary{calc}          \usepackage{tikz-cd}          \begin{document}          \end{document}          it says: I can't find file tikzlibraryquotes.code.tex i tried to do as mentioned here: arrows.meta in tikz but it still doesn't work. I also cannot use the package {arrows.meta} but i suggest, this goes with tikz-cd? I did the whole update thing (plane and Administrator) but nothing changed. * * * S. Segletes providing this edit. I, too receive this error on one of my systems. I am using MikTeX. Here is the log file, with `\listfiles` added to the preamble, as Paul Gessler suggests:               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9) (preloaded format=pdflatex 2013.8.23)  11 APR 2014 00:07     entering extended mode     **C:/Users/Steven/TeX/junk.tex     (C:/Users/Steven/TeX/junk.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,      croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,      lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman     ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm     an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl     ishmax, welsh, loaded.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amscls\amsart.cls"     Document Class: amsart 2009/07/02 v2.20.1     \linespacing=\dimen102     \normalparindent=\dimen103     \normaltopskip=\skip41     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty"     Package: amsmath 2013/01/14 v2.14 AMS math features     \@mathmargin=\skip42          For additional information on amsmath, use the `?' option.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amstext.sty"     Package: amstext 2000/06/29 v2.01          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsgen.sty"     File: amsgen.sty 1999/11/30 v2.0     \@emptytoks=\toks14     \ex@=\dimen104     ))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsbsy.sty"     Package: amsbsy 1999/11/29 v1.2d     \pmbraise@=\dimen105     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsopn.sty"     Package: amsopn 1999/12/14 v2.01 operator names     )     \inf@bad=\count79     LaTeX Info: Redefining \frac on input line 210.     \uproot@=\count80     \leftroot@=\count81     LaTeX Info: Redefining \overline on input line 306.     \classnum@=\count82     \DOTSCASE@=\count83     LaTeX Info: Redefining \ldots on input line 378.     LaTeX Info: Redefining \dots on input line 381.     LaTeX Info: Redefining \cdots on input line 466.     \Mathstrutbox@=\box26     \strutbox@=\box27     \big@size=\dimen106     LaTeX Font Info:    Redeclaring font encoding OML on input line 566.     LaTeX Font Info:    Redeclaring font encoding OMS on input line 567.     \macc@depth=\count84     \c@MaxMatrixCols=\count85     \dotsspace@=\muskip10     \c@parentequation=\count86     \dspbrk@lvl=\count87     \tag@help=\toks15     \row@=\count88     \column@=\count89     \maxfields@=\count90     \andhelp@=\toks16     \eqnshift@=\dimen107     \alignsep@=\dimen108     \tagshift@=\dimen109     \tagwidth@=\dimen110     \totwidth@=\dimen111     \lineht@=\dimen112     \@envbody=\toks17     \multlinegap=\skip43     \multlinetaggap=\skip44     \mathdisplay@stack=\toks18     LaTeX Info: Redefining \[ on input line 2665.     LaTeX Info: Redefining \] on input line 2666.     )     LaTeX Font Info:    Try loading font information for U+msa on input line 388.          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\umsa.fd"     File: umsa.fd 2013/01/14 v3.01 AMS symbols A     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\amsfonts.sty"     Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support     \symAMSa=\mathgroup4     \symAMSb=\mathgroup5     LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'     (Font)                  U/euf/m/n --> U/euf/b/n on input line 106.     )     \copyins=\insert233     \abstractbox=\box28     \listisep=\skip45     \c@part=\count91     \c@section=\count92     \c@subsection=\count93     \c@subsubsection=\count94     \c@paragraph=\count95     \c@subparagraph=\count96     \c@figure=\count97     \c@table=\count98     \abovecaptionskip=\skip46     \belowcaptionskip=\skip47     \captionindent=\dimen113     \thm@style=\toks19     \thm@bodyfont=\toks20     \thm@headfont=\toks21     \thm@notefont=\toks22     \thm@headpunct=\toks23     \thm@preskip=\skip48     \thm@postskip=\skip49     \thm@headsep=\skip50     \dth@everypar=\toks24     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\latex\pgf\frontendlayer\tikz.st     y (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\latex\pgf\basiclayer\pgf.sty     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\latex\pgf\utilities\pgfrcs.sty     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\utilities\pgfutil-c     ommon.tex     \pgfutil@everybye=\toks25     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\utilities\pgfutil-l     atex.def     \pgfutil@abb=\box29      (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\latex\ms\everyshi.sty     Package: everyshi 2001/05/15 v3.00 EveryShipout Package (MS)     ))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\utilities\pgfrcs.co     de.tex     Package: pgfrcs 2010/10/25 v2.10 (rcs-revision 1.24)     ))     Package: pgf 2008/01/15 v2.10 (rcs-revision 1.12)          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\latex\pgf\basiclayer\pgfcore.st     y ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"     Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty"     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks26     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"     Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty"     Package: trig 1999/03/16 v1.09 sin cos tan (DPC)     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"     File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive     )     Package graphics Info: Driver file: pdftex.def on input line 91.          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"     File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX          ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"     Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"     Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     )     \Gread@gobject=\count99     ))     \Gin@req@height=\dimen114     \Gin@req@width=\dimen115     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\latex\pgf\systemlayer\pgfsys.st     y     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\systemlayer\pgfsys.     code.tex     Package: pgfsys 2010/06/30 v2.10 (rcs-revision 1.37)          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\utilities\pgfkeys.c     ode.tex     \pgfkeys@pathtoks=\toks27     \pgfkeys@temptoks=\toks28          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\utilities\pgfkeysfi     ltered.code.tex     \pgfkeys@tmptoks=\toks29     ))     \pgf@x=\dimen116     \pgf@y=\dimen117     \pgf@xa=\dimen118     \pgf@ya=\dimen119     \pgf@xb=\dimen120     \pgf@yb=\dimen121     \pgf@xc=\dimen122     \pgf@yc=\dimen123     \w@pgf@writea=\write3     \r@pgf@reada=\read1     \c@pgf@counta=\count100     \c@pgf@countb=\count101     \c@pgf@countc=\count102     \c@pgf@countd=\count103          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\systemlayer\pgf.cfg     File: pgf.cfg 2008/05/14  (rcs-revision 1.7)     )     Package pgfsys Info: Driver file for pgf: pgfsys-pdftex.def on input line 900.          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\systemlayer\pgfsys-     pdftex.def     File: pgfsys-pdftex.def 2009/05/22  (rcs-revision 1.26)          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\systemlayer\pgfsys-     common-pdf.def     File: pgfsys-common-pdf.def 2008/05/19  (rcs-revision 1.10)     )))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\systemlayer\pgfsyss     oftpath.code.tex     File: pgfsyssoftpath.code.tex 2008/07/18  (rcs-revision 1.7)     \pgfsyssoftpath@smallbuffer@items=\count104     \pgfsyssoftpath@bigbuffer@items=\count105     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\systemlayer\pgfsysp     rotocol.code.tex     File: pgfsysprotocol.code.tex 2006/10/16  (rcs-revision 1.4)     ))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\latex\xcolor\xcolor.sty     Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\color.cfg"     File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive     )     Package xcolor Info: Driver file: pdftex.def on input line 225.     Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.     Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341.     Package xcolor Info: Model `RGB' extended on input line 1353.     Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.     Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.     Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.     Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.     Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.     Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcore.     code.tex     Package: pgfcore 2010/04/11 v2.10 (rcs-revision 1.7)          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmath.code.t     ex     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmathcalc.co     de.tex     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmathutil.co     de.tex)     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmathparser.     code.tex     \pgfmath@dimen=\dimen124     \pgfmath@count=\count106     \pgfmath@box=\box30     \pgfmath@toks=\toks30     \pgfmath@stack@operand=\toks31     \pgfmath@stack@operation=\toks32     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmathfunctio     ns.code.tex     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmathfunctio     ns.basic.code.tex)     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmathfunctio     ns.trigonometric.code.tex)     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmathfunctio     ns.random.code.tex)     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmathfunctio     ns.comparison.code.tex)     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmathfunctio     ns.base.code.tex)     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmathfunctio     ns.round.code.tex)     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmathfunctio     ns.misc.code.tex)))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\math\pgfmathfloat.c     ode.tex     \c@pgfmathroundto@lastzeros=\count107     ))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcorep     oints.code.tex     File: pgfcorepoints.code.tex 2010/04/09  (rcs-revision 1.20)     \pgf@picminx=\dimen125     \pgf@picmaxx=\dimen126     \pgf@picminy=\dimen127     \pgf@picmaxy=\dimen128     \pgf@pathminx=\dimen129     \pgf@pathmaxx=\dimen130     \pgf@pathminy=\dimen131     \pgf@pathmaxy=\dimen132     \pgf@xx=\dimen133     \pgf@xy=\dimen134     \pgf@yx=\dimen135     \pgf@yy=\dimen136     \pgf@zx=\dimen137     \pgf@zy=\dimen138     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcorep     athconstruct.code.tex     File: pgfcorepathconstruct.code.tex 2010/08/03  (rcs-revision 1.24)     \pgf@path@lastx=\dimen139     \pgf@path@lasty=\dimen140     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcorep     athusage.code.tex     File: pgfcorepathusage.code.tex 2008/04/22  (rcs-revision 1.12)     \pgf@shorten@end@additional=\dimen141     \pgf@shorten@start@additional=\dimen142     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcores     copes.code.tex     File: pgfcorescopes.code.tex 2010/09/08  (rcs-revision 1.34)     \pgfpic=\box31     \pgf@hbox=\box32     \pgf@layerbox@main=\box33     \pgf@picture@serial@count=\count108     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcoreg     raphicstate.code.tex     File: pgfcoregraphicstate.code.tex 2008/04/22  (rcs-revision 1.9)     \pgflinewidth=\dimen143     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcoret     ransformations.code.tex     File: pgfcoretransformations.code.tex 2009/06/10  (rcs-revision 1.11)     \pgf@pt@x=\dimen144     \pgf@pt@y=\dimen145     \pgf@pt@temp=\dimen146     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcoreq     uick.code.tex     File: pgfcorequick.code.tex 2008/10/09  (rcs-revision 1.3)     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcoreo     bjects.code.tex     File: pgfcoreobjects.code.tex 2006/10/11  (rcs-revision 1.2)     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcorep     athprocessing.code.tex     File: pgfcorepathprocessing.code.tex 2008/10/09  (rcs-revision 1.8)     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcorea     rrows.code.tex     File: pgfcorearrows.code.tex 2008/04/23  (rcs-revision 1.11)     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcores     hade.code.tex     File: pgfcoreshade.code.tex 2008/11/23  (rcs-revision 1.13)     \pgf@max=\dimen147     \pgf@sys@shading@range@num=\count109     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcorei     mage.code.tex     File: pgfcoreimage.code.tex 2010/03/25  (rcs-revision 1.16)          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcoree     xternal.code.tex     File: pgfcoreexternal.code.tex 2010/09/01  (rcs-revision 1.17)     \pgfexternal@startupbox=\box34     ))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcorel     ayers.code.tex     File: pgfcorelayers.code.tex 2010/08/27  (rcs-revision 1.2)     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcoret     ransparency.code.tex     File: pgfcoretransparency.code.tex 2008/01/17  (rcs-revision 1.2)     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\basiclayer\pgfcorep     atterns.code.tex     File: pgfcorepatterns.code.tex 2009/07/02  (rcs-revision 1.3)     )))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\modules\pgfmodulesh     apes.code.tex     File: pgfmoduleshapes.code.tex 2010/09/09  (rcs-revision 1.13)     \pgfnodeparttextbox=\box35     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\modules\pgfmodulepl     ot.code.tex     File: pgfmoduleplot.code.tex 2010/10/22  (rcs-revision 1.8)     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\latex\pgf\compatibility\pgfcomp     -version-0-65.sty     Package: pgfcomp-version-0-65 2007/07/03 v2.10 (rcs-revision 1.7)     \pgf@nodesepstart=\dimen148     \pgf@nodesepend=\dimen149     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\latex\pgf\compatibility\pgfcomp     -version-1-18.sty     Package: pgfcomp-version-1-18 2007/07/23 v2.10 (rcs-revision 1.1)     ))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\latex\pgf\utilities\pgffor.sty     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\latex\pgf\utilities\pgfkeys.sty          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\utilities\pgfkeys.c     ode.tex))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\utilities\pgffor.co     de.tex     Package: pgffor 2010/03/23 v2.10 (rcs-revision 1.18)     \pgffor@iter=\dimen150     \pgffor@skip=\dimen151     \pgffor@stack=\toks33     \pgffor@toks=\toks34     ))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\frontendlayer\tikz\     tikz.code.tex     Package: tikz 2010/10/13 v2.10 (rcs-revision 1.76)          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\libraries\pgflibrar     yplothandlers.code.tex     File: pgflibraryplothandlers.code.tex 2010/05/31 v2.10 (rcs-revision 1.15)     \pgf@plot@mark@count=\count110     \pgfplotmarksize=\dimen152     )     \tikz@lastx=\dimen153     \tikz@lasty=\dimen154     \tikz@lastxsaved=\dimen155     \tikz@lastysaved=\dimen156     \tikzleveldistance=\dimen157     \tikzsiblingdistance=\dimen158     \tikz@figbox=\box36     \tikz@tempbox=\box37     \tikztreelevel=\count111     \tikznumberofchildren=\count112     \tikznumberofcurrentchild=\count113     \tikz@fig@count=\count114          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\modules\pgfmodulema     trix.code.tex     File: pgfmodulematrix.code.tex 2010/08/24  (rcs-revision 1.4)     \pgfmatrixcurrentrow=\count115     \pgfmatrixcurrentcolumn=\count116     \pgf@matrix@numberofcolumns=\count117     )     \tikz@expandcount=\count118          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\frontendlayer\tikz\     libraries\tikzlibrarytopaths.code.tex     File: tikzlibrarytopaths.code.tex 2008/06/17 v2.10 (rcs-revision 1.2)     )))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\frontendlayer\tikz\     libraries\tikzlibrarydecorations.markings.code.tex     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\frontendlayer\tikz\     libraries\tikzlibrarydecorations.code.tex     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\modules\pgfmodulede     corations.code.tex     \pgfdecoratedcompleteddistance=\dimen159     \pgfdecoratedremainingdistance=\dimen160     \pgfdecoratedinputsegmentcompleteddistance=\dimen161     \pgfdecoratedinputsegmentremainingdistance=\dimen162     \pgf@decorate@distancetomove=\dimen163     \pgf@decorate@repeatstate=\count119     \pgfdecorationsegmentamplitude=\dimen164     \pgfdecorationsegmentlength=\dimen165     )     \tikz@lib@dec@box=\box38     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\libraries\decoratio     ns\pgflibrarydecorations.markings.code.tex))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\frontendlayer\tikz\     libraries\tikzlibraryarrows.code.tex     File: tikzlibraryarrows.code.tex 2008/01/09 v2.10 (rcs-revision 1.1)          (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\libraries\pgflibrar     yarrows.code.tex     File: pgflibraryarrows.code.tex 2008/10/27 v2.10 (rcs-revision 1.9)     \arrowsize=\dimen166     ))     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\frontendlayer\tikz\     libraries\tikzlibrarycalc.code.tex     File: tikzlibrarycalc.code.tex 2009/09/04 v2.10 (rcs-revision 1.6)     )     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\latex\tikz-cd\tikz-cd.sty     Package: tikz-cd 2014/03/08 v0.9b Commutative diagrams with tikz               LaTeX Warning: You have requested, on input line 17, version                    `2013/12/13' of package tikz,                    but only version                    `2010/10/13 v2.10 (rcs-revision 1.76)'                    is available.               (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\tikz-cd\tikzlibrarycd.c     ode.tex     (C:\Users\Steven\AppData\Roaming\MiKTeX\2.9\tex\generic\pgf\frontendlayer\tikz\     libraries\tikzlibrarymatrix.code.tex     File: tikzlibrarymatrix.code.tex 2008/06/18 v2.10 (rcs-revision 1.2)     )     ! I can't find file `tikzlibraryquotes.code.tex'.     <argument> ...nput tikzlibrary\pgf@temp .code.tex                                                        \catcode `\@ =\csname tikz...     l.18 \usetikzlibrary{matrix,quotes,arrows.meta}          Please type another input file name:      ! Emergency stop.     <argument> ...nput tikzlibrary\pgf@temp .code.tex                                                        \catcode `\@ =\csname tikz...     l.18 \usetikzlibrary{matrix,quotes,arrows.meta}          End of file on the terminal!               Here is how much of TeX's memory you used:      10881 strings out of 493921      212359 string characters out of 3144873      246954 words of memory out of 3000000      13830 multiletter control sequences out of 15000+200000      3640 words of font info for 14 fonts, out of 3000000 for 9000      1002 hyphenation exceptions out of 8191      56i,0n,57p,452b,63s stack positions out of 5000i,500n,10000p,200000b,50000s     !  ==> Fatal error occurred, no output PDF file produced!


title: Listing with background color not line breaking correctly

text: I'm working on a project where I want to display an amino acid sequence. I want to let tex decide where to put the line breaks, but it doesn't seem to work in conjunction with highlighting certain parts of the sequence using colorbox. This is how it currently looks like ![](http://i.stack.imgur.com/8Ks4u.png) The following source code produces the above image.               \begin{lstlisting}[escapechar=!]     >unknown protein sequence     !\colorbox{red}{MELFMKNSSLWGLKFYLFCLFIILSNINRAFASHNIFLDLQSS}!SAISVKNVHRTRFHFQPPKHWINDPNAP!\colorbox{red}{MYYNG}!!\colorbox{red}{VY}!HLFYQYNPKGSVWGNIIWAHSVSKDLINWIHLEPAIY!\colorbox{red}{PSKKFDKYGTWSGSSTILPNNKPVIIYTGVVDSYNNQVQNYAIPANLSDPFLRKWIKPNNNPL}!IVPDNSINRTEFRDPTTA!\colorbox{red}{WMGQDGLWRILIASMRKHRGMALLYRSRDFMKWIKAQ}!!\colorbox{red}{HPLHSSTN}!!\colorbox{red}{TGNWECPDFFPVLFNSTNGLDVSYR}!GKNVKYVLKNSLDVARFD!\colorbox{red}{YYTIGMYHTKIDRYIPNNNSIDGWKGL}!RIDYGNFYASKTFYDPSRNRRVIWGWSNESDVLPDDEIKKGWAGIQGIPRQVWLNLSGKQLLQWPIEELE!\colorbox{red}{TLRKQKVQLNNKKLSKGEM}!FEVKGISASQADVEVLFSFSSLNEAEQFDPRWADLYAQDVCAIKG!\colorbox{red}{STIQGGLGPFGLVTLASKNLEEYTPVFFRVFKAQKSYKILM}!!\colorbox{red}{CSDARR}!SSMR!\colorbox{red}{QNEAMYKPSFAGYVDVDLEDMKKLSLRSLIDNSVVESFGAGGKTCITSRVYPTLAIYDNAHLFVFNNGSETITIETLNAWSMDACKMN}!     \end{lstlisting}      using following options               \lstset{breaklines=true,breakatwhitespace=false}      Manually adding the line break is out of the question. Any help is greatly appreciated


title: run detex, aspell, style and diction on TeXstudio

text: I am very new to TeXstudio.   So, I do some exercises with .tex files. Compile .tex files, Create .pdf files...   I heard that LaTeX have some commands (detex, aspell, styel, diction..)   Could anyone teach me how to use those commands (detex, aspell, styel, diction) on TeXstudio?   My TeXstudio version is 2.5.2


title: Treating < and > as synonyms for the curly braces { and }

text: I am exporting photo metadata from a software which seems to be unable to export curly braces correctly. Is there any way to tell LaTeX to treat `<` as `{`, and `>` as `}`, to keep me from having to go through the file manually? In the back of my head I have cat-codes in mind but never used them so far.


title: drawing a syntax tree in tikz

text: I would like to draw a syntax tree, which resembles the below syntax tree. I know that I can use tikz to draw syntax trees, but I can't seem to figure out how to draw a straight line down to a node, which is placed right below the parent node.               \begin{tikzpicture}     \node{S}      child {node {a}}      child {node {B}};     \end{tikzpicture}      ![The syntax tree I want to draw](http://i.stack.imgur.com/lmifw.png)


title: text on wide-enough rightarrow

text: Is there a way to resize the rightarrow so that it can adjust to the width of the text over it?               \documentclass[12pt, a4paper, english]{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage{amsmath}     \usepackage{babel}          \begin{document}     \begin{equation}       \overset{\text{l'Hopital's rule}}{\Longrightarrow}     \end{equation}     \end{document}      The code above only generates result like this, which is non-adjusted. ![enter image description here](http://i.stack.imgur.com/F09jV.png)


title: \Rightarrow with text above it

text: When using the command `\Rightarrow` is there any way to put text above it? I have tried `\overbrace` but is there a way to do it without this?


title: listings and keywords in the index

text: The `listings` package allows to index the appearance of keywords in a listing, for example similar to the following MWE:               \documentclass{article}     \usepackage[T1]{fontenc}          \usepackage{imakeidx}     \makeindex     \usepackage{listings}     \lstset{       language   = [LaTeX]TeX,       basicstyle = \ttfamily,       moretexcs  = [2]{LaTeX},       index      = [2][texcs2],       indexstyle = [2]\cmdidx     }     \newcommand*\cmdappearance[1]{\texttt{\textbackslash#1}}     \newcommand*\cmdidx[1]{\index{#1@\cmdappearance{#1}}}     \newcommand*\cmd[1]{\cmdappearance{#1}\cmdidx{#1}}          \begin{document}          \begin{lstlisting}      \LaTeX{} and \LaTeX-code     \end{lstlisting}          \printindex     \end{document}      The PDF of this example looks as expected but it is not, really, as a look in `\jobname.ilg` and `\jobname.idx` shows: `\jobname.ilg`:               This is makeindex, version 2.15 [TeX Live 2012] (kpathsea + Thai support).     Scanning input file test.idx....     !! Input index error (file = test.idx, line = 2):        -- Extra `@' at position 31 of first argument.     done (1 entries accepted, 1 rejected).     Sorting entries...done (0 comparisons).     Generating output file test.ind....done (5 lines written, 0 warnings).     Output written in test.ind.     Transcript written in test.ilg.      `\jobname.idx`:               \indexentry{LaTeX@\texttt  {\textbackslash LaTeX}}{1}     \indexentry{LaTeX\unhbox \voidb@x \kern \z@ @\texttt  {\textbackslash LaTeX\unhbox \voidb@x \kern \z@ }}{1}      * * * This is no problem for the MWE but the second entry would be lost if it were on a different page. The `\LaTeX-` part of the listing seems to have an expanded version of `\textcompwordmark` inserted after the keyword as opposed to the `\LaTeX{}` part which got the expected entry. The inserted command apparently is               \@namedef{\@lst @um@}{\leavevmode\kern\z@}      (line 990 of `listings.sty`) which a redefinition of this command into               \@namedef{\@lst @um@}{\textcompwordmark}      shows. The `\jobname.idx` file then is               \indexentry{LaTeX@\texttt  {\textbackslash LaTeX}}{1}     \indexentry{LaTeX\textcompwordmark @\texttt  {\textbackslash LaTeX\textcompwordmark }}{1}      which is correctly parsed by `makeindex` but gives two distinct entries for `\LaTeX` in the index. (IMHO a worse case than the first.) * * * Providing an empty definition               \@namedef{\@lst @um@}{}      gives the correct `\jobname.idx`               \indexentry{LaTeX@\texttt  {\textbackslash LaTeX}}{1}     \indexentry{LaTeX@\texttt  {\textbackslash LaTeX}}{1}      and no apparent issues seem to arise. I wonder, though, how safe it is. I traced the `\@lst @um@` to the command `\lst@CCECUse@` (line 1021 of `listings.sty`) which seems to have to do with `listings` `extendedchars` option (it is finally used in `\lst@DefEC`, line 998) but I'm lost there and don't really understand what the commands are for. My guess is that               \@namedef{\@lst @um@}{\leavevmode\kern\z@}      is some kind of precaution/safety net (but against what?) and since I'm getting apparently no issues in my real use case with currently about 150 listings the question is more out of curiosity: can something (and what) go wrong if I define               \@namedef{\@lst @um@}{}


title: How do you add multiple watermarks?

text: I want to put 2 watermarks on one document, but it only prints my last watermark. I don't want to add 2 lines to 1 watermark. I need 1 going horizontal at the top of my page and one going diagonally across the whole page. This is what I'm currently using:               \special{!userdict begin /bop-hook{gsave 180 20 translate 90 rotate /Times-Roman findfont 90 scalefont setfont 0 0 moveto 0.7 setgray (HEADER) show grestore}def end}          \special{!userdict begin /bop-hook{gsave 320 100 translate 75 rotate /Times-Roman findfont 180 scalefont setfont 0 0 moveto 0.7 setgray (BODY) show grestore}def end}


title: xfrac.sty not found

text: I am using Tex Live 2011 on Windows, and when I compile (vim-latex) my file:               \documentclass{article}     \usepackage{amsmath}          % makes for prettier typography     \usepackage{microtype}     % For slanted fractions e.g. 4/4     \usepackage{xfrac}          \begin{document}     %\input{title.tex}          \include{main}     \end{document      I get the following error:               template.tex|| File `xfrac.sty' not found.     template.tex|8 error| Emergency stop.     template.tex|| ==> Fatal error occurred, no output PDF file produced      Any ideas?


title: Consolas: Straight Quotes

text: I am using the `listings`-Package to display code. As I am using The Consolas Font as the Monotype-Default I expected straight quotes which isn't the case (check my MWE)                \documentclass[a4paper]{article}      \usepackage{listings}      \usepackage{polyglossia}      \setdefaultlanguage[]{english}           \setmonofont[Ligatures=TeX]{Consolas}            \lstset{frame=single}            \begin{document}       \begin{lstlisting}       "some code to try"       \end{lstlisting}            \end{document}      Can Anyone help How to get straight quotes? ![enter image description here](http://i.stack.imgur.com/qgPUb.png)


title: pdflatex sporadic broken pipe errors when generating PDFs from .tex file

text: I've written software which generates rather long PDFs from generated .tex files with pdflatex. On occasion, I'll get broken pipe errors which cause the pdf generation to fail. I have trouble recreating the errors, and the pdf generation will often work if I try it a second time. I'm already calling pdflatex with `-interaction=nonstopmode`. I'm looking for a way to: prevent the broken pipe errors from occurring OR ignore the broken pipe error and continue Here is the error that I am getting:               [323] [324 </srv/www/mydomain.com/public_html/crawler/RRnKPFCjyZMKk1nUg/Images/Q     BFkqp_thumbnail1063.png     !pdfTeX error: pdflatex (file /srv/www/mydomain.com/public_html/crawler/RRnKPFCj     yZMKk1nUg/Images/QBFkqp_thumbnail1063.png): fflush() failed (Broken pipe)      ==> Fatal error occurred, no output PDF file produced!


title: Macro to draw a parabola with pgf/TikZ

text: I have been trying to build a macro `\parabola{...}` to draw a parabola passing through 3 coordinates with TikZ but without success. For example               \parabola{A}{B}{C}      would draw the parabola interpolating the (x,y) coordinates (`A`), (`B`) and (`C`). I would like also to specify the style of the curve, the plot domain, etc. The main problem I found is that I cannot figure out how to obtain the value of a given coordinate in dimensionless form (given a certain unit).


title: Debugging bibtex

text: I am using a home-made thesis template available here. The example is using `plain` bibliography style, I need `apa` though. After writing a few pages of introduction and changing the style, I get the following errors (one per cit               ! Undefined control sequence.     <argument> \protect \astroncite                                      {Akelof}{2003}     l.3 ...m[\protect\astroncite{Akelof}{2003}]{ake03}          ! Undefined control sequence.     <argument> \protect \astroncite                                      {Akerlof and Shiller}{2009}     l.9 ...ncite{Akerlof and Shiller}{2009}]{akeshi09}          ! Undefined control sequence.     <argument> \protect \astroncite                                      {Baker and Wurgler}{2006}     l.14 ...ncite{Baker and Wurgler}{2006}]{Baker2006}      etc. How can I figure out what is wrong? Apa style works in all other documents, so I guess there must be something wrong with this style file...


title: Adding a "box" to latex document with different style than the rest

text: I have my CV written using Latex, using `moderncv` document class. I really like the output, but at the bottom of the CV I need to put a disclaimer (required in Poland), which doesn't really fit into any of the predefined CV items. It should just be paragraph, using the same font as the rest of the CV, but otherwise normal Latex style. How can I do it? If I just paste the text at the bottom, it is aligned to the right, whereas I need it aligned to the left and ideally justified.


title: How to define a custom glossary style

text: How can one define his/her own glossary style. I am looking for a set of commands (for instance):               \printitem{name}{description}{...}     \printoffsetcharacter{character}      That one can redefine and thus typeset the glossary him/herself. * * * **MWE** : Say I have a glossary:               \documentclass{article}     \usepackage{glossaries}     \newglossaryentry{computer}{         name=computer,         description={is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format}     }     \begin{document}     \glsaddall     \printglossaries     \end{document}      Will print something like: > **Computer** is a programmable machine that receives input, stores and > manipulates data, and provides output in a useful format, 1. Say I want to modify this such that the name is in italic, there should be a command like:               \renewcommand{\printitem}[2]{\emph{#1}: #2}      When some kind of `group`-style is used, another command should be redefined that prints the first character:               \renewcommand{\printoffsetcharacter}[1]{\textbf{#1}}      resulting in: > **C** > > _Computer_ : is a programmable machine that receives input, stores and > manipulates data, and provides output in a useful format


title: Using pdflatex.exe to Convert TeX to PDF within a C#

text: I have my TeX file (only `firstExample.tex` inside my folder) document and I want to convert it to PDF and display it within the application.               \documentclass[11pt]{article}     \begin{document}     this is only a test     $$(x+1)$$     \end{document}      i do this:                string filename = @"C:\inetpub\wwwroot\MyApp\Application\Temp\firstExample.tex";                     Process p1 = new Process();                     p1.StartInfo.FileName = @"C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe";                     p1.StartInfo.Arguments = filename;                     p1.StartInfo.WindowStyle = ProcessWindowStyle.Normal;                     p1.StartInfo.RedirectStandardOutput = true;                     p1.StartInfo.UseShellExecute = false;                          p1.Start();                     var output = p1.StandardOutput.ReadToEnd();                     p1.WaitForExit();      but output returns :               "This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9 64-bit)     entering extended mode !     I can't write on file `firstExample.log'     Please type another transcript file name: "      instead of the expected PDF


title: Remove spaces from source code

text: I have this code (javascript from language option supported in listings)               \lstset{language=javascript}          \begin{lstlisting}       $('#term').terminal(function(command, terminal) {         var cmd = $.terminal.parseCommand(command);         if (cmd.name == 'echo') {           terminal.echo(cmd.rest);         } else {           terminal.error('Invalid Command');         }       });     \end{lstlisting}      and the result is this (using pdflatex):               $ ( ’#term’ ) . terminal ( function ( command , terminal ) {         var cmd = $ . terminal . parseCommand ( command ) ;         if ( cmd . name == ’echo’ ) {             terminal . echo ( cmd . rest ) ;         } else {             terminal . error ( ’Invalid Command’ ) ;         }     });      My configuration:               \lstset{       language=JavaScript,       showspaces=false,       extendedchars=false,       showstringspaces=false,       showtabs=false,       keepspaces=false,     }      How can I make it show exactly as in tex file? Without spaces (and also if possible `'` isntead of `’`)


title: Why does TikZ ignore my instructions for setting the bounding box?

text: The bounding box for the following image is wrong (even though I've tried to set it)               \documentclass{article}     \usepackage[margin=0.25in]{geometry}     \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{tkz-euclide}     \pagestyle{empty}     \begin{document}          \begin{tikzpicture}[every node/.style={circle,inner sep=2pt,fill}]       \coordinate (A) at (0,0);       \coordinate (B) at (2.5in,0);              \coordinate (mAB) at ($(A)!0.5!(B)$);       \coordinate (uAB) at (mAB) ++ (0,1);            \tkzInterCC[R](A,2.75in)(B,2.75in)        \tkzGetPoints{C}{D}            \draw (A) -- (B) -- (C) -- cycle;            \node at (A) {};       \node at (B) {};       \node at (C) {};            \node[fill=none] at ($(A)+(-90:2ex)$) {$N$};       \node[fill=none] at ($(B)+(-90:2ex)$) {$M$};       \node[fill=none] at ($(C)+(+90:2ex)$) {$Q$};            \coordinate (D) at ($(A)!2.15!(C)$);       \draw (A) -- (D);            \coordinate (offset) at (0.25,0.25);       \path [use as bounding box] ($(A)-(offset)$) rectangle ($(D)+(offset)$);       \draw (current bounding box.north east) rectangle (current bounding  box.south west);          \end{tikzpicture}          \end{document}


title: TikZ: transparency causes problems with the color black (opacity, transparency, color model, Adobe Reader)

text: I want to have a fill color with transparency but I also want the text to be perfectly opaque. But somehow it does not work.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{shapes,}          \begin{document}          \begin{tikzpicture}[myStack/.style={       rectangle split,        rectangle split parts=3,        draw,        fill=yellow,       fill opacity = 0.6,       text=black,       text opacity = 1,       }]          \node [myStack]{                     abc     \nodepart{two}  bde     \nodepart{three}cfg     };     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/po9Ke.png) When I zoom in (Adobe Reader) then I also see that even the black border is not really black and rather dark gray. Can somebody reproduce the problem? **Update** After I updated MiKTeX the problem was kind of solved. However black still is rather dark gray. After opening the PDF with Adobe Professional I figured out that when I change the color profile then black is black again. See the screenshots (in German): Problem: Black is gray ![enter image description here](http://i.stack.imgur.com/gBFKE.png) ![enter image description here](http://i.stack.imgur.com/ek1FE.png) ![enter image description here](http://i.stack.imgur.com/1e25P.png) ![enter image description here](http://i.stack.imgur.com/OIiK9.png) Problem solved: ![enter image description here](http://i.stack.imgur.com/bHZR4.png) Can anyone reproduce that black is not black? PS: I think it's related to this question. **Problem Solved** Apparently this and this questions address the same problem. Adding               \pdfpageattr{/Group <</S /Transparency /I true /CS /DeviceRGB>>}      before `\begin{document}` solved the problem. According to Martin Heller "this makes Adobe Reader use the RGB rendering model for pages with transparency". Still I don't get it fully...


title: Jump between PDF and source file using a document split into master and child

text: I am searching for an editor which is capable to jump between lines in PDF view and source view, even if the document is split into multiple files. In my case I have a master, witch defines the general format and than a batch of files including the chapter with `\include`. I actually tried Texmaker: I was glad with it but does not offer the wanted feature. I tried with Gedit and its latex plugins, but Gedit keeps to crash if I even dare to open a child file. So, is there actually a (open source) solution (for Linux/Ubuntu)?


title: How can I have section 100 and section 100a

text: So I'm typesetting a document, and I go through entries 0 to 99 without trouble, then discover this person has sections 100a and 100. Well, I can get two section 100s easily enough by adding `\setcounter{section}{99}` after the first section 100, but how do I add section 100a without screwing up the other 150 section in the document? So to be clear, the structure is:               0     1     2     ...     98     99     100a     100     101     ...     151      Edit with additional details: I'm using the article class, as I've never figured out what the others are for, and am indeed using `hyperref`.


title: Using execute at begin node with \phantom and \pgfuseimage in TikZ?

text: ## Problem I would like to create several nodes whose text is a placeholder for an image, i.e., `\phantom{\pgfuseimage{mypicture}}`. This is easily done as, for example:               \matrix {       \node {\phantom{\pgfuseimage{firstpicture}}}; & \node {\phantom{\pgfuseimage{secondpicture}}}; \\       \node {\phantom{\pgfuseimage{thirdpicture}}}; & \node {\phantom{\pgfuseimage{fourthpicture}}}; \\       % etc.     };      The problem is that this is quite verbose. I would like to avoid having to type `\phantom{\pgfuseimage{...}}` in each node. Besides saving keystrokes, it would make the code much cleaner and easier to read. ## Attempted solutions ### Defining a macro to abbreviate Of course, I could define a command `\pgfimageplaceholder` to be `\phantom{\pgfuseimage{...}}`. But I would still need to write `\pgfimageplaceholder` in each node, so the macro doesn't help save many keystrokes or improve readability much at all. ### Using the execute at begin/end node keys After seeing how `matrix of nodes` is defined (page 207 of the PGF/TikZ 2.10 manual), I thought that I might be able to use the `execute at begin node` and `execute at end node` options in TikZ to factor out `\phantom{\pgfuseimage{...}}`. Following the definition of `matrix of nodes`, I tried:               \matrix [every node/.append style={execute at begin node=\phantom\bgroup\pgfuseimage\bgroup,                                        execute at end node=\egroup\egroup}]     {       \node {firstpicture}; & \node {secondpicture}; \\       \node {thirdpicture}; & \node {fourthpicture}; \\       % etc.     };      Unfortunately, this gives the error `Missing } inserted.` I've never done any plain TeX coding, so I'm not familiar with `\bgroup` and `\egroup`. Am I using them correctly? If so, why does this error occur? (Interestingly, I do not get an error if I replace `\phantom\bgroup\pgfuseimage\bgroup` with `\textit\bgroup` and `\egroup\egroup` with `\egroup`.) ### Using a PGF key In response to an earlier version of this question, @AndrewStacey suggested using a key to pass the picture name to the node, rather than relying on the node text. I've never created PGF keys before, but, if I understand them correctly, then the code would be something like the following. (Please correct me if I am misinterpreting your suggestion, @AndrewStacey.)               \pgfkeyssetvalue{/picture name}{}     \matrix [every node/.append style={execute at begin node=\phantom{\pgfuseimage{\pgfkeysvalueof{/picture name}}}}]     {       \node[/picture name=firstpicture] {}; & \node[/picture name=secondpicture] {}; \\       \node[/picture name=thirdpicture] {}; & \node[/picture name=fourthpicture] {}; \\       % etc.     };      Is this the correct way to create and use a key? If so, this approach is more readable, but doesn't save very many keystrokes. ### Using a \foreach construction I thought about using `\foreach`, but I do not see how to combine it with the `\matrix` structure that I want. ## A minimal working example For completeness, here is a MWE.               \documentclass{minimal}     \usepackage{tikz}     \usetikzlibrary{positioning}          \begin{document}          \pgfdeclareimage{firstpicture}{pic1.pdf}     \pgfdeclareimage{secondpicture}{pic2.pdf}     \pgfdeclareimage{thirdpicture}{pic3.pdf}     \pgfdeclareimage{fourthpicture}{pic4.pdf}     % etc.          \newcommand{\pgfimageplaceholder}[1]{\phantom{\pgfuseimage{#1}}}          \begin{tikzpicture}[every node/.style={draw=black},                         every matrix/.style={draw=red}]            % Here is a working example of what I need to do,        % but it is rather verbose.  I would rather not       % have to type \phantom{\pgfuseimage{ each time.       \matrix (part1)       {         \node {\phantom{\pgfuseimage{firstpicture}}}; & \node {\phantom{\pgfuseimage{secondpicture}}}; \\         \node {\phantom{\pgfuseimage{thirdpicture}}}; & \node {\phantom{\pgfuseimage{fourthpicture}}}; \\         % etc.       };            % I could replace \phantom{\pgfuseimage{ with a        % macro, but that doesn't save many keystrokes       % or improve readability much.       \matrix (part2)               [right=of part1]       {         \node {\pgfimageplaceholder{firstpicture}}; & \node {\pgfimageplaceholder{secondpicture}}; \\         \node {\pgfimageplaceholder{thirdpicture}}; & \node {\pgfimageplaceholder{fourthpicture}}; \\         % etc.       };            % I was hoping to be able to somehow use the hooks        % execute at begin/end node to factor out the       % repeated \phantom{\pgfuseimage{.       \matrix (part3)               [right=of part2       % When the following two lines are uncommented,       % the error is ``Missing } inserted.''                % , every node/.append style={execute at begin node=\phantom\bgroup\pgfuseimage\bgroup,                %                             execute at end node=\egroup\egroup}               ]       {         \node {firstpicture}; & \node {secondpicture}; \\         \node {thirdpicture}; & \node {fourthpicture}; \\         % etc.       };            % Andrew Stacey suggested using a key to specify       % the picture, rather than putting it in the node       % text.  Here is my attempt at doing that.       \pgfkeyssetvalue{/picture name}{}       \matrix (part4)               [right=of part3,                every node/.append style={%                  execute at begin node=\phantom{\pgfuseimage{\pgfkeysvalueof{/picture name}}}}]       {         \node[/picture name=firstpicture] {}; & \node[/picture name=secondpicture] {}; \\         \node[/picture name=thirdpicture] {}; & \node[/picture name=fourthpicture] {}; \\         % etc.       };     \end{tikzpicture}          \end{document}


title: How to write kanji characters in my document

text: I'm trying to type some japanese characters in my document. In particular, I'll have to write some movie's name this way: > Godzilla (ゴジラ, _Gojira_ , Ishirō Honda, 1954) I sadly found out that I just can't write Kanji characters in latex. It appears I have to use the package CJK, but something isn't working and I can't understand how to make it work. The CJK package seems to be installed in my computer, since if I just type something like this:               \documentclass{article}          \usepackage{CJK}     \usepackage{lipsum}          \begin{document}          \lipsum          \end{document}      It works. If the CJK wasn't there it would give me an error like               File `CJK.sty' not found. \usepackage      The problem is that if I try to paste the example code I find in the CJK documentation, which is the following:               \documentclass{article}          \usepackage{CJK}     \usepackage{pinyin}          \begin{document}     \begin{CJK}{Bg5}{fs}          我很喜歡吃中國飯。     \Wo3 \hen3 \xi3\huan1 \chi1\Zhong1\guo2\fan4.     I like to eat Chinese foodvery much.          \end{CJK}     \end{document}      I get the following errors:               Argument of \CJK@XX has an extra } æå     Paragraph ended before \CJK@XX was complete æå     Argument of \CJK@XX has an extra } æå¾åæ     Paragraph ended before \CJK@XX was complete æå¾åæ     Argument of \CJK@XX has an extra } æå¾åæ¡åä     Paragraph ended before \CJK@XX was complete æå¾åæ¡åä     Argument of \CJK@XX has an extra } æå¾åæ¡åä¸åé     Paragraph ended before \CJK@XX was complete æå¾åæ¡åä¸åé     Argument of \Wo has an extra } \Wo     Paragraph ended before \Wo was complete \Wo      I looked for other discussions and couldn't understand how to just make this work. Also, I'm not interested in that pinyin package that the example suggests; I just need the CJK package so I can type Kanji characters. It may be something related to the encoding, BG5, or the font, but the CJK documentation just says that there are different encodings and fonts, without indicating the codes to use them. This means that I can't try to play with them to see if it's just a matter of encoding and fonts. I don't have a clue about how to proceed forth, so I'll copy you the message log, which by the way goes wild when I try to compile the document: > Process started: pdflatex.exe -synctex=1 -interaction=nonstopmode "test".tex > > Running miktex-makemf.exe... > > miktex-makemf: The ntufsm source file could not be found. Running > hbf2gf.exe... > > hbf2gf (CJK ver. 4.8.0) Couldn't find `ntufsm.cfg' miktex-maketfm: No > creation rule for font ntufsm43. > > Running miktex-makemf.exe... > > miktex-makemf: The ntufsm source file could not be found. Running > hbf2gf.exe... > > hbf2gf (CJK ver. 4.8.0) Couldn't find `ntufsm.cfg' miktex-maketfm: No > creation rule for font ntufsm19. > > Running miktex-makemf.exe... > > miktex-makemf: The ntufsm source file could not be found. Running > hbf2gf.exe... > > hbf2gf (CJK ver. 4.8.0) Couldn't find `ntufsm.cfg' miktex-maketfm: No > creation rule for font ntufsm08. > > Running miktex-makemf.exe... > > miktex-makemf: The ntufsm source file could not be found. Running > hbf2gf.exe... > > hbf2gf (CJK ver. 4.8.0) Couldn't find `ntufsm.cfg' miktex-maketfm: No > creation rule for font ntufsm15. > > Running miktex-makemf.exe... > > miktex-makemf: The ntufsm source file could not be found. Running > hbf2gf.exe... > > hbf2gf (CJK ver. 4.8.0) Couldn't find `ntufsm.cfg' miktex-maketfm: No > creation rule for font ntufsm02. > > Running miktex-makemf.exe... > > miktex-makemf: The ntufsm source file could not be found. Running > hbf2gf.exe... > > hbf2gf (CJK ver. 4.8.0) Couldn't find `ntufsm.cfg' miktex-maketfm: No > creation rule for font ntufsm41. > > Process exited with error(s) I also uploaded the log file on 2shared; maybe you can deduce something from it: http://www.2shared.com/file/hdD5oY4I/test.html Thank you in advance to anyone who'll help me. EDIT: This questions doesn't have anything to do with this other question. While in that case the problem was not having the kanji characters shown properly, in my case I am receiving a big amount of problems related to the CJK packages. As cfr said, I also found out that the problem may be some missing font. I downloaded the CJK-font package, which is a "fake" package, since it just contains six fonts which I'd have to install manually, via a very complex procedure that the latex manual I've got via the installation doesn't cover properly. I also found out that MiKTeX should include a ipaex package, as shown here. That package should provide the fonts I need, but if I type a \usepackage{ipaex} it doesn't work (it says it can't find ipaex.sty), nor I can find documentation about what are the actual names or short-names of those fonts, which would allow me to use them by temporarily changing the font family in the document. The same goes for CJK-fonts: it says it can't find cjk-fonts.sty, even though, according to MiKTeX, it's present in the MiKTeX installation since 2004. So I'm still trying to type those characters, and I have "just" a couple of days to discover how to do so.


title: Reference an Organization on Bibtex

text: I have a quick question on how to reference organizations that contain more than one word. For example, I am using this syntax,               @misc{Directive2010,     address = {Brussels},     author = {European Parliament and Council of the European Union},     keywords = {Manual,fix},     mendeley-tags = {Manual,fix},     number = {4},     pages = {1--12},     publisher = {European Parliament},     title = {{Directive 2010/30/EU}},     year = {2010}     }      The output I get in the text is: (Parliament and of the European Union, 2010) and I want it to show as: (European Parliament and Council of the European Union, 2010) Thank you for your help!!


title: Alternative to glossaries?

text: _UPDATE:_ I have been using glassaries for some time now, and kind of got used to it. It's not as bad as I at first thought. Is there a nicer alternative to `glossaries` package? It's a pita to use. Documentation is lacking examples, some commands don't do anything (like `\glssee`), it is hard to customize (why can't I make my glossary a simple section?), it is stateful - I have to call `makeglossaries` in a certain place, and also the syntax for defining new entries is ugly:                \newglossaryentry{blah}{name=blah, description={blabh lbah blah}}         It's like xml. No offense to the creators, but I am just curious if anyone else feels this way and if there are alternatives?


title: Installing/Using a new class in Ubuntu 12.04 LTS

text: This question will probably have great intersection with other questions, but I would be grateful for any help or references to relevant answers. I am quite a novice at Ubuntu, I use 12.04.1 LTS. I want to install/use a class available online (called "asl.cls", available here: http://www.math.ucla.edu/~asl/). I made a new folder named "asl" (at the path: /usr/share/texmf- texlive/tex/latex/asl) and then copied the class asl.cls inside that folder (was this right?). I then ran (sudo) texhash to update, but it did not work. As an alternative solution, I also tried to keep the class asl.cls inside the same folder with the working .tex file which I am currently trying to write. Still not working. In fact, upon compilation of the working .tex file (with documentclass "asl"), Kile opens a new tab with a file called "amsopn.sty", the cursor stops at some point in the middle of that file, and the compilation window is full of errors. Apparently, looking at the list of errors, there seem to be conflicts between operators or other commands already defined in the file "amsopn.sty" (and also in the file "amsmath.sty", indeed, much more conflicts with "amsmath", which nevertheless does not open in another tab). I have never seen such a thing happen before, and I have been using tex for some time now. Let me mention that my working .tex file is error free otherwise. I.e., if I just replace "asl" by regular "amsart" in the documentclass, everything compiles smoothly. Any ideas, suggestions?


title: Space before proof

text: I am trying to make LaTeX put no additional space between theorem and proof. Here is my code:               \newtheorem*{pr3}{Theorem}     \begin{pr3}        foo                                                  \end{pr3}     \begin{proof}[Proof:]        bar     \end{proof}      Is there a way to do that only with `amsthm`/`amsmath` and how? I wanted to renewenvironment proof, however I couldn't find what is the best way to do that. So it would be great if someone can tell me where I can find such information (that could also be considered answer to the first question).


title: Memoir hangnum chapter number in right margin switch?

text: With regards to the built in styles in memoir, is there a simple command or option to reverse the hangnum chapter style to be right aligned and put the chapter number in the right margin? I have come across a few examples of custom styles that achieve this but I am hoping for a simple solution.