title: acolumns environment modifies columns widths

text: Using the `acolumns` environment from this question I discovered that the horizontal alignment of the columns is modified in same way. I'm using it for a poster and the difference becomes quite notable. This example should show the vertical misalignment between blocks               \documentclass{beamer}          \usecolortheme{rose}          \usepackage{environ}% Required for \NewEnviron, i.e. to read the whole body of the environment     \makeatletter          \newcounter{acolumn}%  Number of current column     \newlength{\acolumnmaxheight}%   Maximum column height               % `column` replacement to measure height     \newenvironment{@acolumn}[1]{%         \stepcounter{acolumn}%         \begin{lrbox}{\@tempboxa}%         \begin{minipage}{#1}%     }{%         \end{minipage}         \end{lrbox}         \@tempdimc=\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax         % Save height of this column:         \expandafter\xdef\csname acolumn@height@\roman{acolumn}\endcsname{\the\@tempdimc}%         % Save maximum height         \ifdim\@tempdimc>\acolumnmaxheight             \global\acolumnmaxheight=\@tempdimc         \fi     }          % `column` wrapper which sets the height beforehand     \newenvironment{@@acolumn}[1]{%         \stepcounter{acolumn}%         % The \autoheight macro contains a \vspace macro with the maximum height minus the natural column height         \edef\autoheight{\noexpand\vspace*{\dimexpr\acolumnmaxheight-\csname acolumn@height@\roman{acolumn}\endcsname\relax}}%         % Call original `column`:         \begin{orig@column}{#1}%     }{%         \end{orig@column}%     }          % Save orignal `column` environment away     \let\orig@column\column     \let\endorig@column\endcolumn          % `columns` variant with automatic height adjustment     \NewEnviron{acolumns}[1][]{%         % Init vars:         \setcounter{acolumn}{0}%         \setlength{\acolumnmaxheight}{0pt}%         \def\autoheight{\vspace*{0pt}}%         % Set `column` environment to special measuring environment         \let\column\@acolumn         \let\endcolumn\end@acolumn         \BODY% measure heights         % Reset counter for second processing round         \setcounter{acolumn}{0}%         % Set `column` environment to wrapper         \let\column\@@acolumn         \let\endcolumn\end@@acolumn         % Finally process columns now for real         \begin{columns}[#1]%             \BODY         \end{columns}%     }     \makeatother          \begin{document}     \begin{frame}{A frame}       \begin{acolumns}[t]         \begin{column}{0.5\linewidth}           \begin{block}{A block}             Hello             \autoheight           \end{block}         \end{column}         \begin{column}{0.5\linewidth}           \begin{block}{Another block}             This one has a larger height since it has an itemize             \begin{itemize}             \item item a             \end{itemize}             \autoheight           \end{block}         \end{column}       \end{acolumns}            \begin{columns}[t]         \begin{column}{0.5\linewidth}           \begin{block}{A block}             Hello           \end{block}         \end{column}         \begin{column}{0.5\linewidth}           \begin{block}{Another block}             This one has a larger height since it has an itemize             \begin{itemize}             \item item a             \end{itemize}           \end{block}         \end{column}       \end{columns}     \end{frame}          \end{document}      is there some spurious space that introduces it? EDIT add               \usepackage{tikz}     %...          \tikz[remember picture,overlay] \draw [red,xshift=1em] (current page.north west) ++(1em,0) |- (current page.south west);      at the end of the frame to better see the misalignment. ![example](http://i.imgur.com/ohZt8.png) upper left block crosses the red line, bottom one doesn't!


Is it possible to use xshift and a variable to place several (different) paths with variable equidistance. I want to configure the space between the paths so giving a variable e.g. to xshift in scope would do the trick. Unfortunately I cannot use foreach since the paths are different.               \documentclass[a4paper]{article}          \usepackage{tikz}     \usetikzlibrary{shapes.geometric,positioning}          \begin{document}          \usetikzlibrary{calc}          \begin{tikzpicture}%[node distance =4.5cm,thick]          \newcommand{\room} {      \coordinate (a) at  (0,0) ;      \coordinate (b) at (5,0);      \coordinate (c) at  (5,5);      \coordinate (d) at (0,4);      \coordinate (e) at (1,3);      \coordinate (f) at     (1.4,3) ;      \coordinate (g) at (1.4,2.6)   ;      \coordinate (h) at (1,2.6) ;      \coordinate (i) at (1,3)   ;     }               \begin{scope}[xshift=0cm,yshift=-7cm]         \room;         \draw[dashed,thick] (b)--(c)--(d)--(e)--(f);     \end{scope}          \begin{scope}[xshift=6cm,yshift=-7cm]         \room;         \draw[dashed,thick] (b)--(c)--(d)--(e)--(f) --(g) --(h);     \end{scope}               \begin{scope}[xshift=12cm,yshift=-7cm]           \room;         \draw[densely dotted,very thick] (d)--(e)--(f) --(g) --(h)--(e);         \draw[dashed,thick] (b)--(c)--(d);     \end{scope}          \end{tikzpicture}     \end{document}      Edit: Added Eaxmple


title: How to add SyncTex support for evince (or Okular) and LaTeXing for forward and backward navigation between source and pdf

text: I'm currently using LaTeXing in sublime text 3. Unfortunately I couldn't find a proper solution for enabling forward and backward synctex between source and pdf. The LaTeXing uses evince (on Linux). LaTeXing setting page


title: Prevent caption to appear on separate page

text: I'm using a custom listing environment which does not float taken from Code spanning over two pages with minted, inside listing with caption. The caption is done with the `caption` package. The problem is that under certain circumstances the caption is on another page than the complete listing. Is there any way to prevent this behavior? **Update** Here is the minimal example. Just to clarify again: It is allowed to have pagebreaks in the code, but not between code and caption. So in the example the caption should either be also on page 1 or on page 2 there should be some lines of code.


title: How to prevent words from running off the edge in ConTeXt?

text: I have a document containing columns 25 characters wide. I have set the language to US English, and some hyphenation appears, however, I have observed that in many places, scientific terms are not hyphenated. The columns appear like this:               This is a column with     This is another colu-     some  text.  It looks     umn of text.  Notice     fine most of the time,    how some of the text     but sometimes superscientficom the left column     words   do  not  fit.     also  appears  here?        * The document source is generated from scripts, so I cannot readily manually hyphenate all of these words.   * I have tried all of the available settings in `tolerance`. `\setuptolerance[horizontal,stretch]` is the only setting which stops these words from running off the page, but it also produces large spaces between all of the other words, which is not ideal. E.g.:               This is a column with     This is another colu-     some  text.  It looks     umn of text.  Notice     fine most of the time,    how some of the text     but         sometimes     from    the     left     superscientific words     column also  appears     do       not      fit.    here?      How can I prevent these words from running into the next column, without making other serious problems in the document?


title: My document seems to contain a strange font - different from every other document

