title: Showcase of beautiful wine bottle labels made with LaTeX/TikZ and friends

text: Did anybody design wine bottle labels for self made wine with Latex/TikZ/PSTricks? I'm interested in unusual designs (like the nice label for Barnstorming Bitter at http://www.tug.org/texshowcase/).


title: LaTeX is not rebuilding my .bbl file, hence giving message Citation 'eloynew2008' on page 1 undefined

text: I'm trying to add the following citation (which is already updated in my .bib file) to my template report. The aux file has reflected this item eloynew2008, but not the bib file.               @article{eloynew2008,     author = "Eloy, Christophe and Lagrange, Romain and Souilliez, Claire and Schouveiler, Lionel",     doi = "10.1017/S002211200800284X",     isbn = "0022112008002",     issn = "0022-1120",     journal = "Journal of Fluid Mechanics",     month = aug,     pages = "97--106",     title = "Aeroelastic instability of cantilevered flexible plates in uniform flow",     url = "http://www.journals.cambridge.org/abstract\_S002211200800284X",     volume = "611",     year = 2008     };      I am just testing out so I put this in the body               I am simply testing the bibliography by saying \cite{eloynew2008} and then \cite{connell2007}.      So maybe now they appear in the biblioography section. Let's try      and this at the end. All that comes out is (eloynew2008)               \bibliographystyle{foereport}     \nocite{*} % Show all Bib-entries     \bibliography{refs}      I use Texmaker with bibtex % in the Configuration. Any idea why the .bib file is not updated_ Even when I try to change the title of existing references, it is not reflected in the .bib I have read the suggestion to have a look at the bst file but don't find anything. I do follow the diagnosis order here Question mark instead of citation number as far as I can to no avail. Thanks


title: How to make an equation more compact?

