title: Incompatibility between amsrefs and memoir?

text: I am having trouble trying to use `amsrefs` together with the `memoir` class. Here is a minimal example:               \documentclass{memoir}     \usepackage{amsrefs}          \begin{document}          Some text.          \end{document}      LaTeX gives me the error `LaTeX Error: Command \bibsection already defined.` Googling around, I found only this question from 2005, which appears identically on several different forums. I don't really understand the solution proposed there. If it matters, I am using TeXLive 2012 and I just downloaded the `amsrefs` package from CTAN, so everything is pretty up to date. Has anybody run into this before? Is there any way to get around it? * * * Resolution: the suggestion in the comments worked. Adding `\let\bibsection\relax` immediately before loading `amsrefs` allows `amsrefs` to redefine the `\bibsection` command.


title: Free space in bar-chart with empty entries

text: I would like to plot some data set with the `ybar` option of `pgfplot`. But not all entries are nonzero. The zero entries waste space between the bars and when the plot gets crowed it is not clear anymore which bar belongs to which group. Furthermore the groups seem not centered around their description. How do I free the space of the zero entries?               \begin{tikzpicture}     \begin{axis}[ybar,ymin=0,xtick={0,1,2,3},xticklabels={a,b,c,d}]     \addplot coordinates{ (0,3) (1,3) (2,3) (3,3) };     \addplot coordinates{ (0,2) (2,2) };     \addplot coordinates{ (0,1) (1,1) };     \end{axis}     \end{tikzpicture}      ![not centerd bars with wasted space](http://i.stack.imgur.com/U4uJS.png) The potential solution in Consistent distance between bar plot groups of different sizes leads only to errors on my setup.


title: Are mathmode symbols usable within tikz arrays?

text: I've got a two dimensional array with indices and a one dimensional array with characters. The following code draws the character indicated by the indices, e.g. The char at (0,0) would be "w", the char at (1,0) would be ldots and so on.               \documentclass[pdftex,twoside,a4paper,draft]{book}     % Tikz     \usepackage{tikz}     \usetikzlibrary{positioning, shapes, calc}     %     \begin{document}     \pagestyle{plain}     %     \begin{figure}         \begin{tikzpicture}[scale=1.0]         %character array (this works)         \def\mysymbols{{"w", "\ldots", "v", "w"}}         %         %character array with mathmode symbols in strings (this doesn't work: unknown operator '$')         %\def\mysymbols{{"$\approx$", "$\ddot{\ldots}$", "$\Upsilon$", "$\approx$"}}         %character array with mathmode symbols (this also doesn't work: unknown operator '7')         %\def\mysymbols{{$\approx$, $\ddot{\ldots}$, $\Upsilon$, $\approx$}}         %         %Array with indices         \def\myindices{{{0,1,0},{0,1,0},{2,2,0},{0,2,1}}}         %         \foreach \x in {0,...,2}{             \foreach \y in {0,...,2}{                 %get symbol                 \pgfmathparse{\mysymbols[\myindices[\y][\x]]}                 %put a node at x,y with the symbol as the label                 \node[] at ($(\x,\y)$) {\pgfmathresult};             }         }         \end{tikzpicture}         %     \end{figure}     %     \end{document}      Now, the problem I am having is this: I would like to use mathmode symbols, e.g. greek letters, within the character array. Is there any way to use mathmode symbols in tikz arrays?


title: align columns in multiple tables

text: I am trying to align the columns of multiple tables. I know I can use `p` column format to fix column widths but I would prefer that TeX automatically figure out the widths for me. I was hoping to:   1. output one table with all rows of each subsequent table so that the column widths of the combined table would be automatically good for all the subsequent tables    2. then output each subsequent table using the same settings and    3. figure out some way in which the first combined table could be generated but not visible. Here is my attempt. The first combined table uses `\savetabu` to save the settings and then each subsequent table uses `\usetabu` to retrieve them. Unfortunately this does not work as I had hoped. The columns do not line up as the output below (after the code) shows. Does anyone have a method of accomplishing this?               \documentclass{article}          \usepackage{tabu}     \begin{document}          Output both tables together as one table and then output each     individual table.  We had hoped that this would cause the subsequent     tables to be the same width as the first since the first contains all     columns of the subsequent tables but it seems that that does not work.          \begin{center}     \begin{tabu}{ll}\savetabu{mytabu2}     1 & 2 \\     3 & 4 \\     abcdefghijklmnopqrstuvwxyz & 10 \\     5 & 6 \\     \end{tabu}     \end{center}          \begin{center}     \begin{tabu}{\usetabu{mytabu2}}     1 & 2 \\     3 & 4 \\     \end{tabu}     \end{center}          \begin{center}     \begin{tabu}{\usetabu{mytabu2}}     abcdefghijklmnopqrstuvwxyz & 10 \\     5 & 6 \\     \end{tabu}     \end{center}          \end{document}      Here is the output: ![screenshot](http://i.stack.imgur.com/P2A1x.png)


title: How to write quotation marks in math environment?

text: How to use quotation marks in math mode? I need to get `\lim` with the quation marks above.


title: Nassi–Shneiderman diagram with plain TeX

text: First I was trying to quickly put together a file/package that provides macros for building Nassi-Shneidermann diagrams, but after a while it gave me a head ache – literally. So I decided to seek out a package on the internet, especially when I figured out that they are also called this, with no luck. I know of an existing package called `stuki.sty`, but that is for LaTeX, and I couldn't find the `stuki.tex` file that it was based on, as it mentioned by the author. Neither of these available as a package for download. Is there any kind of package that provides similar? Also if there is, is there a way to make the conditions one line with the true/false line, the separating lines not going all the way in the middle, like this, and not like this?


title: Any Sublime txsprofile for TexStudio?

text: Has anyone created TexStudio txsprofile based on Sublime 3.0 colour schema? I truly appreciate sharing. I switched from Sublime to TexStudio and need such profile!


title: Boxes always take the full width

text: How can I have a box not take the full width? ie.               \hbox{keke}\hbox{lala} % end up on their own lines instead of same line.     \vbox{keke}\vbox{lala} % same thing, except also indented.      Why does `\hbox` by default take the whole line width? Does not compute.


title: How to left-align a table in LaTeX

text: There are many Q&A's about left-aligning either table content-cells, or table captions. I'd like to left-align tables (or any/all floats for that matter). I would like to be able to tell that requirement in the preamble. **EDIT:** My preamble looks like this (I've no idea what is generating this behaviour, so I'll just dump everything here. Generated by pandoc for the most part):               \documentclass{article}     \usepackage{amssymb,amsmath}     \usepackage[mathletters]{ucs}     \usepackage[utf8x]{inputenc}     \usepackage{array}     % This is needed because raggedright in table elements redefines \\:     \newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}     \let\PBS=\PreserveBackslash     \usepackage{graphicx}     % We will generate all images so they have a width \maxwidth. This means     % that they will get their normal width if they fit onto the page, but     % are scaled down if they would overflow the margins.     \makeatletter     \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth     \else\Gin@nat@width\fi}     \makeatother     \let\Oldincludegraphics\includegraphics     \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}     \usepackage[breaklinks=true,unicode=true]{hyperref}     \setlength{\parindent}{0pt}     \setlength{\parskip}{6pt plus 2pt minus 1pt}     \setcounter{secnumdepth}{0}     \usepackage[finnish]{babel}     %\usepackage{times}     \usepackage{tgpagella}     \usepackage{tgheros}     \usepackage{fancyhdr}     \usepackage[font={sf,footnotesize}]{floatrow}     \usepackage{calc}     \floatsetup[table]{style=ruled,       objectset=raggedleft,       justification=raggedleft,       margins=raggedright,       midcode=captionskip,       captionskip=10pt}     \pagestyle{fancy}     \usepackage[font={small,it},       justification=justified,       format=hang,       labelfont={bf},       singlelinecheck=false,       labelsep=quad]{caption}     \usepackage[protrusion=true,expansion]{microtype}


title: Forced line breaking in table with references

text: I have a table with citations in it and I use apacite for citation. Here is a short example:               \begin{table}[h]     \tiny     \begin{center}     \caption{\textit{  }}     \begin{tabular}{ll}     \hline      Authors & Sample\\     \hline     \citeNP{Caroselli200613}    &   141 \\     \hline     \label{T:ControlGrPerf}     \end{tabular}     \end{center}     \end{table}      When the reference in the first column is really long, the table doesn't fit the page. Is there a way to limit the size of a cell or to force line breaking within a reference? I looked at other questions, but they all concern text within the cells where you can manually specifiy the line breaking.


title: BibLatex Cite Primary Source Within Book

text: How do I cite a Primary Source within a secondary source? For example, in `Eyewitness to Irish History`, a section of the Primary Source `The Mystery of the Casement Ship`, the particular section being a quote from the captain of a sunk ship, is shown. How do I cite this primary source, while it is within a secondary? I am using Biblatex.


title: Drawing a 3D cone

