title: Caption in LyX appears below a "sub-title"

text: I'm using the following TeX code in LyX for creating a double table. When viewing it in .pdf I don't know why the caption "Main Title" appears below the text Panel A: Effect. Definitely it should be the contrary. Do you know why and how should I fix these issue? Thank you!               %%%%%%%%%%%%%%%%%%%%%%     %% LyX 2.0.7 created this file.  For more info, see http://www.lyx.org/.     %% Do not edit unless you really know what you are doing.     \documentclass[10pt,spanish]{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage{geometry}     \geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm}     \setlength{\parskip}{\medskipamount}     \setlength{\parindent}{0pt}     \usepackage{setspace}     \onehalfspacing          \makeatletter     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.     % Packages for tables     \usepackage{booktabs}% Pretty tables     \usepackage{threeparttablex}% For Notes below table          % *****************************************************************     % siunitx     % *****************************************************************     \newcommand{\sym}[1]{\rlap{#1}} % Thanks to Joseph Wright & David Carlisle          \usepackage{siunitx}     \sisetup{     detect-mode,     group-digits = false,     input-symbols = ( ) [ ] - +,     table-align-text-post = false,     input-signs = ,     }          % Character substitution that prints brackets and the minus symbol in text mode. Thanks to David Carlisle     \def\yyy{%     \bgroup\uccode`\~\expandafter`\string-%     \uppercase{\egroup\edef~{\noexpand\text{\llap{\textendash}\relax}}}%     \mathcode\expandafter`\string-"8000 }          \def\xxxl#1{%     \bgroup\uccode`\~\expandafter`\string#1%     \uppercase{\egroup\edef~{\noexpand\text{\noexpand\llap{\string#1}}}}%     \mathcode\expandafter`\string#1"8000 }          \def\xxxr#1{%     \bgroup\uccode`\~\expandafter`\string#1%     \uppercase{\egroup\edef~{\noexpand\text{\noexpand\rlap{\string#1}}}}%     \mathcode\expandafter`\string#1"8000 }          \def\textsymbols{\xxxl[\xxxr]\xxxl(\xxxr)\yyy}               % *****************************************************************     % Estout related things     % *****************************************************************     \let\estinput=\input % define a new input command so that we can still flatten the document          \newcommand{\estwide}[3]{     \vspace{.75ex}{     \textsymbols% Note the added command here     \begin{tabular*}     {\textwidth}{@{\hskip\tabcolsep\extracolsep\fill}l*{#2}{#3}}     \toprule     \estinput{#1}     \bottomrule     \addlinespace[.75ex]     \end{tabular*}     }     }          \newcommand{\estauto}[3]{     \vspace{.75ex}{     \textsymbols% Note the added command here     \begin{tabular}{l*{#2}{#3}}     \toprule     \estinput{#1}     \bottomrule     \addlinespace[.75ex]     \end{tabular}     }     }          % Allow line breaks with \\ in specialcells     \newcommand{\specialcell}[2][c]{%     \begin{tabular}[#1]{@{}c@{}}#2\end{tabular}     }          % *****************************************************************     % Custom subcaptions     % *****************************************************************     % Note/Source/Text after Tables     % The new approach using threeparttables to generate notes that are the exact width of the table.     \newcommand{\Figtext}[1]{%     \begin{tablenotes}[para,flushleft]     \hspace{6pt}     \hangindent=1.75em     #1     \end{tablenotes}     }     \newcommand{\Fignote}[1]{\Figtext{\emph{Note:~}~#1}}     \newcommand{\Figsource}[1]{\Figtext{\emph{Source:~}~#1}}     \newcommand{\Starnote}{\Figtext{\textit{* p < 0.1, ** p < 0.05, *** p < 0.01.}\\ Errores est\'andares corregidos por correlaci\'on y heteroskedasticidad a nivel de escuela entre par\'entesis.}}% Add significance note with \starnote          \makeatother          \usepackage{babel}     \addto\shorthandsspanish{\spanishdeactivate{~<>}}          \begin{document}     $ $ %esto evita el error      \begin{table}[htbp]     \begin{threeparttable}      \caption{My Title}     \label{efectos_generales}     \Figtext{\textbf{Panel A: Efecto estudiante en corto plazo}}        \estwide{output/raw_tables/regressions_general2.tex}{3}{c}       \Figtext{\textbf{Panel B: Efecto estudiante en mediano plazo}}  \estwide{output/raw_tables/regressions_general2_1.tex}{3}{c}            \Figtext{\footnotesize{Panel A - Controles: (2)}}       \Figtext{\footnotesize{Panel B - Controles: (3)}}       \Figtext{\footnotesize{Errores est\'andares corregidos por correlaci\'on y heteroskedasticidad a nivel de escuela entre par\'entesis.\\ \textit{* p < 0.1, ** p < 0.05, *** p < 0.01.}}}      \end{threeparttable}     \end{table}     \end{document}


title: update pdf automatically using texstudio

text: I am using texstudio on mac os x. Each time I change some sentences in my .tex file and I need to see the results, I have to close the previous .pdf (if it is already opened) and regenerate the .pdf. Is it possible to update the pdf automatically without doing each time close open.thanks.


title: Exsheets: print solutions per section fails

text: I'm using the exsheets package to write exercises and solutions in a textbook. My purpose is to list some exercises at the end of each section followed by their corresponding solutions, as intended in the following MWE:               \documentclass[12pt,a4paper]{book}     \usepackage{exsheets}                    \begin{document}     \chapter{Chapter A}          \section{Section A}\exlabel{sec:AA}          \subsection{Subsection A}          \subsection*{Exercises}          \begin{question}     Question 1.     \end{question}     \begin{solution}     Answer 1.     \end{solution}          \subsection*{Solutions}     \printsolutions[section=\S{sec:AA}]                    \chapter{Chapter B}          \section{Section A}\exlabel{sec:BA}          \subsection{Subsection A}          \subsection*{Exercises}          \begin{question}     Question 2.     \end{question}     \begin{solution}     Answer 2.     \end{solution}          \subsection*{Solutions}     \printsolutions[section=\S{sec:BA}]          Solution 1 shouldn't appear twice!          \end{document}      My Problem is, that the solutions of the previous sections (with the same number of the current section) reappear after a new chapter. That means especially for the MWE: Solution 1 is printed both in chapter A section A and in chapter B section A. How can I avoid this? Do I miss something? Reading the Documentation didn't help. Remarks: I use `exlabel` because of hyperref in my original document. Also, I could easly use my own environments instead of exsheets. But I want to be flexible, if I decide to print all solutions at the end of my document.


title: How to prevent automatic justification of references?

text: I have a reference entry in the bibliography that appears as follows:               [50] AB MySQL.    MySQL:  The  world's  most  popular  open  source  database,          http://www.mysql.com/, 2005.      How to prevent auto-justification for specific references?


title: problems with Venturis ADF and Iwona fonts in MiKTeX

text: Running               \documentclass{article}     \usepackage{venturis}     \usepackage[T1]{fontenc}     \begin{document}     Hello, World! 0123456789 Hamburgers!     \end{document}      through `pdflatex` gives me               !pdfTeX error: pdflatex.exe (file t1-yvtrc): Font t1-yvtrc at 600 not found      ==> Fatal error occurred, no output PDF file produced!      even though I have installed `venturis` in the MiKTeX Package Manager. There are folders for Venturis in `C:\Program Files (x86)\MiKTeX 2.9\fonts` and in `C:\Program Files (x86)\MiKTeX 2.9\tex\latex`. What should I do? Same thing for Iwona.


title: Getting (Xe)LaTeX to display accents and characters not included with the font

text: The font I'm using (Adobe Garamond Premier Pro) does have certain precomposed glyphs with diacritics, so I'm having (Xe)LaTeX add them in. I found this post and used the method described there for dealing with the combining dot below diacritic. Now, I'm struggling trying to find the commands for the caron and for the transliterations of the Hebrew characters aleph and ayin. What I've done is undeclared these in my preamble. Hence:               \UndeclareUTFcomposite[\UTFencname]{x01CE}{\v}{a}     \UndeclareUTFcharacter[\UTFencname]{x02BE}{\texthamza}     \UndeclareUTFcharacter[\UTFencname]{x02BF}{\textain}      Where I'm stuck is finding the proper code to renew the `\v`, `\texthamza`, and `\textain` "commands"(?). (Are the `\text*` characters even able to be displayed if the font doesn't contain the glyph?) I need some guidance on where to find the code to these. I've been through the ot1enc.def, t1enc.def, ts1enc.def files without success. Any suggestions on how to implement these glyphs would be appreciated. PS Sorry if I'm using the terms incorrectly; I'm still a beginner at this. * * * Okay, with regard to the caron here is what I have thus far:               \documentclass{article}     \usepackage{fontspec}     \setmainfont{Garamond Premier Pro}          \UndeclareUTFcomposite[\UTFencname]{x01CE}{\v}{a}     \makeatletter     \renewcommand{\v}[1]       {\leavevmode \vtop{\offinterlineskip \ialign{##\cr #1\cr       \setbox0=\hbox{\raise.1ex\hbox{\char"02C7}}\ht0=0pt\dp0=0pt\hidewidth\box0       \hidewidth\cr}}}     \makeatother          \begin{document}          \huge\v{a}          \end{document}      I'm unsure if the spacing is right, but it _looks_ fine. Any thoughts would be appreciated. Thanks! * * * Per egreg's guidance with some modification, here is what I have now:               \documentclass{article}     \usepackage{fontspec}     \setmainfont{Garamond Premier Pro}     \newfontfamily{\transliterationfont}{Linux Libertine O}          \UndeclareUTFcomposite[\UTFencname]{x1E63}{\d}{s}     \makeatletter     \renewcommand{\d}[1]       {\hmode@bgroup       \o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-1ex}.\hidewidth}\egroup}     \makeatother          \usepackage{newunicodechar}     \newunicodechar{ǎ}{\accent\string"02C7 a}     \newunicodechar{ʾ}{{\transliterationfont{ʾ}}} % U+02BE     \newunicodechar{ʿ}{{\transliterationfont{ʿ}}} % U+02BF          \begin{document}          \huge\emph{hǎlākāh}     \huge\emph{Baba Me\d{s}iʿa}     \huge\emph{ʾErubin}          \end{document}      I don't suppose there is a way to get around having to do `\d` to do a combining dot below by using the above method for the caron if the Garamond doesn't have it, correct?


title: Sublime text 2 with LaTeXTools fails to compile (Windows)

