title: 4 images on a frame appearing each a a time - fine tuning beamer

text: I have a figure which consists of 4 plots, Full figure here, and I want to have them appearing one by-one in the presentation (from left to right, top to bottom). I managed to do this by including each plot separately using a combination of \subfloat and \pause:               \begin{frame} \frametitle{Cufflinks analysis - SRSF1}       \begin{figure}[t]         \centering          \captionsetup[subfloat]{labelformat=empty}           \subfloat[]{\label{} \includegraphics[scale = 0.20]{Image1.pdf}}            \pause \subfloat[]{\label{} \includegraphics[scale = 0.20]{Image2.pdf}}\\           \pause \subfloat[]{\label{} \includegraphics[scale = 0.20]{Image3.pdf}}           \pause \subfloat[]{\label{} \includegraphics[scale = 0.20]{Image4.pdf}}       \end{figure}     \end{frame}      [edit] Result: ![example](http://i.stack.imgur.com/AS2yZ.png) The issue with this solution is that the vertical spacing between the rows of images is rather large. I would like to reduced it in order to increase the size of each image - better use of space really. If someone has a simple alternative where all 4 plots are part of a single image and each part is uncovered when needed it would be great. Be gentle, this is my 1st beamer presentation.


title: Numbering equations within dynblocks environment

text: I'm trying to number an equation inside an environment created for customed blocks with equations like those contained in how to adjust the latex beamer block width to the size of its content?. But I receive an error when inserting an `\align{}` environment. Any suggestions?


title: Is there a way to detect `\left` in front of macros?

text: Is there a way to have a macro optionally prefixed with `\left` or `\right` and have it expand differently depending on that? For example, have `\bra{x}` expand to `\langle x |`, but `\left\bra{x}` to `\left\langle x \middle|`? Extra bonus if it works also with explicit size prefixes, giving that size to both `\langle` and `|`. Some examples of what you could do with such macros: Assuming a corresponding `\ket` macro, one could then write e.g.               \left\bra{x} \frac{\hat p}{m} \right\ket{x}      and have it expand to               \left\langle x \middle| \frac{\hat p}{m} \middle| x \right\rangle      i.e. the size of the brackets would depend on both the arguments and what's in between. On the other hand,               \bra{x} \frac{\hat p}{m} \ket{x}      would just expand to               \langle x | \frac{\hat p}{m} | \rangle      that is, without extension. Since there would be exactly one `\left` in the expansion of the `\left`-prefixed macro, and exactly one `\right` in the expansion of the `\right`-prefixed macro, one could also combine it with normal delimiters (including the "pseudo-delimiter" `.`). So for example,               \left\langle{x^2}\right.      would expand only according to what is inside the argument. (Note: I am aware of the braket package, so no need to point that out. Note that it doesn't the `\left`/`\right` thing either.)


title: Error caused by interaction between minted, footnotes, babel and "(double quote)

text: I'd like to put some inline code using minted but when I try to typesent the empty string "" I get an "undefined control sequence" error. Sample code:               \documentclass[a4paper,10pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[italian]{babel}     \usepackage{minted}          \begin{document}     \footnote{\mint{bash}/""/}     \end{document}      The pdf is created anyway but I get this instead of the expected "":               \def {\futurelet \protect \let \relax }\def {\futurelet \protect \let \relax }      (Yes, I really mean that the above commands are printed in the footnote in the pdf). Commenting out `babel` solves the problem, but I need babel in my real TeX file. Also I do not want to use ```` and `''`, since they give an output that does not match with the code inserted using `\inputminted`. Is there a way to fix this? Eventually how can I put real a doublequote(a.k.a. ASCII 34)? Note that `\mint` is like `\verb` so normal LaTeX commands are ignored. On a side note I'm using this answer to typeset inline code with minted, but it is not the cause of the problem.


title: Problem with quick build

text: I just started using texmaker and have now faced a problem with viewing the made file as a pdf-file. I have selected the PdfLaTex + View PDF setting from the Quick Build Command -list. And next to the 'run' button I have selected Quick build -> View PDF. When pressing the 'run' button nothing really happens. There appears to be no errors in my LaTeX, but it won't just show me the PDF. Anyone know what might be causing this problem?


title: \mathsf{} prints digits in serif font