text: I've written several documents in LaTeX, but when I compile this special one I get this... strange "font" (not sure it can be called a font). Help, what did I change? I remember having this problem in my very first days of LaTeX, but I don't remember how I solved it. ![enter image description here](http://i.stack.imgur.com/HmRD1.png)


title: \penalty-10000 or \linebreak?

text: What are the practical differences between `\penalty-10000` and `\linebreak`? Do both make `\allowbreak` redundant?               \documentclass{article}          \begin{document}          Text text text text text. This is a paragraph containing a formula,     \(a + b + c + d \times e\).     % breaks before "c"          Text text text text text. This is a paragraph containing a formula,     \(a + b + c \linebreak + d \times e\).     % breaks after "c"          Text text text text text. This is a paragraph containing a formula,     \(a + b + c \penalty-10000 + d \times e\).     % breaks after "c"          \end{document}      Note that this example is not trying to make a statement about good breakpoints within formulas. Feel free to edit in a better example. By the way, earlier code in this example had `\allowbreak\penalty-10000`, which is really redundant nonsense (see e.g. user egreg's answer).


title: How can one ensure that footnotes page-wrap only from verso (back, even-numbered) to recto (front, odd-numbered) pages?

text: **How can one ensure that footnotes page-wrap only from verso (back, even- numbered) to recto (front, odd-numbered) pages?** With the following code, the line to which the second footnote is attached should be moved to page 4 so that the second footnote wraps from page 4 to page 5 (instead of from page 3 to page 5). The first footnote is okay (it spans from page 2 to page 3).               \documentclass{memoir}     \usepackage{lipsum}               \begin{document}          \lipsum Very long footnote.\footnote{\lipsum[1-5]}          \newpage     \lipsum[1-4] Very long footnote.\footnote{\lipsum[1-8]}          \end{document}      Some special considerations: (While extreme cases are unlikely to represent good style, (1) _an implementer needs to be aware of them_ , and (2) some genres might give different priorities and not care about the oddity of such extreme examples. I have seen texts in the genre of legal commentary with many pages where footnotes fill _most_ of the page.)   * An unresolvable case is when a footnote spans more than two pages. In that case it doesn't matter where it starts, though ensuring that it starts on a verso (even-numbered) page is a sensible choice too.   * If one has very long footnotes anchored to _successive lines_ , one can simply fill the double page with the footnote and move each line containing such an anchor to the beginning of a new double page to fulfill the requirements.   * If one has very long footnotes anchored to _words on the same line_ , there won't be much one can do about keeping the anchors on the same page as the very long footnote. In such a case, the line with footnotes 6, 7, and 8 will simply have do be on (say) page 2, with these footnotes starting on (say) pages 2, 6, and 8.   * An alternative and sensible way of ensuring the requirement is to move the footnote to the next verso (even-numbered page) while keeping the anchor on a recto page (this might make sense when there is a very long footnote on page 1 of a document). These considerations will help with design decisions; there is more than one way to do it. Extreme cases won't occur much, but unless one works them out, it won't be clear how to implement an algorithm.


title: Applying a function to column of table

text: I got Bruno's solution to work but now _xcolor_ bizarrely gives me 'TeX capacity exceeded' when I use `\rowcolors`:               \documentclass{article}     \usepackage{ltablex,colortbl}     \usepackage[table]{xcolor}     \keepXColumns     \makeatletter     \def\KWP@safe@newline{%       \iffalse{\fi       \let\KWP@old@newline\\%       \let\\\cr       \iffalse}\fi     }     \def\KWP@restore@newline{\iffalse{\fi\let\\\KWP@old@newline\iffalse}\fi}          \newcolumntype{\arg}[1]{%       >{\KWP@safe@newline         #1{\ignorespaces \@sharp\unskip}%         \KWP@restore@newline         \span\@gobbletwo}%       m{3cm}%     }     \newcolumntype{\argmulti}[1]{%       >{\KWP@safe@newline         #1{\ignorespaces \@sharp\unskip}%         \KWP@restore@newline         \@gobbletwo}%       c%     }     \makeatother     % A simple test function:     \newcommand{\macro}[1]{\textcolor{red}{#1}}          \begin{document}     \arrayrulecolor{orange}     \rowcolors[\hline]{1}{yellow!25}{gray!25}     \begin{tabularx}{\linewidth}{|\arg{\macro}|m{2.5cm}|X|}     %\noalign{\hrule}     \hline       aaa & bbb & AAA \\\hline       fff & ggg & FFF\\\hline       hhh & \multicolumn{2}{|\argmulti{\macro}|}{HHH}\\\hline     \end{tabularx}     \end{document}      The 'capacity exceeded' problem seems to have come from _tabularx_. _tabular_ compiles without trouble.


title: Add bleed using geometry

text: I'm using a5paper size with extreport and geometry. Could you please tell me how to add a bleed of 2mm and keep things as they are.                \usepackage[a5paper,                   %hmargin = {3cm, .8in},                   left = 2.3cm,                  bottom=2.5cm,                  includefoot                  %right = 1cm,                  %width = 10.8cm,                  %height = 17cm                  ]                  {geometry}


title: LaTeX creating unnecessary space

text: I'm getting unnecessary white spaces as in the snapshot. ![enter image description here](http://i.stack.imgur.com/PAtun.png) It's mainly because of my figures. I'm putting my figures as               \begin{figure}[H]     \centering     \input{figures/,,,,,,.tex}     \caption[h]{....}     \end{figure}      I'm putting with the `[H]` only because I want them to be the order I'm adding them. Is there any way to achieve the same thing but not have the white spaces?


title: TikZ arrow tip is displaced

text: My quetion is twofold: 1) I want to have a timeline graph with some intervalls. This is my code:               \draw[->|] (8,5)--(10,5);     \node[] (sh4) at (9.5,5.5){$s^{\text{h}}_{4}$};     \draw[|<-] (10,5)--(13,5);     \node[] (stt4) at (11,5.5){$STT_{4}$};      The result looks like this: ![enter image description here](http://i.stack.imgur.com/fmu8i.png) The problem is the bold vertical line of the arrow tip. They should be exactly at the same position, such that the vartical line is thinner. 2) How can I make the arrow tips like `-]`? The following is not working. Seems like one must escape the `]`:               \draw[-]] (8,5)--(10,5);


title: Add a black border to block quotations?

text: I have a Markdown file that I'm converting to PDF with Pandoc. And I'd like that the block quotation of the Markdown file get a 1px black border around them in the PDF. I already managed to edit the style of code blocks with \lstset, but I'm not sure how to do the same for block quotations.


title: Having formatting problems I can't seem to figure out

text: ![enter image description here](http://i.stack.imgur.com/x16Hq.png) As you should be able to see from the image, my enumerate environment seems to work fine up until I typeset the table, and then things shift to the left margin. I'd like the (a) and (b) to line up, and have the table sit to the right as well. Any tips? Here's the code I have...               \documentclass{article}     \renewcommand{\thesection}{\Roman{section}}      \renewcommand{\thesubsection}{\thesection.\Roman{subsection}}          \usepackage{setspace}     \usepackage{amsmath}     \usepackage{caption}     \usepackage{amsfonts}               \RequirePackage[left=1.5in,right=1.5in,top=1.5in,bottom=1.5in]{geometry}          \newcommand\state[1]{\ensuremath{q_{#1}}}     \newcommand\blank{\ensuremath{\sqcup}}     \newcommand\lang{\ensuremath{\mathcal{L}}}                    \begin{document}                        \begin{enumerate}             \item \textbf{Programming Turing Machines}             \begin{enumerate}                 \item  Give a full description of a Turing machine $M = (Q, \Sigma, \Gamma. \state{0}, \state{accept}, \state{reject}, \delta)$ accepting a language $\lang = \{x \in \{0,1\}^{*}\ |\ x\ is\ divisible\ by\ 4 \}$, ignoring trailing 0s; treat blank string as a 0.                 \begin{align*}                     M = (Q, \Sigma, \Gamma, \state{0}, \state{accept}, \state{reject}, \delta)\\                     Q=\{q_{0},q_{1},q_{2},q_{accept},q_{reject}\}\\                     \Gamma=\{0,1,\blank\}\\                     \Sigma=\Gamma\setminus\{\blank\}                 \end{align*}                      \captionof{table}{$\delta: Q\times \Gamma \to Q\times \Gamma\times \{L,R\}$}                 \begin{tabular}{c|c|c|c|c}                                   Current State&Current Character&New State&New Character&Move\\                     \hline                     \state{0}&1&\state{0}&1&R\\                     \state{0}&0&\state{0}&0&R\\                     \state{0}&\blank&\state{1}&\blank&L\\                     \state{1}&1&\state{reject}&-&-\\                     \state{1}&0&\state{2}&0&L\\                     \state{2}&1&\state{reject}&-&-\\                     \state{2}&0&\state{accept}&-&-\\                     \hline                 \end{tabular}                      \bigskip                      \item  Give a full description of a Turing machine $M = (Q, \Sigma, \Gamma, \state{0}, \state{accept}, \state{reject}, \delta)$ accepting a language $\lang = \{x \in \{0,1\}^{*}\ |\ x\ does\ not\ have\ repeating\ 1s \}$. ( e.g., x = 110 is rejected and x = 1001 is accepted. )                      \begin{align*}                     M = (Q, \Sigma, \Gamma, \state{0}, \state{accept}, \state{reject}, \delta)\\                     Q=\{q_{0},q_{1},q_{2},q_{accept},q_{reject}\}\\                     \Gamma=\{0,1,\blank\}\\                     \Sigma=\Gamma\setminus\{\blank\}                 \end{align*}                      \captionof{table}{$\delta: Q\times \Gamma \to Q\times \Gamma\times \{L,R\}$}                         \begin{tabular}{c|c|c|c|c}                                   Current State&Current Character&New State&New Character&Move\\                     \hline                     \state{0}&1&\state{0}&1&R\\                     \state{0}&0&\state{0}&0&R\\                     \state{0}&\blank&\state{1}&\blank&L\\                     \state{1}&1&\state{2}&1&L\\                     \state{1}&0&\state{1}&0&L\\                     \state{1}&\blank&\state{accept}&-&-\\                     \state{2}&1&\state{reject}&-&-\\                     \state{2}&0&\state{1}&0&L\\                     \hline                 \end{tabular}                      \bigskip                      \item  Give a full description of a Turing machine $M = (Q, \Sigma, \Gamma, \state{0}, \state{accept}, \state{reject}, \delta)$ accepting a language $\lang = \{x \in \{0,1\}^{*}\ |\ x\ does\ not\ have\ repeating\ 1s \}$. ( e.g., x = 110 is rejected and x = 1001 is accepted. )             \end{enumerate}         \end{enumerate}          \end{document}


title: Setting weekend background color

text: I'm making a calendar in LaTeX with tikz-pgf and I would like to set to gray the background color for the weekend. In the examples I found on the Internet and in the documentation, I can see how to setup the foreground color:               if (weekend) [red]      but something like this does not work               if (weekend) [fill=gray]      This is my code:               \begin{tikzpicture}         \calendar(mycal) [dates=2013-09-01 to 2013-09-last,              week list,              month label above centered,             month text=\%mt \%y0                 ]             if (Sunday) [red]         if (weekend) [fill=gray];          \end{tikzpicture}


title: How to run LaTeX and lilypond-book in one command?

text: I was wondering if there was any command which would let me create a PDF from a LyTeX source in one step. Currently, I am first executing `lilypond-book`:                lilypond-book --latex-program=pdflatex --pdf --lily-output-dir=./tmp ./thesis.lytex      and, when this is done, the usual PDFLaTeX call:               pdflatex ./thesis.tex      While this works fine, I was wondering if there was a way to execute this as a single command (I would like to create a single typesetting rule for this in TeXworks, but for this, I need to have all this in a single command). I know that I could create a custom shell script for this (in fact, this is what I actually have now). However, I was specifically wondering if there was a 'built-in' solution for this? I was thinking about a solution similar to the LaTeXMK approach, which allows to run BibTeX and LaTeX and a few other tools from within the same command, taking care of the right order of calling the different programs, etc.


title: Determining the position of a symbol/letter in coordinates

text: How can one determine the position of a symbol on the typeset page? Possible uses:   * One page contains a fill-in-the-blanks text, and the opposite page contains only the solution words, each starting at the same position on the page where the blank started. The blanks on the first page should all be of equal length in order to not reveal any information. It can be assumed that the solution expressions don't overlap (and if they do, one can still manually adjust).   * relative anchoring: One has typeset a complex diagram or equation, and one then creates a series of transformations. For example, diagram 2 is like diagram 1, but with the complex middle portion simplified so that one can focus on other parts; the relative positioning of certain outer elements of diagram 1 should be the same in diagram 2 to help the reader understand which diagram elements correspond. For this one would need to be able to obtain the coordinates of certain outer elements so that one can subtract them. Very much related:   * Determining the position of a box (e.g.) on a page


title: Ghostscript 9.07: Error: A pdfmark destination … points beyond the last page

text: I use `gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=$2 -dLastPage=$3 -sOUTPUTFILE=$4 $1` in a script to extract pages from a pdf file with Ghostscript 9.07. I obtain a lot of warnings (as in the first row in the following output) and one error:               GPL Ghostscript 9.07:    **** Warning: Outline has invalid link that was discarded.         GPL Ghostscript 9.07: ERROR: A pdfmark destination page 4 points beyond the last page 3.      The resulting PDF (consisting of the extracted pages) is fine, however. I am wondering why I obtain this error and the warnings although I chose the option `-q` for `quiet`. I did some search on that and found, for example, this, but the PDF file is already generated with `hypertexnames=false` and so the suggested solution there does not work in my case (Ubuntu 13.04). Just to add: The `.pdf` file is generated via `pdflatex` from               \documentclass{scrartcl}          \usepackage[T1]{fontenc}     \usepackage[american]{babel}     \usepackage{tikz}     \usepackage[hypertexnames=false]{hyperref}          \begin{document}     \tikz[remember picture, overlay]\node at (current page.south)[rectangle, fill, color=gray]{};     \clearpage      \section{foo}     \clearpage     \tableofcontents     \clearpage     \section{bar}     foo bar      \end{document}      If you comment out parts after `\begin{document}`, `gs` suddenly has neither warnings nor errors, so it has to do with the way the PDF file is generated.


title: hyphenation of chemical names

text: i use the `datatool` package to read a csv table which contains names of chemical compounds in one column. Those names are very long and have to be hyphenated. The problem is that these names contain `-`. have a look at this example:               \documentclass{article}     \usepackage{siunitx}     \def\hyph{-\penalty0\hskip0pt\relax}     \begin{table}     \begin{tabular}{|>{\raggedright\hspace{0pt}}p{14mm}|l|}     name & value \\\hline     docosahexaenoylglycerophosphocholine & 1.0 \\     1-docosahexaenoylglycerophosphocholine & 1.0\\     1\hyph docosahexaenoylglycerophosphocholine & 1.0     \end{tabular}     \end{table}     \end{document}      in the first row the name hyphenated but not in the second one. I found a workaround for the third line (from http://stackoverflow.com/questions/2193307/how-to-get-latex-to-hyphenate-a- word-that-contains-a-dash) but as I read the names from a csv file (and this is really big) i can't replace all `-` by `\hyph`. Is there any other solution to allow hyphenation of already hyphenated words inside (and only inside) the table environment? bye


title: Can't get simple 4-page booklet printing to behave

text: Getting `booklet` printing working is proving more difficult than expected, even for just 4 pages. I have successfully used `geometry` to define an unusual paper size: A4 portrait halved from top to bottom. Then I add the `booklet` commands, and it combines pages 4 and 1 as expected onto a single A4 portrait page. But then page 2 is produced on its own, and then two blank pages. Page 3 is missing. The same happens when I try A4 pages being reduced to A5 for a landscape booklet, so I don't think it's a result of my odd paper size. I've followed advice in this answer and put `\setpdftargetpages` after the preamble. (I know about `multicol` and the like, but as far as I cant tell that can't generate two-sided printing of sheets that can just be folded into booklets.) MNWE:               \documentclass[14pt,onecolumn]{memoir}     \title{Booklet printing test}     \usepackage{lipsum}          \marginparsep = 0pt     \marginparwidth = 0pt     \headsep = 0pt     \footskip = 0pt     \usepackage[showframe,paperwidth=10.5cm,paperheight=29.7cm,includeheadfoot,includemp,textwidth=9.5cm,textheight=27cm]{geometry}          \usepackage[print,four,twouparticle]{booklet}     \source{\magstep0}{\paperwidth}{\paperheight}     \target{\magstep0}{21cm}{\paperheight}           \begin{document}          \ifpdf       \pdfoutput = 1       \setpdftargetpages     \else       \setdvipstargetpages     \fi          \maketitle          \subsection{One}     \lipsum[2]          \newpage     \subsection{Two}     \lipsum[4-5]          \newpage     \subsection{Three}     \lipsum[6-7]          \newpage     \subsection{Four}     \lipsum[8]          \end{document}


title: Author-date referencing overridden

text: I'm using the `natbib` package and would like author-date referencing format. I have the following setup in the preamble:               \usepackage[authoryear]{natbib}     \bibliographystyle{harvard} %(also tried apalike)     \bibliography{mylibrary}      Compiling leads to number format in the pdf with an error 'Bibliography not compatible with author year citations' and the commands:               \providecommand\NAT@force@numbers{}\NAT@force@numbers      in the `.aux` file. I had previously used the author-date format with no trouble so I'm not sure why this error has suddenly occurred. I'm using TeXnicCenter with MiKTeX on Windows 7.


title: How to use local beamer theme in project source folder

text: Is it possible to use a local theme placed in the the same folder as your current `beamer` project? I.e. having a them in `/project-name/theme/` that you can make updates to and get the changes instantly when compiling your project. This would be really handy when developing new themes as you (at least in Windows using MikTeX) have to constantly refresh the name database when developing.


title: hyperref with implicit=false gives a warning

text: I am getting the following warning when I use `beamer` > Package hyperref Warning: Option `pdftitle' has already been used I can recreate the problem with the following MWE based on the `article` class               \documentclass{article}     \usepackage[implicit=false]{hyperref}     \AtBeginDocument{\hypersetup{pdftitle=mytitle}}     \begin{document}     Hello world     \end{document}      For reasons that are beyond my understanding (and beyond my desire to know) `beamer` requires `hyperref` to be loaded with `implicit=false`. The `\AtBeginDocument{\hypersetup{pdftitle=mytitle}}` occurs in a package written by me. Given that I need to load `hyperref` with `implicit=false` and I need to set `pdftitle` after I load `hyperref`, is there a way to avoid this warning (without using the `silence` package)? Yes, I know it is only a warning and doesn't really matter. Potentially helpful, but also potentially misleading is that               \documentclass{article}     \AtBeginDocument{\hypersetup{pdftitle=mytitle}}     \AtBeginDocument{\hypersetup{pdftitle=mytitle}}     \usepackage[implicit=false]{hyperref}     \begin{document}     Hello world     \end{document}      doesn't give the warning even though `pdftitle` is given twice.


title: Aligning \overline to "italics" font

text: In math mode, the slanted characters look somewhat disconnected from an `\overline`: `$\overline{P}$` looks odd; of course I would like the bar to be aligned more on the right, at least as much slanted as the top of the letter. How can this be achieved?


title: problems with different margins for odd/even pages and openright does not work

text: I have two problems.   1. The inner and outer margins on odd pages are different from those on even pages. On even pages the inner margin is a lot bigger. Desired outcome: bigger inner margin on odd pages.   2. My text starts on the left hand side, i.e. odd pages are on the left, even pages are on the right. Desires outcome: the exact opposite. I try to post relevant code:               \documentclass[openright,titlepage,headsepline,twoside,BCOR18mm,DIV10,11pt]{scrbook}     \usepackage{amsmath,amssymb,amsthm,array,arydshln}     \usepackage[toc,page]{appendix}     \usepackage{multicol}     \usepackage{makeidx}     \usepackage{geometry}     \usepackage{fancyhdr}          \geometry{a4paper}     \newcommand{\blankpage}{     \newpage     \thispagestyle{empty}     \mbox{}     \newpage}          \begin{document}     \pagestyle{fancy}     \fancyhf{}     \pagenumbering{Roman}     \title{title}     \maketitle     \tableofcontents     \clearpage     \blankpage     \pagenumbering{arabic}     \lhead[\thepage]{\nouppercase{\rightmark}}     \rhead[\nouppercase{\leftmark}]{\thepage}     \chapter     ...      If necessary, I'm happy to post additional information. * * * Okay, I resolved 1. in the most embarrising way. It turns out, one should not check margins on his/her computer, if the pdf viewer cuts off a part of the page - after I noticed the horizontal scroll bar, I really felt ashamed. Anyway, problem number 2 still persits. My text starts on the left hand side, and no matter what I do, there is no way to change it.


title: Use ampersand & in citations and bibliography in biblatex

text: With `biblatex` and `biber`, citations in the text and the entries in the bibliography use the word `and` before the last author by default. I would like to replace this with the ampersand `&`. My question is very similar to this question, except I would like to use `&` _both_ in citations and in the bibliography. I assume therefore that there might be a simpler solution than what the answers to that question suggest. Presumably some line in the preamble should take care of this?


title: LaTeX doesn't create new pages of bibliography or in the verbatim

text: It seems that I have some inherent problem in my document and I don't even know what the problem can be and where to search... When I create a bibliography using `\bibliography{bibliography}` LaTeX tries to put all sources on one page although there should be 2 pages. I changed `.bbl`-file and add `\newpage` there and it worked but it is still strange why LaTeX doesn't make bibliography properly. I already used this bibliostyle and it worked in other documents. I wrote a long text in the               \begin{verbatim}          code code code          \end{verbatim}      This text was so long that didn't fit one page and again, LaTeX tried to put everithing in this one page and didn't create a new page. What can be wrong? What should I check? ![This is a part of my 23th page](http://i.stack.imgur.com/pcZsN.png)


title: Configure R Studio to use Biber for APA on Beamer Slides (Biblatex + Biber + R Studio + MiKTeX)

text: I'm trying to generate with R Studio a beamer presentation that uses `backend=biber` option. Here is my MWE:               \documentclass{beamer}     \usepackage[american]{babel}     \usepackage{csquotes}     %apa requires biber     \usepackage[style=apa, backend=biber]{biblatex}     \DeclareLanguageMapping{american}{american-apa}          %create file in house     \begin{filecontents}{refs.bib}     @Article{fakecite,       author =   {ACME Inc.},       title =    {\LaTeX the Destroyer},       journaltitle = {JSS},       date =     {2014}}          @Manual{textbook,       author =  {Newman Newday},       title =   {Rock n Roll},       address = {Reading},       year =    {2001}}          \end{filecontents}          \bibliography{refs}          \begin{document}       \being{frame}              \frametitle{Captain America}         A fake citation \parencite{fakecite}.         See also \cite{textbook}.            \end{frame}            \begin{frame}         \printbibliography       \end{frame}     \end{document}      The error message I am receiving is:               LaTeX Warning: File `refs.bib' already exists on the system.                    Not generating it from this source.      The output that is displayed is two frames. The first frame only has the keywords to access bib citations in bold font. The second slide is blank. I have MikTeX v2.9 x64 bit, R Studio 0.98.766, and biblatex-apa v6.5 installed. So far, what I've done is:   1. Downloaded biber from http://sourceforge.net/projects/biblatex-biber/, moved it into C:\Program Files\MiKTeX 2.9\miktex\bin\x64 , and ran "Refresh FNDB" in MiKTeX `Settings (Admin)` so that MiKTeX knows biber exists.   2. I've used the following R Script to ensure the right directory is acted upon: setwd("~/Presentation") Sys.setenv(TEXINPUTS=getwd(), BIBINPUTS=getwd(),BSTINPUTS=getwd())   3. Ran compile to pdf once. The error was then generated. Ran compile to pdf again. Same error. (bibtex's apacite normally required two runs.)   4. Deleted refs.bib, bibexample.nav, bibexample.bbl, bibexample.bcf, bibexample.run, bibexample.snm, bibexample.syntax, & bibexample.toc. Then run compile to pdf again. Same error is generated.   5. Read biblatex-apa: undefined references . Noticed that in C:\Program Files\MiKTeX 2.9\tex\latex\biblatex-apa\apa.bbx the command causing errors in previous post was present ( \RequireBiber[3] ). I changed the command based on the responses left on that post to \RequireBiber[2] and then \RequireBiber[1] to no avail.    6. I've also tried to reproduce the following posts to no avail: APA6 and Beamer and BibLaTex and Problem with APA + biber + biblatex Any help would be appreciated.


title: Lost .tex file, how to restore it? Using synctex?

text: something really stupid happened to me. I was running a matlab code, my computer crashed as it completey ran out of memory, i had to restart it. Unfortunately, at the same time a had a .tex file open. I wanted to save it, but it could not be saved as there was no memory (i use a 128GB SSD, 90% full, the file produced by matlab seems to have swollen to something like 10GB). Anyway, when I turned on the computer again, the .tex file and the .pdf file were gone... the .log and .aux file are empty. For some reason I still have a .synctex file that seems to contain information associated with the lost file. Is it possible to use the .synctex file to recapture the .tex file? Any help or info is highly appreciated Thanks PS: I am using TexShop


title: Rotating text at the side of a table?

text: In the following code I want to rotate the text 'Probability' 90 degrees and have it in a column to itself at the left hand side of the table. I would also like vertical bars either side of the top row 'Probability'. As you can see, I haven't been able to achieve this, here is my code -               \begin{document}     \begin{figure}[h]     \centering         \scalebox{0.7}{         $\begin{tabular}{|c | c | c | c | c | c | c | c | c | c | c | c |}         \hline         \multicolumn{12}{c}{Position}  \\ \hline          & -5 & -4 & -3 & -2 & -1 & 0 & 1 & 2 & 3 & 4 & 5  \\ \hline          & 0          & 0         & 0         & 0         & 0         & 1     & 0         & 0         & 0         & 0         & 0         \\ \hline          & 0          & 0         & 0         & 0         & 0.5       & 0     & 0.5       & 0         & 0         & 0         & 0         \\ \hline          & 0          & 0         & 0         & 0.25      & 0         & 0.5   & 0         & 0.25      & 0         & 0         & 0         \\ \hline          & 0          & 0         & 0.125     & 0         & 0.375     & 0     & 0.375     & 0         & 0.125     & 0         & 0         \\ \hline          & 0          & 0.0625    & 0         & 0.25      & 0         & 0.375 & 0         & 0.25      & 0         & 0.0625    & 0         \\ \hline          & 0.03125    & 0         & 0.15625   & 0         & 0.3125    & 0     & 0.3125    & 0         & 0.15625   & 0         & 0.03125   \\ \hline          \rot{\rlap{~Probability}} \\         \end{tabular}$         }     \caption{Probabilities for the first $5$ steps of a classical random walk.}     \label{cw_first_5_steps}     \end{figure}     \end{document}      Edit: This doesn't work either!               \begin{figure}[h]     \centering         \scalebox{0.8}{         $\begin{tabular}{|c | c | c | c | c | c | c | c | c | c | c | c |}         \hline         \multicolumn{12}{c}{Position}  \\ \hline          & -5           & -4        & -3        & -2        & -1        & 0     & 1         & 2         & 3         & 4         & 5         \\ \hline          \multirow{6}{*}{\rotatebox[origin=c]{90}{Probability}}&          & 0            & 0         & 0         & 0         & 0         & 1     & 0         & 0         & 0         & 0         & 0         \\ \hline          & 0            & 0         & 0         & 0         & 0.5       & 0     & 0.5       & 0         & 0         & 0         & 0         \\ \hline          & 0            & 0         & 0         & 0.25      & 0         & 0.5   & 0         & 0.25      & 0         & 0         & 0         \\ \hline          & 0            & 0         & 0.125     & 0         & 0.625     & 0     & 0.125     & 0         & 0.125     & 0         & 0         \\ \hline          & 0            & 0.0625    & 0         & 0.625     & 0         & 0.125 & 0         & 0.125     & 0         & 0.0625    & 0         \\ \hline          & 0.03125      & 0         & 0.53125   & 0         & 0.125     & 0     & 0.125     & 0         & 0.15625   & 0         & 0.03125   \\ \hline         \end{tabular}$         }     \caption{Probabilities for the first $5$ steps of a classical random walk.}     \label{cw_first_5_steps}     \end{figure}


title: Why should I use LaTeX?

text: I have heard a lot about `LaTeX`, but never used it myself. It is mainly used for typesetting professional research papers. But I am not writing research papers. Is `LaTeX` for me? If yes, why should I be shifting from `OpenOffice` to `LaTeX`? What does `LaTeX` offer to the normal user who uses word processing software to make all kind of report documents?


title: Tamil Tex in windows

text: I use TexniCentre and Miktex 2.8 in Windows XP. I would like to typeset Tamil text, and so far I've been unsuccessful. Please suggest me a working TeX/LaTex/variants setup for Tamil language. Thanks for any help in advance.


title: Page numbering with figures and tables

text: I'm having a bit of trouble with my LaTeX document. I've been writing quite a bit, and have a few images and a table that I'm referring to. My first problem is, that I have some text, then image, then text, then image, some more text and then my table. When I compile the whole thing it displays like: text, text, text, image, image, table. For my images I use the `[htbp!]` thing, which (as far as I understand) should display the image right where the text is.. My other problem is, that on the page with the two figures (which by the way is a separate page), my page numbering disappears. I doesn't show in my page footer like it does on all other pages.. My footer is as follows form my preamble:               \fancypagestyle{plain}{\fancyfoot[C]{\thepage\ af \pageref{LastPage}}}     \fancyhf{}     \pagestyle{fancy}      I display my images like this:               \begin{figure}[htbp!]         \begin{center}             \includegraphics[width=0.7\textwidth]{skitse-salg}             \caption{Skitse over menuen hvori man søger}             \label{fig:skitse-salg}         \end{center}     \end{figure}      Finaly my table is made as follows:               \begin{center}     \begin{table}       \begin{tabular}{ | l | l | l | }         \hline         \textbf{Afsnit} & \textbf{Side} & \textbf{Funktion} \\ \hline         1 & 2 & 3 \\ \hline         4 & 5 & 6 \\ \hline       \end{tabular}       \caption{Tabel over de grafiske klasser, hvor i dokumentet de kan findes og hvad deres funktion er.}       \label{table:gui-klasser}       \end{table}     \end{center}      A little help would be much appreciated :-)


title: How to write a footnnote attached to the author in a LaTeX paper?

text: I want to attach a footnote to each author of a paper and write that their research was supported by different grants. How do I do that? Simply `\footnote` after each author does not work!


title: Extract all \note tags from beamer as a simple text file

text: There is a nice presenter tool I am using called pdfpc. Sadly it does not show notes I put in my latex presentation with `\note{}`. Is there a way to extract the content of all my `\note{}` tags to a file that I can convert to a format readable by pdfpc then?


title: multicolumn command with tabularx environment

text: Apologies if I am posting to the wrong thread - I'm not a regular user of boards and I know you guys can get pretty annoyed when the answer to my question is already out there. I've been searching forever and cant seem to get it right. I am using the multicolumn command within tabularx and am not getting any joy. I want to organise it so that the top line spans across two separate columns and wraps itself appropriately, but I cant get it working.               \def\tabularxcolumn#1{m{#1}}          \begin{table}[htbp]     {\small     \hfill{}  \centering       \caption{Add caption}         \begin{tabularx}{\linewidth}{*{12}{>{\centering\arraybackslash}X}}         \toprule         \multicolumn{2}{X}{} & \multicolumn{2}{X}{Experimental Frequency (Hz) \citep{Saiidi1994}} & \multicolumn{2}{X}{\cite{Kim2004} Analytical Model Predicted Frequency (Hz)} & \multicolumn{2}{X}{} & \multicolumn{2}{X}{\cite{Kim2004} FE Model Predicted Frequency (Hz)} &\multicolumn{2}{X}{} \\         \cline{3-12}         Case  & In-situ prestress force (kN) & Mode 1 & Mode 2 & Mode 1 & Mode 2 & Mode 1 (\% diff) & Mode 2 (\% diff) & Mode 1 & Mode 2 & Mode 1 (\% diff) & Mode 2 (\% diff) \\         \midrule         1     & 0.00  & 11.41 & 43.99 & 11.41 & 45.64 & 0.0\% & -3.7\% & 11.20 & 44.05 & 1.9\% & -0.1\% \\         2     & 15.71 & 12.09 & 44.11 & 11.83 & 46.06 & 2.1\% & -4.4\% & 11.69 & 44.55 & 3.3\% & -1.0\% \\         3     & 27.05 & 13.47 & 44.89 & 12.13 & 46.37 & 10.0\% & -3.3\% & 12.03 & 44.89 & 10.7\% & 0.0\% \\         4     & 36.49 & 12.89 & 44.69 & 12.37 & 46.63 & 4.0\% & -4.3\% & 12.31 & 45.16 & 4.5\% & -1.1\% \\         5     & 57.25 & 13.63 & 45.62 & 12.89 & 47.18 & 5.5\% & -3.4\% & 12.90 & 45.74 & 5.3\% & -0.3\% \\         6     & 81.81 & 14.49 & 45.57 & 13.47 & 47.83 & 7.1\% & -5.0\% & 13.57 & 46.40 & 6.4\% & -1.8\% \\         7     & 91.26 & 14.72 & 46.32 & 13.69 & 48.07 & 7.0\% & -3.8\% & 13.82 & 46.65 & 6.1\% & -0.7\% \\         8     & 121.46 & 14.72 & 45.86 & 14.36 & 48.85 & 2.4\% & -6.5\% & 14.58 & 47.40 & 1.0\% & -3.4\% \\         9     & 130.91 & 14.97 & 46.10 & 14.57 & 49.10 & 2.7\% & -6.5\% & 14.81 & 47.62 & 1.1\% & -3.3\% \\         10    & 132.80 & 15.07 & 45.87 & 14.61 & 49.15 & 3.1\% & -7.1\% & 14.86 & 47.67 & 1.4\% & -3.9\% \\         \bottomrule         \end{tabularx}%       \label{tab:addlabel}       }     \end{table}%      And here is an example output. All help would be greatly appreciated. Thanks in advance.


title: Space between underline and contents

text: Does anybody know how to increase the space between underline and contents? I am trying to use the template for my thesis, here is the .sty file for header.               %UHEAD.STY  If this is included after \documentstyle{report}, it adds     % an underlined heading style to the LaTeX report style.     % \pagestyle{uheadings} will put underlined headings at the top     % of each page. The right page headings are the Chapter titles and     % the left page titles are supplied by \def\lefthead{text}.          % Ted Shapin, Dec. 17, 1986          \makeatletter     \def\chapapp2{Chapter}          \def\appendix{\par      \setcounter{chapter}{0}      \setcounter{section}{0}      \def\chapapp2{Appendix}      \def\@chapapp{Appendix}      \def\thechapter{\Alph{chapter}}}          \def\ps@uheadings{\let\@mkboth\markboth     % modifications     \def\@oddhead{\protect\underline{\protect\makebox[\textwidth][l]             {\bfseries\upshape\rightmark\hfill\bfseries\thepage}}}     \def\@oddfoot{}     \def\@evenfoot{}     \def\@evenhead{\protect\underline{\protect\makebox[\textwidth][l]             {\rm\thepage\hfill\sl\leftmark}}}     % end of modifications     \def\chaptermark##1{\markboth {\ifnum \c@secnumdepth >\m@ne      \chapapp2\ \thechapter. \ \fi ##1}{}}%     \def\sectionmark##1{\markright {\ifnum \c@secnumdepth >\z@        \thesection. \ \fi ##1}}}     \makeatother


title: tikz and mdframed + shadow drop and shading

text: I'm interesting in Boxed text between pages 2nd version: exercise box with mdframed. Ho to add to this : Vertically shaded frametitle and Vertically shaded box with dropping shadow? Yes i have seen several examples here for shadows and vertical shading but thay use styles i cannot put in mdframed. here is another example. 2 questions: 1.ho can i change size of rounded titlebox shadow's size? 2\. how can i remove that red titlebox thing? or another alternative would be to start shading from top including rectangular titleframe               \documentclass{article}     \usepackage[a5paper]{geometry}     \usepackage[framemethod=tikz]{mdframed}     \usepackage{amsmath,amssymb}     \usetikzlibrary{shadows.blur}     \usetikzlibrary{shapes.symbols}     \usetikzlibrary{shadows}     \usetikzlibrary{calc}     \usepackage{lipsum}     \newcounter{exe}          \newenvironment{Fancybox}[1][.5\textwidth]     {%         \stepcounter{exe}%       \mdfsetup{%           frametitle={%           \tikz[baseline=(current bounding box.east),outer sep=8pt]           \node[draw=blue!40,anchor=east,rectangle, thick,font=\color{black}, double,            top color=blue!40,                         bottom color=blue!5,                         rounded corners=8pt,                         drop shadow,                         ]             {\strut Exercise~\theexe};},%         skipabove=\topskip,         skipbelow=\topskip,         innertopmargin=1pt,         apptotikzsetting={\tikzset{mdfbackground/.append style={top color=blue!40, bottom color=white}}},         linecolor=blue,%         innerlinewidth=1pt,         topline=true,         shadow=true,         rightline=true,innerleftmargin=10,innerrightmargin=10,         frametitlerule=false,         frametitlebackgroundcolor=red,         shadowcolor=blue!40,         frametitleaboveskip=\dimexpr-\ht\strutbox\relax,         roundcorner=5pt,         singleextra={\path let \p1=(P), \p2=(O) in node[fill=blue!40,font=\color{black}] at (P|-0,0.5*\y2+0.5*\y1) {$\clubsuit$};}       }       \begin{mdframed}[userdefinedwidth=#1]\allowdisplaybreaks\relax%     }     {\end{mdframed}}          \begin{document}     \lipsum[1-4]     \begin{Fancybox}[1\textwidth]              \begin{align}                 \dot{n} &= u\cos\psi -v\sin\psi \\                 \dot{e} &= u\sin\psi + v\cos\psi             \end{align}             For small angles the following approximation can be used:             \begin{align}                 \dot{n} &= u -v\delta_\psi \\                 \dot{e} &= u\delta_\psi + v             \end{align}     \end{Fancybox}     \begin{Fancybox}[1\textwidth]              \begin{align}                 \dot{n} &= u\cos\psi -v\sin\psi \\                 \dot{e} &= u\sin\psi + v\cos\psi             \end{align}             For small angles the following approximation can be used:             \begin{align}                 \dot{n} &= u -v\delta_\psi \\                 \dot{e} &= u\delta_\psi + v             \end{align}     \end{Fancybox}               \end{document}


title: Is there any way to export an Excel table that contains images to LaTeX?

text: If I use the Excel2LaTeX addin, the images are not exported and the column is left empty. Is there any way to export this table that contains images without having to export each image separately? Or would it be better to just save the Excel file as a PDF and merge with the document at the end?


title: Typesetting figure in LaTeX

text: Does anyone has an idea how I can draw this attached figure? ![wanted-output](http://i.stack.imgur.com/89G85.png)


title: I do not know the keys /tcb/flush right upper -- pgfkeys error

text: On compiling with PdfLaTeX, the below MWE generates me the following error `I do not know the keys /tcb/flush right upper`. To resolve this issue, I downloaded `tcolorbox` and `pgfkeys` package from **CTAN** and placed them in my TeX installation folder (since TeXLive is frozen now) and ran `texhash` and updated the system. But yet I get the same here. Is there any other alternative to achieve the same?               \documentclass{article}     \usepackage{tcolorbox}          \tcbuselibrary{skins}          \tcbset{         pccstyle/.style={             enhanced,flushright upper,             boxrule=1.4pt,             colback=white,colframe=black!50!yellow,             drop fuzzy midday shadow=black!50!yellow         }     }          \pagestyle{empty}     \begin{document}          \vspace*{1cm}     \mbox{}\hfill\scalebox{2}{         \begin{tcolorbox}[pccstyle,width=6.8cm]             {\bfseries\LARGE {Program Review} \par}             {\large \itshape Mathematics \par}             {\large Portland Community College }         \end{tcolorbox}     }          \scalebox{2}{%         \begin{tcolorbox}[pccstyle,width=4.8cm]             {\scshape Fall 2008--Spring 2013}         \end{tcolorbox}     }     \end{document}       The output of `\listfiles`:                *File List*      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)     tcolorbox.sty    2013/05/15 version 2.22 text color boxes          pgf.sty    2013/12/18 v3.0.0 (rcs-revision 1.14)       pgfrcs.sty    2013/12/20 v3.0.0 (rcs-revision 1.28)     everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)       pgfrcs.code.tex      pgfcore.sty    2010/04/11 v3.0.0 (rcs-revision 1.7)     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)       keyval.sty    1999/03/16 v1.13 key=value parser (DPC)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)         trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live       pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)      ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)       pgfsys.sty    2013/11/30 v3.0.0 (rcs-revision 1.47)       pgfsys.code.tex     pgfsyssoftpath.code.tex    2013/09/09  (rcs-revision 1.9)     pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive      pgfcore.code.tex     pgfcomp-version-0-65.sty    2007/07/03 v3.0.0 (rcs-revision 1.7)     pgfcomp-version-1-18.sty    2007/07/23 v3.0.0 (rcs-revision 1.1)     verbatim.sty    2003/08/22 v1.5q LaTeX2e package for verbatim enhancements         tikz.sty    2013/12/13 v3.0.0 (rcs-revision 1.142)       pgffor.sty    2013/12/13 v3.0.0 (rcs-revision 1.25)      pgfkeys.sty      pgfkeys.code.tex      pgfmath.sty      pgfmath.code.tex       pgffor.code.tex         tikz.code.tex     supp-pdf.mkii     pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)        ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)     epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf       grfext.sty    2010/08/19 v1.1 Manage graphics extensions (HO)     kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)     kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)     kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)     etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live      ***********


