title: long Hungarian umlaut in typewriter

text: An exercise from 'The TeXbook' asks to write "Pál Erdős" in typewriter type. The difficulty comes that `\H` cannot be used, as the typewriter font contains other symbols (namely a `}`) The proposed solution is to borrow the accent from another font               {\tt P\'al Erd{\bf\H{\tt o}}s}      however the output does not have the accent over the `o` but on an space, as if `Erd\H{}os` was written The book's solution works with plain TeX but fails with LaTeX


title: Minted with frame and bgcolor

text: I have a problem with minted. I have created a new minted environment like so:               \definecolor{dhscodebg}{rgb}{0.95,0.95,0.95}     \newminted[dhscode]{hs}{tabsize=4, fontsize=\footnotesize, frame=lines, framesep=\fboxsep, bgcolor=dhscodebg, rulecolor=\color{gray!40}}      If I use it like so:               \begin{dhscode}     foo :: Double -> Int     \end{dhscode}      The result is: ![enter image description here](http://i.stack.imgur.com/UmiSj.png) You will notice the space between the frame and where the background ends. Is there a way to get rid of this space?


title: Does anyone have a script that will convert \xymatrix to tikzcd?

text: I have a long set of lecture notes where the commutative diagrams are written in `xy` using the `\xymatrix` format. I would like to switch over to `tikz- cd`. The syntax for the two are pretty similar with some minor differences, so it is conceivable to me that someone has either written, or could easily write, a script that will automatically convert all `\xymatrix{...}` occurrences to a `tikz-cd` format that works for all non-exotic commutative diagrams. If somebody knows of such a script or can give me such a script, I would be very happy! Note that I am willing to do the effort of fixing diagrams that involve curved lines or other non-standard things if that is too hard for a script. I am not working on a unix machine although I have access to a Macbook that I could open in unix if necessary. Here is a sample in `\xymatrix{...}`               \xymatrix{\Delta_{q-2}\ar[r]^{F_{q-1}^i}\ar[d]_{F_{q-1}^{j-1}}& \Delta_{q-1}\ar[d]^{F_q^j}\\      \Delta_{q-1}\ar[r]_{F_{q}^i} & \Delta_q}      And the corresponding `tikz-cd`               \begin{tikzcd}     \Delta_{q-2}\ar{r}{F_{q-1}^i}\ar{d}[swap]{F_{q-1}^{j-1}}& \Delta_{q-1}\ar{d} {F_q^j}\\      \Delta_{q-1}\ar{r}[swap]{F_{q}^i} & \Delta_q     \end{tikzcd}      > > Please note that I have at least 50 occurrences of xymatrix so I would > like a script that converts a whole file.


title: Custom environment splitting between pages

text: I created a custom environment for theorems using `mdframed` package:               \newtheorem{theorem}{Theorem}      \newtheorem{twierdz}[theorem]{Twierdzenie}          \newenvironment{twierdzenie}         {\begin{mdframed}[backgroundcolor=jasnoszary,             outerlinewidth = 0,              leftmargin= 40,%             rightmargin= 20,              skipbelow=0.5\baselineskip,             skipabove=0.5\baselineskip,             leftline=true,              rightline=true,             topline=false,              bottomline=false]\begin{twierdz}}         {\end{twierdz}\end{mdframed}}      then I use it in following way:               \begin{twierdzenie}     If something... and somethong... then following takes place:     some equations....     \end{twierdzenie}      But sometimes this environment is being splitted between two pages. If the theorem is long, it is fine. But sometimes LaTeX is leaving one or two lines of the theorem on previous/next page. How can I discourage LaTeX in splitting this environment between pages? I would like it to be splitted only if it really have to.


title: problem with xepersian referencing

text: I'm writing my MSc thesis using LaTeX in Persian. When I use the XePersian package all the references including the number of sections, figures, equations, references disappear. Only the numbers of chapters are shown. I don't know what to do. When I remove the command `\usepackage{xepersian}` all the numbers come back but I cannot write in Persian. I would be thankful if anyone can help me.


title: Horizontal lines in a table cell as a part of a form

text: I am trying to design a form in LaTeX, to be filled by hand. I need to replicate a form that is already being used elsewhere, as closely as possible. The said form uses horizontal lines to write on, inside a table cell, as shown below: ![enter image description here](http://i.stack.imgur.com/gWpYU.png) I tried using underscores(_) to generate the said line. Is there a more elegant method? ![enter image description here](http://i.stack.imgur.com/VtdFQ.png) Here's the MWE.               \documentclass[10pt,a4paper]{article}     \usepackage{multirow}               \newcommand{\longline}{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}     \newcommand{\shortline}{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}     \newcommand{\mediumline}{\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_}          \newcommand{\ratings}{\_\_\_1~~~\_\_\_2~~~\_\_\_3~~~\_\_\_4}          \usepackage[left=1.5cm,right=2cm,top=1cm,bottom=2cm]{geometry}          \begin{document}              \begin{tabular}{p{0.55\textwidth}p{0.2\textwidth}|p{0.24\textwidth}}         Subject Knowledge/ Conceptual Clarity   &\ratings & \multirow{4}{4.5cm}{{\textbf{Any specific comments on trainer}} \newline\newline \mediumline  \newline\newline \mediumline \newline\newline  \mediumline\newline\newline  \mediumline \newline\newline  }\\ [2\baselineskip]         Trainer Created and maintained an environment for learning &\ratings & \\[2\baselineskip]         Rate the trainer's training skills and competency &\ratings &\\ [2\baselineskip]         Would you like to attend other sessions by this trainer &\ratings &         \\[2\baselineskip]          \end{tabular}     \end{document}


title: centering the table with tabular*

text: How can I centre the table content?               \begin{table}[h]     \centering     \renewcommand{\arraystretch}{1}       \caption{The Vehicle types}       \label{tab:table3}     \begin{tabular*}{8cm}{p{1cm}p{1cm}p{1cm}p{1cm}p{1cm}}       \hline     \bfseries Vehicle Type & \bfseries Accel\& Decel & \bfseries Sigma & \bfseries Max Speed & \bfseries Probability\\     \hline\hline     Fast & 4/6 & 0.2 & 36 m/s &  10\%\\     Normal &  2/4 & 0.3 & 28 m/s &  80\% \\     Slow &  2/4 & 0.5 & 20 m/s &  10\% \\     \hline     \end{tabular*}     \end{table}


title: Adding jitter to a straight line

text: I have found a post about: How to add a jitter to a scatter plot with pgfplots. I'd like to add jitter to a straight green line to recreate this graph.![enter image description here](http://i.stack.imgur.com/hsmfT.png). Would this be the best way do you think? Also are the arrows decorations?                   \documentclass{standalone}     \usepackage{pgfplots}     \usepackage{amsmath}          \begin{document}     \begin{tikzpicture}     \begin{axis}[xmin=-4,xmax=+0, ymin=-0.5,ymax=4.5, axis lines=left]           \addplot[draw=green, mark=none, ultra thick, domain=-4.0:-0.1,              samples=100]          {2}         node [midway, above right] {\small $\bar{U}$ Time-average velocity};           \end{axis}      \end{tikzpicture}     \end{document}


title: Table: problem in right most vertical line :(

text: \documentclass[11pt,a4paper,onesided]{report}     \usepackage[utf8]{inputenc}     \usepackage[showframe, nomarginpar, left=1.5in, right=1in, top=1.5in, bottom=1in,]{geometry}     \usepackage{array}     \usepackage[font = small]{caption}     \usepackage{multirow}     \usepackage{makecell}     \begin{document}          \begin{table}[htbp]     \centering     \caption{Caption}     \begin{tabular}{|c||cccccccc|}      \hline     %     \hline       \\     \multirowthead{2}{INR \\ Trillion}     & \multirowthead{2}{FY\\ 2005}     & \multirowthead{2}{FY\\ 2006}     & \multirowthead{2}{FY\\ 2007}         & \multirowthead{2}{FY\\ 2008}         & \multirowthead{2}{FY\\ 2009}         & \multirowthead{2}{FY\\ 2010}         & \multirowthead{2}{FY\\ 2011}         & \multirowthead{2}{CAGR \\ (FY05-11)}  \\ \\ \\      \hline \hline \\               \multirowthead{2}{Capital\\ Employed} & \multirowthead{2}{5.04} & \multirowthead{2}{5.85} & \multirowthead{2}{6.61} & \multirowthead{2}{7.24} & \multirowthead{2}{7.92} & \multirowthead{2}{9.08} & \multirowthead{2}{9.49} & \multirowthead{2}{11.1\%} \\ \\ \\ \hline \\          {Turnover} & 7.44 & 8.37 & 9.65 & 10.96 & 12.72 & 12.45 & 14.73 & 12.1\% \\ \\      \hline \\          \multirowthead{2}{Total\\Income}& \multirowthead{2}{7.35} & \multirowthead{2}{8.30} & \multirowthead{2}{9.70} & \multirowthead{2}{11.03} & \multirowthead{2}{13.10} & \multirowthead{2}{12.72} & \multirowthead{2}{14.98} & \multirowthead{2}{12.6}\% \\ \\ \\     \hline \\          {Networth} & 3.42 & 3.97 & 4.54 & 5.18 & 5.83 & 6.53 & 7.15 & 13.1\% \\ \\ \hline  \\             {PBT} & 1.08 & 1.14 & 1.39 & 1.53 & 1.42 & 1.60 & 1.71 & 7.9\% \\ \\ \hline \\          {Net Profit} & 0.64 & 0.66 & 0.77 & 0.80 & 0.69 & 0.84 & 0.86 & 5.1\% \\ \\ \hline \\                {Total PSEs} & 227 & 226 & 217 & 214 & 213 & 217 & 220 & -- \\ \\   \\ \hline \\          \multirowthead{2}{Profit Making\\ PSEs} & \multirowthead{2}{143} & \multirowthead{2}{160} & \multirowthead{2}{154} & \multirowthead{2}{160} & \multirowthead{2}{158} & \multirowthead{2}{157} & \multirowthead{2}{158} & \multirowthead{2}{--} \\ \\ \\ \hline \\          \multirowthead{2}{Loss \\Making PSEs} & \multirowthead{2}{73} & \multirowthead{2}{63} & \multirowthead{2}{61} & \multirowthead{2}{54} & \multirowthead{2}{55} & \multirowthead{2}{60} & \multirowthead{2}{62} &  \multirowthead{2}{--}\\ \\ \\     \hline               \end{tabular}     \end{table}          \end{document}


title: Make every first line of table look the same

text: I've been struggling recently with tables. And I've finally managed to get past it. However, I'm now trying to make every first line of my tables look the same (bold white on blue background color). And I really don't know how to do that. I know I must use a `\renewcommand`. So my guess is that:               \documentclass[12pt]{report}     \usepackage[utf8]{inputenc}     \usepackage{colortbl}     \usepackage{array}          \definecolor{Tab}{RGB}{79, 129, 189}     \renewcommand{         tabular{             <first lign of every tab>         }{             \rowcolor{blue} \textbf{\textcolor{white}}         } \\          \begin{document}          \begin{table}     \caption{Exemple of First Colored Lign}     \begin{tabular}{m{3cm}|m{10cm}}         \rowcolor{Tab} \textbf{\textcolor{white}{HeaderLeft}} & \textbf{\textcolor{white}{HeaderRight}} \\         \hline Acronym             & Lorem ipsum dolor sit amet\\         \hline Acronym             & Lorem ipsum dolor sit amet \\         \hline Acronym             & Lorem ipsum dolor sit amet \\         \hline          \end{tabular}         \end{table}              \begin{table}         \caption{Exemple of Tab without a colored Lign}         \begin{tabular}{m{3cm}|m{10cm}}         \hline HeaderLeft & HeaderRight \\         \hline Acronym             & Lorem ipsum dolor sit amet\\         \hline Acronym             & Lorem ipsum dolor sit amet \\         \hline Acronym                 & Lorem ipsum dolor sit amet \\             \hline          \end{tabular}         \end{table}          \end{document}      But, well, it doesn't work. :/ What is the caption for the first line? I'm lost. Do you know how to apply a specific style to every first header line of every table in a LaTeX document?


title: How to use OpenType math fonts with XeLaTex in MikTeX

text: I have installed the XTIS Math fonts on my Windows 8.1 computer by downloading the otf files in the main directory of the repo here: https://github.com/khaledhosny/xits-math, right clicking on them and clicking install. The minimal example I want to work is:               \documentclass{article}     \usepackage{unicode-math}     \setmathfont{XTIS Math}           \begin{document}     \end{document}      However, when I type this into TeXworks, I get the following message:               ))TFM file C:\Users\Kabelo\AppData\Local\MiKTeX\2.9\fonts/tfm//OT.tfm already exists.     miktex-xetex.exe: The font file could not be found.     miktex-xetex.exe: Data: XTIS Math Regular/OT      So how can I get this working?


title: Can LaTeX support multiple classes of hyphenation break point?

text: I've just come across an interesting snippet in New Hart's Rules (p.59): > The _New Oxford Spelling Dictionary_ therefore uses two levels of word > division -- 'preferred' divisions (marked |), which are acceptable under > almost any circumstances, and 'permitted' divisions (marked ¦), which are > not as good, given a choice. Thus _unhelpful_ is shown as _un|help¦ful_. This question extends LaTeX Hyphenation. This seems like an immensely good idea for improving hyphenation; is there a TeX format or package that provides an interface to this type of function? In particular, is there any way I can provide hyphenation priorities à la Liang for an arbitrary word of my choice? I couldn't find anything helpful in TeX by Topic, though Appendix H of The TeXbook seems to mention hyphenation priorities in relation to Liang's algorithm (1994, p.449)


title: Adding a label on a margin (instead of line number) in pseudo code

text: I would like to mark (e.g. with a *)a line in a pseudo code typesetted with the `algorithmic` package. I would like the label to appear on the left margin, instead of the line number. Is that possible?. I would like to have something like this:                 a = 5       b = 7     * if a < b then         ...       end if


title: Help me Please. table size by latex

text: ![enter image description here](http://i.stack.imgur.com/EW7GH.png) image 1 is very small and font size also small . how can I make like next image ![enter image description here](http://i.stack.imgur.com/C9iWP.png)               \documentclass[a4paper,oneside,12pt]{report}     \begin{document}     \usepackage{graphics}% for \resizebox          \begin{table}[htp]     %\restylefloat{table}      \centering\setlength\tabcolsep{3.5pt}      \small          %\centering \footnotesize\setlength{\tabcolsep}{0.5pt}     %\toprule     \resizebox{\textwidth}{!}{% fit on page     \begin{tabular}{l@{\hspace{3.5pt}} *{15}{c}}          %\begin{tabular}{l@{\hspace{1pt}} *{12}{c}}     \hline     \hline          %\bfseries cluster&     & \multicolumn{7}{l}{\parbox{5in}%       {\centering\textbf{previous study}\\       \rule[.6\baselineskip]{5in}{.5pt}}}     & \multicolumn{7}{l}{\parbox{5in}%       {\centering\textbf{present study}\\       \rule[.6\baselineskip]{5in}{.5pt}}}     \vspace{-1pt}\\     clusters & $RA_{J2000}$ &$DEc_{J2000}$& $r_{core}$& $r_{lim}$ & $\log(age)$&E$(B-V)$&d&$RA_{J2000}$&$DEc_{J2000}$& $r_{core}$& $r_{lim}$ &$\log(age)$&E$(B-V)$&d\\                       &(hms)&(dms)& (arcmin)&(arcmin)&(year)&(mag)&(Kpc)&(hms)&(dms)&(arcmin)&(arcmin)& (year)&(mag)&(Kpc)\\     \hline     \bfseries Berkeley 53              &$20 55 56$&$+51 02.8$& $2.5\pm0.1$&$\simeq 20$&$9.09\pm0.02$&$1.52\pm0.01$&$3.1\pm0.1$          &              &               & $4.19\pm0.28$ &$20\pm1.6$ &$9.10\pm0.05$  &$1.39\pm0.42$&$3240\pm440$\\          \bfseries Berkeley 53              &$20 55 56$&$+51 02.8$& $2.5\pm0.1$&$\simeq 20$&$9.09\pm0.02$&$1.52\pm0.01$&$3.1\pm0.1$          &              &               & $4.19\pm0.28$ &$20\pm1.6$ &$9.10\pm0.05$  &$1.39\pm0.42$&$3240\pm440$\\          \bfseries Berkeley 53              &$20 55 56$&$+51 02.8$& $2.5\pm0.1$&$\simeq 20$&$9.09\pm0.02$&$1.52\pm0.01$&$3.1\pm0.1$          &              &               & $4.19\pm0.28$ &$20\pm1.6$ &$9.10\pm0.05$  &$1.39\pm0.42$&$3240\pm440$\\          \bfseries Berkeley 53              &$20 55 56$&$+51 02.8$& $2.5\pm0.1$&$\simeq 20$&$9.09\pm0.02$&$1.52\pm0.01$&$3.1\pm0.1$          &              &               & $4.19\pm0.28$ &$20\pm1.6$ &$9.10\pm0.05$  &$1.39\pm0.42$&$3240\pm440$\\          \bfseries Berkeley 53              &$20 55 56$&$+51 02.8$& $2.5\pm0.1$&$\simeq 20$&$9.09\pm0.02$&$1.52\pm0.01$&$3.1\pm0.1$          &              &               & $4.19\pm0.28$ &$20\pm1.6$ &$9.10\pm0.05$  &$1.39\pm0.42$&$3240\pm440$\\     \hline     \hline     %\toprule     \end{tabular}}     \caption{astrophysical parameters obtained from ischrone fitting}\label{tab:comber}     %\end{sidewaystable}     \end{table}     \end{document}


title: Hebrew encoding

text: I have two systems, both running Ubuntu 12.04. On one system, I can LaTeX Hebrew without much problems. Babel complains about hyphenation but that's it. On the other system, the identical file does not compile. Here is a link to a copy of the .log file on Google Drive: http://bit.ly/1h1PjFT. Clearly the problem is with the encoding, particularly utf8x. I have tried with utf8 but then I get even more errors. I have utf8x installed (I think correctly, but then...). Here is the output from ls on `/us/share/texmf- texlive/tex/latex/ucs`:               autofe.sty   ldvc2000.fd  ltaenc.def   lucc2000.fd    ucsencs.def     c00enc.def   ldvenc.def   ltgc2000.fd  lucenc.def     ucshyper.sty     c10enc.def   letc2000.fd  ltgenc.def   mkrenc.def     ucs.sty     c40enc.def   letenc.def   ltlcmr.fd    mkrezra.fd     ucsutils.sty     c42enc.def   letgfzem.fd  ltlenc.def   mkrhadas.fd    UnicodeT.sfd     c61enc.def   letjiret.fd  ltwdsnol.fd  mkromega.fd    uni-global.def     cenccmn.tex  lklenc.def   ltwdsque.fd  mkrrashi.fd    utf8x.def     cp1252.enc   lklkli.fd    ltwdssin.fd  t2dcmr.fd      xscmr.fd     data         ltaarial.fd  ltwenc.def   t2denc.def     xsenc.def     ldvarial.fd  ltac2000.fd  lucarial.fd  tengwarDS.enc      Any help would be greatly appreciated.


title: Tutorials for beamer and other presentation packages

text: As I decided to use LaTeX to make a presentation and I'm a newbie, I would like a not-very-long tutorial that introduces all features of the beamer class package one can use along with its output. Is there any other package which is preferred over beamer?


title: What is the best looking pseudo code package?

text: I have stumbled across various pseudo code packages but can't seem to find that's simple and eye-candy and practical. What I'm looking for:   * Visually attractive structure (eye-candy) ( easy to look at -- understandable )    * Numbered   * Colored (optional)   * Title on top   * Practical and easy to use The one I'm using now is               \documentclass[12pt,a4paper]{report}     \usepackage{algorithm2e} %for psuedo code     \usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry}     \begin{document}     \begin{algorithm}[H] %or another one check      \caption{How to write algorithms}          \SetAlgoLined          \KwData{this text}          \KwResult{how to write algorithm with \LaTeX2e }          initialization\;          \While{not at end of this document}{           read current\;           \eIf{understand}{            go to next section\;            current section becomes this one\;            }{            go back to the beginning of current section\;           }          }          \end{algorithm}     \end{document}      which outputs ![enter image description here](http://i.stack.imgur.com/PDVNS.png) However, I do not really like how the code is presented here.


title: Is there  a common pgfplots styles/templates repository

text: I (try to) use the same plot layout in pgfplots everytime. I keep having to input the same details and although I do my best to cut and paste, it would be great if there were a simple set of chart types that could be used over and over again. I know the value of pgfplots and pgfplottables is the ability to change everything and anything but most people use the same simple plots each time. Basically, is there a simple repository/ set of templates for eg scatter plot, line plots, area charts, (no pie charts;) ), pareto plots, linked axes (like in a previous question of mine how to have linked axes on plots) and similar to this question on how to generate chart templates. I am not requesting Excel Templates but more simpler pgfplots styles which can be selected out of the box with minimal user adjustment/interaction. By all means have the user change titles, legend, marks etc but the overall layout can be a style. Should this be a community wiki question? Or for some hardliners out there should it be closed immediately and removed! EDIT: Following the comments from @JosephWright and @ChristianFeuersaenger I have decided to add the following: Would pgfplots users post some code of their favourite plot styles, giving the type of plot (Scatter, Bode, Pareto, Histogram, etc) and maybe a picture of it. (or at least an MWE so people can check it out themselves)


title: htlatex/tex4ht without hyperlinks in HTML file?

text: How do I disable the creation of hyperlink with `tex4ht`? They are unnecessary when preparing a paper for publication in one of those ... (insert any attribute you find appropriate) journals that require Word. I have removed the `hyperref` package, no luck. It doesn't appear in the logs, I have checked that. My command line is:               htlatex paper.tex "word" 'symbol/!' "-cvalidate"      The tables, figures and bibliography entries are accessible via hyperlinks. How do I get rid of the anchors and of the links? **EDIT** : The document in question uses the `natbib` package. Adding               \Configure{cite}{}{}{}{}     \Configure{bibitem}{}{}      to a custom `.cfg` file didn't change anything.


title: Biblatex: Bibliography for minimal Example doesn't appear in the PDF

text: i want to use the solution provided in Biblatex: Adding time information to "online" field and a label in front of url I tried to launch the minimal example provided by Guido but the Bibliography isn't appearing in PDF file. I made a new Tex file and inserted this               \documentclass[a4paper,      oneside,      12pt,      bibliography=totocnumbered,      listof=totocnumbered     ]{scrreprt}     \usepackage[english, ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage[babel,german=quotes]{csquotes}     \usepackage[automark]{scrpage2}     \usepackage[]{url}               \usepackage[backend=biber, style=authoryear, urldate=comp, dateabbrev=false]{biblatex}     \bibliography{source.bib}          \begin{filecontents}{biblatex-dm.cfg}         \DeclareDatamodelFields[type=field,datatype=literal,skipout=false]{urltime}     \end{filecontents}     \DeclareFieldFormat{url}{\newline\bibstring[\MakeUppercase]{url}\addcolon\addspace\url{#1}}     \DeclareFieldFormat{urltime}{#1}     \DeclareFieldFormat{urldate}{%       \iffieldundef{urlday}         {}         {\stripzeros{\thefield{urlday}}\adddot}%       \iffieldundef{urlmonth}         {}         {\stripzeros{\thefield{urlmonth}}\adddot}%       \printfield{urlyear}%     }          \renewbibmacro{url+urldate}{%       \printfield{url}\setunit{\addcomma\addspace}       \printurldate\addcomma\addspace       \printfield{urltime}}            \renewcommand{\newunitpunct}{\adddot}            \renewcommand{\labelnamepunct}{\addcomma}             \AtEveryBibitem{\clearfield{month}}                          \begin{document}     Latex is science \parencite{stack}          \clearpage               \printbibliography          \end{document}      Then i made a source.bib file and entered this:               @online{stack,         author = {Stack},         title = {Why {\LaTeX} is science},         month = {april},         year = 2012,         url = {www.tex.stackexchange.com},         urldate = {2013-04-29}     }       I use a portable TexMaker. What am i doing wrong? Thanks in advance Edit: it appears when i delete the argument backend=biber the bibliography is visible. Maybe there is something wrong with my TexMaker. Edit2: I make sure both my files (.tex and .bib) are saved, then compile PDFLaTeX BibTeX PDFLaTeX PDFLaTeX and show pdf in options\Configure Texmaker there is for PDFLaTeX : "../miktex/miktex/bin/pdflatex.exe" -interaction=nonstopmode %.tex BibTeX : "../miktex/miktex/bin/bibtex.exe" %.aux Compiler says process exited normally every time but there are some blue (minor i guess) errors like:               LaTeX Warning: File `biblatex-dm.cfg' already exists on the system.     LaTeX Warning: Citation 'stack' on page 1 undefined on input line 49.     [1     {C:/Users/as24707/Documents/latex_portable/latex_portable/miktex/pdftex/config/     pdftex.map}]     LaTeX Warning: Empty bibliography on input line 54.     (P:\fd\ProdDev\BE\Externe-User\Sawicki_Adam_as24707\Diplom\LaTex\test\Test1.aux     )     LaTeX Warning: There were undefined references.     Package biblatex Warning: Please (re)run Biber on the file:     (biblatex) Test1     (biblatex) and rerun LaTeX afterwards.     Package logreq Info: Writing requests to 'Test1.run.xml'.     )      Edit3: My TexMaker is version 1.9.9 wich is outdated. Im trying to set the 4.1 running. Im gonna check back later to let you know how it went. Thanks a lot for all the help so far:) Edit4: Ok im still far from ready. I installed portable versions of Miktex and Texmaker. Entry at Bib(la)Tex : Biber % doesnt work so i klicked on the blue foldery button an browsed for Biber file. Now it looks like this "C:/Users/as24707/Documents/latex_portable/latex_portable/MikTex/miktex/bin/biber.exe" % when i use f11 on my actual document i get notification that i should use biber (my file is not properly adjusted jet). On the MWE from the topic above i use f11 and get following log               Process started          Use of uninitialized value $llabel in concatenation (.) or string at Biber.pm line 1851.          Use of uninitialized value $llabel in concatenation (.) or string at Biber.pm line 1865. Use of uninitialized value $llabel in concatenation (.) or string at Biber.pm line 1880.          Use of uninitialized value $llabel in concatenation (.) or string at Biber.pm line 2689.          Use of uninitialized value $llabel in concatenation (.) or string at Biber.pm line 2820.          Use of uninitialized value $llabel in concatenation (.) or string at Biber.pm line 1887.          Use of uninitialized value in string eq at Biber/Output/bbl.pm line 477.          Use of uninitialized value in string eq at Biber/Output/bbl.pm line 477. Use of uninitialized value in string eq at Biber/SortLists.pm line 77. Use of uninitialized value $label in string eq at Biber/SortLists.pm line 77. Use of uninitialized value $listlabel in concatenation (.) or string at Biber/Output/bbl.pm line 491. Use of uninitialized value $listlabel in concatenation (.) or string at Biber/Output/bbl.pm line 493.          INFO - This is Biber 1.4 INFO - Logfile is 'Test1.blg' INFO - Reading 'Test1.bcf' WARN - Warning: Found biblatex control file version 1.7, expected version 2.2 INFO - Found 1 citekeys in bib section 0 INFO - Processing section 0 INFO - Looking for bibtex format file 'source.bib' for section 0 INFO - Decoding LaTeX character macros into UTF-8 INFO - Found BibTeX data source 'source.bib' WARN - Labelname candidate 'shortauthor' is not a name field - skipping WARN - Labelname candidate 'author' is not a name field - skipping WARN - Labelname candidate 'shorteditor' is not a name field - skipping WARN - Labelname candidate 'editor' is not a name field - skipping WARN - Labelname candidate 'translator' is not a name field - skipping INFO - Overriding locale 'English_United States.1252' default tailoring 'variable = shifted' with 'variable = non-ignorable' INFO - Sorting 'entry' list '' keys INFO - No sort tailoring available for locale 'English_United States.1252' INFO - Writing 'Test1.bbl' with encoding 'UTF-8' INFO - Output to Test1.bbl INFO - WARNINGS: 6          Process exited normally      The bibliography is still not there unfortunately:(


title: How to get the right \baselinskip in the annotation with authortitle-dw and smaller font

text: If I change the font size of the annotations in my bibliography the size changes but the baseline skip doesn’t. I know that TeX uses the last font in a paragraph to calculate the baseline skip, but I don’t know how I can fix this problem. At this image it’s obvious that the annotations is set with a too big skip. ![problem with baseline skip](http://i.stack.imgur.com/FmQx0.png)               \documentclass{article}          \usepackage[%        backend=biber,        style=authortitle-dw,        annotation=true,     ]{biblatex}     \addbibresource{biblatex-examples.bib}          % extreme values make the problem obvious     \renewcommand{\annotationfont}{\scriptsize}     \usepackage[textwidth=3cm]{geometry}          \begin{document}     \nocite{bertram}     \printbibliography     \end{document}      I tried to set the annotation with a `\parbox` with               \DeclareFieldFormat{annotation}{%        \par\vspace{-0.7\baselineskip}        \parbox{\textwidth}{\annotationfont #1\addperiod}.     }      but this leads to an extra period that I can’t delete. Furthermor it seems like a bad hack to me …   (I made `\annotationfont` red for the next image to make the extra period visible.) ![extra period](http://i.stack.imgur.com/ePgP7.png)


title: How can I change the vertical skip between main body text and footnote with the eledmac package?

text: I have this code:               \documentclass{book}          \usepackage{blindtext}     \usepackage{eledmac}          \patchcmd{\twocolfootfmtX}{\raggedright}{}{}{}     \foottwocolX{A}%     \let\footnote\footnoteA          \begin{document}         \blindtext[2]\footnote{\blindtext[2]}\blindtext[2]     \end{document}      I tried with `\setlength{\skip\footins}{30pt}` before and after eledmac package without any result. Any solution?


title: Heavy arrow tips for xy-pic

text: Arrows in `xy-pic` have narrow heads, but I need heavy tips for my graphs. I tried the following arrow definition, but the tip of the arrow enters into the circle of graph node.               \documentclass{report}     \usepackage[all]{xy}          \newdir{|>}{%     !/4.5pt/@{|}*:(1,-.2)@^{>}*:(1,+.2)@_{>}}          \begin{document}     \[     \xygraph{     !{<0cm,0cm>;<2cm,0cm>:<0cm,2cm>::}     !{(0,0)}*+=[o]+[F]{1}="1"     !{(1,0)}*+=[o]+[F]{2}="2"     "1":@{|>}"2"     }      \]     \end{document}      Would you please help me to avoid this problem? How can I fill insdie the arrow tip? Or preferably get something like: ![Arrow tips](http://i.stack.imgur.com/xxMR1.jpg)


title: Lyx Beamer presentations error ( \lyxframeend)

text: I am trying to write my thesis presentation with Beamer on Lyx , but i have an issue which is driving me crazy.. When i add a section/part or something else i get this error :                   \lyxframeend                      {}\section*{fghfgh}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.      I also attache a screenshot in order to understand my issue : ![enter image description here](http://i.stack.imgur.com/pQL7L.png) Any ideas please ?


title: How can I add side-icons in a LaTeX book?

text: Most of the technical books I've read use what I call "side icons" to mark out certain types of content. Stuff like "watch out for this" and "helpful tip", with corresponding icons. Here's an example of what I mean (the "key point" and "coding horror" icons): ![enter image description here](http://i.stack.imgur.com/z6pjR.png) Taken from http://www.codinghorror.com/blog/2007/12/on-the-meaning-of-coding- horror.html How can I do this in LaTeX (with `\documentclass{book}`)? To be clear, I want to be able to attach icons (with captions) to text so that the icons are _outside_ the normal flow of the text. * * * I have tried `\marginpar` (reversed), it's always pushing a portion of the image out of the paper. For example, the following code:               \reversemarginpar     \chapter{Getting started}     \pagestyle{headings}     AABBB     \marginpar{\includegraphics[scale=0.3]{images/example}}          CCC      gives: ![enter image description here](http://i.stack.imgur.com/jLr53.png) I get similar results with `\marginnote` using http://upload.wikimedia.org/wikipedia/en/a/a9/Example.jpg.


title: Scatterplot with marginal histograms using pgfplots

text: I've tried to use pgfplots to create a scatterplot with marginal histograms like it can be seen here: http://proteome- software.wikispaces.com/file/view/Scatter_histograms.png/30123503/Scatter_histograms.png Creating the histograms and the scatterplot alone works, but putting it together results in a desaster. Does pgfplots supports this kind of graph?


title: Table of Contents numbered in Roman in Lyx

text: I use Lyx 2.1, document class : report. I want the pages table of contents, list of figures and list of tables etc. be numbered with roman numerals. I put this tag before the table of Contents :               \pagenumbering{Roman}      and this tag before the general introduction :               \cleardoublepage\pagenumbering{arabic}      The problem for Roman numerals, only the 1st page Table of Contents is numbered. I want the other pages will be numbered as (the 2nd page table of contents and list of figures etc). ![enter image description here](http://i.stack.imgur.com/moWYO.png) ![enter image description here](http://i.stack.imgur.com/DLkAU.png)               \documentclass{report}           \usepackage{setspace}     \begin{document}     \begin{onehalfspace}     \pagenumbering{roman}\tableofcontents{}          \listoffigures          \end{onehalfspace}          \listoftables               \pagenumbering{arabic}               \chapter*{\noun{Inroduction générale}\setcounter{page}{1}}          \end{document} % was missing


title: Multiply-defined labels warnings with frame labels in Beamer with againframe

text: This question is pretty much identical to this (to the best of my knowledge) unanswered question from comp.text.tex, which, at the moment, is the top Google hit for this problem: when specifying frame labels in Beamer with the intention of using them with the `\againframe` command, LaTeX begins spitting out errors over "multiply-defined labels". Here's a specific, compilable example to demonstrate this issue:               \documentclass{beamer}     \begin{document}          \begin{frame}<1>[label=firstframe]{The first frame}         \begin{itemize}             \item This is not the fourth slide                 \pause             \item Ah, but now it \emph{is} the fourth slide!         \end{itemize}     \end{frame}          \begin{frame}{The second frame}         This is a boring second slide.     \end{frame}          \againframe{firstframe}          \end{document}      The intention here is to display the first frame's first bullet point in the first slide, then again on the third slide, and then both bullet points on the fourth slide. LaTeX will report the following warnings when compiling this presentation:               LaTeX Warning: Label `firstframe<1>' multiply defined.               LaTeX Warning: Label `firstframe' multiply defined.      How does one remove the occurrence of these warnings, other than avoiding the use of `\againframe`?


title: Beamer frame numbering in appendix

text: I have a beamer presentation in which I have some additional slides in an appendix. The additional slides are only there in case someone asks a specific question; I won't necessarily have to use any of them. I am using a theme that prints both the current frame number and the total number of frames on the bottom of each page. My problem is that the total number of frames includes all of the "extra" frames I have in the appendix. Let's say I have 20 "real" frames and then 5 additional frames in the appendix. The problem now is that `\inserttotalframenumber` (which is what the theme uses to print the total number of frames) returns 25. This is misleading to the audience because I may never even present any of the 5 additional frames. The ideal behavior would be for `\inserttotalframenumber` to return 20, not 25. If I did advance to one of the appendix frames then I would like the frame to be "26/25", "27/25", and so on. How can this be done? **Edit** : I see that `\inserttotalframenumber` is defined in `beamerbasemisc.sty` by writing the value of the `\c@framenumber` counter to the `.aux` file at the end of the document. I guess one way to achieve my desired behavior is to do something like               \AtEndDocument{       \immediate\write\@auxout{\string\@writefile{nav}%         {\noexpand\headcommand{\noexpand\def\noexpand\inserttotalframenumber{\insertframenumber}}}}     }      on the last "real" slide of my document. That seems like a bit of a hack though. Is there a better way?


title: Margin Figures/Captions

text: I have two figure/caption related questions. Firstly, in many textbooks, it is customary to put thin figures (along with their captions) entirely in the outer margin of the page. What is the most elegant way of doing this in LaTeX? Secondly, for wider figures many books set the figure to be the width of the page (so spewing out into the outer margin) and then place the caption in the margin space below the figure. How can one achieve this effect in LaTeX?


title: Stationary wrapfigure forced to float

text: I have been using the wrapfigure for quite some time now and today, the following problem occured: My figure is floating instead of text being wrapped around it.               \documentclass[a4paper]{article}     \usepackage[margin=2cm]{geometry}     \usepackage{ngerman}     \usepackage{amsmath,mathtools}     \usepackage[utf8]{inputenc}     \usepackage{multicol}     \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{ulem}     \usepackage{color}     \usepackage{xcolor,colortbl}     \usepackage{graphicx}     \usepackage{amssymb}     \usepackage{wrapfig}     \usepackage{enumitem}     \usetikzlibrary{patterns}     \setlist[itemize]{leftmargin=*}     \begin{document}     \subsection{Durchgearbeitete Beispiele}     \begin{wrapfigure}{r}{0.8\textwidth}     \begin{tikzpicture}[scale=0.7]     \draw[step=0.5,very thin,color=lightgray](17,11)grid(0,0);     \end{tikzpicture}     \end{wrapfigure}     \setlist[1]{itemsep=-3pt}     \begin{itemize}     \item ...     \item ...     \item ...     \item ...     \end{itemize}     \underline{Vorgehen}     \begin{enumerate}     \item ...     \item ...     \item ...     \item ...     \end{enumerate}     \end{document}


title: How to insert the author picture in the biography picture box of the IEEE LaTeX Template

text: How do I put the author picture in the picture frame box of a journal paper? I tried using this code but the picture wasn't placed in the box, it is outside the box. Here is the code:               \begin{biography}{{\includegraphics[width=25mm,height=32mm,clip,keepaspectratio]{a.eps}}}     Katende Allan was born in  Rubaga,Wakiso District, on the 6th of August 1989.     He is a final year student persuing a Bachelors Degree  in Mechanical engineering      from Makerere University, Kampala, Uganda.  He is currently in piloting a project      in Mechatronics on the Design,Simulation\&Control of an articular drilling arm      with a major emphasis on Electronics\&Controls.     \end{biography}       Here is the outcome of the PDF: ![enter image description here](http://i.stack.imgur.com/RTyGT.png)


title: How to modify \pstInterFF to find the intersection point between a constant m and a function f'(x) without having to explicitly find f'(x) from f(x)?

text: ![enter image description here](http://i.stack.imgur.com/Yjw3k.png)               \documentclass[preview,border=12pt]{standalone}     \usepackage{pst-plot,pst-eucl}          \def\f(#1){((#1)*(#1-5)*(#1-6)/4+1.5*(#1)-5)}     \def\xi{1}     \def\xf{6.5}     \def\m{((\f(\xf)-\f(\xi))/(\xf-\xi))}          \def\fp(#1){}% is f'(x)           % I have to use the following because the newest pst-eucl has not been installed     \pstVerb{/I2P {exec AlgParser cvx exec} def}          \begin{document}     How to find the point $c$ such that     \[     f'(c) = \frac{f(b)-f(a)}{b-a}     \]          \small     \begin{verbatim}     \begin{center}     \begin{pspicture}[algebraic,saveNodeCoors](-1,-1)(8,8)         \psaxes[labels=none,ticks=none]{->}(0,0)(-.5,-.5)(7.5,7.5)[$x$,0][$y$,90]         \psplot[linecolor=blue]{.75}{6.75}{\f(x)}         %\pstInterFF[]{{\fp(x)} I2P}{{\m} I2P}{4}{c}% has not been implemented yet.         %\psCoordinate(c)     \end{pspicture}     \end{center}     \end{verbatim}     \end{document}      Shortly speaking, how to modify `\pstInterFF` to find the intersection point between a constant function `m` and a function `f'(x)` without having to explicitly find `f'(x)` from `f(x)`?


title: TikZ: Drawing double-headed arrows within a node

text: Am using the amazing TikZ software to draw figures for a book chapter. Am very pleased with the quality of the figures I've been able to create. Unfortunately, I've gotten a bit stuck with just one thing. The code below illustrates the part of the figure I'm struggling with. The drawing is essentially correct. Trouble is the double-headed arrows look terrible. The ends of the arrows don't point to r1j and r3j the way they should and the arrow heads at the top and the bottom are superimposed on one another when there really ought to be some separation between them. Was hoping someone could show me how to change this so it looks better. Occurs to me it might be necessary to increase the vertical space between r1j, r2j, r3j, for the arrows to look right. If so, then I think it probably makes sense to do that.               \documentclass[10pt]{article}          %%%% Packages %%%%          \usepackage{here}     \usepackage{tikz}     \usetikzlibrary{calc,shapes,shapes.geometric}     \usepackage{hyperref}          %%%% Set pdf zoom to 100% %%%%          \hypersetup{pdfstartview={XYZ null null 1.00}, pdfview={XYZ null null 1.00}}          %%%% TikZ graphics styles/commands %%%%          \tikzstyle{arr}=[-latex, black, line width=0.5pt]     \tikzstyle{doublearr}=[latex-latex, black, line width=0.5pt]     \tikzstyle{input}=[font=\small\sffamily\bfseries]     \tikzstyle{rect}=[rectangle, draw=black, font=\small\sffamily\bfseries, inner sep=9pt]          \begin{document}          \newcommand{\rlist}{     \left\{     \begin{array}{cl}     r_{1j} \\      r_{2j} \\      r_{3j}     \end{array}     \right.     }          \begin{figure}[H]     \begin{center}     \begin{tikzpicture}[auto]          \node[rect]                     (Yij)            at (26, 0) {$LifeSat_{ij}$};     \node[input]                    (rij)            at (28.5, 0) {$r_{ij} \rlist$};          \draw [arr] (rij)                                to (Yij);     \draw [doublearr, bend left]    (rij.north east) to (rij.south east);     \draw [doublearr, bend left]    (rij.north east) to (rij.east);     \draw [doublearr, bend left]    (rij.east)       to (rij.south east);          \end{tikzpicture}     \end{center}     \end{figure}          \end{document}


title: Content page, page numbers and few images missing after converting from LaTeX to HTML using htlatex

text: I am trying to make a User Manual in both PDF and HTML format. I have generated the HTML file using `htlatex` but my content page, page numbers and few of my images are missing from it. My images are all in JPG format. This is my main `.tex` file:                \documentclass[11pt,a4paper]{report}               \usepackage{fancyhdr}             \makeatletter             \@ifpackageloaded{tex4ht}{%               \usepackage[dvips]{color,graphicx}               \usepackage[tex4ht]{hyperref}             }{%               \usepackage[pdftex]{color,graphicx}               \usepackage{hyperref}                    \setlength{\headwidth}{\textwidth}                    \fancyhead[L]{\rightmark}                \fancyhead[R]{\includegraphics[height=0.43in]{Images/Fugrologo.eps}} % right with logo          \fancyfoot{}%to remove centered default footer                \fancyfoot[L]{Fugro Roadware Inc.}                \fancyfoot[R]{\thepage \  of \pageref*{LastPage}}% page# of reference page(last)                    \fancypagestyle{plain}% no header, footer contains page number centered {                \fancyhf{} %for the pages outside of content, list of figures etc.                \fancyhead[R]{ \includegraphics[height=0.43in]{Images/Fugrologo.eps}} % right with logo                    \fancyfoot[L]{Fugro Roadware Inc.} \fancyfoot[R]{\thepage \  of \pageref*{LastPage}}                     \pagestyle{fancy}               \usepackage[absolute]{textpos}               \usepackage{fullpage}             }             \makeatother                    \usepackage{epstopdf}               \usepackage{lastpage}               \usepackage{makeidx}               \usepackage[english]{babel}               \usepackage{float}               \usepackage{subfig}               \usepackage{multirow}               \usepackage{appendix}              \usepackage{verbatim}                       \renewcommand{\appendixtocname}{Appendix: Algorithm Parameters} \renewcommand{\appendixpagename}{Appendix-Algorithm Parameters}                      \setlength{\topmargin}{-1.3cm} \setlength{\headsep}{0.6cm}                      \renewcommand{\tablename}{\bfseries{Table}}                      %The top margin above a chapter can be changed using the titlesec package                   \hypersetup{                     bookmarks=true,         % show bookmarks bar?                     unicode=false,          % non-Latin characters in Acrobat’s bookmarks                     pdftoolbar=true,        % show Acrobat’s toolbar?                     pdfmenubar=true,        % show Acrobat’s menu?                     pdffitwindow=false,     % window fit to page when opened                     pdfstartview={FitH},    % fits the width of the page to the window                     pdftitle={My title},    % title                     pdfauthor={Author},     % author                     pdfsubject={Subject},   % subject of the document                     pdfcreator={Creator},   % creator of the document                     pdfproducer={Producer}, % producer of the document                     pdfkeywords={keyword1} {key2} {key3}, % list of keywords                     pdfnewwindow=true,      % links in new window                     colorlinks=true,       % false: boxed links; true: colored links                     linkcolor=black,          % color of internal links                     citecolor=green,        % color of links to bibliography                     filecolor=magenta,      % color of file links                     urlcolor=cyan           % color of external links }                 }                 \input{Macro} %\renewcommand{\caption}[1]{{\underline{#1}}}                      \makeindex                      \renewcommand{\headheight}{0.6in} %Space above header \renewcommand{\headrulewidth}{1pt} %thickness of line under header \renewcommand{\footrulewidth}{1pt} \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} %thickness of line on title page          \begin{document}          \tableofcontents      \listoffigures      \listoftables           \input {bhg fgfgf sadasd}          \appendix      \appendixpage      \addappheadtotoc      \printindex     \clearpage                \end{document}


title: Up-to-date TUGboat bibliography database

text: Where can I find machine-readable bibliographic data for at least all publicly-available TUGboat articles? I've found CTAN:/info/digests/tugboat/t-of-c/, but that doesn't seem to have been updated since 2005, so I imagine there must be something newer, somewhere? (Perhaps the README there should refer to the newer thing?) (Note that HTML doesn't count unless it's reasonably simple to extract the bibliographic data from the DOM/infoset.)


title: ignorespace and unskip in verbatim/listings?

text: I am writing a `\bashDemo` macro that will (a) execute its argument in a shell, e.g., bash, script, and (b) display the argument in a listings. So,               \bashDemo     ls -ls > myfiles     \END      will both run `ls -ls >myfiles` using the bash command shell, and will display using `lstlistings` this command within the document. The problem I have is that in consuming characters in a verbatim fashion, I have a newline both at the beginning and at the end of the argument. How do I get rid of these? Here is my code (it is based on `tobiShell.sty`):               \lstdefinestyle{bash}{basicstyle={\ttfamily}}     \newwrite\ScriptFile     \edef\ScriptFileName{\jobname.sh}          % Store the argument into our script file.     \newcommand\generateScriptFile[1]{%               \immediate\openout\ScriptFile\ScriptFileName         \immediate\write\ScriptFile{#1}%         \immediate\closeout\ScriptFile     }          % Store the list of tokens in the argument into our script file     % and then list the contents of that file, prefixed by a "%".     \newcommand\listScriptFile[1]{%        % The following does not work as expected.       \generateScriptFile{\%\ignorespaces #1\unskip}\relax       \lstinputlisting[style=bash]{\bashescScriptFileName}\relax       \relax     }          \newcommand\bashDemo{\bashDemoI}          {% Define \bashDemoI       \catcode`\^^M=13%       \gdef\bashDemoI{%         \bgroup         \def\do##1{\catcode`##1 12\relax}%         \catcode`\^^M=13%         \def^^M{^^J}%         \dospecials%         \bashDemoII%                }%     }          {% Define \bashDemoII       \catcode`\@=0\relax%       @catcode`@\=12@relax%       @gdef@bashDemoII#1\END{@relax%          @generateScriptFile{#1}@relax%         @immediate@write18{bash@space@ScriptFileName@space}@relax%         @listScriptFile{#1}@relax%         @egroup@relax%       }@relax%     }


title: amslatex plus endnotes

text: I have a document that uses `\usepackage{endnotes}`. When the document class is `book` it works fine but when the document class is `amsbook`, I exceed TeX capacity with `stack_size`, `save_size` and `param_size` set as large is `pdftex` will allow. 1) Any suggestions as to why `amsbook` doesn't like `endnotes`? 2) Is there an `endnotes` package that does get along with `amsbook`? Thanks for any insight.


title: center pages vertically automatically

text: I have a bunch of graphics and text on pages that I would like to automatically center vertically. In some cases there is extra whitespace due to page breaks that leave a large amount of footer space that makes the page look top heavy. I do not want to manually add vertical space since the organization of graphics and text may change forcing me to update all the vfill's or vspace. Is there a way to have tex this for me behind the scenes?


title: How to make memoir not put bibliography on next recto page

text: I am using two columns in a memoir document and when I place a bibliography using bibtex for some reason it ends up on the next recto page. I am writing a book with multiple chapters and I want each chapter to have it's own bibliography. Is it possible to set such a bibliography just as any other section and make it fit in the general two column flow of the text without having it breaking out on a new page?


title: Different compilation times with different Operating Systems

text: I have noticed that when compiling or rather typesetting with XeLaTeX, I experience very different compilation times on different Operating Systems. When I typeset on Windows, the compilation process seems to “hang” for a short while (around 10 seconds or so), especially after `eu1lmr.fd`, i. e. this is the last line in the console for this time and nothing seems to happen. Then the process goes back to “normal speed” where the lines are rushing up quickly. On Mac OS, I can compile just fine and the lines are running up smoothly and there is no such “interruption” of the typesetting process. I am using TeXworks on Windows 7 and TeXShop and TeXworks on Mac OS X 10.7. I have TeXLive 2011 on a Ubuntu 11.10 server with `x86_64-darwin` and `win32` packages. To me this phenomenon seems document-independent, this is why I am not providing a MWE. Why does it occur, though? Thank you in advance for any information you are able to provide.


title: Context: Vertical-Align Image in Table Cell

text: I'd like to vertically center the alignment of an image in a table cell. The Text is (like usual) vertically centered, but the images continue to stick to the top of the cell.               \starttable[|l|l|]     \NC  Darstellung \VL Bedeutung \SR     \HL     \NC {\externalfigure[buttonform][height=0.8\lineheight]} \VL Mausklick zum Aktivieren (nötige Eingabeaktion) \SR     \HL     \NC {\externalfigure[buttontext][frame=on, height=0.8\lineheight]}\VL Bestätigung (zu erwartendes Resultat) \LR     \HL     \stoptable      Is there any known way to position the images (which are as high as a text line) at the same vertical position as the Text in the other cells?


title: Pass TeX macro to gnuplot environment - gnuplottex

text: I want to pass a TeX macro to the `gnuplottex` environment gnuplot. The example here is rather trivial but help solving would be appreciated. The end goal is to adapt the `gnuplottex` code to call `octave` instead and return a curve fit string in algebraic notation, via a text file, for use in a `pstricks` plot. Anyway although the example is trivial the solution would be helpful for non-trivial use.               \documentclass[]{article}     %     \usepackage[miktex]{gnuplottex}     %     \makeatletter     \def\plotme{\string 2*x}     \makeatother     %     \begin{document}     \pagestyle{empty}     \pagenumbering{arabic}     \begin{figure}     \begin{gnuplot}[terminal=postscript,terminaloptions=eps,scale=1]     plot [x=20000:20005] \plotme      \end{gnuplot}     \end{figure}     \end{document}


title: TexLive 2012, Xelatex and pst-eucl

text: pst-eucl is doesn't seem to play very well with xelatex on OSX. I used it in the past with success, but it doesn't seem to want to play well with the TexLive 2012 installation when running on Mac. Hardly anything compiles, most attemts leads to the compiler reporting a "Unrecoverable error". Even copying and pasting examples directly from http://mirror.ox.ac.uk/sites/ctan.org/graphics/pstricks/contrib/pst-eucl/pst- eucl-doc.pdf doesn't work. A few of the examples do work, but must dont. The following is an example of something that doesn't work               \documentclass[a4paper]{article}     \usepackage{pstricks}     \usepackage{pst-eucl}     \begin{document}          \begin{pspicture}     \psset{arrowscale=2}     \pstGeonode[PosAngle=-135](-1.5,-.2){A}(.5,.2){B}(0,-2){D}     \pstRotation[PosAngle=90, RotAngle=60, CodeFig=true,                  CodeFigColor=blue,                  TransformLabel=\frac{\pi}{3}]{A}{B}[C]     \pstRotation[AngleCoef=.5, RotAngle=\pstAngleAOB{B}{A}{C},                  CodeFigColor=red, CodeFig=true,                  TransformLabel=\frac{1}{2}\widehat{BAC}]{A}{D}[E]          \end{pspicture}          \end{document}      Anybody got a suggestion on how to make pst-eucl play together with xelatex on a TexLive installation on macosx?


title: Writing the Existential Quantifier with Lower and Upper Limits

text: When I write `$$\sum_{i=1}^{n} x_{i}$$` I obtain indices which are below and above the symbol. I want to write the existential quantifier with this same formatting, but when I try to do so, it appears as `$$\exists_{i=1}^{n} x_{i}$$` with the indices written to the right of the symbol on the bottom and top, respectively. Is there any way to change this so that I have a big `$\exists$` symbol where the `$\Sigma$` is?


title: How do I change the background color of a footer in beamer

text: I know just enough about `beamer` to be a danger to myself. I am trying to change the color of a footer in `Boadilla` and am struggling. First, I have declared               \usecolortheme[named=black]{structure}      so that I get black text for frame titles. (Probably neither necessary nor terribly elegant.) I would like the background of the footer to be a light blue with a yellow `\hrule` across the top. I am using the following code:               \makeatother     \setbeamertemplate{footline}     {     \leavevmode%     \hbox{%     \begin{beamercolorbox}[color=blue, wd=\paperwidth,ht=1in,dp=1ex,center]{title in head/foot}%     \usebeamerfont{title in head/foot}\hfill\insertshorttitle\hfill\insertframenumber{}     \end{beamercolorbox}}%     \vskip0pt%     }     \makeatletter     \setbeamertemplate{navigation symbols}{}      I can't seem to make the background color change. Any help available?


title: Separate table of appendices - pdf bookmarks & avoid previous chapter's format

text: I'm trying to format my thesis which requires a seperate list of appendices. Thanks to a really useful post - Creating a separate list of appendices with tocloft - I have the list up and running. I'm using my university thesis class (`ut-thesis`) which from my understanding is based on the `report` class. My questions (and yes I am a complete newbie) are, given the setup at the answer above:   1. How can get the appendices to show up as PDF bookmarks? The hyperlink from the list to the page is already working. I'm just missing the bookmark.    2. My appendices have the previous section's header (Bibliography) starting from the second page of the chapter. How can I have this be the correct Appendix X heading? Here is the code from that previous post. The only modification I made was to change the section to chapter (as the `UTthesis.cls` has chapters) and subsection to section. It is included as a separate file called commands.               \newcommand{\listappendixname}{List of Appendices}     \newlistof{appendix}{app}{\listappendixname}     \setcounter{appdepth}{2}         \renewcommand{\theappendix}{\Alph{appendix}}     \renewcommand{\cftappendixpresnum}{Appendix\space}     \setlength{\cftbeforeappendixskip}{\baselineskip}     \setlength{\cftappendixnumwidth}{1in}     \newlistentry[appendix]{subappendix}{app}{1}     \renewcommand{\thesubappendix}{\theappendix.\arabic{subappendix}}     \renewcommand{\cftsubappendixpresnum}{Appendix\space}     \setlength{\cftsubappendixnumwidth}{1in}     \setlength{\cftsubappendixindent}{0em}          \newcommand{\myappendix}[1]{%       \refstepcounter{appendix}%       \chapter*{Appendix \theappendix\space #1}%       \addcontentsline{app}{appendix}{\protect\numberline{\theappendix}#1}%       \par     }          \newcommand{\subappendix}[1]{%       \refstepcounter{subappendix}%       \section*{\thesubappendix\space #1}%       \addcontentsline{app}{subappendix}{\protect\numberline{\thesubappendix}#1}%     }      Also if it is helpful here is an example of my appendix file called `JaccardCode`               \myappendix{Code for Extension of Measure}         \begin{lstlisting}         code         \end{lstlisting}      And finally here is a stripped down version of my main file. My apologies if I included too much information, as a newbie I just wasn't sure what would be useful.               \documentclass[]{ut-thesis}          \usepackage{graphicx}      \usepackage{booktabs}     \usepackage{multirow}     \usepackage{tocloft}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{subfig}     \usepackage{listings}          \usepackage{xr-hyper}     \usepackage[colorlinks=true, allcolors=black]{hyperref}          \degree{Doctor of Philosophy}     \department{Computer Science}     \gradyear{1999}     \author{Fran\c{c}ois Pitt}     \title{UT-Thesis Class File Example}                    \setcounter{tocdepth}{2}          \begin{document}          \input{commands}          \begin{preliminary}          \maketitle          \begin{abstract}          \end{abstract}          \tableofcontents     \listoftables     \listoffigures     \listofmyequations     \listofappendix          \end{preliminary}          \include {Introduction}     \include {RelatedLit}     \include {ObjectiveI}     \include {ObjectiveII}     \include {ObjectiveIII}     \include {ObjectiveIV}     \include {Conclusion}               \addcontentsline{toc}{chapter}{Bibliography}     \bibliographystyle{vancouver}     \bibliography{thesis}          \include{JaccardCode}     \addcontentsline{toc}{chapter}{Appendices}     \end{document}


title: How to programmatically create sections in LaTeX

text: In the simplest form of the problem I am facing, I need to define a command that accepts two parameters, uses the first to put some contents in the document exactly where the command is invoked, and save the second parameter to be used later in the document. To be specific, I am defining a command to help me fill an activities report. The command will accept the description of some activity (first parameter) and the name of a file that proves that the activity was performed (a scanned page or a PDF) (the second parameter). The command must format the first parameter in a nice table and add a `\ref` to the PDF, which will be automatically included in a section at the end of the document, with the corresponding `\label`. Right now I use the label as the second parameter and include the file by hand, as shown in the example below.               \documentclass[]{article}          \newcounter{ctannex}          \DeclareRobustCommand{\annex}[1]{%        \refstepcounter{ctannex}%        \label{#1} %         Annex \arabic{ctannex} %     }                    \newcounter{ctactivity}          \DeclareRobustCommand{\activity}[3]{%        \refstepcounter{ctactivity}%        \label{#1} %        Activity \arabic{ctactivity}\\ %        Description: #3\\ %        Receipt: \ref{#2}     }               \usepackage{graphicx}          \begin{document}          \section{Activities}     \begin{itemize}      \item \activity{actLabel}{annexLabel}{nothing, really}     \end{itemize}               \section{Annexes}     \begin{itemize}     \item \annex{annexLabel}           \includegraphics[width=\textwidth]{falta}     \end{itemize}          \end{document}      Ideally I would have the command called just as               \activity{actLabel}{file.png}{nothing, really}


title: Redefine the default depth of superscript and subscript document-wide

text: The behavior of subscript and supscript operator `_` and `^` is like a blackbox to me, I am curious if I could redefine the behavior of them globally for a document. I searched the forum and found several threads in which partially this question had been addressed:   * is it possible to change the depth of subscripts?: Joseph said about the `{subdepth}` package, but it just adjust redefining the subscript behavior when there is no superscript, and it is not customizable.   * How to raise a subscript?: In this thread a more customizable option is presented in the accepted answer of Harald Hanche-Olsen, in which he defined the a nice newcommand snippet that I am using right now for tuning a specific sub/super-script, the command `$\Letter_{\raisemath{2pt}{subscript}}$` would do the trick locally if we add his code snippet into the preamble. My own solution right now is to define an `xsub` and an `xsup` manually like the following:                \newcommand{\xsub}[3]{{#1}_{\raisebox{#2}{\scriptsize$#3$}}}       But this is somewhat way too clunky, it makes me wanna micro-adjust every subscript position manually, quite inefficient for me at times. Here I wonder if we could redefine a document-wide `_` behavior such that every time `_` is used, the `\raisebox{1pt}` is gonna be applied, or it is not possible to change the behavior `_` and `^` in mathmode at all.


title: Problem of newenvironment usage with several parameters

text: I am trying to use `\newenvironment`, written by somebody else: with this code:               \documentclass[10pt,a4paper]{article}     \usepackage[latin1]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}               \newenvironment{alignedDescription}[2][0pt]       {\begin{list}{}%         {\renewcommand\makelabel[1]{\textsf{\bf##1}\hfil}%          \settowidth\labelwidth{\makelabel{#2}}%          \setlength\leftmargin{\labelwidth+\labelsep + #1}}}%       {\end{list}}          \begin{document}               \begin{alignedDescription}{A}{B}     \item A     \item B     \end{alignedDescription}          \end{document}      I do not understand how it works. But for sure it does not work properly! It shows an error. Could you help me to understand how does this enviroment work? I've googled, but without any help for my problem.


title: pgfplots: color a (3D) surf using arbitrary RGB colors

text: I would like to color a surf using arbitrary _RGB_ colors (unlike this question, which just colors the surf using the colormap). In this minimal example (which plots the `x+y` function), I would like the color of each patch to be `red=x, green=y, blue=x*y` for example. Bonus points if I can also set the opacity `:)` . I think this can be done using `point meta=explicit symbolic` or `point meta=Tex code symbolic`, but I don't know how to use the metadata afterwards.               \documentclass{article}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=1.7}     \usepgfplotslibrary{patchplots}     \begin{document}          \begin{tikzpicture}       \begin{axis}         \addplot3[surf] { x + y };       \end{axis}     \end{tikzpicture}          \end{document}


title: What is "plain TeX"?

text: I occasionally see a statement that plain TeX is not the same as TeX, because plain TeX is already a format. **What is plain TeX, and what is the difference to TeX proper?** Some answers are here (The differences between TeX engines), but I am looking for a definitive summary.


title: Center subfigures; fix TikZ error

text: I am trying to center some figures produced by TikZ. In my example, I have three large Tikz pictures that are separate figures. I also have the same three pictures, but this time as subfigures. All figures are not exactly centered in the document (they might appear to be centered, but they're slightly hanging left). Also, the very last Tikz picture is not correct; lines have been shifted, as has the x-axis label. How can I center all figures and subfigures? What is wrong with the last Tikz picture?               \documentclass[11pt]{article}          \usepackage{amsmath,amssymb,amsfonts}     \usepackage{color}     \usepackage{amsthm,array}     \usepackage[center, labelfont=bf]{caption}     \usepackage[justification=centering, labelfont=bf]{subcaption}     \usepackage{lipsum}     \usepackage{tikz}     \usetikzlibrary{calc,arrows,through}     \RequirePackage{latexsym, verbatim, xspace, setspace}     \RequirePackage{tikz, pgflibraryplotmarks}          \setlength\parindent{0.0in}          \frenchspacing          \begin{document}     \title{Title}     \author{Author}     \date{Date}     \maketitle          \lipsum          \begin{figure}     \centering     % SLOPE FIELD 1     \begin{minipage}[t]{0.45\textwidth}         \centering         \begin{tikzpicture}[>=latex,scale=0.8]         % t-axis         \draw[thick,->] (-3.5,0) -- (3.5,0)         node[above] {$t$};          % x-axis         \draw[thick, ->] (0,-3.5) -- (0,3.5)          node[right] {$x$};         % segments         \foreach \t in {-3,-2,-1,0,1,2,3}{         \foreach \x in {-3,-2,-1,0,1,2,3}{             \draw[-, thick, color=blue] (\t,\x) -- ++({atan(\t/2)}:0.3);             \draw[-, thick, color=blue] (\t,\x) -- ++({180+atan(\t/2)}:0.3);             }}         \end{tikzpicture}     \caption{$\displaystyle \frac{dx}{dt} = \frac{t}{2}$}     \end{minipage}     \quad     % SLOPE FIELD 2     \begin{minipage}[t]{0.45\textwidth}         \centering         \begin{tikzpicture}[>=latex,scale=0.8]     % t-axis         \draw[thick,->] (-3.5,0) -- (3.5,0)         node[above] {$t$};      % y-axis         \draw[thick, ->] (0,-3.5) -- (0,3.5)          node[right] {$y$};     % segments         \foreach \t in {-3,-2,-1,0,1,2,3}{         \foreach \y in {-3,-2,-1,0,1,2,3}{         \draw[-, thick, color=blue] (\t,\y) -- ++({atan(1+\y)}:0.3);         \draw[-, thick, color=blue] (\t,\y) -- ++({180+atan(1+\y)}:0.3);             }}         \end{tikzpicture}     \caption{$\displaystyle \frac{dy}{dt} = y+1$}     \end{minipage}\\     \vspace{1cm}     % SLOPE FIELD 3     \begin{minipage}[t]{1.0\textwidth}         \centering         \begin{tikzpicture}[>=latex,scale=0.8]     % Draw x-axis         \draw[thick,->] (-3.5,0) -- (3.5,0)             node[above] {$x$};      % Draw y-axis          \draw[thick, ->] (0,-3.5) -- (0,3.5)            node[right] {$y$};         % Draw segments             \foreach \x in {-3,-2,-1,0,1,2,3}{             \foreach \y in {-3,-2,-1,0,1,2,3}{                 \draw[-, thick, color=blue] (\x,\y) -- ++({atan(\x+\y)}:0.3);                 \draw[-, thick, color=blue] (\x,\y) -- ++({180+atan(\x+\y)}:0.3);             }}         \end{tikzpicture}     \caption{$\displaystyle \frac{dy}{dx} = x+y$}     \end{minipage}     \end{figure}          \begin{figure}     % SLOPE FIELD 1     \centering     \begin{minipage}[t]{0.3\textwidth}         \centering         \begin{tikzpicture}[>=latex,scale=0.35]         % t-axis             \draw[thick,->] (-3.5,0) -- (3.5,0)             node[above] {$t$};          % x-axis             \draw[thick, ->] (0,-3.5) -- (0,3.5)              node[right] {$x$};         % segments             \foreach \t in {-3,-2,-1,0,1,2,3}{             \foreach \x in {-3,-2,-1,0,1,2,3}{                 \draw[-, thick, color=blue] (\t,\x) -- ++({atan(\t/2)}:0.3);                 \draw[-, thick, color=blue] (\t,\x) -- ++({180+atan(\t/2)}:0.3);             }}         \end{tikzpicture}     \subcaption{$\dfrac{dx}{dt} = \dfrac{t}{2}$}%\label{fig:1a}     \end{minipage}     \quad     % SLOPE FIELD 2         \centering     \begin{minipage}[t]{0.3\textwidth}         \centering         \begin{tikzpicture}[>=latex,scale=0.35]         % t-axis             \draw[thick,->] (-3.5,0) -- (3.5,0)             node[above] {$t$};          % y-axis             \draw[thick, ->] (0,-3.5) -- (0,3.5)              node[right] {$y$};         % segments             \foreach \t in {-3,-2,-1,0,1,2,3}{             \foreach \y in {-3,-2,-1,0,1,2,3}{                 \draw[-, thick, color=blue] (\t,\y) -- ++({atan(1+\y)}:0.3);                 \draw[-, thick, color=blue] (\t,\y) -- ++({180+atan(1+\y)}:0.3);             }}         \end{tikzpicture}     \subcaption{$\dfrac{dy}{dt} = y+1$}%\label{fig:1b}     \end{minipage}     \quad     % SLOPE FIELD 3     \centering     \begin{minipage}[t]{0.3\textwidth}         \centering         \begin{tikzpicture}[>=latex,scale=0.35]         % x-axis         \draw[thick,->] (-3.5,0) -- (3.5,0);         node[above] {$x$};      % y-axis         \draw[thick, ->] (0,-3.5) -- (0,3.5)          node[right] {$y$};     % segments             \foreach \x in {-3,-2,-1,0,1,2,3}{             \foreach \y in {-3,-2,-1,0,1,2,3}{                 \draw[-, thick, color=blue] (\x,\y) -- ++({atan(\x+\y)}:0.3);                 \draw[-, thick, color=blue] (\x,\y) -- ++({180+atan(\x+\y)}:0.3);             }}         \end{tikzpicture}     \subcaption{$\dfrac{dy}{dx} = x+y$}%\label{fig:1c}     \end{minipage}     \caption{Problem 3.}     \end{figure}          \lipsum          \end{document}


title: Reading and (custom) formatting a CSV (not \csvautotabular)

text: Suppose I have a really long, _really_ boring list of data in - let's say CSV, but converting to other formats is an option, when this can be done automatically - and I want to prepare a section in my LaTeX document using it as a data source. csvautotabular isn't quite what I'm after, I'd like to be able to do it in a custom way - something like having               foo,bar,baz;     zip,boom,bang; for input and getting in the output (aka: in the .dvi) something that would look like               \begin{someenvironment}     \command1{foo} \command2{bar} \command3{baz}     \somecommand % end record 1      \command1{zip} \command2{boom} \command3{bang}     \somecommand % end record 2     \end{someenvironment} \someenvironment may or may not be a tabular environment and command1 are commands and aliases that I or others have already been defined. I'd like to avoid preparing a script in some language that reads my data and outputs the above (admittedly, easy), because I'm working with others and I would rather not have them running the script on the data everytime they need to compile their latex file. Any hint, however small, is appreciated. Thanks!


title: Clipping a path using a node

text: I've searched, but I can't find a previous question sufficiently close to this one to find an answer. At the same time, this problem seems like it must have been solved by someone before now, so apologies if it's a duplicate. I want to clip a path (particularly a circle, but a general solution would be useful too) using a node with a shape. Here's an example:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{through}     \begin{document}          \begin{tikzpicture}     \node [draw,circle,fill=white,minimum size=1mm] (u) at (0,0) {};     \node [draw,circle through=(u)] at (1,0) {};     \end{tikzpicture}          \end{document}      ![Two circles MWE](http://i.stack.imgur.com/gZ5pJ.png) I'd like to have the red circle clipped by the black, but still have at least the black circle remain a node. I also want to specify the black node first if at all possible. I'm guessing that something like a postaction might be what I need, but I haven't been able to make enough sense of those yet to work it out. **Edit: clarification and something a bit strange** What I want is something looking like this: ![enter image description here](http://i.stack.imgur.com/1LzmE.png) Which can obviously be got with code like:               \begin{tikzpicture}     \node [circle,minimum size=5mm] (u) at (0,0) {};     \node [draw, circle through=(u),red] at (1,0) {};     \node [draw,circle,fill=white,minimum size=5mm] at (0,0) {};     \end{tikzpicture}      But that necessitates the first node being specified twice. The use case for this is a load of graphs I've already done, using a `vertex` style for all the vertex nodes and ideally I want to just edit this style to do the reverse clipping. Finally, there's something very strange about the technique used at this answer This code works as expected               \begin{tikzpicture}[remember picture,overlay]          % A path that follows the edges of the current page     \tikzstyle{reverseclip}=[insert path={(current page.north east) --       (current page.south east) --       (current page.south west) --       (current page.north west) --       (current page.north east)}     ]          \node [circle,minimum size=8mm] (u) at (0,0) {};          \coordinate (A) at (0,0);     \coordinate (B) at (1,0);     \coordinate (C) at (1,1);               \begin{pgfinterruptboundingbox} % To make sure our clipping path does not mess up the placement of the picture     \path [clip,draw] (A) -- (B) -- (C) -- cycle [reverseclip];     \end{pgfinterruptboundingbox}          \draw [fill=red] (1,0) circle  (1cm);          \end{tikzpicture}      but this doesn't               \begin{tikzpicture}[remember picture,overlay]          % A path that follows the edges of the current page     \tikzstyle{reverseclip}=[insert path={(current page.north east) --       (current page.south east) --       (current page.south west) --       (current page.north west) --       (current page.north east)}     ]          \node [circle,minimum size=8mm] (u) at (0,0) {};          \coordinate (A) at (u.east);     \coordinate (B) at (u.south west);     \coordinate (C) at (u.north west);          \begin{pgfinterruptboundingbox} % To make sure our clipping path does not mess up the placement of the picture     \path [clip,draw] (A) -- (B) -- (C) -- cycle [reverseclip];     \end{pgfinterruptboundingbox}          \draw [fill=red] (1,0) circle  (1cm);          \end{tikzpicture}      which makes absolutely no sense to me. The first reverse-clips as expected, the second just draws the filled circle on top as if no clipping is happening at all.


title: Placement of multiple columns in multiple indices with multind and svmono.cls

text: I'm trying to implement multiple indices in my LaTeX file. I have to use the style file of Springer (`svmono.cls`; -> Link to zipped Springer Style) and did the indices with the package `multind`. Indexing went smoothly, but they wouldn't be generated as chapters. I tried to change that by altering the following line in the `multind.sty` file: `\addcontentsline{toc}{chapter}{#2}% chapter instead of section`. Now the indices were chapters, but the headings wouldn't be in the general style of the LaTeX file. Here I got this code from a guy, which worked quite nicely:               \makeatletter     \def\printindex#1#2{     \chapter*{#2}     \addtocounter{chapter}{1}     \addcontentsline{toc}{chapter}{#2}     \@input{#1.ind}}          \makeatother      Well...the headings look right now. But the index is generated with in one column instead of two, which is the way it was before (and the way I want it!). So I tried to use the package `multicol`. It works in that I have the index in two colums, but in the beginning of the chapter, the second colums is not positioned the right way. I made a screenshot of the problem: ![Link to the Screenshot](http://i.imgur.com/ABT3F.jpg) So...what do I do now to adjust the right column? On the next page the colums are aligned, but then there's no chapter beginning there (but the heading). I hope that my question is comprehensible, as I'm rather new to LaTeX and not a native speaker. Thanks in advance for any help :). P.S.: I also tried to create a minimal working example:               \documentclass[deutsch]{svmono} % Style-file vom Springer Verlag     \usepackage{multicol} % used for the two-column index     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage[ngerman]{babel} % Neue deutsche Rechtschreibung und Trennmuster     \usepackage{multind} % Für mehrere Indizes          \makeatletter     \def\printindex#1#2{     \chapter*{#2}     \addtocounter{chapter}{1}     \addcontentsline{toc}{chapter}{\numberline {\arabic{chapter}}#2}     \@input{#1.ind}}          \makeatother          \makeindex{index} % Wird zur Erstellung der Indizes verwendet     \makeindex{autorenregister} % makeindex / (sprmidx.sty)          \begin{document}          \title{Wurst}     \date{}     \maketitle          \frontmatter     \tableofcontents          \mainmatter     \chapter{Kapitel 1}     Test.     \chapter{Testbla}     blablabla          \backmatter     \printindex{autorenregister}{Autorenregister}     \printindex{index}{Index}          \end{document}


title: Change size of math symbols

text: What is the matter with `$\tilde{\scriptsize{\mathscr{O}}}$`? Could anybody help me?


title: permissions and acknowledgments in publish LaTeX-composed material

text: I've just completed composing a scholarly book using LaTeX and it has been accepted for publication. Are there legal requirements for 1) acknowledgments or 2) permissions connected with the use of LaTeX in a published book? I don't see anything about the latter in the current versions of the docs for the packages I've used. * * * _**Edit_** : Frank Mittelbach has pointed me to a paper he has recently published on the history of the LaTeX Project Public License: _TUGboat_ 32(2011)/1:83–94. Section 1.2 (p. 84) contains a digression on the `multicol` license and its current status. He describes the `multicol` "moral obligation" license as "perhaps the most curious license ever drawn up."


title: How to typeset 'tis or 'em with TeX

text: Sometimes 'Tis will be used to represent "this is" and 'em will be used as "them" in spoken English, but how do I typeset them with TeX? Should the tick mark be "left quote" or "right quote" or some other symbol?


title: Arbitrary string assigned to variable?

text: How can I assign an arbitrary string - that may include special characters or even macronames - to a variable just as it is? e.g. like this: `\newcommand{\mystring}{\assignstring{abc{}\w'\macroname \\\\}}` wich must results (at least as `\meaning\mystring`): "abc{}\w'\macroname \"


title: pgfparser module and blank spaces

text: After the question Macro for a code translator, I followed the advice of polgab and used the pgf parser module. I was very disappointed when I reached the point of trying to parse a blank space. I tried different things and at first, I did not find something good. I read the question Parsing text letter by letter and found that was a problem for other people. I finally found a solution, but don't understand why it works :               \documentclass{minimal}     \usepackage{pgf}     \usepgfmodule{parser}          \pgfparserdef{myparser}{initial}{the letter a}{b}     \futurelet\mystrangemacro{ }     \pgfparserdef{myparser}{initial}{\meaning\mystrangemacro}{a}     \pgfparserdef{myparser}{initial}{alignment tab character &}{\pgfparserswitch{final}}     \begin{document}     \pgfparserparse{myparser}a a aa aa a&     \end{document}      And I get as expected : bababbabbab. But why is it working ? I tried many different things, and finally tried to use futurelet and it works ! But if I understand the definition of futurelet, my code has no sense.. Thank you for your answers !


title: Tex padded left after figure wrap

text: Could somebody tell me why the following code, after wrapping the figure in text, keeps the following text padded left and no longer formatted as normal?                \begin{document}     \section{Description of Equipment}         The equipment used in this experiment consisted of a control volume with a nozzle connected to the mains penetrating through the bottom of the said volume and a pivoting lever arm connected to a vane or hemispherical-cup. A valve was fitted to the nozzle line allowing the flow rate to be set arbitrarily.          \begin{wrapfigure}{r}{0.5\textwidth}           \begin{center}             \includegraphics[width=0.5\textwidth]{Jet}           \end{center}           \caption{Set Up}         \end{wrapfigure}         The nozzle was directed at either a flat or cupped plate which was connected to the pivoting lever arm. On top of this lever arm a jockey mass was able to be positioned at various distances from the fulcrum, thus increasing or decreasing the moment which opposed the induced fluid jet moment. This description is perfectly complimented by figure 1, which can be seen to the right hand side. A weigh tank was once again used in the measurement of $Q$. The utilisation of this equipment will be discussed later.              \section{Procedure}         \begin{itemize}         \item The apparatus is set up as shown in figure 1.          \item The flow rate is set by varying the degree of how open the in-line valve is. This flow can then be measures using the weigh tank.         \item A 7.5 kg mass is attached to the weigh tank and the time taken for the equivalent mass of water to balance this mass is measured. This gives you the mass flow rate and subsequently the volumetric flow rate can be found by dividing by $\rho_{water}$.         \end{itemize}               \end{document}      * * *               \documentclass[11pt]{article}     \usepackage[top = 1in, bottom = 1in, right = 1in, left = 1in]{geometry}     \usepackage{amsmath}     \usepackage{siunitx}     \usepackage{booktabs}     \usepackage{graphicx}     \usepackage{float}     \usepackage[parfill]{parskip}     \usepackage{xfrac}     \usepackage{wrapfig}          \section{Description of Equipment}         The equipment used in this experiment consisted of a control volume with a nozzle connected to the mains penetrating through the bottom of the said volume and a pivoting lever arm connected to a vane or hemispherical-cup. A valve was fitted to the nozzle line allowing the flow rate to be set arbitrarily.          \begin{wrapfigure}{r}{0.5\textwidth}           \begin{center}             \vspace{1cm}           \end{center}           \caption{Set Up}         \end{wrapfigure}         The nozzle was directed at either a flat or cupped plate which was connected to the pivoting lever arm. On top of this lever arm a jockey mass was able to be positioned at various distances from the fulcrum, thus increasing or decreasing the moment which opposed the induced fluid jet moment. This description is perfectly complimented by figure 1, which can be seen to the right hand side. A weigh tank was once again used in the measurement of $Q$. The utilisation of this equipment will be discussed later.              \section{Procedure}         \begin{itemize}         \item The apparatus is set up as shown in figure 1.          \item The flow rate is set by varying the degree of how open the in-line valve is. This flow can then be measures using the weigh tank.         \item A 7.5 kg mass is attached to the weigh tank and the time taken for the equivalent mass of water to balance this mass is measured. This gives you the mass flow rate and subsequently the volumetric flow rate can be found by dividing by $\rho_{water}$.         \end{itemize}               \end{document}


title: Using \emph in a Tikz \tikzstyle environment

text: very new to latex and Tikz. This is my first question on Tex (or any site) so apologies in advance for any mistakes or discourtesies. I'm trying to put together a process flow graphic using the code below. I want to use a `tikzstyle` to automatically emphasize each of the line labels so I can then put them in a table alongside and explain what is going on. Would appreciate any help on how it might be done. `[text=\textit]`, `[font=\emph]`, and variations on those dont seem to work. Thanks                   \tikzstyle{action}=             [rectangle, draw, fill=blue!20, draw=blue!70, thick, inner sep=0pt, minimum width=2cm,              minimum height=1cm, text width=1.75cm, text centered, font=\footnotesize]         \tikzstyle{database}=             [cylinder, draw, fill=red!20, draw=black!70, minimum width=1.5cm, minimum height=2cm, rotate=90, text centered, font=\footnotesize]          \tikzstyle{line}=   [draw, -latex']         \tikzstyle{labe}=   [auto,font=\footnotesize,text=\textit{#1}]              \begin{tikzpicture}[scale=1.5]          %\draw [help lines] (-4,-4) grid (4,4);         \node [action] (P)              at (1,2)    {P};         \node [action](C)       at (-1,1)   {C};         \node [action](O)           at (-1,0)   {O};         \node [database](A)     at (1,0.5)  {A};         \node [action](D)           at (3,1)    {D};         \node [action](M)       at (1,-1)   {M};                 \node [action](B)           at (3,-0)   {B          (Some Brokers)};          % lines         \draw [-latex'] (P.180) .. controls (-2,2) and (-4,1) .. node[auto,swap] {\emph{1}} (O.180);         \draw [-latex'] (O.80) to node [auto,right] {\emph{2}} (C.280);         \draw [-latex'] (C) to node [labe,left] {3}(O);         \draw [-latex'] (O) to (A);         \draw [-latex'] (P) to (A);         \draw [-latex'] (A.280) to (D.175);         \draw [-latex'] (D.260) to (B.100);         \draw [-latex'] (B.90) to (D.270);         \draw [-latex'] (D.190) to (A.260);         \draw [-latex'] (B) to (M);         \draw [-latex'] (M) to (A);         \end{tikzpicture}


title: How can I execute pdflatex when I'm not in the directory?

text: I am currently experimenting with lilypod. To generate a PDF from the source, I have to enter               mkdir -p charts-out     lilypond-book --output=charts-out/ --pdf  charts.tex     cd charts-out     pdflatex charts.tex      When I add this to a `Makefile` it doesn't work, because the `cd` doesn't change the directory. So I wanted to replace               cd charts-out     pdflatex charts.tex      with               pdflatex charts-out/charts.tex      This does also not work:               moose@pc07:~$ pdflatex charts-out/charts.tex     This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)      restricted \write18 enabled.     entering extended mode     (./charts-out/charts.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge     rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek, ibycus, arabi     c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis     h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis     h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,      icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or     iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,      lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol     ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven     ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded     .     (/usr/local/texlive/2011/texmf-dist/tex/latex/amscls/amsart.cls     Document Class: amsart 2009/07/02 v2.20.1     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsmath.sty     For additional information on amsmath, use the `?' option.     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amstext.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsgen.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsbsy.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsopn.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsfonts/umsa.fd)     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsfonts/amsfonts.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/geometry/geometry.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifpdf.sty)     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifvtex.sty)     (/usr/local/texlive/2011/texmf-dist/tex/generic/ifxetex/ifxetex.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphics.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/trig.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/graphics.cfg)     (/usr/local/texlive/2011/texmf-dist/tex/latex/pdftex-def/pdftex.def     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))     (./charts.aux) (/usr/local/texlive/2011/texmf-dist/tex/latex/amsfonts/umsa.fd)     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsfonts/umsb.fd)     *geometry* driver: auto-detecting     *geometry* detected driver: pdftex     (/usr/local/texlive/2011/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     ) (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifluatex.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/grfext.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/kvoptions.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))     (/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))     ! I can't find file `53/lily-2fb3a572-systems.tex'.     l.30 \input 53/lily-2fb3a572-systems.tex          (Press Enter to retry, or Control-D to exit)     Please type another input file name:       How can I make it work?


title: What does the "driver" section do in a .dtx file?

text: I've read the `docstrip` documentation, but have yet to form an intuition about how package documentation is extracted when I simply run `pdflatex package.dtx`. Let's say I'm using the simple `dtxtut` skeleton file for generating both a `.sty` file and a `.pdf` file which documents it. Intuitively, `pdflatex` simply discards all comments and compiles what's left. I can also understand that the `\DocInput` command inside the `driver` section takes the same file again and parses it with some different 'filters'. But what does the `<*driver></driver>` section do? I never defined the `driver` boolean, and I can't find it defined anywhere else.


title: autopunctuation not working properly

text: What am I doing wrong? According to my understanding, these two formulae should look different (the second one should have a thin space):               \setupmathematics[autopunctuation=yes]          \starttext          $(2,5)$ versus $(2, 5)$          \stoptext      (I am using ConTeXt MkIV.)


title: Section and chapter problem

text: I have a problem about section/chapter. I'm writing a book and the final chapter is the exercises solution. To become better, I used `\chapter*{Solutions}`in this one and add it to the summary using `\addcontentsline{toc}{chapter}{\textcolor{ocre}{Solutions}}`. But, there's a problem, because as I'm using the header to write or the chapter name, or the section name, the chapter before the Solutions chapter keeps "writing" in this one. It's like this: the chapter before the Solutions one it's about inverse functions, then, when I compile the `.tex`, I see in the header's Solutions chapter the title: Inverse functions. But, I want to see: Solutions. How can I fix it?


title: How to add a node in the middle of the line with tikz?

text: actually it's an easy question, but I could find an answer with Google or the included search on StackExchange ;) How do I add in the middle of the line a node with Tikz? I want somethink like this:               -------------->          text      Normally I did it with an additional `node at` command. If I will resize the the arrow then I need to change the position of the node also.               ---------->        text      Which is not the best way for big things. I try to find something in the manual and didn't find an answer yet. Thanks. Best regards.


title: Automatic Section Title & Section Title Before Section Number

text: I'm trying to do 3 things:   1. Repeat a section title automatically for each section (e.g., "Chapter").   2. Place the section title before the section number (e.g., "Chapter 1" and NOT "1 Chapter").   3. Make each section number 2 digits long (e.g., "Chapter 01" and NOT "Chapter 1"). I've been able to find how to do each of these 3 things individually but not altogether.


title: Reference to section where is label

text: I have these equations with one label:               \section{This is super math section}     \begin{eqnarray}     c + d \\     \label{eq:eq2}     a + b     \end{eqnarray}      But how to do if I want get the section number where is the equation placed and make reference to this section (from the number)?               Equation \eqref{eq:eq2} on page \pageref{eq:eq2} in section \???{eq:eq2} is brilliant!      EDIT: using ref to definition environmet.               \documentclass[a4paper,11pt,twocolumn]{article}          \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{amsfonts}     \usepackage{yhmath}          \usepackage{cleveref}          \theoremstyle{definition}     \newtheorem{defi}{Definition}[section]          \begin{document}          Definition \ref{def:def1} on page \pageref{def:def1} in section \cref{def:def1} is brilliant!          \section{Definitions}     \begin{defi}\label{def:def1}     This is body of definition.     \end{defi}     \end{document}      Giving: Definition 1.1 on page 1 in section Definition 1.1 is brilliant! Need: Definition 1.1 on page 1 in section 1 is brilliant!


title: Equations with only text in them

text: I would like to include equations in my article which have only text in them (in some cases there may be a little math) so that it keeps proper formatting. I tried using \mbox but then the text is so big that it is going out of the line. How do I include text in this way so that all formatting is preserved. > >     \begin{equation}\label{key} >     The product of two complex numbers is given by the vector whose angle is > the sum of the angles of the two complex numbers and whose magnitude is the > product of the magnitudes of the >      \end{equation} >   Thanks


title: Use Type 1 fonts with XeLaTeX

text: I read many things about XeLaTeX and I wanted to give it a try, but I wasn't able to figure out how to make use of Type 1 fonts, in my case especially the font Lucida, which I bought from pcTeX (which don't offer OpenType, unlike TUG). In normal LaTeX it was as easy as               \usepackage{lucimatx}      I tried a solution as proposed here: Xelatex / Fontspec how to load fonts directly from diskfile (Postscript Type 1 fonts)               \setmainfont[Path=/usr/local/texlive/2012/texmf-dist/fonts/type1/bh/lucida/]{lbr.pfb}      but this produces strange errors like               ** WARNING ** Obsolete four arguments of "endchar" will be used for Type 1 "seac" operator.     ** ERROR ** This font using the "seac" command for accented characters...      **Conclusion:** Is there an easy way to use Type 1 fonts with XeLaTeX? * * * MWE for the solution using `\setmainfont`               \documentclass[11pt]{scrartcl}     \usepackage{polyglossia}     \usepackage{xunicode}     \usepackage{xltxtra}     \setmainlanguage{german}     \setmainfont[Path=/usr/local/texlive/2012/texmf-dist/fonts/type1/bh/lucida/]{lbr.pfb}     \begin{document}          Im folgendem Abschnitt wollen die Eigenschaften des Drehimpuls untersuchen,     was uns auf die \emph{Drehimpulsalgebra} führen wird. Als eine fundamentale     Eigenschaft, aus denen wir die meisten Resultate in diesem Abschnitt erzielen     werden ist, dass der Drehimpuls (angular momentum) der infinitesimale Erzeuger     der Rotation ist.          \end{document}


title: How to include headers and footers for pages between chapters?

text: \documentclass[12pt,a4paper,openright]{mwrep}     \usepackage{lipsum}     \usepackage[top=2cm,bottom=2cm,left=3cm,right=2cm,twoside]{geometry}     \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhf{}\fancyfoot[EL,OR]{\thepage}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt}     \fancypagestyle{opening}{\fancyhf{}\fancyfoot[EL,OR]{\thepage}%       \renewcommand{\headrulewidth}{0pt}       \renewcommand{\footrulewidth}{0pt}}     \fancypagestyle{closing}{\fancyhf{}\fancyfoot[EL,OR]{\thepage}%       \renewcommand{\headrulewidth}{0pt}       \renewcommand{\footrulewidth}{0pt}}     \setlength{\footskip}{20pt}     \begin{document}     \chapter{c1}     \lipsum[1-15]     \chapter{c2}     \lipsum[1-15]     \end{document}      How can I include page numbers on empty pages?