text: I work on Windows 7 X64 and since the latest update of LaTeXTools plugin for sublime text 2, the build (Ctrl+B) is failing with the following: `[Compiling E:\Users\Seif\Desktop\1tsss\first.tex]` `TraditionalBuilder: Invoking texify...` And nothing is compiled! I have followed the instructions to issue the command from the command palette "Reconfigure and migrate settings". I'm using the default generated LaTeXTools.sublime-settings with the following:               "windows": {         // Path to tex & friends. "" is fine for MiKTeX         // For TeXlive 2013 (or other years) use         // "texpath" : "C:\\texlive\\2013\\bin\\win32;$PATH",         "texpath" : "",         // TeX distro: "miktex" or "texlive"         "distro" : "miktex"     },      The PATH variable contains both the path to MixText bin folder (E:\Program Files\MiKTeX 2.9\miktex\bin\x64) and the path to SumatraPDF (E:\Program Files (x86)\SumatraPDF). If I issue the same texify command plus the sumatrapdf from within the prompt command-line (cmd.exe) it works. `E:\Users\Seif\Desktop\1tsss> texify -b -p --tex-option="--synctex=1" filename.tex && sumatrapdf filename.pdf` I followed many threads searching for a solution but nothing succeeded in my case. A very similar question is here but all solutions there don't work. I appreciate your help.


title: Align downscaled graphics to the left

text: I include a PDF as a figure in my document, and the PDF is a great deal wider than the `\linewidth`. I use the `adjustbox` package to set the width to slightly more than \linewidth, but I can't figure out how to make it flow over the left margin rather than the right.               % in the preamble     \usepackage[export]{adjustbox}          % in the document body      \begin{figure}[h]     \includegraphics[width=\linewidth+2cm]{figure.pdf}     \end{figure}      If I replace the `width` option with `left` or `inner`, then the figure is stretched to it's original size and then some, and if I add these options after `width` then they seem to be ignored. Following suggestions from other answers here, I tried wrapping the graphics in a box like the following, but to no avail:               \makebox[\textwidth+2cm][l]{       \includegraphics[width=\linewidth+2cm]{figure.pdf}     }      How can I let the graphics respect the right margin and flow over the left margin instead?


title: Why does hyperref break the labels of subfigures with ContinuedFload?

text: This is a follow up to here: http://tex.stackexchange.com/a/130629/32245 When I insert `\usepackage{hyperref}` as last line of the preamble. The main figure (or the two continued figures) are labeled as "0" but the sub-figures as "1a - 1h". Why is that so? In the comments on the linked post, it is mentioned, that `\usepackage[all]{hypcap}` is not needed due to the `caption`-package loaded by `subfig`. However, I don't succeed to hyperlink to the top of all sub- figures instead of the caption on the second page. I even tried `\usepackage[hypcap=true]{caption}` before and after loading `subfig`. * * *               % arara: pdflatex     % arara: pdflatex          \documentclass{article}     \usepackage[%         ,demo         ]{graphicx}     %\usepackage[hypcap=true]{caption}         \usepackage{subfig}     %\usepackage{hyperref}          \begin{document}     \listoffigures     \begin{figure}[!htb]      \centering        \subfloat[][opt. caption]{\includegraphics[width=0.49\linewidth]{a}\label{fig:Figurea}} \hfill     \subfloat[][]{\includegraphics[width=0.49\linewidth]{b}\label{fig:Figureb}} \\     \subfloat[][]{\includegraphics[width=0.49\linewidth]{c}\label{fig:Figurec}} \hfill     \subfloat[][]{\includegraphics[width=0.49\linewidth]{d}\label{fig:Figured}}  \\      \subfloat[][]{\includegraphics[width=0.49\linewidth]{e}\label{fig:Figuree}} \hfill     \subfloat[][]{\includegraphics[width=0.49\linewidth]{f}\label{fig:Figuref}}         \phantomcaption % for caption version 3.2 or higher. Not needed if not used with subfig.       \end{figure}       % The figure continues on the next page       \begin{figure}       \centering     \ContinuedFloat       \subfloat[][opt. caption]{\includegraphics[width=0.49\linewidth]{g}\label{fig:Figureg}} \hfill     \subfloat[][]{\includegraphics[width=0.49\linewidth]{h}\label{fig:Figureh}}         \caption{These are figures 1 a-h}       \label{fig:fig1}       \end{figure}            This is figure \ref{fig:fig1} and its subfigure \ref{fig:Figureh}.     \end{document}


title: Auto-displaying a large image on multiple pages

text: I have a long UML diagram, I use the following code. The figure is about two and a half page long, but only the first page is showing, and the lower part of the figure is missing. How do I display the whole diagram in multiple page? Exactly what code should I add?               \usepackage{graphicx}      ......     \includegraphics[height= 81.3cm, width=18cm]{myImage.png}     \captionof{figure}{Sequence Diagram}


title: minipage horizontal alignment

text: I'm using minipage to put two tables next to each other, and instead it is putting them in vertically. It seems like this is usually caused by having blank lines between the minipages, but that isn't the case here. What can I do to rectify this?               \documentclass{article}     \usepackage{fullpage}     \begin{document}         \begin{table}[htbp]\centering     \begin{minipage}[c]{\textwidth}     \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}     \caption{phone T-tests}     \begin{tabular}{l*{1}{c}}     \hline\hline                         &\multicolumn{1}{c}{Altruism\&Image}\\     \hline     pledge              &       10.00         \\                     &     (16.12)         \\     [1em]     pledge\_zeros        &       8.020         \\                         &     (4.311)         \\     [1em]     pledge\_binary       &      0.0924\sym{**} \\                         &    (0.0326)         \\     \hline     Observations        &         710         \\     \hline\hline     \multicolumn{2}{l}{\footnotesize Standard errors in parentheses}\\     \multicolumn{2}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \                        (p<0.001\)}\\     \end{tabular}     \end{minipage}     \begin{minipage}[c]{\textwidth}     \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}     \caption{phone T-tests}     \begin{tabular}{l*{1}{c}}     \hline\hline                         &\multicolumn{1}{c}{Alruism\&Pressure}\\     \hline     pledge              &      -3.091         \\                         &     (15.40)         \\     [1em]     pledge\_zeros        &       0.781         \\                         &     (4.831)         \\     [1em]     pledge\_binary       &      0.0243         \\                         &    (0.0350)         \\     \hline     Observations        &         680         \\     \hline\hline     \multicolumn{2}{l}{\footnotesize Standard errors in parentheses}\\     \multicolumn{2}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \    (p<0.001\)}\\          \end{tabular}     \end{minipage}     \end{table}     \end{document}


title: How to batch convert PS to PDF without leaving windows open?

text: I am new to TexShop and new to this forum so please forgive me if the question is dumb. I need to convert about 13,800 postscript files to PDF. TexShop can do it but the only ways I know how means that when I open a bunch of the files to convert automatically, TexShop converts them but leaves them open (displayed on-screen in TexShop) after converting, so the more files that it processes, the more RAM it uses till it exponentially slows too much. For example, if I get TexShop to convert only 1000 file, the first 500 files takes about 15 minutes, and the next 500 takes about 30 minutes. When it is finished, TexShop is unresponsive (with 1000 open PDFs) and need be forcibly quit. I presume there must be some way for TexShop to process a file, close it, then move onto the next one automatically but I can't see any obvious way how. To get it done quicker, I could try smaller batches (say 250 files at a time which only takes 5 minutes) but that would mean a lot of setting up and baby- sitting of the Mac. I figure automating this must be easily doable, maybe in combination with Automator if TexShop can't handle it alone. Can anyone please assist with this? I use 2.4 GHz Intel Core 2 Duo MacBook with 6GB RAM.


title: Goto or jump command in LaTeX?

text: The answer to this is probably "no", but I just wanted to make sure... (also, I'm not trying to get into the whole "gotos are evil" debate `:)`). Basically, one of the things that irritates me in my current workflow, is that eventually I get to a point where I'm on page 34, and there are a ton of images in the previous 33 pages; so if I get stuck with something on page 34, requiring multiple texing, I have to wait for all of the 33 pages to get done texing first (and this can take a while), before I can see the results of interest. So I thought, it would have been awesome, if LaTeX (rather, for me currently, `pdflatex`) supported a sort of a "jump" or "goto" command, which I could use like this:               \documentclass{article}          \usepackage{tikz}          % ...          % probably something like this would be needed - pseudo:     \declareGotoMarker{\myjumplabelA}          \begin{document}          % at this point, I'm not interested in the content from      % start to page 33 - so I'm issuing a jump command      % right at the document start:          \JumpGoto{\myjumplabelA}          % here content of skipped pages           % ...          % here is the label, the tex processor       % should jump to, and continue from:          \myjumplabelA          \section{My page 34 section}          Here there is some content that I'm texing:          A test: \problemcommand          ...          % here is end of the snippet that I care about texing at the moment;     % don't need a jump here - can just use \stop etc to exit prematurely:          \stop          % here content continues, to end of doc;     % but I won't be seeing it in PDF, as I issued      % \stop just previously:           \section{My page 45 section}          Here some more content, which I'll eventually tex - but not now...          ...          \end{document}      Well, I guess the code speaks for itself - the desired output would be a PDF with the content, corresponding to pg 34-44 of the original document. Obviously page numbers, and page and some of the other (section, equation, etc.) references will not be available/working when doing this kind of "jump"-shortened run, but that is understood without saying; the goal of this is more-less to assist with troublesome snippets in large documents, without the need (or despite it) to separate content in section files, and then commenting the `\input` lines selectively. Anything like that within the `pdflatex` world?


title: How to redefine \hat{H} as \hat{\cal H}?

text: I would like to redefine `\hat{H}` as `\hat{\cal H}` only for this particular letter (for Hamiltonian symbol in physics). Thank you very much.


title: ! I can't find file `pgflibrarytikz*.code.tex'

text: I can compile the following LaTeX:               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{arrows,backgrounds,plotmarks}             \begin{document}     Lorem ipsum dolor sit amet, consectetur adipiscing elit.      \end{document}      However, the process fails if I include any of the following lines:               \usetikzlibrary{decorations.pathmorphing}     \usetikzlibrary{positioning}     \usetikzlibrary{fit}          \usepackage{pgfplots}      The log file begins with:               LOG FILE :     This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=pdflatex 2011.1.14)       The same error occurs with a newer "format=pdflatex":               LOG FILE :     This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=pdflatex 2012.3.8)      The respective errors are:               ! I can't find file `pgflibrarytikzdecorations.pathmorphing.code.tex'.     ! I can't find file `pgflibrarytikzpositioning.code.tex'.     ! I can't find file `pgflibrarytikzfit.code.tex'.          ! I can't find file `pgfplots.code.tex'.      What could be the problem? Is there a way to "install" these tikz options? * * * Edit: When I follow the "\listfiles" suggestion in the first comment, these are the most relevant lines:               tikz.sty 2006/10/17 v1.10 (rcs-revision 1.68)     pgf.sty 2006/10/11 v1.10 (rcs-revision 1.7)      So, it seems I should update these packages.