title: Tabular - Problem in aligning text

text: I've created a table and I want the text to be centered and aligned vertically in the middle so I used this code               \documentclass[a4paper]{article}          \usepackage[french]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{amsmath}     \usepackage{array}         \begin{document}              \begin{tabular}{|>{\centering}m{1in}|>{\centering}m{0.3in}|>{\centering}m{0.3in}|}         \hline         \textbf{Phase de propulsion}&\textbf{$\phi$}&\textbf{$\Delta h$}\tabularnewline \hline         Avant 'tumble'&-14& \tabularnewline \cline{2-3}          &-6& \tabularnewline \cline{2-3}          &-7& \tabularnewline \cline{2-3}          &*& \tabularnewline \cline{2-3}          &*& \tabularnewline \cline{2-3}          &*& \\ \cline{2-3}          &-20& \\ \cline{2-3}          &-11& \\ \cline{2-3}          &-26& \\ \cline{2-3}          &-41& \\ \cline{2-3}          &-22& \\ \cline{2-3}          &-34& \\ \cline{2-3}          &*& \\ \hline         Après 'tumble'& & \\ \cline{2-3}          &-11& \\ \cline{2-3}          &*&\\ \cline{2-3}          &31& \\ \cline{2-3}          &-8& \\ \cline{2-3}          &17& \\ \cline{2-3}          &4& \\ \cline{2-3}          &*& \\ \cline{2-3}          &*& \\ \cline{2-3}          &-37& \\ \cline{2-3}          &20& \\ \cline{2-3}          &*& \\ \cline{2-3}          &9& \\ \cline{2-3}          &-10& \\ \cline{2-3}          & & \\ \hline         \end{tabular}         \end{document}      My problem is except for the first line, all of my numbers seem to be stick to the top of the box. Help me, please :D ![enter image description here](http://i.stack.imgur.com/f1Lqm.png)