text: I have an equation that wastes a lot of space around the union symbol:               \documentclass{article}          \usepackage[cmex10]{amsmath}     \usepackage{amssymb}          \begin{document}     \begin{equation}     RA_U  \left ( new , ref \right ) =     \bigcup_{       \left\{          i  \text{ such that }  f_i \left(  ref \right) < f_i \left( new \right)        \right\}      }     \left\{        X \in \mathbb{R}^M ;        x_i \in \left [ f_i \left(  ref \right) ; f_i \left( new \right) \right ]      \right\}     \end{equation}     \end{document}      ![enter image description here](http://i.stack.imgur.com/o8L2s.png) This is especially dreadful, since I am using `IEEEtran.cls`, which has two columns. How can I compress the equation around the union symbol?


title: Layout design of CV

text: A few week ago I ask this question. Now I am wondering how it is possible to draw a vertical line between the section and the bibsection area. As it is a CV, it would look like nicer.


title: Animate package - output graphic size is smaller than original

text: I successfully created an animation PDF from mulitple PDF pages by using the `animate` package, but the problem is that the output graphics size is about half the size of the original. How can I preserve the original size? Any hints? Here is my `.tex` code for running `pdflatex`:               \documentclass[a4paper]{article}     \pagestyle{empty}     \usepackage{animate}     \begin{document}     \animategraphics[controls,autoplay,loop, width=1\linewidth]{1}{file}{1}{13}     \end{document}


title: Save current value of counter in a command

text: I would like to define kind of an own index, that collects certain information and one counter value - in the following small example the `\addstuff`-command that may get the value of a counter as its first argument and a description as its second. The first entry might also be text itself or even empty. I want to collect all these value-text entries and create an output at the end. In the following example the description always reflects, what i want the counter value to be in that entry.               \documentclass[a4paper]{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \newcommand{\collect}{}          \newcounter{mycounter}\setcounter{mycounter}{1}          \makeatletter     \newcommand{\addstuff}[2]{\g@addto@macro\collect{#1 & #2\\}}     \makeatother     \newcommand{\generateOutput}{%         Output of collection\par%         \begin{tabular}{rl}\collect\end{tabular}%     }          \begin{document}         \addstuff{normal}{Entry}         \addstuff{\themycounter}{save the 1 it should have here}         \refstepcounter{mycounter} %incement -> 2              \addstuff{\arabic{mycounter}}{<-save the 2 of the counter}         \refstepcounter{mycounter} %incement -> 3              % Print all saved data         \generateOutput     \end{document}      So my question is, how can i evaluate the first parameter to obtain the actual value of the counter at the moment, `\addstuff` is called? Because in this code, both lines that i save in my collection end up having the value `3` instead of `1` or `2` respectively.


title: Multi server queuing system using tikz

text: I need to have the server of this system               \usepackage{graphicx}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \usepackage{amsmath}     \usepackage{amsthm}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \usepackage{tikz}     \usetikzlibrary{chains,shapes.multipart}     \usetikzlibrary{shapes}     \usetikzlibrary{automata,positioning}          \begin{document}             \begin{figure}            \centering            \begin{tikzpicture}[start chain=going right,>=latex,node distance=0pt]              \node[draw,rectangle,on chain,minimum size=1.5cm] (rr) {$I$};              \node[draw,rectangle,on chain,draw=white,minimum size=1.3cm]{};              % the rectangular shape with vertical lines              \node[rectangle split, rectangle split parts=6,              draw, rectangle split horizontal,text height=1cm,text depth=0.5cm,on chain,inner ysep=0pt] (wa) {};              \fill[white] ([xshift=-\pgflinewidth,yshift=-\pgflinewidth]wa.north west) rectangle ([xshift=-15pt,yshift=\pgflinewidth]wa.south);              % the circle              \node[draw,circle,on chain,minimum size=1.5cm] (se) {$U$};              % the arrows and labels              \draw[->] (se.east) -- +(20pt,0) node[right] {$\mu$};              \draw[<-] (wa.west) -- +(-20pt,0) node[left] {$\lambda$};              \node[align=center,below] at (rr.south) {Input \\ process};              \node[align=center,below] at (wa.south) {Queue \\ subsystem};              \node[align=center,below] at (se.south) {Server \\ process};            \end{tikzpicture}               \caption{The model represented as a queuing system.}                  \label{fig:queue}            \end{figure}     \end{document}      ![enter image description here](http://i.stack.imgur.com/GzysM.png) be made of two sub-servers running in parallel. How can i do this? This is what i would like to achieve ![enter image description here](http://i.stack.imgur.com/gpR2i.png)


title: biblatex-chicago & 2 more origdate problems

text: 1. My bibliography has two works by the same author originally published in 1523, but for one the date is 1523, and for the other origdate is 1523. Both show up as Aristotle 1523 (i.e. not 1523a and 1523b).   2. Another pair of works have a interlocking chronology, so to speak. The first work was published in 1736-7 (origyear), but I cite the 2nd edn. of 1739 (year); the second was published in 1738-9 (year; no origyear). In the bibliography the first work listed is Wolff 1738--1739, and the second, Wolff 1736--1737. I need the reverse. Are these are bugs, or am I doing something wrong? Here's a MWE.               \documentclass[12pt]{article}     \usepackage[authordate,backend=biber]{biblatex-chicago}       \renewbibmacro*{origyear+endyear}{%         \printfield{origyear}%         \iffieldundef{origendyear}%         {}%         {\iffieldequalstr{origendyear}{}%           {\mbox{\bibdatedash}}%           {\bibdatedash\nopunct\printtext{\unspace}\printfield{origendyear}}}}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}       @Book{aristotle1523a,         author       = {Aristotle},         title          = {Parva naturalia},         publisher    = {Vitali},         year           = 1523,         location     = {Venice},         translator   = {{Leonico Tomeo}, Niccol\`{o}}}       @Book{aristotle1523b,         author       = {Aristotle},         editor       = {Agostino Nifo},         title          = {Parva naturalia Augustini Niphi Medices                         Philosophi Suessani},         publisher    = {Scoto},         year           = 1550,         origdate     = 1523,         options      = {cmsdate=on},         location     = {Venice}}     @Book{wolff1736,       author       = {Christian Wolff},       title        = {Theologia naturalis methodo scientifica pertractata},       publisher    = {Renger},       year         = 1739,       address      = {Frankfurt am Main},       edition      = 2,       options      = {cmsdate=on},       origdate     = {1736/1737}}     @Book{wolff1738,       author       = {Christian Wolff},       title        = {Philosophia practica universalis methodo scientifica                       pertractata},       publisher    = {Renger},       year         = {1738--1739},       address      = {Frankfurt am Main},       volumes      = 2}     \end{filecontents}     \addbibresource{\jobname.bib}          \begin{document}     \cite{*}     \printbibliography     \end{document}


title: Increasing space between text in tikz

text: I am making a picture in tikz, and I have some labels that don't look nice. Here's the code               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{snakes}     \usepackage{mathrsfs}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usetikzlibrary{arrows}               \definecolor{zut}{RGB}{253,200,0}     \definecolor{nar}{RGB}{240,95,0}     \definecolor{pla}{RGB}{134,206,255}          \begin{document}     \center                    \begin{tikzpicture}         \draw[zut, fill=pla, thick] (0,0) ellipse (4cm and 2cm);         \draw[nar, fill=white, thick] (0,0) circle (2cm);         \draw[zut, dashed, thick] (0,0) ellipse (1.4cm and 0.5cm);         \draw[nar, dashed, thick] (0,0) ellipse (1cm and 0.5cm);         \draw[dotted, thick] (0,0) ellipse (1cm and 0.15cm);         \draw[-latex'] (0,0) to (0,3.5);         \node at (-0.2,3.5) {$z$};         \draw[-latex'] (0,0) to (5,0);         \node at (5.2,0.2) {$y$};         \draw[-latex'] (0,0) to (-2.5,-2.5);         \node at (-2.2,-2.7) {$x$};          \draw[dashed] (0,0) to (0,-3);         \draw[latex-, thick] (1.8,1) -- (3,1.7) --(6.8,1.7);         \node[align=center] at (4.7,2.2) {\textsf{Vanjski horizont događaja}\\         $r=r_+=M+\sqrt{M^2-a^2}$};         \draw[->] (-0.4,3) to [bend right=80] (0.4,3.1);         \node at (-0.6,3) {$\phi$};         \node at (0.6,2.4) {$\theta=0$};         \node at (0.8,-2.4) {$\theta=\pi$};         \draw[->, red, dashed] (-5,2) to [bend left=10] (-3.8,1);         \node at (-5,2.3) {ergosfera};         \draw[->, red, dashed] (-4.2,-2.2) to [bend right=30] (-1.8,-1);         \node[align=center] at (-5,-2.4) {horizont \\ događaja};         \draw[->, red, dashed] (5.5,0.5) to [bend left=10] (4,-0.35);          \node[align=center] at (6,0.85) {$r=M+\sqrt{M^2-a^2\cos^2\theta}$};         \draw[->, red, dashed] (5,-1.5) to [bend left=20] (3,-0.35);         \node[align=center] at (6,-1.5) {ergoregija};     \end{tikzpicture}          \end{document}      And here's the picture ![enter image description here](http://i.stack.imgur.com/8Lfs8.jpg) The 'Vanjski horizont događaja' is a bit too close to the formula beneath it. I tried adding `\vspace` but that didn't do a thing. The longer solution is just dividing those two and manually setting the nodes, but I'm sure there's a way to fix this without separating anything, I'm just not that good at tikz :D


title: I want to have pbox have line breaks where the margin falls

text: I am using `\pbox` to have line breaks in a table, but cannot seem to figure out how to have it break at the "natural" location where the margin begins. Here is my code:               \documentclass{article}     %     \usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry}     \usepackage{amsmath}     \usepackage{pbox}     %     \begin{document}     %     \begin{tabular}{ll}     First cell & \pbox[t]{\columnwidth}{This is a long block of text that is not breaking where I would like it to break and as you can see it does not break eventually, but not until it hits the edge of the page.}     \end{tabular}     And this is another long block of text outside the tabular environment which has a line break where I would like it to be, that is, where the margin begins.     %     \end{document}      Does anyone know a command I can use to fix this? I have tried `\columnwidth` and `\paperwidth` as the length parameters of the `\pbox` command, but they both result in the same problem. Also please note that I would like some sort of macro, rather than manually setting the length to `5in` or whatever it is to the margin.


title: How do i create this graph on latex?

text: So…i made this graph using paint(!)…and it looks horrible. I have used tikz to create similar graphs but this one seems to be more difficult. ![Figure1](http://i.stack.imgur.com/oHDEr.jpg)


title: Problem with Refsection

text: I can't seem to get the reference within my {refsection}.               \documentclass[a4paper]{article}          \newcommand{\myparagraph}[1]{\paragraph{#1}\mbox{}\\}          \usepackage[         backend=bibtex,         isbn=false,         url=false,         doi=false,         eprint=false,     ]{biblatex}          %Point to the bibliography db     \addbibresource{mybib.bib}          \begin{document}          \include{myparagraph}          \end{document}      My paragraph file               \myparagraph{\fullcite{dante1320}}     \begin{refsection}          \cite{manzoni1827}          \printbibliography[heading=subbibliography]     \end{refsection}      I get the first citation (dante1320) right, but the second prints as [manzoni1827]. I don't get any error when I run Bibtex concerning the missing reference. But I got it when I run Latex: `LaTeX Warning: Citation 'manzoni1827' on page 2 undefined on input line 5.`


title: texdoc won't work?

text: When i type the command "texdoc texdoc" in xterm it says: `Sorry, no documentation found for texdoc. If you are unsure about the name, try searching CTAN's TeX catalogue at http://ctan.org/search.html#byDescription` I'm running on Arch Linux?


title: Problem with ^^<HEX>

text: I have small problem with `^^<HEX>`. If I have a `<HEX>` part of the `^^<HEX>` in the macro `\def\attemp{<HEX>}`, I cannot write `^^<HEX>` as   1. `^^\attempt` or    2. `\edef\attemptB{\noexpand^\noexpand^\attempt}`. Because:   1. TeX evaluates `^^\attempt` like `{^^\\}attempt`...    2. Tex will recognize `^` as superscript character and prints `"! Missing $ inserted."` My working solution is:               \def\asciitochar#1{%       \def\attemp{#1}%       \def\att{\noexpand^\noexpand^\attempt\noexpand\endinput} % produce ^^#1\endinput%       \immediate\openout\mywrite=\noexpand^\noexpand^\attempt.gen.tex%       \immediate\write\mywrite{\att}%       \immediate\closeout\mywrite%       %       \input \noexpand^\noexpand^\attempt.gen.tex%       }      but solution above is not 'clean' (I think :)). Has someone solution without creating temporary files...?


title: Aligning 3 columns in LaTeX eqnarray

text: I have the following LaTeX eqnarray:               \begin{eqnarray}         \int ( D \frac{d^2 P(x)}{dx^2}-\frac{d}{dx}[u(x)P(x)] ) & = & \int 0 \Leftrightarrow \\         D \frac{d}{dx} P(x) - u(x)P(x) & = & C \Leftrightarrow \\         D \frac{d}{dx} P(x) - K_0P(x) - \frac{K_1}{x}P(x) & = & C \Leftrightarrow \\         \frac{dP(x)}{dx} - k_0P(x) - \frac{k_1}{x} P(x) & = & C,     \end{eqnarray}      With this outcome: ![enter image description here](http://i.stack.imgur.com/4ican.png) Is it possible to align my `\Leftrightarrow` in a 3rd column?


title: How do I make the perl script [makeglossaries] work on WinXP?

text: I got help yesterday on how to make \makeindex work (see link at bottom). I now realize that it would be better if I could make the perl script makeglossaries work, since I currently have to modify the call arguments for makeindex each time I want to define an additional glossary. When I try to run makeglossaries.bat from within TeXnicCenter, I get the following error message:               Can't execute C:\Program Files\MiKTeX 2.8\scripts\glossaries\makeglossaries.      The file makeindex is the perl script, and makindex.bat is a file that calls the perl script with the following lines:               @rem = '-*- Perl -*-     @echo off     perl -S "%~dp0makeglossaries" %*      A MWE of some sample code that I would like to be able to compile follows:               \documentclass{article}     \usepackage{glossaries}          \newacronym{SEM}{SEM}{scanning electron microscope}     \newacronym{TEM}{TEM}{transmission electron microscopy}     \newacronym{UHV}{UHV}{ultra-high vacuum}          \newglossary{variables}{vrb}{var}{List of variables}     \newglossaryentry{ai}{type=variables,name={a$_i$},sort=ai,description={Distribution coefficient}}     \newglossaryentry{ciI}{type=variables,name={c$_i^{I}$},sort=ciI,description={Concentration of element i}}          \makeglossaries          \begin{document}     \section{First Section} \label{Intro}          Intro. At some point, we used a \gls{SEM}, and the variable \gls{ai}.          \section{List of variables} \label{LoV}          \printglossaries     \end{document}      Any ideas on what goes wrong? EDIT:   1. makeindex works if used directly (from within TeXnicCenter, but without the makeglossaries perl script) 2 and 3. I am not sure to what degree the script and batch file work as intended. Here is a copy of what I did in the command prompt to examine this: > Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft > Corp. > > C:\Program Files\MiKTeX 2.8\scripts\glossaries>perl makeglossaries asfd ^C > at - line 1. > > C:\Program Files\MiKTeX 2.8\scripts\glossaries>@rem = '- _- Perl -_ - > > C:\Program Files\MiKTeX 2.8\scripts\glossaries>perl -S "%~dp0makeglossaries" > %* Can't execute %~dp0makeglossaries. > > C:\Program Files\MiKTeX 2.8\scripts\glossaries>perl -S makeglossaries Can't > locate Getopt/Std.pm in @INC at ./makeglossaries line 66. BEGIN failed-- > compilation aborted at ./makeglossaries line 66. > > C:\Program Files\MiKTeX 2.8\scripts\glossaries>copy_makeglossaries Can't > execute C:\Program Files\MiKTeX 2.8\scripts\glossaries\copy_makeglossaries > .pl. > > C:\Program Files\MiKTeX 2.8\scripts\glossaries>copy_makeglossaries > > C:\Program Files\MiKTeX 2.8\scripts\glossaries># @echo off '#' is not > recognized as an internal or external command, operable program or batch > file. > > C:\Program Files\MiKTeX 2.8\scripts\glossaries>perl -S "C:\Program > Files\MiKTeX 2.8\scripts\glossaries\copy_makeglossaries.pl" Can't execute > C:\Program Files\MiKTeX 2.8\scripts\glossaries\copy_makeglossaries .pl. Does it look like it is working? At least it is doing something, and I guess that means that Perl is working(?). The file copy_makeglossaries.bat calls the file copy_makeglossaries.pl. I wanted to see if adding an extension to the extensionless perl script would help, but it did not change things. * * * The old question from yesterday: How do I make [\makeindex] work fully on my WinXP system (works on a different system)


title: Minitoc + thesis template + pdflatex

text: I added the package minitoc `\usepackage[nohints]{minitoc}` to this template and did as I read: add `\dominitoc` before `\tableofcontents` and `\minitoc` after a chapter's creation, but it doesn't appear. What am I missing?


title: How to \enddocument inside an environment

text: I have a document of the form               \begin{document}     some text     \begin{myenv}     ....     \end{myenv}     some other stuff     \end\document      I would like to set a boolean `\newif\if@test` in the header to control the output, such that if I set `\@testtrue`, the document would end just after `\end{myenv}` and not display _some other stuff_. My attempt is to put               \if@test \enddocument      at the end of the declaration of `myenv`. But this does not work, LaTeX complains that `begin{myenv}` is ended by `\enddocument` ... How could I do that?


title: elsarticle class not displaying email addresses

text: I am trying to format an article using the elsarticle class. I have followed the documentation included with the class file, but for some unknown (and incredibly irritating) reason the email addresses are not displayed in the frontmatter. Here is a minimal example:               \documentclass{elsarticle}          \title{Remarks on something interesting}          \author[myu]{Author 1}     \ead{a1@myuniversity.edu}          \author[myu]{Author 2 \corref{cor1}}     \ead{a2@myuniversity.edu}          \address[myu]{My Department, My Building, My University in My City}          \cortext[cor1]{Corresponding author}          \begin{document}          \maketitle          \end{document}      Any idea how to make the email addresses display?


title: How to add space at the beginning of the item or adjust left alignment for items

text: Hi I use enumerate to number items but second item starts before the first one. Because i add more than one number in item, I didnt figure out how to make a space at the begining of an item. Do you know anything that i can fix this? Here is my code:               \begin{enumerate}     \item[$1)$] First item,     \item[$2-5)$] 2 through 5 items,     \item[$6)$] 6th item.      \end{enumerate}      ![enter image description here](http://i.stack.imgur.com/KsIJU.jpg)


title: Add spacing before and after `\hline` in an array in an equation

text: I'm trying to add a little bit of space before and after the `\hline` in this matrix:               \documentclass[a4paper,journal]{IEEEtran}     \usepackage[cmex10]{amsmath}     \interdisplaylinepenalty=2500               \usepackage{array}     \begin{document}     \begin{multline}         \boldsymbol{J^{-1}} = \\   \left[ \begin{array}{ccc|ccc}         \frac{\partial \delta_2}{\partial P_2} & \hdots & \frac{\partial \delta_n}{\partial P_2} &         \frac{\partial \delta_2}{\partial Q_2} & \hdots & \frac{\partial \delta_n}{\partial Q_2} \\         \vdots & \boldsymbol{J_{11}^\prime} & \vdots & \vdots & \boldsymbol{J_{21}^\prime} & \vdots \\         \frac{\partial \delta_2}{\partial P_n} & \hdots & \frac{\partial \delta_n}{\partial P_n} &         \frac{\partial \delta_2}{\partial Q_n} & \hdots & \frac{\partial \delta_n}{\partial Q_n} \\         \hline         \frac{1}{|V_2|}\frac{\partial |V_2|}{\partial P_2} & \hdots & \frac{1}{|V_n|}\frac{\partial |V_n|}{\partial P_2} &         \frac{1}{|V_2|}\frac{\partial |V_2|}{\partial Q_2} & \hdots & \frac{1}{|V_n|}\frac{\partial |V_n|}{\partial Q_2} \\          \vdots & \boldsymbol{J_{12}^\prime} & \vdots& \vdots & \boldsymbol{J_{22}^\prime} & \vdots \\         \frac{1}{|V_2|}\frac{\partial |V_2|}{\partial P_n} & \hdots & \frac{1}{|V_n|}\frac{\partial |V_n|}{\partial P_n} &          \frac{1}{|V_2|}\frac{\partial |V_2|}{\partial Q_n} & \hdots & \frac{1}{|V_n|}\frac{\partial |V_n|}{\partial Q_n} \\          \end{array} \right]         \\\label{eq:Jinv}     \end{multline}     \end{document}      Output: ![Before](http://i.stack.imgur.com/UX5ea.png) At the moment, I've done this:               ... \\[0.5em]     \hline     &&&&&\\[-0.8em]     ...      Which works: ![Hack](http://i.stack.imgur.com/nC1E5.png) but is a bit messy. Is there a cleaner way to do this?


title: Shorthand for variables lead to name clash

text: In formulas I need often the same constants and variables with lot of "make- up". I want to have readable and maintainable LaTeX code, so I thought about writing `\newcommand`s like               \newcommand*{\Cref}{C_{\textrm{ref}}} %very short example     ..     \[ \Cref \cdot U = Q \]      But `\Cref` is already in use by `\usepackage{cleveref}` and so on … Finally I run quickly out of short, nice commands. I am looking for someone who has had the same problem and had a brilliant idea.


title: Margins of mdframed without any effect

text: This code               \documentclass[]{scrbook}          \usepackage{mdframed} %     \usepackage{boxedminipage}          \begin{document}          \noindent     \begin{boxedminipage}{1.0\textwidth}     Box of 100 \% width     \end{boxedminipage}          \begin{mdframed}[       linecolor=black,%       leftmargin =-1cm,       rightmargin=+1cm,     ]     Sample Text to fill the line. Sample Text to fill the line.     Sample Text to fill the line. Sample Text to fill the line.     Sample Text to fill the line. Sample Text to fill the line.     \end{mdframed}     \end{document}      does not show any margin on the left or right side. Am I doing something wrong, or is this a bug in the package ? Version of mdframed is `2012/01/09 v1.2a` ![enter image description here](http://i.stack.imgur.com/fuQa6.png)


title: Where does the \setarrowlabelsep argument go within the scheme environment in chemfig?

text: I tried looking in the documentation, but I can't seem to find the exact position for the `\setarrowlabelsep` in the `\schemestart` environment of the `chemfig` package. I would like the label Gpx shifted closer to the curved downwards arrow and the label GR closer to the curved upwards arrow. Any help or hint in the right direction would be appreciated.               \documentclass{standalone}     \usepackage{chemfig}     \usepackage[version=3]{mhchem}     \usepackage{hyphenat}     \usepackage{upgreek}          \makeatletter     \definearrow4{s>}{%     \ifx\@empty#3\@empty     \expandafter\draw\expandafter[\CF@arrow@current@style,-CF@full]\CF@arrow@start@node)--(\CF@arrow@end@node);%     \else     \def\curvedarrow@style{shorten <=\CF@arrow@offset,shorten >=\CF@arrow@offset,}%     \CF@expadd@tocs\curvedarrow@style\CF@arrow@current@style     \expandafter\draw\expandafter[\curvedarrow@style,-CF@full(\CF@arrow@start@name)..controls#3..(\CF@arrow@end@name);     \CF@arrow@display@label{#1}{0.5}{+}{\CF@arrow@start@name}{#2}{0.5}{-}{\CF@arrow@end@name}     }     \makeatother          \begin{document}     \schemedebug{true}     \schemestart     \textsc{l}-Glutamate\arrow(c1--c2){->}[-90]\parbox{2cm}\centering$\upgamma$\hyp{}Glutamyl\hyp{}cysteine}     \arrow(--c3){->}[-90]\chemfig{GSH}     \arrow(--c4){0}[-90]\chemfig{GSSG}     \arrow(@c3.180--@c4.180){s>[][*{0.base east}Gpx][+(180:1.5)and+(180:1.5)]}[-90]     \arrow(@c4.0--@c3.0){s>[][*{0.base west}GR][+(0:1.5)and+(0:1.5)]}[90]     \schemestop          \end{document}


title: Couldn't open font map file "kanjix.map". with MiKTeX

text: \documentclass{article}     \begin{document}     Foo     \end{document}      When compiling this MWE with MiKTeX 2.9’s `xelatex`, I get the following warning:               ** WARNING ** Couldn't open font map file "kanjix.map".      The compilation runs through, no problems, but it bugs me that I get this message every time. It seems to come from Windows and not from `xelatex`, because it doesn’t appear in the log file, only in the command line. Here is the full command line output:               C:\Users\doncherry\Documents\LaTeX>xelatex bar.tex     This is XeTeX, Version 3.1415926-2.5-0.9999.3 (MiKTeX 2.9)     entering extended mode     (C:\Users\doncherry\Documents\LaTeX\bar.tex     LaTeX2e      Babel  and hyphenation patterns for english, ancientgreek, french, germa     n, german-x-2013-05-26, greek, italian, latin, ngerman, ngerman-x-2013-05-26, r     ussian, spanish, swissgerman, ukenglish, usenglishmax, loaded.     ("C:\Program Files (x86)\MiKTeX\2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("C:\Program Files (x86)\MiKTeX\2.9\tex\latex\base\size10.clo"))     (C:\Users\doncherry\Documents\LaTeX\bar.aux) [1]     (C:\Users\doncherry\Documents\LaTeX\bar.aux) )     ** WARNING ** Couldn't open font map file "kanjix.map".          Output written on bar.pdf (1 page).     Transcript written on bar.log.      There are a few similar questions here, but none of them apply to this specific situation:   * xelatex problem: Missing chars in TeXLive 2013 / \textfont XXX is undefined errors in miktex (Bottomline: It’s been fixed)   * xetex complains about missing kanjix.map (TeX Live-specific solution)   * Font problems when using IPAexMincho (Using a special font) Is there any way I can get rid of this warning? (Not just silence it, but cure the cause)


title: Optional argument to an environment inside align

text: I have lots of matrices so I want to define a `mat` environment. I sometimes need the matrix to have right-aligned columns so I am using `mathtools` and I want to have an optional argument that is usually `c` but that I can make `r` when I want. A small working example is below. The definition works great in lots of cases, including inside the `equation*` but inside of `align*` it fails. Specifically, I get `! Extra }, or forgotten $. <recently read> } l.22 \end{align*}`. If I add `[c]` or `[r]` as optional arguments to the `mat` inside the `align*` then compilation will succeed. Adding a `\` (slash, space) to the first line of the `mat`, before the `&\vdots`, also works. To me this looks like a problem with LaTeX trying to read the optional argument when I don't want it to. I've tried putting `%`'s in various places in the `\begin{pmatrix*}[#1]` line but to no avail. Any suggestions?               \documentclass{article}     \RequirePackage{mathtools}     \newenvironment{mat}[1][c]{\begin{pmatrix*}[#1]           }{\end{pmatrix*}}          \begin{document}     \begin{equation*}       \begin{mat}                &\vdots                    \\         \cdots &ra_{j,i}+sb_{j,i} &\cdots \\                &\vdots       \end{mat}     \end{equation*}          \begin{align*}       \begin{mat}                &\vdots                    \\         \cdots &ra_{j,i}+sb_{j,i} &\cdots \\                &\vdots       \end{mat}       &= 0     \end{align*}     \end{document}


title: How does one show an empty section?

text: I was wondering about the inverse of this question: Hiding section titles when the section is empty Instead of hiding empty sections in LaTeX, can one display only empty sections or somehow indicate that a section is empty in the table of contents?


title: Add two lengths in raisebox argument, without the calc package

text: I've seen people use such constructs as `\raisebox{-\height+\baselineskip}{...}`, which works well using the `calc`package. What equivalent would you use to achieve the same behaviour without the `calc` package?


title: Assignment vs Add to collection in Latex

text: I am writing an algorithm in latex and don't know how to distinguish between assignment and collection operations. Assignments be written as: `A <\- B + C` But in case of add to collection, I usually do               A <- {}     loop condition:       A <- A + X      Is there anything else that I can use instead of \leftarrow and not have to write `A + X` on the right always. Thanks in advance


title: How to get Carriage Return instead of ^^M when I save a file

text: Sorry for the long next code but if I modify a part of the code, another problem appears in another part. The idea is to use an environment to catch an example, then I display the code of the example, then I execute this code and finally I save the code of the example in a file (here named examplefile.tex) I have two problems : 1) Instead of CR, I get `^^M` in the examplefile.tex. I suppose that I made something wrong with some catcodes in the macro `\CatchTokensDef` 2) I have a minor problem with the comments in the source code of the example. I have lost them.               \documentclass{scrartcl}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{tikz}     \usepackage{environ}          \makeatletter     \newwrite\example     \newtoks \TokenExample          \def\ExamplePreamble%                    add at the beginning     {%         \input{preamble.ltx}^^J%         \begin{document}%     }%           \def\ExamplePostamble%                   add at the end     {%         \end{document}%     }%           \def\ExportExample#1{%                    create the file         \immediate\openout\example=#1 %         {%            \toks@\expandafter{\ExamplePreamble^^J}%            \toks@\expandafter{\the\expandafter\toks@                               \the\@temptokena^^J}%            \toks@\expandafter{\the\expandafter\toks@                               \ExamplePostamble}%            \immediate\write\example{\the\toks@}%         }%         \immediate\closeout\example     }%           \def\PrintExample{% display the code         \begin{minipage}[t]{12cm}            \@vobeyspaces            \the\@temptokena         \end{minipage}     }          \def\ExecExample{\the\@temptokena}%          \def\CatchTokensDef#1{%                                                       % instead of \input                                                       % #1 = setup (catcodes)    %                                                       % original content in \TokenExample                                                       % result in \@temptokena         \begingroup \endlinechar-1 %            \everyeof{\CatchToken@EOF                      \expandafter \endgroup                      \noexpand}%            \long\def\CatchToken@Do ##1\CatchToken@EOF{%               \global\@temptokena{##1}%            }%            #1\expandafter\CatchToken@Do          \scantokens\expandafter{\the\TokenExample}\relax     }%          % catch the content with \Collect@Body from environ.sty          \newenvironment{exemple}%                               this is the main environment         {\begingroup           \obeylines          \obeyspaces           \Collect@Body           \StoreInToken           }         {\endgroup           \process@example          }     \long\def\StoreInToken #1{\global\TokenExample{#1}}          \begin{document}          \def\process@example{%                                first we catch some tokens         \CatchTokensDef {\let\do                           \@makeother                           \dospecials                          \obeylines                           \@vobeyspaces}%         \PrintExample%                                    display the code of the exammple         \ExportExample{examplefile.tex}%                  export the example in a file         \CatchTokensDef {\catcode`\^^M=9\relax}      % the problem is resolved if I put the last line       % before \ExportExample{examplefile.tex}              \ExecExample%                                     execute the example     }%          \begin{exemple}     \begin{tikzpicture}     %                                                      main code     \filldraw[black,fill=green!15]               (0,0) rectangle (5,1)       node [midway] {I say goodbye, you say hello !};%     Beatles          \end{tikzpicture}     \end{exemple}          \end{document}       The result : ![enter image description here](http://i.stack.imgur.com/RWkWR.png) As you can see, I have lost the comments and the blank lines But I get `^^M` in the examplefile.tex               \input {preamble.ltx}     \begin {document}     ^^M\begin {tikzpicture}^^M\filldraw [black,fill=green!15]^^M          (0,0) rectangle (5,1)^^M  node [midway] {I say goodbye, you say hello !}; ^^M\end {tikzpicture}^^M     \end {document}


title: Beamer poster theorem style without boxes

text: I'm making a poster using `beamer` and when I use `\begin{theorem}` and `\begin{proof}` it makes the theorems and proofs in a box just like a block title would be. I understand this is the default setting when using `beamer` but I want my theorems and proofs to look like the default when just writing an article in LaTeX. Is there a way I can change the theorem style or `theorem` environment so that `theorem` and `proof` are no longer in boxes?


title: Arrange three images (with an own caption for each) in two rows using subfig package

text: I would like to arrange three figures like this: a long one on the left and two smaller square ones right to it (above each other). All three images need to have a separate caption. I am using the document class 'book' and for the figures the 'subfig' package and would like to stay with this. I have already tried to arrange it with a minipage whereas (as far as I understood) one can arrange it the way I want to but only with a caption for the left and a common caption for both others. Right now I use the following script where all images are arranged beside each other:               \usepackage{graphicx}     \usepackage{subfig}     \usepackage{floatrow}      \floatsetup[table]{capposition=top}      \usepackage{overpic}      \usepackage{caption}      \usepackage{float}                \begin{document}     \begin{figure}[h]     \centering     \subfloat[ \label{fig:HdRM}]{\includegraphics[width=0.5\linewidth]{HdRM.eps}}     \subfloat[ \label{fig:vRBd}]{\includegraphics[width=0.3\linewidth]{vRBd.eps}}     \subfloat[ \label{fig:msD}]{\includegraphics[width=0.3\linewidth]{msd.eps}}     \linespread{1.2}     \captionsetup{font=small}      \caption[Impact of ...]{Figure a) shows...  b) ... depicts. c) illustrates....}     \label{fig:Impact}     \end{figure}     \end{document}      I spent already so much time with searching for a solution but I could not find anything that fits into my document. I would be so happy if someone could help me!


title: Kile and LuaLaTeX

text: After failing to compile some lualatex-code in texniccenter (see here: LuaLaTeX, TeXnicCenter, AdobeXI and Sumatra), I would like to compile a minimale example in kile. Where I can find the settings to compile with lualatex in kile?


title: Making roofs smaller in tikz-qtree

text: Is there a way to decrease the size of roofs in `tikz-qtree`? I want the roofs not to stick out but match the strings below them.               \documentclass{scrbook}          \usepackage{tikz}     \usepackage{tikz-qtree}          \begin{document}          \begin{tikzpicture}     \tikzset{level 1+/.style={level distance=4\baselineskip}}     \tikzset{frontier/.style={distance from root=16\baselineskip}}     \Tree[.{V[\begin{tabular}[t]{@{}l}               {\sc comps} { },\\               {\sc cont} {4}]\\               \end{tabular}}               [.{{1} NP{5}} man ]               [.{V[\begin{tabular}[t]{@{}l}                    {\sc comps} { 1 },\\                    {\sc cont} {4}]\\                    \end{tabular}}                    [.{{2} NP{6}} \edge[roof]; ketābāro ]                    [.{V[\begin{tabular}[t]{@{}l}                        {\sc comps} { {1}, {2} },\\                        {\sc cont} {4}]\\                        \end{tabular}}                        [.{{3} PP{7}} \edge[roof]; {be Sepide} ]                        [.{V[\begin{tabular}[t]{@{}l}                             {\sc comps} { {1} NP{5}, {2} NP{6}, {3} PP{7}},\\                             {\sc cont} {4} give({5}, {6}, {7})]\\                             \end{tabular}} dādam ]                    ]               ]     ]     \end{tikzpicture}      \end{document}


title: Chapter title placement

text: How can I delete the white space between the chapter's title and the beginning of the page? That is, how to place a chapter's title the higher possible? I am using the `book` class.


title: Adding space between triangle nodes in separate levels in tikz-qtree

text: I now switched to `tikz-qtree` and want to add more space between the two triangle nodes. I cannot figure out a way to do this, since the nodes are on different levels. Is this possible?               \documentclass{scrbook}          \usepackage{tikz}     \usepackage{tikz-qtree}          \begin{document}          \begin{tikzpicture}     \tikzset{level 1+/.style={level distance=4\baselineskip}}     \tikzset{frontier/.style={distance from root=16\baselineskip}}     \Tree[.{V[\begin{tabular}[t]{@{}l}               {\sc comps} { },\\               {\sc cont} {4}]\\               \end{tabular}}               [.{{1} NP{5}} man ]               [.{V[\begin{tabular}[t]{@{}l}                    {\sc comps} { 1 },\\                    {\sc cont} {4}]\\                    \end{tabular}}                    [.{{2} NP{6}} \edge[roof]; ketābāro ]                    [.{V[\begin{tabular}[t]{@{}l}                        {\sc comps} { {1}, {2} },\\                        {\sc cont} {4}]\\                        \end{tabular}}                        [.{{3} PP{7}} \edge[roof]; {be Sepide} ]                        [.{V[\begin{tabular}[t]{@{}l}                             {\sc comps} { {1} NP{5}, {2} NP{6}, {3} PP{7}},\\                             {\sc cont} {4} give({5}, {6}, {7})]\\                             \end{tabular}} dādam ]                    ]               ]     ]     \end{tikzpicture}               \end{document}


title: gnuplottex with windows 8.1

text: I am having difficulties setting up my system right in order to add the `gnuplottex` abbility. I followed this tutorial: adding gnuplot capability to latex and also used the mwe posted in this thread. In addition to that, I have spent quite some time researching without figuring out what the problem is. I am using _windows 8.1_ , _miktex 2.9_ , _texmaker 4.2_ and _gnuplot 4.6_. I have added the command `\--enable-write18` to the pdflatex command and also tried different versions I have read about. While compiling the mwe a warning is shown for a short moment about not finding the commands `touch` and `rm`. There is an entry in the log-file:               \verbatim@out=\write3     runsystem(touch w18-test-20148448.tex)...executed.          runsystem(rm -f w18-test-20148448.tex)...executed.               Package gnuplottex Warning: Shell escape not enabled.     (gnuplottex)                You'll need to convert the graphs yourself..      Does anybody know a solution how to add the abbility to compile `gnuplottex` codes with my system setup? Every and any hint is appreciated. Thats how i enabled shell escape in TexMaker: ![enter image description here](http://i.stack.imgur.com/2qDyx.jpg)


title: Weird interaction between everyhook and fancyhdr

text: In a document I'm working on, I'd like whitespace to be added before a custom environment, but only if that environment doesn't immediately follow a sectioning command (`\section`, `\subsection`, etc). I figured I could set up a paragraph counter via the everyhook package, and use the etoolbox package's `\pretocmd` macro to patch `\@startsection` to reset the paragraph counter. That seemed to work fine, but I noticed some odd behavior in the spacing produced... after some debugging, I whittled it down to a strange interaction between everyhook and fancyhdr. Here's a minimal example demonstrating what's happening:               \documentclass[12pt]{article}     \usepackage{blindtext}     \usepackage{everyhook}     \usepackage{fancyhdr}          \newcounter{paranum}     \PushPreHook{par}{\stepcounter{paranum}}          \pagestyle{fancy}          \begin{document}       \section*{Heading}            \theparanum: \blindtext            \theparanum: \blindtext            \theparanum: \blindtext            \section*{Heading}            \theparanum: \blindtext            \theparanum: \blindtext            \theparanum: \blindtext     \end{document}      This generates ![this image \(click here\)](http://i.stack.imgur.com/ayvGy.png) Everything counts along fine on the first page, but on the second, the count jumps from 5 to 12. Removing the `\pagestyle{fancy}` command fixes this. Why? And more importantly, how can I keep using the fancyhdr package while also being able to accurately number paragraphs?


title: How improve tikZ graphs arrows rendering?

text: I have the following tikZ graph: ![enter image description here](http://i.stack.imgur.com/Buvq5.png) produced by:               \tikzset{actor/.style={             rectangle,             minimum size=6mm,             very thick,             draw=red!50!black!50,             top color=white,             bottom color=red!50!black!20         }}         \tikzset{arrow/.style={             -latex, thick         }}             \begin{tikzpicture}[                  background rectangle/.style={fill=yellow!10,rounded corners=1ex},        show background rectangle,                 node distance=5mm and  8mm             ]                 \node (Input) [align=center]{GZip\\Stream};                 \node (HeaderParser) [actor, right=of Input] {HeaderParser};                 \node (HeaderCrc) [actor,above =of HeaderParser] {Crc Header};                         \node (Inflate) [actor, right=of HeaderParser] {Inflate};                 \node (Crc) [actor,above =of Inflate] {Crc};                 \node (FooterParser) [actor,right=of Inflate] {Footer Parser};                 \node (Output) [right=of FooterParser,align=center]{Decoded\\Stream};                 \draw[arrow] (Input.east)--(HeaderParser.west);                 \draw[arrow] (HeaderParser.north)--(HeaderCrc.south);                 \draw[arrow] (HeaderParser.east)--(Inflate.west);                 \draw[arrow] (Inflate.north)--(Crc.south);                 \draw[arrow] (Inflate.east)--(FooterParser.west);                 \draw[arrow] (FooterParser.east)--(Output.west);                 \draw[arrow] (Crc.east)--(FooterParser.west);             \end{tikzpicture}      I am almost happy with it excepted about the arrows. I don't like the arrows end and the 2 arrows ending on the same node. How can I improve this ?


title: How to label the curve of a function at any point along it in tikz?

text: In my example, I have to simple curves y = sqrt(x) and y = x. I would like to be able to attach a label along each curve, say at the middle of the curve. Right now, I am doing it by trial and error until it looks "right." How may I use node positioning to achieve what I have?               \documentclass{article}     \usepackage{tikz}     \begin{document}         \begin{tikzpicture}[scale=2,>=latex,x=1.5cm]             \begin{scope}                 \draw[->] (-0.2,0) -- (1.5,0) node[above left]{\footnotesize $x$};                 \draw[->] (0,-0.2) -- (0,1.5) node[below right]{\footnotesize $y$};                 \draw[-,domain=0:1,samples=250] plot (\x,{sqrt(\x)});                 \draw[-,domain=0:1,samples=250] plot (\x,{\x});                 \node at (0.35,0.75) {\footnotesize $y=\sqrt{x}$};                 \node at (0.65,0.5) {\footnotesize $y=x$};             \end{scope}         \end{tikzpicture}     \end{document}


title: Animation with beamer: concatenating images at different velocities

text: I'm trying to make an animation with beamer. I usually do the following:               \begin{animateinline}{12}       \multiframe{11}{i=0+1}{%       \includegraphics[width=\textwidth]{image_\i}}          \end{animateinline}       This allows me to concatenate 12 images (that are called image_0, image_1, ... , image_11) at a certain velocity (11 frames per second). My question is the following: Imagine that now I want to concatenate these 12 images such that the time between them is not constant. For instance, image_0 appears at time t=0, image_1 appears at time t=2 sec, etc. The set of times are known. How can I do that? Is it possible with the `animate` package? If not... what can I use?


title: \sqrt symbol with a vertical part

text: It seems that for a given height, the \sqrt symbol "switches" it's type, and it becomes vertical at some part, like here: ![enter image description here](http://i.stack.imgur.com/n5jQz.png) But I want it to be like the second one. What is the solution for this? EDIT: I've cut this line out of my .tex file. It looks like this:               \documentclass[12pt]{article}              \usepackage{enumerate}                   \usepackage{lmodern}         \usepackage{amsmath}                  \begin{document}                  \begin{enumerate}[1.]                  \item[\textbf{MO:}] {}                         \begin{enumerate}[a)]                       \item{                  $$\lim \limits_{k \to \infty}                  \sqrt{\frac{1+(-1)^k}{3+\dfrac{1}{k^2}+\dfrac{8}{k^3}}}=                  \sqrt{\dfrac{1+1}{3+0+0}}=\sqrt{\dfrac{2}{3}}$$}                       \end{enumerate}                  \end{enumerate}                  \end{document}


title: How to plot stacked bar plot inside table?

text: I have following code in Latex. Which plots only one data series (data2). I would like to plot staked bar plot inside table for both data1 and data2 with different colours. Any ideas.? Many thanks.               \documentclass{article}     \usepackage{booktabs}     \usepackage{multirow}     \usepackage{pgfplotstable}     \usepackage{filecontents}          % The data     \begin{filecontents}{data.txt}     accession,data1,data2     C1,150708.4564,481.0388003     C2,49652.53112,275.2190163     C3,37379.1284,58.85806921     C4,34165.85698,26.06571636     C5,30856.19158,35.96802428     C6,15204.22768,26.71594573     \end{filecontents}               \pgfplotstableread[col sep=comma]{data.txt}\data          \newcommand{\errplot}{%     \begin{tikzpicture}[trim axis right]     \begin{axis}[y=-\baselineskip,       scale only axis,       width=5cm,       enlarge y limits={abs=0.5},       axis y line*=middle,       ytick=\empty,       axis x line*=bottom,       xbar,       bar width=1.5ex,       xmin=0,       visualization depends on=x \as \rawx,       nodes near coords,       every node near coord/.style={       anchor=east,       shift={(axis direction cs:-\rawx,0)}       }      ]     %           \addplot [draw=black, fill=red]      table [x=data2,y expr=\coordindex]{\data};     \end{axis}     \end{tikzpicture}%     }          \begin{document}          % Get number of rows in datafile      \pgfplotstablegetrowsof{\data}     \let\numberofrows=\pgfplotsretval          % Print the table     \pgfplotstabletypeset[columns={accession,data1,data2},       % Booktabs rules       every head row/.style={before row=\toprule,after row=\midrule},       every last row/.style={after row=[3ex]\bottomrule},       % Set header name       columns/accession/.style={string type,column type=l,column name=accession},       columns/data1/.style={string type,column type=l,column name=data1},        columns/data2/.style={         column name={Data2},         assign cell content/.code={% use \multirow for Z column:        \ifnum\pgfplotstablerow=0        \pgfkeyssetvalue{/pgfplots/table/@cell content}        {\multirow{\numberofrows}{6.5cm}{\errplot}}%        \else        \pgfkeyssetvalue{/pgfplots/table/@cell content}{}%        \fi       }      },     ]{\data}     \end{document}


title: Change font size of caption, only in marginpar?

text: I'm using `\marginpar` and `\captionof` to have figures appearing in the margins of my documents, including figure captions. This works well. But now I want to change to font size of the captions appearing in the margins (including the "Figure 1" text), but not the captions of the figures appearing in the main body (Figure 2). How can I achieve this? Minimal working example:               \documentclass[a4paper]{article}     \usepackage[demo]{graphicx}     \usepackage{caption,lipsum}               \begin{document}          \section{Introduction}          \lipsum[1]     \marginpar{         \includegraphics[width=\marginparwidth]{demo.pdf}         \captionof{figure}{Change this.}     }     \lipsum[1]          \begin{figure}[h]     \centering \includegraphics[scale=1]{}     \caption{Not change this.}     \end{figure}          \end{document}


title: How do I typeset a tenfold powering (a tower-of-powers) with LaTeX?

text: How do I write `x^x^x^x^x^x^x^x^x^x`? My LaTeX distribution doesn't wanna eat it, it stops swallowing stuff at the double power x^x^x. What I'm aiming at is essentially building a telescope out of X's stacked on top of each other. Don't ask, that's my sense of humour.


title: Removing headers on pages between chapters while using \include to input chapters

text: I am writing a document using the `report` class with the options `twoside` and `openright`. I want to remove headers and footers from blank pages between chapters. I tried the `emptypage` package as well as re-defining the `\cleardoublepage` command as suggested here:How to remove headers and footers for pages between chapters?. However, for some reason both of these solutions only work when I use \input to include my chapters. When \include is used I still get headers on all the empty pages between chapters, except for one chapter where Latex inserted two empty pages. The first has a header while the second empty page has no headers. As it is an easy change I updated my document to use the `\input` command. I was wondering if anyone can explain why using \include causes this behavior?


title: Two lines of 12-pt Times New Roman Bold in an otherwise standard document

text: I need to able to write two short lines of bold, centered, 12-point Times New Roman in an otherwise standard document (I'm using the book class with the 11pt option). Can anyone help me? Thoughts: Since I'm using latex + dvips + ps2pdf, it seems like the simplest way to handle this would be to write a small eps file and include it as a graphic. As a possible alternative, I seem to recall that there is some way to directly include postscript commands. Unfortunately, I am way out of my depth when it comes to writing postscript of any sort.


title: Insert tokens where TeX would put a linebreak?

text: Given a TeX paragraph, is there any way to insert tokens at places where TeX would automatically insert line breaks (similar to \everypar?) To give some context, I am writing a LaTeX package for typesetting programming language syntax. Given something like               \begin{format}       Types \alpha ::= \tau | \tau \to \tau | \mu \alpha. \tau | ...     \end{format}      It should be converted to a tabularx with columns for "Types", "\alpha", "::=", and the body of the definition (specification X). The X column is defined such that its contexts are typeset in mathmode and | is redefined to \mid. However, if the line is too long, it should wrap, and the | should appear where the ::= appeared. For example,               Types \alpha ::= \tau | \tau \to \tau                   |  \mu \alpha. \tau      My tentative strategy is to insert an appropriate "\ \multicolumn{...}" sequence of tokens before every TeX linebreak, such that I can insert the | in the place where the ::= went. Any ideas? (P.S., I don't think existing BNF packages for LaTeX can do this -- the ones I've seen require an explicit command for breaking the line and putting the | where the ::= went.)


title: Change colour depending on counter

text: I have some text that I want to change colour depending on the current state of a counter. But I can't get this file to compile. (This is obviously simplified, since the texcolour command is actually part of a command defined in the preamble...)               \documentclass{article}     \usepackage{xcolor}     \newcounter{foo}     \setcounter{foo}{30}     \begin{document}     \textcolor[RGB]{0,\value{foo},0}{Text in FOO colour}     \end{document}      I get the following error repeated:               ! Missing number, treated as zero.     <to be read again>                         \     l.8 ...r[RGB]{0,\value{foo},0}{Text in FOO colour}          ! Illegal unit of measure (pt inserted).     <to be read again>                         \     l.8 ...r[RGB]{0,\value{foo},0}{Text in FOO colour}      I'm sure there's some subtlety I've not grasped yet... But `\vskip \value{foo} pt` compiles fine and gives me space depending on the value of the counter, so I can't be far off...


title: What are best practices when augmenting and building on the keys provided by someone else's package

text: The situation is one where I'm developing my own commands and environments which build on the commands and environments provided by another package: for ease of talking let's call this _other package_ the **first module**. The **first module** provides me with an environment for which parameters can be setting using key-values:               \begin{<first-module-env>}[<key-values>]         .... various content .....     \end{<first-module-env>}      I would like to build on this environment and possibly supplement the earlier packages's range of permissible key-values. If the **first modules** provided me with a command to directly process the keys, then things would be fairly straight-forward. For example, if I were given something like,               \firstmodulekeysetter{<key-values>}      Then I could build something along the lines of               \keys_define:nn { acellett/augmentation } { ..... }     \NewDocumentEnvironment{acellett}{ O{} }       {  \keys_set_known:nnN { acellett/augmentation } { #1 } \l_tmpa_clist          \exp_args:NV \firstmodulekeysetter \l_tmpa_clist          .... }        { .... }      But the **first module** might not be so user friendly. It might only allow me to access the keys through an optional argument to an environment. Here's an example which shows how I'm trying to handle _augmenting_ the allowable key-values of **first module**.               \documentclass{article}     \usepackage{xparse}     \ExplSyntaxOn     %----------------------------------------------------------------------     %% module "first_module"     \tl_new:N \l_first_module_a_tl     \tl_new:N \l_first_module_b_tl          \keys_define:nn { first/module/set }       {         a .code:n = { \tl_set:Nn \l_first_module_a_tl { #1 } },         b .code:n = { \tl_set:Nn \l_first_module_b_tl { #1 } },       }          \NewDocumentEnvironment{firstenv}{ O{} }       {          \par         \keys_set:nn { first/module/set } { #1 }         \begin{tabular}{rl}         a & \l_first_module_a_tl \\         b & \l_first_module_b_tl \\       }       {         \end{tabular}\par       }     %----------------------------------------------------------------------     %% module "augmented_module"     \tl_new:N \l_ae_augmented_module_x_tl     \tl_new:N \l_ae_augmented_module_y_tl          \keys_define:nn { ae/augmented/module/set }       {         x .code:n = { \tl_set:Nn \l_ae_augmented_module_x_tl { #1 } },         y .code:n = { \tl_set:Nn \l_ae_augmented_module_y_tl { #1 } },       }          \cs_new:Npn \__ae_augmented_calling_first:n #1        {         \begin{firstenv}[#1]       }          \NewDocumentEnvironment{augmentedenv}{ O{} }       {         \keys_set_known:nnN { ae/augmented/module/set }{ #1 } \l_tmpa_clist         \exp_args:NV \__ae_augmented_calling_first:n \l_tmpa_clist         x & \l_ae_augmented_module_x_tl \\         y & \l_ae_augmented_module_y_tl \\       }       {         \end{firstenv}       }     \ExplSyntaxOff     \pagestyle{empty}     \begin{document}            \textbf{First Environment}       \begin{firstenv}[a={A},b={is for Apple}]       \end{firstenv}            \textbf{Augmented Environment}       \begin{augmentedenv}[a={B},b={is for Banana},x={X},y={is for Xylophone  }]            \end{augmentedenv}          \end{document}      It's been mentioned before that using `\exp_args` is discouraged. Is there a better way to do this? Is it necessary for me to create the function `\\__ae_augmented_calling_first` to allow me to pass the `\l_tmpa_clist`?


title: Font installation problem - updating .map file

text: I'm trying to install the font GillSans. I've gone through the usual process of moving all the relevant font files into the local tex directory: `/usr/local/share/texmf/fonts/` The problem I have, however, is with making latex (Tex Live 2009) recognise the map file, `/usr/local/share/texmf/fonts/map/dvips/gillsans/gillsans.map`. Running `updmap-sys --enable Map gillsans.map`, then running pdflatex on my tex file doesn't work. I get the following error:               kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+60/600 --dpi 660 mgsbi8r     mktexpk: don't know how to create bitmap font for mgsbi8r.     kpathsea: Appending font creation commands to missfont.log.     (see the transcript file for additional information)     !pdfTeX error: pdflatex (file mgsbi8r): Font mgsbi8r at 660 not found      ==> Fatal error occurred, no output PDF file produced!      I suspected this was due to a map problem, so decided to add the contents of the gillsans.map file to the system-wide (not local) map files: `/usr/share/texmf-texlive/fonts/map/dvips/updmap/psfonts.map` and `/usr/share/texmf-texlive/fonts/map/pdftex/updmap/pdftex.map` (followed by `mktexlsr`) Hurrah! This time pdflatex did give me pdf output in the correct font. Now, this second method is fine, but I'd prefer to be able to do things the first way, in case I have to modify/wipe the system latex files. Any idea on why the first method doesn't work? Thanks


title: pgfplots: two axis for one dataset e.g. °C and °F

text: I want to plot ONE dataset in a pgfplots and use TWO axis with different units on each axis. For example I have one dataset with temperature and want to print a °C scale on the left and a °F on the right. ![quick paint example :-\) ](http://i.stack.imgur.com/Mplmh.png) Thank you :-) I didn't find the answer yet with google :-( PS: This is such a great platform and it helps me so much - thanks for all the other answers on this side :-) This is my code so far with the left axis:               \documentclass[a4paper,10pt]{article}     \usepackage{pgfplots}          \begin{document}          \begin{tikzpicture}     \begin{axis}[         xmin=0, xmax=100, %- show range         ymin=345.95, ymax=346.17, %- show range         domain=0:100, %- calc range         ytick={346.16,346.11,...,340}, %- labels on the left side         y tick label style={           /pgf/number format/.cd,             fixed,             fixed zerofill,             precision=2,           /tikz/.cd         },               samples=200,         no markers,         enlargelimits=false,         xlabel={x-axis},         ylabel={Temperature T[K]},       ]     \addplot gnuplot { (346.16 - 0.002 * x)} ;      \addplot gnuplot [style=densely dotted] { 346.16 }     node[below left] at (axis cs:100,346.16) {$73^\circ$C};                  \end{axis}\end{tikzpicture}          \end{document}


title: Bold Small Caps for Font Without

text: I am trying with no success to create text using bold small caps for the Latin Modern Roman font. The whole manner in which fonts are handled in TeX really confuses me, so my knowledge on any commands and ways to manipulate it are limited to `\textit`, `\textbf`, `\scshape`, `\bfseries`, the size commands, and `\setmainfont`. I found that because there is no bold small caps font included in LMR, I could not make bold small caps right away. Trying the methods linked at the bottom produced these results. **Open Type Large** ![Open Type Large](http://i.stack.imgur.com/f6d9M.png) **Open Type Small** ![Open Type small](http://i.stack.imgur.com/3WmFl.png) **T1 Large** ![T1 Large](http://i.stack.imgur.com/1bC1V.png) **T1 Small** ![T1 Small](http://i.stack.imgur.com/xDQwV.png) As my document is all set up for using `fontspec` I cannot get the second solution to work and the first solution has a severe problem of its own, which can be seen in "open type small" as the blocky looking text. So I had two ideas, one was to look for a font with bold small caps, (which I found called Trajan Pro). However I don't know how to implement it as by bold small caps font. The second solution which is what I really want to try is to make latex automatically increase the font size of the first letter in every word. Perhaps a new command like...               {\bfscaps This is an Example}      At the end of the day I need this to work with `titlesec` to define subsubsections and the like. Does anyone have any ideas on how to do either of these methods? How to use all variants of Latin Modern Roman with fontspec? Choosing font for bold small caps (or any other particular family+series+shape combination)


title: Correct path on Windows for custom beamer style files

text: I've recently switched to windows from linux and I'm having trouble getting my custom beamer style files to compile correctly. I have them in `~/texmf/tex/latex/local` currently. There are other style files in there that are working correctly so the directory is on the right tex path, and when I copy the style files into the same directory as the code they also work. Does beamer use a different path ? I ran `texhash.exe`, is there a separate command to set the beamer path?


title: biblatex \printbibliography

text: The biblatex helped me to fix problems with the utf8 encoding but: I can not get a bibliography and the citations are not formated.   I am using windows 7 (64bit) with   MiTeX 2.9 and   Texmaker.   I use a .bib file created by mendeley and one created by papers.   After every change, I compiled 4 times.   I tried everything that is commented out in the following minmal example, in all combinations. Can someone help? Here is my minimal example: * * *               \documentclass{article}     \usepackage[backend=biber]{biblatex}     %\usepackage[style=numeric,sorting=none]{biblatex}     %\usepackage[style=numeric,sorting=none]{biber}     \bibliography{Bib/bibpapers}      %\printbibliography     % or     %\addbibresource{Bib/bibpapers.bib}     \begin{document}     \cite{Griffith:2006dfa}     %\nocite{*}     \printbibliography     \end{document}      * * * It compiles, but the citation key is displayed instead of the formated citation and no Bibliography appears. This is the log file: * * *               LOG FILE :         This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9) (preloaded format=pdflatex         2012.11.22) 11 DEC 2012 22:11     entering extended mode     **Minmalexpample.tex     ("D:\<mypath to the file>.tex"     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,     croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat     vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm     an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,     romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis     sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u     senglishmax, welsh, loaded.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\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     )     ("C:\Program Files\LaTeX\tex\latex\biblatex\biblatex.sty"     Package: biblatex 2012/10/29 v2.3 programmable bibliographies (PK/JW/AB)     ("C:\Program Files\LaTeX\tex\latex\biblatex\biblatex2.sty"     Package: biblatex2 2012/10/29 v2.3 programmable bibliographies (biber) (PK/JW/A     B)     ("C:\Program Files\LaTeX\tex\latex\etoolbox\etoolbox.sty"     Package: etoolbox 2011/01/03 v2.1 e-TeX tools for LaTeX     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\misc\etex.sty"     Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)     \et@xins=\count87     )         \etb@tempcnta=\count88     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty"         Package: keyval 1999/03/16 v1.13 key=value parser (DPC)         \KV@toks@=\toks14     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"     Package: kvoptions 2010/12/23 v3.10 Keyval support for LaTeX options (HO)         ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"     Package: ltxcmds 2011/04/18 v1.20 LaTeX kernel commands for general use (HO)     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty"     Package: kvsetkeys 2011/04/07 v1.13 Key value parser (HO)     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"     Package: infwarerr 2010/04/08 v1.3 Providing info/warning/message (HO)     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"     Package: etexcmds 2011/02/16 v1.5 Prefix for e-TeX command names (HO)     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"     Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)         Package ifluatex Info: LuaTeX not detected.     )     Package etexcmds Info: Could not find \expanded.     (etexcmds) That can mean that you are not using pdfTeX 1.50 or     (etexcmds) that some package has redefined \expanded.     (etexcmds) In the latter case, load this package earlier.     )))     ("C:\Program Files\LaTeX\tex\latex\logreq\logreq.sty"     Package: logreq 2010/08/04 v1.0 xml request logger     \lrq@indent=\count89     ("C:\Program Files\LaTeX\tex\latex\logreq\logreq.def"     File: logreq.def 2010/08/04 v1.0 logreq spec v1.0     ))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ifthen.sty"     Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)     )     ("C:\Program Files\LaTeX\tex\latex\url\url.sty"     \Urlmuskip=\muskip10         Package: url 2006/04/12 ver 3.3 Verb mode for urls, etc.     )     \c@tabx@nest=\count90     \c@listtotal=\count91               Package biblatex Info: Trying to load biblatex default data model...     Package biblatex Info: ... file 'blx-dm.def' found.     ("C:\Program Files\LaTeX\tex\latex\biblatex\blx-dm.def")     Package biblatex Info: Trying to load biblatex custom data model...     Package biblatex Info: ... file 'biblatex-dm.cfg' not found.     \c@afterword=\count131          \c@savedpageref=\count196     Package biblatex Info: Trying to load compatibility code...     Package biblatex Info: ... file 'blx-compat.def' found.     ("C:\Program Files\LaTeX\tex\latex\biblatex\blx-compat.def"     File: blx-compat.def 2012/10/29 v2.3 biblatex compatibility (PK/JW/AB)     )     Package biblatex Info: Trying to load generic definitions...     Package biblatex Info: ... file 'biblatex.def' found.     ("C:\Program Files\LaTeX\tex\latex\biblatex\biblatex.def"     File: biblatex.def     \c@biburlnumpenalty=\count197     \c@biburlucpenalty=\count198     \c@biburllcpenalty=\count199     \c@smartand=\count200     )     Package biblatex Info: Trying to load bibliography style 'numeric'...     Package biblatex Info: ... file 'numeric.bbx' found.     ("C:\Program Files\LaTeX\tex\latex\biblatex\bbx\numeric.bbx"     File: numeric.bbx 2012/10/29 v2.3 biblatex bibliography style (PK/JW/AB)     Package biblatex Info: Trying to load bibliography style 'standard'...     Package biblatex Info: ... file 'standard.bbx' found.     ("C:\Program Files\LaTeX\tex\latex\biblatex\bbx\standard.bbx"     File: standard.bbx 2012/10/29 v2.3 biblatex bibliography style (PK/JW/AB)             \c@bbx:relatedcount=\count201     \c@bbx:relatedtotal=\count202     ))     Package biblatex Info: Trying to load citation style 'numeric'...     Package biblatex Info: ... file 'numeric.cbx' found.     ("C:\Program Files\LaTeX\tex\latex\biblatex\cbx\numeric.cbx"     File: numeric.cbx 2012/10/29 v2.3 biblatex citation style (PK/JW/AB)     Package biblatex Info: Redefining '\cite'.     Package biblatex Info: Redefining '\parencite'.     Package biblatex Info: Redefining '\footcite'.         Package biblatex Info: Redefining '\footcitetext'.     Package biblatex Info: Redefining '\smartcite'.     Package biblatex Info: Redefining '\textcite'.     Package biblatex Info: Redefining '\supercite'.     Package biblatex Info: Redefining '\cites'.     Package biblatex Info: Redefining '\parencites'.     Package biblatex Info: Redefining '\smartcites'.     )     Package biblatex Info: Trying to load configuration file...     Package biblatex Info: ... file 'biblatex.cfg' found.     ("C:\Program Files\LaTeX\tex\latex\biblatex\biblatex.cfg"     File: biblatex.cfg     )))     Package biblatex Info: Trying to load language 'english'...     Package biblatex Info: ... file 'english.lbx' found.     ("C:\Program Files\LaTeX\tex\latex\biblatex\lbx\english.lbx"     File: english.lbx 2012/10/29 v2.3 biblatex localization (PK/JW/AB)     )     \@quotelevel=\count203     \@quotereset=\count204     ("D:\!<my path to the document")     LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 9.     LaTeX Font Info: ... okay on input line 9.     LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 9.     LaTeX Font Info: ... okay on input line 9.     LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 9.     LaTeX Font Info: ... okay on input line 9.     LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 9.     LaTeX Font Info: ... okay on input line 9.     LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 9.     LaTeX Font Info: ... okay on input line 9.     LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 9.     LaTeX Font Info: ... okay on input line 9.     Package biblatex Info: No input encoding detected.     (biblatex) Assuming 'ascii'.     Package biblatex Info: Automatic encoding selection.     (biblatex) Assuming data encoding 'ascii'.     Package biblatex Info: Trying to load bibliographic data...     Package biblatex Info: ... file 'Minmalexpample.bbl' not found.     No file Minmalexpample.bbl.     Package biblatex Info: Reference section=0 on input line 9.     Package biblatex Info: Reference segment=0 on input line 9.     LaTeX Warning: Citation 'Griffith:2006dfa' on page 1 undefined on input line 10     .     LaTeX Warning: Empty bibliography on input line 12.     [1     {C:/Users/Marlies/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]     ("D:\<my path to the document.aux")     LaTeX Warning: There were undefined references.     Package biblatex Warning: Please (re)run Biber on the file:     (biblatex) Minmalexpample     (biblatex) and rerun LaTeX afterwards.     Package logreq Info: Writing requests to 'Minmalexpample.run.xml'.     )     Here is how much of TeX's memory you used:     5573 strings out of 494053     95678 string characters out of 3146442     465259 words of memory out of 3000000     8861 multiletter control sequences out of 15000+200000     3948 words of font info for 15 fonts, out of 3000000 for 9000     715 hyphenation exceptions out of 8191     44i,4n,35p,828b,677s stack positions out of 5000i,500n,10000p,200000b,50000s     <C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmbx10.pfb>     <C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb>     Output written on Minmalexpample.pdf (1 page, 21003 bytes).     PDF statistics:     14 PDF objects out of 1000 (max. 8388607)     0 named destinations out of 1000 (max. 500000)     1 words of extra memory for PDF output out of 10000 (max. 10000000)


title: Writing an equation with the units positioned off right

text: Okay so I have a have a lot of equations in the document I am writing and I am trying to display the units of an equation off to the right. I was wondering how I can achieve this? Right now, all I can do is write the equation with the units attached at the end. Here is my code:               \usepackage{amsmath, siunitx}     \begin{document}                  \begin{equation}                 {                 I_0 \equiv \frac{4E_p}{{\tau}{w_{0}^{2}}\pi\sqrt{2\pi}}             [\si{\watt\per\meter\squared}]                           }             \label{eq:PeakIntensity}             \end{equation}              Where                  \begin{equation}                 {                 E_p \equiv \frac{P}{R}          [\si{\joule}]                         }             \label{eq:PulseEnergy}             \end{equation}           \end{document}      Thanks for any and all help! edit: One more thing while I have this posted! I'm sure this is simple, but how do I also display the equation number on the far right of the page so I can reference equations later? Thanks!


title: Text alignment in nodes

text: Why 360 is not vertically aligned with Angle ? I changed `text width` but it's not better ... ![enter image description here](http://i.stack.imgur.com/K21L7.png)               \documentclass[tikz,margin=3pt]{standalone}          \pgfkeys{/tikz/.cd,         BLS/.store in=\BLS,         BLS=1.1*\baselineskip         }              \tikzset{%             TDPnode/.style={outer sep=0pt,inner sep=1pt,                             minimum height=\BLS,draw,text depth=1.5pt},             TDPetq/.style={TDPnode,anchor=north east,                 minimum width=3em + 10pt,fill=gray!40},             TDPcas/.style={TDPnode,anchor=west,minimum width=3em},             TDPfle/.style={>=stealth,semithick}         }          \begin{document}     \begin{tikzpicture}         \node[TDPetq] (B0) at (0,0) {Angle ()} ;         \node[TDPcas,anchor=west] (B1) at (B0.east) {360} ;          \end{tikzpicture}     \end{document}


title: tcolorbox, divided box

text: I use `tcolorbox`. How I can achieve box like draft bellow?               --------------------     |Lorem   |ipsum    |     |        |         |     --------------------     |Lorem ipsum dolor |     |                  |      --------------------      When I combine two boxes, I have space between them. ![enter image description here](http://i.stack.imgur.com/sHKbg.png)               \documentclass[]{article}     \usepackage{lipsum}     \usepackage[most]{tcolorbox} %kolor wokół sekcji     \usepackage{geometry}     \usepackage{tikz}         \usetikzlibrary{shadows}     \usepackage{tcolorbox}         \tcbuselibrary{skins}          \newtcolorbox{FirstBox}[2]{         sidebyside,sidebyside align=top,         skin=enhanced#2,         boxsep=1mm,left=1mm,right=1mm,top=1mm,         colback=black!5!white,         colframe=black!75!white,         title={Box {\bf #1}}     }          \newtcolorbox{SecondBox}[2]{     boxsep=1mm,left=1mm,right=1mm,top=0mm,     colback=black!5!white,     colframe=black!75!white,     skin=enhanced#2,     }          %--------------------------     \begin{document}     \begin{FirstBox}{ABC}{first}     Lorem ipsum dolor     \tcblower     Lorem ipsum dolor     \end{FirstBox}          \begin{SecondBox}{ABC}{last}     \lipsum[4]     \end{SecondBox}          \end{document}


title: How to format multiple equations properly?

text: When I specify a set of partial differential equations, I usually have to write out not only the equation itself, but also its domain. To complete the problem, I need to specify the boundary conditions underneath it in the same fashion. So the information I need to write is of the format: EQUATIONS in DOMAIN   CONDITIONS in BOUNDARY Using simple `\\[ ... \\]` format, it looks absolutely horrible. So I tried using a 2x2 array using `\begin{array}{cc}...\end{array},` but this doesn't look correct either. What is the standard approach to formatting these equations? Update: This is what I have coded thus far:                \[ \begin{array}{cc} -\nabla^2u=0, & \Omega\\u=g & \partial\Omega \end{array}\]


title: Use TeX macros to store multiple data

text: I'm trying to use TeX macros to store multiple data such as website url/name. Here is an example :               \documentclass{article}          \def\Google{{http://www.google.com}{Google Search}}          \makeatletter     \newcommand*\WebSiteName[1]{\@WebSiteName\expandafter#1}     \newcommand*\WebSiteUrl[1]{\@WebSiteUrl\expandafter#1}     \newcommand*\@WebSiteName[2]{#2}     \newcommand*\@WebSiteUrl[2]{#1}     \makeatother          \begin{document}            Name : \WebSiteName\Google \par       Url  : \WebSiteUrl\Google          \end{document}      On this example, `\WebSiteName\Google` should write "Google Search" and `\WebSiteUrl\Google` should write "http://www.google.com". But the problem is that `\WebSiteName\Google` writes http://www.google.comGoogle Search". I try to use `\expandafter` to combine two arguments in only one. Maybe that's the wrong method.


title: How can I change the font type of appendix in the table of content?

text: I have been searching for a solution to this problem but I can't find one. In the table of content, Appendix A, Appendix B, and so on are shown with the same font type and size as the chapter 7 Conclusion and Outlook, see picture. I'm wondering how I can change only those Appendix A, Appendix B, and so on to be displayed with the `same font type and size` as the subsection, 7.1 Conclusion and 7.2 Outlook. I'm also not sure whether I need to modify a part of the class file or not. Thanks for your help Kritsada               \documentclass{dissertation}     \usepackage{tocloft}     \usepackage{pdflscape}          \begin{document}          \TOC\LOT\LOF          \newpage     \pagenumbering{arabic}     \begin{doublespace}          \include{Summaryoutlook}          \addcontentsline{toc}{chapter}{\textbf{APPENDICES}\textmd{\leaders\hbox to 1em{\hss.\hss}\hfill}}              \addtocontents{toc}{     \setlength{\cftbeforechapskip}{\cftbeforesecskip}     \setlength{\cftchapindent}{\cftsecindent}     }          \include{Appendix}          \addcontentsline{toc}{chapter}{\textbf{BIBLIOGRAPHY}\textmd{\leaders\hbox to 1em{\hss.\hss}\hfill}}                     \bibliographystyle{unsrt}          \bibliography{bibfile}{}          \end{doublespace}     \end{document}       ![enter image description here](http://i.stack.imgur.com/3rf2o.png)


title: Biblatex style with hyperlinks using url in bib file

text: I am using `biblatex` with the `href` option for my bibliography. I would like to use the `url` field of my `bib` file to add a hyperlink to the online version of the article. However I don't want the whole url link to be printed in the bibliography but, if that's possible the link to appear when clicking on the volume / page of the cited journal (or on the journal name would also be fine) - as it is the case in a lot of scientific journals. I am using the `nature` citation style and have tried to modify the `.bbx` according to my needs - but my knowledge of the `.bbx` structure and LaTeX macros is very sparse.


title: Insert margin images in LaTeX

text: I am using a two sided layout in LaTeX and have several places where white space could be filled with images instead of being included in the text flow. I cannot get a working figure with caption though. What I have tried from similar questions: Throws "Argument of \Gin@ii has an extra }"               \marginpar{\includegraphics[width=\marginparwidth]{myimage.jpg}      \captionof{figure}{Caption text}}     \lipsum[1-2]      This works but does not appear in the `\listoffigures`:               \marginpar{       \centering{       \includegraphics[width=\marginparwidth]{myimage.jpg}       }       Caption text       }       The caption is supposed to have a generated index and link to the list of figures. EDIT: a longer example               \documentclass[11pt, a4paper, titlepage]{book}     \usepackage{booktabs}     \usepackage{color,graphicx}     \usepackage{geometry}          \usepackage[utf8]{inputenc}     \usepackage{varwidth}            \usepackage{ngerman}     \usepackage[ngerman]{babel}     \usepackage[T1]{fontenc}     \graphicspath{{images/}}                    \geometry{  a4paper,                 twoside,                 includemp,                 includehead,                 top = 30mm,                 headsep = 10mm,                 bindingoffset = 10mm,                 inner = 20mm,                 outer = 40mm,                 bottom = 45mm,                 marginparsep = 10mm,                 marginparwidth = 30mm     }     \savegeometry{myText}               \begin{document}     \tableofcontents          \chapter{Chapter about XY}      aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo i          %%     % image with caption to go to the margin with its caption     %%      \begin{figure}[t!bp]%         \begin{center}%             \includegraphics{ant}%             \caption[Caption]{Caption text}             \label{label}%         \end{center}%     \end{figure}%          % creates the image in the margin but without link in TOC and list of figures     \marginpar{       \centering{       \includegraphics[width=\marginparwidth]{ant.jpg}       }       Caption text       }            aeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo iaeoiaeo iaeoiaeo aeo eaoiaeoiaeoi oiaeo iaeoiaeo            \end{document}      EDIT: This is working for me, why are the {} wrong?:               \marginpar{       \centering{       \includegraphics[width=\marginparwidth]{example-image-a.jpg}       }       \captionof{figure}{Caption text}     }      Also: adding a different text for the index tabel with               \captionof{figure}[table text]{Caption text}      causes "Argument of \caption@ydblarg has an extra }."


title: Is it possible to have more than one author?

text: Could you help me with these questions: How do you add 2 authors to a normal article? Are there commands to specify where the authors are placed at on the paper? Thanks for your reply, I am a complete amateur when it comes to the TeX genre.


title: How to delete \shortitle from page when having footnote?

text: I have a document, where one page has two footnotes, but they are appearing just above `\shortitle` ... Can I force `\shortitle` to not appear on this particular page? Some pages have author and shortitle, some have only page numbers... edit: here goes beginnning of the document               \documentclass[pdflatex,12pt]{aghdpl}     \usepackage[polish]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          % additional packages     \usepackage{enumerate}     \usepackage{listings}     \usepackage{graphicx}     \usepackage{subcaption}     \usepackage{listings}     \usepackage{multicol}     \usepackage{wrapfig}     \usepackage[nottoc,numbib]{tocbibind}     \usepackage[font={footnotesize,bf}]{caption}     \lstloadlanguages{TeX}      then I have all info on supervisor, author, shorttitle, title, departments etc. This is needed for `\titlepages`. This is my bachelor of science thesis. Then I have:               \begin{document}          \titlepages          \tableofcontents     \clearpage          \include{rozdzial1}     \include{rozdzial2}     \include{rozdzial3}     \include{rozdzial4}     \include{rozdzial5}     \bibliographystyle{alpha}     \bibliography{bibliografia}     \begin{thebibliography}{99}     ...     \end{thebibliography}     \include{rozdzial7}     \end{document}      And every time I need footnote I simply was using `\footnote{}` I hope it is enough, isn't it?


title: How to limit the width of a subheading?

text: The thesis formatting manual has the following requirement: > **Subheading width:** > > A long subheading title should be divided into two or more lines. No single > line may be wider than 4 inches. Subheadings may be all single- or all > double-spaced within the thesis. However, I have several chapters and sections with long names. I have looked into the `titlesec` package but still have no solution at this moment.


title: How do you keep content together without explicitly stating a size?

text: I have a tabular environment and some associated text. Now, I don't want to use this text as the caption for various reasons and I want to make sure that they are always on the same page, or that the text at least comes on the same page as the beginning of the table. Is there any way to force this to occur without specifying exactly how large the table (or related types of content one might be trying to associate) is?


title: biblatex: How to build a testing environment

text: Maybe the question is also of interest beyond `biblatex` but here's the thing: I recently published my `biblatex` style biblatex-fiwi and I'm always having trouble making sure that updates don't lead to unexpected behavior. For example, I just realized that my last update includes a stupid error where a colon is dropped at an important place. The colon was there in previous versions but since I wasn't careful enough it's gone at the moment. What I would like to have is some kind of automated testing environment which would check a set of bibliographic entries against a defined outcome. At the moment I always have to check the final PDF myself which is error-prone. What's to easiest way to do this?


title: Chapter name in the header with \chapter*

text: I need to display the chapter name with the `\chapter*` command to the left side of the header. This is one example of what I tried:                   \documentclass[12pt,a4paper,oneside]{book}         \usepackage{fancyhdr}         \pagestyle{fancy}         \lhead{}         \chead{}         \rhead{\fancyplain{}{\textit{\leftmark}}}              \begin{document}         \chapter*{\centerline{Chapter Name}}              \end{document}      How can I do this?


title: Print only existing footnotes / suppress empty footnotes

text: This is a follow-up to my earlier question Merge separate footnotes into text. I now have a similar case, where I need to check whether there actually _are_ footnotes relating to a particular number:               \documentclass[a4paper]{article}          \usepackage{lipsum}     \newcommand{\mylips}[1]{\printfootnote#1 \lipsum[#1]}          \def\printfootnote#1{\footnote{\csname extfootnote#1\endcsname}}     \def\definefootnote#1 #2\endfootnote{%       \expandafter\def\csname extfootnote#1\endcsname{#2}}     \input{footnotefile}               \begin{document}      \mylips{1}      \mylips{2}      \mylips{3}      \mylips{4}      \mylips{5}      \mylips{6}      \mylips{7}     \end{document}      `footnotefile.tex` would be               \definefootnote1 Some footnote\endfootnote     \definefootnote3 Another footnote\endfootnote     \definefootnote7 And another footnote\endfootnote       The challenge is that I don't want the empty notes to appear at all. How would I write a test for whether the result of a certain `\printfootnote\arabic{somecounter}` will be empty?


title: How to play background music across multiple slides when making a beamer presentation?

text: I made a LaTeX `beamer` presentation and I would like to add background music to some of the slides. I did manage to play something using the `media9` package, but only on a single slide, i.e. the sound stops when going to the next slide. Is it possible to embed a soundfile, let's say an MP3, that starts playing at a specific slide _x_ and stops at another slide _y_ (using `media9` or any other package)?


title: Problem Creating a Polar Grid using PSTricks

text: I am a MacTeX 2013 user that uses PDFLaTeX to create my files. After a recent update, the following code stopped producing a polar grid. I checked the documentation for any changes as well as the change log. If I need to revert to an older version of one of my packages, I am not sure which ones need to be rolled back.               \documentclass[fontsize=12pt,letterpaper,openany]{scrbook}     \usepackage[pdf]{pstricks}     \usepackage{pst-all}     \usepackage{pstricks-add}     \begin{document}     \begin{pspicture}(-3.5,-3.5)(3.5,3.5)     \psaxes[axesstyle=polar,subticklinestyle=dashed,subticks=2,labelFontSize=\scriptstyle](3,3)     \end{pspicture}     \end{document}      Can someone please help with what changes need to be made for the grid to appear with the update? If that's not possible, which packages should be rolled back to a previous version?


title: New Texlive installation fails

text: Just installed the new version of texlive 2013 and I set the PATH to point to the correct location but when I tried the test with the pdflatex command it fails with the following error               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)          kpathsea: Running mktexfmt pdflatex.fmt     /usr/local/texlive/2013/bin/x86_64-linux/mktexfmt: 395: /usr/local/texlive/2013/bin/x86_64-linux/mktexfmt: /texconfig/tcfmgr: not found     fmtutil: config file `fmtutil.cnf' not found.     I can't find the format file `pdflatex.fmt'!


title: How can I make fontspec avoid black italics with Charter in OS X Mavericks?

text: OS X Mavericks includes a copy of the font Charter in `/Library/fonts/Charter.ttc`. This file provides six variants: roman, italic, black, bold, black italic, and bold italic. As the following example shows, `\textit{text}` produces bold italics instead plain italics and `\textbf{text}` produces black text not bold.               \documentclass{article}     \usepackage{fontspec}     \setmainfont{Charter}     \begin{document}     Here are some \textit{italics} that should not be so \textbf{bold}.     \end{document}      Here’s a screenshot (for non-Mac/Mavericks users) compiled with `xelatex`. ![enter image description here](http://i.stack.imgur.com/CW9Z3.png) How do I persuade fontspec to pick the right parts of the six part font?


title: Stretchable square brackets outside math environment

text: I would like use stretchable square brackets outside of a math environment. Ideally, I would like to use `\left[ blah \right.` right in my text. Is it possible ? How ? Note : I would like to be able to include new environment in place of my "blah", like this :               \left[     \begin{array}{l}         blah \\         blah     \end{array}     \right.      Example #1 : ![enter image description here](http://i.stack.imgur.com/8FNtp.jpg)


title: What's a good way to insert very few lines of code?

text: I know about the `listings` package, but it seems that it can't be put where I want it to be (`h` in float). And since I just maybe want to insert exactly one line of code, I really want it to be where I put it, is there a good way?


title: a reference could not be cited

text: Can someone assist me, this reference can not be cited for some reason.               @article {photodreview,     author = {Berini, Pierre},     title = {Surface plasmon photodetectors and their applications},     journal = {Laser & Photonics Reviews},     volume = {8},     number = {2},     issn = {1863-8899},     url = {http://dx.doi.org/10.1002/lpor.201300019},     doi = {10.1002/lpor.201300019},     pages = {197--220},     keywords = {surface, plasmon, photodetector, performance, enhancement},     year = {2014},     }


title: incompatibility between tikzposter class and microtype package

text: I've just started using the new `tikzposter` class (having previously used the `fancytikzposter` package from the same author) and immediately discovered that using the `microtype` package causes TeX to fail. I'm wondering whether anybody else has come across this as I'm not sure what to do. My MWE is:               \documentclass{tikzposter}     \usepackage{microtype}     \begin{document}     %\block{\textls{title}}{text}     \end{document}      The commented out line in the middle is one of the reasons for using `microtype`, i.e. to get more control over letter spacing. I get the same in `pdftex`, `xetex` and `lualatex` and I'm using a freshly updated TeXlive installation. The failing error is:               ! Missing endcsname inserted.     <to be read again>                        protect     l.5 \end{document}          ?