title: Overriding biblatex verbose style abbreviated citation

text: I am using `biblatex` with the verbose citation style. In one instance I need to force an abbreviated footnote citation back to the original (long) form. My guess is that I need to reset or override a flag or setting. I only wish to do that for one reference, in one specific location, leaving all other things alone. TIA Nigel


title: Index problem when using l3doc for LaTeX document writing

text: I use `l3doc` to write document for my package. In the document I need describe macros, environments and options of the package. I started using the environment `function` only. After the tip came from @egreg (Thanks!), I found the environment `environment`. Since I haven't found the document for `l3doc`. I encounter more problems. Here it's an example:               \documentclass{l3doc}     \usepackage{lipsum} % to generate some text          \begin{document}          \lipsum          \begin{function}{\macro}     this is a macro.     \end{function}          \begin{environment}{env}     this is an env.     \end{environment}          \begin{function}{opt}     \begin{syntax}         opt = \meta{a}     \end{syntax}     this is an opt.     \end{function}          \PrintIndex          \end{document}      I compile it using command below:               pdflatex example     makeindex -s l3doc.ist example     pdflatex example     pdflatex example      The result looks like this: ![result](http://i.stack.imgur.com/L9amI.png) There're several problems:   1. You can see that the entry `env` repeats twice.   2. The page number of entry `env` is wrong.   3. The entry `opt` should be indexed under `O` rather than `P`. Since it's an option not an environment, I cannot use `environment`. I need `syntax`. Thanks for any help.


title: Detecting current column in multicol

text: I'm working in a two-column multicol environment, and trying to create pullquotes using wrapfig. The problem is, I'd like these pullquotes to hang in the margin: the left margin if I'm in the left column, the right margin if I'm in the right. Is there any way to detect the current column number, so that I can tell wrapfig: "Hang the figure left if column number = 1, and hang it right if column number = 2"? I have a lot of this sort of text, and it would be pretty tedious to set this all by hand. I've tried using this pullquote package, but so far have just gotten a bunch of microtype errors (I'm using XeLaTeX). Edit: a sort of MWE would look like this, obviously `\imaginarycolumnnumberidentifier` is what I'm after. Clearly this isn't a "working" example, and I've not actually tried using etoolbox before so there might be other problems with this code, but you get the idea.               \documentclass{article}     \usepackage{multicol}     \usepackage{wrapfig}     \usepackage{lipsum}     \usepackage{etoolbox}          \newenvironment{pquote}{%       \begin{wrapfigure}[3]{%           \ifnumequal{1}{\imaginarycolumnnumberidentifier}{l}{r}%         }[0.2\columnwith]{0.4\columnwidth}       }{%       \end{wrapfigure}}          \begin{document}          \begin{multicols}{2}     \lipsum[1]     \begin{pquote}       Lorem ipsum!     \end{pquote}     \lipsum[2]     \begin{pquote}       dolor sit amet!     \end{pquote}     \lipsum[3]     \end{multicols}          \end{document}      I don't have enough reputation to post an image, so you'll just have to imagine the output! Trust me, the first pquote is on the left side, and the second pquote is on the right side. In my mind. ![image](http://i.imgur.com/PS9MNjO.jpg)


title: How can I number my subsequent results after my theorems?

