title: Can't generate ligatures with LuaLaTeX under TeXLive 2014 when using certain fonts

text: Consider the following MWE:               % !TEX TS-program = lualatex     \documentclass{article}     \listfiles     \usepackage{fontspec}     \setmainfont[Ligatures={Common,Rare}]{Hoefler Text}     \begin{document}     ff fi fl ffi ffl fj ct st     \end{document}      When compiling this program on my system (MacOSX 10.9.2, MacTeX2013, luatex 0.76.0) under LuaLaTeX, I get the expected result, i.e., all ligatures are generated correctly: ![enter image description here](http://i.stack.imgur.com/nDEXi.png) However, if I switch to TeXLive2014 (currently in advanced beta), which employs luatex 0.79.1, no ligatures are created: ![enter image description here](http://i.stack.imgur.com/y3Ouc.png) This problem doesn't arise under TeXLive2014 if I (i) compile the MWE under XeLaTeX instead of LuaLaTeX or (ii) use a different font, say, `Adobe Garamond Pro`, `Garamond Premier Pro`, or `Latin Modern Roman`. (Of course, the latter font doesn't feature ligatures for fj, ct, and st, but ligatures _are_ generated for ff, fi, fl, ffi, and ffl.) Is there a setting that needs to be tweaked to enable ligatures when using `Hoefler Text`? For completeness, here are the files used by the LuaLaTeX/TeXLive2014 run:               LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4971)  (format=lualatex 2014.4.24)            *File List*      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)     fontspec.sty    2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX        expl3.sty    2014/01/07 v4646 L3 Experimental code bundle wrapper      l3names.sty    2014/01/04 v4640 L3 Namespace for primitives     l3bootstrap.sty    2014/01/04 v4640 L3 Experimental bootstrap code       luatex.sty    2010/03/09 v0.4 LuaTeX basic definition package (HO)     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)         etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)     luatex-loader.sty    2010/03/09 v0.4 Lua module loader (HO)     pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)      ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)        ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)     l3basics.sty    2014/01/04 v4642 L3 Basic definitions      l3expan.sty    2014/01/04 v4642 L3 Argument expansion         l3tl.sty    2013/12/27 v4625 L3 Token lists        l3seq.sty    2013/12/14 v4623 L3 Sequences and stacks        l3int.sty    2013/08/02 v4583 L3 Integers      l3quark.sty    2013/12/14 v4623 L3 Quarks        l3prg.sty    2014/01/04 v4642 L3 Control structures      l3clist.sty    2013/07/28 v4581 L3 Comma separated lists      l3token.sty    2013/08/25 v4587 L3 Experimental token manipulation       l3prop.sty    2013/12/14 v4623 L3 Property lists        l3msg.sty    2013/07/28 v4581 L3 Messages       l3file.sty    2013/10/13 v4596 L3 File and I/O operations       l3skip.sty    2013/07/28 v4581 L3 Dimensions and skips       l3keys.sty    2013/12/08 v4614 L3 Experimental key-value interfaces         l3fp.sty    2014/01/04 v4642 L3 Floating points        l3box.sty    2013/07/28 v4581 L3 Experimental boxes     l3coffins.sty    2013/12/14 v4624 L3 Coffin code layer      l3color.sty    2012/08/29 v4156 L3 Experimental color support     l3luatex.sty    2013/07/28 v4581 L3 Experimental LuaTeX-specific functions     l3candidates.sty    2014/01/06 v4643 L3 Experimental additions to l3kernel       xparse.sty    2013/12/31 v4634 L3 Experimental document command parser     luaotfload.sty    2014/02/05 v2.4-3 OpenType layout system     luatexbase.sty    2013/05/11 v0.6 Resource management for the LuaTeX macro progr     ammer     luatexbase-compat.sty    2011/05/24 v0.4 Compatibility tools for LuaTeX     luatexbase-modutils.sty    2013/05/11 v0.6 Module utilities for LuaTeX     luatexbase-loader.sty    2013/05/11 v0.6 Lua module loader for LuaTeX     luatexbase-regs.sty    2011/05/24 v0.4 Registers allocation for LuaTeX     luatexbase-attr.sty    2013/05/11 v0.6 Attributes allocation for LuaTeX     luatexbase-cctb.sty    2013/05/11 v0.6 Catcodetable allocation for LuaTeX     luatexbase-mcb.sty    2013/05/11 v0.6 Callback management for LuaTeX     fontspec-patches.sty    2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX          fixltx2e.sty    2006/09/13 v1.1m fixes to LaTeX     fontspec-luatex.sty    2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX      fontenc.sty       eu2enc.def    2010/05/27 v0.1h Experimental Unicode font encodings       eu2lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern     xunicode.sty    2011/09/09 v0.981 provides access to latin accents and many othe     r characters in Unicode lower plane      eu2lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)       keyval.sty    1999/03/16 v1.13 key=value parser (DPC)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)         trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live       pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX     fontspec.cfg        t3cmr.fd    2001/12/31 TIPA font definitions     supp-pdf.mkii     epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf       grfext.sty    2010/08/19 v1.1 Manage graphics extensions (HO)     kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)     kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)     kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)     etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live      ***********


title: Wind power and tikz force

text: I need a little symbol for a wind power (éolienne) but I'm not an artist ;-) If any Leonado da Vinci or Picasso here could improve my try, I will be very glad. ![enter image description here](http://i.stack.imgur.com/XRXHq.png)               \documentclass[tikz]{standalone}     \begin{document}     \begin{tikzpicture}         \filldraw (0,0)--(280:.7)--(260:.7)--cycle ;         \draw[very thick] (0,0)--(90:.4) ;         \draw[very thick] (0,0)--(210:.4) ;         \draw[very thick] (0,0)--(330:.4) ;     \end{tikzpicture}          \end{document}


title: Tikz: Reposition Legend (\node) next to Drawing (\draw)

text: I want to make the "Legend" appear on the right hand side of the drawing...Any suggestions? I tried playing around with the anchoring direction and slope to no avail.                \documentclass[tikz,border=10pt]{standalone}         \usepackage{amssymb}         \usetikzlibrary{positioning}         \begin{document}              \begin{center}           \begin{tikzpicture}             \foreach \x/\y/\z in {1/1/9,3.2/1/10,2/1.5/8,1.5/2/6, 2.5/2/7,1.2/2.5/2,2/2.5/4,3.1/2.5/5,2/3/1,2.9/2.9/3}{             \node[circle,fill,inner sep=1.5pt,outer sep=0pt,label={[xshift=-3pt,yshift=2pt,scale=0.7]-60:$\mathrm{P}_{\z}$}] (\z) at (\x,\y){};             }             \node[draw,rectangle,anchor=south west,minimum width=4cm,minimum height=4cm] (A) at (0,0) {};             \node[draw,rectangle,top color=white,bottom color=gray!60,anchor=south west,minimum width=4cm,minimum height=4cm] (B) at (1.3,5) {};             \draw (A.north west) -- (B.north west)                   (A.north east) -- (B.north east)                   (A.south west) -- (B.south west)                   (A.south east) -- (B.south east);             \node (U) at (-1,5) {$\mathrm{U}_1$};             \node at (-1,2) {$\mathrm{U}_2$};             \draw (U.east) edge[bend left] (1.west);             \draw (U.east) edge[bend right] (2.south);             \node[anchor=west] at (0,-1) {Legend:};             \node[anchor=west] at (0,-1.5) {{\tiny$\blacksquare$} $\mathrm{U}_1$ - instantiated universal};             \node[anchor=west] at (0,-2) {{\tiny$\blacksquare$} $\mathrm{U}_2$ - uninstantiated universal};             \node[anchor=west] at (0,-2.5) {{\tiny$\blacksquare$} $\mathrm{P}_1 \ldots \mathrm{P}_2$ - thin particulars};             \node[anchor=west] at (0,-3) {{\tiny$\blacksquare$} $\mathrm{P}_3 \ldots \mathrm{P}_{10}$ - bare particulars};             \node[anchor=center,above = 0.1cm of B.north west,font=\bfseries\large] {Space-time manifold};               \end{tikzpicture}         \end{center}              \end{document}


title: Kerning of subscripts

text: I have a large document that's full of subscripted variables that represent points and vectors. I want to typeset the points and vectors upright and bold. I'm using Unicode Math with Latin Modern, and typesetting using XeLaTeX. I get results like this: ![uglymess](http://i.stack.imgur.com/V8lH1.jpg) I was hoping for much better kerning of the subscript `n` on my letter `\mathbf{P}`. I realize that I can correct each occurrence individually, but that doesn't really seem like the right approach. My bold `\mathbf{P}` is actually defined by a macro, so my next attempt was to put the correction in this macro. But that didn't work because the correction is only needed when the `\mathbf{P}` is followed by a subscript. I'm wondering if I have a somehow corrupted version of Latin Modern Math, because the subscript kerning isn't working properly in Microsoft Word, either. The kerning **does** work if I use the Cambria font in MS Word. Here is a sample document:               \documentclass{article}     \usepackage{unicode-math}     \setmainfont{Latin Modern Roman}     \setmathfont{Latin Modern Math}          \def\A {\mathbf{A}}     \def\P {\mathbf{P}}          \begin{document}     \[  \P(x) = \P_n + \A^n  \]     \end{document}      Can I fix this problem without editing thousands of formulae individually? **My Solution (For Now)** It seems that the best I can do for now is something like:               \def\Ps #1{\P_{ \mkern-3.5mu  {#1}}}     ...     \[  \P(x) = \Ps{1} + \Ps{2} + \cdots + \Ps{n}  \]      This gives results that look good, to me: ![better](http://i.stack.imgur.com/uK8Zg.jpg) And it's easy to remove this hack if/when the Latin Modern fonts get fixed.


title: Arabic chapter numbers in ToC, Words in chapter headings in ConTeXt

text: My first post on tex.sx, so bear with me... **The Goal** : Arabic chapter numbers in the Table of Contents, and Words in the chapter headings (i.e. Chapter One) Seems simple enough, but I'm having the darnedest time getting it right. If I use this...               \definestructureconversionset      [words]      [Romannumerals, Words, numbers, numbers, numbers]      [numbers]          \setuphead       [chapter]      [page=chapterpagebreak,       sectionconversionset=words,       header=empty,       footer=empty,       numberstyle={\scx},       textstyle={\bfd},       align={middle, nothyphenated, verytolerant},       command=\MyChapter      ]      ... then I end up with a Table of Contents like this: One Chapter Title   Two Chapter Title I've scoured here, the wiki, manuals, and I still haven't found a solution, so any help would be much appreciated!


title: Installation of texlive-full on Ubuntu 12.04

text: If I install `texlive-full` on Ubuntu 12.04 using `apt-get` will I have the stable and checked version? or is there any security risk? should I avoid installing it?


title: Getting verbatim with soft grey background, as in tex.stackexchange

text: Given a verbatim as on below,               \begin{verbatim}     This is an awesome verbatim     \end{verbatim}      which is displayed with no background on the compiled pdf page : > This is an awesome verbatim I would like to have a soft grey background on this verbatim instead. The result on the compiled pdf page would be : > >     This is an awesome verbatim >   Is there a simple way doing it, still using the verbatim (ie. not using listings)? Thank you in advance. **ADDITIONAL QUESTION :** Is this possible to do the same with `\texttt{not usual verbatim but still code quote}` and getting also a grey background for all `\texttt{*}` elements ? It would also display : > `not verbatim but still code quote`


title: Vector addition and rotation in asymptote

text: I am not sure this is the right place to post questions about asymptote, but if not I can delete it later. Here is the code I am playing with:               //sangaku.asy     unitsize(5mm);          pair A=(0,0);     pair B=(3,0);     pair C=(2,1);     pair D, E, F, G, H, I, J, K;          F = rotate(90, A)*C;     G = C + F;     I = rotate(-90, B)*C;     H = (C-B) + I;     J = rotate(90, G)*H;     /*K = (H-G) + (J-G);*/     K = rotate(-90, H) * G;     D = rotate(-90, A) * B;     E = D + B;               picture sangaku;     path vierkantac=A--C--G--F--cycle;;     path vierkantbc=C--B--I--H--cycle;;     path vierkantgh=G--H--K--J--cycle;     path vierkantab=B--A--D--E--cycle;          path driehoekae=A--B--E--cycle;     path driehoekgh=G--H--K--cycle;               pen p1=orange;     pen p2=cyan;          filldraw (sangaku, vierkantac, p1);     filldraw (sangaku, vierkantbc, p1);     draw (sangaku, vierkantgh);     draw (sangaku, vierkantab);               add(sangaku);     add(shift(-12,6)*rotate(-30)*scale(2)*sangaku);          pair positie=(2, 12);      The line `K = (H-G) + (J-G);`, which I have commented out, is giving me trouble: ![enter image description here](http://i.stack.imgur.com/DtYdj.png) With the rotate function I get the right result: ![enter image description here](http://i.stack.imgur.com/pEMzw.png) But why should they not be equivalent?


title: Use deeptextcommand and custom register in ConTeXt

text: # Background Looking to emphasize the first letter of the index chapter title. # Code The following code does not work as expected:               \defineframed[StyleChapterFramed][       frame=off,     ]          \define[1]\StyleChapter{%       \StyleChapterFramed{%         \framed[align=right, frame=off]{%           \startoverlay {               \getfirstcharacter{#1}%               \firstcharacter%             }           \stopoverlay         }       }     }            \setuphead[chapter][         deeptextcommand=\StyleChapter,       ]          \starttext          \startfrontmatter       \completecontent     \stopfrontmatter          \startbodymatter       \startchapter[         title={Chapter},         reference=sec:chapter,       ]            \startsection[         title={Section},         reference=sec:section,       ]            \startsubsection[         title={Equipment},         reference=sec:equipment,]         \input knuth       \stopsubsection            \stopsection       \stopchapter     \stopbodymatter          \startbackmatter       \completeindex       %\placeindex     \stopbackmatter          \stoptext      This produces the following compile error:               structure       > sectioning > chapter @ level 2 : 0.1 -> \headtext {index}     ! Use of \csname\endcsname doesn't match its definition.          system          > tex > error on line 51 in file ex.tex: Use of  ...      # Problem The problem seems to be the following line:                 \completeindex      The document compiles when replaced with:                 \chapter{Index}       \placeindex      # Update The code also fails when using:               \setupregister[index][%       alternative=A,%     ]      Although it seems to be a different problem. # Output I have achieved the following for chapter titles (inset to bottom-right, followed by a page break): ![Chapter TItle](http://i.stack.imgur.com/TqSwH.png) Yet what I cannot seem to accomplish is override the chapter style to create a different index style title such as (at the top of a page, without a page break): ![Index Title](http://i.stack.imgur.com/h7aF4.png) This might be related to: Include custom index chapter title in table of contents in ConTeXt # Question How would you use a `deeptextcommand` _and_ a custom register in ConTeXt?


title: Cannot create a table of contents in LyX for a Hebrew document

text: I'm trying to create a table of contents for a Hebrew document (specifically, with Hebrew section and subsection names) I'm writing in LyX. When I try to compile my file I get a lot of error messages in form of > `...C {\hebvav }\IeC {\hebtav }}{\@@number {2}} Your command was ignored. > Type I <command> <return> to replace it with another command, or <return> to > continue without it.` I'm using systems encoding (which did no problems without the TOC). How can I get rid of these annoying problems? **EDIT:** Here is example of the code (in this specific there are two of this type but in the full there are around twenty): % Preview source code               %% LyX 2.0.6 created this file.  For more info, see http://www.lyx.org/.     %% Do not edit unless you really know what you are doing.     \documentclass[hebrew,english]{article}     \usepackage{amstext}     \usepackage{amssymb}     \usepackage{fontspec}     \PassOptionsToPackage{normalem}{ulem}     \usepackage{ulem}          \makeatletter     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.     \usepackage{color}      \definecolor{Dark}{gray}{.2}      \definecolor{Medium}{gray}{.6}      \definecolor{Light}{gray}{.8}      \newcommand*{\plogo}{\fbox{$\mathcal{PL}$}}     \date{ }     \everymath{\displaystyle}          \makeatother          \begin{document}     \thispagestyle{empty}     \begingroup     \centering     \vspace*{0.08\textheight}     {\Huge\bfseries Assisting Material }\\[\baselineskip]     {\scshape Course}\\[\baselineskip]     {\scshape Lecturer:}\\[\baselineskip]      {\large\scshape Prof. }\par     \vfill  {\plogo}\\[0.5\baselineskip]     {\scshape Concluded by Coargo,2013}\par      \vspace*{0.16\textheight}       \endgroup               \tableofcontents{}          \selectlanguage{hebrew}%          \title{נוסחאון }          \maketitle          \part{הסתברות}               \section*{{\beginL 1\endL}. הסתברות בדידה - \L{$\text{Discrete Probability}$}}               \section*{{\beginL 2\endL}. משתנים מקרים בדידים}               \paragraph*{הגדרות ומונחים:}     \begin{itemize}     \item מ\char`\"{}מ \L{$X:\Omega\to\mathbb{R}$}     \item הסתברות למאורע \L{$P(X=x)=P(A_{x})={\displaystyle \sum_{\omega:X(\omega)=x}P(\omega)}$}.      \end{itemize}          \paragraph*{משפטים והערות}     \begin{enumerate}     \item \L{$Var(X)=\mathbb{E[}[X^{2}]-\mathbb{E}[X]^{2}$}.      \item \L{$\text{Law of Repeated Expectation/Partition Theorm}$}: \L{$\mathbb{E}[\mathbb{E}[X\mid Y]]=\mathbb{E}[X]$}.      \end{enumerate}          \section*{{\beginL 3\endL}.מרחבי הסתברות כללים ומשתנים מקרים רציפים}               \paragraph*{מרחבי הסתברות כללים}          בנוסחאון זה בחר המחבר לא להכניס דברים יסודיים עליהם היה סבור לא ינתנו     שאלות במבחן, דוגמת הגדרת מרחב מדגם,מידת הסתברות, אלגברת בורל וכד'.     למעוניין בהרחבת אופקים הנושא נידון בהרחבה יתרה בקלסר.                \paragraph*{משתנה מקרי רציף}               \subparagraph*{\uline{הגדרות:}}     \begin{itemize}     \item משתנה מקרי רציף הוא \L{$X:\Omega\to\mathbb{R}$}כך ש\L{$\forall x\in\mathbb{R}:X^{-1}((-\infty,x])\in\mathcal{F}$}.      \end{itemize}          \subparagraph*{\uline{משפטים והערות}}               \paragraph*{תכונות ה\L{$cdf,pdf$}}     \begin{enumerate}     \item תכונות של \L{$F(x)$}:          \begin{enumerate}     \item \L{$x\ge y\Rightarrow f(x)\ge f(y)$}.     \item \L{$ $}\L{${\displaystyle \lim_{x\to-\infty}F(x)=0}$}     \item \L{$ $}\L{${\displaystyle \lim_{x\to\infty}F(x)=1}$}     \item \L{$F$}רציפה מימין אך איננה רציפה משמאל )ואם כן אזי \L{$P(X=x)=0$}(     \end{enumerate}     \selectlanguage{english}%     \item \end{enumerate}          \end{document}      **EDIT 2:** and the lyx file itself:


title: problem having copyright notice and header at the same time in IEEEtrans template

text: I have problem having IEEE copyright notice and Conference header both at the same time in the first page of my paper that uses IEEE Trans class. I notice that `\thispagestyle{fancy}` makes the copyright notice disappear! when I comment it, I have copyright notice back but I miss the first page header (header starts from second page). my code is:               \documentclass[10pt, conference]{IEEEtran}     \IEEEoverridecommandlockouts          \usepackage{graphicx}     \usepackage{newlfont}     \usepackage{multicol}     \usepackage{multirow}     \usepackage[table]{xcolor}     \usepackage{tabularx}     \usepackage{cite}     \usepackage{amssymb}     \usepackage[cmex10]{amsmath}     \interdisplaylinepenalty=2500     \usepackage{array}     \usepackage{stfloats}          \usepackage{lipsum}          \usepackage{fancyhdr}     \setlength{\headheight}{15.2pt}     \pagestyle{fancy}     \renewcommand{\headrulewidth}{0pt} % no line in header area     \fancyhead{}     \chead{12$^{th}$ Iranian Conference on Intelligence Systems, 4-6 February 2014, Bam, Iran}     \fancyfoot{}          \begin{document}     \title{Paper Title Goes Here.}               \author{     \IEEEauthorblockN{Author1}     \IEEEauthorblockA{     Dept. of Math and Computer Science\\     Higher Education Complex of Bam \\     Kerman, Iran \\     E-mail:author1@uk.ac.ir.     }     \and     \IEEEauthorblockN{Author2}     \IEEEauthorblockA{     Dept. of Math and Computer Science\\     Shahid Bahonar University\\     Kerman, Iran \\     E-mail: auhtor2@uk.ac.ir}     \and     \IEEEauthorblockN{Author3}     \IEEEauthorblockA{     E-mail: author3@gmail.com}     }          %%%%     \IEEEpubid{       \makebox[\columnwidth][l]       {\hfill     978-1-4799-1228-5/13/\$31.00~\copyright~2013 IEEE       }       \hspace{\columnsep}       \makebox[\columnwidth]{}     }          \maketitle          \begin{abstract}     put your abstract in here...     \end{abstract}     \begin{IEEEkeywords}     semantic web, Internet, Security     \end{IEEEkeywords}          %%% This line removes the copyright notice!!!     \thispagestyle{fancy}          \section{First}     \lipsum[1]     \section{Second}     \lipsum[2-10]     \end{document}      output **with** `\thispagestyle{fancy}`. **header:yes copyright:no** ![enter image description here](http://i.stack.imgur.com/x5z0z.png) output **without** `\thispagestyle{fancy}`. **header:no copyright:yes** ![enter image description here](http://i.stack.imgur.com/eJttO.png) Any suggestion is appreciated. My last paper got published with this bug. no one noticed that! I don't want IEEE to reject publishing my next paper because of this stupid bug.


title: Wrong border position on tabular when using lstlisting

text: I have encountered a problem while using `tabular` environment. The following code               \documentclass [12pt,a4paper,oneside]{report}     \usepackage {listings}     \usepackage {fontspec}     \usepackage {enumitem}      \usepackage {parskip}     \usepackage {setspace}           \lstnewenvironment{sqlcode}[2][]%     {%       %\minipage{\textwidth}        \lstset{         basicstyle={\footnotesize\ttfamily\singlespacing},         language=SQL,         breaklines=true,         breakatwhitespace=true,          captionpos=none,         numbers=none,         frame=none,         tabsize=2,         extendedchars=true,         caption=#1,         label=#2       }     }     {         %\endminipage     }               \begin {document}          \begin {center}       \begin {table}         \begin {tabular}{| l | l | l | p{5cm} |}         \hline         \textbf {Table Name} & \multicolumn {3}{c |}{  } \\ \hline         Attribute & Description & Type & Example \\ \hline         SQL Code & \multicolumn {3}{ l |}{ }         {           \begin{sqlcode}[SQL Code for Project table]{sqlproject}           CREATE TABLE project           (             projectid bigint NOT NULL,             name character varying(255),             description character varying(255),             address character varying(255),             projectpriority character varying(255),             CONSTRAINT project_pkey PRIMARY KEY (projectid)           )           WITH (             OIDS=FALSE           );           \end{sqlcode}          } \tabularnewline \hline       \end {tabular}        \caption {Table Properties}       \end {table}          \end {center}          \end {document}      generates the following output: ![Wrong Table Border](http://i.stack.imgur.com/kb09j.png) The problem is that the table border is not displayed correctly in third row. Am I missing something?


title: How to write an umlaut in bibtex style file?

text: I want to customize a BibTeX style file (`.bst`), where there is the following function for unpublished works:               FUNCTION {format.howpublished.address.year}     { howpublished empty$         { address empty$             { "No address in " cite$ warning$ }             { " \apyformat {" oaddress.opublisher.oyear.format address "}" * }            if$         }         { address empty$             { "There's only a howpublished (no address) in " cite$ * warning$ " \apyformat {" oaddress.opublisher.oyear.format howpublished * "}" * }             { " \apyformat {" oaddress.opublisher.oyear.format address * "\bpubaddr {} " * howpublished "}" * * }            if$         }         if$     }      I want to change the string "No address in" to another string using the german umlauts ('ö', 'ä' and 'ü'). But simply typing an umlaut results in compilation errors. How to do this?


title: Insert section title within index in ConTeXt

text: # Background Each recipe in a recipe book has ingredients, and those ingredients can be common for different recipes throughout the book. For example: ![Ingredient Index](http://i.stack.imgur.com/XbPps.png) # Code I've added the comma and colours as follows:               \definealternativestyle[reg:bigbold][\sansserif\bold][]          \setupregister[index][       style=reg:bigbold,       alternative=A,       color=ColourPrimary,       pagecolor=ColourPrimary,       distance=0pt,       symbol=n,       pagecommand={\color[ColourBody]{,}\hskip1ex},     ]      This produces a similar result: ![Ingredient List](http://i.stack.imgur.com/B5hh2.png) # Problem The difficulty is collecting all the section names for a given ingredient and collating them with their respective page number. # Question How would you include the list of section titles indented under the ingredient name? # Example Here is an example that illustrates the problem:               \definealternativestyle[reg:bigbold][\sansserif\bold][]          \setupregister[index][       style=reg:bigbold,       alternative=A,       distance=0pt,       symbol=n,       pagecommand={\color[black]{,}\hskip1ex},     ]          \starttext          \startfrontmatter       \completecontent     \stopfrontmatter          \startbodymatter       \startchapter[         title={Chapter 1},         reference=sec:chapter-1,       ]            \startsection[         title={Section 1},         reference=sec:section-1,       ]            \startsubsection[         title={Ingredients},         reference=sec:ingredients-1,]                \index{chocolate milk}{chocolate milk}           \index{milk}{milk}           \index{butter}{butter}            \stopsubsection       \stopsection       \stopchapter            \startchapter[         title={Chapter 2},         reference=sec:chapter-2,       ]            \startsection[         title={Section 1},         reference=sec:section-1,]                \index{milk}{milk}           \index{egg}{egg}           \index{ham}{ham}            \stopsection            \stopchapter     \stopbodymatter          \startbackmatter       \chapter{Index}       \placeindex[compress=yes]     \stopbackmatter          \stoptext


title: Teuthonista diacritics?

text: I am looking for certain diacritics from the phonetic transcription system of the _Sprachatlas der deutschen Schweiz_ (Swiss German linguistic atlas). It is a system that is similar to the one sometimes called Teuthonista. Here are (rather poor) pictures from Rudolf Hotzenköcherle (1962): _Einführung in den Sprachatlas der deutschen Schweiz_. Part B. Bern, pp. 87, 80: ![b/p series](http://i45.tinypic.com/2yyo3mq.png) ![e series](http://i46.tinypic.com/vcoli.png) # List of characters The following ones are not yet in Unicode (you can see them for instance in N4081: Revised proposal to encode “Teuthonista” phonetic characters in the UCS):   * parenthesized dot below   * parenthesized diaeresis below   * lenis mark below (the diacritic similar to an ogonek)   * parenthesized lenis mark below   * double lenis mark below   * parenthesized double lenis mark below This one is in Unicode, but I have not been able to find a nice solution for it in LaTeX:   * U+0353 combining x below These ones are available in `tipa` (I just list them here for completeness):   * `\textsubdot`   * `\textsubumlaut`   * `\textsyllabic` (vertical bar below) # My preliminary ugly solutions Based on `tipaman.pdf`, I achieved this: ![preliminary ugly solution](http://i50.tinypic.com/10h28ht.png) With the following code:               \documentclass{scrartcl}     \usepackage{tipa}     \begin{document}     \tipaLoweraccent[.2ex]{\textsf{\super{x}}}{b}     b     \textsyllabic{b}     \tipaUpperaccent[.4ex]{\super{b}}{p}     \tipaLoweraccent[.2ex]{\textsf{\super{x}}}{p}     p     \=p     \textsuperscript{p}p     pp\par     \tipaLoweraccent[.2ex]{\textsf{\super{\textit{\textiota\textiota}}}}{i}     \tipaUpperaccent[.4ex]{\super{i}}{e}     \textsubumlaut{e}     \tipaLoweraccent[.2ex]{\textsf{\super{($\cdot\cdot$)}}}{e}     \textsubdot{e}     \tipaLoweraccent[.2ex]{\textsf{\super{($\cdot$)}}}{e}     e     \tipaLoweraccent[.2ex]{\textsf{\super{(\textit{\textiota})}}}{e}     \textpolhook{e}     \tipaLoweraccent[.2ex]{\textsf{\super{(\textit{\textiota\textiota})}}}{e}     \tipaLoweraccent[.2ex]{\textsf{\super{\textit{\textiota\textiota}}}}{e}     \ae{}     \textsubumlaut{a}     \end{document}      How can I get better results? The parenthesis are too big. The `\textiota` is a very crude solution (I think something closer to an ogonek would be a closer match to the above picture).


title: Double vertical bars alongside statements of theorems

text: Prof. Hatcher describes a way to produce them in TeX here: http://www.math.cornell.edu/~hatcher/AT/typography.html I would like to know if any of you guys knows of a way to generate them in LaTeX. I thank you in advance for your insightful replies...


title: Convert a novel typed in Word (just dialogue text,no math) to LaTeX

text: I know many of you will think this elementary - but I would like opinions. I need to know if I'm doing it horribly wrong before I continue doing 45+ chapters! I apologize if this isn't the proper place - but I'm really trying to learn! I'm trying to convert a novel that has been typed in Word -- no equations -- just text with some light formatting, lots of dialogue etc.... So in my VERY limited knowledge of LaTeX I have done this. Can you please tell me if I'm on the right track? My method:   1. Open Chapter in Open Office    2. Export using `Writer2LaTeX` extension    3. Open the exported file in `WinEdt`   4. Delete all preamble coding and just have `\chapter{}` for the preamble    5. Delete `\end{document}` from the end of the document    6. Replace `{\textquoteright}` with `'` (it puts this on all conjunctions and just for neatness and readability I'd rather just see the `'` than the code)    7. Save  In my `master` document I insert the chapters using the `\include` command (at the suggestion of someone here) So.... I know it seems like it's a very round about way of doing it... but is it okay? My reasoning for using `Writer2LaTeX` extension is because it seems to take care of the opening and closing quotations using `{\textquotedblleft}` and `{\textquotedblright}` and it also uses `\textit` for italics. Otherwise I think I'd have to go find all those and enter coding by hand correct? My `master` file has the following code:               \documentclass[10pt]{memoir}               \usepackage{mathpazo}     \usepackage[margin=1in, paperwidth=6in, paperheight=9in]{geometry}     \usepackage{indentfirst}     \pagestyle{plain}          \emergencystretch=1.5em               \renewcommand*{\chapnamefont}{\normalfont\HUGE\bfseries\sffamily}     \renewcommand*{\chapnumfont}{\normalfont\HUGE\bfseries\sffamily}     \renewcommand*{\afterchapternum}{}     \renewcommand*{\printchaptertitle}[1]{}               \begin{document}          \include{Chapter1v2}          \include{chapter02}          \end{document}


title: Avoid splitting/wrapping error message when using pdflatex

text: When compiling with `pdflatex` and using the `file-line-error` option if I have a long pathname and there is an error, that error is split at 80 characters in the log file (see image below) Is one (or both) of the following items possible? i) force pdflatex to just print the error using the base name (in my example `notas_tdm.tex`) and not the full path? ii) force pdflatex to show the error message ("Undefined control sequence") in the same line as the (long) file name and line number ![enter image description here](http://i.stack.imgur.com/jaiCr.png) **Edit:** One way to reproduce this behaviour is to use MiKTex on Windows and then write the following MWE in `C:\Users\Pedro\Desktop\foo\bar\baz\a_very_long_directory_name\blah.tex`:               \documentclass{article}     \begin{document}          \error     \end{document}      Running `pdflatex -file-line-error blah.tex` gives the error               C:\Users\Pedro\Desktop\foo\bar\baz\a_very_long_directory_name\blah.tex:4: Undef     ined control sequence      and the full log is:               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9) (preloaded format=pdflatex 2014.2.27)  8 AUG 2014 14:43     entering extended mode     **blah.tex     (C:\Users\Pedro\Desktop\foo\bar\baz\a_very_long_directory_name\blah.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-2013-05-26, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,     lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman     ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm     an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl     ishmax, 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\size10.clo"     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count79     \c@section=\count80     \c@subsection=\count81     \c@subsubsection=\count82     \c@paragraph=\count83     \c@subparagraph=\count84     \c@figure=\count85     \c@table=\count86     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     No file blah.aux.     LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 3.     LaTeX Font Info:    ... okay on input line 3.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 3.     LaTeX Font Info:    ... okay on input line 3.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 3.     LaTeX Font Info:    ... okay on input line 3.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 3.     LaTeX Font Info:    ... okay on input line 3.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 3.     LaTeX Font Info:    ... okay on input line 3.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 3.     LaTeX Font Info:    ... okay on input line 3.     C:\Users\Pedro\Desktop\foo\bar\baz\a_very_long_directory_name\blah.tex:4: Undef     ined control sequence     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          (C:\Users\Pedro\Desktop\foo\bar\baz\a_very_long_directory_name\blah.aux) )      Here is how much of TeX's memory you used:     199 strings out of 493921     2366 string characters out of 3144876     49031 words of memory out of 3000000     3582 multiletter control sequences out of 15000+200000     3640 words of font info for 14 fonts, out of 3000000 for 9000     841 hyphenation exceptions out of 8191     23i,1n,17p,128b,36s stack positions out of 5000i,500n,10000p,200000b,50000s          No pages of output.     PDF statistics:     0 PDF objects out of 1000 (max. 8388607)     0 named destinations out of 1000 (max. 500000)     1 words of extra memory for PDF output out of 10000 (max. 10000000)


title: Partially coloring cell background to fake histogram

text: Excel has a cool feature called "data bar" conditional formatting that allows the user to partially fill a cell background to create histograms based on cell contents. Here is a screen clip example from a workbook: ![example](http://bit.ly/RKUGvB) I'm looking for a TiKZ, minipage, or some other solution that will allow me to only partially color the background of a cell. I've played around with a few options without success. Here is a minimum working example using `\cellcolor` from the `xcolor` package.               \documentclass{article}     \usepackage[table]{xcolor}% http://ctan.org/pkg/xcolor     \begin{document}     \begin{tabular}{l|c|r}       \hline       91.41 & \cellcolor{green!25}90.81 & 38.76 \\       \cellcolor{green!25}98.75 & 13.82 & 94.62 \\       57.11 & \cellcolor{green!25}51.21 & \cellcolor{green!25}42.84 \\       \hline     \end{tabular}     \end{document}      The code above produces: ![mwe-example](http://bit.ly/SxrA1u) In a perfect world, I'd have a macro like `\partialcellcolor{green!25}{0.41\linewidth}` or whatever to specify that the color extends across `41%` of the cell. I use "`R`" to generate the table, so I'll let it do the math as it scripts the latex code. Any suggestions?


title: Can I have a glow around a box in TikZ?

text: What I was wondering is, if I can have a glow effect for a box I am drawing with TikZ. Neither search here nor the (excellent) TikZ manual returned any results. There is a circular glow option, but I don't think that helps in my case, or does it!? Any input is appreciated :). **Edit** : I figured that these blurred shadows seem to be a fairly special PDF feature which is supported by few PDF viewers only (actually Acrobat Reader 9 for Linux was the only one that worked for me). ![Acrobat Reader](http://i.stack.imgur.com/3mypm.png) ![Evince](http://i.stack.imgur.com/WNzzk.png) ![pdf.js](http://i.stack.imgur.com/oUruR.png) (size of the blue box is the same)


title: How to trace LaTeX errors efficiently?

text: One of the most annoying things about LaTeX is that handling errors can be cumbersome and nerve-racking. In fact, it is the main reason that keeps me from actively recommending LaTeX to most people (not only Apple users). Handling LaTeX errors is not something for the average user. The main reason for this, I believe, is that error messages tend to be cryptic and often outright misleading. The 'crypticness' problem can be solved by learning their basic structure. But the 'missleadingness' is a real problem. For example, yesterday I struggled for more than an hour with a variety of error messages from `biber` such as this one:               Entity: line 2004: parser error : Extra content at the end of the document <bcf:citekey order="31">AuthorYear</bcf:citekey> ^      And from `pdflatex`, such as this one:               [9     ! pdfTeX error (font expansion): auto expansion is only possible with scalable      fonts.     \@EveryShipout@Output ...@Org@Shipout \box \@cclv           l.987       But my question here does not concern these errors in particular. They are just illustrations for just how misleading these error descriptions can be. Because the problem that cause all this was simply that I had written               \textsf{bla bla bla}      instead of               \enquote{bla bla bla}      And I might add: that mistake was in line 918, so even the line numbers indicated in these error messages are rather far off (ok, `biber` is not referring to the .tex-file, but I had to learn that too). I leave it to the geeks to figure out the logic that led to these error messages (cause I'm sure there is a (hidden) logic. But for those who wonder how on earth I could confuse `\textsf` with `\enquote`: the answer is: I did not type it, I used the (wrong) keyboard shortcut. Now, call me stupid or whatever. This is just an example. **My point is** : what strategies are there to systematically track down the source of errors when compiling a LaTeX document in an efficient way? And let me add a more specific version of that question: Assuming that one strategy is to use some sort of version control system to go back to the last error free version of the file and identify the changes that cause the error, is there any automated or semi-automated way to do this. For example, I have my files on dropbox, which allows me to access previous versions of the file up to 30 days back. However, given that a new version is stored every time I hit "save", retrieving each version, saving it, and then loading it into my LaTeX editor to compile it seems rather unfeasible. Not to speak of the problem of relative paths when the old version is not saved in the same folder.


title: draw cone with gradient fill in latex, tikz

text: > **Possible Duplicate:**   >  3D bodies in TikZ How can I draw the following diagram in latex (obviously will look better when drawn in latex), considering I would like to annotate the diagram with text and arrows etc? ![enter image description here](http://i.stack.imgur.com/BQFVx.png) The main difficulties i'm facing is finding an efficient way of drawing a cone, for example when I draw this in powerpoint I had to insert a triangle and then overlay a circle to create the cone. There must be a better way in latex, with tikz?


title: Draw a cone in TikZ

text: How could I do something like this in TikZ? ![enter image description here](http://i.stack.imgur.com/mcDLd.png)


title: harvard - modify \possessivecite

text: I am writing reports in norwegian, and I would like to modify the `\possessivecite` command of the `harvard` package to automatically add the possessive ' (just an apostrophe) in citations when the author's last name ends in s/sh/sj/rs/z. When the author's name ends in any other letters, the possessive should be just s (no apostrophe). Is this even possible?


title: DejaVu Sans Light with XeLaTeX?

text: In XeLaTeX, it is possible to directly embed Unicode fonts via `\newfontfamily\name_to_use{font name}`. So I can, for example, write: `\newfontfamily\dej{DejaVu Sans}`, and later write `\dej{unicode symbol from the font}` - this will compile in XeLaTeX. However I can't find a way to tell XeLaTeX to use the light series of DejaVu Sans. For example, If I type `\newfontfamily\dej{DejaVu Sans Light} (or even just L with or without space)}`, it says `font not found` - despite it being installed on my system. Moreover, I thought that this may be a font series, so I tried `\newfontfamily\dej[ln (and ln)]{DejaVu Sans}`. Still does not work. How do I set the light series of DejaVu Sans for particular Unicode symbols in my TeX file to be compiled with XeLaTeX?


title: xelatex doesn't change the font with polyglossia

text: This is a follow-up question to Setting English font size in non-English documents in XeLatex Well, I'm new here and this is my first question. I've compiled the following code with xelatex but in the result the englishfont is identical with the italianfont (mainfont). (I tried other font combinations: the englishfont is always identical with the mainfont.)               \documentclass{article}          \usepackage{fontspec}     \setmainfont{Times New Roman}     \newfontfamily{\englishfont}{DejaVu Sans}          \usepackage{polyglossia}     \setmainlanguage{italian}     \setotherlanguage{english}          \begin{document}     Testo in italiano.          \begin{english}     Text in English.     \end{english}     \end{document}


title: How do you end with a single quote followed by a double quote?

text: I have a paragraph as follows:               ``This is a quote. `Here is a quote within a quote.'''      But the formatting works out to be a double quote (") followed by a single quote (') instead of the other way around. How can I solve this problem?


title: Is there a way to make LaTeX interpret ``Nested `quotation''' as “Nested ‘quotation’”?

text: I know there is `csquotes` but is there a way to make nested quotation marks as in               \documentclass{standalone}     \begin{document}     ``Nested `quotation'''     \end{document}      to show up as as “Nested ‘quotation’”? That is, as ![“Nested ‘quotation’”](http://i.stack.imgur.com/yeiaQ.png) because the normal behaviour will be to typeset it as “Nested ‘quotation”’ ![“Nested ‘quotation”’](http://i.stack.imgur.com/hmwga.png) And if there is no such automatic way of doing it, what is the most elegant way to force LaTeX to use the correct nesting? I came up with using `"` instead of `''` but I can't say I like it very much since it is incongruent with the rest of my document.


title: Last page in hebrew

text: I would like to have current page number and last page number both in Roman and Hebrew. At the moment I have (example): pag. 12 ( י״ב ) di 145 (where "pag." = page and "di" = of) I'm trying to add `\begin{hebrew}\Hebrewnumeralfinal{\pageref{LastPage}}\end{hebrew}` but I get an error.


title: xstring substitution with font commands fails in error

text: I want to substitute some spaces with normal font `\dots` in between name parts typeset in `\ttfamily`. Below example works except for the commented part which fails miserably with the error: `TeX capacity exceeded, sorry [input stack size=5000] \StrSubstitute{\pxname}{ }{\normaldots}`.               \documentclass{article}          \usepackage{xstring}          %normaldots     \newcommand{\normaldots}{{\fontfamily{\familydefault}\fontseries{\seriesdefault}\fontshape{\shapedefault}\selectfont\normalsize\dots}}          \newcommand{\pxlastname}{Van der Laak}     \newcommand{\pxfirstname}{Cor}     \newcommand{\pxname}{\pxlastname\normaldots\pxfirstname}          \begin{document}     {\ttfamily\scshape\Huge\MakeLowercase{\pxname\normaldots test}}     \newline     %\StrSubstitute{\pxname}{ }{\normaldots}[\pxoutput]     %{\ttfamily\scshape\Huge\MakeLowercase{\pxoutput\normaldots test}}     \end{document}


title: right bind when using align

text: I have multiple lines of equations in `align` environment, some of those are to long and I have to split them. How can I make the second line rightbound? What I do now is:               \documentclass[oneside,a4paper]{hepthesis}     \usepackage{amssymb}          \begin{document}         \begin{align}         a &= blabla         a &= loooooooooooooooooooooooooooongexpression \notag \\         & + \text{~~~~~~~~~~~} loooooooooooooooooooooooooooongexpression     \end{align}     \end{document}      Which is of course quite ugly and in now way as it supposed to be done.


title: siunitx tabular numbers with separated uncertainty

text: I would like to format the space reserved for a number shown in a table with separated uncertainty. It seems that when I use the `table-format` option the brackets around the mantissa disappear. This is illustrated in the example below:               \documentclass{article}          \usepackage{siunitx}          \begin{document}          \begin{table}       \begin{tabular}{                       S[separate-uncertainty = true]                       S[table-format=1.1(1)e1,                       separate-uncertainty = true]                       }         {Header} & {Header}\\         1.0(2)e2 & 1.0(2)e2\\       \end{tabular}     \end{table}          \end{document}      ![enter image description here](http://i.stack.imgur.com/X82q5.jpg) I have also tried to use the `bracket-numbers` and `multi-part-units = brackets` without solving this issue. Is there any workaround to center the number and keep the brackets like in the first column of the example?


title: placing figure with all subfigures in a two column ieee trans article on a single page

text: I am trying to place a figure containing six subfigures in a separate page just after its reference page in IEEEtrans format article. How to do this. I have use figure* but some text of the next page appeared at the bottom of the figure page.


title: Contents page in two different languages

text: I'm currently writing a report where all of my titles are in French and hence my table of contents is also in French. I however need to also include a contents table in English and I was wondering if there was any way of adding in a section title in the other language to automatically produce an additional contents page? For example is I wanted to use these two titles for one single section...               \section{Méthodes et matériaux}     \section{Methods and materials}      I know it might not be something that's often done but if anyone has any suggestions it would be fantastic. If you need me to provide any other information, please don't hesitate to ask.


title: How to center vertically content of the table?

text: I have this table:               \usepackage{array}     \newcolumntype{x}[1]{>{\centering\arraybackslash\hspace{0pt}}p{#1}}          \begin{table}[ht]\footnotesize     \centering     \begin{tabular*}{0.95\textwidth }{@{\extracolsep{\fill}}|llllllllllllllll|x{0.15\textwidth}|}     \hline     \multicolumn{16}{|c|}{Small text} & Long text \\ \hline      1 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 & 16 & 19 & 20 & 21 & 22 & 23 & 0.9636149 \\ \hline      \end{tabular*}     \caption{Caption}     \label{tab:Example}     \end{table}      How to center "Small text"?


title: Latexdiff error (caused by multi paragraph \sout): Paragraph ended before \UL@on was complete

text: I try to use latexdiff to point out changes I have made in a document to the other people who need to read it and give me their advice... However, I've been getting this error:               Runaway argument?     {En rajoutant aux interactions la seconde main, qui dans notre cas es\ETC.     ! Paragraph ended before \UL@on was complete.     <to be read again>                     \par      l.8 }        %DIFDELCMD <     ?      regarding this section of code produced by latexdiff :                \DIFdelbegin \DIFdel{En rajoutant aux interactions la seconde main, qui dans notre cas est la main gauche, l'interface pourrait devenir plus intuitive et plus facile à utiliser.          }%DIFDELCMD <           %DIFDELCMD < %%%     \DIFdelend      Where `\DIFdelbegin`, `\DIFdel`, `\DIFdelend` are defined as (in my main .tex, added automagically by latexdiff) :               \providecommand{\DIFdel}[1]{{\protect\color{red}\sout{#1}}} %DIF PREAMBLE     \providecommand{\DIFdelbegin}{} %DIF PREAMBLE     \providecommand{\DIFdelend}{} %DIF PREAMBLE      What's wrong & what can I do now? EDIT : If I replace the `\sout{#1}` by just `#1` (i.e., remove the strike- through formatting), it works, but that strike-through kinda was the best feature of it, making it easy to spot what was removed. Is there another formatting command that would not break with a new paragraph? If there was a strikethrough environment I could probably use it (by placing a `\begin{strikethrough}` in `\DIFdelbegin` and an `\end{strikethrough}` in `\DIFdelend`), but I don't think there is one.


title: Variable page break penalty for odd/even pages?

text: I am working on a document that has a large number of external Lilypond files included. These render quite well and (while a bit of a pain to use) `lilypond-book` is smart enough to render the music systems at the available width of the host document and add line breaks (and potentially page breaks) between systems. I can even override the function Lilypond uses between systems to tell latex that I really-really don't want page breaks inside individual scores if it can help it:               \newcommand{\betweenLilyPondSystem}[1]{\linebreak\nopagebreak[3]}      This works great for keeping short scores together on a page, but there are a few cases where this is simply not possible. Some scores are simply too long and must span two or more pages. In these cases it much easier on musicians if the score starts on an even (left) page and runs over onto an odd (right) page. I would like to be able to change the weight of the page-break penalty so that scores tried to stay on a page but that scores starting on even pages shouldn't care much (say `\nopagebreak[1]`), while ones on odd pages make a big deal out of it (`\nopagebreak[3]` or even `4`). Additionally, it would be nice to have some sort of page-clear inserted before scores that were going to run over such that longer scores always start on even pages. How could this be accomplished?


title: Vertical and horizontal alignment with tabu package

text: Another question led me to use tabu for the purpose of fitting one column to its content while allowing the others to stretch equally. This is my current code:               \documentclass{article}     \usepackage{tabu}           \begin{document}     \noindent     \begin{tabu}{|X[m,c]|c|X[m,c]|}         Left content centered \newline between margin and title &         {\Huge Title} &         Right content \newline also centered     \end{tabu}          \end{document}      However this produces two problems: some weird horizontal alignment on the two-line cells, and the title is not vertically centered with the left and right cell. ![](http://i.stack.imgur.com/s09Ut.png) What is causing these issues and how can I fix them?


title: Sorted and brief bibliography format

text: > **Possible Duplicate:**   >  Is it possible to get unsrt + abbrv bibliography? I am looking for a setting for a bibliography with two properties:   1. Items appear in the order of citation, so that in the document the citations are [1], [2], [3]...   2. The bibliography itself is as brief as possible - No extra fields, no long names, etc. In other words the bibliography style should combine `unsrt` with `abbrv`, preferably with some control on displayed fields, to make the entries even shorter. I haven't found such an option in the default styles or in natbib.


title: How do I use multiple bibliography styles

text: e.g. I want to use bibliographystyle{unsrt} to do the referencing as per order of appearance along with bibliographystyle{abbrv} to abbreviate the names of the autho. Is this possible?


title: Make the "Appendix X" text go higher in report class

text: I have an appendix which goes 3 lines on a second page, so I would like to recover some "lost" space by the "Appendix" text on the top to keep it on one page. I tried using `\vspace{some negative value}` or the titlesec package between `\appendix` and `\chapter`, but nothing moved... My appendices looks like this :               \appendix     \chapter{Some code}     \label{cwalg}     \begin{lstlisting}     ...     \end{lstlisting}


title: Change author separation from English to German - Change in .bst file doesn't work

text: For a paper I have to change my whole Tex file set up to German. I use MikTex 2.9 on Windows. All works except the "and" between the different author names in the footnotes and in the bibliography. I already tried the recommended solution to change this by going through the `.bst` file, but it doesn't work. `FUNCTION {format.lab.names}` does not exist in my file and the only place where I found `" and "` was at `FUNCTION {output:write:list}` which doesn't seem right and also did not work when I changed it there. I checked the whole file but I couldn't find any Function code that might fit. I made the change in the `biblatex.bst` because in the `.bst` folder (MixTex/bibtex/bst) it is the only one that relates to my code. There is no `natbib.bst`, `authoryear.bst` or `biber.bst` like described in the other solutions here in stackexchange. Maybe I have the wrong `.bst` file? Or I made already some adaptations which changed the .bst code? I also tried the `\renewcommand*{\betweenauthors}{\und}` option in my preamble which doesn't work either. I only need this change for one single homework, so an easy (maybe dirty) fix would do. Here's my minimal working example (hope it's not too long):               \documentclass[12pt, listof=totoc, bibliography=totoc]{scrreprt}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel}           \usepackage[style=authoryear-icomp, natbib=true, bibencoding = utf8, maxbibnames=10,                  maxcitenames=3, isbn=false, backend=biber, dashed=false,                 firstinits=true, uniquename=init, sorting=nyt]{biblatex}          \addbibresource{Minimalbeispiel_German.bib}          \DeclareNameFormat{labelname}{         \usebibmacro{name:last-first}{#1}{#4}{#5}{#8}         \usebibmacro{name:andothers}}          \renewbibmacro*{cite:labelyear+extrayear}{%     \iffieldundef{labelyear}       {}       {\printtext[bibhyperref]{%        \printtext[parens]{% <- space        \printfield{labelyear}%        \printfield{extrayear}}}}}          \renewbibmacro{in:}{%       \ifentrytype{article}{%         \setunit{\addsemicolon\space}%         \printtext{\bibstring{in}\intitlepunct}%       }{%         \printtext{\bibstring{in}\intitlepunct}%       }%     }          %usepackage{germbib}     \usepackage{chngcntr} \counterwithout{footnote}{chapter}     \setlength{\bibhang}{1cm}  % Einzug der umgebrochenen Zeile     \setlength{\bibitemsep}{0.5cm}     % Abstand zw. Literaturangaben          \DeclareNameAlias{sortname}{last-first} %% erst Nachname, dann Vorname     \renewcommand*{\labelnamepunct}{\addcolon\space} % Doppelpunkt nach dem letzten Namen     \renewcommand*{\multinamedelim}{\addsemicolon\space} %% Trenner zwischen den Namen ein Semikolon     \renewcommand*{\finalnamedelim}{\space~and~\space} %% Trenner zwischen den Namen ein Semikolon     %\renewcommand*{\betweenauthors}{\und}          \renewbibmacro*{bbx:editor}[1]{%         \ifboolexpr{           test \ifuseeditor           and           not test {\ifnameundef{editor}}         }           {\usebibmacro{bbx:dashcheck}              {\bibnamedash}              {\printnames{editor}%          \setunit{\space}%         \usebibmacro{bbx:savehash}}%            \usebibmacro{#1}%            \clearname{editor}%            \setunit{\addspace}}%           {\global\undef\bbx@lasthash            \usebibmacro{labeltitle}%            \setunit*{\addspace}}%         \usebibmacro{date+extrayear}}                   \AtEveryBibitem{%       \ifentrytype{misc}{%           \clearfield{note}%         \clearfield{type}%      %hier einfach auflisten was nicht erscheinen soll       }%      }             \AtEveryBibitem{%       \ifentrytype{electronic}{%           \clearfield{note}%         \clearfield{type}%             }%      }     \AtEveryBibitem{%       \ifentrytype{book}{%           \clearfield{note}%         \clearfield{url}%              }%      }          \DeclareNameAlias{editor}{sortname}          \begin{document}     Some Text\footcite[Vgl.][S. 30]{Example2012} and then even more text\footcite[Vgl.][S. 30]{Doe2013}. And continuing with other text\footcite[Vgl.][S. 30]{Professor2000} and more words\footcite[][S. 30]{Professor2000}.          \printbibliography     \end{document}      And the `.bib` file `Minimalbeispiel_German.bib` to go with it:               \begin{bibliography}          @ELECTRONIC{Example2012,       title = {The Top 100},       year = {2012},       url = {http://somepage.de/uploads/files/fd3323c9a2.pdf},       month = {9},       day = {25},       editor = {Webeditor, Mike},       type = {Whitepaper},       lastchecked = {2013-07-01},       urldate = {2013-07-01},     }          @BOOK{Doe2013,       author = {Doe, John and Smith, Jane and Jamesson, James},       title = {The Quintessence of Everything},       publisher = {Springer},       year = {2010},       address = {New York, London},        }           @unpublished{Professor2000,       author = {Jackson, Jack},       title = {Book from my Professor},       year = {2000},       month = {6},       type = {Seminar Book},       note = {Seminar Book},       timestamp = {2013-07-18}     }          \end{bibliography}


title: Weird new line using \cmpd from chemnum in long headingtitles

text: I have a problem using `\cmpd` in a heading, that is too long. For some weird reason, the compound number gets put on a new line, even though there is no need. I already have a workaround using `~`, but this is not what I want. A little explanation: within `\iupac{}` you can add a possible breakpoint using `\|`. As you will see, the linebreak will be placed after (hydroxy), but the (1) will be put on a new line. I inserted two headings. The first is the one, giving me a headache, the second one is working fine. The fourth is the workaround. Here is my (almost) MWE:               \documentclass[12pt,english]{scrartcl}          \usepackage[T1]{fontenc}     \usepackage[english]{babel} % Silbentrennung, etc.     \usepackage{chemnum} % provides \cmpd{Name.Sub}     \usepackage{chemmacros} % provides iupac and loads siunitx          \begin{document}          \subsection{\iupac{\tert\-Butyl 2\-((\S\-2,2\-dimethyl\-1,3\-dioxolan\-4\-yl)\|(hy\|droxy)\|methyl)\|acryl\|ate} (\cmpd{iPrtBuAcrylate})}     Problematic subsection heading.          \subsection{\iupac{Sodium \S\-2,2\-dimethyl\-1,3\-dioxolane\-4\-carboxylate} (\cmpd{iPrCarboxylate})}     Working subsection heading.          \subsection{\iupac{\tert\-Butyl 2\-((\S\-2,2\-dimethyl\-1,3\-dioxolan\-4\-yl)\|(hy\|droxy)\|methyl)\|acryl\|ate}~(\cmpd{iPrtBuAcrylate})}     Problematic subsection with a workaround.          \end{document}


title: Biber fails on minimal example with arara

text: Here's my minimal example:               % arara: xelatex     % arara: biber     % arara: xelatex          \documentclass{article}     \usepackage[backend=biber,style=authoryear,sorting=nty]{biblatex}          \addbibresource{mwe.bib}          \begin{document}     Citation\cite{Walco2008}     \printbibliography     \end{document}      `mwe.bib` file contains the following:               % This file was created with JabRef 2.10.     % Encoding: UTF8          @Book{Walco2008,       Title                    = {Pain in Children},       Author                   = {Gary A. Walco and Kenneth R. Goldschneider},       Publisher                = {Humana Press},       Year                     = {2008},            __markedentry            = {[ilija.pavlic:6]},       Owner                    = {ilija.pavlic},       Timestamp                = {2014.06.09},       Url                      = {http://www.amazon.com/Pain-Children-Gary-A-Walco-ebook/dp/B008BB7LUW%3FSubscriptionId%3D0JYN1NVW651KCA56C102%26tag%3Dtechkie-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB008BB7LUW}     }      When I try to compile that, I get the following failure message from biber:               Running Biber...           Use of uninitialized value $llabel in concatenation (.) or string at Biber.pm line 664.     Use of uninitialized value in string eq at Biber/SortLists.pm line 77.     INFO - This is Biber 1.5     INFO - Logfile is 'mwe.blg'     INFO - Reading 'mwe.bcf'     WARN - Warning: Found biblatex control file version 2.6, expected version 2.3     INFO - Found 1 citekeys in bib section 0     INFO - Processing section 0     INFO - Looking for bibtex format file 'mwe.bib' for section 0     INFO - Decoding LaTeX character macros into UTF-8     INFO - Found BibTeX data source 'mwe.bib'     FAILURE      What do I need to fix to get this minimal example cite and print the bibliography?


title: Content following bibliography still has bibliography header

text: Writing in book class, I have a chapter, full of good things, followed by a bibliography. After the bibliography is a section for problems and examples. My issue is that the problems and examples section inherits the header structure from the bibliography, specifically, it displays "Bibliography" in the header. I have attempted to use fancyhdr package with \thispagestyle{plain}, but it only changes the first page, and does not reset the header to the rest of the chapter. mwe:               \documentclass[fleqn]{book}          % General     \usepackage[Bjarne]{fncychap}       % Fancy chapter (headings)     \usepackage[bindingoffset=2cm,margin=2cm]{geometry} % Page dimensions     \usepackage{tabto}                  % Absolute positioning     \setlength{\parskip}{3mm}               % Space bn paragraphs          % Bibliography     \usepackage[superscript,biblabel]{cite}     % Citation management          \begin{document}          \chapter{It's a Chapter!}     \section{With Some Sections}     \label{sec: With Some Sections}          And text!          I do not clearly remember the arrival of the curate, so that probably I dozed. I became aware of him as a seated figure in soot-smudged shirt sleeves, and with his upturned, clean-shaven face staring at a faint flickering that danced over the sky. The sky was what is called a mackerel sky--rows and rows of faint down-plumes of cloud, just tinted with the midsummer sunset. I sat up, and at the rustle of my motion he looked at me quickly. "Have you any water?" I asked abruptly. He shook his head. "You have been asking for water for the last hour," he said. For a moment we were silent, taking stock of each other. I dare say he found me a strange enough figure, naked, save for my water-soaked trousers and socks, scalded, and my face and shoulders blackened by the smoke. His face was a fair weakness, his chin retreated, and his hair lay in crisp, almost flaxen curls on his low forehead; his eyes were rather large, pale blue, and blankly staring. He spoke abruptly, looking vacantly away from me. "What does it mean?" he said. -- HG Wells \cite{hg11987}          \nocite{hg21987}     \nocite{hg31987}          \clearpage      \raggedbottom     \bibliographystyle{unsrt}      \bibliography{test}          \clearpage     \noindent \textbf{Problems}          \begin{enumerate}     \item Problem One     \item Problem Two     \item Problem Three     \item Problem Four     \item Problem Five     \end{enumerate}          \end{document}      And the output: ![Bibliography](http://i.imgur.com/uDnoEVa.png)


title: Hiding a counter if it is only displayed only one time

text: I have two macros on my document. `\showcounter` increases a counter, then displays it. `\resetcounter` sets the counter back to "0".               \documentclass{article}     \newcounter{counterone}     \setcounter{counterone}{0}     \newcommand{\showcounter}{         \stepcounter{counterone}         \arabic{counterone}     }     \newcommand{\resetcounter}{     \setcounter{counterone}{0}     }     \begin{document}         \showcounter \showcounter \showcounter %A         \resetcounter         \showcounter \showcounter %B         \resetcounter         \showcounter %C         \resetcounter     \end{document}      This creates a counter which increases until `\resetcounter` is used. However, in cases where `\showcounter` is only used one time before `\resetcounter` is used, I want no value to be shown.   * How can I hide the counter in such cases? Update, to clarify, the output should appear like this: > (A) 1, 2, 3 > > (B) 1, 2 > > (C) In the last case, no "1" appeared, because the counter was not used again until the next `resetcounter`.


title: Reference the bibliography as a whole

text: I am using biblatex for my bibliography, and it's working fine:               \printbibliography[title={Sources}]      Everything works as expected. What I'd like to do, though, is something like               See sources on page~\pageref{bibliography).      I have tried to add `\label{bibliography}` above `\printbibliography` but it's always off by one page: How can I correctly reference the first page of my bibliography?


title: PgfPlots ybar and ybar stacked conflict

text: I have one document with 2 documents included. In the first document I have a pgfPlot with `\pgfplotsset{ ybar stacked, ...etc }` and in the second one `\pgfplotsset{ ybar, ..etc }`, but the first pgfplotsset goes in conflict with the second, and also the second document has "ybar stacked" option active. Here the documents: Main:                \begin{document}          \include{chapter1}     \include{chapter2}          \end{document}      chapter1                   \pgfplotsset{     ybar stacked,      enlargelimits =0.05,     legend style ={at={(0.5,-0.5)},     anchor=north,     legend columns=-1},     ylabel={Ore},     xtick=data,     x tick label style={rotate=45,anchor=east},     symbolic x coords={Enrico Rotundo,Federico Poli,Giacomo Fornari,Gianluca Donato,Luca De Franceschi,Nicolò Tresoldi,Serena Girardi}     }          \begin{figure}[H]     \begin{tikzpicture}     \begin{axis}     \input{columnChart_rr}     \legend{amministratore, analista, progettista, programmatore, responsabile, verificatore}     \end{axis}     \end{tikzpicture}     \caption{Ore per componente, periodo di analisi}     \end{figure}      chapter2               \pgfplotsset{     ybar,      enlargelimits =0.10,     legend style ={at={(0.5,-0.5)},     anchor=north,     legend columns=-1},     ylabel={Ore},     xtick=data,     x tick label style={rotate=45,anchor=east},     symbolic x coords={Amministratore, Analista, Progettista, Programmatore, Responsabile, Verificatore},     }                   \begin{figure}[H]     \centering     \begin{tikzpicture}     \begin{axis}     \input{columnChart_consuntivo_rr}     \legend{preventivate,consumate}     \end{axis}     \end{tikzpicture}     \caption{Differenza preventivo consuntivo per ruolo, periodo di analisi}     \end{figure}      The problem is that chapter2 use ybar stacked option which is in chapter1 file.


title: Page numbering with a mixed Roman numeral-Arabic numeral format

text: How can I create page numbers with a mixed Roman numeral-Arabic numeral (`<Roman numeral>.<Arabic numeral>`) format?   * They increment as: "I.1", "I.2", "I.3", etc.   * The Roman numerals change only when I manually specify an increase.   * I can manually increment the Roman numeral, without changing the Arabic numeral: "I.30", \stepcounter{pageroman} "II.31", "II.32", "II.33", \stepcounter{pageroman}, "III.34", etc.   * The Arabic numerals behave just like the `page` counter (increasing on each page automatically).   * I can manually change the Arabic numeral, without changing the Roman numeral: "IV.1", "IV.2", \setcounter{pagearabic}{20} "IV.20", "IV.21", etc.   * Cross-references with `pageref` display "I.30".


title: How to change Beamer note page background color?

text: I understand that in beamer environment I can have some presenter's notes by adding               \setbeameroption{show notes}       and put all my notes in `\note{blah blah ...}`. It will give me a note page with grey background and a header. I want to know if I can change the background color, e.g. to white?


title: How do I get the \paragraph's enumerated, but not the \section's

text: I need the `\paragraph{xxx}` command outputs "§ 1 xxx" but the `\section{Abc}` outputs just "Abc", no numbering. Any help? Thanks.


title: Title in subfloat without line-break

text: My code is like this, but the title of subfigure is with line-break, which looks very ugly? How can I solve it?               \begin{figure}[!ht]      \centering     \subfloat[Subgraph]{     \label{fig:subg}     \includegraphics[width=0.2\textwidth]{subg.eps}     }\qquad     \subfloat[Induced subgraph]     {     \includegraphics[width=0.2\textwidth]{indsubg.eps}     }     \caption{Subgraph and induced subgraph.}     \label{fig:ind}     \end{figure}      ![enter image description here](http://i.stack.imgur.com/tAhmd.jpg)


title: How to highlight an entire paragraph?

text: I'd like to highlight paragraphs such that the highlight color appears as one whole rectangle underlying the entire paragraph. I have looked around but nothing gives me the desired effect so far. For example `\fcolorbox{}` from `xcolor` cannot highlight an entire paragraph; `\hl{}` from `soul` leaves out spacings between lines uncolored. I am wondering how I can do this?


title: Typesetting Classicthesis without margin notes

text: I am using classicthesis-v4.1 Lyx template for my thesis. I know that it is not advisable to make many changes in classicthesis.sty but I don't want to use the margin notes option in it. I tried the following solutions: 1) Did not change anything but removed all the margin notes. Result: ![enter image description here](http://i.stack.imgur.com/2JJ1t.jpg) 2) Tried the solution provided in Remove Marginpar from Classicthesis 4.1. (Pasted the following lines in preamble as provided in the link)               %%% Change the text block area to add also the margin space     \areaset[current]{\dimexpr\textwidth+\marginparwidth+\marginparsep}{\textheight}     \setlength{\marginparwidth}{0pt}     \setlength{\marginparsep}{0pt}     \usepackage{kantlipsum}      which gave me: ![enter image description here](http://i.stack.imgur.com/7stsZ.jpg) 3) Tried the solution given in Book's class page margins in ClassicThesis (Pasted the following lines in preamble as provided in the link)                   {% Palatino or other        \PackageInfo{classicthesis}{A4 paper, Palatino or other}        \areaset[current]{345pt}{768pt} % ~ 345 * factor 2 + 33 head + 42 \the\footskip         \areaset{345pt}{815pt} % 740 (factor 2.2) + 33 head + 42 head \the\footskip                \setlength{\marginparwidth}{7em}%            \setlength{\marginparsep}{2em}%        }%      which gave me: ![enter image description here](http://i.stack.imgur.com/2DDAy.jpg) What is the safest way to adjust them? Desired: ![enter image description here](http://i.stack.imgur.com/MdJAm.jpg) Further, how to adjust the chapter titles on the top when they are too long as shown below: ![enter image description here](http://i.stack.imgur.com/yhnhA.jpg)


title: pdfcrop fails to run on a file

text: I'm trying to remove the huge margins on the following PDF file for two pages per sheet printing: http://math.stanford.edu/~vakil/216blog/FOAGaug1612public.pdf When I run:               $ pdfcrop FOAGaug1612public.pdf test.pdf      I get the following output: * * *               kpathsea: Running mktexfmt pdftex.fmt     fmtutil: running `pdftex -ini   -jobname=pdftex -progname=pdftex -translate-file=cp227.tcx *pdfetex.ini' ...     This is pdfTeX, Version 3.1415926-2.5-1.40.13 (TeX Live 2013/dev) (INITEX)      restricted \write18 enabled.      (/usr/share/texlive/texmf/web2c/cp227.tcx)     entering extended mode     (/usr/share/texlive/texmf-dist/tex/plain/config/pdfetex.ini     (/usr/share/texlive/texmf/tex/generic/config/pdftexconfig.tex)     (/usr/share/texlive/texmf-dist/tex/plain/etex/etex.src     (/usr/share/texlive/texmf-dist/tex/plain/base/plain.tex     Preloading the plain format: codes, registers, parameters, fonts, more fonts,     macros, math definitions, output routines, hyphenation     (/usr/share/texlive/texmf/tex/generic/hyphen/hyphen.tex     [skipping from \patterns to end-of-file...]))     (/usr/share/texlive/texmf-dist/tex/plain/etex/etexdefs.lib     Skipping module "grouptypes"; Loading module "interactionmodes";     Skipping module "nodetypes"; Skipping module "iftypes";)     (/usr/share/texlive/texmf/tex/generic/config/language.def     (/usr/share/texlive/texmf/tex/generic/hyphen/hyphen.tex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-pl.tex     QX Polish hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-qx.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-pl.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-ru.tex     T2A Russian hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/ruhyphen.tex     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/catkoi.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/koi2t2a.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/ruhyphal.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/cyryoal.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/hypht2.tex)))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-uk.tex     T2A Ukrainian hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/ukrhyph/ukrhyph.tex     Ukrainian hyphenation patterns in t2a encoding     (/usr/share/texlive/texmf-dist/tex/generic/ukrhyph/catlcy.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ukrhyph/lcy2t2a.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ukrhyph/ukrhypmp.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/hypht2.tex)))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-ca.tex     EC Catalan hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-ca.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-sk.tex     EC Slovak hyphenation patterns (Jana Chlebikova, 1992)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-sk.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-nl.tex     EC Dutch hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-nl.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-hu.tex     EC Hungarian hyphenation patterns (v20110815)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-hu.tex     Huhyphn - hungarian hyphenation patterns v20110815))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-bg.tex     T2A Bulgarian hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-t2a.     tex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-rm.tex     ASCII Romansh hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-rm.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-af.tex     EC Afrikaans hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-af.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-tk.tex     EC Turkmen hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-tk.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-tr.tex     EC Turkish hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-tr.tex))     ! Missing number, treated as zero.     <to be read again>                         \chardef      <to be read again>                         \rhm@arabic      \addlanguage ...\chardef \csname rhm@#1\endcsname                                                        =#5 \uselanguage {#1}\inpu...     l.43 \addlanguage{arabic}{zerohyph.tex}{}{}{}          ?      ! Emergency stop.     <to be read again>                         \chardef      <to be read again>                         \rhm@arabic      \addlanguage ...\chardef \csname rhm@#1\endcsname                                                        =#5 \uselanguage {#1}\inpu...     l.43 \addlanguage{arabic}{zerohyph.tex}{}{}{}          !  ==> Fatal error occurred, no output PDF file produced!     Transcript written on pdftex.log.     Error: `pdftex -ini  -jobname=pdftex -progname=pdftex -translate-file=cp227.tcx *pdfetex.ini' failed          ###############################################################################     fmtutil: Error! Not all formats have been built successfully.     Visit the log files in directory       /home/efagerho/.texlive2012/texmf-var/web2c     for details.     ###############################################################################          This is a summary of all `failed' messages:     `pdftex -ini  -jobname=pdftex -progname=pdftex -translate-file=cp227.tcx *pdfetex.ini' failed     warning: kpathsea: mktexfmt output `This is pdfTeX, Version 3.1415926-2.5-1.40.13 (TeX Live 2013/dev) (INITEX)      restricted \write18 enabled.      (/usr/share/texlive/texmf/web2c/cp227.tcx)     entering extended mode     (/usr/share/texlive/texmf-dist/tex/plain/config/pdfetex.ini     (/usr/share/texlive/texmf/tex/generic/config/pdftexconfig.tex)     (/usr/share/texlive/texmf-dist/tex/plain/etex/etex.src     (/usr/share/texlive/texmf-dist/tex/plain/base/plain.tex     Preloading the plain format: codes, registers, parameters, fonts, more fonts,     macros, math definitions, output routines, hyphenation     (/usr/share/texlive/texmf/tex/generic/hyphen/hyphen.tex     [skipping from \patterns to end-of-file...]))     (/usr/share/texlive/texmf-dist/tex/plain/etex/etexdefs.lib     Skipping module "grouptypes"; Loading module "interactionmodes";     Skipping module "nodetypes"; Skipping module "iftypes";)     (/usr/share/texlive/texmf/tex/generic/config/language.def     (/usr/share/texlive/texmf/tex/generic/hyphen/hyphen.tex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-pl.tex     QX Polish hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-qx.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-pl.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-ru.tex     T2A Russian hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/ruhyphen.tex     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/catkoi.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/koi2t2a.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/ruhyphal.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/cyryoal.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/hypht2.tex)))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-uk.tex     T2A Ukrainian hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/ukrhyph/ukrhyph.tex     Ukrainian hyphenation patterns in t2a encoding     (/usr/share/texlive/texmf-dist/tex/generic/ukrhyph/catlcy.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ukrhyph/lcy2t2a.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ukrhyph/ukrhypmp.tex)     (/usr/share/texlive/texmf-dist/tex/generic/ruhyphen/hypht2.tex)))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-ca.tex     EC Catalan hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-ca.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-sk.tex     EC Slovak hyphenation patterns (Jana Chlebikova, 1992)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-sk.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-nl.tex     EC Dutch hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-nl.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-hu.tex     EC Hungarian hyphenation patterns (v20110815)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-hu.tex     Huhyphn - hungarian hyphenation patterns v20110815))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-bg.tex     T2A Bulgarian hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-t2a.     tex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-bg.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-rm.tex     ASCII Romansh hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-rm.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-af.tex     EC Afrikaans hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-af.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-tk.tex     EC Turkmen hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-tk.tex))     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-tr.tex     EC Turkish hyphenation patterns     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/conversions/conv-utf8-ec.t     ex)     (/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-tr.tex))     ! Missing number, treated as zero.     <to be read again>                         \chardef      <to be read again>                         \rhm@arabic      \addlanguage ...\chardef \csname rhm@#1\endcsname                                                        =#5 \uselanguage {#1}\inpu...     l.43 \addlanguage{arabic}{zerohyph.tex}{}{}{}          ?      ! Emergency stop.     <to be read again>                         \chardef      <to be read again>                         \rhm@arabic      \addlanguage ...\chardef \csname rhm@#1\endcsname                                                        =#5 \uselanguage {#1}\inpu...     l.43 \addlanguage{arabic}{zerohyph.tex}{}{}{}          !  ==> Fatal error occurred, no output PDF file produced!     Transcript written on pdftex.log.' instead of a filename.     !!! Error: pdfTeX run failed!


title: pdfcrop and --bbox command line option

text: This tool that's distributed with texlive has no actual documentation for the `bbox` parameter. It just says that               --bbox "<left> <bottom> <right> <top>"      What units do these number follow? Say I have a letter sized paper, what will be the intervals on which these numbers are defined? Also is the right coordinate computed from the left or right margin? Same with top.


title: How to get a double column verbatim in a single column table, in a double column document?

text: I have a double column document in which I need to place two source code listings side by side. Naturally a two column document's single column is too narrow so the two listings need to span the page width. `\onecolum` `\twocolumn` isn't an option because these need to be in the middle of a document and space is a premium. I've tried several options of `figure*`, `table*` but can't get my head around how to get it to display properly. In a single column document it was simple enough as I used `{multicols}{2}` and then used `lstlisting` to display the code, but switching to two column as expected, places the two columns in a single document column. Any ideas on how to go about this?


title: Blank lines in multilingual references using biblatex-option "babel=other"

text: I'm using `biblatex` with the option "babel=other" in order to get a multilingual bibliography. Unfortunately there occure blank lines between my bibliography entries, below entries that almost fill a line. If I switch off the option `babel=other` the unwanted blank lines disaprear, but the bibliography isn't multilingual anymore. Here's my code, which results in one unwanted blank line:               \documentclass{scrreprt}      \usepackage[ngerman, english]{babel}         \usepackage[style=authoryear,babel=other]{biblatex}     \bibliography{bibliographie}          \begin{document}     \nocite{*}      \printbibliography     \end{document}      Here's the content of the file `bibliographie.bib` used above. It's located in the same directory as the `tex` file.               @Book{Davidson,     author      = {James Davidson},     title       = {{Stochastic Limit Theory}},     year        = {1994},     address     = {Oxford},     publisher       = {Oxford University Press},     hyphenation     = {english}     }          @article{Ghysels,     title       = {{On stable factor structures in the pricing of risk: Do time-varying betas help or hurt?}},     author      = {E. Ghysels},      year            = {1998},     journal     = {Journal of Finance},     volume      = {53},     pages           = {549--573},     hyphenation     = {english}     }          @Book{Breiman,     author      = {Leo Breiman  },     title       = {{Probability}},     year        = {1968},     address     = {Reading (Massachusetts) and Menlo Park (California) and London and Don Mills (Ontario)},     publisher       = {Addison-Wesley Publishing Company},     hyphenation     = {english}     }          @Book{Goos,     author      = {Gerhard Goos},     title       = {{Vorlesungen über Informatik}},     volume      = {1},     year        = 2000,     address     = {Berlin and Heidelberg and New York},     publisher       = {Springer-Verlag},     edition     = {3},     isbn        = {3-540-67270-2},     hyphenation     = {ngerman}     }      Could anyone help me? I would be happy.


title: How to change style of a node based on its name?

text: I've create pie charts using pgf-pie and I have exactly the same problem as in this pgf-pie issue. I changed pgf-pie code to draw small percentages outside of the main circle. But I have one problem that remains: if the numbers are very very small the values are written on top of each other:![enter image description here](http://i.stack.imgur.com/qbLaa.png) IMHO this can only be fixed on the chart itselft. I added names to all nodes that print percent values. I want to change style or position of these nodes. Is there any way to do this? changed pgf-pie code at line 58.               %\path (O) -- ++(\midangle:\innerpos)      %node {\scalefont{#3}\beforenumber\fnum\afternumber};          \pgfmathprintnumberto{#3}{\fnum}           \ifthenelse{\lengthtest{#3 pt < 10pt}}     {     \path (O) -- ++ (\midangle:\radius)     node[inner sep=0,align=left,anchor=west,rotate=\midangle](nums#3){~~\fnum};     }     {         \path (O) -- ++(\midangle:\innerpos)      node {\scalefont{#3}\beforenumber\fnum\afternumber};     }      diagram:               \begin{tikzpicture}[every legend entry/.append style={text width=5cm,font=\footnotesize},scale=0.95]     \pie[         sum=auto,         text=legend,          rotate =90,         radius=5.0,         after number=\%,         ]            {         0.444/message transport other,         67.792/sign,         0.175/forwarding,         0.433/links send other ,         1.093/serialize message,         2.336/send message,         2.336/link receive ,         2.232/forwarding receive ,         10.770/parse signature block,         11.818/verify signature,         0.570/parse message content}              %\draw (0,0) node[outer sep=0pt,fill=blue,below of=nums0.433,anchor=west] {filled};\end{tikzpicture}


title: Is tikz the easiest way to draw a model like this?

text: I'm losing my fingers drawing this figure: ![enter image description here](http://i.stack.imgur.com/hcFap.png) Does anybody knows whether tikz is the best way to do that?


title: How to fix "Invalid format of field 'X'"

text: When I'm compiling my tex-files, I'm getting this error:               pdflatex> Package biblatex Warning: BibTeX reported the following issues     pdflatex> (biblatex)                with 'xyz':     pdflatex> (biblatex)                - Invalid format of field 'month'.      It is clear what the message want's to say to me :-) But how do I have to format the field? The same question with urldate... is there a website where I can look for formatting guidelines? The bibtex-entry which causes trouble is for example this one:               @article{Foster02what,         Author = {Ian Foster},         Date-Added = {2011-03-31 11:56:42 +0200},         Date-Modified = {2011-05-23 21:42:29 +0200},         Journal = {GRIDtoday},         Month = {jun},         Title = {{What is the Grid? A Three Point Checklist}},         Url = {http://www-fp.mcs.anl.gov/\~{}foster/Articles/WhatIsTheGrid.pdf},         Volume = {1},         Year = 2002,         Bdsk-File-1 = {YnBsaXN0MDDUAQIDBAUIJid...AAAAAAAAAAAMR},         Bdsk-Url-1 = {http://www-fp.mcs.anl.gov/%5C~%7B%7Dfoster/Articles/WhatIsTheGrid.pdf}}      EDIT: ok I found the mistake: the month field must have the format month=6. I have to tell BibDesk to write it that way without {} around it :-)


title: How to write properly math accent for letter i?

text: When it is requested to write letter "`í`" in math mode, it happens that `$\acute{i}$` is not the right answer as it could be expected: the accent (`´`) is written over the letter (`i`), without deleting/overwriting the upper dot `(^{.})` Another possiblity to solve the problem: `$\acute{\imath}$`, not always works satisfactorily. Is there another way to do it, obtaining an acceptable/appropriate character?


title: How to turn off hyphenation in ToC only?

text: Here's what my template looked like before:               \usepackage{tocloft}     \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}      I changed it to this:               \usepackage{tocloft}     \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}{\cftsecfont}{\raggedright}      but ToC still hyphenates. How do I turn off hyphenation in the ToC?


title: How to layout large edge labels in dot2texi

text: I never got to layout (arbitrary) large edge labels in a `dot2tex` section. The `dot` layout (engine) is only one which produces inacceptable results, the other don't work at all (blank pdf page). The problem is that the size of the layout has no effect of the layout and the rendering is only based on the default edge length. I want to describe a graph with arbitrary content (in nodes and on edges) and not care at all about the layout (maybe I have to specify something like max. edge label and max. node width). I tried a lot of things in the example below, the most important are:   * try with all layout engines, of course   * putting text and whitespace in all combinations of `label` and `texlbl`   * tried plain text, `vbox`, `minipage` environment in `texlbl`/`label`   * omitting enclosing `tikzpicture` One issue is that dot attributes don't seem to be documented, e.g. `texlbl`. I'm really lost...               \documentclass[a4paper,10pt]{article}     \usepackage[utf8]{inputenc}          \usepackage{dot2texi}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows}     \usepackage[german, ngerman]{babel}          \begin{document}          \begin{tikzpicture}     \begin{dot2tex}[tikz, styleonly,codeonly,scale=0.2]          digraph G {         A [shape=box, texlbl="A"];         B [shape=box, texlbl="B"];         C [shape=box, texlbl="C"];         D [shape=box, width=10, texlbl="\vbox{ABCDEFGHIJKLMNOPQ ABCDEFGHIJKLMNOPQ ABCDEFGHIJKLMNOPQ ABCDEFGHIJKLMNOPQ ABCDEFGHIJKLMNOPQ ABCDEFGHIJKLMNOPQ ABCDEFGHIJKLMNOPQ ABCDEFGHIJKLMNOPQ ABCDEFGHIJKLMNOPQ ABCDEFGHIJKLMNOPQ }"];         E [shape=box, texlbl="ABCDEFGHIJKLMNOPQ "];         A -> B [label=" ", shape=box, width=10, texlbl="\vbox{abcdefghijklmnopqrstuvw }"];         B -> C [label=" ", shape=box, width=10, texlbl="\vbox{ 1234567890  1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890}"];         C -> D;         D -> E;     }     }     \end{dot2tex}     \end{tikzpicture}          \end{document}      Recommendations of alternative ways to solve this problem are welcome :)