title: Do I really have to specify the width of my wrapfigure twice?

text: I'm trying to add a figure to my document. Because I want text to wrap around it, I use the `wrapfigure` environment:               \begin{wrapfigure}{r}{1cm}       \begin{center}         \includegraphics[width=1cm]{"My figure"}       \end{center}         \caption{A caption of my figure}     \end{wrapfigure}      As you can see, I want my figure to be shrunk down (the file is quite large) so I set the width to 1 cm. But now I must also tell the `wrapfigure` to be 1 cm wide. Why can't `wrapfigure` just automatically be as wide as the figure it contains?


title: How to use latex symbols in SciDAVIs graph

text: How can I use latex symbols in SciDAVIs graphs. Is there any way I can export the SciDAVIs graph to TiKz compatible TEX files? Please Help


title: two column document so in the first i have text and in the second pictures

text: I want to make a two column document such as in the first column there is text and in the second column pictures with examples for the text. How can i do that?


title: Oscola LaTeX problem creating footnotes

text: I am having some problems getting footnotes to render properly with Oscola LaTeX. A minimal LaTeX file to illustrate my problem would be:               \documentclass[12pt, a4paper]{article}          \title{Back to the Future? Learning Lessons on the Pro-Competitive Regulation of Health Services}     \author{Lindsay Stirton}          \usepackage[style=oscola, ibidtracker=true]{biblatex}      \addbibresource{/Users/ljs/Documents/bibs/myrefs.bib}     \usepackage[style=british]{csquotes}          \setlength{\parskip}{\baselineskip}          \begin{document}          \maketitle          Miller concludes that ``competition law could be extremely useful in deterring anticompetitive activity detrimental to the health sector.''\footcite[p. 481]{Miller:1992ve}          \end{document}      The BibLaTeX entry is:               @article{Miller:1992ve,     author = {Miller, Frances},     title = {{Competition law and anticompetitive professional behaviour affecting health care}},     journal = {The Modern Law Review},     year = {1992},     volume = {55},     number = {4},     pages = {453--481}     }      This would produce a footnote at the end of the sentence that typsets as: > Frances Miller, ‘Competition law and anticompetitive professional behaviour > affecting health care’ (1992) 55(4) The Modern Law Review 453 , p. 481. Note the spacing in "453 , p. 481." Clearly I need to drop the spacing before the comma. Is there any way to do this? Incidentally, the problem arises only with articles, not with books. Finally, in submitting this request, I'd like to record my view that Paul Stanley has done a great service to the legal community in producing this pa


title: Install Adobe Garamond (pfb, afm) for MikTeX

text: I'd like to replace the URW-Garamond in my document with Adobe Garamond. I got the 6 pfb- and pfm-files and couldn't find a way to install it for MikTex.


title: Redefine acronym look in document

text: I would like to redefine the way acronym looks when I use `\acrfull` macro. Now it shows meaning of acronym and then abbreviation in brackets, but I would like it to show the opposite way - abbreviation and then meaning in brackets. If I put it this way               \newacronym{hsv}{HSV}{eng. Hue, Saturation, Value}      it shows > ... eng. Hue, Saturation, Value (HSV) ... and I would like it to look like > ... HSV (eng. Hue, Saturation, Value) ... Is it possible to do something like this only for `\acrfull` macro?


title: Calculations in Table using spreadtab

