title: Splitindex: How do I make splitindex either ignore \ or make verbatim work with splitindex?

text: I´m trying to set up an index for a custom command called \propDesc. This command highlights properties and their description:               \newcommand{\propDesc}[2]{     \fcolorbox{white}{propbg}{     \begin{minipage}[c]{\textwidth}     \vspace{1ex}     \textcolor{title}{#1}     \\     #2      \vspace{1ex}     \end{minipage}     }     \\     }      In order to gain a better overview of existing properties (translations etc.), I want to create a new index. However, \propDesc contains various special characters and \ commands, e.g. \tags{de}{XYZ} \tags{en}{ABC} Splitindex does not accept these commands. So, if i try to index                \documentclass{minimal}              \begin{document}                  \index[someindex]{Some Text}{\tags{de}{Hallo} \tags{en}{Hello}                        \printindex[Product]         \end{document}      For my purposes, I don´t need Latex to compile the tags. Something like verbatim would be enough. I need to be able to render "plain" text into the index, which in this case, is strictly for internal usage. Basically, my goal is a content and code overview. As an example: Different systems often require different file suffixes or language. These suffixes are handled using tags/ switches (ifjobname etc.). I need to know if the property/ file exists and if it has been provided with all necessary file suffixes (e.g.: property \tagone{.xyz}\tagtwo{.abc}. Thus, this index does not have to be beautiful. All I need is a simple list proving the information mentioned above. So far, I tried               \newcommand{\propDesc}[2]{     \fcolorbox{white}{propbg}{     \begin{minipage}[c]{\textwidth}     \vspace{1ex}     \textcolor{blue}{#1}     \\     #2      \vspace{1ex}     \end{minipage}     }     \\     \propindex{#1}{#2}     }     % ------     \makeindex[name=properties,title=Property Index,columns=1,]          \newcommand{\propindex}[2]{\index[properties]{{\color{title}Property: }#1}{ \phantom{#2}}}      which didn´t work (index does not match its definition...). I hope you understand my problem. So: How can i make splitindex ignore \ or simply render \ similar to verbatim? Full MME:               \documentclass{book}          %Packages ------------------------------     \RequirePackage[obeyspaces]{url}     \RequirePackage[utf8x]{inputenc} % Accept different input encodings.     \RequirePackage{latexsym} % Additional characters.          \RequirePackage{graphicx} % Enhanced support for graphics.     \RequirePackage{listings} % Typeset source code listings using LaTeX.     \RequirePackage{MnSymbol} % math symbols used in listings     \RequirePackage{tabu} % Flexible LaTeX tabulars.     \RequirePackage{longtable} % Allow tables to flow over page boundaries.     \RequirePackage{framed} % Framed or shaded regions that can break across pages.     \RequirePackage{ifthen} % Conditional commands in LaTeX documents.     \RequirePackage{xstring} % String manipulation for (La)TeX.     \RequirePackage{framed} % Framed or shaded regions that can break across pages.     \RequirePackage[titles]{tocloft}% http://ctan.org/pkg/tocloft i.e.may be used to resolve the intend-issue in the tableofcontents     \usepackage[tocindentauto,tocgraduated]{tocstyle} % for indent in tableofcontents, listoftables, listoffigures, lstlistoflistings     \RequirePackage[splitindex]{imakeidx}   % for index generation     \RequirePackage{hyperref} % Extensive support for hypertext in LaTeX.     \RequirePackage{geometry} % Flexible and complete interface to document dimensions.     \RequirePackage[nofligs]{verdana} % Macros and metrics for using Verdana with LaTeX.          \RequirePackage{courier} % Adobe Type 1 ``free'' copies of Courier.     \RequirePackage[font=scriptsize]{caption} % Customising captions in floating environments.     \RequirePackage[T1]{fontenc}% bewirkt die Anzeige der Umlaute im kompilierten Dokument     \RequirePackage{fancyhdr} % Extensive control of page headers and footers in LaTeX2e.     \RequirePackage{lastpage}     \RequirePackage{titlesec} % Select alternative section titles.     \RequirePackage[dvipsnames]{xcolor} % Driver-independent color extensions for LaTeX and pdfLaTeX.     \RequirePackage{xspace} % adds an extra space if neccessary     \RequirePackage{xr} % adds support for cross-document referecnes     \RequirePackage[             columns=1,% Anzahl der Spalten             columnsep=0pt,% Abstand der Spalten             rule=0pt,% Für eine Trennlinien einen Wert > 0 angeben             indentunit=\parindent,% Einrückmaß             font=current,             justific=standard,             itemlayout=singlepar,                 indentunit=0pt,              totoc=true,             ]              {idxlayout}     \RequirePackage{color}     \RequirePackage{alltt}     \RequirePackage{filecontents}     \RequirePackage{pdfescape}          %Commands and definitions     \definecolor{propbg}{HTML}{DCDCDC}     \newcommand{\propDesc}[2]{     \fcolorbox{white}{propbg}{     \begin{minipage}[c]{\textwidth}     \vspace{1ex}     #1     \\     #2      \vspace{1ex}     \end{minipage}     }     \\     \propindex{#1}{#2}     }          \makeindex[name=properties,title=Property Index,columns=1,]          \newcommand{\propindex}[2]{\index[properties]{{\color{title}Property:} #1}{ \phantom{#2}}}                       \begin{document}                  \propDesc{Some Property}{Description}                   %   \index[someindex]{Some Text}{\tags{de}{Hallo} \tags{en}{Hello}                            \printindex[properties]             \end{document}      As soon as i remove the % infront of % \index[someindex]{Some Text}{\tags{de}{Hallo} \tags{en}{Hello}, it will prvent my document from compiling.


title: Eliminate topspace and bottomspace in ConTeXt

text: # Background Looking to put the page number flush to the bottom of the page using ConTeXt. The key lines in the Minimum Working Example (MWE) below are:               \setuplayout[       topspace=\zeropoint,       %bottomspace=\zeropoint,     ]      I thought that by eliminating `topspace` and eliminating `bottomspace` the page's text height would automatically be calculated to fill the entire area. # Minimum Working Example An example that shows what I'm trying to achieve:               \setuppapersize[letter][letter]     \setuplayout[       topspace=\zeropoint,       %bottomspace=\zeropoint,     ]          \showframe          % Use roman numerals for the front matter     \definestructureconversionset[frontpart:pagenumber] [] [romannumerals]     \setuppagenumbering[location={footer,right},alternative=singlesided]          \starttext          \startfrontmatter       \setuppagenumbering[conversion=romannumerals]       \setcounter[userpage][1]            % Table of Contents       \completecontent     \stopfrontmatter          \startbodymatter     \setuppagenumbering[conversion=numbers]     \setcounter[userpage][2]          \startchapter[       title={chapter},       reference=sec:chapter,     ]          \startsection[       title={section},       reference=sec:section,     ]          \stopsection          \stopchapter          \stopbodymatter          \stoptext      # Question How would you move the page number to the very bottom of the page, as shown in the following image: ![Page Number](http://i.stack.imgur.com/itPRF.png) Is this something that needs a dynamic layer? # Related   * Set layout for the first page of Chapters in ConTeXt   * ConTeXt MarkIV: Pagenumber in layer not working   * http://wiki.contextgarden.net/Layout


title: Is it possible to emulate qtree with forest?

text: This question was actually asked by Alan Munn in a comment to How do I create a LCM tree diagram?. I repeat (and self-answer) it here because the answer is too long to fit the margin :-) `qtree` is a well-known and heavily used package for drawing trees using the so-called bracket notation. (The bracket notation is especially familiar to linguists.) `forest` is my own, recent package for the same job. Due to the awesome power of `pgf`/`tikz` (in particular, the `pgfkeys` utility), which it is based on, `forest` is an extremely flexible package. ---From the feedback I got so far, including feedback from this site, I don't seem to be the only one who believes so. Which makes me happy. :-) Although both `qtree` and `forest` encode trees using the bracket notation, the exact syntax is somewhat different. While `forest` requires that each node (including its children) be enclosed in square brackets (like this: `[node [child node] ... [child node]]`), `qtree` relaxes this requirement in the case of terminal nodes (leaves): they can be separated simply by whitespace, like this: `[.node leaf ... leaf ]`. Furthermore, the packages differ in the encoding of node labels: as showh above, in `qtree` a bracketed (usually non- terminal) node's label must be preceded by a dot (`.`). (`forest` uses the same syntax as `synttree`; another package that uses (and extends) `qtree`'s syntax is (obviously) `tikz-qtree`. As I mentioned in a comment in the above-mentioned question, I have decided for `synttree`-like syntax purely out of personal taste. I guess I found it more consistent.) As Alan pointed out, the difference in the syntax makes the potential transition from `qtree` to `forest` harder: nobody wants to throw away tons of trees (s)he has painstakingly drawn. Thus Alan's question: would it be possible for `forest` to support both syntactic dialects?


title: Template for technical report (with sections, without chapters)?

text: I need to prepare a technical report (using win7 and TeXnicCenter) and it is around 50 pages (table of content + text + image + formulas + tables + etc.). The report should not have chapters, only sections. So I have used the `article` document class. I'm wondering if anybody could recommend an elegant formal template which does not have chapters, but is good for a technical report (not just an article). I found some nice templates on here but they seem more fit for a journal article.


title: Arrow alongside table

text: Long time listener, first time caller. I've got a table               \begin{center}     \begin{tabular}{cc}      And two columns of pictures displaying results with a particular parameter increasing. I am trying to place a nice long and thick arrow with a big arrowhead alongside the table, to show the direction in which the parameter increases, as such:                  ------   ------        |    |   |     |        |    |   |     |     _  ------   ------     |       |  ------   ------     |  |    |   |     |     |  |    |   |     |     |  ------   ------     |       |  ------   ------     V  |    |   |     |        |    |   |     |        ------   ------      I'm trying with a tikz arrow, where the entire tikz picture is a third column multirow, but it sticks to the top of the columns, and isn't vertically aligned like I drew. I'm also not managing to write along the curve "Increasing \lambda". Any help would be appreciated. Maybe there's a better way to achieve this. EDIT I can't really add a truly working example, since it has pictures that are on my hard drive, but it looks simply like this:               \documentclass{article}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}          \begin{document}          \begin{center}     \begin{tabular}{cc}          \textbf{Original} & \textbf{Noisy}\\     \includegraphics[scale=.25]{example-image-a} &     \includegraphics[scale=.25]{example-image-b}\\     ~\\     $\boldsymbol{ \ell_1 }$\textbf{ regularisation} & \textbf{TV regularisation} \\     \includegraphics[scale=.25]{example-image-c} &     \includegraphics[scale=.25]{example-image}\vspace{5pt}\\     \includegraphics[scale=.25]{example-image} &     \includegraphics[scale=.25]{example-image}\vspace{5pt}\\     \includegraphics[scale=.25]{example-image} &     \includegraphics[scale=.25]{example-image}     \end{tabular}     \end{center}          \end{document}


title: How does fontspec actually work with the no-math attribute?

text: I'm trying to make a beamer presentation that has different fonts for math and text. As a MWE, when I write the following:               \documentclass[english]{beamer}     \usepackage{lmodern}     \usepackage[no-math]{fontspec}     \setsansfont{Tahoma}     \begin{document}     The quick brown fox jumps over the lazy dog.     \[     F(x)=\int_{0}^{x}f(t)\, dt     \]          \end{document}      what I would _expect_ to see is regular text in Tahoma, and the math set in latin modern. This seems to be what is implied by the documentation for fontspec. However, when I run "xelatex myfile.tex", I see that the output file has Tahoma font throughout. I have made similar attempts with mathspec and with the other commands like \setmainfont and the like, but I don't see what I'm supposed to be doing.


title: Use different titles for moderncv resume and cover letter

text: I am using this beautiful template. There is only one thing that I don't like in it but unfortunately I am not very good in LaTeX to change it on my own. What's is more, the code involved in this template is a lot, and therefore it is almost imposable to construct a working example here. So, I rely on your own will to provide this improvement (and I promise that I will send this patch to the guy who maintains this site so as other people get benefit from that). So, my problem is that the template uses the same title (on top of the page) for both the CV and the Cover Letter (which is also included on the tex file). What I want is be able to define separately the titles for these two sections ("Curriculum Vitae and Cover Letter say). Could you please help me out with this patch? **FYI:** I am using the "banking" theme


title: Tufte-Latex: How do I stop marginfigure from inserting inline space?

text: I want to use marginfigure, but it is inserting space inline. Check out my minimal example:               documentclass{tufte-book}          \begin{document}     Hello\begin{marginfigure}$2+2=4$\end{marginfigure}I'm new here.          \end{document}      ![enter image description here](http://i.stack.imgur.com/Txi8x.png) As you can see, the "Hello I'm new here" is two different lines--I want a single line. Of course, one "solution" is to simply move the marginfigure; however, this is not an option for me.


title: How can I vertically align subfigures of different size without affecting subcaptions?

text: Please consider the following MWE               \documentclass{article}          \usepackage[demo]{graphicx}          \begin{document}            \begin{figure}         \centering         \begin{minipage}[c]{0.45\textwidth}           \centering          \includegraphics[width=3cm,height=4cm]{mypicture.png}          \caption{Caption 1}         \end{minipage}         \begin{minipage}[c]{0.45\textwidth}           \centering          \includegraphics[width=3cm,height=2cm]{mypicture.png}          \caption{Caption 2}         \end{minipage}     \end{figure}          \end{document}      which produces ![enter image description here](http://i.stack.imgur.com/XdGyT.png) How could I, without moving downward figure 2, align the two captions to obtain ![enter image description here](http://i.stack.imgur.com/QEV0G.png)


title: plotting data from rows instead of columns in latex

text: How can I use the addplot table command to select data from rows to be plotted instead of columns? Thank you.. I tried that but still I got errors.. here is my script:               \documentclass{article}     \usepackage[listofformat=empty]{subfig}     \usepackage{tikz}     \usepackage{graphicx}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \begin{document}                    \pgfplotstabletypeset[string type]{plotData/PIP-TRUE-PD-TRUE/I2-I3-I4-I5-I6-0.1.dat}               \pgfplotstabletranspose\loadedtable{plotData/PIP-TRUE-PD-TRUE/I2-I3-I4-I5-I6-0.1.dat}     \pgfplotstabletypeset[string type]\loadedtable          \addplot[smooth,mark=*,white, draw=black] table[x=Rate,y index=8] {plotData/PIP-TRUE-PD-TRUE/I2-I3-I4-I5 I6-0.1.dat};     \addlegendentry{RR=0.1}     \end{document}}


title: Difference between \newbool and \newtoggle from etoolbox package

text: Paul Gaborit's answer to How to detect if option provided via \tikzset uses   * `\newbool` to define a new boolean   * `\booltrue` to set a boolean, and   * `\ifbool` to perform a conditional operation  all from the `etoolbox` package. Well, I have been using   * `\newtoggle` to define a new toggle   * `\toggletrue` to set a toggle, and   * `\iftoggle` to perform a conditional operation  also from the same package. Is there a difference between the two? Is one preferable over the other? * * * ## Code:               \documentclass{article}     \usepackage{etoolbox}          \newtoggle{ToggleCondition}     \newbool{BooleanCondition}          \newcommand*{\CheckBoolean}{\ifbool{BooleanCondition}{true}{false}}     \newcommand*{\CheckToggle}{\iftoggle{ToggleCondition}{true}{false}}          \begin{document}          \toggletrue{ToggleCondition}     ToggleCondition is \CheckToggle.          \togglefalse{ToggleCondition}     ToggleCondition is \CheckToggle.          \medskip     \booltrue{BooleanCondition}     BooleanCondition is now \CheckBoolean.          \boolfalse{BooleanCondition}     BooleanCondition is now \CheckBoolean.     \end{document}


title: Advantages of EndNote over BibTex, if any

text: Strictly speaking, this is not a LaTeX question. However, I suspect it will be very interesting to LaTeX users. What are the advantages of using a commercial reference management system like EndNote over using BibTex? I suspect the primary reason people use EndNote is because they are using Word and Word doesn't support BibTex. Are there any other reasons to use EndNote instead of or in conjunction with BibTex? I ask this because systems like EndNote strike me as something that I would have to use a fair amount to understand the relative advantages. I would prefer that only individuals who have significant experience with both EndNote and BibTex answer this. My field is computer science, and BibTex is usually not too hard to come by in computer science. However, some bibliography services support EndNote but not Bibtex.


title: What are TeX and LaTeX?

text: I'm surprised no one else has asked this question. It's not explained very well in the FAQ or site descriptions either. I know many of you will think "LMGTFY", "RTFM", or "ask wikipedia", but I'd rather get the answer straight from the experts. I'm so green I don't even know what to tag this question.   * what is it?   * what is it used for?   * who uses it?   * what is it in alternative to?   * how widespread is its use?   * does the average user type the language in as plain text or are there WYSIWYG tools? And finally, a nice fun subjective bit to end things on a sour note. I guess this leads a bit back to the question regarding what TeX is the alternative to. Is it a worthwhile technology to invest time in learning as a programmer/technology junkie who hates word processing apps with a passion? I'd rather write a wiki page than a letter in Word. But I don't know if that means I should switch from plain text to TeX or if that's like using a bazooka when all i need is a hammer?


title: Missing "Figure" title for captions of side-by-side graphics

text: ## Background Trying to reference the label of figures that are side-by-side. ## Problem Referencing figures by their label works, except when the figure is in a mini- page. That's when the word "Figure" does not appear in the output: ![enter image description here](http://i.stack.imgur.com/8TfnN.png) ## Preamble Source The preamble is at: http://pastebin.com/Uq1sGrSd ## LyX Source The code LyX generates is:               \begin{figure}[H]     %     \begin{minipage}[t]{0.45\textwidth}%     \subfloat[\label{fig:Design-Flower-Title-Page}Title Page]{\includegraphics[width=8.89cm,height=6.281cm]{captures/template-flower-title-01}          }%     \end{minipage}\hfill{}%     \begin{minipage}[t]{0.45\textwidth}%     \subfloat[\label{fig:Design-Flower-Design-Page}Design Page]{\includegraphics[width=8.89cm,height=6.281cm]{captures/template-flower-title-02}          }%     \end{minipage}          \caption{Title and Detail Pages}          \end{figure}      ## Related Line up captions on side by side figures ## Question What needs to change in the preamble so that the "Figure" label appears when referencing side-by-side graphics? Thank you!


title: Problems with mindmap

text: I have two mindmaps in the following MWE and have a couple of problems. The mindmaps are almost identical, but some child nodes appear at different positions, in particular Int.2, leaving different space with the right edge of the node, as indicated with red crosses. Besides, no matter all the changes I introduce, I ALWAYS get the same overfull warning                Overfull \hbox (7.53343pt too wide) in paragraph at lines 61--61      ALWAYS 7.53343pt too wide, no matter the changes I make, and I do not see any overfull problem anywhere... I would really appreciate if someone could help. Thanks! MWE:               \documentclass{beamer}          \usepackage{tikz,lmodern}     \usetikzlibrary{positioning,shadows,calc,mindmap,trees,shapes,         decorations.pathreplacing}          \begin{document}                    \begin{frame}          \begin{center}     \begin{tikzpicture}         \node[inner sep=0, fill=yellow] (A) at (0,0) {         \resizebox{.4\linewidth}{!}{%         \begin{tikzpicture}             \path[small mindmap,concept color=white!99!green, text=black,             level 1 concept/.append style=             {every child/.style=, sibling angle=-30}]             node[concept, scale=0.8, font=\large] {BRCA1}[counterclockwise from=0]                 child[concept color=green]{node[concept, scale=0.6, font=\large] at(2,0) {Int.1}}                 child[concept color=green]{node[concept, scale=1.1] at(2,-.8) {Int.2}}                 child[concept color=green, opacity=0]{node[concept, star, star points=18, scale=0.6, font=\LARGE] at(1,-.5) {Int.3}}                 child[concept color=green]{node[concept, scale=0.7, font=\large] at(-.2,-1.5) {Int.5}}                 child[concept color=green]{node[concept, scale=0.5, font=\large] at(0,0) {Int.6}}                 child[concept color=green!25!white]{node[concept, scale=0.4, font=\LARGE] at(-3,.5) {Int.8}}                 child[concept color=white!90!green]{node[concept, star, star points=18, scale=0.4, font=\huge] at(-.5,1) {Int.9}}                 child[concept color=green!25!white]{node[concept, scale=0.6, font=\large] at(-.3,1) {Int.10}}                 child[concept color=green]{node[concept] at(0,2) {Int.11}}                 child[concept color=green!25!white]{node[concept, scale=1.3] at(1.5,-.5) {Int.13}}                 child[concept color=green, opacity=0]{node[concept, star, star points=18, scale=0.3, font=\huge] at(4,-.1) {Int.14}}             ;         \end{tikzpicture}         }%         };                   \node[inner sep=0, fill=yellow, right=.2cm of A] (B) {         \resizebox{.4\linewidth}{!}{%         \begin{tikzpicture}             \path[small mindmap,concept color=black!90!green, text=white,             level 1 concept/.append style=             {every child/.style=, sibling angle=-30}]             node[concept, scale=0.8, font=\large] {BRCA1}[counterclockwise from=0]                 child[concept color=green, text=black]{node[concept, scale=0.6, font=\large] at(2,0) {Int.1}}                 child[concept color=green, text=black]{node[concept, scale=1.1] at(2,-.8) {Int.2}}                 child[concept color=black!75!green]{node[concept, star, star points=18, scale=0.6, font=\LARGE] at(1,-.5) {Int.3}}                 child[concept color=green, text=black]{node[concept, scale=0.7, font=\large] at(-.2,-1.5) {Int.5}}                 child[concept color=green, text=black]{node[concept, scale=0.5, font=\Large] at(0,0) {Int.6}}                 child[concept color=green!60!black]{node[concept, scale=1.2] at(-3,.5) {Int.8}}                 child[concept color=green, text=black, opacity=0]{node[concept, star, star points=18, scale=0.4, font=\huge] at(-.5,1) {Int.9}}                 child[concept color=green!60!black]{node[concept, scale=1.1] at(-.3,1) {Int.10}}                 child[concept color=green, text=black]{node[concept] at(0,2) {Int.11}}                 child[concept color=green!60!black]{node[concept, scale=0.7, font=\large] at(1.5,-.5) {{\large Int.13}}}                 child[concept color=black!75!green]{node[concept, star, star points=18, scale=0.3, font=\huge] at(4,-.1) {Int.14}}             ;         \end{tikzpicture}         }%         };     \end{tikzpicture}     \end{center}     \end{frame}          \end{document}      Which produces: ![enter image description here](http://i.stack.imgur.com/FmwYi.png)


title: Yet another problem with cyrillic letters

text: I have the code:               \documentclass{article}     \usepackage[T2A,T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[russian,english]{babel}     \begin{document}     Text in English     \begin{otherlanguage*}{russian}     Текст на русском языке     \end{otherlanguage*}     A word and another \foreignlanguage{russian}{слово}     \end{document}      I use MacTeX. `pdflatex f.tex` produces this pdf: ![enter image description here](http://i.stack.imgur.com/cLFGC.png) Need your advice.


I got the following messages when updating TeX Live 2012 using the provided GUI. ![enter image description here](http://i.stack.imgur.com/T8jMV.png) What does "skipping forcibly removed package xxx" mean? Should I care about it?


title: \spinemargin and \footskip error with memoir

text: I get the following errors when I am using `memoir`. `! Class memoir Error: \spinemargin (97.26999pt) and/or \textwidth (271.73482pt)` `! Class memoir Error: \footskip (27.46295pt) is too large for \lowermargin (-34 .248pt) by 61.71095pt.`               \documentclass{memoir}     \usepackage[size=pocket,trim,bleed]{createspace}     \checkandfixthelayout     \begin{document}     Foo bar     \end{document}      How can I go about solving this issue? I am also using `createspace` (GitHub) package, maybe that has something to do with it?


title: Can pdflatex (or any tex package) automatically rescale included images which have been reduced in size?

text: I'm writing my thesis in LaTeX, generating it with pdflatex. I have a large number of figures, many of which are bitmaps (as opposed to SVG) in PNG/JPEG format. I've generally created them to be fairly high resolution (say 1600x1200-ish) to ensure that whatever size they end up in the document, they'll be at least 300dpi when printed. As I'm writing/laying out the document, I'm including graphics (using `\includegraphics` from the `graphicx` package) and setting widths/heights as appropriate (e.g. subfigures are quite small). I don't need the images to be any more than about 300 dpi at best, so where I have shrunk a 1600x1200 image down to say 5cm, the image is now at 800 dpi. So despite including some very small (on the page) images, the PDF is becoming quite large. Is there a way to tell pdflatex or graphicx (or something else involved?) to convert all images to a _maximum_ of 300 dpi, based on the dimensions I'm setting with say `\includegraphics[width=2in]{filename}`? i.e. so it scales the image to a max of 600x600 pixels _as it includes it in the PDF_ (leaving the original file untouched). I know I can resize the original images with various command line applications, and include the pre-resized versions, but given the images vary in size considerably, it wouldn't be as simple as making sure they're all 300dpi for a constant printed size. It'd also be nice to be able to easily create different versions of PDFs (web vs final print) without resizing images manually, so that the 'web' PDF capped images at say 72-100 dpi while the final print one could cap at 600 (if at all). **Update:** I've found a poor solution to the problem in _some_ cases (quite long so I've added it as an answer myself, see below). By reprocessing the PDF after creation, you can convert _all_ images to JPEGs at a specific resolution (in dpi). This is good for docs with only JPEGs, but sucks if you have PNG (or similar non-lossy-compression) diagrams which are PNG for a reason (e.g. simple diagrams with hard edges). So I'm still after a solution that can do this without forcing the same compression algorithm on all images (whether it's a LaTeX macro/package, or a script that parses the LaTeX and produces appropriately sized files, or a post-processor that doesn't take a one-compression-algorithm-fits-all approach).


title: What is the macro used to define \underline{}?

text: How is the `\underline` command defined? And how can one make a custom underline to be used just as a horizontal line but which respects a specified height or the height of text, math input, etc and of a specific width? Here is my first attempt:               \newcommand{\ndfracunderline}[1]{\ensuremath{\underline{\phantom{\dfrac{2}{3\hspace*{#1}}}}}}      This works just fine but the following does not:               \newsavebox\underlinebox          \newcommand\cunderline[3][black]{%     \newlength{\cunderlineheight}%     \settoheight{\cunderlineheight}{#3}%     {\sbox\underlinebox{\cunderlineheight\hspace*{#2}}%       \rlap{\usebox\underlinebox}\color{#1}\rule[-1.2\dp\underlinebox]{\wd\underlinebox}{0.5pt}}}


title: Why is LaTeX telling me I have an error to do with @Arabic and c@page?

text: I don't understand why LaTeX is giving me this error:               ! Undefined control sequence.     <argument> \@Arabic                          \c@page      l.1 ...berline {1}Introduction}{\@Arabic \c@page }


title: How can I vertically fit a large table to the page?

text: I am trying to fit my large vertical table into one page... I started with               \documentclass[a4paper,12pt]{report}     \usepackage[pdftex]{graphicx}      \usepackage{booktabs}     \begin{document}     \rotatebox{90}{     \begin{tabular}{cccccccccccc}     \toprule     &&&&&&&&\multicolumn{4}{c}{\textbf{\% of structures with p-value $<$ 0.1}}\\ \midrule     &&&\textbf{RMSD 0.5}\AA &\textbf{RMSD 25}\AA & \textbf{$\delta$ value} & \textbf{p-value median} & \textbf{p-value average} & \textbf{0.5} \AA & \textbf{1.5} \AA & \textbf{3.0} \AA & \textbf{5.0} \AA \\ \midrule     EROS&without tail&bb&0.78$\pm$0.22&0.60$\pm$0.05&30\%&0.29&3e-9&33\%&53\%&53\%&37\%  \\     &&sc&2.00$\pm$0.38&1.42$\pm$0.08&41\%&0.06&$<$2.2e-16&61\%&79\%&74\%&42\%  \\     \end{tabular}       }     \end{document}      and the first column is cut... is there any way to fit it nicely to the page?


title: Centering chapter/section/subsection

text: I am trying to center my chapters/sections/subsections. I have used the following:               \newcommand{\cchapter}[1]{\chapter[#1]{\centering #1}}     \newcommand{\ssection}[1]{\section[#1]{\centering #1}}     \newcommand{\ssubsection}[1]{\subsection[#1]{\centering #1}}      This seems to work for chapter, but not for section and subsection. What is wrong?


title: How to use concrete fonts?

text: This MWE:               \documentclass{article}          \usepackage[utf8]{inputenc}     \usepackage{polski}          \usepackage{beton}          \begin{document}          \section{Section title}     Hello world.          \end{document}      produces "Hello world." in Concrete font, but not the section title. (Without the `polski` package, a bitmap font is used; with it, it's a Type 1 font – at least in TeXlive 2013. I have no idea why, though this is not a big deal for me here.) What is the "canonical" way to enable concrete fonts for section titles etc.? (Note: I'm considering switching to `memoir` or even something else for this document – it's a thesis – so "use `memoir` with such-and-such modifications to section/chapter styles", or some other class, might be a valid answer.)


title: Where to download pdflatex.exe?

text: I ran a Google search but nothing too clear showed up. I'm looking for a Windows 7 compatible version of pdflatex.exe to help me in typesetting some math I have in an Illustrator project. I heard about it through this tutorial: http://www.justskins.com/forums/math- equation-editing-in-86877.html


title: LaTeX suddenly not working

text: I'm submitting my Ph.D. thesis in 2 days - everything has been working fine for the last 3 years...now I get this:               Typesetting “Montgomery_MM_India_v21.tex”…     Traceback (most recent call last):       File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/site.py", line 73, in __boot()       File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/site.py", line 2, in __boot         import sys, imp, os, os.path       ImportError: No module named os           Theme:            Traceback (most recent call last):       File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/site.py", line 73, in __boot()       File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/site.py", line 2, in __boot         import sys, imp, os, os.path       ImportError: No module named os      I am using TextMate to compile a PDF - I'm not computer savvy but have been using LaTeX for awhile, I'm on a Mac with OS 10.7. Also of interest is when trying to compile - something called `SLFSharedPrefTools` starts using 100% of my CPU. Pointing me in direction to help solve this would be greatly appreciated.


title: subfigures using subfloatrow, overpic, tikz to add rows to annotate imported images/figures

text: I did my diligent search for a combination of `subfloatrow`, `overpic`, and adding arrows for annotation of imported images using `tikz`, but couldn't find one. These kind of images are typically found in the biology field, they could be for western blots or gel electrophoresis, etc...The idea is always the same; is to get multiple images annotated with text (courier fits well here), and frequently, with elegant, yet simple, arrows to point at a specific band or spot of interest in the image. **Let the challenge begin!** **Recommended unless you report a better one!**   * `overpic`: a very nice solution to these kind of text annotations    * `floatrow`: AFIK is the best one when it comes to handling subfloats (figures and tables) as well as subcaptions and many other features    * `mdframed`: a feature-rich package to control frames    * `tikz`: a no-comment-package for drawing arrows and figures (a tikz fan!)  **Please AVOID these in your answer**   * `subfig`: obsolete    * `subfigure`: supported not maintained    * `subcaption`: fine, but its manual directs you to the better one, which is the subfloatrow environment of `floatrow` for more complex subfloats  **What is needed now?**   * adding arrows to at least one these subfigures in the Minimal Working Example (MWE), horizontal ones, left to right and in opposite direction as well. Please provide **_relative_** measurements to fine-tune the arrow positioning. Different, elegant arrows of tikz are welcomed, did I forget to mention elegant here?    * Controlling the space between these images (in this case increasing it)    * Referring to the subfigures in the main figure caption  **The code of MWE**               \documentclass[12pt]{scrartcl} % KOMA script     \usepackage{courier} % courier font for text annotation     \usepackage[labelsep=period]{caption} % for appearance of captions not placings     \usepackage{subcaption} % incompatible with subfig, or subfigure (obsolete)     \usepackage[demo]{graphicx} % for graphcis, demo to provide image placeholders     \usepackage{xcolor} % colors     \usepackage[framemethod=tikz]{mdframed} % for frames, load xcolor before!     \usepackage{tikz} % drawing arrows and graphics     \usetikzlibrary{arrows} % arrow library for tikz     \usepackage{floatrow} % has the subfloatrow environment for subfloats        \usepackage[percent]{overpic} % for text annotation over imported pictures     \begin{document}     \begin{figure}     \begin{mdframed}[align=center,linecolor=black,fontcolor=black,backgroundcolor=white,userdefinedwidth=0.9\textwidth,roundcorner=5pt,skipabove=10pt,skipbelow=10pt,leftmargin=0pt,innertopmargin=100pt,innerbottommargin=0pt, innerleftmargin=50pt,innerrightmargin=20pt, innerlinewidth=0pt, middlelinewidth=0pt,outerlinewidth=1pt] % change the innertopmargin for labels     \floatsetup[subfigure]{captionskip=10pt}      \ffigbox { %       \begin{subfloatrow}[3]% number of subfigures are 3, 2 by default         \ffigbox{         \begin{overpic}[grid,tics=15]{image1} % remove the grid, tics argument later on         \put (-30,0) {$ \beta $-actin}         \put(1,67){\rotatebox{90}{\texttt{Lane1: geneA}}}         \put(15,67){\rotatebox{90}{\texttt{Lane2: geneB}}}         \put(30,67){\rotatebox{90}{\texttt{Lane3: geneC}}}         \end{overpic}            }{\subcaption{subcap1}}         \ffigbox{\includegraphics{image2}}{\subcaption{subcap2}} % you can do the same as image 1 with overpic         \ffigbox{\includegraphics{image3}}{\subcaption{subcap3}} % you can do the same as image 1 with overpic       \end{subfloatrow}       }{\caption{A Minimal Working Example}}     \end{mdframed}     \end{figure}        **Which gives** ![MWE](http://i.stack.imgur.com/IEcbX.jpg)


title: How to achieve a rotating figure animation

text: I have a figure, in `*.eps`, say a pentagon which is already drawn and then included in TeX, and I want to achieve a rotating animation. So the polygon will be rotating about some point (usually its center) at some rate. How is this done?


title: Address book similar to BibTeX to be used on LyX

text: I have a list of addresses. While writing the report (not in letter), I need to add address repeatedly. Is their something similar to BibTeX, which I can use with LyX for automating inclusion of required person's address in a LyX document. Note that If I use BibTeX for it, LyX automatically puts _References_ section and starts below it. I need to put the addresses at place of my choice. eg > Kindly contact Mr X at this address: 143, St Jaferson road, XXX.


title: Writing letters in TikZ

text: I am having difficulties writing a letter in a specific position in TikZ using the `\node` command. This is the command that I am having difficulties with:               \node at (2,5) (nodeS) {S};      I found that this command was used to place letter here. When I run the command, however, I get this: ![With text](http://i.stack.imgur.com/LqBhv.png) This is what I had originally: ![Without text](http://i.stack.imgur.com/K7OIQ.png) As you can see, there is a black dot that should not be there, and the graph is moved considerably. Furthermore, the 'S' moves with the graph when I change the coordinates of the `\node` command. Anyone know what is going wrong here? This is the full code:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{calc}     \pagestyle{empty}          \def\rowA{0,1,...,4}     \def\rowB{0,1,...,4}     \def\rowC{0,1,...,4}     \def\rowD{0,1,...,4}     \def\rowE{0,1,...,4}               \begin{document}          \begin{tikzpicture}[x=1.75cm,                         y=1.75cm,                         every node/.style={circle,                                            inner sep=2pt,                                            fill=black}                        ]            \foreach \x in \rowA { \node (A\x) at (\x,2)  {}; }       \foreach \x in \rowB { \node (B\x) at (\x,1)    {}; }       \foreach \x in \rowC { \node (C\x) at (\x,0)    {}; }       \foreach \x in \rowD { \node (D\x) at (\x,-1)   {}; }       \foreach \x in \rowE { \node (E\x) at (\x,-2)   {}; }            \foreach \x/\y in {0/0,1/1,2/2,3/3,4/4} {\draw (A\x) -- (E\y) {};}            \draw (A0) -- (A4);       \draw (B0) -- (B4);       \draw (C0) -- (C4);       \draw (D0) -- (D4);       \draw (E0) -- (E4);            \draw (B0) -- (A1);       \draw (C0) -- (A2);       \draw (D0) -- (A3);       \draw (E0) -- (A4);       \draw (E1) -- (B4);       \draw (E2) -- (C4);       \draw (E3) -- (D4);            \node at (2,5) (nodeS) {S};          \end{tikzpicture}     \end{document}


title: biblatex: parentheses around the volume number of an article

text: What do I have to write in the preamble to bring the bibliography to make parentheses around the volume number of an article? I'm using the `authoryear` style. Here is an example:               \begin{filecontents}{filename.bib}     @article{Billio.2012,     author = {Billio, Monica and Getmansky, Mila and Lo, Andrew W. and Pelizzon, Loriana},     year = {2012},     title = {Econometric measures of connectedness and systemic risk in the finance and insurance sectors},     pages = {535--559},     volume = {104},     number = {3},     journal = {Journal of Financial Economics}     }     \end{filecontents}      \documentclass{article}     \usepackage[hyperref=true,                 maxcitenames=4,                 isbn=false,                 dashed=false,                 style=authoryear,                 backend=bibtex,                 firstinits=true]{biblatex}     \bibliography{filename.bib}     \begin{document}     \cite{Billio.2012}     \newpage     \renewcommand\refname{List of Literature}     \printbibliography[heading=bibintoc]     \end{document}      Any help is appreciated.


title: Failure to quick build pdfs using Texmaker 3.3.4 and Miktex 2.9, both portable

text: I'd be grateful for advice regarding a failure to quick build `.pdf`s, using a set-up consisting of portable Texmaker 3.3.4 and portable MiKTeX 2.9. I got this set-up by following the instructions here, and put it on my hard drive (booted with 64-bit Win 7 Pro SP1) as well as on a USB flash drive. The problem is that no `.pdf` is built when I press `F1`. I get the problem when using the Win 7 laptop, but not when using the flash drive on another laptop booted with 32-bit Win XP Pro SP2. With a simple `.tex` file I get no messages and the following logfile:               > LOG FILE : This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)     > (preloaded format=pdflatex 2011.9.28) 2 OCT 2011 21:25 entering     > extended mode     > **ams*template.tex ("C:\Documents and Settings\han3user\Desktop\latex stuff\ams template.tex" LaTeX2e <2009/09/24> Babel <v3.8l> and     > hyphenation patterns for english, dumylang, nohyphenation, ge rman,     > ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded.     > ("C:\Program Files\MiKTeX 2.8\tex\latex\ams\classes\amsbook.cls"     > Document Class: amsbook 2009/07/02 v2.20.1 \linespacing=\dimen102     > \normalparindent=\dimen103 \normaltopskip=\skip41 ("C:\Program     > Files\MiKTeX 2.8\tex\latex\ams\math\amsmath.sty" Package: amsmath     > 2000/07/18 v2.13 AMS math features \@mathmargin=\skip42 For additional     > information on amsmath, use the `?' option. ("C:\Program Files\MiKTeX     > 2.8\tex\latex\ams\math\amstext.sty" Package: amstext 2000/06/29 v2.01 ("C:\Program Files\MiKTeX 2.8\tex\latex\ams\math\amsgen.sty" File:     > amsgen.sty 1999/11/30 v2.0 \@emptytoks=\toks14 \ex@=\dimen104 ))     > ("C:\Program Files\MiKTeX 2.8\tex\latex\ams\math\amsbsy.sty" Package:     > amsbsy 1999/11/29 v1.2d \pmbraise@=\dimen105 ) ("C:\Program     > Files\MiKTeX 2.8\tex\latex\ams\math\amsopn.sty" Package: amsopn     > 1999/12/14 v2.01 operator names ) \inf@bad=\count79 LaTeX Info:     > Redefining \frac on input line 211. \uproot@=\count80     > \leftroot@=\count81 LaTeX Info: Redefining \overline on input line     > 307. \classnum@=\count82 \DOTSCASE@=\count83 LaTeX Info: Redefining \ldots on input line 379. LaTeX Info: Redefining \dots on input line     > 382. LaTeX Info: Redefining \cdots on input line 467. \Mathstrutbox@=\box26 \strutbox@=\box27 \big@size=\dimen106 LaTeX Font     > Info: Redeclaring font encoding OML on input line 567. LaTeX Font     > Info: Redeclaring font encoding OMS on input line 568.     > \macc@depth=\count84 \c@MaxMatrixCols=\count85 \dotsspace@=\muskip10     > \c@parentequation=\count86 \dspbrk@lvl=\count87 \tag@help=\toks15     > \row@=\count88 \column@=\count89 \maxfields@=\count90     > \andhelp@=\toks16 \eqnshift@=\dimen107 \alignsep@=\dimen108     > \tagshift@=\dimen109 \tagwidth@=\dimen110 \totwidth@=\dimen111     > \lineht@=\dimen112 \@envbody=\toks17 \multlinegap=\skip43     > \multlinetaggap=\skip44 \mathdisplay@stack=\toks18 LaTeX Info:     > Redefining \[ on input line 2666. LaTeX Info: Redefining \] on input     > line 2667. ) LaTeX Font Info: Try loading font information for U+msa     > on input line 367. ("C:\Program Files\MiKTeX     > 2.8\tex\latex\amsfonts\umsa.fd" File: umsa.fd 2009/06/22 v3.00 AMS symbols A ) ("C:\Program Files\MiKTeX     > 2.8\tex\latex\amsfonts\amsfonts.sty" Package: amsfonts 2009/06/22 v3.00 Basic AMSFonts support \symAMSa=\mathgroup4 \symAMSb=\mathgroup5     > LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version     > `bold' (Font) U/euf/m/n --> U/euf/b/n on input line 96. )     > \copyins=\insert233 \abstractbox=\box28 \listisep=\skip45     > \c@part=\count91 \c@chapter=\count92 \c@section=\count93     > \c@subsection=\count94 \c@subsubsection=\count95 \c@paragraph=\count96     > \c@subparagraph=\count97 \c@figure=\count98 \c@table=\count99     > \abovecaptionskip=\skip46 \belowcaptionskip=\skip47     > \captionindent=\dimen113 \thm@style=\toks19 \thm@bodyfont=\toks20     > \thm@headfont=\toks21 \thm@notefont=\toks22 \thm@headpunct=\toks23     > \thm@preskip=\skip48 \thm@postskip=\skip49 \thm@headsep=\skip50     > \dth@everypar=\toks24 ) \c@thm=\count100 ("C:\Documents and     > Settings\han3user\Desktop\latex stuff\ams template.aux") LaTeX Font     > Info: Checking defaults for OML/cmm/m/it on input line 132. LaTeX Font     > Info: ... okay on input line 132. LaTeX Font Info: Checking defaults     > for T1/cmr/m/n on input line 132. LaTeX Font Info: ... okay on input     > line 132. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input     > line 132. LaTeX Font Info: ... okay on input line 132. LaTeX Font     > Info: Checking defaults for OMS/cmsy/m/n on input line 132. LaTeX Font     > Info: ... okay on input line 132. LaTeX Font Info: Checking defaults     > for OMX/cmex/m/n on input line 132. LaTeX Font Info: ... okay on input     > line 132. LaTeX Font Info: Checking defaults for U/cmr/m/n on input     > line 132. LaTeX Font Info: ... okay on input line 132. LaTeX Font     > Info: Try loading font information for U+msa on input line 132.     > ("C:\Program Files\MiKTeX 2.8\tex\latex\amsfonts\umsa.fd" File:     > umsa.fd 2009/06/22 v3.00 AMS symbols A ) LaTeX Font Info: Try loading     > font information for U+msb on input line 132. ("C:\Program     > Files\MiKTeX 2.8\tex\latex\amsfonts\umsb.fd" File: umsb.fd 2009/06/22     > v3.00 AMS symbols B ) [1{C:/Documents and Settings/All     > Users/Application Data/MiKTeX/2.8/pdftex/con fig/pdftex.map}]     > ("C:\Documents and Settings\han3user\Desktop\latex stuff\ams     > template.aux") ) Here is how much of TeX's memory you used: 1378     > strings out of 495285 15401 string characters out of 3180325 66922     > words of memory out of 3000000 4459 multiletter control sequences out     > of 15000+200000 9695 words of font info for 38 fonts, out of 3000000     > for 9000 175 hyphenation exceptions out of 8191 34i,4n,31p,249b,166s     > stack positions out of 5000i,500n,10000p,200000b,50000s <C:/Program     > Files/MiKTeX 2.8/fonts/type1/public/amsfonts/cm/cmbx10.pfb><C:/Prog     > ram Files/MiKTeX     > 2.8/fonts/type1/public/amsfonts/cm/cmcsc10.pfb><C:/Program Fil es/MiKTeX 2.8/fonts/type1/public/amsfonts/cm/cmex10.pfb><C:/Program     > Files/MiKTe X     > 2.8/fonts/type1/public/amsfonts/cm/cmmi10.pfb><C:/Program Files/MiKTeX 2.8/fo nts/type1/public/amsfonts/cm/cmmi7.pfb><C:/Program Files/MiKTeX 2.8/fonts/type1 /public/amsfonts/cm/cmr10.pfb><C:/Program Files/MiKTeX 2.8/fonts/type1/public/a msfonts/cm/cmr5.pfb><C:/Program Files/MiKTeX 2.8/fonts/type1/public/amsfonts/cm /cmr7.pfb><C:/Program Files/MiKTeX 2.8/fonts/type1/public/amsfonts/cm/cmsy10.pf b><C:/Program Files/MiKTeX 2.8/fonts/type1/public/amsfonts/cm/cmsy7.pfb><C:/Pro gram     > Files/MiKTeX 2.8/fonts/type1/public/amsfonts/cm/cmti10.pfb><C:/Program     > Fil es/MiKTeX 2.8/fonts/type1/public/amsfonts/symbols/msam10.pfb>     > Output written on "ams template.pdf" (1 page, 127020 bytes). PDF     > statistics: 54 PDF objects out of 1000 (max. 8388607) 0 named     > destinations out of 1000 (max. 500000) 1 words of extra memory for PDF     > output out of 10000 (max. 10000000)      With a more sophisticated .tex file which uses more packages, I get the messages:               > ! Package Listings Error: Couldn't load requested aspect.See the     > Listings package documentation for explanation.Type H <return> for     > immediate help.... \lst@RequireAspects\lst@loadaspects     >      > ! LaTeX Error: File `datetime.sty' not found.Type X to quit or     > <RETURN> to proceed,or enter new name. (Default extension: sty)Enter     > file name:! Emergency stop.<read > \renewcommand     >      > ! ==> Fatal error occurred, no output PDF file produced!      and the logfile:               > LOG FILE : This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9)     > (preloaded format=pdflatex 2012.6.26) 26 JUN 2012 20:19 entering     > extended mode     > **Project*2_1.tex ("C:\Users\han7user\Desktop\!CP stuff\Project 2_1\Project 2_1.tex" LaTeX2e <2009/09/24> Babel <v3.8l> and     > hyphenation patterns for english, afrikaans, ancientgreek, ar abic,     > (snip)     > ukenglish, ukrainian, uppersorbian, u senglishmax, welsh, loaded.     > ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex\base\article.cls"     > Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     > ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex\base\size10.clo" File:     > size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) )     > \c@part=\count79 \c@section=\count80 \c@subsection=\count81     > \c@subsubsection=\count82 \c@paragraph=\count83     > \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86     > \abovecaptionskip=\skip41 \belowcaptionskip=\skip42     > \bibindent=\dimen102 ) ("C:\Program Files (x86)\MiKTeX     > 2.9\tex/latex\geometry\geometry.sty" Package: geometry 2010/09/12 v5.6 Page Geometry ("C:\Program Files (x86)\MiKTeX     > 2.9\tex/latex\graphics\keyval.sty" Package: keyval 1999/03/16 v1.13 key=value parser (DPC) \KV@toks@=\toks14 ) ("C:\Program Files     > (x86)\MiKTeX 2.9\tex/generic\oberdiek\ifpdf.sty" Package: ifpdf     > 2011/01/30 v2.3 Provides the ifpdf switch (HO) Package ifpdf Info:     > pdfTeX in PDF mode is detected. ) ("C:\Program Files (x86)\MiKTeX     > 2.9\tex/generic\oberdiek\ifvtex.sty" Package: ifvtex 2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO) Package ifvtex Info:     > VTeX not detected. ) ("C:\Program Files (x86)\MiKTeX     > 2.9\tex/generic\ifxetex\ifxetex.sty" Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional ) \Gm@cnth=\count87 \Gm@cntv=\count88     > \c@Gm@tempcnt=\count89 \Gm@bindingoffset=\dimen103 \Gm@wd@mp=\dimen104     > \Gm@odd@mp=\dimen105 \Gm@even@mp=\dimen106 \Gm@layoutwidth=\dimen107     > \Gm@layoutheight=\dimen108 \Gm@layouthoffset=\dimen109     > \Gm@layoutvoffset=\dimen110 \Gm@dimlist=\toks15 ("C:\Program Files     > (x86)\MiKTeX 2.9\tex/latex\geometry\geometry.cfg")) ("C:\Program Files     > (x86)\MiKTeX 2.9\tex/latex\listings.sty" Package: listings 2002/04/01     > 1.0 (Carsten Heinz) \lst@mode=\count90 \lst@gtempboxa=\box26 \lst@token=\toks16 \lst@length=\count91 \lst@currlwidth=\dimen111     > \lst@column=\count92 \lst@pos=\count93 \lst@lostspace=\dimen112     > \lst@width=\dimen113 \lst@newlines=\count94 \lst@lineno=\count95     > \c@lstlisting=\count96 \lst@maxwidth=\dimen114 ("C:\Program Files     > (x86)\MiKTeX 2.9\tex/latex\lstpatch.sty" File: lstpatch.sty 2002/10/13     > 1.0i (Carsten Heinz) ) ! Package Listings Error: Couldn't load requested aspect. See the Listings package documentation for     > explanation. Type H <return> for immediate help. ... l.1820     > \lst@RequireAspects\lst@loadaspects The following aspects weren't     > loadable:     > ,strings$,comments$,escape$,style$,language$,keywords$,labels$,lineshape$,f     > rames$,emph$,index$ This may cause errors in the sequel. )     > ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex\base\textcomp.sty"     > Package: textcomp 2005/09/27 v1.99g Standard LaTeX package Package     > textcomp Info: Sub-encoding information: (textcomp) 5 = only ISO-Adobe     > without \textcurrency (textcomp) 4 = 5 + \texteuro (textcomp) 3 = 4 +     > \textohm (textcomp) 2 = 3 + \textestimated + \textcurrency (textcomp)     > 1 = TS1 - \textcircled - \t (textcomp) 0 = TS1 (full) (textcomp) Font     > families with sub-encoding setting implement (textcomp) only a     > restricted character set as indicated. (textcomp) Family '?' is the     > default used for unknown fonts. (textcomp) See the documentation for     > details. Package textcomp Info: Setting ? sub-encoding to TS1/1 on     > input line 71. ("C:\Program Files (x86)\MiKTeX     > 2.9\tex/latex\base\ts1enc.def" File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file ) LaTeX Info: Redefining \oldstylenums     > on input line 266. Package textcomp Info: Setting cmr sub-encoding to     > TS1/0 on input line 281. Package textcomp Info: Setting cmss     > sub-encoding to TS1/0 on input line 282. Package textcomp Info:     > Setting cmtt sub-encoding to TS1/0 on input line 283. Package textcomp     > Info: Setting cmvtt sub-encoding to TS1/0 on input line 284. Package     > textcomp Info: Setting cmbr sub-encoding to TS1/0 on input line 285.     > Package textcomp Info: Setting cmtl sub-encoding to TS1/0 on input     > line 286. Package textcomp Info: Setting ccr sub-encoding to TS1/0 on     > input line 287. Package textcomp Info: Setting ptm sub-encoding to     > TS1/4 on input line 288. Package textcomp Info: Setting pcr     > sub-encoding to TS1/4 on input line 289. Package textcomp Info:     > Setting phv sub-encoding to TS1/4 on input line 290. Package textcomp     > Info: Setting ppl sub-encoding to TS1/3 on input line 291. Package     > textcomp Info: Setting pag sub-encoding to TS1/4 on input line 292.     > Package textcomp Info: Setting pbk sub-encoding to TS1/4 on input line     > 293. Package textcomp Info: Setting pnc sub-encoding to TS1/4 on input line 294. Package textcomp Info: Setting pzc sub-encoding to TS1/4 on     > input line 295. Package textcomp Info: Setting bch sub-encoding to     > TS1/4 on input line 296. Package textcomp Info: Setting put     > sub-encoding to TS1/5 on input line 297. Package textcomp Info:     > Setting uag sub-encoding to TS1/5 on input line 298. Package textcomp     > Info: Setting ugq sub-encoding to TS1/5 on input line 299. Package     > textcomp Info: Setting ul8 sub-encoding to TS1/4 on input line 300.     > Package textcomp Info: Setting ul9 sub-encoding to TS1/4 on input line     > 301. Package textcomp Info: Setting augie sub-encoding to TS1/5 on input line 302. Package textcomp Info: Setting dayrom sub-encoding to     > TS1/3 on input line 303. Package textcomp Info: Setting dayroms     > sub-encoding to TS1/3 on input line 304. Package textcomp Info:     > Setting pxr sub-encoding to TS1/0 on input line 305. Package textcomp     > Info: Setting pxss sub-encoding to TS1/0 on input line 306. Package     > textcomp Info: Setting pxtt sub-encoding to TS1/0 on input line 307.     > Package textcomp Info: Setting txr sub-encoding to TS1/0 on input line     > 308. Package textcomp Info: Setting txss sub-encoding to TS1/0 on input line 309. Package textcomp Info: Setting txtt sub-encoding to     > TS1/0 on input line 310. Package textcomp Info: Setting futs     > sub-encoding to TS1/4 on input line 311. Package textcomp Info:     > Setting futx sub-encoding to TS1/4 on input line 312. Package textcomp     > Info: Setting futj sub-encoding to TS1/4 on input line 313. Package     > textcomp Info: Setting hlh sub-encoding to TS1/3 on input line 314.     > Package textcomp Info: Setting hls sub-encoding to TS1/3 on input line     > 315. Package textcomp Info: Setting hlst sub-encoding to TS1/3 on input line 316. Package textcomp Info: Setting hlct sub-encoding to     > TS1/5 on input line 317. Package textcomp Info: Setting hlx     > sub-encoding to TS1/5 on input line 318. Package textcomp Info:     > Setting hlce sub-encoding to TS1/5 on input line 319. Package textcomp     > Info: Setting hlcn sub-encoding to TS1/5 on input line 320. Package     > textcomp Info: Setting hlcw sub-encoding to TS1/5 on input line 321.     > Package textcomp Info: Setting hlcf sub-encoding to TS1/5 on input     > line 322. Package textcomp Info: Setting pplx sub-encoding to TS1/3 on     > input line 323. Package textcomp Info: Setting pplj sub-encoding to     > TS1/3 on input line 324. Package textcomp Info: Setting ptmx     > sub-encoding to TS1/4 on input line 325. Package textcomp Info:     > Setting ptmj sub-encoding to TS1/4 on input line 326. ) ("C:\Program     > Files (x86)\MiKTeX 2.9\tex/latex\amsfonts\amsfonts.sty" Package:     > amsfonts 2009/06/22 v3.00 Basic AMSFonts support \@emptytoks=\toks17     > \symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info: Overwriting     > math alphabet `\mathfrak' in version `bold' (Font) U/euf/m/n -->     > U/euf/b/n on input line 96. ) ("C:\Program Files (x86)\MiKTeX     > 2.9\tex/latex\ams\classes\amsthm.sty" Package: amsthm 2004/08/06 v2.20 \thm@style=\toks18 \thm@bodyfont=\toks19 \thm@headfont=\toks20     > \thm@notefont=\toks21 \thm@headpunct=\toks22 \thm@preskip=\skip43     > \thm@postskip=\skip44 \thm@headsep=\skip45 \dth@everypar=\toks23 )     > ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex\ams\math\amsmath.sty"     > Package: amsmath 2000/07/18 v2.13 AMS math features     > \@mathmargin=\skip46 For additional information on amsmath, use the     > `?' option. ("C:\Program Files (x86)\MiKTeX     > 2.9\tex/latex\ams\math\amstext.sty" Package: amstext 2000/06/29 v2.01 ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex\ams\math\amsgen.sty"     > File: amsgen.sty 1999/11/30 v2.0 \@emptytoks=\toks24 \ex@=\dimen115 ))     > ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex\ams\math\amsbsy.sty"     > Package: amsbsy 1999/11/29 v1.2d \pmbraise@=\dimen116 ) ("C:\Program     > Files (x86)\MiKTeX 2.9\tex/latex\ams\math\amsopn.sty" Package: amsopn     > 1999/12/14 v2.01 operator names ) \inf@bad=\count97 LaTeX Info:     > Redefining \frac on input line 211. \uproot@=\count98     > \leftroot@=\count99 LaTeX Info: Redefining \overline on input line     > 307. \classnum@=\count100 \DOTSCASE@=\count101 LaTeX Info: Redefining \ldots on input line 379. LaTeX Info: Redefining \dots on input line     > 382. LaTeX Info: Redefining \cdots on input line 467. \Mathstrutbox@=\box27 \strutbox@=\box28 \big@size=\dimen117 LaTeX Font     > Info: Redeclaring font encoding OML on input line 567. LaTeX Font     > Info: Redeclaring font encoding OMS on input line 568.     > \macc@depth=\count102 \c@MaxMatrixCols=\count103 \dotsspace@=\muskip10     > \c@parentequation=\count104 \dspbrk@lvl=\count105 \tag@help=\toks25     > \row@=\count106 \column@=\count107 \maxfields@=\count108     > \andhelp@=\toks26 \eqnshift@=\dimen118 \alignsep@=\dimen119     > \tagshift@=\dimen120 \tagwidth@=\dimen121 \totwidth@=\dimen122     > \lineht@=\dimen123 \@envbody=\toks27 \multlinegap=\skip47     > \multlinetaggap=\skip48 \mathdisplay@stack=\toks28 LaTeX Info:     > Redefining \[ on input line 2666. LaTeX Info: Redefining \] on input     > line 2667. ) ("C:\Program Files (x86)\MiKTeX     > 2.9\tex/latex\amsfonts\amssymb.sty" Package: amssymb 2009/06/22 v3.00 ) ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex\ltxmisc\url.sty"     > \Urlmuskip=\muskip11 Package: url 2006/04/12 ver 3.3 Verb mode for     > urls, etc. ) ("C:\Program Files (x86)\MiKTeX     > 2.9\tex/latex\tools\enumerate.sty" Package: enumerate 1999/03/05 v3.00 enumerate extensions (DPC) \@enLab=\toks29 ) ("C:\Program Files     > (x86)\MiKTeX 2.9\tex/latex\tools\array.sty" Package: array 2008/09/09     > v2.4c Tabular extension package (FMi) \col@sep=\dimen124     > \extrarowheight=\dimen125 \NC@list=\toks30 \extratabsurround=\skip49     > \backup@length=\skip50 ) ! LaTeX Error: File `datetime.sty' not found.     > Type X to quit or <RETURN> to proceed, or enter new name. (Default     > extension: sty) Enter file name: ! Emergency stop. <read *> l.17     > \renewcommand     > *{\noon}{\unskip\pmname}     > *** (cannot \read from terminal in nonstop modes) Here is how much of TeX's memory you used: 2864 strings out of 494053 37453 string     > characters out of 3146170 87194 words of memory out of 3000000 6169     > multiletter control sequences out of 15000+200000 3640 words of font     > info for 14 fonts, out of 3000000 for 9000 715 hyphenation exceptions     > out of 8191 27i,0n,28p,227b,49s stack positions out of     > 5000i,500n,10000p,200000b,50000s ! ==> Fatal error occurred, no output     > PDF file produced!      Everything works fine on my XP laptop, both using an earlier portable version of Texmaker and non-portable MiKTeX on the hard drive, and using the above- mentioned set-up on the flash drive. One thing I have tried is to copy the `miktex\tex\latex` folder from the XP laptop, which contains far more packages, including `listings`, to the Win 7 one - but to no avail. Many thanks in advance for any help with this!


title: How do I turn titles into hyperlinks in verbose mode using BibLaTeX and hyperref?

text: I'm using `hyperref` and BibLaTeX's `verbose` style, and would like for bibliography entries and initial (but not subsequent) citations, instead of printing out a URL, to use the URL to make the titles of entries and citations into external hyperlinks. Is there a way to do this? I see how I might get part way there, in the bibliography, but I'm not sure how to get what I'm looking for in the initial citations as well.               \documentclass[nobib,nohyper]{tufte-handout}     \usepackage{lipsum}     \RequirePackage{xpatch}     % For the patches below     \RequirePackage{hyphenat}   % See -- http://code.google.com/p/tufte-latex/issues/detail?id=60     \RequirePackage[         backend=bibtex,          natbib=true,          bibstyle=verbose, citestyle=verbose,    % bibstyle extensively modifed below         doi=true, url=true,                     % excluded from citations below         citecounter=true, citetracker=true,         block=space,          backref=true, backrefstyle=two,         abbreviate=false                 ]{biblatex}          % For tufte-like behavior (I never use \cite itself); see -- http://tex.stackexchange.com/a/47763/7844     % Not directly related to the question but included for completeness     \let\citep\footcite           % Some customizations     \AtEveryCitekey{\clearfield{url}\clearfield{doi}\clearfield{eprint}\clearfield{isbn}}        \renewbibmacro*{in:}{}          % Some reordering and exclusions; see -- http://tex.stackexchange.com/q/46804/7844     % I'd like to preserve these changes, making the feature requested here an option     \newbibmacro*{addendum+pubstate+pageref}{%         \usebibmacro{addendum+pubstate}%         \clearfield{addendum}%         \clearfield{pubstate}%         \setunit{\bibpagerefpunct}\newblock         \usebibmacro{pageref}%         \clearlist{pageref}%         \setunit{\adddot\par\nobreak}}          \xpretobibmacro{doi+eprint+url}{\usebibmacro{addendum+pubstate+pageref}}{}{}     \xpretobibmacro{eprint}{\usebibmacro{addendum+pubstate+pageref}}{}{}     \xpretobibmacro{url+urldate}{\usebibmacro{addendum+pubstate+pageref}}{}{}          \RequirePackage[]{hyperref}     \RequirePackage[all]{hypcap}        % See -- http://tex.stackexchange.com/a/27349/7844          \begin{filecontents}{\jobname.bib}     @book{9780201134476,     author = {Knuth, Donald E},title = {{Computers & Typesetting, Volume A: The TeXbook}},     publisher = {Addison-Wesley Professional},year = {1986},isbn = {0201134470},     url = {http://www.amazon.com/dp/0201134470}}     @book{9780226458083,     author = {Kuhn, Thomas S},title = {{The Structure of Scientific Revolutions}},     publisher = {University Of Chicago Press},year = {1996},isbn = {0226458083},     url = {http://www.amazon.com/dp/0226458083}}     @book{9781903436837,     author = {Shakespeare, William},title = {{Much Ado about Nothing}},     publisher = {Arden Shakespeare},year = {2005},isbn = {1903436834},     url = {http://www.amazon.com/dp/1903436834}}     @book{9780765303615,     author = {Brin, David},title = {{Existence}},     publisher = {Tor Books},year = {2012},isbn = {0765303612},     url = {http://www.amazon.com/dp/0765303612}}     @book{9780691122946,     author = {Frankfurt, Harry G},title = {{On Bullshit}},     publisher = {Princeton University Press},year = {2005},isbn = {0691122946},     url = {http://www.amazon.com/dp/0691122946}}     \end{filecontents}          \addbibresource{\jobname.bib}          \begin{document}          \subsection*{Some initial citations}          This\citep{9780691122946} is an initial citation, which in verbose style, it has no hyperlink and I've customized the style to omit the URL in the citation, though not in the bibliographic entry. Here's another,\citep{9780226458083} and here\citep{9781903436837,9780765303615,9780691122946} are some additional ones for good measure.          I'd like the titles for these to link externally, using the URL field from the \texttt{.bib} entry (using the DOI instead of there's no URL there).          \subsection*{Something to take up some space to demonstrate internal linking}          \lipsum[1]\lipsum[2]\lipsum[3]\lipsum[4]          \subsection*{Some subsequent citations, showing back links}     This\citep{9780691122946} is a subsequent  citation, which hyperlinks back to the first corresponding citation.     So are these.\citep{9780226458083, 9781903436837,9780765303615,9780691122946}.          These work as I want them to.          \defbibnote{@prenote}{Here, as an option, instead of displaying the URL, I'd like to have the title behave as desired in the first section above:  as an external link, using the URL field from the \texttt{.bib} entry.}     \printbibliography[prenote=@prenote]          \end{document}


title: Soul package and spacing problems

text: Similar problems with `soul` package can be found here and here. But since my problem is simpler than those (even related with spacing) I guess that it could have a simpler solution. The problem occurs using underlined text `\ul{}` containing spacing corrections `.\`. **Here is the MWE**               \documentclass{report}     \usepackage{soulutf8}              \begin{document}     Regular text.           \ul{Underlined text.}           Regular text.           \ul{Underlined text with abbreviated word, for example L. Euler}.           Regular text.           \ul{Underlined text with abbreviated word and spacing corrections using \texttt{dot backslash}, for example L.\ Euler}          \end{document}      **The result is** ![enter image description here](http://i.stack.imgur.com/eEidI.png)


title: Two columns but not for entire document

text: My goal is for my document to have a standard article documentclass to use the pages for an essay setting, but at the end I need to include newspaper articles and would like to format the latter pages as two columns for these newspaper articles. Does anyone have a suggestion as to how I should approach this? Tables are not reasonable for obvious reasons and I am not sure what other tools are at my disposal. So generally I would like to format my document as > Essay Body > > References > > (Two Column Start) > > Articles > > (Two Column End) **Edit:** Can I force all of the remainder into the left column only instead of having it balance? Also can I increase the space between the columns slightly? ![enter image description here](http://i.stack.imgur.com/IZtAJ.png)


title: Scaling pgfplots matching papersize

text: I'm facing some problems at the moment with scaling some diagrams so that they each fit on a page (landscape) in my appendix. Does anyone has some suggestions how to solve this? Any help would be really appreciated. One of the diagramms looks like this. I also included the "main settings" as I am not sure, if they are important (papersize, header etc.)               \RequirePackage{fix-cm} % Improves appearance of some cm-super fonts     \RequirePackage[l2tabu, orthodox]{nag}    % warns about some obsolete latex constructs     \documentclass[        12pt,                % font size 12pt        a4paper,             % layout for DIN A4        oneside,             % layout for one sided printing        headinclude,         % include head in layout computation        headsepline,         % horizontal line below head        BCOR12mm,            % correction for fixation        DIV16,               % DIV-value for creating the print space, (see scrguien.pdf)        parskip=half,         % spacing between paragraphs        openany,             % chapters may start on even and odd pages        bibliography=totoc,            % put bibliography into table of contents        numbers=noenddot,    % chapter numbers without full stop        headlines=2.1,       %test overfull        captions=tablehe     ading,   % use table headings with correct spacing        fleqn                % float equations to left margin               % 1,5er Zeilenabstand     ]{scrbook}[2007/12/24]  % scrbook-Version min. v2.98 from 2007/12/24          \usepackage[utf8]{inputenc}    % change to your encoding (e.g. utf8)     \usepackage[T1]{fontenc}         % correct pdf output (correct umlaut charaters)     \usepackage{lmodern}             % fonts for pdf-file creation (use Type1 instead of Type3) - only needed, if cmsuper is not installed     %                                 % check the resulting pdf-file: fonts should been embedded, subsetted and of type 1 (NOT type 3!)     \usepackage[intlimits]{amsmath}  % place the subscripts and superscripts in the right position     \usepackage{amsfonts}            % additional fonts like \mathbb, \mathfrak     \usepackage{amssymb}             % additional symbols     \usepackage{url}                 % support for urls     \usepackage{longtable}     \usepackage{ltxtable}     \usepackage{mdwlist}     \usepackage{filecontents}     \newcommand{\grad}{\ensuremath{^\circ}} %Grad     \usepackage[babel,german=guillemets]{csquotes}               %\usepackage{ngerman}             % new german orthography     \usepackage[ngerman]{babel}     \usepackage{scrpage2}            % head and foot layout     \usepackage{ushort}              % complex values require an underline (use \ushort or \ushortw)     \usepackage{units}               % package for setting units in a typographically correct way (e.g. \unit[3]{cm})     \usepackage{booktabs}            % package provides additional commands to enhance the quality of tables     \usepackage{datetime}            % provides \pdfdate command          \usepackage[german]{fancyref}          \usepackage{setspace}            % Anderthalbzeiliger Zeilenabstand     %\onehalfspacing     %\setstretch{1,6}     \addtolength{\headheight}{3pt} %test Warning using a very small headheight     \linespread{1.3}          \numberwithin{equation}{section} % amsmath: numbering equations          \pagestyle{scrheadings}          % enable scrheadings layout for head and foot          %Fußnoten nicht eingerückt     \usepackage[bottom,hang]{footmisc}     \setlength{\footnotemargin}{0pt}          \ifx\pdfoutput\undefined      % non pdflatex settings (normal latex compiler assumed)      \usepackage[dvips]{graphicx}     \else      % different settings for the pdflatex compiler      \usepackage[pdftex]{graphicx}      \usepackage{epstopdf}           % enables automatic conversion from .eps to .pdf graphic files; run MikTeX as "latex --enable-write18"      \usepackage[pdftex,plainpages=false]{hyperref}      \pdfcompresslevel=9      \pdfinfo{         /CreationDate (D:20050518110000) % date format is year(4) month(2) day(2) hour(2) minute(2) second(2)         /ModDate      (D:\pdfdate)      }          \fi                                             \usepackage{tikz}     \usepackage{pgfplots}     \usepackage{pdflscape}     \pgfplotsset{compat=1.8,                 grid style={dashed}}          \begin{filecontents}{Data_Geburt_Tod.csv}     Jahr    Geburten    Sterbefaelle     1602    11  1     1603    20  6     1604    19  6     1605    23  11     1606    18  7     1607    20  6     1608    27  8     1609    21  3     1610    15  84     1611    {}  {}     1612    24  4     1613    28  9     1614    28  3     1615    13  {}     1616    22  5     1617    21  {}     1618    24  5     1619    24  4     1620    5   2     1621    13  3     1622    14  8     1623    15  2     1624    17  1     1625    14  2     1626    14  3     1627    6   1     1628    16  1     1629    15  1     1630    8   5     1631    15  6     1632    7   2     1633    12  13     1634    11  17     1635    1   79     1636    10  38     1637    13  11     1638    1   21     1639    8   4     1640    7   1     1641    5   5     1642    11  1     1643    6   1     1644    17  3     1645    22  2     1646    24  5     1647    22  2     1648    29  5     1649    13  4     1650    27  7     \end{filecontents}               \begin{document}     \begin{landscape}     \begin{tikzpicture}       \begin{axis}[ybar=2*\pgflinewidth,                 width=1.9\textwidth,height=0.9\textheight,                 xmin=1602,                 title={Bevölkerungsentwicklung zwischen 1600 und 1650},                 xtick={1600,1605,1610,1615,1620,1625,1630,1635,1640,1645,1650},                 x tick label style={/pgf/number format/1000 sep=},                 xlabel={Jahr},                 y tick label style={/pgf/number format/1000 sep=},                 extra y ticks={84, 79},                 extra y tick labels={{84},{79}},                 extra y tick style={grid=major,                     tick label style={xshift=-1cm}},                 ylabel={Personen},                 enlarge x limits=0.01,                 bar width=5pt]       \pgfplotstableread{Data_Geburt_Tod.csv}\loadedtable;              \addplot table[x=Jahr, y=Geburten] {\loadedtable};         \addplot table[x=Jahr, y=Sterbefaelle] {\loadedtable};            \legend{Geburten, Sterbefaelle}        \end{axis}     \end{tikzpicture}     \end{landscape}          \end{document}


title: table first column

text: I want to create a table, like that: ![enter image description here](http://i.stack.imgur.com/cmS29.png) But, I want more space in first column. How I could resolve this problem ? My code is:                   \begin{table}[htbp]       \centering       \caption{Add caption}       \begin{tabularx}{\textwidth}{*{5}{>{\centering\arraybackslash}X}}       \toprule               & Clay  & Talco & GCC   & PCC \\         \midrule         Formula &       &       &       &  \\         Estrutura do cristal & vdfvd & fdgfd & fdgfd & dfgdg \\         Densidade ($kg/dm^3$) & vdfvd & fdgfd & fdgfd & fdgfd \\         Índice de Refracção & vdfvd & fdgfd & fdgfd & fdgfd \\         Dureza (escala de Mohs) & vdfvd & fdgfd & fdgfd & fdgfd \\         Brancura (\%) & vdfvd & fdgfd & fdgfd & fdgfd \\         Distribuição de Tamanhos (\%) & vdfvd & fdgfd & fdgfd & fdgfd \\         < 10 um & vdfvd & fdgfd & fdgfd & fdgfd \\         <5 um & vdfvd & fdgfd & fdgfd & fdgfd \\         <2    & vdfvd & fdgfd & fdgfd & fdgfd \\         àrea de superficie & vdfvd & fdgfd & fdgfd & fdgfd \\         Potencial Zeta & vdfvd & fdgfd & fdgfd & fdgfd \\         Abrasão & vdfvd & fdgfd & fdgfd & fdgfd \\       \bottomrule       \end{tabularx}       \label{tab:addlabel}%     \end{table}%


title: How to set the play order of a beamer?

text: i want to show my problem with an example               \documentclass{beamer}     \begin{document}     \begin{frame}     \begin{enumerate}     \frametitle{Cryptography}     \item stream cipher     \item block cipher      \end{enumerate}     \end{frame}     \end{document}      what i want to do is when i go to the next page i want first show `\item stream cipher` in order to show what i'm going to say. who can help me?


title: \middle too big

text: I'm trying to typeset an equation that contains a "|":               \begin{align*}     \lambda_{l} = \lim_{q \to 0^{+}}P\left(X_{2} \leq F_{2}^{(-1)}(q) \middle|  X_{1} \leq F_{1}^{(-1)}(q) \right)      \end{align*}      which gives me ![enter image description here](http://i.stack.imgur.com/AfLvX.png) The "|" seems to be too long. I've tried `\mid`but that makes the vertical bar too short in relation to the outer left and right brackets. Is there a way I can get the "right" size "|" automatically? Thanks!


title: the source file (Tex file) is still corrupted and cannot be opened

text: I have a paper accepted by a journal. Editors ask me to upload my source tex file. Editors told me the tex is corrupted and cannot be opened after my twice upload, but the tex file works properly on my computer and I even zip it before upload to avoid corrupted. I am going to crazy.........pls give me a hint.


title: Left justify \dates for res.cls

text: This is an extension of the question posed: Left justify parts of resume using res.cls mwe:               \documentclass[margin, 10pt]{res}     \usepackage{lipsum}% just to generate text for the example          \moveleft.5\hoffset\centerline{\large\bf Bob Lob La} % Your name at the top          \begin{document}     \begin{resume}          \section{EXPERIENCE}     {\bf Ditch digger} \hfill November 2009 - Present \\     Barnies bigger diggers          \end{resume}     \end{document}      Produces the following. ![enter image description here](http://i.stack.imgur.com/lw7RW.jpg) The question is, can I move the dates to be underneath the Section Title, _without_ any forced line breaks? The solution to the above question, which would be something like adding               \hspace*{-\sectionwidth}November 2009 - Present       causes a newline between the dates and the description


title: Left-Aligning footnotes in Beamer

text: How can I align the footnote to the left, so that the 'a' from 'aligned' stands directly below the 'T' of 'This'? Using `\usepackage[flushmargin]{footmisc}` "eats" the footnote completely.               \documentclass{beamer}     \begin{document}          \frame{          Some text\footnote{This is a footnote spanning more than one line, that I would like to be aligned left.}          }          \end{document}      ![beamer](http://i.stack.imgur.com/qca1E.png)


title: Equivalent commands in Beamer Class and Koma script

text: What is the equivalent command of `\only<1>` in Koma script in LaTeX for the text to show on start and then on next click the text within `\only<2>`?


title: Problems at page boundaries trying to highlight `\lstinline`

text: I was trying the code given in Colored background in inline listings, which is actually the same than in How to redefine \lstinline to automatically highlight or draw frames around all inline code snippets?, and I ran into the following problem. When the paragraph in which the `\lstinline` appears is broken among pages, the highlight goes to the wrong page (not always). It also happens even if the paragraph is not broken, when latex footnotes or floating mechanism interferes and sends that paragraph to the next page. The following MWE shows both problems. It is the same code than in the cited answers, with some more text before the example which causes the problem for the first case (page-break at the paragraph). You can uncomment the line with the footnote, near `\begin{document}`, to see also the second problem (the whole paragraph goes to the next page, but the highlight remains in the first page).               \documentclass[a4paper]{article}     \usepackage{etoolbox}     \usepackage{atbegshi,ifthen,listings,tikz}     \usepackage{lipsum}          % change this to customize the appearance of the highlight     \tikzstyle{highlighter} = [       yellow,% set the color for inline listings here.       line width = \baselineskip,     ]          % enable these two lines for a more human-looking highlight     %\usetikzlibrary{decorations.pathmorphing}     %\tikzstyle{highlighter} += [decorate, decoration = random steps]          % implementation of the core highlighting logic; do not change!     \newcounter{highlight}[page]     \newcommand{\tikzhighlightanchor}[1]{\ensuremath{\vcenter{\hbox{\tikz[remember picture, overlay]{\coordinate (#1 highlight \arabic{highlight});}}}}}     \newcommand{\bh}[0]{\stepcounter{highlight}\tikzhighlightanchor{begin}}     \newcommand{\eh}[0]{\tikzhighlightanchor{end}}     \AtBeginShipout{\AtBeginShipoutUpperLeft{\ifthenelse{\value{highlight} > 0}{\tikz[remember picture, overlay]{\foreach \stroke in {1,...,\arabic{highlight}} \draw[highlighter] (begin highlight \stroke) -- (end highlight \stroke);}}{}}}     %--------------------------               \makeatletter %   Redefine macros from listings package:     \newtoggle{@InInlineListing}%     \togglefalse{@InInlineListing}%          \renewcommand\lstinline[1][]{%         \leavevmode\bgroup\toggletrue{@InInlineListing}\bh % \hbox\bgroup --> \bgroup           \def\lst@boxpos{b}%           \lsthk@PreSet\lstset{flexiblecolumns,#1}%           \lsthk@TextStyle           \@ifnextchar\bgroup{\afterassignment\lst@InlineG \let\@let@token}%                              \lstinline@}%          \def\lst@LeaveAllModes{%         \ifnum\lst@mode=\lst@nomode             \expandafter\lsthk@EndGroup\iftoggle{@InInlineListing}{\eh{}}{}%         \else             \expandafter\egroup\expandafter\lst@LeaveAllModes         \fi%         }     \makeatother          \lstset{backgroundcolor=\color{green!10}}%          \begin{document}     \lipsum[1-5]     % Foo\footnote{\lipsum[6]}          This is a somewhat large paragraph which latex perhaps will break among two     pages. Hopefully this will show the intended problem, that is, that the     highligthed yellow box is shown in the page in which the paragraph started,     instead of the page in which the code actually landed. Some more sentences to     fill the required space will do. Blah, blah, lorem ipsum or whatever.     This is a test where \lstinline{A=1} should have a yellow background.          This, on the other hand, actually works:       \begin{lstlisting}[backgroundcolor=\color{green}]         A = 1       \end{lstlisting}     \end{document}      This is the result (after compiling twice). The yellow box near "ipsum" should be on the `A=1` inline code of the second page. ![Fist page](http://i.stack.imgur.com/VB2QV.png)![Second page](http://i.stack.imgur.com/TCRer.png) Can this be fixed?


title: Can't force image to be inserted here even with using begin{figure}[H]

text: I'm using latex to write a lab manual for a computer class. for this purpose I should describe the steps of the lab step by step and each step must be followed by an image. but the problem is when I write a bunch of words and then call begin{figure} even with use of [H] it ignores my order and puts words together and two images in tandem. I want each image to be right were I tell it as reference to the texts, not to float. I appreciate your help tnx


title: How to right align columns but center align header row using pgfplotstable?

text: I am a newbie with `pgfplotstable`: I would like to right align the columns of the table containing my data, but keep the headers center-aligned. Here is the code for the tables - does anyone know how to modify it to accomplish this?               \begin{table}[H]     \centering     \caption{Stuff}     \pgfplotstabletypeset[     col sep=comma,     string type,     every head row/.style={before row=\hline,after row=\hline},     every last row/.style={after row=\hline},     display columns/0/.style={column name=Years, column type = {r}},     display columns/1/.style={column name = Data1, column type = {r}},     display columns/2/.style={column name = Data2, column type = {r}}     ]{./DataOutput/Resids/Stuff.csv}     \end{table}      Thanks very much for any assistance.


title: Making rotated adjustbox fit into cell

text: I tried `\rotatebox`, but was unable to make the rotated text vertically fit into one cell so I opted for `\adjustbox` instead.               \documentclass{article}     \usepackage{float}     \usepackage{multirow}     \usepackage{adjustbox}     \usepackage{tabularx}     \usepackage{rotating}     \usepackage{ragged2e}          \begin{document}     \begin{table}[h!]       \label{tab:container}       \caption{Some fancy table}       \centering            \begin{tabularx}{\textwidth}{|cl|X|X|X|X|}         \hline         \multirow{2}{*}{           \adjustbox{minipage=1cm,angle=90,raise={1pt}{0pt}{0pt}}{% raise by 1pt, set height and depth to 0pt.             \RaggedRight             Long rotated row title           }         }         & Row 1 & & & &\\              & Row 2 &&&&\\         \hline       \end{tabularx}     \end{table}     \end{document}      With `\adjustbox`, the above code yields: ![enter image description here](http://i.stack.imgur.com/1cwt5.png) I would like the text to be "centered" so that it "fits" between the `\hline`s of row 1 and 2.


title: Linux Libertine does not show Greek SmallCaps

text: According to the Linux Libertine font tester you can have Greek small caps. However the following example does not yield the desirable result:               \documentclass{article}     \usepackage{fontspec}     \setmainfont{Linux Libertine O}          \begin{document}         \textsc{Small Capitals}         \textsc{Πεζά κεφαλαία}     \end{document}      Output: ![Small caps for latin characters but not for Greek ones.](http://i.stack.imgur.com/225rZ.png)


title: Create a table with calculations of binomial and poisson distribution

text: Well, I was looking for some tables on the internet about the binomial and poisson distribution (not the cumulative ones) in LaTeX format. But I've only found the code of the cumulative distributions, which I don't want. Then I looked around for other formats (not LaTeX), but the only I've found are large tables (3–4 pages). So I'm thinking if it's possible to make LaTeX do the calculations and then give me the table, based on a few variables. Is this possible? The final idea is to get this, which is the _horrible_ table the teacher gave us. **EDIT:** Here is my original idea (the only way I know to do it):               \documentclass[tikz]{standalone}     \standaloneconfig{border=2mm}     \begin{document}         \begin{tikzpicture}             \foreach \c in {2,...,7}{             \def\n{0.6*\c}             \draw (-1,-\n^2/2 -\n/2) node {$\c$};             \draw (-1.5,-\n^2/2 -\n/2 + 0.3) -- (22,-\n^2/2 -\n/2 + 0.3);             \foreach \k in {0,...,\c}{             \draw (0, -\n^2/2 -\n/2 -0.6*\k) node {$\k$};             \foreach \p/\h in {0.01/1,0.05/2,0.1/3,0.15/4,0.2/5,0.25/6,0.3/7,0.3333333333/8,0.35/9,0.4/10,0.45/11,0.49/12,0.5/13}{             \draw (1.6*\h, -\n^2/2 -\n/2 -0.6*\k) node {\pgfmathparse{\n!/(\k!*(\n-\k)!)*\p^(\k)*(1-\p)^(\n-\k)}\pgfmathresult};             }             }             }         \end{tikzpicture}     \end{document}      It needs some tweaking, but this is the original idea. The problem is that I can't make `\c` go to 10, I get an _Arithmetic Overflow_ (which I don't know what is it), and, of course, this is not a real table. **EDIT2:** Here it is my second edition. Now with some minor problems, but almost solved by @Qrrbrbirlbel. There are still some minor problems which I have ignored, because it's not necessary to me, but may be future people will ask about it:   * First, it doesn't work well if you try to write `\myHeadList{0.1,0.5,0.10,...,0.30}` with `...`, the PGF has some problems here (with non integers numbers). This is partially solved in Qrrbrbirlbel's answer.   * Second, to alternate color in rows, we can use `\usepackage[table]{xcolor}` in the preamble and `\rowcolors{2}{gray!10}{white}` inside the document. But with `booktabs` this doesn't work quite well.


title: Is there a reason NOT to use \left and \right?

text: I was reading the mathtools documentation on `\DeclarePairedDelimiter`, and apparently only the starred version of the command it defines uses `\left` and `\right` on the delimiters. This surprised me a little bit, because I've always used `\left` and `\right` on every single `\newcommand` I define which uses delimiters, I just figured there's no reason not to. Which brings me to the question. **Is there a reason _not_ to always use `\left` and `\right` on every pair of delimiter in your equations?**


title: How can I stretch a letter asymmetrically?

text: Here is an example of what I would like to obtain: ![enter image description here](http://i.stack.imgur.com/dq0GU.png) I know how to manipulate boxes to scale the 'E' and to lower it, but is there a package to perform this kind of asymmetrical stretch, or apply scaling only to a part of the box?


title: Suppress the processing of all images

text: I am trying to make a draft by forcing LaTeX to ignore all images. How do I tell LaTeX to suppress all the image filenames (in the `\includegraphics` command) and just insert an empty box? The problem with the `[draft]` options is that it still requires me to have all images in the folder where I have my `.tex` files.


title: Compile a LaTeX file ignoring missing EPS graphics

text: I am proofreading a paper for someone else. I have the `.tex` file but no EPS graphics files. I would like to make a PDF file to read the changes in text that I made, but I keep getting errors because it can't find any of the graphic files. Can I create a PDF file by ignoring the graphics?


title: How to write a LaTeX syntax in the smartphone easier?

text: To write a note containing a mathematical formula in Android smartphones, I use 920 Text Editor Apps. Weakness, due to the limited display on-screen keyboard smartphone, to write '\' (backslash), we need press the button [?123], [=\<], then ['\']. LaTeX Editor Apps include the [] and some important buttons on the screen, but make the working window smaller . How to make writing LaTeX syntax in the smartphone becomes easier, eg:                   \documentclass typed as .dc         \usepackage typed as .up         \begin{document} typed as .bd      Note: type [.] (dot) in the smartphone is much easier than type '\'. Then, when compiling in TeXnicCenter,                   .dc reads as \documentclass         .up reads as \usepackage         .bd reads as \begin{document}      Normally, I am compiling in Laptop using TeXnicCenter. Except for urgent needs, I am compiling it using TeX Portal Apps.


title: Create a coordinate node at each point of a path

text: How can I create a `TikZ`/`pgf`-style that will put a coordinate, which should be named automatically, at each point of a path? So the following code               \draw[put coordinates](0,0)--(3,2)--(4,7)--(-2,1);      Should be essentially the same as:               \draw(0,0)--(3,2)--(4,7)--(-2,1);     \coordinate(mypathcoordinate1) at (0,0);     \coordinate(mypathcoordinate2) at (3,2);     \coordinate(mypathcoordinate3) at (4,7);     \coordinate(mypathcoordinate4) at (-2,1);


title: Bad box because of algebraic expression

text: I'm getting a bad box in the following (I can see in the PDF that the expression is shooting past the right edge of page contents):               \item If $\dfrac{a}{b} = \dfrac{c}{d} = \dfrac{e}{f} = \ldots$, then each of these ratios         is equal to $\left( \dfrac {pa^n + qc^n + re^n + \ldots}{pb^n + qd^n + rf^n + \ldots}      right)^{\frac{1}{n}}$, where $p$, $q$, $r \ldots$ are any quantities whatsoever.      Is there an automatic setting that will shift the expressions to the next line? Or perhaps there's a better solution?


title: Cite the appendix to a paper in bibtex

text: I would like to cite the appendix, written by Dr. X, of a published paper written by Profs Y and Z, and I am using bibtex. Unfortunately I am confused about how to do this. Of course both the appendix and paper have a different title. Here is the sort of thing I'm looking for to appear in the references: > J. Smith. Proof of the Riemann Hypothesis, appendix to \emph{Proof of the > Generalised Riemann Hypothesis}, by M. Muller and M. Schumacher, Annals of > Mathematics, vol 4, 13-45, 2013. Any help appreciated!


title: mdframed box of fixed minimum height

text: I would like my `mdframed` boxes from `MyEnvironment` to have a minimum total (title+body) height. The height can be greater (if the content warrants it), but not smaller than a certain size. I can probably hack up a solution by   1. Typesetting the `mdframed` into a `\savebox`,   2. Measuring it, and   3. Re-typsetting it with an appropriate `\vspace` inserted,  but wondering if there is a less hackish way to accomplish this. The MWE produces the following, but the desired output would have blank space after the content body so that the height is the value set in `\MinimumHeight`. ![enter image description here](http://i.stack.imgur.com/clq76.png) Since the last box height is already greater than `\MinimumHeight` is should not be changed. ## Notes:   * The minimum height is a fixed constant known before compile time. ## References:   * This seems related: Fix the height/length of a minipage, but not quite what I desire. ## Code:               \documentclass{article}     \usepackage{xcolor}     \usepackage{environ}     \usepackage{mdframed}     \usepackage{lipsum}          \newcommand*{\MinimumHeight}{5.0cm}%          \NewEnviron{MyEnvironment}[1][]{%         \begin{mdframed}[             frametitlebackgroundcolor=brown!25,             frametitlerulecolor=blue,             frametitlerulewidth=1.0pt,             backgroundcolor=yellow!25,             #1         ]         \BODY         \end{mdframed}     }          \begin{document}     \begin{MyEnvironment}[frametitle={Short Title}]         Some text for first paragraph.              Some more text for other paragraphs.     \end{MyEnvironment}          \begin{MyEnvironment}[frametitle={Some much longer title that takes up more than one line in the title frame}]         Some text for first paragraph.     \end{MyEnvironment}               \begin{MyEnvironment}[frametitle={Title of frame with much text}]         \lipsum[1]     \end{MyEnvironment}     \end{document}


title: Table inside a caption

text: Sorry if this is a triviality ... Anyhow, how would you go about to insert a table inside a figure caption? how do I go about to insert a block inside a block?                   \begin{figure}[h]         \begin{center}             some picture here             \caption{. . . table here . . . !!}         \end{center}         \end{figure}


title: Switching to an "enhanced" latex

text: I'm a long time LaTeX user and have a pretty efficient workflow already set up for writing LaTeX document, however I've pretty much missed the entire wave of "alternate" and "enhanced" LaTeX replacements like LuaTeX and XeTeX. I've been wanting to try out a new typesetting engine, but am interested in making a switch only to something that I can keep using long term. For someone writing for the sciences, what would be an efficient path to switch from LaTeX, minimizing the dip in productivity? Particularly, how well do existing LaTeX packages (of most interest - publisher specific packages like `revtex`) interface with LaTeX alternatives? Are there any distinct advantages that someone writing for scientific publication or engineering documentation would find useful in other *TeX's ?


title: How to type sheaf hom

text: I want to type sheaf hom into LaTeX how can I do it? In Hartsthorne it appears as something like `$\mathscr{H}om$` but I don't think this is right. For example, because the space between the 'H' and 'o' is too big. What can I do?


title: Using before as a Global setting in enumitem

text: I am working on a small project and am using the enumitem package reasons for beyond this example. I read the docs and managed to produce this example. Currently, I am using the before argument on the \begin{description} (uncomment part of line 6). To facilitate reuse I would like to move it into the global settings for description the description environment (line 4). However, it appears to be beyond my understanding. Thanks for the help               \documentclass{article}       \usepackage{enumitem}            %\setlist[description]{before={\renewcommand{\makelabel}[1]{\textit{##1}: }}} % Illegal parameter number in definition of \enit@@description.       \begin{document}         \begin{description}%[before={\renewcommand{\makelabel}[1]{\textit{##1}: }}]           \item[square]{a four-sided polygon is a square if and only if all sides are equal and its vertex angles are all right angles.}         \end{description}       \end{document}