text: I want to create some thing like this ![enter image description here](http://i.stack.imgur.com/7UQEy.png), but instead of a box, I use another object (a dog silhouette). Here is what I have so far               \begin{tikzpicture}         \begin{scope}[scale=0.25, xshift=70, yshift=140]  %middle dog            \draw [thick, blue]   plot [smooth, tension=0] coordinates { (3.666667,15.1) (2.833333,14.9) (2.233333,14.36667) (2.133333,13.96667) (1.733333,13.96667) (1.433333,13.36667) (1.433333,13) (1.566667,12.63333) (2.066667,12.33333) (2.466667,12.2) (2.766667,12.2) (3,12.33333) (3.333333,12.3) (3.533333,12.03333) (3.666667,11.4) (4.033333,10.56667) (4,9.133333) (4.833333,7.3) (5.3,4.4) (5.333333,3.4) (5.233333,2.7) (4.7,2.466667) (4.633333,2.1) (5.133333,1.933333) (5.6,1.933333) (5.833333,2.033333) (6.033333,2.333333) (6.166667,3.166667) (6.3,3.3) (6.366667,5.366667) (6.566667,6.966667) (8.233334,7.133333) (11.03333,8.033334) (11.6,7.733333) (12.26667,6.6) (13.3,5.5) (14.06667,4.933333) (14.6,4.3) (14.73333,3.966667) (14.7,2.866667) (14.6,2.666667) (14.23333,2.466667) (14.16667,2.066667) (14.33333,1.933333) (14.66667,1.9) (15.13333,1.966667) (15.4,2.2) (15.73333,4.833333) (15.33333,5.4) (14.6,6.1) (14.26667,7.033333) (14,9.8) (13.83333,10.43333) (13.66667,10.66667) (14.03333,11.36667) (14.03333,11.63333) (13.66667,11.66667) (13.2,11.2) (12.1,11.43333) (10.4,11.4) (8.366667,11.53333) (7.966667,11.83333) (7.233333,11.96667) (6.966667,12.2) (6.666667,12.23333) (5.7,13.6) (4.966667,14.26667) (4.933333,14.53333) (4.733333,14.73333) (4.366667,14.9) (4.3,15.03333) (3.7,15.1) };              \node[above] at (60pt, 600pt) (middleSilCameraCentre) {$C_{2}$};         \draw [fill=yellow!30!orange] (60pt, 600pt) circle [radius=0.3];             \end{scope}      Not much I know ![enter image description here](http://i.stack.imgur.com/QWizB.png). How can I shoot a line from the center through each point and form a 2D cone?


title: Center overfull subfloats

text: I have some plots that I want to group together into one figure as subfigures using subfloat. I want to align them as two per row but it seems they are too big (Overfull \hbox). Nonetheless I want them to be on one row and be centered which means they should have the same distance to the left and right border of the sheet. The following code is a stripped down version of one of my figures and exhibits the problem.               \documentclass[a4paper,10pt]{scrreprt}     \usepackage{pgfplots}     \usepackage{subfig}     \usepackage{blindtext}          \begin{document}     \begin{figure}     \centering     \subfloat[]{     \begin{tikzpicture}     \begin{axis}[]     \end{axis}     \end{tikzpicture}     }     \subfloat[]{     \begin{tikzpicture}     \begin{axis}[]     \end{axis}     \end{tikzpicture}     }     \end{figure}     \blindtext     \end{document}      As you can see in the resulting page, the figures are much closer to the right border than to the left. ![The plots are shifted into the right margin](http://i.stack.imgur.com/dQ3Ng.png) I don't seem to be able to move them in any way. As you can see I tried `\centering` and I also have tried `\subfloatrow` to no avail.


title: No page number on \appendixpage

text: I am using the `appendix` package with the `\appendixpage` command to insert a "Appendices" title page. However, I was wondering how I could avoid that there is a pagenumber on this inserted page. MWE:               \documentclass{book}     \usepackage[titletoc]{appendix}     \begin{document}                              \tableofcontents                              \appendix     \appendixpage     \noappendicestocpagenum     \addappheadtotoc                              \chapter{Some title}     Some text                              \end{document} Mind that the `\noappendicestocpagenum` is about a page number in the ToC, not in the text, so this is unrelated to my question.


title: How can I determine what a label is labeling (a-la \autoref)?

text: I want to have a command which gets a label and returns the environment (or the last sectionining command etc.) after which I had the `\label`. I mean, like `\autoref`, but no need to convert from the TeX command/env. name to the name used for output (i.e. I can use `\somethingname` or `\somethingautorefname` myself if another command takes `mylabel` and gives me `something`.) _Note:_ I would like a solution that does not use packages offering this functionality, like `hyperref` or `cleveref` (although if a piece of code from their sources does the trick than that's a very good solution).


title: Chapter number in `Lenny` and roman numerals to Old Style

text: Is there a way to change the chapter number in `fncychap` as well as the roman numerals in the \frontmatter to be `old style figure` style?               \documentclass{amsbook}     \usepackage[osf]{mathpazo}     \usepackage[Lenny]{fncychap}     \ChRuleWidth{1.618pt}     \ChTitleVar{\raggedright  \huge }     \ChNameVar{\raggedleft  \Huge }          \begin{document}     \frontmatter      \tableofcontents     \chapter{One}     Hi     \newpage     \chapter{Two}     Hi     \mainmatter     \chapter{Three}     Hi      \end{document}


title: Listings, literate, and space at the start of the line.

text: I am trying to use the literate option to replace the prompt (`>>>`) and continuations (`...`) in python input with symbols that "hang" in the margin. I can almost do this with something like `literate=*{>>>}{\llap{$\ggg$\hspace{5pt}}}{0}` etc. but am running into a few problems: If I use a length of `0` as above I get errors and, extra space is inserted before the listing creating an undesired indent (though as demonstrated below, I think setting the length to `0` will not help, even if I can prevent the errors). I would appreciate any suggestions. Here is a minimal example that almost almost works:               \documentclass{article}     \usepackage{MnSymbol}     \usepackage{listings}     \lstset{%       language=python,       columns=flexible,       frame=leftline,       framexleftmargin=0pt,       framesep=4pt,       xleftmargin=5pt,       literate=*{>>>}{\llap{\footnotesize$\ggg$\hspace{8pt}}}{1}                 {...}{\llap{$\cdots$\hspace{8pt}}}{1}}     \begin{document}     \noindent     Here is some python code:     \begin{lstlisting}     def f():         """This is a function."""         return 1     f()     \end{lstlisting}     This uses the doctest format, but has extra indentation:     \begin{lstlisting}     >>> def f():     ...     """This is a function."""     ...     return 1     >>> f()     1     \end{lstlisting}     This is even a problem without any output:     \lstset{%       literate=*{>>>}{}{0}                 {...}{}{0}}     \begin{lstlisting}     >>> def f():     ...     """This is a function."""     ...     return 1     >>> f()     1     \end{lstlisting}     \end{document}


title: How can one get a list of the available functions in Lua(La)TeX

text: Is there a list or method to determine a list of the lua functions available/installed? Sofar I could only find the lua source files. Maybe I should write something that search through all the installed lua files for lines starting with "function". Then I will have a list, but it would still not give me the rest of detail of the functions. Any better ideas or suggestions?


title: Left align title in moderncv style casual

text: I want to align left the title (which is "Curriculum Vitae") under the horizontal line. I also want it not to be Italic. So my name above the horizontal line in the left side and the title under the line again in the left.


title: Thickness of math arrows

text: I'm making a poster with `a0poster` and `pxfonts` package for math fonts. I'm using `tikz-cd` for diagrams and I'm adjusting the line width for arrows and the arrow tips with               \tikzcdset{arrows={line width=1pt},arrow style=math font}      As you can see on the image below, although the arrow tips coincide, the line width does not fit the width used in math arrows (compare with `\to`). ![enter image description here](http://i.stack.imgur.com/RLelV.png) What is the value used for lines in arrows? What should I use in `line width`?


title: Peculiar tikz-external, pgfplots, tikzscale combination problem

text: I want to use `\tikzexternalize` and `tikzscale` with `pgfplots`' `\addplot graphics` command and `\clip=false` option.   I am using three files: `A.png`, `A.tikz` and `A.tex`.   `A.png` can be any graphics file.   `A.tikz` contains the following code:               \begin{tikzpicture}     \begin{axis}[     width=0.5\textwidth,     xmin=0,xmax=5,ymin=0,ymax=5,     clip=false,     ]     \addplot graphics [xmin=0,xmax=5,ymin=0,ymax=5] {A.png};     %\addplot coordinates {(1,1)(2,3)(3,2)};     \node[anchor=south east] at (rel axis cs:-0.05,1) {(a)};     \end{axis}     \end{tikzpicture}      The content of `A.tex` is:               \documentclass[crop,10pt,border=0]{standalone}     \usepackage[english]{babel}     \usepackage{pgfplots}          \usepackage{tikzscale}          \usepgfplotslibrary{groupplots}     \usetikzlibrary{external}     \tikzexternalize          \pgfplotsset{compat=1.9}          \begin{document}     \tikzsetnextfilename{Figure-A}     \setlength{\textwidth}{510pt}     This is some text.     \includegraphics[width=0.5\textwidth]{A.tikz}     % \input{A.tikz}     \end{document}      Compiling the document like this, I get an error and the external file is not created. I found out, that the problem arises from the combination of of the following lines:   `\tikzexternalize`   `\includegraphics[width=0.5\textwidth]{A.tikz}`   `clip=false`   `\addplot graphics [xmin=0,xmax=5,ymin=0,ymax=5] {A.png};`   If I omit any one of these commands, there will be no error but obviously I cannot use the coresponding option either:   - If I omit `\tikzexternalize`, there is no error but also no external file and the tikz code is compiled in every run.   - If I omit `clip=false`, there is no error, an external file is created but I cannot draw anything outside but relative to the axis.   - If I omit `\addplot graphics [xmin=0,xmax=5,ymin=0,ymax=5] {A.png};` e.g. by using the `\addplot coordinates` instead, I get no error, an external file is created but I cannot use external graphics   - If I omit `\includegraphics[width=0.5\textwidth]{A.tikz}` and use `\input{A.tikz}` instead, it works but the result is not scaled properly.   So my question is: Is there any way to make these four commands/options work together?


title: put same address middle below authors names sig-alternate.cls

text: How do i make the university address appear below the authors names and in the center ? I need to do this because both authors are having the same address. This is my existing code               \author{     \alignauthor Sean Fogarty\\            \affaddr{NASA Ames Research Center}\\            \affaddr{Moffett Field}\\            \affaddr{California 94035}\\            \email{fogartys@amesres.org}     % 6th. author     \alignauthor Charles Palmer\\            \affaddr{NASA Ames Research Center}\\            \affaddr{Moffett Field}\\            \affaddr{California 94035}\\                   \email{cpalmer@prl.com}}%     }      ![enter image description here](http://i.stack.imgur.com/RPbbl.png)


title: Harvard style citations with numbered bibliography

text: I have exactly the same question as here: Natbib + BibTeX: How can you show the bibliography in order of appearance AND numbered? i.e. I want Harvard-style citations in the text but just to add numbers to my list of references. I've tried using the exact same packages as in the other question,               \usepackage[round,numbers]{natbib}     \usepackage{hyperref}     (...)     \bibliographystyle{unsrtnat}     \bibliography{refs}     \end{document}      However the solution there doesn't solve the problem for me, if I include 'numbers' as an option to natbib, it numbers the references list but the citations in the text just revert to numbers as well, how can I stop this?


title: Set table background hatched and shaded using tikz

text: I am looking for a convenient way to set the background of tabular cells. I'd like to do two things: (1) Set the background shaded in a color (2) Set the background hatched I learned that the TikZ package provides means to do this but I am unable to come up with a solution that does not use matrices (such as here: http://www.texample.net/tikz/examples/timetable/) but instead uses the tabular package. Here's what I'd like to do:               \documentclass{article}     \begin{document}     \begin{tabular}{|l|l|l|}     \hline       1 & \setBGGray 2 & 3 \\\hline       4 & 5 & 6 \\\hline       7 & \setBGHatched 8 & 9 \\\hline     \end{tabular}     \end{document}      The output should look like this: ![enter image description here](http://i.stack.imgur.com/GU2ru.png) Can someone please help me achieving this using `tabular` (or `tabularx`) and TikZ?


title: how to decrease the size of the circle?

text: I want to draw a binary tree like this: ![enter image description here](http://i.stack.imgur.com/KMpPe.png) I have come up with the code below, but the size of the circle is too large. I tried to decrease the size, however, failed, can someone tell me how?                \usetikzlibrary{shapes,arrows,positioning}        \usepackage{wrapfig}       \usepackage{graphicx}        \resizebox{.4\textwidth}{!}{\begin{tikzpicture}[     block/.style = {circle, draw,             text width=2em,align=center,radius=.05cm},         line/.style = {draw,thick, -latex'},         node distance=0.9cm and 0.4cm         ]              % Place nodes         \node [block] (a) {a};         \node [block, below left of=a,xshift=-1.0cm, yshift=-0.3cm] (b) {b};         \node [block, below right of=a,xshift=1.0cm, yshift=-0.3cm] (c) {c};     % Draw edges     \path [line] (a) -- (b);     \path [line] (a) -- (c);          \end{tikzpicture}}


title: The distance between the caption and the table

text: I use the following table in Latex. And I want to decrease the distance between the caption and the table. And also I want to adjust the distance between the table and the above text; the distance between the caption and the following text. So I search on google. I find `\captionsetup[table]{belowskip=0pt}` or `\setlength{\abovetopsep}{10pt}` and so on. But they do not work. I do not see the difference.               \begin{tabularx}{\textwidth}{XXXXX}     \toprule      F          &   G       &    E  \\\midrule      convex     & convex    &-      \\\midrule      $C^{1,1}$  & convex    &-      \\\midrule      -          &  -        & convex\\\midrule       convex     &convex     &-      \\\bottomrule      \end{tabularx}\captionof{table}{Comparison of solvers}


title: recover or prevent disaster from happening?

text: I love to use Latex but as a new comer, I have encountered the following silly problem a few times: I push a key pad accidentally, and the next time I try to pdf the tex file, it says .... or the error or warning pointer goes back to...               \begin{document}      and I have no ways to figure out what happens. Then I have to uncomment section by section or even start from ground zero               \begin{document}          .     .     \end{document}      to figure out or just recover from the disaster. Anyway to prevent this? or can latex automatically track down the specific line(s) that cause this problem? Or flesh in green or color of hidden "killer strokes"?


title: TexLive 2011 uses 2010 version

text: I have updated my TexLive distribution from 2010 to 2011. But when I run `pdflatex` it still uses the older 2010 version. How can I change this? Also when I use `tex --v` it only shows the old version: TeX 3.1415926 (TeX Live 2010).


title: Neutral command to hide footnotes from wordcount

text: I currently have do all of my citations and footnotes with the commands `\ac` and `\fn` respectively, which I have set up as shorter versions of the full commands. I want to be able to print my document without any footnotes or citations, so I figure the best way would be to redefine temporarily these short commands. Basically, I need a command that will not print the text and will allow anything to be entered as options, i.e. a kind of dummy command.


title: How to start a new chapter at right hand side in ConTeXt?

text: I have read the manual and try the               \setuphead       [chapter]       [page=right]      but it has no effect :-(


title: xelatex vs. xelatexmk compilation – what’s the difference?

text: I'm using TeX Live 2012 in a Windows environment. I used to compile with `xelatexmk`, which isn't included in TeX Live's "Processing tools". When I wanted to switch from LaTeX to XeLaTeX, I read somewhere that I had to compile with `xelatexmk`, and it gave instructions for its configuration. My `xelatexmk` configuration looks like this: ![enter image description here](http://i.stack.imgur.com/CWBIR.png) Then I recently switched to TeX Live's built-in `XeLaTeX` compiler, because I noticed it was faster and always gave the same result. That configuration looks like this: ![enter image description here](http://i.stack.imgur.com/Vc7es.png) But I've noticed a difference when I draw arrows with `TikZ`. Below is a MWE:               \documentclass{article}     \usepackage{tikz}     \begin{document}         \begin{tabular}{cc}             \tikz[baseline, remember picture] \node[inner sep = 0pt, anchor = base] (finisharrow) {a}; & \tikz[baseline, remember picture] \node[inner sep = 0pt, anchor = base] (startarrow) {c};         \end{tabular}         \begin{tikzpicture}[remember picture, overlay, shorten <=.1ex, shorten >=.1ex]             \draw [semithick, ->] (startarrow) -- (finisharrow);         \end{tikzpicture}     \end{document}      When I compile with `xelatexmk`, it gives me this: ![enter image description here](http://i.stack.imgur.com/D5E8f.png) When I compile with `XeLaTeX`, on the other hand, it gives me this: ![enter image description here](http://i.stack.imgur.com/VlFsd.png) I need to compile with `XeLaTeX` a second time to get the proper outcome: ![enter image description here](http://i.stack.imgur.com/naHES.png) I'm sure there's a perfectly good reason why `XeLaTeX` behaves this way, but for novice users like me, it resulted in a lot of frustration, since I couldn't figure out why my arrows didn't turn out the way they used to before (when I used `xelatexmk`). Could this perhaps be a reason why `XeLaTeX` in the future versions of TeX Live should do two compiling iterations, or why `xelatexmk` should be included? Again, I need to stress that this is from the perspective of a novice user, who generally expects (or hopes) that their `.tex` document compiles easily by using some default built-in compiler.


title: Equation setting

text: I have a problem with this equation compilation at the end{split} please fix it.               \begin{equation}     \begin{split}        \frac{\partial }{\partial X_{j}}(\rho \bar u_i \bar u_j) = -\frac{\partial \bar p}{\partial X_{j}} + \frac{\partial }{\partial X_{j}}[\mu (\frac{\partial \bar u_i}{\partial X_{j}}+\frac{\partial \bar u_j}{\partial X_{i}} -\frac 23\delta_{ij}\frac{\partial \bar u_l}{\partial X_{l}}) ]+ \frac{\partial }{\partial X_{j}}(-\rho  \bar u{_i^'}  \bar u_{j}^{'})      \end{split}     \end{equation}


title: Get chapter numbers as text in the report class

text: im trying to get my chapter numbers printed as text, but on the way there i messed up my section numbers with text "ONE" and "TWO" an such, here is what i was doing, This code centers, pull up and changes font to normal size the chapter headings, I needed to change chapter numbering to text i.e. "CHAPTER 1" becomes "CHAPTER ONE". So far, I have the digit to text part figured out, but how to make the stuff uppercase and stop it from tripping over the error in the appendix that says `missing number treating as zero` i can not figure out.               \usepackage{titlesec}     \usepackage{fmtcount}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \renewcommand{\thechapter}{\NUMBERstring{chapter}}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \titleformat{\chapter}[display]       {\normalfont\normalsize\bfseries}       {\filcenter\chaptertitlename\ \thechapter}{10pt}{\filcenter\normalsize\MakeUppercase}     \titlespacing*{\chapter}{0pt}{-50pt}{40pt}  %%%%  pull up chapter heading     \titleformat{\section}{\normalfont\normalsize\bfseries} {\thesection}{1em}{}     \titleformat{\subsection}{\normalfont\normalsize\bfseries} {\thesubsection}{1em}{}     \titleformat{\subsubsection}{\normalfont\normalsize\bfseries} {\thesubsubsection}{1em}{}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      how can i have uppercase "one" and such instead of chapter numbers in the chapter heading, without interfering with the table of contents and the section numbering? i got all this from this other question and other places


title: Winefish autocompletion problem

text: My OS is ubuntu. Winefish does not autocomplete unless I press `Ctrl + Space`, which is a shortcut to change input method. How to change the shortcut for winefish autocompletion? Any help or suggestions will be appreciated!


title: XeTeX pstricks larger page size is cropped to A4

text: In a Plain-XeTeX document, if I set the page size to anything bigger than the default page size, (A4 in my case) then all the pstricks elements beyond the size of an A4 page are trimmed of, so only a portion of the image is seen on the page. I've tried to set the page size before and after `\input pstricks`, tried put it in pspicture, put it outside of it, set the pspicture size to (0, 0), (10, 10), used `\pspicture*` instead, nothing could get rid of that cropping region, and draw beyond that. I also tried to use pdf special commands in vain. The final TeX file I'm trying with is the following:               %\special{papersize=500mm,500mm}     \special{pdf:pagesize width 500mm height 500mm}     \hsize=500mm\vsize=500mm     \input pstricks          %\pspicture(0,0)     \psline(-500cm,0)(1mm,0)     \psline(0,100cm)(0,-500cm)     %\endpspicture          Somewhere, over the rainbow.          \bye      I've tried this in the latest of these systems, and none of them worked: MiKTeX 2.9 (64-bit), MacTeX (2013 is the version number I believe?) The following output can be seen whatever I tried. The vertical line only starts from somewhere about the middle of the page where it should start from above the text, and horizontal line isn't visible at all. ![Vertical line starts from middle of the page, and horizontal isn't visible at all.](http://i.stack.imgur.com/f8DUY.png) How can I resolve this issue?


title: reference the table of contents/ hyperlink

text: when i use the \tableofcontents or \listoffigures, it creates a page with the hyperlink placed on the name of the section.There is a red square around the title. However i want the hyperlink to be on the page numbers on the right after the dots instead of on the text of the section name.


title: Creating a hidden (unlisted) section and not breaking the current subsection

text: ## The Problem In my presentation, I want to incorporate a small crash-course inside a specific subsection. This crash-course should have no own section, but should be outside the current section and subsection. Kind of like the appendix, but the TOC should still be visible, just completely greyed out. After slide 1 of the subsection I want to have one or two slides hidden from all content listings (maybe excluding overall page numbering) and after that, I will continue with slide 2 from the subsection I left. This isn't conditional, so a button to a slide in the appendix won't help me and I don't want to have to click on the slide during the talk. ## Ideas I tried to hide the slides in an unlisted section, but this breaks the counter of the frames inside the subsection - obviously, since I ended the subsection with a new section. There should be a counter I can set, but I don't know which one. Additionally, it would be cool if the hidden section, while showing the overall TOC, could have a subsection title in the corresponding line - but this isn't crucial. ## MWE               \documentclass[a4paper]{beamer}          \usetheme{Dresden}     \usecolortheme{albatross}          \begin{document}         \section{Main section}             \subsection{First subsection}                 \begin{frame}{First frame of first subsection}                 People understand all this stuff.             \end{frame}         \section[]{Hidden crash-course}             % IT WOULD BE NICE TO HAVE AN SUBSECTION TITLE HERE             \begin{frame}{Explain stuff to me}             You will need this and that for the next slide             \end{frame}         % \section{Main section} SHOULD BE CONTINUED HERE            \subsection{First subsection (don't break me)}             \begin{frame}{Second frame of first subsection}             Luckily you paid attention to the crash-course, so now you understand this...             \end{frame}             \begin{frame}{Third frame of first subsection}             ... and that.             \end{frame}         \subsection{Second subsection}             \begin{frame}{Some different stuff}             Content             \end{frame}     \end{document}


title: inserting symbols in ieee paper

text: I want insert some symbols like **A'** and **"BACK"** in certain parts of the document.I tried to do it by **A\'** and **\"BACK\"** but returned with errors. How to insert this extra symbols The next problem is hoe to write **-0.8**.whenever i am inserting an -ve symbol it just disappears.I am trying to write               ${−0.8 \le k \le 0.8}$.      but the -ve symbol is not appearing


title: Sweave on Windows 7 - using Texmaker

text: So I've tried to configue Sweave on Texmaker following these instructions: http://arts.uwaterloo.ca/~tmparker/722/hw/Setup_Sweave_in_Texmaker.pdf When I go to run this example:               \documentclass[a4paper]{article}          \title{Sweave Example 1}     \author{Friedrich Leisch}          \begin{document}          \maketitle          In this example we embed parts of the examples from the     \texttt{kruskal.test} help page into a \LaTeX{} document:          <<>>=     data(airquality)     library(ctest)     kruskal.test(Ozone ~ Month, data = airquality)     @     which shows that the location parameter of the Ozone      distribution varies significantly from month to month. Finally we     include a boxplot of the data:          \begin{center}     <<fig=TRUE,echo=FALSE>>=     boxplot(Ozone ~ Month, data = airquality)     @     \end{center}          \end{document}      saving it as a .Rnw file and clicking `Tools -> R Sweave`, the message log at the bottom of Texmaker 'Error: could not start the command'. I've saved it in a directory with no spaces and followed the above link setup exactly. Let me know if more info is required.


title: Bibtex alpha key with accents

text: I use the alpha style with bibtex to create my bibliographies. This normally works great, but I'm encountering a problem with the keys created automatically when certain accents are involved. I'm trying to cite a paper from 2008 by Gerard Ben Arous and Jiří Černý. However, the key created by bibtex is [Bv08] instead of [BČ08]. This seems to be because the way to do the accent on the C at the beginning of his name is with `\v{C}` and so for some reason bibtex picks up the v as the first letter of his last name. I've noticed a couple of curious things in trying to find a way to fix this. - If I get rid of the first author (Ben Arous) then bibtex correctly compiles the key as [Č08]. - If I change the accent on the second author's name to be `\'{C}` then bibtex correctly compiles the key as [BĆ08] - I tried entering the accented 'Č' directly into the .bib file, but then bibtex compiled the key as [B08] (completely ignoring the second author's last name). I've searched this cite for ways to override the automatic key creation, but none of those seem to be what I'm looking for since it seems those methods would create a fixed key that I don't think would interact how I want it to when the bibliography is created. In particular, if I have I add another paper by the same two authors from the same year, bibtex should be able to automatically cite them as [BČ08a] and [BČ08b].


title: How can I specify a minimum length for my graph's edges?

text: I've just started to use the (new?) `graphdrawing` library (see section 27 of the TikZ & PGF 3.0.0). It's awesome! However, I can't seem to effect a minimum length for my graph's edges. That's problematic, because two connected nodes may overlap if the text they contain is too long, to the point where the connecting edge gets completely hidden; see below for an example. I've tried to use the `node sep` key, but it doesn't seem to have any effect on edge length. What should I do for edges to have at least a length of, say, `1cm`? ![enter image description here](http://i.stack.imgur.com/uU2Sz.png)               % compile with LuaLaTeX     \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{       graphs,       graphdrawing,     }          \tikzset{       graphs/every graph/.style={nodes={draw}},     }          \begin{document}     \section*{Fine}     \begin{tikzpicture}     \graph{       A -- B     };     \end{tikzpicture}          \section*{Too crammed}     \begin{tikzpicture}     \graph[       node sep=1cm, % no effect     ]{       Cram -- med      };     \end{tikzpicture}     \end{document}


title: printglossary acronym, display only the first appearance of arcshort in glossary

text: I defined acronyms like:               \newacronym{sdk}{SDK}{Software Development Kit}      use it in the text:   * Page 3: Test test \acrshort{sdk}   * Page 6: test test \acrshort{sdk}.   * Page 9: Test \acrshort{sdk} and print it like this:               \printglossary[type=\acronymtype]      with this outcome: > **SDK** Software Development Kit. 3, 6, 9 **Question:** How can i manage to display only the first appearance? Like this: > **SDK** Software Development Kit. 3 Thx in Advance. Edit - Minimal Example:               \documentclass{memoir}          \usepackage{bookmark,hyperref}     \usepackage[toc]{glossaries}     \makeglossaries          \newacronym{sdk}{SDK}{Software Development Kit}          \begin{document}     Test \acrshort{sdk}     \newpage     Test \acrshort{sdk}.     \newpage     Test \acrshort{sdk}\newpage     Test \newpage     Test \acrshort{sdk}\newpage     Test \newpage     Test \newpage     Test \acrshort{sdk}\newpage     Test \acrshort{sdk}\newpage     \printglossary[type=\acronymtype]     \end{document}


title: subfloat alternatives

text: I'm trying to submit a paper to a journal. I submit the TeX archive which includes the `tex` file + figures in `pdf` format. However, it fails to compile in the queue, whereas it obviously compiles properly on my machine. Through trial-and-error, I've narrowed down the compile failure to the use of the `subfig` package. If I directly use `\includegraphics` without `\subfloat`, it compiles. However, the spacing for side-by-side figures and figures over multiple lines is much inferior to using subfloat. My question is, what alternatives do I have to using `\subfloat`, or if I have to space them manually what spacings should I use?


title: Workaround for open lualatex bug in \scantokens?

text: As package author I am in need of writing a manual with lots of examples. Now I started to make heavy use of `lualatex` in order to speed up operations which take a long time in TeX (of my package, not the manual) -- and I stumbled about an open ticket (bug?) of lualatex which blocks me when I attempt to activate my code changes in the manual. Background: An example in my manual should be something like               \begin{codeexample}[]     <code here>     \end{codeexample}      and should result in (1) the listing in some verbatim output and (2) the result of executing `<code>`. I want to type the listing once (and once only). This is a good use-case for `\scantokens` : I collect the tokens with category code 12 (other) in order to show the verbatim output as code listing. This listing will include syntax highlighting and automatic cross references. Afterwards I use `\scantokens` in order to reset the category codes to their initial meaning such that I can execute the code (to show the outcome). This last invocation of `\scantokens` works flawlessly in pdftex. It does not work at all in lualatex. The issue is known, see http://tracker.luatex.org/view.php?id=733 and \scantokens in LuaTeX . While I could write a lua version of my package and translate the manual with the pdftex version, I would rather see the effects and document special cases. Eventually, the lua version might offer unique capabilities. Consequently, I do not want to wait until someone else fixes that open ticket - and I am searching for workarounds. Does anyone know a workaround? The problem as such can be formulated very simple as pointed out in the linked tex.se question. I would formulate it as               \documentclass{standalone}          \begin{document}          Here should come text: \scantokens{^^JNamely this text}          \end{document}      pdftex results in ![enter image description here](http://i.stack.imgur.com/dWAat.png) whereas luatex results in ![enter image description here](http://i.stack.imgur.com/6Cjg7.png) which is the same as in the linked question. But I need the newlines in my use case. This here is a reduced (I suppose minimal) example of my use-case in which I collect a listing verbatim and reassign catcodes afterwards in order to execute the listing. This "execute the listing" needs the newlines, otherwise it will fail to work. And: yes, I do not typeset the listing here (it is a minimal example).               \documentclass{article}          \usepackage{pgfplotstable}          \makeatletter     % Define \find@example such that it doesn't destroy catcodes:     \begingroup     \catcode`|=0     \catcode`[= 1     \catcode`]=2     \catcode`\{=12     \catcode `\}=12     \catcode`\\=12 |gdef|find@example#1\end{codeexample}[|endofcodeexample[#1]]     |endgroup          \def\OLDNEWLINE{^^J}%     %% ATTEMPT (1*):     %% This here result in output of the first minimal. But it breaks the     %% second one.     %%\def\OLDNEWLINE{}%          % define \returntospace.     %     % It should define NEWLINE as {}, spaces and tabs as \space.     \begingroup     \catcode`\^=7     \catcode`\^^M=13     \catcode`\^^I=13     \catcode`\ =13%     \gdef\returntospace{\catcode`\ =13\def {\space}\catcode`\^^I=13\def^^I{\space}\catcode`\^^M=13\def^^M{\OLDNEWLINE}}%     %      % ATTEMPT (2*):     %\gdef\returntospace{\catcode`\ =13\def {\space}\catcode`\^^I=13\def^^I{\space}\catcode`\^^M=13}%     \endgroup          \def\codeexample[#1]{%         \parindent0pt         \begingroup%         \par%         \medskip%         \let\do\@makeother%         \dospecials%         \obeylines%         \@vobeyspaces%         \catcode`\^^M=13 %         \find@example}     \def\endofcodeexample#1{%         \endgroup%         {%           \returntospace%           \xdef\code@temp{#1}% removes returns and comments         }%         %         % ATTEMPT (2*): This here fixes the first minimal example together with (2*):         %\catcode`\^^M=9 % 9 == ignore         \expandafter\scantokens\expandafter{\code@temp}%       \end{codeexample}     }          \makeatother                    \begin{document}          This should result in the picture:     \begin{codeexample}[]     \begin{tikzpicture}         \draw[red,->] (0,0) -- (1,1);              \draw[green] (0,1) -- (1,0);     \end{tikzpicture}     \end{codeexample}          This should result in the table:      \begin{codeexample}[]     \pgfplotstabletypeset{%     A B     2 3     4 5     }     \end{codeexample}     \end{document}      pdftex generates the expected outcome which is ![enter image description here](http://i.stack.imgur.com/9NhRs.png) whereas the luatex output is ![enter image description here](http://i.stack.imgur.com/VXmkl.png) I already tried a couple of things as outlined in the code. I already had the idea to use               \scantokens{\def\CONTENT{<sequence of 'other' catcodes}}      and use a "search-and-replace" routine on `\CONTENT` to replace every occurence of newlines with - well, I did not know with what. And simple search-and-replace routines will fail with curly braces inside of this macro. I have used Tex live 2013 (2014 does not fit on my hard drive currently). The lua ticket is in state "new" so I do not expect useful updates. So: does anyone have an idea how I could adopt this codeexample code in order to (a) collect the listing of both examples and (b) execute both listings successfully _without_ modifying the listings as such?


title: Make \includegraphics search \graphicspath before current directory

text: I would like LaTeX, when I specify `\graphicspath` to browse these locations before looking for the file in the current directory. A simple MWE follows:               \documentclass{article}     \usepackage{graphicx}     \graphicspath{{subdir/}}     \begin{document}     \includegraphics{pic.png}     \end{document}      When two different images `pic.png` are placed in the CWD and in subfolder `subdir`, the one in CWD is used, I would like the other one to be used. You can use e.g. http://upload.wikimedia.org/wikipedia/en/7/70/Example.png and http://i.stack.imgur.com/qjnHU.png as the two images. I have TeXLive 2012 on Fedora, but this should make no difference in this case, since it's `graphicx` package that takes case of this.


title: Is there a label for \part to use with \autoref?

text: If I write:               \chapter{}\label{chap:name1}      I can write:               See it in the \autoref{chap:name1}.      But what about the parts?               \part{}\label{?:name2}      So I could write:               See it in the \autoref{?:name2}.      Note: I have found more labels here (but not a label for the parts): http://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross- referencing#Fixing_wrong_labels


title: latex preamble for writing a book

text: I am writing a book. I am trying to build a preamble in such a way that there is master.tex and different files for different chapters, preface, contents etc. I am 4/10 in latex knowledge. I will be highly obliged if somebody help me to build a master latex preamble to write a book. Thanks


title: Bug with tikz-cd

text: The MWE below is producing the errors > ! Package tikz-cd Error: Arrow direction argument must contain only the > characters u, d, l, r. > > l.7 A \arrow[r] & B > > ! Package pgfkeys Error: I do not know the key '/tikz/r' and I am going to > igno re it. Perhaps you misspelled it. I'm using (updated today) > This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded > format=pdflatex 2014.7.14)               \documentclass{report}     \usepackage{tikz-cd}          \begin{document}     \[      \begin{tikzcd}       A \arrow[r] & B      \end{tikzcd}     \]     \end{document}


title: User defined command produces error in conflict with siunitx and TeXLive2011

text: I recently installed TeXLive 2011 on my MacBook (running MacOS X 10.6.8) and got the following problem: Example:               \documentclass[11pt, a4paper]{scrbook}          \usepackage[ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage[TS1, T1]{fontenc}      \usepackage{aecompl}     \usepackage{textcomp}      \usepackage[ngerman]{babel}     \usepackage{xspace}     \usepackage[tight]{units}     \usepackage{varwidth}     \usepackage{xcolor}     \usepackage{amsmath}          \usepackage{siunitx}     %\usepackage[round-mode=places, round-integer-to-decimal, round-precision=2,     %   table-format = 1.2,      %   table-number-alignment=center,     %   output-decimal-marker={,},     %   group-digits=false      %   ]{siunitx}           \newcommand{\FZ}[1]{\ensuremath{\textcolor{blue}{#1}}\xspace}     \newcommand{\ps}{\FZ{p_{\mathrm{s}}}}               \begin{document}     \listoffigures          \begin{figure}     \rule{5cm}{5cm}          \caption{effect of \ps on $p_{\mathrm{s}}$}     \end{figure}          \rule{1pt}{5cm}          effect of \ps on $p_{\mathrm{s}}$ -- here it works                    \end{document}      With TeXLive 2010 it compiles without a problem. With TeXLive 2011, I get the following error message after the second pdflatex run:                (./FehlerTeX2011.lof ./FehlerTeX2011.lof:2: Undefined control      sequence. <argument> ... 0.1}{\ignorespaces effect of \pson             $p_{\mathrm {s}}$} l.2 ...aces effect of \pson $p_{\mathrm {s}}$}}{1}      There seems to be a problem with the custom command `\ps`, the `siunitx` package and the list of figures, as the error can be **avoided**   * by deactivating `siunitx`   * or by typesetting `\ps*{}*` in the caption with parenthesis   * or by removing the list of figures   * or by using TeXLive 2010 instead   (luckily in OS X there is a way to switch between different TeX installations easily) Can anybody help and tell me what's going wrong? * * * here is the complete log file for used package versions:                   This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)      \write18 enabled.     entering extended mode     (./FehlerTeX2011.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge     rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek, ibycus, arabi     c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis     h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis     h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,      icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or     iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,      lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol     ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven     ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded     .     (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/scrbook.cls     Document Class: scrbook 2011/06/16 v3.09a KOMA-Script document class (book)     (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/scrkbase.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/scrbase.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/scrlfile.sty     Package scrlfile, 2011/03/09 v3.09 KOMA-Script package (loading files)                       Copyright (C) Markus Kohm          ))) (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/tocbasic.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/scrsize11pt.clo)     (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/typearea.sty     Package typearea, 2011/06/16 v3.09a KOMA-Script package (type area)                       Copyright (C) Frank Neukam, 1992-1994                       Copyright (C) Markus Kohm, 1994-          )) (/usr/local/texlive/2011/texmf-dist/tex/generic/babel/babel.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/babel/ngermanb.ldf     (/usr/local/texlive/2011/texmf-dist/tex/generic/babel/babel.def)))     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/inputenc.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/utf8.def     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/t1enc.dfu)     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/ot1enc.dfu)     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/omsenc.dfu)))     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/fontenc.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/ts1enc.def     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/ts1enc.dfu))     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/t1enc.def))     (/usr/local/texlive/2011/texmf-dist/tex/latex/ae/aecompl.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/textcomp.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/ts1enc.def))     (/usr/local/texlive/2011/texmf-dist/tex/latex/tools/xspace.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/units/units.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/ifthen.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/units/nicefrac.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/varwidth/varwidth.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/xcolor/xcolor.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/color.cfg)     (/usr/local/texlive/2011/texmf-dist/tex/latex/pdftex-def/pdftex.def     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsmath.sty     For additional information on amsmath, use the `?' option.     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amstext.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsgen.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsbsy.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsopn.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/siunitx/siunitx.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/expl3.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3names.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/tools/calc.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphics.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/trig.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/graphics.cfg))     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3basics.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3expan.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3tl.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3seq.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3int.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3quark.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3prg.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3clist.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3token.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3prop.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3msg.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3io.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3file.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3skip.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3keys.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3fp.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3box.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3coffins.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3color.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3luatex.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/tools/array.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/l3packages/xparse/xparse.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/beamer/translator/translator.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/beamer/translator/translator-lang     uage-mappings.tex))) (./FehlerTeX2011.aux)     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/ts1cmr.fd)     (/usr/local/texlive/2011/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     ) (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifluatex.sty)     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifpdf.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/grfext.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/kvoptions.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))     (/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))     (/usr/local/texlive/2011/texmf-dist/tex/latex/beamer/translator/dicts/translato     r-basic-dictionary/translator-basic-dictionary-English.dict)     (/usr/local/texlive/2011/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviati     ons.cfg)     (/usr/local/texlive/2011/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg     ) (/usr/local/texlive/2011/texmf-dist/tex/latex/base/t1cmss.fd)     (./FehlerTeX2011.lof


title: Using glossary in abbreviation causes issue: its written bold

text: I'm currently working on a thesis and having trouble with my glossary in connection with abbreviations. I define an abbreviation that way:               \acro{conMan}[CMS]{\gls{CMS}}      In my glossary list file i write:               \newglossaryentry{CMS}{         name={Content Management System},         description={My description comes here.}     }      By using:               \emph{\ac{conMan}}      it always prints "Content Management System" in bold+italic font. Its only with this one. I have several similar ones before that, an they are just written italic, as i defined. How do I get it only italic too? EDIT: For further explanation: I want the following style, using the glossaries package for glossary entries and acronyms: 1) acronyms without a glossary entry in background shall be written italic in the text Example: TH => Technical Highschool => Technical Highschool is not explained inside a glossary 2) acronyms with a glossary entry in background shall also be written italic in the text, but in the index they shall be written bold and reference to the glossary Example: CMS => Content Management System <-- is written italic in text, but bold in index of acronyms => Content Management System is explained in glossary 3) glossary entries are written bold in the text Example: I use the Word "Web-App" in the text, so i want it to be written bold, because its in my glossary.


title: TikZ picture positioning in landscape

text: I wrote a large game tree (using _automata_ package) and need to display it in landscape mode. I already tried to use both _textpos_ and _geometry_ (newgeometry command) packages but without any positive results. I need to shift the picture to the left so the right part of the game tree displays properly. Any suggestions? Also if there is a way to fit it in portrait mode it would be even better. Here is the code:               \documentclass[12pt]{exam}     \usepackage{tikz}     \usepackage{pgf}     \usepackage{geometry}     \usepackage{textpos}      \usepackage{pdflscape}     \usetikzlibrary{external,automata,trees,positioning,shadows,arrows,shapes.geometric}     \begin{document}          \begin{landscape}     \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2.8cm,                     semithick]     \tikzstyle{every state}=[fill,draw=none,green,text=white,circular drop shadow]     \tikzstyle{accepting}=[circle split, draw,text=black,inner sep=0.08cm]     \tikzstyle{initial}=[red,text=white]     \node[state,initial]  (N0) {Nature};     \node[state]   (N1) [below left of=N0,xshift=-5cm]  {Nature};     \node[state]   (F1) [below left of=N1]  {R\&G};     \node[state]   (K1) [below right of=N1] {R\&G};     \node[state]   (FS1) [below left of=F1]  {H};     \node[accepting]    (FN1) [above left of=F1] {\phantom{1}};     \node[state]        (KS1) [below right of=K1]  {H};     \node[accepting]    (KN1) [above right of=K1] {\phantom{1}};     \node[accepting]    (FSC1) [below left of=FS1]  {\phantom{1}};     \node[accepting]    (FSN1) [above left of=FS1] {\phantom{1}};     \node[accepting]    (KSC1) [below right of=KS1]  {\phantom{1}};     \node[accepting]    (KSN1) [above right of=KS1] {\phantom{1}};          \path(N1) edge node[ above left, pos=.20]{feed Hamlet}  node[ below right, pos=.30]{0} (F1)      edge node[above right, pos=.20]{kill Hamlet} node[below left, pos=.30]{1} (K1);     \path(F1) edge node[above left,pos=.5]{escort} (FS1) edge node[ left]{don't}(FN1);     \path(K1) edge node[above right,pos=.5]{escort} (KS1) edge node[ right]{don't}(KN1);     \path(FS1) edge node[above left]{change} (FSC1) edge node[ left]{don't}(FSN1);     \path(KS1) edge node[above right]{change} (KSC1) edge node[ right]{don't}(KSN1);     \path(K1) edge[thick,dotted,-](F1);           \node[state]   (N)[below right of=N0,xshift=5cm]  {Nature};      \node[state]    (F) [below left of=N]  {R\&G};      \node[state]    (K) [below right of=N] {R\&G};      \node[state]    (FS) [below left of=F]  {H};      \node[accepting]    (FN) [above left of=F] {\phantom{1}};      \node[state]    (KS) [below right of=K]  {H};      \node[accepting]     (KN) [above right of=K] {\phantom{1}};       \node[accepting]    (FSC) [below left of=FS]  {\phantom{1}};      \node[accepting]    (FSN) [above left of=FS] {\phantom{1}};      \node[accepting]    (KSC) [below right of=KS]  {\phantom{1}};      \node[accepting]     (KSN) [above right of=KS] {\phantom{1}};           \path(N) edge node[ above left, pos=.20]{feed Hamlet}  node[ below right, pos=.30]{0} (F)      edge node[above right, pos=.20]{kill Hamlet} node[below left, pos=.30]{1} (K);      \path(F) edge node[above left,pos=.5]{escort} (FS) edge node[ left]{don't}(FN);      \path(K) edge node[above right,pos=.5]{escort} (KS) edge node[ right]{don't}(KN);      \path(FS) edge node[above left]{change} (FSC) edge node[ left]{don't}(FSN);      \path(KS) edge node[above right]{change} (KSC) edge node[ right]{don't}(KSN);      \path(K) edge[thick,dotted,-](F);          \end{tikzpicture}     \end{landscape}     \end{document}


title: TikZ: constructing hyperbolic trajectories and angled circles on a sphere

text: ![enter image description here](http://i.stack.imgur.com/47E38.png) I am trying to construct this sphere above. What I have so far is below:               \documentclass[tikz, convert = false]{standalone}          \newcommand\pgfmathsinandcos[3]{%                                                          \pgfmathsetmacro#1{sin(#3)}%                                                             \pgfmathsetmacro#2{cos(#3)}%                                                           }     \newcommand\LongitudePlane[3][current plane]{%                                             \pgfmathsinandcos\sinEl\cosEl{#2} % elevation                                            \pgfmathsinandcos\sint\cost{#3} % azimuth                                                \tikzset{#1/.estyle = {cm = {\cost, \sint * \sinEl, 0, \cosEl, (0, 0)}}}               }     \newcommand\LatitudePlane[3][current plane]{%                                              \pgfmathsinandcos\sinEl\cosEl{#2} % elevation                                            \pgfmathsinandcos\sint\cost{#3} % latitude                                               \pgfmathsetmacro\yshift{\cosEl * \sint}                                                  \tikzset{#1/.estyle = {cm = {\cost, 0, 0, \cost*\sinEl, (0, \yshift)}}} %              }     \newcommand\DrawLongitudeCircle[2][2]{                                                     \LongitudePlane{\angEl}{#2}                                                              \tikzset{current plane/.prefix style = {scale = #1}}                                     % angle of "visibility"                                                                  \pgfmathsetmacro\angVis{atan(sin(#2) * cos(\angEl) / sin(\angEl))} %                     \draw[current plane] (\angVis:1) arc (\angVis:\angVis + 180:1);                          \draw[current plane, dashed] (\angVis - 180:1) arc (\angVis - 180:\angVis:1);          }     \newcommand\DrawLatitudeCircle[2][3]{                                                      \LatitudePlane{\angEl}{#2}                                                               \tikzset{current plane/.prefix style = {scale = #1}}                                     \pgfmathsetmacro\sinVis{sin(#2) / cos(#2) * sin(\angEl) / cos(\angEl)}                   % angle of "visibility"                                                                  \pgfmathsetmacro\angVis{asin(min(1, max(\sinVis, -1)))}                                  \draw[current plane] (\angVis:1) arc (\angVis:-\angVis - 180:1);                         \draw[current plane, dashed] (180 - \angVis:1) arc (180 - \angVis:\angVis:1);          }     \newcommand\DrawLongitudeCirclered[2][4]{                                                  \LongitudePlane{\angEl}{#2}                                                              \tikzset{current plane/.prefix style = {scale = #1}}                                     % angle of "visibility"                                                                  \pgfmathsetmacro\angVis{atan(sin(#2) * cos(\angEl) / sin(\angEl))} %                     \draw[current plane, blue, thick] (150:1) arc (150:180:1);                               % \draw[current plane,dashed] (-50:1) arc (-50:-35:1);         }%for drawing the grid                                                                   \newcommand\DLongredd[2][5]{                                                               \LongitudePlane{\angEl}{#2}                                                              \tikzset{current plane/.prefix style = {scale = #1}}                                     % angle of "visibility"                                                                  \pgfmathsetmacro\angVis{atan(sin(#2) * cos(\angEl) / sin(\angEl))} %                     \draw[current plane, black, dashed, ultra thick] (150:1) arc (150:180:1);              }     \newcommand\DLatred[2][6]{                                                                 \LatitudePlane{\angEl}{#2}                                                               \tikzset{current plane/.prefix style = {scale = #1}}                                     \pgfmathsetmacro\sinVis{sin(#2) / cos(#2) * sin(\angEl) / cos(\angEl)}                   % angle of "visibility"                                                                  \pgfmathsetmacro\angVis{asin(min(1, max(\sinVis, -1)))}                                  \draw[current plane, dashed, black, ultra thick] (-50:1) arc (-50:-35:1);              }     \newcommand\fillred[2][7]{                                                                 \LongitudePlane{\angEl}{#2}                                                              \tikzset{current plane/.prefix style = {scale = #1}}                                     % angle of "visibility"                                                                  \pgfmathsetmacro\angVis{atan(sin(#2) * cos(\angEl) / sin(\angEl))} %                     \draw[current plane, blue, thin] (\angVis:1) arc (\angVis:\angVis + 180:1);            }     \newcommand\DrawLatitudeCirclered[2][8]{                                                   \LatitudePlane{\angEl}{#2}                                                               \tikzset{current plane/.prefix style = {scale = #1}}                                     \pgfmathsetmacro\sinVis{sin(#2) / cos(#2) * sin(\angEl) / cos(\angEl)}                   % angle of "visibility"                                                                  \pgfmathsetmacro\angVis{asin(min(1, max(\sinVis, -1)))}                                  % \draw[current plane,red,thick] (-\angVis-50:1) arc                                     (-\angVis-50:-\angVis-20:1);                                                             \draw[current plane, blue, thick] (-50:1) arc (-50:-35:1);                             }       \newcommand\fillred[2][9]{                                                                 \LongitudePlane{\angEl}{#2}                                                              \tikzset{current plane/.prefix style = {scale = #1}}                                     % angle of "visibility"                                                                  \pgfmathsetmacro\angVis{atan(sin(#2) * cos(\angEl) / sin(\angEl))} %                     \draw[current plane, blue, thin] (\angVis:1) arc (\angVis:\angVis + 180:1);            }     \newcommand\DrawLatitudeCirclered[2][10]{                                                   \LatitudePlane{\angEl}{#2}                                                               \tikzset{current plane/.prefix style = {scale = #1}}                                     \pgfmathsetmacro\sinVis{sin(#2) / cos(#2) * sin(\angEl) / cos(\angEl)}                   % angle of "visibility"                                                                  \pgfmathsetmacro\angVis{asin(min(1, max(\sinVis, -1)))}                                  % \draw[current plane,red,thick] (-\angVis-50:1) arc                                     (-\angVis-50:-\angVis-20:1);                                                             \draw[current plane, blue, thick] (-50:1) arc (-50:-35:1);                             }     \begin{document}     \begin{tikzpicture}       \def\R{1.75} % sphere radius                                                             \def\angEl{10} % elevation angle                                                         \def\angPhi{-170} % longitude of point P                                                 \def\angBeta{45} % latitude of point P                                                        \filldraw[ball color = green!50, opacity = .4] (0, 0) circle (\R);       \foreach \t in {20, 0} { \DrawLatitudeCircle[\R]{\t} }       \foreach \t in {70} { \DrawLongitudeCircle[\R]{\t} }            \pgfmathsetmacro\H{\R * cos(\angEl)} % distance to north pole                            \LongitudePlane[pzplane]{\angEl}{\angPhi}     \end{tikzpicture}     \end{document}      What I need help constructing is `imax` and `imin` circles on the sphere and the departure trajectories hyperbolas along those circles. ![enter image description here](http://i.stack.imgur.com/enuqv.png)


title: PGFPlots: How to draw a label at a zero of a function?

text: Is there an easy method to construct a node (and hence a label) at a zero of a function, i.e. at the intersection of the function with the `x`-axis? The examples I found were somehow too complicated, and following the KISS principle, I was wondering if there is an elementary method to achieve this. Edit: To be a bit more precise: I would like to obtain a tick label at the zero of an arbitrary function. The zero should be calculated by the program (so if this is automation, then automation is needed).


title: How to use the amsmidx package to include multiple indices

text: I am using the gsm-l class file to write a small text. I want to have two indices at the end, one for names, and one for subjects. So, as instructed in the AMS instructions, I include then line               \usepackage{amsmidx}      and then I have the following two lines in the preamble:               \makeindex{name}          \makeindex{subj}      At the end, I put the two commands               \Printindex{name}{Name Index}          \Printindex{subj}{Subject Index}      But things are not going as expected. First, if I include the `hyperref` package, I get about two errors for every `\index` command. But even if I don't include the `hyperref` package, my document doesn't contain an index. According to the log, the processor can't find name.idx or subj.idx, even though I can see both files in the directory, and they contain all the entries just fine. I will include a small sample to show what is going wrong:               \documentclass[makeidx]{gsm-l}          \usepackage[latin1]{inputenc}          \usepackage{amsmidx}          %\usepackage{hyperref}          \makeindex{name}          \makeindex{subj}          \def\thechapter{\Roman{chapter}}           \begin{document}          \frontmatter          \title{TeX}          \maketitle          \tableofcontents          \mainmatter          \chapter{Test}          Here are some things\index{subj}{things} I\index{name}{This Guy} have been working on.          \appendix          \include{}          \backmatter          \Printindex{name}{Name Index}          \Printindex{subj}{Subject Index}          \end{document}      I would appreciate any help on this.


title: Subfigure removing and controlling label/numbering

text: this problem is similar to others but I cannot find a solution. In the example below I have a figure with 6 subfigures. I would like to remove the label/numbering from the 2nd, 4th and 6th subfigure, but I would like the remaining labels to read (a), (b) and (c). At the moment the compiled figure has labels (a), (c) and (e)... i.e. it doesn't print (b), (d) or (f), but still thinks they are there. Is there a simple solution to this?               \begin{figure}     \begin{center}         \subfigure[]{\includegraphics{image.pdf}}    % label/numbering         \subfigure{\includegraphics{image.pdf}}      % no label/numbering         \subfigure[]{\includegraphics{image.pdf}}    % label/numbering         \subfigure{\includegraphics{image.pdf}}      % no label/numbering         \subfigure[]{\includegraphics{image.pdf}}    % label/numbering         \subfigure{\includegraphics{image.pdf}}      % no label/numbering     \end{center}     \caption[Short caption.] {\label{fig:figure_label} Long caption.}     \end{figure}


title: When to use trailing backslashes

text: I am learning to use the `puthesis` document class. I have the following code:               \documentclass[iupuiece,thesis]{puthesis}          \begin{document}     \title{The Theory of Everything}     \campus{West Lafayette}     \author{Kit}     \maketitle          Hello World!          \end{document}      Take note of the `\author` line. That won't work. Out of the blue, I tried this one, and it works:               \author{Kit}\      The documentation here does not say anything about the trailing `\`. Is this some consistency issue with LaTeX syntax?


title: How do I split a command into several lines and have LaTeX read it as only one line?

text: For example, I have a command which has a _lot_ of options:               \documentclass[option1,option2,option3,option4,option5,option6,option7]{article}      I want to split it to several lines so I could read the code better:               \documentclass[option1,                    option2,                    option3,                    option4,                    option5,                    option6,                    option7]{article}      What is the proper way to do it?


title: Passthrough TeX input

text: I need to convert a document that was written in `TeX` to some other format. The other format supports a `TeX` style mathmode, so I would like to turn every mathmode formula into verbatim. I tried turning each formula into a verbatim environment, but this does not work, as an `end` statement has to be visible at the same time as an `begin` statement is encountered. How can I achieve something like that? `pandoc` et al are not an option. There is too much customization in the TeX processor used for those documents to work. A small example: I would like the input               $$ \left\{ \min_{3, 5} \right\} $$      To be output as exactly that, without having to modify the `.tex` files. More explanation of what I'm doing here: I have a huge style file, which defines a domain specific language for documentation, and a custom (somewhat conforming) latex interpreter that is used to output HTML code. I want to transfer the current LaTeX documents into a new document format. For that I'm modifying the style-files to adapt some constructs to the new format. The mathmode constructs are especially troubling and always get modified in ways I cannot really comprehend. Thus, I'm asking if there is a standard way to turn every latex formula into its verbatim equivalent.


title: What is the default saturation for a beamerposter HTML colour?

text: I'm making a poster using `beamerposter`, with a background defined by a html colour code 682860. I am drawing my pictures in Inkscape, filling the background of the picture with the same colour code. It doesn't work as I have to manually adjust the saturation in inkscape which adds an extra two letters to the html code, eg. 682860c6, and I can't get them to match up! Is it be possible to make them the same?


title: Problem with centering the text of the title page and more

text: The following is the code related to my title page:               \documentclass[a4paper,12pt]{book}     \usepackage{amsmath, amsthm, amssymb}     \usepackage{url}     \usepackage[algoruled,vlined]{algorithm2e}     \usepackage{graphicx,subfigure}          % for nice tables     \usepackage{booktabs}     % end for nice tables          % for using color names     \usepackage[usenames,dvipsnames]{color}     % end for using color names          % for nicer figure captions     \usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption}     % end for nicer figure captions               % fancy headers and footers     \usepackage{fancyhdr}     \pagestyle{fancy}     \renewcommand{\headrulewidth}{0.1pt} % for upper line     \renewcommand{\footrulewidth}{0.1pt} % for lower line     \fancyhead[LE,RO]{\itshape \nouppercase \rightmark}     \fancyhead[LO,RE]{\itshape \nouppercase \leftmark}     \fancyfoot[C]{\thepage}          \usepackage{colortbl}          % for multirow option in the tables     \usepackage{multirow}                    \usepackage[semicolon]{natbib}          \usepackage{fancybox}          \usepackage{xcolor}     \usepackage{framed}          \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}          \newenvironment{myfancybox}{%       \def\FrameCommand{\fboxsep=\FrameSep \fcolorbox{black}}%       \color{black}\MakeFramed {\FrameRestore}}%     {\endMakeFramed}                              %\bibliographystyle{plain} %Choose a bibliograhpic style          \usepackage{sectsty}     \allsectionsfont{\itshape}          % for height of the heading       \setlength{\headheight}{15pt}          \parskip1ex     \begin{document}           \begin{titlepage}      \quad       \vspace{2cm}      \quad      \begin{center}      {\fontsize{70}{70}\selectfont \textbf{       Word1\\       %\vspace{2mm}       Word Word\\       \vspace{2mm}       Word Word Word}      }           {\large text text text text          text text text text text text text text          text text text text text text text text          text text text text text text text text}                 \end{center}     \pagestyle{plain}     \end{titlepage}          \end{document}      The problem is that my title has 'Word 1' quite separated from the second row. Another problem is that the whole text is actually not centered. I my preview it is shifted to the left. How could I adjust the title page to have proper title and with the centered text? My intention is to have the title page close to this: http://algo2.iti.kit.edu/documents/DementievDiss.pdf I would appreciate help on how to achieve such a title page.


title: What's wrong with my braket macro?

text: Based on egreg's alternate solution to my previous question from which I learned the idea of making characters into macros, I've now defined a different syntax for bra-kets which I actually like even more. My macro _almost_ works (although there's a bit of cargo cult programming going on here because I've copied some part of his solution which I didn't fully understand — the two lines beginning with `\begingroup\lccode` — in my macro and adapted them slightly; I suspect the problem is in there, because the rest I believe I understand sufficiently, thanks to egregs explanations to the other question). Here's my macro definition:               \newcommand{\braket}[2][\middle]{\ensuremath{     \begingroup     \begingroup\lccode`~=`<       \lowercase{\endgroup\def~}{#1\langle}     \begingroup\lccode`~=`|       \lowercase{\endgroup\def~}{#1\pipedel}     \begingroup\lccode`~=`>       \lowercase{\endgroup\def~}{#1\rangle}     \edef\pipedel{\delimiter\the\delcode`|}     \mathchardef\lt\mathcode`<     \mathchardef\pipechar\mathcode`|     \mathchardef\gt\mathcode`>     \mathcode`\<=\string"8000     \mathcode`\|=\string"8000     \mathcode`\>=\string"8000     \left.     #2     \right.     \endgroup     }}      The following usages all work as expected:               \braket{<\psi|\psi>}     \braket{<\psi|A|\psi>}     \braket{<\psi|\frac{p^2}{2m}|\psi>}     \braket[\Big]{<\alpha|\beta>}     \braket{|a \gt 0>}     \braket[]{<\psi|\frac{p^2}{2m}|\phi>}      (the last one simply disables automatic size adaption). However, the following does _not_ work correctly:               \braket{<0|1>}      It should give "〈0|1〉" but only gives "〈0〉". So what's wrong with my macro, and how do I fix it?


title: Big table - what to do about it?

text: So I have quite a big table, as you will see in my code. I'd prefer (if possible) to have the table fit on a "normal" portrait page (personal preference as I think it is easier to read). Mainly the problem are the long headings (particularly for the last 3 columns), so perhaps wrapping text would be suitable. However if the table cannot be fitted onto a portrait page (and look reasonably pleasant!), I guess I'd have to go the horizontal page route. What would be the most suitable package to use and what would be the relevant code?               \documentclass{article}     \usepackage{booktabs, siunitx}     \begin{document}     \begin{table}[H]     \caption{Presentation of survival data for the whole sample (N = 13 298)}     \label{table:SurvivalAll}     \begin{tabular*}{\textwidth}{     !{\extracolsep{\fill}}     l     *{8}{S[table-format=2.2]}      }     \toprule     {\bfseries Year} & {\bfseries Risk Set} & {\bfseries Graduated} & {\bfseries Academically Excluded} & {\bfseries Transferred} & {\bfseries Censored} & {\bfseries Hazard Ratio - Graduates (\%)} & {\bfseries Hazard Ratio - Academically Excluded (\%)} & {\bfseries Hazard Ratio - Transferred (\%)} \\     \midrule     1 & 13 298 & 0 & 725 & 583 & 1915 & 0.00 & 5.45 & 4.38  \\     2 & 10 075 & 0 & 474 & 176 & 1617 & 0.00 & 4.70 & 1.75 \\     3 & 7 808 & 1266 &  334 &   38 &    1030 &  16.21 & 4.28 &  0.49 \\     4 & 5 139 & 2782 &  147 &   2 & 455 &   54.14 & 2.86 &  0.04 \\     5 & 1 754 & 1135 &  76 &    2 & 205&    64.71 & 4.33 &  0.11 \\     6 & 336 &   235 &   17 &    0 & 39 &    69.94 & 5.06 &  0.00 \\      7 & 45 &    28 &    7 & 0 & 5 & 62.22 & 15.56 & 0.00 \\     8 & 5 & 3 & 0 & 0 & 2   & 60.00 &   0.00 &  0.00 \\     \bottomrule     \end{tabular*}     \end{table}     \end{document}


title: pdflatex \includegraphics changes the font

text: I've a EPS figure file (and the same as a PDF after "ps2pdf -dEPSCrop") created from a Matlab figure. It contains some text annotations, including a Greek delta ($\Delta$). In GhostView this EPS figure, and the PDF figure, look as expected. That is, on its own the Figure looks fine. However, when the figure (PDF/EPS) is included with includegraphics the Greek 'delta' in the Figure gets corrupted into what looks like a Danish 'o'. Any suggestions? Update: A MWE is below. A copy of the PDF Figure (about 4 kB) is at https://user.iter.org/filesharing/?uid=f54e3cdc-a0f8-42f2-a1d6-66bbfb26d71f               \documentclass{article}     \usepackage{textgreek}     \usepackage{amsmath,amssymb}     \usepackage[pdftex]{graphicx}     \begin{document}     The figure is loaded with includegraphics of a PDF file that contains a plot and some text, including the greek $\Delta$.     \begin{figure}[t!]     \includegraphics[width=0.85\textwidth,angle=0]{pdf-mathmode-greek-Figure.pdf}     \caption{Testing \textDelta{} and math $\Delta$ in the caption.}     \label{fig:AxV}     \end{figure}     \end{document}


title: Dividing a proof into several frames

text: I want to present a long proof in a presentation using `beamer` but don't know how to divide it into several frames without calling `\begin{proof}` - `\end{proof}` on each frame. To clarify things, what I have and don't want is something like this:               \documentclass{beamer}          \begin{document}          \begin{frame}         \begin{theorem}             The result...         \end{theorem}              \begin{proof}             Bla bla bla...         \end{proof}     \end{frame}          \begin{frame}         \begin{proof}             More bla bla bla...         \end{proof}     \end{frame}          \begin{frame}         \begin{proof}             And more bla bla bla... End of proof.         \end{proof}     \end{frame}          \end{document}


title: Format reference to items in nested list with cleveref

text: I'm using the cleveref package to format references in my documents. However I am having difficulties implementing different formats for labels referring to enumerate-lists, in particular nested list. Here is a minimal example:               \documentclass{article}          \usepackage{enumerate}     \usepackage{cleveref}          \creflabelformat{enumi}{#1(#2)#3}     \creflabelformat{enumii}{#1(#2)#3}               \begin{document}          \begin{enumerate}[(i)]       \item\label{fi} The first item       \item the second item       \begin{enumerate}[(a)]         \item the first sub-item         \item\label{ssi} the second sub-item       \end{enumerate}     \end{enumerate}          This is a fancy reference to the first item: \labelcref{fi}.          The second sub-item can be referred to as \labelcref{ssi}.          \end{document}      Ideally, I would like the first reference to be formatted as (i), and the second as (ii-b). The actual output is the following: ![enter image description here](http://i.stack.imgur.com/XWpAw.png) As we can see, both labels look different, i() instead of (i); and iib instead of (b) [I don't how to use `creflabelformat to get (ii-b), so I went for (b) but even this doesn't work.] I know there are a few questions, some recent, asking about formatting references to list items, but they didn't really help me. Many thanks.


title: No correct centering when a line break is used

text: I have a `centering` environment inside a `figure`. In this environment, I have a text written in a `footnotesize` style. If I make a line break (`\\\`) in the text, then the text is not centered correctly anymore. Can anyone tell me why the text is not centered correctly? **Screenshot:** ![enter image description here](http://i.stack.imgur.com/WHuMU.png) **Code:**               \begin{figure}[H]         \noindent            \begin{centering}                \caption[HTTP-Polling]{HTTP-Polling}           \label{fig:polling}           \includegraphics[scale=0.5]{images/polling}                  \par           \footnotesize Quelle: Heise Zeitschriftenverlag, 06. März 2012\\http://www.heise.de/developer/imgs/06/6/7/6/2/3/3/Polling-61cb54a128001c08.png         \end{centering}          \end{figure}


title: How do I define a new command in algorithmicx

text: The `algorithmicx` package defines two commands `\Require` and `\Ensure` for providing initial conditions. However, I'd like some custom commands such as `\Assume`, `\Define`, `\Input`, etc. At present, I merely rename the above two commands to something I want, like:               \algrenewcommand\algorithmicrequire{\textbf{Input}}      However, this is not really a good solution because   1. it clutters the algorithm code and what I see in LaTeX is not what is output, which can be confusing if I forget to read the preamble.   2. it's not useful when the number of custom definitions needed is more than the predefined ones. How do I define a custom command equivalent to the above two in the `algorithmicx` package (I'm using `algpseudocode`)? The examples in the documentation seem to cover blocks like `for ... end`, etc., and not individual statements.


title: How to indicate graphically that two sides are of equal length?

text: I'm using tikz to draw two triangles, e.g.               \begin{tikzpicture}[thick]       \coordinate (A) at (0,0);       \coordinate (B) at ($(A)+(330:3)$);       \coordinate (C) at ($(A)+(230:4)$);       \draw (A) node[above]{$A$} --(B) node[right]{$B$} -- (C) node[left]{$C$} --cycle;       \tkzMarkAngle[size=1.0](C,A,B)            \begin{scope}[rotate=75]          \coordinate (A) at (0,-5);         \coordinate (B) at ($(A)+(330:3)$);         \coordinate (C) at ($(A)+(230:4)$);         \draw (A) node[above]{$A$} --(B) node[right]{$B$} -- (C) node[left]{$C$} --cycle;         \tkzMarkAngle[size=1.0](C,A,B)       \end{scope}       \end{tikzpicture}      The two triangles are congruent and, as such, I'd like to use the normal notation to indicate that, i.e. a single tick on each of the lines _AB_ on each triangle and a double tick on each of the lines _AC_. I could add a length, e.g. _x_ or _y_ to each, but that's not an ideal solution. I've tried adding in a midway point in the draw command to use a '-' or an '=', but that only really works if the line is horizontal or vertical otherwise I have to calculate the angle, which doesn't seem right. Am I just missing out some simple instruction because I, maybe, just don't know the correct term for those marks?


title: Using two numbering systems at the same time

text: Equations are normally numbered (1), (2), (3), etc., but I would also like some equations to be labeled (i), (ii), (iii). I would like to use both numbering systems at the same time. For example:               equation (1) <-- this is the label     equation (2)     equation (i)     equation (3)     equation (ii)     equation (4)     equation (5)      etc. Is this possible?


title: question regarding CJK, mbox, and newcommand

text: I am having quite a difficult time understanding the following behavior. I am trying to use a Japanese character in math mode. Within a certain latex document using CJK, the following code renders correctly:               We have $x = \mbox{山}$      That is, I am able to place kanji within \mboxes within equations, and everything works fine. However, if I try instead:               \newcommand{\san}{\mbox{山}}     ...     \begin{document}     We have $x = \san$      the resulting output reads as "x = (blank space)" Here is a working/non- working example:               \documentclass{article}          \usepackage{CJK}     \newcommand{\san}{\mbox{山}}          \begin{document}     \begin{CJK}{UTF8}{min}     The equations $x = \san$ and $x = \mbox{山}$ should look the same.     \end{CJK}          \end{document}      When I compile the above example with pdflatex, I get: "The equations x = and x = 山 should look the same." My question is: Is there a way to define the macro \san to generate the correct behavior?


title: Split the window in TeXnicCenter Beta 2.0

text: I use Windows 7. I have a project open and a file from that project. I want to split the window using Window->Split to edit one part of the document while seeing another one. The split option is shaded (as in non-clickable). Any idea why? Also, when I have many windows open the buttons Tile Horizontally and Tile Vertically do nothing. Any idea of what I'm doing wrong?


title: PNG as a background?

text: Is it possible to use a PNG image as a background, but with selected opacity? It seems to me that standard solutions found here can not change opacity of PNG... I assume, that in the following one of the flags should be near transparent (taken from Includegraphics: set image opacity):               \documentclass{article}     \usepackage{lipsum}          \usepackage{graphicx}     \usepackage{transparent}     \usepackage{eso-pic}          \begin{document}          \transparent{0.01}\includegraphics[width=0.5\textwidth]{it.png}     \medskip          \transparent{0.99}\includegraphics[width=0.5\textwidth]{it.png}          \end{document}      but the result is: ![enter image description here](http://i.stack.imgur.com/euG9E.png) where it.png is ![enter image description here](http://i.stack.imgur.com/285GX.png)


title: Why is my document moving out of alignment after the first page

text: I already tried using `\noindent` but this error actually keeps happening on every other page. The problem can be seen below when observing the difference in alignment of the (4) and the (5) ![enter image description here](http://i.stack.imgur.com/XZNCR.jpg)


title: List of schemes, caption and lining up the reaction in chemfig

text: I have several question regarding LaTeX and chemfig. My first question is : how to create a list of schemes similar to `\listoftables` and `\listoffigures` so I can add my reaction schemes to newly created `\listofschemes` ? Next question is : how to make a caption for a reaction scheme in chemfig so I can call the scheme out and it will be displayed in "list of schemes" from my first question. Here is an example of a reaction scheme:               \documentclass[12pt,doublespacing,letterpaper]{report}     \usepackage{etex}     \usepackage[usenames,dvipsnames]{color}     \usepackage{cite}     \usepackage{fancyref}     \usepackage{lscape}      \usepackage{morehelp}     \usepackage{setspace}     \usepackage{rotating}     \usepackage[toc,page]{appendix}     \usepackage{easytable}     \usepackage{chemfig}     \usepackage{longtable}     \usepackage{amssymb}     \usepackage{amstext}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{dcolumn}     \usepackage{bm}     \usepackage{geometry}     \usepackage{multirow}     \usepackage{caption}          \begin{document}          \chapter{}          \schemedebug{false}      \schemestart[0,2.5,thick]      \scriptsize\chemfig{*6((!{Rsubst})-=-(-[,0.8]I)=(-[,0.9]N(-[:150,1.3]R\rlap{$^2$})(-[:30,1.3]R\rlap{$^1$}))-=)}\+{1em,1em ,7pt}      \chemfig{R^4-~}     \arrow{->[\footnotesize\parbox{110pt}{\centering $3$ mol \%,     PdCl$_2${(}PPh{)}$_3$\\[-7pt] $2$ mol \%, CuI, Et$_3$N}][\footnotesize MW,     60$^\circ$C, 20 min\footnotesize]}     \scriptsize\chemfig{*6((!{Rsubst})-=-(-~-R\rlap{$^4$})=(-[,0.9]N(-[:150,1.3]     R\rlap{$^2$})(-[:30,1.3]R\rlap{$^1$}))-=)}     \schemestop           %This should be a caption     \vspace{0.7cm}     \centerline{Scheme 1.5. Microwave assisted Sonogashira coupling     reaction.}          \end{document}      My third question is : How to line up the reaction scheme above? I really appreciate any help!


title: Setting labels on one axis in text mode and the other axis in math mode with PSTricks

text: Consider the following example: **Code**               % pdflatex -shell-escape test.tex          \documentclass{article}          \usepackage{auto-pst-pdf,pst-plot}          \def\seere#1#2#3{%       \pspolygon[%         fillstyle=solid,%         fillcolor=red!45       ](!2 #1 mul 1 sub \bredde 2 div sub 0)%        (!2 #1 mul 1 sub \bredde 2 div sub #2)%        (!2 #1 mul 1 sub \bredde 2 div add #2)%        (!2 #1 mul 1 sub \bredde 2 div add 0)       \rput(!2 #1 mul 1 sub #2 5 add){\scriptsize #2\,000}       \rput{90}(!2 #1 mul 1 sub #2 2 div){\scriptsize #3\,\%}     }          \begin{document}          \def\bredde{0.7 }     \centering     \psset{xunit=0.6cm,yunit=0.042cm}     \begin{pspicture}(21,240)      \psaxes[        mathLabel=false,% This removes the math mode on both axes.        xLabels={%         ,Nord,%         ,Midt-Vest,%         ,{\O}stjylland,%         ,Syd,%         ,Fyn,%         ,{\O}st,%         ,Bornholm,%         ,Lorry,%        },%        xLabelsRot=90,%        Dy=2,%        dy=20,%        ticks=y,%        ylabelFactor={\cdot 10^4}%      ]{->}(0,0)(16,230)[Tv-stationer,0][Seere,90]      \multido{\i=20+20}{11}{\psline[linestyle=dotted](0,\i)(16,\i)}      \seere{1}{86}{9.8}      \seere{2}{87}{9.9}      \seere{3}{107}{12.2}      \seere{4}{147}{16.7}      \seere{5}{102}{11.6}      \seere{6}{125}{14.2}      \seere{7}{16}{1.8}      \seere{8}{210}{23.9}     \end{pspicture}          \end{document}      **Output** ![output](http://i.stack.imgur.com/PclGY.jpg) **Question** How do I get the x-axis in text mode and the y-axis in math mode? I have had a look at section 9.8 in the `pst-plot` manual but I'm not sure how to redefine `\pshlabel` and `\psvlabel`. P.S. I might not look at this again before tomorrow or even Monday.