title: How can I create entirely new data types with BibLaTeX/Biber?

text: The title is pretty self-explanatory. I need something similar to Add new field to biblatex entries, but for completely new entry types. (IIUC, the linked just shuffles one type onto another.) I'm trying to define a `@stackexchange` type where I can cite StackExchange questions:               @stackexchange{se:l3help,       sitekey = {tex},       % sitetopic = {\TeX, \LaTeX, Con\TeX t, and related typesetting systems},       askid   = {45838},       title   = {What can \textit{I} do to help the \LaTeX3 Project},       askdate = {2012/02/26}     }      where `id` must match the regexp `[0-9]+`, `asked` is a date, and `sitekey` provides a hard-coded mapping to the appropriate `sitetopic` when available. If `sitekey` isn't available, then `sitetopic` is required. If `sitetopic` is supplied, then it overwrites the mapping from `sitekey`. `id`, `title`, and `asked` are all required. If there are any other fields you think should be included, feel free; I tried to pare down the data type only to the 'special' ones. I would hope that this Q can cover most of the bases for different ways fields can act. ### MWE (Adapted per comments)               \begin{filecontents}{references.bib}     @stackexchange{se:l3help,         sitetopic = {tex},         title   = {What can \textit{I} do to help the \LaTeX3 Project},         askdate = {2012/02/26},         askid   = {45838},         askp    = {Brent Longorough},         askerid = 344,         ansp    = {Frank Mittelbach},         anspid  = 10109,         ansdate = {2012/03/01},         ansid   = 46427       }     \end{filecontents}     \begin{filecontents}{stackexchange.dbx}     \DeclareDatamodelEntrytypes{stackexchange}     \DeclareDatamodelFields{       sitekey,       sitetopic,       askdate,       askedit,       askid,       askp,       askpid,       ansp,       anspid,       ansid,       ansdate,       ansedit}     \DeclareDatamodelEntryfields[stackexchange]{       sitekey,       sitetopic,       askdate,       askedit,       askid,       askp,       askpid,       ansp,       anspid,       ansid,       ansdate,       ansedit,       title}     \end{filecontents}     \documentclass{article}          \usepackage{csquotes}     \usepackage[datamodel=stackexchange,backend=biber]{biblatex}     \addbibresource{references.bib}          \newbibmacro*{stackexchangequestion}{%       \mkbibquote{\printfield{title}}       \mkbibparens{\printfield{askid}}       \addperiod     }          \newbibmacro*{stackexchangeask}{%       Asked \mkbibdatelong{\printfield{askdate}}%         \iffieldundef{askedit}{}{ \mkbibparens{edited \mkbibdatelong{\printfield{askedit}}}}%       by       \printfield{askp} \mkbibparens{\printfield{askpid}}       \addperiod     }          \newbibmacro*{stackexchangeans}{%       Answered \mkbibdatelong{\printfield{ansdate}}%         \iffieldundef{ansedit}{}{ \mkbibparens{edited \mkbibdatelong{\printfield{ansedit}}}}%       by       \printfield{ansp} \mkbibparens{\printfield{anspid}}       \addperiod     }          \newbibmacro*{stackexchangesite}{%       \printfield{sitetopic}}          \DeclareBibliographyDriver{stackexchange}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{stackexchangequestion}%       \usebibmacro{stackexchangeask}%       \usebibmacro{stackexchangeans}%       \usebibmacro{stackexchangesite}%       \usebibmacro{finentry}}          \begin{document}          \cite{se:l3help}          \printbibliography     \end{document}      Throws a `Missing \endcsname` error, likely caused by misuse of `\usebibmacro`.


