title: TikZ UML diagram special character problem

text: I'm trying to create an UML diagram using TikZ and pgf-umlcd, unfortunately I seem to have some kind of special character problem and was not able to figure out how to escape them right, an example would be:               \begin{tikzpicture}         \begin{package}{Test}             \begin{interface}[text width=7cm]{TestInterface}{0,0}                 \operation{testOperation(a : Map<String, Integer>>) : Boolean}             \end{interface}         \end{package}     \end{tikzpicture}      Unfortunately the greater than and less than characters are not printed in a PDF file like they should be instead some "character mess" is printed. What's wrong?


title: Preventing line break at the start of a long name in `\lstinline`

text: This question has developed from How to deal with very long lstinline-phrases like long class names?. That question is about line breaking inside a `\lstinline` phrase. I have provided an answer which automatically hyphenates on capital letters, and then, in a comment, I realized it could sometimes be useful to have automatic hyphenation on underscores `_` as well. I managed to implement this, but one glitch remains: I would like to prevent automatic `_`-hyphenation at the start of the name (in Python, for example, this is common situation, as by convention, internal names start with an underscore (or two)).               \documentclass{article}     \usepackage[paperwidth=10cm,paperheight=5cm]{geometry}     \pagestyle{empty}     \usepackage{lstdoc}     \lstMakeShortInline[literate={\_}{\_}{1\discretionary{\_}{}{}}]|          \begin{document}     \textbf{Good line break:} in this paragraph the line break in the     python's variable |a_python_style_name| is good!          \textbf{Bad line break:} the internal variable |_internal_python_name|     is not hyphenated very nicely in this paragraph.     \end{document}      ![A good and a bad line-break in <code>\\listinline</code>](http://i.stack.imgur.com/8Zm0t.png)


title: Gnuplot subdirectory not found using epstopdf

text: I'm moving from the gnuplot latex terminal, to the epslatex terminal. I use pdflatex. With the epslatex terminal, I receive two output files, a .tex and a .eps. I can use epstopdf to convert the eps file to pdf, and I can include the graph in my latex file using:               \input{mygraph}      However, I have each graph in a separate directory. If I use:               \input{graphdir1/mygraph}      with the latex terminal, everything is fine. However, if I use the epslatex terminal and convert the eps file to a pdf, I get an error message:               [8] (./graphdir1/mygraph.tex          ./graphdir1/mygraph.tex:101: LaTeX Error: File `mygraph' not found.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...          l.101     \put(0,0){\includegraphics{mygraph}}      I have graphdir1 in the same directory as the main latex file. Do I _now_ need to specify to latex that it should search in the subdirectory? Why did I not require to do so previously?


title: Pgfplots : can't plot some usual mathematical functions

text: I'm beginning to learn pgfplots and I would like to plot some functions: cubic root, inverse, and some trigonometric functions. The problem is that for y=1/x function, it joins up the points between negative and positive parts of the domain: we can't see the asymptote.               \documentclass{minimal}     \usepackage{pgfplots}     \begin{document}     \begin{tikzpicture}     \begin{axis}[]     \addplot [domain=-10:10, samples=100]{x^(-1)};     \end{axis}     \end{tikzpicture}     \end{document}      With the function y=x^{1/3}, it doesn't display the negative part of the domain. And with the trigonometric functions, it just doesn't do anything right...               \addplot[domain=-27:27]{x^(1/3)};     \addplot[domain=-2*pi:2*pi]{cos(rad(x))};      thank you very much if you can help me a little bit. * * * thank you very much for your answers, it's really helping. Just a last thing: the cubic root function has a negative part in its domain that cannot be displayed. Do you know why?               \begin{tikzpicture}      \begin{axis}[         width=8cm,xlabel={$x$},         ylabel={$y$},grid=both, axis x line=middle, axis y line=middle,          title={$f(x)=x^{1/3}$}]      \addplot[blue,domain=-27:27, no markers,samples=100] {x^(1/3)};      \end{axis}      \end{tikzpicture}      NB: Yes, the cubic root function has a partially negative domain, and no, there is no imaginary part. NB: i'm sorry i'm insisting on one of my first questions in this comment which is supposed to be an "answer", i'm just new here and, as i'm not registered yet, i don't know how i can ask something related with the topic in a new "question comment"


title: Align Greek polytonic ("smart line start")

