title: Footnotes too close to the text in KOMA scrartcl class

text: I use the `scrartcl` KOMA class and I find the footnote too close to the bottom of my text. How can I change it? I would like to   1. have more space between them and    2. have more text on a single page. I use               \documentclass[12pt,captions=nooneline,DIV=14,BCOR=2mm, oneside,BCOR=12mm, parskip=half]{scrartcl}      with `hyperref` and `biblatex`. Additionally, and strangely enough, changing the values of `DIV` in the above line has no effect on my paper... while changing the font size does (from `12pt` to `11pt for instance). Any ideas? Here is a MWE fully loaded with my packages and a text from the creative commons legal code               \documentclass[12pt,captions=nooneline,DIV=12,BCOR=2mm, oneside,BCOR=12mm, parskip=half]{scrartcl}          \usepackage[Large]{caption}     \usepackage{geometry}          \usepackage[utf8]{inputenc}     \usepackage{textcomp}     \usepackage{booktabs}     \usepackage[bitstream-charter]{mathdesign}     \usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}     \usepackage[firstinits=true,citestyle=authoryear,isbn=false,maxcitenames=3,maxbibnames=99,doi=false,url=false]{biblatex}      \usepackage{titlesec}     \titleformat{\section}[hang]{         \usefont{T1}{qhv}{b}{n}\selectfont}          {}         {0em}         {\hspace{-0.4pt}\Large \thesection\hspace{0.6em}}          \usepackage{siunitx}     \usepackage{multicol}     \usepackage{subfigure}     \usepackage{pdflscape}     \usepackage{eurosym}     \usepackage{epsfig}     \usepackage{multicol}     \usepackage{tabularx}     \usepackage{booktabs}     \usepackage{graphicx}     \usepackage{xcolor}     \usepackage{setspace}     \onehalfspacing     \usepackage{hyperref}     \hypersetup{colorlinks=true, linktocpage=true, linkcolor=blue,  citecolor=blue,     urlcolor=blue,pdfpagemode=UseOutlines,pdftitle={Your title here},allbordercolors=blue,         pdfauthor={ },         pdfsubject={News},         pdfkeywords={ },         bookmarksnumbered=true,         bookmarksopen=true ,pdfstartview=Fit      }          \usepackage{hypcap}          \begin{document}     You may distribute, publicly display, publicly perform, or publicly digitally perform the Work only under the terms of this License, and You must include a copy of, or the Uniform Resource Identifier for, this License with every copy or phonorecord of the Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of a recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties. When You distribute, publicly display, publicly perform, or publicly digitally perform the Work, You may not impose any technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Work itself to be made subject to the terms of this License. If You create a Collective Work, upon notice from any Licensor You must, to the extent practicable, remove from the Collective Work any credit as required by Section 4(d), as requested. If You create a Derivative Work, upon notice from any Licensor You must, to the extent practicable, remove from the Derivative Work any credit as required by Section 4(d), as requested.\footnote{whoa look at all this white space wasted below!! and look how close this footnote is from the above text!!!!}     You may distribute, publicly display, publicly perform, or publicly digitally perform a Derivative Work only under: (i) the terms of this License; (ii) a later version of this License with the same License Elements as this License; or, (iii) either the unported Creative Commons license or a Creative Commons license for another jurisdiction (either this or a later license version) that contains the same License Elements as this License (e.g. Attribution-NonCommercial-ShareAlike 3.0 (Unported)) ("the Applicable License"). You must include a copy of, or the Uniform Resource Identifier for, the Applicable License with every copy or phonorecord of each Derivative Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Derivative Works that restrict the terms of the Applicable License or the ability of a recipient of the Work to exercise the rights granted to that recipient under the terms of the Applicable License. You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties. When You distribute, publicly display, publicly perform, or publicly digitally perform the Derivative Work, You may not impose any technological measures on the Derivative Work that restrict the ability of a recipient of the Derivative Work from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Derivative Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Derivative Work itself to be made subject to the terms of the Applicable License.     \footnote{whoa look at all this white space wasted below!!}          \end{document}


title: Multiple footnote citations of reference on same page

text: If I have multiple footnote citations of the same reference on the same page I get multiple footnote entries with exactly the same content.               \begin{filecontents*}{\jobname.bib}     @article{test,         title = {Synthesis of Enantiopure Alcohols},         volume = {71},         number = {17},         journal = {J. Org. Chem.},         author = {Test T.},         month = aug,         year = {2006},         pages = {6333--6445}     }     \end{filecontents*}          \documentclass{report}     \usepackage[backend=biber]{biblatex}     \addbibresource{\jobname.bib}     \begin{document}          First\footfullcite{test}, second\footfullcite{test} and third time.\footfullcite{test}          \end{document}      ![Example footnote](http://i.stack.imgur.com/xgcMq.png) I find this to look weird and wondered if something like this was possible: > 1,2,3 Test T. “Synthesis of Enantiopure Alcohols”. In: J. Org. Chem. 71.17 > (Aug. 2006), pp. 6333–6445. If the output in my minimal example is completely normal I am happy to leave it that way - I would just like to hear some opinions on this. **UPDATE:** I have done some further research on this and I reckoned it would be the simplest if a footnote citation occurred twice on a page it would get the same footnote.               First\footfullcite{test}, second\footfullcite{test} and third time.\footfullcite{test}      would give > First [1], second [1] and third.[1] **Conclusion:** My first proposal is very hard to achieve and unnecessary complicated. The solution using "ibid" solves this problem in a different but effective way. If one did not want to use "ibid", Audreys post solves the problem very nicely, too.


title: Smashoperator for the vertical space?

text: I would like to vertically smash a summation sign in a way that the line has a vertical space as if the summation sign wouldn't be there. To illustrate it please see the MWE. The space between the first and second line should be the same as the space between the third and fourth line. At the moment it looks like the second line doesn't belong to the first one. Note: I cannot write the last column into one line, because the second column will contain more text in the end and I have to break the last column into two or multiple lines. MWE:               \documentclass{scrbook}     \usepackage{amsmath}          \begin{document}     \begin{alignat}{3}             &   \sum_{m \in M}  x_m     && = 1      & \quad &   , \forall m \in M \colon a \neq b ;                     \notag  \\             &                                                                   &&              &               &   \phantom{,{}}   c \neq d                                                                \\             &                                                       x_m     && = 1      &               &   , \forall m \in M \colon e \neq f ;                     \notag  \\             &                                                                   &&              &               &   \phantom{,{}}   g \neq h                 \end{alignat}     \end{document}


title: Inserting graph from a software in Latex

text: I made a graph with Desmos.com. Which I want to insert in my `LaTeX` code, on the right side of these equations:               \documentclass[12pt,a4paper]{article}     \usepackage[a4paper, total={6in, 8in}]{geometry}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{fourier}     \usepackage{mathtools}     \usepackage{amsmath}     \usepackage[english]{babel}     \usepackage{graphicx}     \usepackage{marginnote}     \begin{document}     \underline {Chandrashekhar EOS (1935)} : \\     \begin{align*}     \overline \rho &= K ~\Big( \sinh ~t ~- ~t\Big)\\     \overline P &= \frac {1}{3} K ~ \Big(\sinh~t -~ 8~ \sinh \frac {1}{2} t  +~ 3t\Big)\\     K &= \frac {1}{4\pi}\\     \end {align*}     \end {document}      How can I label the curve on the graph as `P` and `T` and also insert it in my code ?


title: Divide an algorithm on two pages

text: \usepackage{algorithm}     \usepackage{algorithmic}     \begin{document}     \begin{algorithm}[H]     \caption{My algo}     \begin{algorithmic}[1]     \STATE instruction 1     \STATE instruction 2       ......................Many instructions     \end{algorithmic}      \end{algorithm}     \end{document}      My algorithm occupies an entire page, is that it is possible to divide it on two pages? Thank you so much.


title: datetime plot in pgfplot using gnuplot

text: I have a large data file with several columns wherein the first column is a date and time in the format, 'yyyy-mm-dd hh:MM' and the rest are numerical values of different variables. I often have several days of data, sampled at 1 second. This is why I want to use gnuplots instead of plotting it using TeX. The graphics option is another option I could pursue, but I prefer using gnuplots. I am trying to plot this data in gnuplot within `pgfplots`, but am having some trouble. For the sake of simplicity, consider this shortened data file (datafile.dat):               2012-06-01, 01:00, 1     2012-06-01, 02:00, 2     2012-06-01, 03:00, 4     2012-06-01, 04:00, 3     2012-06-02, 01:00, 5     2012-06-02, 02:00, 2     2012-06-02, 03:00, 1     2012-06-02, 04:00, 1      In gnuplot, I am able to plot this data using the following lines:               set xdata time       set timefmt '%Y-%m-%d, %H:%M'     set datafile sep ','     plot 'datafile.dat' u 1:3 w lines      I am now trying to plot the same data in pgfplots **using gnuplot** but I am not having any success. Is it possible to use the dateplot library in pgfplots with gnuplot? Hi Christian. Sure. Here is my TeX file:               \documentclass[border=5mm]{standalone}     \usepackage{tikz,pgfplots}     \pgfplotsset{compat=1.8}     \usepgfplotslibrary{dateplot}          \makeatletter     {     \catcode`\%=12     \catcode`\"=12      \xdef\pgf@gnuplot@head{set table \noexpand\pgf@plottablefile@quoted; set xdata  time; set timefmt "%Y-%m-%d, %H:%M"; set datafile sep ',';}     }     \makeatother          \begin{document}     \begin{tikzpicture}     \begin{axis} [width=21cm, height=14cm,     date coordinates in=x,     ]          \addplot gnuplot[raw gnuplot, id=testMe, mark=none] {     plot "datafile.dat" using ($1):($3) with lines;     };          \end{axis}     \end{tikzpicture}     \end{document}      Here is the generated gnuplot file:               set table "gnu_test.testMe.table"; set xdata time; set timefmt "%Y-%m-%d, %H:%M";   set datafile sep ',';     set format "%.7e";; plot "datafile.dat" using ($1):($3) with lines;       And here is the resulting gnuplot table:               # Curve 0 of 1, 8 points     # Curve title: ""datafile.dat" using ($1):($3)"     # x y type     "" 1.0000000e+000  i     "" 2.0000000e+000  i     "" 4.0000000e+000  i     "" 3.0000000e+000  i     "" 5.0000000e+000  i     "" 2.0000000e+000  i     "" 1.0000000e+000  i     "" 1.0000000e+000  i


title: Add some space around the headline in a beamer slide

text: How can I customise the headline of my slides in order to have some white space above and below the title of the frame? I guess I should change the template with the following instruction: `\setbeamertemplate{headline}` but how? Thanks in advance


title: Uppercase Accents

text: My name is Sebastián and I'm doing my thesis in LaTeX. The last part of my work is the cover, but I have a problem compiling it. I have some uppercase letters with accents in the cover, and I get the following error when I try to compile it:               ! Package inputenc Error: Unicode char \u8:�C not set up for use with LaTeX.      I think I need another encoding to do this, do you guys know one? Here is my preamble               \usepackage[spanish]{babel}      \usepackage[utf8]{inputenc}      \usepackage[T1]{fontenc}     \usepackage{amssymb}


title: IEEE references in alphabetical order or numerical order?

text: Thank you all for your time reading and replying to my question(s). I am really confused about two major issues. Issue One: I am writing an IEEE conference paper and I am trying to understand why the reference list comes out in alphabetical order according to (`\bibliographystyle{IEEEtranS}`) How to Use the IEEEtran LATEX Class. I have been all over the internet for 2 days now that IEEE ref. list should be numerically and not alphabetically ordered Guide for Initial Review. I have found that if I use (`\bibliographystyle{ieeetr}` instead of `\bibliographystyle{IEEEtranS}`) it moves all references in numerical order. Issue Two: Why the keywords in the (`\documentclass[conference, 10pt]{IEEEtran}`) appear as Index-Terms and not Keywords? Based on my research I have found that is a matter of preference to use Keywords instead of Index- Terms. The solution to this problem could be simple applying (`\renewcommand\IEEEkeywordsname{Keywords}`). But again I am just curious. If anyone could provide me with some guidance or a reference/bibliography to read upon I would be very appreciated.


title: Suppress part and chapter number in headings on LaTeX

text: I would like to have headings for sections and subsections in the body of the document, where the numbers in the heading show only the "section" or "subsection" level, and do not show the numbers for the part and chapter level at the beginning. So, for exapmle, instead of II.1.2.3., I just want 2.3. I found a threat for ConTeX for this issue, but no solution for LaTeX yet. This is the link: Compound/nested section numbers in ConTeXt: how to omit the top level? E.g. 1.2.1 --> 2.1


title: tcolorbox overlay app does not work

text: I'm trying to build this mwe taken from the tcolorbox manual p. 270 (I have simplified it a bit):               \documentclass{article}     \usepackage{tcolorbox}     \tcbuselibrary{skins}          \tcbset{frogbox/.style={enhanced,colback=green!10,colframe=green!65!black,     enlarge top by=5.5mm,overlay={\foreach \x in {2cm,3.5cm} {     \begin{scope}[shift={([xshift=\x]frame.north west)}]     \path[draw=green!65!black,fill=green!10,line width=1mm] (0,0) arc (0:180:5mm);     \path[fill=black] (-0.2,0) arc (0:180:1mm);     \end{scope}}}]}}          \tcbset{app/.style={overlay app={%     \draw(frame.north)--(frame.south)}}}          \begin{document}     \begin{tcolorbox}[frogbox,title=My title]     This is a \textbf{tcolorbox}.     \end{tcolorbox}          \begin{tcolorbox}[frogbox,app,title=My title]     This is a \textbf{tcolorbox}.\par     Here, we apply a second overlay.     \end{tcolorbox}     \end{document}      The build fails with the following error: > ! Package pgfkeys Error: I do not know the key '/tcb/overlay app', to which > you passed '\draw (frame.north)--(frame.south)', and I am going to ignore > it. Perhaps you misspelled it. I'm using TL14 pretest, everything up-to-date. Is this a bug somewhere?


title: Updating packages in TeXLive 2011

text: I have TeXLive 2011 distribution on my Windows 7. I haven't updated it before. I downloaded it as an **iso** file. Anyway, I tried to use the **mdframed** package in an example document like below:               \documentclass{article}          \usepackage{mdframed}     \usepackage{xcolor}     \surroundwithmdframed[         hidealllines=true,         backgroundcolor=black!20,         skipbelow=\baselineskip,         skipabove=\baselineskip     ]{equation}          \begin{document}     Text     \begin{equation}     1+1=2     \end{equation}     Text     \end{document}      But I got the message:               ! Undefined control sequence.       As I've asked it means possibly my `mdframed` package is not updated.   What should I do? I need to use the `mdframed` package.


title: How to use "LaTeX in Word"?

text: I need help using LaTeX in Word. This SourceForge project seems fabulous but I do not know how to use it. According to the guide,               To enter an inline equation, simply move the cursor to the point where you would      like to insert the equation and type alt-l. This will bring-up the LaTeX Entry GUI.      I try typing `ALT-L` in lower case and no GUI shows up. Also, it would be great if someone can show me how to setup the server on my own computer. Apparently, the lack of documentations is the sore of this project.


title: Using TikZ with DokuWiki

text: I am using DokuWiki to write my notes. The one thing that I am missing is the ability to plot. I would like to use TikZ to fill this need, but I have been unable to get exactly what I want. I am using the Latex plugin for Dokuwiki. The preamble used by the plugin is:               \documentclass[11pt]{article}          \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{color}     \usepackage{tikz}          \pagestyle{empty}          \begin{document}          \definecolor{MyColour}{rgb}{1.00,0.50,0.00}          {\color{MyColour}      I tried using this example:               \begin{tikzpicture}[scale=2]     \shade[top color=blue,bottom color=gray!50]        (0,0) parabola (1.5,2.25) |- (0,0);     \draw (1.05cm,2pt) node[above]        {$\displaystyle\int_0^{3/2} \!\!x^2\mathrm{d}x$};          \draw[style=help lines] (0,0) grid (3.9,3.9)        [step=0.25cm]      (1,2) grid +(1,1);          \draw[->] (-0.2,0) -- (4,0) node[right] {$x$};     \draw[->] (0,-0.2) -- (0,4) node[above] {$f(x)$};          \foreach \x/\xtext in {1/1, 1.5/1\frac{1}{2}, 2/2, 3/3}        \draw[shift={(\x,0)}] (0pt,2pt) -- (0pt,-2pt) node[below] {$\xtext$};          \foreach \y/\ytext in {1/1, 2/2, 2.25/2\frac{1}{4}, 3/3}        \draw[shift={(0,\y)}] (2pt,0pt) -- (-2pt,0pt) node[left] {$\ytext$};     \draw (-.5,.25) parabola bend (0,0) (2,4) node[below right] {$x^2$};     \end{tikzpicture}      Unfortunately, the image is produced, but it is tiny! The content of the is cropped such that the majority of the image is missing I have no idea how to fix this and I have been unable to get the size to change at all. Any help would be appreciated.


title: captions overlap figures in *.pdf file after dvi2pdf (while appearing normal in *.dvi file)

text: For some reason, figure captions that appear underneath the figure in the *.dvi file, overlap the figure in the *.pdf file generated using div2pdf. Any idea why this happens? Thanks, Ofer. ![enter image description here](http://i.stack.imgur.com/HJvCG.png) ![enter image description here](http://i.stack.imgur.com/f33zI.png)


title: Text in merged Table

text: I don't know why my text in the top of merged column will always be duplicated. `\textbf{A}` in line 6 show in the table will be AA which I cannot figure out why. Thank you for help.               \begin{figure}[!htbp]     \centering         \subfloat[$A\land B$ (AND)]{\label{fig:fAndOp}             \begin{tabular}{|c|c|c|c|c|}                 \hhline {~~|---}                 \multicolumn{1}{c}{} &  &  \multicolumn{3}{c|}{ \textbf{A}} \tabularnewline                 \hhline {~~|---}                 \multicolumn{1}{c}{} &\Large$ \land  $  & \cellcolor[gray]{0.9} \textbf{0} & \cellcolor[gray]{0.9} \textbf{1} & \cellcolor[gray]{0.9} \textbf{N}\tabularnewline                 \hline                 \multirow{3}{*}{} & \cellcolor[gray]{0.9}\textbf{0} & 0 & 0 & N\tabularnewline                 \hhline {|~|----}                  \textbf{B}& \cellcolor[gray]{0.9} \textbf{1} & 0 & 1 & N\tabularnewline                 \hhline {|~|----}                  & \cellcolor[gray]{0.9} \textbf{N} & N & N & N\tabularnewline                 \hline             \end{tabular}         }     \caption{Primitive functions in three-value logic }     \label{fig:fOperators}     \end{figure}


title: Using arara to compile powerdot twice

text: I want to compile my powerdot presentation twice -- once with, once without notes. I am trying to achieve this using arara with something like:               % arara: latex { set \powerdotmode=slides here }     % arara: latex { set \powerdotmode=slides here }     % arara: dvips     % arara: ps2pdf     % arara: rename { postfix: slides }     % arara: latex { set \powerdotmode=slidesnotes here }     % arara: latex { set \powerdotmode=slidesnotes here }     % arara: dvips     % arara: ps2pdf     % arara: rename { postfix: notes }          \documentclass[mode=present,display=\powerdotmode]{powerdot}      Can this be done at all using latex/arara?


title: \newrobustcmd not expandable as key-value?

text: I do some TeX experiments with 'postponed' content, writing it to some file to be included later on (not necessarily at end, but most time it would be appropriate to place it there) I defined some writing command `\WriteSomeContent` with optional parameters, again using the `xkeyval` interface. All is a test so far, as such I write a `\pdfbookmark` and a bookmark color to the postponed file. If there is no explicitly stated `bookmarkcolor=colorname`, it should default to `\BookmarkDefaultColor`, which is a command created by `\newcommand`. Everything works as long one does not change from               \newcommand{\BookmarkDefaultColor}{red}%      to               \newrobustcmd{\BookmarkDefaultColor}{red}%      This leads to a statement `\BookmarkDefaultColor` with a final whitespace character, confusing `color=\BookmarkDefaultColor` and stopping the compilation. Is this a bug of `\newrobustcmd` in conjunction with keyvalue expansion or some strange non-gobbling of a whitespace character (which should not be there at all, in my opinion)??? `**postponed.tex**`               \documentclass{book}     \usepackage{etoolbox}     \usepackage{xcolor}     \usepackage{xkeyval}     \usepackage{blindtext}%          \usepackage[bookmarksopen=true]{hyperref}     \usepackage{bookmark}               \newcommand{\BookmarkDefaultColor}{red}%     %\newrobustcmd{\BookmarkDefaultColor}{red}%               \makeatletter     \define@key{FamilyA}{bookmarkcolor}[\BookmarkDefaultColor]{%     \def\KVMacroColor{#1}%     }%               \makeatother          \presetkeys{FamilyA}{bookmarkcolor=\BookmarkDefaultColor}{}%                    \newcommand{\WriteSomeContent}[4][]{%     \setkeys{FamilyA}{#1}%     \immediate\write\myhandle{%     \string#4% Content first     \string\phantomsection%     \string\pdfbookmark[1,color=\KVMacroColor]{#2}{#3}% Some bookmark     }% End of \immediate\write     }% End of command                    \newwrite\myhandle%               \AtBeginDocument{%     \immediate\openout\myhandle=\jobname.post%     }%          \AtEndDocument{%     \immediate\closeout\myhandle%     \IfFileExists{\jobname.post}{\input{\jobname.post}}{Sorry, no file there}%     }%               \begin{document}          \chapter{First}          \WriteSomeContent[bookmarkcolor={cyan}]{Entry 3}{entry::number::3}{\expandafter\unexpanded{\chapter{This is the 3rd one!}}}%          \WriteSomeContent{Entry 1}{entry::number::1}{\expandafter{\unexpanded{\textbf{\textcolor{blue}{\blindtext}}}%      }% End of unexpanded     }%          \WriteSomeContent[bookmarkcolor={blue}]{Entry 2}{entry::number::2}{\expandafter{\unexpanded{%     \vspace{\baselineskip}%          \noindent\large\textbf{And now for something completely different:}\normalsize\          \vspace{\baselineskip}     \noindent     \textbf{\textcolor{brown}{%     \blindtext}}}}}%          \chapter{Second}%                    \end{document}      Temporarily written **`postponed.post`**               \expandafter\chapter {This is the 3rd one!}\phantomsection\pdfbookmark[1,color=cyan]{Entry 3}{entry::number::3}     \expandafter{\textbf {\textcolor {blue}{\blindtext }}}\phantomsection\pdfbookmark[1,color=\BookmarkDefaultColor ]{Entry 1}{entry::number::1}     \expandafter{\vspace {\baselineskip }\par \noindent \large \textbf {And now for something completely different:}\normalsize \^^M\par \vspace {\baselineskip } \noindent \textbf {\textcolor {brown}{\blindtext }}}\phantomsection\pdfbookmark[1,color=blue]{Entry 2}{entry::number::2}      And some output of the programme: Please do not frown on `chapter 3` occurring before chapter 1` etc. All is done on purpose and belongs to a more widespread framework, it will be _cured_ at the right time. ![enter image description here](http://i.stack.imgur.com/lUsyX.jpg)


title: Remove space in Emails

text: In a paper I need to remove spaces between two emails of an author with two affiliations. The code is below:               \documentclass[10pt,twocolumn,letterpaper]{article}      \begin{document}     \title{Title}     Author Name\\     Affiliation1\\     Affiliation2\\     City/Country\\     {\tt\scriptsize mail1} \\ % here there is almost a space of a full line     {\tt\scriptsize mail2}     \maketitle     \end{document}      I have tried to put a `\vspace{-1}` after `mail1} \\`, but did not work. Also I tried to put both emails in same `{}` environment but could not find a way to put line break inside it. Any suggestions?


title: is possible to use a part of the margins with figure?, as with tabular

text: is posible to use a part of the margins with FIGURE?, as in this example with tabular ![enter image description here](http://i.stack.imgur.com/bY1Rs.png)               \documentclass{article}     \usepackage{subcaption,mwe}     \usepackage{graphicx}     \usepackage{mathtools,amsmath,amssymb}     \usepackage{graphicx}     \usepackage{subcaption}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[spanish]{cleveref}     \usepackage[spanish]{babel}     \usepackage{incgraph}          \begin{document}          \renewcommand{\listtablename}{Índice de tablas}     \renewcommand{\tablename}{Tabla}     \crefname{table}{tabla}{tablas}          jdhjfdks fjkf hjdshjds hfj kdhjk h dj fhdj  k  fhhfjdfd dsj fl k d sjf kd j fljkasdfk j sd alk  flka s j f kla sjf lkd sj fk l sajf kl dsj fl k d sjf kd j fljkasdfk j sd alk  flka s j f kla sjf lkd sj fk l sajf kl dsj fl k d sjf kd j fl\\     %\includegraphics[width=1\linewidth]{TS-Applicationss.eps}     After a table we have.. THIS\\     %\setstretch{1}     \noindent          \begin{tabular}{|c|c|c|}           \hline           % after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...           \includegraphics[width=50mm]{example-image-a.eps} &           \includegraphics[width=50mm]{example-image-a.eps} &           \includegraphics[width=50mm]{example-image-a.eps}   \\           {\small Way 1}& {\small Way 2} & {\small Way 3}\\           \hline           \includegraphics[width=50mm]{example-image-a.eps} & \includegraphics[width=50mm]{example-image-a.eps} &\\           {\small Forma 4}& {\small Forma 5} &\\           \hline     \end{tabular}\\               \begin{figure}[h!]     \centering     \subcaptionbox{Forma 1\label{example-image-a.eps}}     {\includegraphics[width=.32\linewidth]{example-image-a.eps}}     \subcaptionbox{Forma 2\label{example-image-a.eps}}     {\includegraphics[width=.32\linewidth]{d32-s100-i32-t8-opvec2.eps}}     \subcaptionbox{Forma 3\label{example-image-b.eps}}     {\includegraphics[width=.32\linewidth]{d32-s100-i32-t8-opvec3.eps}}     %     \subcaptionbox{Forma 4\label{example-image-a.eps}}     {\includegraphics[width=.32\linewidth]{d32-s100-i32-t8-opvec4.eps}}     \subcaptionbox{Forma 5\label{example-image-a.eps}}     {\includegraphics[width=.32\linewidth]{d32-s100-i2-t1-opvec5.eps}}     %\subcaptionbox{$r_i=0.01, \forall i, m=9$\label{ES-P-todo-0_01-m9.eps}}     %{\includegraphics[width=.31\linewidth]{ES-P-todo-0_01-m9.eps}}     \caption{Evolución de múltiples simulaciones con diferenes formas de generar $N(x_k)$.}\label{BT-A-1-evosegunformadevecindario}     \end{figure}     AFTER The big BIG               \end{document}


title: tikz unwanted space between nodes

text: The following MWE illustrates the problem: between connectected fill areas is a small gap, where the background will be displayed (see the zoomed in picture with the red marks)               \documentclass{scrartcl}     \usepackage{tikz}     \usetikzlibrary{positioning}     \begin{document}     \pagecolor{green}     \begin{tikzpicture}[node distance=1mm and 6mm]       \node (b1) [text width=10mm, text height=10mm,fill=white]{};       \node (b2) [text width=10mm, text height=10mm,fill=black,right=of b1]{};       \fill[black] (b1.north east) -- (b2.north west) -- (b2.south west) -- (b1.south east) -- cycle;      \end{tikzpicture}     \end{document}      What can I do to avoid the background image between the filled areas? ![enter image description here](http://i.stack.imgur.com/OMCKv.png)


title: can't close table

text: I can't figure out why the following code produces the table as you can see in my attachment:                \centering               \begin{tabular}{|m{3.5cm}|m{10.0cm}|m{2.5cm}|}               \hline               \centering               \includegraphics[height=1.59cm,width=3.0cm]{img/logo} &               \centering               \Large{PLANO GERAL DE \\ PROTEÇÃO RADIOLÓGICA} \\               \tiny{SPR F.02}&               \centering               \scriptsize{Pág. \thepage\ de \pageref{LastPage}\\               Data: 26/07/2013\\               Rev. 0}\tabularnewline               \end{tabular}%      As you can see, the botton line doesn't close the table properly. ![table wont close](http://i.stack.imgur.com/8Zb7i.png)


title: shrinking tables for presentations

text: What is the most convenient way to shrink a table to fit in a beamer slide?


title: How do I center text in a page heading?

text: I'm using `\markright` to create a page heading. I'm having trouble centering some text in this heading, and I'd like to know how to do this. Here's my current setup:               \documentclass{article}          \newcommand{\TitleString}{This Is The Title}          \begin{document}          \pagestyle{myheadings}          \markright{\TitleString \hfill Matt Groff \hfill}          Title and copyright are above.          \end{document}      I use `\hfill` to fill in the space so that my name is close to centered, but for large titles it's way off. Is there a way to fix this? I'd like my name to be completely centered.


title: Matrix decomposition dimensions diagram

text: What's the easiest way of making diagrams depicting matrix dimensions such as the following? ![enter image description here](http://i.stack.imgur.com/gl73W.png) I can do it with simple subscripts, but I like the visual effect that these diagrams give.


title: amsmath undefined control sequence

text: I am using `\documentclass{report}` and `\usepackage{amsmath}`. My problem is relation symbols such as `\backsim \lesssim \gnsim` are not working. Everytime I try to use such symbols error comes `!Undefined control sequence.` Please guide.


title: Accessing metadata for specific letters

text: * Do any font types store metadata about each letter?   * Or does Unicode provide any linguistic information about each symbol?   * Can this metadata be accessed in XeTeX?


title: Why do I get the error "\caption outside float" with the algorithm / algorithmic package?

text: I have an algorithm in my document It looks like this:               \begin{algorithm}         \caption{Merge Digest: Insert\label{mergeDigestInsert}}             \begin{algorithmic}[1]                 [....algorithm is here]             \end{algorithmic}       \end{algorithm}      When I compile the document I get this error:               Package caption Error: \caption outside float.      I tried putting the caption inside of the algorithmic block, and I tried to put it at the end. I also read somewhere that I need to declare algorithm as a caption type like this:               \DeclareCaptionType{algorithm}      but when I do that I get this error:               LaTeX Error: ./doc.tex:21 LaTeX Error: Command \algorithm already defined.      I appreciate any help that can be given on this.


title: Image quality using PDFLaTeX

text: I've got some PNG images within my LaTeX document. The quality of the image files is sufficient and the result using LaTeX and viewing the resulting DVI file is quite what I expect - looks good. But I would need such quality of the images in my PDF files as well. But unfortunately when using PDFLaTeX the images are surprisingly worse quality in the resulting PDF file. How can the quality for the resulting PDF file be improved? I think there's happening some kind of rasterization which makes the images showing up in bad quality. (I tried using `dvi2pdf` or `ps2pdf` but the quality of the final PDF was the same. Additionally I would like to have a PDF ToC and the `hyperref-pdf` features when using PDFLaTeX) Searching the web I found the following but I'm not quite sure if this helps and were to set the mentioned parameters on my *buntu   http://www.mackichan.com/index.html?techtalk/581.htm~mainFrame


title: Multiple documents, multiple table of contents, in one file

text: To simplify the management of multiple books, I put all of them together into them together into one file, then used `\cleardoublepage`, `\setcounter{page}{1}` and a new `titlepage` environment to specify the beginning of the second document.               \documentclass{book}     \begin{document}         \begin{titlepage}             This is the first title page.         \end{titlepage}         \tableofcontents         \chapter{This chapter should appear in the first title page}              \cleardoublepage         \setcounter{page}{1}         \begin{titlepage}             This is the second title page.         \end{titlepage}         \tableofcontents         \chapter{This chapter should appear in the first second page}         \chapter{This chapter should also appear in the first second page}     \end{document}      However, the first `tableofcontents` loads displays all chapters and the second `tableofcontents` shows no chapters.   * Is `\cleardoublepage` and `\setcounter{page}{1}` the proper way to reset the document?   * How can I have more than one table of contents within the same file?


title: How to pluralize an acronym which ends in 'S' correctly?

text: When using the `acronym` package, how can you correctly pluralize an acronym which ends on 'S'? Take the acronym: _OS - operating system_ It should be pluralized as _OS's_ , but is pluralized as _OSs_ when using `\acp`.


title: How to use a font installed from `getnonfreefonts`?

text: One sometimes cannot choose the font one has to write with. So I'm having troubles with `uarial`'s installation. From the very begining, the following code given in this accepted answer, doesn't work for me.               \documentclass[11pt]{article}     \usepackage[T1]{fontenc}     \usepackage[scaled]{uarial}     \renewcommand*\familydefault{\sfdefault}          \begin{document}          \begin{center}     {\fontsize{14}{17}\selectfont \textbf{Should be Bold and 14pt}}\par     {\fontsize{14}{17}\selectfont Shouldn't be Bold but 14pt}\par     {\Large Shouldn't be Bold but 14pt}     \end{center}          \section{Section Heading}\label{sec:background}     Text here at 11pt          \end{document}      After compiling I get a simple                [PDFLaTeX] finished with exit code 1      [PDFLaTeX] 0 errors, 0 warnings, 0 badboxes      and, without the use of kile, by typing `pdflatex name_of_file.tex`, I got:               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)     restricted \write18 enabled.     entering extended mode     (./name_of_my_document.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 2 languages loaded.     (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo))     (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty     (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def))     (/usr/local/share/texmf/tex/latex/ua1/uarial.sty     (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty))     (./name_of_my_document.aux) (/usr/local/share/texmf/tex/latex/ua1/t1ua1.fd)     [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]     (./name_of_my_document.aux)     kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+24/600 --dpi 624 ua1r8r     mktexpk: don't know how to create bitmap font for ua1r8r.     mktexpk: perhaps ua1r8r is missing from the map file.     kpathsea: Appending font creation commands to missfont.log.      )     !pdfTeX error: /usr/bin/pdflatex (file ua1r8r): Font ua1r8r at 624 not found      ==> Fatal error occurred, no output PDF file produced!      but generates _no PDF_. If I remove the `\renewcommand`-line and clean up the body of the document, typing only a pair of words, like               \documentclass[11pt]{article}     \usepackage[T1]{fontenc}     \usepackage{uarial}          \begin{document}     Shouldn't this be arial? it isn't.     \end{document}      that `finished with exit code 1` dissappears and I get a PDF file, but with no arial. What am I making so wrong? How I installed that font, is described in this question.


title: How to display filenames with underscores.

text: The following latex code uses fancyvrb VerbatimOut and VerbatimInput environment to write out and display code. The idea is to maintain only a latex file which contains code and documentation and that requires no additional literate programming software (such as noweb), but only latex. It works fine for filenames without underscores (in the example: "createx.m"), but the code fails otherwise (e.g. "create_x.m"). Any suggestions how to fix this? Thanks!               \documentclass{article}     \usepackage{upquote}      % to type set code properly for copy and                               % pasting from the PDF     \usepackage{fancyvrb}     % to write out verbatim stuff     \newcommand{\fname}{}     % for code environment to write out the code     \newenvironment{code}[1]{%       \renewcommand{\fname}{#1}       \VerbatimOut{\fname}}{%       \endVerbatimOut       %\vspace*{-1em}       \raggedright{\emph{\fname}}       \VerbatimInput{\fname}}     \begin{document}     The code snippets are in Matlab which is not relevant to the problem.     \begin{code}{createx.m}       randn('state', 0);       rand('state', 0);       x = double(imread('~/lena.png'));     \end{code}     More text to see how much space is before and after the code snipppet.     \end{document}      Additional info: I did play around with catcodes but the difficulty is that the filename with the underscore is passed as a parameter and is expanded in the line "\raggedright{\emph{\fname}}". If I omit that line the code works also for underscores. However, the point of the "newenvironment" is to display the filename as well.


title: Labeling Species of a Chemical Reaction

text: My code is:               \documentclass[12pt,letterpaper]{report}     \usepackage{blindtext}     \usepackage[utf8]{inputenc}     \usepackage[margin=1in]{geometry}     \usepackage{titlesec}          \setcounter{secnumdepth}{5}          \titleformat{\chapter}[display]     {\filcenter\normalfont\bfseries}     {\MakeUppercase{\chaptertitlename}\ \thechapter}     {0pt}     {}     \titlespacing{\chapter}{0pt}{-24pt}{20pt}     \titleformat{\section}     {\normalfont\normalsize\bfseries}{\thesection}{12pt}{}     \titlespacing{\section}{0pt}{0pt}{0pt}     \titleformat{\subsection}     {\normalfont\normalsize\bfseries}{\thesubsection}{12pt}{}     \titlespacing{\subsection}{0pt}{0pt}{0pt}     \titleformat{\subsubsection}     {\normalfont\normalsize\bfseries}{\thesubsubsection}{12pt}{}     \titlespacing{\subsubsection}{0pt}{0pt}{0pt}          \usepackage{indentfirst}     \usepackage{parskip}     \setlength{\parindent}{.5in}          \usepackage{setspace}     \renewcommand{\baselinestretch}{1.75}           \usepackage{natbib}     \usepackage{chemfig,chemmacros}          \begin{document}               \begin{center}     \schemestart     \chemfig{CH_4}\+\chemfig{Cl_2}     \arrow{->[\footnotesize\chemfig{440\celsius}]}     \chemfig{CH_4}\+\chemfig{CH_3Cl}\+\chemfig{CH_2Cl_2}     \+\chemfig{CHCl_3}\+\chemfig{CCl_4}\     \schemestop     \end{center}     \end{document}      I wanted to produce this: ![enter image description here](http://i.stack.imgur.com/NDiBF.jpg)


title: Question about enumitem, suspend/resume enumeration, last item of list, nested list

text: How do I suspend / resume an item of a list, multiple levels, if it is the last item of the list?               \documentclass{article}          \usepackage{enumitem}          \begin{document}     \begin{enumerate}         \item first level         \begin{enumerate}             \item second level             \begin{enumerate}                 \item third level                 \begin{enumerate}                     \item fourth level                          Text outside of enumerate                 \end{enumerate}             \end{enumerate}         \end{enumerate}     \end{enumerate}     \end{document}      Specifically, how do I move "Text outside of enumerate" outside one level (equal to the third level), outside two levels (equal to the second level), outside three levels (equal to the first level)? I am unable to simply enclose "Text outside of enumerate" inside a `\end{enumerate}` and `\begin{enumerate}[resume]` because there are issues with starting an `enumerate` environment and then immediately ending it without any items. I have also investigated the usage of `\item[]`. If I try using it at the end of the list, it appears a blank vertical line is produced, similar to `\phantom` but with a vertical blank line.


title: Create a Function that Generates a Title Page

text: Suppose you have a title page layout that you like and want to use it for many different projects. Thus the only change you will make to it will be the project name, subtitle, date, author, ... etc How would I create a function that generates a title page layout from some variables and then inputs it into my project file? Thanks!!


title: TikZ: multiple decorations on a path.

text: I would like to draw a squiggly line with an arrow somewhere in the middle of it. TikZ has a pathmorphing decoration that draws a squiggly line and a markings decoration to place an arrow tip. So a solution would be to use them together:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{decorations,decorations.pathmorphing,decorations.markings}     \begin{document}          \begin{tikzpicture}      \draw[              decoration={snake},              decorate,              postaction={decoration={markings,mark=at position 0.6 with {\arrow{>}}},decorate}          ]             (0,0) -- (2,0);     \end{tikzpicture}          \end{document}      Unfortunately this does not work and results in               ! Dimension too large.     <to be read again>                         \relax      l.11         (0,0) -- (2,0);      I suspect there is an infinite recursion going on somewhere. Is there a workaround? If not, is there a different simple solution to the problem? (Note: This is probably related to my previous question “Applying a postaction to every path in TikZ”)


title: What LaTeX packages are available for ISO quality system documentation?

text: I wonder if there are any use cases of TeX/LaTeX for ISO quality system documentation. I understand that the basic classes would suffice for logical document structuring, but I'm just wondering if someone could have written a class or package for such an application. **UPDATE:**   I am looking into something more like a document management system integrated with LaTeX. _What aspect of document management am I looking at, for example?_   Quality systems have **_a lot_** of documents that cross-reference each other. For example, **Q01 - Quality Manual** and a five dozen other documents mention **T01 - Test Procedure A** somewhere in the body text and also in its References section. If, sometime in the future, **T01 - Test Procedure A** changes its title to **T01 - Steps In Performing Procedure A** , obviously it will be tedious work to look through the other documents that reference **T01**. Of course, this might require re-compiling the other documents, but that's surely better than wading through them one by one.


title: How can one make a table without borders?

text: How can I make a table without borders? Thanks!


title: LaTeX: Align first table line with \item contents.

text: Consider this example:               \begin{enumerate}         \item Blablabla bla bla bla.             \begin{tabular}{l}                 Lorem ipsum dolor sit amet.\\                 Consectetur adipiscing elit.\\                 Donec eu ante non mi sagittis molestie.\\             \end{tabular}         \item Next question     \end{enumerate}      LaTeX will vertically center the table, which looks pretty weird. It basically looks like this:                                         Lorem ipsum dolor sit amet.     1. Blablabla bla bla bla. Consectetur adipiscing elit.                               Donec eu ante non mi sagittis molestie.      How can I manage for the consecutive lignes to line up under the first one (with the same margin)? Something which would look like this:               1. Blablabla bla bla bla. Lorem ipsum dolor sit amet.                               Consectetur adipiscing elit.                               Donec eu ante non mi sagittis molestie.      Any ideas? Thanks!


title: Incompatibilities between KOMA-Script and titlesec

text: This is a complementary question to About memoir and titlesec incompatibility. The `titlesec` manual states (p. 2) that the package > [...] works with the standard classes and with many others, including the > AMS ones [...] Unfortunately, it is not compatible with `memoir`[...] The manual does not mention the `KOMA-Script` classes. So, can `titlesec` and `KOMA-Script` be used together without problems, or are there some incompatibilities (or at least situations where special care must be taken)?


title: Key that takes a list of other keys as argument and sets them

text: I would like to define a key, let's call it `mystyle`, which has several subkeys, like `mystyle/A` and `mystyle/B`, and I'd like to be able to choose which of these subkeys to set by calling `mystyle=A`, `mystyle=B`, or `mystyle={A,B}`. That's easy enough if I need to set just one of the subkeys, it can be accomplished using something like this:               \tikzset{         mystyle/A/.style=draw,         mystyle/B/.style={fill=yellow},         mystyle/.style={             mystyle/#1         }     }      That allows me to say `\tikz \node [mystyle={B}] {Test};`, and the node will be filled in yellow. However, if I try `\tikz \node [mystyle={A,B}] {Test};`, I get the error `I do not know the key '/tikz/B'`. I tried defining the keys as follows instead               \tikzset{         mystyle/A/.style=draw,         mystyle/B/.style={fill=yellow},         mystyle/.style={             mystyle/.cd,             #1         }     }      However, this doesn't work, because while the change of key directory (`mystyle/.cd`) fixed the problem of pgfkeys not being able to find `mystyle/B`, I now get the following error message: `I do not know the key '/tikz/mystyle/draw'`. What to do? MWE:               \documentclass{article}     \usepackage{tikz}     \begin{document}     \tikzset{         mystyle/A/.style=draw,         mystyle/B/.style={fill=yellow},         mystyle/.style={             mystyle/.cd,             #1         }     }          \tikz \node [mystyle={A,B}] {Test};     \end{document}


title: Automatic scaling of tikz images in floatrow

text: I have multiple images in a row (using floatrow) and would like to scale them, that they fill the row, while their top and bottom edges are flush to each other, and the aspect ratio of the images them self is kept. Note that I have arbitray aspect ratios. Poking arround I found that I could get the images sizes and based on that do some calculations. However doing this from hand seems tiresome (include the image in a savebox, get the widths, run them through formulas, insert them with scalefactors), and automateable. Is there a package to do so? (I am using floatrow, to place images side by side)


title: Brownian motion with drift

text: I have a code for the Brownian motion and it indicates three paths which initially started at point 0. My goal is to increase the initial starting point from 0.0 to e.g. 0.6. This is achieved by integrating +0.6 in the `\addplot` command. At the end I aim to have one path that remains in the positive domain, although the path is allowed taking negative values, i.e., in total it should not decrease below 0. However, when I try to delete two paths and hence keep only one that starts at 0.6 and then steadily grows, it automatically starts at 0.0 again. Can somebody help me with that problem? P.S. I would like not to change anything in the preamble, since I need to illustrate 2 figures in one document, and the first figure will have to refer to the preamble as well. The second figure should be the one that consists of one path starting at 0.6. Thank you very much in advance, I appreciate your help! Here is the code:               \documentclass[12pt, a4paper]{article}     \usepackage{pgfplots, pgfplotstable}     \usepackage[font=small,labelfont=bf,labelsep=colon]{caption}     \pgfmathsetseed{3}     \pgfplotstablenew[         create on use/brown1/.style={             create col/expr accum={\pgfmathaccuma + 0.1*rand}{0}         },         create on use/brown2/.style={             create col/expr accum={\pgfmathaccuma + 0.1*rand}{0}         },         create on use/brown3/.style={             create col/expr accum={\pgfmathaccuma + 0.1*rand}{0}         },         columns={brown1,brown2,brown3}     ]     {700}     \loadedtable     \begin{document}     \begin{figure}[H]     \caption{Brownian motion}     \centering      \begin{tikzpicture}     \begin{axis}[     legend pos=outer north east,     axis y line=left,      axis x line=middle,     xlabel= {\scriptsize Time ($t$)},     ylabel = {\scriptsize Value ($W_{t}$)},     ylabel style = {yshift=-12pt},     xticklabels={,,},     yticklabels={,,},     tick style={draw=none},     line join=bevel,     no markers,     table/x expr={\coordindex/100},     xmin=0,     enlarge x limits=false     ]     \addplot table [y expr={max(\thisrow{brown1}+0.6,-5.0)}] {\loadedtable};     \addplot table [y expr={min(\thisrow{brown2}+0.6,5.0)}] {\loadedtable};     \addplot table [y expr=\thisrow{brown3}+0.6] {\loadedtable};     \draw (axis cs:5,5) (axis cs:5,-5);     \legend {{\footnotesize 1st path}, {\footnotesize 2nd path}, {\footnotesize n-th path}};     \end{axis}     \end{tikzpicture}     \end{figure}     \end{document}      ![output][1] ADDITION: this is the code that combines both figures:               \documentclass[12pt, a4paper]{article}     \usepackage{pgfplots, pgfplotstable}     \usepackage[font=small,labelfont=bf,labelsep=colon]{caption}     \makeatletter     \pgfplotsset{         table/.cd,         brownian motion/.style={             create on use/brown/.style={                 create col/expr accum={                     (\coordindex>0)*(                         max(                             min(                                 rand*0.1+\pgfmathaccuma,                                 \pgfplots@brownian@max                             ),                             \pgfplots@brownian@min                         )                     ) + (\coordindex<1)*\pgfplots@brownian@start                 }{\pgfplots@brownian@start}             },             y=brown, x expr={\coordindex},             brownian motion/.cd,             #1,             /.cd         },         brownian motion/.cd,                 min/.store in=\pgfplots@brownian@min,             min=-inf,                 max/.store in=\pgfplots@brownian@max,                 max=inf,                 start/.store in=\pgfplots@brownian@start,             start=0     }     \makeatother     \pgfmathsetseed{5}     \pgfplotstablenew[         create on use/brown1/.style={             create col/expr accum={\pgfmathaccuma + 0.1*rand}{0}         },         create on use/brown2/.style={             create col/expr accum={\pgfmathaccuma + 0.1*rand}{0}         },         create on use/brown3/.style={             create col/expr accum={\pgfmathaccuma + 0.1*rand}{0}         },         columns={brown1,brown2,brown3}     ]     {700}     \loadedtable     \begin{document}     \begin{figure}[H]     \caption{Brownian motion}     \centering      \begin{tikzpicture}     \begin{axis}[     legend pos=outer north east,     axis y line=left,      axis x line=middle,     xlabel= {\scriptsize Time ($t$)},     ylabel = {\scriptsize Value ($W_{t}$)},     ylabel style = {yshift=-12pt},     xticklabels={,,},     yticklabels={,,},     tick style={draw=none},     line join=bevel,     no markers,     table/x expr={\coordindex/100},     xmin=0,     enlarge x limits=false     ]     \addplot table [y expr={max(\thisrow{brown1},-5.0)}] {\loadedtable};     \addplot table [y expr={min(\thisrow{brown2},5.0)}] {\loadedtable};     \addplot table [y expr=\thisrow{brown3}] {\loadedtable};     \draw (axis cs:5,5) (axis cs:5,-5);     \legend {{\footnotesize 1st path}, {\footnotesize 2nd path}, {\footnotesize n-th path}};     \end{axis}     \end{tikzpicture}     \end{figure}     here is some text here is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some texthere is some      \begin{figure}[H]     \caption{Brownian motion}     \centering      \begin{tikzpicture}     \begin{axis}[     legend pos=outer north east,     axis y line=left,      axis x line=middle,     xlabel= {\scriptsize Time ($t$)},     ylabel = {\scriptsize Value ($W_{t}$)},     ylabel style = {yshift=-12pt},     xticklabels={,,},     yticklabels={,,},     tick style={draw=none},     line join=bevel,     no markers,     table/x expr={\coordindex/100},     xmin=0,     enlarge x limits=false     ]     \addplot table [brownian motion={start=0.3, min=0}] {\loadedtable};     \draw (axis cs:5,5) (axis cs:5,-5);     \end{axis}     \end{tikzpicture}     \end{figure}     \end{document}       The result is not very satisfactory :(


title: TikZ: Automating a process with a for loop instead of coding in each piece

text: I am positive I could create the incoming hyperbolas and then the deflections by the planet by hand for each one, but how the image is set up conjures up the felling this could be done through automation of a loop.               \documentclass[convert = false, tikz]{standalone}     \usetikzlibrary{arrows}     \tikzset{       partial circle/.style args = {#1:#2:#3}{         insert path = {+ (#1:#3) arc (#1:#2:#3)}       }     }     \begin{document}     \begin{tikzpicture}       \def\angle{60}       \def\a{1}       \def\circradius{.3}       \pgfmathsetmacro{\b}{\a / tan(\angle)}            \begin{scope}[rotate = {180 - \angle}, shift = {(0, -\a - \circradius)}]         \draw plot[red, domain = 0:2.5, samples = 100]         ({\x}, {\a * sqrt(1 + (\x / \b)^2)});       \end{scope}            \draw (0, 0) circle[radius = \circradius];       \draw[-latex] (.4, 0) -- (1, 0);       \draw[dashed] (-5, 0) -- (.2, 0);       \draw[thick, gray] (0, 0) [partial circle = -210:-150:4cm];     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/YvLb9.png) The issues at hand are:   1. ~~stopping ever hyperbola at the arc. How can this be done? I don't see how intersections could be used here. Even if we did a path of the hyperbola first and identified the intersection, how do I say draw from a function to a point? I just put 2.5 as the domain and it worked well but that was purely luck.~~   2. ~~automating the process with a loop for 5 different hyperbolas.~~   3. setting up the deflection curves.   4. ~~having the color of each hyperbola cycle.~~   5. using `decorations.markings` to decorate `postaction` with an arrow. Does that work well in a loop? If so, I wouldn't know how to achieve it unless there isn't anything special to do. We could use `\path` to add in circle radius of fictitious circles for the other hyperbolas, but again, I am not versed in using `loops` or `foreach` in `TikZ`. So the only challenge I would think is the deflection trajectories. I don't have a model for them and they would differ per planet but that last part is irrelevant since I am just showing a diagram of what would happen for an arbitrary planet. * * * ![enter image description here](http://i.stack.imgur.com/mcpfB.png) How can those partials hyperbolas and then the ensuing deflections be automated with a `foreach loop`? Here is a reference link on how Jubob's added a hyperbola using periapsis and the fact that the equation for a hyperbola is `x^2/a^2 - y^2/b^2 = 1`. Additionally, form the figure, we know that the asymptote runs parallel to the x axis. TikZ: constructing a piece of a hyperbola with a given asymptote


title: References to specific lines in program source code

text: How do I make references to specific lines in program source code (e.g. Python)? For example, I want to say: > In lines 22-30, the algorithm is implemented... If I changed the Python source code, "lines 22-30" will automatically change to reflect the new line numbers. **EDIT:**   I'm using `minted`


title: How can I unbalance double columns in revtex4?

text: It seems that revtex4 tries to automatically balance the lengths of the two columns on the last page of a double-column document. I would like to know how to turn this off. Unfortunately, all the Googling I do for this is pages telling me how to turn it on. I've tried the multicol package, but it seems that it interferes with some of the internals of the revtex package, so I'm hoping there's a simpler way to get it done. In case it helps, here is how I start my .tex file:               \documentclass[amssymb,aps,nofootinbib,letterpaper,10pt,twocolumn]{revtex4}


title: Songs Package Index Generation

text: First of all I have to say I’m Spanish, so I’m sorry for any mistakes in my English. Also, I’m very new at LaTeX. I'm using the songs package to create a songs book. I've been able to typeset songs with chords but I cant find the way to generate a “Title Index” or an “Author Index” at the beginning of the book. I have these lines at the beginning:               \newindex{titleidx}{titleidx}     \newauthorindex{authidx}{authidx}      I use these lines to show my indexes:               \showindex[2]{Índex de títols}{titleidx}      and               \showindex[2]{Índex de d'autors}{authidx}      And my songs are written between:               \begin{songs}{titleidx,authidx}      ... songs ...               \end{songs}      I checked the Songs package documentation and it seems that I need to use a program named “songsidx”. Where do I find it and how exactly do I use it to generate my indexes? Thank you!


title: How to create different margins for odd and even pages?

text: I'm trying to create a document that has different margins on even and odd pages. This is what I've tried:               \documentclass[a4paper,12pt]{article}     \usepackage[slovene]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{amsfonts,amsmath,amssymb,amsthm}     \usepackage[all,cmtip]{xy}     \usepackage{graphicx}     \usepackage{resizegather}          \hfuzz=2pt          \oddsidemargin=51pt     \evensidemargin=11pt      This would give me precisely the margins I want, but for some reason, \oddsidemargin and \evensidemargin are not independent. When I set one of them, the other is fixed. After reading some answers here, I tried setting changing the first line to               \documentclass[a4paper,12pt,twoside]{article}      but this completely messes with my layout and I get a bunch of "underfull \vbox"'s. (Although the left and right margins then behave as expected.) So, my question is as follows: > How do I make \oddsidemargin and \evensidemargin behave independently > without introducing any other (undesired) behaviour?


title: First line of first paragraph after section/subsection is indented

text: When writing an essay with the `article` class, the first line after a `section` or `subsection` has somewhere along the way become indented. According to typographic standards (American standards, I believe?) the first line in a paragraph following a heading should not be indented. Somehow, my first lines have become indented. I am using `input` to handle the text below a section, looking something like this:               \subsection{Section name}     \begin{multicols}{2}     \input{Sections/Text.tex}     \end{multicols}      As you can see, I am using the `multicol` package to enable multiple columns. The other packages (relevant to my problem) I am using are: `MinionPro`, `simplemargins` and `lettrine` (although I haven't implemented it in the text yet). Is there something apparent that I've missed? Is there a package conflict here, perhaps? If the problem lies in the `multicols` package, is there a solution to my problem where I can keep my two-column-layout?


title: Chapter title and rotated table (with subtables) on the same page

text: My problem is quite similar to the one described in Problems with landscape mode and Title on the same page. The `hvfloats` solution suggested there does not work for me, however, because I use multiple `subtable`s. But let me start from the beginning: In the appendix of my thesis I want to add a wide table that needs to be set in landscape mode. Normally I'd just use the `sidewaystable` environment, but that leaves the first page of the appendix completely empty except for the chapter heading               \documentclass[a4paper] {scrbook}          \usepackage{rotating}     \usepackage{subcaption}          \begin{document}          \appendix \cleardoublepage     \chapter{Some Data Tables}          \begin{sidewaystable}       \hspace*{\fill}       \begin{subtable}{.3\textwidth}         \rule{\linewidth}{12cm}       \end{subtable}       %       \hspace*{\fill}       %       \begin{subtable}{.3\textwidth}         \rule{\linewidth}{12cm}       \end{subtable}       \hspace*{\fill}            \caption{Table with interesting data}     \end{sidewaystable}          \end{document}      The purpose of the three `\hspace*{\fill}` is just to center the resulting tables properly on the page. * * * Realising that `sidewaystable` refers to `\textheight` I also tried to temporarily adjust that               \def \textheightTmp \textheight     \def \textheight 0.8\textheightTmp     \begin{sidewaystable}       [...]     \end{sidewaystable}     \def \textheight \textheightTmp      but this lead to the following error > Appendix A. > > ! Package caption Error: \setcaptionsubtype outside float. > > See the caption package documentation for explanation. Type H for immediate > help. ... > > l.15 \begin{subtable}{.3\textwidth} * * * As I mentioned at the beginning, `hvfloats` does not work either because of the `subtable`s               \documentclass[a4paper] {scrbook}          \usepackage{hvfloat}     \usepackage{subcaption}          \begin{document}          \appendix \cleardoublepage     \chapter{Some Data Tables}          \hvFloat[capPos=b,rotAngle=90,nonFloat]{table}{%       \hspace*{\fill}       \begin{subtable}{.3\textwidth}         \rule{\linewidth}{12cm}       \end{subtable}       %       \hspace*{\fill}       %       \begin{subtable}{.3\textwidth}         \rule{\linewidth}{12cm}       \end{subtable}       \hspace*{\fill}     }{Table with interesting data}{}          \end{document}      This results in the error: > Appendix A. > > ! Package caption Error: \setcaptionsubtype outside float. > > See the caption package documentation for explanation. Type H for immediate > help. ... > > l.23 }{Table with interesting data}{} * * * What I want is a rotated table (with subtables) and caption that is placed on the same page as the chapter heading. Space isn't an issue, the table would fit on the page. Is there any way to do this?


title: Blank .tex file after windows blue screen

text: I was working on a `.tex` file using TeXMaker and suddenly got a blue screen! I restarted my computer and the file I was working with appears blank on TeXmaker, although it is full of `NULL characters` in Notepad++. The size of it is `30 K` which makes me believe my work is still there but somehow hidden. Have any of you got this before ? Do you know any solution ? I can send you the file by e-mail if you would need.


title: biblatex verbose style @article bib-- remove parenthesis around year and month

text: I'm using biblatex with `verbose-ibid` style. For one of the `@article` entries, I have the following:               @article{ref_133,       title = {IBM wants Minneapolis to become a 'smarter city'},       author = {Alexander, Steve},       journal = {Minneapolis Star Tribune},       url = {http://www.startribune.com/business/123289493.html},       year = "2011",       month = "6"     }      which renders as: ![enter image description here](http://i.stack.imgur.com/Uqa0S.png) How can I customize `year` (and `month` and `day`) so that it's not enclosed by parentheses?                 Alexander, Steve, "IBM wants Minneapolis to become a 'smarter city.'"       Minneapolis Star Tribune. June 2011. URL: http://www.startribune.com/business/123289493.html.


title: Change line color and thickness and line spacing

text: I am new to LaTeX and I am creating a resume. I have added a black line. 1)However, I would like to know how to specify a color and line thickness for this line? 2) I would like to know how to adjust line spacing? I know I can use `\setspace`. I am not too happy with `\singlespacing` and `onehalfspacing`. I am looking for something in between these 2. I want to be able to manually adjust the line spacing (is there a parameter that I can set?). 3) For the last row, I am trying to do `tab` then "Sixth Form" but I do not understand why latex is not allowing me to do it ?               \documentclass[10pt]{article}      \usepackage[top=0.7in, left=0.3in, bottom=0.0in, right=0.3in]{geometry}     %\usepackage{setspace}     %\singlespacing          \oddsidemargin=0.0in      \evensidemargin=0.0in      \textwidth=6.5in      \marginparwidth=0.5in     \headheight=0pt      \headsep=0pt      \textheight=9.0in      \pagenumbering{gobble}     \begin{document}     \centerline{\huge \bf My Name}     \vspace{2.5pt}     \centerline{$\bullet$ Address $\bullet$ (Country code)phone number}     \centerline{Email}     \noindent{\LARGE \bf Education} \\     {\line(1,0){475}}     \hspace{10in}{Sixth Form } \hfill{Time}     \end{document}      ![enter image description here](http://i.stack.imgur.com/6WArI.png)


title: Creating a table in LaTeX

text: I am fairly new to LaTeX and creating tables. I was wondering if there was a way to create a table that looks like this:                               | Method 1      |                     Threshold       |P  |Z  |W      |          value1          | value |value  |value |          value2          | value |value  |value  |      This looks bad the way I typed it because I am not sure how to do it. Threshold is its own column then method one is the title of the next column and beneath that there are 3 evaluation metrics in the column of method 1 then all of the values.


title: Hard space in figure/table caption

text: I have a problem with figure captions. Since I have very long words in figure and table captions (names of chemical compounds) the space between caption label, caption number and first word of caption is not constant. It looks like this: ![example fig caption ](http://i.stack.imgur.com/8N3zD.jpg) While I would like to have hard space between caption label, caption number and first word of caption so it would look more or less like this: ![example 2 fig caption](http://i.stack.imgur.com/zwJMe.jpg) I am using own document class I didn't put any code for captions there except of two lines in the preamble:               \usepackage[labelfont=bf]{caption}     \captionsetup{labelsep=period}      a piece of code from class that may be of some importance for the question:               \def\@baseclass{report}     \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\@baseclass}}     \PassOptionsToClass{a4paper,twoside,openright,12pt}{\@baseclass}     \ProcessOptions          \LoadClass{\@baseclass}      Is there a simple way to do it (get hard spaces in the caption label)?


title: TeX capacity exceeded (save size)

text: I am generating a fairly large index of `.txt`, `.tex`, and `.pdf` files. This process has worked for a long time, and the size of the index is not the issue. I have added logic to insert additional links in the index and now am running into: > TeX capacity exceeded, sorry [save size=80000] # Questions:   1. What are the typical causes of this kind of problem, and any suggestions on how to determine the cause of this.   2. Can the `save size` be increased? Of course any solution that just allows me to increase the `save size` would be preferable if it works, the first question is only important if the size can't be increased or I run into this problem again. ## Notes:   * Generating smaller indices seems to work just fine, only when I attempt to generate the entire index do I run into problems, so coming up with a MWE will be difficult.


title: Is it possible to create a bar chart with confidence intervals?

text: Is it possible to build a chart like in this older question but to add confidence intervals? How to create a bar chart in which the y-axis is expressed in percents?


title: How to place a different background image on each part of a book

text: Do you know if it is possible to place a background image on each \part{} of a book? Ideally, for each part I would like to be able to put a different background image. Currently, I am using the following commands to create the a background image in a latex document, but I cannot think of a way to use on the page of \part{}. Definitions:               \usepackage{eso-pic}     \newcommand\BackgroundPic{%     \put(0,0){%     \parbox[b][\paperheight]{\paperwidth}{%     \vfill     \centering     \includegraphics[width=\paperwidth,height=\paperheight,%     keepaspectratio]{background.pdf}%     \vfill     }}}      Usage:               \AddToShipoutPicture*{\BackgroundPic}      \ClearShipoutPicture


title: Which typeface is used in scrartcl?

text: Can somebody tell me which typefaces uses this document?               \documentclass[twoside,parskip=half]{scrartcl}      I think the serif one it's Times but I'm not sure about it. No idea which font is the sans-serif used for the main titles.


title: Undefined Control Sequence occurs at: \begin{document}

text: I wasn't having any problem with my `.tex` file, but after compiling a separate document - which used a different document class - my current file no longer loads. Specifically, I was using the `imsart` document class, compiled a separate file in the `biom` class, and now my `imsart` file won't load. The error I'm getting is:               (c:/Program Files/PCTeX/PCTeXv6/texmf-dist/tex/latex/lm/ot1lmss.fd)     ! Undefined control sequence.     <argument> \bibsep            l.66 \begin{document}      I've tried moving the `\begin{document}` around but that doesn't do anything. I'm almost 100% sure it has something to do with the `natbib` package, but I can't figure out what. What's bothersome is that no edits were made to the file, and it was just _after_ compiling the other class file that my file won't work. I've checked to make sure I'm compiling a LaTeX `pdf` file, as I was before. The basic code is here, which gives the same error, is virtually copied from the `imsart` class website:               \documentclass[aoas,preprint]{imsart}     \RequirePackage[OT1]{fontenc}     \RequirePackage{amsthm,amsmath}     \RequirePackage[numbers]{natbib}     \RequirePackage[colorlinks,citecolor=blue,urlcolor=blue]{hyperref}     \startlocaldefs     \numberwithin{equation}{section}     \theoremstyle{plain}     \newtheorem{thm}{Theorem}[section]     \endlocaldefs     \begin{document}     \section{Ordinary text}       It is interesting that simulations with the \cite{r4} model worked well      \begin{thebibliography}{9}      \bibitem{r4}     \textsc{Prokhorov, Yu.} (1956).     Convergence of random processes and limit theorems in probability     theory. \textit{Theory  Probab.  Appl.}     \textbf{1} 157--214.     \MR{84896}     \end{thebibliography}     \end{document}


title: PSTricks, node in foreground

text: This is my code:               \psmatrix[colsep=0.45cm,rowsep=0.8cm,mnode=circle]     1,2&&1,3\\     &[mnode=none]2,3,4,5$|$1\\     1,5&&1,4     \ncline[linestyle=dashed]{1,1}{1,3}     \ncline[linestyle=dashed]{1,1}{3,1}     \ncline[linestyle=dashed]{3,1}{3,3}     \ncline[linestyle=dashed]{1,3}{3,3}     \ncline[linestyle=dashed]{1,1}{3,3}     \ncline[linestyle=dashed]{3,1}{1,3}     \endpsmatrix      But what I want is that the node `(2,3,4,5$|$1)` comes on the foreground (like a white box around this node). I can't draw a line to this node because there is no circle around this node (`[mnode=none]`). Can anyone help me?


title: section numbering including only the lowest sectionning level

text: I'd like to have in my document the main parts (chapter, section) not numbered, but having numbered subsections and subsubsections. I'd like that the numbers restart in each new unit. I was trying to change the numbering by adding to preable:               \renewcommand{\thesubsection}{\arabic{subsection}}     \renewcommand{\thesubsubsection}{\arabic{subsubsection}}      but the numbering continue in whole document and don't restart in each section, I guess it restarts after each numbered section of a higher level. What I'd like to achive is to have in the body of document `*chapter` and `*section`; `subsubsection` always numbered and `subsection` sometimes starred, sometimes not. Here is minimal working example:               \documentclass{book}     \usepackage{fontspec}     \usepackage{polyglossia}          \setmainlanguage{polish}     \setotherlanguage[locale=mashriq]{arabic}     \setromanfont[Mapping=tex-text]{Linux Libertine O}     \newfontfamily\arabicfont[Script=Arabic,Scale=1.3,Mapping=arabicdigits]{Scheherazade}          \renewcommand{\thesubsection}{\arabic{subsection}}     \renewcommand{\thesubsubsection}{\arabic{subsubsection}}     \setcounter{secnumdepth}{3}     \setcounter{tocdepth}{0}          \begin{document}          \chapter*{Pierwszy}     \addcontentsline{toc}{chapter}{Pierwszy}          \section*{Jakaś część}     \subsection{To też}     \subsubsection{aaa}     \subsubsection{bbb}     \subsection{I to również}     \subsubsection{ccc}     \subsubsection{dddd}          \section*{Inna część}     \subsection*{A to podpunkt}     \subsubsection{aaa}     \subsubsection{bbb}     \subsection*{I to}     \subsubsection{ccc}     \subsubsection{dddd}                    \chapter*{Drugi}     \addcontentsline{toc}{chapter}{Drugi}          \section*{Jakaś część}     \subsection*{To też}     \subsubsection{aaa}     \subsubsection{bbb}     \subsection*{I to również}     \subsubsection{ccc}     \subsubsection{dddd}          \section*{Inna część}     \subsection{A to podpunkt}     \subsubsection{aaa}     \subsubsection{bbb}     \subsection{I to}     \subsubsection{ccc}     \subsubsection{dddd}          \tableofcontents          \end{document}      Maybe I'm trying to achive what I wont with wrong tool. Thanks for any hints.


title: TikZ parallel Edges between Nodes

text: I'm looking for a simple way to draw the following picture using TikZ. Namely, I would like to only specify the coordinates of the cities and then to connect them by edges using a `\foreach` loop. This would be easy if there were no directed edges at this picture: ![enter image description here](http://i.stack.imgur.com/0twCe.png) So, more precisely, my question is how to modify the second `\foreach` below to get a picture above.               \begin{scope}     \foreach \x/\y/\name/\label/\where in {1.2/1.4/a/{El Paso}/below,             1/3.2/b/Albuquerque/above, 2.5/3/c/Amarillo/below, 3.8/4/d/Wichita/above,          4.3/3.3/e/Tulsa/45, 5.2/2.8/f/{Little Rock}/right, 4.2/2/g/Dallas/left,         4.8/1/h/Houston/right, 3.6/0.6/i/{San Antonio}/below} {       \draw (\x,\y) circle (.4mm);     \node[draw,circle,minimum size=2mm,inner sep=0mm,label=\where:{\footnotesize \label}] (\name) at (\x,\y) {};     }          \foreach \s/\t in {a/b, b/c, c/e, e/d, e/f, f/g, h/g, h/i}       \path[draw] (\s) edge (\t);     \end{scope}


title: How to draw the four conic sections

text: How to draw the four of geometry of conic sections from TikZ, circle parabola ellipse and hyperbola. I want 3D bi-cones figure like this:conic sections for my student in analytic geometry.


title: Macro psGTriangle leads to pdfLatex ignoring the figure

text: I've noticed that the pstricks macro psGTriangle, to draw triangles with Gouraud shading does not work in combination with auto-pst-pdf/pdflatex. There is no error message, the pspicture environment is just ignored. Here is minimal example to illustrate the problem :               \documentclass{minimal}          \usepackage{pstricks,pstricks-add}     \usepackage{auto-pst-pdf}          \begin{document}          \psset{unit=0.5cm}          \begin{pspicture}[showgrid=true](-5,-5)(5,5)       \psGTriangle(-2,-2)(3,-1)(-0.5,3){red}{white}{blue}     \end{pspicture}          \begin{pspicture}[showgrid=true](-5,-5)(5,5)       \psline(-3,-2)(4,3)     \end{pspicture}          \end{document}      Compiling this example with latex -> dvips -> ps2pdf gives a pdf with both pspictures environment.               latex pdfmini.tex && dvips pdfmini.dvi && ps2pdf pdfmini.ps pdfmini_latex.pdf      Compiling the same example with pdflatex gives a pdf with 2 blank pages and the second pspicture environment on a third page.               pdflatex -shell-escape pdfmini.tex       Looking in the generated _pdfmini-pics.pdf_ file, it is visible that something is wrong with the figure containing the psGTriangle, even if it is displayed. It seems that some how the crop did not work really fine . During my research to solve this problem, it appeared that compiling with xelatex renders a good pdf file. However I use the psGTriangle macro in a bigger document, and i'd rather stay with pdflatex (since I'm really not familiar with the xelatex). Is this problem known, solvable, or do I have to live with it ? Thank you for your help. Edit : @percusse: I'm using Ubuntu 12.04 with   * texlive version 2012.20120611-3~ubuntu12.04.1.    * pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)   * XeTeX 3.1415926-2.4-0.9998 (TeX Live 2012/Debian)


title: Adjust vertical alignment in footline of beamer

text: Using the beamer class: When I put the page number in the footline next to a navigation icon they align on the bottom of their bounding box. Unfortunately the navigation bounding box is bigger than my text so they end up at different heights. But I would like to align them center in order to get them on the same height. I tried to shift the sheet numbers up a bit in various ways I could think of, but I failed. (Allmost)-minimal working example:               \documentclass{beamer}          \setbeamertemplate{navigation symbols}{}        %disable standard navigation     \setbeamercolor{footlinecolor}{fg=white,bg=black}   %set color of footline     \setbeamercolor{navigation symbols dimmed}{fg=gray}  %redefine color of dimmed aspects of navigation bar     \setbeamercolor{navigation symbols}{fg=red}     %this is ignored somehow               %define custom footline     \setbeamertemplate{footline}{       \begin{beamercolorbox}[ht=1.6cm,wd=\paperwidth]{footlinecolor}         \vspace{1.1cm}         \hfill         \fbox{             \insertframenavigationsymbol              \insertsectionnavigationsymbol         }         \fbox{             \tiny{\insertframenumber{} of \inserttotalframenumber}         }        \end{beamercolorbox}     }               \begin{document}       \begin{frame}{Introduction}         Lorum Ipsum       \end{frame}     \end{document}


title: Error when using \BC (from abbrevs) in \caption

text: I'm using the `abbrevs` package to provide nicer formatting of BC/AD in dates, but when I use one of the commands in a `caption` I get an error. Example document:               \documentclass{article}     \usepackage{abbrevs}          \begin{document}          \begin{figure}     \caption{1500--1000 \BC.}     \end{figure}          \end{document}      The error is:               ! Argument of \@caption has an extra }.      Removing the `\BC` eliminates the error, which leads me to think the problem is in the combination of the two... so how can I use an abbreviation in a caption? Alternatively, is there a better package for formatting BC/AD in dates?


title: Convert bib file from BibTeX to biblatex

text: I have a `bib` file that I have been using with BibTeX for a number of years. I have now switched to creating my bibliographies with `biber` and the `biblatex` package. Every once in a while I need to manipulate a field or add a field into the `bib` file to get the most out of `biblatex`. This works fine from a technical stand point. From a user interface vantage, this is an utter failure with JabRef which I use to manage my `bib` file on Linux. If I add a `biblatex` specific field JabRef doesn't display it nicely. If I switch JabRef to `biblatex` mode it doesn't handle my old `bib` entries well. For example, I run into major problems with the BibTeX `year` field and the `biblatex` `date` field as well as the `journal` versus `journatitle` fields. Is there a GUI that runs on Linux for managing a `bib` file that has both BibTeX and `biblatex` fields? I think that at this point I would be comfortable converting my `bib` file from BibTeX to `biblatex`. Is there a converter that does this? I am a little worried that this will make importing citations from the web difficult since most publishers still use the BibTeX fields.


title: How to hijack a key assignment to raise an event that triggers its event handler?

text: Whenever I invoke `\degrees` the definition of operator `au` (angle unit) will be updated. It is easily done by redefining the `\degrees` with `\let` and `\renewcommand`. So far so good. Now I want to create two more operators `pt2xu` and `pt2yu` which convert `pt` (point) to the active unit in both `x` and `y` direction. Unfortunately, the active unit `\psxunit` and `\psyunit` must be updated via key-value assignment so I cannot apply my method with `\let` and `\renewcommand` here. Instead I have to create a new macro called `\updateoperator`. This `\updateoperator` must be invoked at least once for initialization. The subsequent invocation must be done after we make assignment to `unit`, `xunit` and `yunit`. It is a bad idea to have such an interface as the users might forgot to invoke `\updateoperator` after doing assignment. My idea is to hijack `unit`, `xunit` and `yunit` assigment such that they silently invoke `\updateoperator` at least one for initialization and when they are updated via key-value assignment. Do you have any idea to implement it?               \documentclass[pstricks,border=12pt]{standalone}     \SpecialCoor     \makeatletter          \let\tempdegrees\degrees     \renewcommand\degrees[1][360]{\pstVerb{/au {\pst@angleunit} bind def}\tempdegrees[#1]}          \def\updateoperator{\pstVerb{/pt2xu {\pst@number\psxunit div} bind def /pt2yu {\pst@number\psyunit div} bind def}}          \makeatother     \updateoperator% the first invocation for initialization     \begin{document}     \begin{pspicture}[showgrid](-1,0)(4,2)         \psline[linecolor=red,linewidth=20pt](2,0)(2,1)         \psframe*[linecolor=blue](!2 10 pt2yu sub 1)(!2 10 pt2yu add 2)         \qdisk(!1 90 PtoC){1}     \end{pspicture}          \psset{unit=2cm,runit=2cm}     \updateoperator     \degrees[400]          \begin{pspicture}[showgrid](-.5,0)(2,1)         \psline[linecolor=red,linewidth=20pt](1,0)(1,.5)         \psframe*[linecolor=blue](!1 10 pt2yu sub .5)(!1 10 pt2yu add 1)         \qdisk(!.5 100 au PtoC){.5}     \end{pspicture}     \end{document}


title: Labeling the columns of matrices

text: I am trying to TeX a transition matrix for a Markov process and I want to be consistent with our textbook and label the columns and rows. I found `\kbordermatrix` and that let me produce:                   \[\kbordermatrix{                         &L&M&C  \cr                 L& .94 &  .02  & .01    \cr                 M& .05  &  .96 &  .04   \cr                 C& .01 & .02 & .95      \cr                 }\]      But I'd like to add another label that spans the last three columns that says Current State (and is underline) and I'd like a way to label the the last three rows with Next State. Is there an easy way to do this?


title: How can I stop \footcite from hijacking my beamer columns?

text: I have prepared a `beamer` presentation for a seminar. I already have presented, but in trying to change traditionally-cited references (with a number superscript and the reference typesetted at the end of the presentation), I used `biblatex`'s `\footcite`. Consider this frame snippet:               \documentclass[10pt]{beamer}     \usepackage[utf8]{inputenc}     \usepackage{amsmath,amssymb}     \usepackage{colortbl}     \usepackage[spanish,es-tabla]{babel}       \usepackage{wasysym}     \usepackage[style=verbose,autocite=footnote,maxnames=10,babel=hyphen,hyperref=true,abbreviate=false,backend=biber,mcite]{biblatex}     \addbibresource{references.bib}          \usepackage{pgf}     \usepackage{booktabs}     \usepackage{multirow}          \setlength{\columnsep}{.2cm}     \def\newblock{\hskip .11em plus .33em minus .07em}     \mode<presentation>     {       \usetheme[width=4em]{PaloAlto}       \usecolortheme{crane}     }     \title{Title}     \subtitle{Sub}      \author[me]{me}     \date{\today}          \begin{document}          \begin{frame}       \titlepage     \end{frame}              %%%%%%% MAIN CODE %%%%%%     \begin{frame}{The FDTD Method}         \begin{columns}             \begin{column}{0.4\textwidth}               \begin{itemize}                   \item Discretization of both space and time by central differences.                     \item Yee Cell %\footcite{Taflove2000}.                  \end{itemize}             \end{column}              \begin{column}{0.5\textwidth}             \begin{figure}               \centering               \includegraphics[width=0.9\columnwidth]{some_figure}               \caption{Unit Yee Cell.}             \end{figure}         \end{column}              \end{columns}     \end{frame}          \end{document}      Put any PDF, PNG or JPG file named `some_figure` together with this `.tex` file. The content of the `references.bib` file (just to enable compilation) are:               @Book{Taflove2000,         Day = {{30}},         Edition = {{2nd}},         Month = {{jun}},         Publisher = {{Artech House Publishers}},         author = {Taflove, Allen and Hagness, Susan C.},         title = {{Computational Electrodynamics: The Finite-Difference Time-Domain Method}},         year = {{2000}},     }      With the comment in place (that is, when not citing with `\footcite`) the second column containing the figure appears in the PDF output correctly. But, when the comment is removed, the citation appears at the footer of the frame, but the second column goes into oblivion along with the figure. Does anyone know how to solve this?


title: Alignment of graphs

text: \documentclass{article}          \usepackage[demo]{graphicx}     \usepackage{subfig}     \usepackage{tabularx}                    \usepackage{tikz}     \usetikzlibrary{arrows}               \tikzstyle{male}=[circle,fill=blue!20,draw,font=\sffamily\Large\bfseries]     \tikzstyle{female}=[circle,fill=red!20,draw,font=\sffamily\Large\bfseries]          \begin{document}          \begin{figure}     \def\tabularxcolumn#1{m{#1}}     \begin{tabularx}{\linewidth}{@{}cXX@{}}     %     \begin{tabular}{cc}     \subfloat[A]{\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm,       thick]       \node[male] (1) {1};       \node[female] (2) [below left of=1] {2};       \node[male] (3) [below right of=2] {3};       \node[female] (4) [below right of=1] {4};       \path[every node/.style={font=\sffamily\small}]         (1) edge node {} (3)         (2) edge node [right] {} (3)         (3) edge [bend right] node[right] {} (1)         (4) edge node {} (2)     \end{tikzpicture}}         & \subfloat[B]{\begin{tikzpicture}[baseline,->,>=stealth',shorten >=1pt,auto,node distance=3cm,          thick]          \node[female] (1) {1};          \node[male] (2) [below left of=1] {2};          \node[male] (3) [below right of=2] {3};          \node[female] (4) [below right of=1] {4};          \path[every node/.style={font=\sffamily\small}]         (2) edge node [left] {} (1)             edge node [right] {} (3)         (4) edge node [right] {} (1)             edge node [left] {} (3)             \end{tikzpicture}}\\     \subfloat[C]{\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm,       thick]       \node[male] (1) {1};       \node[female] (2) [below left of=1] {2};       \node[male] (3) [below right of=2] {3};       \node[female] (4) [below right of=1] {4};            \path[every node/.style={font=\sffamily\small}]         (1) edge node {} (3)         (2) edge node [right] {} (3)          \end{tikzpicture}}         & \subfloat[D]{\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm,          thick]          \node[female] (1) {1};          \node[male] (2) [below left of=1] {2};          \node[male] (3) [below right of=2] {3};          \node[female] (4) [below right of=1] {4};               \path[every node/.style={font=\sffamily\small}]            (2) edge node [left] {} (3)            (4) edge node [left] {} (3)        \end{tikzpicture}}\\          \end{tabular}          \end{tabularx}          \caption{Isomorphism}\label{foo}     \end{figure}          \end{document}


title: An environment for setting \emergencystretch locally

text: The following environment, copied from this website about dealing with overfull hboxes, allows one to change the `\tolerance` parameter for just the paragraph(s) it encloses:               \newenvironment{tolerant}[1]{%       \par\tolerance=#1\relax     }{%       \par     }      Unfortunately, the website does not specify a similar environment for locally changing `\emergencystretch`. Since much of the code in the definition above (notably, the commands `\par` and `\relax`) is currently outside my understanding, I would not know how to go about making a similar environment for locally setting `\emergencystretch`\--but I'm sure someone on TeX.SE would know. How would one write an environment that changes the value of `\emergencystretch` locally (and makes sure the changes get applied)?


title: How to debug citations for bibtex?

text: I use LaTexila with latexmk and pdflatex and bibtex. But: Every now and then compiling fails, and obviously due to cites I insert. The following example breaks compilation alltogether, and I have no clue why.               \citep{moebius_2011}      With the following entry in my bib file. The bib entry comes from Zotero.               @book{moebius_2011,         address = {Wiesbaden},         title = {Kultur - Theorien der Gegenwart},         isbn = {3531167758 9783531167756},         language = {German},         publisher = {{VS}, Verlag für Sozialwissenschaften},         author = {Moebius, Stephan},         year = {2011}     }      If I comment the citation out, everything works. Here are the relevant document classes:               \documentclass[12pt,a4paper]{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage[german]{babel}     \usepackage{jurabib}     \usepackage{pdfpages}     \usepackage{microtype}      Plus the command for the bibliography:               \bibliographystyle{jurabib}      The relevant lines at the error log should be these:               ! Missing number, treated as zero.     <to be read again>                         \l@German      l.99   {{Moebius}{Stephan}{S.}{}{}} {} {}                                               \bibAnnoteFile {moebius_2011}     ?      ! Emergency stop.     <to be read again>                         \l@German      l.99   {{Moebius}{Stephan}{S.}{}{}} {} {}                                               \bibAnnoteFile {moebius_2011}     End of file on the terminal!      Find a full version of the log at this Pastebin link


title: Labelling tikz nodes AND edges

text: The following is a snippet of the original. It works..,               \documentclass[12pt]{article}     \usepackage{tikz} % drawing support     \usetikzlibrary{trees,arrows,decorations.markings}     \definecolor{darkgreen}{rgb}{0,.5,0}     \begin{document}       \begin{tikzpicture}[yscale=-1,scale=1,label/.style={postaction={decorate,decoration={ markings, mark=at position .5 with \node #1;}} }]         \node at (0,0) (node0) [inner sep=0pt,minimum width=1mm,circle,draw=blue] {1};                       % node#1        \end{tikzpicture}     \end{document}      The label style is primarily for edges which don't appear in the snippet above. However, I'd like to label the nodes, too: change the \node line to:               \node at (0,0) (node0) [inner sep=0pt,minimum width=1mm,circle,draw=blue] [label=60:X] {1};                       % node#1       which is intended to put the letter "X" at a 60 degree angle from the node. Tikz then "blesses" me with a               Package tikz Error: A node must have a (possibly empty) label text.      I've tried numerous combinations of [] {} etc, and haven't gotten the code to work.


title: Redefine underscore on a per command basis.

text: Is it possible to redefine the underscore while within a particular command only? This is somewhat related to: Redefine underscore to produce roman subscript I would like:               \mycmd       -->    S     \mycmd_0     -->    S_{modifier 0}     \mycmd_t     -->    S_{modifier t}     \othercmd_0  -->    X_0     Y_t          -->    Y_t      So I want the modification of the underscore to be restricted to \mycmd.


title: horizontal line width using \xhline

text: So I've been using `\Xhline` in my tables so that I can set the top, second and bottom line of the tables thicker than the rest. My code (below) works and produces a table and the top and bottom lines have increased in thickness but for some reason the second hasn't even though I've used the exact same command. The code beneath is just for my table, the rest of the document is huge. When I copy this section of code into a new window and run it the table looks perfect, but when I run it in my main document the line thickness doesn't always increase. Does anyone know what might be causing it to intermittently work in my document? p.s couldn't tag `xhline` or `hline` hence only including the table tag.               \documentclass[11pt,a4paper]{report}     \usepackage {multirow}     \usepackage [english]{babel}     \usepackage{fixltx2e}     \usepackage{setspace}     \usepackage{booktabs}     \usepackage{array}     \usepackage{tabularx}     \usepackage{calc}     \usepackage{makecell}          \begin{document}          \begin{table}[!ht]     \centering     \setlength\extrarowheight{5pt}     \begin{tabular}{p{3cm}p{3cm}p{8.5cm}}     \Xhline{2.0pt}     \multicolumn{3}{c}{\textbf{Model set-up}} \\     \Xhline{2.0pt}     \multicolumn{2}{l}{\textbf{Channel dimensions}} & 29.76m x 2m\\ \Xhline{0.2pt}     \multirow{2}{*}{\textbf{Bathymetry}} & 8m$<$x$<$12m & Z\textsubscript{f} = 0.05 * (x - 10) \textsuperscript{2}\\      & Everywhere else: & Z\textsubscript{f} = -0.2m \\ \Xhline{0.2pt}     \multicolumn{2}{l}{\textbf{Mesh (Figure XXXX)}} & Triangulated regular grid. Increased resolution at the bump and it is wake. \\ \Xhline{0.2pt}     \multicolumn{2}{l}{\multirow{3}{*}{\textbf{Boundaries}}}            & Channel entrance: Open boundary with prescribed discharge ($Q$ = 2m\textsuperscript{3}) \\      \multicolumn{2}{l}{}            & Channel exit: Open boundary with prescribed water level ($y$=0.4m)\\     \multicolumn{2}{l}{}            & Remaining boundaries: Closed \\ \Xhline{0.2pt}     \multicolumn{2}{l}{\textbf{Friction}} & Bottom friction was defined using the Strickler formula and a coefficient of 40 was set. All other sides were frictionless\\ \Xhline{0.2pt}     \multicolumn{2}{l}{\textbf{Time step}} & 0.02 seconds\\ \Xhline{0.2pt}     \multicolumn{2}{l}{\textbf{Duration}} & 100 seconds\\ \Xhline{0.2pt}     \Xhline{2.0pt}     \end{tabular}     \centering     \end {table}          \end {document}