text: I am trying to number my theorem results after my theorem, i.e Theorem 1 followed by Result 1.1, Result 1.2,... and Theorem 2 followed by Result 2.1, Result 2.2 and so on, where the first number after "Result" is the number of the theorem the result corresponds to. I am doing this in beamer. I am using the amsthm package and my code is as follows:                     \theoremstyle{theorem}     \newtheorem{thm}{Theorem}[section]     \theoremstyle{theorem}     \newtheorem{res}{Result}[section]      Thank you! Edit: As tohec suggested, here is a working example:               \documentclass{beamer}     \usepackage[ labelfont={bf, color =ot}]{caption}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage{bm}     \usepackage{tikz-cd}     \usepackage{relsize}     \usepackage{amsthm}     \usepackage{esdiff}     \usepackage{amsthm}          \setbeamertemplate{theorems}[numbered]          \theoremstyle{theorem}     \newtheorem{thm}{Theorem}     \theoremstyle{theorem}     \newtheorem{res}{Result}          \begin{document}          \begin{frame}          \begin{thm}Here lies the first theorem.\end{thm}          \begin{res}Here lies the first result from the first theorem\end{res}          \begin{res}Here lies the second result from the first theorem\end{res}          \begin{thm}Here lies the second theorem.\end{thm}          \begin{res}Here lies the first result from the second theorem\end{res}          \end{frame}     \end{document}      This is what I get: ![image](http://imgur.com/3ydrGVR.png) Beamer numbers my theorems in consecutive order and my results in consecutive order, with no relation between them. Here is what I'd like to have: Theorem 1 Here lies the first theorem. Result 1.1 Here lies the first result from the first theorem. Result 1.2 Here lies the second result from the first theorem. Theorem 2 Here lies the second theorem. Result 2.1 Here lies the first result from the second theorem.


title: biblatex: remove commas between last and first names in bibliography

text: I am new to `biblatex`, and I need to create a bibliography with the authors' names with last names followed by pure initials. Using the `style=numeric`, `firstinits` and `terseinits` options along with:               \DeclareNameAlias{author}{last-first}      I come up with a list of names that looks like: > Doe, J, Smith, K, and Doe, W" How can I remove the commas between the last name and the initial of the first name?


title: Skip double marks on chapter pages

text: Here is a little example to illustrate my problem:               \documentclass[fontsize=12pt, paper=a4]{scrreprt}      \usepackage[ngerman]{babel}     \usepackage{blindtext}     \usepackage{scrpage2}           \clearscrheadfoot      \pagestyle{scrheadings}      \ihead{\leftmark}      \ohead{\rightmark}      \cfoot{\pagemark}           \automark[subsection]{chapter}           \begin{document}           \chapter{Test}     \Blindtext          \section{Sec}     \Blindtext          \subsection{SubSec}     \Blindtext          \chapter{Test2}     \Blindtext          \section{Sec2}     \Blindtext          \subsection{SubSec2}     \Blindtext     \end{document}      As you can see I would like to have chapter and subsection in the heading of each page. But on pages 2 and 6, where no subsection is available, the chapter appears twice in the head. On pages 3, 4, 7 and 8 everything is OK. I would like to suppress the `\rightmark` for the subsection, when there is no subsection available. How can I do this?


title: Error compiling a latexdiff PDF file

text: I just started trying out latexdiff for editing some papers and I am having trouble with the getting the tex output from latexdiff compile when my code includes `\intertext` within a `\begin{align*}` environment. This is the error I get               Underfull \hbox (badness 10000) in paragraph at lines 83--86          [1{/usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]     /Users/erikchan/Desktop/TSWLatexianTemp_000048.tex:131: Misplaced alignment tab character &.     \math@cr@@@ ->&                    \omit \global \advance \row@ \@ne \ifst@rred \nonumber \fi \if@eqnsw \global \tag@true \fi \ifnum \column@ >\maxfields@ \ifcheckat@ \begingroup \measuring@false \@amsmath@err {Extra & on this line}{\the \andhelp@ }\endgroup \else \global...     ￼l.131      }\end{align*}          ?      The version of latexdiff I am running is               This is LATEXDIFF 1.0.3  (Algorithm::Diff 1.1902, Perl v5.12.4).      Thank you in advance. Edit: I should add that I made several attempts to find a solution to this, but I couldn't find an existing solution online and this error completely mystifies me because I don't understand why it is complaining about my alignment tab. Edit2: I tried to look for the error and I still cannot find it. If it is a syntax error, is it common for latexDiff to output code with syntax errors?                \documentclass[12pt,letterpaper]{article}     %DIF LATEXDIFF DIFFERENCE FILE     %DIF DEL Lecture.tex     Tue Dec 10 18:18:33 2013     %DIF ADD Lecture 2.tex   Tue Dec 10 18:17:11 2013     \usepackage{anysize}     \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{amssymb}     \usepackage{cite}     \usepackage{graphicx}     \usepackage{mathrsfs}     \usepackage{upgreek}     \usepackage{enumerate}     \usepackage{pictexwd,dcpic}     \newcommand{\Int}{\operatorname{Int}}     \newcommand{\cl}{\operatorname{Cl}}     \newcommand{\se}{\subseteq}     \newcommand{\bs}{\\ $\left.\right.\hfill\blacksquare$}     \newcommand{\C}{\mathbb{C}}     \newcommand{\D}{\mathcal{D}}     \newcommand{\R}{\mathbb{R}}     \newcommand{\Z}{\mathbb{Z}}     \newcommand{\N}{\mathbb{N}}     \newcommand{\Q}{\mathbb{Q}}     \newcommand{\T}{\mathcal{T}}     \newcommand{\es}{\varnothing}     \newcommand{\sm}[2]{#1\setminus#2}     \newcommand{\pf}[2]{\frac{\partial #1}{\partial #2}}     \newcommand{\pfn}[3]{\frac{\partial^{#3} #1}{\partial {#2}^{#3}}}     \newcommand{\op}[1]{\operatorname{#1}}     \newtheorem{theorem}{Theorem}[section]     \newtheorem{proposition}[theorem]{Proposition}     \newtheorem{lemma}[theorem]{Lemma}     \newtheorem{corollary}[theorem]{Corollary}     \newtheorem{conjecture}[theorem]{Conjecture}     \theoremstyle{definition}     \newtheorem{defn}{Definition}[section]      \newtheorem{example}{Example}[section]          % unnumbered environments:          \theoremstyle{remark}     \newtheorem*{remark}{Remark}     \newtheorem*{notation}{Notation}     \newtheorem*{note}{Note}     %DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF     %DIF UNDERLINE PREAMBLE %DIF PREAMBLE     \RequirePackage[normalem]{ulem} %DIF PREAMBLE     \RequirePackage{color}\definecolor{RED}{rgb}{1,0,0}\definecolor{BLUE}{rgb}{0,0,1} %DIF     PREAMBLE     \providecommand{\DIFadd}[1]{{\protect\color{blue}\uwave{#1}}} %DIF PREAMBLE     \providecommand{\DIFdel}[1]{{\protect\color{red}\sout{#1}}}                      %DIF PREAMBLE     %DIF SAFE PREAMBLE %DIF PREAMBLE     \providecommand{\DIFaddbegin}{} %DIF PREAMBLE     \providecommand{\DIFaddend}{} %DIF PREAMBLE     \providecommand{\DIFdelbegin}{} %DIF PREAMBLE     \providecommand{\DIFdelend}{} %DIF PREAMBLE     %DIF FLOATSAFE PREAMBLE %DIF PREAMBLE     \providecommand{\DIFaddFL}[1]{\DIFadd{#1}} %DIF PREAMBLE     \providecommand{\DIFdelFL}[1]{\DIFdel{#1}} %DIF PREAMBLE     \providecommand{\DIFaddbeginFL}{} %DIF PREAMBLE     \providecommand{\DIFaddendFL}{} %DIF PREAMBLE     \providecommand{\DIFdelbeginFL}{} %DIF PREAMBLE     \providecommand{\DIFdelendFL}{} %DIF PREAMBLE     %DIF END PREAMBLE EXTENSION ADDED BY LATEXDIFF          \begin{document}          \author{}     \date{}     \title{Wavelets and Signal Processing}     \maketitle     A wavelet is just a small portion of a larger signal. We wish to express the signal as the     sum of waves, so given a signal \DIFdelbegin \DIFdel{$\vec f$}\DIFdelend \DIFaddbegin     \DIFadd{$ f$}\DIFaddend , we wish to write it as     $$\vec f = \sum_{k=1}^{n} c_{k}\vec{w}_{k}$$     where $c_{k}$ are the coefficients and $\vec{w}_{k}$ are the wavelets. The key here is that we must find a way to compute the coefficients \DIFdelbegin \DIFdel{$c_{k}$}\DIFdelend \DIFaddbegin \DIFadd{$c_{1k}$}\DIFaddend . Given a random vectors $w_{k}$, how difficult is it to calculate the $c_{k}s$.          If we have a random vector it is $\mathcal{O}(N^{3})$. If we have orthogonal vector's $\mathcal{O}(N^{2})$, if we use the FFT, we have $\mathcal{O}(N\log(N))$, but with wavelets, it is only $\mathcal{O}(N)$.          \subsubsection*{Example of wavelets}     The Haar Wavelet. Takes discrete values of $0,1,-1$.\\     The ``Mexican Hat Wavelet'' or Ricker wavelet,  which is the second derivative of a     guassian $e^{-x^{2}}$. Daubechies wavelet, which is continuous and nowhere differentiable.     \subsubsection*{Gram Schmidt Process}     To implement Gram Schmidt in MATLAB, we construct a matrix $C$ where     $$C = [ \langle u_{j},u_{k}\rangle]$$     the matrix of inner products, let $L$ be the lower triangular part of the Cholesky     decomposition, then the inverse transpose will give the coefficients of the basis in its columns.\\\\     Given vectors $\{u_{i}\}_{i=1}^{n}$, we find vectors $\{v_{i}\}_{i=1}^{n}$ that are orthonormal and span the same space as $\{u_{i}\}_{i=1}^{n}$. By Cholesky decomposition, define the matrix of vectors $u_{i}$ as its columns     $$U = \begin{bmatrix}                 u_{1}, u_{2},\dots, u_{n}             \end{bmatrix}$$     Then $U^{*}U$ is symmetric positive definite, which implies a cholesky decomposition $LL^{*}$ exists, where $L$ is lower triangular with diagonal entries are all positive. Finally, we write     $$V = U(L^{-1})^{*} = \begin{bmatrix}                         v_{1} v_{2} \dots v_{n}                     \end{bmatrix}$$     then the columns of $V$ ar ethe orthonormal vectors we want. Let us prove that these columns are orthonormal     $$V^{*}V = [U(L^{-1})^{*}]^{*} U(L^{-1})^{*} = L^{-1}U^{*} U(L^{*})^{-1} = L^{-1} L L^{*}(L^{*})^{-1} = I$$     Now let us show that $v's$ span the same space as the $u$'s. Since     $$\begin{bmatrix}         v_{1}v_{2}..v_{n}     \end{bmatrix} = V = U(L^{*})^{-1} = \begin{bmatrix}                                     u_{1}&u_{2}&\dots &u_{n}                                  \end{bmatrix}                                     \begin{bmatrix}                                         \ell_{11} & \ell_{1,2} & \ell_{1,3} &\dots\\                                         0 & \ell_{2,2} & \dots & \dots\\                                         0 & 0 & \ell_{3,3} & \dots\\                                     \end{bmatrix}$$     \DIFaddbegin \DIFadd{So      }\begin{align*}\DIFadd{         \vec{v}_{1} }&\DIFadd{= \ell_{1,1}\vec{u}_{1}}\\         \DIFadd{\vec{v}_{2} }&\DIFadd{= \ell_{1,3} \vec{u}_{1} + \ell_{2,2} \vec{u_{2}}}\\         \DIFadd{\vec{v}_{3} }&\DIFadd{= \ell_{1,3} \vec{u}_{1} + \ell_{2,3}\vec{u_{2}} + \ell_{3,3}\vec{u}_{3}     }\end{align*}     \DIFadd{But what about functions? We instead take $u$  whose ``matrix'' columns are functions. Then calculate $U^{*}U$ as usual, and each element of the matrix becomes inner products.     }\begin{align*}\DIFadd{U }&\DIFadd{= \begin{bmatrix}             1 & x & x^{2} & x^{3}         \end{bmatrix}}\\         \DIFadd{\intertext{Then}}\\     \DIFadd{UU^{*} }&\DIFadd{= \begin{bmatrix}                 \langle 1,1\rangle & \langle 1,x\rangle & \langle 1,x^{2}\rangle \\                 \dots & \dots & \dots              \end{bmatrix}.         }\end{align*}      \DIFaddend\end{document}


title: How to set the in line citation style globally in biblatex?

text: I'm using `biblatex` and `biber` to generate my bibliography and I would like to be able to control the style of a "normal" citation in the text globally in the preamble. At the moment I use `\supercite{}` every time to cite something. Ideally I would do something like use the `\cite{}` macro throughout my document and choose the style of citation either in the preamble or with a macro at the beginning of a chapter. Is this possible? I'm also using `biblatex-chem` if that influences anything.


title: How can I make a custom \item for use in a list?

text: I would like to change the color of an `\item` in a list and I would like the item to look like a regular item.               \begin{itemize}     \item item one     \reditem item two     \item item three     \end{itemize}      and have "item two" be red and leave the font color of everything else alone? I've looked and my google-fu is weak.


title: Passing name ending with number to \csname does not work

text: > **Possible Duplicate:**   >  macro names with special characters When I use `\yyy` defined bellow it does not print `yyy`, but if I use `\xxx` it prints `xxx`. How can I make `\yyy` work?               \def\P1{yyy}     \def\PA{xxx}     \def\yyy{\csname P1\endcsname}     \def\xxx{\csname PA\endcsname}


title: How to left align text in two column itemize

text: When I use following MWE for getting itemized text in two columns, the item in the list sometimes take a "justified" formatting and thus there is significant space in between two words. This produces a poor looking two column list. How can I make them align to the left, thus improving the look?               \documentclass{article}        \usepackage{etoolbox}         \AtBeginEnvironment{itemize}{\begin{multicols}{2}}    %%% this line         \AtEndEnvironment{itemize}{\end{multicols}}            %%% and this one         \usepackage{multicol}         \begin{document}                 \begin{itemize}         \item my first item         \item my second item         \item my third item in itemized environment         \item my forth         \item 5         \item 6         \item 7         \item 8         \item 9         \item 10         \item 11         \item 12         \item 13         \end{itemize}         \end{document}


title: pgffor map elements

text: pgffor's foreach can take an "array" of elements. I need to map those elements using another array(a lookup table) because I need both the elements and there mapped value. e.g., suppose I an doing some cryptography and have letters mapped to numbers in some non-standard way               \foreach \i in {a,b,c,d,e}     {      \i = \lookup{\i}{\data}     }      where data is, I guess some type of associative array that says stuff like               a = 12, b = 16, c = 3, d = 9, e = 19      which the foreach will then print               a = 12     b = 16     c = 3     d = 9     e = 19      I also can simply another array and I want to step through them simultanously, for of like               \foreach \i,\j in {a,b,c,d,e} , {12,16,3,9,19}     {      \i = \j     }      (I do not want some type of nested loops, that is not what I'm trying to do) The easiest solution the better. I'm not trying to do anything extremely complex


title: autonum does not work with eqnarray?

text: I always wanted to have a package like `autonum`. Well, it is finally here and its development is still under way, but I already have two problems:   1. It does not work with eqnarray.   2. When referencing to equation, there appears space in front of the number, e.g. ( 3). Is that already possible to resolve or we'll have to wait?               \documentclass{article}     \usepackage{amsmath}     \usepackage{autonum}          \begin{document}          \begin{eqnarray}     a = g,\\     a = g.     \end{eqnarray}          \begin{equation}     a = g.     \label{tlabel}     \end{equation}          Reference to: (\ref{tlabel})          \begin{equation}     a = g.     \end{equation}          \end{document}


title: How can I stop LaTeX from overriding instructions on spacing?

text: I'm using LaTeX to typeset my thesis, using a class that some students at my school wrote to typeset according to the graduate school formatting requirements. The class uses the setspace package to double-space the document. The problem that I am having is that LaTeX is deciding of its own volition to spontaneously revert to single spacing for paragraphs (or fragments of paragraphs)! It appears to be related to floats, as moving the declaration point of two table floats can make one of the instances double-space properly. However, the floats do not appear embedded in the text---they go onto a separate page---and adding a hard page break in the middle of the offending paragraph (or fragment) will produce a half-full, single-spaced page rather than a full double-spaced page. Are there any commands I can use to tell LaTeX to cut it out, and consider the requested line spacing to be inviolate? The smallest working example I've been able to produce is the following---it requires the nddiss2e class, which may be obtained from the ND graduate school website (http://graduateschool.nd.edu/assets/4699/nddiss2e_3.0.tgz):               \documentclass{nddiss2e} % doesn't misbehave with article or book       \usepackage{lipsum}          \begin{document}          \chapter{ONE}          \section{Section}          \subsection{Subsection}          \lipsum[1]          \subsection{Force Field}          The force field for the simulations combines two pairwise potential     forms. Interactions between the sodium cations and the oxygen atoms     in both the Na-Ge-Nb and water are modeled using a Buckingham dispersion/repulsion     term \citep{jaramillo_1999} and a Coulombic point charge interaction     term:%\begin{equation}       %U_{ij,buck}=A_{ij}\exp\left(\frac{-r_{ij}}{\rho_{ij}}\right)-\frac{C_{ij}}{r_{ij}^{6}}+\frac{q_{i}q_{j}}{r_{ij}}\end{equation}       where $U_{ij,buck}$ is the Buckingham potential for a pair of sites     $i$ and $j$ separated by a distance $r_{ij}$, $A_{ij}$ and $C_{ij}$     are Buckingham parameters, and $q_{i}$ and $q_{j}$ are the point     charges for sites $i$ and $j$, respectively. Interactions between     the oxygen atoms in both the Na-Ge-Nb and water are modeled using     a pairwise potential combining a Lennard-Jones dispersion/repulsion     term and a Coulombic point charge interaction term:%\begin{equation}       %U_{ij,LJ}=4\epsilon_{ij}\left(\left(\frac{\sigma_{ij}}{r_{ij}}\right)^{12}-\left(\frac{\sigma_{ij}}{r_{ij}}\right)^{6}\right)+\frac{q_{i}q_{j}}{r_{ij}}\end{equation}       where $U_{ij,LJ}$ is the Lennard-Jones potential for a pair of sites     $i$ and $j$ separated by a distance $r_{ij}$, $\sigma_{ij}$ and     $\epsilon_{ij}$ are Lennard-Jones parameters, and $q_{i}$ and $q_{j}$     are the point charges for sites $i$ and $j$, respectively. The crystal     was modeled with Lennard-Jones sites at only the exposed oxygen atoms,     but with Coulombic sites at all atoms. Water was modeled using the     rigid Simple Point Charge (SPC) model \citep{berendsen_1981}. The     framework oxygen Lennard-Jones parameters were taken as identical     to the SPC oxygen for water-framework and cation-framework interactions.     The point charges for the framework were obtained using plane-wave     density functional theory calculations \citep{larentzos_2008} on K-Ge-Nb,     and one goal of this study was to verify the transferability of the     charges from K-Ge-Nb to Na-Ge-Nb. A complete listing of force field     parameters and partial charges is given in Tables \ref{tab:NaIPX_ljparams}     and \ref{tab:NaIPX_charges}. The simulation was carried out using     three-dimensional periodic boundary conditions. A cutoff of 11.5~\AA     was used for the Lennard-Jones terms. Long-range electrostatic interactions     were computed using the Ewald summation method \citep{wheeler_1997},     with a 11.5~\AA real-space cutoff, an h-vector cutoff of 3.75~\AA$^{-1}$,     and a damping factor of 0.3478.%       \begin{table}[bph]       \begin{centering}       \caption{\label{tab:NaIPX_ljparams}{INTERACTION PARAMETERS     FOR SIMULATION OF NA-GE-NB}}       %       \begin{tabular}{cccccc}       \hline       Interaction & $\sigma_{ij}$ (\AA) & $\varepsilon_{ij}/k_{B}$ (K) & $A_{ij}$ (K) &  $\rho_{ij}$ (\AA) & $C_{ij}$ (K \AA$^{-6}$)\tabularnewline       \hline       \hline       Na-O$_{\mathrm{framework}}$ &  &  & 61155438.4 & 0.2468 & 765893.5\tabularnewline       Na-O$_{\mathrm{water}}$ &  &  & 61155438.4 & 0.2468 & 765893.5\tabularnewline       O$_{\mathrm{water}}$-O$_{\mathrm{framework}}$ & 3.169 & 78.201 &  &  & \tabularnewline       O$_{\mathrm{water}}$-O$_{\mathrm{water}}$ & 3.169 & 78.201 &  &  & \tabularnewline       \hline       \end{tabular}       \par\end{centering}       %       \end{table}          \end{document}      Although there will be warnings about missing references, running the code through either latex proper or pdflatex will produce output demonstrating the offending behavior.


title: Creating a box framework for inside the formula enviroment

text: For a list of things to be used inside the formula enviroment, I want to create boxes stacked over each other. I basically want to write               $$ A := "Box with lines like 'A is a number', 'A is bigger than 3',... " $$      What I come up with is is               \newcommand{\mybox}[2]{\stackrel{\fbox{$#1$}}{\fbox{$#2$}}}       but it pretty much sucks when it comes to what I really want. It's only two boxes and they don't even touch each other. Their length depends on the content. It should look more like a shelf. The length of all boxes should fit (the height might depend on the content). Also, the box should be oriented such that the := is in the vertical center. But if I want to use my construction for more than two boxes I have to do stupid things like               \mybox{statement 1}{\mybox{and statement 2}{statement 3}}      ![enter image description here](http://i.stack.imgur.com/xUo5w.png)


title: Beamer: Emphasize a part of a slide

text: I am using Beamer to create presentations. I know that it is possible to use environments like Theorem, Definition and so on:               \begin{Teorem}     Great theorem     \end{Theorem}      It appears in the box of different color with its header "Theorem". I would like to create the same emphasized box, but without any header. How one can do this?


title: disaster in tables

text: MWE               \documentclass[a4paper]{article}     \usepackage{dcolumn}     \usepackage{multirow}     \usepackage{lipsum}          \begin{document}          \newcolumntype{d}[1]{D{.}{.}{#1}}     \begin{tabular}{l|c|r|d{2}|d{1}|d{0}|d{-2}|}     aaaaaaa     & bbbbbbbbbbbbbb & cccccc        & ddddddd & eeeeee & ffffff & gg \\     abcdefg     & abcdefg        & abcde         &  123.45 & 123.45 & 123.45 & 123.45 \\     abcdef      & abcdef         & abcd          &  123.4  & 123.4  & 123.4  & 123.4 \\     abcde       & abcde          & abcde         &  23.45  & 23.45  & 23.45  & 23.45 \\     abcd        & abcd           & abcd          &  3.45   & 3.45   & 3.45   & 3.45 \\     abc         & abc            & abc           &  23.4   & 123.45 & 23.45  & 123.4 \\     \end{tabular}     \lipsum[1]          \begin{tabular}{l|c|r|d{2}|d{1}|d{0}|d{-2}|}     aaaaaaa     & bbbbbbbbbbbbbb & cccccc        & ddddddd & eeeeee & ffffff & gg \\          abcdefg     &     \multirow{4}{*}{\begin{tabular}{r} zzzzz\\ zzzz\\ zzz\\ zz\\ z\\ \end{tabular}}                                  & abcde         &  123.45 & 123.45 & 123.45 & 123.45 \\          abcdef  &    & abcd          &  123.4  & 123.4  & 123.4  & 123.4 \\     abcde   &    & abcde         &  23.45  & 23.45  & 23.45  & 23.45 \\     abcd    &    & abcd          &  3.45   & 3.45   & 3.45   & 3.45 \\     abc     &    & abc           &  23.4   & 123.45 & 23.45  & 123.4 \\     \end{tabular}          \end{document}      ![enter image description here](http://i.stack.imgur.com/29mVi.png) Questions   * what is the difference between `{2}, d{1}, d{0}, d{-2}`? According to manual it number of decimal places, but this option does not cut the numbers, doesn't change 23.45 into 23.4 (for d{1}), what for is this option?   * in manual is `\newcolumntype{,}{D{.}{.}{2}}` but doesn't work (Error: Illegal pream-token (d): `c' used.) why and what's the difference?   * look at second table, second col, how to do it without nesting tables? how to align column to right and later place in the center?


title: Beamer total slides counter?

text: Thanks to Change the page number of slides in notes when using | handout: command I can count the slides in a frame. What I would also like is a counter for the total number of slides in a frame. Something like this:               \documentclass{beamer}          \makeatletter     \def\c@slideinframe{\beamer@slideinframe}     \makeatother          \begin{document}          \begin{frame}{Frame 1}     This is slide \arabic{slideinframe} of %here I'd like the total number of slides, 2 in this case     \pause     \end{frame}          \end{document}      Is it possible to have a counter for the total number of slides in a frame?


title: Correct use of sub-entries with glossaries package

text: I am writing my thesis and I am including a glossary. I am trying to nest some definitions under a "parent" definition. For example, I first define a _mass_ and then define _categorical mass_ whose parent is _mass_. I have two problems with the output. First, it glues the definition of _categorical mass_ to that of _mass_ without leaving a space (See the red circle in the image)... Second, there is no explicit mention of _categorical mass_ in the definition. How can I solve this two problems? * * * ## ![enter image description here](http://i.stack.imgur.com/NuYwS.png)               \documentclass[a4paper,12pt]{scrreprt}     \usepackage[acronym,toc]{glossaries}     \makeglossaries          \newglossaryentry{mass}     {         name={mass function},         description={A basic belief assingnment (BBA)},     }     \newglossaryentry{categorical}     {         name={categorical mass function},         description={A mass function with only one focal set},         parent=mass     }          \begin{document}          \chapter{something}     we use a \gls{categorical} which is a special case of \gls{mass}          \printglossary[type=main]          \end{document}      * * *


title: Determine hex unicode character code from raw character?

text: I found coloremoji which allows inserting apple's color emoji's into an _uptex_ document. This library first extracts all emoji's as PDFs named according to their hex unicode character codes (e.g. 1F36E.pdf). Then there is a stylesheet (coloremoji.sty) which seemingly looks up an incoming emoji's hex code and includes the corresponding PDF. However, this seems to require some upTeX specific features. I'd like to get this working with `pdflatex` using `\usepackage{stringenc}`,`\usepackage{utf8}`,`\usepackage{fontenc}`, etc. Is this possible to look up a raw unicode character's hex code using pdflatex (TeXLive on Mac OS X)? Here's the imagined interface (as a screenshot to preserve emoji)![enter image description here](http://i.stack.imgur.com/30KOR.png) The `coloremoji` command should expand to an `includegraphics` so that the resulting document is a cheeseburger.


title: MiKTeX Package Manager not installing subfigure package

text: I am trying to install subfigure package in MiKTeX using:               mpm --verbose --install subfigure      But when I run this command in cmd in Windows 7, the crash notification comes up saying:               MiKTeX Package Manager (batch mode) has stopped working      How should I run the subfigure package then?


title: First few words of a chapter/section in small-caps?

text: Is there a package that automatically tells LaTeX to use small-caps for the first few words (say, three) in a chapter/section/subsection? Thanks


title: Slow scrolling with Preview on Mac OS X

text: I've been using Lyx recently, and I've been noticing that the produced pdfs scroll very slowly in Preview, particularly on pages with a lot of text, but it is still noticeable otherwise, even on very small documents. This does not appear to happen when viewing other pdf files, even those I believe may have been produced using tex. My gut feeling is that it is something to do with my choice of Computer Modern as my font which is not a Mac OS system font. Anyone seen this before or have any ideas?


title: Multiple marks on a path

text: I want to add a multitude of marks to a single path. However, sometimes these marks are heavily misplaced. For example, the blue arrows should be a little bit ahead of the red ones.               \begin{tikzpicture}         \draw plot[smooth, tension=.7] coordinates { (5*0.02109, 5*-0.12607)(5*0.2274, 5*-0.1806)(5*0.4037, 5*-0.02751)(5*0.536, 5*0.4091)(5*0.768, 5*0.2045)(5*0.7262, 5*-0.02055)(5*0.8538, 5*-0.1366) }             [postaction={decorate}, decoration={markings,                 % Red arrows                 mark=between positions 0.1 and 0.9 step 0.25 with {\arrow[red, line width=1mm]{>};},                 % Blue arrows                 mark=between positions 0.2 and 0.9 step 0.25 with {\arrow[blue, line width=1mm]{>};}             }]             ;     \end{tikzpicture}      ![enter image description here](http://i.stack.imgur.com/CuRqL.png)


title: How to draw tangent vectors and component vectors on a curve

text: I am searching for a way to have a figure drawn using LaTeX. I am aware of some packages TikZ and PSTricks that could accomplish this, and have been tinkering around with them recently but do not have enough skill set at the moment to accomplish this drawing. Is there a way someone can accomplish the drawing, preferably with TikZ but could be any package your most comfortable with in a reduced amount of coding (non-advanced) to where I could understand what is happening from the code to the picture. If this is not possible, then I will have to study the package more and work with it until I understand the method (code) to create the graphic. The drawing is below. **Note:** This is a rough sketch. The optimal output would have smooth quadratic curves and all quantities are vectors. ![picture](http://i.stack.imgur.com/yW7zH.png)


title: Reference sections or chapters without labeling?

text: Is it possible to reference chapters and sections of a document without manually labelling every section and subsection ? I have about 8 chapters and dozens of sections/subsections indented inside of them, labelling each single section is pretty tedious. Is there a faster, more convenient way ?


title: How to Change the Title for a Second List of Figures

text: For my document, I have a List of Figures for the figures contained in the body of the text. This has worked basically according to plan. However, I also need to have a separate List of Figures for those that appear in the appendix. Both of these appendices must be labelled "LIST OF [APPENDIX] FIGURES" on the first page and "LIST OF [APPENDIX] FIGURES (Continued)" on each subsequent page. In order to change the heading, commands have been input to the style file:               \newcommand\listfigurename{LIST OF FIGURES}     \newcommand\listfigurecont{LIST OF FIGURES (Continued)}      I tried to ameliorate the problem of both body and appendix figures ending up in the same list by using the caption package and:               \DeclareCaptionType{myfigure}[Figure]      then putting in my appendix figures like so:               \begin{myfigure}[htpb]     \centering     \psfragscanon     \psfrag{Batman}[][]{Primary}     \psfrag{Roof Disp.}[][]{$Roof Disp. (in)$}     \psfrag{Roof Acc.}[][]{$Roof Acc. (g)$}     \psfrag{Robin}[][]{Secondary}     \psfrag{Time (s)}[][]{$Time (s)$}     \includegraphics[width=0.75\textwidth]{RDCHY034.eps}     \caption{Mean roof displacement response, Chi Chi CHY034 motion, founded on dense sand.}     \vspace{0.3cm}     \includegraphics[width=0.75\textwidth]{RACHY034.eps}     \caption{Mean roof acceleration response, Chi Chi CHY034 motion, founded on dense sand.}     \end{myfigure}      These figures look good. Everything but the title of the list is set. Here's the code I used for the Figures and Tables:               \clearpage     \tableofcontents     \clearpage     \listoffigures      \clearpage     \listoftables     \clearpage     \renewcommand\listfigurename{LIST OF APPENDIX FIGURES}     \renewcommand\listfigurecont{LIST OF APPENDIX FIGURES (Continued)}     \listofmyfigures      %\renewcommand\listfigurename{LIST OF APPENDIX FIGURES}     %\renewcommand\listfigurecont{LIST OF APPENDIX FIGURES (Continued)}     \clearpage      The results are kind of freaky. If I only have one page of appendix figures, the title reads "LIST OF APPENDIX FIGURES" no problem. If it comes out to more than one page of appendix figures, the first page reads, "List of Myfigures," any middle pages correctly read "LIST OF APPENDIX FIGURES (Continued)," and the last page reads, "LIST OF TABLES (Continued)." I've tried a wide variety of things and none seem to change anything. Any help would be appreciated. This is all but my last resort before I type out a list of appendix figures in Word and slide it into my document.


title: Reduce white space before and after multicols environment

text: I wonder how to reduce the vertical space before and after a `multicols` environment. I have something like below               \begin{multicols}{3}        {           \begin{equation}\sum F_x = 0\end{equation}           \begin{equation}\frac{dP}{dx} - p = 0\end{equation}        }        {           \begin{equation}\sum F_y = 0\end{equation}           \begin{equation}\frac{dQ}{dx} + q = 0\end{equation}        }        {           \begin{equation}\sum M = 0\end{equation}           \begin{equation}\frac{dQ}{dx} + q = 0\end{equation}        }     \end{multicols}      But there is extra white space before and after the `multicols` environment. How can I reduce it?


title: Displaying acronyms, abbreviations, and units

text: I use the `acronym` package for displaying acronyms, such as "KFC". As most of the acronyms are common knowledge, I use `\acs{kfc}`, which only presents the short form. Also, the `siuntix` package can be used to display units, such as "km". To ensure consistency (spacing and appearance) throughout a document, should one:   * Use the `acronym` package to define abbreviations, such as "e.g.", "BC", and "Mr."?   * Use the `acronym` package together with `siunitx` to define units, such as "km"? Update: The solutions explain when to use the `acronym` package and when to use `siunitx`. Are there any packages for displaying abbreviations?


title: convert TikZ to XAML

text: How can I convert that drawing to XAML?               \documentclass[12pt]{scrartcl}          \usepackage[utf8]{inputenc}  % ö,ä,ü möglich im Text          \usepackage{float} % damit Bilder fließen können     \usepackage{tikz} % Front-End für pgf. (Mit tikz kann man so geile Vektorgrafiken machen)     \usetikzlibrary{calc}     \usepackage{color} % um Farben zu definieren     \usepackage[nomessages]{fp}   %floating point calculations     \usepackage{amsmath}          \begin{document}         \begin{figure}[H]%             \centering             \def\foreshortening{0.5}             \def\rotationAngle{-15}             \def\cabinetAngle{45}             \begin{tikzpicture}[>=latex,                                 x = {({(cos(\rotationAngle)+cos(\cabinetAngle)*sin(\rotationAngle)*\foreshortening)*1cm},{sin(\rotationAngle)*sin(\cabinetAngle)*\foreshortening*1cm})},                                 y = {({(-sin(\rotationAngle)+cos(\cabinetAngle)*cos(\rotationAngle)*\foreshortening)*1cm}, {cos(\rotationAngle)*sin(\cabinetAngle)*\foreshortening*1cm})},                                 z = {(0cm,1cm)},                                 axis/.style={thick,->}]                          % drawing the axes                 \coordinate (O) at (0, 4, 5);                 \draw[axis] (O) -- +(2, 0, 0) node [above] {$X$};                 \draw[axis] (O) -- +(0, 2, 0) node [above] {$Y$};                 \draw[axis] (O) -- +(0, 0, 2) node [above] {$Z$};                      \def\helplineLengthZ{0.6}                 \def\helplineLengthX{1}                 \def\helplineDistFactor{0.7}                      \def\maxX{10}                 \def\maxY{7.5}                 \def\substHeight{1.5}                 \def\distX{2}                 \def\distY{1.5}                 \def\rodHeight{2.5}                 \def\rodRadius{0.25}                      % drawing the substrate                 \definecolor{substrateColor}{rgb}{0,.6,1}                 \FPeval{\substMinX}{clip(-2*\rodRadius)}                 \FPeval{\substMaxX}{clip(\maxX + 2*\rodRadius)}                 \FPeval{\substMinY}{clip(-2*\rodRadius)}                 \FPeval{\substMaxY}{clip(\maxY + 2*\rodRadius)}                      \node at (0, 0, 0) {\substMinX};                      % vordere Seite                 \draw[black, shading = axis, top color = substrateColor, bottom color = substrateColor!50!white] (\substMinX, \substMinY, 0) -- (\substMaxX, \substMinY, 0) -- (\substMaxX, \substMinY, \substHeight) -- (\substMinX, \substMinY, \substHeight) -- cycle;                 % rechte Seite                 \draw[black, shading = axis, top color = substrateColor, bottom color = substrateColor!50!white] (\substMaxX, \substMinY, 0) -- (\substMaxX, \substMaxY, 0) -- (\substMaxX, \substMaxY, \substHeight) -- (\substMaxX, \substMinY, \substHeight) -- cycle;                 %% hintere Seite                 %\draw[black, shading = axis, top color = substrateColor, bottom color = substrateColor!50!white] (\substMinX, \substMaxY, 0) -- (\substMaxX, \substMaxY, 0) -- (\substMaxX, \substMaxY, \substHeight) -- (\substMinX, \substMaxY, \substHeight) -- cycle;                 %% linke Seite                 %\draw[black, shading = axis, top color = substrateColor, bottom color = substrateColor!50!white] (\substMinX, \substMinY, 0) -- (\substMinX, \substMaxY, 0) -- (\substMinX, \substMaxY, \substHeight) -- (\substMinX, \substMinY, \substHeight) -- cycle;                           % sichtbare Seite des Substrates                 \draw[black, fill = substrateColor] (\substMinX, \substMinY, \substHeight) -- (\substMaxX, \substMinY, \substHeight) -- (\substMaxX, \substMaxY, \substHeight) -- (\substMinX, \substMaxY, \substHeight) -- cycle;                      % drawing the rods                 \def\verkleinerungsFaktor{0.01}                 \foreach \x in {0, \distX, ..., \maxX}                 {                     \foreach \y in {0, \distY, ..., \maxY}                     {                            % invert the y (nicht von 0 bis \maxY sonder von \maxY bis 0)                         \FPeval{\rody}{clip(\maxY - \y)}                         \node       at (\x, \rody, {0.5*\rodHeight+\substHeight}) [rectangle, rounded corners = {0.5cm*(2*\rodRadius-\verkleinerungsFaktor*\rody)}, thick, inner sep=0pt, minimum width={(2*\rodRadius-\verkleinerungsFaktor*\rody)*1cm}, minimum height={(\rodHeight-\verkleinerungsFaktor*\rody)*1cm}, shade, shading=ball, ball color=orange, draw=black, thin] {};                     }                 }                      % mark distance in x                 \coordinate (topOfRodForDX) at ({3*\distX}, \maxY, {\substHeight+\rodHeight-0.5*\verkleinerungsFaktor*\maxY});                 % help lines                 \draw[thick] (topOfRodForDX) -- ++(0, 0, \helplineLengthZ);                 \draw[thick] ($(topOfRodForDX)+(\distX, 0, 0)$) -- ++(0, 0, \helplineLengthZ);                 % distance line                 \draw[<->] ($(topOfRodForDX)+(0, 0, {\helplineLengthZ*\helplineDistFactor})$) -- ++(\distX, 0, 0) node[midway, above] {$d_x$};                      % mark distance in y                 \coordinate (bottomOfRodForDY) at (\maxX, {3*\distY}, \substHeight+\verkleinerungsFaktor*1.5);                 % help lines                 \draw[thick, line cap = round] (bottomOfRodForDY) -- ++(\helplineLengthX, 0, 0);                 \draw[thick, line cap = round] ($(bottomOfRodForDY)+(0, \distY, 0)$) -- ++(\helplineLengthX, 0, 0);                 % distance line                 \draw[<->] ($(bottomOfRodForDY)+({\helplineLengthX*\helplineDistFactor}, 0, 0)$) -- ++(0, \distY, 0) node[midway, right] {$d_y$};                      % mark the diameter                 \def\helplineDistFactor{0.8}                 \coordinate (middleOfRodForDiameter) at ({2*\distX}, \maxY, {\substHeight+\rodHeight-\rodRadius});                 \FPeval{\negRotAngle}{clip(-\rotationAngle)}                 \FPeval{\minRodRadius}{clip(0.5*(2*\rodRadius-\verkleinerungsFaktor*\maxY))}                 \coordinate (rotationCorrectedWidthInXOfRodForDiameter) at (\negRotAngle:\minRodRadius);                 \coordinate (rotationCorrectedLeftUpperEdgeOfRodForDiameter) at ($(middleOfRodForDiameter)-(rotationCorrectedWidthInXOfRodForDiameter)$);                 \coordinate (rotationCorrectedRightUpperEdgeOfRodForDiameter) at ($(middleOfRodForDiameter)+(rotationCorrectedWidthInXOfRodForDiameter)$);                 \draw[thick, line cap = round] (rotationCorrectedLeftUpperEdgeOfRodForDiameter) -- ++(0, 0, \helplineLengthZ);                 \draw[thick, line cap = round] (rotationCorrectedRightUpperEdgeOfRodForDiameter) -- ++(0, 0, \helplineLengthZ);                      % diameter line                 \draw[<->] ($(rotationCorrectedLeftUpperEdgeOfRodForDiameter)+(0, 0, {\helplineLengthZ*\helplineDistFactor})$) --                             ($(rotationCorrectedRightUpperEdgeOfRodForDiameter)+(0, 0, {\helplineLengthZ*\helplineDistFactor})$) node[midway, above] {$2\cdot r$};             \end{tikzpicture}       \end{figure}     \end{document}      This gives that figure: ![MWE](http://i.stack.imgur.com/ul8xG.png)


title: Arara rule for log file scraping

text: Is there a script or `arara` rule that does log file scraping for messages about bad boxes, warnings, and obvious rerun messages and outputs this to stdout? It doesn't need to be perfect. I am looking to replace what Kile does at the end of "build" operations since I am using the `arara` clean rule to delete the log file which prevents Kile from scraping it.


title: How can I make a slide rule in TikZ?

text: I have recently found out about slide rules from a Scientific American article and I like them very much. However, I have never got access to a _real_ slide rule. So I made my own slide rule using my printer with the help of this pdf. However, the slide rule that I have made does not have many scales whereas real slide rules like this one, have a lot of scales. So I thought that maybe I will be able to make a better one using TikZ. I started making it and got stuck here:               \documentclass{article}          \usepackage{amsmath,amsfonts,amsthm}     \usepackage{tikz}     \usepackage[a5paper,margin=0pt]{geometry}          \begin{document}     ~\vfill     \centering          \begin{tikzpicture}     \draw (0,0) rectangle (14,20);     \draw (8.75,0) -- (8.75,20);     \draw [dashed] (1.75,0) -- (1.75,20);     \draw [dashed] (7,0) -- (7,20);     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \foreach \x in {2,...,18}{\draw (0,\x) -- ++(0.15,0);}     \node [rotate=90] at (0.5,1.5) {C};     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \end{tikzpicture}\\          \vfill     \end{document}      The problem is that I don't know how to make a logarithmic scale in TikZ. So please tell me just the basic syntax to create the logarithmic scale. I will do the rest.


title: Beamer Animations: How to simulate terminal input and output

text: I'm preparing some Unix training material and I'd like to show some vertically scrolling text of the commands as if simulating text entry in a terminal. My idea was to split the frame into 2 columns, with the left column showing commands to be entered and the right column having the explanation. I haven't got past the first part of a scrolling text (vertical marquee text). I've tried the animate package and it only overlays the earlier text. This is what I tried               \documentclass{beamer}     \usepackage{tikz}     \usepackage{animate}     \begin{document}       \begin{frame}         \frametitle{MD5SUM}          \begin{animateinline}[autoplay,loop]{1}           cat a           \newframe           cat b           \newframe           md5sum a          \end{animateinline}        \end{frame}      \end{document}      Now beamer has those overlay specifications but I don't think any one of them is suitable for scrolling text. I don't want to hit enter everytime to uncover the next command, just play the command sequences at a specified rate. Alternately, is there a better way to achieve this? All the animations are going to be text with probably no images. **UPDATE** : With Alexander's answer, I tried to use it with Beamer with mixed results. I've prepared a minimal example where the previous animateinline text is coming through to the next slide. Can anyone tell me, what exactly is going on and where I'm incorrect?                \documentclass{beamer}       \usepackage{beamerthemeWarsaw}       \usepackage{animate}       \usepackage{expl3}       %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%       %command for simulating terminal in/output       %\scroll{<width as TeX dim>}{<number of lines>}{terminal text line}       %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%       \ExplSyntaxOn       \seq_new:N\g_linebuffer_seq       \newcommand\scroll[3]{         \ttfamily         \seq_gput_right:Nx\g_linebuffer_seq{#3}         \int_compare:nT{\seq_length:N\g_linebuffer_seq>#2}{         \seq_gpop_left:NN\g_linebuffer_seq\dummy         }         \fbox{\begin{minipage}[t][#2\baselineskip]{#1}         \seq_map_inline:Nn\g_linebuffer_seq{\mbox{##1}\\}         \end{minipage}}         }       \ExplSyntaxOff          \begin{document}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{frame}[fragile]       \frametitle{Random records}       How do you randomly select, say 1000 records from a large file?  Use       the \verb|shuf| command       \begin{animateinline}[autoplay,loop]{1}         \scroll{0.8\linewidth}{10}{ cat a}%         \newframe          \scroll{0.8\linewidth}{10}{clear}         \end{animateinline}     %     \end{frame}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{frame}[fragile]       \frametitle{Checking for Duplicate Files}       How do you quickly check whether 2 files are the same? Use the       \verb|md5sum| command.       \begin{animateinline}[autoplay,loop]{1}         \scroll{0.8\linewidth}{8}{\# echo 1 2 3 > a}         \newframe         \scroll{0.8\linewidth}{8}{clear}       \end{animateinline}     \end{frame}     \end{document}


title: fancyhdr and memoir

text: When I wrote the code below gave the following error:               ! LaTeX Error: Command \footruleskip already defined.                    Or name \end... illegal, see p.192 of the manual.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.302 ...and{\footruleskip}{.3\normalbaselineskip}      I want to configure the `fancyhdr` on `memoir`.               \documentclass[a4paper]{memoir}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[brazil]{babel}     \usepackage{lipsum}          % fancyhdr on memoir     \usepackage{fancyhdr}     \pagestyle{fancy}          \fancyhead{}       \renewcommand{\chaptermark}[1]{\markboth{\thechapter.\space#1}{}}       \renewcommand{\sectionmark}[1]{\markright{\thesection\space#1}}       \fancyhead[LE]{\bfseries\leftmark}       \fancyhead[RO]{\bfseries\rightmark}       \fancyfoot{}       \fancyfoot[LO,RE]{R\'egis \the\year}       \fancyfoot[LE,RO]{\bfseries\thepage}       \renewcommand{\headrulewidth}{0.5pt}       \renewcommand{\footrulewidth}{0.5pt}     \fancypagestyle{plain}{       \fancyhead{}       \renewcommand{\headrulewidth}{0pt}     }          \begin{document}     \pagestyle{fancy}          \chapter{Fancyhdr on Memoir}          \lipsum          \end{document}


title: LaTeX hyphens pattern file for medical terminology

text: This might be slightly off topic since my main goal is to hyphenate strings in Java, but please bare with me. So far I've only looked at TeXHyphenator-J and Hyphenation libraries and both of them use LaTeX hyphenation patterns. I would like to hyphenate strings for US English, ideally taking into account medical terms which tend to be lengthy. I've used multiple US patterns found on CTAN but notice the hypenation isn't quite correct. For example, inputting a string like > Deoxyribonucleic acid, sternocleidomastoid, > dicotiledoneas,Pneumonoultramicroscopicsilicovolcanoconiosis I've got results like these: > De-oxyri-bonu-cle-ic acid, ster-n-oclei-do-mas-toid, di-cotile-doneas,P-neu- > monoul-tra-mi-cro-scop-ic-sil-i-co-vol-canoco-nio-sis > > Deoxy-ri-bo-nucleic a-ci-d, s-tern-oclei-do-mas-to-i-d, di-co-ti-le-do-ne- > as,P-neu-mo-noul-tra-mi-cros-co-pic-si-li-co-vol-ca-no-co-nio-sis Are there any LaTeX patterns for hyphenating medical terms in (US)English ? If so, where can I find them ? If not, is it possible to create such a pattern ? Where would I start ?


title: gitinfo (xstring): tag info does not work because of "tag:" before version number

text: I'm making the switch from subversion to git, and I'm quite happy with the `gitinfo` package. The only thing I cannot get to work is to show a version number from the tag. I have identified the problem: when tag a commit, the reference metadata shows "tag: 0.1". In Brent's example file it is just shown as "0.1" - the latter works, the former doesn't, see the MWE below. Am I doing something wrong with git or is that a (fixable?) limitation of the package. I'm using git 1.9.0 on Windows if that is relevant.               \documentclass{article}          \usepackage{gitinfo}          \usepackage{filecontents}          \begin{filecontents}{gitHeadInfo.gin}     \usepackage[%             refnames={ (HEAD, tag: 1.0, master)}         ]{gitsetinfo}     \end{filecontents}          \begin{document}          \gitVtags     \gitVtag     \gitVtagn          \end{document}      **Edit** : and the definition of the Vtag commands is:               \newcommand{\git@vtag}[1]{%         \def\do##1{%             \IfDecimal{##1}{%                 \renewcommand{\gitVtag}{##1}                 \renewcommand{\gitVtags}{\space##1}                 \renewcommand{\gitVtagn}{\space##1}                 \listbreak             }{}%         }%         \expandafter\docsvlist\expandafter{#1}%     }%


I recently updated my Operating system from Ubuntu 13.04 to Ubuntu 13.10. Since then, I am facing difficulties compiling my tex code in which the french babel package is called. Please note that all my codes were working **very fine before** the system upgrade. However, now, given the following header :                 \usepackage[francais]{babel}      I receive the following error : > >     ! Package babel Error: Unknown option `francais'. Either you misspelled > it >   What should I do ? **Please note** that if I remove this part of code (`\usepackage[francais]{babel}`), everything is compiling good. I also tried it with `french`, and I receive the same result. Thank you in advance for your help. * * * **MINIMUM WORKING EXAMPLE :**               \documentclass[11pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[francais]{babel}     \usepackage[T1]{fontenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}          \begin{document}     This is a MINIMUM WORKING EXAMPLE.     \end{document}      > >     ! Package babel Error: Unknow option `francais'. Either you misspelled > it >   * * * **SOLUTION :** (thanks to Heiko Oberdiek) Installing the `textlive-lang` package solved the issue. To do this, simply copy and past the code on your terminal : For french package :               sudo apt-get install texlive-lang-french      or, for all languages :               sudo apt-get install texlive-lang-all


title: Package babel error: Unknow option

text: I just installed pdfTeX (Tex Live 2013/Debian) on by Ubuntu 13.10 laptop, but I have problems with the babel package. My code:               \documentclass[12ptk a4paper]{article}     \usepackage[danish]{babel}                \begin{documenet}       This is a test.       \end{document}      I get this error:               ! Package babel Error: Unknow option 'danish'. Either you misspelled it or  the language definition file `danish.ldf` was not found.      My babel.sty file was found here `/usr/share/texlive/texmf- dist/tex/generic/babel` and looks like this:               %%     %% This is file `babel.sty',     %% generated with the docstrip utility.     %%     %% The original source files were:     %%     %% babel.dtx  (with options: `package')     %% This is a generated file.     %%      %% Copyright 2012-2013 Javier Bezos and Johannes L. Braams.     %% Copyright 1989-2008 Johannes L. Braams and any individual authors     %% listed elsewhere in this file.  All rights reserved.     %%      %% This file was generated from file(s) of the Babel system.     %% ---------------------------------------------------------     %%      %% It may be distributed and/or modified under the     %% conditions of the LaTeX Project Public License, either version 1.3     %% of this license or (at your option) any later version.     %% The latest version of this license is in     %%   http://www.latex-project.org/lppl.txt     %% and version 1.3 or later is part of all distributions of LaTeX     %% version 2003/12/01 or later.     %%      %% This work has the LPPL maintenance status "maintained".     %%      %% The Current Maintainer of this work is Javier Bezos.     %%      %% This file may only be distributed together with a copy of the Babel     %% system. You may however distribute the Babel system without     %% such generated files.     %%      %% The list of all files belonging to the Babel distribution is     %% given in the file `manifest.bbl'. See also `legal.bbl for additional     %% information.     %%      %% The list of derived (unpacked) files belonging to the distribution     %% and covered by LPPL is defined by the unpacking scripts (with     %% extension .ins) which are part of the distribution.     \NeedsTeXFormat{LaTeX2e}[2005/12/01]     %% File 'babel.dtx'     %%\ProvidesFile{babel.dtx}[2013/05/16 v3.9f The Babel package]     %% Babel package for LaTeX2e.     %% Copyright (C) 1989 -- 2008 by Johannes Braams,     %%                            TeXniek     %%                            all rights reserved.     %% Copyright (C) 2013         by Johannes Braams     %%                            TeXniek     %%                            by Javier Bezos     %%                            all rights reserved.     \ProvidesPackage{babel}         [2013/05/16 v3.9f %          The Babel package]     \@ifpackagewith{babel}{debug}       {\let\bbl@tempa\relax}       {\def\bbl@tempa{3.9f}}%     \ifx\bbl@version\bbl@tempa\else       \input switch.def\relax     \fi     \def\bbl@for#1#2#3{\@for#1:=#2\do{\ifx#1\@empty\else#3\fi}}     \def\bbl@add#1#2{%       \@ifundefined{\expandafter\@gobble\string#1}%         {\def#1{#2}}%         {\expandafter\def\expandafter#1\expandafter{#1#2}}}     \def\bbl@csarg#1#2{\expandafter#1\csname bbl@#2\endcsname}%     \long\def\bbl@afterelse#1\else#2\fi{\fi#1}     \long\def\bbl@afterfi#1\fi{\fi#1}     \def\AfterBabelLanguage#1{%       \global\expandafter\bbl@add\csname#1.ldf-h@@k\endcsname}%     \@ifpackagewith{babel}{base}{%       \DeclareOption*{\bbl@patterns{\CurrentOption}}%       \DeclareOption{base}{}%       \ProcessOptions       \global\expandafter\let\csname opt@babel.sty\endcsname\relax       \global\expandafter\let\csname ver@babel.sty\endcsname\relax       \global\let\@ifl@ter@@\@ifl@ter       \def\@ifl@ter#1#2#3#4#5{\global\let\@ifl@ter\@ifl@ter@@}%       \endinput}{}%     \bbl@csarg\let{tempa\expandafter}\csname opt@babel.sty\endcsname     \def\bbl@tempb#1.#2{%        #1\ifx\@empty#2\else,\bbl@afterfi\bbl@tempb#2\fi}%     \def\bbl@tempd#1.#2\@nnil{%       \ifx\@empty#2%         \edef\bbl@tempc{\ifx\bbl@tempc\@empty\else\bbl@tempc,\fi#1}%       \else         \in@{=}{#1}\ifin@           \edef\bbl@tempc{\ifx\bbl@tempc\@empty\else\bbl@tempc,\fi#1.#2}%         \else           \edef\bbl@tempc{\ifx\bbl@tempc\@empty\else\bbl@tempc,\fi#1}%           \bbl@csarg\edef{mod@#1}{\bbl@tempb#2}%         \fi       \fi}     \let\bbl@tempc\@empty     \bbl@for\bbl@tempa\bbl@tempa{%       \expandafter\bbl@tempd\bbl@tempa.\@empty\@nnil}     \expandafter\let\csname opt@babel.sty\endcsname\bbl@tempc     \DeclareOption{activeacute}{}     \DeclareOption{activegrave}{}     \DeclareOption{KeepShorthandsActive}{}     \DeclareOption{debug}{}     \DeclareOption{noconfigs}{}     \DeclareOption{showlanguages}{}     \DeclareOption{shorthands=off}{\bbl@tempa shorthands=\bbl@tempa}     \DeclareOption{strings}{\def\bbl@opt@strings{\BabelStringsDefault}}     \DeclareOption{strings=encoded}{\let\bbl@opt@strings\relax}     \DeclareOption{safe=none}{\let\bbl@opt@safe\@empty}     \DeclareOption{safe=bib}{\def\bbl@opt@safe{B}}     \DeclareOption{safe=ref}{\def\bbl@opt@safe{R}}     \DeclareOption{math=active}{}     \DeclareOption{math=normal}{\def\bbl@mathnormal{\noexpand\textormath}}     \def\BabelStringsDefault{generic}     \let\bbl@opt@shorthands\@nnil     \let\bbl@opt@config\@nnil     \let\bbl@opt@main\@nnil     \let\bbl@opt@strings\@nnil     \let\bbl@opt@headfoot\@nnil     \def\bbl@tempa#1=#2\bbl@tempa{%       \expandafter\ifx\csname bbl@opt@#1\endcsname\@nnil         \expandafter\edef\csname bbl@opt@#1\endcsname{#2}%       \else         \bbl@error{%           Bad option `#1=#2'. Either you have misspelled the\\%           key or there is a previous setting of `#1'}{%           Valid keys are `shorthands', `config', `strings', `main',\\%           `headfoot', `safe', `math'}       \fi}     \let\bbl@language@opts\@empty     \DeclareOption*{%       \@expandtwoargs\in@{\string=}{\CurrentOption}%       \ifin@         \expandafter\bbl@tempa\CurrentOption\bbl@tempa       \else         \edef\bbl@language@opts{%           \ifx\bbl@language@opts\@empty\else\bbl@language@opts,\fi           \CurrentOption}%       \fi}     \ProcessOptions*     \def\bbl@sh@string#1{%       \ifx#1\@empty\else         \ifx#1t\string~%         \else\ifx#1c\string,%         \else\string#1%         \fi\fi         \expandafter\bbl@sh@string       \fi}     \ifx\bbl@opt@shorthands\@nnil       \def\bbl@ifshorthand#1#2#3{#2}%     \else\ifx\bbl@opt@shorthands\@empty       \def\bbl@ifshorthand#1#2#3{#3}%     \else       \def\bbl@ifshorthand#1{%         \@expandtwoargs\in@{\string#1}{\bbl@opt@shorthands}%         \ifin@           \expandafter\@firstoftwo         \else           \expandafter\@secondoftwo         \fi}       \edef\bbl@opt@shorthands{%         \expandafter\bbl@sh@string\bbl@opt@shorthands\@empty}%            \bbl@ifshorthand{'}%         {\PassOptionsToPackage{activeacute}{babel}}{}       \bbl@ifshorthand{`}%         {\PassOptionsToPackage{activegrave}{babel}}{}     \fi\fi     \ifx\bbl@opt@headfoot\@nnil\else       \g@addto@macro\@resetactivechars{%         \set@typeset@protect         \expandafter\select@language@x\expandafter{\bbl@opt@headfoot}%         \let\protect\noexpand}     \fi     \@ifundefined{bbl@opt@safe}{\def\bbl@opt@safe{BR}}{}     \ifx\bbl@opt@main\@nnil\else       \edef\bbl@language@opts{%         \ifx\bbl@language@opts\@empty\else\bbl@language@opts,\fi           \bbl@opt@main}     \fi     \ifx\bbl@languages\@undefined\else       \begingroup         \catcode`\^^I=12         \@ifpackagewith{babel}{showlanguages}{%           \begingroup             \def\bbl@elt#1#2#3#4{\wlog{#2^^I#1^^I#3^^I#4}}%             \wlog{<*languages>}%             \bbl@languages             \wlog{</languages>}%           \endgroup}{}       \endgroup       \def\bbl@elt#1#2#3#4{%         \ifnum#2=\z@           \gdef\bbl@nulllanguage{#1}%           \def\bbl@elt##1##2##3##4{}%         \fi}%       \bbl@languages     \fi     \let\bbl@afterlang\relax     \let\BabelModifiers\relax     \let\bbl@loaded\@empty     \def\bbl@load@language#1{%       \InputIfFileExists{#1.ldf}%         {\edef\bbl@loaded{\CurrentOption            \ifx\bbl@loaded\@empty\else,\bbl@loaded\fi}%          \expandafter\let\expandafter\bbl@afterlang             \csname\CurrentOption.ldf-h@@k\endcsname          \expandafter\let\expandafter\BabelModifiers             \csname bbl@mod@\CurrentOption\endcsname}%         {\bbl@error{%            Unknow option `\CurrentOption'. Either you misspelled it\\%            or the language definition file \CurrentOption.ldf was not found}{%            Valid options are: shorthands=..., KeepShorthandsActive,\\%            activeacute, activegrave, noconfigs, safe=, main=, math=\\%            headfoot=, strings=, config=, or a language name.}}}     \DeclareOption{acadian}{\bbl@load@language{frenchb}}     \DeclareOption{afrikaans}{\bbl@load@language{dutch}}     \DeclareOption{american}{\bbl@load@language{english}}     \DeclareOption{australian}{\bbl@load@language{english}}     \DeclareOption{austrian}{\bbl@load@language{germanb}}     \DeclareOption{bahasa}{\bbl@load@language{bahasai}}     \DeclareOption{bahasai}{\bbl@load@language{bahasai}}     \DeclareOption{bahasam}{\bbl@load@language{bahasam}}     \DeclareOption{brazil}{\bbl@load@language{portuges}}     \DeclareOption{brazilian}{\bbl@load@language{portuges}}     \DeclareOption{british}{\bbl@load@language{english}}     \DeclareOption{canadian}{\bbl@load@language{english}}     \DeclareOption{canadien}{\bbl@load@language{frenchb}}     \DeclareOption{francais}{\bbl@load@language{frenchb}}     \DeclareOption{french}{\bbl@load@language{frenchb}}%     \DeclareOption{german}{\bbl@load@language{germanb}}     \DeclareOption{hebrew}{%       \input{rlbabel.def}%       \bbl@load@language{hebrew}}     \DeclareOption{hungarian}{\bbl@load@language{magyar}}     \DeclareOption{indon}{\bbl@load@language{bahasai}}     \DeclareOption{indonesian}{\bbl@load@language{bahasai}}     \DeclareOption{lowersorbian}{\bbl@load@language{lsorbian}}     \DeclareOption{malay}{\bbl@load@language{bahasam}}     \DeclareOption{meyalu}{\bbl@load@language{bahasam}}     \DeclareOption{naustrian}{\bbl@load@language{ngermanb}}     \DeclareOption{newzealand}{\bbl@load@language{english}}     \DeclareOption{ngerman}{\bbl@load@language{ngermanb}}     \DeclareOption{nynorsk}{\bbl@load@language{norsk}}     \DeclareOption{polutonikogreek}{%       \bbl@load@language{greek}%       \languageattribute{greek}{polutoniko}}     \DeclareOption{portuguese}{\bbl@load@language{portuges}}     \DeclareOption{russian}{\bbl@load@language{russianb}}     \DeclareOption{UKenglish}{\bbl@load@language{english}}     \DeclareOption{ukrainian}{\bbl@load@language{ukraineb}}     \DeclareOption{uppersorbian}{\bbl@load@language{usorbian}}     \DeclareOption{USenglish}{\bbl@load@language{english}}     \ifx\bbl@opt@config\@nnil       \@ifpackagewith{babel}{noconfigs}{}%         {\InputIfFileExists{bblopts.cfg}%           {\typeout{*************************************^^J%                    * Local config file bblopts.cfg used^^J%                    *}}%           {}}%     \else       \InputIfFileExists{\bbl@opt@config.cfg}%         {\typeout{*************************************^^J%                  * Local config file \bbl@opt@config.cfg used^^J%                  *}}%         {\bbl@error{%            Local config file `\bbl@opt@config.cfg' not found}{%            Perhaps you misspelled it.}}%     \fi     \bbl@for\bbl@tempa\bbl@language@opts{%       \@ifundefined{ds@\bbl@tempa}%         {\edef\bbl@tempb{%            \noexpand\DeclareOption              {\bbl@tempa}%              {\noexpand\bbl@load@language{\bbl@tempa}}}%          \bbl@tempb}%          \@empty}     \bbl@for\bbl@tempa\@classoptionslist{%       \@ifundefined{ds@\bbl@tempa}%         {\IfFileExists{\bbl@tempa.ldf}%           {\edef\bbl@tempb{%              \noexpand\DeclareOption                {\bbl@tempa}%                {\noexpand\bbl@load@language{\bbl@tempa}}}%            \bbl@tempb}%           \@empty}%         \@empty}     \ifx\bbl@opt@main\@nnil\else       \expandafter       \let\expandafter\bbl@loadmain\csname ds@\bbl@opt@main\endcsname       \DeclareOption{\bbl@opt@main}{}     \fi     \def\AfterBabelLanguage#1{%       \bbl@ifsamestring\CurrentOption{#1}{\global\bbl@add\bbl@afterlang}{}}     \DeclareOption*{}     \ProcessOptions*     \ifx\bbl@opt@main\@nnil       \edef\bbl@tempa{\@classoptionslist,\bbl@language@opts}       \let\bbl@tempc\@empty       \bbl@for\bbl@tempb\bbl@tempa{%         \@expandtwoargs\in@{,\bbl@tempb,}{,\bbl@loaded,}%         \ifin@\edef\bbl@tempc{\bbl@tempb}\fi}       \def\bbl@tempa#1,#2\@nnil{\def\bbl@tempb{#1}}       \expandafter\bbl@tempa\bbl@loaded,\@nnil       \ifx\bbl@tempb\bbl@tempc\else         \bbl@warning{%           Last declared language option is `\bbl@tempc,\\%           but the last processed one was `\bbl@tempb'.\\%           The main language cannot be set as both a global\\%           and a package option. Use `main=\bbl@tempc' as\\%           option. Reported}%       \fi     \else       \DeclareOption{\bbl@opt@main}{\bbl@loadmain}       \ExecuteOptions{\bbl@opt@main}       \DeclareOption*{}       \ProcessOptions*     \fi     \def\AfterBabelLanguage{%       \bbl@error         {Too late for \string\AfterBabelLanguage}%         {Languages have been loaded, so I can do nothing}}     \ifx\bbl@main@language\@undefined       \bbl@error{%         You haven't specified a language option}{%         You need to specify a language, either as a global option\\%         or as an optional argument to the \string\usepackage\space         command;\\%         You shouldn't try to proceed from here, type x to quit.}     \fi     %%     %% \CharacterTable     %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z     %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z     %%   Digits        \0\1\2\3\4\5\6\7\8\9     %%   Exclamation   \!     Double quote  \"     Hash (number) \#     %%   Dollar        \$     Percent       \%     Ampersand     \&     %%   Acute accent  \'     Left paren    \(     Right paren   \)     %%   Asterisk      \*     Plus          \+     Comma         \,     %%   Minus         \-     Point         \.     Solidus       \/     %%   Colon         \:     Semicolon     \;     Less than     \<     %%   Equals        \=     Greater than  \>     Question mark \?     %%   Commercial at \@     Left bracket  \[     Backslash     \\     %%   Right bracket \]     Circumflex    \^     Underscore    \_     %%   Grave accent  \`     Left brace    \{     Vertical bar  \|     %%   Right brace   \}     Tilde         \~}     \endinput         %%         %% End of file `babel.sty'.      In `/usr/share/texlive/texmf-dist/tex/generic/babel`, I have for instance the file `danish.sty`. I don't understand the error when running latex. Can anyone help or guide me in a direction? I did follow the instructions from a similar problem, but without any luck. I tried: `sudo apt-get install texlive-lang-danish` and I got among other things this:               E: Package 'texlive-lang-danish' has no installation candidate      It works with a diffrent version of texlive.


title: babel problems: "Unknown option `danish'"

text: have problems with the babel options. I use Texmaker and:               \usepackage[danish]{babel}      and get this failure:               ! Package babel Error: Unknown option `danish'. Either you misspelled it      What to do? ok, I have tried this:               \documentclass[10pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[danish]{babel}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{makeidx}     \usepackage{graphicx}     \usepackage{lmodern}     \usepackage{kpfonts}     \usepackage{fourier}     \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}          \author{test}     \title{test}     \begin{document}     \maketitle     This is an example     \end{document}      and I got that:               LOG FILE :     This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2014.4.26) 26 APR 2014 19:42     entering extended mode     restricted \write18 enabled.     %&-line parsing enabled.     **skanbelon.tex     (./skanbelon.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 2 languages loaded.     (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count79     \c@section=\count80     \c@subsection=\count81     \c@subsubsection=\count82     \c@paragraph=\count83     \c@subparagraph=\count84     \c@figure=\count85     \c@table=\count86     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty     Package: inputenc 2008/03/30 v1.1d Input encoding file     \inpenc@prehook=\toks14     \inpenc@posthook=\toks15     (/usr/share/texlive/texmf-dist/tex/latex/base/latin1.def     File: latin1.def 2008/03/30 v1.1d Input encoding file     ))     (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty     Package: babel 2013/05/16 v3.9f The Babel package     ! Package babel Error: Unknow option `danish'. Either you misspelled it     (babel) or the language definition file danish.ldf was not found     .     See the babel package documentation for explanation.     Type H <return> for immediate help.     ...     l.293 \ProcessOptions*     Valid options are: shorthands=..., KeepShorthandsActive,     activeacute, activegrave, noconfigs, safe=, main=, math=     headfoot=, strings=, config=, or a language name.     ! Package babel Error: You haven't specified a language option.     See the babel package documentation for explanation.     Type H <return> for immediate help.     ...     l.326 ...ry to proceed from here, type x to quit.}     You need to specify a language, either as a global option     or as an optional argument to the \usepackage command;     You shouldn't try to proceed from here, type x to quit.     ) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty     Package: amsmath 2013/01/14 v2.14 AMS math features     \@mathmargin=\skip43     For additional information on amsmath, use the `?' option.     (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty     Package: amstext 2000/06/29 v2.01     (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty     File: amsgen.sty 1999/11/30 v2.0     \@emptytoks=\toks16     \ex@=\dimen103     ))     (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty     Package: amsbsy 1999/11/29 v1.2d     \pmbraise@=\dimen104     )     (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty     Package: amsopn 1999/12/14 v2.01 operator names     )     \inf@bad=\count87     LaTeX Info: Redefining \frac on input line 210.     \uproot@=\count88     \leftroot@=\count89     LaTeX Info: Redefining \overline on input line 306.     \classnum@=\count90     \DOTSCASE@=\count91     LaTeX Info: Redefining \ldots on input line 378.     LaTeX Info: Redefining \dots on input line 381.     LaTeX Info: Redefining \cdots on input line 466.     \Mathstrutbox@=\box26     \strutbox@=\box27     \big@size=\dimen105     LaTeX Font Info: Redeclaring font encoding OML on input line 566.     LaTeX Font Info: Redeclaring font encoding OMS on input line 567.     \macc@depth=\count92     \c@MaxMatrixCols=\count93     \dotsspace@=\muskip10     \c@parentequation=\count94     \dspbrk@lvl=\count95     \tag@help=\toks17     \row@=\count96     \column@=\count97     \maxfields@=\count98     \andhelp@=\toks18     \eqnshift@=\dimen106     \alignsep@=\dimen107     \tagshift@=\dimen108     \tagwidth@=\dimen109     \totwidth@=\dimen110     \lineht@=\dimen111     \@envbody=\toks19     \multlinegap=\skip44     \multlinetaggap=\skip45     \mathdisplay@stack=\toks20     LaTeX Info: Redefining \[ on input line 2665.     LaTeX Info: Redefining \] on input line 2666.     )     (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty     Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support     \symAMSa=\mathgroup4     \symAMSb=\mathgroup5     LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'     (Font) U/euf/m/n --> U/euf/b/n on input line 106.     )     (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty     Package: amssymb 2013/01/14 v3.01 AMS font symbols     )     (/usr/share/texlive/texmf-dist/tex/latex/base/makeidx.sty     Package: makeidx 2000/03/29 v1.0m Standard LaTeX package     )     (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty     Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks21     )     (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty     Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)     (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty     Package: trig 1999/03/16 v1.09 sin cos tan (DPC)     )     (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg     File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live     )     Package graphics Info: Driver file: pdftex.def on input line 91.     (/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def     File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty     Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)     )     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty     Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     )     \Gread@gobject=\count99     ))     \Gin@req@height=\dimen112     \Gin@req@width=\dimen113     )     ! LaTeX Error: File `lmodern.sty' not found.     Type X to quit or <RETURN> to proceed,     or enter new name. (Default extension: sty)     Enter file name:     ! Emergency stop.     <read *>     l.10 \usepackage     {kpfonts}^^M     *** (cannot \read from terminal in nonstop modes)     Here is how much of TeX's memory you used:     1796 strings out of 495031     21907 string characters out of 6181531     72089 words of memory out of 5000000     5027 multiletter control sequences out of 15000+600000     3640 words of font info for 14 fonts, out of 8000000 for 9000     14 hyphenation exceptions out of 8191     27i,0n,24p,241b,36s stack positions out of 5000i,500n,10000p,200000b,80000s     ! ==> Fatal error occurred, no output PDF file produced!      I use Linux Mint Cinammon Petra 16 and have installed LaTeX so:               sudo apt-get install texmaker     sudo apt-get install texlive-full      Ok, i tried this at the very beginning: sudo apt-get install texlive-base And after that I intalled texlive-full Thanks for the useful solutions (see answers). SOLUTION:               sudo apt-get install update


title: Use column-separator & (ampersand) inside \newenvironment

text: I'd like to define a _grammar_ environment which basically wraps a _tabular_ environment. Inside the _grammar_ environment I'd like to use an environment called _production_ to insert rows. Example:               \documentclass[a4paper,10pt]{article}          \newenvironment{production}[1]     {\noindent\ignorespaces#1 ::= &}     {\\}          \newenvironment{grammar}     {\begin{tabular}{p{3cm}l}}     {\end{tabular}}          \begin{document}     \begin{grammar}     \begin{production}{XmlStartTag}       ...     \end{production}     \begin{production}{XmlEndTag}       ...     \end{production}     \end{grammar}          \end{document}      The goal of this code is to put the name of the non-terminal that is being defined in the left column and the actual production into the right column of the tabular. Unfortunately this fails due to the `&` and `\\\` within the _production_ environment. I guess it has something to do with macro expansion. I guess I have to escape the `&` and `\\\` with something that is only expanded after the macro was used? Thanks!


title: Displaying an equation in a list

text: How could one get a displayed equation inside a list environment, say `itemize`, so that the equation is both centered horizontally and on the same line as the bullet, but with the bullet still on the left? Trying `\item \begin{center} \\( \displaystyle \int x \ dx = \frac{x^2}{2} + C \\) \end{center}` centers the bullet as well as the equation. This is a somewhat frivolous question, since I don't actually want to use the answer. I personally would use `\item \\( \displaystyle \int x \ dx = \frac{x^2}{2} + C \\)` and do without the horizontal centering. But I'm currently at a conference where I've seen several beamer presentations that clearly involved something like `\item \\[ \int x \ dx = \frac{x^2}{2} + C \\]`, which made me curious how one could do what I asked, if one really wanted to. I really wasn't sure how to tag this. Please feel free to retag.


title: Getting rid of semicolon in vancouver style bib file when using @Webpage

text: As the title says, I am getting an extraneous semicolon after the `type` entry when using `vancouver` style bibtex. Here is the example `.tex` file:               \documentclass[11pt, oneside]{amsart}          \usepackage[hyphens]{url}     \usepackage[bookmarks, bookmarksopen, bookmarksnumbered]{hyperref}     \usepackage[all]{hypcap}          \setlength{\paperwidth}{216 mm}     \setlength{\paperheight}{279 mm}     \usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry}     \renewcommand{\baselinestretch}{0.96}          \sloppypar          \begin{document}          \title[]{title}          \author{Authors TBD}          \maketitle          A citation~\cite{arXiv-web}          \bibliographystyle{vancouver}          \bibliography{ex}     \end{document}      And the `.bib` file is:               @Webpage{arXiv-web,         type={page on the Internet},         title={arXiv.org e-Print archive},         key={arXiv.org e-Print archive},         url={http://arxiv.org},         note = {Accessed: 2014-02-03}     }      The result is: > [1] arXiv.org e-Print archive [page on the Internet];. Available from: > http://arxiv.org. Accessed: 2014-02-03. Thanks for any suggestions to get rid of the `;` after the `[page on the Internet]` entry.


title: How can I get Latex to use the fonts that are already on my PC via Xetex?

text: I am an absolute beginner with Latex. I have Texnic Centre and MikTex 2.8. I just want to be able to use the truetpe or opentype fonts from my `C:/Windows/Fonts` folder. How hard can it be? Very apparently. I have found a page that says I can use Xetex, but I have absolutely no idea _how_ to use Xetex. I think it's installed - it came with MikTex, but I don't know how to get it working. I'd really appreciate some "baby steps" on how I can get this working. Thanks **Edit** I have tried konrad's suggestion below and got a fontsec.cfg error. However, using the following:               \usepackage{xltxtra}     \setmainfont[Mapping=tex-text]{Tahoma}      I got it to work. I don't know why the first failed and this one worked, but it does appear to be using system fonts :)


title: How to sort out headers in a book

text: I'm writing a thesis in the "book (more font sizes) Document class and I've got "fancy" set up in the "Page Layout" bit of the document settings. But I don't really want the chapter number _and_ the section number appearing in the header each time. Just the section number would be ideal. Any idea how I get rid of the chapter number?


title: Should I worry about the new math fonts when using pdfLaTeX?

text: I watch the CTAN Announcement RSS feed as a way of finding out about cool new packages. Recently I saw two announcements; The release of `lm-math` and `tex- gyre-math`. I use both Latin Modern (via `lmodern` or `cfr-lm` ) and Times (via loading `mathptmx` followed by `tgtermes`) quite a lot. Do these new packages contain anything useful for me? Should I be loading my fonts in a different way now? An older question seems to imply that these are for XeLaTeX and LuaTeX, since they are in OTF format, not Type 1. Is there an easy way I can use these updated fonts with PDFLaTeX (Or should I refer to my old question?) If there is, should I worry about trying to use them?


title: Kile fails to start ConTexT

text: Windows 7 64bit, Kile 2.9.60 with default settings and ConText mkiv. Trying to compile a test document:               \starttext     \startsection[title={Testing ConTeXt}]     This is my first ConTeXt document.     \stopsection     \stoptext      I note that I am able to compile this correctly in the DOS prompt (using `context hello.tex`). Kile uses these settings: > texexec --pdf --nonstopmode %source and when I click on the ConTexT compile button it says > [ConTexT] hello.tex => hello.pdf (texexec) > > [ConTexT] failed to start I understand that this should not work, since there seems to be no texexec file on my system anywhere. So I tried changing the command to `context` in settings, but Kile does not allow me to remove the arguments (restores them if removed). The results with the command changed to `context` are the same as above. What am I doing wrong and what should I do?


title: Arabic Vowels not appearing

text: I'm trying to write this word with the circled vowels but I'm not being able to, can someone help? ![enter image description here](http://i.stack.imgur.com/e8hew.jpg) When I'm writing with the vowels, it is becomming like الله An example:               \documentclass[12pt]{article}     \usepackage[a5paper,verbose]{geometry}     \usepackage{lipsum}  % this package is for creating filler text     \usepackage{arabtex}     \usepackage{pdfpages}     \usepackage{utf8}     \author{N.~N}     \title{The booklet}     \begin{document}     \maketitle     \tableofcontents     \setcode{utf8}     \begin{arabtext}     رَسُولُ اللَّهِ صلى     \end{arabtext}     \end{document}


title: Error using fontspec v2.4a and unicode-math

text: Compiling the following example with XeLaTeX or LuaLaTeX               \documentclass[11pt]{article}     \usepackage{unicode-math}     \setmathfont{latinmodern-math.otf}     \begin{document}     \small     \begin{tabular}{c}       Foo     \end{tabular}     \end{document}      yields the error               ! Missing endcsname inserted.     <to be read again>                         dimexpr      l.11 \begin{tabular}                         {c}      when using fontspec **v2.4a** from TeX Live 2014. Replacing `11pt` by `10pt` or `12pt`, or removing `\small`, the example compiles without problems.


title: Theorem title formatting

text: I want to display a theorem title, it is simple:               \begin{theorem}[Name]      I get               Theorem 4.5 (Name).      but I don't like the dot at the end. I want it to look like this:               Theorem 4.5. (Name)      Can you help me with that?


title: Cell spacing in table

text: Consider the following table. **Code**               \documentclass{article}          \usepackage{booktabs,dcolumn}     \usepackage[table]{xcolor}          \newcolumntype{d}[1]{D{.}{,}{#1}}     \newcommand*\mc[1]{\multicolumn{1}{c}{#1}}     \newcommand*\farve[1]{\cellcolor{blue!50}#1}          \begin{document}          \begin{tabular}{d{2.0} d{2.0} d{2.0} d{2.0} d{2.0} d{2.0} d{2.0}}      \toprule       \mc{Mandag} & \mc{Tirsdag} & \mc{Onsdag} & \mc{Torsdag} & \mc{Fredag} & \mc{L{\o}rdag} & \mc{S{\o}ndag} \\      \midrule                   &              &             &              &             &  1             &  2             \\        3          &         4    &         5   &  6           &  7          &  8             &  9             \\       10          & \farve{11}   & \farve{12}  & 13           & 14          & 15             & 16             \\       17          & \farve{18}   & \farve{19}  & 20           & 21          & 22             & 23             \\       24          &        25    &        26   & 27           & 28          & 29             & 30             \\       31          &              &             &              &             &                &                \\      \bottomrule     \end{tabular}          \end{document}      **Output** ![enter image description here](http://i.stack.imgur.com/zIUW5.jpg) **Question** How do I color the entire rectangle with the numbers 11, 12, 18, and 19? As can be seen, where is a thin white space between the indiviual cells.


title: conditional content

text: I'm writing a document in LaTeX that I want to compile in two different versions, V1 and V2 (with two different formatting specifications). Sometimes I need to insert a bit of content into V1 that isn't in V2, and vice versa. To specify which version is being compiled, I have a variable called `cond`, which I set to `True` to flag the V1 formatting, and `False` to flag the V2 formatting. Then, the following commands are specified:               % Display the argument if \cond is True     \newcommand{\IfCondTrue}[1]{\expandafter\ifstrequal\expandafter{\cond}{True}{#1}{}}          % Display the argument if \cond is False     \newcommand{\IfCondFalse}[1]{\expandafter\ifstrequal\expandafter{\cond}{True}{}{#1}}      Thus, to insert content into V1 that isn't in V2, I simply insert it into the command `\IfCondTrue{...}`. This works exactly as desired except for one issue; when the content that I'm inserting is paragraph text, eg. `This is fake \IfCondTrue{text}.`. If `cond` is set to `False`, then the word `text` won't display, as desired. Unfortunately, it _will_ be replaced with an empty space. For example, suppose in V1 I want to have `This is fake text.` and in V2 I want to have `This is fake hooplah.`, then ideally I could write: `This is fake \IfCondTrue{text}\IfCondFalse{hooplah}.`. Then, when V1 compiles, what I'll see is `This is fake text .` (with a space between `text` and `.`. How can I modify the above commands so that they won't display an empty space when their content is not displayed? Thanks


title: How to make a List of Symbols without page number

text: I am using the nomencl package for printing a `List of Symbols` but I do want the `List of Symbols` to appear only without its page number in the `Table of Contents` and there should not be a page number at the `List of Symbols` page itself.


title: How can I put musical clefs in the middle of text?

text: I'm setting a document that includes some music; I'm using lilypond-book for the musical examples. However, there are some points where the author has inserted a musical symbol in the text; I'm using MusiXTeX for those bits. Notes and accidentals are easy, but I can't find a way to put in just a clef sign. For example, the author says > The _G sol re ut_ clef . . . is made thus, <treble-clef>. I'd like to have a treble clef right in the text where it says <treble-clef>.


title: How to draw this cube with PSTrick or TikZ?

text: I use GeoGebra to draw a cube. The code in GeoGebra is               \documentclass[12pt]{article}     \usepackage{pstricks-add}     \pagestyle{empty}     \begin{document}     \psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dimen=middle,dotstyle=o,dotsize=3pt 0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25}     \begin{pspicture}(-0.14,5.74)(-0.14,5.77)     \pspolygon[fillcolor=black,fillstyle=solid,opacity=0.1](0,4)(0,0)(1,2)(1,6)     \pspolygon[fillcolor=black,fillstyle=solid,opacity=0.1](1,2)(4,0)(5,6)     \psline[linewidth=1.2pt](0,4)(0,0)     \psline[linewidth=1.2pt](0,0)(4,0)     \psline[linewidth=1.2pt](4,0)(5,2)     \psline[linewidth=1.2pt](5,2)(5,6)     \psline[linewidth=1.2pt](5,6)(1,6)     \psline[linewidth=1.2pt](0,4)(1,6)     \psline[linewidth=1.2pt,linestyle=dashed,dash=1pt 1pt](1,2)(1,6)     \psline[linewidth=1.2pt,linestyle=dashed,dash=1pt 1pt](1,2)(0,0)     \psline[linewidth=1.2pt,linestyle=dashed,dash=1pt 1pt](1,2)(5,2)     \psline[linewidth=1.2pt](4,4)(4,0)     \psline[linewidth=1.2pt](4,4)(0,4)     \psline[linewidth=1.2pt](4,4)(5,6)     \psline(0,4)(0,0)     \psline(0,0)(1,2)     \psline(1,2)(1,6)     \psline(1,6)(0,4)     \psline(1,2)(4,0)     \psline(4,0)(5,6)     \psline(5,6)(1,2)     \psline(1,2)(4.5,3)     \psline(4.5,3)(5,2)     \parametricplot{-2.8632929945846817}{-1.1071487177940902}{0.18*cos(t)+4.5|0.18*sin(t)+3}     \begin{scriptsize}     \psdots[dotstyle=*](0,0)     \rput[bl](-0.04,-0.25){$A$}     \psdots[dotstyle=*](4,0)     \rput[bl](3.96,-0.3){$B$}     \psdots[dotstyle=*](5,2)     \rput[bl](5.03,2.07){$C$}     \psdots[dotstyle=*](1,2)     \rput[bl](0.96,1.6){$D$}     \psdots[dotstyle=*](0,4)     \rput[bl](-0.3,4.22){$A_1$}     \psdots[dotstyle=*](1,6)     \rput[bl](0.95,6.19){$D_1$}     \psdots[dotstyle=*](4,4)     \rput[bl](3.7,4.21){$B_1$}     \psdots[dotstyle=*](5,6)     \rput[bl](5.03,6.07){$C_1$}     \psdots[dotstyle=*](4.5,3)     \rput[bl](4.59,3.02){$E$}     \end{scriptsize}     \end{pspicture}     \end{document}      I want style of the the segments `BD`, `C_1D`, `AD` and `D_1D` is dashed. I tried               \psset{linestyle=dashed}     \psline(B)(D)     \psline(C_1)(D)     \psline(A)(D)     \psline(D_1)(D)      but the lines are not dashed. How can I get that? ![output](http://i.stack.imgur.com/jjZJi.jpg)


title: How to show figure captions in Arabic language?

text: I want to show the caption of the figure in Arabic language. Given the unpredictable interactions with other packages, I tended to keep them in the preamble of the MWE. **Questions**   1. How to set the numbers of the caption to appear like in _Hindi_ (Waahid-the blue digit as appeared in the output, Ithnaan, Thalaatha, etc) numbers instead of Arabic ones (1,2,3,etc)?    2. How to make the "Figure" under the image appear in Arabic language صورة، رسم? As you can see nothing appeared in the output.   3. How to enter Arabic text in the caption of the figure? As you can see the caption text in Arabic didn't show up in the output.    4. More general one, suppose I want to write few words in English inside the Arabic text, as you can see `image in English` appeared in opposite direction `English in image`, what is the best approach to switch to a left-to-right direction inside Arabic text? Or how to revert back to English _locally_?  Below is my trial, although the body text seems to be manageable, most of the hassles are with the caption of the figures. I am open to all kinds of suggestion to improve the way of marking up in LaTeX and output. **MWE Code**               \documentclass[oneside,16pt]{scrartcl}      %=====================Graphics ===================================     \usepackage[demo]{graphicx}     \usepackage{xcolor}     \usepackage{tikz}      %=====================Floats =====================================     \usepackage{floatrow}      \usepackage{float}     \usepackage{scrhack}     \usepackage{caption}     \captionsetup[figure]{labelfont=bf,labelsep=period,format=plain,skip=0pt,font=small}     \usepackage[framemethod=tikz]{mdframed}     \usepackage{subcaption}      %=====================Hyphenation ================================     \usepackage[none]{hyphenat}     \usepackage[protrusion = true,final]{microtype}     \emergencystretch=2em     %=====================Hyperref ===================================     \usepackage[hyperindex=true, hyperfootnotes=true]{hyperref}     \hypersetup{         colorlinks, linkcolor={blue},         citecolor={blue}, urlcolor={blue} %url can be magenta          }     %=====================Font issues ===================================     \usepackage{fontspec}     \usepackage{csquotes}     \usepackage{amsmath,amsfonts,amssymb}     \usepackage{polyglossia}     \setmainlanguage{english}     \setotherlanguage{arabic}     \newfontfamily\arabicfont[Script=Arabic,Mapping=arabicdigits]{Traditional Arabic} % or put whatever open type Arabic font you have on your machine inside the two braces     %=====================End of Preamble ===================================     \begin{document}     \begin{Arabic}     هنا النص باللغة العربية، ثم جملة تحتاج الى صورة للتوضيح ، انظر الصورة رقم \ref{fig:image1}.       قد تبرز الحاجة احيانا الى استخدام كلمة باللغة الانكليزية مثلا image in English فما افضل طريقة لعمل ذلك؟          \begin{figure}     \begin{mdframed}[      align=center,      linecolor=black,      fontcolor=black,      backgroundcolor=white,      userdefinedwidth=0.9\textwidth,      roundcorner=5pt,      skipabove=0pt,      skipbelow=0pt,      leftmargin=0pt,      innerleftmargin=0pt,      innerrightmargin=0pt,      innertopmargin=5pt,      innerbottommargin=5pt,       innerlinewidth=0pt,      middlelinewidth=0pt,      outerlinewidth=2pt]     \centering     \includegraphics[width=0.9\textwidth]{image1}     \end{mdframed}     \RawCaption{\caption{     هنا التعليق عن الصورة باللغة العربية، قد تبرز الحاجة احيانا الى استخدام كلمة باللغة الانكليزية مثلا image فما افضل طريقة لعمل ذلك؟     }     \label{fig:image1}}     \end{figure}     \end{Arabic}     \end{document}      **MWE Output** ![enter image description here](http://i.stack.imgur.com/1r3et.png)


title: Strange behavior of smart diagram with \resizebox

text: I'm working with package smartdiagram. Since I can't specify the width of the diagram (or can I...?), I'm using `\resizebox` as a workaround. This strategy works fine EXCEPT when I set custom colors (`\setcolorbox...`). How does trying to change the color cause all this strange behavior (see the image), and what can I do to fix it? MWE: ![smartdiagram example](http://i.stack.imgur.com/8nNuz.png)               \documentclass[11pt]{article}     \usepackage[margin=1in]{geometry}     \usepackage{smartdiagram}          \begin{document}          \begin{figure}     \centering     \resizebox{.5\linewidth}{!}{%     \smartdiagramset{     bubble node size =3.5cm,      bubble center node font = \small,     bubble node font = \tiny,      distance center/other bubbles = 1cm,      }     \smartdiagram[bubble diagram]{Traffic Flow\\ Problem,Neuroscience,Computer\\Science,Economics,Mathematics,Engineering, Physics}     }%end resizebox     \end{figure}          \begin{figure}     \centering     \resizebox{.5\linewidth}{!}{%     \smartdiagramset{     bubble node size =3.5cm,      bubble center node font = \small,     bubble node font = \tiny,      distance center/other bubbles = 1cm,      set color list = {red!60, yellow!60, orange!60, green!60, purple!60, cyan!60}     }     \smartdiagram[bubble diagram]{Traffic Flow\\ Problem,Neuroscience,Computer\\Science,Economics,Mathematics,Engineering, Physics}     }%end resizebox     \end{figure}          \end{document}