text: I am text-typing a set of poems in Greek polytonic and my problem is that the upper case letters alignment is being set according to the accents rather than the letters themselves. Here is an example where E is not properly aligned in the middle line:               \documentclass[12pt]{book}          %\font\1="Times New Roman"     %\usepackage{fontspec}     %\setmainfont{Times New Roman}          \usepackage{polyglossia}          \setdefaultlanguage{greek}     \setotherlanguage{english}     \newfontfamily\greekfont[Script=Greek,Ligatures=TeX]{Times New Roman}          %\usepackage[english,polutonikogreek]{babel}     %\usepackage[utf8x]{inputenx}          %\usepackage{fontspec}     %\setmainfont[Ligatures=TeX]{Linux Libertine O}          \usepackage{verse}     \usepackage{marginnote}          \newcommand{\en}[1]{\foreignlanguage{english}{#1}}          \usepackage{refcount}          \begin{document}          A\\     Eτοὺς τὸ πρὶν πεφυκότας\\     ἙΘεοῦ ζῶντος εἰργάσω\\     Εἀληθεῖς προσκυνητὰς\\          \end{document}      ![enter image description here](http://i.stack.imgur.com/HRMmH.jpg) In a philological text editor I have used, there was an option called "smart line start" which enabled you to align by the letters and not the accents. After some search, I haven't found something similar for latex. Is anyone of you aware of a command / package which can deal with this? Some ideas on which terminology to use to search for this would also be helpful. Up to now the best solution I've come up with is to define commands with \hspace{} for some of the combinations of letters and accents. This is a bit cumbersome, plus I am not aware of a way to program latex to do this automatically when meeting a capital letter in the beginning of a verse. Some guidance on this direction could also solve my problem. Thanks in advance, Marios PS: The new command I defined for E with the above is simply:               \newcommand{\pneumae}{\hspace{-0.57mm}}      which pushes the character to the left.


title: Algorithm floating like figure with border

text: This is my document (LuaLaTeX):               \documentclass[a4paper,twoside,12pt]{scrreprt}     \usepackage{fontspec}     \usepackage{a4wide}     \usepackage[english]{babel}      \usepackage{caption}     \usepackage{blindtext}     \usepackage{algorithm}     \usepackage{algpseudocode}          \begin{document}     \Blindtext     \begin{minipage}{\textwidth}        \begin{algorithmic}[1]         \Require{lala}         \Statex         \Function{yolo}{x}         \State $x \leftarrow 0$         \EndFunction       \end{algorithmic}       \captionof{algorithm}{yolo bla bla bla}     \end{minipage}     \Blindtext     \end{document}      And that's how it looks: ![enter image description here](http://i.stack.imgur.com/7Pv9K.png) I want it to stay that way but put a border (same width as the text) around the pseudo-code/algorithm (caption not included, of course!) and there should be more space around the whole thing like with figures. For any help: Thank you very much!!


title: Tikz' sloped text with refs has non sloped link boxes

text: I use the sloped option to place slanted nodes along arrows in tikz. Now if that text contains clickable references with the hyperref package, they are not sloped. The text and the link are not aligned. Is there any way to rotate them too? Is this a bug in tikz? These answers here don't help because I don't know the angle of rotation. It is computed by tikz. Here is the minimal non working example for me:               \section{abc}\label{s:a}     One section     \section{def}\label{s:b}     Another section          \begin{tikzpicture}       \node[rectangle, fill] (one) {} ;       \node[rectangle, fill, right=5cm of one,yshift=3cm] (two) {};       \path (one) edge[-,bend right=-31, near start] node[sloped,above] {\ref{s:a}~~~\ref{s:b}} (two);     \end{tikzpicture}      Result: The link for the two sits below the two, because the linkbox is not sloped.


title: Is there a way to transfer the state of tlmgr from texlive 2013 to 2014

text: Every year to get a not too big texlive directory and faster updates (less downloading), I manually remove a lot of packages. Is there a simple way to get the operation done on year (for example for texlive 2013) and apply it to another year (texlive 2014)? For example, I remove every packages containing asian extensions and it is somewhat boring to repeat it year after year.


title: eco package causing illegal hyphenation

text: I'm using the LaTeX `eco` package to default to text figures/`\oldstylenums` throughout my document. However, for some strange reason it seems to be causing TeX to think it's okay to hyphenate within words that are already hyphenated, including in places where a hyphen wouldn't be legal if that word were on its own, like this: ![](http://sorenbjornstad.com/filesharing/illegalhyphenation.png) Code for that example:               \documentclass[twocolumn]{memoir}     \usepackage{eco} % default to text figures, use \newstylenums if you don't want them          \begin{document}     Sometimes one might choose to take the beat-you-over-the-head-with-it approach instead of the delicate method.      \end{document}      If I comment out `\usepackage{eco}`, it correctly puts the line break after all of 'you'. Any ideas on why this is happening, or what I could do to stop it (short of getting rid of the package and manually specifying `\oldstylenums` everywhere I use a number in the document)? I'd obviously prefer an automatic solution, but even a manual one would be helpful. Using `\hyphenation` doesn't help because the word contains hyphens, so I can't specify that there are no breaks allowed in it by not putting any hyphens in it.


title: Making clickable links to sections with hyperref

text: I would like to make a word of text, that when clicked upon in the pdf file takes me to some section. I'm using the hyperref package. I rejected \nameref because it produces the section title and I want my own link text. I also rejected \hyperlink because it does not work (no link, does not seem to know the section label as a link target). What's a good way to do this?


title: Is it possible to separate the input and output of LTXexample such that I can put each in a table cell?

text: My objective is to create a long tabular list of PSTricks inputs and their corresponding outputs side by side. The table consists of 3 columns, i.e., **Number** column, **Input** column, & **Output** column. The **Number** column contains hyperlinks to the source code files. For example: if a reader is interested to draw a figure of torus, he just need search in the table and click the number to open its corresponding source code file. Shortly speaking, how to separate the input and output of LTXexample? My rough idea is as follows:   1. I just pass in the PSTricks routines to a macro in the **Input** column.   2. The macro then provides a saved box containing the output.    3. Then I call another macro (like \usebox) to retrieve the saved box and insert it to the **Output** column.   4. I do step 1-3 for each row. Hyperlink numbers can be easily made using \url (it is not a big problem).


title: How to avoid the empty lines before and after a verbatim environment in a tabular cell

text: I want to insert some raw text and used verbatim in the cell of a tabular. Here is the code:               \documentclass{article}          \begin{document}     \begin{tabular}{p{0.45\textwidth}|p{0.45\textwidth}}     \hline column 1:  &  column 2:   \\      \hline     \begin{verbatim}     verbatim 1      verbatim 2     \end{verbatim}&     \begin{verbatim}     verbatim 1      verbatim 2     \end{verbatim}\\     \hline     normal 1& normal 2\\     \hline     \end{tabular}     \end{document}      Here is the output: ![enter image description here](http://i.stack.imgur.com/SoW5O.png) There are a empty line before and after the verbatim text... How can I remove those empty lines?


title: Problem adding caption with siunitx

text: I am using latex/beamer(texlive) to compile a document and I am getting an error. Apparently it has something to do with `siunitx` package. Here is a minimum working example.               \documentclass[10pt]{beamer}     \usepackage{graphicx}     \usepackage{amsmath}     \usepackage{booktabs}      \usepackage{ragged2e}      \usefonttheme{serif}     \usepackage{adjustbox}     \usepackage{siunitx}     \usepackage{caption}     \captionsetup{font = sl}     \sisetup{detect-all}     \usepackage{etoolbox}          \beamertemplatenavigationsymbolsempty %supress navigation bars     %\usepackage{etoolbox}     \newcommand{\sym}[1]{\rlap{#1}}          \begin{document}          \begin{table}[htbp]\centering     \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}     \caption{OLS regressions for two measures of internet availability}     \begin{tabular}{l*{2}{S}}     \toprule                     &\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}\\                     &\multicolumn{1}{c}{Vote share low-budget   parties}&\multicolumn{1}{c}{Vote share low-budget parties}\\     \midrule     Internet density    &       0.013\sym{***}&           -         \\                     &     [0.003]         &                     \\     \% Internet         &           -         &       0.012\sym{***}\\                     &                     &     [0.001]         \\     \% Voters affiliated to the party&       0.011\sym{***}&       0.012\sym{***}\\                     &     [0.002]         &     [0.002]         \\     \midrule Geographic Controls &       {Yes}         &       {Yes}         \\     Act. Controls       &       {Yes}         &       {Yes}         \\     Demographic Controls&       {Yes}         &       {Yes}         \\     \midrule     Observations        &\multicolumn{1}{c}{5558}         &\multicolumn{1}{c}{5558}            \\     \(R^{2}\)           &\multicolumn{1}{c}{0.371}         &\multicolumn{1}{c}{0.384}         \\     \bottomrule     \multicolumn{3}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\),     \sym{***} \(p<0.001\)}\\     \end{tabular}     \end{table}          \end{document}      I get the following error. ![enter image description here](http://i.stack.imgur.com/8g2QC.jpg) I call it table2.tex and use \input{table2}. Many thanks for any help. EDIT @JosephWright is right, this example works. The problem appears when I add the adjust box.               \begin{frame}     \centering     \adjustbox{max height=\dimexpr\textheight-5.5cm\relax,            max width=\textwidth}{     \input{table2}     }          \end{frame}      EDIT 2 I managed to adjust the size of the table by just playing with the font size.               \begin{frame}          \centering     \scriptsize     \input{table2}          \end{frame}      Here is a nice blog post that teaches you how to produce nice tables in latex using siunitx. http://www.jwe.cc/2012/03/stata-latex-tables-estout


title: partially non capital section title

text: I try to do a partially small capital title because of a Name. How would I do that? A mwe is given below:               \documentclass{JAC2003}          \begin{document}         \section{BIGsmallBIG}     \end{document}      leads to: BIGSMALLBIG Classfile: http://sourceforge.net/p/jacow-spms/jacow- templates/ci/master/tree/LaTeX/A4/ -> the jac2003.cls file would be it I think.


title: how to wrap text in arrow with tikzset

text: I refer to web and found some good examples to add fancy arrow, I show my code               \documentclass[a4paper,11pt]{book}          \usepackage{color}     \usepackage{xcolor,colortbl}     \definecolor{ForestGreen}{rgb}{0.13, 0.55, 0.13}     \definecolor{OrangeRed}{rgb}{1.0, 0.27, 0.0}     \definecolor{FireBrick}{rgb}{0.7, 0.13, 0.13}     \definecolor{Gold}{rgb}{1.0, 0.84, 0.0}     \definecolor{DodgerBlue}{rgb}{0.12, 0.56, 1.0}     \definecolor{Tomato}{rgb}{1.0, 0.39, 0.28}          \usepackage{tikz}     \usetikzlibrary{calc,fadings,shapes.arrows,shadows,backgrounds, positioning}     \tikzset{bubble/.style={rectangle, draw=gray,rounded corners,fill=#1,align = flush center,minimum height=1cm,minimum width=1.75cm}}     \tikzfading [name=arrowfading, top color=transparent!0, bottom color=transparent!95]     \tikzset{arrowfill/.style={top color=OrangeRed!20, bottom color=red, general shadow={fill=black, shadow yshift=-0.8ex, path fading=arrowfading}}}     \tikzset{arrowstyle/.style={draw=FireBrick,arrowfill, single arrow,minimum height=#1, single arrow, single arrow head extend=.4cm,}}          \begin{document}     \begin{figure}[htbp]     \begin{tikzpicture}         % Bubbles         \node[bubble=ForestGreen!40] (ba) at (0,0) {Bubble A};         \node[bubble=Gold!40] (bb) at (2.6,0) {Bubble B};         \node[bubble=DodgerBlue!40] (bc) at (5.5,0) {Bubble C};         \node[bubble=Tomato!40] (bd) at (8.5,0) {Bubble\\with long\\name};              \node[above= 0.5 cm of bb,font={\bf}]{Part 1};         \node[above= 0.5 cm of bd,font={\bf}]{Part 2};              % Lines         \foreach \bubble in {ba,bb,bc,bd}         \draw[ultra thick, gray] ($(\bubble.south)-(0,0.1)$)--($(\bubble.south)-(0,5)$);              % Arrows         \node [arrowstyle=2.9cm,xshift=-0.1cm,yshift=-1cm] at ($(ba.south)!0.5!(bb.south)$) {test sting 1};         \node [arrowstyle=3cm,xshift=-0.1cm,yshift=-2cm] at ($(bb.south)!0.5!(bc.south)$) {test sting 2, test sting 2.1, test sting 2.2};         \node [arrowstyle=3.1cm,xshift=-0.1cm,yshift=-3cm] at ($(bc.south)!0.5!(bd.south)$) {test sting 3};         \node [arrowstyle=6cm,xshift=-0.1cm,yshift=-4.5cm] at ($(bb.south)!0.5!(bd.south)$) {test sting 4};         \node [arrowstyle=3.3cm,yshift=-1cm,shape border rotate=180] at ($(bc.south)!0.55!(bd.south)$) {test sting 5};              % Background         \begin{pgfonlayer}{background}         \fill[gray!10]($(bc.north)!0.5!(bd.north)+(0,0.5)$)rectangle($(bc.south)!0.5!(bd.south)+(4,-5.1)$) ;         \draw[dashed, shorten <=-1.5cm] ($(bc.south)!0.5!(bd.south)$)--($(bc.south)!0.5!(bd.south)-(0,5.1)$);         \end{pgfonlayer}     \end{tikzpicture}     \end{figure}     \end{document}      this will give good output, but my question is, how to wrap the string in arrow from bubble `bb` to `bc`? My output shows: ![enter image description here](http://i.stack.imgur.com/ZZ9JI.png)


title: Problem with Longtable \endfoot in wrong place

text: thank you all in advance for any help you can give me with this problem... I'm using `longtable` to split a couple of tables over several pages - these will be in the appendix of my thesis... my problem is that for both tables the 'continued on next page' `\endfirstfoot` is appearing at the end of the table as opposed to at the page break..... I hope someone can help me on this as I've been pulling my hair out on this for 2 days!! Sorry my example is quite long, but I thought I should leave all my preamble incase something in this is causing the problem and wanted the table to be long enough to see the problem (I've four similar tables and they are all behaving the same here's the code                   \documentclass[a4paper,11pt]{report} %add "twocolumn" if interested         \usepackage{afterpage,lscape}           \usepackage{graphicx}          \usepackage{appendix}               \usepackage{varioref}           \usepackage{longtable}            \usepackage{units}            \usepackage{float}          \restylefloat{table}          \usepackage{listings}          \lstset{              language=R,            basicstyle=\scriptsize\ttfamily,          commentstyle=\ttfamily\color{gray},          numbers=left,          numberstyle=\ttfamily\color{gray}\footnotesize,           stepnumber=1,          numbersep=5pt,          backgroundcolor=\color{white},             showspaces=false,         showstringspaces=false,          showtabs=false,          frame=single,           tabsize=2,            captionpos=b,            breaklines=true,            breakatwhitespace=false,            title=\lstname,             escapeinside={},             keywordstyle={},             morekeywords={}                  }             \usepackage{upgreek}             \usepackage{pdfpages}               \usepackage{gensymb}             \usepackage[version=3]{mhchem}            \usepackage[singlelinecheck=off]{caption}             \setlength{\abovecaptionskip}{0pt}             \usepackage{subcaption}               \usepackage[left=4cm, right=2.5cm, top=2cm, bottom=4cm, includefoot, headheight=13.6pt]{geometry}               \usepackage{tabularx} % for doing tables easily               \usepackage{array} % for centering tables...such a pain                \usepackage{enumerate}                \usepackage{subfig}                \usepackage{pdflscape}                \usepackage[sort]{natbib}                 \let\cite=\citep                 \usepackage[pdftitle={My   Title},pdfpagemode=UseOutlines,colorlinks=true,pdfauthor={STM},bookmarks=true,pdftex=true,linkcolor=black,citecolor=blue]{hyperref}                                                                                \usepackage{cmap,graphicx,epsfig,wrapfig,amsmath,amsfonts,longtable,verbatim}           \usepackage{amsmath,varwidth,array,ragged2e}           \newcolumntype{L}{>{\varwidth[c]{\linewidth}}l<{\endvarwidth}}             \newcolumntype{M}{>{$}l<{$}}            \def\ds{\mathrm{d}s}                  \parindent 0pt     %indentation set for start of paragraphs            \parskip 8pt       %between paragraph space              \usepackage{setspace}               \linespread{1.3} %\usepackage[hang, small,bf]{caption} % define the title                %to put a word in italics \textit{word}               \pagestyle{headings}             \usepackage{sectsty}              \chapterfont{\raggedright}              \chaptertitlefont{\mdseries\raggedright}             \sectionfont{\mdseries}                \subsectionfont{\mdseries}              \subsubsectionfont{\mdseries\itshape}                   \begin{document}                  \begin{titlepage}             \begin{center}             \vspace*{2.5in}             {\Huge amount of boring stuff}             \par             \vspace{0.5in}             {\large Me}             \par             \vspace{3in}             My Thesis             \par             \vspace{0.5in}             2013             \end{center}             \end{titlepage}                  testing long table \ref{AICHouseCysti}                   \hspace*{-1cm}\begin{longtable}{ll}             \caption[Modelling Process for Human HP10 Positivity]{{\bfseries Comparison of mixed-effects logistic regression risk factor models for human HP10 positivity (cysti)}}\\             \label{AICHumanCysti}             Model\protect\footnotemark &  AIC  \\             \hline             \endfirsthead                  \multicolumn{2}{c}%             {{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\             Model &  AIC  \\             \hline             \endhead                  \hline \multicolumn{2}{c}{{Continued on next page}} \\              \endfoot                  \hline             \endlastfoot                        {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                    {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                        {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                   {\bf hscysti} \sim other.stud + h20.filter + health.km + other  + health.trav.sch & 159.9 \\             $ + lat.sum + piped + tw.meat + tran.none   + pork  + tw.pig  + well  + opendef   & \\             + copro + tw + h2o.tx.none + health.mode  + roof + river + pond & \\             + undercooked + tran.bike $& \\[3pt]                  \footnotetext{small blah blah blahl}}                  \hspace*{-1cm}\end{longtable}            \end{center}                   \end{document}


title: Change font size of selected captions

text: Caption font size can be changed globally using               \usepackage[font=small]{caption}      However, suppose I need only one/two captions' fontsize be changed, not all. How can I do that?


title: How to Recover my Bold SF Fonts

text: I was inspired by this link to try EulerVM with tgpagella packages: How do I set LaTeX to use AMS Euler for text and maths? But when this is used with `\documentclass{scrbook}`, it seems that my bold- faced sans serif fonts are overwritten. Not only with the sections and subsections and whatnot, but in other areas that I have designated to have a bold sans serif font such as my enumi counters. Can someone help me bring the sans serif bold back in computer modern but with a fully functioning use of EulerVM with `tgpagella` packages? I apologize in advance if I am not properly following conventions here.               \documentclass{scrbook}     \usepackage{tgpagella}     \usepackage{eulervm}     \usepackage[T1]{fontenc}     \usepackage{mathrsfs}     \usepackage{enumerate}     \usepackage{microtype}          \def\theenumi{\textsf{\textbf{\arabic{enumi}}}}     \def\theenumii{\textsf{\textbf{\alph{enumii}}}}          \begin{document}          \chapter{A Chapter}          \section{A Section}                    \subsection{A Subsection}          Some numbers          \begin{enumerate}     \item The item should be bold sans.          \item It seems that they are being over written somewhere          \item I also get this: Warning: Font shape `T1/cmss/b/n' undefined     (Font)  using `T1/cmss/m/n' instead on input line 14.     \end{enumerate}          \end{document}


title: Shaded box with section number

text: The code below is not working. This is because, I have savenotes in my TeX file, it works when I remove savenotes. Is there a way that I can get the code working without removing savenotes? Here is the code:                   %---------------------Preamble---------------%     \documentclass[b5paper,twoside,10pt,openany]{book}     \usepackage[margin=1in]{geometry}            \usepackage[english]{babel}     \usepackage[T1]{fontenc}     \usepackage[bitstream-charter]{mathdesign}     \usepackage{amsmath}     \usepackage{sectsty}     \usepackage[english]{babel}     \usepackage{microtype}               \usepackage{natbib}                  \pagenumbering{gobble}               \usepackage{fancyhdr}                \usepackage{ragged2e}     \usepackage{booktabs}     \captionsetup[table]{skip=10pt}     \providecommand\phantomsection{}     \setcounter{secnumdepth}{3}     \usepackage{tabu}     \allsectionsfont{\sffamily}     \usepackage[explicit]{titlesec}     \usepackage{tikz}          %\usetikzlibrary{shapes.misc,arrows}     %defining subsection titles     \newcommand\titlebar{%     \tikz[baseline,trim left=0cm,trim right=3cm] {         \node [             fill=black!90,             text = white,             anchor= base east,             minimum height=3.5ex] (a) at (3cm,0) {             \textbf{\arabic{chapter}.\thesection}         };     }%     }     \titleformat{\section}{\large\sf}{\titlebar}{0.25cm}{\textcolor{black}{#1}}      %% Change color if needed and remove \sf.     \titlespacing*{\section}{-2cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \renewcommand*{\thesection}{\arabic{section}}          %defining subsection titles     \newcommand\subtitlebar{%     \tikz[baseline,trim left=0cm,trim right=3cm] {         \node [             fill=black!90,             text = white,             anchor= base east,             minimum height=3.5ex] (b) at (3cm,0) {             \textbf{\arabic{chapter}.\arabic{section}.\thesubsection}         };     }%     }          \titleformat{\subsection}{\normalfont\sf}{\subtitlebar}{0.2cm}{\textcolor{black}{#1}}  %% Change color if needed and remove \sf.     \titlespacing*{\subsection}{-1.8cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \renewcommand*{\thesubsection}{\arabic{subsection}}          %---------------------Document starts here---------------%     \begin{document}              %---------------------Table of contents---------------%     \pagestyle{empty}     \begin{onehalfspacing}          % here doublespacing can be used. Adjust the margins of the page!     \setcounter{tocdepth}{1}        % to display a detailed table of contents with each subsection     \tableofcontents     \end{onehalfspacing}     %\pagestyle{empty}     %---------------------Adding space in the whole thesis---------------%     \cleardoublepage     \begin{spacing}{1.3}     %\sectionfont{\noindent\fbox}  % makes a box around the section title.          %---------------------Headers, Footers and Page numbers---------------%     \pagestyle{fancy}     \renewcommand{\chaptermark}[1]{ \markboth{#1}{} }     \lhead{}     \chead{}     \renewcommand{\headrulewidth}{0.4pt} %     \renewcommand{\footrulewidth}{0.4pt} %     \pagenumbering{arabic}\setcounter{page}{9}     \fancyhf{}     \fancyhead[LE]{Chapter \thechapter}     \fancyhead[RO]{\nouppercase\leftmark}     \fancyfoot[LE,RO]{\thepage}          %---------------------Chapters---------------%     \chapter{First Chapter}          \section{Introduction}          \begin{savenotes}     \begin{table}          this is a test table          \end{table}     \end{savenotes}          \section{Conclusion}          %------------------------------------%          \end{spacing}     \end{document}       * * * Thanks Harish, The first problem which I mentioned is that for some reason: My TeX file shows incompatibility error with `titlesec` package. Here is the code:               \documentclass[b5paper,twoside,10pt,openany]{book}     %\setlength{\headheight}{15pt}     \usepackage[margin=1in]{geometry}       % sets up the margins of the paper     \usepackage[english]{babel}     \usepackage{charter}     \usepackage[T1]{fontenc}     \usepackage[bitstream-charter]{mathdesign}     \usepackage{amsmath}     \usepackage{sectsty}     \usepackage{titleps}                 \usepackage[english]{babel}     \usepackage{microtype}               \usepackage{natbib}                  \usepackage{fancyhdr}                \usepackage{footnote}                \usepackage{graphicx}                \usepackage{setspace}                \usepackage{ragged2e}     \usepackage{lscape}                  \usepackage{threeparttable}          \usepackage{booktabs}     \usepackage{caption}                 \captionsetup[table]{skip=10pt}     \usepackage[normalem]{ulem}          \providecommand\phantomsection{}     \setcounter{secnumdepth}{3}     \usepackage{tabu}     \usepackage[explicit]{titlesec}          \begin{document}          this is a test document          \section{test 1}          \section{test 2}          \end{document}


title: changed response to \fam\z@ command (from dchem) in XeLatex/mathspec

text: I am a dedicated user of Donald Arsenau's `dchem` package, which has been distributed privately for a long time but which he has never felt was sufficiently developed to be released publicly (or, if that is no longer true, a public release has apparently not floated high enough on his priority list to get done.) I am now trying to switch to `xelatex/mathspec`. Unfortunately I find that this change has broken the main `\ch` command of the dchem package. I wrote to D. Arsenau privately, and have asked on c.t.t., but I also thought I might try here to find advice. I have tried to reduce the problem to an absolute minimum. I therefore extracted a single line of dchem.sty, and renamed it `gchem.sty`:               \newcommand\ch{\fam\z@\everymath{\fam\z@}}     % like \rm but don't have to repeat       This command is typically used like `$\ch H_2O$` to produce chemical formulas set in roman (more accurately, `mathrm`) type. This line falls within some complex conditionals in dchem.sty that try to determine something about the current latex environment and its `\everymath`, and the implementation is somewhat different depending on the conditional branches, but I believe that this single line is the essence of all versions of the `\ch` command. Now, I write a simple test file using the Fourier package:               \documentclass{article}     \usepackage{fourier}     \usepackage{gchem}     \begin{document}     $\rm CH_2O$, $\ch CH_2O$     \end{document}      When I process this package with pdflatex, both the formula produced with `\rm` and the formula produced with `\ch` come out in Utopia as expected. I then modify the test file to use `xelatex/mathspec`:               \documentclass{article}     \usepackage{mathspec}     \setmainfont{Minion Pro}     \setmathsfont(Digits,Latin,Greek){Minion Pro}     \setmathrm{Minion Pro}     \usepackage{gchem}     \begin{document}     $\rm CH_2O$, $\ch CH_2O$     \end{document}      When I process this file with `xelatex` (This is XeTeX, Version 3.1415926-2.3-0.9997.5 (MiKTeX 2.9), the `\rm` formula comes out in Minion Pro as expected but the `\ch` version comes out in Computer Modern except for the subscript 2 which is Minion Pro. I have log files, including ones with tracing turned on, that show distinct differences between the behavior of `\rm` and `\ch`, and I can post or forward them if needed. But I think these examples get the point across: it seems that the short `\fam\z@` command used by dchem does effect a switch to `\mathrm` in `pdflatex` but does not do so in `xelatex`. Is this expected? If not, where is the problem? If so, how should the `\ch` command be modified to be compatible with `xetex`?


title: How to arrange a page as two colum? (similar to multicols)

text: There a some math problems& answers, I want to show them in two columns as following: ![enter image description here](http://i.stack.imgur.com/w1PuC.png) But I have no idea how to implement this function. I have tried `tabular` and `multicols`, however these commands didn't work as I expected. Any help would be appreciated!


title: Beamer: understanding hyperref messages "stopped early" and "Driver (autodected): hpdftex"

text: EDIT: The second message ("Driver (autodected): hpdftex") has been explained. OS X, TexLive 2011 (basic) installed through MacTeX. I update everything with `tlmgr` daily. This minimal beamer example produces the below messages with `pdflatex` but not `latex`:               \documentclass{beamer}     \begin{document}     \frame{       Heteronormativity.     }     \end{document}      Messages:               Package hyperref Message: Stopped early.          )          Package hyperref Message: Driver (autodetected): hpdftex.      I do not get any other errors or warnings (e.g. related to `pgf`, `\thepage`, etc.)


title: Multiple Alignment in equations

text: The following equations need to be aligned in two spots. If I use the align* environment then the second column of alignment is pushed to the right edge of the page. I googled this and saw that alignat* was suggested. So I tried that, and now the numbers aren't aligned where the alignment symbol is. How should I align the following properly,               \documentclass{article}     \begin{document}     \begin{alignat*}{2}         S(1)&=(1.05)S(0)=(1.05)(50000)&=52500\\         S(2)&=(1.05)S(1)=(1.05)(52500)&=55125\\         S(3)&=(1.05)S(2)=(1.05)(55125)&=57881.25\\         S(4)&=(1.05)S(3)=(1.05)(57881.25)&\approx60775.31\\         S(5)&=(1.05)S(4)\approx(1.05)(60775.31)&\approx63814.08\\         S(6)&=(1.05)S(5)\approx(1.05)(63814.08)&\approx67004.78\\         S(7)&=(1.05)S(6)\approx(1.05)(67004.78)&\approx70355.02\\         S(8)&=(1.05)S(7)\approx(1.05)(70355.02)&\approx73872.77     \end{alignat*}     \end{document}      EDIT: Here is an image of what I want. I created it using the same code but using spaces to align the equals signs. ![Example](http://i.stack.imgur.com/3cidi.png)


title: Conflict between ntheorem and amsthm

text: I am using `etoolbox` and `ntheorem` packages to have a custom numbering of theorems and equations. Everything works but these side errors occur:   * `\qedhere` command is unknown (EDIT: _following some suggestions I worked something out, so the`\qedhere` issue is somehow solved_)   * theorems title (the optional argument) is typeset in bold As a MWE, the following code               \documentclass{book}       \usepackage{amsmath}       \usepackage{etoolbox}       \usepackage[amsmath,amsthm,framed,thmmarks]{ntheorem}       %       \renewcommand{\theequation}{\thechapter.\arabic{equation}}       \setcounter{equation}{0}       \newcounter{tempcounter}       \newtheorem{thm}{Theorem}[chapter]       %       \BeforeBeginEnvironment{thm}{\setcounter{tempcounter}{\arabic{equation}}}       \AtBeginEnvironment{thm}       {\setcounter{thm}{\thetempcounter}\subequations}       \AtEndEnvironment{thm}{\endsubequations}       %       \begin{document}       \chapter{This is a chapter}       \begin{equation}\label{Eq:A}       2+2=4       \end{equation}       \begin{thm}[First Theorem]\label{Thm:First}       \begin{equation}\label{Eq:B}       1+1=2       \end{equation}       \begin{proof}       If equation \ref{Eq:A} was trivial, equation \ref{Eq:B} in Theorem \ref{Thm:First} is even more \qedhere \\       trivial.       \end{proof}       \end{thm}       \end{document}      results in this output: ![Output of the above MWE](http://i.stack.imgur.com/gHkP6.png) The `\qedhere` command is unknown and therefore ignored. I think that the problem is a conflict between the `amsthm` option in `ntheorem` package and the `amsthm` package. However, if I add `\usepackage{amsthm}` in the preamble I get errors like               ! LaTeX Error: Command \theoremstyle already defined.      and many more. I would like either to solve the two problems listed above, or to have an alternative code in order to have:   * theorems and equations following the same numbering, resetting at each chapter    * equations in theorem environments subnumbered as shown in the above MWE's output. Any other suggestion is highly appreciated.


title: Can't find Tikz shadows.blur (MiKTeX 2.9)

text: When I try and compile this under MiKTeX 2.9:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{shadows.blur}     \begin{document}     \end{document}      I get an error > I can't find file `tikzlibraryshadows.blur.code.tex'. The obvious deduction would be that my version of TikZ is too old. But a) there is no mention of `shadows.blur` in the 2.10 manual and b) when I look in either of pgfCVS2012-11-04_TDS.tgz, pgf_2.10.tds.zip, I can't find any files whose name includes 'blur'. What am I missing?


title: Spanning a tikz node over multiple pages

text: I'm using TikZ to draw a box around text with a heading, and it works great if the content of the box can fit on one page, but if it doesn't, it goes past the bottom margin, into the page number, and then is simply cut off without continuing on the next page. How would I get it to tell when it reaches the end of the page and to continue on the next? I found this example, which implements something similar, but I can't make enough sense of it to be able to implement it in my code.               \newcommand{\fancybox}[4]     {         \tikzstyle{thmbox} = [rectangle, rounded corners, draw=black, fill=#4, inner sep=15pt, drop shadow={fill=black, opacity=.5}]%         \tikzstyle{fancytitle} =[fill=white, text=black, rectangle, rounded corners, draw= black]%         \noindent%         \begin{tikzpicture}%         \node [thmbox] (box){%             \begin{minipage}{.91\textwidth}%             \textit{#3}%             \end{minipage}%         };%         \node[fancytitle, right=10pt] at (box.north west) {\textbf{#1:} #2};%         \end{tikzpicture}         \\\\     }


title: For loop print out array contents sequentially

text: I have already some experience getting `\forloop` to work in LaTeX but I can't figure out how to get it to print off each item sequentially in a given "array"... Like this pseudo-code would do:               \foreach \n in {a_1,a_2,a_3}{a_i, }      would give:               a_1, a_2, a_3      (notice the lack of a comma after `a_3`).


title: Problem with TikZ, beamer and verbatim

text: I'm trying to put verbatim text inside a node (in a beamer frame):               \begin{frame}[fragile]{P}     \tikzstyle{cell} = [rectangle, draw, thin , fill=black!10 , minimum size=5mm]     \begin{tikzpicture}[node distance=3cm, auto,>=latex', thick, overlay]         \path[->,draw]<1-> node[cell] (p) {Text at \verb!p!};                     \end{tikzpicture}     \end{frame}      But it doesn't compile and produces an error. If one replaces `\verb!p!` with anything else, like "`p`", it compiles. Note that I also tried to put "`fragile`" in the frame options. Thank you in advance!


title: Can't use command in listing caption

text: > **Possible Duplicate:**   >  “TeX capacity exceeded” because of a couple of raiseboxes in a \section? I'm not able to use the following command in a listing caption (I think the same applies to headings):               \newcommand{\CS}{C\nolinebreak\hspace{-.05em}\raisebox{.6ex}{\smaller\smaller\bf \#}}      The error is:               ! Undefined control sequence.        \in@ #1#2->\begingroup \def \in@@            ##1#1{}\toks@ \expandafter {\in@@ #2{}{}#1...          l.10 ]      How can I solve this?


title: Using a macro for the coordinate in \coordinate

text: It seems that the two lines in the following code are not equivalent:               \documentclass{article}     \usepackage{tikz}     \def\coord{(0,0)}     \begin{document}     %  \tikz \coordinate at \coord;      \tikz \node[coordinate] at \coord {};     \end{document}      Namely, the first (commented) line gives an error when used in place of the second. My understanding of the `\coordinate` command is that it is equivalent to `\node[coordinate] {}`, so am I missing something or is this a bug? This question seems to have a similar flavor as Use macro as coordinate in pgfplots plot (among others) but this is not an issue of expandability: `\coord` is obviously fully expandable and indeed, works in what appears to be the same context in a nearly identical command.


title: BibTeX: citing both translation and the original

text: I use BibTeX, the standard bibliography style "alpha". I wish to cite an article in Russian. The work has been translated into English, and I expect the majority of the readers will want to read the translation, not the original. Thus, I want to include bibliographic data for both the original and the translation in the same BibTeX entry. Is there an elegant way to do it?


title: extending captions for A3 pages

text: Im writing my Thesis in A4 format and sometimes I need to use A3 pages for bigger images. I managed to create a single A3 page within the A4 document and I extended the header up to the right margin. However, the text justification for the caption is still set up as an A4 document. Does anyone know how to adjust the caption to the size of the image (in an A3 image)? this is the last bit I need to correct before submitting =) Here you have what I'm doing...(--EDITED-- to have a complete document. I'm working with a preamble so I copied all the packages I'm using in order to have the setting up as I have...)                   \documentclass[a4paper,12pt, oneside]{book}          \usepackage{float}     \usepackage{afterpage}     \usepackage[usenames,dvipsnames]{color}               \usepackage{etex}     \reserveinserts{18}     \usepackage{morefloats}     \usepackage{lscape}                    \usepackage[portuges,brazilian,english]{babel}     \usepackage[T1]{fontenc}               \usepackage[T1]{fontenc}               \usepackage{textcomp}                    \usepackage{setspace}     \usepackage[authoryear]{natbib}     \usepackage{graphicx}     \usepackage{float}     \usepackage{fancyhdr}     \usepackage{eso-pic}     \usepackage{color}     \usepackage{fixltx2e}  %gives \textsubscript     \usepackage{pdfpages}     \usepackage{sidecap}               \renewcommand{\sfdefault}{phv}               \usepackage{microtype}          \usepackage{multirow}          \usepackage{indentfirst}               \usepackage{array}               \setcounter{secnumdepth}{4}     \setcounter{tocdepth}{3}          %Sets margins...     \usepackage[cm]{fullpage}     \usepackage[top=1.5cm, bottom=4cm, left=4cm, right=2cm]{geometry}          %Customises figure captions...     \usepackage[small,justification=justified,format=plain,labelsep=space,indention=0cm,margin={0cm,0cm},labelfont={rm,bf},up,textfont={rm,it}]{caption}     \usepackage{wrapfig}     \usepackage{sidecap}     \usepackage{rotating}          \usepackage{booktabs}               \usepackage{pdfpages}          \newcommand{\degree}{\ensuremath{^\circ}}          %customises header...     \usepackage{fancyhdr}     \setlength{\headheight}{15pt}     \setlength{\headsep}{30pt}      \pagestyle{fancy}     \renewcommand{\chaptermark}[1]{\markboth{#1}{}}     \renewcommand{\sectionmark}[1]{\markright{#1}{}}      \fancyhf{}     \fancyhead[LE,RO]{\textrm{\normalsize{\thepage}}}     \fancyhead[RE]{\textrm{\normalsize{{{\leftmark}}}}}     \fancyhead[LO]{\textrm{\large{{{\rightmark}}}}}                                   \begin{document}          \clearpage{     \pdfpagewidth=2\pdfpagewidth     \fancyheadoffset[R]{20cm}           \begin{figure}[H]         \centering         \includegraphics[height=1.3\textwidth]{LATEX/C8/IMAGES/SCENARIOB}         \caption[Results of Burial scenario B  - maturity window]{ResultsB - Burial scenario B contemplating transient heat flow (B-transient) and rifting heat flow (B-rifting). B-transient-I is contemplating a geothermal gradient of 30$^\circ$C/km for the overburden calculation; B-transient-II is contemplating a geothermal gradient of 20$^\circ$C/km for the overburden calculation; B-transient-III is contemplating a geothermal gradient of 15$^\circ$C/km for the overburden calculation. B-rifting is contemplating a $\beta$=1.3. }         \label{SCENARIO B}     \end{figure}     \clearpage     }          \pdfpagewidth=1\pdfpagewidth                    \end{document}      Here how it looks...( in this particular case, the image is not covering the whole page, but that is just because of the size of the image, it's not an error): ![A3 image, caption justified for an A4 page](http://i.stack.imgur.com/nsoLR.png)


title: formatting abstract

text: How do i format the abstract title? Also, i thought this was built into latex, but in LEd it says it doesn't recognize it, so i add \usepackage{abstract}. Is this suppose to be like this. Sorry new to latex, so still trying to get the hang of it.


title: New bib(la)tex-entrytype for music-scores

text: Short question: How can I create a new entry type (`@music`) with fields for the composer, title, opus, editor, series, location and year?               \begin{filecontents*}{\jobname.bib}     @music{citekey,         composer={Johann Sebastian Bach},         title={Motetten},         number={BWV 225--230},     %   opus={}, % no opus in this case         editor={Konrad Ameln},         series={Neue Bach-Ausgabe Serie III, Band 1},         loaction={Kassel},         publisher={Bärenreiter},         year={1965},     }     \end{filecontents*}          \documentclass[ngerman]{scrartcl}     \usepackage[style=authortitle]{biblatex}     \bibliography{\jobname}          \begin{document}     \cite{citekey} should look like          Johann Sebastian Bach: Motetten. BWV 225-230, hrsg von Konrad Ameln     = Neue Bach-Ausgabe Serie III, band 1. Kassel: Bärenreiter, 1965          or in general          (composer): (title)[, (opus)][, (number)][hrsg. von (editor)][= (series)].     [(location)][: (publisher)][, (year)][.]          where (xxx)=field and [yyy]=optional          \printbibliography     \end{document}


title: Using ligatures from Linux Libertine for numbering sections and in TOC

text: The old Libertine package, which worked with pdfTeX, included a command `\libertineGlyph{}`. `\libertineGlyph{Fourroman}` printed > Ⅳ But how can I get these roman numbers used for numbering sections and even in the TOC? I found Using ligatures from libertine for roman numerals in pdftex , but I do not know how to make it work. MWE:               \documentclass[ngerman]{article}     \usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}     \usepackage{babel,blindtext}      \usepackage{libertine}               \newcommand*{\libertineRoman}[1]{%         \def\Romantemp{}%         \ifnum\value{#1}>0\relax%             \ifnum\value{#1}<13\relax%                 \edef\Romantemp{\ifcase\value{#1}\or One\or Two\or Three\or Four\or Five\or Six\or Seven\or Eight\or Nine\or Ten\or Eleven\or Twelve\fi}%                 \libertineGlyph{\Romantemp roman}%             \else\Roman{#1}\fi%         \else\Roman{#1}\fi%     }     \newcommand*{\libertineroman}[1]{%         \def\Romantemp{}%         \ifnum\value{#1}>0\relax%             \ifnum\value{#1}<13\relax%                 \edef\Romantemp{\ifcase\value{#1}\or one\or two\or three\or four\or five\or six\or seven\or eight\or nine\or ten\or eleven\or twelve\fi}%                 \libertineGlyph{\Romantemp roman}%             \else\roman{#1}\fi%         \else\roman{#1}\fi%     }               %%% Roman numbers     \renewcommand{\thesection}{\Roman{section}}          %%% Roman ligatures from Linux Libertine?     %\renewcommand{\thesection}{\libertineRoman{section}}     %%% DOES NOT WORK               \begin{document}     \tableofcontents{}          {\libertineGlyph{Fourroman}}           \blinddocument          \end{document}      Cave: I use the old libertine package from years ago, which provides \libertineGlyph for pdfTeX. However, maybe somebody can give me a hint.


title: inline bracket, similar to a permutation and binomial, but aligned

text: I'm often experiencing instances, when I need to define a function on two sets in a domain. I'd like to create a command `\newcommand{\func}[4]{...}`, which makes an **inline bracket** , that shows how the function maps both sets of points. So far, I've managed to do this ![enter image description here](http://i.stack.imgur.com/1EBDk.jpg) via the command `$\binom{\tiny(x,s,t)\mapsto(x,s(1-t))}{\tiny(y,t)\mapsto y~~~~~~~~~}`. As you can see, I'm having problems with the **alignment** of both `\mapsto`s and also with the **size** of the both outer brackets. Could anyone please help me write such a command? I tried it with an inline table, but it is way too large. It would be desirable (but not necessary) that both outer brackets would respond to `\left` and `\right` or `\big`. COMMENT: this is how my current solution (via \binom with no alignment) looks like: ![enter image description here](http://i.stack.imgur.com/4vkGp.jpg) Any solution that produces larger brackets is not acceptable. The only thing that is missing is alignment.


title: Beamer - No table of contents at top

text: Once a table of contents is created, by               \tableofcontents      it is shown in at the top of the presentation, like in the following picture: ![enter image description here](http://i.stack.imgur.com/alWlF.jpg) Is it possible to prevent the contents from appearing at the top, but only at the one frame where `\tableofcontents` command is used at the beginning?


title: How to insert code and graphic in textbox

text: I want to put a graphic and a little linux bash code in a textbox, like the picture blow... with the follow in problem:   1. all in a textbox with yellow backgroud   2. left part is a graphic (a finger)...   3. right part is the text(annotation), title is “Note” .... bold face...   4. annotation is in form of item (may be could use `\begin{itemize} \item...`)   5. annotation may include bash code (may be could user package `listings` or `minted`)... Could any one tell me how to implement this? some one tell me should use tikz/pgf ... I'm a new user, so could not post images, please refer to http://www.linuxfromscratch.org/lfs/downloads/stable/LFS_BOOK-6.8.pdf with the top of page 221 and the top page 13。 (included by moderator:) ![Example](http://i.stack.imgur.com/Xt5ua.png)


title: Dynamic programming of cheapest cost in LaTeX

text: From How can I automate the generation of this dynamic-programming graph?, Jubobs helped develop a `foreach` scheme to draw the paths. I was wondering if LaTeX can find the cheapest path by implementing dynamic programming.               \documentclass{article}          \usepackage{tikz}          \newcounter{rowcount}     \newcounter{columncount}          \begin{document}     \begin{tikzpicture}[scale=2]     \begin{scope}[rotate=-45]         % rows         \foreach[count=\y from 0] \W in         {{7,8,6},{8,8,8},{6,9,7},{7,8,10}} % row-wise weights         {           \stepcounter{rowcount}           \foreach \w [count=\x, remember=\x as \lastx (initially 0)] in \W             \draw (\lastx,\y) -- (\x,\y)               node[above,pos=0.5] {\w};         }         % columns         \foreach[count=\x from 0] \W in         {{5,6,10},{7,10,5},{10,5,6},{7,9,11}} % column-wise weights         {           \stepcounter{columncount}           \foreach \w [count=\y, remember=\y as \lasty (initially 0)] in \W             \draw (\x,\lasty) -- (\x,\y)               node[above,pos=0.5] {\w};       }       \fill (0,0) circle (0.1em) node[below left] {A};       \fill ({\value{columncount}-1},{\value{rowcount}-1}) circle (0.1em) node[below right] {B};     \end{scope}     \end{tikzpicture}     \end{document}        1. Does LaTeX have this ability?   2. If it does, how is something like this done?


title: how to ensure formatting in tex doc remains same once it's compiled

text: Using `\clearpage` or `\newpage` will work sometimes or will ensure that the figure stays in the same section, but I cannot always get the heading of a subsection and the introduction to it to appear before a data table/graphic etc. Is there any particular package or formatting that should be included to ensure that the order I write it in will be the same it is compiled in?


title: Label sides of rectangles and triangles

text: What is the easiest way to label the sides of rectangles and triangles in TikZ?


title: Recommended way to control layout within a beamer block?

text: I've used LaTeX a fair amount to write papers, but I'm just getting into `beamer` (or more specifically, `beamerposter`). In some of my poster's blocks, I want to achieve the effect of down one side of the block (occupying maybe 75% of the width) there being some text (an itemized list), and on the right there being an `\includegraphics` image. Is there a recommended way to achieve this sort of effect? I'm not too clear what will work inside a block yet. Use a `table` for layout? `multicol`? Treat it like a regular `figure` and let LaTeX place it?


title: Latex presentation

text: I try with following code, but have many errors... Am I need to install special things for create presentation? It has any special steps for starting and executing? I tried a lot. But, I could't run a simple code so far....               \documentclass[ Options]{prosper}     \title{ aa}     \subtitle{ ss}     \author{ ccc}      \institution{ssf }     \slideCaption{sfsf }          \begin{document}     \maketitle     \begin{slide} [transition] { title }     Material for the slide     \end{slide}          \overlays{n}{     \begin{slide} [transition] {  title }     Material for the slide     \end{slide}     }     \end{document}


title: Zhuyin fuhao tone marks ignoring \setCJKmainfont

text: My documents usually contain an equal amount of Chinese and English. Here is my preamble, which I found in a manual somewhere:               \documentclass{ctexbook}     \setmainfont{Minion Pro}     \setCJKmainfont[BoldFont=Adobe Heiti Std, ItalicFont=Adobe Kaiti Std, SmallCapsFont=*]{Adobe Song Std}     \begin{document}         你好         hello     \end{document}      This simple setup seems to give me the Minion Pro font when typing English, and the other fonts when typing Chinese. When I type any zhuyin fuhao (注音符号), however, the 4 tone marks ("ˊ", "ˇ", "ˋ", and "˙") appear as square boxes. If I set `\setmainfont{Adobe Song Std}` (which means that the Minion Pro font is never used) the tone marks render fine. This suggests to me that it is trying using the Minion Pro font to render them (in the above document), but Minion Pro does not have these characters.   * How can I make sure these four symbols are always rendered using the correct CJK fonts?


title: Footnote separator for wrapped footnote, problems with Hebrew

text: In a previous question I asked how to format the footnote separator for wrapped footnotes. However, the provided solution unfortunately did not seem to work with my document. Now I have found that just one line prevents the desired result:               \setotherlanguage{hebrew}      (Btw., it does not then matter whether actual Hebrew text occurs or not.) Does anybody know what causes the problem and how to fix it? Here is a short example:               % !TEX encoding = UTF-8 Unicode     % !TEX TS-program = xelatex     \documentclass[14pt,a4paper,BCOR10mm,DIV11,toc=flat,final]{scrbook}     \usepackage{xltxtra}     \usepackage{polyglossia}     \usepackage[splitrule,hang]{footmisc}     \usepackage{lipsum}          \setdefaultlanguage[spelling=old]{german}     \setotherlanguage[variant=british]{english}     \setotherlanguage[calendar=hebrew,numerals=hebrew]{hebrew}          \setmainfont{Times New Roman}     %\newfontfamily\hebrewfont[Scale=0.9,Script=Hebrew]{Ezra SIL}          \begin{document}     \lipsum*[1]\footnote{\lipsum*[2]}     \lipsum*[3]\footnote{\lipsum[4-6]\lipsum*[7]}     \end{document}      Without the line               \setotherlanguage[calendar=hebrew,numerals=hebrew]{hebrew}      it works perfectly (footnote rule extending over the full text width), otherwise it does not (short footnote rule).


title: Using titlesec to have \chaptertitle and \sectiontitle in twosided report

text: I would like to customize the headers of my report. These should contain chaptertitle and sectiontitle. From here: Header not displaying correctly on chapter page due to subsection I have made an working MWE using fancyhdr{}               \documentclass[10pt,twoside]{report}     \usepackage{blindtext}     \usepackage{fancyhdr}     \pagestyle{fancy}          \renewcommand{\chaptermark}[1]{%      \markboth{#1}{}}           % Allows calling chapter and section names in headers and footers.     \renewcommand{\chaptermark}[1]{%      \markboth{#1}       {\noexpand\firstsectiontitle}}     \renewcommand{\sectionmark}[1]{}     \renewcommand{\sectionmark}[1]{%       \markright{#1}\gdef\firstsectiontitle{#1}}     \newcommand\firstsectiontitle{}          % General Header and Footer     \fancyhf{}     \fancyhead[LE]{\leftmark \space - \space \rightmark}     \fancyhead[RO]{\rightmark \space - \space \leftmark}     \fancyfoot[LE]{\thepage}     \fancyfoot[RO]{\thepage}          % Chapter Header and Footer     \fancypagestyle{plain}{%     \fancyhf{}     \fancyhead[LE]{\leftmark \space - \space \rightmark}     \fancyhead[RO]{\rightmark \space - \space \leftmark}     \fancyfoot[LE]{\thepage}     \fancyfoot[RO]{\thepage}     }          %DOCUMENT     \begin{document}          \chapter{First chapter}     \section{First section}     \blindtext[6]     \pagebreak     \section{Second section}     \blindtext[6]     \pagebreak     \chapter{Second chapter}     \section{First section}     \blindtext[4]     \pagebreak     \section{Second section}     \blindtext[4]          \end{document}      As I am using titlesec anyhow, I was wondering if I could achieve something similar. With great help from here: How do I make a subsection title visible in a header on page with chapter / section I have done this:               \documentclass[10pt,twoside]{report}     %\documentclass[10pt]{report}     \usepackage[a4paper]{geometry}     \usepackage{blindtext}     \usepackage{ifthen}     \usepackage[pagestyles,extramarks]{titlesec}          \settitlemarks*{chapter,section}          \newpagestyle{mystyle}{     \sethead         [\chaptertitle\ifthesection{\ --\ \firstextramarks{section}\sectiontitle}{}]         [][]         {}{}         {\chaptertitle\ifthesection{\ --\ \firstextramarks{section}\sectiontitle}{}}     \setfoot[\thepage][][]{}{}{\thepage}     }     \pagestyle{mystyle}     \assignpagestyle{\chapter}{mystyle}          \begin{document}          \chapter{First chapter}     \section{First section}     \blindtext[6]     \pagebreak     \section{Second section}     \blindtext[6]     \pagebreak     \chapter{Second chapter}     \section{First section}     \blindtext[4]     \pagebreak     \section{Second section}     \blindtext[4]          \end{document}      Using the default (onesided) layout works fine. When I move over to the twosided layout however, the section name is not displayed on the chapter page. I could not find anything in the titlesec documentations, so my questions are:   * Does it make sense trying to avoid fancyhdr{} for the sake of simplicity?   * If it does, how can I display the section name? Thanks in advance!


title: How to deal with theorem vs thm mismatch

text: I often find that I want to include a LaTeX file that has uses the environment `theorem` defined, but my document class has instead defined environment `thm`, so I get errors like `Environment theorem not defined`. What is the easiest way around this?


title: Fontspec 2.4 and Scale=MatchLowercase causes error

text: I just updated to TeXLive 2014 and when compiling the following code using either XeLaTeX or LuaLaTeX I get an error:               \documentclass{article}     \usepackage{fontspec}     \setsansfont{Latin Modern Sans}[Scale=MatchLowercase]     \begin{document}     \textsf{Example text}     \end{document}      The error:               ! Undefined control sequence.     \__fontspec_calc_scale:n ..._tmpb_dim }\fp_div:Nn                                                        \l__fontspec_tmpa_fp {\l__...     l.3 ...font{Latin Modern Sans}[Scale=MatchLowercase]      If I remove the `[Scale=MatchLowercase]` bit then it compiles. If I use other font features (eg Numbers=Uppercase) it works. It's just the `Scale` command with either `MatchLowercase` or `MatchUppercase` that causes the error. The font does not seem to matter nor does setting the sans or main font.


title: How to I emphazise all words beginning with ` in an lstlisting

text: I use a preprocesser to process some code before my verilog compiler.   All preprocesser words start with the ``` character Example:               `pp_if      unfortunately its possible to define your own preprocessor words. The only thing that is known is that the word starts with ```. How can I highlight any word starting with ```?


title: Cite a reference with the initials of the authors

text: How do I cite references such that instead of appearing a number in the citation, the initials of the authors appears using natbib? For example, if I have this reference > "[JRP] Jordan, M., Rodman, D., and Pippen, S. The best basketball team ever. > 1999." When I cite this inside the document, I want something like this: > "In a last minute play something happened [JRP]." I've tried several options in natbib without success. This webpage have a nice description of natbib options and commands. However, I cannot find the proper way for doing this kind of citation.


title: Remove thin border around mdframed title

text: I get a thin border around the title of a mdframed environment which has the color of the actual content area: ![enter image description here](http://i.stack.imgur.com/HDvup.png) I want to get rid of this thin red line around the title. **MWE:**               \documentclass{article}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \usepackage[usenames]{color}          % framemethod=TikZ is required to draw rounded corners     \usepackage[framemethod=TikZ]{mdframed}          \begin{document}          \mdfdefinestyle{eliasp}{%         roundcorner=3pt,         frametitlebackgroundcolor=yellow,         backgroundcolor=red,         hidealllines=true,         frametitle=This is the title,     }          \begin{mdframed}[style=eliasp]         This is some text     \end{mdframed}          \end{document}


title: Using cabin cooperatively

text: I want to use any font available as a package via CTAN, to name one: _cabin_ in a document versioned by git, but more importantly: with multiple collaborators. As only few LaTeX distributions have these installed, it would be really helpful to just be able to put them into the document's folder. Our current workflow is rather broken: Those who don't have the fonts installed (and don't want to/don't know how to/whatever) simply comment out the RequirePackage in their classfiles resulting in "slightly" unpredictable document look, which is bad. So what I want is something like this:               - Documents      \      |- .git      | \      | |- .YOUKNOWHOWGITFOLDERSLOOK      |      |- Document 1      | \      | |- doc1.tex      | |- mypkg.sty      | |- anotherpkg.sty      | |- PUTCABINHERE      |      |- Document 2      | \      | |- doc2.tex      | |- mypkg.sty      | |- anotherpkg.sty      | |- PUTCABINHERE      |      |- ...      Where `PUTCABINHERE` might either be a folder or one or multiple files. Also, if possible, I'd like to avoid requiring everybody to update their font cache everytime a new document is created. Would not work out well. So: (How) Is that possible?


title: \addcontentsline: lines added to TOC not numbered, and lines added to TOT not shown

text: Two problems arise when I add lines to the table of contents (TOC), and to the table of tables (TOT):   1. The TOC lines are not properly numbered.   2. The TOT lines don't show on the TOT. Any idea how to fix that ?               %!TEX TS-program = pdflatex     \documentclass[10pt,a4paper]{book}     \usepackage{array}     %------------      \newcommand{\SampleTable}{     \begin{table}     \caption{Title of Sample Table}     \begin{tabular}{ l c r }       1 & 2 & 3 \\     \end{tabular}     \end{table}     }     %------------      \begin{document}     \frontmatter      \setcounter{secnumdepth}{5}       \setcounter{tocdepth}{5}         \tableofcontents     \newpage          \section{section one}     \subsection{subsection one}          \setcounter{subsubsection}{0}     \addcontentsline{toc}{subsubsection}{line added to TOC: subsubsection one}     \addcontentsline{tot}{subsubsection}{line added to TOT: subsubsection one}            \addcontentsline{toc}{subsubsection}{line added to TOC: subsubsection two}     \addcontentsline{tot}{subsubsection}{line added to TOT: subsubsection two}            \subsubsection{subsubsection after addcontentsline: three}     \SampleTable     \backmatter     \listoftables          \end{document}


title: Is it possible to add some vertical space like ~~~?

text: I sometimes uses `~` to adjust space between symbols. Now I want to add some vertical space which play similar role, how do I do that? (It's not about controlling space between lines, but just add some space, the real problem is like this: I put `\displaystyle \int X`, and `X` at the same time in an `xymatrix`, then the arrows are of different length because it thinks `\displaystyle \int X` occupied more vertical space than `X`. )


title: How do I add a caption to a diagram generated with qtree?

text: I have a diagram that I created with qtree, but would like to add a caption to it. How can this be done?


title: How can I reduce the repeated code with these tikz nodes?

text: This relates to an earlier question I got an answer to the first part and followed some links for the second and came up with a mishmash of code to get it doing what I want but I didn't understand much of what is in the examples with for-loops so they are not the best starting point for me. Here is a small example of the circle code               \documentclass[paper=a4, fontsize=12pt]{scrartcl}            \usepackage{amsmath,amsfonts,amsthm}          \usepackage{graphicx}           \usepackage{float}     \setlength\parindent{0pt}      \usepackage{tikz}     \usetikzlibrary{arrows,%                     plotmarks}               \begin{document}      \begin{figure}[H]           \makeatletter     \tikzset{         dot diameter/.store in=\dot@diameter,         dot diameter=3pt,         dot spacing/.store in=\dot@spacing,         dot spacing=10pt,         dots/.style={             line width=\dot@diameter,             line cap=round,             dash pattern=on 0pt off \dot@spacing         }     }     \makeatother      \centering     \label{fig:circle}        \begin{tikzpicture}         % Axis         \draw[thick,->,black] (-4,0)--(4,0) node[below] {$n_x$};          \draw[thick,->,black] (0,-4)--(0,4) node[left] {$n_y$};          \draw[black,thick] (0,0) circle (3.5cm);              %dots         \draw [black, dot diameter=4pt, dot spacing=10pt, dots] (0pt,3.5) -- (0pt,6pt) ;          \draw [black, dot diameter=4pt, dot spacing=10pt, dots] (0pt,0) -- (110pt,0) ;          \draw [black, dot diameter=4pt, dot spacing=10pt, dots] (10pt,3.5) -- (10pt,6pt) ;          \draw [black, dot diameter=4pt, dot spacing=10pt, dots] (20pt,3.5) -- (20pt,6pt) ;          \draw [black, dot diameter=4pt, dot spacing=10pt, dots] (30pt,3.5) -- (30pt,6pt) ;          \draw [black, dot diameter=4pt, dot spacing=10pt, dots] (40pt,3.5) -- (40pt,6pt);          \draw [black, dot diameter=4pt, dot spacing=10pt, dots] (50pt,3.5) -- (50pt,6pt) ;          \draw [black, dot diameter=4pt, dot spacing=10pt, dots] (60pt,3.5) -- (60pt,6pt) ;          \draw [black, dot diameter=4pt, dot spacing=10pt, dots] (70pt,3.5) -- (70pt,6pt) ;          \draw [black, dot diameter=4pt, dot spacing=10pt, dots] (80pt,3.5) -- (80pt,6pt) ;               \draw [black, dot diameter=4pt, dot spacing=10pt, dots] (90pt,3.5) -- (90pt,6pt) ;          \draw [black, dot diameter=4pt, dot spacing=10pt, dots] (100pt,3.5) -- (100pt,6pt) ;                    \end{tikzpicture}          \caption{Two dimensional (2D) n-space of radius n and thickness dn. The density of states at an energy $\epsilon$ is the number of n-states per unit area, $A=L^2$}     \end{figure}     \end{document}      ![enter image description here](http://i.stack.imgur.com/YM4Zd.png)


title: Listing and Tabular in Multicols enviornment

text: I want to use the multicols environment to display a listing beneath a table:               \begin{multicols}{2}        \begin{lstlisting}[]      .....     \end{lstlisting}          \columnbreak           \begin{table}            \centering          \begin{tabular}{r|c|c|c|c|c}              .....           \end{tabular}      \end{table}     \end{multicols}      But this only displays my listing. Am I missing something?


title: Why does htlatex not work as expected?

text: I am trying to use htlatex to get an HTML version of my thesis. pdflatex just works when I compile the .tex files with TexStudio. So I ran the following command from the command line:               htlatex main.tex      where `main.tex` is the entry point of my thesis. From there, several other files are included (which may include further .tex files). The output of htlatex is then:               C:\Users\Bastian\Desktop\github-master\Thesis>latex  \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter     HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle     \let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}     makeatother\HCode .a.b.c.\input  main     This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9)     entering extended mode     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-2013-05-26, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,      lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2013-05-26, 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:\Users\Bastian\Desktop\github-master\Thesis\main.tex     (C:\devel\latex\tuddesign\tex\latex\tuddesign\tudthesis.cls     Document Class: tudthesis 2009/05/15 0.96 Joe Werner's TUD-Design-Manual packag     e     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\keyval.tex")))     (C:\devel\latex\tuddesign\tex\latex\tuddesign\tudreport.cls     Document Class: tudreport 2009/11/17 1.13 Clemens von Loewenich's and Joe Werne     r's TUD-Design package     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ifthen.sty")     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\koma-script\scrreprt.cls     Document Class: scrreprt 2013/12/19 v3.12 KOMA-Script document class (report)          (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\koma-script\scrkbase.sty     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\koma-script\scrbase.sty     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\koma-script\scrlfile.sty     Package scrlfile, 2013/12/19 v3.12 KOMA-Script package (loading files)                       Copyright (C) Markus Kohm          )))     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\koma-script\tocbasic.sty     )          Class scrreprt Warning: You've used obsolete option `bibtotoc'.     (scrreprt)              Usage of this option indicates an old document and     (scrreprt)              is deprecated.     (scrreprt)              You should simply replace     (scrreprt)              usage of option `bibtotoc' by `bibliography=totoc'.               Class scrreprt Warning: You've used obsolete option `liststotoc'.     (scrreprt)              Usage of this option indicates an old document and     (scrreprt)              is deprecated.     (scrreprt)              You should simply replace     (scrreprt)              usage of option `liststotoc' by `listof=totoc'.               (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\koma-script\scrsize11pt.     clo)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\koma-script\typearea.sty     Package typearea, 2013/12/19 v3.12 KOMA-Script package (type area)                       Copyright (C) Frank Neukam, 1992-1994                       Copyright (C) Markus Kohm, 1994-          )) (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\tex4ht.sty)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\usepackage.4ht)      ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\calc.sty")     (C:\devel\latex\tuddesign\tex\latex\tuddesign\colours\tudcolours.sty     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\xcolor\xcolor.sty     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\color.cfg")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\dvips.def"))     (C:\devel\latex\tuddesign\tex\latex\tuddesign\colours\tudcolours.cfg)     (C:\devel\latex\tuddesign\tex\latex\tuddesign\colours\tudcolours.def))     (C:\devel\latex\tuddesign\tex\latex\tuddesign\report\tudreprt_fonts.sty     (C:\devel\latex\tuddesign\tex\latex\tuddesign\base\tudfonts.sty     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fontenc.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.def"))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\textcomp.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ts1enc.def"))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fix-cm.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ts1enc.def"))     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\mathdesign\mathdesign.st     y     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\mathdesign\mdbch\mdbch.c     fg)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\mathdesign\mdbch\mdbch.s     ty (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\mathdesign\mdfont.def     )     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\mathdesign\mdsffont.def)      (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\mathdesign\mdttfont.def     )     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\mathdesign\mdbch\t1mdbch     .fd)) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fontenc.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.def")))))     (C:\devel\latex\tuddesign\tex\latex\tuddesign\base\tudpage.sty     (C:\devel\latex\tuddesign\tex\latex\tuddesign\base\tudpaper.sty     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")))     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\eso-pic\eso-pic.sty     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\atbegshi.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty")))     (C:\devel\latex\tuddesign\tex\latex\tuddesign\base\tudrules.sty)     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\geometry\geometry.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifvtex.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\geometry\geometry.cfg")))          Class scrreprt Warning: Usage of package `fancyhdr' together     (scrreprt)              with a KOMA-Script class is not recommended.     (scrreprt)              I'd suggest to use     (scrreprt)              package `scrpage2' or `scrlayer-scrpage'.     (scrreprt)              Nevertheless, using requested     (scrreprt)              package `fancyhdr' on input line 47.          (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\fancyhdr\fancyhdr.sty))     (C:\devel\latex\tuddesign\tex\latex\tuddesign\base\tudheading.sty          Class scrreprt Warning: Usage of package `titlesec' together     (scrreprt)              with a KOMA-Script class is not recommended.     (scrreprt)              I'd suggest to use the package only     (scrreprt)              if you really need it, because it breaks several     (scrreprt)              KOMA-Script features, i.e., option `headings' and     (scrreprt)              the extended optional argument of the section     (scrreprt)              commands .     (scrreprt)              Nevertheless, using requested     (scrreprt)              package `titlesec' on input line 12.          (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\titlesec\titlesec.sty)     (C:\devel\latex\tuddesign\tex\latex\tuddesign\base\tudheading.def)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\titlesec\block.tss)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\titlesec\titletoc.sty))     (C:\devel\latex\tuddesign\tex\latex\tuddesign\base\tudredef.sty)     (C:\devel\latex\tuddesign\tex\latex\tuddesign\report\tudreprt_title.sty))     (C:\devel\latex\tuddesign\tex\latex\tuddesign\thesis\tudthess_title.sty))     (C:\Users\Bastian\Desktop\github-master\Thesis\config/package-import.tex     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\inputenc.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\latin1.def"))     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\german\german.sty     v2.5e 1998-07-08)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\koma-script\scrtime.sty)      ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\auxhook.sty"          Package auxhook Warning: Cannot patch \document,     (auxhook)                using \AtBeginDocument instead.          ) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg")     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\url\url.sty)          Package hyperref Message: Stopped early.          )          Package hyperref Message: Driver: htex4ht.          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\htex4ht.def")     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\enumitem\enumitem.sty)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\listings\listings.sty     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\listings\lstmisc.sty)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\listings\listings.cfg))     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\soul\soul.sty)     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\multirow\multirow.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ltxmisc\varwidth.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\tabularx.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\array.sty"))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty"     For additional information on amsmath, use the `?' option.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amstext.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsgen.sty"))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsbsy.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsopn.sty"))     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\semantic\semantic.sty     Semantic Package v2.0(epsilon) [2003/10/28]     CVSId: $Id: semantic.dtx,v 1.11 2003/10/28 13:45:57 turtle Exp $     Loading features:     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\semantic\ligature.sty)      math mode ligatures,     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\semantic\infernce.sty)      inference rules,     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\semantic\tdiagram.sty)      T diagrams,     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\semantic\reserved.sty)      reserved words,     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\semantic\shrthand.sty)      short hands,     and general definitions.          )     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\adjustbox\adjustbox.sty     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\adjustbox\adjcalc.sty)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\adjustbox\trimclip.sty     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\collectbox\collectbox.st     y)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\adjustbox\tc-dvips.def))     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\latex\ifoddpage\ifoddpage.sty)     )) (C:\Users\Bastian\Desktop\github-master\Thesis\config/macros.tex)     (C:\Users\Bastian\Desktop\github-master\Thesis\config/code-formatting.tex)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\tex4ht.4ht     ::::::::::::::::::::::::::::::::::::::::::      TeX4ht info is available in the log file     ::::::::::::::::::::::::::::::::::::::::::     ) (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\tex4ht.sty     --- needs --- tex4ht main ---     (C:\Users\Bastian\Desktop\github-master\Thesis\main.tmp)     (C:\Users\Bastian\Desktop\github-master\Thesis\main.xref)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)      (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\latex.4ht     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)     ) (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\fontmath.4ht     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)     ) (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\ifthen.4ht     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)     (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)     ) (C:\Users\Bastian\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\scrreprt.4ht     ! Missing \endcsname inserted.     <to be read again>                        \MessageBreak     l.272 \:temp{rm}          ?      What am I supposed to do now? The working directory does not contain any .html file afterwards. However, the output in the terminal does not show any message which I would identify as an error message.


title: Small magazine style class: few questions?

text: I'm working on a simple TeX here based on KOMA-Script that I'm trying to customize. I don't want a thesis or a book, I'm trying to create a simple design, with header and footer information and text between those. Simple huh? But damn, LaTeX is hard! I have the following source and a few questions:               \documentclass[a4paper]{scrbook}     \usepackage[portuguese]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{graphicx}     \usepackage{listings}     \usepackage{lipsum}     \usepackage{scrpage2}     \pagestyle{scrheadings}     \setheadsepline{1pt}     \setfootsepline{1pt}          \ihead{My Default Text}     \ohead{\leftmark}     \ifoot{My Default Footer Text}     \ofoot{Page \thepage}     \cfoot{}          \begin{document}          \tableofcontents          \chapter{Intro}     \section{What's Lorem Ipsum?}     \lipsum[1-8]     \section{Why Lorem Ipsum?}     \lipsum[1-8]          \chapter{Working with Lorem Ipsum}     \section{I say. What on Earth is Lorem Ipsum?}     \lipsum[1-8]     \section{Lorem Ipsum is dead?}     \lipsum[1-8]          \end{document}        * How can I change the default font to FreeSans?   * How can I change the default text size? And the default size for header/footer notes?   * The pages have different margins, some are padded to one side while others are padded to another. How can I make all pages have the same margin/padding?   * How can I make the chapter information (number, name and a list of the sections contained in it) appear in one page, without any content?    * How can I make the chapter information page have a different header note? (bigger font, different content)   * How can I include sample code?    * Can I create some kind of "blockquote" that contains an icon and I can write text next to it? Similar to the "For Dummies" books notes.


title: Exercise enumeration

text: In order to make it easier to write hand-in assigments, I want to create two environments `Subexc` and `subexc`, where I can write the entire exercise down before starting. `Subexc` is supposed to be run with an argument, specifying the enumeration format to be used (note that I am using the `enumerate` package). `Subexc` then saves the format in a variable `\subExcFormat` and the exercise number in a counter `subExcCounter`. When `subexc` is run afterwards, it then continues the exercise number and the format from `\Subexc`. An example:               \usepackage{enumerate}     \newenvironment{Subexc}[1]     {%         \begin{enumerate}[#1]%             \item\ignorespaces\begin{itshape}%     }{%         \end{itshape}%         \end{enumerate}\setcounter{subExcCounter}{\theenumi}%         \global\let\subExcFormat#1%         \vspace{1 mm}\par\noindent\ignorespacesafterend%     }          \newenvironment{subexc}     {%         \begin{enumerate}[\subExcFormat]%         \setcounter{enumi}{\thesubExcCounter}%         \ignorespaces\item\begin{itshape}%     }     {%         \end{itshape}%         \end{enumerate}%         \setcounter{subExcCounter}{\theenumi}%         \vspace{1 mm}\par\noindent\ignorespacesafterend%     }          \begin{document}     \section*{Exercise 717}     \emph{In this exercise, we will prove the Riemann hypothesis.} %Text from exercise.          \begin{Subexc}{(a)} % Enumeration format of the form (a), (b), ...       Prove that $8 + 7 = 15$. % exercise text.     \end{Subexc}     Blablabla %My answer          \begin{subexc} % No format; it will continue the format from the last section.       Show that $e^{i\pi} + 1 = 0$.     \end{subexc}     Bluhbluhbluh %My answer          \begin{subexc}        Use (a) and (b) to show the Riemann hypothesis.     \end{subexc}     Wowowow %my answer     \end{document}      However, I get the errors               Illegal parameter number in definition of \endSubexc }     Illegal parameter number in definition of \subExcFormat \end{\subexc}     Undefined control sequence \begin{subexc}     Undefined control sequence \begin{subexc}     (Warning) The counter will not be printed.      What went wrong? :-)


## Scenario I want to adopt the philosophy "typeset once, produce any size". It means that from the beginning I specify the minimum paper size (e.g., A6) and configure the contents to best suit the paper dimension. Once the development phase has completed, I can compile the input file to produce PDF outputs with any larger size (e.g., A5 and A4) only by changing the `paperwidth` and `paperheight`. Assume that I am satisfied with the font and graphics dimensions so re-scaling is no longer needed for printing in any larger paper size. This is my response for Yiannis Lazarides' comment: I want to produce A6 for iPod, A5 for iPad and A4 for printout/on-screen. ## Question Are settings that best suit contents for a smaller paper size guaranteed not to produce underfull/overfull warnings for a larger paper size?


title: epslatex visible box doesn't fit all of the info (axis names)

text: i'm preparing a publication into Phys Rev E. they ask to use revtex. in revtex guidelines, they say that i should include eps files. i already have all the plots made with latex symbols and formulas. so i just want to make a single plot.eps file out of each plot instead of eps+tex. i used a keyword standalone. it worked partially. all the info is included however when i open the generated (latex plot.tex; dvips plot.tex) standalone plot.ps file i don't see the axis on the plot. they are truncated. if i open the plot.dvi file using xdvi and zoom out, i c the axis. so the frame is just smaller than a plot. is there an easy way to change the frame size or should i use ps terminal instead of epslatex?


title: Right-aligned constraints for equation

text: I'm looking to write an equation (using gather), with some constraints on the right-hand side. Ideally, I'd like the equations to be horizontally-aligned with one another (i.e. have centers line-up vertically in a given equation grouping), and the constraints following similar behaviour, but at the right-hand-side of the page, inside the right-margin. **edit** :The equation alignment should also be consistent with the rest of the document. The following is an example of (almost) the kind of behaviour I'm looking for, using the `\tag` command, but note that the length of the first tag has moved the first equation, and that the tags are right-aligned as opposed to centred in some abstract column near the right-hand side. Here's a minimal example:               \documentclass[reqno]{amsart}     \begin{document}     \begin{gather}     a^2 + b^2 = ab \tag{$(a \in \{z,y,x,w,v,u\},\ b \neq 0)$}\\     \text{centered fine}\tag{short}     \end{gather}     \end{document}      I'm happy to redefine `\tag` as long as it's not going to affect any of the equation-numbering elsewhere.