title: What is the advantage of using \@testopt?

text: I discovered recently `\@testopt` in this question. I tried to understand the goal with the use of this macro, but in my research I discovered other macros like `\@protected@testopt` and even new packages like `exp-testopt`. Actually, I develop only with TeX and LaTeX2e, what do you think of this macro? What is the most reliable method?


title: derivative with respect to a vector

text: \[     \frac{\partial f}          {\partial     \left(     \begin{array}{l}     x \\     y \\     z     \end{array}     \right)     }     \]      gives ![enter image description here](http://i.stack.imgur.com/4VblB.png) Can you help me to improve this by reducing the size of the denominator?


title: ToC: controlling spacing between major headings and subheadings

text: So I am attempting to begin early on my thesis, and I am running into some strange TeX problems. I am using 12pt font - important for the spacing commands below. When formatting the ToC we are required to allow double spacing between each major heading (like chapters) but constrain the subheadings within each major heading to single spacing. This results in the following ToC scheme:                   Chapter xxx              Chapter xxx                Section xxx           Section xxx             Subsection xxx              Chapter xxx                Section xxx           Section xxx              Chapter xxx      Is there a nice way to produce this style of output? So far the closest I have come is by playing with settings in tocloft. This code comes close but it is not quite what I want:                   \setlength\cftbeforechapskip{0pt}         \setlength\cftbeforesecskip{-6pt}         \setlength\cftbeforesubsecskip{-6pt}              \renewcommand{\cftchapafterpnum}{\vskip 12pt}         \renewcommand{\cftsecafterpnum}{\vskip 6pt}         \renewcommand{\cftsubsecafterpnum}{\vskip 6pt}      As you can see it will only produce a half space separation between the major headings and the block of subheadings with a full space between each major heading. Any suggestion would be greatly appreciated! Thanks!


title: Using active characters to swap fonts?

text: I should probably say in advance that this question is inspired by sheer bloody-mindedness, and also apologize in advance if it's unanswerable or just silly. I've gotten it into my head that when I type `NO`, XeLaTeX should replace it with the character №. Which was easy enough to accomplish: I just duplicated the `tex-text` mapping and added a ligature.               LHSName "Numero"     RHSName "UNICODE"          pass(Unicode)          ; establish numero ligature     U+004E U+004F   > U+2116 ; NO          ; ligatures from Knuth's original CMR fonts          [...]      Having done this, however, I discovered that my favorite font doesn't include the numero character. So in order to make this work, I'd need to swap the font each time I typed `NO`. Aside from doing it by hand, the only solution I could come up with was to make the Unicode numero active, and define it like this:               \catcode`\№=\active     \def №{{\fontspec[Mapping=numero]{Mshtakan}NO}}      Which works fine, and isn't the worst solution. It just calls for more inconvenient copying and pasting than I'd ideally like to engage in, defeating the purpose of the ligature definition. I guess that in a perfect world, I'd be able to cut out the font-map change and define the sequence "NO" as active, then do something like this:               \catcode`\NO=\active     \def NO{{\fontspec{Mshtakan}\char"2116}}      But if there's documentation on activating two sequential characters extant then some pretty aggressive Googling hasn't turned it up. The only other solution that comes to mind is replacing a little-used but type-able character with the numero sign, but that seems sloppy. I'd be massively grateful for any suggestions. Though I suspect I'm either missing something embarrassingly obvious or trying to force TeX to do something it simply wasn't built for. **Edited to Add:**   After I posted this, I found a very similar question in these forums. It looks like another way to arbitrarily change the font for a single character is to adapt the answer there. Here's how it came out for me:               \XeTeXinterchartokenstate=1   % enable character classes     \newXeTeXintercharclass\CharNumero   % create a new class     \XeTeXcharclass `№ \CharNumero   % add № to the class          % Between any character of class 0 ["most characters are class 0 by default"] and \CharNumero change the font:     \XeTeXinterchartoks 0 \CharNumero = {\begingroup\fontspec{Mshtakan}}          % Between \CharNumero and any character end the group:     \XeTeXinterchartoks \CharNumero 0 = {\endgroup}          % Between a word boundary and \CharNumero change the font:     \XeTeXinterchartoks 255 \CharNumero = {\begingroup\fontspec{Mshtakan}}          % Between \CharNumero and a word boundary end the group:     \XeTeXinterchartoks \CharNumero 255 = {\endgroup}      Though I wound up using the answer given below, since I wanted `NO` to produce the symbol, this might be useful if ever someone is missing another character.


title: How to generate "You can't use \unskip in vertical mode"?

text: We all know (or believe so) that `\unskip` is not possible in main vertical mode and this statement can be found in various answers on the site. And yes LaTeX does a lot of gymnastics in `\addvspace` or `\addpenalty` to deal with this problem. So I was a bit surprised when in The second column always appears lower than the first one in the multicol environment a simple workaround using `\unskip` worked. This was on the main vertical list! So looking into the TeX program itself, the condition is that the error will be triggered if the last item on the list is a glue item and this glue item has already been contributed to the current page. But when does this happen?               XXX     \par     \vskip 1cm      \vskip 5cm     \unskip\unskip     XXX     \bye      This works perfectly and according to the TeXbook there are only 5 cases when stuff gets moved from recent contributions to the current page (page 122): > Here is a list of the times when that can happen: (a) At the beginning or > end of a paragraph, provided that this paragraph is being contributed to the > main vertical list. (b) At the beginning or end of a displayed equation > within such a paragraph. (c) After completing an `\halign` in vertical mode. > (d) After contributing a box or penalty or insertion to the main vertical > list. (e) After an `\output` routine has ended. Unfortunately it is not quite accurate (probably there are some other places discussing this further that I have overlooked). For example, if you add an empty line after the `\vskip` in the example above, then it triggers the error even though that `\par` clearly doesn't trigger or ends any paragraph. I can imagine to create it from case (e), e.g., by making the output routine add a glue to the main vertical list, though I haven't tried that. Any other cases in which this could be triggered in reality?


title: Newline Not Working Inside \pbox After Using \selectfont Command

text: I have the following command defined for a custom row of a two-column `tabularx` table with column specifiers `rX`:               \newcommand{\pbrow}[2]{\pbox[t]{\linewidth}{#1} & \pbox[t]{\linewidth}{#2} \\}      The content of the left column will always be formatted using a typewriter font. Now, I need two different typewriter fonts in my document, the first of which, I've set as my default teletype font. For the second one, I've defined the following command:               \newcommand{\nkeyw}[1]{\begingroup \fontfamily{qcr}\selectfont #1\endgroup}      In the above table, I need the use of this 2nd typewriter font. Since the content of cells are typeset inside a `pbox`, I explicitly need to demarcate the end of line using a `\\\`. Therefore, my usage of the `pbrow` command is something like this:               \pbrow{\nkeyw{line 1} \\ \nkeyw{line 2} \\ .... \nkeyw{line n}}{Not concerned with 2nd arg}      Now this is a bit tiresome, so instead I thought of redefining `pbrow` to format the entire argument with `nkeyw` as follows:               \newcommand{\pbrow}[2]{\pbox[t]{\linewidth}{\nkeyw{#1}} & \pbox[t]{\linewidth}{#2} \\}      Unfortunately, I'm getting an error because of the `\\\`s


title: Migrate from Texniccenter to Texmaker

text: I want to "migrate" my Texniccenter Output Profile (Win7/64) to Texmaker (Mac). I installed TexMaker and the MacTex-2013 Distribution. Now, as there is no related question yet, (a) how do I duplicate the following output parameters in TexMaker?   * `PDFLatex`   * `Biber`   * Makeindex: (1.) `"%tm.idx" -t "%tm.ilg" -o "%tm.ind" -s personal.ist` and (2.) `"%tm".nlo -s nomencl.ist -o "%tm".nls` Furthermore, (b) is it possible to connect it to Skim for forward and reverse functionality? (c) The personal.ist I have backed ip, just don't know where to put it yet. (d) Is it possible to program it to make enough runs (3?) for a final output?


title: Underline subsections

text: I am able to make subsections italic and larger using the `titlesec` package, but there seems to be no working solution to make them underlined. Here is my current document:               \documentclass[11pt]{article}     \usepackage{titlesec}     \titleformat*{\subsection}{\normalfont\large\itshape}          \begin{document}     \section*{Materials and Methods}     \subsection*{Sampling}     Lorem ipsum     \end{document}      ![enter image description here](http://i.stack.imgur.com/v9lB4.png) I tried adding `\titlerule` but this just drew a large line above the subsection title:               \documentclass[11pt]{article}     \usepackage{titlesec}     \titleformat*{\subsection}{\normalfont\large\itshape\titlerule}          \begin{document}     \section*{Materials and Methods}     \subsection*{Sampling}     Lorem ipsum     \end{document}      ![enter image description here](http://i.stack.imgur.com/dvZis.png)


title: Environment with first paragraph in bold and no pagebreaks

text: I would like to setup a new environment which typesets the first paragraph in boldface, the following paragraphs in normal text, and with (possibly) no pagebreaks between the first paragraph and the remaining text. How can I do? For example, something like the following:               \begin{question_and_answer}     This is a question, which should be highlited in bold      (or by changing font, or by another method) and preceded by a progressive number.          This is the answer, in normal font.          The answer is composed by one or more paragraph. There shouldn't be a      pagebreak between the first paragraph and the second.     \end{question_and_answer}      Or maybe something like this:               \begin{question}     This is the question, as the previous example     \end{question}     % no pagebreak here     \begin{answer}     This is the answer, as the previous example     \end{answer}


title: Customize ModernCV

text: For my resume I'm using the great `moderncv`, but I'd like to customize it a little. For example I'd like to reduce the heigth of the blank space after the title. In moderncvstyleclassic.sty, I could change line 143 from               \usebox{\makecvtitlepicturebox}\\[2.5em]%      to               \usebox{\makecvtitlepicturebox}\\[0.5em]%      which does the job. How can I achive the same result without editing the `.sty` located on `/usr/local/texlive...`?


title: Styled TOC not compiling

text: Done Major Edit, to make the question clear. Removing the last chapter line works. But keeping it makes latex go crazy. It prints numbers till 65536.. and errors: ** ERROR ** Page number 65536l too large! MikTex, XeLatex, PdfLatex (endures a few more section, but then, the same error). Drilling down, I have found that the problem is because of mdframed, specially usetwoside option. The error also seems to be a result of the following warnings: http://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Underfull_hbox The log is here: http://pastebin.com/Qw58ajKF               \documentclass{book}     \usepackage{xcolor}     \usepackage{mdframed}     \usepackage{titletoc}     \usepackage{etoolbox}               \definecolor{secnum}{RGB}{13,151,225}     \definecolor{ptcbackground}{RGB}{212,237,252}     \definecolor{ptctitle}{RGB}{0,177,235}          \pretocmd{\tableofcontents}{\begin{mdframed}[backgroundcolor=ptcbackground,hidealllines=true]}{}{}     \apptocmd{\tableofcontents}{\end{mdframed}}{}{}     \patchcmd{\tableofcontents}{\contentsname}{\color{ptctitle}\contentsname}{}{}      \setcounter{tocdepth}{1}          \titlecontents{section}       [4em]{\sffamily}       {\color{secnum}\contentslabel{2.3em}\normalcolor}{}       {\titlerule*[1000pc]{.}\contentspage\\\hspace*{-3em}\vspace*{2pt}%         \color{white}\rule{\dimexpr\textwidth-20pt\relax}{1pt}}          \titlecontents{lsection}       [5.8em]{\sffamily}       {\color{secnum}\contentslabel{2.3em}\normalcolor}{}       {\titlerule*[1000pc]{.}\contentspage\\\hspace*{-5.8em}\vspace*{2pt}%         \color{white}\rule{\dimexpr\textwidth-15.5pt\relax}{1pt}}          \makeatletter     \renewcommand*\l@chapter[2]{%       \ifnum \c@tocdepth >\m@ne         \addpenalty{-\@highpenalty}%         \vskip 1.0em \@plus\p@         \setlength\@tempdima{1.5em}%         \begingroup           \parindent \z@ \rightskip \@pnumwidth           \parfillskip -\@pnumwidth           \leavevmode           \advance\leftskip\@tempdima           \hskip -\leftskip           \colorbox{ptctitle}{\strut%             \makebox[\dimexpr\textwidth-2\fboxsep-7pt\relax][l]{%               \color{white}\bfseries\sffamily#1%               \nobreak\hfill\nobreak\hb@xt@\@pnumwidth{\hss #2}}}\par\smallskip           \penalty\@highpenalty         \endgroup       \fi}     \makeatother     \newcommand\PartialToC{%     \startcontents[chapters]%     \begin{mdframed}[backgroundcolor=ptcbackground,hidealllines=true]     \printcontents[chapters]{l}{1}{\colorbox{ptctitle}{%       \parbox[t]{\dimexpr\textwidth-2\fboxsep\relax}{%         \strut\color{white}\bfseries\sffamily\makebox[5em]{%           Chapter~\thechapter\hfill}Contents}}\vskip5pt}     \end{mdframed}%     }          \begin{document}          \tableofcontents          \chapter{Chapter One}     \PartialToC     \section{Section One One}     \section{Section One Two}     \section{Section One Three}     \section{Section One Four}          \stopcontents[chapters]     \chapter{Chapter Two}     \PartialToC     \section{Section Two One}     \section{Section Two Two}     \section{Section Two Three}          \stopcontents[chapters]     \chapter{Chapter Three}     \PartialToC     \section{Section Three One}     \section{Section Three Two}     \section{Section Three Three}     \section{Section Three Four}     \section{Section Three Five}     \stopcontents[chapters]          \chapter{Chapter Three}          \end{document}


title: Listing: Syntax highlighting for SPARQL query?

text: I use the following listing to show a SPARQL query:               \begin{lstlisting}[captionpos=b, caption=SPARQL query, label=lst:sparql]     PREFIX java: <http://evolizer.org/ontologies/seon/2009/06/java.owl#>     PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>     PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>     SELECT ?url ?name     WHERE {        ?url rdf:type java:Package .        ?url rdfs:label ?name     }      But now I don't know which language tag I should set, since SPARQL is not built-in. I also tried to define my own highlighting, but I couldn't achieve a good result. Is there any macro available for highlighting SPARQL queries?


title: Updating TeX on Linux

text: I am trying to use the `algorithm`, `algorithmicx`, and `caption` environment. In the log file I have               Release 2.5 -- March 13 1995 --      and I have compiling errors which other people don't have. So I would like to update the distribution, and the packages. On Linux, how do I do this? From the synaptic package manager I cannot find a suitable listing.


title: What is the best Math Font for use with Minion Pro font?

text: I have began using the Minion Pro series of fonts and compiling with XeLaTeX. However, despite the typeface changing, I still have the same CM Modern Math fonts. Do any of you have a good suggestion for a good math font that works with Minion Pro? I have used `\usepackage{mathastext}` and the italic varient `\usepackage[italic]{mathastext}` but the 'f' in math mode is very awkward and too close to the parethesis. The code that produces this effects is:               \documentclass[]{article}     \usepackage{fontspec}     \defaultfontfeatures{Mapping=tex}     \setmainfont{Minion Pro}     \usepackage[italic]{mathastext}          \begin{document}     This is the standard Minion Pro Font\ldots My issue is with the 'f' in italic math mode. It needs more space. For example:          \begin{equation}     f(x) = x^2 + f(n-1)      \end{equation}          \end{document}      Is there a better option than `\usepackage{mathastext}`? or is there a way to adjust this minor issue? I have never been able to get `\usepackage{MnSymbol}` working (I keep getting a Command `\mathdollar` already defined error) and Minion Math is well... pricy.


title: How to remove the horizontal line below the image in the header

text: To add image in the header , I have written the code, basically the pagestyle modification. Now , just for a trial , I first modified only my `plain` page style. After the image gets inserted in the header , I get a horizontal line, How do I remove it? Here is the MWE:               \documentclass[12pt]{book}     \usepackage{lipsum}     \usepackage{wallpaper}       \usepackage{fancyhdr}          \fancypagestyle{plain}{      \fancyhf{}      \fancyhead[C]{\includegraphics[scale=.25]{example-image-a}}     }          \begin{document}     \chapter{A Chapter}     \lipsum[4]     \section{blah blah blah}     \end{document}


title: SAS output through verbatim in beamer

text: I've tough time to manage SAS output through verbatim in beamer. Could someone help in this regard. Thanks in advance.


title: Defining environment in TeXworks

text: I have an environment defined in a file `env.sty` as well as the file `task.tex` which is based on that environment. How can I get `TeXworks` to read set the environment defined in a file, so that it is visible to `task.tex`? `TeXworks` fails when rendering `task.tex` into PDF with `pdfTeX` with error `! LaTeX Error: Environment task undefined.` which means that it can't find user-defined environment in file `task.tex`.


title: Adding coordinates to grid in tikz

text: Is there a simple way to add coordinate (left and bottom) to the grid in tikz?


title: Figure next to list (caption problems)

text: I am trying to put a figure next to a list, where the list is talking about the figure. This is fine, I can do that with the minipage environment. However, my problem is that when I try to put a caption on the figure, it captions the entire "figure" containing the minipages, not just the picture itself. I have included an example of what I have done. I have searched around on the internet but haven't been able to work out a solution. I have tried using subfigures, wrapping text, floatinf figure, etc. None of these have worked, often giving an output with the figure in the wrong place. Any thoughts on how to fix this? Here is my document so far:               \documentclass[twoside,a4paper]{report}     \usepackage[ignorefoot, ignoremp, ignorehead]{geometry}     \usepackage{fancyhdr}     \usepackage{amsmath,amsthm,amssymb}     \usepackage{graphicx}     \usepackage{lipsum}     \usepackage{eepic}     \usepackage{mhchem}     \usepackage{chemstyle}     \usepackage{color}     \usepackage{./Scripts/simplemargins}     \usepackage{array}     \usepackage{multirow}     \usepackage{bigstrut}     \usepackage{wrapfig}     \usepackage{paralist}     \usepackage{enumitem}     \usepackage{cite}     \usepackage{graphicx}     \usepackage{titlesec}     \usepackage{booktabs}     \usepackage{subfig}     \usepackage{hyperref}          \begin{document}          \begin{figure}[ht]         \begin{minipage}[b]{0.48\linewidth}             \begin{itemize} [ ] % To get list without points                 \item{Blah blah blah                     \begin{enumerate}                         \item{Text}                         \item{Text}                     \end{enumerate}                 }                 \item{More blah blah blah                     \begin{enumerate}                         \item{Text}                         \item{Text}                     \end{enumerate}                 }             \end{itemize}         \end{minipage}         \hfill         \begin{minipage}[b]{0.48\linewidth}             \centering             \includegraphics[scale=0.2]{caption_example.pdf}             \caption{default}             \label{fig:label}         \end{minipage}     \end{figure}          \end{document}      Example output


title: When is it safe to type less and drop curly braces in math mode

text: I'm using tex a lot more now, and I'd like to get more efficient by typing less. I've partly been inspired by editing mathjax posts and seeing people write things like `\frac12`. However I've also had some unexpected errors. For example, writing `\eta_\max` gives me the dreaded `TeX has become confused` error, which is a nightmare to debug in a long piece of maths. But I can get away with `\eta_\mathrm{max}`, if I was willing to use `\mathrm` incorrectly. And in general there's no need for curly braces with symbols like `\infty` in expressions like `\int_{-\infty}^\infty`. So my question is, when can I get away with dropping the braces and when can I not? And what's the reason I get the error with `\eta_\max`?


title: Force DOI on a newline in reference list

text: I'm using `biblatex` for my citations (using `xelatex`). This is the relevant code to invoke the reference list:               \usepackage[backend=biber, style=authoryear, doi=true, firstinits=true, maxbibnames=99]{biblatex}      My reference list looks like this: ![enter image description here](http://i.stack.imgur.com/Uc5Nk.png) Now, I would like the DOI to _always_ drop to the next line. I've read some questions that also refer to the URL, but I do not mind the URL. It's only the DOI I care for, which I want to permanently force on a newline. I've tried this:               \DeclareFieldFormat{formatdoi}{\newline #1}      As a shot in the dark from something I saw related to the URL, but this does not work. I see some fairly large and complex possible solutions, but I feel this should be possible in a one-liner (or something short, at least). Is there a way?


title: Dates not printing using BibLaTeX

text: I'm using `biblatex` to process the bibliography for my dissertation using APA. The problem is that dates are not being printed; the dates are being replaced by `a n.d.` and this is not correct because my `.bib` file has dates. This is my MWE:               \documentclass{article}     \usepackage{filecontents}     \begin{filecontents}{mwerefs.bib}          @MISC{MacLachlan2006,     author = {{MacLachlan}, Anne J.},     title = {Developing graduate students of color for the professoriate in Science,     Technology, Engineering and Mathematics {(STEM)}},     year = {2006},     owner = {Ricardo Gomez},     publisher = {University of California, Berkeley, Center for Studies in Higher     Education},     timestamp = {2013.04.27}     }     @TECHREPORT{George2001,     author = {George, Y. S. and Neale, D. S. and Horne, V. V. and Malcolm, S. M.},     title = {In pursuit of a diverse science, technology, engineering, and mathematics     workforce: Recommended research priorities to enhance participation     by underrepresented minorities},     institution = {American Society for Advancement of Science {(AAAS)}},     year = {2001},     address = {Washington, {DC}},     owner = {Ricardo Gomez},     timestamp = {2013.04.27},     url = {http://ehrweb.aaas.org/mge/ Reports/Report1/AGEP/AGEP_report.pdf}     }     @ARTICLE{Dubin2000,     author = {Dubin, Jon C.},     title = {Faculty diversity as a clinical legal education imperative},     journal = {Hastings Law Journal},     year = {2000},     volume = {51},     pages = {445--478},     number = {3},     owner = {Ricardo Gomez},     timestamp = {2013.04.27}     }     @ARTICLE{Alger1999,     author = {Alger, Jonathan},     title = {When Color-Blind is Color-Bland: Ensuring Faculty Diversity in Higher     Education},     journal = {Stanford Law and Policy Review},     year = {1999},     volume = {10},     pages = {191--204},     number = {2},     owner = {Ricardo Gomez},     timestamp = {2013.04.27}     }     @ARTICLE{Carrell2010,     author = {Carrell, Scott E. and Page, Marianne E. and West, James E.},     title = {Sex and Science: How Professor Gender Perpetuates the Gender Gap},     journal = {The Quarterly Journal of Economics},     year = {2010},     volume = {125},     pages = {1101--1144},     number = {3}     }     \end{filecontents}     \usepackage[american]{babel}     \usepackage{csquotes}     \usepackage[backend=biber, style=apa, doi=false]{biblatex}     \DeclareLanguageMapping{american}{american-apa}     %\usepackage[citestyle=authoryear]{biblatex}     \addbibresource{mwerefs.bib}          \begin{document}          Several policy mechanisms have been implemented to reduce social, ethnic, and gender disparities in STEM education, including scholarships or loans for promising students, and alternative admission policies. A more recent policy mechanism, however, seeks to develop a pool of suitable individuals from traditionally underrepresented groups in STEM who can become faculty and mentors. This approach---known as the Alliance for Graduate Education and the Professoriate (AGEP)---resonates with research and anecdotal evidence that suggests that faculty who share the same background as their students can serve as effective role models \parencite{Carrell2010} since they are in a better position to understand their needs, expectations, and challenges, and this, in turn, can translate to higher enrollment and retention rates, and better race relations on campus \parencite{Alger1999, Dubin2000, George2001, MacLachlan2006}.          \printbibliography          \end{document}


title: Hyperref and custom caption in float environment link wrong

text: I have a custom caption style. If i add a reference to a float the link points to the caption which is below the floats content, but it should point to the top. I probably forgot to set a ref line or something like this. The minimal Example is:               \documentclass[pdftex,a4paper, twoside]{scrreprt}     \usepackage{caption}     \usepackage{blindtext}     \usepackage[colorlinks=true,linkcolor=black]{hyperref}          \captionsetup{justification=raggedright,singlelinecheck=false}     % caption layout     \makeatletter     \let\x@caption\caption % original \caption     \def\x@@caption[#1]#2{\x@caption[{#1}]{\textbf{#1} \\#2}} % with optional arg     \def\x@@@caption#1{\x@caption[{#1}]{#1}} % without optional arg     \def\caption{\@ifnextchar[\x@@caption\x@@@caption} % new \caption     \makeatother          \begin{document}     \chapter{Chapter}     \blindtext     \begin{table}[h]       \begin{center}         \begin{tabular}{ r }           \hline           TABLE HERE \\           \hline         \end{tabular}         \caption[caption heading]{\blindtext}         \label{tab:table}       \end{center}     \end{table}     \blindtext     See Table \ref{tab:table}.     \end{document}      How could is set the link to the top of the float?


title: LaTeX delete newlines

text: I have this LaTeX code and it inserts a newline before and after the Arabic text. I want it intext, how so?               \documentclass[11pt,arabtex]{article}     \usepackage{conf}     \usepackage{times}     \usepackage{url}     \usepackage{latexsym}     \usepackage{arabtex}     \usepackage{utf8}          \title{maintitle}     \date{}          \begin{document}     \maketitle     \begin{abstract}     This is the abstract body. I want to insert Arabic here like      \setcode{utf8}     \begin{arabtext}     عربي     \end{arabtext}     \end{abstract}


title: Why do lower case mathcal letters show up as random symbols?

text: `amsfonts` doesn't have lowercase caligraphic letters, so when you do `$\mathcal{Hello World}$` you get some odd results. (Likewise for `\mathbb` I believe) Now, what surprises me is not that there aren't lowercase mathcal letters, but that given this, the document compiles at all! What is going on that means that `\mathcal{lowercase}` is interpreted as being a string of random symbols? It seems what letter gets turned in to what symbol is constant, so this isn't just random: there's a reason why this happens as it does. What is going on? Can some explain the details of what's happening beneath the surface that means that LaTeX interprets lowercase letters inside `\mathcal` as a variety of mathematical symbols? [I don't understand enough to work out what tags would be relevant here...]


title: Fill empty vertical space with a single diagonal line

text: I'm currently writing a document with the `book` class. At the end of every part, I have a box where I put my name and I can sign. This box fills the whole horizontal space but is only a couple of lines tall. I want to position this box at the end of the page, and I want the empty space that is left above it 'striked through' with a line or maybe crossed out with two lines. (This is a legally binding document so you don't want to leave any whitespace above your signature!)


title: siunitx not using kerning units correctly ahead of a sentence-ending dot (period, full stop)

text: If the unit is the final character in a sentence, the sentence-ending dot is not kerned correctly. **MWE** :               \documentclass{article}     \usepackage{siunitx}     \usepackage{mathpazo}          \begin{document}     \SI{}{\electronvolt}. And V.     \end{document}      The eV will have no kerning where the single V does. Can I tell siunitx/pdflatex to use kerning or do I have to apply kerning manually?


title: Nice citation search in emacs for csquotes quotation (like reftex's C-c [)

text: When using emacs+reftex-mode I may hit "`C-c [`" and get a nice citation search menu for `\cite` command. Is there a way to get the same menu for `csquotes`' integrated quotations (e.g. `\displaycquote`)?


title: How do I install mtpro2?

text: I have been unsuccessful in getting the `mtpro2` package to work. I am running WinEdt 7 and MiKTeX 2.9 in Windows 7. I'm about to give up on it, but I really want the `\widehat` feature to produce really wide hats (as per Really wide hat symbol) Does anyone have a guide for dummies? Perhaps a video on how to do this?


title: Make your own .sty files

text: Sorry to start a subjective question, but want to understand "own.sty" file. Other than all `\usepackage{}` what sort of other commands can be added to the makeyourown.sty file. Can you include `\let` command, and `\newcommands` in it. What sort of precaution / structure newbies should follow.


title: Is it Possible to Obtain Rudin-Style LaTeX Document Format?

text: I'm trying to obtain some format settings (or copyable code) for LaTeX documents. ![](http://i.stack.imgur.com/JAPCN.png) Above is a screenshot of Walter Rudin's Principles of Mathematical Analysis (a book I'm sure many people here have seen before). While I'm sure many people find the out-dated typeset rather ugly, I personally fell in love with it when I personally used this text as an undergraduate. Now that I am in graduate school, I am finding myself creating mathematical documents in LaTeX much more frequently, and I have been trying to emulate this style for some time now. I know that it is typeset in "Times Roman" (according to the publisher), but those are all the details. I have also noticed that there are other texts which have a similar look, yet are slightly different (for example, if you look at the other texts in Rudin's series, you'll notice slight changes, and this is probably a reflection of more modern type-set and changes to the font itself over the years). What particularly attracts me is the darkened font style (as if everything is bold, and what is bold is bold 2x). Here is an example of what I mean: ![](http://i.stack.imgur.com/xLkmf.jpg) This is taken out of Zygmund and Wheedon's text on measure and integration theory. The fonts are clearly quite similar, yet the ladder is "lighter" and not as "thick" as the former. Anyway, I realize getting a format identical to Rudin's is probably impossible, so I would of course be happy with something as close as possible to the text formatting in Rudin. Also, I know that it is off topic here, but I'm also interested in obtaining similar text formatting for my online blog, which has full HTML/CSS styling customization, so if somebody who is kind enough to help with the LaTeX happens to have a corresponding CSS design, that would be awesome!


title: How to change the order of algorithm number and name in algorithm2e?

text: I have to write an algorithm in Hungarian, where the caption must look like: > **1.3. Algoritmus:** caption of alg instead of the usual style > **Algorithm 1.3:** caption of alg. Until now I had no problem as the package `babel` was doing all the work, but changing from `algorithm`-`algorithmic` to the `algorithm2e` package, it fails. Anyone know the way to do so?


title: How to put image in table of contents?

text: My Question is similar to question which has not been answered. How can i put image in index page to improve look and feel. How to generate index page for report? ![enter image description here](http://i.stack.imgur.com/7b4Lz.png)


title: Forcing a table or image on a specified page

text: I would like to enforce a table on a page. I tried `\startpostponing[2]` but it doesn't seem to work and gives me an error:               Undefined control sequence \startpostponing      Is there any other way by which, I could force my table to occur on a particular page. P.S I also tried `\afterpage{}`, but it didn't work as well. Edit: My code:                       \documentclass[12pt,oneside, paper=a4,pagesize=pdftex, liststotoc, bibtotoc]{scrartcl}             %Einstellungen der Seitenrnder             \usepackage[left=3.0cm,right=3.0cm,top=3cm,bottom=3cm,includeheadfoot]{geometry}             \usepackage{graphicx}             %Umlaute ermglichen             \usepackage[latin1]{inputenc}             \usepackage{color}             %\usepackage[printonlyused]{acronym}             \usepackage{cite}             \usepackage{multirow}             \usepackage{booktabs}             \usepackage{setspace}             \usepackage{amssymb}             \usepackage{wrapfig}             \usepackage[tight,TABTOPCAP]{subfigure}             \usepackage{float}             \usepackage{epstopdf}             \definecolor{orange}{rgb}{1,0.5,0}             \usepackage[T1]{fontenc}             \usepackage{algorithmic}             \usepackage{amsmath}             %-------------------------------------------------------------------------              % macros - newly defined by htrsek             \newcommand{\todo}[1]{\textcolor{red}{\textbf{TODO: #1}}}             \newcommand{\comment}[2]{\textcolor{orange}{\textbf{\textit{\textless Comment (#1): #2\textgreater}}}}             \newcommand{\inprogress}[3]{\textcolor{blue}{\textbf{InProgress: #1}}}             \newcommand{\translate}[4]{\textcolor{green}{\textbf{(#1)}}}             \newcommand{\flexWARE}{\textsuperscript{flex}WARE }             \newcommand{\thedate}{\today}             %[BC] Using the listing package for source code embedding.             \usepackage{listings} \lstset{numbers=left, numberstyle=\tiny, numbersep=5pt} \lstset{language=Perl}                    %PDF Kram             \usepackage[%                 pdftitle={something},% Titel des PDF Dokuments.                 pdfauthor={someone},%Autor des PDF Dokuments.                 pdfsubject={something},%Thema des PDF Dokuments.                 pdfcreator={MiKTeX, LaTeX, hyperref, KOMA-Script},%Erzeuger des PDF Dokuments.                 pdfkeywords={project title},% auch fr PDF                  pdfpagemode=UseOutlines,% Inhaltsverzeichnis anzeigen beim                  %pdfdisplaydoctitle=true,%Dokumenttitel statt Dateiname                  pdflang=en%Sprache des Dokuments.             ]{hyperref}                  \definecolor{LinkColor}{rgb}{0,0,0.5}             \definecolor{hellgelb}{rgb}{1,1,0.8}             \definecolor{colKeys}{rgb}{0,0,1}             \definecolor{colIdentifier}{rgb}{0.4,0.4,0.4}             \definecolor{colComments}{rgb}{0,0.5,0}             \definecolor{colString}{rgb}{1,0,0}             \definecolor{blue}{rgb}{0,0,1}                  \hypersetup             {                 colorlinks=true,%        Aktivieren von farbigen Links im Dokument (keine Rahmen)                 linkcolor=LinkColor,%    Farbe festlegen.                 citecolor=LinkColor,%    Farbe festlegen.                 filecolor=LinkColor,%    Farbe festlegen.                 menucolor=LinkColor,%    Farbe festlegen.                 urlcolor=LinkColor,%     Farbe von URL's im Dokument.                 bookmarksnumbered=true%  Überschriftsnummerierung im PDF Inhalt anzeigen.             }             %Zeilenabstand 1.2             \linespread{1.2}             %Kopf- und Fusszeile             \usepackage{fancyhdr}             \pagestyle{fancy}             \fancyhf{}             %Kopfzeile links bzw. innen             \fancyhead[L]{\textsf{someone}}             %Kopfzeile rechts bzw. aussen             \fancyhead[R]{\textsf{\nouppercase{\leftmark}}}             %Linie oben             \renewcommand{\headrulewidth}{0.5pt}             %Fusszeile links bzw. innen             \fancyfoot[L]{\textsf{Something}}             %Fusszeile rechts bzw. aussen             \fancyfoot[R]{{\textsf{\pagemark}}}             %Linie unten             \renewcommand{\footrulewidth}{0.5pt}             \setlength{\parindent}{0pt}                  %Setup for listings.             \lstset{basicstyle=\small}             \lstset{language=C}                  \newtheorem{Def}{Definition}             \begin{document}             \thispagestyle{empty}                  \newpage             \pagenumbering{arabic}                  \thispagestyle{empty}             \mbox{}                  \newpage             \renewcommand{\thepage}{\roman{page}}             \section*{Affirmation}             \newpage             \section*{Abstract}                  \newpage                  \section*{Acknowledgements}                  \newpage                            \setcounter{tocdepth}{3}             \tableofcontents                       \newpage             \afterpage{     \clearpage     \begin{landscape}     \begin{table}[p!]     \begin{center}     \rowcolors{1}{thistle}{lightblue}      \begin{tabular}{ | p{4cm} | p{5cm} | p{5cm} | p{4.5cm} |}     \hline               My table               \hline      \end{tabular}     \end{center}     \end{table}     \end{landscape}     \clearpage          \clearpage     \begin{landscape}     \begin{table}[h]     \begin{center}     \rowcolors{1}{thistle}{lightblue}      \begin{tabular}{ | p{4cm} | p{5cm} | p{5cm} | p{4.5cm} |}     \hline     \hiderowcolors \textbf{Examples} & \textbf{How it works} & \textbf{Technologies} & \textbf{On the market} \\ \hline \showrowcolors          Table2           \\ \hline      \end{tabular}         \caption{Examples of IoT.}     \end{center}     \end{table}     \end{landscape}     \clearpage     }                            \end{document}


title: vim-LaTeX does not run bibTeX

text: I'm on a Windows 7 machine, using the most recent version of vim-LaTeX with gVim. With all of the defaults, using `\ll` to compile my document only runs LaTeX once, when it should run multiple times, including a bibtex run. I tried manually adding the line               let g:Tex_MultipleCompileFormats = 'dvi'      but it does not help. I get no errors from the original LaTeX run. What's strange is that this setup works fine for me on a different machine. I don't know what else to try.


title: Add source to figure caption

text: How can I add a source to a figure? I need to add `\ref`, `\cite` or just free text. Something like that:               \begin{figure} [ht]       \centering       \includegraphics[width=0.95\textwidth]{res/figure.pdf}         \caption{Caption}         \source{\ref{},\cite{} or free Text}       \label{fig:gliederung}     \end{figure}      Should give me: ![Result](http://i.stack.imgur.com/0ZnDr.png) The source shouldn't appear in `\listoffigures`.


title: Equation align two column to one column with page width

text: I was trying to format the following expression using `align`. However, I need it in two column. Of all the equations, one is a long expression and Hence I added `\rlap`. The problem is the lengthy expression is not adjusting to the page width. Could you please let me know the proper choice available?               \documentclass[]{article}     \usepackage{amsmath}     \begin{document}     \begin{align}       \eta_7~&=~\eta_2~f_0(\lambda)~-~\eta_1~g_0(\lambda)\nonumber&\eta_8~&=~\eta_1~f_0(\lambda)~+~\eta_2~g_0(\lambda)\nonumber\\       \eta_9~&=~\rlap{$pEL~a~-~\displaystyle\frac{\sigma_c~\lambda^2}{2}$}&\nonumber\\       \eta_{10}~&=~\rlap{$\sqrt{2}~\left\{4~l^2~\left[\eta_2~f_0(\lambda)~-~\eta_1~g_0(\lambda)\right]~-~\left[\lambda^2~-~a^2\right]~\left[\eta_1~f_0(\lambda)~+~\eta_2~g_0(\lambda)\right]\right\}-4~l~\lambda~\eta_6$}\nonumber     \end{align}          \begin{equation}     \eta_{10}~=~\sqrt{2}~\left\{4~l^2~\left[\eta_2~f_0(\lambda)~-~\eta1~g_0(\lambda)\right]~-~\left[\lambda^2~-~a^2\right]~\left[\eta1~f_0(\lambda)~+~\eta2~g_0(\lambda)\right]\right\}-4~l~\lambda~\eta_6\nonumber     \end{equation}     \end{document}      The equation I am having the problem is the last equation (i.e. `\eta_10`). The output from the `align` environment for `\eta_10` is not spreading to the whole page width. However, the output from the `equation` environment is spreading to the page width. Question: How to make the `\eta_10` equation to spread to the page width. Am I missing any commands?


title: Cleveref: AUCTeX and RefTeX set-up

text: How can I set up `cleveref` to work with AUCTeX and RefTeX? I have tried the advice on Emacs, RefTeX and Cleveref – can they work together? but it didn't work. Additionally, when I hit enter, `\ref{}` portion is always enclosed in `( )`. How can I get rid of `( )` enclosing the `ref{}`? I also checked out: AUCTeX – new commands recognized as such this post but all the information is relatively old so maybe there is a newer answer?


title: Circuitikz common

text: I'm learning Circuitikz to draw schematics in my reports. I'd like to use the symbol for common; however, it doesn't seem to be there. What are my options? ![Common symbol](http://i.stack.imgur.com/oUAYb.png) Thanks. Example of use:               \documentclass[10pt,a4paper,final]{report}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage[american,siunitx]{circuitikz}     \usepackage{siunitx}               \begin{document}          Test TikZ image:     \begin{figure}[htbp]     \begin{center}     \begin{circuitikz}[scale=2] \draw     (0,0)   to[V, l=\SI{10}{\milli\volt}, -*]                   (0,2)             to[R, l=\SI{1}{\kilo\ohm}, i=$i_{in}$, -*, n=r1]        (2,2)             to[C, l=\SI{10}{\micro\farad}]                      (2,0)     (2,2)   to[R, l=\SI{10}{\kilo\ohm}, v_=$U(x)$]              (4,2)             to[Tnpn, n=npn]                                     (4,0)     (2,3)   node[op amp] (opamp) {}     (opamp.+) -|                                                (0,2)          (0,0)   node[ground] {}     (2,0)   node[ground] {}     (4,0)   node[ground] {}     (r1) node[below=2mm] {A resistor!}     ;     \end{circuitikz}     \caption{Some circuit.}     \end{center}     \end{figure}          \end{document}      Changing `ground` to `sground` causes a compilation error.


title: Pgfplots axis, option to remove (or ignore) legends

text: Is there an option in `pgfplots` at the `axis` level or a setting of `legend style` option, that would effectively ignore the subsequent legend entries in the plot?               \documentclass{article} \usepackage{pgfplots}      \begin{document} \begin{tikzpicture}       \begin{axis}[legend style = {at={(1.03,-0.03)}},             %ignore legend %hypothetical option         ]         \addlegendentry{graph 1} %ignored         \addplot+[mark=none,fill=yellow,draw=none,forget plot] {0.1*x^2};         \addlegendentry{graph 2} %ignored         \addplot[mark=none,draw=red,line legend] {0.1*x^2};         \addlegendentry{graph 3} %ignored         \addplot[mark=none,draw=blue,line legend] {0.0*x^2};       \end{axis}     \end{tikzpicture} \end{document}      I have a large plot (many curves) and I want to remove all the legends at the same time, without modifying the code too much.


title: tikz parameterized circle node with t-lines inside within a tree diagram

text: I would like to draw a tree diagram consisting of circle nodes with three subparts divided by a t-line (see sample below). Instead of separating every tree node by hand I would like to only specify the style of the node accompanied by at least three parameters (the fields inside the circle node drawing). I already achieved the following by putting the following by putting this stackexchange circle node with t-lines example into a style:               \tikzset{%       sectors/.style n args={5}{%         circle,         draw,         minimum width=#4,         append after command={           \pgfextra{             \draw (\tikzlastnode.center) -- (\tikzlastnode.south) ;             \draw (\tikzlastnode.west)   -- (\tikzlastnode.east) ;             \path (\tikzlastnode.center) -- node[#5] {#1} (\tikzlastnode.north);               \path (\tikzlastnode.center) -- node[#5] {#2} (\tikzlastnode.south west);              \path (\tikzlastnode.center) -- node[#5] {#3} (\tikzlastnode.south east);           }         }       }     }      This works fine as long as there is only one root node. But as soon as I want to draw children nodes tikz fails to compile sayiong "Error: No shape named is known. [...]". So the following does not work.               \begin{tikzpicture}[]            \node[sectors={0}{1}{1}{1.5cm}{}]{}%         child{            node [sectors={1}{2}{3}{1.5cm}{font=\bfseries}]{}          };%     \end{tikzpicture}      I already noticed that there are problems with using tex macros within tree structures but I was not able to find a solution through the answers given there. I have not specified a simple tex-macro but a parameterized style. Maybe under the hood this works similar but I am not a pro when it comes to tikz and therefore was not able to adapt the solutions to this case. Any help would be appreciated. Here you see an outline of the tree structure I want to achieve: ![tree structure with circle nodes separated by t-lines](http://i.stack.imgur.com/jVeZF.png)


title: Clashing multirow with tikz

text: In order to get a diagonal line in a cell, I picked up a piece of code from Diagonal lines in table cell The code adapted to my situation works fine until I decide to use multirow. Here is the MWE.               \documentclass{article}          \usepackage{multirow}          \usepackage{tikz}     \newcommand\diag[4]{%       \multicolumn{1}{p{#2}|}{\hskip-\tabcolsep       $\vcenter{\begin{tikzpicture}[baseline=0,anchor=south west,inner sep=#1]       \path[use as bounding box] (0,0) rectangle (#2+2\tabcolsep,\baselineskip);       \node[minimum width={#2+2\tabcolsep},minimum height=\baselineskip+\extrarowheight] (box) {};       \draw (box.north west) -- (box.south east);       \node[anchor=south west] at (box.south west) {#3};       \node[anchor=north east] at (box.north east) {#4};      \end{tikzpicture}}$\hskip-\tabcolsep}}          \begin{document}            \begin{tabular}[t]{|c|c|c|}         \hline         \multirow{2}{*}{\diag{.1em}{.5cm}{$a$}{$i$}}&\multicolumn{2}{c|}{A}\\\cline{2-2}         &1\\       \end{tabular}               \end{document}      This produces an error message,                ! Misplaced \omit. \multispan ->\omit                          \@multispan  l.20 ...ultirow{2}{*}{\diag{.1em}{.5cm}{$a$}{$i$}}                                                        &\multicolumn{2}{c|}{A}\\\...      If I omit the `\multirow` part this works fine.


title: Linebreaks in MetaUML

text: I'm trying to draw an UML diagram with MetaUML for my LaTeX document. Unfortunatly I'm a little bit dissatisfied with the layout because functions with a long signature (i.e. many parameters) become quite long lines and therefore overly broaden the drawn box of the class in which they are in, so I want to make MetaUML split up those long lines. Is there a way to get a linebreak into attributes of a MetaUML `class` object? The handbook does not say anything about it. I need to incorporate my method signatures, but without linebreaks they would make my classes way to wide for readable diagram. A short example ( _note_ : the LaTeX builder has to be run with `-shell-escape` option):               \documentclass{article}     \usepackage[shellescape]{gmp}     \begin{document}     \begin{mpost}[mpsettings={input metauml;},use]          Class.Config("Config")     ("-key1:char*","-value1:char*","-key2:char*","-value2:char*","-key3:char*","-value3:char*","-key4:char*","-value4:char*","-key5:char*","-value5:char*")     ("+setValues(key1:char*,value1:char*, key2:char*,value2:char*, key3:char*,value3:char*,key4:char*,value4:char*,key5:char*,value5:char*)");     drawObjects(Config);          \end{mpost}     \end{document}      Doing so, the line for function `setvalues()` becomes pretty long and, thus, the drawing of the class in the diagram becomes overly wide. I want to put something like a `\newline` or `\\\` in between key3 and value3 in order for the function being distributed over two lines and the drawing becomes a little more compact. While this is, semantically speaking, of course not a sensible example, I think it's getting my point across: I basically want to split overlong lines in classes of the UML diagram.


title: Repeated pgfplotstable calls causing errors

text: I've been working with `pgplotstable` for some time now and initially I was reading in data from `.csv` files. I'm writing a couple of packages that print tables and so I've written various `\def`s to encapsulate some table printing routines. So far so good. Now I want to produce tables from scratch and all of a sudden I'm getting errors. If you run the MWE it prints a table. If you uncomment the last call the following error text is produced               ./Repeated Plots.tex:23: Package pgfplots Error: \pgfplotslistfront\ from     \pgfplotstable@colnames\ although list is EMPTY.      I can do tables with the same definition over and over again when I'm reading them from file, but when creating them from scratch I get conflicts. **MWE**               \documentclass[border=6mm]{standalone}          \usepackage{pgfplotstable}     \usepackage{booktabs}          \pgfplotsset{compat=1.9}     %: table printing routine     \def\printtable#1{%     \pgfplotstableset{%         create on use/set/.style={create col/expr={1+\pgfplotstablerow}},         every head row/.style={before row=\toprule, after row=\midrule},         every last row/.style={after row=\bottomrule}     }     \pgfplotstablenew[columns={set}]{#1}\testtable     \pgfplotstablecreatecol[create col/assign/.code={%         \getthisrow{set}\tval\pgfmathtruncatemacro\entry{2*\tval-1}%         \pgfkeyslet{/pgfplots/table/create col/next content}\entry     }]{test}\testtable     \pgfplotstabletypeset[columns={test}]\testtable     }     \begin{document}     \printtable{10}\par     %\printtable{5}     \end{document}


title: how to count part in chapter

text: how to make table of content look like               Chapter 1         Part 1 Etude             1.1 introducion             1.2 Other title         Part 2  Something             1.3 title             1.4 title      Chapter 2      Thanks.


title: Clickable URL gets segmented by the new line?

text: In my reference, I have a clickable link. It is cut into two lines automatically. Problem comes when I click it. When I click it, the part in the 2nd line is not included. I am directed to the non-sense `http://www` **How can I fix it?** ![enter image description here](http://i.stack.imgur.com/1zGKv.png)


title: XeLaTeX resume coffin error

text: I am trying to compile a resume template using XeLaTeX. I am getting the following error: LaTeX code:               \documentclass[a4paper,10pt]{article}     \usepackage{marvosym}     \usepackage{fontspec}                \usepackage{xunicode,xltxtra,url,parskip}      \RequirePackage{color,graphicx}     \usepackage[usenames,dvipsnames]{xcolor}     \begin{document}     \pagestyle{empty} % non-numbered pages     \par{\centering             {\Huge \textsc{Vinu V. Namboodiri}         }\bigskip\par}     \section{Work Experience}     Some text here     \end{document}      The error that I am posting in the ERROR section disappears if I comment the following three lines in the code               %\usepackage{fontspec}                  %for loading fonts     %\usepackage{xunicode,xltxtra,url,parskip}  %other packages for formatting     %\RequirePackage{color,graphicx}      ERROR:               Command Line:   xelatex.exe --interaction=errorstopmode --synctex=-1 "vinu2.tex"     Startup Folder: F:\Vinu\Resume          This is XeTeX, Version 3.1415926-2.4-0.9998 (MiKTeX 2.9)     entering extended mode     (F:\Vinu\Resume\vinu2.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,      croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat     vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm     an, ngerman-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese,      romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis     sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u     senglishmax, welsh, loaded.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size11.clo"))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\marvosym\marvosym.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontspec\fontspec.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\expl3.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3names.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3bootstrap.sty"))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\misc\etex.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3basics.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3expan.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3tl.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3seq.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3int.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3quark.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3prg.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3clist.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3token.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3prop.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3msg.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3file.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3skip.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3keys.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3fp.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3box.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3experimental\xcoffins\l3coffins     .sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")     ("C:\Program Files (x86)\MiKTeX 2.9\tex\xelatex\xetex-def\xetex.def")))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\xcolor\xcolor.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\color.cfg"))          ! Undefined control sequence.     <argument> l_coffin_corners_\int_value:w                                               \c_empty_coffin _prop     l.188 \coffin_new:N \c_empty_coffin      I have updated `l3kernel`, `l3packages`, etc., but no luck!


title: Table column align on decimal

text: Jeff Dean published this famous table of "numbers every software developer should know". I'm struggling to format it properly for a publication that is written in LaTeX. As you can see, the left column is easy. It is left justified. The right column needs to be aligned on the word "ns" with an occasional note after it. Also the first line has a decimal, while the other numbers are integers. Here's my best attempt so far:               \begin{tabular}{ | l | r  |}     \hline     L1 cache reference                  &            0.5 ns       \\     Branch mispredict                   &            5 ns         \\     L2 cache reference                  &            7 ns         \\     Mutex lock/unlock                   &          100 ns (25)    \\     Main memory reference               &          100 ns         \\     Compress 1K bytes with Zippy        &       10,000 ns (3,000) \\     Send 2K bytes over 1 Gbps network   &       20,000 ns         \\     Read 1 MB sequentially from memory  &      250,000 ns         \\     Round trip within same datacenter   &      500,000 ns         \\     Disk seek                           &   10,000,000 ns         \\     Read 1 MB sequentially from network &   10,000,000 ns         \\     Read 1 MB sequentially from disk    &   30,000,000 ns (20,000,000) \\     Send packet CA to Netherlands to CA & 150,000,000 ns \\     \hline     \end{tabular}      My biggest concern is how to align the "ns". I'm less concerned with the 0.5 being formatted decimal aligned.


title: Biblatex + Xetex + memoir in Urdu: how to modify headings

text: Although a Newbie, I have been using XeteX, bidi and BiblateX with great success in Urdu. I have alphabetical footnotes with most of the secondary sources in the endnotes. The endnotes and bibliography are in English, whereas the rest is in Urdu. Modifying headers and footers works great as well. However, I would like to get rid of the Chapter Heading including the number above the Urdu title نوٹس. And I would like to center the subheadings. Modifying with enoteheadings doesn't seem to do the trick (problem with memoir + XeteX? Same with \titlesec. Could there be a compatibility issue between memoir and \endnotes resp. \titlesec? Any ideas? My minimal example:               % !TEX TS-program = xelatex     \TeXXeTstate=1          \documentclass[12pt,a4paper]{memoir}      \usepackage[a5paper, left=.915in,right=.915in,top=1.651cm,bottom=1.524cm]   {geometry}          \usepackage{fontspec}% font selecting commands     \usepackage{xunicode}% unicode character macros     \usepackage{wrapfig}     \usepackage[footnotesize,justification=centering]{caption}     \usepackage{float}     \usepackage{framed}     \usepackage{libertine}          \usepackage{bidi}     \usepackage{perpage}      \defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text}     \setmainfont[Script=Arabic,Scale=1.3, WordSpace=1]{Jameel Noori Nastaleeq}     \newfontfamily\latin[Ligatures=TeX]{Linux Libertine O}     \newfontfamily\greek[Script=Greek]{Linux Libertine O}          \rightfootnoterule     \usepackage[perpage,bottom]{footmisc}     \usepackage{csquotes}          \pretitle{\begin{center}\LARGE}     \posttitle{\par\end{center}\vskip 6em}          %%% ToC (table of contents)APPEARANCE     \maxtocdepth{subsection} % include subsections     \renewcommand{\cftchapterpagefont}{}     \renewcommand{\cftchapterfont}{}     % no bold!     \renewcommand*{\contentsname}{فہرست ِ مضامین}          \chapterstyle{ger}           \renewcommand*{\chaptername}{باب}          \renewcommand{\thepart}{}     \renewcommand{\printpartname}{}          \let\origfootnote\footnote     \renewcommand{\footnote}[1]{\kern-.2em\origfootnote{#1}}     \renewcommand*{\thefootnote}{\alph{footnote}}          \makepagenote     \renewcommand*{\pagenotesubhead}[3]{\section*{#2  #1}}          \renewcommand*{\notesname}{نوٹس}          \renewcommand*{\notenuminnotes}[1]{\latin #1.\space}     \renewcommand*{\prenoteinnotes}{\par\noindent\hangindent 2em}          \usepackage[backend=biber,autocite=footnote,sortcites=true,   style=authortitle-icomp,block=space,notetype=endonly,firstinits=true,language=british]{biblatex}     \addbibresource{bibliography.bib}               \title     {کتاب\\     {وغیرہ}}     \author{خان}          \begin{document}     \setRL     \maketitle     \newpage     \tableofcontents*     \newpage     \chapter     آپ ایمان کی دوڑ میں اچھی ترقی کر رہے تھے! تو پھر کس نے آپ کو سچائی کی پیروی کرنے سے روک لیا؟      \footnote{گلتیوں 5:\! 7}          زہر کے پیالے کو ہونٹوں تک اُٹھا کر اُس نے بلاجھجک اور زندہ دلی سے زہر کو پی لیا۔ یہاں تک ہم جو ساتھ تھے زیادہ تر سنبھلے ہوئے تھے۔ لیکن جب دیکھا     \autocite[56--78]{Najim}     کہ وہ زہر کو پی کر تہہ تک پہنچ گیا ہے تو ہم اپنے آنسوؤں کو روک نہ سکے۔ میں بھی  اپنے آپ پر قابو نہ پا سکا بلکہ زار و قطار رونے لگا۔     \autocite[33--34]{Murray1974}          %%print endnote     \newpage     \setLR{\printpagenotes*}     %%print endnote          \newpage     \printbibliography%[heading=bibliography]%     \end{document}      The bibliography.bib file linked to this:                  @ARTICLE{Murray1974,       author = {Robert Murray},       title = {The Exhortation to Candidates for Ascetical Vows at Baptism in the Ancient Syrian Church},       journal = {New Testament Studies},       year = {1974–75},       volume = {21},       pages = {58–79},       timestamp = {2013.03.13}     }          @BOOK{Najim,       title = {Antioch and Syrian Christianity},       author = {Najim, Michel},       editor = {Frazer, Terry},       subtitle = {A Chalcedonian Perspective on a Spiritual Heritage},       timestamp = {2011.08.29},       url = {www.stnicholasla.com/frmichel/antiochandsyriacchristianity.pdf},       urldate = {2011-08-31}     }      The font Jameel Noori Nastaleeq is found here http://urdu.ca/1 (Other Operating Systems). ![endnotes image](http://i.stack.imgur.com/Px1lR.jpg)


title: \edef containing utf8 umlaut characters

text: Is it somehow possible to have utf8 characters (e.g. german umlauts) inside `\edef` ? The following example document behaves fine if the umlaut is given directly as argument like `\convertTest{Müller}`. The resulting output is "Mueller" after conversion. If "Müller" is given via a `\edef` like in `\convertTest{\authorname}`, the resulting output is not as expected ("M.ller"), although the message on `\newcommand` entry (before convert) is the same.               \documentclass{article}          \usepackage[ngerman]{babel}           \usepackage[utf8]{inputenc}       \usepackage[T1]{fontenc}       \usepackage{stringstrings}               \newcommand{\convertTest}[1]{       \message {before convert: #1}       \convertword[q]{#1}{}{ue}       \message {after convert: \thestring}       \thestring \      }          \begin{document}       \convertTest{Müller}       \edef\authorname{Müller}     \convertTest{\authorname}       \end{document}


title: IEEEtran, longtable, switch to one column mode for the appendix

text: I've this very long table to put in the appendix of a 2 column, IEEEtran conference paper. I'm trying to use longtable, but apparently longtable has to be used in one column mode only. Is there a way to switch to one column for the appendix only? Thanks               \documentclass[10pt,letterpaper,conference]{IEEEtran}     \usepackage[cmex10]{amsmath}     \interdisplaylinepenalty=2500     \usepackage{graphicx}     \usepackage{longtable}          \begin{document}     blah...          \appendix          \begin{longtable}[t]     blah...     \end{longtable}          \end{document


title: Detecting catcode in parameter text

text: Say someone has defined               \documentclass{minimal}     \begin{document}          \def\fooA#1@{}     \makeatletter     \def\fooB#1@{}          \end{document}      It is easy to test and see that the two are different: `\ifx\fooA\fooB...\else...\fi`. But if we are given one of `\fooA` and `\fooB` and we have not seen the definition before, can we tell what the catcode of the `@` delimiting the parameter is? Disclaimer: I am interested in the answer out of sheer curiosity. EDIT: basically, is there a version of `\meaning` which keeps catcodes? or is there a way to show the catcodes of tokens in the parameter text? --- The answer, below, is "no".


title: Searching for a font with special ampersand

text: I want to use a special ampersand in a document. I’m therefore looking for, and failing to find, a font that contains an ampersand that looks as follows: ![specimen](http://i.stack.imgur.com/OXb6F.png) (That is, a slashed, rounded “E” letter.) (For the record, this is the “Chalkduster” font, and it’s too casual for my use; I’m not searching for a script typeface.) I distinctly remember having seen a sans serif typeface that featured such an ampersand but I am unable to find it again. For the record, Detexify doesn’t turn up anything either. Either of two things would help me:   1. Can somebody identify a commonly-available or freely available typeface that includes such an ampersand?   2. Does anybody know how I could “draw” this character using LaTeX, in a way that would make it usable as a character? (This is also an experiment: is such a question on-topic enough for the site? Feel free to state your opinion in the comments, and vote to close if you’re so inclined.)


title: Two pictures in one background

text: I have a document that has only one page(in pdf). How can I to have a background as watermark with two(or multiple) pictures on this page(as a watermark)?


title: TikZ: Text alignment and line breaking

text: I have some troubles with text alignment along path in tikz. I made custom shape and wrote text along path inside it in the following way:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{decorations.text}     \begin{document}     \begin{tikzpicture}          % shape     \draw (70:3) arc (70:110:3)        -- (110:5)  arc (110:70:5)        -- cycle;          \path[       postaction={         decorate,         decoration={           text along path,           text align = center,           text={Gershon Daly Bonifacy Yaw}         }       }     ]     (105:4.5) arc (105:75:4.5)     (105:4.0) arc (105:75:4.0)     (105:3.5) arc (105:75:3.5);          \end{tikzpicture}     \end{document}      Result is pretty fine, but there are small issues. This is output **without** central alignment: ![without alignment](http://i.stack.imgur.com/OSKtr.jpg) and this is **with** central alignment: ![with alignment](http://i.stack.imgur.com/FuAuA.jpg) My issue is that I want a correct line breaking (don't break lines in the middle of the word) and alignment relative to the center line of the shape, not the path. I know that when rendering text along path every letter is wrapping in different `\hbox` and turn to the correct degree separately. Any suggestions? **UPDATE:** In this answer path is decorated only in case if text fits the path. May be there are similar approach to decorate path only with fitted text and left rest of the text to the other paths? **UPDATE 2:** I can hide text if the text don't fit path redefining left indent state as stated in mentioned answer above:               \makeatletter       \pgfkeys{         /pgf/decoration/omit long text/.code={%           \expandafter\def\csname pgf@decorate@@text along path@left indent@options\expandafter\expandafter\expandafter\endcsname\expandafter\expandafter\expandafter{\csname pgf@decorate@@text along path@left indent@options\endcsname,switch if less than=\pgf@lib@dec@text@width to final}%         },       }     \makeatother      My idea is to not only skip typesetting text (switch to final state), but also set some flag that mean that text is not typeset, so I can decrease text length and call decoration again.


title: Writing accent grave in università

text: i'm attempting to write Università but unsuccessfully. I have tried this one:                                      \centerline{\textbf{Universit\grave{a} degli studi di Roma}}      Please can you help me to write correctly `\grave{a}` because it is not running at all on my pdf. Latex does not read it.


title: biblatex: Enhancing \autocite in case of would-be nested footnotes

text: > **This question led to a new feature in a package:**   >  `biblatex` `biblatex` provides high-level citation commands like `\autocite` that allow "global switching from inline citations to citations given in footnotes (or as superscripts)" (manual, p. 81). `\autocite` and `\textcite` (the command for use in the flow of text) form the two "standard" citation commands. So what if I use `\footnote` to write an explanatory note and need to cite a source? With author-year styles, `\autocite` will be mapped to `\parencite` which (naturally) also works in footnotes. On the other hand, with author- title styles (or if I explicitly declared `[autocite=footnote]` in the preamble), mapping to `\footcite` would produce nested footnotes, and these are not possible with standard LaTeX. In this case, the "sensible thing" would be to map `\autocite` to an alternative citation command admissible in footnotes (e.g. `\parencite`). Unfortunately, `biblatex` simply gobbles the out-of-place citation (and typesets spurious braces).               \documentclass{article}          \usepackage[%       style=authoryear,%       autocite=footnote,% Without this option, \autocite works in footnotes     ]{biblatex}          \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @misc{A01,       author = {Author, A.},       year = {2001},       title = {Alpha},     }     \end{filecontents}          \bibliography{\jobname}          \begin{document}          Some text \autocite{A01}.          Some text.\footnote{A footnote \autocite{A01}.}          Some text.\footnote{A footnote \parencite{A01}.}          \printbibliography          \end{document}      The obvious workaround is to use `\parencite` (or whatever low-level citation command is appropriate for the style) in footnotes. But this goes against the idea of high-level citation markup. Is it possible to enhance `\autocite` so that it will automatically switch to an alternative low-level citation command in case of would-be nested footnotes? UPDATE: I have submitted a feature request at SourceForge.net: biblatex.