title: cannot draw graph with many nodes in latex

text: here is the latex code generated by a package                \documentclass[11pt]{article}              \usepackage{auto-pst-pdf,pstricks,pst-node,pst-tree,geometry}              \usepackage{lscape}              \pagestyle{empty}              \newcommand{\Tbox}[1]{\Tr{\psframebox{#1}}}              \begin{document}              \begin{landscape}              \begin{center}              \psset{tnsep=2pt,tnheight=0cm,treesep=.01cm,levelsep=1pt,radius=50pt}              \pstree{\Tcircle{    1}~[tnpos=l]{\shortstack[r]{\texttt{AdmitTier}\\$\in S_{    1}$}}}{             \pstree{\Tcircle{    2}~[tnpos=l]{\shortstack[r]{\texttt{ETHNICITY}\\$\in S_{    2}$}}}{                \Tbox{    4}~[tnpos=b]{$     64/    343$}                \pstree{\Tcircle{    5}~[tnpos=l]{\shortstack[r]{\texttt{AdmitTier}\\$\in S_{    5}$}}}{                   \pstree{\Tcircle{   10}~[tnpos=l]{\shortstack[r]{\texttt{ETHNICITY}\\$\in S_{   10}$}}}{                      \pstree{\Tcircle{   20}~[tnpos=l]{\shortstack[r]{\texttt{EstimateTu}\\$\leq    0.807E+04$}}}{                         \Tbox{   40}~[tnpos=b]{$   1483/   4386$}                         \Tbox{   41}~[tnpos=b]{$    266/    898$}                      }                      \pstree{\Tcircle{   21}~[tnpos=l]{\shortstack[r]{\texttt{GPA}\\$\leq     2.30    $}}}{                         \pstree{\Tcircle{   42}~[tnpos=l]{\shortstack[r]{\texttt{AdmitTier}\\$\in S_{   42}$}}}{                            \pstree{\Tcircle{   84}~[tnpos=l]{\shortstack[r]{\texttt{ACT}\\$\leq     17.0    $}}}{                               \Tbox{  168}~[tnpos=b]{$     77/    260$}                               \Tbox{  169}~[tnpos=b]{$     74/    148$}                            }                            \pstree{\Tcircle{   85}~[tnpos=l]{\shortstack[r]{\texttt{GPA}\\$\leq     2.00    $}}}{                               \pstree{\Tcircle{  170}~[tnpos=l]{\shortstack[r]{\texttt{GPA}\\$\leq     1.80    $}}}{                                  \Tbox{  340}~[tnpos=b]{$     78/    332$}                                  \Tbox{  341}~[tnpos=b]{$    124/    259$}                               }                               \Tbox{  171}~[tnpos=b]{$    312/    591$}                            }                         }                         \pstree{\Tcircle{   43}~[tnpos=l]{\shortstack[r]{\texttt{AdmitTier}\\$\in S_{   43}$}}}{                            \Tbox{   86}~[tnpos=b]{$    411/   1128$}                            \pstree{\Tcircle{   87}~[tnpos=l]{\shortstack[r]{\texttt{ETHNICITY}\\$\in S_{   87}$}}}{                               \pstree{\Tcircle{  174}~[tnpos=l]{\shortstack[r]{\texttt{GPA}\\$\leq     2.90    $}}}{                                  \Tbox{  348}~[tnpos=b]{$    531/   1122$}                                  \Tbox{  349}~[tnpos=b]{$    317/    839$}                               }                               \Tbox{  175}~[tnpos=b]{$     63/    110$}                            }                         }                      }                   }                   \pstree{\Tcircle{   11}~[tnpos=l]{\shortstack[r]{\texttt{EstimateTu}\\$\leq    0.753E+04$}}}{                      \pstree{\Tcircle{   22}~[tnpos=l]{\shortstack[r]{\texttt{ETHNICITY}\\$\in S_{   22}$}}}{                         \pstree{\Tcircle{   44}~[tnpos=l]{\shortstack[r]{\texttt{AdmitTier}\\$\in S_{   44}$}}}{                            \Tbox{   88}~[tnpos=b]{$   1117/   2498$}                            \Tbox{   89}~[tnpos=b]{$     98/    168$}                         }                         \Tbox{   45}~[tnpos=b]{$    164/    306$}                      }                      \pstree{\Tcircle{   23}~[tnpos=l]{\shortstack[r]{\texttt{GPA}\\$\leq     2.80    $}}}{                         \Tbox{   46}~[tnpos=b]{$    285/    611$}                         \Tbox{   47}~[tnpos=b]{$    527/   1364$}                      }                   }                }             }             \pstree{\Tcircle{    3}~[tnpos=l]{\shortstack[r]{\texttt{AdmitTier}\\$\in S_{    3}$}}}{                \pstree{\Tcircle{    6}~[tnpos=l]{\shortstack[r]{\texttt{ETHNICITY}\\$\in S_{    6}$}}}{                   \Tbox{   12}~[tnpos=b]{$    124/    317$}                   \Tbox{   13}~[tnpos=b]{$   2652/   5179$}                }                \pstree{\Tcircle{    7}~[tnpos=l]{\shortstack[r]{\texttt{ETHNICITY}\\$\in S_{    7}$}}}{                   \pstree{\Tcircle{   14}~[tnpos=l]{\shortstack[r]{\texttt{Underrep}\\$\in S_{   14}$}}}{                      \pstree{\Tcircle{   28}~[tnpos=l]{\shortstack[r]{\texttt{GPA}\\$\leq     2.90    $}}}{                         \Tbox{   56}~[tnpos=b]{$     38/     84$}                         \Tbox{   57}~[tnpos=b]{$     45/    127$}                      }                      \pstree{\Tcircle{   29}~[tnpos=l]{\shortstack[r]{\texttt{ACT}\\$\leq     17.0    $}}}{                         \Tbox{   58}~[tnpos=b]{$    521/    870$}                         \Tbox{   59}~[tnpos=b]{$    520/    910$}                      }                   }                   \pstree{\Tcircle{   15}~[tnpos=l]{\shortstack[r]{\texttt{ETHNICITY}\\$\in S_{   15}$}}}{                      \pstree{\Tcircle{   30}~[tnpos=l]{\shortstack[r]{\texttt{EstimateTu}\\$\leq    0.753E+04$}}}{                         \pstree{\Tcircle{   60}~[tnpos=l]{\shortstack[r]{\texttt{GPA}\\$\leq     2.90    $}}}{                            \pstree{\Tcircle{  120}~[tnpos=l]{\shortstack[r]{\texttt{ACT}\\$\leq     18.0    $}}}{                               \pstree{\Tcircle{  240}~[tnpos=l]{\shortstack[r]{\texttt{GPA}\\$\leq     2.60    $}}}{                                  \pstree{\Tcircle{  480}~[tnpos=l]{\shortstack[r]{\texttt{GPA}\\$\leq     2.30    $}}}{                                     \Tbox{  960}~[tnpos=b]{$    141/    238$}                                     \Tbox{  961}~[tnpos=b]{$    140/    197$}                                  }                                  \Tbox{  481}~[tnpos=b]{$    153/    225$}                               }                               \Tbox{  241}~[tnpos=b]{$    805/   1266$}                            }                            \Tbox{  121}~[tnpos=b]{$   2113/   3566$}                         }                         \pstree{\Tcircle{   61}~[tnpos=l]{\shortstack[r]{\texttt{ACT}\\$\leq     23.0    $}}}{                            \Tbox{  122}~[tnpos=b]{$   1153/   1905$}                            \Tbox{  123}~[tnpos=b]{$    686/   1248$}                         }                      }                      \pstree{\Tcircle{   31}~[tnpos=l]{\shortstack[r]{\texttt{GPA}\\$\leq     2.80    $}}}{                         \Tbox{   62}~[tnpos=b]{$    240/    341$}                         \Tbox{   63}~[tnpos=b]{$    441/    694$}                      }                   }                }             }          }                \end{center}              \caption{LOTUS tree: Intermediate and terminal nodes are represented by              circles and squares, respectively. The number inside a node is the              node label and the splitting rule of an intermediate node is given              beside it. If a case satisfies the rule, it goes to the left child node;              otherwise the right child node. The ratio of cases with Y=1 to the              node sample size is given beneath each terminal node.}              \end{landscape}              \end{document}      I changed some parameters in the line:               psset{tnsep=2pt,tnheight=0cm,treesep=.01cm,levelsep=1pt,radius=50pt}      but still cannot see the whole graph. Please help, thanks


title: Beamer notes with color overlay

text: I am having trouble with the overlay system of beamer when using side notes. I have a slide with an overlay specification and I have some notes for each stage of this slide. For example, from the beamer docs:               \documentclass[compress,mathserif]{beamer}     \usepackage{pgfpages}     \usetheme{Frankfurt}     \setbeameroption{show notes}     \setbeameroption{show notes on second screen=right}          \begin{document}     \begin{frame}       \frametitle{There Is No Largest Prime Number}       \framesubtitle{The proof uses \textit{reductio ad absurdum}.}       \begin{theorem}         There is no largest prime number.       \end{theorem}       \begin{proof}         \begin{enumerate}         \item<1-| alert@1> Suppose $p$ were the largest prime number.         \item<2-> Let $q$ be the product of the first $p$ numbers.         \item<3-> Then $q+1$ is not divisible by any of them.         \item<1-> Thus $q+1$ is also prime and greater than $p$.\qedhere         \end{enumerate}       \end{proof}       \note<1->{ note one\\ }       \note<2->{ note 2\\ }       \note<3->{ note 3\\ }       \note<4->{ note 4\\ }     \end{frame}     \end{document}\endinput      With this example, notes appear as the overlay advances. **What I would like is for the notes to be always visible, but somehow highlighted (e.g. in red) in its corresponding slide.** I tried with `\note<1-| alert@1>`, but this didn't work so it seems that I am misunderstanding something about the overlays.


title: How to insert page number in Beamer Navigation Bars?

text: I created a presentation with Beamer, and I used Darmstadt theme. But, this theme doesn't have the page number. I know that I can insert the page number in Footline with:               \setbeamertemplate{footline}[frame number]      But, how can I insert the page number in _"Navigation Bars"_ , like this picture? ![enter image description here](http://i.stack.imgur.com/MqoNb.png)


title: Problems in TOC with appendix as section at the end of a chapter

text: I have an appendix (section) at the end of Chapter 1 that looks like               Appendix 1.A Baz      However, as you can see in the image below, the TOC doesn't display the appendix counter properly (it overlaps) ![Appendix](http://i.stack.imgur.com/s5z3j.jpg) What I want to achieve in the TOC is               1 Foo       1.1 Bar.......       Appendix 1.A Baz......       Here is a MWE:               \documentclass{book}          \usepackage{etoolbox}          \newcommand*{\secappendix}[1]{%       \setcounter{section}{0}%       \renewcommand*{\thesection}{\appendixname\space\thechapter.\Alph{section}}%       \section{#1}\renewcommand*{\thesection}{\thechapter.\Alph{section}}%     }     \pretocmd{\chapter}{\renewcommand*{\thesection}{\thechapter.\arabic{section}}}{}{}          \begin{document}          \frontmatter     \tableofcontents          \mainmatter          \chapter{Foo}     \section{Bar}          \secappendix{Baz}     \end{document}      **EDIT:** The above MWE has further problems when using the `hyperref` package. The hyperlink from the TOC to the appendix heading (wrongly) takes you the first section and the hyperlink to the equation in the appendix takes you to the equation in the first section. I tried the solution suggested in this answer but it doesn't seem to work (in fact I think it doesn't work in the corresponding MWE there). Here is a new MWE including the `hyperref` package.               \documentclass{book}          \usepackage{etoolbox}     \usepackage{lipsum}          \usepackage{amsmath}     \numberwithin{equation}{section}          \newcommand*{\secappendix}[1]{%       \setcounter{section}{0}%       \renewcommand*{\thesection}{\appendixname\space\thechapter.\Alph{section}}%       \section{#1}\renewcommand*{\thesection}{\thechapter.\Alph{section}}%     }     \preto{\chapter}{\renewcommand*{\thesection}{\thechapter.\arabic{section}}}          \usepackage[colorlinks=true]{hyperref}          \begin{document}          \frontmatter     \tableofcontents          \mainmatter          \chapter{Foo}     \section{Bar}     \begin{equation}     \label{eq:1}       1 + 1 = 2     \end{equation}     \lipsum     \secappendix{Baz}     \begin{equation}     \label{eq:2}       2 + 2 = 4     \end{equation}          Hyperlink to \ref{eq:2}     \end{document}      **EDIT 2:** Changing the command to               \newcommand*{\secappendix}[1]{%       \setcounter{section}{0}%       \renewcommand*{\thesection}{\appendixname\space\thechapter.\Alph{section}}%       \renewcommand*{\theHsection}{\thechapter.\Alph{section}}%       \section{#1}\renewcommand*{\thesection}{\thechapter.\Alph{section}}%     }      seems to fix the `hyperref` problem but the TOC issue remains. **Edit 3:** Since I've added a bounty I think I should explain the motivation behind this question. I don't want the appendix of a chapter to be at the same level as the chapter since the appendix is (just) a part of the chapter. Therefore I want to treat appendices as sections. I also want to signal that the appendices are in fact appendices. What I want to achieve is something like this               1 Chapter title       1.1 Section title           1.1.1 Subsection title       Appendix 1.A Appendix title           1.A.1 Appendix subsection title


title: Placing image in second column of two column page

text: I would like to use a two column layout and have images and text in the second column begin at the top of the page and continue down with even spacing. I've tried using the `multicol` package as well, but no luck. LaTeX is spacing it so that the images are evenly distributed on the second page.               \documentclass[11pt]{article}     \usepackage{graphicx}     \usepackage{setspace}     \usepackage{xfrac}     \usepackage[T1]{fontenc}     \usepackage{ae,aecompl}     \usepackage[hmargin=1.5cm,vmargin=1.5cm]{geometry}     \usepackage[justification=justified]{caption}     \pagenumbering{gobble}     \usepackage{fancyhdr}     \pagestyle{fancy}     \setlength{\parskip}{0.5in}     \setlength{\parindent}{0in}     \setlength{\headheight}{10pt}     \showcolsendrule     \captionsetup{%         singlelinecheck=false,         tableposition=top,         labelformat=empty,labelsep=none,skip=.1in     }          \begin{document}     \twocolumn}     \renewcommand{\headrulewidth}{0pt}     \lhead{\bfseries Name:    \\  Date: }          \chead{}     \rhead{\bfseries 6th Grade Math  \\   }     \begin{figure}[H]     \caption{1) Find the area.}     \includegraphics[scale=.9]{/var/www/asymptote/pdf/parallelogram_a_3_1.pdf}     \end{figure}          \begin{figure}[H]     \caption{2) Find the area.}     \includegraphics[scale=.9]{/var/www/asymptote/pdf/parallelogram_a_3_4.pdf}     \end{figure}          .....      The results are shown here: ![enter image description here](http://i.stack.imgur.com/Qcdko.jpg) Basically, I would like problem #8 shown in in the screenshot to be at the top of the second column, and any problems after #8 to be shown with even spacing below it.


title: How to make a figure continue on the next page

text: My code is:               \documentclass[twoside, a4paper, 11pt]{article}     \title{}     \author{}     \usepackage{ragged2e}     \usepackage{booktabs,tabularx}     \usepackage{amsfonts}     \usepackage{amsthm}     \usepackage{mathtools}     \usepackage{verbatim}     \usepackage{amsmath, amssymb}     \usepackage{natbib}     %\def\pgfsysdriver{pgfsys-dvipdfm.def}     \usepackage{tikz}     \usepackage{enumerate}     \usetikzlibrary{matrix, arrows}     \usepackage{graphicx}     \usepackage{listings}     \usepackage{color}     %\usepackage{hyperref}     \usepackage{float}     \usepackage{multicol}     \usepackage{booktabs}     \usepackage{lscape}     \usepackage{cases}     \usepackage{multirow}     \usepackage{rotating}     \usepackage{setspace}     \usepackage{lscape}     \usepackage{caption}     \usepackage[update,prepend]{epstopdf}     %\usepackage{mathpazo}     %\usepackage{eulervm}     %\usepackage{iwona}     \usepackage[pdftex,colorlinks,linkcolor=blue,citecolor=blue]{hyperref}     \usepackage[official]{eurosym}          \setlength{\textwidth}{6.5in}     \setlength{\oddsidemargin}{0in}     \setlength{\evensidemargin}{0in}     \setlength{\parindent}{0pt}     \setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}          \linespread{1.5}          \usepackage[top=2.5cm, bottom=2.5cm, left=2cm, right=2cm]{geometry}          \raggedbottom          \everymath{\displaystyle}           \newcommand{\pder}[2][]{\frac{\partial#1}{\partial#2}}          \renewcommand\textfraction{.1}          \begin{document}          %Figure      \begin{figure}       \centering       \caption{\textbf{Bank Joint Probability of Default (\textit{JPoD}), Conditional Joint Probability of Default (\textit{CoJPoD}) and Change in the Conditional Joint Probability of Default ($\Delta$\textit{CoJPoD})} \\  \fontsize{10pt}{12pt}\selectfont Panel A presents the average joint probability of default of banks sorted by their originating sovereign. Table~\ref{bankabbreviation} provides a list of the originating sovereigns of the 26 banks. Panel B presents conditional joint probability of default of the banking system given the default of the corresponding sovereign listed in the legend. The abbreviations of the sovereigns are listed in Table~\ref{sovcorrelation}. Panel C presents the change in the conditional joint probability of default of the banking system given the default of the corresponding sovereign listed in the legend. The $\Delta$\textit{CoJPoD} of each series is derived by conditioning the bank joint probability of default on the corresponding sovereign listed in the legend and then computing the difference between the \textit{CoJPoD} and the \textit{JPoD}. In all three panels, non-zero correlation matrices are used to derive bank \textit{JPoD}, \textit{CoJPoD} and $\Delta$\textit{CoJPoD}. The non-zero correlation matrices are based on daily changes in the 5-year CDS spreads of sovereign and bank CDS contracts. The sample period for all three panels is from 01/01/2008 to 28/02/2013.}       \label{bankjpodcojpodDcojpod}          \vspace{0.5 cm}          \begin{center}     \fontsize{10pt}{12pt}\selectfont Panel A: Bank \textit{JPoD}     \end{center}     \includegraphics[scale=0.8]{25.pdf}          \vspace{1 cm}          \begin{center}     \fontsize{10pt}{12pt}\selectfont Panel B: Bank \textit{CoJPoD}     \end{center}     \includegraphics[scale=0.8]{9.pdf}               \end{figure}               %Figure     \begin{figure}     \vspace{-1.8cm}       \centering       \caption{\textbf{Bank Joint Probability of Default (\textit{JPoD}), Conditional Joint Probability of Default (\textit{CoJPoD}) and Change in the Conditional Joint Probability of Default ($\Delta$\textit{CoJPoD})}}       \label{bootstrapbank}          \vspace{0.5 cm}          \begin{center}     \fontsize{10pt}{12pt}\selectfont Panel C: Bank $\Delta$\textit{CoJPoD}     \end{center}     \includegraphics[scale=0.8]{10.pdf}          \vspace{8 cm}          \end{document}      The output appears as: ![enter image description here](http://i.stack.imgur.com/3G7D8.jpg) ![enter image description here](http://i.stack.imgur.com/PXC1R.jpg) Everything is good, however instead of "Figure 6" appearing on the next page, I would like it to say "Figure 5 (Cont.):" Currently it automatically renames it as a new figure. How can I do this? * * * EDIT: This is what I have now (with the `subfig` package)               %Figure      \begin{figure}       \centering       \caption{\textbf{Bank Joint Probability of Default (\textit{JPoD}), Conditional Joint Probability of Default (\textit{CoJPoD}) and Change in the Conditional Joint Probability of Default ($\Delta$\textit{CoJPoD})} \\  \fontsize{10pt}{12pt}\selectfont Panel A presents the average joint probability of default of the banking system with each of the 10 Euro Area (EA) sovereigns. Panel B presents conditional joint probability of default of the banking system given the default of the corresponding sovereign listed in the legend. Panel C presents the change in the conditional joint probability of default of the banking system given the default of the corresponding sovereign listed in the legend. The $\Delta$\textit{CoJPoD} of each series is derived by conditioning the bank joint probability of default on the corresponding sovereign listed in the legend and then computing the difference between the \textit{CoJPoD} and the \textit{JPoD}. For all three panels, the abbreviations of the sovereigns are listed in Table~\ref{sovereignabbreviation}. Non-zero correlation matrices are used to derive bank \textit{JPoD}, \textit{CoJPoD} and $\Delta$\textit{CoJPoD}. The non-zero correlation matrices are based on daily changes in the 5-year CDS spreads of sovereign and bank CDS contracts. The sample period for all three panels is from 01/01/2008 to 28/02/2013.}       \label{bankjpodcojpodDcojpod1}          \vspace{0.5 cm}          \begin{center}     \fontsize{10pt}{12pt}\selectfont Panel A: Bank \textit{JPoD}     \end{center}     \includegraphics[scale=0.8]{25.pdf}          \vspace{1 cm}          \begin{center}     \fontsize{10pt}{12pt}\selectfont Panel B: Bank \textit{CoJPoD}     \end{center}     \includegraphics[scale=0.8]{9.pdf}               \end{figure}               %Figure     \begin{figure}     \vspace{-1.8cm}     \ContinuedFloat       \centering       \caption{\textbf{Bank Joint Probability of Default (\textit{JPoD}), Conditional Joint Probability of Default (\textit{CoJPoD}) and Change in the Conditional Joint Probability of Default ($\Delta$\textit{CoJPoD})}}       \label{bankjpodcojpodDcojpod2}          \vspace{0.5 cm}          \begin{center}     \fontsize{10pt}{12pt}\selectfont Panel C: Bank $\Delta$\textit{CoJPoD}     \end{center}     \includegraphics[scale=0.8]{10.pdf}          \vspace{8 cm}               \end{figure}      Strangely, the figure where I used `\continuedfloat` is named as "Figure 4" and the figure following it is now renamed to Figure 5 (instead of staying as Figure 6), the output is: ![enter image description here](http://i.stack.imgur.com/4WVwE.jpg) ![enter image description here](http://i.stack.imgur.com/24fwK.jpg) ![enter image description here](http://i.stack.imgur.com/mcnnA.jpg) Furthermore, I would like to have word (Cont.) before the colon, so that the continued figure is named as Figure 5 (Cont.): rather than Figure 5: (Cont.)


title: Corrupted TeXLive2012 installation? (Option clash for currfile)

text: ## Background: As per Manually copy older TeXLive2011 from one Mac to a new Mac, I attempted to get TeXLive2010 and TeXLive2011 (with the latest libraries) on a newer mac. The older releases are not available now that TeXLive2012 is the current release. Based on the comments there, I copied over various files/directories and thought all was well as I could select between all three versions on my new mac. So I gave up my older mac... The older releases appeared to work once I replaced the **entire** directory `/Library/TeX/Distributions` with the old version. ## Problem: But now, with TeXLive2012, and the simple document below I get: > LaTeX Error: Option clash for package currfile. ## Attempted Fix: Thinking that my TeXLive2012 got corrupted I reinstalled TeXLive2012 (without deleting the earlier version) and updated all the packages. This yields: > Cannot open /usr/local/texlive/2011/texmf-dist/web2c/updmap.cfg for writing: > No such file or directory at > /usr/local/texlive/2012/tlpkg/TeXLive/TLUtils.pm line 2818. More details of this log file are below. ## Question:   * Can someone confirm that the file below compiles fine for you with TeXLive2012.   * What is the minimum directories/files that I should delete before attempting to reinstall TeXLive2012? I would very much like to keep the TeXLive2010 and TeXLive2011 releases and not loose them in the process. Is there perhaps something simpler I could do to resolve this? ## Code:               \documentclass{standalone}          \usepackage{standalone}% moving this after currfile is loaded does not result in error.     \usepackage[realmainfile]{currfile}%           \begin{document}     \end{document}      ## TexLive Utility Log               2012-08-24 17:40:41 -0700 Warning tlu_ipctask[11509]    tlmgr: package log updated at /usr/local/texlive/2012/texmf-var/web2c/tlmgr.log     2012-08-24 17:40:41 -0700 Warning tlu_ipctask[11509]    running mktexlsr ...     2012-08-24 17:40:41 -0700 Notice tlu_ipctask[11509] Installation complete; reconfiguring TeX Live     2012-08-24 17:40:45 -0700 Warning tlu_ipctask[11509]    done running mktexlsr.     2012-08-24 17:40:45 -0700 Warning tlu_ipctask[11509]    running mtxrun --generate ...     2012-08-24 17:40:54 -0700 Warning tlu_ipctask[11509]    done running mtxrun --generate.     2012-08-24 17:40:57 -0700 Warning tlu_ipctask[11509]    Cannot open /usr/local/texlive/2011/texmf-dist/web2c/updmap.cfg for writing: No such file or directory at /usr/local/texlive/2012/tlpkg/TeXLive/TLUtils.pm line 2818.     2012-08-24 17:40:59 -0700 Notice -[TLMAuthorizedOperation _runUntilChildExit][11149]    kqueue noted that pid 11510 exited (/usr/texbin/tlmgr --repository http://ctan.mirrors.hoobly.com/systems/texlive/tlnet/ --machine-readable --persistent-downloads update --all)     2012-08-24 17:40:59 -0700 Notice tlu_ipctask[11509] child process pid = 11510 exited     2012-08-24 17:41:00 -0700 Error tlu_ipctask[11509]  Value of errno is Invalid argument     2012-08-24 17:41:00 -0700 Error tlu_ipctask[11509]  *** ERROR *** exit status of pid = 11510 was 2     2012-08-24 17:41:00 -0700 Notice -[TLMAuthorizedOperation _runUntilChildExit][11149]    waitpid returned 11509, WIFEXITED(512) = 1, errno = 0 (No error)     2012-08-24 17:41:00 -0700 Notice -[TLMAuthorizedOperation _runUntilChildExit][11149]    kqueue noted that tlu_ipctask (pid = 11509) exited with status 2     2012-08-24 17:41:10 -0700 Notice -[TLMLogWindowController awakeFromNib][11149]  Loaded log window controller


title: How to get a correct end of sentence space for the next sentence if the previous one is followed by \pause?

text: \documentclass{beamer}          \begin{document}     \begin{frame}[t]{Proverbs}          think. Thus (correct)\newline     \pause     think.\pause\ Thus (wrong)          \end{frame}     \end{document}      How to get a correct end of sentence space for the next sentence if the previous one is followed by `\pause`?


title: Corrupted TeXLive2012 installation? (File `l3candidates.sty' not found)

text: This is a follow up to my earlier question, Corrupted TeXLive2012 installation? (Option clash for currfile). Refer to that question for the history. With an "updated" TeXLive2012, I am now getting: > LaTeX Error: File `l3candidates.sty' not found. with this simple example:               \documentclass{standalone}     \usepackage{expl3}          \begin{document}     \end{document}      The TeXLive Utility says everything is up to date. ## Question:   * Can someone confirm that the file above compiles fine for you with TeXLive2012.   * What is the minimum directories/files that I should delete before attempting to reinstall TeXLive2012? I would very much like to keep the TeXLive2010 and TeXLive2011 releases and not loose them in the process. Is there perhaps something simpler I could do to resolve this?


title: graphics outside trimmedsize, extra wide headers and footers

text: 1. How to place (absolute positioning?) graphics inside and outside trimmedsize (part of image is inside trimmedsize and tiny part is outside)?   2. How to make headers and footers wider than textwidth?   3. How to make headers and footers wider than stockwidth?   4. How to lay 2 pages (left next to right) on one stock material, see image: ![](http://i43.tinypic.com/egcpsj.jpg)


title: Wrong page numbering for TOC

text: For the MWE below:               \title{TITLE}           \documentclass[a4paper,11pt,twoside]{report}     \usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry}     \usepackage[T1]{fontenc}     \usepackage{fancyhdr}     \usepackage{setspace}     \begin{document}          %%%%%%%%%%%%%%%     % TITLE PAGE %%%%%     %%%%%%%%%%%%%%%     \maketitle %Title page          %make an empty page     \newpage     \thispagestyle{empty}     \mbox{}     %%%%%%%%%%%%%%%          \begin{abstract}     \noindent     abstract     \end{abstract}          \newpage          \thispagestyle{empty} %Empty page          \begin{center}     \vspace*{10cm}     Some acknowledgment     \end{center}          \vspace*{3.5cm} %space so that page stays empty          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % For header and footers %%%%%%%%%%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \pagestyle{fancyplain}     % Clear the default     \fancyhead{}     \fancyfoot{}     \renewcommand{\footrulewidth}{0.4pt}     \fancyfoot[CO,CE]{\thepage}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%% CONTENTS PAGE      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \renewcommand*\contentsname{Table of Contents}     \setcounter{page}{1}     \begin{spacing}{1.0}     \pagenumbering{Roman}     \tableofcontents     \end{spacing}     \newpage          \end{document}      Why does the title page starts from II instead of I ? It was fine until I added the part `%make an empty page`. Any ideas ?


title: Measuring align

text: From what I read it seems that `align` environments are processed twice: the first time for measuring, the second time for actual typesetting. My question is whether one can get access to these measurements? The goal would be to draw a TikZ overlay graphic whose elements are placed relative the formulas of the `align` environment. For the sake of concreteness, suppose I want to draw a dot at the lower right corner of a matrix in an `align` environment. One might try something like this:               \documentclass{amsart}     \usepackage{tikz}     \newsavebox{\mybox}     \newlength{\myheight}     \newlength{\mywidth}     \begin{document}     \savebox{\mybox}     {       $\displaystyle       \left(       \begin{array}{ccc}       a_{1,1}&a_{1,2}&a_{1,3}\\       a_{2,1}&a_{2,2}&a_{2,3}\\       a_{3,1}&a_{3,2}&a_{3,3}       \end{array}       \right)$     }     \settoheight{\myheight}{\usebox{\mybox}}     \settowidth{\mywidth}{\usebox{\mybox}}     \begin{tikzpicture}[overlay,xshift=\mywidth,yshift=-\myheight]        \filldraw         (0,0) circle (1.5pt);     \end{tikzpicture}     \begin{align*}       \left(       \begin{array}{ccc}       a_{1,1}&a_{1,2}&a_{1,3}\\       a_{2,1}&a_{2,2}&a_{2,3}\\       a_{3,1}&a_{3,2}&a_{3,3}       \end{array}       \right)     \end{align*}     \end{document}      Of course this does not work for various reasons, most importantly, because the matrix does not sit in the upper left corner of the align space. For starters I would also be happy about knowing how to achieve the same for a usual display environment, where it should be easier because the formatting is more predictable. Edit: egreg's comment below works for me (thanks!).


title: "Fill in the missing words" needs line breaking before a \phantom{word}, and a list of removed words

text: Apologies for the very long title. I'm writing a "fill in the missing words" document. I have made a makro `\fjern{}` ("remove" in Norwegian) which underlines the argument and places it in a `phantom` environment. Questions:   1. In the provided MWE I get a nasty overfull `hbox`. Is there a way that I can avoid this without going `raggedright` on the entire document?   2. I would like to print all the words I have removed in a random order, preferably with an option to print, or not to print, words occurring several times (differentiation for the students). How can I do this? I have absolutely no clue... (it would be absolutely awesome if a `solution` option could print the removed words in the correct places, highlighted somehow) MWE:               \documentclass[12pt, a4paper, norsk]{article}          \usepackage{babel}     \usepackage[utf8]{inputenc}     \usepackage{fouriernc}     \usepackage[margin=1in]{geometry}          \usepackage{parskip}          \newcommand\fjern[1]{\underline{\phantom{#1}}}          \begin{document}     \section*{Vokabular} % (fold)     \label{sec:vokabular}          \LARGE Et \fjern{atom} består av \fjern{protoner} og \fjern{nøytroner} i kjernen, med \fjern{elektroner} som kretser rundt. \fjern{Protoner} har en positiv ladning, \fjern{nøytroner} er nøytralt ladet og \fjern{elektroner} har en negativ ladning.      % Print the removed words     \vspace{4em}     \textbf{Sett inn ordene:} atom, protoner, nøytroner, elektroner          % section vokabular (end)     \end{document}      producing ![enter image description here](http://i.stack.imgur.com/emaXR.png)


title: Dotted or dashed xrightarrow

text: I need a dotted or dashed arrow with text like `\xrightarrow`. I am aware of the `MnSymbol` package, but `\dashedrightarrow` does not allow me to write text on the arrow. Is there a package to accomplish what I want to do?


title: Simple directed hypergraphs in TikZ

text: I'm looking for a simple way in Tikz to draw directed hypergraphs, where the hyperedges are ordered pairs of sets of vertices. For example I would like the hyperedges ({a,b},{c}) and ({c},{a,b}) to be presented like this: ![enter image description here](http://i.stack.imgur.com/7Js0k.png) The "in" vertices (on the left) should be vertically aligned, as should the "out" vertices (on the right). For my purposes, there are never more than two "in" vertices or two "out" vertices, and I would be happy to have this baked into the solution. The solution should be flexible enough to accommodate node labels larger than the single characters shown here. I would also like to be able to assemble these into larger hypergraphs, as shown here, in which case the arms of the hyperedges need not be of the same length: ![enter image description here](http://i.stack.imgur.com/iEr7k.png) although the "direction" will always be read from left to right. I'm not concerned with overlapping lines (I'll only be working with simple graphs and will be able to arrange things so lines don't overlap). It should be easy to move the nodes around for aesthetic reasons, so that for example the following is the graph above but laid out slightly differently: ![enter image description here](http://i.stack.imgur.com/SyaAh.png) The title of this question is similar, but my requirements are slightly different.


title: Hansen-like chapter heading

text: I'm trying to customize the `book` class chapter headings. Something similar to memoir `Hansen` chapter style might be cool. But I'm quite stuck right now since I can't make the chapter title overlap the chapter number. ![enter image description here](http://i.stack.imgur.com/hP5Z4.png) Here is the code I use. Any help would be very much appreciated.               \newcommand{\chapnumfont}{%         \raggedleft%         \usefont{T1}{jkp}{b}{n}%         \fontsize{100}{130}\selectfont%         \color{DarkCyan}\raggedleft}          \newcommand{\chaptitlefont}{%         \raggedleft%         \usefont{T1}{qhv}{b}{n}%         \fontsize{22}{1pt}\selectfont%         \color{Black}}          \newcommand\thickhrule{\leavevmode \leaders \hrule height 2pt \hfill \kern \z@}          \makeatletter     \renewcommand{\@makechapterhead}[1]{%         \vspace*{10\p@}%         {\parindent \z@ \reset@font%             \parbox{.2\textwidth}{\chapnumfont \thechapter }             {\raggedleft\chaptitlefont #1\par\nobreak}%             \par\nobreak                 \vspace*{20\p@}%                 \thickhrule                 \vskip 40\p@                 \vskip 100\p@         }}     \makeatother      * * * To extend the question, now that I realize the chapter number may not be visible enough, how would you do make the same thing but avoid the title overlapping the number? Basically the same as below but the number on the other side. ![enter image description here](http://i.stack.imgur.com/87kH8.png) This picture as been produced with the following code.               \titleformat{\chapter}         {\thispagestyle{empty}\vspace{50pt}\normalfont\huge\bfseries}         {\filleft{\parbox{.2\textwidth}{\chapnumfont\color{chapnumcolor}\thechapter}}}         {0pt}         {\Huge{\parbox{.8\textwidth}{\chaptitlefont #1}}}[\vspace{2ex}{\titlerule[2pt]}]


title: TeXstudio: How to highlight text in \emph or \textit command, for example?

text: Is there a way to configure TeXstudio so that emphasized text will display in the editor in italics, for example: > \emph{ _some text_ } The custom highlighting seems to apply only to environments or to commands, but does not seem to allow for the highlighting of the text within commands. This seems strange to me because we can change the font sized and characteristics for text in sectionning commands.


title: Feynmf doesn't produce feynman diagram at all in TXC

text: I am trying to draw a feynman diagram using feynmf in TXC. I use the following code                   \documentclass{article}         \usepackage{feynmf}         \begin{document}         \unitlength = 1mm         % determine the unit for the size of diagram.         ... here comes an example with feynmf          \begin{fmffile}{one}   %one.mf will be created for this feynman diagram              \fmfframe(1,7)(1,7){     %Sets dimension of Diagram            \begin{fmfgraph*}(110,62) %Sets size of Diagram             \fmfleft{i1,i2} %Sets there to be 2 sources              \fmfright{o1,o2}    %Sets there to be 2  outputs             \fmflabel{$e^-$}{i1} %Labels one of the left sources             \fmflabel{$e^+$}{i2} %Labels one of the left sources             \fmflabel{${\ensuremath{\erlpm}}$}{o1} %Labels one of the right outputs             \fmflabel{${\ensuremath{\erlpm}}$}{o2} %Labels one of the right outputs             \fmf{fermion}{i1,v1,i2} %Connects the sources with a vertex.             \fmf{fermion}{o1,v2,o2} %Connects the outputs with a vertex.             \fmf{photon,label=$\gamma/Z^0$}{v1,v2} %Labels the conneting line.            \end{fmfgraph*}           }         \end{fmffile}      The thing is, that no error occurs, however no diagram is printed. Searching the web I found that I have to run LaTeX, then run metafont and run LaTeX again. Somehow I have to pre-produce the file "ome.mf" and run, I don't know how to do it, though. Any ideas?


title: How to use a counter in a \bookmark dest name within \BookmarkAtEnd?

text: I'm trying to do something similar as in this question. I would like to use the value of a counter in the name of a `\hypertarget` and in addition, I want to be able to refer to this name in a `\bookmark` inside a `\BookmarkAtEnd`. Here is a MWE of what I'm trying to do:               \documentclass{article}     \usepackage{hyperref}     \usepackage[atend]{bookmark}     \BookmarkAtEnd{\bookmark[level=0,named=LastPage]{Foos}}     \newcounter{foo}     \newcommand{\foo}{       \refstepcounter{foo}       \def\target{foo\arabic{foo}}       \hypertarget{\target}{Foo: \target}       \BookmarkAtEnd{\bookmark[level=1,dest=\target]{\target}}     }     \begin{document}     \foo          \foo     \end{document}      The bookmarks show up alright but the problem is they both link to the last target. As can be seen from the output of the MWE, the problem is that everything inside `\BookmarkAtEnd` is not expanded until the end of the document. Is there a way to make sure the calls to `\target` inside `\BookmarkAtEnd` are expanded right away?


title: Command \excludeonly for sections

text: I understand that there is an `\excludeonly{xyz}` command where `xyz` is a LaTeX file name (explained here). This excludes the specified file(s) from compilation. My question is if there is equivalent command for `xyz` being a specific section within a file. So lets say my source latex file (say `source.tex`) is:               \usepackage{....}          \begin{document}     \section{Chapter 1}     ...          \section{Chapter 2}     ...          \section{Chapter 3}     ...          \section{Chapter 4}     ...          \end{document}      and my compiled file (say `thesis.tex`) is:               \documentclass{article}      \input{source}      How can I exclude, say Chapter 2, from the compilation process. Apologies if this has been answered before (I couldn't find it).


title: How to randomly extract some pages of a PDF file, sort their pages, and finally bundle them into a new PDF?

text: Some books in amazon.com have excerpts (first several pages plus appendixes) from which we can know their contents, layouts, etc roughly prior to purchasing. Statistically I think it will be better if an excerpt is made by extracting some pages (30-50 pages might be enough) of the corresponding book at random, sort their pages in increasing order, and finally bundle them in to a new PDF. My question is: how to do it in LaTeX? ## _Minimal Working Example_               % compile with pdflatex -shell-escape      % =============================================================================================     \def\NoticeThatIAmUsingThisPackageToExtractSomePagesFromAnExternalPDFFileInMyComputer{pdfpages}     % =============================================================================================     \documentclass{article}     \usepackage{filecontents}     \begin{filecontents*}{book.tex}     \documentclass{book}     \usepackage{blindtext}     \begin{document}     \Blinddocument     \end{document}     \end{filecontents*}          \immediate\write18{pdflatex book.tex}     \immediate\write18{pdflatex book.tex}               \usepackage{\NoticeThatIAmUsingThisPackageToExtractSomePagesFromAnExternalPDFFileInMyComputer}          \def\NumberOfPagesOfExcerpt{50}          \begin{document}          % do randomization, sorting and bundling here!     % \includepdf[pages=-]{book}     \end{document}


title: Problem with centering Images in a column (beamer)

text: I have a strange problem centering an image in a column. I m going to create a presentation with `Beamer` and I created a slide with 2 columns. The idea (conceptually) is to display the first image, then the second and then comes the last one which should replace the first 2 BUT be vertically centered I don t know how, but my last image goes at the bottom of the slide. Here is the code:               \documentclass{beamer}     \usepackage[utf8x]{inputenc}     \usepackage{default}     \usepackage{amsmath,amsfonts,amssymb}     \usepackage{graphicx}     \usepackage{xmpmulti}     \graphicspath{{bilder_pre/}}     \usetheme{Warsaw}     \setbeamercovered{transparent}     \setbeamertemplate{items}[ball]     \begin{document}     \begin{frame}{TEXT - \textsl{TEXT TEXT TEXT}}           \begin{block}{Auswirkung der dcckbcskjcbsc}           Kommentar      \end{block}           \begin{columns}           \begin{column}{0.33\textwidth}                          \visible<1-2>{\includegraphics[scale=0.2]{foto1}}                     \visible<2>{\includegraphics[scale=0.2]{foto2}}%                     \llap{\includegraphics<3->[scale=0.2]{foto3}}                \end{column}                \begin{column}{0.33\textwidth}     %                   \includegraphics<1->[scale=0.2]{Abbildung4_2}           \end{column}                \begin{column}{0.33\textwidth}      %                   \includegraphics<1>[scale=0.2]{Abbildung4_1}           \end{column}      \end{columns}          \end{frame}               \end{document}      I tried every combination: `\centering{}`, `\parbox`, `\begin{overlayarea}` and `\begin{overprint}`. No matter... What could I do? ![enter image description here](http://i.stack.imgur.com/shfZR.jpg) ![enter image description here](http://i.stack.imgur.com/C5XZG.jpg)


title: Using both times and eulervm packages

text: I'm adopting for my thesis times new roman as text font and eulervm for math fonts. Which is the correct package for times to use?


title: footnote rule on cover page

text: I have a document with a cover page and foonote. I would like to add a rule above the foonote. What is the way to do this?               \documentclass[english,titlepage]{article}     \begin{document}          \title{ddd}               \author{ccc%     \thanks{bbb%     }}     \maketitle     \begin{abstract}     aaa     \end{abstract}     \maketitle          \end{document}


title: How to make multi-page table with text wrap and auto-width?

text: So, as far as I understand, I can use the `tabularx` package to make auto- width tables with text wrap. Also, there is `supertabular` which allows me to make tables span across pages. How do I make a table that:   1. Occupies the whole page horizontally.   2. Spans across multiple pages preserving its header.   3. Automatically selects certain column widths. `tabularx`'s X-style.   4. Wraps text in the columns. ?


title: Image has invalid character? Trouble with graphicx

text: I'm sort of stumped on this one. I'm trying to include some graphics that I created with Stata in a document. I'm using pdfLaTeX and `graphicx`. When I try to compile, I get the error message:               ERROR: Text line contains an invalid character.          --- TeX said ---     l.1 ^^@                ^^PJFIF^^@^^A^^A^^A^^A,^^A,^^@^^@^^@C^^@^^A^^A^^A^^A^^A^^A^^A^^..."      My file is very simple:               \documentclass{article}     \usepackage{graphicx}     \usepackage{graphicx}     \begin{document}          \input{jpeg/math.eps.jpeg}     \end{document}      I've tried using EPS, JPEG and PDF with the `pdftex` option for `graphicx`. Any ideas?


title: Chapterwise page range in the TOC including bibliography and index

text: The provided solution "Chapterwise page range in the TOC" is working fine with chapter's range only. But it is not working with References' section and Appendix. Kindly provide a suitable solution.


title: List Version of \str_if_eq

text: I am using `\str_if_eq:xxTF{\A}{\Target}{<true>}{<false}` to execute the `<true>` or `<false>` code if `\A`=`\Target`. What is the list version equivalent of this? So I am looking for something such as               \str_if_in_list:xxTF{\A}{\TargetList}{<true>}{<false}      which executes the appropriate `<true>`/`<false>` if `A` is in the _list_ (CSV) `\TargetList`? I have to admit I have not tried for too long on this as I really can't read `expl3` syntax yet, but a few of the macros presented at Using Expl3 token- list variables where token lists are called for looked interesting, but I was not able to get them to work. So, in the MWE below, by changing `\GetTexFilePath` and `\GetTexFilePathExpandable` the last three lines should _not_ have an `xxx` in the directory path. The current output is: ![enter image description here](http://i.stack.imgur.com/JOlFr.png) ## Notes:   * The `\TargetList` is always a macro that contains the list.   * The source of the comparison is _usually_ a value declared with `\newtoks` as per the MWE below (not sure if that matters). * * * ## References: Before people get the wrong idea and think that I actually understand some `expl3` syntax, here is where that code originated from:   * Text being output when none should be   * How to expand values stored in a token defined by newtoks Possible clue to solution:   * Using Expl3 token-list variables where token lists are called for * * * ## Code:               \documentclass{article}     \usepackage{xparse}          \newcommand{\NotSpecialDirectory}{foo}          %% These directories should never have an "xxx" in the path.     %% The values here do NOT change at run time.     %% http://tex.stackexchange.com/questions/46323/how-to-expand-values-stored-in-a-token-defined-by-newtoks     \protected\def\SpecialDirectory{AAA}     \protected\def\SpecialDirectoryB{BBB}     \protected\def\SpecialDirectoryC{CCC}               %% The list of members here do NOT change at run time.     \newcommand{\ListOfSpecialDirectories}{%         \SpecialDirectory,%         \SpecialDirectoryB,%          \SpecialDirectoryC,% <-- would prefer to be allowed extra comma here, but                            %     can do without that if it adds too much complexity     }          \newtoks{\CurrentDirectory}               \ExplSyntaxOn%%% These work fine...     % Determine path: Always #1/xxx#2/#3 unless #1=\SpecialDirectory     \NewDocumentCommand{\GetTexFilePathOld}{m m m}{%         \str_if_eq:xxTF{#1}{\SpecialDirectory}{#1/#2/#3}{#1/xxx#2/#3}%     }%               \DeclareExpandableDocumentCommand{\GetTexFilePathExpandableOld}{m m m}{%         \str_if_eq:xxTF{#1}{\SpecialDirectory}{#1/#2/#3}{#1/xxx#2/#3}%     }%               %%% how do I define these ...     % Determine path: Always #1/xxx#2/#3 unless #1 is in \ListOfSpecialDirectories          % Don't work: % \tl_if_in:nnTF  \str_if_in:nnTF,  \str_if_in:xxTF     \NewDocumentCommand{\GetTexFilePath}{m m m}{%         \str_if_eq:xxTF{#1}{\ListOfSpecialDirectories}{#1/#2/#3}{#1/xxx#2/#3}%     }%               \DeclareExpandableDocumentCommand{\GetTexFilePathExpandable}{m m m}{%         \str_if_eq:xxTF{#1}{\ListOfSpecialDirectories}{#1/#2/#3}{#1/xxx#2/#3}%     }%     \ExplSyntaxOff                    \begin{document}     \noindent\textbf{These work fine:}          \CurrentDirectory={\NotSpecialDirectory}     Should have xxx in path:          \GetTexFilePathOld{\the\CurrentDirectory}{2012}{01},         \GetTexFilePathExpandableOld{\the\CurrentDirectory}{2012}{02}          \CurrentDirectory={\SpecialDirectory}     \medskip\par Should \emph{not} have xxx:          \GetTexFilePathOld{\the\CurrentDirectory}{2013}{03},         \GetTexFilePathExpandableOld{\the\CurrentDirectory}{2013}{04}          \bigskip\hrule\bigskip     \noindent\textbf{Paths starting with AAA, BBB, or CCC should not have an xxxx in the path}          \medskip\par     \CurrentDirectory={\NotSpecialDirectory}     Should have xxx in path:          \GetTexFilePath{\the\CurrentDirectory}{2012}{05},         \GetTexFilePathExpandable{\the\CurrentDirectory}{2012}{06}          \CurrentDirectory={\SpecialDirectory}     \medskip\par Should \emph{not} have xxx:          \GetTexFilePath{\the\CurrentDirectory}{2013}{07},         \GetTexFilePathExpandable{\the\CurrentDirectory}{2013}{08}          \CurrentDirectory={\SpecialDirectory}     \medskip\par Should \emph{not} have xxx:          \GetTexFilePath{\the\CurrentDirectory}{2013}{09},         \GetTexFilePathExpandable{\the\CurrentDirectory}{2013}{10}          \CurrentDirectory={\SpecialDirectoryB}     \medskip\par Should \emph{not} have xxx:          \GetTexFilePath{\the\CurrentDirectory}{2013}{01},         \GetTexFilePathExpandable{\the\CurrentDirectory}{2013}{11}     \bigskip     \end{document}


title: Stack figures in horizontal plane in 3D rectangular shape without loss of quality

text: I am plotting figures on GMT but it does not support some features in gridview. So I want stack each figure on different platforms below each other. E.g. I want to add each image like the following ![Stack of figures](http://i.stack.imgur.com/9APOJ.jpg)


title: Tikz: How to split Nodes and position Text in it

text: I have a really big problem: I need a TikZ node that looks like that: ![https://dl.dropbox.com/u/79761558/nodeproblem.png](http://i.stack.imgur.com/duPN1.png) but i have no idea how to split the node like that. Esecially the "more text" is a big problem. All i tried ended in errors. So I'm at the beginning again. Can anybody out there help me please?. my last code did look like that but didn't work...               \documentclass{standalone}          \usepackage{tikz}     \usetikzlibrary{shapes}     \usetikzlibrary{arrows}     \usetikzlibrary{calc,positioning}          \begin{document}     \begin{tikzpicture}       \node[name=data, rectangle split, rectangle split horizontal, rectangle split draw    splits=false, draw, rounded corners=5pt] {1 \nodepart{two} 2 \nodepart{three} 3    \nodepart{four} 4 \nodepart{five} 5 \nodepart{six} 6};       \foreach \subnode in {1,...,5}% counter goes 1 to number_of_subnodes-1       {\draw[dashed] ($(data.north east)!{\subnode*0.25}!(data.north west)$) -- ($(data.south east)!{\subnode*0.25}!(data.south west)$);}     \end{tikzpicture}     \end{document}      * * * One more Question: Why is CMD not centered???               \node[name=data, rectangle split, very thick,         rectangle split horizontal,          rectangle split parts=6,          rectangle split draw splits=true,          draw, rounded corners=2pt,         label={[fill=white,inner sep=0pt,font=\tiny]center:Daten/Parameter},         align=center,         text width=2.5em,         inner sep=2pt,         font=\tiny] at (mega88)          {CMD\nodepart{two} ~              \nodepart{three} ~                 \nodepart{four} ~             \nodepart{five} ~              \nodepart{six}CS};


title: minted list of listings and TOC conflict

text: I am using `minted` for source code highlighting. I want a List of Listings, and I want the List of Listings to itself have an entry in the main Table of Contents. I thought I could do this with `tocbibind` package, and tried to follow the instructions on renewing `\lstlistoflistings` (given on p5 of the `tocbibind` documentation), adapting that code (or so I thought) to work for the `minted` instead of `listings` package. When I do this (see preamble of MWE below), I get the TOC line, but the List of Listings formatting goes wonky (all entries overlapping on the same line, no row of dots, etc. Obviously I've left some stuff out of my `\renewcommand` but I'm not sure what. MWE:               \documentclass{report}     \usepackage[nottoc,chapter]{tocbibind}     \usepackage[chapter]{minted}      \usemintedstyle{default}          % If I comment out the next 3 lines, the list of listings looks      % normal, but there is no "list of listings" line in the TOC     \renewcommand{\listoflistings}{\begingroup     \tocfile{\listoflistingscaption}{lol}     \endgroup}          \begin{document}     \tableofcontents     \listoflistings          \chapter{the first chapter}     \section{section one point one}     \begin{listing}     \begin{minted}[fontsize=\small, tabsize=2]{r}     x <- runif(10)     y <- rnorm(10)     plot(x, y, axes=FALSE, ann=FALSE, pch=16)     \end{minted}     \caption[short caption for lst1]{Longer caption to be used when listing one appears\label{lst:myLstOne}}     \end{listing}          \chapter{the second chapter}     \section{section two point one}     \begin{listing}     \begin{minted}[fontsize=\small, tabsize=2]{r}     a <- runif(5)     b <- rnorm(5)     plot(b, a)     \end{minted}     \caption[short caption for lst2]{Longer caption to be used when listing two appears\label{lst:myLstTwo}}     \end{listing}          \end{document}      **EDIT:** I can get a properly formatted LOL, and a LOL entry in the TOC, if I change the relevant part of the preamble to this:               \renewcommand{\listoflistings}{\begingroup     \listof{listing}{\listoflistingscaption}     \tocfile{\listoflistingscaption}{lol}     \endgroup}      I got the idea by looking for the definition of `\listoflistings` in the source code of `minted`. However, then I end up with a _second_ (empty) LOL after the first (correct) one.


title: How to write a not equal to sign in Latex pseudocode

text: How do I write not equal to sign (equivalent of `!=` in C) in Latex pseudocode.


title: Literature in table of contents but wrong position

text: I am using the code on the left of the picture and what it gives me is on the right. But what I 'd like to accomplish is something like **A. Glossary B. References C. Appendix** ![Transition](http://i.stack.imgur.com/SIhvv.png) Any thoughts? Thanks!


title: What is the deal about these semantic vs syntactic commands?

text: I keep hearing people on this site talking about "semantic" vs "syntactic" commands and that the "semantic" ones are somehow better. I don't really get what they are talking about, could you explain and give some examples that show the difference. Should I care about this at all?


title: Tikz, nodes in a tree become not fitted.

text: I want to draw 4 trees and I want to have some nodes in each of them fitted like in the first picture. But what is coming out is in the second picture. What is wrong with the code? Thanks in advance!! ![enter image description here](http://i.stack.imgur.com/Sp6Hh.png) ![enter image description here](http://i.stack.imgur.com/3H19j.png)               \documentclass{minimal}     \usepackage{tikz}     \usetikzlibrary{arrows,automata,backgrounds,fit,shapes,decorations.pathreplacing}               \begin{document}     \begin{tikzpicture}     [level distance=8.5mm,     level 1/.style={sibling distance=25mm},     level 2/.style={sibling distance=17mm},     level 3/.style={sibling distance=12mm},     level 4/.style={sibling distance=7mm},every fit/.style=    {rectangle,draw,inner sep=3.5pt}]          \node {+}     child {node {*}         child {node{2}}         child {node{$\pi$}}}     child {node {---}         child {node {+}             child {node {$x$}}             child {node {3}}}         child {node(/){/}             child {node (y){y}}             child {node (+){+}                 child {node (5){5}}                 child {node (1){1}}     }}};          \node [draw=green,fit=(/) (y) (+) (5) (1) ] {};     \end{tikzpicture}     \hskip 10pt      \begin{tikzpicture}     [level distance=11mm,     level 1/.style={sibling distance=25mm},     level 2/.style={sibling distance=17mm},     level 3/.style={sibling distance=12mm}, fit/.style={rectangle,draw=red,inner sep=3.5pt}]          \node (1){*}     child {node(*){*}         child {node(a){$a$}}         child {node(3){3}}}     child {node {+}         child {node{3}}         child {node {+}                 child {node {y}}                 child {node {12}}}     };     \node[fit={(a) (3) (*) (1)}]{};     \end{tikzpicture}          \begin{tikzpicture}     [level distance=11mm,     level 1/.style={sibling distance=25mm},     level 2/.style={sibling distance=17mm},     level 3/.style={sibling distance=12mm}, fit/.style={rectangle,draw,inner sep=3.5pt}]     \node {+}     child {node {*}         child {node{2}}         child {node{$\pi$}}}     child {node {---}         child {node {+}             child {node {$x$}}             child {node {3}}}         child {node(*){*}             child {node (a){$a$}}             child {node (3){3}}     }};          \node [draw=red, fit={(*) ($a$) (3)}] {};     \end{tikzpicture}     \hskip 10pt      \begin{tikzpicture}     [level distance=11mm,     level 1/.style={sibling distance=25mm},     level 2/.style={sibling distance=17mm},     level 3/.style={sibling distance=12mm}, fit/.style={rectangle,draw,inner sep=3.5pt}]          \node {*}     child {node(/){/}                 child {node (y){y}}                 child {node (+){+}                     child {node (5){5}}                     child {node (1){1}}     }}     child {node {+}         child {node{3}}         child {node {+}                 child {node {y}}                 child {node {12}}}     };          \node [fit=(/) (y) (+) (5) (1),draw=green ]{};     \end{tikzpicture}         \end{document}


title: Hyphenating hyphens: how to change the default \discretionary

text: My language, Portuguese, have undergone another orthography reform (those committees simply can't avoid themselves from doing this mess from time to time.) Now we have to adapt, which brings us to my problem. By the new rule, when a line break occurs at one word's literal hyphen, it should be doubled, appearing at the end of the first line _and_ at the beginning of the second one. A phrase like “Terão que adaptar-se ou perecer!”, broken at the hyphen, should look like this: _Terão que adaptar-   -se ou perecer!_ In TeX terms, each literal hyphen should be replaced by               \discretionary{-}{-}{-}      or followed by               \discretionary{}{-}{}      But TeX's (apparently) hard coded discretionary for literal hyphen is `\discretionary{}{}{}` (called “empty discretionary”), inserted after every “-” [The TeXBook, p. 95]. The obvious solution               \chardef\hyphen=`\-     \catcode`\-=13     \def-{\penalty\exhyphenpenalty     \discretionary{\hyphen}{\hyphen}{\hyphen}}      is hardly usable because you cannot redefine a character like “-”, heavy used by TeX assignments, without getting too much trouble. Is there a right way to get this effect? Or only by diving into TeX's source code or waiting for LuaTeX?


title: Three tables side by side, want only one caption

text: I have three tables and I want to use one caption under them. I tried the following but then nothing prints except the caption -               \begin{figure}[!h]         \begin{table}[h]         \centering             \begin{minipage}[t]{0.3\linewidth}                 \begin{tabular}[t]{|c | c | c | c |}                     \hline                     State                      & $1$-step      \\ \hline                     $\ket{n, \leftarrow, 0}$   & $\leftarrow$  \\                     $\ket{n, \leftarrow, 1}$   & $\rightarrow$ \\                     $\ket{n, \rightarrow, 0}$  & $\rightarrow$ \\                     $\ket{n, \rightarrow, 1}$  & $\leftarrow$  \\                     \hline                 \end{tabular}             \end{minipage}             \begin{minipage}[t]{0.3\linewidth}                 \begin{tabular}[t]{|c | c | c | c |}                     \hline                     State                     & $2$-step      \\ \hline                     $\ket{n, \leftarrow,  \leftarrow, 0}$   & $\leftarrow$  \\                     $\ket{n, \leftarrow,  \leftarrow, 1}$   & $\rightarrow$ \\                     $\ket{n, \leftarrow,  \rightarrow, 0}$  & $\rightarrow$ \\                     $\ket{n, \leftarrow,  \rightarrow, 1}$  & $\leftarrow$  \\ \hline                          \hline                 \end{tabular}             \end{minipage}                     \begin{minipage}[t]{0.3\linewidth}                 \begin{tabular}[t]{|c | c | c | c |}                     \hline                     State                     & $3$-step \\ \hline                     $\ket{n, \leftarrow,  \leftarrow,  \leftarrow, 0}$   & $\leftarrow$  \\                     $\ket{n, \leftarrow,  \leftarrow,  \leftarrow, 1}$   & $\rightarrow$ \\                     $\ket{n, \leftarrow,  \leftarrow,  \rightarrow, 0}$  & $\rightarrow$ \\                     $\ket{n, \leftarrow,  \leftarrow,  \rightarrow, 1}$  & $\leftarrow$  \\                          \hline                 \end{tabular}             \end{minipage}             \end{table}     \caption{Directions}     \end{figure}      If I remove the figure and begin{figure}, end{figure}, and caption{} tags, the tables show but there is no caption. So how can I get the tables to show with the caption?


title: Paragraph breaks with asterisks

text: In many books—mostly novels—often some paragraphs will have a blank line between them to indicate a sort of 'pause' in the narration. If one of these blank lines appears at the top or bottom of the page, it's replaced with "* * *" so that the reader knows there's a break. When I put these blank lines in my LaTeX documents, I use a tilde like this:               stuff blah blah paragraph ends here          ~          new paragraph, more stuff...      This works fine for the most part, but of course it won't put in the asterisks for me if it occurs at the top or bottom of a page. Is there a way to do this automatically?


title: Installing the comicsans package to MiKTeX

text: Consider this question theoretical in nature; an exercise to understand the TDS tree structure better. Assume one were attempting to install the `comicsans` package, which is part of neither of the two major distributions. (There's a question for TeX Live already.) _This is a summary of the tedious details that used to be part of this question. Since they turned out not to be relevant to the solution at all, I cleaned up this question a bit. You can see the details in this question'srevision history._ Following `comicsans`'s manual and various resources on TDS structure, I downloaded comicsans.zip, ran `latex comicsans.ins`, and then attempted to put all files in the right places in my user-managed TEXMF tree. There were a number of files that I don't know where to put, with extensions like `.etx`, `.ff`, `.mtx` or `.NOTABS`. Neglecting these files for the moment, I ran `latex fontcomic`, which gave me even more files, including `.fd` files, which seem to be crucial. I put these in \tex\latex\comicsans, updated my file database and the font maps, but it still doesn't work. Do I have to put the remaining files in special places, or is there some other way to make `comicsans` work? Do they really expect someone _who wants to use Comic Sans_ to understand the intricacies of the TDS system like that?? ![Comic Sans LaTeX ad](http://i.stack.imgur.com/nervR.png)


title: Math in Trebuchet MS

text: How can I write equations in _Trebuchet MS_? Ideally, I'd like to have the following results:   * All symbols that are available in Trebuchet MS are written in Trebuchet MS. That includes, e.g., Latin and Greek letters and basic math symbols such as plus, minus, parentheses, commas, etc.   * Symbols that are not available in Trebuchet MS are taken from a font that looks sufficiently good when mixed with Trebuchet MS. I'd like to use LaTeXiT to typeset equations that I would use in presentation slides that use the Trebuchet MS. I have tried several solutions, but none of them are completely satisfactory. **Solution 1:** I tried xelatex and the following preamble:               \usepackage{mathspec}     \usepackage{xunicode}     \usepackage{xltxtra}     \setallmainfonts{Trebuchet MS}      Latin and Greek letters look exactly as I'd like them to look. However, all symbols look completely out of place. **Solution 2:** Next I tried to use some kind of "close replacement":               \usepackage{arevmath}      At least _all_ math symbols are now in a sans-serif font. However, Arev Math is too far from Trebuchet MS to fool anyone. **Solution 3:** Finally, I combined solutions 1 and 2. I didn't even know if this is going to compile:               \usepackage{arevmath}     \usepackage{mathspec}     \usepackage{xunicode}     \usepackage{xltxtra}     \setallmainfonts{Trebuchet MS}      The result was surprisingly good. I think this could actually fool a casual reader. All Latin and Greek letters are taken from Trebuchet MS, and all other symbols are from arevmath. Everything is in sans serif, and the "thickness" of symbols looks correct. However, it's still fairly easy to tell the difference between an equation that is typeset with these settings and the same equation that is typeset entirely in Trebuchet MS. Commonly used symbols such as {}, () and comma look different; + is too large, etc. If I place an equation typeset in Latex next to an equation that is typeset by simply writing a piece of text in Trebuchet MS, there are some eye-catching differences. **Question:** Is it possible to do something better than solution 3? I think I'm missing something obvious; for example, I'd assume that it should be fairly easy to typeset basic math symbols such as "," and "+" in Trebuchet MS? This time I'm not really interested in finding a "correct" solution; all that matters is that the output "looks good". **EDIT:** Following Wojtek Myszka's advice, I tried something like this (with xelatex):               \usepackage{arevmath}     \usepackage{mathspec}     \usepackage{xunicode}     \usepackage{xltxtra}     \setallmainfonts{Trebuchet MS}     \makeatletter     \DeclareSymbolFont{my}{EU1}{\zf@family}{m}{n}     \makeatother     \DeclareMathSymbol{!}{\mathclose}{my}{"21}     \DeclareMathSymbol{+}{\mathbin}{my}{"2B}     \DeclareMathSymbol{:}{\mathrel}{my}{"3A}     \DeclareMathSymbol{=}{\mathrel}{my}{"3D}     \DeclareMathSymbol{?}{\mathclose}{my}{"3F}     \DeclareMathSymbol{,}{\mathpunct}{my}{44}     \DeclareMathSymbol{.}{\mathord}{my}{46}      Looks better, but how do I handle the delimiters ()[]{} correctly?


title: Can I specify non-draft sections in a draft document?

text: I am working on a big document, 100-200 pages. It's getting quite big mostly because of the images and that's a problem because I need to share it by email with my supervisors. The draft mode doesn't insert images, instead blank zones where the image should be. That solves part of my problem. For the sections I am actively working on, I kind of need to see the images. Is there a way to tell LaTeX that such section and such section should be non-draft, when I specified draft in the \documentclass statement? Otherwise I guess I could just compile the section I am working on, having only the relevant section with images. But that would screw my references and they can come in handy sometimes.


title: \endinput: what is it for?

text: I am working on a big document and I am using the `\include` command to put chapters one after the other. On the internet I came to know about the existence of the `\endinput` command. However I do not understand how to use it. My questions:   1. If I have a LaTeX chapter file named `chapter1.tex`, should I place the `\endinput` command on the last line in the file `chapter1.tex`?    2. If yes for Question 1, then should I do the same for every other chapters that I have? I have never used `\endinput` before and everything has worked fine so far.


title: Looking for an \ignorespacesandpars

text: Is there an analogue of `\ignorespaces` which will also ignore the following `\par`s?


title: Strange behavior with Minitoc and Listoftables (with Hyperref Loaded)

text: Is there a way to add a _local_ table of contents of sections/subsections appearing within a chapter to appear at the beginning of each chapter immediately after the chapter title on the title page (think: chapter contents)? I'm using the `amsbook` package. Neither `titletoc` nor `chaptertoc` load properly without errors. `minitoc` loads but produces no output, even after including the `\do`... command before the `\tableofcontents`. _Edit_ I've discovered that there is an issue with `\listoftables`. If present, then `\minitoc` doesn't output a table. If removed, `\minitoc` works fine.               \documentclass[letterpaper]{amsbook}     \usepackage{minitoc}               \usepackage[Lenny]{fncychap}     \ChRuleWidth{1.618pt}     \ChTitleVar{\raggedright  \huge }     \ChNameVar{\raggedleft  \Huge }          \usepackage[bookmarksdepth=subsection,plainpages=false]{hyperref}          \begin{document}     \dominitoc     \frontmatter     \tableofcontents      \mainmatter     %\listoftables          \chapter{Title}      \minitoc     \section{Section Title}          \end{document}


title: Using and interpreting pdffonts

text: For a fairly large (> 100 pages) document that I am writing, I have run `pdffonts` to check whether the fonts are suitably embedded. The output is as follows:               C:\>pdffonts main.pdf     name                                 type              emb sub uni object ID     ------------------------------------ ----------------- --- --- --- ---------     PEUMGT+Utopia-Regular                Type 1C           yes yes no      10  0     QIAYNS+Utopia-Bold                   Type 1C           yes yes no       8  0     XUFKIZ+Utopia-Italic                 Type 1C           yes yes no      61  0     CVIUTI+Fourier-Math-Letters-Italic   Type 1C           yes yes no     270  0     YJVFRW+Fourier-Math-Symbols          Type 1C           yes yes yes    282  0     LPRTGE+Fourier-Math-Extension        Type 1C           yes yes yes    332  0     UYVFMY+Fourier-Math-Letters-Bold-Italic Type 1C           yes yes no     592  0      I have been using the `\include{fourier}` package so as to have the fourier fonts which I like a lot both for math and for regular use. I see from the font output table that I have some Utopia fonts as well which are from Adobe as mentioned in the fourier package documentation. I have three questions:   1. I would like to know what the "random" letters before the font name in the table means (e.g. on line one we have PEUMGT).   2. I would like to learn how to interpret the font output table better. In the last second to last column, we have in the final row the number `592`. What does this mean?   3. Where can I find more information on the `pdffonts` command?


title: Will subcaption and threeparttable live happily ever after? Trouble combining the two

text: I'm trying to take this MWE table and put it into a `subcaption`'s **`subtable` environment**, or, alternatively, use `subcaption`'s **`subcaption` command** \- see `subcaption`'s manual - to achieve the same end: to have that table twice next to each other.               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{tabulary}     \usepackage{threeparttable}     \usepackage{array}     \usepackage{siunitx}     \usepackage{booktabs}     \usepackage{caption}     \usepackage[list=true]{subcaption}     %\usepackage[list=true]{subcaption}          \renewcommand{\arraystretch}{1.2}     \sisetup{round-mode=places,round-precision=1, add-decimal-zero=true, add-integer-zero=true, round-integer-to-decimal}          \begin{document}          \begin{table}     \centering     \begin{threeparttable}     \caption{Some long boring caption don't fall asleep 2013}          \begin{tabulary}{\textwidth}{@{}*{1}{l}*{2}{S[table-format=3.2]}@{}}     \toprule     & {incl.\ Ingredients A\tnote{3}} & {excl.\ Ingredients A} \\     \midrule     DDDD & 36.1 & 22.0\\     EEEE & 30.9 & 20.0\\     \bottomrule     \end{tabulary}          \begin{tablenotes}     \item [2] Unweighted Average     \item [] Source: radiowaves from outer space 1999     \end{tablenotes}          \end{threeparttable}     \end{table}          \end{document}      _Inter alia_ I've tried this:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{tabulary}     \usepackage{threeparttable}     \usepackage{array}     \usepackage{siunitx}     \usepackage{booktabs}     \usepackage{caption}     \usepackage[list=true]{subcaption}     %\usepackage[list=true]{subcaption}          \renewcommand{\arraystretch}{1.2}     \sisetup{round-mode=places,round-precision=1, add-decimal-zero=true, add-integer-zero=true, round-integer-to-decimal}          \begin{document}          \begin{table}          \begin{subtable}{.5\linewidth}     \centering     \begin{threeparttable}     \caption{Sub_caption A 2013}          \begin{tabulary}{\textwidth}{@{}*{1}{l}*{2}{S[table-format=3.2]}@{}}     \toprule     & {incl.\ Ingredients A\tnote{3}} & {excl.\ Ingredients A} \\     \midrule     DDDD & 36.1 & 22.0\\     EEEE & 30.9 & 20.0\\     \bottomrule     \end{tabulary}          \begin{tablenotes}     \item [2] Unweighted Average     \item [] Source: radiowaves from outer space 1999     \end{tablenotes}          \end{threeparttable}     \end{subtable}               \begin{subtable}{.5\linewidth}     \centering     \begin{threeparttable}     \caption{Sub_caption B 2013}          \begin{tabulary}{\textwidth}{@{}*{1}{l}*{2}{S[table-format=3.2]}@{}}     \toprule     & {incl.\ Ingredients A\tnote{3}} & {excl.\ Ingredients A} \\     \midrule     DDDD & 36.1 & 22.0\\     EEEE & 30.9 & 20.0\\     \bottomrule     \end{tabulary}          \begin{tablenotes}     \item [2] Unweighted Average     \item [] Source: radiowaves from outer space 1999     \end{tablenotes}          \end{threeparttable}     \end{subtable}          \caption{Some long boring caption don't fall asleep 2013}               \end{table}          \end{document}      and this               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{tabulary}     \usepackage{threeparttable}     \usepackage{array}     \usepackage{siunitx}     \usepackage{booktabs}     \usepackage{caption}     \usepackage[list=true]{subcaption}     %\usepackage[list=true]{subcaption}          \renewcommand{\arraystretch}{1.2}     \sisetup{round-mode=places,round-precision=1, add-decimal-zero=true, add-integer-zero=true, round-integer-to-decimal}          \begin{document}          \begin{table}          \begin{minipage}{.5\linewidth}     \centering     \begin{threeparttable}     \subcaption{Sub_caption A 2013}          \begin{tabulary}{\textwidth}{@{}*{1}{l}*{2}{S[table-format=3.2]}@{}}     \toprule     & {incl.\ Ingredients A\tnote{3}} & {excl.\ Ingredients A} \\     \midrule     DDDD & 36.1 & 22.0\\     EEEE & 30.9 & 20.0\\     \bottomrule     \end{tabulary}          \begin{tablenotes}     \item [2] Unweighted Average     \item [] Source: radiowaves from outer space 1999     \end{tablenotes}          \end{threeparttable}     \end{minipage}               \begin{minipage}{.5\linewidth}     \centering     \begin{threeparttable}     \subcaption{Sub_caption B 2013}          \begin{tabulary}{\textwidth}{@{}*{1}{l}*{2}{S[table-format=3.2]}@{}}     \toprule     & {incl.\ Ingredients A\tnote{3}} & {excl.\ Ingredients A} \\     \midrule     DDDD & 36.1 & 22.0\\     EEEE & 30.9 & 20.0\\     \bottomrule     \end{tabulary}          \begin{tablenotes}     \item [2] Unweighted Average     \item [] Source: radiowaves from outer space 1999     \end{tablenotes}          \end{threeparttable}     \end{minipage}          \caption{Some long boring caption don't fall asleep 2013}               \end{table}          \end{document}      which both return the `Package tabulary Warning: No suitable columns! on input line 31.` error message. I could post additional failed attempts, but don't think that'd be helpful, would it? Is there same mistake, or some incompatibility? Note that I'd like to at least be able to apply the threeparttable with footnotes to all three tables: both the two subtables individually, as well as the "mother table" (whether in the end I'd combine the footnotes (or use any footnotes at all) is another matter...). Futher, is `subcaption` capable of doing the list list-of-tables thing also of the subtables layed out neatly as in this `subfig` example here from here?


title: truncate itemized list

text: I would like to modify the `itemized` environment (here called `myitemized`) so that it only shows the first _N_ elements of the list. Basically I would like to be able to do something like               \documentclass{article}     \newcommand{\maxlist}{3}     \begin{document}      \begin{myitemize}       \item First item       \item Second item       \item Third item       \item Fourth item      \end{myitemize}     \end{document}      and get   * First Item   * Second Item   * Third Item where all items after `\maxlist` (3 in this example) are left out. **EDIT** The answer by Niel de Beaudrap answers the stated question. For my application I would like to be able to wrap the truncating environment in another environment. Something like `\newenvironment{wrapper}{\begin{truncitemize}}{\end{truncitemize}}`.


title: Problem Footcite Biblatex

text: I need some help for using the `\footcite` command together with Biblatex. I’m using the authoryear style. According to the guidelines for my thesis, the footnote must have the following structure: > Last name of Author (Year), p. X. I already found the following solution for this problem:               \renewbibmacro*{cite:labelyear+extrayear}{%     \iffieldundef{labelyear}     {}     {     \printtext[bibhyperref]{%     \printtext[parens]{     \printfield{labelyear}%     \printfield{extrayear}}}}}      But when I use this, the following output is generated: ![Footnote](http://dl.dropbox.com/u/1005161/Footnote.JPG) The problem is the space after the bracket. Do you have any idea, why this happens? Also how can I disable the first name in the footnote citation? Also the perfect solution would be a space between the numberof the footnote and the author. But that is not so important.


title: enumerate custom label

text: I writting a project documentation with LaTeX. I am doing the user requeriments and the structure that I want to put in the documents is something like this:               UR-1: The client ...     UR-2: ...     UR-3: ...      I've create an `enumerate` list like this:               \begin{enumerate}         \item The client     \end{enumerate}      but this only put the number and the text. How I can put the label "UR-" before the number in all the `enumerate`?


title: How to center numbers beneath a \multicolumn row in a table

text: I am making tables containing a column with number intervals, i.e. two numbers separated with a "--" or a single number preceded with a "<" or a ">". I have tried to center the position of the "--", "<" or ">" symbols by means of adding @{} into the tablular environment, see code below. However, even thought the "--", "<" or ">" symbols line up vertically this way, they do not center relative to a three-column heading above ("Damage Interval"). How do I make the symbols center horizontally relative to their heading ? To make it easier to see the position of the @{} commands relative to the column descriptors ("l", "c" and "r") I have added vertial lines between the numbers and the "--", "<" or ">" symbols. ![enter image description here](http://i.stack.imgur.com/2hX7J.jpg)               \documentclass[10pt,a4paper,twosided]{article}     \begin{document}     \begin{table}[h]     \centering     \caption{My caption}     \begin{tabular}[h]{l |  r @{} |  @{}c@{} |  @{}  l  |  c}     \hline     Category&\multicolumn{3}{c|}{Damage Interval} & Comments \\             &\multicolumn{3}{c|}{year} &     \hline     Les           & 0.1&--&1       & com. a\\     Moderae       &   1&--&3       & com. b\\     Considerable  &   3&--&10      & com. c\\     Serious       &    &$>$&10     & com. d\\     \hline     \end{tabular}     \label{tab-label}     \end{table}     \end{document}


title: Is there any recolor feature for imported images in LaTeX?

text: Is there any feature in LaTeX to recolor a figure which is included in a LaTeX .tex file automatically like the feature which exists in programs like Word? It is a good feature, for instance the person has to bring different logos in his presentation slides and each are in different colors, by this feature he will be able to automatically recolor the logos to suite his presentation theme. **Before Recolor**   ![enter image description here](http://i.stack.imgur.com/ovwPf.png) **After Recolor**   ![enter image description here](http://i.stack.imgur.com/EwgRf.png)


title: Identity of LaTeX default sans serif font

text: What the the default sans serif font in LaTeX? If it is a clone what is it based upon?


title: How to use siunitx with non numerical values?

text: I understand that something like `\SI{5}{\meter\per\second}` defines a certain space between the number (5) and units (m/s). What should I use if instead of a numerical quantity I want a variable: R m/s? `\SI{R}{\meter\per\second}` fails because it expect a number in first parameter, and `R \si{\meter\per\second}` or `$R$ \si{\meter\per\second}` show different space. Which is the correct use?               \documentclass{standalone}     \usepackage{siunitx}     \sisetup{per-mode=symbol}     \begin{document}     \begin{tabular}{r}     \SI{5}{\meter\per\second}\\     $R$ \si{\meter\per\second}\\     R \si{\meter\per\second}\\     \end{tabular}     \end{document}      ![enter image description here](http://i.stack.imgur.com/hKVqp.png)


title: Matplotlib's PGF vs Matplotlib2Tikz

text: I want to generate some plots to be integrated into a LaTeX document compiled with pdflatex. I also want the plot font (legend, title ...) to follow the settings of the LaTeX document. My search so far gave 2 possibilites:   * using the PGF backend in matplotlib to save raw plot data and then input it in the latex document using the PGF package   * or using the Matplotlib2Tikz python module to convert the plot into TikZ code, compiled in LaTeX directly What is the difference between both approaches ? Which one is more suitable for complex matplotlib plots (many subplots with lots of data)


title: Cut off part of PSTricks parallelogram if

text: First: I have also posted this question at the LaTeX Community a few days ago but I have not got any answer. Consider the following MWE, illustrating rays of light coming from the Sun through the Oculus in the Pantheon, Rome:               \documentclass{article}          \usepackage{auto-pst-pdf,pst-eucl,pstricks-add}     \usepackage[locale=DE]{siunitx}     \usepackage{expl3}          \ExplSyntaxOn       \cs_new_eq:NN         \calculate       \fp_eval:n     \ExplSyntaxOff          \begin{document}          \def\radius{21.65 } % Radius of the dome     \def\vinkelA{12 }   % Width of the Oculus     \def\vinkelB{71 }   % Angle of the Sun's rays     \def\faktor{\calculate{1/3} }     \def\RelRadius{\calculate{\faktor*\radius} }     \def\vinkelC{\calculate{90-\vinkelA} }     \def\vinkelD{\calculate{90+\vinkelA} }     \def\vinkelE{\calculate{180+\vinkelC} }     \def\vinkelF{\calculate{180+\vinkelD} }     \def\vinkelG{\calculate{180-\vinkelB} }     \def\vinkelH{\calculate{180+\vinkelG} }     \begin{figure}      \centering       \begin{pspicture}(44,50)       \psset{unit=0.5cm,linecolor=red}        \pnode(0,0){A}        \pnode(!0 \RelRadius){B}        \pnode(!2 \RelRadius mul \RelRadius){C}        \pnode(!2 \RelRadius mul 0){D}        \pnode(!\RelRadius \RelRadius){E}        \psarc(E){\RelRadius}{0}{\vinkelC}        \psarc(E){\RelRadius}{\vinkelD}{180}       \psset{linestyle=none,linecolor=black,dotsep=2pt}        \psRelLine[angle=\vinkelF](E)(B){1}{P1}        \psRelLine[angle=\vinkelE](E)(B){1}{P2}        \psRelLine[angle=\vinkelG](P1)(P2){1}{L1}        \psRelLine[angle=\vinkelH,linestyle=dotted](P2)(P1){1}{L2}        \psRelLine[angle=\vinkelG](P2)(P1){1 \vinkelA cos add 2 \vinkelA sin mul \vinkelB sin mul div}{L3}        \psParallelLine(L2)(L3)(L1){1}{L4}        \pspolygon[fillstyle=solid,fillcolor=yellow](L1)(L2)(L3)(L4)        \pnode(!0 1 \vinkelA cos add \RelRadius mul){T1}        \pnode(!2 \RelRadius mul 1 \vinkelA cos add \RelRadius mul){T2}        \pcline[linestyle=dotted](T1)(T2)        \pstMarkAngle[linestyle=solid,MarkAngleRadius=0.8,LabelSep=1.5,arrows=<->]{L2}{P2}{T1}{\footnotesize{\SI{\vinkelB}{\degree}}}        \psline[linestyle=solid,linecolor=red](C)(D)(A)(B)       \end{pspicture}     \end{figure}          \end{document}      I would like to cut off the yellow parallelogram if it reaches the left or right, vertical part of the closed red curve, i.e., if the rays of light hit the walls. How do I do this? P.S. I have no experience at all using TikZ, so if I am to understand a possible answer, TikZ is not the way to go. That said, I will not mind a TikZ answer but then the code has to be complete enough for me to copy directly.


title: Spacing in footnote bibliography

text: I use the `mla-paper` package to write my papers. My supervisor has told me to cite the references in the footnote. So I have done this in the header:               \usepackage[style=mla,style=verbose]{biblatex}      This prints the bibliography in the foot note. If there are two bibliogrpahic entires on the foot note of a page, then it does single spacing. But if a large entry takes up second line then it uses double spacing. I have attached a screeshot below. I don't want to have this doublespacing. Everthing in the footnote citations should be single spaced. How this can be achieved? ![Foot Note](http://i.stack.imgur.com/W3HQE.png)


title: glossaries: multi-column and indentation

text: I want to achieve a two column acronym list with `glossaries`. Using the `mcolalttree` version of `alttree` allows to define the indentation with `\glssetwidest{}`. Unfortunately after a line break the indentation is not taking place but text starts from the beginning. I would like the text to always be aligned right of the indentation (marked line). The style `long` has this alignment yet it cannot be used in a `multicol` environment. ![acronyms alignment](http://i.stack.imgur.com/ZdsLJ.png) Code:                 \documentclass[10pt]{scrartcl}            \usepackage[xindy,nostyles,numberline,acronym]{glossaries}       \usepackage{glossary-mcols}       \glossarystyle{mcolalttree}       \glssetwidest{DIEASSD}% widest name - works with altree style            % stops gaps between groups       \renewcommand{\glsgroupskip}{}       \usepackage{showframe}            \makeglossaries            \newacronym{a}{SER}{somesthing.}       \newacronym{b}{BEB}{an awesome acronym.}       \newacronym{c}{CCED}{yet another extended acronym description.}       \newacronym{d}{DIEASSD}{the story about a fork, knife and a table full of spoons.}       \newacronym{e}{IAIAIA}{short one with with with some some text text text extends.}       \newacronym{f}{FAF}{this is a very long description for an acronym which is totally awesome.}       \newacronym{g}{FAF2}{this is a very elaborate description for an acronym which is beyond awesome.}       \newacronym{h}{IA}{short one again.this is a very long description. this is a very long description.}                 \begin{document}       \printglossaries       Here are the acronyms: \gls{a}, \gls{b}, \gls{c}, \gls{d}, \gls{e}, \gls{f},       \gls{h}, \gls{g}.       \end{document}


title: How do put a header inside the margins?

text: I have to create a document that obeys the following guidelines: > "Margins must be set at a minimum of ¾" (1.87 cm); > > Your name must appear outside the set margins of the page, at the top right > corner of every page;" I have also been informed that I should put other things in the left and centre of the header, in addition to my name. I'd had planned to do this with `fancyhdr`, something like:               \documentclass[12pt,letterpaper]{article}          %Set the margins     %I have no idea what headheight=15pt does, but it makes an error go away.     \usepackage[margin=1.87 cm, headheight=15pt]{geometry}           %Customizing the header     \usepackage{fancyhdr}     \pagestyle{fancyplain}     \fancyhf{}     \renewcommand{\headrulewidth}{0pt} % remove lines as well     \rhead{Canageek}     \chead{B.Sc (Honours Chemistry)}     \lhead{PIN: 314159}     %End footer          \begin{document}     Scholarship application that will give me lots of money.     \end{document}      But this places the header inside the margins, which I think is not what the guidelines are asking for. In specific, the top the the letters are 7 mm from the top of the page, and the bottom of the letters is 1 cm from the top of the page. Before someone points it out; I am aware that 0.75 inches is not 1.83 cm, someone in the Canadian goverment can't do math.


title: How to resize a figure in Beamer?

text: In my presentation I put `\tikzpicture`, `cases` or `\array` in `\figure`, I am wondering if it is possible to resize the whole picture including `caption` with a factor. It seems that `\resizebox{<horizontal size>}{<vertical size>}{...}` does not work here... Could anyone help? Thank you very much!


title: Table row with white text on black background

text: I am trying to reproduce a table like those in this picture ![The table I want to reproduce](http://i.stack.imgur.com/gj4yY.png) So far I have               \noindent     \begin{tabularx}{\textwidth}{| l | X | l | l | }     \hline     & Does the proposed research involve processing of genetic information or personal data (e.g. health, sexual lifestyle, ethnicity, political opinion, religious or philosophical conviction)? & &  \\     \hline     & Does the proposed research involve tracking the location or observation of people? & &  \\     \hline     & I CONFIRM THAT NONE OF THE ABOVE ISSUES APPLY TO MY PROPOSAL  & YES & \\     \hline     \end{tabularx}      How can I get the white text on black background top row of the tables in the picture (which seems to be a three column row where the others are four columns)?. Also, is it possible to get something like the fine double line you see round the outside of the table and in fact all round the white on black top row of the table in the following higher resolution snapshot (click to enlarge): ![enter image description here](http://i.stack.imgur.com/S0uzk.png)


title: How to configure latexmk to work recursively? (PDF Thumbnails)

text: I'm writing a book which will include and explain a handful of different memoir page layouts. **Setting the scene** In the book, I want to imbed thumbnails of pages from PDFs generated with the page layouts, which I'm successfully doing with `\includegraphics[...]{<pdfname>}`. The top-level document, ''mlayout.tex'', then, includes pages from a series of PDFs, called ''mlayout-a'', ''mlayout-b'', etc. At the next level, the documents (''mlayout-a.tex'' etc) set the style (a,b,c...) in a couple of lines, and end with `\input{mlayout-text}` ''mlayout-text.tex'' contains the lipsum stuff. I need to illustrate some specific things like `\marginpar`s that lipsum or blindtext can't do for me, so that's why I use this third-level file. **The problem** This nesting of dependencies seems to demand latexmk; if I change mlayout- text.tex, it will (I hope) enable me simply to reprocess mlayout.tex and thereby regenerate, automatically, all the intermediate PDFs. The first try, with no modifications to latexmkrc, didn't attempt to produce the intermediate PDFs, so I added a custom dependency to latexmkrc:               add_cus_dep('tex', 'pdf', 0, 'maketex2pdf');     sub maketex2pdf {         system("latexmk -pdf $_[0]");     }      But, as far as I can tell, it still doesn't detect changes to the lowest-level file (mlayout-text). What am I doing wrong? _Note:_ I haven't included an MWE (to save a lot of space and a fair amount of time); if you think the question needs one, please comment and I'll add a custom-made (i.e. small) one.


title: Can one break stackrel text into multiple lines?

text: I'm writing something up where I want to be explicit about some elementary operations I'm performing. I have an arrow between matrices with some text above the arrow showing what I'm doing. The text above the arrow is quite long, is it possible to cause a line break of some sort in stackrel? My code is the following:               \stackrel{R2:= R2-2R1,\ R3:= R3+2R1}{\longrightarrow}


title: What does [t] and [ht] mean?

text: I would appreciate if someone could tell me difference between [t] and [ht] in the following example? I don't see a difference in the output pdf file.               \begin{figure}[ht]     ...     \end{figure}      and               \begin{figure}[t]     ...     \end{figure}


title: Alignment of several pgfplots of different widths inside subfigures

text: I try to fit six pgfplots created with matlab2tikz onto a page by placing them inside subfigures. So my document looks something like this:               \documentclass[a4paper,11pt, BCOR=12mm, DIV=8,twoside]{scrreprt}          \usepackage[utf8]{inputenc}                               \usepackage[T1]{fontenc}           \addtokomafont{caption}{\small}     \usepackage{libertine}     \usepackage{microtype}     \KOMAoptions{DIV=last}          \usepackage{subcaption}            \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \pgfplotsset{plot coordinates/math parser=false}     \newlength\figureheight     \newlength\figurewidth        \setlength\figureheight{0.3\linewidth}        \setlength\figurewidth{0.4\linewidth}          \begin{document}             \begin{figure}[p]     \centering     {\footnotesize          \begin{subfigure}[b]{0.5\linewidth}        \subcaption{}        \input{picture1.tikz}     \end{subfigure}~     \begin{subfigure}[b]{0.5\linewidth}        \subcaption{}        \label{sfig:window1}        \input{picture2.tikz}     \end{subfigure}     \begin{subfigure}[b]{0.5\linewidth}        \subcaption{}        \input{picture3.tikz}     \end{subfigure}~     \begin{subfigure}[b]{0.5\linewidth}        \subcaption{}        \input{picture4.tikz}     \end{subfigure}     \begin{subfigure}[b]{0.5\linewidth}        \subcaption{}        \input{picture5.tikz}     \end{subfigure}~     \begin{subfigure}[b]{0.5\linewidth}        \subcaption{}        \input{picture6.tikz}     \end{subfigure}          }% footnotesize        \caption{This is just a caption long enough to cause a linebreak and it is clear how wide it is.}     \end{figure}          \end{document}      (I included stuff like `BCOR`, `twoside` and `libertine` because I'm ideally looking for a solution that automatically adjusts the size and placement of the plots according to changed font(size) and page layouts.) This leads to this output: ![enter image description here](http://i.stack.imgur.com/2N1sq.png) As one can see the boxes are not properly aligned because of the different length of the plots' $y$ ticks. Also I would like to have the plots as big as possible (within the confines of reasonably good page layout). I don't really know how to properly choose the width of the `subfigures` so they match with the width of `\figurewidth` (the `\figureheight` is also choosen rather arbitrarily). I am looking for an (ideally automatic) way of properly placing the plots within the figure,i.e. boxes should be aligned and the available space is used most effectively. The pictures can be found here: picture1.tikz, picture2.tikz, picture3.tikz, picture4.tikz, picture5.tikz, picture6.tikz.