title: pdftex.def Error: File logo-eps-converted-to.pdf not found

text: I am using the EPFL thesis template to write a LaTex document. I need to compile it using `pdfLaTex`. Also, I want to use these same template - I can't use any other template. I have many EPS figures which I am unable to include as it throws me the following error > Package epstopdf Info: Source file: (epstopdf) > > date: 2014-03-22 17:37:02 (epstopdf) size: 1694 > > bytes (epstopdf) Output file: > > (epstopdf) Command: > > -to.pdf images/logo> (epstopdf) \includegraphics on input line 14. > > runsystem(repstopdf--outfile=images/logo-eps-converted-to.pdf > images/logo.eps)...executed safely (allowed). > > Package epstopdf Info: Result file: . > > ! Package pdftex.def Error: File `images/logo-eps-converted-to.pdf' not > found. I have included the `graphicx` and `epstopdf` packages but to no change.I have installed MacTex packages and I am using TexStudio as my LaTex editor. Is there a way I can include EPS figures without running into these problems? Please note that if I don't use this template and write a normal LaTex document these problems do not arise. I have also tried with other thesis templates and I receive exactly the same problem. I would like to find a solution for such a thesis template itself. Thanks! **Edit1** Someone has asked me for a piece of code. The zip file for the EPFL thesis template has a file named `titlepage.tex`. This file includes the EPFL logo (as PDF) within LaTex. I just need to include an `EPS` image. Here's the relevant code but it's a standard piece of code to include figures in LaTex. `logo` is the EPS image.               \begin{tabular} {cc}     \parbox{0.3\textwidth}{\includegraphics[width=4cm]{images/logo}}     &      I am able to include `PNG`, `PDF` and `JPG` images but I want to include `EPS` images for many reasons. **Edit2** This seems to be a TexStudio issue (also mentioned here). It works absolutely good with TexShop. Strange!


title: What is wrong with the following latex code?

text: I have written this code to formulate the algorithm for merging two arrays, but I get an error.               \begin{algorithm}[t]     \caption{Serial Merge}     \label{alg:insert}     \begin{algorithmic}[1]     \Require Two sorted arrays $A$ and $B$     \Ensure Sorted Array $C$     \State $lA \leftarrow length(A)$     \State $lB \leftarrow length(B)$     \State $x \leftarrow 0$     \State $y \leftarrow 0$     \State $z \leftarrow 0$           \While { $x \neq lA$ and $y \neq lB$ }      \If { $A[x] < $B[y]$}         \State $C[z++] \leftarrow A[x++]$       \Else             \State $C[z++] \leftarrow B[y++]$         \EndIf     \EndWhile          \While { $x \neq lA$ }         \State $C[z++] \leftarrow A[x++]$     \EndWhile          \While { $y \neq lB$ }         \State $C[z++] \leftarrow B[y++]$     \EndWhile          \end{algorithmic}     \end{algorithm}      Error:               ! LaTeX Error: Command \item invalid in math mode.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.15     \State                     $C[z++] \leftarrow A[x++]$     ?       It works if I remove the surrounding if else statements. What am I doing wrong?


title: How to compile on a Mac after upgrade to Maverick (OS 10.9.2)

text: When I try compiling a document after upgrading to Maverick, I get the following error: "Can't find required tool. `/usr/texbin/pdflatex` does not exist. TeXShop is a front end for TeX, but you also need a TeX distribution. Perhaps such a distribution was not installed or was removed during a system upgrade. If so, go to http://tug.org/MacTeX and follow the instructions to (re)install MacTeX. A less likely possibility is that a tool path is incorrectly configured in TeXShop preferences. This can happen if you are using the macports or fink distributions." I see from a previous thread that there is a package called FixMacTeX2013.pkg that would fix this problem. However, it does not seem to be on my system and I cannot find where to download it. Any help would be appreciated, Thanks.


title: Using natbib with agsm

text: I am using `natbib` and `agsm` for harvard style referencing. My related code is               \usepackage{natbib}     \bibliographystyle{agsm}      Then I am using `\citep{}` for citations. My problem is that in text I am getting `(Author 2012)` but I want `(Author, 2012)` for multiple authors it is `(Author1 2012, Author2 2010)` and I want `(Author1, 2012; Author2, 2010)`. Any Ideas how to do that?


title: Use input inside a spreadtab environment with calculations