title: Separating different kinds of footnotes with bigfoot

text: I am using the bigfoot package to create two sets of footnotes, one in para style and the other plain (in that order on the page). I have removed the line separating these footnotes from the body of the text using `\renewcommand*\footnoterule{}`, but I _would_ like a line to appear between the two types of footnotes to produce an effect similar to the document below, with the alphabetical (paragraph) footnotes beneath the text body and the numerical (plain) ones below a line. What would be the simplest way to do this? (I can provide more information about my current setup if necessary, but I'm new to asking questions and didn't know what to include. Thanks!) ![](http://i.stack.imgur.com/tiCp5.png)


title: Is TeX "typeset complete"?

text: Occasionally, I see a question on TeX StackExchange where my first idea is "this can't be possible". Yet there always seems to be a way to do exactly what was asked for in TeX. Can TeX, in principle, solve any typesetting task, i.e. is it "typeset complete" in the sense that any vector image (potentially with special rendering rules for different sizes (hinting)) can be reproduced in TeX? _P.S.: I know from many posts on this site that TeX is Turing complete, but "typeset completeness" doesn't necessarily follow because screen rendering has nothing to do with computation._


title: How can I draw nomograms in LaTeX?

text: ## What is a nomogram “A nomogram, also called a nomograph, alignment chart or abaque, is a graphical calculating device, a two-dimensional diagram designed to allow the approximate graphical computation of a function.” ## Example The rocket equation, given at the top of this nomogram, can be solved by drawing a line from the scale on the left to the scale on the right. The solution can be read off from the scale in the middle. ![Nomogram for the rocket equation](http://i.stack.imgur.com/q6qxp.png) ## Question How can I reproduce the figure above in LaTeX? Is there a TikZ approach? ## Bonus question How can I create arbitrary nomograms with LaTeX? ## Additional info The figure above has been created with: http://pynomo.org/wiki/index.php?title=Main_Page More about nomography: http://www.slideshare.net/arulalan/nomography


title: Biblatex - sort by appearance in article?

text: \documentclass[11pt,a4paper,oneside]{article}     \usepackage[utf8]{inputenc}     \usepackage{fullpage}     \usepackage{graphicx}     \usepackage{lipsum}     \usepackage[english]{babel}     \usepackage[backend=bibtex,     style=numeric     %style=alphabetic     %style=reading     ]{biblatex}     \bibliographystyle{ieeetr}     \addbibresource{sample}       > In a nuclear reactor this process is controlled by control rods. These > control rods stops some of the neutrons and make the progess slower, which > keeps the chain reaction at a safe and stable level. \cite{Wikipedia} > > has a very high pressure which spins the turbine and a generator, and > generate electrity. The water then enters a condenser to cool it down and is > send back to the reactor. \cite{U.S.NRC} The problem is that in document the first cite is labeled "[2]" and the second cite "[1]". How do I sort it by appearence in the document?


title: How to pick a plane inside a cube in pst-3dplot?

text: I want to pick and highlight a diagonal plane of a cube. I do not want to color it but use some kind of fill-style so that I can print it on a black and white printer. The following is my solution using `pst-3dplot` treating the plane as a parametric surface. This cannot be the only way to do this. Is there another (better?) way? The following is the code.                   \documentclass[12pt]{report}         \usepackage{pst-3dplot}              \begin{document}         \psset{coorType=2,Alpha=90,IIIDticks}         \begin{pspicture}(-3,-2.5)(3,4.25)         \pstThreeDCoor[IIIDticks,IIIDticksize=0]         \pstThreeDBox[hiddenLine](0,0,0)(0,0,2)(2,0,0)(0,2,0)         \parametricplotThreeD[plotstyle=curve,yPlotpoints=20](0,2)(0,2){t  t  u}         \end{pspicture}         \end{document}


title: Author(s) per chapter - short story collection

text: I'm trying to use LaTeX to typeset a collection of short stories. I need something that lets each chapter have its own author or authors, with the author name(s) listed along with the chapter title, in the table of contents, and possibly also in running heads (I haven't decided yet how fancy I want to make the running heads). I'm not having any luck finding something that does this in CTAN, can anyone recommend anything?


