title: A version of shortvrb for listings?

text: So, `shortvrb` is a neat little package that allows you to do `\MakeShortVerb{\|}` which then has `|foo|` behave like `\verb|foo|`. Now, I like `listings`. Is there a `\MakeShortListings` that makes `|bar|` act like `\lstinline|bar|`?


title: Can "insert reference" function searching external file in texshop?

text: I am using Texshop under Lion. I am writing a thesis which contains many chapters as separated files and I use "include" in the main file. In Texshop, one can directly insert reference by "cmd+shift+r" which pops out a list containing all the labels within the range of this file. But what I want is to access the labels in another file(chapter) in the scope of the thesis. So what should I do or is there any other softwares can do this? Any help is appreciated.


title: How to clear the field {pages} for book entries only?

text: I need to clear the field {pages} for book entries only, so I can't simply use \AtEveryBibitem{\clearfield{pages}} since that would remove pages-information from articles as well. I have tried \AtDataInput[book]{\clearfield{pages}} but that doesn't seem to work. Any ideas? I know that I could simply delete the field in my .bib file, but the database from which I pull entries often contains {pages} for books, so I would prefer a general solution to the problem. Thank you


title: Vertically align minipages caption (no subfigures used)

text: After aligning a table and a plot horizontally I want them to be vertically aligned at the top of their captions(see last image). I have found solutions using subfigures or the floatrow package but both methods seem to be inappropriate here. This is my setup so far               \documentclass{article}     \usepackage[labelfont=bf]{caption}     \usepackage[demo]{graphicx}     \begin{document}          \begin{minipage}[b]{.4\linewidth}     \centering     \includegraphics[width=140pt]{test}     \captionof{figure}{First image with very very very very very very very very long caption}     \end{minipage}     \hfill     \begin{minipage}[b]{.5\linewidth}     \centering     \begin{tabular}[b]{cc}\hline                 Table head & Table head \\ \hline                 Some values & Some values \\                 Some values & Some values \\                 Some values & Some values \\                 Some values & Some values \\                 Some values & Some values \\                 Some values & Some values \\ \hline             \end{tabular}     \captionof{table}{table with short caption}     \end{minipage}          \end{document}      ![enter image description here](http://i.stack.imgur.com/O5NJF.jpg) I want them to be aligned like this, but use captions of different length: ![enter image description here](http://i.stack.imgur.com/TAZBB.jpg)


title: Pgfplotstable and etoc don't recompile

text: My document compiled normally, but it seems that there is an incompatibility between the packages etoc and pgfplots. The latex compiles, but not to recompile to get the references and the table of contents. I wrote this MWE. (the heatmap code is from Drawing heatmaps using TikZ)               \documentclass{report}     \usepackage{pgfplotstable}     \pgfplotsset{compat=1.10}     \usepackage{booktabs}     \usepackage{multirow}     \usepackage{colortbl}     \usepackage{tikz}     \usetikzlibrary{matrix,positioning}     \usepackage{etoc}     \usepackage{appendix}          \pgfplotstableset{         /color cells/min/.initial=0,         /color cells/max/.initial=1000,         /color cells/textcolor/.initial=,         %         % Usage: 'color cells={min=<value which is mapped to lowest color>,          %   max = <value which is mapped to largest>}         color cells/.code={%             \pgfqkeys{/color cells}{#1}%             \pgfkeysalso{%                 postproc cell content/.code={%                     %                     \begingroup                     %                     % acquire the value before any number printer changed                     % it:                     \pgfkeysgetvalue{/pgfplots/table/@preprocessed cell content}\value                     \ifx\value\empty                         \endgroup                     \else                     \pgfmathfloatparsenumber{\value}%                     \pgfmathfloattofixed{\pgfmathresult}%                     \let\value=\pgfmathresult                     %                     % map that value:                     \pgfplotscolormapaccess                         [\pgfkeysvalueof{/color cells/min}:\pgfkeysvalueof{/color cells/max}]                         {\value}                         {\pgfkeysvalueof{/pgfplots/colormap name}}%                     % now, \pgfmathresult contains {<R>,<G>,<B>}                     %                      % acquire the value AFTER any preprocessor or                     % typesetter (like number printer) worked on it:                     \pgfkeysgetvalue{/pgfplots/table/@cell content}\typesetvalue                     \pgfkeysgetvalue{/color cells/textcolor}\textcolorvalue                     %                     % tex-expansion control                     % see http://tex.stackexchange.com/questions/12668/where-do-i-start-latex-programming/27589#27589                     \toks0=\expandafter{\typesetvalue}%                     \xdef\temp{%                         \noexpand\pgfkeysalso{%                             @cell content={%                                 \noexpand\cellcolor[rgb]{\pgfmathresult}%                                 \noexpand\definecolor{mapped color}{rgb}{\pgfmathresult}%                                 \ifx\textcolorvalue\empty                                 \else                                     \noexpand\color{\textcolorvalue}%                                 \fi                                 \the\toks0 %                             }%                         }%                     }%                     \endgroup                     \temp                     \fi                 }%             }%         }     }          \begin{document}          \etoctableofcontents          \part{SOCIOECONOMIC}     \localtableofcontents     \chapter{EDUCATION}          Look the Table \ref{tab:mediatur}.          \begin{table}     \centering     \caption{Average class size - students per class}     \label{tab:mediatur}     \pgfplotstabletypeset[%         color cells={min=28,max=35, textcolor= - mapped color!100! black},         /pgfplots/colormap={whiteblue}{rgb255(0cm)=(255,255,255); rgb255(1cm)=(255,50,0)},     %         col sep=&,         row sep=\\,     % fix number format         /pgf/number format/precision=1,         /pgf/number format/fixed,         /pgf/number format/fixed zerofill,         /pgf/number format/set decimal separator = {,},         columns/EMPTY/.style={             column name={},             assign cell content/.code={                 \ifnum\pgfplotstablerow=0                     \pgfkeyssetvalue{/pgfplots/table/@cell content}{\multirow{2}{*}{##1}}%                 \else                     \pgfkeyssetvalue{/pgfplots/table/@cell content}{}%                 \fi},reset styles, string type},     % row formatting         every row no  0/.style = {before row = \bfseries Kindergarten\\\cmidrule{1-1}},         every row no  2/.style = {before row = \bfseries Primary Education\\\cmidrule{1-1}},         every row no 11/.style = {before row = \bfseries High School\\\cmidrule{1-1}},     %         every head row/.style={before row=\toprule     \multirow{2}{*}{\bfseries Series} & \multicolumn{7}{c}{\bfseries Period}\\\cmidrule{2-8} ,after row=\midrule},         every last row/.style={after row=\bottomrule},     % columns formatting         display columns/1/.style={column type = r},%         display columns/2/.style={column type = r},%         display columns/3/.style={column type = r},%         display columns/4/.style={column type = r},%         display columns/5/.style={column type = r},%         display columns/6/.style={column type = r},%         display columns/7/.style={column type = r},%         display columns/8/.style={column type = r},%     ]{        EMPTY & 2007 & 2008 & 2009 & 2010 & 2011 & 2012 & 2013\\     %Kindergarten &  &  &  &  &  &  &  &  &      Nursery     & 15.7 & 17.5 & 15.8 & 17.7 & 18.7 & 17.4 & 17.1\\     Pre School & 20.0 & 20.0 & 20.1 & 20.9 & 19.5 & 20.2 & 19.9\\     %Primary Education 8 and 9 years  &  &  &  &  &  &  &  &  &       1st year    & 23.6 & 21.9 & 24.4 & 22.1 & 20.7 & 23.5 & 20.4\\      2nd year    & 21.7 & 23.3 & 26.7 & 23.0 & 22.3 & 24.0 & 22.7\\      3rd year    & 27.2 & 25.7 & 20.6 & 24.4 & 23.9 & 24.4 & 23.2\\      4th year    & 24.8 & 24.6 & 24.7 & 24.2 & 24.4 & 23.9 & 24.4\\      5th year    & 25.4 & 29.0 & 27.7 & 27.1 & 22.3 & 24.1 & 24.1\\      6th year    & 31.7 & 33.5 & 29.7 & 29.8 & 31.4 & 26.5 & 26.3\\      7th year    & 32.2 & 32.8 & 33.3 & 30.1 & 29.1 & 29.3 & 25.8\\      8th year    & 31.3 & 34.2 & 33.1 & 30.8 & 28.9 & 29.6 & 30.3\\      9th year    & 33.7 & 36.6 & 33.2 & 32.1 & 32.4 & 29.6 & 29.5\\     %High School  &  &  &  &  &  &  &  &  &       1st grade  & 39.1 & 38.9 & 36.3 & 34.2 & 32.4 & 35.1 & 31.2\\      2nd grade  & 33.2 & 34.8 & 28.7 & 32.0 & 30.3 & 25.6 & 26.9\\      3rd grade  & 29.6 & 30.4 & 29.5 & 28.2 & 29.5 & 28.7 & 27.6\\      4th grade  &   0  & 28.0 & 23.7 & 18.7 & 20.7 & 24.3 & 17.8\\     }     \end{table}               \appendix          \part*{APPENDICES}          \etoctoccontentsline*{appendixplaceholder}{APPENDIX}{-1}     \etocsettocdepth{chapter}     \renewcommand{\thechapter}{\Alph{chapter}}     \setcounter{chapter}{0}           \localtableofcontents          \chapter{Document One}     Test 1.          \chapter{Document Two}     Test 2.          \end{document}      How can I solve it?


title: How to read a csv file having #

text: I want to read from a `csv` file:               \documentclass{article}     \usepackage{csvsimple}     \begin{document}     \csvautotabular{initial.csv}     \end{document}      Now my `initial.csv` file looks like this:               a, # b      1, 3      It creates the following errors:               Illegal parameter number in definition of \csv@col@body \csvautotabular{initial.csv}     Illegal parameter number in definition of \csv@temp \csvautotabular{initial.csv}     You can't use `macro parameter character #' in restricted horizontal mode \csvautotabular{initial.csv}      Then I tried with replacing `#` by `\\#`. It gives:               Missing \endcsname inserted \csvautotabular{initial.csv}     Extra \endcsname \csvautotabular{initial.csv}     File ended while scanning use of \pgfkeys@temp      Any idea on how should I try if my `csv` file contains some `#`'s?


title: chemical scheme not elegant

text: I want to make this chemical scheme: ![enter image description here](http://i.stack.imgur.com/JHlVw.png) I try with this code. But not very elegant. Somebody can I help me ?                  \documentclass[12pt,twoside,a4paper,openright]{report}         \usepackage[portuguese]{babel}         \usepackage[utf8]{inputenc}         \usepackage{chemformula}         \usepackage{chemfig}         \usepackage{chemmacros}                   \begin{document}               \begin{center}     \schemestart     \chemfig{RO-Si(-[6]OR)(-[2]OR)-OR} + \ch{H2O}     \arrow(.mid east--.mid west){->[ Hidrólise]}     \chemfig{RO-Si(-[6]OR)(-[2]OR)-OH}     \schemestop          \schemestart     \chemfig{RO-Si(-[6]OR)(-[2]OR)-OR} + \ch{H2O}     \arrow(.mid east--.mid west){->[ Condensação]}     \chemfig{RO-Si(-[6]OR)(-[2]OR)-OH}     \schemestop          \end{center}     \end{document}


title: Converting -sidewaystable- with -dcolumn- to -lscape- -longtable- in order to span multiple pages

text: I would to like to change my question from the previous one (Subtable as sidewaystable over three pages): Instead of putting subtables I would just like to have one table spanning over multiple pages. For now I using -sidewaystable-, but according to the answers to some question it is not possible to span multiple pages within the -sidewaystable- environment. therefore I trying to convert my -sidewaystable- to the -lscape- -longtable- but I couldnt make it work.               \begin{sidewaystable}[tp!]     \setlength\tabcolsep{0.1pt}  % default value: 6.0pt     \caption{Regression by Subperiods and Test of Difference in the corresponding Slope}     \footnotesize     \begin{threeparttable}     %\begin{tablenotes}[flushleft]\singlespacing     %\setlength\labelsep{0pt}     %\item M subtable-specific footnote \\     %\end{tablenotes}     \begin{minipage}{\textheight}     test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test     \bigskip          \end{minipage}     \begin{tabular*}{\textwidth}%       { @{\extracolsep{\fill}} l d{2.4} d{2.2} d{2.4} d{2.2} d{2.4} d{2.2} d{2.4} d{2.2} d{2.4} d{2.2} @{} }     \toprule     & \multicolumn{2}{c}{\hphantom{$-$}Pre-Crisis$\hphantom{^{***}}$} & \multicolumn{2}{c}{\hphantom{$-$}Crisis$\hphantom{^{***}}$} & \multicolumn{2}{c}{\hphantom{$-$}Post-Crisis$\hphantom{^{***}}$} & \multicolumn{2}{c}{\hphantom{$-$}Crisis vs Pre-Crisis$\hphantom{^{***}}$} & \multicolumn{2}{c}{\hphantom{$-$}Post-Crisis vs Crisis$\hphantom{^{***}}$} \\     \cmidrule{2-3} \cmidrule{4-5} \cmidrule{6-7} \cmidrule{8-9} \cmidrule{10-11}      Variables & \mc{\hphantom{$-$}Estimate$\hphantom{^{***}}$} & \mc{\hphantom{$-$}t$-$Value$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Estimate$\hphantom{^{***}}$} & \mc{\hphantom{$-$}t$-$Value$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Estimate$\hphantom{^{***}}$} & \mc{\hphantom{$-$}t$-$Value$\hphantom{^{**}}$} &\mc{\hphantom{$-$}Estimate$\hphantom{^{***}}$} & \mc{\hphantom{$-$}t$-$Value$\hphantom{^{**}}$} &\mc{\hphantom{$-$}Estimate$\hphantom{^{***}}$} & \mc{\hphantom{$-$}t$-$Value$\hphantom{^{**}}$} \\ [0.5ex]     \midrule     \multicolumn{11}{l}{\textbf{Panel A.1:} Regression of CDS Return on adjusted DSUE1} \\ [0.5ex]     Intercept      & \mc{\hphantom{$-$}0.0023$\hphantom{^{***}}$} & \mc{\hphantom{$-$}0.3$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.0436$^{**}\hphantom{^{*}}$} & \mc{\hphantom{$-$}2.2$\hphantom{^{**}}$} & \mc{$-$0.0333$^{***}$} & -3.31 & \mc{\hphantom{$-$}0.0413$^{*}\hphantom{^{**}}$} & \mc{\hphantom{$-$}1.92$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.0769$^{***}$} & \mc{\hphantom{$-$}3.57$\hphantom{^{**}}$} \\     DSUE      & \mc{$-$0.0009$\hphantom{^{***}}$} & \mc{$-$0.07$\hphantom{^{**}}$} & \mc{$-$0.0337$\hphantom{^{***}}$} & \mc{$-$1.12$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.0061$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.34$\hphantom{^{**}}$} & \mc{$-$0.0328$\hphantom{^{***}}$} & \mc{$-$1.01$\hphantom{^{**}}$} & \mc{$-$0.0398$\hphantom{^{***}}$} & \mc{$-$1.20$\hphantom{^{**}}$} \\     BHAR      & \mc{$-$0.6482$^{***}$} & \mc{$-$6.6$\hphantom{^{**}}$} & \mc{$-$0.7465$^{***}$} & \mc{$-$7.78$\hphantom{^{**}}$} & \mc{$-$1.1101$^{***}$} & \mc{$-$12.43$\hphantom{^{**}}$} & \mc{$-$0.0983$\hphantom{^{***}}$} & \mc{$-$0.81$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.3635$^{***}$} & \mc{\hphantom{$-$}3.50$\hphantom{^{**}}$} \\     $\Delta$VOLA      & \mc{\hphantom{$-$}21.0066$^{***}$} & \mc{\hphantom{$-$}4.66$\hphantom{^{**}}$} & \mc{\hphantom{$-$}6.8143$\hphantom{^{***}}$} & \mc{\hphantom{$-$}1.42$\hphantom{^{**}}$} & \mc{\hphantom{$-$}7.4429$^{***}$} & \mc{\hphantom{$-$}3.73$\hphantom{^{**}}$} & \mc{$-$14.1922$^{**}\hphantom{^{*}}$} & \mc{$-$2.17$\hphantom{^{**}}$} & \mc{$-$0.6286$\hphantom{^{***}}$} & \mc{$-$0.12$\hphantom{^{**}}$} \\     $\Delta$LEVERAGE      & \mc{\hphantom{$-$}0.0369$\hphantom{^{***}}$} & \mc{\hphantom{$-$}0.24$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.2296$\hphantom{^{***}}$} & \mc{\hphantom{$-$}0.86$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.4084$^{**}\hphantom{^{*}}$} & \mc{\hphantom{$-$}2.17$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.1927$\hphantom{^{***}}$} & \mc{\hphantom{$-$}0.63$\hphantom{^{**}}$} & \mc{$-$0.1788$\hphantom{^{***}}$} & \mc{$-$0.56$\hphantom{^{**}}$} \\     UPGRADE      & \mc{$-$0.0135$\hphantom{^{***}}$} & \mc{$-$0.42$\hphantom{^{**}}$} & \mc{$-$0.0289$\hphantom{^{***}}$} & \mc{$-$0.47$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.0205$\hphantom{^{***}}$} & \mc{\hphantom{$-$}0.56$\hphantom{^{**}}$} & \mc{$-$0.0155$\hphantom{^{***}}$} & \mc{$-$0.22$\hphantom{^{**}}$} & \mc{$-$0.0494$\hphantom{^{***}}$} & \mc{$-$0.71$\hphantom{^{**}}$} \\     DOWNGRADE      & \mc{\hphantom{$-$}0.0885$^{**}\hphantom{^{*}}$} & \mc{\hphantom{$-$}2.41$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.0625$\hphantom{^{***}}$} & \mc{\hphantom{$-$}0.85$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.0265$\hphantom{^{***}}$} & \mc{\hphantom{$-$}1.55$\hphantom{^{**}}$} & \mc{$-$0.026$\hphantom{^{***}}$} & \mc{$-$0.33$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.0360$\hphantom{^{***}}$} & \mc{\hphantom{$-$}0.47$\hphantom{^{**}}$} \\     $\Delta$SPOT      & \mc{$-$3.9919$^{***}$} & \mc{$-$3.03$\hphantom{^{**}}$} & \mc{$-$19.8533$^{***}$} & \mc{$-$10.61$\hphantom{^{**}}$} & \mc{$-$2.9600$^{*}\hphantom{^{**}}$} & \mc{$-$1.67$\hphantom{^{**}}$} & \mc{$-$15.8614$^{***}$} & \mc{$-$6.99$\hphantom{^{**}}$} & \mc{$-$16.8934$^{***}$} & \mc{$-$6.78$\hphantom{^{**}}$} \\     $\Delta$SLOPE      & \mc{\hphantom{$-$}4.0974$^{*}\hphantom{^{**}}$} & \mc{\hphantom{$-$}1.65$\hphantom{^{**}}$} & \mc{\hphantom{$-$}10.5626$^{***}$} & \mc{\hphantom{$-$}4.23$\hphantom{^{**}}$} & \mc{$-$35.4071$^{***}$} & \mc{$-$12.47$\hphantom{^{**}}$} & \mc{\hphantom{$-$}6.4652$^{*}\hphantom{^{**}}$} & \mc{\hphantom{$-$}1.76$\hphantom{^{**}}$} & \mc{\hphantom{$-$}45.9697$^{***}$} & \mc{\hphantom{$-$}11.66$\hphantom{^{**}}$} \\     Time dummies      & \mc{\hphantom{$-$}No$\hphantom{^{***}}$} &  & \mc{\hphantom{$-$}No$\hphantom{^{***}}$} &  & \mc{\hphantom{$-$}No$\hphantom{^{***}}$} &  &  &  &  &  \\     N      & \mc{\hphantom{$-$}3,284$\hphantom{^{***}}$} &  & \mc{\hphantom{$-$}2,246$\hphantom{^{***}}$} &  & \mc{\hphantom{$-$}4,284$\hphantom{^{***}}$} &  &  &  &  &  \\     Adj. R$^{2}$      & \mc{\hphantom{$-$}0.0813$\hphantom{^{***}}$} &  & \mc{\hphantom{$-$}0.1299$\hphantom{^{***}}$} &  & \mc{\hphantom{$-$}0.2432$\hphantom{^{***}}$} &  &  &  &  & \\ [0.5ex]     \midrule     \multicolumn{11}{l}{\textbf{Panel A.2:} Regression of Equity Return on adjusted DSUE1} \\ [0.5ex]     Intercept      & \mc{$-$0.7399$^{***}$} & \mc{$-$3.24$\hphantom{^{**}}$} & \mc{$-$2.6732$^{***}$} & \mc{$-$6.27$\hphantom{^{**}}$} & \mc{$-$0.5289$^{**}\hphantom{^{*}}$} & \mc{$-$2.00$\hphantom{^{**}}$} & \mc{$-$1.9333$^{***}$} & \mc{$-$4.21$\hphantom{^{**}}$} & \mc{$-$2.1442$^{***}$} & \mc{$-$4.14$\hphantom{^{**}}$} \\     DSUE      & \mc{\hphantom{$-$}3.0042$^{***}$} & \mc{\hphantom{$-$}7.80$\hphantom{^{**}}$} & \mc{\hphantom{$-$}5.0330$^{***}$} & \mc{\hphantom{$-$}6.77$\hphantom{^{**}}$} & \mc{\hphantom{$-$}1.4141$^{***}$} & \mc{\hphantom{$-$}3.01$\hphantom{^{**}}$} & \mc{\hphantom{$-$}2.0288$^{**}\hphantom{^{*}}$} & \mc{\hphantom{$-$}2.43$\hphantom{^{**}}$} & \mc{\hphantom{$-$}3.6189$^{***}$} & \mc{\hphantom{$-$}4.14$\hphantom{^{**}}$} \\     Time dummies      & \mc{\hphantom{$-$}No$\hphantom{^{***}}$} &  & \mc{\hphantom{$-$}No$\hphantom{^{***}}$} &  & \mc{\hphantom{$-$}No$\hphantom{^{***}}$} &  &  &  &  &  \\     N      & \mc{\hphantom{$-$}4,605$\hphantom{^{***}}$} &  & \mc{\hphantom{$-$}3,069$\hphantom{^{***}}$} &  & \mc{\hphantom{$-$}5,673$\hphantom{^{***}}$} &  &  &  &  &  \\     Adj. R$^{2}$      & \mc{\hphantom{$-$}0.0117$\hphantom{^{***}}$} &  & \mc{\hphantom{$-$}0.0185$\hphantom{^{***}}$} &  & \mc{\hphantom{$-$}0.0020$\hphantom{^{***}}$} &  &  &  &  & \\ [0.5ex]     \midrule     \multicolumn{11}{l}{\textbf{Panel B.1:} Regression of CDS Return on adjusted DSUE2} \\ [0.5ex]     \midrule     Intercept & 0.0031 & 0.39 & 0.0520*** & 2.68 & -0.0324*** & -2.95 & 0.0489** & 2.29 & 0.0843*** & 3.88 \\     DSUE & -0.0042 & -0.31 & -0.0510* & -1.77 & 0.0061 & 0.32 & -0.0468 & -1.47 & -0.0571* & -1.70 \\     BHAR & -0.6383*** & -6.46 & -0.7631*** & -7.83 & -1.1035*** & -12.55 & -0.1249 & -1.02 & 0.3404*** & 3.37 \\     DVOLA & 20.6975*** & 4.64 & 6.3294 & 1.35 & 7.6164*** & 3.85 & -14.3682** & -2.24 & -1.2870 & -0.25 \\     DLEVERAGE & 0.0051 & 0.03 & 0.2312 & 0.88 & 0.4389** & 2.34 & 0.2261 & 0.76 & -0.2078 & -0.66 \\     UPGRADE & -0.013 & -0.41 & -0.0285 & -0.47 & 0.0196 & 0.54 & -0.0156 & -0.22 & -0.0482 & -0.69 \\     DOWNGRADE & 0.0917** & 2.51 & 0.0708 & 1.01 & 0.0252 & 1.48 & -0.0209 & -0.27 & 0.0456 & 0.62 \\     DSPOT & -4.4481*** & -3.35 & -20.2957*** & -10.89 & -3.1137* & -1.76 & -15.8476*** & -6.91 & -17.1820*** & -6.93 \\     DSLOPE & 3.7413 & 1.53 & 10.4984*** & 4.21 & -35.0173*** & -12.35 & 6.7571* & 1.87 & 45.5157*** & 11.61 \\     Time dummies & No &  & No &  & No &  &  &  &  &  \\     Observations & 3,291 &  & 2,247 &  & 4,283 &  &  &  &  &  \\     Adjusted R-squared & 0.0799 &  & 0.1349 &  & 0.2429 &  &  &  &  & \\     \bottomrule     \end{tabular*}     \begin{tablenotes}     \item[a] A subtable-specific footnote     test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test     \end{tablenotes}          \end{threeparttable}     \end{sidewaystable}      Is there a way to "convert" this environment to the -lscape- -longtable- environment keeping the -dcolumn- properties? or do you have any other suggestions how to proceed under this circumstances? thank you very much


title: Deep brackets around a text

text: What I'm trying to achieve is to get the following effect for a body of text: ![image with wanted effect](http://i.stack.imgur.com/h4czF.png). I've looked at many examples that use all sort of brackets, but none of them look like the ones above. So far, I've only managed to get a simple frame using mdframed, but that's far from what I hope to get.               \documentclass{memoir}     \usepackage[framemethod=tikz]{mdframed}     \usepackage{lipsum}     \usepackage{fullpage}          \begin{document}     \begin{mdframed}     \lipsum[1]     \end{mdframed}     \end{document}      Any ideas?


title: How to read csv file with semicolon as delimiter

text: Suppose I have the following `scientists.csv` file:               name,surname;age     Albert,Einstein;133     Marie,Curie;145     Thomas,Edison;165      Now I want to use `;` as the only delimiter: ![](http://i.stack.imgur.com/ho3nE.png) How can I do that? **MWE**               \documentclass{article}     \usepackage{csvsimple}     \begin{document}     \csvautotabular{scientists.csv}     \end{document}      It produces: ![](http://i.stack.imgur.com/UFmGA.png)


title: Bibliographies by chapter using bibtopic on classicthesis LyX port

text: I need help with bibliographies by chapter using bibtopic with classicthesis (v4.1 LyX) with LyX (v2.0.2) under Ubuntu Linux (or a better option). I need bibliographies at the end of each chapter (as a section) in my thesis document. I read in the classicthesis example documentation (publications) that I can use bibtopic, multibib or some similar package to get multiple bibliographies. I found bibtopic as an easy option because this package doesn't requires new command definitions and also because LyX has native integration with it. I tried to use this package in my document but I have not had success. Here are the steps I followed to try to get what I need (I have attached a zipped folder with the LyX files in order to reproduce the results):   1. I have one bib file for each chapter to contain the corresponding references (chap_01.bib and chap_02.bib)   2. I configured each chapter document (chap_01.lyx and chap_01.lyx, child documents) with sectioned bibliography. Then I inserted the bibliography through LyX (Insert, List/TOC, BibTeX Bibliography) at the end of each chapter file, taking care referencing the corresponding bib file. Also I inserted some ERT surrounding the bibliography entry, as it is in the Bibliography.lyx file that come with classicthesis LyX port, to get the bibliography section title in the TOC.   3. I configured the bibliography of my master document (ClassicThesis.lyx) with default parameters, i.e. with not sectioned bibliography because otherwise, I obtain the bibtopic error message: "Load bibtopic after hyperref when using the 'backref'". Although I can compile and generate the pdf file with the above configuration, the cites appear as [? ] and the bibliography section (references) doesn't appear in the document. Also, I have tried to use the bibtopic pakcage using btUnit and btSect (through ERT) along the documents as described in the bibtopic documentation but I had not success. **ExampleLyX files** I would appreciate any help in getting what I need either using this package or better option. Thanks, Héctor


title: Bad label placing in kiviat diagram

text: ![enter image description here](http://i.stack.imgur.com/6JZEH.png) ![enter image description here](http://i.stack.imgur.com/ajf9Y.png) Shouldn't resizebox should resize the label along with the whole picture? How can I avoid the label put above the arrow? (Other than rotating the image, which I don't want to do.)               \resizebox{12cm}{!}{     \begin{tikzpicture}     \tkzKiviatDiagram[label distance=.5cm]{{Kolerikus},{Szangvinikus},{Melankolikus},{Flegmatikus}}     \tkzKiviatLine[thick,color=blue,mark=none,                    fill=blue!20,opacity=.5](5.0,2.30769230769,4.66666666667,4.16666666667         )     \tkzKiviatGrad[prefix=,unity=10,suffix=\ \%](1)     \end{tikzpicture}     }     \caption{Vérmérséklet}     \end{figure}


title: PGF foreach: elegant way to handle empty list

text: I am writing a simple animation in `beamer` using `tikz`. The code is as follows               \documentclass{beamer}     \usepackage{tikz}     \usetikzlibrary{positioning}          \begin{document}          \begin{frame}[fragile]\relax     \foreach \i in {0,...,3}{     \only<+>{         \begin{tikzpicture}[node distance=.3]             \node[circle,draw](x0){$x_0$};             \foreach\x [remember=\x as \px (initially 0)] in {1,...,\i}{                 \node[draw, right=of x\px](P\x){$P[x_{\px}, x_{\x}]$};                 \node[circle,draw, right=of P\x](x\x){$x_{\x}$};                 \draw (P\x) edge (x\px) edge (x\x);             }             \node[draw, right=of x\i] (L) {$L[x_{\i}]$};             \draw (L) edge (x\i) ;         \end{tikzpicture}     }}     \end{frame}          \end{document}      As you can see, the outer foreach starts from `\i=0`; the inner one loops over a list `{1,...,\i}` which in the first iteration of the outer for rewrites to `{1,...,0}`. Now the intended semantics of the inner for's list in the first iteration is the empty list but `PGF` interprets it as `{1,0}`, which generates the wrong picture in my example. A bit surprisingly `{1,2,...,0}` is treated as `{1,2}`. I solved the issue by extracting the first iteration outside the outer loop but I was wondering: is there a more elegant solution?


title: How to draw a bow-tie risk diagram

text: I'd like to draw some bow-tie diagrams, which are diagrams for modelling risk, particularly for businesses like oil and gas and transport. In the centre, there is a "top event", and there are zero or more "threats" and "consequences" on the left and right hand sides respectively. The threats and consequences can have zero or more "controls", which stop threats causing the top event, or mitigate the consequences if a top event occurs. The controls can have zero or more "escalation factors", which are child nodes that prevent the control from being effective. It's a pretty basic qualitative model and rather like a tree. There is proprietory software to draw these models but the images are hideous. I'm quite new to Tikz but the Tikz manual is a thing of wonder. What is the best way to draw one using Tikz? Should I use a mind map?


title: Creating additional color for moderncv

text: I'm trying to create an additional color for `moderncv`, but am seeing unexpected behaviour. I've created a file called `moderncvcolorburgundy.sty`, by copying the file for the `purple` color. I've changed all references to the word purple and changed the color definitions. The file contains the following code:               %% start of file `moderncvcolorburgundy.sty'.     %% Copyright 2006-2013 Xavier Danaux (xdanaux@gmail.com).     %     % This work may be distributed and/or modified under the     % conditions of the LaTeX Project Public License version 1.3c,     % available at http://www.latex-project.org/lppl/.          %-------------------------------------------------------------------------------     %                identification     %-------------------------------------------------------------------------------     \NeedsTeXFormat{LaTeX2e}     \ProvidesPackage{moderncvcolorburgundy}[2013/02/09 v1.3.0 modern curriculum vitae and letter color scheme: burgundy]          %-------------------------------------------------------------------------------     %                color scheme definition     %-------------------------------------------------------------------------------     \definecolor{color0}{rgb}{0,0,0}% black     \definecolor{color1}{rgb}{0.545098,0,0}% burgundy     \definecolor{color2}{rgb}{0.45,0.45,0.45}% dark grey     \endinput     %% end of file `moderncvcolorburgundy.sty'.      However, when I choose `burgundy` as a color, the end result is `purple`! Even though the correct file is loaded (i don't get an error, which i do get if i remove the burgundy file) and I've updated the file name database and file formats. I have no idea why the color is wrong. In fact, I don't even understand where the purple color is coming from...even if I remove the purple color style to a thumb drive it still turns up purple, even though the color definition for purple is not defined anywhere anymore... How can I create an additional color and why is this not working? An example document can be generated with the code below. Note that the `moderncvcolorburgundy.sty` file must exist in the same folder as the other style files.               \documentclass[11pt,a4paper,sans]{moderncv}     % moderncv themes     \moderncvstyle{classic}                             % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'     \moderncvcolor{burgundy}                               % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'     \usepackage[scale=0.75]{geometry}          \name{John}{Doe}     \title{title}                               % optional, remove / comment the line if not wanted     \address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and and "country" arguments can be omitted or provided empty     \phone[mobile]{+1~(234)~567~890}                   % optional, remove / comment the line if not wanted     \begin{document}     \makecvtitle          \section{Education}     \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}  % arguments 3 to 6 can be left empty          \end{document}      Note that `education` and the box around it are purple and not burgundy/darkred. The error in the log file:               ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\moderncv\moderncvcolorburgundy.st     y"          LaTeX Warning: You have requested package `moderncvcolorburgundy',                    but the package provides `moderncvcolorpurple'.


title: How to change the text position

text: \documentclass[a4paper]{article}      \usepackage[usenames,dvipsnames]{color}      \usepackage{yfonts}[1998/10/03]            \begin{document}           \frakfamily\Large\fraklines      \textcolor{Green}{\yinipar{E}\textswab{text} \\}      \end{document}      I am attaching an image along with this post, I am able to achieve the first image, however I am looking to achieve the second. ![enter image description here](http://i.stack.imgur.com/XRWHR.jpg)


title: How can I align my title to be flush with margin and format contents?

text: I've had to alter my contents page to fit in with requirements for my thesis. I need my chapter headings to read X.0 "chapter name". e.g. 1.0 Introduction I've managed to do this using the title sec package, however it has caused a couple of new formatting issues that I can't fix. Here is the code:               \documentclass[12pt,a4paper]{report}          \linespread{1.3}     \usepackage{lscape}     \usepackage{graphicx}     \usepackage{placeins}     \usepackage{fixltx2e}     \usepackage{titlesec}          \renewcommand*{\thechapter}{\arabic{chapter}.0}     \renewcommand*{\thesection}{\arabic{chapter}.\arabic{section}}     \renewcommand*{\chaptername}          \titleformat{\chapter}[block]      {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}          \begin{document}     \chapter{Introduction}     \section{section1}          \end{document}      My questions:   1. The title now sits slightly indented on the page e.g. 1.0 Introduction Is there a way to make it flush with the margin?   1. My contents now reads: 1.0Introduction etc. Is there a way to create space between the number and the title? Thanks in advance


title: Creating a cyclic graph whose nodes are row vectors

text: > **Possible Duplicate:**   >  How would you produce the following exact hexagon? I'd like to create a hexagonal graph, where the nodes are row vectors and the edges arrows with labels (I'm trying to illustrate a cycle). See my attempt below:               \documentclass{article}          \usepackage{pgf}     \usepackage{tikz}     \usetikzlibrary{arrows,automata}     \usepackage[latin1]{inputenc}     \begin{document}          \begin{tikzpicture}[->,shorten >=0.2pt,auto,node distance=2.5cm,semithick]          \tikzstyle{every state}=[fill=none,draw=none,text=black]            \node[state]         (A)                    {$(1,1,1)$};       \node[state]         (B) [below right of=A] {$(1,1,1)$};       \node[state]         (C) [below of=B]       {$(1,1,1)$};       \node[state]         (D) [below left of=C]  {$(1,1,1)$};       \node[state]         (E) [above left of=D]  {$(1,1,1)$};       \node[state]         (F) [above of = E]     {$(1,1,1)$};            \path (A) edge          node {$A$} (B)             (B) edge          node {$A$} (C)             (C) edge          node {$A$} (D)             (D) edge          node {$A$} (E)             (E) edge          node {$A$} (F)             (F) edge          node {$A$} (A);             \end{tikzpicture}          \end{document}      I want it to be a regular hexagon, which this is not. I also want the ends of the arrows to be closer to the nodes. How can I sort this? Thanks


title: how to compare two booleans?

text: I want to test if either `inputenc` or `selinput` are loaded. My problem now is to do complex boolean expressions and I have no clue how to do that with LaTeX. The basic code would be something like this:               \AtBeginDocument{%       \ifpdftex{% only if pdftex          \ifthenelse{%           \not\isPackageLoaded{inputenc} \and \not\isPackageLoaded{selinput}         }%         { raise warning }         { everything ok }       }{}     }      however I assume that \not and \and and such are not available directly. the code for testing is based on this (not fully tested)               \RequirePackage{scrlfile, etoolbox}%          \SetupIfPackageLoaded{inputenc}     \SetupIfPackageLoaded{selinput}          \newcommand\SetupIfPackageLoaded[1]{%        \providebool{TemplateIfPackageLoaded@#1}        \setboolean{TemplateIfPackageLoaded@#1}{false}        \AfterPackage{#1}{%           \setboolean{TemplateIfPackageLoaded@#1}{true}        }%     }%          \newcommand\isPackageLoaded[1]{%       \boolean{TemplateIfPackageLoaded@#1}     }      the code is for a package which I want to use to test errors in a LaTeX template mostly in the preamble.


title: TikZ automata: size of circle around nodes

text: I am trying to replace vaucanson-g with TikZ, but I cannot make the automata as small. There seems to be a minimum size of the circle around nodes, that I can't reduce even with `inner sep=0`. Example below:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{automata,positioning}     \begin{document}     \begin{tikzpicture} [->,auto,node distance=0.6cm,line width=0.4mm]      \node[state,initial,inner sep=1pt] (q) {$q$};      \node[state,accepting] (p) [right=of q] {$p$};     \end{tikzpicture}     \end{document}      A lot of whitespace is left around the letters.


title: How to draw complex nodes in tikz?

text: I know how to draw automaton in tikz. But how to use complex nodes in that? I want draw something like this in tikz: ![enter image description here](http://i.stack.imgur.com/oOFgX.png)


title: Error when using equations and mathescape in source codes using the listings package

text: I want to write equations within source code that i formatted with the listings package. Therefore I use `mathescape=true`. The strange thing is, that it only works when I change the language of my listing to `bash` (there might be others), but not when it is set to `R`:               \documentclass{article}     \usepackage{xcolor}     \usepackage{listings}     \lstset{keywordstyle=\textbf}     \lstset{commentstyle=\textcolor{red}}          \begin{document}          \lstset{language=R}     \begin{lstlisting}[         frame=trBL,mathescape=true,         caption={R-Code (test).},         label={code:R_allee}     ]     # comment     square <- function(x) {         x^2         % $x^{2}$     }          # nerv     x <- c(1:100)     y <- square(x)     \end{lstlisting}     \end{document}      There I get the error:                ! Extra }, or forgotten \endgroup.      I can't find my mistake, since this happens when I exchange `bash` by `R` (without setting any brace). Does anyone of you have an idea?


title: How can I reproduce the bill of rights in LaTeX?

text: Though some might disagree, I think the Bill of Rights is a beautiful piece of typography. ![Bill of Rights](http://i.stack.imgur.com/tuWVe.gif) I would like to reproduce this using TeX and friends, but have no idea where to start. How, for example, would I reproduce the beautiful g with the extra swash? Would I have to create the glyph myself, or are there such fonts available? Also, is there a package that makes it possible to get the proper typesetting of "Article the first .... Text here"?


title: Pretty printing of LaTeX code

text: In many MWE here on TeX.SE the LaTeX code is written without explanatory comments and as compact as possible. An Example:               \documentclass[ngerman,fontsize=12pt,pagesize]{scrreprt}     \usepackage{lmodern}      \usepackage[T1]{fontenc}      \usepackage[latin9]{inputenc}      \usepackage[backref=page,breaklinks,colorlinks]{hyperref}     \hypersetup{pdftitle={Titel},pdfauthor={Kurt}}     \begin{document}     Blindtext. \url{http://tex.stackexchange.com}.     \end{document}      This is particularly difficult to read for LaTeX beginners and to understand. So I got used a certain style of writing MWEs. I use a space (to be changed to a `%` character if neccessary) in front of macros like `\usepackage{}` or I write each option for a document class or a package in a seperate line with a leading coma. So I'm able to comment the meaning of the option. And one can see which lines are commented. Added now to the example: You can easy switch between two fonts or two encriptions. The same example pretty printed:               \documentclass[%       ngerman     %,paper=a4           % Papiergröße (Voreinstellung)      ,fontsize=12pt      % Brotschrift-Grad     %,parskip=full       % Abstand Absätze, erste Zeile nicht eingezogen.      ,pagesize           % entscheidet zur Laufzeit, ob dvips oder pdf     ]{scrreprt}           \usepackage{lmodern}          % Latin Modern     %\usepackage{libertine}        % Libertine Legacy      \usepackage[T1]{fontenc}      % Ausgabezeichensatz      \usepackage[latin9]{inputenc} % Windows PC     %\usepackage[utf8]{inputenc}   % Unicode      \usepackage[%        backref=page                % Verweis auf Seite     % ,pagebackref                 % wie zuvor       ,breaklinks                  % Links überleben einen Zeilenumbruch        ,colorlinks                  % Links farbig für PDF-Betrachtung       ]{hyperref}          \hypersetup{%      % Konfiguration hyperref       pdftitle={Titel} % Titel      ,pdfauthor={Kurt} % Verfasser     %,linktoc=all      % Alles als Link setzen     }           \begin{document}     Blindtext. \url{http://tex.stackexchange.com}.     \end{document}      **Question** : Are there any objections to format a LaTeX code like this? For example,   * can the leading space of macro `\usepackage{}` lead to errors,    * can the notation `,option = value` lead to errors (I prefer this kind of notation to get rid of missing commas. If all commas are in the same column, it is much harder to forget one (the first line must not have a leading comma)).


title: Multiple labelled expressions on one line

text: I have several tall, thin expressions - graphical diagrams - which I need to label as if they were equations. Given their shape, it would be mad to have them displayed one underneath the other. I really want to have them next to each other, and give them equation numbers displayed immediately underneath. How can I generate new equation numbers, and then typeset them wherever I please? This is pseudocode for the sort of effect I want, where `\newlabel{blah}` is a fictional command which increments the equation count by 1, typesets `(n)` where `n` is the new equation number, and sets the label "blah" to refer to this new number.               \[     \begin{array}{cc}     \firstlongthinexpression & \secondlongthinexpression     \\     \newlabel{firstexpr} & \newlabel{secondexpr}     \end{array}     \]     .     .     .     In expressions~\eqref{firstexpr} and~\eqref{secondexpr}, we did blah blah blah.


title: biber + WinEdt references not printing

text: I'm having difficulty with references printing using WinEdt + biber. The problem looks just like this post: http://sourceforge.net/projects/biblatex- biber/forums/forum/824416/topic/5413419 Unfortunately, when I re-install MikTEx the problem doesn't go away. I deleted the cache (if the cache is all the files in the folder besides the tex file) and re-installed MikTex and the problem persists. Specifically the problem is that references are being placed in the pdf intext but no bibliography prints at the end. I ran this script:               \documentclass[]{article}          \usepackage[autostyle]{csquotes}          \usepackage[         backend=biber,         style=authoryear-icomp,         sortlocale=de_DE,         natbib=true,         url=false,          doi=true,         eprint=false     ]{biblatex}     \addbibresource{biblatex-examples.bib}          \usepackage[]{hyperref}     \hypersetup{         colorlinks=true,     }          %% ##############################     \begin{document}         Lorem ipsum dolor sit amet~\citep{kastenholz}.         At vero eos et accusam et justo duo dolores et ea rebum~\citet{sigfridsson}.         \printbibliography      \end{document}       And here's the console output: https://dl.dropbox.com/u/61803503/CONSOLE_OUTPUT.txt Here's the entire file I ran: https://dl.dropbox.com/u/61803503/TEST_BIBER.zip I don't think wWinEdt has anything to do with this. Using windows 7 machine with MikTex 2.9


title: Installation of siunitx and LaTeX 3

text: I am interested in using the package `siunitx`. However, it appears that I need to be running LaTeX 3 in order to do this. The installation information on CTAN seems somewhat cryptic, and I am confused about how to do the upgrade. Right now I am using MikTeX and what I think is LaTeX2e. Can anyone help a relative newbie? Alternatively, if you could point me to another post that answers this, that would be great too. Thanks!


title: Word-wrapping page-long polynomials in latex

text: I know that you can enter multiline equations using the `align` environment and line breaks (`\\\`). I want to LaTeX multiple polynomials that are very long (up to a page in length, single-spaced and 12 point font) without having to manually insert each line break. Even if I went through the trouble once, I'd have to do it all over again just to reformat the document. Is there a way to do this, or do I have to use something like the `verbatim` environment or the `listings` environment, where the polynomials just become text?


title: Problem with vertical space and tikz pictures

text: I need to include the next `tikzpicture` into a latex document. The final result gives me extra vertical space before and after the picture. Therefore the caption is far from the picture itself. I do not know the reason for this behavior. Can you help me? I attach the content of the document:               \documentclass [12pt]{article}     \usepackage{tikz}     \usetikzlibrary{matrix}     \usetikzlibrary{shapes}     \usepackage{graphics}     \usepackage{scalefnt}     \usepackage[hang,small,bf]{caption}     \setlength{\captionmargin}{25pt}     \usetikzlibrary{intersections}     \usetikzlibrary{fit}     \usetikzlibrary{arrows}     \usetikzlibrary{external}     \tikzexternalize % activate!               \begin{document}          \begin{figure}[h!]     \begin{center}     \resizebox{\linewidth}{!}{     \begin{tikzpicture}[dot/.style={fill=red,circle}]     \def\parts{3}     \def\width{\parts}     \def\height{1}     \def\centerx{10}     \def\centery{7}     \tikzstyle{edge from parent}=[->,thick,draw,>=stealth']     % Rejilla de ayuda\     \draw [help lines] grid (20,7);     % Se pinta ahora el RPT     % Este es el nodo raíz, con Split para X1     \node[] (x1) at (\centerx,\centery) {$X_1$};     % Se pinta el List Node a la izquierda     \node[name path=ell1,draw,ellipse,minimum width=\parts cm,minimum height=\height cm] (ell1) at (\centerx-2.5,\centery-2) {};     \pgfmathsetmacro{\divisions}{\parts-1}     \pgfmathsetmacro{\anc}{\width/\parts}     \pgfmathsetmacro{\centrocelda}{\anc/2}     % Se trazan las lineas divisorias     \foreach \i in {1,...,\divisions} {       \pgfmathsetmacro{\x}{\centerx-2.5+\width/2-(\i*\anc)}       %\node [] (p2) at(\x,\x){\x};       %\node [] (p3) at(-10,-\i){\i.\x};         \coordinate [] (A) at (\x,10);       \coordinate [] (B) at (\x,-10);       \path[name path=A--B] (A) -- (B);       \path [name intersections={of=ell1 and A--B}];       \draw [-] (intersection-1) -- (intersection-2);     }     % Se hacen nodos en los centros de las divisiones para luego     % poder enlazar facilmente     \pgfmathsetmacro{\xfinal}{\width/2-(\centrocelda)}     \foreach \i in {0,...,\divisions}{       \pgfmathsetmacro{\x}{\xfinal-(\i*\anc)}       \coordinate [] (c\i) at (\centerx-2.5+\x,\centery-2);       \node [] (u\i) at(c\i){};     }     % Se une la raiz con el nodo lista     \path[->,thick,>=stealth'] (x1.south) edge node[left]{$x_{11}$} (ell1);     %Ahora se pintan los hijos del nodo lista de la izquierda     \node[draw,ellipse] (fi1) at (\centerx-3.5,\centery-4) {$f_1$};     \node[draw,ellipse] (fi2) at (\centerx-2.5,\centery-4) {$f_2$};     \node[draw,ellipse] (fi3) at (\centerx-1.5,\centery-4) {$f_3$};     % Se unen a ell1     \path[->,thick,>=stealth'] (u0.south) edge node[]{} (fi3);     \path[->,thick,>=stealth'] (u1.south) edge node[]{} (fi2);     \path[->,thick,>=stealth'] (u2.south) edge node[]{} (fi1);     % Se pinta el List Node a la derecha     \node[name path=ell2,draw,ellipse,minimum width=\parts cm,minimum height=\height cm] (ell2) at (\centerx+2.5,\centery-2) {};     \pgfmathsetmacro{\divisions}{\parts-1}     \pgfmathsetmacro{\anc}{\width/\parts}     \pgfmathsetmacro{\centrocelda}{\anc/2}     % Se trazan las lineas divisorias     \foreach \i in {1,...,\divisions} {       \pgfmathsetmacro{\x}{\centerx+2.5+\width/2-(\i*\anc)}       %\node [] (p2) at(\x,\x){\x};       %\node [] (p3) at(-10,-\i){\i.\x};         \coordinate [] (A) at (\x,10);       \coordinate [] (B) at (\x,-10);       \path[name path=A--B] (A) -- (B);       \path [name intersections={of=ell2 and A--B}];       \draw [-] (intersection-1) -- (intersection-2);     }     % Se hacen nodos en los centros de las divisiones para luego     % poder enlazar facilmente     \pgfmathsetmacro{\xfinal}{\width/2-(\centrocelda)}     \foreach \i in {0,...,\divisions}{       \pgfmathsetmacro{\x}{\xfinal-(\i*\anc)}       \coordinate [] (c\i) at (\centerx+2.5+\x,\centery-2);       \node [] (u\i) at(c\i){};     }     % Se une la raiz con el nodo lista     \path[->,thick,>=stealth'] (x1.south) edge node[right]{$x_{12}$} (ell2);     %Ahora se pintan los hijos del nodo lista de la derecha     \node[draw,ellipse] (fi4) at (\centerx+1.5,\centery-4) {$f_4$};     \node[draw,ellipse] (fi5) at (\centerx+2.5,\centery-4) {$f_5$};     \node[draw,ellipse] (fi6) at (\centerx+3.5,\centery-4) {$f_6$};     % Se unen a ell1     \path[->,thick,>=stealth'] (u0.south) edge node[]{} (fi6);     \path[->,thick,>=stealth'] (u1.south) edge node[]{} (fi5);     \path[->,thick,>=stealth'] (u2.south) edge node[]{} (fi4);     %Se ponen las etiquetas con la información auxiliar     \node[] (et1) at (\centerx-3,\centery-5) {$S_1=\{X_1\}$};     \node[] (et2) at (\centerx-3,\centery-5.5) {$S_2=\{X_3\}$};     \node[] (et3) at (\centerx-3,\centery-6) {$Z_1=\{X_5,X_6\}$};     \node[] (et4) at (\centerx-3,\centery-6.5) {$Z_2=\{X_2,X_4,X_7\}$};     \node[] (et5) at (\centerx-3,\centery-7) {$f_1=p^{R(X_1=x_{11})}(X_5,X_6,X_3)$};     \node[] (et6) at (\centerx+2,\centery-5) {$f_2=p^{R(X_1=x_{11})}(X_2,X_4,X_7,X_3)$};     \node[] (et7) at (\centerx+2,\centery-5.5) {$f_3=S^{R(X_1=x_{11})}$};     \node[] (et9) at (\centerx+2,\centery-6) {$f_4=p^{R(X_1=x_{12})}(X_5,X_6,X_3)$};     \node[] (et10) at (\centerx+2,\centery-6.5) {$f_5=p^{R(X_1=x_{12})}(X_2,X_4,X_7,X_3)$};     \node[] (et11) at (\centerx+2,\centery-7) {$f_6=S^{R(X_1=x_{12})}$};     \end{tikzpicture}     }     \end{center}     \caption{RPT (left) encoding of a Bayesian network distribution (right)}     \label{fig:rptNet}     \end{figure}          \end{document}      Thanks a lot


title: Can one generate a bib tag from the entry's title instead of from the author?

text: currently I am using `alpha` as bibliography style. In my case it would make much more sense to generate the short form from the title. At the moment for some autors (which are companies, because I refere to websites), it is counting to _k_ an above. Is there an style existing for my needs?


title: How to make the limit (mathematics) sign?

text: I want to learn how to make the limit sign. For example, take 'Limit of f(x) as x approaches 2 is 5' , how to make this?


title: Combining newenvironment, quote and lstlisting (mcode)

text: I am trying to combine various packages and commands with PdfLaTeX (through MikTex on MS Windows), including `newenvironment`, `quote`, `mcode` and `lstlisting`, to create an environment to define multiple inlined text boxes that include commentary plus snippets of marked-up code. Simple experiments with `quote` and `newenvironment` work as shown in the documentation (e.g. Oetiker et al's not so short guide to latex), but addition of `mcode/lstlisting` disrupts compilation. The reported error message is that `\end{document}` is encountered prior to `\end{quote}`. I've tinkered with the order of the individual elements but to no avail. The following does NOT work:               \documentclass[12pt]{article}           \usepackage[utf8]{inputenc}     \usepackage{xcolor}     \usepackage[pdftex]{hyperref}     \usepackage{amssymb}     \usepackage{geometry}     \usepackage{graphicx}     \usepackage[numbered,autolinebreaks,useliterate]{mcode}          \newenvironment{testcode}[2]%     {\small\begin{quote}title: #1     \begin{lstlisting}     #2\end{lstlisting}     }{\end{quote}}          \begin{document}          \begin{testcode}{some code}     {myvar= 1;}\end{testcode}          \end{document}      I left the list of all packages in the original LaTeX doc because I am unsure about package dependencies. The following substitution of the later part of the code DOES compile and typesets very much as I would like, but then I cannot pass variables to `newenvironment`, removing some of the flexibility I was looking for:               \newenvironment{testcode}     {\small\begin{quote}}{\end{quote}}          \begin{document}          \begin{testcode}{        title: some code        \begin{lstlisting}           myvar= 1;        \end{lstlisting}}     \end{testcode}          \end{document}      I also attempted substituting `newenvironment` with `lstnewenvironment`, somewhat according to this solution, but did not get rid of the error. Appreciate some help with this.


title: Different fancyref strings for different reference targets?

text: I use `fancyref` with the default prefixes (`chap:`, `fig:` and so on). I'm not entirely happy with the way the references are generated when the referenced object is on a different page. For tables and figures, the package generates something like _Abbildung 42 auf Seite 84_ (figure 42 on page 84), which is acceptable. When referring to an entire chapter, the package uses the same text ( _Kapitel 4 auf Seite 50_ ). In my opinion, that isn't entirely correct -- the chapter is not placed on page 50, it starts on page 50 and may stretch across any number of pages. I'd rather like the `\fref{}` command to use a different text when referring to chapters and parts, like _Kapitel 4 **ab** Seite 50_. At the same time, the references to figures and tables should not change. Is this possible? MWE               \documentclass{scrartcl}     \usepackage[ngerman]{babel}      \usepackage[german]{fancyref}         \usepackage{lipsum}          \begin{document}          \section{Einleitung}     \label{sec:A}     %\usepackage{graphics} is needed for \includegraphics     \begin{figure}[htp]       Ze Figure       \caption{A Figure}       \label{fig:Foo}     \end{figure}     \lipsum[1-10]          \section{Überleitung}     \label{sec:B}     \lipsum[1-10]          \section{Weiterleitung}     Wie in \fref{sec:A} bereits erw"ahnt\ldots     % This reads "auf Seite 1", should be "ab Seite 1"          Wie in \fref{fig:Foo} zu erkennen ist\ldots     % This reads "auf Seite 1", which is acceptable and should not be changed          \end{document}


title: biblatex: List of references of own papers in appendix (might intersect with bibliography)

text: In my thesis I need a `chapter` in the appendix, which lists my own papers. How can I achieve that with the following conditions:   * `biblatex` is used   * it is possible that a paper has already been cited in the text and therefore is in the main bibliography -> it then shall _also_ appear in the appendix   * most of those papers of my own have _not_ been cited in the text and therefore shall _not_ appear in the main bibliography!   * the papers for the appendix are marked with the keyword "myPapers"   * the bibliography in the appendix shall have no heading, but just start where is is placed in the sourcecode with the first reference. What I tried: I have a working document with a main bibliography at the end (before the appendix), created by `\printbibliography`. options:               \usepackage[natbib=true, style=numeric-comp, backend=bibtex8]{biblatex}        * * * In the appendix I added:               \begin{refsegment}          \printbibliography[keyword=myPapers]     \end{refsegment}      Which had no visible effect at all. (No bibliography created.)   * Does biblatex recognize, that the papers were already cited?   * the main bibliography was _not_ in a `refsegment`-group! * * * I added a `\nocite{Martin2007a, Martin2007b, Martin2008a, etc.}` and now the list of papers is ok, however the same papers (also with the same number) appear in the main bibliography, even if they were not cited in the main document!   * how can I avoid that?


title: How to make really pseudo pseudocode

text: Is there a way to do really casual peudocode in Latex? By casual I mean pseudocode that's more like a list of plain English steps, with occasional conditional/looping operators. I've looked at the algorithm package and its variants (algoritmic, algoritmicx, etc) and they're all too restrictive for really casual pseudo- code. I basically want to just list some steps with a few conditions, but the packages all seem to require that every line be some algorithm operator (if, while, for) or mathematical operation. I'd like a lot of my lines to just be plain English, like "Load input images", but occasionally I want to be able to add a loop or condition so I want something more advanced than a basic bullet list. I'd also like it to be in a nice looking environment like the algorithm environments so I can refer to it by a label. As an example, I'd like to be able to write pseudocode something like the following, where operators like For would get highlighted nicely and the whole thing's in an algorithm environment, but otherwise it's just plain English: Algorithm to make egg salad   * Boil N Eggs   * For (Each boiled egg) {     * Crack and peel shell     * Add to bowl }   * Add mayonnaise and mix contents of bowl.


title: Changing values in fancytabs

text: I am using MiKTeX 2.9 on Windows 7 (64) with XeLaTeX and the Texmaker editor. For an address book for my son's preschool I would like to use `fancytabs` for a thumb index. The package works fine and produces the thumb index as described in the documentation. I do not understand how to change the package's presets, however. I have some experience with the syntax in TikZ and LaTeX, but, alas, only a rudimentary understanding of programming. I suspect this may be why I cannot answer the following question when reading Raphael Pinson's `fancytabs` documentation: How, exactly, do I change one of the package's parameters for use in a given document document? The `\fancytabsStyle` default, for instance, is `\Large\scshape`. How do I change this default in my preamble so that, for instance, the small caps are no longer in use? I tried altering the "variable" and then the "accessor" (those are the terms in "2 Implementation" of the documentation) for this parameter by adding the following after `\usepackage{fancytabs}`:               \newcommand{\tab@style}{\Large}      I also tried               \usepackage{fancytabs}     \renewcommand{\tab@style}{\Large}      and I also tried adding `\newcommand{\tab@style}{\Large}` or `\renewcommand{\tab@style}{\Large}` after `\begin{document}`. I suspect that there is some basic principle of using commands that is escaping me. If someone could show me how to change a single parameter of `fancytabs` I would be very grateful.


title: Best practices with \titlespacing?

text: I think my titles are too close to the text as they are set by default, but when I try to modify the distance, my document does not look nice. What are the best practices for `\titlespacing` options?               \documentclass[11pt,a4paper,oneside]{report}     \usepackage[english]{babel}     \usepackage{setspace}     \usepackage{array}     \usepackage{covington}     \usepackage{pslatex}     \usepackage{titlesec}     \usepackage[a4paper]{geometry}     \geometry{top=4cm, bottom=3.7cm, left=5cm, right=3.5cm}        \usepackage[bitstream-charter]{mathdesign}     \usepackage[T1]{fontenc}      \usepackage[bottom,norule]{footmisc}     \setlength\belowcaptionskip{1\baselineskip}                \begin{document}          \newpage     \chapter{Literature Review}          \section{Historical Perspective on Dialect Studies of American English}          \subsection{Dialect Studies in the United States}          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vehicula sem vel risus pharetra id viverra velit consectetur. Donec faucibus egestas eros. Nunc vel velit in risus tristique molestie. Cras at libero sem. Aenean sollicitudin, ipsum ut bibendum sollicitudin, lacus arcu malesuada risus, sollicitudin posuere tortor nulla quis metus. Aenean odio enim, dignissim id pellentesque quis, aliquam eu elit. Aliquam erat volutpat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc rhoncus adipiscing pharetra. Integer hendrerit odio eget nisi bibendum et venenatis nisl cursus. Maecenas massa elit, facilisis placerat volutpat et, suscipit eget velit.          Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa. Nullam in eros non nunc tincidunt faucibus vitae et enim. Pellentesque luctus libero sit amet leo venenatis imperdiet. Quisque pretium, ante eu condimentum varius, felis velit tristique mauris, quis congue augue quam eu diam. Nulla facilisi.          Proin ligula lectus, volutpat eu suscipit id, gravida sit amet velit. Praesent ullamcorper orci eget metus gravida ut mattis erat dignissim. Aliquam erat volutpat. Donec et justo ac dui ultrices ornare. Duis quis leo quis diam gravida malesuada in ut tellus. In tincidunt sem in mi pellentesque mollis. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris interdum pellentesque varius. Donec lacinia pulvinar risus, vitae posuere urna imperdiet eget. Phasellus ac neque arcu, nec laoreet lorem. Mauris nec sem id mauris vestibulum hendrerit. Etiam sapien purus, sodales in pretium lacinia, mollis vitae leo.          \subsection{Dialect Atlases}           Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vehicula sem vel risus pharetra id viverra velit consectetur. Donec faucibus egestas eros. Nunc vel velit in risus tristique molestie. Cras at libero sem. Aenean sollicitudin, ipsum ut bibendum sollicitudin, lacus arcu malesuada risus, sollicitudin posuere tortor nulla quis metus.           \subsubsection{Origins of Dialect Atlases}     Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa. Nullam in eros non nunc tincidunt faucibus vitae et enim. Pellentesque luctus libero sit amet leo venenatis imperdiet. Quisque pretium, ante eu condimentum varius, felis velit tristique mauris, quis congue augue quam eu diam. Nulla facilisi.          Proin ligula lectus, volutpat eu suscipit id, gravida sit amet velit. Praesent ullamcorper orci eget metus gravida ut mattis erat dignissim. Aliquam erat volutpat. Donec et justo ac dui ultrices ornare. Duis quis leo quis diam gravida malesuada in ut tellus. In tincidunt sem in mi pellentesque mollis. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris interdum pellentesque varius. Donec lacinia pulvinar risus, vitae posuere urna imperdiet eget. Phasellus ac neque arcu, nec laoreet lorem. Mauris nec sem id mauris vestibulum hendrerit. Etiam sapien purus, sodales in pretium lacinia, mollis vitae leo.          Proin ligula lectus, volutpat eu suscipit id, gravida sit amet velit. Praesent ullamcorper orci eget metus gravida ut mattis erat dignissim. Aliquam erat volutpat. Donec et justo ac dui ultrices ornare. Duis quis leo quis diam gravida malesuada in ut tellus. In tincidunt sem in mi pellentesque mollis. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris interdum pellentesque varius. Donec lacinia pulvinar risus, vitae posuere urna imperdiet eget. Phasellus ac neque arcu, nec laoreet lorem. Mauris nec sem id mauris vestibulum hendrerit. Etiam sapien purus, sodales in pretium lacinia, mollis vitae leo.          Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa. Nullam in eros non nunc tincidunt faucibus vitae et enim. Pellentesque luctus libero sit amet leo venenatis imperdiet. Quisque pretium, ante eu condimentum varius, felis velit tristique mauris, quis congue augue quam eu diam. Nulla facilisi.     Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa. Nullam in eros non nunc tincidunt faucibus vitae et enim. Pellentesque luctus libero sit amet leo venenatis imperdiet. Quisque pretium, ante eu condimentum varius, felis velit tristique mauris, quis congue augue quam eu diam. Nulla facilisi.          Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa. Nullam in eros non nunc tincidunt faucibus vitae et enim. Pellentesque luctus libero sit amet leo venenatis imperdiet. Quisque pretium, ante eu condimentum varius, felis velit tristique mauris, quis congue augue quam eu diam. Nulla facilisi.          \subsubsection{The \emph{Linguistic Atlas of the United States and Canada}}          Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa.           \paragraph{The \emph{Linguistic Atlas of New England}}     Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa. Nullam in eros non nunc tincidunt faucibus vitae et enim. Pellentesque luctus libero sit amet leo venenatis imperdiet. Quisque pretium, ante eu condimentum varius, felis velit tristique mauris, quis congue augue quam eu diam. Nulla facilisi.     Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa. Nullam in eros non nunc tincidunt faucibus vitae et enim. Pellentesque luctus libero sit amet leo venenatis imperdiet. Quisque pretium, ante eu condimentum varius, felis velit tristique mauris, quis congue augue quam eu diam. Nulla facilisi.          Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem.           \paragraph{Developments of the Surveys for \emph{LAUSC} after the Publication of \emph{LANE}}\label{Developments}     Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa.      Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa.           Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa.           Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa.           Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa.           Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa. Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa.           Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa. Sed luctus volutpat mi, vel rhoncus lacus semper quis. Pellentesque egestas lobortis mollis. Quisque egestas, velit sed cursus venenatis, lacus felis vehicula ligula, et elementum mauris dolor pellentesque sem. Aliquam erat volutpat. Aliquam ullamcorper congue leo fermentum cursus. Curabitur tempor vulputate magna eu imperdiet. Pellentesque ornare metus ac odio pretium auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras quis neque sit amet tortor scelerisque cursus condimentum vitae massa.                \end{document}


title: auto-pst-pdf behaviour on Linux outside of the /home/ directory

text: I've searched and found many questions and answers regarding the use of auto- pst-pdf but none of them have helped me so far. My problem is that I'm generating a code 39 bar code, which does not always appear in the final pdf. I'm using a combination of LaTeX and Velocity, run through a Java Server environment on a Linux system. First, are the packages included in the .tex file:               \usepackage{helvet}     \usepackage[a4paper, landscape, margin=0.25in]{geometry}     \usepackage{graphicx}     \usepackage{multirow}     \usepackage{amssymb}     \usepackage{pst-barcode}     \usepackage{auto-pst-pdf}     \usepackage{xparse}     \usepackage{seqsplit}     \usepackage{array}     \usepackage{longtable, tabu}     \usepackage{fancyhdr}     \usepackage{multicol}     \usepackage[english]{babel}     \usepackage{xstring}     \usepackage{tikz}     % the next three packages were added after reading some auto-pst-pdf      % documentation and have had no effect     \usepackage{ifplatform}     \usepackage{pst-pdf}     \usepackage{xkeyval}      The bar code is generated as follows:               \begin{pspicture}       \psbarcode{${workTicketId}}{includetext height=0.375}{code39}     \end{pspicture}      PdfLatex is invoked by a java process using the following command:               pdflatex -shell-escape -enable-write18 template.tex      A resulting pdf is generated, just without the bar code. PdfLatex is started within the directory of the template.tex file. The directory containing all the files local to the template.tex file is in /tmp/report/. The user account which started the java process has full access and owership to the /tmp/report/ directory. The stout.log file contains warnings which seem to almost always appear if auto-pst-pdf has issues:               -------------------------------------------------     auto-pst-pdf: End auxiliary LaTeX compilation     -------------------------------------------------          Package auto-pst-pdf Warning:          Creation of template-autopp.dvi failed.     This warning occured on input line 124.          Package auto-pst-pdf Warning:          Could not create template-pics.pdf. Auxiliary files not deleted.     This warning occured on input line 124.      Finally, if I move the files from the /tmp/report/ directory to /home/me/report/ and run the same PdfLatex command - then auto-pst-pdf generates the bar code correctly and the resulting pdf contains said bar code. It is not an option to generate the reports within the users /home/ directory. Any suggestions? Does someone see something that I've missed?


title: centering figure, containing a \subfigure with customized \includegraphics

text: My Problem: I would like to have all images in my Latex document beeing well sized in height and width. Precisly I want, that protrait and landscape images get a predefined size in the document. I got this by this style:               \RequirePackage{ifthen,graphicx}     \newlength{\widthW}     \newlength{\heightH}     \newcommand\includegraphicsJustified[1]{         \settowidth{\widthW}{\includegraphics{#1}}         \settoheight{\heightH}{\includegraphics{#1}}         \ifthenelse{\lengthtest{\widthW > \heightH}}{             \includegraphics[width=0.40\textwidth]{#1}\\         }{             \includegraphics[height=0.35\textheight]{#1}\\         }     }      The second thing is, I want to use this in a \subfigure because I have a lot of images which have to be side by side. The problem is, everything works great, but as soon as I try to centering this images I got: > ! LaTeX Error: Something's wrong--perhaps a missing \item. Thats my code:               \begin{figure}     \centering     \subfigure[comment]{\includegraphicsJustified{images/img1.png}  }     \subfigure[comment]{\includegraphicsJustified{images/img2.png}  }     \caption{whole comment}     \end{figure}      Note again: without the \centering command it works. I tried to add this to my style, to automaticly center all figure elements:               \makeatletter     \let\oldfigure\figure     \def\figure{\@ifnextchar[\figure@i \figure@ii}     \def\figure@i[#1]{\oldfigure[#1]\centering}     \def\figure@ii{\oldfigure\centering}     \makeatother      This works great, but not when I use the \subfigure: > ! LaTeX Error: Something's wrong--perhaps a missing \item. Without the \subfigure I can use my \includegraphicsJustified{} command and it get centered. Note also: When I use the subfigure with a normal \includegraphics{} it works! Is there anybody out there who could explain this or much better can distribute a solution?


title: First node in \pnodes starting at non-zero index

text: I'm using the `pst-node` package. Is it possible to let the first node name from `\pnodes`[*] start at, say, `P8` instead of `P0`? (In general, something other than `P0`.) [*] See page 39 of the manual. **Update** Here is the code that I produced quite a long time ago. I think it can be made somewhat simpler without changing much if I can use `\pnodes` with the first node name starting a `$P_i$ for $i \neq 0$`.               % pdflatex -shell-escape test.tex          \documentclass{article}          \usepackage{auto-pst-pdf,pstricks-add}          \begin{document}          \begin{pspicture}(-0.8,0)(11.4,15.8)      \pnode(0,0){P1}      \pnode(0,9.5){P2}      \pnode(1.05,9.5){P3}      \pnode(1.05,11.6){P4}      \pnode(0,11.6){P5}      \pnode(0,15){P6}      \pnode(10.5,15){P7}      \pnode(10.5,5.7){P8}      \pnode(11.4,4.8){P9}      \pnode(10.5,4.8){P10}      \pnode(10.5,1.2){P11}      \pnode(11.4,0.3){P12}      \pnode(10.5,0.3){P13}      \pnode(10.5,0){P14}      \pnode(9.6,0){P15}      \pnode(9.6,0.9){P16}      \pnode(8.7,0){P17}      \psline(P17)(P1)(P2)(P3)      \psline(P4)(P5)(P6)(P7)(P8)      \psline(P9)(P10)(P11)      \psline(P12)(P13)(P14)(P15)(P16)      \psIntersectionPoint(P1)(P7)(P6)(P14){P18}      \rput(P18){\textbf{Studie}}      \pnode(4.5,9){P21}      \pnode(4.5,14){P22}      \pnode(9.5,14){P23}      \pnode(9.5,9){P24}      \pspolygon(P21)(P22)(P23)(P24)      \psIntersectionPoint(P21)(P23)(P22)(P24){P25}      \rput(P25){\text{Sofagruppe}}      \pnode(7,2.5){P31}      \pnode(7,7.5){P32}      \pnode(8.5,7.5){P33}      \pnode(8.5,2.5){P34}      \pspolygon(P31)(P32)(P33)(P34)      \psIntersectionPoint(P31)(P33)(P32)(P34){P35}      \rput{90}(P35){\text{Diskussionspanel}}      \pnode(2,2){P41}      \pnode(2,3.2){P42}      \pnode(3.6,3.2){P43}      \pnode(3.6,2){P44}      \pspolygon(P41)(P42)(P43)(P44)      \psIntersectionPoint(P41)(P43)(P42)(P44){P45}      \rput(P45){\parbox{0.2\textwidth}{\centering\small Nyheds-\\ pult}}      \pnode(!14 5 div 4 5 div 6 3 sqrt add mul){P46}      \psdot(P46)      \uput[90](P46){\text{Kamera}}      \pnode(2.8,3.2){P47}      \pcline[linestyle=dashed](P46)(P47)      \ncput*{$d$}     \psset{       linestyle=dotted     }      \psline(P46)(P42)     % dist(P46,P42) = dist(P46,P43) = 8/5*sqrt(2+sqrt(3)) = 3,09      \psline(P46)(P43)      \psarc(P2){1.05}{0}{90}      \psarc(P5){1.05}{270}{360}      \psarc(P10){0.9}{0}{90}      \psarc(P13){0.9}{0}{90}      \psarc(P15){0.9}{90}{180}     \psset{       arrows=|-|,       linestyle=dashed,       offset=12pt,       nrot=:U     }      \pcline(P1)(P6)      \ncput*{15{,}0}      \pcline(P6)(P7)      \ncput*{10{,}5}     \end{pspicture}          \end{document}      If someone (Herbert?...) can make the drawing with some much simpler code, I will gladly see it. **Update 2** Here is what I have now, adapting Herbert's idea.               \documentclass{article}          \usepackage{auto-pst-pdf,pstricks-add}          \def\door(#1,#2)#3{%       \psline[         linecolor=white,         linewidth=5\pslinewidth,         dimen=middle       ](#1,#2)(!#1 #2 #3 add)       \psline(#1,#2)(!#1 #3 add #2)       \psarc[         linestyle=dotted       ](#1,#2){#3}{0}{90}     }          \begin{document}          \begin{pspicture}(-0.8,0)(11.4,15.8)      \psframe(0,0)(10.5,15)      \rput[lb]{90}(9.6,0){\door(0,0){0.9}}      \door(10.5,0.3){0.95}      \door(10.5,4.8){0.95}      \door(0,9.5){1.05}      \rput(5.25,7.5){\textbf{Studie}}      \rput(0,11.6){\psscalebox{1 -1}{\door(0,0){1.05}}}      \psTextFrame(4.5,9)(9.5,14){Sofagruppe}       \psTextFrame(7,2.5)(8.5,7.5){\rotatebox{90}{Diskussionspanel}}      \psTextFrame(2,2)(3.6,3.2){\parbox{0.1\textwidth}{\centering\small{Nyheds-\\ pult}}}      \pnode(!2.8 0.8 6 3 sqrt add mul){P}      \psdot(P)      \uput[90](P){Kamera}     \psset{linestyle=dotted}      \psline(P)(2,3.2)      \psline(P)(3.6,3.2)      \pcline[        linestyle=dashed      ](P)(2.8,3.2)      \ncput*{$d$}     \psset{       arrows=|-|,       linestyle=dashed,       offset=12pt,       nrot=:U     }      \pcline(0,0)(0,15)     \ncput*{15{,}0}      \pcline(0,15)(10.5,15) \ncput*{10{,}5}     \end{pspicture}          \end{document}      Can the non-Herbert part be drawn even simpler?


title: Mixed (sub)equation numbering within an array

text: I am trying to use subequations inside an array environment. Specifically, I am trying to create an array that has both regular numbered equations and subequations. I am looking to create an array that has the appearance:               A + B --> C + D       (1.1)     E + F --> G + H       (1.2)     I + J --> K + L       (1.3a)           --> M + N       (1.3b)           --> O + P       (1.3c)      The first two reactions (equations) in the array are numbed regularly, but the final three represent branching so I'd like to label them as subequations and be able to reference them as such. Any ideas?


title: how to draw two connected rectangles

text: How can I draw two rectangles (or two shapes in general) so that they touch each other. Below is the minimum working example.               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{shapes,positioning}     \begin{document}     \begin{tikzpicture}     \node[rectangle,draw,minimum width=2in, minimum height=1.00in, fill=cyan] (a) {}     node[rectangle,draw,fill=magenta] (b) [left=of a] {};     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/8jZpV.png)


title: Precision copyfitting in xcoffin

text: Further indulging my curiosity with xcoffins, I'm playing with xcoffins- tschichold-example.tex. In the TeX reconstruction of the front page of _Elementare Typographie_ , the text is slightly misaligned with respect to the rule. This is obviously due to the gap (sorry, I don't know the technical term) between the right-hand edge of the glyph outline and the right-hand edge of its bounding box. Now, in ``normal'' justified text, this gap is, I think, suppressed. How can I suppress it in this case, without losing the ability of fitting the coffin to the text automagically, and, preferably, not having to worry about wrapping individual letters (such as the **n** in this case) in TeX commands? (PS I now know they're called sidebearings; thanks to @egreg.) ![Misalignment of text with rule](http://i.stack.imgur.com/vBwRP.png)


title: Disable the function of the lettrine command

text: I would like to have two versions of my document. The differences depend on whether `kpfonts` is loaded or not. If it's not loaded I want to disable the`\lettrine` command and the arguments in the command should appear as normal text. Below is a MWE.               \documentclass{scrreprt}     \usepackage{lettrine}     \usepackage{lipsum}     %\usepackage{kpfonts}          \makeatletter     \@ifpackageloaded{kpfonts}{%     %don't do anything in this MWE     }     {     \renewcommand{\familydefault}{\sfdefault} %just an example     %I also want to disable lettrine here     }     \makeatother          \begin{document}          \chapter{Whatever}          \lettrine[findent=1pt, nindent=1pt]{N}{ow, let lipsum do the job:} \lipsum[1]          %Now, let lipsum do the job: \lipsum[1]. <<Achieve this with the above line          \end{document}      Is there a way of doing this so I wouldn't have to edit the actual text?


title: I can't find file "gbsnuf9"

text: I'm generating one chinese report and getting following error. Part of my code:               \usepackage{textcomp}     \usepackage[T1,T2A]{fontenc}     \usepackage{CJKutf8}     \usepackage[english,russian]{babel}     \usepackage[utf8]{inputenc}     \begin{document}          \begin{CJK*}{UTF8}{gbsn}       some chinese text          \clearpage\end{CJK*}     \end{document}      Error Message:               kpathsea: Running mktexmf gbsnuf9     ! I can't find file `gbsnuf9'.     <*> ...=ljfour; mag:=1; nonstopmode; input gbsnuf9          Please type another input file name     ! Emergency stop.     <*> ...=ljfour; mag:=1; nonstopmode; input gbsnuf9      How to fix this problem?


title: Sections with optional counting arguments

text: I am back for more... =) I am actually trying to fix my own problems, and i feel i learn so much here. Thank you so much for helpin someone as clueless as me ^^ I am attempting to make a text, with a list of tasks. Oppgave in norwegian is the same as task. Each task should have a mandatory argument saying how much points the task is worth. The task, should also have an optional argument `alt` which will input the task as Alternative 1. Below is a minimal example of what I am looking for               \Oppgave{5}     \Oppgave{3}     \Oppgave{2}     \Oppgave{4}{Alt}     \Oppgave{4}{Alt}     \Oppgave{3}     \Oppgave{7}{Alt}     \Oppgave{7}{Alt}     \Oppgave{7}{Alt}     \Oppgave{9}      The output should look like this > Oppgave 1 (5 poeng) > > Oppgave 2 (3 poeng) > > Oppgave 3 (2 poeng) > > Oppgave 4 Alternative I (4 poeng) > > Oppgave 4 Alternative II (4 poeng) > > Oppgave 5 (3 poeng) > > Oppgave 6 Alternative I (7 poeng) > > Oppgave 6 Alternative II (7 poeng) > > Oppgave 6 Alternative III (7 poeng) > > Oppgave 7 (9 poeng) Here is a minimal example of my work so far.               \documentclass[10pt,a4paper]{article}     \usepackage[hmargin=3cm,vmargin=3.5cm]{geometry}     \usepackage[utf8]{inputenc}     \usepackage[norsk]{babel}     \usepackage{amsmath}          \newcounter{problem}     \setcounter{problem}{1}          \newcommand{\oppgave}[1]{\section*{Oppgave \arabic{problem} {\normalfont    \normalsize (#1 poeng)}     \addcontentsline{toc}{section}{Oppgave \arabic{problem} }} \stepcounter{problem} }          \begin{document}          \tableofcontents          \oppgave{3}          \oppgave{4}          \oppgave{2}          \end{document}


title: Hyperref did not work properly when I reset the section-counter during the document

text: Hyperref from the TOC bring me to the wrong part of the document when I RESET the section counter in each PART. -- When I click in the TOC on section 1 in part II, the hyperref brings to section 1 in part I. -- Is there a whay to handle this problem? part I section 1 section 2 section 3 part II section 1 section 2 etc. Best regards.


title: How to check if a fragile macro value is empty or will not create text with plain TeX conditionals?

text: A similar question has been already asked here, but has not been answered yet for fragile commands such as eg. `\@author`? What would be the right way to get detect if `\author` has been called with a value:               \usepackage{ifthen}     \usepackage{xifthen}     \usepackage{etoolbox}          \makeatletter          \ifXXXXXX{\@author}%     {%           author set \par     }{%         author not set at all \par         or set to \{\} () \par         or to {\textbackslash}empty     }%          \makeatother


title: Drawing a rectangular shape with a border around it in TikZ

text: Could anyone please tell me how do I draw a rectangular shape with a black border around it? I want that for all my rectangles in the following TikZ picture:               \documentclass[tikz]{standalone}     \begin{document}     \begin{tikzpicture}[every node/.style = {shape          = rectangle,                                              rounded corners,                                              fill           = black!30!white,                                              minimum width  = 3cm,                                              minimum height = 1.5cm,                                              align          = center,                                              text           = black},                        black edge/.style  = { -,                                              ultra thick,                                              black,                                              shorten >= 2pt}]          % the nodes : possible  \newcommand*\dx{5} \newcommand*\dy{2}     \node(0;0) at (5,0) {Patients};       \node(1;1)  at (10, 2) {Treatment $A_1$};       \node(1;-1) at (10,-2) {Treatment $A_2$};     \foreach \j in {-1,1}       { \draw[black edge] (0;0.east) -- (1;\j.west); }     \end{tikzpicture}     \end{document}


title: pgfplotstable: two columns into one but removing text (keeping numbers) from new column

text: **Question:** This is a followup up to pgfplotstable: Two columns into one with numeric data, but can't round. Except this time, I have some text throughout the mean and sd column and would like to remove it before the `\pgfmathprintnumber` outputs the new column. I have tried including a `string replace*` throughout various places in the code, but none seems to work. How do I get `\pgfmathprintnumber` to not scan the text and print the 'NaN (NaN)'?               \documentclass{standalone}     \usepackage{pgfplotstable}     \begin{document}     \pgfplotstableread[row sep=\\,col sep=&,header=true]{     var & mean & sd \\     a & 95.265 & 11.4801 \\     b & 85.7 & 18.95 \\     c & text & text \\     d & 15 & 5.01 \\     }\means          \pgfplotstabletypeset[       columns/var/.style={string type},       columns/mixed/.style={string type,column type=l,column name={Mean (SD)}},       columns={var, mixed},       create on use/mixed/.style={         create col/assign/.code={%           \edef\entry{\noexpand\pgfmathprintnumber[fixed zerofill, precision=2]{\thisrow{mean}} (\noexpand\pgfmathprintnumber[fixed zerofill, precision=2]{\thisrow{sd}})}%           \pgfkeyslet{/pgfplots/table/create col/next content}\entry         }       }     ]\means     \end{document}


title: Uppercase sections and subsections on ToC

text: How can I insert `\MakeUppercase` inside the table of contents for sections and subsection?               \renewcommand{\l@section}[2]%     {\@dottedtocline{1}{.5em}{1.3em}%      {{\bfseries\selectfont#1}}{#2}}


title: Remove "chapter 1" and have just 1 in the report

text: In the beginning of a new chapter, Latex have Chapter 1 XXXXXXXXXX instead of this format i want to have 1 XXXXXXXXXX can you pls suggest how to customize the chapter? Thanks in advance


title: Justifying text and removing unwanted space

text: Using LaTeX text justification, sometimes the output tend to have more space in order to be justified from right and left as shown in the following picture. Between the Dr. and Lloyd is more space than required. How can I avoid this. ![enter image description here](http://i.stack.imgur.com/2Zvfc.png)


title: How to install tikz/pgf libraries

text: I am trying to run a rather simple code using `tikz` and a `pgf` library. My simple code is               \documentclass{book}     \usepackage[explicit]{titlesec}     \usepackage{fourier}     \usepackage{tikz}     \usepackage{epigraph}     \usepgflibrary{qrr.shapes.openrectangle}          \begin{document}              This is a test document          \end{document}      This code was copied from Gonzalo Medina's answer in Customizing chapter style with tikz. When I run this code I get the error > '!Package pgf Error: I did not find the pgf library > qrr.shapes.openrectangle'. I am using `TeXLive-2014` (actually I installed it yesterday) but nonetheless I updated all packages just in case, but that didn't seem to help. Any idea how to use this specific library and why it cannot be found in the texmf trees?


title: Citations on same page?

text: I am using `classic-thesis` style for the document, and `\bibliographystyle{kluwer}` . By default all the citations are given in the Bibliography at the end of the document. For example a citation on a given page will be referred by its identifier lets say [Author 2001] when I use the `\cite{author2001}`. The full entry of the citation can be seen in the Bibliography at the end with this identifier [Author 2001]. What I would like is that this entry full entry appear on the same page as where the `\cite{author2001}` command is invoked. Since the `classic-thesis` supports margin notes it would be great if the citations can be present as margin notes, or even in the footnotes and also in the bibliography. Is there any package / hack to achieve this?


title: \newmdtheoremenv environment without numbering without caption

text: I would like to make a frame around content that breaks across pages. For that I use `mdframed` package. Note that in that frame I also have `\section` and `\subsection` markers (because I am writing a research proposal for TUBITAK where all my content has to be put into a 1pt wide frame ... originally they use Microsoft Word with a single-column-single-row table where the row has a frame and can break across pages ... now I have to reproduce that in LaTeX because ... you know ... Word has no Biblatex and so on. If I use `\begin{mdframed}` it works nice, but the frame is too thin. Using `\usepackage[linewidth=1pt]{mdframed}` did not work. Now I tried to configure the frame to use a heavier line style with `\newmdtheoremenv`. Now I get compile errors for each `\section` and `\subsection` entry. Do you have any ideas how I could avoid that? If you have another idea for putting text into across-page-breakable frames or just for putting vertical lines besides text on the page I am also grateful. (I could then just add starting and finishing horizontal lines. mdframed makes footnotes frame-local so having an alternative solution would even be better.)


title: UTF8 not working in LuaTeX in TeXLive 2010

text: I've been trying to set a document using lualatex in my TeXLive 2010 installation. Unfortunately, the non-ASCII characters are left out from the output. In the following minimal document produces a PDF with no warnings or errors but it only contains the second line. Using the inputenc package results in an error `Unicode char ... not set up for use with LaTeX.`               \documentclass{minimal}     \begin{document}     číčí     abcd     \end{document}      pdflatex handles the document fine. My version of lualatex is               This is LuaTeX, Version beta-0.60.2-2010071421 (Web2C 2010) (rev 3736)      Thanks for any pointers. EDIT: For bonus points, how would I use the Bitstream Charter fonts? I use the mathdesign package, but with them (and even when loading `fontspec`, `fontenc` and/or `luaotfload`), the non-ASCII characters are missing :/               \usepackage[bitstream-charter]{mathdesign}


title: Draw (dashed) pathes with multiple branches in Tikz?

text: How should I draw pathes with multiple branches in Tikz? The `draw` command only provides 1-dimensional pathes. Is there a way to naturally merge them? **My thoughts:** Usually I would simply combine multiple `draw` commands. But in the case of e.g. dashed lines the drawing fails at the tie points. **Minimal working example:**               \documentclass{article}          \usepackage{tikz}          \begin{document}       \begin{tikzpicture}         % way 1: only draw missing part         \draw[dashed,->] (0,0)   -- (1,0) -- (1,1);         \draw[dashed]    (2.5,0) -- (1,0);       \end{tikzpicture}       \vspace{1em} % dummy space            \begin{tikzpicture}         % way 2: draw full path         \draw[dashed,->] (0,0)   -- (1,0) -- (1,1);         \draw[dashed,->] (2.5,0) -- (1,0) -- (1,1);       \end{tikzpicture}     \end{document}      The result is looking ugly in both cases: ![Result for MWE](http://i.stack.imgur.com/viiQ7.png)