title: TikZ: Bottom right align text in rectangle

text: I am making some graphical models with tikz, and I have added a rectangle (plate./style) around three nodes. As you can see in the picture the text "N" is vertically/horizontally center aligned. I want to align the text "N" to the bottom right of the "plate" i.e. I want "N" at the bottom right corner of the rounded rectangle. Since I will be doing this repeatedly, I want this setting to be made inside tikzset.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{fit}          \tikzset{       latentnode/.style={draw, minimum width=5mm, shape=circle, ultra thick, black},       dagconn/.style={arrows=->, black, thick},       plate/.style={draw, shape=rectangle, rounded corners=0.5ex, thick,         minimum width=3.1cm, text width=3.1cm, align=right, inner sep=10pt, innerysep=10pt}     }          \begin{document}          \begin{figure}[t!]      \begin{tikzpicture}[scale=1]        \node[latentnode] (1) [label=below left:$z_1$] at (1,3) {};        \node[latentnode] (2) [label=below left:$z_2$] at (2.5,3) {};        \node[latentnode] (3) [label=below left:$z_3$] at (4,3) {};        \node[latentnode] (x1) [label=left:$x_1$] at (1,1.5) {};        \node[latentnode] (x2) [label=left:$x_2$] at (2.5,1.5) {};        \node[latentnode] (x3) [label=left:$x_3$] at (4,1.5) {};        \node[plate, inner sep=20pt, fit=(1) (2) (3)] (plate1) {N};             \draw[dagconn] (1) to (2);        \draw[dagconn] (2) to (3);        \draw[dagconn] (1) to (x1);        \draw[dagconn] (2) to (x2);        \draw[dagconn] (3) to (x3);      \end{tikzpicture}     \end{figure}          \end{document}      ![enter image description here](http://i.stack.imgur.com/Y941s.png)


title: Why don't the curly braces and the mid bar become bigger?

text: I'm having the following code:               \documentclass[11pt]{article}     \usepackage{amssymb,amsthm,amsmath}     \newcommand{\abs}[1]{\lvert #1 \rvert}     \newcommand{\N}{\mathbb N}     \newcommand{\K}{\mathbb K}          \begin{document}     \begin{displaymath}     l^2 = \{x \doteqdot (x_n)_n \in \K^{\N_0}\mid \sum_{n=1}^{\infty}\abs{x_n}^2 < +\infty\}     \end{displaymath}     \end{document}      I'd like the curly braces and the `mid` bar to become bigger (they should have the same height as the sum), but they don't want to enlarge. What did I do wrong?


title: {Tikz}{Tree} How to reduce leaves placement

text: Hello (and sorry for bad English...) I am working on a Tex document to produce algorithmic diagrams : it is quite good for me except that I would like to be able to reduce space used by leaves (it seems that tree works with a grid and some empty cells could be reused). Here is the code (the algorithm does nothing interesting, it's only to show possible cases):               \documentclass{standalone}     \usepackage{tikz}     \usepackage{tikz-qtree}     \usetikzlibrary{shapes,arrows}     % styles     \tikzstyle{principal} = [draw,rectangle split, rectangle split horizontal=false,rectangle split parts=2,minimum height=5mm]     \tikzstyle{bloc} = [rectangle, draw, fill=blue!20,  text width=5em, text centered, rounded corners, minimum height=5mm]     \tikzstyle{decision} = [diamond, draw, fill=blue!20,    text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]     \tikzstyle{io} =[draw,trapezium,trapezium left angle=70,trapezium right angle=-70,minimum height=5mm]     \tikzstyle{op} = [rectangle, draw, text width=5em, text centered, minimum height=5mm]     \tikzstyle{sequence} = [draw, ellipse,fill=red!20, node distance=3cm, minimum height=5mm]     \tikzstyle{nop} = [ellipse,fill=red!5, node distance=3cm, minimum height=5mm]     % document     \begin{document}     \begin{tikzpicture}[level distance=3cm,      sibling distance=2mm, thick,scale=0.9,      every node/.style={scale=0.9, font=\large}]     \Tree      [.\node[principal] {\nodepart{one}\shortstack{Principal}\nodepart{two}\shortstack{entier i,j\\reel j}};          [.\node[sequence] {POUR} ;             [.\node[decision]{\textsf{chaque i de 1 a 4 pas 1}};]             [.\node[sequence] {\textsf{repeter}};             [.\node [io] {\textsf{j $\leftarrow$ LIRE()}}; ]         ]       ]        [.\node[op] {\textsf{i $\leftarrow 1$}};]      [.\node [sequence] {TQ} ;         [.\node [decision] {\textsf{($i <= 4$)}};]         [.\node [sequence] {\textsf{repeter}};             [.\node [io] {\textsf{ECRIRE i}}; ]         ]      ]       [.\node[sequence] {SI} ;         [.\node[decision] {\textsf{($i <= 10$)}};]         [.\node[sequence] {\textsf{si vrai}};             [.\node[op] {\textsf{j $\leftarrow 10$}};]             [.\node[op] {\textsf{j $\leftarrow 10$}};]             [.\node[op] {\textsf{j $\leftarrow 10$}};]         ]         [.\node[sequence] {\textsf{si faux}};             [.\node[op] {\textsf{j $\leftarrow 12$}};]             [.\node[op] {\textsf{j $\leftarrow 12$}};]             [.\node[op] {\textsf{j $\leftarrow 12$}};]          [.\node[sequence] {SI} ;             [.\node[decision] {\textsf{($i <= 10$)}};]             [.\node[sequence] {\textsf{si vrai}};                 [.\node[op] {\textsf{j $\leftarrow 10$}};]             ]             [.\node[sequence] {\textsf{si faux}};                 [.\node[op] {\textsf{j $\leftarrow 12$}};]             ]          ]          ]      ]      ]       \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/a5gnt.png) Node placement could be closer to save space. Is there a possibility for some leaves to be alternatively under or above each other? Are there special parameters that would allow that? Many thanks for your help.


title: Is there a way to open TexMaths equations (.odt) in MS word?

text: For the purpose of collaboration, I use LibreOffice with TexMaths. The vast majority of collaborators use MS Word 2007, so I am forced to save into .docx so that they can read the equations and edit the text (but not edit equations, they are saved as images). If MS Word opens the .odt file directly then the equations appear as jibberish. Is there some easy extension or equivalent that I can tell them to install if they want to edit my equations and then pass them the .odt document?


title: Formatting of Tabular environment

text: I have the following latex code for a table, but would like to alter the output to match the image below it. Could anyone tell me how I could do this?               \begin{tabular}{|l||c|c|c|}     \hline     & Week 1 & week 2 & Week 3 \\\hline\hline     $\ell$ & 1 & 1 & 1 \\\hline     $h$ & 2 & 2 & 2 \\\hline     \end{tabular}      ![enter image description here](http://i.stack.imgur.com/LdxV8.png)


title: Typesetting with long limits

text: The problem of typesetting with long limits has already been discussed in Improving typesetting of sums with long limits. However, the answer given there uses `\mathop`, which does not produce satisfying results if not only the limit, but also the 'operand' is long, as shown in the following MWE:               \documentclass{article}     \usepackage{amsmath}          \DeclareMathOperator{\variables}{variables}     \DeclareMathOperator{\parentstate}{parentstate}     \DeclareMathOperator{\visible}{visible}     \newcommand*{\dotcup}{\mathbin{\dot{\cup}}}          \begin{document}         original:         \[         \visible(s) = \variables(s) \dotcup \dot{\bigcup_{p \in \parentstate^+(s)}} \variables(p)         \]              with \verb+\mathop+:         \[         \visible(s) = \variables(s) \dotcup \mathop{\dot{\bigcup} \variables(p)}_{p \in \parentstate^+(s)}         \]     \end{document}      This produces the following: ![enter image description here](http://i.stack.imgur.com/DSlKi.png) I'd rather have the best of both approaches, i.e. not have the limit centered under the whole `\mathop`, but only under the operator itself, and leave some space at the left of the operator (as in the firstversion), but move the operand closer (as in the second version).


title: Include < (fewer than) and > (greater than) inequality symbols

text: I'd like to include the `<` and `>` symbols into my document. First I tried to just type it in. But after generating the document I saw only an inverted ? instead of the > symbol. That's why I looked at this LaTeX Math Symbols  document and I saw that it should work that way. Nevertheless I tried to solve the problem by using the `verbatim` command:               \begin{verbatim}>\end{verbatim}      Now it works, but the problem is that the `verbatim` command seems to include a linebreak and that's why the `>` symbol now is in the wrong line. How can I solve that?


title: position background image with \SetBgAnchor

text: I want to print an A4 page on B4 stock, with crop marks and bleeding square grid. I use `memoir` for crop marks, and `background` with TikZ for the grid. I would like the `(0,0)` in TikZ be placed at the bottom left corner: ideally of the cropped area (as I don't know how to do that, the example has it at the corner of the stock page). I am having troubles positioning the grid relative to the where I need using the `\SetBgAnchor` command. The `background` documentation says that a typical use would be `\SetBgAnchor{north east}`, but that gives me               ! Package pgfkeys Error: I do not know the key '/tikz/north east' and I am going to ignore it. Perhaps you misspelled it.      The code looks like this:               \documentclass[10pt,b4paper,showtrims]{memoir}     % a4 paper centerd on b4     \settrimmedsize{297mm}{210mm}{*}      \settrims{28mm}{20mm}     \trimLmarks          \usepackage{background}          \SetBgScale{1}     \SetBgAngle{0}     \SetBgColor{blue!30}     % corner left bottom, span the grid over the page     % I will need about 3mm of bleed, but that's easy once bg is positioned     \SetBgContents{\tikz{\draw[step=5mm] (28mm,20mm) grid (225mm,315mm);}}     \SetBgPosition{current page.south west}     \SetBgAnchor{}  % should be {south west}          \pagestyle{empty}          \begin{document}         Some text     \end{document}      ![Compiled code above](http://i.stack.imgur.com/0lHO9.png) Questions are therefore:   1. How to fix my code so that the grid is positions properly?   2. Is there a way to have to TikZ coordinates start at the bottom left corner of the cropped page rather than stock page?


title: Programming language-like syntax for nested lists

text: Consider the following code that simply nests two lists using the `\ForEach` command:               \documentclass{article}     \usepackage{forarray}          \newcommand{\demo}[1]     {     \begin{itemize}          \ForEach{.}{\item \thislevelitem}{#1}     \end{itemize}     }          \begin{document}     \demo     {          1.          \demo          {              21.              22          }.          3     }     \end{document}      How should I modify the `\demo` command such that if I remove the `.` just before the `3`, the output remains the same? The motivation is to replicate an usual programming language syntax where statements are ended with `.` and control sequences ( such as `\demo` ) are enclosed between brackets (without a final `.`). Feel free to use your preferred list processing tool instead of `forarray` but please try to avoid `Expl3` syntax as long as possible.


title: File ended while scanning use of \textit

text: I tried deleting the aux file but that did not work, there is no } or $ missing. Here is my code:               \documentclass{article}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{amsfonts}     \usepackage[top=3cm,bottom=3cm,left=2.5cm,right=2.5cm]{geometry}     \renewcommand{\thefootnote}{\fnsymbol{footnote}}     \begin{document}          \title{\textbf{Economía de las organizaciones} - Universidad de San Andr\'es\\ Resoluci\'on del examen}     \author{Anahid Bauer}     \date{\today}     \maketitle          \begin{enumerate}     \item \textit{Property Rights + Multitasking}          \textit{Considere el siguiente modelo de Principal- Agente. El timing es como sigue: (1) las partes asignan el control de un \'unico derecho de decisi\'on, $d \in D$; (2)el agente escoge una acci\'on $a \in A$; (3) la acci\'on y el estado de la naturaleza $(s \in {1, ..., S\})$ son p\'ublicamente observados; (4)se toma la desici\'on; y (5)los pagos $U_P(a,s,d)$ y $U_A(a,s,d)$ son recibidos por el Principal y el Agente, respectivamente.}          \textit{La asignaci\'on del derecho de decisi\'on es contratable en la etapa (1). La acci\'on (multidimensional)}$a=(a_1,a_2)$\textit{ no es nunca contratable, y $c(a_1, a_2)=(a_1^2 + a_2^2)/2$, donde $a_i \geq 0$, y $c(\bullet)$ es la funci\'on de costo del agente.}\textit{La decisi\'on $d\in D$ es contratable en la etapa (4) pero no antes. En la etapa (4), las partes eligen la decisi\'on a trav\'es de una negociaci\'on a la Nash, con id\'enticos poderes de negociacion. El pago neto de cada parte es su pago bruto recibido en la etapa (5), m\'as o menos toda la transferencia hecha en las etapas (1) o (4), menos $c(a)$ en el caso del agente. Las partes son neutrales al riesgo y no tienen restricciones financieras.}          \textit{Las decisiones son $d \in \{d_{P1}, d_{A1}, ..., d_{Ps}, d_{As}, ..., d_{PS}, d_{AS}\}$, donde $d_{ij}$ denota la decisi\'on tomada por la parte $i$ en el estado $j$, $i=$ P(rincipal), A(gente), $j=1,..., s,..., S$. Para un par $(a,s)$ dado, las decisiones relevantes son $d_{Ps}$ y $d_{As}$, como sigue:}          \begin{align*}     U_P(a,s, d_{Ps}&=f_1a_1+f_2a_2+K_P\\     U_A(a,s,d_{Ps})&=0\\     U_P(a,s, d_{As}&=g_1a_1+g_2a_2\\     U_A(a,s,d_{As})&=h_1a_1+h_2a_2+K_A\\     U_P(a,s, d)&=U_A(a,s,d)=0 \forall d \notin \{d_{Ps}, d_{As}\}\\     \end{align*}          \textit{Suponga que $f_i,g_i$ y $h_i\geq0$. Suponga tambi\'en que $K_P>0$ es lo suficientemente grande como para que $U_P(a,s, d_{Ps}>U_P(a,s, d_{As}$ para todos los $(a,s)$ relevantes, pero que $K_A>0$ es tal que $U_A(a,s, d_{As}+U_P(a,s, d_{As}>U_P(a,s, d_{Ps}$ para todos los $(a,s)$ relevantes.}               \begin{enumerate}     \item  \textit{Dado $(a,s)$, ?`cu\'al es la decisi\'on eficiente,} $d \in \{d_{P1}, \{d_{A1},..., \{d_{Ps}, \{d_{As}, ... \{d_{PS}, \{d_{AS}\}$          \item \textit{Si el Agente recibe el derecho de decisi\'on en la etapa (1), ?`}          \item      \end{enumerate}          \item      \end{enumerate}          \end{enumerate}          \begin{Large}     \textbf{References}     \end{Large}     \begin{itemize}          \item           \end{itemize}          \textbf{Realic\'e el trabajo requerido por este examen sin ning\'un tipo de ayuda}     \end{document}


title: Get the lion to run in loops. Tersely

text: Various constructions can cause TeX (aka the lion) to go into an infinite loop. The simplest example is `\def~{~}~`, which defines `~` to expand to itself, then expands it. Now, if we exclude macro expansion, getting a loop is more difficult. With pure TeX, the two shortest methods I found (without macros) are               \everypar{\the\everypar}.     \toksdef~0~{\the~}\the~.      (including the trailing dots); note that the second is not macro expansion, but the expansion of `\the\toks0` in hiding. With eTeX, I got down to               \if\unexpanded\fi      which has the additional "quality" of being expandable. Here, `\unexpanded` could be replaced by `\detokenize` or `\scantokens`.   1. Why does that trigger an infinite loop?   2. Is there a similarly short TeX constructions which does not use macro expansion (preferably only primitives)?


title: Fairly large document sometimes won't compile

text: I'm working on a fairly large LaTeX document which is ~150 pages compiled. I've split the document into smaller files which I include using the \include command. The document compiles without problem until I make a small mistake which prevents it from compiling, e.g. a missing symbol. When I try to recompile the document after fixing the error and deleting the .aux file, the document won't compile and gives me an error message with no explanation. The next time I try to compile the document I always get an error on line199 with something like \cita is not defined. I order to be able to compile the document again I have to remove all the included sub-files and slowly include them again one by one for it to compile the full document again. Is it possible that I overflow some kind of buffer, and is there a way to increase it? I'm using texmaker on windows and compiling with pdfLatex.


title: TexStudio Menu is not fully visible

text: I have installed Live Tex full in Ubuntu 12.04 with which Texstudio 2.7.0 is installed. However, there is no visible icon on the menu bars. They exist on the task bar and are clickable, but there is no visible graphics in them. Please look at the following image: ![enter image description here](http://i.stack.imgur.com/5C2Mo.png) You can only see left, center, and right alignment icons in the left and few list on the tool box menu. Any help to sort it out?


title: Numerical AND Author-year modes for cites in the same file

text: I want to use two ways to cite references in the same file. One numerical, and another one in the author-year style. I also want that only the numerical references appear at the end of the document in the "References", and the author-year references do not appear. Example: > This cite will be in the references [1], but not this other one [Doe14]. > > **References** > > [1] Nice Author, "Nice article", 2000 As a variant, I may want to write the author-year references in the middle of the text: > This cite will be in the references [1], and this one within the text of the > document [Doe14]. > >   * [Doe14] Jon Doe, "Messing up with bibtex", 2014 > > > More text in the document here before the numeric bibliography. > > **References** > > [1] Nice Author, "Nice article", 2000


title: How to use Fontawesome icons in LaTeX with moderncv?

text: I am trying to create a resume using this fork of moderncv. I am on Mountain Lion and using TexLive-2013 (v. 2.0 Build 150). I already have moderncv, which is located at:               /usr/local/texlive/2013/texmf-dist/tex/latex/moderncv      I just downloaded examples/template.tex and compiled with xelatex.               xelatex template.tex      It compiled (here is the full log) and produced the pdf. Then I downloaded the repo and placed the contents in following directory as README mentions:               ~/Library/texmf/tex/latex/moderncv      Now when I run the command, it is stopping at:               Underfull \hbox (badness 10000) in paragraph at lines 55--55          (/usr/local/texlive/2013/texmf-dist/tex/latex/microtype/mt-mvs.cfg)     ! Undefined control sequence.     \mobilesymbol ->\iconMobilePhone                                       {}~     l.88      Here is the full log. How do I fix this? I want to use this fork so that I can use Github icon in my resume. Any help appreciated. Here is the tex file. Please see if you can compile it and generate the PDF. Thank you! Edit: I moved the repo contents to following directory:               ~/Library/texlive/2013/moderncv/      Now the template complies successfully and generates PDF(here is the full log). But when I add `\github{john}` line to add github icon, it is again stopping at following point:                   ...         (/usr/local/texlive/2013/texmf-dist/tex/latex/geometry/geometry.sty         (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifvtex.sty))         ! Undefined control sequence.         l.36 \github                     {additional}                 % optional, remove / comment the li...              ?      Here is the full log, any help?


title: Font Awesome Skype icon doesn't work with moderncv

text: I am using MiKTeX 2.9 and XeLaTeX. Here is my minimal working example:               \documentclass[11pt,a4paper,roman,english]{moderncv}     \moderncvstyle{classic}     \moderncvcolor{blue}     \usepackage[scale=0.75,a4paper]{geometry}     \usepackage{xunicode}     \usepackage{xltxtra}     \setmainfont[Mapping=tex-text]{Times New Roman}     \newfontfamily{\cyrillicfonttt}{Courier New}     \usepackage{polyglossia}     \setmainlanguage[babelshorthands=true]{russian}     \setotherlanguage[variant=us]{english}          \usepackage{fontawesome}     \newfontfamily{\FA}{FontAwesome}     \newcommand\faSkype{{\FA\symbol{"F17E}}}          \firstname{John}     \familyname{Smith}     \title{TeX writer}     \extrainfo{\faSkype~ myskypelogin}          \begin{document}     \makecvtitle     \end{document}      Skype Font Awesome symbol has been created like in this question. But for some strange reason it doen't work properly: ![result](http://i.stack.imgur.com/Fhsa4.png) What am I doing wrong? I have tried to replace "F17E with "F117 and it worked just fine.


title: Including bigcupdot in Lyx

text: I need to use `\bigcupdot` which according to this link is available in `mnsymbol`. I downloaded the package through MikTeX Package Manager. When I open a document in Lyx, I went to Lyx Preamble and added `\usepackage{mnsymbol}`. When I try to write a formula it doesn't accept `\bigcupdot` and other stuff. How can I fix it?


title: How do I get transparent text?

text: I am trying to make a picture for the cover of my thesis using LaTeX. I have a background picture and I would like to have transparent (math) text on top of it, how do I achieve this? I have tried to install the transparent package, but was not successful.


title: TikZ: issue with lines in foreach loop

text: \documentclass[tikz]{standalone}     \usetikzlibrary{calc}     \begin{document}     \begin{tikzpicture}       \coordinate (h) at (0, 3);       \coordinate (O) at (0, 0);            \draw (O) -- +(-3, 0);       \draw[-latex] (O) -- +(3, 0) node[right, font = \scriptsize] {$x$};       \draw[-latex] (O) -- +(0, 4) node[above, font = \scriptsize] {$z$};            \foreach \x/\s in {-1.5/{-}, 1.5/{+}}{         \draw (\x, 0) -- +(0, -0.1) node[below, font = \scriptsize] (l\s) at         (\x, 0) {$\s\frac{\ell}{2}$};       }            \draw (l-.center) -- (h);       \draw (l+.center) -- (h);     \end{tikzpicture}     \end{document}      My final two line are drawing from the labels not the x intercept line where I would anticipate. How can this be correct? ![enter image description here](http://i.stack.imgur.com/XcIOY.png)


title: Stretched columns when trying to color individual cells

text: I'm trying to make a time plan for a project using tables in LaTeX but I've run into a small problem. The table below will look fine until I try to colour individual cells by adding `\usepackage[table,usenames,dvipsnames]{xcolor}`. Doing this will stretch the middle column all the way out to the right edge of the paper. It does this even without me adding the `\cellcolor{somecolor}` command or making any other alterations to the table. Here's a little bit more elaborate example than was originally posted:               \documentclass[a4paper,12pt]{article}     \usepackage{ucs}     \usepackage[hmargin=2cm,vmargin=2cm,a4paper]{geometry}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage[hang,small,bf]{caption}     \usepackage[T1]{fontenc}     \usepackage{fancyhdr}     \usepackage{pdfsync}     \usepackage{url}     \usepackage{verbatim}     \usepackage{parskip}     \usepackage{listings}     \usepackage{float}     \usepackage[utf8x]{inputenc}      \usepackage{booktabs}     \usepackage{multirow}     \usepackage[table,usenames,dvipsnames]{xcolor}               \pagestyle{fancy}     \fancyhf{}               % Document start     \begin{document}          \begin{titlepage}     \begin{center}          \end{center}     \end{titlepage}          \section*{Time plan}          \noindent X\dotfill X          \noindent\begin{tabular*}{\textwidth}{r p{8cm} @{\extracolsep{\fill}} l}     \toprule     Week & Task & Date \\     \midrule     37 &\cellcolor{yellow} Project start & 2012-09-13 \\     \bottomrule     \end{tabular*}          \pagebreak          \end{document}      And here's what it looks like: ![image](http://i.stack.imgur.com/Jq3We.png) I have seriously no idea of what's going on here so any help would be much appreciated! It might be worth pointing out that I'm also using the `multirow` package, if that has any impact on making coloring work. All packages seems to be up to date.


title: TikZ/pgfplots - are there any problems related to externalized figures used on Linux and Windows?

text: I share a document between Win 7 and Xubuntu 13.10. I just updated my local git repo on my Xubuntu 13.10 installation. I then continued editing in a TikZ figure (not only its style definitions!) but I can't seem to get it updated (despite tweaking TeXstudio's settings). I always have to delete the graphic I want changed before a compile. Is there a fix for this?


title: BibLateX/Biber is incorrectly sorting entries with hyphens in their respective author's last name

text: **UPDATE 2** I now finally understand that this behaviour is indeed a feature that is to be modified according to need. Thank you very much to @moewe for educating me on this. I have now set his/her answer as the accepted answer as it is much more complete than the previous one. **In summary, Biber allows you to fine-tune the behaviour of sorting. Please look at the accepted answer to this question for more details and pointers.** **UPDATE 1** As per page 22 of the Biber documentation, I can somewhat confirm the explanations of Benedikt and Werner. It does seem that the characters before the hyphen are considered as prefixes. But here's where it gets more interesting - this only happens when there are **exactly two characters preceding the hyphen**. I confirmed this by trying 1 character (`A-Masri`, `D-Masri`), 2 characters (`Al-Masri`, `Ax-Masri`), and 3-characters (`Ala- Masri`). The sorting works correctly for the 1 character and 3 character trials. It seems to me that there is no real practical fix to the engine code. **Thus, my recommendation (for now) to others facing this issue is to rely on the`sortname` workaround.** * * * **ORIGINAL POST** I am observing incorrect behaviour in the sorting (by author name) of my bibliography entries. I have an entry whose main author's last name (the sorting key) contains a hyphen. This seems to cause the engine to discard everything up to the hyphen as part of the key. Here is a MWE:               \documentclass{article}          \begin{filecontents}{references.bib}     @inproceedings{maleshkova2010investigating,       title={Investigating web apis on the world wide web},       author={Maleshkova, Maria and Pedrinaci, Carlos and Domingue, John},       booktitle={Web Services (ECOWS), 2010 IEEE 8th European Conference on},       pages={107--114},       year={2010},       organization={IEEE}     }          @inproceedings{al2007wsce,       title={WSCE: A crawler engine for large-scale discovery of web services},       author={Al-Masri, Eyhab and Mahmoud, Qusay H.},  % Notice the name here       booktitle={Web Services, 2007. ICWS 2007. IEEE International Conference on},       pages={1104--1111},       year={2007},       organization={IEEE}     }     \end{filecontents}          \usepackage[backend=biber,style=authoryear,sorting=nyt]{biblatex}     \addbibresource{references.bib}     \nocite{*}          % ========= %          \begin{document}          \printbibliography          \end{document}      This results in the following (incorrect) output: ![Incorrect sorting by lastname](http://i.stack.imgur.com/0cJm0.png) I discovered that removing the hyphen in `Al-Masri` rectifies the sorting. So it seems that **with the hyphen** the engine thinks the name is `Masri`, which is incorrect. Is this a bug or a feature? If the former, how can this be fixed? If the latter, how can I work around it?


title: Referencing wrong appendix in chapter. Should reference A.1 instead references A

text: My problem is when I reference a piece of document which is in my appendix it states the wrong one in my chapter content. I.e blah blah in 'A'. When it should be 'A.1'. Every document in the appendix is behind by 1 in relation to the main content of my piece of work. However its weird, `addtocontents` in the `main.tex` file it shows in order. A.1, A.2, A.3 etc. But like I said it should start from A.1 and not A like it shows in my contents page.               %----------------------------------------------------------------------------------------     %   DISSERTATION CONTENT - CHAPTERS     %----------------------------------------------------------------------------------------          \mainmatter % Begin numeric (1,2,3...) page numbering          \pagestyle{fancy} % Return the page headers back to the "fancy" style          % Include the chapters of the dissertation as separate files from the Chapters folder     % Uncomment the lines as you write the chapters          \input{Chapters/Chapter1}          %---------------------------------------------------------------------     %   DISSERTATION CONTENT - APPENDICES     %----------------------------------------------------------------------------------------          \addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics          \appendix % Cue to tell LaTeX that the following 'chapters' are Appendices          % Include the appendices of the dissertation as separate files from the Appendices folder     % Uncomment the lines as you write the Appendices          \input{Appendices/AppendixA}     %\input{Appendices/AppendixB}     %\input{Appendices/AppendixC}          \addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics          \backmatter      I also have a separate .cls file which holds certain commands. In relation to the appendix this is shown below:               \newcommand{\aref}[1]{Appendix~\ref{#1}}      Example in my main.tex:               \documentclass[11pt, a4paper, oneside]{Thesis}     %All my packages included here          \begin{document}     %All the contents and fancy thesis layout set here. Such as setting the title page, contents page, figures page, table page, chapter, appendices etc. Which will automatically appear.     \end{document}         My Chapter1.tex starts like this:               \chapter{Analysis}     \label{Analysis}     \lhead{Chapter 2. \emph{Analysis}}          \section{Overview}     The purpose of the Analysis chapter is to analyse different \ref{Web}...      That command \ref{} automatically looks at my AppendixA.tex file to reference the relevant appendice. My AppendixA.tex starts like this:               % Appendix A     \vspace{2.0em}     \chapter{Appendix} % Main appendix title               \lhead{\emph{Terms of Reference}} % This is for the header on each page perhaps a shortened title          \label{TermsofReference} % Change X to a consecutive letter; for referencing this appendix elsewhere, use \ref{AppendixX}          \section{Terms of Reference}      Therefore I use the `\ref{}` command and stick the relevant content thats within the parenthesis of the `\label{}` command. Can anyone help me please, as this is really annoying. When anyone was to read my piece of work they will always be looking at the wrong document in my appendix. Sorry I am quite new to `LaTeX` and used a Thesis template to help me.


title: pdflatex preview problem: white pdf pages with only hyperref-rectangles visible during compile?

text: I'm having a problem, which breaks my workflow (as I'm working on a very large document, where a full latexmk run may take 10 minutes and even compiling the chapters I'm currently working on with `includeonly` takes one to several minutes) and I hope someone can help (maybe has seen similar things happening): I'm working on MacOS X 10.6.8 with TeXLive2011 and with TeXShop 2.43 as editor. Under certain conditions, I'll see a pdf preview with white pages and only the green `hyperref`-rectangles as long as the document is compiled with `pdflatex`. It looks like that: ![screenshot empty pdf](http://i.stack.imgur.com/lXZwh.png)   * This only seems to happen, when at least the chapters 3 and 4 of my (large) document are included. _EDIT:_ this might be, because those chapters contain many bitmap graphics which increase file size.    * Some pages of the pdf (e. g. the titlepage) seem to be displayed correctly all the time.   * If only one of them is included, I can see and browse a preview of the (old) pdf all the time during compile.   * the same thing happens in Skim.app when I open the pdf there and then compile. remark: As soon as compiling is finished, the pdf seems to be ok!! * * * EDIT: to answer the questions in the comments I'll add more information.   1. this display problem is only existent during compiling time, as soon as the pdf is ready, it is displayed correctly.   2. However it is not always the case, some documents are always visible - also during compilation. So jonalv's idea might be the solution: the pdf viewer does not keep the whole file in memory and therefore is not able to display the other pages. As it works for some files, and for others it doesn't, maybe it is a **file size** issue... At the moment I'm testing to isolate the problem.   * a sample document with my whole preamble but with nearly 300 pages of (only) blindtext and one float in it is visible all the time (PDF size 881 kB).


title: Caption issue with tufte-latex and ctable

text: When using `ctable` with the `tufte-latex` class (in `xelatex`), I get an error when defining a caption (and hence a label). > ! Undefined control sequence. \@tufte@stored@caption ->\@ctblcaptionarg** Anybody knows a way to correctly place a caption and a label, maybe using the `doinside` option of `ctable`? It's not possible to enclose `ctable` in another float. Here's a small example:               \documentclass[nols,nofonts]{tufte-handout}          \usepackage{textcomp}     \usepackage{fontspec}          \usepackage{ctable}     \usepackage{pdflscape}                    \begin{document}          \ctable[pos = Htbp,          left,         caption = thisisacaption,         label = thisisalabel         ]{lrcr}     {% notes     }     {% rows     \FL     \parbox[b]{0.41\columnwidth}{\raggedright     \emph{This}     } & \parbox[b]{0.20\columnwidth}{\raggedleft     \emph{Is}     } & \parbox[b]{0.20\columnwidth}{\centering     \emph{An}     } & \parbox[b]{0.18\columnwidth}{\raggedleft     \emph{Example}     }     \LL     }          \end{document}


title: Hyperref not working (participants: acro, cleverref, pgfplots, biber). Also not working: '\documentclass[final]'

text: I am writing on my thesis and I can't get it to work with `\documentclass[final]{scrreprt}`. `pdflatex` only passes when the draft option is enabled. Also I am not able to use the `hyperref` package. I don't see any errors but links and `hypersetup`s don't grasp. I did trial by error for a long time but I can't get it to work. So my only Idea left is to ask here and provide my entire preamble.               \documentclass[     11pt,      DIV10,     a4paper,     oneside,     titlepage,     parskip=half,     headings=normal,      listof=totoc,      bibliography=totoc,      %index=totoc,     draft=true %      ]{scrreprt}     \newcommand*\iffdraft[2]{%     \ifdim\overfullrule>0pt     #1%     \else     #2%     \fi     }      Then I load a text document with definitions like `\newcommand{\title}{Not working thesis}` followed by the .tex file with the following packages:               % !TeX encoding = UTF-8     \usepackage[         automark,          headsepline,          ilines      ]{scrpage2}          \usepackage[T1]{fontenc}     \usepackage[     greek,     english,     ]{babel}     \usepackage{textcomp}          \usepackage{lmodern}      \usepackage{relsize}           \usepackage{mdwlist}     \usepackage{paralist}          \usepackage[     %dvips,     %final     ]{graphicx}     \graphicspath{{figures/}}          \usepackage{amsmath,amsfonts,amssymb,xfrac,nicefrac,units}     \usepackage{calc}     \usepackage{graphics}     \usepackage{keyval}     \usepackage{twoopt}     \usepackage{gensymb}     \usepackage[     %prefixsymbolic=false,     load=accepted,     repeatunits=false,     trapambigrange=false,     %input-symbols=()     ]{siunitx}%          \usepackage[version=3]{mhchem}          \usepackage{makeidx}          \usepackage{setspace}     \usepackage{geometry}          %\usepackage{floatflt}          \usepackage{pgfplots}     \pgfplotsset{compat=1.9}     \usepackage{tikz}     \usetikzlibrary{spy}     \usepgfplotslibrary{external}      \tikzexternalize[prefix=TikzPictures/]          \usepackage{standalone}           \usepackage{rotating}     \usepackage{wrapfig,booktabs}     % \usepackage{tablefootnote}     \usepackage[normal]{threeparttable}     \usepackage{multirow,bigdelim}          \usepackage{url}          \usepackage[     %natbib=true,     backend=biber,     doi=false,     isbn=false,     url=false,     sorting=none,     maxnames=2]{biblatex}      \bibliography{References}          \usepackage[justification=justified,singlelinecheck=false]{caption}     \usepackage{subcaption}          \setlength\overfullrule{0pt}          \setlength{\marginparwidth}{2cm}          \makeatletter     \newcommand{\rmnum}[1]{\romannumeral #1}     \newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}     \makeatother          \usepackage[chapter]{easy-todo}          \usepackage[         bookmarks,         bookmarksopen=true,         colorlinks=true,         linkcolor=red,          anchorcolor=black,         citecolor=blue,          filecolor=magenta,          menucolor=red,          urlcolor=cyan,      %     linkcolor=black,      %     anchorcolor=black,     %     citecolor=black,      %     filecolor=black,      %     menucolor=black,      %     urlcolor=black,           %backref,          unicode,          plainpages=false,           pdfpagelabels,           hypertexnames=false,           linktocpage           %draft=false     ]{hyperref}      \hypersetup{          pdftitle={\tile \subtitle},          pdfauthor={\author},          pdfcreator={\author},          pdfsubject={\title \subtitle},          pdfkeywords={\title \subtitle},          }          \usepackage{fixltx2e}     \usepackage{acro}     \acsetup{       page-ref    = none,% Seitennummer in Klammern       extra-style = comma,% extra-Informationen mit Komma anhÃ€ngen       only-used   = false,% fÃŒr das Beispiel auch die nicht verwendeten in die Liste aufnehmen       sort        = true,  % Liste sortieren       hyperref  = {true}     }     \input{acro.tex}               \usepackage[english]{cleveref}          \usepackage{chngcntr}          \usepackage{longtable}     \usepackage{tabularx}     \usepackage{array}     \usepackage{ragged2e}     \usepackage{lscape}          \newcolumntype{w}[1]{>{\raggedleft\hspace{0pt}}p{#1}}          \usepackage{paralist}          \usepackage{ifthen}          \usepackage{xspace}          \usepackage{xkeyval}          \usepackage[utf8]{inputenc}     \usepackage[autostyle]{csquotes}      This is the example of how the pdf document is created by now. Beside of named problems I don't see problems at the moment. Furthermore I am using `Biber` for my Bibliography. I do hope that this can reproduce my problems. I am thankful for any feedback.


title: Exposing a new command for each element of a list

text: I have a macro `lVars`, defined using `foreach` from the `pgffor` package (part of PGF) as:               \newcommand{\lVars}[1]{\foreach \x [count=\ii] in {#1}{       \ifnum\ii=1{} \else {,} \fi \lVar[\x]}     }      The intended use is in terms like `\exists \lVars{a, b, c, d}`, which produces the result `\exists \lVar[a], \lVar[b], \lVar[c], \lVar[d]`. The command `\lVar[a]` is another custom command of the form `\newcommand{\lVar}[1][x]{\textsc{#1}}`, but may become more complex shortly. I then use the newly quantified `\lVar` elements inside larger forumlae. However, I'm extremely lazy. I'd quite like this macro to expose each list element as a new command of the form `\lA`, `\lB` etc, which themselves expand to the actual underlying `\lVar[A]`, `\lVar[B]`.... These new commands would make my formula notation significantly less verbose. These new commands should last until the next time `a`, `b,`... are used in the list parameter to the `lVars` macro. So, the overall usage will be situations like:               \begin{displaymath}       \begin{array}{l}         \exists \lVars{a, b, c}.~ \lA = \lB \implies \lA = \lC \\         \lC = 0 \implies \lA = 0         \exists \lVars{a, b}.~ \lA \neq \lB       \end{array}     \end{displaymath}          And, as we see in the term $\lA = \lB$, the implication...      I've experimented with various permutations on `\newcommand` and `\def` within the body of the `foreach`, without any luck. Any advice or tips?


title: Figures from PDF pages according to their labeleing in latex

text: I have dozens of figures in my latex named all differently. I want to put them into a single PDF file and call each figure from there via something like `\includegraphics[page="label3"]{foo}` instead of `\includegraphics[page=3]{foo}`. In other words I want to call figures from a PDF according to their proper labeling [assigned in creation of this single PDF file containing all figures].


title: Center-align text in columns in tabular environment in multicol environment

text: I need the text in the second two columns to be center-aligned. I also need someone to please help me clean up this table. It looks ugly. Notice it is inside a multicolumn (2-column) environment, because the context is a scientific report. It is complex because it involves the interaction of several packages like tabularx, multicolumn and multirow. I tried to put it inside a table environment but this introduces float issues. I want to to be floated exactly at the location in which it takes place in the document. If need be, it should continue spill over into the next column or over the page.               \documentclass[a4paper,12pt]{article}          \author{Peter Cao}     \date{}     \usepackage[font=small,labelfont=bf,tableposition=top]{caption} %apparently needs to come first or options clash with other packages will occur          \usepackage[x11names,dvipsnames]{xcolor} %for use in color links                    \usepackage[hyphens]{url}     \usepackage[colorlinks=true,linkcolor=Blue4,citecolor=blue]{hyperref}     \usepackage[hyphenbreaks]{breakurl}     \usepackage{a4wide}     \usepackage{graphicx}          \usepackage[version=3]{mhchem}          \usepackage[T1]{fontenc} %for > and < in text mode     \usepackage{tikz}     \mhchemoptions{arrows=pgf-filled}          \usepackage{booktabs} %for top, middle and bottomline          \usepackage{multirow} %multi column and row spanning          \usepackage{amsmath}               \usepackage{cite}          \usepackage{multirow}     \usepackage{tabularx}                    \usepackage{siunitx}          \usepackage{fancyhdr}     %\usepackage{fancyheadings} seems to be obsoleted by fancyhdr          \usepackage{comment}     \usepackage{multicol}          \usepackage{lastpage}          \newcommand{\ignore}[1]{} %a null macro which gobbles up comments, and thus acts as a tool for in-line commenting.               \begin{document}          \begin{multicols}{2}          \subsection*{Results}          {\small     \begin{tabularx}{\columnwidth}{X | X | X}     \toprule     Characteristic & \multicolumn{2}{c}{Result}\\     \cmidrule(l){2-3}     & Seaweed isolate & Coral isolate \\     \cmidrule(r){1-1} \cmidrule(l){2-3}     Cell shape & Rod & Rod\\     Gram stain & - & -\\     Oxidase & + & -\\     Catalase & + & -\\     MSA & Growth & No growth\\     Anaerobic & Growth (weak) & No growth\\     Motility & & \\     Indole production & & \\     Hugh \& Leifsons & & \\     \bottomrule     \end{tabularx}     }          \end{multicols}          \end{document}      Edit: In the following example, notice how the right hand margin of the table isn't being respected. How do I fix this? ![enter image description here](http://i.stack.imgur.com/jUHNo.jpg)


title: Using TikZ to depict pitchlevel

text: After the very productive outcome of my recent question on intonation, I'm emboldened to ask a related question. In the previous one, particular pitchlevels are connected to produce an intonation contour, but for tone languages (where each syllable in a word usually has a particular pitch associated with it, a different approach is needed, where the pitchlevels are indicated by small horizontal lines. I have a couple of approaches to this that already work, and I have now created a new TikZ one based on Matthew Leingang's approach to the earlier question, but I'm sure improvements are possible. The options are set out in the MWE below, using examples from kiKongo, an African Bantu language.               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode          \documentclass{article}          \usepackage{fontspec}     \defaultfontfeatures{Mapping=tex-text, Scale=MatchLowercase}     \setmainfont{Charis SIL}          \usepackage{tikz}     \usetikzlibrary{backgrounds}     \newcommand{\tikzpitch}[1]{\tikz[overlay, remember picture, baseline] \coordinate (#1);}%     \tikzstyle{pitchlevel}=[x=1mm, y=1mm, yshift=-7mm, semithick]          % Charis SIL pitchlevel glyphs     \newcommand \pitch[1]{\char"F1F#1}  % use \pitch1..9 to generate the 9 pitch-level marks fromthe glyphs F1F{1..9}          % John Frampton's pitchlevels code     \usepackage{pstricks}     \newdimen\dimpla     \newdimen\dimplb     \newdimen\dimplc     \def\1{\contourpitch{-2.5ex}{-2.5ex}}     \def\2{\contourpitch{-2.1ex}{-2.1ex}}     \def\3{\contourpitch{-1.7ex}{-1.7ex}}     \def\4{\contourpitch{-1.3ex}{-1.3ex}}     \def\5{\contourpitch{-.9ex}{-.9ex}}     \def\6{\contourpitch{-.5ex}{-.5ex}}     % level pitches     \def\contourpitch #1#2#3{\setbox0=\hbox{#3}\dimpla=.5\wd0 \dimplb=.5\wd0     \advance\dimpla by -.25em     \advance\dimplb by .25em     \dimplc=#1     \ifdim#2<#1 \dimplc=#2 \fi     \dimplc=-\dimplc     \advance\dimplc by 1ex     \psline(\dimpla,#1)(\dimplb,#2)     \vrule width0pt depth\the\dimplc #3}     % glides     \def\pitchup{\contourpitch{-2.5ex}{-1.7ex}}     \def\pitchdown{\contourpitch{-1.7ex}{-2.5ex}}     \def\steepup{\contourpitch{-2.5ex}{-.5ex}}          % format fbox     \setlength\fboxsep{1pt}               \begin{document}          % generate glides in Charis SIL     \fontspec[Renderer=Graphite]{Charis SIL}          \section{Pitchlevel marking using xelatex}          In Africanist linguistics, pitchlevel marks are often used so that the pitches can be discussed without drawing premature conclusions as to how these pitches should be represented in the eventual tone-marking.          \subsection{Word-side (inline) marking}          The example of \textbf{ibuuna [~\pitch1\, \pitch9\pitch9\, \pitch1~]} (\textit{so}) can be used to show inline marking of individual words.  This solution uses the pitchlevel glyphs in Charis SIL.  Glide variants are possible:      [~\pitch1\, \pitch9\, \pitch1\pitch5~]      [~\pitch1\, \pitch9\, \pitch1\pitch1\pitch5~]      [~\pitch1\, \pitch9\, \pitch1\pitch1\pitch5\pitch5~]      [~\pitch1\, \pitch9\, \pitch1\pitch5\pitch5~]           \bigskip          \noindent An alternative solution to the same issue of showing \noindent \textbf{ibuuna} [ \tikz\draw[x=1mm, y=1mm, semithick](0,0)--(1.5,0) (2.5,2)--(5,2) (6,0)--(7.5,0); ] uses TikZ.  Glide variants are also possible here:     [ \tikz\draw[x=1mm, y=1mm, semithick](0,0)--(1.5,0) (2.5,2)--(5,2) (6,0)--(7.5,1); ]     [ \tikz\draw[x=1mm, y=1mm, semithick](0,0)--(1.5,0) (2.5,2)--(5,2) (6,0)--(7.5,0)--(8.5,1); ]     [ \tikz\draw[x=1mm, y=1mm, semithick](0,0)--(1.5,0) (2.5,2)--(5,2) (6,0)--(7.5,0)--(8.5,1)--(10,1); ]     [ \tikz\draw[x=1mm, y=1mm, semithick](0,0)--(1.5,0) (2.5,2)--(5,2) (6,0)--(7.5,1)--(9,1); ]               \subsection{Parallel marking}          \subsubsection{Using Charis font features}          \noindent ibuuna · basiidi kilumbu · ki-bakweenda kuna-kiziitu \\     \pitch1~~\pitch9\pitch9~~\pitch1~~~\pitch1~~\pitch9~~\pitch7~~\pitch5~\pitch3~~~~~\pitch1\pitch5 ~~~~\pitch1~~~\pitch1~~~~\pitch9\pitch9~~~\pitch8~~~\pitch4~~\pitch1~~~\pitch5~\pitch5~\fbox{\pitch1\pitch5} \\     \textit{so · they set aside a day · on which they would go to the in-laws \dots}          \subsubsection{Using pstricks}          \noindent\1ib\5u\5un\1a · b\1as\5i\5id\4i k\3il\2umb\pitchup u · k\1i-b\1akw\5e\5end\4a k\3un\1a-k\3iz\3i\3it\fbox{\pitchup u}\\     \textit{so · they set aside a day · on which they would go to the in-laws \dots}          \subsubsection{Using TikZ}          \noindent\begin{tikzpicture}[remember picture]     \node{\tikzpitch{1}ib\tikzpitch{2}u\tikzpitch{3}un\tikzpitch{4}a · b\tikzpitch{5}as\tikzpitch{6}iid\tikzpitch{7}i k\tikzpitch{8}il\tikzpitch{9}umb\tikzpitch{10}u · k\tikzpitch{11}i-b\tikzpitch{12}akw\tikzpitch{13}eend\tikzpitch{14}a k\tikzpitch{15}un\tikzpitch{16}a-k\tikzpitch{17}iz\tikzpitch{18}iit\tikzpitch{19}u}; \\     \draw[pitchlevel] (1 |- 0,0)--+(2,0) (2 |- 0, 4.5)--+(2,0) (3 |- 0, 4.5)--+(2,0) (4 |- 0, 0)--+(2,0) (5 |- 0,0)--+(2,0) (6 |- 0, 4.5)--+(2,0) (7 |- 0, 4)--+(2,0) (8 |- 0, 3)--+(2,0) (9 |- 0,1.5)--+(2,0) (10 |- 0, 0)--+(1,0.5)--+(2,1.5) (11 |- 0,0)--+(2,0) (12 |- 0, 0)--+(2,0) (13 |- 0, 4.5)--+(3,0) (14 |- 0, 3.5)--+(2,0) (15 |- 0,3)--+(2,0) (16 |- 0, 1)--+(2,0) (17 |- 0, 3)--+(2,0) (18 |- 0, 3)--+(2,0) (19 |- 0,0)--+(1,0.5)--+(2,1.5);     \end{tikzpicture}\\     \mbox{\textit{so · they set aside a day · on which they would go to the in-laws \dots}}          \end{document}      ![enter image description here](http://i.stack.imgur.com/GTvEv.png) The inline marking (1.1) is simple. Re the three versions of parallel marking (1.2): 1.2.1: Charis SIL can only be used with XeTeX. (For LaTeX there is an alternative approach using the `tipa` package and some additional code - see this question.) This appears to be the only font currently which contains these glyphs (in its Private Use Area), but in practice this is unlikely to be a problem. The main issue is that, as in the intonation question, it is necessary to use trial-and-error to space the glyphs to match the words. One benefit is that it is possible to use `\fbox` to highlight a particular pitch. 1.2.2: The `pstricks` code was kindly offered by John Frampton, author of `expex`. The main benefit is that it embeds the pitch levels into the text, making it easier to write out the example. An `\fbox` can be used to highlight a pitch (though it also marks the letter as well, which is less visually attractive). The pitchlevel lines are also "sharper" than in the other two options. As against that, it is slower to compile, and the current code does not allow word-side (inline) pitch marking. (It doesn't seem to work with LaTeX either, but perhaps that's just me.) 1.2.3: This is something I've put together by molesting Matthew Leingang's solution to the intonation question (I wouldn't even know where to start on mwibrow's more comprehensive code!). All I'm doing is getting the coordinate, and then drawing a line from that to a point 2mm to the right. (Ideally, I would draw 1mm each side of the coordinate, but how?) This actually works quite well - in particular, glides can be specified in more detail. However, as it stands, it needs two compiles because of `remember picture`, and I have no way of highlighting a pitch. Also, the kiKongo text seems to be indented slightly for some reason. So all of these work, but I'd be interested in any suggestions for improvements, in particular, for tidying up the TikZ solution, since that works for both LaTeX and XeTeX, and is font-independent.


title: Problem with indentation and alignment

text: I am writing my thesis in `book` document class. The command `\indent` is not working. Also, the lines are not aligned on the right side. What could be the problem?


title: LaTex Multicolumn Bar Too long, bug?

text: I am encountering problems with a seperation bar using LaTex package **\multirow**. As can be seen in the picture, the red circled bar is just too much and messing up the layout of my table. Does someone have an idea how to fix? I tried to fix it by putting/deleting "|" from/to everywhere. Also, making column 1 a multicolumn itself didn't make it. I'd appreciate help a lot. My code is the following:               \begin{table}[htbp]     \begin{minipage}{\textwidth}         \renewcommand{\arraystretch}{1.3}         \caption[..]{...}         \label{...}              \begin{tabular}{c | >{\centering\arraybackslash}m{5cm} | >{\centering\arraybackslash}m{1.5cm}} \\         \hline         \multicolumn{1}{c|}{\bf{STATION}}   & \multicolumn{2}{c}{\bf{OCEAN BOTTOM}} \\ \hline         & \bf{Latitude / Longitude} & \bf{Depth [m]}    \\ \hline              RUM41  &  27$^\circ$ 43.98' S / 65$^\circ$ 20.04' E  &  5461  \\          .         .         .              \end{tabular}     \end{minipage}     \end{table}      ![enter image description here](http://i.stack.imgur.com/IXz6S.png)


title: Bind book from scanned PDF

text: I would like to produce a bound copy of this book provided as a scanned PDF. The pages should be printed centered on larger sheets with crop marks in the correct order for book printing. For this I used the `geometry`, `pdfpages` and `crop` packages and wrote this example:               \documentclass{article}     \usepackage[paperwidth=193mm,paperheight=266mm]{geometry}          %\usepackage[cam,pdflatex,width=19.3cm,height=26.6cm]{crop}     \usepackage[cam,frame,a3,center,color=red]{crop}          %\usepackage{showframe}          \usepackage{pdfpages}          \begin{document}     \crop[cross,frame]     %%\includepdf[pages={1,{}, 2-126}, signature=8, landscape]{kalemguzeli3_1.pdf}     \includepdf[pages={2-126}, signature=4, landscape]{kalemguzeli3_1.pdf}          \end{document}      Unfortunately the pages do not really fit properly into the selected A3 paper size and do not have the physical page size of 193mm x 266mm. How would I have to do this in order to have a PDF which I could use to print and make a proper book out of it again?


title: Second page of list of figures: spacing too large

text: I have a list of figures which spans multiple pages. The first page is looking just fine but when it continues on to the next page, the space between the lines is more than tripled compared to the previous page. See the screenshot below: ![Screenshot of the line space bug](http://i.imgur.com/vNM24.png)


title: Adjusting Figures (Floats) Next to Tables

text: I am wondering what is the best way to place floats directly across from a array or tabular environment. I want to get the graph to show on the right of the table of values. A picture is shown below along with a `MWE`.               \documentclass[12pt,letterpaper]{article}     \usepackage[margin=2.0cm]{geometry}     \usepackage{amsmath}          \begin{document}          $     \begin{array}{rr}       -7.0 & 7.0 \\       -6.0 & 0.067 \\       -5.0 & -4.9 \\       -4.0 & -7.7 \\       -3.0 & -7.9 \\       -2.0 & -2.9 \\       -1.0 & 39. \\        0 & 87. \\        1.0 & 50. \\        2.0 & 21. \\        3.0 & 28. \\        4.0 & 40. \\        5.0 & 55. \\        6.0 & 72. \\        7.0 & 91.     \end{array}     $          \begin{figure}[h!]     \centering     \scalebox{0.5}{     \includegraphics{hx.pdf}                   }     \caption{Plot of the function \( h(x) \)}     \end{figure}          \end{document}      ![picture](http://i.stack.imgur.com/2vhuL.png)


title: Using thmbox's title with lyx

text: Hello I'm trying to create my own layout I'm using thmbox package for theorems, and I want to use the title feature. I'm using LyX as my editor, and I've created a layout file defining several styles using newboxtheorem-s. is there any way to make lyx understand that the layout takes a parameter and create a wysiwyg environment for it? Thanks.


title: moderncv themes

text: Are there any available themes for `moderncv` other than _classic_ and _casual_? I googled it but no luck.


title: Quote exceeding quote right margins

text: I have a quote that displays long chains of words, such as > hippopotamus/hippo The quote environment does not break words, so I have text exceeding the right margin of the quote. How can I obtain word breaking?


title: Combining dashes from babel with xspace

text: Assume we have some mathematical object that is used in formulae as well as in "natural" language (in my case, complexity classes). When defining a macro for such an object, I like to use `\xspace` so that spacing works as expected in all circumstances. That has been working fine for me until I discovered the nice hyphenation control features of `babel`; `\xspace` seems to conflict with these:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel}     \usepackage{xspace}          \newcommand{\NP}{\ensuremath{\mathsf{NP}}\xspace}          \begin{document}       $L \in \NP$, daher foo.\\       $L$ ist in \NP. \\       $L$ ist \NP"=vollständig.     \end{document}      The combination with `"=` \-- which would imply the breaking/hyphenation desired in this case -- leads to an obviously wrong result: ![enter image description here](http://i.stack.imgur.com/CuPCc.png) I notice that I have probably been overusing `\xspace` but I don't know a different way. How can I fix this?


title: Vancouver biblatex referencing style

text: I'm a bit confused when it comes to the styling of references/bibliographies in biblatex. How would I go about achieving the following?   * Vancouver style i.e.:      * No italics, bold or underlining.     * Author of article AA, Author of article BB, Author of article CC. Title of article. Abbreviated Title of Journal. Year; vol(issue):page number(s).   * Citations are numbered in the order of appearance in the text.    * Reference numbers are placed in square brackets [1] in the text.   * References cited in a table or figure legend are numbered after the citations in the text.


title: Last displayed glossary entry's hanging indentation gets lost with index style

text: I'm using the `glossaries` package in a document and use the `index` style with it (because I need optional symbols to be displayed in the glossary). The weird thing is that the last displayed item's hanging indentation gets lost. Here's a minimal example with only two items. What do I miss?               \documentclass{article}          \usepackage{glossaries}          \makeglossary          \newglossaryentry{GLO1}{name={GLO1},text={Glossary Entry 1},description={Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. }}          \newglossaryentry{GLO2}{name={GLO2},text={Glossary Entry 2},description={Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text. Some other text }}          \begin{document}          \gls{GLO1}     \gls{GLO2}          \printglossary[style=index]          \end{document}      ![enter image description here](http://i.stack.imgur.com/yAIe1.png) I'm using a quite recently installed (stable) texlive 2013 and compile with pdflatex and makeglossaries.


title: Nonbreaking dash that allows hyphenation

text: The `babel` package provides useful dash variants, e.g. `"~` for a non- breaking dash that forbids hyphenation in the parts, and `"=` for a breaking dash that allows hyphenation in the parts. However, "words" like               $x$-Koordinaten      do not quite fit; we would not want to have the dash breaking, but we _would_ want to allow hyphenation of "Koordinaten". Of course,               $x$"~Ko\-or\-di\-na\-ten      works but has to be specified locally, which we do not want to do either (favoring a global `\hyphenation{...}` setting). Is it possible to achieve the above in a form that does not force us to specify hyphenation locally?


title: Heading at the bottom of the page

text: I'm typesetting a large document (phdthesis) with pdflatex and I'm using `KOMAscript`and the `scrreprt`document class. I was very surprised as I saw a heading (`\subsubsection`) standing at the bottom of a page without any text below! This is really bad style and it seems to happen to others also (see How can one keep a \section{} from being at the end of a page in LaTeX? and Avoiding page breaks shortly after section/subsection headings), but in my case the pagebreak is directly after the heading - there are not even 2 lines of text attached... It seems to have to do with the many and big floats in this chapter and I think I'll have to adjust that manually, when the text is complete and editing is finished. However, I wonder if `pdflatex` should not at least print a warning about that in the log file (I could not find any warnings concerning that), if it feels impelled to do such ugly things... And I use the `\raggedbottom`-option (as I also had problems with very big spacing between large paragraphs), so I had hoped that this would avoid such "orphans". setting the penalties to 1000 did not change anything:               \widowpenalty=1000     \clubpenalty=1000      \---------- _edit:_ I now know where it comes from, but not how to avoid it:   I have defined a command to quickly add `fixme`notes to the document with `\N{Note}`   It is defined as `\newcommand{\N}[1]{\fxfatal*[inline=true,nomargin]{/#1/}{}}` ... and I used it directly after the problematic section command like:               \subsubsection{Title of the section}     \N{note about what to change in that section later} And now starts the normal text of the section...      If I move the note `\N{...}` to another place, e. g. after the first sentence of the section, the pagebreak is before the section title. **Question:** Is there anything I can do to redefine the \N{} command to avoid that behavior? * * * It would be difficult to construct a minimal example in this case, so my **question** is:   1) why is there no warning? 2) I would consider a lonely heading much worse than a page which has some empty white space at the bottom - how can I make pdflatex "know" that? My preamble has become quite complex with the time - I have left out all "simple" newcommands etc. and tried only to keep things which might interfere with my questions:               \documentclass[11pt, a4paper,       twoside, autooneside,     headinclude, footexclude,      liststotoc, bibtotoc,     tablecaptionabove, noonelinecaption, headsepline, halfparskip      ]{scrreprt}          \usepackage{svn-multi}     \svnidlong     %(...)          \areaset[8mm]{15.5cm}{25.2cm}           \setkomafont{sectioning}{\normalfont\normalcolor\bfseries}      \addtokomafont{captionlabel}{\bfseries}           \usepackage[UKenglish, ngerman]{babel}      \usepackage[latin1]{inputenc}     \usepackage[TS1, T1]{fontenc}     \usepackage{aecompl}     \usepackage[ngerman, iso]{isodate}     \isodate     \usepackage{datetime}      \usepackage[version=3]{mhchem}      \usepackage[caption=false, format=hang]{subfig}      \usepackage{pdflscape}      \usepackage[stable]{footmisc}           \usepackage[automark]{scrpage2}      \pagestyle{scrheadings}     \automark[section]{chapter}     \cfoot{\footnotesize Rev.~\svnrev{} (\svnfilerev) \\vom \svnyear-\svnmonth-\svnday \ \svnhour:\svnminute:\svnsecond}      \ifoot{\footnotesize erstellt:\\\today{} \currenttime}                \usepackage{hyperref}      \usepackage[pdftex]{graphicx}      \usepackage{color}           \usepackage{amsmath}       \usepackage{amstext}      \usepackage{amssymb}                \usepackage{array}      \usepackage{tabularx}      \usepackage{longtable}     \usepackage{booktabs}                \usepackage[numbers, sort&compress]{natbib}      \usepackage[]{rotating}      \usepackage{url}      \usepackage[tight]{units}           \usepackage[color]{showkeys}      \renewcommand*\showkeyslabelformat[1]{\fbox{\normalfont\tiny\ttfamily#1}}      \definecolor{refkey}{cmyk}{0.26,0,0.76,0}%{gray}{0.5}      \definecolor{labelkey}{cmyk}{0.26,0,0.76,0}%{gray}{0.5}          \usepackage[draft]{fixme}      \fxsetup{theme=color, inline, targetlayout=color, author=}                     \usepackage{paralist}          \deffootnote[1em]{1em}{1em} {\textsuperscript{\thefootnotemark} }               \setcapindent{1cm}          \makeatletter     \setlength{\@fptop}{0pt}     \makeatother          % Alter some LaTeX defaults for better treatment of figures:     %Quelle: http://mintaka.sdsu.edu/GF/bibliog/latex/floats.html         % See p.105 of "TeX Unbound" for suggested values.         % See pp. 199-200 of Lamport's "LaTeX" book for details.         %   General parameters, for ALL pages:         \renewcommand{\topfraction}{0.9}    % max fraction of floats at top         \renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom         %   Parameters for TEXT pages (not float pages):         \setcounter{topnumber}{3}         \setcounter{bottomnumber}{2}         \setcounter{totalnumber}{4}     % 2 may work better         \setcounter{dbltopnumber}{2}    % for 2-column pages         \renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text         \renewcommand{\textfraction}{0.07}  % allow minimal text w. figs         %   Parameters for FLOAT pages (not text pages):         \renewcommand{\floatpagefraction}{0.8}  % require fuller float pages         % N.B.: floatpagefraction MUST be less than topfraction !!         \renewcommand{\dblfloatpagefraction}{0.8}   % require fuller float pages         % remember to use [htp] or [htpb] for placement


title: How to get TeXShop to ignore LaTeX commands when spell checking

text: TeXShop is showing a spelling error (red dashed underline) for almost every LaTeX command. There must be a way to disable this so I can only check the spelling of my content. Example screenshot: ![enter image description here](http://i.stack.imgur.com/nNMb3.png)


title: XELATEX error : l.52 make_char_active:n

text: I am using WinEdt 7.0 in WINDOWS 7. I was trying run a `tex` file using XeLaTeX. The error reads as follows:               ! Undefined control sequence     l.52 \char_make_active:n{"20}%      Please suggest on this. **UPDATE by texnic:** Since I am having exactly the same issue now, I thought I might join this discussion. The MWE is, as suggested by Joseph, simply               \listfiles     \documentclass{article}     \usepackage{fontspec}     \begin{document}     \end{document}      The command is `xelatex -synctex=1 -interaction=nonstopmode %.tex`. And the log:               This is XeTeX, Version 3.1415926-2.3-0.9997.5 (MiKTeX 2.9) (preloaded format=xelatex 2012.9.17)  17 SEP 2012 10:08     entering extended mode     **fontspec_bug.tex     ("C:\Users\Kotya\Documents\Dropbox\job search\fontspec_bug.tex"     LaTeX2e      Babel  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-2009-06-19, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat     vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm     an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,      romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis     sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u     senglishmax, welsh, loaded.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count80     \c@section=\count81     \c@subsection=\count82     \c@subsubsection=\count83     \c@paragraph=\count84     \c@subparagraph=\count85     \c@figure=\count86     \c@table=\count87     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontspec\fontspec.sty"     Package: fontspec 2011/02/26 v2.1f Advanced font selection for XeLaTeX/LuaLaTeX               ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\expl3.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3names.sty"     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3bootstrap.sty"     Package: l3bootstrap 2012/07/16 v3991 L3 Experimental bootstrap code     )     Package: l3names 2012/07/16 v3990 L3 Namespace for primitives     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\misc\etex.sty"     Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)     \et@xins=\count88     )     Package: expl3 2012/09/05 v4205 L3 Experimental code bundle wrapper          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3basics.sty"     Package: l3basics 2012/08/27 v4144 L3 Basic definitions     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3expan.sty"     Package: l3expan 2012/08/28 v4149 L3 Argument expansion     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3tl.sty"     Package: l3tl 2012/09/05 v4201 L3 Token lists     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3seq.sty"     Package: l3seq 2012/08/14 v4092 L3 Sequences and stacks     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3int.sty"     Package: l3int 2012/08/17 v4121 L3 Integers     \c_max_int=\count89     \l_tmpa_int=\count90     \l_tmpb_int=\count91     \g_tmpa_int=\count92     \g_tmpb_int=\count93     \l_tmpc_int=\count94     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3quark.sty"     Package: l3quark 2012/08/08 v4065 L3 Quarks     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3prg.sty"     Package: l3prg 2012/08/16 v4114 L3 Control structures     \g__prg_map_int=\count95     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3clist.sty"     Package: l3clist 2012/08/15 v4102 L3 Comma separated lists     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3token.sty"     Package: l3token 2012/08/08 v4069 L3 Experimental token manipulation     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3prop.sty"     Package: l3prop 2012/09/03 v4190 L3 Property lists     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3msg.sty"     Package: l3msg 2012/08/28 v4147 L3 Messages     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3file.sty"     Package: l3file 2012/08/15 v4101 L3 File and I/O operations     \l__ior_stream_int=\count96     \l_iow_line_count_int=\count97     \l__iow_target_count_int=\count98     \l__iow_current_line_int=\count99     \l__iow_current_word_int=\count100     \l__iow_current_indentation_int=\count101     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3skip.sty"     Package: l3skip 2012/08/17 v4121 L3 Dimensions and skips     \l_tmpa_dim=\dimen103     \l_tmpb_dim=\dimen104     \g_tmpa_dim=\dimen105     \g_tmpb_dim=\dimen106     \l_tmpa_skip=\skip43     \l_tmpb_skip=\skip44     \g_tmpa_skip=\skip45     \g_tmpb_skip=\skip46     \c_zero_muskip=\muskip10     \c_max_muskip=\muskip11     \l_tmpa_muskip=\muskip12     \l_tmpb_muskip=\muskip13     \g_tmpa_muskip=\muskip14     \g_tmpb_muskip=\muskip15     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3keys.sty"     Package: l3keys 2012/07/16 v3991 L3 Experimental key-value interfaces     \g__keyval_level_int=\count102     \l_keys_choice_int=\count103     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3fp.sty"     Package: l3fp 2012/08/28 v4151 L3 Floating points     \c__fp_leading_shift_int=\count104     \c__fp_middle_shift_int=\count105     \c__fp_trailing_shift_int=\count106     \c__fp_big_leading_shift_int=\count107     \c__fp_big_middle_shift_int=\count108     \c__fp_big_trailing_shift_int=\count109     \c__fp_Bigg_leading_shift_int=\count110     \c__fp_Bigg_middle_shift_int=\count111     \c__fp_Bigg_trailing_shift_int=\count112     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3box.sty"     Package: l3box 2012/07/16 v3991 L3 Experimental boxes     \l_tmpb_box=\box26     \g_tmpa_box=\box27     \g_tmpb_box=\box28     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3coffins.sty"     Package: l3coffins 2012/08/14 v4092 L3 Coffin code layer     \l__coffin_internal_box=\box29     \l__coffin_internal_dim=\dimen107     \l__coffin_offset_x_dim=\dimen108     \l__coffin_offset_y_dim=\dimen109     \l__coffin_x_dim=\dimen110     \l__coffin_y_dim=\dimen111     \l__coffin_x_prime_dim=\dimen112     \l__coffin_y_prime_dim=\dimen113     \c_empty_coffin=\box30     \l__coffin_aligned_coffin=\box31     \l__coffin_aligned_internal_coffin=\box32     \l_tmpa_coffin=\box33     \l_tmpb_coffin=\box34     \l__coffin_display_coffin=\box35     \l__coffin_display_coord_coffin=\box36     \l__coffin_display_pole_coffin=\box37     \l__coffin_display_offset_dim=\dimen114     \l__coffin_display_x_dim=\dimen115     \l__coffin_display_y_dim=\dimen116     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3color.sty"     Package: l3color 2012/08/29 v4156 L3 Experimental color support     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3luatex.sty"     Package: l3luatex 2012/08/03 v4049 L3 Experimental LuaTeX-specific functions     \g__cctab_allocate_int=\count113     \g__cctab_stack_int=\count114     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3candidates.sty"     Package: l3candidates 2012/05/12 v3633 L3 Experimental additions to l3kernel     \l__box_top_dim=\dimen117     \l__box_bottom_dim=\dimen118     \l__box_left_dim=\dimen119     \l__box_right_dim=\dimen120     \l__box_top_new_dim=\dimen121     \l__box_bottom_new_dim=\dimen122     \l__box_left_new_dim=\dimen123     \l__box_right_new_dim=\dimen124     \l__box_internal_box=\box38     \l__coffin_bounding_shift_dim=\dimen125     \l__coffin_left_corner_dim=\dimen126     \l__coffin_right_corner_dim=\dimen127     \l__coffin_bottom_corner_dim=\dimen128     \l__coffin_top_corner_dim=\dimen129     \l__coffin_scaled_total_height_dim=\dimen130     \l__coffin_scaled_width_dim=\dimen131     ))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3packages\xparse\xparse.sty"     Package: xparse 2012/09/05 v4205 L3 Experimental document command parser     \l__xparse_current_arg_int=\count115     \l__xparse_m_args_int=\count116     \l__xparse_mandatory_args_int=\count117     \l__xparse_processor_int=\count118     \l__xparse_v_nesting_int=\count119     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\binhex\binhex.tex")     \l_fontspec_script_int=\count120     \l_fontspec_language_int=\count121     \l_fontspec_strnum_int=\count122     Variant \tl_gset:cV already defined; not changing it on line 83          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\calc.sty"     Package: calc 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)     \calc@Acount=\count123     \calc@Bcount=\count124     \calc@Adimen=\dimen132     \calc@Bdimen=\dimen133     \calc@Askip=\skip47     \calc@Bskip=\skip48     LaTeX Info: Redefining \setlength on input line 76.     LaTeX Info: Redefining \addtolength on input line 77.     \calc@Ccount=\count125     \calc@Cskip=\skip49     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"     Package: xkeyval 2008/08/13 v2.6a package option processing (HA)          ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"     \XKV@toks=\toks14     \XKV@tempa@toks=\toks15     \XKV@depth=\count126     File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)          ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\keyval.tex")))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontspec\fontspec-patches.sty"     Package: fontspec-patches 2011/02/26 v2.1f Advanced font selection for XeLaTeX/     LuaLaTeX          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fixltx2e.sty"     Package: fixltx2e 2006/09/13 v1.1m fixes to LaTeX     LaTeX Info: Redefining \em on input line 420.     )     LaTeX Info: Redefining \em on input line 22.     LaTeX Info: Redefining \emph on input line 29.     LaTeX Info: Redefining \- on input line 32.          ! Undefined control sequence.     l.52 \char_make_active:n                             {"20}%     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.               ! LaTeX Error: Missing \begin{document}.          (THE REST OF THE LOG SKIPPED BY texnic)


title: What is the right way to use hyperref options with Tufte handout class?

text: **EDIT** : I must clarify that the example below _works_ with tufte- latex-3.5.0, but doesn't work in older versions. The accepted solution is a good workaround for older versions (<3.0.0) were `nohyper` option doesn't work. * * * ( **EDIT** : Older version of) `tufte-handout` class doesn't seem to play well with hyperref, probably because `tufte-handout` loads `hyperref` with its own set of options. How can I set up the document so that hyperref can be loaded normally? I thought that the option `nohyper` would solve the problem but it doesn't. _The idea is to be able to have a simple document that compiles correctly whether I change`tufte-handout` by `article` in the `\documentclass` command._ Here is an example code (not working)               \documentclass[nohyper]{tufte-handout}      % but works with \documentclass{article}     \usepackage[hyperfootnotes=false, pdftex, pdfauthor={}, pdftitle={ hyperref.pdf}, pdfsubject={subject}, pdfkeywords={}]{hyperref}      % but works with \usepackage[hyperfootnotes=false,]{hyperref}     \begin{document}     Body text.     \end{document}


title: Integer operations on cross references

text: I would like to perform integer operations on a cross reference.               \documentclass{article}     \usepackage{etoolbox}          \begin{document}          hello \label{here}          \ifnumequal{\pageref{here}}{1}{You are on the 1st page}{...}          \end{document}      I get _Missing number, treated as zero_ , even on a second pass (when the reference is not `??` anymore). NB: In this MWE, one could obviously use `\thepage`. But this is not an option in the real document.


title: Biblatex: change order of year, year without brackets in numeric-style

text: I was wondering if some one knows how I can move the year (and without any brackets) right after the journal name? I should look like this: > [1] R. Chevalier, B. Colsch, C. Afonso, N. Baumann, J.-C. Tabet, J.-M. > Mallet, Tetrahedron Letter **2006** , 62, 563.               \documentclass{scrartcl}      \usepackage[          backend=biber,          style=numeric      ]{biblatex}           \usepackage[ngerman]{babel}      \usepackage[babel, german=quotes]{csquotes}      \renewbibmacro{in:}{}           \ExecuteBibliographyOptions{%      bibencoding=utf8,      bibwarn=true,      sortlocale=de_DE,      isbn=false,      url=false,      doi=false,      eprint=false,      clearlang=true,      maxbibnames=99,      firstinits=true,      sorting=none,      }      \DeclareFieldFormat[article]{title}{}      \DeclareFieldFormat[article]{number}{}      \DeclareFieldFormat{date}{\bfseries{#1}}      \DeclareFieldFormat{pages}{\mkfirstpage[{\mkpageprefix[bookpagination]}]{#1}}      \DefineBibliographyStrings{german}{%         page = {{}{}},         pages = {{}{}},      }      \bibliography{Lit/OCPrakt}                \begin{document}      blablabla\cite{Bromierung}      \printbibliography      \end{document}      .bib-file:               @article{Bromierung,         Author = {Reynald Chevalier and Beno{\^\i}t Colsch and Carlos Afonso and Nicole Baumann and Jean-Claude Tabet and Jean-Maurice Mallet},         Date-Added = {2013-10-28 10:46:57 +0000},         Date-Modified = {2013-11-11 20:26:08 +0000},         Journal = {Tetrahedron Letter},         Pages = {563-577},         Read = {0},         Title = {Synthetic sulfated glucuronosyl paragloboside (SGPG) and its use for the detection of autoimmune peripheral neuropathies},         Volume = {62},         Year = {2006}}


title: How to build my own TeXLive Distribution scheme?

text: how can I build my own TeXLive Distribution scheme? I needed a special scheme for distributional reasons, which means to include only the packages needed and also for a better redistribution. To be more precise, we only use engines like lualatex, luatex and xelatex and their related packages. Also we use certain packages from different collections. It would nicer to build a scheme and not to install something "portable" and after that install different packages needed.


title: A basic issue involving too much space after an exclamation mark followed by a closing parenthesis

text: Kindly consider this:               here is some (great!) text.      For some reasons, I am experiencing a much greater space between `!)` and `text` than between `some` and `(`. The latter space is normal. The former space is abnormally large; it looks like a space that appears after a sentence (i.e. after a dot). How can I fix this issue?


title: How to generate a TeX-file containing information of all installed packages of an actual TeXLive

text: Is it possible to generate a TeX-file with all information needed about the installed packages of a TeXLive distribution? If you want only certain elements of the table, you can use this snippet. :-)               \begin{filecontents*}{\jobname.lua}      dofile( assert( kpse.find_file( "tlpdb.tlu", "texmfscripts" ) ) )      tlpdb = read_tlpdb( kpse.var_value("SELFAUTOPARENT") )      for name, pkg in pairs( tlpdb ) do        texio.write_nl( name )       tex.print( "\\section*{" )       tex.print( name )       tex.print( "}" )       tex.print( "" )       if pkg.longdesc ~= nil then         tex.write( tostring(pkg.longdesc) )         tex.print( "" )       end       if pkg. revision ~= nil then         tex.write( tostring(pkg.longdesc) )         tex.print( "" )       tex.print( "\\clearpage" )     end     \end{filecontents*}


title: PSTricks raises an error while using RightAngleType=german

text: I moved some files from one computer to another. The first computer was able to compile all the files without errors. The second computer is not able to compile these files as soon as a I change the `RightAngleType` from default or suisseromand to german. The `default` and `suisseromand` option works well, but the `german` one raises an error.               \begin{pspicture}(0,0)(9,9)       \psset{unit=2cm,linewidth=1.5pt, PointSymbol=none}       \pstTriangle[DrawCirABC=true,PosAngleC=90](0.9,1){A}(2.9,1){B}(1.8,2){C}       \pstRightAngle[linewidth=1pt,RightAngleType=german]{A}{C}{B}     \end{pspicture}      I use MikTex 2.9 and I compile the file from Latex -> PS -> PDF. The Error Log looks like:               ! Argument of \undef has an extra }.     <inserted text>                  \par      l.37 ...ewidth=1pt,RightAngleType=german]{A}{C}{B}     I've run across a `}' that doesn't seem to match anything.     For example, `\def\a#1{...}' and `\a}' would produce     this error. If you simply proceed now, the `\par' that     I've just inserted will cause me to report a runaway     argument that might be the root of the problem. But if     your `}' was spurious, just type `2' and it will go away.     Runaway argument?     ! Paragraph ended before \undef was complete.     <to be read again>                     \par      l.37 ...ewidth=1pt,RightAngleType=german]{A}{C}{B}     I suspect you've forgotten a `}', causing me to apply this     control sequence to too much text. How can we recover?     My plan is to forget the whole thing and hope for the best.      In my configuration file I load the following packages:               \usepackage{tikz}     \usetikzlibrary{calc,through,backgrounds, intersections,shapes.geometric,positioning}     \usepackage{pgfplots}     \usepgfplotslibrary{polar}     \usepackage{tkz-euclide}     \usetkzobj{all}     \usepackage{pstricks,pstricks-add}     \usepackage{pst-eucl,pst-bar, pst-plot}      Maybe there are problems using this packages together? I hope somebody has an idea how to solve the problem.


title: Fonts in beamer

text: I've searched these forums like crazy, and I can't find an answer. I'm trying to create a beamer presentation, and I simply can't set the math fonts to be the regular latex math fonts. I used               \usefonttheme[onlymath]{serif}      or               \usefonttheme{serif}      or               \documentclass[mathserif]{beamer}      and all these do the same - almost perfect job, except for the character `$v$` which is always rendered very similar to `$\nu$`, and it's crucial in my presentation that they'll be distinguishable. Any suggestions?


title: How do I put "complex" multiline things as 1 cell in a table?

text: Trying to group up different multi line formulas and text that I have to make space on the page, my first thought was to place them as a cell in a table, but trying to do that naively does not work               \begin{tabular}{l l}         \textbf{Removing Left Recursion}              $A \rightarrow A \alpha\ |\ \beta$\\         then\\         $A \rightarrow \beta A^{'}$\\         $A \rightarrow \alpha A^{'}\ |\ \epsilon$\\     &         \textbf{Left Factor}              $A \rightarrow \alpha \beta_{1}\ |\ \alpha \beta_{2}$\\         then\\         $A \rightarrow \alpha \beta^{'}$\\         $\beta^{'} \rightarrow \beta_{1}\ |\ \beta_{2}$      \\     \end{tabular}      How can I group these things up to take less space?


title: Misalignment chapter titles with hang option of titlesec package and redefined \cleardoublepage

text: When I redefine the command \cleardoublepage to include the words "This page has been intentionally left blank", the titles of the chapters are misaligned.               \documentclass{book}     \usepackage[a4paper, top=14mm, bottom=10mm, inner=15mm, outer=13mm, bindingoffset=10mm, includefoot, includehead, headsep=14mm, footskip=14mm]{geometry}     \usepackage{titlesec}     \titleformat{\chapter}[hang]{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter.}{1em}{}           \newcommand*{\blankpage}{%     \vspace*{\fill}     \centering [This page is intentionally left blank]     \vspace{\fill}}     \makeatletter     \renewcommand*{\cleardoublepage}{\clearpage\if@twoside \ifodd\c@page\else     \blankpage     \thispagestyle{empty}     \newpage     \if@twocolumn\hbox{}\newpage\fi\fi\fi}     \makeatother     \makeatletter          \begin{document}     \chapter{First chapter title.}     \chapter{Misaligned chapter title illustrating the bug I'm experiencing.}     \end{document}      ![enter image description here](http://i.stack.imgur.com/yzZnv.jpg)


title: Is there a package to differently color nested expressions in the output?

text: Say I have an expressions like `$(\sin(x-3(z^{(x-2)^2}))+1)^2$` with many nested expressions. To better visualize this in the output (and to help finding missing delimiters when proof-reading) I'd like to have nested expressions and their delimiter show up in a different color than its surrounding. Is there a package for that purpose?


title: How do I cancel/strike out a line?

text: I have drawn a long line with an arrow from one node to another. How do I strike out or cancel that line? What I want is something similar to how `\not` cancels `\to` in `A \not\to B`, e.g. ![What I want](http://i.stack.imgur.com/2bqX9.png) Here's what I got so far and what I want to mimic: ![Example of what I got](http://i.stack.imgur.com/ert6M.png)               \documentclass{article}          \usepackage{tikz}          \begin{document}          \begin{tikzpicture}       \node (a) {\(A\)};       \node (b) at (3,0) {\(B\)};       \draw[->] (a) to (b);% I want this line cancelled/striked out     \end{tikzpicture}          \(A \not\to B\)          \end{document}


title: Why won't ball show up? \ball is undefined control sequence

text: %A.DOCUMENTCLASSes.     %The document class produces a style for the document. %Most papers work fine with the next one.     %For letter style see the letter document on the website.     % For presentations, see a beamer document on the website. %     %\documentclass[10pt]{article}      \documentclass{beamer}      %\documentclass[10pt]{letter}     %B.PACKAGES to ADD     %The next commands are for latex packages which we sometimes use. %     \usepackage[ansinew]{inputenc}     \usepackage{color}     \usepackage{enumerate,latexsym}     \usepackage{amsmath,amssymb}     \usepackage{graphicx}     \usepackage{amsxtra}     \usepackage{amsfonts}     \usepackage{enumitem}     \usepackage{amsthm}     \usepackage{showkeys}     \usepackage{paralist}     %COMMENT: The next 2 software packages are only for presentations. %     \usepackage{beamerthemeshadow}     \setbeamertemplate{navigation symbols}{}     %C. PAGE LAYOUT.     %The following commands are not for presentations!     %These commands are for creating margins, text width, text length %and double spacing for papers.     %     %\setlength{\oddsidemargin}{10pt} \setlength{\evensidemargin}{10pt} %\setlength{\textwidth}{430pt}     %\textwidth 15cm     %\oddsidemargin .2cm \evensidemargin .2cm     %\textheight 20cm     %\topmargin -.3cm     %\renewcommand{\baselinestretch}{2}     %D.COLORS.     %These commands are for colors for papers and presentations. %Note that \rrr makes RED, %\bbb makes BLUE,     %\ppp makes PURPLE and \ggg makes GREEN.      \definecolor{b}{rgb}{.1,.1,.7}     \definecolor{rr}{rgb}{.8,0,.3}     \definecolor{g}{rgb}{0,.5,0}     \definecolor{pp}{rgb}{.5,0,.7}     \definecolor{r}{rgb}{.6,0,.3} \definecolor{y}{rgb}{.9,.99,.9} \newcommand{\rrr}{\textcolor{rr}} \newcommand{\bbb}{\textcolor{b}} \newcommand{\ppp}{\textcolor{pp}} \renewcommand{\ggg}{\textcolor{g}} \newcommand{\grr}{\ggg} \newcommand{\bbl}{\bbb}     %E.ABBREVIATIONS.     %The next commands are abbreviations used frequently % especially in multi-variable calculus.     %     \newcommand{\vr}{{\ppp{\bf r}}} \newcommand{\va}{\ppp{\bf a}} \newcommand{\vi}{{\rrr{\bf i}}} \newcommand{\vj}{{\rrr{\bf j}}} \newcommand{\vk}{{\rrr{\bf k}}} \newcommand{\vu}{\rrr{\bf u}} \newcommand{\vb}{\bbb{\bf b}} \newcommand{\vv}{\bbl{\bf v}} \newcommand{\vn}{{\ppp{\bf n}}} \newcommand{\vw}{\ppp{\bf w}} \newcommand{\rR}{\rrr{\bf R}} \newcommand{\rA}{{\rrr{\bf A}}} \newcommand{\rrth}{{\bf \rR}^{\bf 3}} \newcommand{\rrtw}{{\bf \rR}^{\bf 2}} \renewcommand{\v}{\overset{\longrightarrow}}     %F.NEGATIVE SPACE     %The next 3 commands are for negative spacing and are %used frequently in presentations. \newcommand{\vsp}{\vspace{-.1cm}} \newcommand{\vs}{\vspace{-.2cm}} \newcommand{\vspa}{\vspace{-.3cm}}     %G. NUMBERED THEOREMS, DEFINITIONS,...     %These commands are for papers only.     %(for presentations, they need to be commented out).     %They create numbered theorems and other numbered objects like definitions % The ``section'' part produces numbering by section.     %If you remove that part, then the section number %where the "theorem" is located will not appear     %in the numbering of the statement of the "theorem". %     %\newtheorem{theorem}{Theorem}[section] \newtheorem{definition}[theorem]{Definition} %\newtheorem{definition}{Definition}[section]     %G'.     %Some commands mostly for presentations. %     %\newtheorem{conjecture}{Conjecture}      %\newtheorem{history}{\large History}      %\newtheorem{question}[theorem]{Question}      %\newtheorem{Case}{Case}      %\newtheorem{notation}{Notation}     %H.SHORTHANDS \def and \newcommand.     %The command \def is used create abbreviations for     %frequently used symbols like the math symbol for capital R     %that we use to denote the real numbers or the Greek letter theta.     %For longer abbreviations or commands, we usually use the command %\newcommand. For example, %instead of typing \end{document}     %I usually type \ed instead.     %It may not be a good idea to use too many of     %these abbreviations if someone else (a coauthor) is     %reading your tex document, they may not understand.     \def\R{\mathbb{R}}     \def\t{\theta}     \def\rth{\mathbb{R}^3}     \newcommand{\ben}{\begin{enumerate}}     \newcommand{\bit}{\begin{itemize}}      \newcommand{\een}{\end{enumerate}}      \newcommand{\eit}{\end{itemize}}      \newcommand{\ed}{\end{document}}     %X. GRAY shaded BLOCKS in presentations.     %The next 2 commands are for creating gray shaded blocks in presentations.      \newcommand{\bblock}{\begin{block}}      \newcommand{\eblock}{\end{block}}     \setbeamertemplate{itemize items}[ball]     \begin{document}     \begin{frame}     \begin{exampleblock}{Example (This is a very popular midterm exam problem)}     Find an \textcolor{b}{equation of the plane} which contains the points \\     $P(-1,2,1)$, $Q(1,-2,1)$, and $R(1,1,-1)$.     \end{exampleblock}     \begin{block}{Solution:}     {\bf\Large Method 1.}\\     \begin{itemize}     \item[\ball] 1     \item[\ball] 2     \item[\ball] 3     \end{itemize}     \end{block}     \end{frame}     \end{document}


title: Modify moderncv header

text: Is there a possibility to change the order of photo and name in the `moderncv` class using `\moderncvtheme[blue]{casual}`? Right now it looks like this:               PHOTOPHOTO     PHOTOPHOTO     PHOTOPHOTO     PHOTOPHOTO     PHOTOPHOTO                      FirstName LastName     **___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ _** But actually I want it to look like this:                                                       PHOTOPHOTO                                             PHOTOPHOTO                                             PHOTOPHOTO                                             PHOTOPHOTO     FirstName LastName                      PHOTOPHOTO     **___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ __ ___ _** How can I do that?


title: To make the russians and greeks authors' surnames in small caps in biblatex

text: I'm writing a bachelor in French and when I cited books in Russian and Greek the authors' surnames wasn't displayed in footnotes and in bibliography in small caps, in the same text there are no such problems with surnames in Latin characters. I tried to add this code in preamble:               ...     \newfontfamily\greekfont[Script=Greek,Mapping=tex-text]{CMU Serif}     \newfontfamily\russianfont[Script=Cyrillic,Mapping=tex-text]{CMU Serif}     ...      and in bibliography entries like this:               @Book{AlKarapan,     author = {{Α}λέξανδρος Κ. \textgreek{Καραπαναγοπούλου}},     title = {Η Μεγάλη Σύνοδος της Ορθοδόξου Ανατολικής Εκκλησίας},     publisher = {auto-édition},     year = {\hbox{1990--1998}},     volumes = {6},     address = {Αθήνα}     }          @Inbook{CypinIstorijaRPC,     author = {{В}ладислав \textrussian{Цыпин}},     title = {История Русской Церкви 1917--1997},     chapter = {VIII},     publisher = {Издательство Спасо-Преображенского Валаамского монастыря},     address = {Москва},     date = {1997},     urldate = {2010-10-25},     url = {http://old.pravoslavie.by/podpod.asp?id=135&Session=10}     }      And I've got this: ![in footnotes](http://i.stack.imgur.com/H9Ku7.jpg) ![in the bibliography](http://i.stack.imgur.com/QCzNt.jpg) I don't know if it's right technically but it works for me. Does anybody have better ideas? All improvements and innovations ARE WELCOMED. :)))