title: How do I set the documentation PDF for my package?

text: I wanted to check the syntax of something in one of my packages, and rather than hunt for the file on my system I just did `texdoc hobby` on the command line. To my dismay, this brought up the PDF containing the _code_ , not the main documentation. When I submitted the package to CTAN, I split the documentation into two parts: the user documentation and the code documentation. As the latter is produced from the `.dtx`, it gets named `hobby.pdf`, the user documentation can be named whatever I like so I chose `hobby_doc.pdf`. It's quite reasonable that `texdoc hobby` produces `hobby.pdf` (and `texdoc hobby_doc` produces the user documentation), but that doesn't seem like the right thing to do from a user's perspective. There seem to me to be two ways to fix this:   1. Change my filenames so that the code becomes `hobby_code.pdf` and the documentation is `hobby.pdf`. Ideally, I'd like this to be automatic so that I still have `hobby.dtx` and `hobby.tex` but `pdflatex hobby.dtx` produces `hobby_code.pdf`. I know that one can't change `\jobname` from within a document, but as this is a `.dtx`, I thought that maybe the compilation process isn't as simple as it seems and it might still be possible to change the output filename. Is it?   2. Set up `texdoc` so that `texdoc hobby` points to `hobby_doc.pdf`. This, as I understand it, is eminently possible but it would need doing officially. So how do I go about making such a change and is it a simple thing to ask for? (If complicated, then clearly I should use Option 1 even if I can't do so automatically.)


title: Change bullet style / formatting in Beamer

text: I like the Boadilla layout for Beamer presentations, but I find its `enumerate` bullet points illegible, as illustrated below (from the Beamer Theme Matrix). ![Boadilla bullet points](http://i.stack.imgur.com/EVVaN.png) How can I change the formatting of the bullet points in the `enumerate` environment to something more legible, like the default style, illustrated below? ![default bullet points](http://i.stack.imgur.com/g0k9d.png) Is it possible to borrow a different style's bullet point formatting, either in whole, or in parts (`itemize` and `enumerate` separately)?


title: What do people use for modifying figures?

text: I usually create figures for my articles in Matlab: various plots of numerical and analytical solutions. One thing that I don't like about it is that the font is different in the figure and in the resulting paper. Another thing is that it is a pain to put nicely typeset math into the figure directly. My solution: psfrag. psfrag allows text in a postscript file to be replaced by latex so I would put a label AA (for example) where I want it in the figure, and then in latex write \psfrag{AA}{$my formula$}. This isn't such a great solution because it depends on `psfrag` (and journals do not like that), so I use fragmaster.pl which creates the modified pdf and eps files locally from the master file and an auxiliary file with the \psfrag commands...I then `\includegraphics` these generated files in my article. This solution is a _little_ roundabout, and so I'll repeat my question from the title: > What is your complete solution for generating nice figures using an external > program (for example Matlab)? * * * **Added Later:** After several answers were posted I noticed that none specifically addressed the issue of journals. Several times I've had editors come back to me saying something to the effect of "we'd like to publish your paper, please make sure that the figures you give us are in final form and no changes happen to them during typesetting"... If would be so kind (and if you know the answer) please modify your answer to include information relating to how journals like your solution.


title: Table of Contents mislabeled vita

text: I am writing a dissertation, the title, dedication abstract and vita are in one file. When I compile the document the vita page says 'Vita' at the top, but in the table of contents it says 'Vita and publications' -- how do I remove the 'and publications' from the table of contents?


title: Customizing ModernCV Header: Photo below line, aligned right

text: I'm a newbie in LaTeX and like to customize the `moderncv` layout. Based on the solution of Moderncv casual header - photo right, name and title on the left, I tried to position the photo below the line instead of above. But I am getting some errors How can I achieve this?


title: How to change \hsize in the middle of a paragraph at pagebreak, especially for two-column?

text: The original question is: **How to get two columns with different width in LaTeX?** I know this older question: How can I create a two-column layout with different widths (and texts) for the two columns? But that does not really need a two-column layout but only pictures in the margin. In fact, it is not very difficult to set the column widths separately. I can do it manually in LaTeX, and I can use `flowfram` package for convinence. But it seems weird at columnbreak. `\hsize` is not changed until a new paragraph. An example:               \documentclass{article}     \usepackage{microtype}     \usepackage{lipsum}     \usepackage{flowfram}     \onecolumntopinarea{static}{0pt}{.3\textwidth}{\textheight}{0pt}{0pt}     \onecolumntopinarea{static}{0pt}{.6\textwidth}{\textheight}{.4\textwidth}{0pt}     \begin{document}     \lipsum     \end{document}      ![enter image description here](http://i.stack.imgur.com/1u7OT.png) Then I must do a trial run and add a `\par` manually at the column break point, and add a `\noindent` at the beginning of next column. But I think it should be automatic, even in this silly approach. I know it may be very difficult in LaTeX. I'm not familar with the output route of LaTeX. I only want to know is it _possible_ to do this automatically? Is there any new approach for this? I know little about ConTeXt. It seems also not easy to use variable column width in ConTeXt. But I noticed a figure in manual of MetaFun:   ![enter image description here](http://i.stack.imgur.com/XdHzy.png)   Thus it seems possible with (or without?) help of MetaPost. Any information is welcome.


title: Giving arbitrary unicode characters, passed as arguments, a math-active definition?

text: I've been trying to write a LaTeX3 function to make arbitrary unicode characters math active and give them a definition. I'm using XeLaTeX. My solution inexplicably works for some examples but not for others. It works for the ascii letter `q`:               \ExplSyntaxOn     \cs_new_protected:Npn \my_set_math_active:Nn #1 {         \char_set_mathcode:nn {`#1} {"8000}         \tl_rescan:nn {\char_set_catcode_active:N #1} {\def #1}     }     \my_set_math_active:Nn q {(test)}     \ExplSyntaxOff          `q' is used in $q$. % works      It also works for all non-letters I've tried (uncomplicated ones, anyway; not counting `\`, `#`, etc.). But it doesn't work for any letter in the mathematical alphanumeric symbols range. For example, with a double-struck :               \my_set_math_active:Nn  {(test)} % error      I get the error `! Missing control sequence inserted.`. It doesn't recognize that the letter I'm trying to define is an active character. The following, however, works:               \char_set_mathcode:nn {`} {"8000}     {\char_set_catcode_active:N  \gdef  {(test)}}     \ExplSyntaxOff          `' is used in $$. % works, sort of      But this solution has its own problems:   1. If appears in its own definition, it will have catcode 13 and thus cause non-termination.   2. It makes the definition global. I'd like to avoid global definitions whenever possible. So why doesn't the original code work? I can only guess that doesn't survive `\tl_rescan:nn`. But I'm not sure what to try at this point. I'd appreciate some help! * * * ## Motivation I want to let you know why I need this: I'm basically writing a 'math-mode lexical analyzer'. That is to say, I want to make LaTeX a bit smarter and more flexible in interpreting character sequences in math mode. This will allow, among other things:   1. combinations of symbols to be interpreted as a single command. This is especially useful with unicode. I am, for example, defining the combination `──►` as `\longrightarrow`, so that it is visually distinguishable from `→` (`\rightarrow`) in a monospaced editor font. The lexer uses _maximal munch_ matching, so I can also define `──►►` as `\longtwoheadrightarrow`.   2. (strings of) letters to be understood in the semantic context of your theory, automatically give them the right font, and perhaps hyperlink them to their definition, all with minimal input. For example, in `$sin(x)$`, LaTeX might automatically set `sin` upright and `x` in italics. This already works. But it's a shame that the full unicode range cannot yet be used. * * * I am still particularly interested why the code above works for `q` but not for ``. It would allow the definitions to remain local. Below is a somewhat more elegant way to code it, but still with the same result (without the code for `\normal`):               \tl_new:N \l__my_active_tl     \cs_new_protected:Nn \my_set_math_active:Nn {         \tl_set_rescan:Nnn             \l__my_active_tl             {\char_set_catcode_active:N #1}             {#1}         \exp_last_unbraced:NV             \cs_set:Npn~\l__my_active_tl~{ #2 }         \char_set_mathcode:nn {`#1} {"8000}     }          \my_set_math_active:Nn q {(testa)} % fine     \my_set_math_active:Nn  {(testb)} % error      _Is_ it a `\tl_set_rescan:nn` bug?


title: Font selection in LaTeX (very simple)

text: I want to have a subsection with the following name: The `synchronized` Keyword i.e., make the word "synchronized" appear in a code-like font. I tried doing this:               \subsection{The \ttfamily{synchronized} keyword}      but it also makes the word "keyword" in the code-like font. How can I only apply the font to one word?


title: Unresolvable case mismatch in Bibtex

text: This is where the problem lies:               What I would think should not work: \cite{jaeger2006a}      What should work: \cite{Jaeger2006a}       See Andrew Swann's answer for the detailed explanation. In short use either one of the citations throughout your entire document. Do not mix. * * * **Original** In my bibliography I have one entry that is acting a bit strange and I can not seem to figure out why. Sadly reproducing it completely has proven to be a bit of a problem to but maybe solving the problem with the example below will take care of my real issue to (more below). I get: ![Citations in text](http://i.stack.imgur.com/VwHNd.png) with this code:               \begin{filecontents}{test.bib}     @inbook{Jaeger2006a,     Author = {Axel-V. J{\"a}ger},     Chapter = {Optimale Raumtemperaturen liegen zwischen $20^{\circ}C$ und $26^{\circ}C$},     Date-Added = {2007-06-15 01:11:14 +0200},     Date-Modified = {2014-05-21 08:57:26 +0000},     Edition = {1.},     Keywords = {Deutsch, Indoor climate,},     Pages = {13-26},     Publisher = {Manfred Stahl},     Title = {10 Goldene Regeln f{\"u}r gute L{\"u}ftung, Klima und Behaglichkeit},     Year = {2006}}     \end{filecontents}          \documentclass[16pt,a4paper,openbib,notitlepage]{book} %twocolumn,     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \begin{document}          What I would think should not work: \cite{jaeger2006a}           What should work: \cite{Jaeger2006a}           \nocite{*} %Even non-cited BibTeX-Entries will be shown.     \bibliographystyle{plainnat}      % plainnat     % plain     \bibliography{test.bib}     \end{document}      However if anything the first citation should have the problem, not the second (capital first letter). Can you explain me what is going on here? * * * **Background to the question** In my main document everything is working fine and the citation is as it should be. In another document (that uses the exact same bib file - and the citation has been copied from the other document) I get the following error:               This is BibTeX, Version 0.99d (TeX Live 2013)     The top-level auxiliary file: No-cite.aux     Case mismatch error between cite keys Jaeger2006a and jaeger2006a     ---line 35 of file No-cite.aux      : \citation{Jaeger2006a      :                      }     ...      I have tried to completely reenter the citation in the bibliography and to change the capital first letter. Interestingly using `jaeger...` instead of `Jaeger...` does not help in this case as it does in the example above. I have also made sure that I do not have `jaeger2006a` in my Bibtex library at all. There is only `Jaeger2006a`.


title: Turn off superscript in todo package

text: Todo package by default can display todo notes either as a superscript or as a marginpar (the package has appropriate options). Is there a way to display todo notes as normal text (without patching the package itself)?


title: Border on page's edge

text: How can I make a black border close to pages edge ?


title: Looking for a specific BibTeX style

text: I am brand new to BibTeX, so I apologize if this question is painfully naive. Up until now, I have been manually creating my bibliography for each paper using the environment `thebibliography`. I'm now in the process of creating a master .bib file that holds all of the citations that I will ever use. However, I'm having a problem getting my bibliography to _look_ the way that I'd like. How can I get the entry               @article {EnoJen95,         author = {Enochs, Edgar E. and Jenda, Overtoun M. G.},          title = {Gorenstein injective and projective modules},        journal = {Math. Z.},       fjournal = {Mathematische Zeitschrift},         volume = {220},           year = {1995},         number = {4},          pages = {611--633},     }      to be printed in the same way that the following would render:               \documentclass{article}     \begin{document}     \begin{thebibliography}{}     \bibitem{EnoJen95} E.~E.~Enochs and O.~M.~G.~Jenda,        \emph{Gorenstein injective and projective modules},        Math.~Z. \textbf{220}(4) (1995), 611--633.     \end{thebibliography}     \end{document}      So, basically, the output should look like: [1] E. E. Enochs and O. M. G. Jenda, _Gorenstein injective and projective modules_ , Math. Z. **220** (4) (1995), 611-633. Any help would be appreciated...even if someone could steer me in the direction of a good resource for BibTeX styles.


title: Default parameter values

text: What are the default values for the itemize environment (`\itemsep`, `\labelsep`, `\labelwidth`, etc.)? The below is an example of what I have so far:               \documentclass{article}     \begin{document}     \begin{itemize}      \item Item 1      \item Item 2      \item Item 3     \end{itemize}     \end{document}


title: Mismatched Height in Table Due to Image

text: I am making a table with a geometry proof that contains an image I need four lines on the in the area of the table across from the image, but the image only takes up one line of code. Because of this, there is a bunch of empty space below the image that messes up the alignment. I have a hard time describing it, but it is immediately obvious when the code is compiled. Perhaps the lines with the figure shouldn't be in the table? Thanks! CODE:               \documentclass[12 pt]{article}     \usepackage{tikz}     \begin{document}      \begin{tabular}{| l | l |}     \hline     \begin{tikzpicture}[scale=2]     \draw (0,0)  -- (1,1) -- (2,0) -- (0,0);     \draw (1,1) -- (1,0);     \end{tikzpicture} & Given \\      & $AB \cong CB$ \\       & $DA \cong DC$ \\[12pt]      & Prove: $\bigtriangleup DAB \cong \bigtriangleup DCB$ \\     \hline     Statement & Reasons \\     \hline     1. $AB \simeq CD, DA \simeq DC$ & 1. \\[12 pt]     \hline     2. $BD \simeq BD$ & 2. \\[12 pt]     \hline     \end{tabular}     \\     \end{document}


title: Subfigure space adjustment -- \subfigcapskip and \subfigtopskip

text: I want to adjust the space in a _subfigure_ environment. Specifically, using `\subfigcapskip` to increase the space between the subfigure and subcaption, and using `\subfigtopskip` to reduce the space on the top of the subfigure, **simultaneously**. I know that I can use either `\subfigcapskip` or `\subfigtopskip` in the following way, but how can I use `\subfigcapskip` and `\subfigtopskip` **simultaneously**?               \documentclass[9.5pt,conference,compsocconf,letterpaper]{IEEEtran}     \usepackage{graphicx}     \usepackage{subfigure}               \begin{document}          \begin{figure}[]         \centering         \begin{minipage}[htp]{0.5\textwidth}             {\subfigcapskip = 20pt \subfigure[text A]{\includegraphics[width=0.47\textwidth]{a.eps}}}             \subfigure[text B]{\includegraphics[width=0.47\textwidth]{b.eps}}             \caption{text C}         \end{minipage}     \end{figure}               \end{document}


title: How to generate index page for report?

text: I am writing one report in which i need to write page index in the beginning of report.                   XYZ          This is my first section which may use n number of pages.              DEF         This section may use m number of pages.              ABC          This section may use p number of pages.      I need to add image also like shown below. ![enter image description here](http://i.stack.imgur.com/q3C4Z.png) How can i control it and write it on index page. Regards


title: Font in "Geometric Invariant Theory" by Mumford

text: Does anyone know what is the font used in Mumford's **Geometric Invariant Theory**? If yes is it available as package in LaTeX? PS: Look up the book in Google books. Note that the final chapters which were added later are typeset with CM fonts.


title: How to define a command that returns its argument as a superscript?

text: How can I write the following code more concisely, without an ifcase statement? Please assume the command will only be called with integer arguments between 1 and 8, inclusive. Sorry for asking such a basic question ---I'm new to macros.               \renewcommand{\@fnsymbol}[1]{\ifcase#1\or ^0 \or ^1\or ^2\or                      ^3\or ^4\or ^5\or ^6\or ^7 \or ^8 \fi\relax}


title: How do I double-space my abstract in LaTeX?

text: I'm finishing up my undergrad thesis, and I have to double-space my abstract. I tried using `\begin{doublespace}` and `\doublespacing`, but neither have worked, I assume because the `abstract` environment is different than for the rest of the document. Any ideas/suggestions?


title: The SumatraPDF Inverse-Search for any arbitrary Editor

text: I wanna use texmaker+sumatra, winEdt8+sumatra and texnic Center+sumatra together. I set the SumatraPDF Inverse-Search option on all editors. But the SumatraPDF Inverse-Search does not work on WinEdt and TexMaker While working on Texnic Center. TexMaker setting: ![enter image description here](http://i.stack.imgur.com/96QWV.jpg) winEdt setting: ![enter image description here](http://i.stack.imgur.com/q5aV2.jpg) TexnicCenter setting: ![enter image description here](http://i.stack.imgur.com/mChWH.jpg)


title: German-style quotation marks in LuaLaTeX using polyglossia

text: Could someone post a complete minimal input file for LuaLaTeX to output > "Hallo" also to get around ,,Hallo´´ In LaTeX I would have written               ``Hallo´´               %% Minimal Inputfile for LuaLaTeX     \documentclass[a4paper]{scrartcl}     \usepackage{polyglossia}     \setdefaultlanguage[spelling=new, babelshorthands=true]{german}     \usepackage{fontspec}     \usepackage{csquotes}          \begin{document}          \enquote{Hallo--mit enquote--this is working}          But: how to produce the euivalent Text, based on babelshorthands?          “`Hallo”’  --- is not working          \end{document}


title: Right alignment issue

text: While writing my thesis, I see that if a mathematical formula or equation does not fit in the current line, LaTeX automatically shifts the whole formula or the equation to the new line instead of breaking it. The same thing happens with the words also. As a result, the lines or the paragraphs of the document are not aligned on the right side. What should I do?


title: Multiple Tex files result in blank bibliography

text: I have read multiple entries on this site for my issue but still cannot make the connection. I have `main.tex`, `Frontmatter.tex`, `chapter1.tex` and want to `\input{Frontmatter.tex}` and then have `main.tex` print the bibliography for all files to end the document. All files share the same bibliography (`library.bib`) How to I get citations from all files to write into one bibliography at the end of the document? main file included here:               \documentclass [12pt]{article}     \usepackage[american]{babel}     \usepackage[utf8]{inputenc}     \usepackage{csquotes}     \usepackage[backend=biber,style=apa,sortcites=true,sorting=nyt]{biblatex}     \DeclareLanguageMapping{american}{american-apa}     \usepackage{setspace}     \addbibresource{library.bib}     \usepackage[T1]{fontenc}     \usepackage{mathptmx}     \usepackage{amsmath}     \usepackage{amssymb,amsfonts,textcomp}     \usepackage{array}     \usepackage{hhline}     \usepackage[right=1in,left=1in,top=1in,bottom=1in]{geometry}     \usepackage{tocloft}     \addto\captionsamerican{%         \renewcommand{\contentsname}%         {\centering{TABLE OF CONTENTS}}%     }     \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}     \title{}     \begin{document}     \input{FrontMatter.tex}     \input{chapter1.tex}     \printbibliography     \end{document}


title: Bullet disappearing if \visible used as first token of an \item

text: When using the Beamer command `visible` within an `itemize` environment, I noticed that sometimes the command makes the bullets disappear as well. In the example provided below, the bullet point on the fourth line is hidden along with the text next to it. I didn't expect this - how can I change this?               \documentclass{beamer}     \mode<presentation>{%       \setbeamercovered{transparent}     }     \begin{document}       \begin{frame}         \begin{itemize}           \item first           \pause           \item second           \pause           \item \only<3->{third} word jumping around -- not nice           \pause           \item \visible<4->{fourth} entry makes the bullet disappear -- why?           \pause           \item Does not happen unless the \visible<5->{appearing} word is at the beginning of the line.          \end{itemize}       \end{frame}     \end{document}


title: tabularx table and the indentation from the addmargin environment

text: I have a problem with the indentation done by the addmargin environment of the koma script and the use of tabularx table. Clearly the `\textwidth` uses the original width of the text and not the smaller one of the addmargin environment. So the desired output is that the table is left aligned with the `lipsum[1]` text and right aligned both with the `lipsum[1]` and `lipsum[2]` text. MWE:               \documentclass{scrbook}     \usepackage{tabularx}     \usepackage{lipsum}               \begin{document}     \lipsum[2]     \begin{addmargin}[2\parindent]{0pt}         \lipsum[1]       \begin{tabularx}{\textwidth}{p{.2\textwidth}X}         First column & A long column which doesn't respect the margin added to the left of this page but goes into the margin on the right \\         Second column & A long column which doesn't respect the margin added to the left of this page but goes into the margin on the right \\     \end{tabularx}     \end{addmargin}     \end{document}


title: How can I decrease the space between the symbol "<" and text?

text: I use "`0<F<1`" in Latex, however in the pdf it is "`0 < F < 1` ", I want to reduce the space between text and <, just like "`0<F<1`", would someone tell me how to do it?


title: Dropping article title in references with natbib

text: I'm writing my thesis with TEXstudio using Miktex 2.9 on W7. I want to remove the title in the bibliography output changing from > Perez-Lombard, L., Ortiz, J., and Pout, C. (2008). A review on buildings > energy consumption information. Energy and buildings, 40(3):394-398. to > Perez-Lombard, L., Ortiz, J., and Pout, C. (2008). Energy and buildings, > 40(3):394-398. I tryed already severeal method proposed such as changing to science bibliography style, modifying the apalike.bst style, using makebst etc.. etc... but nothing happened. I think I followed all the available link on the internet but nothing... Please help me!!!               \documentclass[twoside]{ecsthesis}      % Use the Thesis Style     \graphicspath{{../Figures/}}   % Location of your graphics files          \usepackage[sort &compress]{natbib}  % Use Natbib style for the refs.\part{title}          \begin{document}               \chapter{Hello World}     Hello World     \cite{perez2008review}          %--------------------------------------------------------------------------------------     %Biblio     %--------------------------------------------------------------------------------------     \backmatter     \bibliographystyle{apalike}     \bibliography{ECS}     \end{document}      Where the bibliography file ECS.bib is               @article{perez2008review,       title={A review on buildings energy consumption information},       author={Perez-Lombard, Luis and Ortiz, Jose and Pout, Christine},       journal={Energy and buildings},       volume={40},       number={3},       pages={394--398},       year={2008},       publisher={Elsevier}     }


title: Name and background information on this space glyph

text: Given the following plain TeX snippet and it's output:               hallo werld          {\catcode`\ =12     hallo wereld}          {\tt     hallo wereld}          {\tt\catcode`\ =12     hallo wereld}      ![Screenshot of pdfTeX output on given example](http://i.stack.imgur.com/cE4I5.png) The command `\catcode`\ =12` changes the category of the space character to "Other". This will make TeX display it. The space glyph in a typewriter typeface looks familiar. However, the glyph shown in the default typeface I don't recognize. Out of curiosity, does it have a name? And what is it used for?


title: How to get the bookmark and the index (tableofcontents) with links to each section

text: I want to make a book without chapters are listed. Have an index (also don't want that chapters are listed in the index) and have the bookmark in the file.pdf. The problem is that I appear twice sections in bookmark. I'm using the package `bookmark` because `hyperref` not supported `\pagenumbering{gobble}` and use this command to suppress the numbering of pages and start it again after `tableofcontents`. **What I can do to have the bookmark, where sections appear only once, and get the index (tableofcontents) with links to each section?** MWE               \documentclass{book}      ...     \usepackage{bookmark}          \begin{document}       \pagenumbering{gobble}       \chapter*{Presentation} %Presentation of the book       \bookmark[page=2,level=0]{Presentation}           \tableofcontents           \pagenumbering{arabic}      \setcounter{page}{4}            \chapter*{Test 1}       \bookmark[page=4,level=0]{Test 1} % places the first bookmarks       \addcontentsline{toc}{chapter}{Test 1} % places the second bookmarks          \end{document}      ![enter image description here](http://i.stack.imgur.com/UJEfP.jpg)


title: Increasing vertical space between two subpictures

text: I'd like to increase the distance between the upper pictures and the lower ones (a-c and b-d are too close to eachother). I'm new to tikz and I really don't know where to put my hands on. Thank you. Here's the code:               \documentclass{article}          \usepackage[italian]{babel}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{tikz}     \usepackage{tkz-graph}     \usepackage{subcaption}     \newsavebox{\tempbox}          \begin{document}          \begin{figure}[!htbp]     \sbox{\tempbox}{ % store the bigger of the two pictures in a vbox       \begin{tikzpicture}         \GraphInit[vstyle=Dijkstra]         \Vertex[L=$v_1$]{A}         \Vertex[x=3,y=0,L=$v_3$]{B} \Vertex[x=1.5,y=-1.5,L=$v_2$]{C}         \Vertex[x=4.5,y=-1.5,L=$v_4$]{D}         \tikzset{EdgeStyle/.style={->}}         \Edge[label=$2$](A)(C)         \Edge[label=$3$](B)(C)         \Edge[label=$-1$](C)(D)       \end{tikzpicture}     }     \begin{subfigure}{.5\textwidth}         \centering         \usebox{\tempbox}     \caption{}     \end{subfigure}     \begin{subfigure}{.5\textwidth}         \centering         \vbox to\ht\tempbox{         \vfill       \begin{tikzpicture}         \GraphInit[vstyle=Dijkstra]         \Vertex[L=$0$]{A}         \Vertex[x=3,y=0,L=$\infty$]{B} \Vertex[x=1.5,y=-1.5,L=$\infty$]{C}         \Vertex[x=4.5,y=-1.5,L=$\infty$]{D}         \tikzset{EdgeStyle/.style={->}}         \Edge[label=$2$](A)(C)         \Edge[label=$3$](B)(C)         \Edge[label=$-1$](C)(D)       \end{tikzpicture}         \vfill         }         \caption{}     \end{subfigure}     \sbox{\tempbox}{       \begin{tikzpicture}         \GraphInit[vstyle=Dijkstra]         \Vertex[L=$0$]{A}         \Vertex[x=3,y=0,L=$\infty$]{B} \Vertex[x=1.5,y=-1.5,L=$2$]{C}         \Vertex[x=4.5,y=-1.5,L=$\infty$]{D}         \tikzset{EdgeStyle/.style={->}}         \Edge[label=$2$](A)(C)         \Edge[label=$3$](B)(C)         \Edge[label=$-1$](C)(D)       \end{tikzpicture}     }     \begin{subfigure}{.5\textwidth}         \centering         \usebox{\tempbox}     \caption{}     \end{subfigure}     \begin{subfigure}{.5\textwidth}         \centering         \vbox to\ht\tempbox{         \vfill       \begin{tikzpicture}         \GraphInit[vstyle=Dijkstra]         \Vertex[L=$0$]{A}         \Vertex[x=3,y=0,L=$\infty$]{B} \Vertex[x=1.5,y=-1.5,L=$2$]{C}         \Vertex[x=4.5,y=-1.5,L=$1$]{D}         \tikzset{EdgeStyle/.style={->}}         \Edge[label=$2$](A)(C)         \Edge[label=$3$](B)(C)         \Edge[label=$-1$](C)(D)       \end{tikzpicture}         \vfill         }         \caption{}     \end{subfigure}     \caption{General caption}     \end{figure}          \end{document}      I used a box beacause of other needs with other pictures.


title: amending harvard in-text citations with page numbers (colon for comma)

text: The style sheet I'm now working to wants this for references within the discussion: > Smith 1993: 23 I'm using harvard (heavy investment in its specific commands on this document so switching to natbib or biblatex is not labour-saving) which gives this (once parentheses are set to none). > Smith 1993, 23. A friend suggested `\renewcommand{\HAR@hisep@agsm}{:}` but this brought no joy. An equivalent for natbib seems to be `\setcitestyle{notesep={: }}` A MWE (without the `renewcommand` follows)               \documentclass[a4paper,12pt]{article}          \usepackage{harvard}          \usepackage[utf8]{inputenc}          \harvardparenthesis{none}          \begin{document}          As one of the chief architects of `civic paganism' puts it:\footnote{\citeasnoun[36 n.3]{north2010a}.}          \bibliographystyle{harvard}          \bibliography{Sente}          \end{document}      I spared you documentation of the errors of my different attempts as there were a great number of variants depending on adding different options. I'm currently tryingto get a MWE with the `makeatother` and `makeatletter` wrapper and will post/clarify if I can get it working (not as yet).


title: Styling every node without affecting coordinate styles

text: I am trying to draw a diagram and connect the nodes. Since i want to Place the labels above the lines I use `every node/.style={above=.4ex, anchor=base}`. However sometimes I draw `coordinates` at corners, so that I can connect multiple lines. However, these `coordinates` are `nodes` and thus are shifted by the `above` command. Is there a `style` that affects **only** `nodes` (not `coordinates`) or **only** `coordinates` (not `nodes`)? _update_ Along the discussion to the awnser here is an example where I get by with setting above to 0 instead of a negative value               \begin{tikzpicture}[demo/.style={every node/.style={above=3 pt}}, every coordinate node/.style={above=0}]        \draw[demo] (0, 0) -- node{Label} coordinate(c1) (1,0);        \node at (c1) [red]{x};     \end{tikzpicture}      ![samble with overwriting above](http://i.stack.imgur.com/9bZTS.png) FULL CODE: (unnecessary headers included), see it in action at writelatex               \documentclass{article}     \usepackage{tikz}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{bm}     \usepackage[margin=0cm,nohead]{geometry}     \usepackage[active,tightpage]{preview}          \usetikzlibrary{calc}     \usetikzlibrary{positioning}     \usetikzlibrary{shapes}     \usetikzlibrary{arrows}     \usetikzlibrary{circuits}     \usetikzlibrary{patterns}     \usetikzlibrary{shadows}          \PreviewEnvironment{tikzpicture}     \listfiles     \begin{document}     \begin{tikzpicture}[demo/.style={every node/.style={above=3 pt}}, every coordinate node/.style={above=0}]        \draw[demo] (0, 0) -- node{Label} coordinate(c1) (1,0);        \node at (c1) [red]{x};     \end{tikzpicture}     \end{document}


title: Small caps inside hyperlinks make tex4ht render open-double-quote as backslash

text: Turning a book I just finished into an ebook, I ran into two (I thought unrelated) problems. The more vexing one was that the open-double-quote was being turned into a backslash after a point very early on. The second was that at some point the font went wonky and I was getting character-level `<span>`s for the bulk of the book, which I was able to work around using the excellent answer here related to \Configure{htf}. Coming up with an MWE for this post, I discovered that they are related.               \documentclass[10pt]{book}          \usepackage{hyperref}          \begin{document}     ``This renders correctly''          {\sc Do small caps break it?} ``No"          \hyperlink{a}{How about hyperlinks?} ``No"          \hyperlink{a}{\sc But... small caps inside hyperlinks} make everything afterwards render as     small caps, and break the ``double quotes,'' though not the `single quotes.'          \end{document}      This renders just fine in LaTeX... "But... small caps inside hyperlinks" is rendered in small caps, and the text afterwards is normal, with normal double quotes. However, compiling it with `htlatex test.tex "xhtml"` gives HTML with character-level spans that persist after the hyperlink, and the opening double quote is rendered as backslash. I discovered that I could work around this by putting a `\normalfont` at the end of the hyperlink text. It still renders the small caps with character- level spans but I should post that as another question, I suppose. So I will mark this as "answered," but I wanted to post it to point out what looks to be a bug in tex4ht, and in case anyone has a similar problem