text: I am using `mathsf{}` in a command to mark special kinds of variables in a formula. I have:               \newcommand{\mycmd}[1]{\mathsf{#1}}      In formulas I usually have               $\mycmd{specialvariable_1} = yada yada yada$      Now I noticed that the digits in the subscript are still printed in the serif font. This also happens for non-subscript numbers. A minimal example is:               $\mathsf{a5\,b_3}$      here the digits are printed in a serif font, the letters are printed in a sans-serif font. How to force LaTeX to also print the digits in a sans-serif font? (Maybe of interest: my command is often nested in other commands that occasionally are themselves nested in other commands...) **[Update]** As requested I made a minimal working example. It seems the package `sansmath` is the problem. Without the package, the digits are printed in sans-serif, with the package, the digits are printed with serifs. Nevertheless this seems a bit counterintuitve...               \documentclass[11pt]{scrbook}          \usepackage{sansmath}          \begin{document}      $\mathsf{a5\,b_3}$     \end{document}


title: Why ``ltablex`` keeps adding vertical space before the ``tabularx`` environment?

text: Here an extra vertical space is added before the `tabularx` environment (you can see that by comparing it with the same document compiled w/o `ltablex` package and with the `\keepXColumns` line commented out. How do I get rid of that extra space?               \documentclass{article}          \usepackage{blindtext,booktabs,cmap,ltablex,tabularx}     \usepackage[T2A]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \keepXColumns          \begin{document}          \section*{Random Section}          \begin{tabularx}{\textwidth}{lX}     \toprule     1 & \blindtext \\     2 & \blindtext \\     \bottomrule     \end{tabularx}          \end{document}


title: gif image in beamer presentation

text: I wish to display some animations in my beamer presentation. The most trivial way that comes to my mind is to use a gif image. How can I put it in the presentation and what should I use to display it? Is there any other way of doing it?


title: Stacking tables with the geometry package included

text: I am new to LaTeX. I am trying to stack tables one on top of another but I seem to be having a problem doing that while including the geometry package. I am doing this in order to simulate very complex table structures that would otherwise be prohibitive using standard table definitions. Here are some of my requirements:   * The tables widths must be specified in cm.   * The tables must be arranged vertically and left aligned with each other.   * The tables must not have any gaps between them.   * The default page margins must go away.   * The tables must be tabularx objects in order to take advantage of its features. Here is the code I am using for testing:               \documentclass[letterpaper]{article}     \usepackage[margin=1in, paperwidth=8.5in, paperheight=11in]{geometry}     \usepackage{tabularx}     \begin{document}         \noindent         \begin{tabularx}{13.25cm}{|l|}             \hline {Test One}  \\ \hline         \end{tabularx}         \begin{tabularx}{13.25cm}{|l|}             \hline {Test Two}  \\ \hline         \end{tabularx}         \begin{tabularx}{13.25cm}{|l|}             \hline {Test Three}  \\ \hline         \end{tabularx}     \end{document}      This code will arrange the tables in some kind of two column array. When the geometry line is removed the tables will be arranged correctly, but I need this line in order to instruct LaTeX to give me control of the page margins. In both cases there seems to be a 1 point gap between the tables which should not be there. Any help is appreciated.


title: How to do y-split for tree nodes in pstree?

text: As I need to draw lines between edges, I'd like to have y-splits when there are multiple child nodes. At the moment I realized it through a hidden node and `nodesep=0`. Unfortunately, I don't know of any way to reset `nodesep` for the direct parent and children of the split node and therefore the spacings are wrong (see screenshot). ![screenshot](http://i49.tinypic.com/a4vuq9.png)               \documentclass{minimal}          \usepackage{pstricks,auto-pst-pdf}     \usepackage{pst-tree}          \newcommand{\terminal}[2][]{\TR[#1]{\boldsymbol{#2}}}     \newcommand{\nonterminal}[2][]{\TR[#1]{#2}}     \newcommand{\emptyword}{\TR{\epsilon}}     \newcommand{\derivationtree}[1]     {         \begin{postscript}             $   \pstree[treemode=R,nodesep=2pt,treesep=0.4cm,levelsep=1.5cm]{\TR{S}}{#1} $         \end{postscript}         }          \begin{document}          \derivationtree{       \pstree[nodesep=0]{\nonterminal{N_1}}       {         \pstree{\Tr{}}         {             \pstree[nodesep=2pt]{\nonterminal{N_1}}             {                 \terminal{[}             }             \terminal{[}         }       }     }          \end{document}      In the pst-tree manual, there is an example where `\psedge` is redefined as `\ncdiag`. But I couldn't really figure out how to do it and how to restrict the effects just for one case.


title: restatable non-nested sub-theorems

text: I want to create restatable sub-theorems without nesting them. I am using packages `thmtools` and `thm-restate`. By non-nested sub-theorems, I mean a similar structure to what we use for sections and subsections: A section does not enclose its paragraphs and subsections, yet these are conceptually all children of a section. In my MWE, I want to create a restatable theorem (no. 1) followed by a regular paragraph of text. Then, I want add a number of sub-theorems (numbered 1.x), each followed by a bit of text. AFAIK this answer does not work with restatables, and the thmtools docs don't mention anything like this either.               \documentclass[a4paper]{article}     \usepackage{thmtools,thm-restate}          \newtheorem{goal}{Learning Goal}          \begin{document}     \section{Numbers}     We want to learn about numbers.          \subsection{Small Numbers}     Let's start with small numbers.     \begin{restatable}{goal}{gI}         Count to 3.     \end{restatable}     Counting to 3 is the most essential skill in the `small number department'.     We will master this skill in a number of steps which are described below.          %This should be sub-goal 1.1     \begin{restatable}{goal}{gI_i}         The number 1.     \end{restatable}     We will ask Elmo to tell us about the number 1.          %This should be sub-goal 1.2     \begin{restatable}{goal}{gI_ii}         The number 2.     \end{restatable}     This one will be taken care of by Cookie Monster.          %This should be sub-goal 1.3     \begin{restatable}{goal}{gI_iii}         The number 3.     \end{restatable}     This is the toughest one so far.     We will have to rely on the Count to explain all about this number.          \section{Letters}     \ldots     \end{document}


title: Shrink code chunks in a documentation

text: i'm making a documentation of a system, and i have a lot of code chunks that i want to explain, but some of them are too long. My questions if there are some way to automatically shrink those too big chunks to a fixed number of lines, let say N+3 where 3 are the 3 dotted lines, something like                codeline1      codeline2      .      .      .      codelineN      i'm actually using listings to typeset those code chunks.


title: How to know the number of pages in a PDF file?

text: I use `graphicx` to include pages of a PDF file. I want to know in LaTeX how many pages are in the file. How to do this?


title: how to cause unix 'make' to know how many times to run *tex

text: Is there a clever way to cause the unix `make` command to run a tex variant as many times as are required to resolve all references? I've used tex for a long time, and I still don't know which of all those extra files (`.aux`, `.log`, etc) should be checked, so I usually just run (pdf)latex 3 times, but that is slow for a 400 page document. I am thinking that a fragment such as the line below might be a starting point ... maybe I should just string 3 or so of these together?               (pdflatex oar | grep -vq 'here were undefined references')


title: Old style numbers without fontspec

text: How do I use old style numbers _everywhere_ without using `fontspec`? Or is it even possible? Where do I find the documentation for the fonts in the LaTeX Font Catalogue? **Minimum (Non)Working Example** :               \documentclass{article}     \usepackage[T1]{fontenc}          % Uncomment either of the following two lines:     %\usepackage[Numbers=OldStyle]{tgpagella}     %\usepackage[osf][tgpagella]          \begin{document}       Hello World!       1234567890     \end{document}


title: Oldstyle numerals or lining numerals with units of measurement?

text: What is considered proper typography regarding which set of numerals to use with units of measurement? A real-life example: > In the experiment, shown schematically in figure 2.2, we illuminate an array > of 10 slits, each 50 nm wide, with a laser beam at λ = 830 nm. Which numerals in the above sentence should be set as oldstyle (text) numerals and which should be lining numerals? As far as I know,   * "figure 2.2" should be oldstyle in any case.   * "10 slits" should also be oldstyle.   * for "50 nm wide", a case could be made for either one. Personally I think oldstyle looks better here.   * for "λ = 830 nm", the answer should be the same as "50 nm wide". But this is even more of a grey area, since strictly speaking the "830 nm" is part of an equation. If it were "f/2 = 50 Hz" then I would definitely want the "2" to be a lining numeral. Also, is using the `siunitx` package macros for every instance of a number followed by a unit of measurement the best way to achieve this? **ADDENDUM** Unfortunately using `siunitx` gives me the dreaded `Too many math alphabets` error and I'm not wasting any more precious hours of my life fixing _that_ one. Here are the macros that have always worked well enough for me:               \newcommand{\unit}[1]{\mbox{$\;\mathrm{#1}$}}     \newcommand{\micron}{\mbox{$\;\text{\textmu m}$}} % special case of \unit


title: Question about zref bundle (changing the behaviour of footnote rule)

text: In `bidi` package, we have three footnote commands `\footnote` (typesetting RTL footnotes in RTL mode and typesetting LTR footnotes in LTR modes), `\RTLfootnote` (always typeset RTL footnote), and `\LTRfootnote` (always typeset LTR footnotes). Currently `bidi` package has a complicated way to detect what is the first footnote command in a page and it failed when footnotes are split. Hence my question is that is it possible (with using `zref` bundle) to detect what is the first footnote command used in a page and accordingly (if the first footnote in a page is RTL, put the footnote rule to be on the right hand side and if the first footnote in a page is LTR, put the footnote rule on the left hand side), change the behaviour of footnote rule. Here is an example which seems to work correctly:               \documentclass{article}     \usepackage{zref-perpage}     \usepackage{bidi}     \makeatletter     \@definecounter{bidifootnote}          \zmakeperpage{bidifootnote}     \long\def\@RTLfootnotetext#1{\insert\footins{%         \stepcounter{bidifootnote}\@RTLtrue         \ifnum\c@bidifootnote=1\if@RTL\global\let\footnoterule\right@footnote\else\global\let\footnoterule\left@footnote\fi\fi         \reset@font\footnotesize         \interlinepenalty\interfootnotelinepenalty         \splittopskip\footnotesep         \splitmaxdepth \dp\strutbox \floatingpenalty \@MM         \hsize\columnwidth \@parboxrestore         \protected@edef\@currentlabel{%            \csname p@footnote\endcsname\@thefnmark         }%         \color@begingroup           \@makefntext{%             \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%         \color@endgroup}}%               \long\def\@LTRfootnotetext#1{\insert\footins{\stepcounter{bidifootnote}\@RTLfalse%         \ifnum\c@bidifootnote=1\if@RTL\global\let\footnoterule\right@footnote\else\global\let\footnoterule\left@footnote\fi\fi         \reset@font\footnotesize         \interlinepenalty\interfootnotelinepenalty         \splittopskip\footnotesep         \splitmaxdepth \dp\strutbox \floatingpenalty \@MM         \hsize\columnwidth \@parboxrestore         \protected@edef\@currentlabel{%            \csname p@footnote\endcsname\@thefnmark         }%         \color@begingroup           \@makefntext{%             \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%         \color@endgroup}}%                    \long\def\@footnotetext#1{\insert\footins{%         \stepcounter{bidifootnote}\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi         \ifnum\c@bidifootnote=1\if@RTL\global\let\footnoterule\right@footnote\else\global\let\footnoterule\left@footnote\fi\fi         \reset@font\footnotesize         \interlinepenalty\interfootnotelinepenalty         \splittopskip\footnotesep         \splitmaxdepth \dp\strutbox \floatingpenalty \@MM         \hsize\columnwidth \@parboxrestore         \protected@edef\@currentlabel{%            \csname p@footnote\endcsname\@thefnmark         }%         \color@begingroup           \@makefntext{%             \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%         \color@endgroup}}%     \makeatother     \begin{document}     \RTLfootnote{This is a test.}\LTRfootnote{This is a test.}     \newpage     \LTRfootnotetext[3]{This is a test.}\RTLfootnote[4]{This is a footnote.}     \end{document}


title: How to set title and main matter pages independently, with memoir

text: I am setting up the page layout using memoir commands:               \documentclass[12pt,a4paper]{memoir}     \usepackage{lipsum}     \usepackage[charter]{mathdesign}          \begin{document}     \setlrmarginsandblock{20mm}{10mm}{*}      \checkandfixthelayout     \fixpdflayout     \lipsum[1-10]          \end{document}      This does not work properly (influences headers only). The correct way, if I recall correctly, is to put the commands before `\begin{document}`:               \documentclass[12pt,a4paper]{memoir}     \usepackage{lipsum}     \usepackage[charter]{mathdesign}          \setlrmarginsandblock{20mm}{10mm}{*}      \checkandfixthelayout     \fixpdflayout     \begin{document}     \lipsum[1-10]          \end{document}      This works fine. However, if I want to have different margins on the cover and in the main text, how can I achieve it? I need to call \setlrmarginsandblock after `\begin{document}` and then it does not work again.


title: Is there a way to change the font color of a piece of text ONLY on beamer mode?

text: I'm building a `beamer` presentation and would like to have some parts of the text shown as red on specific slides, but ONLY on `beamer` mode (as opposed to `handout` mode). I have tried the following:               \color<beamer:2>{red}{some text}      The above worked well on `beamer` mode (the text was shown in red on slide 2, and black on the other slides). However, in `handout` mode, the text is red. Is there a way for the text to be red on slide 2 on `beamer` mode, black on all other slides, and also black on `handout` mode?


title: Warning Undefined citation from bibtex (export from Mendeley)

text: I have problems when compiling my code. Latex tells me it is the piece of code shown below. The bibtex file seems to have the correct format (I exported it from Mendeley) but LaTeX gives me a warning and tells me that there is an undefined citation (Bakshi2003). Any idea on how to change this? (I followed an example where it seemed to work).               \documentclass[12pt]{article}     \usepackage{graphicx}     \usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry}     \usepackage{fancyhdr}     \usepackage[british,UKenglish,USenglish,english,american]{babel}     \usepackage[utf8]{inputenc}      \usepackage{lmodern}     \usepackage[T1]{fontenc}     \usepackage{url}     \usepackage{amsmath}     \usepackage{amsfonts,graphicx,amsmath,amssymb,hyperref,color}     \usepackage[all]{xy}     \usepackage{setspace}     \usepackage{natbib}     \usepackage{blindtext}     %\usepackage{cite}     \onehalfspacing     %\input xy     %\xyoption{all}     \makeindex     \frenchspacing     \sloppy     \usepackage{times}     \usepackage{tikz}     %\usetikzlibrary{arrows,automata}     \usepackage{mathrsfs}     \numberwithin{equation}{section}     \title{Option Implied Distributions}     \author{Nis Mathias Schulte Matzen}                    \begin{document}     %\maketitle     %\publishdate{\toda}     %\makeauthor     \begin{titlepage}     \begin{center}         \vspace*{1cm}              \Huge         \textbf{Option Implied Distributions}              \vspace{0.5cm}         \LARGE         A study of risk neutral return distributions              \vspace{1.5cm}              \textbf{Nis Mathias Schulte Matzen}              \vfill              A thesis presented for the degree of\\         Master in Economics (Cand.polit)              \vspace{0.8cm}              %\includegraphics[width=0.4\textwidth]{university}              \Large         Department of Economics\\         University of Copenhagen\\         Denmark\\         \date{}          \end{center}     \end{titlepage}     \begin{abstract}     Abstract here...     \end{abstract}     \newpage     \tableofcontents     \newpage     \subsection{Introduction}% a     Here is yada yada \cite{Bakshi2003} yada.          \bibliographystyle{plain}     \bibliography{Thesis.bib}     \end{document}       The Thesis.bib file looks like this:               @article{Bakshi2003,      author = {Bakshi, G.}, doi = {10.1093/rfs/hhg002},      file = {:C$\backslash$:/Users/Mathias/Dropbox/Speciale/Delta-hedgedgains      and the negative   market volatility risk premium.pdf:pdf}, issn = {14657368},       journal = {Review of Financial Studies}, month = apr, number = {2}, pages = {527--     566}, title = {{Delta-Hedged Gains and the Negative Market Volatility Risk     Premium}}, url = {rfs.oupjournals.org/cgi/doi/10.1093/rfs/hhg002}, volume = {16},     year = {2003} }


title: Text justification within multicols environment

text: I'm using this 3-column layout.               \begin{multicols}{3}     [.. a lot of text ..]     \end{multicols}      I want to left-align the text in the left column, center the text in the middle column, and right-align the text in the right column. (Before you ask why anyone would want that: it's for a rather long list of names) Of course, I can check which part of the text goes into which column, and justify the parts accordingly. But that's ugly. Can I tell LaTeX to do this for me?


title: pgfplots: color a surf using arbitrary colors

text: I am trying to figure out if there is an equivalent in pgfplots to what in MATLAB is done through the following command: `surf(A,B)`. This would plot the geometry `A`, using the colors specified in `B`. I am using the script from here to convert a few MATLAB plots to `pgfplots`, but the script ignores the second parameter of plot and exports only the values used for geometry. Hence, pgfplots plots `A` using the default `jetmap`, and I would like it to be colored using the values in `B`. Here is what I get using `pgfplots` ![enter image description here](http://i.stack.imgur.com/X2g5j.png) and this is how I want it to look ![enter image description here](http://i.stack.imgur.com/nD8Uk.png) Any guess? Cheers. EDIT: The code I am using so far is               \documentclass{article}          \usepackage{tikz}     \usepackage{pgfplots}          \newlength\figureheight      \newlength\figurewidth      \setlength\figureheight{6cm}      \setlength\figurewidth{6cm}          \begin{document}           \begin{tikzpicture}          \begin{axis}[%     view={64}{26},     width=\figurewidth,     height=\figureheight,     scale only axis,     xmin=1, xmax=11,     xmajorgrids,     ymin=1, ymax=11,     ymajorgrids,     zmin=275, zmax=320,     zmajorgrids,     axis lines=left,     grid=none,     point meta min=0, point meta max=1     ]          \addplot3[%     surf,     colormap/jet,     shader=faceted,     draw=black]     coordinates{      (1,1,317.78006)(1,2,313.597321)(1,3,309.414581)(1,4,305.231842)(1,5,301.049103)(1,6,296.866364)(1,7,295.766754)(1,8,294.667145)(1,9,293.567566)(1,10,292.467957)(1,11,291.368347)          (2,1,313.520264)(2,2,309.469849)(2,3,305.419434)(2,4,301.369019)(2,5,297.318604)(2,6,293.268188)(2,7,292.487549)(2,8,291.70694)(2,9,290.926331)(2,10,290.145691)(2,11,289.365082)          (3,1,309.260498)(3,2,305.342407)(3,3,301.424316)(3,4,297.506226)(3,5,293.588104)(3,6,289.670013)(3,7,289.208374)(3,8,288.746735)(3,9,288.285095)(3,10,287.823425)(3,11,287.361816)          (4,1,305.000702)(4,2,301.214905)(4,3,297.429138)(4,4,293.643372)(4,5,289.857605)(4,6,286.071838)(4,7,285.929169)(4,8,285.786499)(4,9,285.64386)(4,10,285.50119)(4,11,285.358521)          (5,1,300.740936)(5,2,297.087463)(5,3,293.434021)(5,4,289.780579)(5,5,286.127106)(5,6,282.473663)(5,7,282.649963)(5,8,282.826294)(5,9,283.002594)(5,10,283.178925)(5,11,283.355225)          (6,1,296.48114)(6,2,292.959991)(6,3,289.438873)(6,4,285.917755)(6,5,282.396606)(6,6,278.875488)(6,7,279.370789)(6,8,279.866089)(6,9,280.361359)(6,10,280.856659)(6,11,281.351959)          (7,1,294.19873)(7,2,291.054535)(7,3,287.910339)(7,4,284.766144)(7,5,281.621918)(7,6,278.477753)(7,7,279.38205)(7,8,280.286346)(7,9,281.190613)(7,10,282.09494)(7,11,282.999237)          (8,1,291.916321)(8,2,289.149048)(8,3,286.381805)(8,4,283.614532)(8,5,280.84726)(8,6,278.079987)(8,7,279.393311)(8,8,280.706604)(8,9,282.019897)(8,10,283.333191)(8,11,284.646515)          (9,1,289.633942)(9,2,287.243591)(9,3,284.853241)(9,4,282.462921)(9,5,280.072571)(9,6,277.682251)(9,7,279.404541)(9,8,281.126862)(9,9,282.849152)(9,10,284.571472)(9,11,286.293762)          (10,1,287.351532)(10,2,285.338104)(10,3,283.324707)(10,4,281.31131)(10,5,279.297913)(10,6,277.284485)(10,7,279.415802)(10,8,281.547119)(10,9,283.678436)(10,10,285.809723)(10,11,287.94104)          (11,1,285.069122)(11,2,283.432648)(11,3,281.796173)(11,4,280.159698)(11,5,278.523224)(11,6,276.886749)(11,7,279.427063)(11,8,281.967377)(11,9,284.50769)(11,10,287.048004)(11,11,289.588318)          };          \end{axis}     \end{tikzpicture}     \end{document}       And these are the values I want to use to color up this thing:                0.0037    0.0294    0.0435    0.0448    0.0313         0    0.0612    0.0923    0.0943    0.0652    0.0037         0.0308    0.0677    0.0908    0.0985    0.0878    0.0550    0.1244    0.1616    0.1675    0.1404    0.0790         0.0473    0.0943    0.1248    0.1364    0.1251    0.0871    0.1623    0.2032    0.2111    0.1842    0.1207         0.0509    0.1067    0.1424    0.1544    0.1384    0.0924    0.1707    0.2133    0.2212    0.1924    0.1250         0.0385    0.1011    0.1387    0.1466    0.1228    0.0663    0.1454    0.1879    0.1939    0.1615    0.0884         0.0048    0.0717    0.1067    0.1069    0.0726    0.0036    0.0819    0.1225    0.1251    0.0874    0.0060         0.1147    0.1927    0.2320    0.2329    0.1967    0.1242    0.2019    0.2407    0.2399    0.1963    0.1072         0.1840    0.2703    0.3132    0.3141    0.2755    0.1979    0.2733    0.3088    0.3030    0.2537    0.1594         0.1956    0.2870    0.3337    0.3363    0.2958    0.2129    0.2856    0.3169    0.3068    0.2544    0.1613         0.1359    0.2267    0.2746    0.2789    0.2384    0.1534    0.2255    0.2556    0.2454    0.1967    0.1115         0.0037    0.0878    0.1306    0.1317    0.0900    0.0042    0.0802    0.1157    0.1131    0.0754    0.0037


title: Indent paragraph to horizontally align with enumerate environment

text: I have an enumerated list with points, intersected with comments to each point. I would like to align my comments vertically with the itemized points in the enumerated list. Below a MWE with its output.               \documentclass{article}     \usepackage{enumitem}     \begin{document}     \begin{enumerate}[align=left, label=\large{\textbf{\arabic*}}]         \item Here is my first point.     \end{enumerate}     \textbf{C:} Here is my comment to the first point.     \begin{enumerate}[resume, align=left, label=\large{\textbf{\arabic*}}]         \item Here is my second point.     \end{enumerate}     \textbf{C:} Here is my comment to the second point.     \end{document}      ![enter image description here](http://i.stack.imgur.com/YmrQh.png) My desired output would be something like this (ignore the curly braces): > **1** { } Here is my first point. > > **C** { } Here is my comment to the first point. > > **2** { } Here is my second point. > > **C** { } Here is my comment to the second point. * * * **Edit:** As David & Werner suggest:               \documentclass{article}     \usepackage{enumitem}     \newcommand{\citem}{\item[\textbf{C:}]}     \begin{document}     \begin{enumerate}[align=left, label=\large{\textbf{\arabic*}}]         \item Here is my first point.         \citem Here is my comment to the first point.         \item Here is my second point.         \citem Here is my comment to the second point.     \end{enumerate}     \end{document}      ![enter image description here](http://i.stack.imgur.com/6oSqV.png)


title: Can I prevent endfloat from changing \leftmark and \rightmark?

text: I am working on a thesis with floats at the end of each chapter. `endfloat` lets me keep the figs/tables near their first callouts while writing so the order is correct, but I don't want to use the poorly-customizable sectioning `endfloat` provides. I circumvented it to some extent, but now my headers, configured with `memoir`, are messed up at the Floats and Tables sections. How can I prevent this from happening? Here's a MWE showing my problem (headers go bad at page 3):               \documentclass[12pt,letterpaper,oneside]{memoir}     %%%%%%%%%%%%  FLOATS AND TABLES  %%%%%%%%%%%%     \usepackage[nolists,nomarkers,noheads,figuresfirst]{endfloat}         \AtBeginTables{\section{Tables}\vfill}         \AtBeginFigures{\section{Figures}\vfill}         \AtBeginDelayedFloats{}         \renewcommand{\efloatseparator}{\vfill\clearpage}         \setfloatlocations{table}{p}         \setfloatlocations{figure}{p}     %\usepackage{booktabs}          %%%%%%%%%%%%  FORMAT HEADERS  %%%%%%%%%%%%     \makepagestyle{endfloatTakeover}     \makeoddfoot{endfloatTakeover}{}{\thepage}{}     \makeoddhead{endfloatTakeover}{\leftmark}{}{\rightmark}     \makeheadrule{endfloatTakeover}{\linewidth}{\normalrulethickness}     \makepsmarks{endfloatTakeover}{%     \nouppercaseheads     \createmark{section}{right}{nonumber}{}{. \ }     \createmark{chapter}{left}{shownumber}{Chapter }{: \ }}     \pagestyle{endfloatTakeover}          %%%%%%%%%%%%  MWE TEXT  %%%%%%%%%%%%     \usepackage{lipsum}          \begin{document}     \chapter{Intro}     \section{First Intro Section}     \lipsum[1] See~\fref{fig1}.          \begin{figure}[h]     \centering     FIGURE 1     \caption{Vivamus vehicula dolor laoreet neque imperdiet consequat} \label{fig1}     \end{figure}          \lipsum[2]          \section{Second Intro Section}     \lipsum[3]      See~\fref{fig2}.          \begin{figure}     \centering     FIGURE 2     \caption{Vivamus vehicula dolor laoreet neque imperdiet consequat} \label{fig2}     \end{figure}          \lipsum[4]     See~\tref{tab:tab1}          \begin{table}[h]       \centering         \begin{tabular}{c}         Lorem ipsum dolor sit amet, consectetur adipiscing elit. \\         Morbi in turpis faucibus, sollicitudin sem eu, condimentum nibh. \\         Quisque pharetra nunc volutpat purus venenatis, ut cursus purus consectetur. \\         Fusce suscipit massa eu libero blandit, a facilisis risus pharetra. \\         \end{tabular}       \caption{ia nostra, per inceptos himenaeos. }         \label{tab:tab1}     \end{table}          \clearpage     \processdelayedfloats          \end{document}


title: Nice-looking p-th roots

text: When I take the `p`th root, the bottom of the `p` comes very close to the `\sqrt` symbol. In the New Century Schoolbook font (which I am using), the `p` actually intersects the `\sqrt` symbol, which looks even more terrible. Is there a clean way to fix this?               \documentclass{article}     \usepackage{fouriernc} % use the New Century Schoolbook font     \begin{document}     When I write $a^{(1/p)}$ as $\sqrt[p]{a}$, the bottom of the $p$     touches the top of the root symbol, which looks ugly.     Even when the root symbol is larger, such as with     $\sqrt[p]{\frac{1}{n}}$, it still looks bad     (since the tail of the p almost hits that line).     \end{document}      ![Ugly-looking <code>\\sqrt\[p\]{a}</code>](http://i.stack.imgur.com/OaZ9e.png)


title: Sqrt with fraction in root argument

text: > **Possible Duplicate:**   >  Nice-looking p-th roots How can I move the root higher for this formula ? The fraction in the root is typeset to low:               \documentclass{minimal}     \begin{document}          $\sqrt[\frac{1}{3}]{\frac{4}{4.2}}$          \end{document}      the result of the document is ![root 1/3 is typeset to low](http://i.stack.imgur.com/rn1x2.png)


title: size and location of cube root symbol

text: > **Possible Duplicate:**   >  Nice-looking p-th roots On math.stackexchange I wanted the cube root of a fraction in display mode, and used `$$\sqrt[3]{\frac ab}$$` to get it. The 3 comes out very small and low in the root sign. I also thought of `$$^3\sqrt{\frac ab}$$` but the 3 comes out too far to the left.


title: List of Figures + Beamer?

text: I want to have a List of Figures in my Beamer presentation. I spent some time searching the web for a solution and only found desperate people telling others that it's not possible, i.e. here or here (german). I also made some experiments on my own, i.e. "abuse" tocloft to do the job. However, even `\usepackage{tocloft}` causes pdflatex to fail with `! LaTeX Error: \l@section undefined.` (and lying to tocloft by defining the command as empty beforehand doesn't to any good either). I can't really see why it should be that difficult to make a List of Figures in beamer, since \tableofcontents works flawlessly. I'm not afraid of doing some coding on my own, but I'm not deep enough into TeX to really understand the magic behind the "List of Figures", "Table of Contents" and alike. Is anyone out there having suggestions or links that might help me figure this out?               \documentclass{beamer}          % uncomment the following line     % to get the error message     % `! LaTeX Error: \l@section undefined.`          %\usepackage{tocloft}           % uncomment the following lines INSTEAD     % to lie to tocloft     % and get the next error message          %\makeatletter     %\newcommand\l@section{}     %\makeatother     %\usepackage{tocloft}          \begin{document}          \begin{frame}{A frame}     \begin{figure}     \mbox{A}     \caption{An 'A'}     \end{figure}     \end{frame}          \begin{frame}{List of Figures}     \listoffigures     \end{frame}          \end{document}      **EDIT: Solution** Starting from Marco Daniels answer to my question, I modified his code to reflect my needs. Here is what I came up with. Please feel free to comment, improve and reuse this.               \RequirePackage{ifthen}          \makeatletter          \AtEndDocument{%       \clearpage       \beamer@tempcount=\c@page\advance\beamer@tempcount by -1%       \if@filesw       \newwrite\tf@lof       \immediate\openout\tf@lof\jobname.lof\relax       \newwrite\tf@lot       \immediate\openout\tf@lot\jobname.lot\relax       \fi     }          \long\def\beamer@makecaption#1#2#3#4{%       \def\insertcaptionname{\csname#1name\endcsname}%       \def\insertcaptionnumber{\csname the#1\endcsname}%       \edef\insertframenumber{\theframenumber}%       \ifthenelse{\equal{#3}{\empty}}{%           \def\insertlistcaption{#2}%       }{%         \def\insertlistcaption{#3}%       }       \def\insertsource{#4}%       \def\insertcaption{#2}%       \ifthenelse{\equal{#1}{figure}}{%           \addtocontents{lof}{\protect\listoffigureformat{\insertcaptionnumber}{\insertlistcaption}{\insertframenumber}{\insertsource}}{}{}%       }{}       \ifthenelse{\equal{#1}{table}}{%           \addtocontents{lot}{\protect\listoftableformat{\insertcaptionnumber}{\insertlistcaption}{\insertframenumber}}{}{}%       }{}       \nobreak\vskip\abovecaptionskip\nobreak       \sbox\@tempboxa{\usebeamertemplate**{caption}}%       \ifdim \wd\@tempboxa >\hsize       \usebeamertemplate**{caption}\par       \else       \global \@minipagefalse       \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%       \fi       \nobreak\vskip\belowcaptionskip\nobreak%     }          \def\listoffigureformat#1#2#3#4{%       \makebox[2ex][r]{#1}%       \hspace{1ex}%       {\usebeamercolor[fg]{bibliography entry author} #2}%       \ifthenelse{\equal{#4}{\empty}}{}{ -- #4}%       \dotfill%       \makebox[2ex][r]{#3}\par%     }     \def\listoffigures{%       \setlength{\leftskip}{3ex}       \setlength{\parindent}{-3ex}       \@starttoc{lof}%     }     \def\listoftableformat#1#2#3{\makebox[2ex][r]{#1}\hspace{1ex}#2\dotfill\makebox[2ex][r]{#3}\par}     \def\listoftables{%       \setlength{\leftskip}{3ex}       \setlength{\parindent}{-3ex}       \@starttoc{lot}%     }          \long\def\@caption#1[#2]#3{       \par\nobreak       \begingroup         \@parboxrestore         \if@minipage           \@setminipage         \fi         \beamer@makecaption{#1}{\ignorespaces #3}{\ignorespaces #3}{\ignorespaces #2}\par\nobreak         \endgroup}          \makeatother


title: List terms(/keywords) together with their definition and a glossary

text: I want to be able to define terms/keywords and give definitions that might span multiple paragraphs. Given definitions of the following form:               \begin{definition}[Blue]       Blue is one of ...     \end{definition}          \begin{definition}[Argument]       An argument is ...     \end{definition}      I want to be able to refer to a definition with a command (e.g. `\usedef{blue}`) and I want to create two separate listings, both ordered lexicographically where the one is a normal glossary index (just the keyword and referenced pages) and the other is an overview of term and definition. The `glossaries` package does something to this extent, however, it lacks support for my last requirement. Also I don't know how it handles multiple paragraphs of definition. There is an optional argument called `description` though. What would be a good starting point to achieve my goal, or maybe there is a package that already provides this functionality? It would look a bit like this. (Omitting the reference in a leading text) And don't mind the fonts please. ![enter image description here](http://i.stack.imgur.com/EYSsW.png)


title: Having a default \tableofcontents with tocstyle package

text: I am using roman numerals for everything. In my list of tables, my XVIII'th table was encroaching on the name of the table, so I did `\usepackage{tocstyle}` which completely fixed this problem. Before I did this, my `\tableofcontents` had nice bolded `\section` names. Now that I've enabled `tocstyle`, this `\tableofcontents` has become dull. All section names in the `\tableofcontents` have the same size and lack of bolding as my `\subsection` and `\subsubsection` names. How do I fix this?


title: Automatically add theorems to index and label them

text: In another question (Remove math from command parameter to get only the letters) this command was elaborated to have an optional argument for sorting purposes within the index               \documentclass{article}     \usepackage{makeidx}     \usepackage{xparse}     \NewDocumentCommand{\defined}{om}{%         {\bfseries #2}%         \IfNoValueTF{#1}             {\index{#2}\label{#2}}             {\index{#1@#2}\label{#1}}         }     \makeindex     \begin{document}     \defined{$G$-invariant}          \defined[G-invariant]{$G$-invariant}     \printindex     \end{document}      I now wonder if theres a way to have the same optional argument for an own theorem style, so something along that line.               \newtheoremstyle{blanksample} % name of the style to be used       {}             % measure of space to leave above the theorem       {}             % measure of space to leave below the theorem       {}             % name of font to use in the body of the theorem       {}             % measure of space to indent       {\bfseries}    % name of head font       {}             % punctuation between head and body       {\newline}     % space after theorem head       {\thmname{#1} \thmnumber{#2.} \thmnote{\normalfont(#3)} \defined{#1!#3}} % head      But like this I again have the problem with dollar signs or other stuff within #3 and therefore again would like to use an optional parameter and could hand this over to `\defined`. Furthermore I actually would like to have the index link to the theorem number and not the page number. Any ideas? * * * So I would like to use it somehow like this Using `\theoremstyle{blanksample}` anf for `\newtheorem{definition}{Definition}` I would like to use it somehow like this               \begin{definition}[G-invariant][$G$-invariant]         some definition     \end{definition}


title: Error: File 'pdfpages.sty' not found

text: I'm trying to compile simple thesis example using TexMaker with MiKTeX 2.9. I need _pdfpages_ package in order to include pdf as the title page. Without the following line the code compiles fine:               \usepackage{pdfpages}      With this line, every time I try to compile I get the following window: ![enter image description here](http://i.stack.imgur.com/dClWp.png) I tried many different repositories, but it always ends up with               Error: File 'pdfpages.sty' not found. ...      So I decided to install it manually, downloaded this package: http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages I've uncompressed the package in the following directory: `C:\Program Files\MiKTeX 2.9\tex\latex\pdfpages` and then I run these commands from that directory:               > latex pdfpages.ins     > latex pdfpages.dtx      After that, more files were created in that directory (including **pdfpages.sty** ). But TexMaker still can't detect those files. Still shows me the "Package Installation window". Minimum example code:               \documentclass[a4paper,12pt,twoside]{article}     \usepackage{theorem}     \usepackage{graphicx}     \usepackage{pdfpages}     \includepdf{title_page.pdf}     \begin{document}     test     \end{document}      I really couldn't find any solution to this problem in Google nor in StackExchange database. How to get it working?


title: Are there any editors or packages with auto-correct for LaTeX commands?

text: When a LaTeX command is written incorrectly, the document does not compile and the workflow is interrupted. In most cases, this is due to a typo, such as writing `\foornote{}` instead of `footnote{}`. Are there any editors that use an auto-correct for situations like this? The algorithm for doing the auto-correct, I guess, would be similar to the auto-correct for spelling as found in MS Word, which changes things like `neccessary` to `necessary` on-the-fly without users even noticing.


title: How to replace fixed indentation of ToC entry names with fixed space between number and name?

text: How to make indents as in the second image? This is what it looks like now: ![enter image description here](http://i.stack.imgur.com/DDlxo.png) This is what it should look like: ![enter image description here](http://i.stack.imgur.com/fK3P6.png) MWE:               \documentclass[a4paper, 14pt, english]{extreport}          \usepackage[T2A]{fontenc}        \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{tocloft}     \usepackage[a4paper, left=25mm, right=10mm, top=20mm, bottom=20mm]{geometry}          \linespread{1.3}      \renewcommand{\rmdefault}{ftm}      \frenchspacing          \renewcommand{\cftchapfont}{\normalsize  }      \renewcommand\cftchappagefont{\normalfont}           \renewcommand{\cftbeforechapskip}{0em}      \renewcommand{\cftparskip}{-1mm}      \renewcommand{\cftdotsep}{1}      \renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}}      \renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}          \cftsetindents{chapter}{0pt}{10pt}      \cftsetindents{section}{0pt}{30pt}     \cftsetindents{subsection}{0pt}{40pt}     \cftsetindents{subsubsection}{0pt}{50pt}                    \begin{document}          \tableofcontents     \thispagestyle{empty}      \addtocontents{toc}{\protect\thispagestyle{empty}}          \chapter{test}     \section{test}      \section{test}     \section{test}     \section{test}     \section{test}     \section{test}      \section{test}     \section{test}     \section{test}     \section{test}     \section{test}      \section{test}     \section{test}     \section{test}     \section{test}          \end{document}


title: Making subscripts temporarily deeper for clarity

text: I am writing a manuscript in which I have tons of expressions looking like               q_{\iota(i),\mu_{\ind_{\mu}(\iota(i))}+1}\cdots q_{\iota(i),\mu_{m(a)}}x_i.      which rendered looks like ![enter image description here](http://i.stack.imgur.com/kDoqZ.png) Sadly, they are mostly unreadable! If I could have subscripts go lower, so that their hierarchy were more evident, I think things would be less bad... Can this be done (locally, ideally)?


title: How are (La)TeX projects financed?

text: Not sure if this is appropriate for TEX.SX, but I'll ask anyway. Though not a question on the _use_ or _feature_ of (La)TeX and friends, this question is relevant inasmuch as it is about the financial aspect of the _development of TeX-related systems_. I'm curious how (La)TeX (and related) projects are financially supported. I can understand how individual packages can be written by TeX enthusiasts (in their spare time, presumably). Thus financial support is not really an issue in those cases. This is like how one would spend a Sunday afternoon writing a Wikipedia article on mathematics or English literature, simply because they are interested in those topics. A previous question addresses the time devotion aspect of LaTeX development. But it seems unlikely, to me at least, that a random group of TeX enthusiats can just pull off a big LaTeX project purely as a hobby (I imagine that LaTeX3 for example would require a tremendous amount of time commitment and large scale coordination). Wikipedia solicits donation once a year. But I haven't seen anything similar in LaTeX (although LaTeX has a much smaller user group than Wikipedia). I hope the talk of money wouldn't offend anyone here.


title: Beamer CambridgeUS - How to add logo above the title

text: Related to my previous question about beamer, now I have another one:   * How to add logo above the title. ![LOGO](http://i.stack.imgur.com/ps4Wn.jpg)


title: Automatically adjusting cell height

text: How to automatically adjust cell height based on content? The height of the cell with the normal distribution in it appears to be pushed down and not centrally aligned. Any thoughts? Similar to Automatic adjustment of cell width ![enter image description here](http://i.stack.imgur.com/64Vji.png)               \documentclass{article}%%%%%\begin{article}     \usepackage{booktabs}     \usepackage{array}%%%%%{tabular}     \begin{document}              \begin{table}[htp]          \centering         \begin{tabular}{{}*5{>{\hspace{0pt}\raggedright\arraybackslash}p{\dimexpr(\textwidth-10\tabcolsep)/6\relax}}@{}}          \toprule          %\multicolumn{6}{c}{Care Type} \\          %\cmidrule(l{2em}r{2em}){1-6}         \addlinespace[2ex]          \textbf{Lead author} & \textbf{Ref.} & \textbf{$\log_{10}$ reduction} & \textbf{In-vivo (i) /-vitro (t)} & \textbf{Organism} \\          \midrule          Girou &\cite{girou2002} & & i & Gram -ve bacteria\\          Weber & \cite{weber2003} & (-0.2-0.2)&t &Bacilus spores\\          Sickbert-Bennet &\cite{sickbert2005} & $N\sim$(1.10,0.8129)& t & \\          Widmer &\cite{widmer2000} & & i & \\            \bottomrule          \end{tabular}         \smallskip          \caption{Literature for $log_{10}$ reductions of CFU for waterless alcohol rub, displayed as a continuous distribution or as a range}          \label{tab:alcohol_rub}         \end{table}     \end{document}


title: Font "Sabon" into TeXworks

text: What has to be done to include a new font such as Sabon into TeXworks? I already have the necessary files, however, ´cause I´m a beginner with LaTex, I can´t manage to bring the files into TeXworks. Somebody able and interested to help me?


title: tokenizer does not work

text: \documentclass[a4paper]{article}          \usepackage{comment}     \usepackage[trim]{tokenizer}     \usepackage{ifthen}     \usepackage{xargs}     \usepackage{xkeyval}     \usepackage{xfor}          \begin{document}     \makeatletter               \def\bb{\compilation} % \combilation has {one,two,three}          \newcommand{\chapterInputa}[4][all          ]{%          % It does not work             \def\SourceA{\bb}         \whiledo{\not\equal{\SourceA}{}}         {             \GetTokens{TokenOneA}{TokenTwoB}{\SourceA}                 BB TOken- \TokenOneA \\             \let\SourceA\TokenTwoB         }          % its work fine            \def\Source{#1}         \whiledo{\not\equal{\Source}{}}         {             \GetTokens{TokenOne}{TokenTwo}{\Source}                 ELE- \TokenOne \\             \let\Source\TokenTwo         }               \chapter{#3\label{#4}}         \input{#2}     }          }     \makeatother     \end{document}      The change in two code is passing parameter as `#1` and variable name. What's wrong with the code.


title: How can I place five tables on a page, in a 3x2 matrix?

text: I'd like to insert multiple code-generated tables into a document so that they appear on a single page. I may need to use smaller font to make them all fit. All the tables are of the same size, and are already in their own `tabular` block with captions and labels. What's the best strategy?


title: Adding variables in tikz

text: I tried looking here for an answer but didn't find anything. I'm trying to do this (taken from objectmentor.com): ![enter image description here](http://i.stack.imgur.com/jxz9r.jpg) So far, I've got this:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{positioning}     \usetikzlibrary{calc}          \begin{document}          \begin{tikzpicture}[node distance=0mm and 0mm]          \def \bigside {15}     \def \smallside {5}     \def \unit {mm}          \tikzset{holder/.style={draw, fill=white, font=\bfseries, minimum size=\bigside \unit, rectangle}}     \tikzset{derecha/.style={draw, fill=white, minimum size=\smallside \unit, rectangle}}          \node[holder] at (0,0) {5};     \node[holder] at ({\bigside*1 \unit},0) {14};     \node[holder] at ({\bigside*2 \unit},0) {29};     \node[holder] at ({\bigside*3 \unit},0) {49};     \node[holder] at ({\bigside*4 \unit},0) {60};     \node[holder] at ({\bigside*5 \unit},0) {61};     \node[holder] at ({\bigside*6 \unit},0) {77};     \node[holder] at ({\bigside*7 \unit},0) {97};     \node[holder] at ({\bigside*8 \unit},0) {117};     \node[holder] at ({\bigside*9 \unit},0) {133};          \end{tikzpicture}          \end{document}      That draws the big rectangles. Now I'm trying to draw the small rectangles (I'll start with those that have numbers) on the top right corner. I was trying to do something like this:               \node[derecha] at ({\smallside + \bigside*0 \unit }, {\smallside \unit }) {4};     \node[derecha] at ({\smallside + \bigside*1 \unit }, {\smallside \unit }) {5};     % etc      If I put the result of `(\smallside + \bigside* i)` it works (i.e. 5 mm, 20mm, 35mm, etc.), but this doesn't. If I use the default units (cm) and don't put the `\unit` it also works:               \node[derecha] at ({\smallside + \bigside*0 }, {\smallside }) {4};     \node[derecha] at ({\smallside + \bigside*1}, {\smallside  }) {5};      This also works, but it's a pain in the ... stomach               \pgfmathsetmacro\posa{\smallside + \bigside*0}     \pgfmathsetmacro\posb{\smallside + \bigside*1}     % etc     \node[derecha] at ({\posa \unit }, {\smallside \unit }) {4};     \node[derecha] at ({\posb \unit }, {\smallside \unit }) {5};     % etc      So, how can I make this work?


title: Using tabular in fancyhdr

text: For my header page layout, I use `fancyhdr`. I use `tabular`s in the headers. The following is my code.               \documentclass[titlepage,a4paper,12pt]{article}          %***************************** preamble region **************************     \parindent=0pt        %leading space for paragraphs     \usepackage{fancyhdr}        %Extensive control of page headers and footers in LaTeX2e          \usepackage[english]{babel}        %use for the below package `datetime'     \usepackage{datetime}        %Change format of `\today' with commands for current time     \renewcommand{\dateseparator}{-}     \newcommand{\headertoday}{\the\year \dateseparator \twodigit\month \dateseparator \twodigit\day}          \usepackage[lmargin=2.500000cm,rmargin=2.500000cm,tmargin=2.500000cm,bmargin=2.500000cm]{geometry}        %Flexible and complete interface to document dimensions     %************************************************************************          \begin{document}     \pagestyle{fancy}     \renewcommand{\arraystretch}{0.600000}        %coefficent to adjust table line spacing     \lhead{\begin{tabular}[b]{ll}\footnotesize{Statical Calculation}&\footnotesize{}\\\footnotesize{Project: xxxxxx}&\footnotesize{}\end{tabular}}     \rhead{\begin{tabular}[b]{rr}\footnotesize{Date:}&\footnotesize{\headertoday}\\\footnotesize{Page:}&\footnotesize{\thepage}\end{tabular}}     \chead{\begin{tabular}[b]{cc}\footnotesize{}&\footnotesize{}\\\footnotesize{}&\footnotesize{}\end{tabular}}     \renewcommand{\headrulewidth}{1.000000pt}     \headsep=6.000000mm        %the distance of main text to the decorative line     hello\\          \end{document}      But the contents of `tabular` doesn't align with the decorative line at both ends. I mean, e.g., the leftmost text should align with the leftmost end of the decorative line. How to fix it? Thanks a lot.


title: Using a different page number footer in the introduction

text: I'm using roman page numbers in my introduction section, but for the remainder of the document I use arabic numbers, and this custom footer:               \cfoot{\normalsize{\thepage~/~\pageref{LastPage}}}      This leads to ugliness like:               i/16      in the introduction. How can I specify a different footer for the introduction?


title: What leading size should I set for 18pt font size?

text: I use `\fontsize{18pt}{20pt}\selectfont` comand because I want 18pt fontsize. Does rule fontsize+2 always apply? Say for 20pt font leading will be 22, 32 for 30 and so on.


title: override system search path

text: I've installed texlive-2012 on my local user account (under linux), the system has the older version (texlive-2007) in which some packages are missing and I don't have root permission to install those packages. To force the system recognize my installation I changed some search paths in `~/.bashrc` as suggested in similar post:               export TEXMF='{/home/avaz/texlive/texmf,/home/avaz/texlive/texmf-dist/tex/latex/base,/home/avaz/texlive/texmf-var,/home/avaz/texlive/texmf-config,/home/avaz/texmf,/etc/texmf,confTEXMFSYSVAR,confTEXMFLOCAL,confTEXMFMAIN,confTEXMFDIST}'     export TEXMFHOME='/home/avaz/texlive/texmf'     export TEXMFLOCAL='/home/avaz/texlive/texmf'      which obviously `/home/avaz/` is my home folder where texlive-2012 is installed, but when I run `~/textlive/bin/x86_64-linux/latex myfile.tex` I get the error: _! LaTeX Error: File `article.cls' not found._ 'article.cls' is located in `~/texlive/texmf-dist/tex/latex/base/`, but I don't why latex doesn't go through this. This is an excerpt I get with `texconfig conf`:               =========================== kpathsea variables ===========================     TEXMFMAIN=/usr/share/texmf     TEXMFDIST=/usr/share/texmf     TEXMFLOCAL=/home/avaz/texlive/texmf     TEXMFSYSVAR=/var/lib/texmf     TEXMFSYSCONFIG=/etc/texmf     TEXMFHOME=/home/avaz/texlive/texmf      Have I done something wrong or anything left which I have to change to work it out?


title: Getting origyear to work in biblatex

text: I have just switched from `natbib` to `biblatex`, because I wanted to add `translator` entries to my bibliography. I am now trying to get `origyear` to work. Before my entry was like this:               @book{schaeffer1977traite,         AUTHOR      = "Schaeffer, Pierre",         TITLE       = {{Trait{\'e} des objets musicaux: essai interdisciplines}},         YEAR        = {1977 (1966)},         ADDRESS     = "Paris",         PUBLISHER   = {{Editions du Seuil}}     }      but this is nasty and produces glitches with the closing parenthesis. So I tried instead                   YEAR        = {1977},         ORIGYEAR    = {1966},      but the original year just doesn't show up. My import looks like this:               \usepackage[natbib=true,style=verbose-ibid]{biblatex}      I tried to simple create a `biblatex.cfg` file according to this article (biblatex says it's version 0.99d (TeX Live 2010). But that creates an error, probably because I don't use the same bibliography style:               LaTeX error: \abx@macro@cite:labelyear+extrayear undefined.      Any help getting this work is appreciated.


title: Exam Lines (not with the exam package)

text: I'm a newbie to LaTeX as of a couple days ago, and was delighted to hear of an `exam` package that would ease my pain. However, I've worked out that the exam paper I am trying to emulate definitely did not use the `exam` package based on things like how the marks are done and where question sub-parts go. So I want to emulate the question lines in it - I tried looking in the `exam.cls` source code but it is very esoteric to me as a beginner. I've been trying to use `\line(1, 0){some number}` but that can easily go past the right margin - which I don't want it to do - i.e. I want a line which I can start at an indented or tabbed position and it will stop at the right margin. See below for an image of how this looks. ![Exam Question](http://i.stack.imgur.com/tow8d.png)


title: Find out actual width of text in nested lists

text: I am trying to solve the following problem: In regular text, I can place two paragraphs of unequal width side by side using minipages, like so:               \documentclass{article}     \begin{document}     Some text here ...     \par\noindent%     \begin{minipage}{.6\textwidth}        Some text here...     \end{minipage}%     \begin{minipage}{.4\textwidth}        Some other text here...     \end{minipage}     Some more text here...     \end{document}      In a first level of a list environment, it is little bit more tricky, but it can be done this way:               \documentclass{article}     \newlength{\mywidth}     \begin{document}     Some text here ...     \begin{itemize}        \item Some text...\addtolength{\mywidth}{-\leftmargin}           \setlength{\mywidth}{\textwidth}           \addtolength{\mywidth}{-\leftmargin}           \addtolength{\mywidth}{-\rightmargin}           \par\noindent%           \begin{minipage}{.6\mywidth}              Some text here...           \end{minipage}%           \begin{minipage}{.4\mywidth}              Some other text here...           \end{minipage}           Some more text here...        \end{itemize}     \end{document}      That will not work inside nested list environments, though, unless one manually keeps track of the width for each level. Is there any way one can figure out the currect text width regardless of the level of list environments?


title: Long table doesnt print out all items

text: I hope someone could help me with this, since I'm new to latex and I have very little latex knowledge which help me to solve this problem. I've been struggling googling the answer for days already. I've made changes in the code so you can run the code. Problem Description: I want to make a list of events as a PDF file. I use longtable to display it. But it doesnt print out correctly all the events. As you can see from the screenshot, that the list isnt complete printed out. If I change the margin or the font size, it'll print out more, but still incomplete. I've checked the log and it doesnt have the error message that I've expected. Here is the Full Code that I use:               \documentclass[a4paper,12pt]{scrartcl}     \special{papersize=210mm,297mm}     \usepackage[ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{lscape}     \usepackage[margin=1in]{geometry}     \usepackage{longtable}     \usepackage{anysize}     \marginsize{2cm}{2cm}{2cm}{2cm}     \newcommand*{\SignatureAndDate}[1]{%     \par \hfill\makebox[2.0in][l]{Berlin, \today}%     \vspace*{15mm}%     \par \hfill\makebox[2.0in]{\hrulefill}%     \par \hfill\makebox[2.0in][c]{Unterschrift}%     }%     %%% --------------------------------------------     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%%%%% Das Dokument     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{document}     \usefont{T1}{phv}{m}{n}     \begin{landscape}     Fachgebiet Finalisierung Jahr 2014     \SignatureAndDate{Unterschrift}     \vspace*{20mm}     {\fontsize{6}{1em}\selectfont     \begin{longtable}{|p{40mm}|p{12mm}|p{20mm}|c|c|p{13mm}|c|c|p{23mm}|p{17mm}|c|c|c|}     \hline     Veranstaltung & LV-Nr & Dozent/in & FG-Leiter & Semester & LV-Typ & SWS & Teilnehmer                 & Studiengangsart & P/WP/W & Lehrauftrag & Titellehre & Status \\ \hline \endhead     \hline     Anlagen und Rohrnetzplanung     &       0330L052        &       Tham    &       Nein            &       WS      &       Uebung  &       2       &       1       &       Dipl    &       P               &       Nein    &       Nein &  Aktiv   \\ \hline     Anlagen und Rohrnetzplanung     &       0330L050        &       Tham    &       Nein    &       WS      &       Vorlesung       &       2       &       1       &       Dipl    &       P/WP    &       Nein    &       Nein    &       Aktiv   \\ \hline     Ausbau Heiz- und Raumlufttechnik        &       0330L005        &       Mueller &       Nein    &       WS      &       Projekt &       2       &       1       &       MSc, Dipl       &       P       &       Nein    &       Nein    &       Aktiv   \\ \hline     Ausbauseminar fuer das Fach Heiz- und Raumlufttechnik   &       0330L019        &       Mueller &       Nein    &       SS      &       Seminar &       4       &       1       &               MSc, Dipl       &       P/WP    &       Nein    &       Nein    &       Aktiv   \\ \hline     Brandschutz     &       0330L040        &       Mueller &       Nein    &       SS      &       Vorlesung       &       2       &       1       &       MSc, Dipl       &       WP      &       Nein    &       Nein    &       Aktiv   \\ \hline     Brandschutz     &       0330L041        &       Mueller &       Nein    &       SS      &       uebung  &       2       &       2       &       MSc, Dipl       &       P       &       Nein    &       Nein    &       Aktiv   \\ \hline     Computergestuetztes Entwerfen und Berechnen von Gebaeuden       &       0330L080        &       MuellerWM       &       Nein    &       WS      &       Integrierte Veranstaltung       &       3       &       3       &       BSc, Dipl       &       WP      &       Nein    &                       Nein    &       Aktiv   \\ \hline     Heiztechnik IEnergiesysteme f. Gebaeude &       0330L001        &       Mueller &       Nein    &       SS      &       Vorlesung       &       2       &       4       &       BSc, Dipl       &       P/WP/W  &       Nein    &       Nein    &       Aktiv   \\ \hline     Heiztechnik IIEnergiesysteme f. Gebaeude        &       0330L002        &       Kruehne &       Nein    &       WS      &       Vorlesung       &       2       &       1       &       MSc, Dipl       &       P       &       Nein    &       Nein    &       Aktiv   \\         \hline     Hochbau- und Gebaeudekomponenten        &       0330L031        &       Seidel  &       Nein    &       WS      &       uebung  &       2       &       2       &       Dipl    &       WP      &       Nein    &       Nein    &       Aktiv   \\ \hline     Hochbau- und Gebaeudekomponenten        &       0330L070        &       Seidel  &       Nein    &       WS      &       Vorlesung       &       2       &       2       &       Dipl    &       P/WP    &       Nein    &       Nein    &       Aktiv   \\ \hline     Hochbau- und Gebaeudekomponenten        &       0330L031        &       Seidel  &       Nein    &       SS      &       uebung  &       2       &       1       &       Dipl    &       W       &       Nein    &       Nein    &       Aktiv   \\ \hline     Hochbau- und Gebaeudekomponenten        &       0330L070        &       Seidel  &       Nein    &       SS      &       Vorlesung       &       2       &       1       &       Dipl    &       P/WP    &       Nein    &       Nein    &       Aktiv   \\ \hline     Modul 6.3.1 Techn. Gebaeudeausruestung II       &       6392200L04      &       MuellerWM       &       Nein    &       SS      &       Projekt &       3       &       1       &       BSc     &       P/WP    &       Nein    &       Nein    &       Aktiv   \\ \hline     Modul 6.3.1Techn. Gebaeudeausruestung I         &       ???     &       MuellerWM       &       Nein    &       WS      &       Vorlesung       &       2       &       1       &       BSc     &       P/WP    &       Nein    &       Nein    &       Aktiv   \\ \hline     Modul 6.3.1Techn. Gebaeudeausruestung I         &       06382200L04     &       MuellerWM       &       Nein    &       WS      &       Vorlesung       &       2       &       1       &       BSc     &       P       &       Nein    &       Nein    &       Aktiv   \\         \hline     Projekt Gebaeudetechnik Spezialisierung &       0330L011        &       Mueller &       Nein    &       WS      &       Projekt &       3       &       1       &       MSc, Dipl       &       W       &       Nein    &       Nein    &       Aktiv   \\ \hline     Projekt Gebaeudetechnik Spezialisierung &       0330L011        &       Mueller &       Nein    &       SS      &       Projekt &       3       &       1       &       MSc, Dipl       &       P       &       Nein    &       Nein    &       Aktiv   \\ \hline     Raumlufttechnik IEnergiesysteme f. Gebaeude     &       0330L003        &       Mueller &       Nein    &       SS      &       Vorlesung       &       2       &       1       &       BSc, Dipl       &       WP      &       Nein    &       Nein    &       Aktiv   \\         \hline     Raumlufttechnik IIEnergiesysteme f. Gebaeude    &       0330L004        &       Kruehne &       Nein    &       WS      &       Vorlesung       &       2       &       1       &       MSc, Dipl       &       P/WP    &       Nein    &       Nein    &       Aktiv   \\         \hline     Rechenuebung zu Heiz- und Raumlufttechnik IEnergiesysteme f. Gebaeude   &       0330L008        &       MuellerWM       &       Nein    &       SS      &       uebung  &       2       &       1       &       BSc, Dipl       &       W       &       Nein    &       Nein            &       Aktiv   \\ \hline     Rechenuebung zu Heiz- und Raumlufttechnik IIEnergiesysteme f. Gebaeude  &       0330L007        &       MuellerWM       &       Nein    &       WS      &       uebung  &       2       &       1       &       MSc, Dipl       &       P/WP    &       Nein    &       Nein    &       Aktiv   \\ \hline     Technische Grundlagen der Architektur  Gebaeudekunde Master- Modul 4    &       06382200L01     &       Mueller &       Nein    &       WS      &       Vorlesung       &       2       &       1       &       MSc     &       P/WP    &       Nein    &       Nein    &       Aktiv   \\ \hline          \end{longtable}     }     \end{landscape}     \end{document}      Please help me with this problem, or pls point what kind of mistakes that I've made. Screenshot: (pages are manually rotated for convenience) ![enter image description here](http://i.stack.imgur.com/jNTcc.jpg)


title: Chemfig package compatibility

text: Looking for help on the following problem: I am trying to use `chemfig` package in my document, however after initial insertion had the following error:               !No room for a new \dimen.      I found No room for a new \dimen and added:               \usepackage{etex}     \reserveinserts{28}      but now I have another error:               !You can't use a prefix  with \begingroup      the answer to which I cannot seem to find online. Any help on this matter is greatly appreciated. Here is the minimum working example:               \documentclass[12pt,doublespacing,letterpaper]{report}     \usepackage{etex}     \reserveinserts{28}     \usepackage{chemfig}          \usepackage{cite}     \usepackage{morehelp}     \usepackage{setspace}     \usepackage{easytable}     \usepackage{longtable}     \usepackage{amssymb}     \usepackage{amstext}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{dcolumn}          \begin{document}          \chapter{}          \chemfig {*6(-=-(- M{(}OH{)}_2)=-=)}          \end{document}


title: Change format of year and volume in apalike2 bibliography style

text: I'm using the `apalike2` bibliography style (with some minor customizations that are not related to my questions though. When I reference an article the format currently looks like this:               Smith, James E.; Nair, Ravi (2005). The Architecture of Virtual Machines. Journal of     Computer, 38(5), pp. 32-38, 2005.      1.) How can I prepend the volume with a descriptor, e.g., "Volume 38(5)"? The relevant function I have identified in the .bst file is **format.vol.num.pages** but I didn't figure out how to correctly adapt it.               FUNCTION {format.vol.num.pages}     { volume field.or.null       number empty$         'skip$         { "(" number * ")" * *           volume empty$         { "there's a number but no volume in " cite$ * warning$ }         'skip$           if$         }       if$       pages empty$         'skip$         { duplicate$ empty$         { pop$ format.pages }         { ", pp.~" * pages n.dashify * }    % changed from ":" for vol,pgs -- BJR 10/5/89           if$         }       if$     }      2.) When I have works of the same author in the same year, an entry may look like this:               Microsoft Corporation (2013a). BitLocker Overview. http://technet.microsoft.com/     en-us/library/hh831713.aspx, 2013a.      How can I change the year in the last column so that only the year is displayed, i.e., without the "a"? There seem to be functions **output.year.check** and **format.year.check** but again I am stuck with adapting it. Any help is much appreciated. Thank you very much in advance


title: Longtable captions do not wrap inside threeparttable environment

text: I'm using the `threeparttable` package to automatically wrap my captions to table width. However, I occasionally need to use `longtable` to split a table across multiple pages. When I do so, the caption no longer wraps to the width of the table, as you see in the two tables below. I tried including the `caption` package and setting the width with `\captionsetup{width=4cm}` to no avail but I'd rather have an automatic solution anyway as I have a number of long tables of varying width. Is there a fix or suitable alternative to threeparttable? (I do sometimes need the `\tnote` feature in threeparttable but I can probably work around that if necessary.)               \documentclass{article}     \usepackage{threeparttable}     \usepackage{longtable}     \usepackage{booktabs}          \begin{document}     \begin{threeparttable}     \begin{tabular}{ll}     \caption{Caption for tabular does wrap inside threeparttable environment.}\\     \toprule     column1 & column2 \\     \midrule     info1 & info2\\     \bottomrule     \end{tabular}     \end{threeparttable}          \begin{threeparttable}     \begin{longtable}{ll}     \caption{Caption for longtable does not wrap inside threeparttable environment.}\\     \toprule     column1 & column2 \\     \midrule     info1 & info2\\     \bottomrule     \end{longtable}     \end{threeparttable}     \end{document}      ![enter image description here](http://i.stack.imgur.com/7e16J.png)


title: References numbers

text: I'm writing a document with the class `amsbook`. I have several chapters, and inside the sections only (no subsections). I've used               \swapnumbers     \theoremstyle{theorem}     \newtheorem{corollary}{Corollary}[section]     \newtheorem{teo}[corollary]{Théorème}     \newtheorem{lem}[corollary]{Lemme}      and so on. Now, in chapter 1, section 2 I have "2.2 Theorem : ..." Also, in chapter 2, section 2 I have "2.2. Lemma : ..." Each of those has its label, and when I quote one of those in some other chapter i only get "see 2.2", so the reader would not know whether I am talking about I.2.2 or II.2.2. Any suggestions?


title: MathJax: How to change font in equation mode?

text: MathML still effectively uses `Computer Modern` whenever you want to render an equation. On a website, if I use MathJax `$\sum_{i=0}^n {n \choose i} D(i)$` gets converted into:               <math xmlns="http://www.w3.org/1998/Math/MathML" display="block">       <munderover>         <mo>∑<!-- ∑ --></mo>         <mrow class="MJX-TeXAtom-ORD">           <mi>i</mi>           <mo>=</mo>           <mn>0</mn>         </mrow>         <mi>n</mi>       </munderover>       <mrow class="MJX-TeXAtom-ORD">         <mrow>           <mo>(</mo>           <mfrac linethickness="0">             <mi>n</mi>             <mi>i</mi>           </mfrac>           <mo>)</mo>         </mrow>       </mrow>       <mi>D</mi>       <mo stretchy="false">(</mo>       <mi>i</mi>       <mo stretchy="false">)</mo>     </math>      Are there ways to specify which font to render tokens like `<mi>` or `<mo>`. Let's say I'd like to use Kite One for the variables in my font, so as not to clash with the rest of my web site. ![](http://content.altfonts.com:81/img/K/I/Kite-Onea.png) ![](https://dl.dropboxusercontent.com/u/17949100/math/blogEq.png) Actually, the fonts look really nice. But how could I change MathML if I needed to? * * * **EDIT** More generally, I seem to be asking if Cascading Style Sheets exist for MathML   * Default CSS Style Sheet for MathML   * CSS-compartible attributes I hope this is a question for **tex.stackexchange** it may be a question for StackOverflow at this point


title: Fit to landscape longtable generated with xtable and sweave

text: I read many TEX questions/answers on fitting a table to your page width, but cannot figure out how to do apply it in my context (using xtable/sweave). Everything that I tried (using adjustbox, tabu) have not worked yet. I have a pretty bad overfull \hbox (262.58336pt too wide) in alignment at lines 18--41. Here's my code and Rdata:               \documentclass{article}     \usepackage[hmargin=2.5cm,vmargin=3.5cm]{geometry}     \usepackage{longtable}     \usepackage{tabu}     \usepackage{lscape}     \usepackage{float}     \usepackage{adjustbox}     \begin{document}     \SweaveOpts{concordance=TRUE}          <<echo=F>>=     load("Table_wratio_scaled_elasmo_nospatialtemporal.Rdata")     require(xtable)     finalx <- xtable(final2,label="bigtable",caption="List of ...")     @               \begin{landscape}     <<Final table, echo=F,results=tex>>=     print(finalx,tabular.environment="longtable", caption.placement="top",             size="\\small", table.placement="", floating=FALSE)     @     \end{landscape}     \end{document}      Here's how the xtable output looks like:               % latex table generated in R 3.0.2 by xtable 1.7-1 package     % Thu Oct 17 08:53:16 2013     {\small     \begin{longtable}{rlrrrrrrrrrrr}     \caption{List of all fishery and mean weight (mt) of elasmobranch category captured in observed Canadian fisheries} \\        \hline      & fishery & Obs\_tspp & Obs\_Selachii & Obs\_Batoid & wratio\_Selachii & wratio\_Batoid & Obs\_Sets & log\_tspp & scaled\_Selachii & scaled\_Batoid & Obs\_proxie & scaled\_Elasmo \\        \hline     1 & Total & 118025.04 & 390.78 & 493.10 &  &  & 37270.00 & 670446.67 & 3425.09 & 3273.37 &  & 6698.46 \\        2 & SWORDFISH-Line & 84.85 & 81.00 & 0.07 & 0.96 & 0.97 & 62.00 & 919.91 & 892.72 & 0.62 & 9.22 & 893.34 \\        3 & HALIBUT(ATL)-Line & 261.41 & 17.80 & 66.86 & 0.07 & 0.07 & 953.00 & 1793.35 & 126.37 & 498.40 & 14.58 & 624.77 \\        4 & COD(ATL)-Line & 398.41 & 8.51 & 24.58 & 0.02 & 0.01 & 616.00 & 6360.91 & 130.13 & 394.79 & 6.26 & 524.92 \\           ....          58 & CUSK-Line & 2.11 & 0.04 & 0.17 & 0.02 & 0.02 & 16.00 &  &  &  &  &  \\         \hline     \hline     \label{bigtable}     \end{longtable}


title: Is there is a package so you can add text with visual effects like "WordArt" from "Word"

text: I am elaborating a business card style for LaTeX but I found out that even if I have the style and margin for the cards I can not make it look "pretty" like other text editors without overusing text-images insertions, and this become tedious over time and more if you need to overlap an image to another one, because the background of the image needs to be transparent and it needs to be edited for that. So like the title says, is there a package so you can add effects to sentences (like 3D, shadows, background-fade, fade, etc.)? Or does someone know some effects to make text "pretty"?


title: Is there a command to get the name of the current day of the week?

text: I'm currently using `\date{\today}` to put the current date at the top of my document. However, I would like the date to read "Friday, May 13, 2011" instead of just "May 13, 2011". Is there a command to get the name of the current day of the week or something else I could use to do that? **Edit** Looks like the real problem I was having was that MikTeX was set to "ask me first" before downloading missing packages. Apparently that setting doesn't work correctly in the version I have, so it was failing to download the datetime package. I had to set it to download without asking to get it to work. This solution also works, assuming the datetime package is actually installed:               \documentclass{minimal}     \usepackage{datetime}     \begin{document}     Today is \dayofweekname{\day}{\month}{\year}.     May 11, 2011 was \dayofweekname{11}{5}{2011}.         \end{document}


title: minipage goes beyond right margin

text: \begin{minipage}[c][3cm]{0.075\textwidth}     \includegraphics[scale=1.5]{Capture}     \end{minipage}%       \begin{minipage}[c][3cm]{0.85\textwidth}        \centering{\bfseries{\scriptsize blah blah blah blah} \vfill     {\large blah blah blah blah}}\vfill     (\small blah blah blah blah blah blah)\\     blah blah blah       \end{minipage}%       \begin{minipage}[c][3cm]{0.075\textwidth}         \includegraphics[scale=0.7]{Capture1}       \end{minipage}


title: Refsection and \includeonly warning

text: I'm using `biblatex` with a `biber` backend to create a cumulative bibliography, subdivided by chapter. My (simplified) main file ( **main.tex** ) is:               \documentclass{book}          \usepackage[refsection=chapter, backend=biber]{biblatex}     \defbibheading{bibbook}[\bibname]{\chapter{#1}}     \defbibheading{subbib}[\refname\space\chaptername\space%       \ref*{refsection:\therefsection}]{%       \setcounter{secnumdepth}{0}%       \section{#1}}     \addbibresource{biblatex-examples.bib}          \usepackage{hyperref}          \includeonly{bar}          \begin{document}          \mainmatter       \include{foo}       \include{bar}          \backmatter       \printbibheading[heading=bibbook]       \bibbysection[heading=subbib]          \end{document}      **foo.tex** is:               \chapter{Foo}     \label{cha:foo}     \nocite{cms}      and **bar.tex** is:               \chapter{Bar}     \ref{cha:foo}     \nocite{glashow}      According to this answer the benefit of using `\include` is that > "There will be a filename.aux file which contains all counter values, like > page and chapter numbers etc., at the begin of the filename. This way the > file can be compiled alone but still has the correct page and chapter etc. > numbers. Such part aux files are read by the main aux file". I expect the `refsection` counter to behave the same way. However when using `\includeonly{some chapter}` I get the following warning:               LaTeX Warning: Label `refsection:01' multiply defined.     LaTeX Warning: There were multiply-defined labels.      If I remove the `includeonly` command then the warning disappears but is there a way to avoid that warning when using the `includeonly` command? Apparently the only way to eliminate the warning is by deleting the aux files of the chapters (not the main file) after each compilation. However in that way counter values are lost. I know this is just a warning, not an error, and will not be an issue in the final (full) document. However I would like to understand why the warning appears and if possible to eliminate it. **EDIT:** Before the bounty ends I want to make clear that I can tell my text editor (vim) not to show the warning. As I said before, what I really want to know why the warning appears when one of the advantages of using include is that it stores counter values.


title: How to include tabularx/y in a new environment?

text: I am looking for a way to define a customizable environment for tables in my latex documents. This means:   * caption and label   * width of table   * customized column format (tabular preamble) While this seems to be easy for figures, I am desparately looking for a solution for tables. Here is my minimal code example:               \documentclass[a4paper,fontsize=14pt,DIV=calc]{scrbook}     \usepackage{tabularx,tabulary}          \newenvironment{tabfig}[4]     {\begin{table}      \captionabove{#2}\label{tab:#1}      \begin{tabularx}{#3}{#4}}     {\end{tabularx}\end{table}}          \begin{document}       \begin{tabfig}{MyLabel}{MyCaption}{0.8\textwidth}{l >{\centering}X >{\centering}X}         A & B & C \tabularnewline         x & y & z \tabularnewline       \end{tabfig}     \end{document}      I have done thorough research for several days by now and also tried `\bgroup`, `\begingroup`, `\begintabularx`, the `cprotect` package and various other things. Though, I could not come up with something useful in this general case. Folks, I cannot believe I am the first to write a customizable table environment. Is there anybody to light the light?


title: Fill area of curve above a line using pgfplots

text: This question is related to Fill between two curves in pgfplots. which started me of. However, I need to have just the area above the reference line filled.               \begin{tikzpicture}          \pgfplotstableread{data.dat}\data     \pgfplotstablesort[sort cmp={float >}]\coordinates{     0 0.9     33 0.9}          \pgfplotstablevertcat{\filledcurve}{\coordinates}     \pgfplotstablevertcat{\filledcurve}{\data}     \pgfplotstabletypeset{\filledcurve}          \begin{axis}[xlabel=Time of day, ylabel=Volume,xtick=\empty,ytick=\empty, axis x line=bottom, axis y line=left,enlargelimits=true]     \addplot[fill=gray!40,draw=none] table {\filledcurve};      \addplot[blue,mark=*,line width=2pt] table {\data};     \addplot[orange,mark=*,line width=2pt] table {\coordinates};     \end{axis}     \end{tikzpicture}      The datafile looks like:               0 0.2     1 0.217     2 0.255     3 0.288     6 0.58     7 0.9     8 1.02      In the code above I would like that just the area of `\data` above `\coordinates` is filled grey. Does anyone got a hint?


title: placing invisible links at certain coordinates?

text: Does anybody know if this is possible using TikZ? I'm trying to create links over a picture that i have layed on the background of a frame or at least placing them on some nodes in a TikZ code.


title: How should I start with this image?

text: I have an old image with ppt style and I would like to customise it a bit. Main problem is I'm a beginner in Tikz/PGF and i really don't know where to start and which environments I should use. If somebody can give me a hand to start in a good way.![enter image description here](http://i.stack.imgur.com/WLU43.png)


title: Skew an Arrow in a Tikz Diagram

text: I am trying to draw an arrow in a Tikz diagram but I would like it to be skewed as shown below. ![enter image description here](http://i.stack.imgur.com/ehRMP.png) I searched Google but couldn't find any info about how to skew objects in Tikz. Is such a thing possible? (For reference the image above was made in inkscape.)


title: Delimit a single auxiliary file into chunks, and include these at separate places?

text: I have a LaTeX file for inclusion, automatically generated by a code- documentation tool, so the fact it’s a single file is non-negotiable. However, I want to include it not all at once, but some parts in one place, some in another — so I’d like to put some sort of delimiting information into the auxiliary file, perhaps giving labels to specific chunks, and then have a syntax for including the individual chunks as though there. I’m imagining something the following: an auxiliary file `quotations.tex` looking something like:               \begin{chunk}{shakespeare}       \begin{quote}``To be or not to be?''\end{quote}     \end{chunk}          There might also be other content between the chunks, like this.          \begin{chunk}{pythagoras}       \[ x^2 + y^2 = z^2 \]     \end{chunk}      and then in the main file,               [preamble etc.]          Shakespeare wrote:     \includechunk{quotations.tex}{shakespeare}          Pythagoras proved:     \includechunk{quotations.tex}{pythagoras}      (In my actual document, the chunks are much longer than this — typically a page or two.) Is there a good way of doing something like this? The include file is generated by coqdoc, if that’s relevant.


title: Colouring cells of tables without xcolor

text: Are there any decent alternatives to xcolor if I want to colour cells in a table? I want to highlight certain cells depending on my data, but not entire rows or columns. I'm using Knitr and am having consistent problems with xcolor when I use the chunk option dev=tikz so would rather just avoid xcolor altogether. Any suggestions appreciated.


title: Defining a TikZ style to scale the content of a node

text: I am trying to define a `scale content=<factor>` style to be applied to node objects in TikZ pictures. It's purpose is to scale the content of the node without changing the node's outer dimensions. I got relatively far with the following definition:               % Key to scale the content of a node by a factor #1     \tikzset{scale content/.style={       execute at begin node={         \numdef{\scale@content@nest}{\scale@content@nest+1} % increase nesting counter         \ifnumequal{\scale@content@nest}{1}{                % do not nest            \pgfmathsetmacro{\scale@content}{#1}           \begin{lrbox}{\@tempboxa}           \ifx\tikz@text@width\pgfutil@empty\else             % if 'text width' has been specified it must been scaled reciprocally             % we achieve this by typesetting in a accordingly dimensioned minipage             \pgfmathsetlength{\@tempdima}{\tikz@text@width/#1}             \begin{minipage}{\@tempdima}           \fi         }{}       },        execute at end node={         \ifnumequal{\scale@content@nest}{1}{           \ifx\tikz@text@width\pgfutil@empty\else             \end{minipage}           \fi           \end{lrbox}           \scalebox{\scale@content}{\usebox\@tempboxa}         }{}         \numdef{\scale@content@nest}{\scale@content@nest-1} % decrease nesting counter       }     }}      This works well, unless I specify `text width` depending on `\textwidth` as shown in the third example below (complete MWE):               \documentclass{article}     \usepackage{tikz,etoolbox}     \makeatletter          % Key to scale the content of a node by a factor #1     \tikzset{scale content/.style={       execute at begin node={         \numdef{\scale@content@nest}{\scale@content@nest+1} % increase nesting counter         \ifnumequal{\scale@content@nest}{1}{                % do not nest            \pgfmathsetmacro{\scale@content}{#1}           \begin{lrbox}{\@tempboxa}           \ifx\tikz@text@width\pgfutil@empty\else             % if 'text width' has been specified, scale it accordingly by using a minipage             \pgfmathsetlength{\@tempdima}{\tikz@text@width/#1}             \begin{minipage}{\@tempdima}           \fi         }{}       },        execute at end node={         \ifnumequal{\scale@content@nest}{1}{           \ifx\tikz@text@width\pgfutil@empty\else             \end{minipage}           \fi           \end{lrbox}           \scalebox{\scale@content}{\usebox\@tempboxa}         }{}         \numdef{\scale@content@nest}{\scale@content@nest-1} % decrease nesting counter       }     }}     \makeatother          \begin{document}       \tikzset{every node/.style={draw, fill=yellow!40}}            \tikz\node[text width=3cm]{Not scaled, text width is 3cm};       \par       \tikz\node[scale content=0.7, text width=3cm]{scaled by 0.7, text width is 3cm, everything is fine};       \par       \tikz\node[scale content=0.7, text width=0.5\textwidth, text=red]{scaled by 0.7, text width is 0.5\textbackslash textwidth, so why aren't we using it?};       \par       \pgfmathsetlengthmacro{\mywidth}{0.5\textwidth}       \tikz\node[scale content=0.7, text width=\mywidth]{scaled by 0.7, text width is 0.5\textbackslash textwidth, manually expanded before, so this is how it should look like};     \end{document}      ![screen shot](http://i.stack.imgur.com/mxQnM.png) Apparently, TikZ does not expand `text width` directly, which would solve the problem:               % original definition from tikz.code.tex:779     \tikzoption{text width}{\def\tikz@text@width{#1}}          % Alternative definition that would work     \tikzoption{text width}{\pgfmathsetlengthmacro{\tikz@text@width}{#1}}      However, once I am inside `execute at begin node` it seems already to be to late, apparently `\textwidth` has already be transformed somehow. So how can I get the expanded value of a node's `text width`? Or should I take a completely different route?


title: Automatically make footnote-carrying pages vertically stretchable

text: My thesis use a page size that is exactly 34 line of text tall. (10pt text + 33 * 18pt `\baselineskip` = 9in plus 2pt, which looks like 1in margins on an 8.5x11" page). Some pages contain pretty much solid text, with some footnotes, which makes them have zero vertical stretchability. The footnotes, though, don't work out to a height that's a multiple of `\baselineskip`. As a result, LaTeX complains about lots of underfull `\vbox`es. Is there a way to make the vertical gap between the last line of text on a page, and the top of the footnotes area, stretchable? I don't want to make my pages use `\raggedbottom` directly, because then the footnotes slide up to the bottom of the text, leaving a (surprise!) ragged bottom to the page. I want the footnotes to be flush-bottom, and I'd like there to be roughly 1 `\baselineskip` of stretchable space between the text and the footnotes, so that TeX stops complaining :) My current attempts, in case this helps: In the thesis class file, it defines `\footskip` as               \footskip\z@      So I tried playing games like               \addtolength{\footskip}{0pt plus 18pt}     \typeout{\the\footskip}      But that outputs `0pt` with no `plus 18pt`... Is `\footskip` not stretchable? Or is this the wrong page dimension to be tweaking? Or is there simply a better way to be doing what I want to do?


title: Highlight environment by setting a gray background color

text: The title explains everything. I have a theorem with `ntheorem` and want to highlight it with a gray background color. What would be the easiest way to achieve this?


title: Typeset \chapter also in two columns when writing in twocolumn mode

text: I use               \documentclass[twocolumn]{scrreprt}      which produces a nice layout but every chapter is set in one column mode, which leads to a new page for every chapter. **How can I tell latex to set chapters also in twocolumn mode.** Minimal example:               \documentclass[twocolumn]{scrreprt}     \begin{document}     \chapter{Long one column chapter text which spans whole page}     \section{Section 1 in two column mode which breaks at some point}     \chapter{Long one column chapter text which spans whole page}     \section{Section 2 in two column mode which breaks at some point}     \end{document}


title: How to key this equation with three braces on right side,

text: Can anyone help me to key this equation, I've been struggling here for long hours: ![enter image description here](http://i.stack.imgur.com/OYlvZ.png)


title: Uppercase column in tabular

text: I need one column of my table to be uppercased. My code which does not work as I want:               \documentclass{article}          \usepackage{array}          \begin{document}          \begin{tabular}{c>{\MakeUppercase}c}         a & b     \end{tabular}          \end{document}      What's the problem?


title: Balance columns in all document

text: In IEEE documents all the columns are balanced. Is it posible to achieve this in an `article` class?.


title: includegraphics with TikZ

text: I am trying to create an environment with some picture in the left margin. Here is the code               \documentclass[twoside]{article}     \usepackage[paperwidth=170mm, paperheight=240mm, left=142pt, top=40pt,textwidth=280pt, marginparsep=6pt, marginparwidth=100pt, textheight=560pt, footskip=40pt,bindingoffset=30pt,asymmetric,reversemarginpar]{geometry}          \usepackage{lipsum}     \usepackage{sidenotes}     \usepackage{tikz}          \newcounter{sides}          \newenvironment{sideletter}[2]%     {\newcommand{\foot}{\includegraphics[width=#2]{#1}}%     \refstepcounter{sides}%     \par\makebox(0,0)[r]{\large\bfseries\sffamily\colorbox{red}{Ejercicio~\thesides}%     \hspace{6pt}%     }\ignorespaces}%     {\begin{marginfigure}     \hfill\tikz{\node at (0,0){\foot};}     \end{marginfigure}\bigskip}          \newenvironment{sideletter*}%     {\refstepcounter{sides}%     \par\makebox(0,0)[r]{\large\bfseries\sffamily\colorbox{red}{Ejercicio~\thesides}%     \hspace{6pt}%     }\ignorespaces}%     {\begin{marginfigure}     \hfill\tikz{\node at (0,0) {text};}     \end{marginfigure}\bigskip}          \setlength\parindent{0pt}          \begin{document}          \begin{sideletter}{imagen}{20pt}     \lipsum[4]     \end{sideletter}          \begin{sideletter}{imagen}{35pt}     \lipsum[6]     \end{sideletter}          \begin{sideletter*}     \lipsum[7]     \end{sideletter*}          \end{document}      which needs a graphic file. This is a result: ![result](http://matematicas.uclm.es/earanda/result.jpg) This is almost what I want. A paragraph on the right, with some text in the margin as a title, and at the bottom of the paragraph, some picture on the left margin. My problem is that the base of the picture is not align with the baseline because, I think, `\includegraphics` inside a `\tikz` command considers the origin at the center of the picture. I want the picture to be aligned with the baseline of the paragraph as in the third example with the word 'text'.


title: TOC in double language

text: For my thesis, I have to write the table of contents in two different languages.. (don't ask me why...). Is there a way to do it?


title: Recover TeX source from automatically generated LaTeX files

text: Maybe the question can not be exactly understood from the title. So, to automate things a bit, instead of rewriting everything when adding different pictures and tables, code was made to add everything with a help of FOR cycles:               \usepackage{pgffor}          \def\tableinput#1#2#3#4{%        \foreach \indexc in {#1, ..., #2} {%           \subsection{C\indexc -look explanations}           \foreach \indexd in {#3, ..., #4} {%              \subsubsection{C\indexc D\indexd -look explanations}              \rotatebox{90}{              \input{table-July-c\indexc d\indexd.tex}              }           \includegraphics[scale=0.6]{plot-July-c\indexc d\indexd.eps}          }        }     }      Afterwards I get everything included and everything works smooth. What I want is to be able to get the generated tex file (instead of just the PDF/DVI result). I could write C/C#/whatewer program that generates me the text, but since I already have the working stuff, I was wondering is there any possibility to grab the generated text? I would like to be able to have something like:               \subsection{C0 -look explanations}     \subsubsection{C0 D0 -look explanations}     \rotatebox{90}{          \input{table-July-c0d0.tex}          }       \includegraphics[scale=0.6]{plot-July-c0d0.eps}     \subsubsection{C0 D1 -look explanations}     \rotatebox{90}{          \input{table-July-c0d1.tex}          }       \includegraphics[scale=0.6]{plot-July-c0d1.eps}     \subsection{C1 -look explanations}     \subsubsection{C1 D0 -look explanations}     \rotatebox{90}{          \input{table-July-c1d0.tex}          }       \includegraphics[scale=0.6]{plot-July-c1d0.eps}     \subsubsection{C1 D1 -look explanations}     \rotatebox{90}{          \input{table-July-c1d1.tex}          }       \includegraphics[scale=0.6]{plot-July-c1d1.eps}      Is that possible and if yes, how?