text: When I use this piece,               \documentclass[a4paper,12pt]{report}     \usepackage[inner=0.75in,outer=0.65in,top=0.75in,bottom=0.65in]{geometry}     \usepackage{multirow}     \usepackage{spreadtab}     \usepackage{url}     \usepackage[sc]{mathpazo}{setspace}     \begin{document}     \begin{table}[!htb]     \centering       \caption{Sample} \vspace{3pt}     \begin{spreadtab}{{tabular}{|l|c|c|c|}}     \hline     @ b1 & 1 & 2 & 3 \\ \hline     @ b2 & 1 & 2 & 3 \\ \hline     @ \textbf{Sub Total} & \textbf{:={b1+b2}}      &\textbf{:={c1+c2}}&\textbf{:={d1+d2}}\\ \hline     @ b5 & 1 & 2 & 3 \\ \hline     @ b6 & 1 & 2 & 3 \\ \hline     @ Sub Total & \STcopy{>}{b5+b4} &  & \\ \hline     @ b9 & 1 & 2 & 3 \\ \hline     @ b10 & 1 & 2 & 3 \\ \hline     @ Sub Total & \STcopy{>}{b7+b8} & & \\ \hline \hline     @ Total & \STcopy{>}{b3+b6+b9} & & \\ \hline     \end{spreadtab}     \label{tab:key}     \end{table}          Used in Table:~\ref{tab:key}     \end{document}      I get Partly what I wanted, When I add The rest to make,               \documentclass[a4paper,12pt]{article}     \usepackage[inner=0.75in,outer=0.65in,top=0.75in,bottom=0.65in]{geometry}     \usepackage{multirow}     \usepackage{spreadtab}     \usepackage[sc]{mathpazo}     \usepackage[onehalfspacing]{setspace}     \begin{document}     \begin{table}[!htb]     \centering       \caption{Sample} \vspace{3pt}     \begin{spreadtab}{{tabular}{|c|l|c|c|c|}}     \hline     \multirow{2}{*}{Sl No.} & \multirow{2}{*}{\textbf{Something}} &      \multicolumn{3}{c|}{\textbf{something}}\\ \cline{3-5}     & & \textbf{X} & \textbf{Y} & \textbf{Z} \\  \hline     1 & @ b3 & 1 & 2 & 3 \\ \hline     2 & @ b4 & 1 & 2 & 3 \\ \hline     \multicolumn{1}{|c}{} & \multicolumn{1}{|l}{\textbf{Sub Total}} &       \textbf{:={c3+c4}} &  \textbf{:={d3+d4}} &  \textbf{:={e3+e4}} \\     \hline     3 & @ b6 & 1 & 2 & 3 \\ \hline     4 & @ b7 & 1 & 2 & 3 \\ \hline     \multicolumn{1}{|c}{} & \multicolumn{1}{|l}{\textbf{Sub Total}} &       \STcopy{>}{c6+c7}&  & \\ \hline     5 & @ b9 & 1 & 2 & 3 \\ \hline     6 & @ b10 & 1 & 2 & 3 \\ \hline     \multicolumn{1}{|c}{} & \multicolumn{1}{|l}{\textbf{Sub Total}} &       \STcopy{>}{c9+c10} & & \\ \hline \hline     \multicolumn{1}{|c}{} & \multicolumn{1}{|l}{\textbf{Total}} &       \STcopy{>}{c5+c8+c11} & & \\ \hline      \end{spreadtab}     \label{tab:key}     \end{table}       Used in Table:~\ref{tab:key}     \end{document}      I am getting errors. Is there some way I can use the above code to get ![enter image description here](http://i.stack.imgur.com/c5nAu.png) or should everything be typed manually?


title: Change fontsizes and distances between 2 lines

text: I have a problem with my fontsizes. I want to change the fontsize of my titles globally in my Latex document. I therefore created a newcommand. Here is a MWE               \documentclass[BCOR=8mm,DIV=12,11pt,twoside,titlepage,headsepline]{scrbook}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}      \usepackage[english,ngerman]{babel}     \usepackage{scrpage2}      \usepackage{float}          \usepackage{ifthen}           \begin{document}          \newcommand{\titel}[2]{     \ifthenelse{\equal{#1}{\empty}}{}{     \ifthenelse{\equal{#2}{\empty}}{     \begin{center}  \textbf{\fontsize{60pt}{25pt}\selectfont #1} \normalfont\vspace*{-2ex} \end{center}}     {     \begin{center}  \textbf{\fontsize{60pt}{25pt}\selectfont #1} \normalfont\vspace*{-2ex} \end{center}      \begin{center} \textbf{\huge --- \\ \Huge #2}\end{center}}}}          \titel{I want the 2 linesof this title to be more seperated}{such that the letters aren't that close.}     \end{document}      Now the titles are huge, but if the title is separated into 2 lines, then the distance between the title lines is too small such that the letters touch each other. I just want to have a bigger distance between the two lines. And I don't want to do it via               part 1 of the title \\ part 2 of the title      in the title command as it then influences the headlines (see command `\kopftitle`) I am grateful for help!


title: How to get polyglossia with babelshorthands to work with hyperref and csquotes?

text: I just switched from `babel` to `polyglossia` and got several errors which are related to the usage of `\enquote` in `\section`. The problems only occur if `babelshorthands=true` is set for `polyglossia` and `hyperref` is loaded. They don't occur when `babel` is used instead of `polyglossia`. Does anyone know how to solve this? ## Example               \documentclass{article}     \usepackage{polyglossia}     \setmainlanguage[babelshorthands=true]{german} % problems     %\setmainlanguage{german} % no problems     %\usepackage[german]{babel} % no problems     \usepackage{csquotes}     \usepackage{hyperref}          \begin{document}     \section{\enquote{Test}}     \end{document}      ## Error Message               ! Argument of \language@active@arg" has an extra }.     <inserted text>                  \par      l.9 \section{\enquote{Test}}


title: How to achieve no indentation for a single equation?

text: I'd like to have a **single equation without indentation** at all. I know I can set it globally with               \setlength{\mathindent}{0cm}      But I don't know how to return to the default value after the equation. Here my minimal example:               \documentclass[a4paper,12pt]{article}     \usepackage[fleqn]{amsmath}     \begin{document}          \noindent     Default indentation:      \begin{equation}       a+b=42     \end{equation}     %     Now I want no indention for a single equation:     \setlength{\mathindent}{0cm}     \begin{equation}       a+b=42     \end{equation}     %     Now I'd like to get the default again:     \begin{equation}       a+b=42     \end{equation}     %     But how?          \end{document}


title: Chapter/Section title in header without numbering

text: I want to have chapter and subsection in the headings of my document. but the numbering should not exist. Just to mention that I am using the XePersian package.


title: include document title in memoir class header

text: Using memoir class on a (lengthy) document, I want to customise headers, however (having spent several hours of trial and error) I'm presently stumped when it comes to the nuances required. Can anyone point me in the right direction? I enclose my MWE. The customised page style ('mpd') provides:   * an even page header of 'Chapter (number, name etc)' and    * an odd page header of 'Section'.  I want to   * switch the 'Chapter (etc)' to the odd page and    * make the even page header show the document (book) title.  There does not seem to be any reference to document title within Memoir Page Styles, which I have consulted widely in my efforts. Yet it seems like something that should be readily achievable? Many thanks for any input offered.               \documentclass[a5paper]{memoir}     \usepackage{lipsum}                                 %   ------------------------                                     %   new style: mpd                                 %   copied from headings style                                 %   with no caps in headers      \copypagestyle{mpd}{myheadings}          \addtopsmarks{mpd}{\nouppercaseheads}         {\createmark{chapter}{left}{shownumber}{\chaptername \space}{ : }          \createmark{section}{right}{nonumber}{}{}         }%     \makeoddhead{mpd}{\slshape\rightmark}{}{}     \makeevenhead{mpd}{}{}{\slshape\leftmark}     \makeevenfoot{mpd}{\thepage}{}{\itshape{republished under licence}}     \makeoddfoot{mpd}{\itshape{www.domain.info}}{}{\thepage}         \pagestyle{mpd}           \begin{document}         \tableofcontents*     \pagestyle{mpd}     \mainmatter          \chapter{Introduction}     \label{introduction}         \section{Section 1}         \label{section1}             \lipsum[1]                   \lipsum[2]                   \lipsum[3]                   \lipsum[4]                   \lipsum[5]                   \lipsum[1]                   \lipsum[2]                   \lipsum[3]                   \lipsum[4]                   \lipsum[5]                   \lipsum[1]                   \lipsum[2]                   \lipsum[3]                   \lipsum[4]                   \lipsum[5]           \end{document}                                 %   ------------------------


title: Is it a bug in \psellipticarc or is my calculation wrong?

text: This question actually has a connection to my other question that was posted yesterday. The following figure illustrates the problem. ![enter image description here](http://i.stack.imgur.com/MG6kX.gif) Shortly speaking, the cyan dot must _always_ coincide with the yellow one.               \documentclass{article}     \usepackage{pstricks-add,multido}          \usepackage[active,tightpage]{preview}     \PreviewEnvironment{pspicture}     \PreviewBorder=0pt               \begin{document}     \multido{\i=0+10}{37}{     \begin{pspicture}(-2.5,-2.0)(2.5,2.0)             \psframe*[linecolor=black](-2.5,-2.0)(2.5,2.0)             \pstVerb{/theta \i\space def}%             \pstVerb{/a 2.25 def}%             \pstVerb{/b 1.75 def}%         \ifnum\i=0             % don't draw arc!         \else             \psellipticarc[linecolor=cyan]{-*}(0,0)(!a b){0}{!theta}         \fi         \psline[linecolor=yellow]{-*}(0,0)(!theta cos a mul theta sin b mul)         \uput{5mm}[0](0,0){\color{white}\tiny \i}     \end{pspicture}}     \end{document}      Is it a bug in `\psellipticarc` or is my calculation wrong?


title: How to draw arrows from cell to cell at the borders of a table

text: How can I draw arrows from cell to cell at the borders of a table? More precisely I'd like to get something like this: ![enter image description here](http://i.stack.imgur.com/VHoAc.jpg) It would be nice to have a solution using TikZ. _Edit_ : Since I have other tables like this in my document (but without the arrows, created with a regular tabular environment with custom column seps), it is important for me to have the same row sep and column sep in all tables. So it would be good to know how to adjust the `TikZ`-solutions to implement this.               \documentclass[a4paper,11pt]{article}           \usepackage[T1]{fontenc}      \usepackage{array}          \begin{document}      \begin{tabular}{|m{1.3cm}|m{0.5cm}|m{0.5cm}|m{0.5cm}|m{0.5cm}|m{0.5cm}|m{0.1cm}}\cline{1-6}       \footnotesize{ $x$ } & 0 & 1 & 2 & 3 &4 & \\\cline{1-6}       \footnotesize{ $f(x)$} & 2 & 4&6 &8& 10& \\\cline{1-6}      \end{tabular}     \end{document}


title: How to align macros to correct order in TikZ matrix?

text: How to fix the broken placement of macros in matrix?               \documentclass{article}     \usepackage{tikz}          \begin{document}          \newcommand{\macroA}{     \begin{tikzpicture}     \node[minimum height=1.5cm,minimum width=1.5cm, draw, rectangle] at (0,0) {PI};     \draw (0.2,-0.75)--(0.75,0)--(0.2,0.75);     \end{tikzpicture}}          \newcommand{\macroB}[1]     {                    \tikz[baseline,inner sep=1pt]             {                     \node[draw,shape=circle] {#1};                     }     }          \begin{figure}     \begin{tikzpicture}     [auto,     block/.style ={rectangle, draw, thick,text centered, minimum height=0.7cm,minimum width=1.4cm}]     \matrix [column sep=5mm,row sep=7mm]     {     % row 1     \node [block](a) {a}; &     \node [block](b) {b}; &     \node [block](c) {c}; \\     % row 2     \node [block](d) {d}; & \\     % row 3     \node [block](e) {e}; &     \node [block](f) {f}; & \\     % row 4     \node [block](g) {g}; & \\     % row 5     \node [block](h) {h}; & \\     };     \end{tikzpicture}     \end{figure}          \begin{figure}     \begin{tikzpicture}     \matrix [column sep=1cm,row sep=1cm]     {     % row 1     \macroA &     \macroB{X} &     \macroA \\     % row 2     \macroA;  & \\     % row 3     \macroB{X} &     \macroB{X}  & \\     % row 4     \macroB{X}  & \\     % row 5     \macroB{X}  & \\     };     \end{tikzpicture}     \end{figure}     \end{document}


title: How to understand vim-latexsuite template expression evaluation?

text: I'm trying to build out LaTeX templates for my engineering coursework, and I love the vim environment for editing, so I've been using vim-latex to integrate the two. I don't quite understand how the templates are being interpreted by vim-latex &/or vim, and google searching has yielded very little. In particular:   What is the difference between <+ +> and <++>?   What do !comp! and !exe! do achieve?   What languages can I use to do these kind of fill-in-the-blanks processes? I'm a casual user of vim, so if there's a power-user level concept involved, please point me to where I can read the documentation. Here's an example of the article.tex template:               1 <+ +> !comp!   !exe!     2 %        File: !comp!expand("%:p:t")!comp!     3 %     Created: !comp!strftime("%a %b %d %I:00 %p %Y ").substitute(strftime('%Z'), '\<\(\w\)\(\w*\)\>\(\W\|$\)', '\1', 'g')!comp!     4 % Last Change: !comp!strftime("%a %b %d %I:00 %p %Y ").substitute(strftime('%Z'), '\<\(\w\)\(\w*\)\>\(\W\|$\)', '\1', 'g')!comp!     5 %     6 \documentclass[a4paper]{article}     7 \begin{document}     8 <++>     9 \end{document}


title: Top-down text in LaTeX

text: I'm trying to write top-down text along side a float. Some thing like this               S     O     M     E     -     T     E     X     T      I could find the `\rotatebox` and `tikz` draw along text routines, but they rotate the characters too.


title: List parsing with special input/optional arguments

text: I’d like to parse a list where the elements can be given as either `[<pre>]<text>[<post>]`, where `<pre>` and `<post>` are optional, or `(<special text>)`. I found a solution where everything works if `<text>` is a single token but not if it’s a word. So an input like               \mylist{1,[a]2,3[b],[c]4[d],(5)}      I get and desire an output like ![right result](http://i.stack.imgur.com/uMqQp.png) but with               \mylist{111,[a]222,333[b],[c]444[d],(555)}      I get this ![wrong result](http://i.stack.imgur.com/4uLUa.png) while desiring this output ![desired result](http://i.stack.imgur.com/Az9Iy.png) I also tried to use `{<text>}` instead of `<text>`, i.e. put the element in curly braces, but it doesn’t help in all cases. Furthermore I’d prefer to not use braces do delimit the element. ~~The separator printing doesn’t work well too.~~ Here’s what I’ve got so far               \documentclass[parskip=full]{scrartcl}          \makeatletter          \usepackage{etoolbox,xparse}     \def\cflist@printsep{%        \ifcflist@sep\quad$\bullet$\quad\fi     }     \def\cflist@none#1{%        \@ifnextchar[{\cflist@printsep[#1]\cflist@last}{%           \cflist@printsep           [#1]%        }%     }     \def\cflist@first[#1]#2{%        \@ifnextchar[{\cflist@printsep\cflist@both[#1]{#2}}{\cflist@printsep${}_{#1}$[#2]}%     }     \def\cflist@last#1[#2]{%        #1${}_{#2}$%     }     \def\cflist@both[#1]#2[#3]{%        ${}_{#1}$[#2]${}_{#3}$%     }     \def\cflist@extra(#1){\cflist@printsep[#1]${}_E$}     \newcounter{cflist@cnt}     \newif\ifcflist@sep     \def\cflist@do#1{%        \@ifnextchar({%           \cflist@extra%        }{%           \@ifnextchar[{\cflist@first}{%              \cflist@none%           }%        }#1%        \stepcounter{cflist@cnt}%        \ifnum\value{cflist@cnt}=0\relax\else           \cflist@septrue        \fi     }          \DeclareListParser{\cflist@parser}{,}          \newcommand{\mylist}[1]{%        \let\do\cflist@do        \setcounter{cflist@cnt}{0}%        \cflist@sepfalse        \cflist@parser{#1}%     }          \makeatother               \begin{document}          Single element tokes work fine:\\     \mylist{1,[a]2,3[b],[c]4[d],(5)}          Multiple element tokes don't work:\\     \mylist{111,[a]222,333[b],[c]444[d],(555)}\\     \mylist{aaa,[a]bbb,ccc[b],[c]ddd[d],(eee)}          Multiple element tokens in curly braces don't work either:\\     \mylist{{111},[a]{222},{333}[b],[c]{444}[d],(555)}\\     \mylist{{aaa},[a]{bbb},{ccc}[b],[c]{ddd}[d],(eee)}          Desired result for multiple element tokes:\\     111\quad$\bullet$\quad${}_a$222\quad$\bullet$\quad     333${}_b$\quad$\bullet$\quad${}_c$444${}_d$     \quad$\bullet$\quad555${}_E$     \end{document}      The output format is a placeholder for other formatting macros, but I guess it doesn’t affect the problem and make the code a little shorter if I use the dummies here. ## Update I forgot `\cflist@sepfalse` which causes the superfluous sep at the begin of all lists after the first one ## Updated 2 The real application is to send the list to `\cite` macros of biblatex, so the list               aaa,[a]bbb,ccc[b],[c]ddd[d],(eee)      should be processed as               \cite{aaa}, \cite[][a]{bbb}, \cite[b]{ccc}, \cite[c][d]{ddd}, eee      The `(eee)` part should bypass the `\cite` mechanism and printed as is without the parentheses.


title: Hyperref PDF sidebar table of content lines numbering?

text: How can I tell hyperref to generate PDF toc (showed in PDF viewer's sidebar) such that each chapter/section gets its numbering instead of just headings?


title: TikZ: Removing the inner line of circle split, rectangle split, etc.

text: How do you remove the line of the split within a split shape (like circle split or rectangle split). For example:               \begin{tikzpicture}     \node[draw, circle split, thick]{$1$ \nodepart{lower} $2$};     \end{tikzpicture}      gives you a thick circle with a thick splitting line. Can the middle line be removed?


title: Embedding base14 fonts in PDF created using pdfLaTeX

text: I created a PDF using `txfonts`. But the base 14 fonts (Times-Roman, Times- Italic etc.) are not embedded in the PDF. Could somebody help me to solve this issue? The font information in my PDF is as given below:                name                                 type              emb sub uni object ID     ------------------------------------ ----------------- --- --- --- ---------     Times-Roman                          Type 1            no  no  no      14  0     Times-Roman                          Type 1            no  no  no      15  0     Times-Italic                         Type 1            no  no  no      16  0     LCHINT+NimbusRomNo9L-Medi            Type 1            yes yes no      17  0      In the `pdfmaps.tex` which I have the following entries:               \pdfmapfile{=acrobat-std-urw-kb.map}     \pdfmapfile{=psfonts.map}     \pdfmapfile{=txr.map}


title: How do I number theorems within the specified part of text?

text: I'd like to number theorems as 1.i (2.i) within specified continuous block of paragraphs of a text which is not defined as section or something like that. How to create such theorem numbering?


title: Sorting Table Column

text: Suppose I have a table with say two columns. How can I sort its rows based on the first column? Is it possible in latex? If I do it in another application (like MS Excel) can I import the data from my worksheet into a tabular?   I would be very happy if you suggest me a way to handle this sorting, the easier the better! BTW I looked at sorting alphanumeric listing and didn't get it at all!


title: How can I cancel only the navigation bar or title in a specified frame

text: My MWE is               \documentclass[14pt]{beamer}% http://ctan.org/pkg/beamer     \let\Tiny\tiny% http://tex.stackexchange.com/q/58087/5764     \usetheme{Berkeley}     \makeatletter     \beamer@headheight=1.5\baselineskip     \makeatother     \setbeamercolor{normal text}{bg=black!10}     \title[Title]{My title}     \subtitle{Subtitle}     \author{Author}     \institute[Institute]{My institute}     \date[Date]{My date}     \logo{\color{blue!50}\scalebox{2}{\TeX}} % you can % it     \begin{document}          \begin{frame}       \titlepage     \end{frame}          \section{A section}     \subsection{A subsection}     \begin{frame}       \frametitle{Frame title}       \framesubtitle{frame subtitle}       Some text     \end{frame}          \begin{frame}       Some more text     \end{frame}          \section{Another section}     \subsection{Another subsection}     \begin{frame}       picture     \end{frame}     \end{document}       The sidebar I means all the things including the blue stripe and its contents. In the related question, using `plain` is OK. However, this time I only want to cancel one thing, the navigation bar or title. How do I deal with it?


title: svn for multiple files

text: Can someone explain how to use `svn-multi` in order to typeset the current revision (i.e., not the current file version)? I had to split a document into several `.tex` files. One file is the main, and all the rest are called via `\input{}`. I want the title to include the current version of the **document**. If I just typeset `\svnrev` I get the current version of `main.tex`, rather than the highest version of any of the subfiles. Another question: I know that `svn-multi` has a Perl script. Is there a way to get the desired result without any such external script?


title: about overline command

text: I used to fix the \overline command to get a conjugate complex number for I think the line does not so satisfy me by its length. You may noticed something like:               $$\overline{N}+\overline{F}+\overline{C}$$      could turn fine by:               $$\mkern3mu\overline{\mkern-3muN}     +\mkern3mu\overline{\mkern-3muF}     +\mkern2mu\overline{\mkern-2muC}$$      The \bar command don't have any profit in this situation. How can I creat a command without cocerning the specific letter to get appropriate line width?


title: How do I use Delicious font in my beamer presentation

text: I want to use Delicious font in my beamer presentation. How should I install this font and/or use it in my presentation. I am running ubuntu 10.04 and have installed the font. I am wondering how do I use this font in my beamer presentation.


title: LaTeX sphack family of commands.

text: LaTeX offers a number of commands that can be used in macros that want to be invisible i.e., not leave any extra space when used in the middle of text. These macros include `\@esphack`, `\@bsphack`, `\@Esphack`, `\@Vbsphack` and can be found in `ltspace.dtx`. Amongst all these commands `\@vbsphack` stands alone as it is described in the source, but not implemented and commented as follows: > Another variant which is useful for invisible things which should not live > in `vmode` (this is how some people feel about marginals). If it occurs in > vmode then it enters hmode and ensures that `\@savsk` is nonzero so that the > `\ignorespaces` is put in later. It is not used at present. The macro definition is copied below:               \def \@vbsphack{ %     \relax \ifvmode     \leavevmode     \@savsk 1sp     \@savsf \spacefactor     \else     \ifhmode     \@savsk \lastskip     \@savsf \spacefactor     \fi     \fi     }      Can someone explain why should the `\@savsk` should be non-zero? The explanation offered in the source is not very clear. Lastly as I am sure the name of these macros is not a lisp relic, can anyone offer the origin or history of how the family name was derived?


title: Latex live preview plugin for Tiddlywiki ?

text: I did a search and looked through the "related questions" section before asking this question. One of the wonderful things about StackExchange is its "typewriter" like live- preview below the text-edit box. Now, I am a bigtime Tiddlywiki user and as other users might know, combining TW with Bob McElrath's jsmath plugin allows you to use TW as a latex notebook. The only thing that could make this situation better (heavenly, in fact) is if there was a plugin for TW which generated live-preview a la StackExchange. If not, does anyone know if this feature is available in some other Wiki platform?


title: Setting variables in LuaTeX texconfig?

text: The LuaTeX documentation mentions that several variables are accessible by setting a table called `texconfig`. In particular I want to reduce the output a bit by setting `trace_file_names` to false. Others have asked for a similar solution but it seems not so easy with other TeX engines. Now LuaTeX offers that choice but I am not sure where and how to set that parameter. The documentation only mentions the table but gives no further hints. So how can I set or modify the values in the `texconfig` table in LuaTeX (running under MiKTeX 2.9)? I tried with the following example but this does not help, maybe this has to be set earlier in the process.               \documentclass{article}          \usepackage{filecontents}          \begin{filecontents*}{word.tex}     hello     \end{filecontents*}          \begin{document}     \directlua{print(texconfig)}     % prints: "table: 02900A90"          \directlua{print(texconfig["trace_file_names"])}     % prints "nil", so value does not exist in table          \directlua{texconfig["trace_file_names"] = false}          \input{word.tex}     % LuaTeX outputs: "(C:/Users/alexander/test/word.tex)"     \end{document}


title: Running pdflatex twice by default in WinEdt 6

text: Is it possible to use a switch or some other change for pdflatex, so that it always compiles twice? Because of the changes to the toc and labels, two runs are often necessary. As running twice does not hurt as far as I'm aware, I'd like to standardize that behaviour. Is there a way to do this? I couldn't find a relevant switch myself.


title: How to manage conference proceedings in BiBTeX?

text: I am writing my bachelor thesis. I have found an article which is part of a conference's proceedings. It's like a book with a whole collection of articles that were submitted for the conference. I use Mendeley to manage my sources and have added the entire proceedings as "conference proceedings". Mendeley generates the .bib for met. When I quote from one of the articles within the proceedings, i obviously don't want to reference the entire collection, just the one article. Does that mean I need to add both the article and the proceedings to my bib? And how do I then reference the article to the conference proceedings?


title: How can I delineate and later fill a placeholder for arbitrary text?

text: Is there any way to allocate a placeholder and set the content later in the document? First of all I realize that this would require more than one pass to render correctly, but I see the references system does something similar: > See figure X on page Y. The X and Y values are determined at some point later in the document and the next rendering pass fills in the proper numbers. I've looked in to hijacking the reference system, but couldn't figure out how to get it to back-fill anything but figure or page numbers. To complicate matters, I would like two additional features beyond a generic back-reference.   1. I would like to add more instances of the placeholder in multiple places as the document goes along and when a request to fill it comes it, have only the last delineated instance changed. All the previous place-holders should be basically locked down to whatever content they contained when a new placeholder slot is instantiated.   2. Less important than #1, but I would like to be able to "fill" the back-reference multiple times and have only the last assignment stick. Being able to append would be a sweet bonus. Pseudo code would look something like this:               \section*{Section 1 \namePlaceHolder{}}          Lorum ipsum...     \setLastName{-- my stuff}     Lorum ipsum...          \section*{Section 2 \namePlaceHolder{}}          Lorum ipsum...     Lorum ipsum...          \section*{Section 3 \namePlaceHolder{}}          Lorum ipsum...     \setLastName{-- your stuff}     Lorum ipsum...     \setLasteName{-- reassigned placeholder text}          \section*{Section 4 \namePlaceHolder{}}          Lorum ipsum...     \setLastName{-- his stuff}     Lorum ipsum...      Would render something like this: ![desired output](http://i.stack.imgur.com/Zf27x.png) The 'why' of this is that my content has a lot of `\input{}`s from other files and I want the content of these files to be able to go back and set some values that would have been in previously input text. What mechanism can I pursue to make such a late substitution happen?


title: XeLaTeX/beamer/fontspec/unicode-math: Change font of all math digits

text: Please consider the following MWE:               \documentclass{beamer}     \usepackage{unicode-math}     \usepackage{fontspec}     \setsansfont{some-font.otf}     \usefonttheme[onlymath]{serif}          \begin{document}         \begin{frame}             Some text with the number \textit{two} in text mode (2) and math mode ($2$).             \begin{equation*}                 \vec{s}(t) = \frac{\vec{a}}{2} t^2 + \vec{v}_0 t + \vec{s}_0             \end{equation*}         \end{frame}     \end{document}      How to change the font of all math digits to the sans font defined with `fontspec`'s `\setsansfont` command (font-independent)? I tried to experiment with the `\Umathcode` XeTeX primitive as well as with `\setmathfont` provided by `unicode-math`, however, I had no success. I am aware of the package `mathspec` and its `\setmathfont(digits)` command, but I realized that the combination of a `beamer` class document and `fontspec`/`mathspec` causes misplaced math elements (see figures 1 and 2 for a comparison; for figure 2, `\usepackage{unicode-math}` package has been commented out in the MWE). ![Figure 1: With unicode-math loaded.](http://i.stack.imgur.com/abbFb.png) ![Figure 2: Without unicode-math.](http://i.stack.imgur.com/e8K9z.png) **Update:**   This MWE compiles without any error in my setup. However, if the line `\setmainfont{Arial}` is commented out, an error will be thrown. The same is true if I specify a font as a file (*.ttf or *.otf) instead of a system- installed font.               \documentclass{beamer}     \usefonttheme{professionalfonts}     \usepackage{unicode-math}     \usepackage{fontspec}     \setmainfont{Arial}     \setmathfont[range={\mathup}]{Lucida Sans}          \begin{document}         \begin{frame}             \begin{equation}                 x = \int\limits_0^\infty f(q) \,\mathrm{d} q             \end{equation}         \end{frame}     \end{document}


title: Specifying a letter class \address from an external file using catchfile package

text: I'm working with the letter class, and have created a custom .cls file in which most formatting of a letter is taken care off. From a .tex file used to produce the letter (or call, as I may have referred to it below) I specify the from and to addresses, etc. Ideally I would specify these files by filename. There have been suggestions to use the catchfile package file for this. In the custom class file, I can _manually_ enter an address as the argument to an instance of the letter environment, however, I cannot seem to _use catchfile_ to refer to a to address residing in a _separate file_ , e.g. an entry of an address book. Here is a working example in which catchfile is used to read a from address. Common files: address.tex               868 Sunrise Ave. \\     Garden City \\      body.tex               \lipsum[1]      thelettera.cls               \NeedsTeXFormat{LaTeX2e}     \ProvidesClass{thelettera}[]     \LoadClass[]{letter}     \RequirePackage{lipsum}     \RequirePackage{catchfile}     \RequirePackage[textwidth=345.0pt,%     top=2in,     headheight=1.0in,     headsep=0.20in]{geometry}     \newcommand{\getfromaddress}[1]{\CatchFileDef{\thefromaddress}{#1}{}}     \signature{Mae L. Mann}     \AtBeginDocument{%     \pagestyle{empty}     \makeatletter     \let\ps@firstpage\ps@plain     \makeatother       \begingroup\def\tempa{\endgroup\begin{letter}{1234 Central St. \\ Western City}}         \expandafter\tempa\expandafter{\thefromaddress}%       \opening{\theopening}     }%     \AtEndDocument{%     \closing{\theclosing}     \ps{\thepostscript}     \end{letter}     }      lettera.tex               \NeedsTeXFormat{LaTeX2e}     \documentclass{thelettera}     \getfromaddress{address.tex}     \newcommand{\theopening}{Dear Recipient}     \newcommand{\theclosing}{Sincerely,}     \newcommand{\thepostscript}{}     \begin{document}     \input{body.tex}     \end{document}      To illustrate the issue, if I use this class file theletterb.cls               \NeedsTeXFormat{LaTeX2e}     \ProvidesClass{theletterb}[]     \LoadClass[]{letter}     \RequirePackage{lipsum}     \RequirePackage{catchfile}     \RequirePackage[textwidth=345.0pt,%     top=2in,     headheight=1.0in,     headsep=0.20in]{geometry}     \newcommand{\getfromaddress}[1]{\CatchFileDef{\thefromaddress}{#1}{}}     \newcommand{\gettoaddress}[1]{\CatchFileDef{\thetoaddress}{#1}{}}     \signature{Mae L. Mann}     \AtBeginDocument{%     \pagestyle{empty}     \makeatletter     \let\ps@firstpage\ps@plain     \makeatother       \begingroup\def\tempa{\endgroup\begin{letter}{\thetoaddress}}         \expandafter\tempa\expandafter{\thefromaddress}%       \opening{\theopening}     }%     \AtEndDocument{%     \closing{\theclosing}     \ps{\thepostscript}     \end{letter}     }      and this call of the class file letterb.tex               \NeedsTeXFormat{LaTeX2e}     \documentclass{theletterb}     \getfromaddress{address.tex}     \gettoaddress{address.tex}     \newcommand{\theopening}{Dear Recipient}     \newcommand{\theclosing}{Sincerely,}     \newcommand{\thepostscript}{}     \begin{document}     \input{body.tex}     \end{document}      I get an error:               ! LaTeX Error: There's no line here to end.      Any comments or suggestions are greatly appreciated. I wouldn't be surprised if the solution is a simple one.


title: Long caption with \listoffigures - breaklink and hyperref issue

text: I'm coming to the end of my thesis, and have decided to include `\listoftables` and `\listoffigures` within my document. However, according to wikibooks: > Problems with long caption and `\listoffigures` or long title > > There is an issue when using `\listoffigures` with `hyperref` for long > captions or long titles. This happens when the captions (or the titles) are > longer than the page width about 7-9 words depending on your settings). To > fix this, you need to use the option breaklinks when first declaring: > > \usepackage[breaklinks]{hyperref} > > This will then cause the links in the `\listoffigures` to word wrap > properly. When using this option, I presented with a warning telling me that I have enabled this option. Is there a way to stop `\listoffigures` and `\listoftables` producing a number of bad boxes (overfull hbox) without introducing this warning?


title: TeXStudio: high CPU usage after version 2.6.2

text: How can I fix that problem? All versions after 2.6.2 increase the CPU usage and the fan goes like crazy. Thanks P.S. I have already tried to not use spelling correction, yet the problem is still there.


title: Why is my beamer presentation failing to compile when I include letters in my math?

text: Forgive me I am new to LaTex. I have a presentation that I would like to do in Beamer, but it fails to compile when I include letters in my math statements. For example, the following will compile,               \documentclass{beamer}          \usepackage{amsmath}          \begin{document}          \title{Midterm Presentation of Doom}          \frame{\frametitle{Example}          $ 1 + 1 $          $ \lambda $          }          \end{document}      However, the following will NOT complile,               \documentclass{beamer}          \usepackage{amsmath}          \begin{document}          \title{Midterm Presentation of Doom}          \frame{\frametitle{Example}          $ 1 + 1 = a $          $ \lambda * b $          }          \end{document}      The error that I get are                 Font shape `OT1/cmss/m/n' in size <4> not available(Font) size <5> substituted       I am using TeXstudio 2.6.6 + MikTex 2.9, if this matters.


title: Multicolumn Styling

text: I want to achieve something like this: ![enter image description here](http://i.stack.imgur.com/HzkRw.png)   Here the various versions of windows need to be in bullet-ed format. I have used the `multicols` package to achieve a bit of this. The MWE is as follows :               \documentclass{article}     \usepackage{multicol}     \begin{document}     \begin{itemize}     \item Test:     \begin{multicols}{2}     Windows     \columnbreak     Windows XP \\     Windows Vista \\     Windows 7 \\     Windows 8.1     \end{multicols}     \end{itemize}     \end{document}       ![enter image description here](http://i.stack.imgur.com/wkw13.png) Also, the distance between the `item` **test** and **Windows** need to be reduced


title: bibliography not referencing glossary

text: My glossary contains definitions from WiKipedia, which I would like to reference as a quote with a /cite command to my bibliography. My bibliography is using hyperrefs to link to the positions within the document, which is very useful when the reader is jumping to the bib and needs to return back to the reading position. But the hyperrefs within the bibliography do not contain the glossary! At the expected position, it displays '(document)', linking to the first page, but not the glossary. It seems to me that the bibliography is built first and cannot find the glossary page? Any help on how to fix this issue? Any help is highly appreciated. :) I reduced my paper to a small example (miniexample.tex + References.bib), and also attached my output profile exported from TeXnicCenter. miniexample.tex:               \documentclass{scrbook}     \usepackage{glossaries}      \usepackage{cite}     \usepackage[colorlinks, linkcolor=black, menucolor=black, urlcolor=black, plainpages=false, pdfpagelabels, pagebackref=false, backref=section, breaklinks={true}]{hyperref}     \pagenumbering{Alph}     \pagestyle{empty}     \newglossaryentry{SWOT}{%     type=\acronymtype,     name={SWOT},%     first={Strength, Weaknesses, Opportunities and Threads (SWOT)},     description={Strength, Weaknesses, Opportunities and Threats\\ SWOT is a structured     planning method used to evaluate the strengths, weaknesses, opportunities, and threats involved in a project or in a business venture~\cite{SWOTWiKiPedia}}%     }     \makeindex     \makeglossaries     \begin{document}     any title     \newpage     \clearpage     \pagenumbering{Roman}     \printglossaries     \tableofcontents     \normalsize     \pagenumbering{arabic}     Here i do some test with citation of SWOT~\cite{SWOTWiKiPedia}.          Here i do use gls of \gls{SWOT}. Now i use \gls{SWOT} a second time.     \newpage     Usage of SWOT~\cite{SWOTWiKiPedia} on the next page.     \bibliographystyle{alpha}     \bibliography{References}     \end{document}      References.bib               @misc{SWOTWiKiPedia,         key     = {SWOTWiKiPedia},         title = {Strengths, Weaknesses, Opportunities, and Threats},         howpublished    = {Wikipedia, The Free Encyclopedia \newline \url{http://en.wikipedia.org/wiki/SWOT_analysis}},         note    = {\\Accessed: 2014-04-25}     }      Using TeXnicCenter with import latex-pdf-glossary+acronym_win7.tco as output profile:               <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>     <txcop:outputProfiles version="2" xmlns:txcop="http://schemas.ToolsCenter.org/TeXnicCenter/OutputProfiles.xsd">         <outputProfileList>             <outputProfile name="LaTeX ⇨ PS" stopOnLatexError="false">                 <texCommand execute="true" path="latex.exe" arguments="-src -max-print-line=120 -interaction=nonstopmode "%wm""/>                 <bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>                 <makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>                 <preProcessors/>                 <postProcessors>                     <processor name="DviPs" path="dvips.exe" arguments=""%Bm.dvi"" inputFile="" outputFile=""/>                 </postProcessors>                 <viewer path="" closeBeforeCompilation="false">                     <viewProjectCommand type="commandLine">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewProjectCommand>                     <viewCurrentFileCommand type="commandLine">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewCurrentFileCommand>                     <viewCloseCommand type="commandLine">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewCloseCommand>                 </viewer>             </outputProfile>             <outputProfile name="LaTeX ⇨ DVI" stopOnLatexError="false">                 <texCommand execute="true" path="latex.exe" arguments="-src -max-print-line=120 -interaction=nonstopmode "%wm""/>                 <bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>                 <makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>                 <preProcessors/>                 <postProcessors/>                 <viewer path="yap.exe" closeBeforeCompilation="false">                     <viewProjectCommand type="commandLine">                         <commandLineCommand path="yap.exe" arguments="-1 "%bm.dvi""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewProjectCommand>                     <viewCurrentFileCommand type="commandLine">                         <commandLineCommand path="yap.exe" arguments="-1 -s %l"%Wc" "%bm.dvi""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewCurrentFileCommand>                     <viewCloseCommand type="commandLine">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewCloseCommand>                 </viewer>             </outputProfile>             <outputProfile name="LuaLaTeX ⇨ PDF" stopOnLatexError="false">                 <texCommand execute="true" path="lualatex.exe" arguments="-max-print-line=120 -interaction=nonstopmode "%wm""/>                 <bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>                 <makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>                 <preProcessors/>                 <postProcessors/>                 <viewer path="miktex-texworks.exe" closeBeforeCompilation="false">                     <viewProjectCommand type="commandLine">                         <commandLineCommand path="miktex-texworks.exe" arguments=" "%bm.pdf""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewProjectCommand>                     <viewCurrentFileCommand type="commandLine">                         <commandLineCommand path="miktex-texworks.exe" arguments="  "%bm.pdf""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewCurrentFileCommand>                     <viewCloseCommand type="commandLine">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewCloseCommand>                 </viewer>             </outputProfile>             <outputProfile name="LaTeX ⇨ PS ⇨ PDF" stopOnLatexError="false">                 <texCommand execute="true" path="latex.exe" arguments="-max-print-line=120 -interaction=nonstopmode "%wm""/>                 <bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>                 <makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>                 <preProcessors/>                 <postProcessors>                     <processor name="DviPs (PDF)" path="dvips.exe" arguments="-P pdf "%Bm.dvi"" inputFile="" outputFile=""/>                     <processor name="ps2pdf" path="ps2pdf.exe" arguments=""%bm.ps"" inputFile="" outputFile=""/>                 </postProcessors>                 <viewer path="miktex-texworks.exe" closeBeforeCompilation="false">                     <viewProjectCommand type="commandLine">                         <commandLineCommand path="miktex-texworks.exe" arguments=" "%bm.pdf""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewProjectCommand>                     <viewCurrentFileCommand type="commandLine">                         <commandLineCommand path="miktex-texworks.exe" arguments="  "%bm.pdf""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewCurrentFileCommand>                     <viewCloseCommand type="commandLine">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewCloseCommand>                 </viewer>             </outputProfile>             <outputProfile name="XeLaTeX ⇨ PDF" stopOnLatexError="false">                 <texCommand execute="true" path="xelatex.exe" arguments="-max-print-line=120 -interaction=nonstopmode "%wm""/>                 <bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>                 <makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>                 <preProcessors/>                 <postProcessors/>                 <viewer path="miktex-texworks.exe" closeBeforeCompilation="false">                     <viewProjectCommand type="commandLine">                         <commandLineCommand path="miktex-texworks.exe" arguments=" "%bm.pdf""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewProjectCommand>                     <viewCurrentFileCommand type="commandLine">                         <commandLineCommand path="miktex-texworks.exe" arguments="  "%bm.pdf""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewCurrentFileCommand>                     <viewCloseCommand type="commandLine">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewCloseCommand>                 </viewer>             </outputProfile>             <outputProfile name="LaTeX ⇨ PDF" stopOnLatexError="false">                 <texCommand execute="true" path="pdflatex.exe" arguments="-max-print-line=120 -interaction=nonstopmode "%wm""/>                 <bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>                 <makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>                 <preProcessors/>                 <postProcessors/>                 <viewer path="AcroRd32.exe" closeBeforeCompilation="true">                     <viewProjectCommand type="dde">                         <commandLineCommand path="AcroRd32.exe" arguments=" "%bm.pdf""/>                         <ddeCommand path="AcroRd32.exe" server="acroviewR11" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>                     </viewProjectCommand>                     <viewCurrentFileCommand type="dde">                         <commandLineCommand path="AcroRd32.exe" arguments="  "%bm.pdf""/>                         <ddeCommand path="AcroRd32.exe" server="acroviewR11" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>                     </viewCurrentFileCommand>                     <viewCloseCommand type="dde">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="" server="acroviewR11" topic="control" command="[DocClose("%bm.pdf")]"/>                     </viewCloseCommand>                 </viewer>             </outputProfile>             <outputProfile name="LaTeX ⇨ PDF (Glossary+Acronym)" stopOnLatexError="false">                 <texCommand execute="true" path="pdflatex.exe" arguments="-interaction=nonstopmode -max-print-line=120 "%pm""/>                 <bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>                 <makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm""/>                 <preProcessors/>                 <postProcessors>                     <processor name="makeglossaries #1" path="makeindex.exe" arguments="-s "%tm".ist -t "%tm".glg -o "%tm".gls "%tm".glo" inputFile="" outputFile=""/>                     <processor name="makeacronyms #1" path="makeindex.exe" arguments="-s "%tm".ist -t "%tm".alg -o "%tm".acr "%tm".acn" inputFile="" outputFile=""/>                     <processor name="pdflatex #2" path="pdflatex.exe" arguments="-interaction=nonstopmode -max-print-line=120 "%pm"" inputFile="" outputFile=""/>                     <processor name="makeglossaries #2" path="makeindex.exe" arguments="-s "%tm".ist -t "%tm".glg -o "%tm".gls "%tm".glo" inputFile="" outputFile=""/>                     <processor name="makeacronyms #2" path="makeindex.exe" arguments="-s "%tm".ist -t "%tm".alg -o "%tm".acr "%tm".acn" inputFile="" outputFile=""/>                     <processor name="pdflatex #3" path="pdflatex.exe" arguments="-interaction=nonstopmode -max-print-line=120 "%pm"" inputFile="" outputFile=""/>                 </postProcessors>                 <viewer path="AcroRd32.exe" closeBeforeCompilation="true">                     <viewProjectCommand type="dde">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="AcroRd32.exe" server="acroviewR11" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>                     </viewProjectCommand>                     <viewCurrentFileCommand type="dde">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="AcroRd32.exe" server="acroviewR11" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>                     </viewCurrentFileCommand>                     <viewCloseCommand type="dde">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="" server="acroview" topic="control" command="[DocClose("%bm.pdf")]"/>                     </viewCloseCommand>                 </viewer>             </outputProfile>             <outputProfile name="LaTeX ⇨ DVI ⇨ PDF" stopOnLatexError="false">                 <texCommand execute="true" path="latex.exe" arguments="-max-print-line=120 -interaction=nonstopmode "%wm""/>                 <bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>                 <makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm.idx" -t "%tm.ilg" -o "%tm.ind""/>                 <preProcessors/>                 <postProcessors>                     <processor name="dvipdfm" path="dvipdfm.exe" arguments=""%bm.dvi"" inputFile="" outputFile=""/>                 </postProcessors>                 <viewer path="miktex-texworks.exe" closeBeforeCompilation="false">                     <viewProjectCommand type="commandLine">                         <commandLineCommand path="miktex-texworks.exe" arguments=" "%bm.pdf""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewProjectCommand>                     <viewCurrentFileCommand type="commandLine">                         <commandLineCommand path="miktex-texworks.exe" arguments="  "%bm.pdf""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewCurrentFileCommand>                     <viewCloseCommand type="commandLine">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="" server="" topic="System" command=""/>                     </viewCloseCommand>                 </viewer>             </outputProfile>             <outputProfile name="LaTeX ⇨ PDF (with glossaries)" stopOnLatexError="false">                 <texCommand execute="true" path="pdflatex.exe" arguments="-max-print-line=120 -interaction=nonstopmode "%wm""/>                 <bibTexCommand execute="true" path="bibtex.exe" arguments=""%tm""/>                 <makeIndexCommand execute="true" path="makeindex.exe" arguments=""%tm".glo -t "%tm".glg -s "%tm".ist -o "%tm".gls"/>                 <preProcessors/>                 <postProcessors/>                 <viewer path="AcroRd32.exe" closeBeforeCompilation="true">                     <viewProjectCommand type="dde">                         <commandLineCommand path="AcroRd32.exe" arguments=" "%bm.pdf""/>                         <ddeCommand path="AcroRd32.exe" server="acroviewR11" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>                     </viewProjectCommand>                     <viewCurrentFileCommand type="dde">                         <commandLineCommand path="AcroRd32.exe" arguments="  "%bm.pdf""/>                         <ddeCommand path="AcroRd32.exe" server="acroviewR11" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>                     </viewCurrentFileCommand>                     <viewCloseCommand type="dde">                         <commandLineCommand path="" arguments=""/>                         <ddeCommand path="" server="acroviewR11" topic="control" command="[DocClose("%bm.pdf")]"/>                     </viewCloseCommand>                 </viewer>             </outputProfile>         </outputProfileList>     </txcop:outputProfiles>


title: subcaptions for tables can not be displayed

text: everyone. For making tables with subcaptions,I write the source as shown below. However, subcaptions can not be displayed as shown in attached screen shot. Let me know how to solve it.               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{table}          \begin{subtable}     \centering          \begin{tabular}{lll}     \hline     Land cover classes & Producer's accuracy(\%) & User's accuracy(\%)\\          \hline     UBA & 94 & 92 \\          OFA & 79 & 85 \\          FA & 88 & 81 \\          WA & 76 & 81 \\     Overall accuracy & 87 & \\     Kappa coefficient & 0.853 & \\     \hline     %\caption{1985}     \end{tabular}     \caption{1985}          \end{subtable}%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{subtable}     \centering          \begin{tabular}{lll}     \hline     Land cover classes & Producer's accuracy(\%) & User's accuracy(\%)\\          \hline     UBA & 93 & 90 \\          OFA & 81 & 88 \\          FA & 83 & 80 \\          WA & 76 & 76 \\     Overall accuracy & 86 & \\     Kappa coefficient & 0.833 & \\     \hline     \end{tabular}          \caption{1997}          \end{subtable}     \caption{Summary of the results from the classification accuracy assessment conducted}     \end{table}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      ![enter image description here](http://i.stack.imgur.com/qrXm8.png)


title: pageskip when loading text from external file

text: I have the following MWE, using REVTeX:               \documentclass[aps, prl, twocolumn]{revtex4-1}          \begin{document}         \title{Title}          \author{Dog}          \date{\today}              \begin{abstract}             \include{abstract}         \end{abstract}               \maketitle              \include{text}          \end{document}      When I use `\include`, then the page is skipped before inserted text. When I just write the directly without using `\include`, then the text is placed there as expected, without any `\newpage`. Why is that?


title: Create a resizable symbol?

text: Some symbols can be resized automatically with `\middle` when placed between a `\left.` and a `\right.` They can usually also be resized using `\big` or `\bigg`. Examples of such symbols are `|`and `/` and pretty much all the brackets; `(`, `[`, `\\{`, `\langle`, and so on. I have never seen a complete list of symbols which _can_ be resized this way. Are they special in some way or is it possible to create new resizable symbols? If it _is_ possible: What is the "correct" way to create a new resizable symbol? By that, I mean a symbol `\mysymbol` such that, e.g.               \left( \somethinghuge \middle\mysymbol b \right)      will have the "correct" size. Of course, bear in mind that one would usually want to apply this to already existing symbols which do _not_ resize. Like the `\\#` symbol, for instance. Thanks a lot in advance!


title: Using pstricks with beamer undefined color model

text: I am trying to use pstricks with beamer. However everytime I get an error message saying Package xcolor error undefined color model I have googled it and tried different solutions but none worked!               \documentclass[10pt,final]{beamer}     \usepackage{wasysym,graphicx,pgfpages}     \usepackage{amssymb,amsmath,amstext}     \usepackage{amsfonts}     \usepackage{palatino}     \usepackage{ragged2e}     \usepackage{pstricks}     \usepackage{setspace}     \let\oldframetitle\frametitle     \renewcommand{\frametitle}[1]{     \oldframetitle{#1}\setstretch{1.5}}          \usetheme{Berlin}     \usecolortheme{seahorse}     \useoutertheme{miniframes}     \useinnertheme{circles}     \setbeamertemplate{blocks}[rounded][shadow=true]          \begin{document}          \begin{frame}{pstricks}     *I was trying to copy paste a pstrick format diagram from jpicedt here.*     \end{frame}          \end{document}


title: How to draw a coffee cup

text: Topologists need to explain that coffee cups are homeomorphic to donuts. There are nice ways to draw donuts. So far, my best attempt is               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{shadings}     \begin{document}     \begin{tikzpicture}     \shade[ball color=gray!10] (-2,0) arc (180:360:2cm);     \shade[left color=gray!10, right color=gray!80] (-2,0) arc (180:540:2cm and 1cm);     \fill[top color=gray!50,bottom color=gray!80] (1.8,-.45) arc (135:225:.35cm) arc (45:-150:.35cm) arc (90:270:.25cm) arc (-90:45:.85cm) -- cycle;     \end{tikzpicture}     \end{document}      ![coffee cup](http://i.stack.imgur.com/LWRvU.png)


title: How to measure the width of items in itemize environment?

text: I want the output of the code below to be like this image. How to do this?   Please keep in mind that the width of [Foo Bar Foo]'s is variable. So it should be calculated automatically.               \documentclass{book}     \begin{document}     \noindent Just enough text to make the line break so we get to see a second line.     \begin{itemize}       \item[Foo] An item       \item[Foo Bar Foo] An item An item An item An item An item An item An item An item An item An item An item An item An item An item         \item[Bar Bar] An item      \end{itemize}     Just enough text to make the line break so we get to see a second line.     \end{document}      ![enter image description here](http://i.stack.imgur.com/gn3ks.png) **Edit:** I don't want to use tabular or similar environment, because there are many items which should span some pages.


title: mtpro2: PARENS environment error

text: \documentclass[10pt,a4paper]{book}     \usepackage[utf8x]{inputenc}     \usepackage{ucs}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage[lite]{mtpro2}          \begin{document}         \[\begin{PARENS}             \frac{x}{y}          \end{PARENS} \]     \end{document}      The code above gives the error `Argument of \frac has an extra }. \frac`. But if i write the `\frac{x}{y}` command in `{}` then there is no error. I just want to learn how i can fix it?


title: Writing macros for tikz-cd arrow options

text: I'm trying to write a macro to let me write shorthand for tikz-cd arrows. For instance instead of having to write out the full command               \arrow[swap, dotted]{r}{f^*}      I'd like to have a shorthand like               \A[s.]{r}{f^*}      where the `\A` command processes the `s` to mean `swap` and the `.` to mean `dotted`. Using the xstring package it was pretty easy to write a command that takes `s.` as an input and outputs `swap,dotted,` but I don't know how to then feed that in as an argument for `\arrow`. I asked a simpler question earlier today which I thought would show me how to deal with the problem in general, but it turns out that dealing with how latex expands macros is a lot more complicated than I realized. Anyway, the code I tried writing (after incorporating Steven B. Segletes's suggestions for how to solve my easier problem) is this:               \documentclass{article}          \usepackage{xstring}      \usepackage{xifthen}          \usepackage{tikz-cd}          \newcommand{\arrowformatting}[1]{%         \IfSubStr{#1}{s}{swap,}{}%         \IfSubStr{#1}{.}{dotted,}{}%         % Add more commands here later     }          \newcommand{\A}[3][]{%         \ifthenelse{\isempty{#1}}{%             \arrow{#2}{#3}%         }{%             \expandafter\arrow\expandafter[\arrowformatting{#1}]{#2}{#3}%         }%     }          \begin{document}           \[ \begin{tikzcd}         A \A[s.]{r}{f^*} & B      \end{tikzcd} \]          \end{document}      The function `\arrowformatting` works correctly on its own - if I call `\arrowformatting{s.}` in the document it prints out `swap,dotted,` like expected. But if I use the `\A` command as shown, it gives me an error               ! Argument of \XC@definec@lor has an extra }.     <inserted text>                      \par      l.29 \end{tikzcd}                       \]      Is there an easy way to fix this and get the output of `\arrowformatting` to be interpreted as input to `\arrow` like I want? Or am I going to run into lots of complicated order-of-expansion issues, and would I be better off trying something else (like I believe there's a package that lets you run python code within latex, and hopefully that could generate the correct `\arrow` command I want)?


title: How to color the font of a single row in a table?

text: I have a table and I want to make the font color red for just one row (not the background). How do I do that? Here's my table:                 \begin{tabular}{ l | l l l l }             & 1 & 2 & 3 & 4 \\          \hline          1   & A & B & C & D \\          2   & A & B & C & D \\          3   & A & B & C & D \\          4   & A & B & C & D \\        \end{tabular}


title: Generating labels for envelopes

text: I have a list of 50 addresses for letters I have to send, and in LaTeX I am trying to create labels to stick on envelopes. I have a clear A4 sheet for printing (e.g. 10x2 fields) something similar as in the figure below, so I also have to take care of the geometry. ![Example of address label paper](http://i.stack.imgur.com/7AATV.jpg) I don't need to generate bar codes like for the US Postal Service, and similar standards... I had seen the envlab package but it doesn't seem to fulfil my needs. Any suggestions?


title: Compilation 'pauses' and expects input, but there is no error message

text: When I try to compile the MWE below with `xelatex`, I get the following:               *geometry* detected driver: pdftex     )     *      The * seems to be a prompt: pressing ENTER gives               *     (Please type a command or say `\end')     *     (Please type a command or say `\end')     *     (Please type a command or say `\end')     *      The .log file isn't useful. Leaving aside whatever the actual error in my document is, I don't understand what's happening: why is LaTeX pausing in this fashion without emitting any error? **MWE:**               \documentclass[a4paper,10pt]{article}     \usepackage[landscape,hmargin={1.2cm,1cm},vmargin=1cm,footskip=7mm]{geometry}     \usepackage[no-math]{fontspec}     \usepackage[T1]{fontenc}          \makeatletter          \begingroup     \lccode`\~`\\     \lowercase{\endgroup     \def\vb{%     \par     \parindent\z@     \parskip1\baselineskip plus 2pt\relax     \let\do\@makeother\dospecials%     \let\@xobeysp\space     \catcode`\ \active     \catcode`\\\active     \let~\scanendvb     }}     \def\scanendvb#1#2#3#4#5#6#7{%     \def\x{#1#2#3#4#5#6#7}%     \ifx\x\endvbstr     \expandafter\@firstoftwo     \else     \expandafter\@secondoftwo     \fi     {\end{vb}}{\char`\\#1#2#3#4#5#6#7}}          \edef\endvbstr{end\string{vb\string}}          \makeatother     \def\endvb{\par}          \newenvironment{almsinp}{\begin{minipage}[t]{0.5\textwidth}\begin{vb}}{\end{vb}\end{minipage}}          \begin{document}     \begin{almsinp}     Definition 2.1.2.     A _metric space_ M = (A, d) consists of a non-empty set A together with a map d : A\times A -> \bfR such that:         (M1a) d(x, y)\geq 0 for all x, y in A.         (M1b) d(x, y) = 0 <=>  x = y  for all x, y in A.         (M2) d(x, y) = d(y, x) for all x, y in A.         (M3) d(x, y)+d(y, z)\geq d(x, z) for all x, y, z in A.     The elements of A are called the _points_ of the metric space M, and d is called a _metric_ on A. We sometimes also call d the _metric_ of M.     \end{almsinp}     \end{document}


title: Install downloaded package via tlmgr

text: I’d like to install a package (microtype 2.5 beta 4) under TeX Live that isn’t available in the official repository. Now, I know that it’s usually enough to put the package under `~/texmf/tex/latex/` but I was wondering if I couldn’t use `tlmgr` to do the grunt work for me. In particular, I noticed that `tlmgr` has a `\--repository` option that can be used to pass it a local repository path. However, the following command unfortunately fails (understandably, since there is no TeX Live database file `texlive.tlpdb` there to read from):               wget http://xetex.tk/mediawiki/images/1/1c/Microtype.tds.zip     unzip Microtype.tds.zip     tlmgr --repository=./Microtype.tds/ update microtype      I was wondering if there was still a possibility to make this work.


title: Shortcut for "{}" and "()" in TeXnicCenter

text: Does anybody know of a way to create a keyboard short-cut for inserting a set of `{}`'s and `()`'s in TeXnicCenter? I have looked into defining my own Text Modules in the Insert tab, but this still requires me to press `Alt`-`I`-`M`-`6` to insert the "number 6" Text Module (my own). I am looking for something shorter; a `Ctrl`+`Alt`+`?` solution.


title: Can I import existing .Rnw Sweave file into LyX?

text: I am trying to import an existing Sweave `.Rnw` file into LyX. I wonder whether LyX is capable of doing it? My LyX version is 2.02 and I can use its Sweave module with no problem. I find out it does have an import Sweave option but I cannot import the simplest `.Rnw` file like the one below.               \documentclass{article}     \usepackage{Sweave}     \author{ZZ}          \begin{document}     \title{Simple}     \maketitle     \section{Simple Examples}     A simple example:     <<>>=     N <- 5     N     @     \end{document}      When I try to import this file, it gives me the following error message:               An error occurred while running:     Rscript --verbose --no-save --no-restore     "/Applications/LyX.app/Contents/Resources/scripts/lyxsweave.R"     "/Volumes/COMMON/Documents/""addone.Rnw"     "/Volumes/COMMON/Documents/""addone.tex"     "/Volumes/COMMON/Documents/"      Am I doing anything wrong? Shall I do it differently?


title: Example of slides presentations using beamer

text: Well I am looking for examples of slides presentations. I also want know how to get a pack that is missing to get when I use texmaker. Tanx


title: I cannot use Sweave to process a file created in TeXmaker (or Gedit) under Ubuntu 10.10

text: I am attempting to use Sweave with R2.11.1 and Texmaker on Ubuntu 10.10. I have done this previously on Windows XP, where one saves the tex file as `.Rnw` and then processes it with Sweave. I have all the files in R's current working directory, but it does not appear to work. Whenever I run the Sweave command, a blank tex file is created, and then R stops, giving me the following error:                Error in SweaveReadFile(file, syntax) :           no Sweave file with name 'example.Snw' found      I even tried loading the example sweave file from the R tools library, and even that does not work. Can anyone advise if they know of a solution for this problem, or please let me know if you need further information.


title: Avoiding blank page in Latex

text: I get a bank page after the content page. The content page is numbered in roman numerals. The chapters have Arabic page numbers. The blank page that I get after the content page has Arabic number 1. I want to avoid that blank page, so that, the Chapter 1 page will have number 1.


title: Title page line spacing in Latex

text: I use this code on my title page:               {\large {Some College \\ Some Place \\ Some City}} \par}      The first two lines get normal spacing, but the third line gets little more bigger spacing. How can I have equal space between all the three lines?


title: How draw lines at certain angle on a function graph in TikZ

text: How can one draw orthogonal tick marks on a function? For instance in the following plot I would like to make orthogonal tick marks on the function `y=x^2`, say.               \documentclass{article}     \usepackage{tikz}      \begin{document}     \begin{tikzpicture}           \draw[->] (-3,0) -- (4.2,0) node[right] {$x$};           \draw[->] (0,-3) -- (0,4.2) node[above] {$y$};           \draw[scale=0.5,domain=-3:3,smooth,variable=\x,blue] plot ({\x},{\x*\x});           \draw[scale=0.5,domain=-3:3,smooth,variable=\y,red]  plot ({\y*\y},{\y});         \end{tikzpicture}     \end{document}      I kind of know it will involve `\foreach`, but I am not sure how to proceed. To make things clear, I would like to have the tick marks "following" the graph of the function. Also if there are two or more functions on the same plot, then each should have a separate option for decoration. Please see comments below.


title: Knitr/LaTeX: conditional execution based on external parameters

text: I'm using `knitr` to create `LaTeX` documents with integrated `R` code. Now I'd like to readout some external parameters (saved in a TXT or CSV file) and create a document based on the conditions specified within this document. E.g., within the CSV-File there might be something like:               documenttype \t report1      and there might be more than two types of reports (e.g. report1, report2, report3, report4, report5). Then I'd have to readout the document type(s) from the CSV-file and execute different LaTeX code based on the report type (I might save the LaTeX code e.g. in files report1.rnw, report2.rnw etc. and call the right one from the main document). I've read that `etoolbox` provides a way to set conditional flags. However, can I set those flags based on the content of a CSV- or TXT-file? So can I first read out the content of another file, extract the flag and then execute other files based on those conditions (which are not just true or false, but really different flags)? Or do I have to do it first in `R` and then execute the corresponding knitr-files in `R` that in turn call different `R` source files as code chunks?


title: Numbers in Nested list

text: I want to be able to use number in my nested list, but its changing to alpha like in this picture. I would like to appear as 1 then 1.1, 1.2, 1.3 instead of a,b,c. Any help?


title: How to avoid the error Entity: line n: parser error : xmlParseCharRef:?

text: I am using the `hyperref` package. If I use PDFLaTeX the PDF generated don't have problems, but when I use the classical mode compilation `LaTex (DVI -> PS -> PDF)` the PDF generated opened by Evince throw the next errors:               Entity: line 5: parser error : xmlParseCharRef: invalid xmlChar value 7     <rdf:Description rdf:about='15aa203b-35b9-11ee-0000-958efa7943f' xmlns:pdf='                                                                    ^     Entity: line 8: parser error : xmlParseCharRef: invalid xmlChar value 7     <rdf:Description rdf:about='15aa203b-35b9-11ee-0000-958efa7943f' xmlns:xmp='      I've tried using: `\usepackage[dvips]{hyperref}` but the problem persists. I know the problem is caused by `hyperref` because if I comment it the problem disappears. I prefer to use LaTeX because I have a lot of EPS images.


title: What's the difference between tex.pro and texc.pro with dvips?

text: I sometimes see `tex.pro` mentioned and sometimes `texc.pro` mentioned. What are the differences betweeen those two? Possibly resulting questions:   * Are those relevant to the end user (me)?   * Should I give dvips special options to choose one over the other?


title: Remove blank page after TOC and get chapter 1 to start at the numbering of 1

text: I have a problem with the TOC since a blank page is added, with a pagenumber of 1. This means that my book's chapter 1 starts with a pagenumber of 2 on a left page. The problem occurs, when the TOC is two pages long. The first page of chapter 1 should start at 1 and on a right page. NB! In the book there is a lot of \pageref which a possible solution should be compatible with. I would be very pleased if anyone could help me. See code below:               \documentclass[a4paper,12pt,openany]{book}     \usepackage[english]{babel}     \usepackage{lmodern}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \pagestyle{headings}          \begin{document}          \frontmatter     \chapter*{Preface}     \addcontentsline{toc}{chapter}{\numberline{}Preface}%          \chapter*{Abstract}     \addcontentsline{toc}{chapter}{\numberline{}Abstract}%     blablablablablablablablablablablablabla          \tableofcontents          \mainmatter          \chapter{chp1}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}          \chapter{chp2}     blablablablablablablablablablablabla          \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}     \section{blablablabla}               \chapter{chp3}     \begin{equation}     2x+2x=4x     \label{eq1}     \end{equation}          \chapter{chp4}     blablablablablablablablablablablabla          As stated on page \pageref{eq1}          \end{document}


title: Font problem with xelatex on Windows 8 64 bits

text: Running xelatex with MikTex 2.9 on Windows 8.1 64 bits Arial Narrow font in bold turns into Arial bold. Arial Narrow bold is OK outside Latex. Did not have this problem on previous environment (Windows 7 32 bits). Any idea where this might come from?               \documentclass[french]{article}     \usepackage{fontspec}     \newfontfamily\headingfnt[]{Arial Narrow}     \newfontfamily\normalfnt[]{Arial}     \begin{document}          \Huge\headingfnt{Arial Narrow}          \Huge\normalfnt{Arial}          \Huge\bfseries\headingfnt{Arial Narrow}          \Huge\bfseries\normalfnt{Arial}     \end{document}


title: TeXLive problem with the default MLA package, \ifpdf seems to be undefined

text: As I'm compiling an example document to a PDF, which worked on the Ubuntu repository's version of TeXLive, but now on the install that I ran last night, things are broken. This is the output I get when compiling, and below is listed the file that I'm compiling. Do you have any ideas as to what is the problem, or at least how I could fix it?               \documentclass[12pt,letterpaper]{article}          \usepackage{mla}     \usepackage{setspace}     \usepackage{calc}          \begin{document}          \begin{mla}{Christopher}{Cooper}{Mrs.~Mills}{English 9 H}{27 October 2012}{An Exploration}          %body here          \end{mla}          \end{document}      gives log               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)      restricted \write18 enabled.     entering extended mode     (./poem.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge     rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek, ibycus, arabi     c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis     h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis     h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h     ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma     rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,      kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,      polish, portuguese, romanian, romansh, russian, sanskrit, serbian, serbianc, s     lovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian,      welsh, loaded.     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/size12.clo))     (/usr/local/texlive/2012/texmf-dist/tex/latex/mla-paper/mla.sty     MLA Package - by Ryan Aycock     ! Undefined control sequence.     l.67 \ifpdf                 % We're generating a pdf     ?


title: change height of text

text: I am writing some text that spans over two lines. At the end of the first line there is `$\lim\limits_{n\to+\infty} u_n=0$`. I am using the `\limits` command for better effect, but it increases the space between the lines (normal behavior). However, I would like it not to, as the second line ends before this could be a problem. I'm pretty sure there is a way to make the height of that math command 'phantom' (I remember doing it years ago), but I can't remember/find how.


title: Termcal lesson numbering

text: I have been using the `termcal` package to produce a calendar for my syllabuses. I like the functionality a lot, but I was wondering if it was possible to make the lesson counting follow more of an outline format than a simple count. So, for example, rather than "1, 2, 3, 4,..." the count could go "1.1, 1.2, 2.1, 2.2, 2.3, 3.1,..." Here is the not-so-minimal working example from the package documentation:               \begin{calendar}{9/26/94}{6}     \setlength{\calboxdepth}{.3in}     % Description of the Week.     \calday[Monday]{\classday} % Monday     \skipday % Tuesday (no class)     \calday[Tuesday]{\classday} % Wednesday     \calday[Thursday]{\noclassday} % Thursday (unnumbered)     \calday[Friday]{\classday} % Friday     \skipday\skipday % weekend (no class)     % Holidays     \options{10/31/94}{\noclassday}     \caltext{10/31/94}{No Class\\Halloween}     % Exams     \caltext{10/12/94}{Midterm Exam}     % Text on consecutive days     % the subject of the 9th lecture     \caltexton{9}{\S1.2,1.3\\Sorting and disporting}     % the subject of the 10th lecture     \caltextnext{\S1.3,1,4\\Assembling and dissembling}     \caltextnext{}     % the subject of the 12th lecture     \caltextnext{\S9.9\\Tending and rending}     \end{calendar}


title: How to typeset multi-letter identifiers that contain letters with diacritic marks inside math environment?

text: **This is edit. See original question below.** In math mode I would like to use identifiers that contain of whole word. That word is not in English and does contain letters with diacritic marks. Example of such word is `kľúč`. I have tried to use commands like `\mathit{kľúč}` or `\mathnormal{kľúč}` inside math environment. They work well when there are no diacritic marks for example `\mathit{kluc}` renders the word together with no ugly spaces between letters. When diacritic marks are present the letters are rendered with spaces for example command `\mathit{kľúč}` inside math environment produces something like `k ľ úč` instead of `klúč`. How can I typeset multi-letter identifiers that contain diacritic marks inside math environment? * * * **Original question text:** The title says it. I want to use letters like `ľ`, `ú`, `š`, `ô` etc. as part of mathematical identifier (`\mathit`) in math environment. However unlike standard english letters they are rendered with unpleasant spaces before and after them. How do I solve this? Example of used command:               $\left\langle \mathit{kl\mkern-5mu\mathchar19\acute{u}\check{c}},\mathit{hodnota}\right\rangle $      This is LaTeX code produced by Lyx when I edit that expression using graphical editor. Expected output is something like `<kľúč, hodnota>` (in english this would be `<key, value>`) but what I get looks more like `<k ľ ú č, hodnota>`.


title: Clearpage without pagebreak?

text: Is there a command which does the same like `\clearpage` (typesetting all floats which have not been typeset yet) **but** then does _not_ insert a pagebreak but continues with the following text/graphics on the same page?


title: Multirow tables

text: Firstly I am very sorry for I know not how to make the TeX code works here. I am trying to have multirows for the first and last columns and following is the closest I could get. Could you please guide me on how to do that (Like the table drawn in Excel below)?                   \begin{tabular}{ |l|l|l|l| }         \hline         \multicolumn{4}{ |c| }{Convergence} \\         \hline         Time & \multicolumn{2}{ |c| }{Information} & Graph \\ \hline         \multirow{3}{*}{1} & Vertice & 1 & 0.5  \\ \cline{2-1} \cline{3-1}         & ${P(1)}$ & 0.5 & 0.5 \\ \cline{2-2} \cline{3-2}         & Chance & 0.5 & 0.5 \\              \hline         \multirow{3}{*}{1} & Vertice & 1 & 0.5  \\         & ${P(1)}$ & 0.5 & 0.5 \\         & Chance & 0.5 & 0.5 \\              \hline         \end{tabular}      ![Question](http://s12.postimg.org/8dwj0gtt9/qpic.png)


title: LaTeX gives warning - empty label `' multiply defined

text: I have a LaTeX document that works fine, but it does give a warning message every time I compile it. Here is the text of the warning message: > LaTeX Warning: Label `' multiply defined. The name of the label that is multiply defined appears to be an empty string. I am confused about this, but I have had trouble searching for it online because the key element is the empty string, which does not make for a good search term. Does anyone know what this warning message could mean? I can post details of the document in question as needed, but at this point I have no idea what parts could be important. Got it. I guess I didn't realize that bibliography items counted as labels - since I never had any intention of referring to them anywhere, I left all of their labels blank initially.


title: How to interrupt longtable to place float (figure)?

text: I am writing a document describing a process step by step. After trying with `enumerate` (which did not look so appealing) I switched to `longtable`. This longtable can span more than two full pages. The problem I ran into is illustrated by the MWE below. Since there is not sufficient space on the first page to place the figure, it is moved after the longtable. Is there a way of placing floats so they interrupt the longtable? The figure should be on the top of page 2. Or is there a different LaTeX macro that will allow me to typeset the process steps in the same way but will be treated as text (and can thus be interrupted by floats)? Requirement is that the step number can be referenced.               \documentclass[a4paper,10pt]{article}          \usepackage[utf8]{inputenc}     \usepackage{paralist}     \usepackage{longtable}     \usepackage{tabularx}     \usepackage{lipsum}               %% Compact list to be used within tabular for step listing     \newenvironment{PCitem}     {       \begin{minipage}[t]{\linewidth}\begin{compactitem}     } {       \end{compactitem}\end{minipage}     }          %% counter step listing, right aligned     \newcounter{PCstep}     \newcommand{\PC}{%         \refstepcounter{PCstep}%         \hfill\thePCstep.}               %% dummy table content          \newcommand{\tablecontent}{     \PC & Doing this & Take care!\vspace{1ex}\\          \PC & Doing that & Doing that is very complicated and is divided into the following steps          \begin{PCitem}     \item Cleaning     \item Making dirty     \item Cleaning, again     \item Making dirty, again     \item oh stop it!     \end{PCitem}\vspace{1ex}\\     }                    \begin{document}          \section{Page almost filled, so no space for float}          \lipsum[3-6]          \section{Beginning}          This is some text, and soon there will be a longtable spanning three pages. But before Figure~\ref{fig:label} is inserted, which should be ideally be placed on the next page, effectively interrupting the longtable.               %% Figure     \begin{figure}[!tb] % Here Top Bottom     \centering       \begin{center}       \rule{400pt}{100pt}       \caption{This figure is actually supposed to be placed before the longtable.}        \label{fig:label}       \end{center}         \end{figure}               %% Longtable     \begin{longtable}{p{25pt}>{\textbf\bgroup}p{117pt}<{\egroup}p{240pt}}          & \textbf{\itshape Step} & \textbf{\itshape Details} \vspace{1ex}\endfirsthead          \tablecontent     \tablecontent     \tablecontent     \tablecontent     \tablecontent     \tablecontent     \tablecontent     \tablecontent     \tablecontent          \end{longtable}          \end{document}


title: minionpro: using the number 3 in italic causes an error

text: I'm experiecing a rather strange bug with the `minionpro` package. When using lining figures (package option `lf`), the number 3 in `\itshape` produces the following error:               !pdfTeX error: /usr/texbin/pdflatex (file /usr/local/texlive/2013/../texmf-     local/fonts/type1/adobe/MinionPro/MinionPro-It.pfb):      CharString (/three.fitted): command not valid: 0     ==> Fatal error occurred, no output PDF file produced!      This happens only with the number `3`, only in `italic` and only when using the `lf` option (minionpro uses old style figures by default). It's worth mentioning that I used FontPro to install `minionpro`. Here's an MWE that produces the error:               \documentclass{article}     \usepackage[lf]{MinionPro}     \begin{document}          \itshape Number 3          \end{document}


title: dynamic for loop

text: I'm trying to create a dynamic for loop:               \def\forinmacro{{a,b,c,d}}     \iftb{SomeBool}{\def\forinmacro{{a}}}     \foreach \m in \forinmacro {...}      Note if I change the last line to               \foreach \m in {a,b,c,d} {...}      it works. Unfortunately the comma's seem to screw up the foreach and it gives errors(changing a,b,c,d to a lets it work). Why is `\def\forinmacro{{a,b,c,d}}` breaking the foreach but `\def\forinmacro{{a}}` not?


title: Latex editor for Linux that allows multiple instances

text: I have always used Texmaker, but I'm at the point now where I am writing multiple documents at the same time (e.g., thesis and paper). Additionally, I like to have my work organized into different workspaces. This is where Texmaker fails me. It only allows a single instance of the application at a time. As far as I can tell, there is no way to have two instances of Texmaker open at the same time. I have tried Kile, and it is the same thing. I was just wondering if anyone has experience with other latex editors that support multiple instances? I know of TexMakerX, but the installation isn't clean, and I forget the steps I had to take to make it work once (I also remember being underwhelmed once I installed it...). I'm also familiar with emacs+auctex, but at the end of the day, I would much rather use an IDE like editor. Any suggestions are appreciated, thanks.


title: \scantokens in LuaTeX

text: The eTeX `\scantokens` command appears to work differently in LuaTeX than it does in eTeX, pdfTeX and XeTeX. Compiling the following test file with any engine other than LuaTeX performs `\show+`, which shows `the character +`, but LuaTeX skips this statement entirely.               \newlinechar=10 \catcode10=12     \endlinechar=13 \catcode13=5     \scantokens{^^J\show+}     \bye      This behaviour reminds me of how TeX does not look in a line after tokens of category code 5 (end-of-line), so at first I thought that the default category codes might be different in LuaTeX. This is why I added some redundant catcode assignments. Obviously, that didn't suffice.


title: subfigure and subfig packages deprecated

text: I was using the `subfigure` package to align multiple small images in a document. However, WikiBooks states that "the `subfigure` and `subfig` packages are deprecated and shouldn't be used any more" (WikiBooks Floats, Figures and Captions). What is the alternative/proper option to achieve the same result?


title: How to correctly nest psmatrix within psmatrix (without undesired space)

text: I'd like to nest several psmatrix environments within a `psmatrix`, so that every cell of the outer `psmatrix` itself is an psmatrix again. Ultimately I want to draw within these inner matrices using `pspicture`. All that in a `beamer` document in case this is relevant. Unfortunately when nesting the psmatrices, so unwanted space is added in a way, that the outer `psmatrix` is not longer properly centered with respect to the page.               \documentclass{beamer}     \usepackage[utf8x]{inputenc}     \usepackage{pstricks}     \usepackage{pst-node}     \newcommand\mycirc{\pspicture(.5,.5)\pscircle(.25,.25){.25}\endpspicture}     \newcommand\myframe{\pspicture(.5,.5)\psframe(.5,.5)\endpspicture}     \begin{document}     \begin{frame}{Properly centered}     \begin{center}      \begin{psmatrix}       A & B \\       C & D      \end{psmatrix}      \end{center}     \end{frame}     \begin{frame}{Not centered}     \begin{center}      \begin{psmatrix}[rowsep=2,colsep=2]       \begin{psmatrix}[rowsep=0.5,colsep=0.5]A1&A2\\A3&A4\end{psmatrix}&       \begin{psmatrix}[rowsep=0.5,colsep=0.5]B1&B2\\B3&B4\end{psmatrix}\\       \begin{psmatrix}[rowsep=0.5,colsep=0.5]C1&C2\\C3&C4\end{psmatrix}&       \begin{psmatrix}[rowsep=0.5,colsep=0.5]D1&D2\\D3&D4\end{psmatrix}       \end{psmatrix}      \end{center}     \end{frame}     \begin{frame}{Not centered - pspicture example}     \begin{center}      \begin{psmatrix}[rowsep=2,colsep=2]       \begin{psmatrix}[rowsep=0.5,colsep=0.5]\mycirc&\mycirc\\ \mycirc&\mycirc\end{psmatrix}&       \begin{psmatrix}[rowsep=0.5,colsep=0.5]\myframe&\myframe\\ \myframe&\myframe\end{psmatrix}\\       \begin{psmatrix}[rowsep=0.5,colsep=0.5]\mycirc&\mycirc\\ \mycirc&\mycirc\end{psmatrix}&       \begin{psmatrix}[rowsep=0.5,colsep=0.5]\myframe&\myframe\\ \myframe&\myframe\end{psmatrix}       \end{psmatrix}      \end{center}     \end{frame}     \end{document}      My question is how to make the psmatrix being correctly aligned. I'm mentioning the `pspicture` environment here just in case someone has a much more elegant solution for this. Note: As a workaround I'm using a not nested `psmatrix` where the distance between the four "blocks" is introduced by additional empty columns. Please don't propose that. I'd prefer the embedded solution this it allows more fine-grained positioning. Thanks in advance to all of you who spend their time on giving me some hints! ## Edit by The Last Error The following edit tries to simplify the given MWE above. Feel free to rollback if you don't like my edit.               \documentclass[preview,border=12pt]{standalone}          \usepackage{pst-node}     \newcommand\mycirc{\pspicture(.5,.5)\pscircle(.25,.25){.25}\endpspicture}     \newcommand\myframe{\pspicture(.5,.5)\psframe(.5,.5)\endpspicture}          \begin{document}     \section{Properly centered}     \begin{center}      \begin{psmatrix}       A & B \\       C & D      \end{psmatrix}      \end{center}          \section{Not centered}     \begin{center}     \fbox{%      \begin{psmatrix}[rowsep=2,colsep=2,mcol=l]       \begin{psmatrix}[rowsep=0.5,colsep=0.5]A1&A2\\A3&A4\end{psmatrix}&       \begin{psmatrix}[rowsep=0.5,colsep=0.5]B1&B2\\B3&B4\end{psmatrix}\\       \begin{psmatrix}[rowsep=0.5,colsep=0.5]C1&C2\\C3&C4\end{psmatrix}&       \begin{psmatrix}[rowsep=0.5,colsep=0.5]D1&D2\\D3&D4\end{psmatrix}       \end{psmatrix}}      \end{center}          \section{Not centered - pspicture example}     \begin{center}     \fbox{%      \begin{psmatrix}[rowsep=2,colsep=2]       \begin{psmatrix}[rowsep=0.5,colsep=0.5]\mycirc&\mycirc\\ \mycirc&\mycirc\end{psmatrix}&       \begin{psmatrix}[rowsep=0.5,colsep=0.5]\myframe&\myframe\\ \myframe&\myframe\end{psmatrix}\\       \begin{psmatrix}[rowsep=0.5,colsep=0.5]\mycirc&\mycirc\\ \mycirc&\mycirc\end{psmatrix}&       \begin{psmatrix}[rowsep=0.5,colsep=0.5]\myframe&\myframe\\ \myframe&\myframe\end{psmatrix}       \end{psmatrix}}      \end{center}          \end{document}      ![enter image description here](http://i.stack.imgur.com/M6HvK.png)


title: Database Entity Relationship Diagram

text: Is there a package that will allow me to create a database entity relationship diagram such as the one below? ![enter image description here](http://i.stack.imgur.com/moui5.png)


title: How to get bengali font script as output written within verbatim package?

text: \documentclass{article}     \usepackage{verbatim}     \begin{document}          \begin{verbatim}     $\alpha=\beta$     Here is my text.       এখানে আমার টেক্সট ।          \end{verbatim}          \end{document}      This gives the following output :               $\alpha=\beta$     Here is my text.      But want the following output :               $\alpha=\beta$     Here is my text.       এখানে আমার টেক্সট ।      Is there any way to do so ?


title: Tikz coordinates relative to a node, and outside it

text: Given a rectangular node `X` I have access to the coordinates `(X.north)`, `(X.east)` and the like. However, I want to be able to draw two sides of a right-angled triangle on top of the node. For example, if the node's top left and top right coordinates were `(0,3)` and `(2,3)` then I want to draw `(0,3) -- (1,4) -- (2,3)`. In other words:               \draw (X.north west) -- <what goes here?> -- (X.north east);      How do I obtain my middle point using only the node itself? The best I can do is               \draw (X.north west) -- ([shift={(X.north)}] X.north)-- (X.north east);      but that seems a little clumsy.