text: My aim is to create a command for inserting tables, which will format the table, and add calculations on its values, given a file containing the raw data of the rows only.               \begin{spreadtab}{{tabular}{lcc}}     \toprule     @ Product name & @ Price & @ Count \\     \midrule     \input{products}     \midrule     @ Total & :={sumprod(b2:[0,-1];c2:[1,-1])} & sum(c2:[0,-1])\\     \bottomrule     \end{spreadtab}      where `products.tex` includes               @ Plant &  60 &  2 \\     @ Book  &  90 &  4 \\     @ Other & 100 & 10 \\      Pasting the lines of `products.tex` into the matching place above works smoothly. ![Table using raw text](http://i.stack.imgur.com/Lv42T.png) I wish to have the above code as a command, so I can use the same code to enter different table values, without repeating the heading and calculation definitions. However, the end result of using `input` always leaves the summation values as 0, and the `@` letter is now part of the text: ![Table after using input](http://i.stack.imgur.com/0A10q.png) I guess the processing by spreadtab is done before the input is inserted - but I wonder if there is a way to solve it. Following this question: Cannot use \toprule when doing \input inside tabular -- why?, I tried to add primitive tex input into the spreadtab environment. Meaning, I used               \makeatletter     \newcommand\primitiveinput[1]{\@@input #1 }     \makeatother      and replaced the line `\input{products}` with `\primitiveinput{products}`. But again no luck - I get the exact same output as using `input`. Any ideas?


title: ConTeXt: vertical spacing

text: I'm a bit confused about how to specify vertical whitespace. The following document works:               \setupwhitespace[line]     \setuphead[subsection]   [after={\blank[2*line]}]          \starttext          \subsection{Title}          \input tufte          \input tufte          \stoptext      But why can't I use `\setupwhitespace[2*line]`, and neither `\blank[0.5*line]`? Both result in an error. Meanwhile, `\setupwhitespace[5cm]` doesn't seem to have an effect. What I'm actually trying to achieve is having the vertical spacing between paragraphs (and subsections) `0.5*line`, or if that's not possible some specific centimeters.


title: How do i get the coordinates (east, west, north) of an ellipsoid? (code does work for rectangulars)

text: ![enter image description here](http://i.stack.imgur.com/mHI6K.png)                   \documentclass{report}     \usepackage{tikz}     \tikzset{add reference/.style={insert path={%     coordinate [pos=0,xshift=-0.5\pgflinewidth,yshift=-0.5\pgflinewidth] (#1 south west)      coordinate [pos=1,xshift=0.5\pgflinewidth,yshift=0.5\pgflinewidth]   (#1 north east)     coordinate [pos=.5] (#1 center)                             (#1 south west |- #1 north east)     coordinate (#1 north west)     (#1 center     |- #1 north east)     coordinate (#1 north)     (#1 center     |- #1 south west)     coordinate (#1 south)     (#1 south west -| #1 north east)     coordinate (#1 south east)     (#1 center     -| #1 south west)     coordinate (#1 west)     (#1 center     -| #1 north east)     coordinate (#1 east)        }}}       \begin{document}     \begin{tikzpicture}              \draw (1,0) rectangle (6,3) [add reference=R1];                % to verify if the points are good:         \tikzset{pt/.style={circle,fill=#1,inner sep=0mm,minimum size=4pt}}         \node[pt=red]    at (R1 south west){};         \node[pt=red]    at (R1 north west){};           \node[pt=red]    at (R1 north east){};         \node[pt=red]    at (R1 south east){};          \node[pt=black]  at (R1 center){};         \node[pt=orange] at (R1 west){};         \node[pt=orange] at (R1 south){};         \node[pt=orange] at (R1 east){};         \node[pt=orange] at (R1 north){};          \end{tikzpicture}          \begin{tikzpicture}              \draw (1,0) ellipse (1 and 1.5) [add reference=E1];                % to verify if the points are good:         \tikzset{pt/.style={circle,fill=#1,inner sep=0mm,minimum size=4pt}}         \node[pt=red]    at (E1 south west){};         \node[pt=red]    at (E1 north west){};           \node[pt=red]    at (E1 north east){};         \node[pt=red]    at (E1 south east){};          \node[pt=black]  at (E1 center){};         \node[pt=orange] at (E1 west){};         \node[pt=orange] at (E1 south){};         \node[pt=orange] at (E1 east){};         \node[pt=orange] at (E1 north){};          \end{tikzpicture}     \end{document}


title: How can I remove outer brackets without expanding content?

text: I'm trying to use `pgfkeys` to collect information that will be passed to a `clist`. But, I'm not able to get this to work correctly. It seems that I'm getting brackets around the list and is prevent `\clist_map_inline:Nn` from parsing its argument as desired. Here's a MWE:               \documentclass{article}     \usepackage{xparse}          \ExplSyntaxOn     \clist_new:N \l_ae_itemize_element_clist     \cs_new:Npn \_ae_itemize:n #1        {         \clist_set:Nn \l_ae_itemize_element_clist {#1}         \begin{itemize}           \clist_map_inline:Nn \l_ae_itemize_element_clist { \item ##1 }         \end{itemize}       }     \NewDocumentCommand{\aeItemizeElements}{m}       { \_ae_itemize:n {#1} }     \ExplSyntaxOff          \usepackage{pgfkeys}     \pgfkeys       {         /ae/list example/.cd,         title/.initial =,         content/.initial = {},       }          \def\aeSet#1{\pgfkeys{/ae/list example/.cd,#1}}     \def\aeGet#1{\pgfkeysvalueof{/ae/list example/#1}}          \NewDocumentCommand{\aeItemizeA}{ m }       {\aeSet{#1}%%'        \noindent\textbf{\aeGet{title}}%%'        \aeItemizeElements{\aeGet{content}}       }          \pagestyle{empty}     \begin{document}          \aeItemizeA{title=Works as expected,content=\textbf{only one item}}          \aeItemizeA{title=Not iterating over content,content={first item, second item}}          \end{document}      To get the second list to be formatted correctly, I could do something like               \clist_set:Nx \l_ae_itemize_element_clist {#1}      But that crashes on the first list because it's expanding the content. Is there a way to automatically strip away outer brackets, if they're there, while not expanding the content, or doing nothing if there are no outer brackets?


title: Problems with titlesec, hyperref, biblatex and tocbibind

text: I am using the `titlesec` package to change the section font to sans-serif. Unfortunately, this breaks the links to "unnumbered" sections both in the TOC and in the bookmarks sidebar of PDF readers. I am using the `tocbibind` package and the `heading=bibintoc` setting of `biblatex` to add both the bibliography and the list of figures to the TOC. In the following example, only the link to "Section" works. Clicking on "List of Figures" jumps to the TOC instead, clicking on "References" jumps to "Section". **foo.tex**               \documentclass{article}     \usepackage[sf,bf]{titlesec}     \usepackage[nottoc]{tocbibind}     \usepackage[backend=biber]{biblatex}     \usepackage{hyperref}          \addbibresource{foo.bib}          \begin{document}          \tableofcontents          \clearpage          \listoffigures          \clearpage          \section{Section}          \clearpage          \nocite{foo}          \printbibliography[heading=bibintoc]          \end{document}      **foo.bib** (only needed because `biblatex` otherwise complains about an empty bibliography)               @book{foo,     author = {foo},     title = {foo}     }      Any way to fix this?


title: Controlling exact position of equation numbers

text: I'm using the `fleqn` option to the `amsmath` package to position my equations a small fixed distance from the left hand margin, rather than centred. I think it would look better if the equation numbers were slightly indented from the right-hand margin, rather than flush against it as they are by default. So: How can I control the positioning of the equation numbers? I still want them on the right-hand side, I just want a little space between them and the margin. Here is a minimal working example to demonstrate the issue:               \documentclass{article}          \usepackage[fleqn]{amsmath}          \setlength{\mathindent}{0.5\parindent} % just a little bit of indentation for the equations          \begin{document}          % long paragraph so that you can see where the margin is:     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor     incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud     exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure     dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.     Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt     mollit anim id est laborum. Here is an equation:     \begin{equation}       \label{euler.eqn}       \exp\left(\frac{i\tau}{2}\right) = -1 \quad.     \end{equation}     Notice that the equation is indented from the left, but the number \eqref{euler.eqn}      is not indented from the right.          \end{document}


title: Table with rounded corners

text: I've taken an example of a very cool table from here and I've made some changes to suit my needs, the problem is that the table it's not correctly rounded: ![enter image description here](http://i.stack.imgur.com/U6RSx.png) Unfortunately it doesn't seem to exist a rectagle element when you can only round some corners. Here's MWE:               \documentclass[12pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[top=2.5cm, bottom=4cm, inner=2.5cm, outer=3.5cm]{geometry}          \usepackage{times}     \renewcommand{\rmdefault}{phv} % Arial     \renewcommand{\sfdefault}{phv} % Arial     \usepackage[T1]{fontenc}     \usepackage{textcomp} % necesario para el símbolo €          \usepackage[usenames,dvipsnames]{xcolor}     \usepackage[pdftex]{graphicx}     \usepackage{caption,subcaption}     \setlength\textfloatsep{1.7\baselineskip plus 0.2\baselineskip minus 0.5\baselineskip}     \setlength\intextsep{2\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip}          \usepackage{environ} %lo usaré para crear el environ de tabla colorida          \usepackage{tabularx}     \usepackage{booktabs} % Contiene el comando \midrule     \usepackage{colortbl}     \usepackage{tikz}     \usetikzlibrary{patterns}     \usetikzlibrary{backgrounds,fit,calc}     \usetikzlibrary{%        decorations.fractals%       ,decorations.pathmorphing%       ,shadows%     }     \usetikzlibrary{decorations.pathmorphing}     \usetikzlibrary{decorations.text}     \usetikzlibrary{decorations.shapes} %para curvar texto     \usetikzlibrary{shapes,positioning} %para los flow charts     \usetikzlibrary{shapes,arrows,chains}     \pgfdeclarelayer{background}     \pgfdeclarelayer{foreground}     \pgfsetlayers{background,main,foreground}     \usetikzlibrary{intersections}                    \colorlet{TablaBordeSuperior}{BurntOrange} %\definecolor{TablaBordeSuperior}{cmyk}{0,0.51,1,0} % BurntOrange     \colorlet{TablaBordeInferior}{Bittersweet} %\definecolor{TablaBordeInferior}{cmyk}{0,0.75,1,0.24} % Bittersweet     \colorlet{TablaCentroSuperior}{blue!1}     \colorlet{TablaCentroInferior}{blue!20}     \colorlet{FuenteCabeceraTabla}{white}     \newcommand{\fuentecabecera}[1]{\textcolor{FuenteCabeceraTabla}{\textbf{#1}}}          \newcommand{\encabezadoUnaLineaSuperior}{0.8}     \newcommand{\encabezadoUnaLineaInferior}{0.8}     \newcommand{\espaciadoCabeceraCuerpoUnaLinea}{0.5em}     \newcommand{\encabezadoDosLineasSuperior}{1.3}     \newcommand{\encabezadoDosLineasInferior}{1.2}     %\newcommand{\espaciadoCabeceraCuerpoDosLineas}{1.5em} %hay que aumentar el valor de 0.5 a 1.5 puesto que la cabecera ocupa dos líneas     \newcommand{\espaciadoCabeceraCuerpoDosLineas}{2em}     \newcommand{\encabezadoTresLineasSuperior}{1.8}     \newcommand{\encabezadoTresLineasInferior}{1.8}     \newcommand{\espaciadoCabeceraCuerpoTresLineas}{0.5em}     \newcommand{\encabezadoSuperior}{\encabezadoUnaLineaSuperior} %por defecto una línea     \newcommand{\encabezadoInferior}{\encabezadoUnaLineaInferior} %por defecto una línea     \newcommand{\espaciadoCabeceraCuerpo}{\espaciadoCabeceraCuerpoUnaLinea} %por defecto el de una línea          \newcommand{\encabezadoUnaLinea}{         \renewcommand{\encabezadoSuperior}{\encabezadoUnaLineaSuperior}         \renewcommand{\encabezadoInferior}{\encabezadoUnaLineaInferior}         \renewcommand{\espaciadoCabeceraCuerpo}{\espaciadoCabeceraCuerpoUnaLinea}}     \newcommand{\encabezadoDosLineas}{         \renewcommand{\encabezadoSuperior}{\encabezadoDosLineasSuperior}         \renewcommand{\encabezadoUnaLineaInferior}{\encabezadoDosLineasInferior}         \renewcommand{\espaciadoCabeceraCuerpo}{\espaciadoCabeceraCuerpoDosLineas}}     \newcommand{\encabezadoTresLineas}{         \renewcommand{\encabezadoSuperior}{\encabezadoTresLineasSuperior}         \renewcommand{\encabezadoUnaLineaInferior}{\encabezadoTresLineasInferior}         \renewcommand{\espaciadoCabeceraCuerpo}{\espaciadoCabeceraCuerpoTresLineas}}     %estos tres últimos comandos gestionan si el encabezado será de una línea, de dos o de tres          \newif\iflineaResaltado     \lineaResaltadofalse     \newcommand{\pieInferiorUno}{-5.2}     \newcommand{\pieInferiorDos}{3.45}     \newcommand{\resaltarPie}[2]{\lineaResaltadotrue\renewcommand{\pieInferiorUno}{#1}\renewcommand{\pieInferiorDos}{#2}}          \NewEnviron{tablacolorida}[2]{%     %  \vspace*{-2em}         \begin{center}             \captionsetup{type=table} %para que no me de error el posterior comando \captionof             \begin{tikzpicture}                 \node (tbl) {                      \BODY                      };                 \begin{pgfonlayer}{background}                     \draw[rounded corners,top color=TablaBordeSuperior,bottom color=TablaBordeInferior, draw=white] ($(tbl.north west)+(0.14,0)$)                         rectangle ($(tbl.north east)-(0.13,\encabezadoSuperior)$); %el top color indica el color principal de la línea de cabecera %para tener encabezado de dos líneas (0.13,1.3)                     \draw[rounded corners,top color=white,bottom color=TablaBordeInferior,                         middle color=TablaBordeSuperior,draw=white!20] ($(tbl.south west)                         +(0.13,0.5)$) rectangle ($(tbl.south east)-(0.13,0)$);                     \draw[top color=TablaCentroSuperior,bottom color=TablaCentroInferior,draw=white] %el top color indica el color de inicio de las filas del medio, el "white" hace que el borde externo de las filas no se pinte                         ($(tbl.north east)-(0.13,\encabezadoInferior)$) %con el parámetro 0.8 controlamos la altura de la línea de cabecera  %para tener encabezado de dos líneas (0.13,1.2)                         rectangle ($(tbl.south west)+(0.13,0.2)$); %el 0.2 controla el grosor de la línea decorativa inferior                          \iflineaResaltado                     \draw[top color=TablaBordeSuperior,bottom color=TablaBordeSuperior, draw=white] ($(0,\pieInferiorUno)+(7.5,2)$)                         rectangle ($(-0.5,1)-(7,\pieInferiorDos)$);                      % ($(0,-4.8)+(7.5,2)$) ($(-0.5,1)-(7,3.1)$)                     % ($(0,-5.2)+(7.5,2)$) ($(-0.5,1)-(7,3.45)$) %una fila más abajo                     \fi                 \end{pgfonlayer}             \end{tikzpicture}             \captionof{table}{#1} \label{tab:#2}          \end{center}         %\vspace*{-1em}     }          \begin{document}          \begin{tablacolorida}{Hitos del proyecto}{hitosProyecto}         \begin{tabularx}{1\textwidth}{m{0.10\linewidth} m{0.34\linewidth} m{0.48\linewidth}}             \arrayrulecolor{purple}             \centering\fuentecabecera{Hito} & \centering\fuentecabecera{Fecha} & \centering\arraybackslash\raisebox{-0.3em}{\fuentecabecera{Descripción}} \\[+\espaciadoCabeceraCuerpo]             \centering\textbf{H1} & \centering Mes 0 & \centering\arraybackslash Comienzo del proyecto \\ \midrule             \centering\textbf{H2} & \centering 2 meses y 3 semanas & \centering\arraybackslash Fin del estudio del arte \\ \midrule             \centering\textbf{H3}  & \centering 6 meses y 1 semana & \centering\arraybackslash Finalización de la plataforma de virtualización \\ \midrule             \centering\textbf{H4}  & \centering 9 meses & \centering\arraybackslash Finalización de lo concerniente a DTN \\ \midrule             \centering\textbf{H5}  & \centering 10 meses y 1 semana & \centering\arraybackslash Finalización de lo concerniente a CDN \\ \midrule             \centering\textbf{H6}  & \centering 12 meses & \centering\arraybackslash Fin del Proyecto Fin de Carrera (PFC) \\[0.5ex]         \end{tabularx}     \end{tablacolorida}          \resaltarPie{-9.7}{7.95}     \newcounter{paqueteTrabajo}     \newcounter{tarea}     \setcounter{paqueteTrabajo}{-1}     \newcommand{\filaRHpt}[7]{\addtocounter{paqueteTrabajo}{1}\setcounter{tarea}{1}\centering \bfseries{PT.\arabic{paqueteTrabajo}.}   & \centering \bfseries{#1} & \centering \bfseries{#2} €  & \centering \bfseries{#3} & \centering \bfseries{#4 €}  & \centering \bfseries{#5} & \centering \bfseries{#6 €} & \centering\arraybackslash \bfseries{#7 €} \\ \midrule}     \newcommand{\filaRHt}[7]{\centering T.\arabic{paqueteTrabajo}\arabic{tarea}.   & \centering #1 & \centering #2 €  & \centering #3 & \centering #4 €  & \centering #5 & \centering #6 € & \centering\arraybackslash #7 € \\ \midrule\addtocounter{tarea}{1}}     \newcommand{\filaRHTOTAL}[7]{\centering \fuentecabecera{Total}   & \centering \fuentecabecera{#1} & \centering \fuentecabecera{#2 €} & \centering \fuentecabecera{#3} & \centering \fuentecabecera{#4 €}  & \centering \fuentecabecera{#5} & \centering \fuentecabecera{#6 €} & \centering\arraybackslash \raisebox{-0.15em}{\fuentecabecera{#7 €}} \\}     \encabezadoTresLineas     \begin{tablacolorida}{Presupuesto de recursos humanos}{presupuestoRH}         \begin{tabularx}{1\textwidth}{m{0.08\linewidth} m{0.08\linewidth} m{0.11\linewidth} m{0.08\linewidth} m{0.11\linewidth} m{0.08\linewidth} m{0.11\linewidth} m{0.11\linewidth}}             \arrayrulecolor{purple}             \centering\fuentecabecera{\underline{Tarea}} & \multicolumn{7}{c}{\fuentecabecera{\underline{Recurso}}} \\ %[+\espaciadoCabeceraCuerpo]             & \multicolumn{2}{c}{\fuentecabecera{FL}} & \multicolumn{2}{c}{\fuentecabecera{JMC}} & \multicolumn{2}{c}{\fuentecabecera{AM}} & \centering\arraybackslash\fuentecabecera{Coste} \\             & \centering\fuentecabecera{CT}  & \centering\fuentecabecera{Coste} & \centering\fuentecabecera{CT}  & \centering\fuentecabecera{Coste} & \centering\fuentecabecera{CT}  & \centering\fuentecabecera{Coste} & \\ [+\espaciadoCabeceraCuerpo] %Para añadir un último elemento sería \centering\arraybackslash\raisebox{-0.25em}{\fuentecabecera{Total}}              \filaRHpt{7}{0}{0}{0}{312}{0}{0} %PRIMER PAQUETE DE TRABAJO             \filaRHt{2}{0}{0}{0}{120}{0}{0}             \filaRHt{1}{0}{0}{0}{72}{0}{0}             \filaRHt{2}{0}{0}{0}{88}{0}{0}             \filaRHt{2}{0}{0}{0}{32}{0}{0}             \filaRHpt{8}{480}{1}{60}{408}{14688}{15228} %SEGUNDO PAQUETE DE TRABAJO             \filaRHt{1}{60}{0}{0}{88}{3168}{3228}             \filaRHt{1}{60}{0}{0}{72}{2592}{2652}             \filaRHt{3}{180}{0}{0}{88}{3168}{3348}             \filaRHt{3}{180}{1}{60}{160}{5760}{6000}             \filaRHpt{9}{540}{2}{120}{336}{12096}{12756} %TERCER PAQUETE DE TRABAJO             \filaRHt{2}{120}{0}{0}{72}{2592}{2712}             \filaRHt{2}{120}{0}{0}{88}{3168}{3288}             \filaRHt{1}{60}{0}{0}{88}{3168}{3228}             \filaRHt{4}{240}{2}{120}{88}{3168}{3528}             \filaRHpt{26}{1560}{1}{60}{192}{6912}{8532} %CUARTO PAQUETE DE TRABAJO             \filaRHt{24}{1440}{0}{0}{160}{5760}{7200}             \filaRHt{2}{120}{1}{60}{32}{1152}{1332}             \filaRHTOTAL{50}{2580}{4}{240}{1248}{33696}{36516}[0.5ex]          \end{tabularx}     \end{tablacolorida}     \encabezadoUnaLinea          \end{document}


title: How to use Spanish Unicode characters while wrapping text in a longtabu cell

text: Some time ago i referred to this stack exchange to solve the problem of wrapping long text in a longtabu cell. The provided solution worked, but now my requirements have changed to having to be able to print Spanish characters as well as English. So the wrap function no longer works. i was wondering how to accomplish this? im able to print Spanish characters outside the wrap function as shown in the example. Thanks!               \documentclass[6pt]{extarticle}          %%%%%%%%%%%%%%%%%%%%%%     % Package Inclusions %     %%%%%%%%%%%%%%%%%%%%%%          \usepackage{longtable, tabu}     \usepackage{xparse} % used for \ExplSyntaxOn          %used to print Spanish characters in the text     \usepackage[utf8x]{inputenc}     \usepackage{amssymb}     \usepackage[english,spanish]{babel}          %%%%%%%%%%%%%%%%%%%     % CONFIGURATIONS  %     %%%%%%%%%%%%%%%%%%%          \tabulinesep=5mm % used to set the space between bottem and top of cell in a longtabu using option m in column definition          %%%%%%%%%%%%%%%%%%%     % Custom Commands %     %%%%%%%%%%%%%%%%%%%          \ExplSyntaxOn     \NewDocumentCommand{\separator}{ }      {       \mode_if_math:TF { \allowbreak } { \- }      }     \NewDocumentCommand{\wrap}{ m } % use this command to wrap text \wrap{text goes here}      {       \mathers_wrap:n { #1 }      }          \seq_new:N \l_mathers_input_seq     \seq_new:N \l_mathers_output_seq     \seq_new:N \l_mathers_temp_seq          \cs_new_protected:Npn \mathers_wrap:n #1      {       \seq_clear:N \l_mathers_output_seq       \seq_set_split:Nnn \l_mathers_input_seq { ~ } { #1 }       \seq_map_inline:Nn \l_mathers_input_seq        {         \seq_set_split:Nnn \l_mathers_temp_seq { } { ##1 }         \seq_put_right:Nx \l_mathers_output_seq          { \seq_use:Nn \l_mathers_temp_seq { \separator } }        }       \seq_use:Nn \l_mathers_output_seq { ~ }      }     \ExplSyntaxOff          %%%%%%%%%%%%%%%%     % Report Start %     %%%%%%%%%%%%%%%%     \begin{document}          Spanish Characters: á, é, í, ó, ú, ü, ñ, ¿, ¡          \begin{longtabu} to \textwidth {         |X[1,l,m]|         X[1,l,m]|         X[1,l,m]|         }         \hline         \wrap{á tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt} &         \wrap{ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt} &         \wrap{ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt}          \\\hline         \wrap{ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt} &         \wrap{ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt} &         \wrap{ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt}          \\\hline         \wrap{ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt} &         \wrap{ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt} &         \wrap{ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt}          \\\hline     \end{longtabu}     \end{document}      ![enter image description here](http://i.stack.imgur.com/UkjUb.png)


title: pdflatex "Command token too long" error

text: I am getting this error trying to compile a latex document using pdflatex. I've stripped the tex file down to this               \documentclass[letterpaper,oneside,12pt]{article}     \usepackage[letterpaper,textwidth=7.5in,textheight=9.5in]{geometry}     \usepackage{graphicx}          \begin{document}     \begin{figure}[H]         \includegraphics{figures/Jan25/svdDir_svdCompare1.pdf}     \end{figure}          \end{document}      This produces the final output I want but still gives that error which is hugely annoying because I use vim-latex and the error causes it to take me to another window which I then have to close out and switch back to the tex file every time I compile. The pdf file was generated from a Matlab figure; a process which I do several times per day with no problem. I did try regenerating the file but it still gives that error. I've also tried copying it and renaming but that also doesn't change anything.


title: Citing problem in tabularx with endfloat

text: Guys I'm hoping you can help me with this one. I'm trying to compile a document with the apa6 class using apacite/natbibapa. I run in to trouble when I want to use '\citet' in the table. '\citep' and others do work! When I use '\citet' I get this error: Undefined control sequence \end{tabularx} (line 10) Here's my MWE:               \documentclass[man,a4paper]{apa6}     \usepackage[american]{babel}     \usepackage{csquotes}     \usepackage[natbibapa]{apacite}     \usepackage{tabularx}     \usepackage{ltablex}     \usepackage{pdflscape}     \DeclareDelayedFloatFlavor{landscape}{table}     \shorttitle{foo}     \title{foo}     \author{foo}     \affiliation{foo}     \authornote{foo}     %     \abstract{foo}     \keywords{foo,foo}     %     \begin{document}     \maketitle     Table~\ref{tab:Characteristics}     %     \begin{landscape}     \begin{tabularx}{\columnwidth}{*5{>{\raggedright\arraybackslash}X}}     \caption{test} \\     \label{tab:Characteristics} \\     \hline     Study & \ Portfolio name & \ Portfolio type &  Relevant SDL outcome variables & Context \\     \hline      \citet{Altahawi}  & - & Training portfolio &  Students' perspectives on assessment with e-portfolios & Undergraduate education (Medicine)   \\           \hline                                                                   \end{tabularx}     \begin{tablenotes}[para,flushleft]     {}     \end{tablenotes}             \end{landscape}     %     \bibliographystyle{apacite}     \bibliography{__review}     \end{document}        And the associated .bib file:               @article{Altahawi,     author = {Altahawi, F. and Sisk, B. and Poloskey, S. and Hicks, C. and Dannefer, E. F.},     title = {Student perspectives on assessment: Experience in a competency-based portfolio system},     journal = {Medical Teacher},     volume = {34},     number = {3},     pages = {221-225},      year = {2012},       DOI = {10.3109/0142159x.2012.652243}       }      Again, I suspect 'citet' is causing the problems. Also, when endfloat is not used, there are no problems. So can anyone help me with the origin of this issue and finding the solution? Thanks in advance!!


title: How can I make (some) $money$ out of my TeX skills?

text: I by no means intend to stop contributing what I can to TeX.SE, but a recent experience begs the question... After helping a friend designing a flyer for a telecom company (for which she got decent remuneration), I find myself wondering whether there is a market for freelance TeX-related jobs, on which I could perhaps make some extra bucks for rainy days. ![enter image description here](http://i.stack.imgur.com/sZ2C3.png) As an amateur TeXnician with limited general knowledge of graphic design, but with a growing portfolio of decent-looking documents produced with TeX & friends,   1. Who, if anyone, should I attempt to sell my TeX skills to?   2. Would, say, a publishing company be interested? Or do they generally seek people with a much stronger background in TeX & friends than mine?   3. If you are directly getting paid on account of your TeX skills, how did you get started?  * * * Note: I'm not sure whether this question is more appropriate on meta or on the main site. Feel free to migrate it, if necessary. It may be also be more suited as a community wiki, but I feel this isn't my call.


title: How to change the line width of the lines connecting spies and the spied region

text: I was experimenting with the `spy` library. It worked quite well, except for influencing the line width of the spy connections when using the `connect spies` keyword, or the width of the outline of the region to be spied on. I tried to insert keywords like `ultra thick` or `line width=3mm` everywhere, but it has no effect. The manual only states _"Causes the spy-in and the spy- on nodes to be connected by a thin line."_ for the `connect spies` keyword, but no options for thick lines. I also looked through every question here on tex.sx concerning the `spy` library but did not find anything. So is it even possible to have some options passed to these lines (probably `dashed` and other things also might be useful), and if, how? Here is my code so far:               \documentclass[parskip]{scrartcl}     \usepackage[margin=15mm]{geometry}     \usepackage{tikz}     \usepackage{pgfplots}     \usetikzlibrary{spy,calc}          \begin{document}          \begin{tikzpicture}[spy using outlines={circle, size=2cm, connect spies}]         %\includegraphics[scale=1]{test.png}         \node[above right, inner sep=0] at (0,0) {\includegraphics{test.png}};         \draw[very thin, yellow] (0,0) grid (15.25,10);         \spy[magnification=3,red,draw,line width=1mm] on (2,2) in node[ultra thick] at (3,-2);         \spy[magnification=5,green] on (7.1,4.1) in node[line width=4mm] at (8,-2);         \spy[magnification=10,black] on (11.8,2.8) in node[dashed,line width=1mm] at (13,-2);     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/xNqkq.png) * * * And finally, the original picture if you want to use it for experimenting: ![enter image description here](http://i.stack.imgur.com/rUWkv.png)


Some ( if not most ) pdf ebooks have the option to view the table of contents in a left navigation window. I would like to add this option to my document as well. **Question: How to add a navigation window to a LaTeX generated PDF document?**


title: Why does \smash screw up vertical spacing after tabulars?

text: Using `\smash` after a tabular seems too screw up vertical spacing. Wheras after a paragraph vertical spacing is fine. Witness for yourself:               \noindent     \begin{tabular}[t]{@{}ll}%       One\cr       Two\cr     \end{tabular}          \smash{Three}      ![TeX output](http://i.stack.imgur.com/dJvfJ.png)               \noindent     One\\     Two          \smash{Three}      ![TeX output](http://i.stack.imgur.com/5i64p.png) Why is that so? What is TeX doing in each case?


title: Maintainable approach to adding a title to an exsheets question?

text: I've started using cgnieder's wonderful `exsheets` package for my problem sets, but it seems to be missing a valuable functionality: exercise titles. In my case, the latter would prove particularly useful because   * they can provide a concise (if somewhat cryptic) description of the exercise; and   * intriguing/cheeky titles can be effective at raising students' interest. Ideally, an exercise with a title would look something like that: ![enter image description here](http://i.stack.imgur.com/sgPs8.png) However, `exsheets` doesn't seem to offer that title functionality out of the box: no `title` (or similar) key is defined for the `question` environment. My workaround so far is to   1. locally switch the `headings` option to `runin`,   2. typeset the exercise's title manually at the beginning of the `question` environment,   3. add a linebreak. However, that approach is not very satisfying in terms of maintainability.               \documentclass{article}          \usepackage[english]{babel}     \usepackage{exsheets}     \usepackage{kantlipsum}          \begin{document}          \SetupExSheets{headings=runin}     \begin{question}     \textbf{Fermat's last theorem}\\     \kant[1]     \end{question}          \end{document}      I very much wish there were a `title` option. Before I start dissecting `exhseets.sty` with the hope of producing a solution...   * Am I missing something obvious in the documentation? Is it an RTFM case?   * If not, how can I create a `title` key for the exsheets' `question` environment that would do the job?


title: Two equal acronym - What should I do?

text: I'm using the `acronym` package. I have in two chapters the acronym MAC one time for "Media Access Control" and in the second chapter as "Message Authentication Code". How can I use both MACs? Is a other package better?


title: How to remove small value labels from ybar chart?

text: I can't figure out a way to prevent small values showing in my labels. A problem that looked very similar to mine can be found in here. Due to my non- existent coding skills I couldn't figure out this on my own. So here is the code I've got so far:               \documentclass{article}          \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=1.10}          \definecolor{RYB1}{RGB}{128, 177, 211}     \definecolor{RYB2}{RGB}{251, 128, 114}     \definecolor{RYB3}{RGB}{190, 186, 218}     \definecolor{RYB4}{RGB}{255, 255, 179}     \definecolor{RYB5}{RGB}{141, 211, 199}     \definecolor{RYB6}{RGB}{253, 180, 98}          \pgfplotscreateplotcyclelist{ColorListBar}{     {RYB1!50!black,fill=RYB1},     {RYB2!50!black,fill=RYB2},     {RYB3!50!black,fill=RYB3},     {RYB4!50!black,fill=RYB4},     {RYB5!50!black,fill=RYB5},     {RYB6!50!black,fill=RYB6},     }          \begin{document}              \begin{figure}[H]     \begin{center}     \begin{tikzpicture}     \pgfkeys{          /pgf/number format/precision=2,          /pgf/number format/fixed zerofill=true,         /pgf/number format/fixed     }     \begin{axis}[     ybar stacked,     bar width=9mm,     nodes near coords,     enlargelimits=0.3,     legend style={at={(0.5,-0.20)},     anchor=north,legend columns=-1},     ylabel={ylabel},     symbolic x coords={A, B, C},     xtick=data,     cycle list name=ColorListBar     ]     \addplot plot coordinates {(A,0.26) (B,0.32) (C,0.32)};     \addplot plot coordinates {(A,0.28) (B,0.29) (C,0.35)};     \addplot plot coordinates {(A,0.05) (B,0) (C,0.01)};     \addplot plot coordinates {(A,0.13) (B,0.17) (C,0.17)};     \addplot plot coordinates {(A,0.06) (B,0.01) (C,0.01)};     \addplot plot coordinates {(A,0.05) (B,0.07) (C,0.01)};     \legend{1, 2, 3, 4, 5, 6}     \end{axis}     \end{tikzpicture}     \end{center}     \end{figure}     \end{document}       This results in a Figure that looks like this: ![enter image description here](http://i.stack.imgur.com/UpusP.png) I would like to remove the labels that currently have the value 0.01 and thus look very cluttered. How could this be achieved?


title: Format Name of Video codecs

text: I'm currently writing my Masterthesis for a german University. I used a few different codecs in my work (like H.264). What is the correct/sensible way to write them in my Latex Document? Examples of my Problems follow:   * Does Latex know the correct ending of the sentence? (dot in H.264 might be treated like ending)              I also used H.264 and H.265. I also ...        * Should i use ~ to stick two words together?              I also used DivX~Mpeg-4. I also ...        * Are Codec Names special? Should they be treated differently from normal words?              I also used \texttt{H.264}.      I realize that my Question is a bit broad. Hopefully there are definite answers at least to Point 1 and 2. I hope there is "normal" way for Question 3 (i have no guidelines)


title: Time passed from a specific date

text: I would like to put in my resume > N years experience in Java where N would be generated based on the date provided in the LaTeX file. Preferably in rounded years, i.e. If the beginning date was 2012-06-04 and the output was generated on 2014-04-04, then the N would be 2.


title: A beamer buggy handling of newcommand?

text: Does anyone know why I get error here? Analogous code works for document class "slides" in latex.               \documentclass[compress]{beamer}     \newcommand{\sld}{\end{frame} \begin{frame}}     \begin{document}     \begin{frame}     Test -- Page 1     \sld     Test -- Page 2     \end{frame}     \end{document}


title: textpos toggling noshowtext option

text: Is there a way of toggling the `textpos` option `[noshowtext]`? I would like some textboxes to show the frame but not the text. And others to show both frame and text, but can't seem to find a way of toggling this, the package does not specify it. Any ideas?


title: bibtex format for url reference

text: How do I add a note after a URL in URL reference using BibTeX in IEEE format? My code looks like this               @misc{thz_net,      title={Terahertz applications },      url={http://thznetwork.net/index.php/thz-images},      note={(Date last accessed 15-July-2014)},      }      Note appears before the url like this > [2] “Terahertz applications,” (Date last accessed 15-July-2014). [Online]. > Available: http://thznetwork.net/index.php/thz-images I'd like the note to appear after the URL. How can I achieve it?


title: Custom legend for intensity plot

text: I created an intensity-plot (x and y axes are positions, the color of the point gives the intensity) in an external program (igor pro) and included the "bare" plot via the `\addplot graphics` command into my axis-environment. Now I would like to create a "color-scale"-legend for this plot. The plot is in greyscales, white being no intensity and black being maximum intensity, color changing lineary with intensity.   Unfortunately, I'm not allowed to upload images yet, so I cannot show you what it should look like, so I hope my description is sufficient.   Is there a way to create such a custom legend?   Thans in advance,   John edit:   here is the plot as it should like:   ![enter image description here](http://i.stack.imgur.com/YW7ON.png)   Creating the axes and labels with pgfplots is no problem, but i also need the colorscale legend.


title: Skak Installation

text: I want to put chess diagrams in a LaTeX file, and from what I can tell http://www.ctan.org/tex-archive/fonts/chess/skak/ is the best way to do this. Unfortunately, I can't figure out how to install the package. skakdoc.pdf gives you these directions: Basically all you have to do is to follow the guidelines in the makefile. First you create all the required directories (stated in the install section of the makefile) and then you run the `make install` command. The install section of the makefile says this:               install: fonts doc         install   skak*.600pk $(DESTPK)         install   skak*.600gf $(DESTGF)         install   skak*.tfm   $(DESTTFM)         install   mf/skak*.mf    $(DESTSOURCE)         install   tex/skak.sty    $(INPUTS)         install   tex/lambda.sty  $(INPUTS)         install   *.ps            $(DESTDOC)         @echo "Remember to run texhash!"      I have no idea how to follow these instructions. Help?


title: Improved Unit Circle Animation

text: I'm trying to improve the sine/cosine animation provided on texample.net to suite my needs. I wanted to add a plot of the sine and cosine part and tried using pgfplots for this, as it can evaluate and draw functions without gnuplot. My Problem is the correct alignment of the plot against the circle and the drawing of the guiding line. I already found the sine and cosine functions included in tikz, but they only draw a small segment of the functions respectively. Maybe someone has an idea how to improve this.               \documentclass{standalone}     \usepackage{tikz}     \usepackage{pgfplots}     \usepackage{ifthen}     \usepackage[xetex]{animate}     \usetikzlibrary{calc}     \begin{document}     \newcounter{angle}     \setcounter{angle}{1}     \begin{animateinline}[loop, poster = first, controls]{30}          \whiledo{\theangle<359}{     %         \begin{tikzpicture}         % Axis         \draw[thick,->,black] (-3,0)--(4,0) node[below] {$x$}; % x axis         \draw[thick,->,black] (0,-3)--(0,3) node[left] {$y$}; % y axis         \draw[black,thin] (0,0) circle (2.5cm);         \node[black,below] at (2.7,0) {1};         \node[black,above] at (0.2,-3.2) {1};     %         \draw[ultra thick,orange] (0,0) -- (\theangle:2.5cm |- 0,0) node[midway,below] {$\cos \alpha$}; % UpOn y axis         %         \draw (1,0) arc (0:\theangle:1) node at ($(\theangle/2:0.7)$) {$\alpha$};         \draw[ultra thick, cyan  ] (\theangle:2.5cm) -- (\theangle:2.5cm |- 0,0) node[midway,right] {$\sin \alpha$}; % vertical line         \draw[densely dotted,cyan] (\theangle:2.5cm) -- ($(4.5+\theangle/360*2*pi,0 |- \theangle:2.5cm)$); % horizontal line         \draw[ultra thick,red,->,rotate=\theangle] (0,0) -- (2.5,0);          \begin{scope}[xshift=4.5cm,yshift=-2.85cm]         \begin{axis}[axis y line=center, axis x line=middle, xmin=0, xmax=360, ymin=-3, ymax=3]             \addplot[domain=0:\theangle,no markers,cyan] {2.5*sin(x)};             \addplot[domain=0:\theangle,no markers,orange] {2.5*cos(x)};         \end{axis}         \end{scope}         \end{tikzpicture}     %         \stepcounter{angle}         \ifthenelse{\theangle<359}{             \newframe         }{             \end{animateinline}         }     }     \end{document}


title: Secrecy of bibtex direcory location

text: I am using bibtex for references and have a link to the directory in the .tex file. This directory makes it obvious for whom te project is done, but this should remain secret (academic assignment at a corporation that wants to remain anonymous). Are these directories anywhere to be found in the final pdf? In other words, if the visible text in the pdf does not reveal anything, is it possible to get it out of the source? Of course the .tex will not be published. If it is anywhere in the pdf, how do i get it out?


title: Duplicate keys in citation II

text: This is the converse of: Duplicate keys in citation As before, using bibtex, Natbib w/ sort&compress option.               \def\grpA{key1,key2,key3}     \def\grpB{key2,key3,key4}          Group A\citep{grpA} discusses X, whilst set B\citep{grpB} discusses Y.      The common discussion points\citep{key2,key3} are bla bla bla...      I would like to be able to determine the union of `grpA` and `grpB`, IE which keys are in **BOTH** groups (in this case `key2` and `key3`), discarding all other keys. How can a command be written which takes the inputs `\grpA` and `\grpB`, returning the **UNION** by key? For those of you who understand SQL, equivalent of an inner join.


title: How do I install a style file on Mac 10.8? (Other answers don't seem to work.)

text: I know this question has been asked before but the solutions given do not apply/work for My 10.8 system for one reason or another. I am attempting to install a style file. I place it in the subdirectory in the texlive installation and run `sudo texhash`. Yet, `latex` says, "No can do; cannot find the `*.sty` file." What about the suggestions to place the file in directory in `~/Library/texmf`? Those proposed solutions expect a different directory structure beneath `texmf` than I have. I really have no idea where to put this thing so My Aquamacs.app can find it when creating a `*.pdf` file. **Addendum** : I notice this question has been marked with the text "marked as duplicate by Martin Schröder, Werner, Sigur, cgnieder, mafp Jun 27 at 20:56 This question has been asked before and already has an answer. If those answers do not fully address your question, please edit this question to explain how it is different or ask a new question." To the "[i]f those answers do not fully address your question, please edit this question to explain how it is different" part, I _did_ explain that aspect when I said "I know this question has been asked before but the solutions given do not apply/work for My 10.8 system for one reason or another." Please be more thoughtful in what You mark as "duplicate" before doing so; what looks like from My perspective to be unjustified marking like this seems to be happening with increasing frequency on StackExchange and, as such, diminishes the usefulness of the site. Meanwhile, I ask any Moderator seeing this to remove the "duplicate" marking. **Addendum #2** : Also, the "This is where it was already answered" link is something I tried first. As noted, this approach did not work.


title: How to mark/round an element of a table/tabular?

text: I´m creating a table for simplex, and I want to create a circle around a number in a table. How can I make this in LaTeX? I use PSTricks, but I prefer don´t create an image and a table/tabular inside that image. I don´t know if in PSTricks, I can create a circle anywhere in the page or only in the rectangle in `\psspicture (lower left)(upper right)`.


title: Bibtex error after updating to TeXLive 2013: style file not found

text: I have recently updated my TeXLive installation to the 2013 version (via MacTeX), and I am getting an error when trying to use the econometrica style from natbib. (The error comes from running Bibtex, not when running pdflatex): > I couldn't open style file econometrica.bst   >  \---line 20 of file SE.aux : \bibstyle{econometrica : } I'm skipping > whatever remains of this command I found no style file---while reading file > SE.aux (There were 2 error messages) > > BibTeX exited abnormally with code 2 at Thu Jun 27 10:27:42 I searched around and it seems like this style is not a standard natbib style, but I don't remember having had to install anything other than the standard MacTeX distribution before, so I don't understand why the code no longer works. When I switch to the old TeXLive installation (2012) the code works as expected. Here is a MWE               \documentclass[12pt]{article}          \usepackage{hyperref}     \usepackage{natbib}     \usepackage{hypernat}          \usepackage{filecontents}     \begin{filecontents}{risksse.bib}     @article{anghodrick,         Author = {Andrew Ang and Robert J. Hodrick and Yuhang Xing and Xiaoyan Zhang},         Date-Added = {2013-06-26 23:46:29 +0000},         Date-Modified = {2013-06-26 23:48:33 +0000},         Journal = {The Journal of Finance},         Month = {February},         Number = {1},         Pages = {259-299},         Title = {The Cross-Section of Volatility and Expected Returns},         Volume = {LXI},         Year = {2006}}     \end{filecontents}          \begin{document}     Taken from \citet{anghodrick}.          \bibliographystyle{abbrv}     \bibliography{risksse}          \end{document}


title: Unbreakable section

text: I would like to know if there is any global command that would prevent any page-breaks inside sections. All my sections are short enough. I read some solutions, such as Absolutely, definitely, preventing page break, but I would like an automatic solution.


title: table of contents starts by an arbitrary number

text: I am using `Beamer Presentation` to teach a Probability course in a university. At the first class, I introduced my class chapter 1 which included its sections 1 to 4, so my table of contents in the presentation numbered from 1 to 4. At the second class, I continue to present sections 5 to 8 which are still of chapter 1. Now I want the table of contents will start by 5 and end by 8. Is it possible to do that?


title: Disable printing of fonts/packages during compilation - from the compiled file

text: I just read this: Disable printing of fonts/packages to STDOUT and I was wondering whether the same could be effected somehow from the .tex file being compile (probably you would want to do this before the `\documentclass`, or at least before all of the `\usepackage`s).


title: Rename "Algorithm" to "Listing"

text: ## Background Syntax-highlighted source code image listings are being used as Algorithm floats with the `lst:` prefix for captions. ## Problem The following LaTeX code in the preamble renames the caption for the Algorithm float to Listing, as desired:               \usepackage{float}     \floatname{algorithm}{Listing}      However, the cross-reference label using the following command remains "Algorithm" (should be "Listing"):               \ref{lst:Internationalization-Look-up-Method}      Essentially, I am trying to rename Algorithm floats to Listing floats. (The book will have no algorithms.) LyX has `Algorithm`, `Figure`, and `Table` as floats to insert. If there was a way to configure and add `Listing` to the same menu ( **Insert >> Float >> Listing** ), that would also be a great solution. ## Ideas The following failed:               \usepackage{caption}     \usepackage{listings}     \renewcommand{\lstlistlistingname}{Listings}     \renewcommand{\lstlistingname}{Listing}      The following eliminated the word "Algorithm" for the reference label altogether:               \usepackage{caption}     \usepackage{listings}     \renewcommand\lstlistingname{Listing}     \renewcommand\lstlistlistingname{Listings}     \def\lstlistingautorefname{Listing}      I have not yet looked into the `babel` package. ## Question How can you rename "Algorithm" to "Listing" everywhere, including:   * Caption   * Label reference   * In the front matter (i.e., List of Listings rather than List of Algorithms) ## Related   * http://stackoverflow.com/questions/2814714/latex-how-to-change-title-in-listings   * http://www.mail-archive.com/lyx-users@lists.lyx.org/msg67681.html


title: Use TikZ to draw frontpage

text: I'm not that familiar with TikZ and I want to use it for designing by front page. I want a blue bar in the top, where some text is centered in the bar. Like following (how do I center the text without using hspace to push the text in?)               \begin{tikzpicture}[remember picture,overlay]       \node [xshift=\,yshift=-2cm] at (current page.north west)       [text width=\textwidth,fill=my_defined_blue,below right]       {        \hspace{3.5cm} \textcolor{white}{\Large{\textsc{School Name}}}       };     \end{tikzpicture}      However, I also want a logo on bar, which should be a bit larger than the bar. Any suggestions, how this should be done? The logo structure: ![Logo structure](http://i.stack.imgur.com/Pz8Jd.png)


title: Not getting xkeyval to work (as intended) for a simple custom command

text: I'm trying the use the `xkeyval` package to define a very simple command using keys. However, I'm utterly confused by its behavior, and the package documentation is not exactly helpful either. Here's a MWE with what I wanted to achieve (expected) and what I actually got. Why is this happening and what do I need to do to get the result I'm after? I've also consulted: How to create a command with key values? and: A package template using xkeyval? without any luck               \documentclass{article}          \usepackage{xkeyval}          \makeatletter     \define@key[]{fam}{foo}[XX]{#1}     \newcommand{\mycommand}[1][]{%        \begingroup        \setkeys[]{fam}{#1}        ``Using the macro: \fam@foo ''        \endgroup     }     \makeatother          \begin{document}          % Example where I hoped to get the default value (XX)     \mycommand % Expected: "Using the macro XX" - Got: "Using the macro"          % Example where I hoped to override the default value     \mycommand[foo=YY] % Expected: "Using the macro YY" - Got: YY "Using the macro"               \end{document}


title: Solution environment via true/false switch

text: I would like to create a solution environment that prints a solution in the case where an optional argument is set to true (the default) and hides the solution in the case that the argument is false. I tried to use egreg's idea from Is there an "identity" (or "no-op") environment that simply uses its contents unaltered? but my construction already fails due to the optional argument (`Illegal parameter number in definition of \endsolution`). The idea would be to not show anything (ideally no vertical space would be created either) if we are in the ``false'' case. Note: I'm aware of other solutions to this problem (see Comparing packages which facilitate typesetting exercises and solutions: exercise vs. answers vs. probsoln) but I am interested to see what I am doing wrong in my construction.               \documentclass{scrartcl}          \usepackage[T1]{fontenc}     \usepackage{ifthen}          % solution environment     \newenvironment{solution}[1][true]{       \ifthenelse{\boolean{#1}}{\par{\sffamily\bfseries Solution}\par}{\ignorespaces}     }{\ifthenelse{\boolean{#1}}{}{\ignorespacesafterend}}          \begin{document}     This is Exercise 1 with solution.     \begin{solution}       Solution to Exercise 1     \end{solution}          \bigskip     This is Exercise 2 (without solution).     \begin{solution}[false]       This should not appear.     \end{solution}          \end{document}


title: "Bleed" text into the page margins?

text: Is it possible to have lines (as an exception) that continue into the right margin ? Here's why I hope it's possible: I have a document and one of the headings is the formal name of a particular organization. The name is a few letters wider than what fits in the article's text width. It looks uglier if I break it in two lines than allowing for this exception (because of the space around it, in this particular document it doesn't look that bad). One option suggested by SE is given in the question How can I change the margins for only part of the text?. The reason I'm asking is that maybe there is another way, to tell LaTeX "do not break this line, even if you bleed into the margin". If there isn't, I'll look into the changepage package, but it's worth asking. Thanks in advance.


title: Rounded boxes, arrow and drawing over several pages in a Resume

text: This question is linked to this one, and I want to extend the answer given here. To be short, I want to do the same thing but with several rounded boxes drawn on the same arrow. Here is a non-minimal working example:               %!TEX TS-program = lualatex     %!TEX encoding = UTF-8 Unicode     \documentclass[a4paper,12pt]{article}     \usepackage[french]{babel}     \usepackage{amsmath}     \usepackage{amssymb,amsfonts,textcomp}     \usepackage{color}     \usepackage{fancyhdr}     \usepackage[top=1cm,bottom=1cm,left=0.751cm,right=1cm,nohead,nofoot]{geometry}     \usepackage{array}     \usepackage{supertabular}     \usepackage{hhline}     \usepackage{hyperref}     \hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue, filecolor=blue, urlcolor=blue, pdftitle=Curriculum Vitae}          %Police Verdana     %http://tex.stackexchange.com/questions/10048/how-to-use-verdana-under-mac-os     \usepackage{fontspec}%déjà chargé par luatextra     \defaultfontfeatures{Ligatures=TeX} % to have the automatics ligatures of TeX     \setromanfont{Verdana}          \usepackage{paracol} %%Pour les colonnes sur plusieurs pages          \usepackage[many]{tcolorbox}     \definecolor{monfuschia}{HTML}{604A7C}% Rule colour     \definecolor{monfuschiainter}{HTML}{806A9C}% Arrow colour     \definecolor{monfuschiaclair}{HTML}{E6E0EC}% Background colour     \makeatletter     \newcommand{\titlebox}[1]{%       \setbox0=\hbox{\large \bfseries #1}%       \setlength{\@tempdima}{\dimexpr\wd0+4pt}%       \begin{tcolorbox}[colframe=monfuschia, colback=monfuschia,boxrule=0pt,arc=10pt,           left=16pt,right=16pt,top=-8pt,bottom=-5pt,boxsep=0pt,width=\@tempdima]         \parbox{\columnwidth}{\color{white}{\begin{center}%       \bfseries \large #1     \end{center}}}%       \end{tcolorbox}     }     \newcommand{\paragbox}[1]{%       \setbox0=\hbox{\Large \bfseries #1}%       \setlength{\@tempdima}{\dimexpr\wd0+24pt}%       \begin{center}%         \begin{tcolorbox}[colframe=monfuschia, colback=monfuschia,boxrule=0pt,arc=8pt,%           left=16pt,right=16pt,top=10pt,bottom=10pt,boxsep=0pt,width=\@tempdima]%         \centering \color{white}{%       \bfseries \large #1}%       \end{tcolorbox}%       \end{center}%     }     \newcommand\arraybslash{\let\\\@arraycr}     \makeatother     \raggedbottom          \tikzstyle{mybox} = [draw=monfuschia, fill=blue!20, very thick,         rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]          % Colors for the arrow     \colorlet{arrowbgcolor}{white}     \colorlet{arrowbordercolor}{monfuschiainter}     % Colors for the framed box to the right     \colorlet{boxbgcolor}{monfuschiaclair}     \colorlet{boxbordercolor}{monfuschia}          \newlength{\horinzontalextraboxwidth}     \setlength{\horinzontalextraboxwidth}{0.25\columnwidth}     \newlength{\horinzontalextraboxmargin}     \setlength{\horinzontalextraboxmargin}{6pt}     \newlength{\verticalextraboxmargin}     \setlength{\verticalextraboxmargin}{5pt}          \newtcolorbox{experiencebox}[2][]{       breakable,       enhanced,       boxrule=0pt,       arc=0pt,       frame code={},       colback=white,        colframe=white,        overlay unbroken={         \draw[arrowbordercolor,fill=arrowbgcolor,#1]           ([xshift=0pt]frame.north west) --           ([xshift=20pt]frame.north west) --           ([xshift=20pt,yshift=6pt]frame.south west) --           ([xshift=10pt,yshift=1pt]frame.south west) --           ([yshift=6pt]frame.south west) -- cycle;         \node[           draw=boxbordercolor,           text width=\horinzontalextraboxwidth,           anchor=west,           line width=1pt,           rounded corners=10pt, very thick, inner sep=\horinzontalextraboxmargin, inner ysep=\verticalextraboxmargin,           fill=boxbgcolor,         ] at ([xshift=.02\columnwidth]frame.east) {\scriptsize #2};         },       overlay first={         \draw[arrowbordercolor,fill=arrowbgcolor,#1]           ([xshift=0pt]frame.north west) --           ([xshift=20pt]frame.north west) --           ([xshift=20pt]frame.south west) --           (frame.south west) -- cycle;         \node[           draw=boxbordercolor,           text width=\horinzontalextraboxwidth,           anchor=west,           line width=1pt,           rounded corners=10pt, very thick, inner sep=\horinzontalextraboxmargin, inner ysep=\verticalextraboxmargin,           fill=boxbgcolor,         ] at ([xshift=.02\columnwidth]frame.east) {\scriptsize #2};         },       overlay middle={         \draw[arrowbordercolor,fill=arrowbgcolor,#1]           ([xshift=0pt]frame.north west) --           ([xshift=20pt]frame.north west) --           ([xshift=20pt]frame.south west) --           (frame.south west) -- cycle;         \node[           draw=boxbordercolor,           text width=\horinzontalextraboxwidth,           anchor=west,           line width=1pt,           rounded corners=10pt, very thick, inner sep=\horinzontalextraboxmargin, inner ysep=\verticalextraboxmargin,           fill=boxbgcolor,         ] at ([xshift=.02\columnwidth]frame.east) {\scriptsize #2};         },       overlay last={         \draw[arrowbordercolor,fill=arrowbgcolor,#1]           ([xshift=0pt]frame.north west) --           ([xshift=20pt]frame.north west) --           ([xshift=20pt,yshift=10pt]frame.south west) --           ([xshift=10pt,yshift=5pt]frame.south west) --           ([yshift=10pt]frame.south west) -- cycle;         \node[           draw=boxbordercolor,           text width=\horinzontalextraboxwidth,           anchor=west,           line width=1pt,           rounded corners=10pt, very thick, inner sep=\horinzontalextraboxmargin, inner ysep=\verticalextraboxmargin,           fill=boxbgcolor,         ] at ([xshift=.02\columnwidth]frame.east) {\scriptsize #2};         },       extrude left by=1em,       enlarge left by=2em,       top=0pt,bottom=0pt,       width=0.67\columnwidth+1.5em,       enlarge top by=-5mm,       %enlarge bottom by=-6mm,     }          \newtcolorbox{experienceboxwoskills}[1][]{       breakable,       enhanced,       boxrule=0pt,       arc=0pt,       frame code={},       colback=white,        colframe=white,        overlay unbroken={         \draw[arrowbordercolor,fill=arrowbgcolor,#1]           ([xshift=0pt]frame.north west) --           ([xshift=20pt]frame.north west) --           ([xshift=20pt,yshift=6pt]frame.south west) --           ([xshift=10pt,yshift=1pt]frame.south west) --           ([yshift=6pt]frame.south west) -- cycle;       },       overlay first={         \draw[arrowbordercolor,fill=arrowbgcolor,#1]           ([xshift=0pt]frame.north west) --           ([xshift=20pt]frame.north west) --           ([xshift=20pt]frame.south west) --           (frame.south west) -- cycle;       },       overlay middle={         \draw[arrowbordercolor,fill=arrowbgcolor,#1]           ([xshift=0pt]frame.north west) --           ([xshift=20pt]frame.north west) --           ([xshift=20pt]frame.south west) --           (frame.south west) -- cycle;       },       overlay last={         \draw[arrowbordercolor,fill=arrowbgcolor,#1]           ([xshift=0pt]frame.north west) --           ([xshift=20pt]frame.north west) --           ([xshift=20pt,yshift=10pt]frame.south west) --           ([xshift=10pt,yshift=5pt]frame.south west) --           ([yshift=10pt]frame.south west) -- cycle;       },       extrude left by=1em,       enlarge left by=2em,       top=0pt,bottom=0pt,       width=0.9\columnwidth+1.5em,     }          \usepackage{enumitem}          % Paragraph styles     \renewcommand\familydefault{\rmdefault}          % List styles     \newcommand\writerlistleftskip{}     \newcommand\writerlistparindent{}     \newcommand\writerlistlabel{}     \newcommand\writerlistremovelabel{\aftergroup\let\aftergroup\writerlistparindent\aftergroup\relax\aftergroup\let\aftergroup\writerlistlabel\aftergroup\relax}               % Footnote rule     \setlength{\skip\footins}{0.119cm}     \renewcommand\footnoterule{\vspace*{-0.018cm}\setlength\leftskip{0pt}\setlength\rightskip{0pt plus 1fil}\noindent\textcolor{black}{\rule{0.25\columnwidth}{0.018cm}}\vspace*{0.101cm}}     % Pages styles     \fancypagestyle{Standard}{\fancyhf{}       \fancyhead[L]{}       \fancyfoot[L]{}       \renewcommand\headrulewidth{0pt}       \renewcommand\footrulewidth{0pt}       \renewcommand\thepage{\arabic{page}}     }     \pagestyle{Standard}     \setlength\tabcolsep{1mm}     \renewcommand\arraystretch{1.3}     \sloppy     \title{Curriculum Vitae}               \setlist[itemize]{leftmargin=0em, %Pour gérer la marge depuis laquelle est écrit le texte     itemindent=1.2em,% L'indentation de la première ligne de l'item par rapport aux lignes suivantes     topsep=0pt, %     parsep=-1pt, itemsep=0pt,listparindent=-4em}          \setlist[itemize,2]{leftmargin=1.4em,%Pour gérer la marge depuis laquelle est écrit le texte     itemindent=0em, % L'indentation de la première ligne de l'item par rapport aux lignes suivantes     listparindent=0em,%     labelsep=-0.3em, %La distance entre la puce et la marge (c'est à dire l'écart entre la puce et le début du texte)     align=left,%L'alignement. Peut être aussi parleft pour s'aligner avec le paragraphe de niveau immédiatement supérieur     topsep=0pt, partopsep=0pt, itemsep=0pt, parsep=0pt %parsep donne le séparateur entre les paragraphes     }          \begin{document}          \begin{flushleft}     \tablefirsthead{}     \tablehead{}     \tabletail{}     \tablelasttail{}     \begin{supertabular}{m{6.801cm}m{12.052cm}}     {\fontsize{14pt}{16.8pt}\selectfont\bfseries firstname Name}          {\fontsize{11pt}{13.2pt}\selectfont Age - Nationality}          {\footnotesize address 1}          {\footnotesize address 2}          {\footnotesize e-mail@something.com}          {\footnotesize phone number} &     {\centering     \titlebox{Title 1           Title 2}     }          {\centering\fontsize{11pt}{13.2pt}\selectfont general comment\par}          \centering\arraybslash{\fontsize{11pt}{13.2pt}\selectfont When I am free}\\     \end{supertabular}     \end{flushleft}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % First Column     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \columnratio{0.285}     \begin{paracol}{2}     \begin{leftcolumn}     \paragbox{Know-How}          {\footnotesize\bfseries know-how category}          \begin{itemize}         \item {\footnotesize know-how}         \item {\footnotesize know-how}     \end{itemize}     {\footnotesize\bfseries know-how category }          \begin{itemize}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \end{itemize}     {\footnotesize\bfseries know-how}          {\footnotesize\bfseries know-how category}               \begin{itemize}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \end{itemize}          \vspace{-5mm}     \paragbox{Skills}     \vspace{-5mm}          {\footnotesize\bfseries Languages}               \begin{itemize}     \item {\footnotesize JAVA}     \item {\footnotesize UML}     \item {\footnotesize JavaScript}     \item {\footnotesize HTML5}     \item {\footnotesize PHP}     \item {\footnotesize C}     \item {\footnotesize SQL}     \item {\footnotesize Shell Unix}     \item {\footnotesize AWK}     \item {\footnotesize PERL}     \item {\footnotesize Makefile}     \item {\footnotesize ANT}     \item {\footnotesize XML}     \item {\footnotesize Python}     \item {\footnotesize PCL (MSC.Patran)}     \item {\footnotesize FORTRAN}     \item {\footnotesize Ada}     \end{itemize}     {\footnotesize\bfseries Frameworks}          \begin{itemize}     \item {\footnotesize Node.js}     \item {\footnotesize Ember.js}     \item {\footnotesize JQuery}     \end{itemize}          \paragbox{Skills}     \color{black}     {\footnotesize\bfseries know-how}          \begin{itemize}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \end{itemize}     {\footnotesize\bfseries know-how category}               \begin{itemize}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \end{itemize}     {\footnotesize\bfseries know-how category}               \begin{itemize}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \end{itemize}     {\footnotesize\bfseries other tools}               \begin{itemize}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \item {\footnotesize know-how}     \end{itemize}     {\centering\fontsize{14pt}{16.8pt}\selectfont\bfseries\color[rgb]{0.8,0.8,0.8}     \par}          \paragbox{Foreign Languages}               {\footnotesize\bfseries English}                                  \begin{itemize}     \item {\footnotesize good level}     \end{itemize}     {\footnotesize\bfseries Spanish}               \begin{itemize}     \item {\footnotesize level}     \end{itemize}     {\centering\fontsize{14pt}{16.8pt}\selectfont\bfseries\color[rgb]{0.8,0.8,0.8}     \par}          \end{leftcolumn}     \begin{rightcolumn}%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \vspace{-1em}     \paragbox{Professional Experience}          {\color{gray} June 2012 until now}          {\bfseries Job Title}          \begin{experiencebox}{skill 1\\ skill 2\\ skill 3\\}%     {\scriptsize Job description}          \begin{itemize}     \item {\footnotesize Item}         \begin{itemize}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}         \end{itemize}     \item {\footnotesize Item}     \end{itemize}     \end{experiencebox}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Company separator     {\color{gray} from date to date}          {\bfseries Job Title}          \begin{experiencebox}{skill 1\\ skill 2\\ skill 3\\}%     {\scriptsize Job description}          \begin{itemize}     \item {\footnotesize Item}         \begin{itemize}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}         \end{itemize}     \item {\footnotesize Item}         \begin{itemize}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}         \end{itemize}     \item {\footnotesize Item}\item {\footnotesize Item}     \end{itemize}     \end{experiencebox}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Company separator     {\color{gray} from date to date}          {\bfseries Job Title}          \begin{experienceboxwoskills}     {\scriptsize\mdseries what I did in this small one}     \begin{itemize}     \item {\footnotesize just one thing}     \end{itemize}     \end{experienceboxwoskills}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Company separator     {\color{gray} the big job from 2000 to 2008}          {\bfseries Main title and company name}          \begin{experienceboxwoskills}          {\scriptsize\mdseries Company description}          %%%%%%%% Function separator     {\color{gray} From date to date}          {\bfseries Job Title}          {\scriptsize Job description}          \begin{itemize}     \item {\footnotesize Item}         \begin{itemize}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}         \end{itemize}     \item {\footnotesize Item}     \end{itemize}          %%%%%%%% Function separator     {\color{gray} From date to date}          {\bfseries Job Title}          {\scriptsize Job description}          \begin{itemize}     \item {\footnotesize Item}         \begin{itemize}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}         \end{itemize}     \item {\footnotesize Item}     \item {\footnotesize Item}         \begin{itemize}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}         \end{itemize}     \item {\footnotesize Item}     \item {\footnotesize Item}     \item {\footnotesize Item}     \item {\footnotesize Item}     \item {\footnotesize Item}     \item {\footnotesize Item}     \item {\footnotesize Item}     \item {\footnotesize Item}     \end{itemize}          %%%%%%%% Function separator     {\color{gray} From date to date}          {\bfseries Job Title}          {\scriptsize Job description}          \begin{itemize}     \item {\footnotesize Item}         \begin{itemize}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}         \end{itemize}     \item {\footnotesize Item}         \begin{itemize}             \item {\footnotesize Sub item with more text that makes it larger and may interfer with extra box}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}         \end{itemize}     \item {\footnotesize Item}     \end{itemize}          %%%%%%%% Function separator     {\color{gray} From date to date}          {\bfseries Job Title}          {\scriptsize Job description}          \begin{itemize}     \item {\footnotesize Item}         \begin{itemize}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}         \end{itemize}     \item {\footnotesize Item}     \end{itemize}          %%%%%%%% Function separator     {\color{gray} From date to date}          {\bfseries Job Title}          {\scriptsize Job description}          \begin{itemize}     \item {\footnotesize Item}         \begin{itemize}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}             \item {\footnotesize Sub item}         \end{itemize}     \item {\footnotesize Item}     \end{itemize}          \end{experienceboxwoskills}           \end{rightcolumn}     \end{paracol}     \end{document}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% THE END      And here is a screen example of what the second page should be: ![second page](http://i.stack.imgur.com/hRhIm.png) In this example, there are two extra boxes on the right hand side of the page. In my real resume, there are some more. I would like to position the extra boxes vertically as shown in the image below: ![example 2](http://i.stack.imgur.com/Tj9JN.png) yposition's origin may vary (it could be the baseline of "from date to date" or "job description") I also would like to be able to manage with variables (or any other way):   * box round radius   * box line width   * colors (this is already done in my example)   * arrow width   * arrow colors   * arrow thickness I would like to keep what was done with the "experiencebox" tcolorbox if possible. I would like to avoid page break between job title and job description, but this last constraint is not really important here (I know how to manage with this). I am aware that I am very demanding with this. I am currently working on how to do this so all advices, ideas, leads are welcome. So the questions are: how to draw the "timeline arrow" on the left of the column (over several pages) with several "extra boxes" on the right ? Is it possible to do this using environments or commands ?


title: How do I make the 'such that' symbol from Set Theory?

text: I am looking for the 'such that' symbol in set theory. I don't know what it's called so I'm not sure how to look for it. For the moment, I am just using this '|'. What is the appropriate symbol?


title: write latex code in Lyx for tables

text: I found this template for a table on TeX.SX: Beautiful table samples The table I would like to reproduce is                  \documentclass[12pt, oneside, landscape]{memoir}          \newif\ifblackandwhite     % \blackandwhitetrue               \usepackage{fontspec}%     \defaultfontfeatures{Ligatures=TeX}%     \setmainfont[%        Numbers        = OldStyle ,        ItalicFont     = LinLibertineOI ,        BoldItalicFont = LinLibertineOBI ,        BoldFont       = LinLibertineOB ,     ]{LinLibertineO}%               \usepackage[hmargin=2cm,vmargin=2.5cm]{geometry}     \usepackage{etoolbox}     \usepackage{longtable}%     \AtBeginEnvironment{longtable}{%       \addfontfeature{RawFeature=+tnum;-onum}%  <--- requires LuaTeX     }          \usepackage{pdflscape}     \usepackage[svgnames]{xcolor}     \usepackage{colortbl}%       \newcommand{\myrowcolour}{\rowcolor[gray]{0.925}}     \usepackage{booktabs}          \ifblackandwhite       \newcommand{\cheading}[2]{\textbf{#1\hfill #2}}       \newcommand{\highest}[1]{\textbf{#1}}% == highest score for question     \else       \newcommand{\cheading}[2]{\textcolor{Maroon}{\textbf{#1\hfill #2}}}       \newcommand{\highest}[1]{\textcolor{Maroon}{\textbf{#1}}}%     \fi                    \begin{document}     \thispagestyle{empty}     \parindent0pt     %          \cheading{Fake Course Evaluation Summary for \textsc{course         1234y}}{Sept.\ 2010 --- May 2011}          \begin{longtable}{@{}l rr rr rr rr rr rr}     % pairs: absolute number (percentage)          \toprule%      \centering%      & \multicolumn{2}{c}{{{\bfseries Excellent}}}      & \multicolumn{2}{c}{{{\bfseries Very Good}}}      & \multicolumn{2}{c}{{{\bfseries Good}}}      & \multicolumn{2}{c}{{{\bfseries Average}}}      & \multicolumn{2}{c}{{{\bfseries Poor}}}      & \multicolumn{2}{c}{{{\bfseries Very Poor}}} \\               \cmidrule[0.4pt](r{0.125em}){1-1}%     \cmidrule[0.4pt](lr{0.125em}){2-3}%     \cmidrule[0.4pt](lr{0.125em}){4-5}%     \cmidrule[0.4pt](lr{0.125em}){6-7}%     \cmidrule[0.4pt](lr{0.125em}){8-9}%     \cmidrule[0.4pt](lr{0.125em}){10-11}%     \cmidrule[0.4pt](l{0.25em}){12-13}%     % \midrule     \endhead               Some question about the Instructor or Course & 2 & (7.14) & 4 &     (14.29) & \highest{12} & \highest{(42.86)} & 4     & (14.29) & 6 & (21.43) & 0 & (0.00) \\          \myrowcolour%     Some question about the Instructor or Course & 3 & (10.71) &     \highest{15} & \highest{(53.57)} & 5 & (17.86) & 5 & (17.86) & 0 &     (0.00) & 0 & (0.00) \\          Some question about the Instructor or Course & 4 & (14.29) & 8 &     (28.57) & \highest{15}     & \highest{(53.57)} & 1 & (3.57) & 0 & (0.00) & 0 & (0.00) \\          \myrowcolour%     Some question about the Instructor or Course & 3 & (10.71) & 8 &     (28.57) & \highest{10} & \highest{(35.71)}     & 5 & (17.86) & 2 & (7.14) & 0 & (0.00) \\          Some question about the Instructor or Course & 6 & (21.43) &     \highest{9} & \highest{(32.14)}     & 4 & (14.29) & \highest{9} & \highest{(32.14)} & 0 & (0.00) & 0 & (0.00) \\          \myrowcolour%     Some question about the Instructor or Course & \highest{10} &     \highest{(35.71)} & \highest{10} & \highest{(35.71)}     & 3 & (10.71) & 5 & (17.86) & 0 & (0.00) & 0 & (0.00) \\          Some question about the Instructor or Course & \highest{12} &     \highest{(42.86)} & \highest{12} & \highest{(42.86)} & 3     & (10.71) & 1 & (3.57) & 0 & (0.00) & 0 & (0.00) \\          \myrowcolour%     Some question about the Instructor or Course & \highest{12} &     \highest{(42.86)} & 3 & (10.71) & 7     & (25.00) & 5 & (17.86) & 1 & (3.57) & 0 & (0.00) \\          Some question about the Instructor or Course & \highest{10} &     \highest{(35.71)} & 6 & (21.43) & 6 & (21.43) & 6 & (21.43)     & 1 & (3.57) & 0 & (0.00) \\          \myrowcolour%     Some question about the Instructor or Course & 5 & (17.86) & 5 &     (17.86) & \highest{12} & \highest{(42.86)} & 2 & (7.14)     & 3 & (10.71) & 1 & (3.57)\\          Some question about the Instructor or Course & 3 & (10.71) & 8 &     (28.57) & \highest{11} & \highest{(39.29)} & 3 & (10.71) & 3 & (10.71)     & 0 & (0.00) \\          \myrowcolour%     Some question about the Instructor or Course & \highest{18} &     \highest{(64.29)}     & 5 & (17.86) & 3 & (10.71) & 1 & (3.57) & 1 & (3.57) & 0 & (0.00) \\          Some question about the Instructor or Course & \highest{15} &     \highest{(53.57)}     & 7 & (25.00) & 2 & (7.14) & 2 & (7.14) & 2 & (7.14) & 0 & (0.00) \\          \myrowcolour%     Some question about the Instructor or Course & 3 & (10.71) &     \highest{13} & \highest{(46.43)} & 4 & (14.29) & 6 & (21.43) & 2     & (7.14) & 0 & (0.00) \\          \bottomrule          \end{longtable}          \end{document}      I read that I can incorporate the first part before the begin document into the LyX file by using the Documents-->Settings-->LaTeX preamble. The I created a latex input in LyX (Ctrl + L) and entered the rest of the code (the table). However, when I try to compile everything in LyX it doesn't work. I get many error messages with `fontspec` error font not found when I hit file-->export-->Pdf(XeTEX). I think the `fontspec` package is not installed but I don't know how I can install it...can somebody tell me how I could include this table into my LyX file..?


title: changing margins for a page with tables

text: I have a document with a table that is rather large. I have already decreased the size of the font but it still bleeds into the right margin. I would like to decrease the margins on that page so it uses some of the left margin as well, however, leave the margins on other pages as is. Is there a way to do this? I am using `endfloat` so the table is on it's own page.


title: Figure number adjusted with theorems

text: I am trying to adjust the figure numbers linked to the theorem it is displayed in. In case of a theorem contains exactly one figure, the figure number will be `theorem number`; for multiple figures, the figures will be numbered like `theorem number`.`figure number`. I have tried:               \documentclass[10pt]{article}     \usepackage{graphicx, thmtools, lipsum, float}     \declaretheorem{Job}          \makeatletter     \let\c@equation\c@figure     \makeatother     \renewcommand{\thefigure}{\arabic{Job}.\arabic{equation}}          \begin{document}          \begin{Job}[Off home]     \lipsum[2]     \begin{figure}[H]       \centering       \includegraphics[height=.6in]{coalminer}       \caption{Coal-miner}     \end{figure}          \lipsum[2]     \begin{figure}[H]       \centering       \includegraphics[height=.6in]{engineer}       \caption{Engineer}     \end{figure}     \end{Job}          \begin{Job}[Home]     \lipsum[2]     \begin{figure}[H]       \centering       \includegraphics[height=.6in]{police}       \caption{Police}     \end{figure}     \end{Job}     \end{document}      It works fine for the multiple figure case, but for the single figure case it is not working (the figure number for `Police` job should be just `2`): ![](http://i.stack.imgur.com/vbqDf.png) How can I do that?


title: Filtering options with pgfkeys

text: I am looking for an example of how to get `pgfkeys` to split a list of options so that: (1) some of the options are processed now, and (2) the rest of the options are passed to a second macro for further processing. It seems that key filtering should be the answer to this, but I'm not sure how to go about it. Let's start assuming that there is some command `\theirmacro{...}` whose single argument takes a key-value list of options. I know that it understands options `optA` and `optB`, but it may also accept other options (also later updates of `theirpackage` might even define new options of which I am not aware at this point). Furthermore, `theirpackage` might or might not be implemented using `pgfkeys`. Now I want to define some new `\mymacro{...}` which additionally also understands `optC` and `optD`, and passes all other options to `\theirmacro`. That is, calling `\mymacro{optA=1,optC=2}` should: (1) do something with the value of optC, and internally also call `\theirmacro{optA=1}` to process the rest of the options.


title: Histogram fill with logarithmic scale

text: I face a "filling" problem when I run one of the pgfplots example but with y-log scale. Here is the MWE               \documentclass{standalone}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}       \begin{semilogyaxis}[ymin=0,ymax=1,enlargelimits=false]         \addplot           [const plot,fill=blue,draw=black]           coordinates             {(0,0.1)    (0.1,0.15)  (0.2,0.5)   (0.3,0.62)              (0.4,0.56) (0.5,0.58)  (0.6,0.65)  (0.7,0.6)              (0.8,0.58) (0.9,0.55)  (1,0.52)}       \closedcycle;       \end{semilogyaxis}     \end{tikzpicture}     \end{document}      Here is the output result ![Here is the result](http://i.stack.imgur.com/7RS49.png) I also try to change the minimal value of y since logarithm of 0.0 is undefined but it does not help.


title: natbib, et al by more than one author

text: I've got some problems with my bibliography style Code:               \usepackage[square]{natbib}     \usepackage[english,ngerman{babel}     \begin{document}     \chapter{Einleitung}          Text..... \citep{Marley2009}               \bibliography{literatur}      \bibliographystyle{plainnat}     \end{document}               @ARTICLE{Marley2009,     author = {Marley and Smith},     title = {Einsatz von Pulveraktivkohle zur Elimination von Mikroverunreinigungen     aus dem Abwasser},     journal = {blabla},     year = {2009},     owner = {bobmarley},     timestamp = {2012.10.31}     }      I'm getting then > [Marley and Smith2009] what I want is > [Marley et al 2009], et al by more than one authors. Any idea how get that?


title: Conflict between exam class and fancyhdr package

text: With the code below:               \documentclass[answers,a4paper]{exam}     \usepackage{fancyhdr}     \begin{document}     hello world     \end{document}      I get the build error:               ! LaTeX Error: Command \lhead already defined.                Or name \end... illegal, see p.192 of the manual.      I need to manually set the header and foot in my page using fancyhdr. So is there any way to disable the header and foot setting in exam class?


title: Right Alignment of text

text: i am a newbie on LaTeX. After writing a simple code               \documentclass[margin,line]{res}     \begin{document}           \begin{tabbing}       Sample1  \` sample2 \\      \end{tabbing}          \begin{resume}     \end{resume}               \end{document}      I got an output with a black underline.                                                   Sample1                                              sample2       but the `Sample1` lies just at the center of the page, not at the left side. What I want is to display `Sample1` in the left side, and `Sample2` on the right side. I need a code for that with tabbing. How is this possible ?


title: Is there a command of the type "\blabla" where I can write \mbox{div}(F)

text: Maybe my question is easy. When I want to write               $$ \mbox{div}(F) = \sum_i (F_i)_{x_i} $$      I have to type `\mbox{div}(F)`, which is cumbersome. Is there a way to define a command `\blabla` to produce `\mbox{div}(F)`?


title: Renumbering pages in tufts-book class

text: I am just starting to use the tufts-latex style. It numbers the pages from the very first page, though only displays them at the start of chapter 1. Is there a way to force it to start the number with page 1 at the start of chapter 1?


title: converting tikz to pdf

text: I would like to create a graphic with gnuplot for example and import it to latex to implement it in a text. The problem is that its caption, which I created with latex, has a different font, size etc. than the labeling of the axes which were created by gnuplot. Now I thought I might create an image via gnuplot saved as `tikz`, so that, when I include it in latex, the labeling's font etc., changes to the standards of the rest of my document in latex. At the end I would like to see a PDF format file which contains my text and the graphic with the same font-/ size etc.


title: \restylefloat does not restyle properly threeparttable caption

text: The following code does not produce the result I would expect. When the caption position is changed by restyling the caption it is no longer centred; it moves to the left. Any idea on how to fix the problem (I don't want to move the inside threeparttable caption).               \documentclass{scrartcl}     \usepackage{array}     \usepackage{ragged2e}     \usepackage{booktabs}     \usepackage{threeparttable}     \usepackage{siunitx}     \usepackage{xparse}     \usepackage{float}          \floatstyle{komaabove}     \restylefloat{table}     \newcolumntype{L}[1]{>{\RaggedRight\hspace{0pt}}p{\dimexpr #1\linewidth-2\tabcolsep}}     \newcolumntype{C}[1]{>{\Centering\hspace{0pt}}p{\dimexpr #1\linewidth-2\tabcolsep}}     \newcommand{\uhrule}{\midrule[\heavyrulewidth]}          \DeclareExpandableDocumentCommand{\mcc}{o o m}{%          \IfNoValueTF{#1}          {\multicolumn{1}{c}{#3}}             {\IfNoValueTF{#2}                 {\multicolumn{#1}{c}{#3}}                 {\multicolumn{#1}{C{#2}}{#3}}         }     }          \begin{document}     \begin{table}[t]     \centering     \begin{threeparttable}     \begin{tabular}{L{0.15}                 S[table-format=6]                 S[table-format=5]                 S[table-format=2.1,                    table-space-text-post = {**}]                }     \toprule     Race     & \mcc[1][0.20]{Population\tnote{b}}     & \mcc[1][0.20]{Homicides}     & \mcc[1][0.10]{Rate\tnote{c}} \\ \uhrule          Black\tnote{d} & 29986   & 12114 & 40.5* \\     White          & 199686  & 12153 &  6.1  \\     Other\tnote{e} & 19038   & 635   &  3.3** \\ \midrule     Total          & 248710  & 24932 & 10.0 \\     \bottomrule     \end{tabular}     \begin{tablenotes}[flushleft]     \item[a] Data developped from the Statistical Abstract of the United States -- 1993.     \item[b] Population in $1000$s.     \item[c] Rate per $100\,000$ in the population.     \item[d] The rate for \emph{Black} males was 69.2, for \emph{White} males it was 9.0.     \item[e] About one-half of the \emph{Other} category was composed of Asian Americans and Native Americans.     \end{tablenotes}     $*p<.001$, two-tailed test. $**p<0.05$, two-tailed test.     \caption{Homicides by race of the victim in 1993 in the USA.\tnote{a}}     \label{tab5}     \end{threeparttable}     \end{table}     \end{document}


title: Creating two filled plots that overlap with transparency

text: I'm using `pgfplots` to plot two filled curves. I'd like them to overlap transparently so that the "lower" figure can be seen through the "upper one". Using the `forget style` mode will draw the first figure transparently, but that's the one that is below ! MWE:               \begin{tikzpicture}       \begin{axis}[ybar,bar width=2pt]       \addplot[color=red,mark=,draw=red,fill opacity=0.5] table[x=0,y=1]\transtable;       \addplot[color=blue,mark=,draw=blue,fill opacity=0.5] table[x=2,y=3]\transtable;       \end{axis}     \end{tikzpicture}      Is there a direct way to get somewhat transparent overlapping plots ?


title: Cross referencing tcolorbox with cleveref-package

text: Thanks to Thomas F. Sturm (http://tex.stackexchange.com/a/124688/15907) I have a little environment for creating nice looking source code in LaTeX. I started my enviroment with this here:               \begin{listingsbox}[label={lst:agent:logstash:configuration}]{mycode}{Konfiguration von LogStash auf Agent}      (The part in the square brackets are the same commands as for tcolorbox) And I have my own little ref command:               \newcommand{\myref}[1]{see \cref{#1} \nameref{#1} \vpageref{#1}}      So I get something like: "see figure 3.1: How to chuck wood on page 31" which is really nice. If I do this with the label of the tcolorbox:               \myref{lst:agent:logstash:configuration}      I get: "see ?? 3.1: Konfiguration von LogStash on page 31". As you can see, cleveref is not able to provide a correct name here. I know I can change this when defining it with `\crefname{<type>}{<singular>}{<plural>}` but I can not figure out which type I have to provide. Does anyone have a clue?


title: new command for including a custom string into \cref

text: In this thread here: Subfigure labelling for a single figure I suggested a solution how to include a custom string into the hyperlink created by the `\cref` command. I'd like to create a compact new command which would take the label and the custom string. Sth. like: `\crefSugFigRef{\fig:label}{customstring}` However, `\newcommand{\crefSugFigRef}[2]{\crefformat{figure}{fig.~#2#1{(#2)}#3}\cref{#1}\crefformat{figure}{fig.~#2#1#3}}` cannot work because both, `\newcommand` and `\crefformat` use the string `#1` and `#2`. Has anybody an idea how to make this work?


title: Different spacing between section number and its caption TOC

text: I want to use two different spacing between section number and its caption in the Table of Contents (TOC) I already have tried the solutions: TOC Text - numbers alignment Adjusting spaces for the ToC But I think they are not suitable. Well the minimal example is:               \documentclass[a4paper,12pt,twoside]{scrreprt}          \usepackage{hyperref}     \hypersetup{colorlinks,breaklinks,plainpages=false,linktocpage,hypertexnames=true,naturalnames=false}     \hypersetup{linkcolor=red,citecolor=blue,filecolor=blue,urlcolor=blue} %Colorful          \usepackage{tocloft}          %%% Configure de distance     \setlength{\cftsecnumwidth}{4em}               \begin{document}     \tableofcontents          \chapter{Hardware Data} \label{chap.hardware}          \setcounter{section}{19}          \section{Test section one}     \subsection{test section one one}     \subsection{test section one two}          \section{Test section two}     \subsection{test section two one}     \subsection{test section two two}          %%%% Appendix     \cleardoublepage     \phantomsection     \appendix     \chapter*{Appendix}     \addcontentsline{toc}{part}{Appendix}          \chapter{Appendix Test Chapter}          \setcounter{section}{199}     \section{Test Section}          %%%%%%%%%%%%%%%% Annex:     \cleardoublepage     \phantomsection     \setcounter{chapter}{0}     \renewcommand{\theHchapter}{an.\Alph{chapter}}     \renewcommand{\thechapter}{$\,\!$\Alph{chapter}}          \renewcommand{\appendixname}{Annex}      \addcontentsline{toc}{part}{Annex}     \chapter*{Annex}          \renewcommand{\thesection}{\thechapter$_{x}$.\arabic{section}}          \chapter{Annex Test Chapter}          \setcounter{section}{1199}     \section{Test Section}          \end{document}      Wich results in the figure below, depending on               \setlength{\cftsecnumwidth}{4em}      ![enter image description here](http://i.stack.imgur.com/FaGM2.png) Well, in the Annex I want more space, but I also want to keep the smaller spacing for the sections in the regular chapters. Does anyone have a clue and/or can help ? Thanks a lot ! Will PS: For the record, I have also asked this question in http://latex-community.org/forum/viewtopic.php?f=47&t=23471


title: Accessing the most-recently-declared label when issuing a cross-referencing command

text: Is there a way to access the key of the most-recently-declared label? for instance:                   \begin{equation}\label{equ:1}         ...         \end{equation}              bla bla bla \ref{\getlastlabelkey} bla bla bla ...      instead of:                   bla bla bla \ref{equ:1} bla bla bla ...