title: Using colors defined with spotcolor.sty in TikZ

text: I would like to specify pantone colors. spotcolor.sty seems to to the trick when compiled with pdfLaTeX:               \documentclass{article}     \usepackage{color}     % \usepackage{xcolor} % Does not work     \usepackage[pantone]{spotcolor}          \SetPageColorSpace{PANTONE}%     \definecolor{mycolor}{spotcolor}{PANTONE273PC,1.0}%          \begin{document}          {\color{mycolor}\rule{4cm}{3cm}}          \textcolor{mycolor}{Colored text}          \end{document}      but `spotcolor`it is incompatible with `xcolor` which is loaded by `TikZ`. Is it somehow possible to get `xcolor` and `TikZ` to work together with `spotcolor` so I can do something like:               \documentclass{article}     \usepackage{tikz}     \colorlet{mycolor}{blue}          % Does not work     % \usepackage[pantone]{spotcolor}     % \SetPageColorSpace{PANTONE}%     % \definecolor{mycolor}{spotcolor}{PANTONE273PC,1.0}%          \begin{document}          \begin{tikzpicture}         \node[fill=mycolor,minimum width=4cm,minimum height=3cm] (rule) {};         \node[mycolor,anchor=north west] at (rule.south west) {Colored text};     \end{tikzpicture}          \end{document}      Edit: I can load `xcolor` after defining my pantone colors but `TikZ` still does not like it:               \documentclass{article}     \usepackage{ltxcmds}     \usepackage{color}     \usepackage[pantone]{spotcolor}     \SetPageColorSpace{PANTONE}%     \definecolor{mycolor}{spotcolor}{PANTONE273PC,1.0}%     \usepackage{xcolor}     % \usepackage{tikz}          \begin{document}          {\color{mycolor}\rule{4cm}{3cm}}          \textcolor{mycolor}{Colored text}          \colorlet{mysecondcolor}{red}          {\color{mysecondcolor}\rule{4cm}{3cm}}          \textcolor{mysecondcolor}{Colored text}          \makeatletter     \ltx@ifpackageloaded{tikz}{%     \begin{tikzpicture}         \node[fill=mycolor,minimum width=4cm,minimum height=3cm] (rule) {};         \node[mycolor,anchor=north west] at (rule.south west) {Colored text};     \end{tikzpicture}}{}     \makeatother          \end{document}


title: Are there any HTML-specific LaTeX commands that could compile an electronic document with embedded scrolling text boxes?

text: I was thinking about an experimental e-book layout that would use embedded scrolling text boxes for what would essentially function as really long margin- or footnotes in relation to a main text. Say, for example, a page split into two columns, with the main text on the left and two text boxes of even height on the right (each with a bunch of text in it that the reader could scroll and read as desired). Would it be possible to create an electronic document of some kind using LaTeX that would function this way? Perhaps something that could be exported to `HTML` (maybe with some HTML-specific commands in `latex2html`?) that could then be translated into a functional e-book? Is there a way to do it without `HTML`? I realize this might be a pedestrian question but I've never used LaTeX in conjunction with `HTML`, or even if it would ever under any circumstances be appropriate to use `HTML` to write an e-book. At any rate, any ideas?


title: Problems by enlarging tex memory

text: I have a problem with the tex memory while using pgfplots and a very huge dataset in Ubuntu. Under Windows with MikTeX I have the following settings and the texfile compile without any problems:               main_memory=250000000             extra_mem_top=50000000          extra_mem_bot=50000000            save_size=15000          stack_size=15000      In Ubuntu 11.04 with TexLive i set the tex memory settings according to the pgfplots-manual.               1) i create a texmf.cnf in the directory: /home/user/System/mytexcnf          2) content of texmf.cnf is listed above.          3) run "sudo texhash"          4) create environment variable with: export TEXMFCNF=~/System/texmf/mytexcnf:      Running my texfile gives errors and here is the text from the logfile:               Here is how much of TeX's memory you used:     18954 strings out of 494950     443204 string characters out of 3177351     3000001 words of memory out of 3000000     21827 multiletter control sequences out of 15000+200000     5432 words of font info for 20 fonts, out of 3000000 for 9000     36 hyphenation exceptions out of 8191     65i,13n,78p,2482b,1740s stack positions out of 5000i,500n,10000p,200000b,50000s      Did i something wrong by setting the tex memory? How can i see from the logfile the needed values for the memory parameters? How can i change the texmf.cnf later? Only by opening in an editor, change the values, saving and run texhash?


title: Problem using adobe sourcesanspro

text: I'm using TeX Live 2012 on CrunchBang Linux (which is a derivative of Debian wheezy), and trying to get Adobe Source Sans Pro running, following this post: How can I use Source Sans Pro in Tex-Live 2012?. That is, I manually installed the package in local texmf (added mweights.sty as well), ran texhash and enabled the map. Everything seems to have installed correctly, but when I try to compile a .tex file with pdflatex, I get this error message:               kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 SourceSansPro- Regular-lf-t1--base     mktexpk: don't know how to create bitmap font for SourceSansPro-Regular-lf-t1--base.     mktexpk: perhaps SourceSansPro-Regular-lf-t1--base is missing from the map file.     kpathsea: Appending font creation commands to missfont.log.     !pdfTeX error: pdflatex (file SourceSansPro-Regular-lf-t1--base): Font SourceSansPro-Regular-lf-t1--base at 600 not found      I have searched for a similar issue, but didn't find anything mentionning this, so I suppose it's something in my configuration. Could someone help me to see what I have done wrong?


title: Removing the TOC entry from the TOC

text: Using the `article` document class I have transferred a DOC template to a tex format (I am using miktex). The template specifies a given section appearing prior to the table of contents i.e.:               \section{Mandatory section}     bla bla bla          \tableofcontents          \section{Other section}      Problem is that, once generated, the PDF document shows the table of content entry in the table of content i.e:               Mandatory section ....... 1     Content  ................ 2     Other section ........... 3      I want to remove the Content entry from the TOC, but havent found any method to do so. Any help is high valued.


title: Problems with writing bibliography in JabRef +Lyx

text: I have the following problems:   1. I want to as author:  > Marshal Hall, Jr. But , when writing this in JabRef, it automatically changes to: > M. J. Hall ... How can I fix this?   2. Can I write `$ell$` in Jabref?   3. Jabref accepts capital letters, but when moving to PDF, it automatically changes to small ones... i.e.- I want to write G-extensions, but in Pdf it appears as g-extensions. How can I fix this?


title: Matrix color blocks

text: I am looking to produce a matrix multiplication where one of the matrices consists of coloured blocks. Much like: ![enter image description here](http://i.stack.imgur.com/WD1Uy.png) Is there any way to produce something like this in Latex?


title: xkeyval example does not compile

text: I have read the docs and the tutorial about kvoptions and xkeyval but I can not get my xkeyval example to compile. This is the error:               ! LaTeX Error: Missing \begin{document}.     See the LaTeX manual or LaTeX Companion for explanation.     Type H <return> for immediate help.     ....     l.10 \define@choicekey*{test}[war     ning]{errorlevel}{info,warning,error}{}      which I get with this code:               \documentclass{scrbook}     \usepackage{filecontents}              % Test using xkeyval     \begin{filecontents}{options.sty}     \NeedsTeXFormat{LaTeX2e}     \ProvidesPackage{options}     \RequirePackage{xkeyval}     %     \define@choicekey*{test}[warning]{errorlevel}{info,warning,error}{}     \setkeys{test}{errorlevel=info}     \ProcessOptionsX          \providecommand\printerrorlevel{%     Errorlevel is: \KV@test@errorlevel%     }     \end{filecontents}          \usepackage[errorlevel=error]{options}          \begin{document}     \printerrorlevel     \end{document}      what am I doing wrong? (posted also on de.comp.text.tex, but with no answer)


title: How to find the proper glyph name required by \pdfglyphtounicode

text: I am creating a PDF using pdfTeX. Alas, the publisher's requirement is that all glyphs therein are mapped to one or more Unicode code points. I got this working for most, but not all glyphs:               \input glyphtounicode.tex     \pdfgentounicode=1      For two glyphs, namely `\nexists` (U+2204) and `\leftarrowtail` (U+21A2) from `amssymb`, it looks like an need to manually add a `\pdfglyphtounicode`. But I can't find out what to pass as its first parameter, i.e., for the glyph name. Any pointers?


title: Text continues beyond margin when using \mu

text: Whenever I use the command `\mu` in my text, the entire paragraph after µ will be printed in Italic and continues beyond the textwidth. All spaces are removed. Does anybody know what is happening and how to prevent this?


title: Content doesn't fit in one slide

text: I have a paragraph which I want to put in one slide, but it doesn't fit and some content can't be seen. I am using the Warsaw theme as follows. I tried increasing the height of the slide using the following code               \documentclass{beamer}     \usepackage{lmodern}     \setbeamercovered{transparent}     \usetheme{Warsaw}     \usepackage[height=10in,a5paper,hmargin={3cm,0.8in}]{geometry}           \title[\insertframenumber/     \inserttotalframenumber]{Database}     \author{Mark dain \\ \scriptsize{(Reg.No 12345)} }     \institute{Dept. of Information \& Communication Technology}     \date{October 21,2012}          \begin{document}          \frame{\titlepage}          \begin{frame}     \frametitle{Table of Contents}     \begin{itemize}     \item Introduction     \item Algorithm for reducing finite automata     \item Reliability models     \item Reduction steps     \item References     \item Conclusion     \end{itemize}     \end{frame}          \begin{frame}{Title}     text     \end{frame}     \end{document}      However it still doesn't increase.


title: show image one by one at a time

text: I have four images aligned in one slide and I want to show one picture at a time. I was able to show the text using the code below               \begin{frame}     \frametitle{Table of Contents}     \begin{itemize}     \item<1-> Introduction     \item<2-> Algorithm for reducing finite automata     \item<3-> Reliability models     \item<4-> Reduction steps     \item<5-> References     \item<6-> Conclusion     \end{itemize}     \end{frame}      In the same way I want to show the images. I have aligned the images as follows               \begin{frame}     \vcenteredhbox{\includegraphics[width=5cm,height=5cm,keepaspectratio]{pc5.jpg}}     \vcenteredhbox{\includegraphics[width=5cm,height=5cm,keepaspectratio]{pc6.jpg}}     \vcenteredhbox{\includegraphics[width=5cm,height=5cm,keepaspectratio]{pc8.jpg}}     \vcenteredhbox{\includegraphics[width=5cm,height=5cm,keepaspectratio]{pc7.jpg}}     \end{frame}


title: Linux Libertine package and fonts not working anymore (fall 2012)

text: So in the last couple of weeks I've had some issues with the Linux Libertine font and package, both don't seem to work anymore on a completely up-to-date version of MacTeX (which is equivalent to TeX Live 2012). The issues don't appear on a Ubuntu 12.04 box which is running TeX Live 2009; I work on both computers regularly so it would be nice if any solution would work on both systems. I'm compiling my files with `pdflatex`. As I have two problems (one with the package and one with the font itself) I'll split this question in two parts. # Libertine Package I've always been using the `libertine` package like this:               \documentclass{article}     \usepackage[osf]{libertine}     \usepackage[T1]{fontenc}     \begin{document}     The quick brown fox jumps over the sleazy dog, 0123456789.     \end{document}      This however gives me the following warning and error:               LaTeX Warning: You have requested package `libertine-type1',                    but the package provides `LinuxLibertineO'.               ! LaTeX Error: Unknown option `osf' for package `libertine-type1'.      When I ignore it, the output seems to be fine: ![Linux Libertine](http://i.stack.imgur.com/rnivL.png) # Libertine font I've also been using this font directly in other documents, like this (cf. How do I use a particular font for a small section of text in my document?):               \documentclass{article}     \usepackage[T1]{fontenc}     \begin{document}     \fontfamily{fxlj}\selectfont     The quick brown fox jumps over the sleazy dog, 0123456789.     \end{document}      This gives the following warning:               LaTeX Font Warning: Font shape `OT1/fxlj/m/n' undefined     (Font)              using `OT1/cmr/m/n' instead on input line 3.      And shows the following output: ![Not Linux Libertine](http://i.stack.imgur.com/CdQpg.png)


title: How to hide the menu at the bottom in TeXstudio?

text: Is it possible to hide the menu at the bottom in TeXstudio? ![enter image description here](http://i.stack.imgur.com/68kxk.png) I can't find a way to do this...


title: vspace in marginpar adds unwanted vertical space

text: I am trying to finetune the position of marginpars using `\vspace`. However, the result is not as expected and even if I include `vspace{0pt}` the marginpar get's pushed down, as the MWE below illustrates. How do I get rid of this unwanted space? I am not sure if this question is related. Is there an equivalent to `\topskip` for marginpars?               \documentclass{scrartcl}          \setlength{\textwidth}{60mm}     \setlength{\marginparwidth}{50mm}          \begin{document}          Nulla malesuada porttitor diam.\marginpar{No vspace command}          \vspace{5ex}          Nulla malesuada porttitor diam.\marginpar{\vspace{0pt}A 0pt vspace offset}          \end{document}      ![enter image description here](http://i.stack.imgur.com/8hvoX.png)


title: Optional arguments: xparse vs. xargs

text: To implement a macro that takes one or more optional arguments that do not have to be placed in the first position, `xargs` can be used as well as `xparse`. The latter seems to have more recent updates while the first uses the well-known keyval internally. Apart from this and their syntax, where do they differ? Can one of them be regarded as superior or deprecated? Is there a guideline which to use in new documents?


title: TeXStudio does not recognize \colon

text: What is the file to load the command `\colon` to be recognized ( _as a known command_ ) by TeXStudio? If I add it to the personal command it works but I guess that this command comes from some package. ps: I'm talking about highlighting unknown commands. ps2: I tried `grep colon *.cwl` on my `.config/texstudio` folder and I found               mathabx.cwl:\coloneq#Sm     mathabx.cwl:\eqcolon#Sm     mathtools.cwl:\vcentcolon#S     mathtools.cwl:\ordinarycolon#S     mathtools.cwl:\MT_activate_colon#S     mathtools.cwl:\MT_active_colon_true#S      that is, no `\colon` command.


title: How to prevent chapter titles from appearing in the header on the first page of each chapter in ConTeXt?

text: To place the chapter title in the header of my document, I used:                \setupheadertexts[{\getmarking[chapter]}][][][{\getmarking[chapter]}]      My document is not double-sided. Whenever the chapter title appears on the first page of the chapter, it produces the odd result of seeing the chapter title in the header directly above the actual chapter title, e.g.:                _______________     | Chapter 1     |     |               |     | CHAPTER 1     |     |    Once upon  |     | a time, ...   |     |_______________|      How can I place a chapter title in the header, but prevent it from appearing on the first page of each chapter?


title: How can I change the left and right margins of the list of algorithms?

text: I am using the `algorithm` package and have a list of algorithms. How to change the left and right margin of the lists? I'd like both and right margins to be 1pt wide.


title: Dealing with word boundaries in a pl file

text: What is the easiest way to express replacement rules like “If a letter follows, replace ‘s’ by ‘ſ’” and “If a non-letter/word-boundary follows, replace ‘g’ by ‘g.final’” in a `pl` file? ### Context I am still trying to get my blackletter font to work with some flavour of LaTeX. I made a lot of progress adapting it to vanilla pdflatex. (Using a perl script that writes the ligatures part for the `pl` file, because FontForge does not export ligatures to tfm. That script is also in that repository.) I have difficulties finding the documentation for the language of `pl` files. I think there is one which I had found earlyer, but I cannot find it again. Does the declaration `(BOUNDARYCHAR O 14)` define which character to use for typesetting spaces? Does that mean that if I want dots and commas to also behave as word boundaries, I need to add them explicitly, expanding the likes of               (BOUNDARYCHAR O 14)     ...     (LABEL BOUNDARYCHAR)     (LIG O 167 O 30)     (LIG O 166 O 27)     (STOP)     (LABEL O 163)     (LIG O 14 O 33)     (STOP)      to               (BOUNDARYCHAR O 14)     ...     (LABEL BOUNDARYCHAR)     (LIG O 167 O 30)     (LIG O 166 O 27)     (STOP)     (LABEL O 54)     (LIG O 167 O 30)     (LIG O 166 O 27)     (STOP)     (LABEL O 56)     (LIG O 167 O 30)     (LIG O 166 O 27)     (STOP)     (LABEL O 163)     (LIG O 14 O 33)     (LIG O 54 O 33)     (LIG O 56 O 33)     (STOP)      and even more if I also want other non-letters to be word boundaries? Since both letters and non-letters are quite a few, changing “If a non-letter follows, replace ‘ſ’ by ‘s’” to “If a letter follows, replace ‘s’ by ‘ſ’” does not seem easier, either. Is there good way to do this, preferably one where I don't have to list half the characters in my font for every `(LABEL)` block?


title: Weird problem with LaTeX/excel2latex

text: I try to use `excel2latex` for converting excel tables into LaTeX. Here is the simple code I am using:               \documentclass[10pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{booktabs}     \begin{document}     \begin{table}[htbp]     \centering     \caption{Add caption}     \begin{tabular}{rrrr}     \toprule     1     & 4     & 6     & 8 \\     \midrule     -53   & 9     & 10    & 10 \\     \bottomrule     \end{tabular}%     \label{tab:addlabel}%     \end{table}%     \end{document}      basically, when I copy the LaTeX code from `excel2latex` add-in and paste it in my LaTeX code, I get tons of errors![error list](http://i.stack.imgur.com/p6WpK.png) but if I remove the last two lines and type it manually, it work.


title: After upgrading ubuntu 13.04 to 13.10, latex compiling errors

text: After upgrading the ubuntu 13.04 to 13.10, when I try the following command in terminal `$ latex *.tex` or `$ pdflatex *.tex` . I give the following error with MWE:               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)      restricted \write18 enabled.     ---! /var/lib/texmf/web2c/pdftex/pdflatex.fmt doesn't match pdftex.pool     (Fatal format file error; I'm stymied)      Also Texmaker gives error "Could not start the command". Meanwhile, my Texmaker configuration is as follows: ![enter image description here](http://i.stack.imgur.com/2pIvK.png) Any suggestion?


title: Aligning marginal notes with center of line rather than baseline

text: I would like to have all references in my document (to equations, figures, lemmas, random locations in text, etc.) be numbered in the same series, and I would like these numbers to appear in the margin. See here for examples: p. 30 (equation and paragraph labels), p. 31 (theorem label and figure label), p. 26 (\item label). I've managed to cobble together macros which do most of what I want, but two problems remain:   * The marginal label aligns according to the _baseline_ , but for displayed equations I would like it to be more centered (see p. 4 of above document).   * I can't get labels for figures into the margin. Is there a package which does something like this? Is there a way for TeX to know the height of the current displayed equation, so that I can adjust the vertical position of the marginal note accordingly?


title: Modification of a given letter

text: In this letter from Wikibooks,               \documentclass{letter}     \usepackage{hyperref}     \signature{Joe Bloggs}     \address{21 Bridge Street \\ Smallville \\ Dunwich DU3 4WE}     \begin{document}          \begin{letter}{Director \\ Doe \& Co \\ 35 Anthony Road     \\ Newport \\ Ipswich IP3 5RT}     \opening{Dear Sir or Madam:}          I am writing to you on behalf of the Wikipedia project (http://www.wikipedia.org/),     an endeavour to build a fully-fledged multilingual encyclopaedia in an entirely     open manner, to ask for permission to use your copyrighted material.          % The \ldots command produces dots in a way that will not upset     % the typesetting of the document.     \ldots           That said, allow me to reiterate that your material will be used to the noble end of     providing a free collection of knowledge for everyone; naturally enough, only if you     agree. If that is the case, could you kindly fill in the attached form and post it     back to me? We shall greatly appreciate it.          Thank you for your time and consideration.          I look forward to your reply.          \closing{Yours Faithfully,}          \ps{P.S. You can find the full text of GFDL license at     \url{http://www.gnu.org/copyleft/fdl.html}.}     \encl{Copyright permission form}          \end{letter}          \end{document}`      I would like to make the following changes but I don't know how,   1. The address and date I would like to be right-aligned , I tried `\begin{flushright}` `\end{flushright}` but it didn't work. Similarly for left-aligned for the signature and the `\closing{Yours Faithfully,}`.   2. Change the margin distances.   3. Add "University of Smallville" at the top centre (at the beginning) of the document. Thanks


title: Modify distance between title box and top bar on title frame

text: This is a follow-up question to Rochester theme titlepage change height of top bar I try to modify the distance between the title box and the top bar. Right now I only managed to change the height of the top bar. Do you have any idea how to do that? Or maybe simply remove the top bar from the title page and move the title bar to the top?               \documentclass[14pt]{beamer}% http://ctan.org/pkg/beamer     \let\Tiny\tiny% http://tex.stackexchange.com/q/58087/5764     \setbeamercolor{normal text}{bg=black!10}     \usetheme[height=14mm]{Rochester}     \begin{document}     \title[Title]{My title}     \subtitle{Subtitle}     \author{Author}     \institute[Institute]{My institute}     \date[Date]{My date}     \logo{\color{blue!50}\scalebox{2}{\TeX}} % you can % it          % Temporarily adjust header height to 7mm, only for title page     \begingroup     \makeatletter     \beamer@headheight=7mm     \expandafter\let\csname beamer@@tmpop@headline@sidebar theme\endcsname\relax     \defbeamertemplate*{headline}{sidebar theme}     {%       \begin{beamercolorbox}[wd=\paperwidth]{frametitle}         \vrule width0pt height \beamer@headheight%         \end{beamercolorbox}       \vspace*{\beamer@headheight}     }     \makeatother          \begin{frame}       \titlepage     \end{frame}     \endgroup     % Header height restored to 14mm          \section{A section}     \subsection{A subsection}     \begin{frame}       \frametitle{Frame title}       \framesubtitle{frame subtitle}       Some text     \end{frame}          \end{document}


title: Graphing sine function in MetaPost

text: I'm trying to reconstruct this picture in MetaPost: ![enter image description here](http://i.stack.imgur.com/N3uHG.jpg) So far came up with this:               draw (-1cm,0)--(3cm,0);     draw (0,1cm)--(0,-1cm);     draw fullcircle scaled 1.8cm;     label(btex $y$ etex,(0,1.2cm));     label(btex $x$ etex,(3.2cm,0));     label(btex \textsf{SVEU\v CILI\v STE U RIJECI} etex,(1cm,1.7cm));     label(btex \textsf{ODJEL ZA MATEMATIKU} etex,(1cm,-1.5cm));      Obviously, the sine graph is missing. I tried a few ways, but I couldn't even get it to compile. Can anyone provide some assistance?


title: Setting default edges to be square (orthogonal) in a tree drawn with TikZ

text: I'm searching for a way to have orthogonal edges (only going horizontal and vertical) by default when I draw a tree. I can't seem to find a way to set this as the default style (without having to add edges with path each time). ![enter image description here](http://i.stack.imgur.com/J5v1g.png)               \documentclass{article}     \usepackage{tikz}     %%% <     \usepackage{verbatim}     \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}     \setlength\PreviewBorder{10pt}%     %%% >          \usetikzlibrary{arrows,shapes,positioning,shadows,trees}          \begin{document}     \begin{tikzpicture}       \tikzstyle{every node}=[draw, rectangle, fill=gray!20]                 \node {root}       child {node {left}}       child {node {right}         child {node {child}}         child {node {child}}       };     \end{tikzpicture}     \end{document}      I have included an example of the edges I'm searching for. There is not need for labels on the edges. ![enter image description here](http://i.stack.imgur.com/RI2FT.png)


title: How can I avoid the gap between \cellcolor-colored cells created by \tabucline?

text: I'm trying to partially separate rows from one another using `\tabucline`. The line encompasses column 3-6. Since the line's width is neither part of the upper, nor the lower row, there is going to be some space between those cells. Is there a way to avoid this? Can I somehow color the whole background including the gap?               \documentclass{article}     \usepackage{xcolor}     \usepackage{colortbl}     \usepackage{booktabs}     \usepackage{tabu}     \usepackage{rotating}          \definecolor{palewhite}{RGB}{237,241,251}     \definecolor{paleblue}{RGB}{195,215,241}     \definecolor{palebluefontgrey}{RGB}{64,114,90}     \definecolor{grey}{RGB}{132,130,132}     \definecolor{tableheadcolor}{RGB}{136,174,228}     \colorlet{tablerowcolor}{gray!10} % Table row separator colour = 10% gray          \begin{document}         \begin{tabu} to \textwidth{X[-.5,m]X[-.5,m]X[1,m]X[1,m]X[1,m]X[1,m]}             \toprule             \taburowcolors 1{tableheadcolor .. tableheadcolor}             \rowfont[c]{\color{palewhite}\bfseries\sffamily}%                   &         & \multicolumn{2}{c}{Test 1} & \multicolumn{2}{c}{Test 2} \tabularnewline             \rowfont[c]{\color{palebluefontgrey}\sffamily}%             \taburowcolors 2{paleblue .. paleblue}             \cellcolor{tableheadcolor}  &       & Test 3 & Test 4   & Test 5 & Test 6      \tabularnewline             \taburowcolors 1{white .. tablerowcolor}             \tabucline{3-6}             \multicolumn{1}{c}{\cellcolor{tableheadcolor}} & \multicolumn{1}{c}{\cellcolor{paleblue}} & & & & \\             \multicolumn{1}{c}{\cellcolor{tableheadcolor}} & \multicolumn{1}{c}{\cellcolor{paleblue}} & & & & \\             \bottomrule         \end{tabu}     \end{document}      ![MWE](http://i.stack.imgur.com/k7b6R.png)


title: Why do my Table of Contents and List of Algorithms not appear ?

text: \tableofcontents     \listofalgorithms          \thispagestyle{empty}          \newpage     \setcounter{page}{1}      That were running well but when the number of pages ! increased it disappeared :S


title: Alignment of captions in subcaption

text: I am using subcaption and want to have the following effect. I want the main figure to contain several subfigures. I want the subfigures to have captions that only come from the \caption{} tag, i.e. I do not want any numbers like (1) or (a) before the captions. My code for the figure is as follows.               \begin{figure}[h]      \centering        \begin{subfigure}[b]{1.5cm}         \def\svgwidth{1.2cm}         \input{subgoal1.pdf_tex}         \caption{55}        \end{subfigure}        \caption{Subgoals employed in the solution of the 8-puzzle}     \end{figure}      The problem is that the captions do not appear at the centre of the subfigure, but there is whitespace indent added before the number 55. I want to get rid of this. I set up my captions in the following way.               \DeclareCaptionLabelFormat{r-parens}{}     \renewcommand\thesubfigure{ }     \captionsetup[sub]{labelformat=r-parens}      What do I need to add to get rid of the indent? The minimum working example is as follows:               \documentclass[10pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[top=1.5cm, bottom=2cm, left=2.5cm, right=2.5cm]{geometry}     \usepackage{caption}     \usepackage{graphicx}     \usepackage{color}     \usepackage{subcaption}          \DeclareCaptionLabelFormat{r-parens}{}     \renewcommand\thesubfigure{ }     \captionsetup[sub]{labelformat=r-parens}     \begin{document}     \thispagestyle{plain}     \begin{figure}[h]       \centering       \begin{subfigure}[b]{1.5cm}          \rule{1.2cm}{1.2cm}          \caption{55}       \end{subfigure}       \begin{subfigure}[b]{1.5cm}          \rule{1.2cm}{1.2cm}          \caption{44}       \end{subfigure}       \caption{Subgoals employed in the solution of the 8-puzzle}     \end{figure}          \end{document}


title: draw a grid in the foreground

text: I'm trying to follow this example on how to draw a background grid so I can easily connect arrows, but it draws the (non-transparent) picture on top of the grid making it hard to use. I want to draw the grid in the foreground, how can I do that?


title: Can Tufte sidenotes work in the multicols environment?

text: I am writing handouts using the `tufte-handout` document class. I use the `multicol` package to make a two-column list of vocabulary terms. One term needs an explanation, which I would like to reference using the `\sidenote` command. Unfortunately, this does not work in the `multicol` environment. Can `\sidenote` be modified to work inside the `multicols` environment?               \documentclass{tufte-handout}     \usepackage{multicol} % multiple column layout facilities     \begin{document}          \begin{multicols}{2}     Vocabulary One \sidenote{A note about Vocabulary One.} \\     Vocabulary Two \\     Vocab Three \\     Vocab Four     \end{multicols}          \end{document}


title: Texstudio structure view test failed!

text: After installing TexStudio I get the following error. It occurs with TexStudio 2.3 (Ubuntu 13.04 repo) as well as with 2.5.2 (ppa:blahota/texstudio). Before filing a TexStudio Bug report I wanted to ask, whether someone can see whether it is TexStudio related or something else?               ********* Start testing of StructureViewTest *********     Config: Using QTest library 4.8.4, Qt 4.8.4     PASS   : StructureViewTest::initTestCase()     FAIL!  : StructureViewTest::script(add Label) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(add Label2) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(add Label3) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:test6 LVL:0 IND:2        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:test6 LVL:0 IND:2        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(change Label) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(change Label2) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcest3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcest3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(change Label3) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcst3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcst3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(remove line) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(remove lines2) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(add section) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(add section2) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sec:test LVL:2 IND:1        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sec:test LVL:2 IND:1        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(change section) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(change section2) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:3 IND:2        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:3 IND:2        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(change section3) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:4 IND:2        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:4 IND:2        Loc: [tests/structureview_t.cpp(215)]     FAIL!  : StructureViewTest::script(change section4) Compared values are not the same        Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1        Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1        Loc: [tests/structureview_t.cpp(215)]     RESULT : StructureViewTest::benchmark():"single line text":          0.10 msecs per iteration (total: 52, iterations: 512)     RESULT : StructureViewTest::benchmark():"labels1":          0.18 msecs per iteration (total: 94, iterations: 512)     RESULT : StructureViewTest::benchmark():"labels2":          0.15 msecs per iteration (total: 79, iterations: 512)     RESULT : StructureViewTest::benchmark():"labels3":          0.14 msecs per iteration (total: 74, iterations: 512)     RESULT : StructureViewTest::benchmark():"sections":          0.10 msecs per iteration (total: 53, iterations: 512)     RESULT : StructureViewTest::benchmark():"sections with many children":          0.15 msecs per iteration (total: 80, iterations: 512)     PASS   : StructureViewTest::benchmark()     PASS   : StructureViewTest::cleanupTestCase()     Totals: 3 passed, 14 failed, 0 skipped     ********* Finished testing of StructureViewTest *********


title: Subitem in enumerate written as <item#>.<subitem#> instead of indentation

text: I want to define different requirements in my thesis, some of which can be divided into smaller requirements. Building on the answer to my previous question Referencing enumeration items by number and name, I came up with the following:               \documentclass{article}          \usepackage{lipsum}     \usepackage{enumitem}     \usepackage{etoolbox}          \usepackage[showframe,pass]{geometry}          \begin{document}          \makeatletter     \newcommand*{\req}[1]{%       \item %       \let\originall@bel\@currentlabel%       \appto\@currentlabel{ (#1)}%       \emph{#1}\quad}     \newenvironment{subreqs}{\begin{enumerate}[label=\originall@bel.\arabic*,widest=9,leftmargin=0pt]}{\end{enumerate}}     \makeatother          \begin{enumerate}[label=R~\arabic*,widest*=20,leftmargin=*,series=reqs]     \req{First Important Thing} \label{req1} \lipsum[4]     \begin{subreqs}     \req{Important Subitem} \label{req2} \lipsum[2]     \end{subreqs}     \end{enumerate}          \ref{req1} and \ref{req2} are important.          \end{document}      This partly works as expected, the only problem is that the second requirement is indented with regard to the first one. This is of course expected since I use a second level of `enumerate`, but I'd still like to avoid it since the grouping is visible from the number itself. ![enter image description here](http://i.stack.imgur.com/LS7K1.png) **Edit:** I just realized that `leftmargin` (which I suspected to do something different) controls exactly what I want. However, using `leftmargin=0pt` instead of `leftmargin=*` in the definition of `subreqs`, as Thruston suggests does not really help, as it makes `R 1.1` protrude out of the text frame (see the updated code/screenshot above).


title: How to configure kile to run texlive 2011?

text: I install TeX Live 2011 in Linux, but i can not configure kile to run the TL11. Can you explain step by step, please? Solved: $gedit ~/.profile and digit PATH=/usr/local/texlive/2011/bin/i386-linux:$PATH; export PATH MANPATH=/usr/local/texlive/2011/texmf/doc/man:$MANPATH; export MANPATH INFOPATH=/usr/local/texlive/2011/texmf/doc/info:$INFOPATH; export INFOPATH or PATH=/usr/local/texlive/2011/bin/x86_64-linux:$PATH; export PATH for 64 bits.


title: How to use text within math as a macro without it being subject to \emph

text: I'm working on a book and want to have certain special maps labeled "a" and "d" but not in the usual math font. The standard AMS fonts don't support too many special versions of lower-case letters, and I'm not a fan of the ones that do exist. I'm also trying to avoid installing a more exotic font package. After playing around for awhile, I decided that I liked using the boldface version of the ordinary text fonts in these situations, and since I will be using these often, I set up some elementary macro commands:               \renewcommand{\d}{\text{\textbf{d}}}          \renewcommand{\a}{\text{\textbf{a}}}      This mostly works out okay, except I noticed that within theorem statement environments my a and d are subject to the italicization of the current environment, so I don't get consistent characters. Is there a way to improve my macros to avoid this phenomenon? Thanks!


title: sqrt upright style

text: I need to change the style of sqrt and should make it a little bit narrower than the standard. second picture shows what I would like to have. any help is appreciated. ![this is what I already have](http://i.stack.imgur.com/tZ1PJ.png) ![what I want to have](http://i.stack.imgur.com/80cTw.png)


title: A big list of every keyval package

text: I lose track of all the different keyval packages. Can we maintain a list here? (Community wiki, one package per answer with a brief description of scope. I've started things off but need help completing it.)


title: compilation error with luaotfload-fontloader since update Mactex/Texlive2013

text: I'm using MacOs X Maverick with the latest MacTeX 2013 (updated 22/05/2014). I'm getting this error error message :               (/usr/local/texlive/2013/../texmf-local/tex/gregoriotex/gregoriotex-signs.tex)       (/usr/local/texlive/2013/../texmf-local/tex/gregoriotex/gregoriotex-syllable.tex)       (/usr/local/texlive/2013/../texmf-local/tex/gregoriotex/gregoriotex-symbols.tex            ! LuaTeX error ...xmf-dist/tex/luatex/luaotfload/luaotfload-fontloader.lua:4570:       attempt to index local 'whatfeatures' (a nil value).       <to be read again>        \par        l.116             ?        I'v searched on this site and found this topic : Compilation error with LuaLaTeX (luaotfload- database.lua) I've tried every solutions given in that topic :   * delete font cache and run luaotfload-tool -vvv -u ==> successful, but I still get the error with lualatex    * downgrade luaotfload package and rerun luaotfload-tool -vvv -u ==> successful, but I still get the error with lualatex  I've checked that my luaotfload-database.lua is the patched one since this issue is well-known. I still have the problem :               (/usr/local/texlive/2013/../texmf-local/tex/gregoriotex/gregoriotex-signs.tex)       (/usr/local/texlive/2013/../texmf-local/tex/gregoriotex/gregoriotex-syllable.tex)       (/usr/local/texlive/2013/../texmf-local/tex/gregoriotex/gregoriotex-symbols.tex            ! LuaTeX error ...xmf-dist/tex/luatex/luaotfload/luaotfload-fontloader.lua:4570:       attempt to index local 'whatfeatures' (a nil value).       <to be read again>        \par        l.116             ?        If you need more informations to help me, do not hesitate to ask.


title: lstlisting `moredelim` doesn't work with comments

text: I'm trying to add some overlays to a piece of code, and I'm defining it using `moredelim`. However, when I use it on comments within the code, the `moredelim` stops working. What am I missing?               \documentclass{beamer}          \usepackage{listings}     \lstdefinestyle{cexample}{%     language=C++,     moredelim=**[is][\onslide<+->]{|}{|},     }          \begin{document}     \begin{frame}[fragile]{Work without comment}     \begin{lstlisting}[style=cexample]     char * const buffer[]; |comment 1|     char * const * buffer; |comment 2|     \end{lstlisting}     \end{frame}          \begin{frame}[fragile]{Doesn't work with comments '//'}     \begin{lstlisting}[style=cexample]     char * const buffer[]; |//comment 1|     char * const * buffer; |//comment 2|     \end{lstlisting}     \end{frame}          \end{document}      ![enter image description here](http://i.stack.imgur.com/sD4Cj.jpg)


title: What font is this?

text: Can anyone tell me where the script L in the following snippet comes from? It's not `\mathcal{L}`: ![enter image description here](http://i.stack.imgur.com/1Wq6S.png)


title: PDF images not showing up with lualatex/pdflatex

text: I am trying to include an image in PDF format into my document as a figure. When compiling with `lualatex` or `pdflatex`, the image does not appear. If I take that very PDF image and convert it to PNG and include the PNG file, it works. Additionally, when I try the PDF version, the figure has a double light grey line along the edge or corner depending on the viewer used. This does not occur with the PNG version. I have used the `\fbox` command to enclose the `\includegraphics` command to make sure that the size is being interpreted correctly and it is in all cases, and changing the image size doesn't change anything. Generally, my compile order is `lualatex`->`bibtex`->`lualatex`->`lualatex` and I've tried the same thing with `pdflatex`. I have other PDF files that compile fine but this one has been problematic. EDITED: Minimal Example This preamble is pretty large but I figured I would include everything just to be safe. This is all part of a larger thesis template file for my university, so I can't really go deleting any of the packages either or it breaks the template.               \documentclass[12pt]{report}     \usepackage[letterpaper]{geometry}     \geometry{verbose,tmargin=1.25in,bmargin=1.25in,lmargin=1.4in,rmargin=1.15in}     \usepackage[doublespacing]{setspace}     \usepackage{tocloft}     \usepackage[rm, tiny,center, compact]{titlesec}     \usepackage{indentfirst}     \usepackage{etoolbox}     \usepackage{tocvsec2}     \usepackage[titletoc]{appendix}     \usepackage{appendix}     \usepackage{rotating}     \usepackage[T1]{fontenc}\usepackage{lmodern}     \usepackage[hidelinks,unicode]{hyperref}     \usepackage{amsmath}     \usepackage{graphicx,float,wrapfig}     \usepackage{natbib}          \begin{document}          \begin{figure}[tb]         \centering         \includegraphics[width=0.8\textwidth]{AT3-Iso.pdf}         \caption{Three-dimensional traversing mechanism affixed to 7$^{\circ}$ cone model.}         \label{fig:traverse}     \end{figure}          \end{document}      Also, I have linked 3 files below. One is sample output from my `.tex` file with a PDF input, one with a PNG input, and then one is the original PDF image itself that I am trying to use. Hopefully all of this helps. http://people.tamu.edu/~sacraig/debug/pdf-version.pdf http://people.tamu.edu/~sacraig/debug/png-version.pdf http://people.tamu.edu/~sacraig/debug/AT3-Iso.pdf EDIT 2: The PDF image is one page from what was originally a 4 page document split into 4 separate images. I tried converting each to EPS and then back to PDF again and it seemed to work for two of the 4 images. Finally, I had been using MiKTeX when encountering this problem in Windows. I moved over to Ubuntu and on TeXLive it seems to all compile just fine. I still primarily use Windows at work, however, so I'd like to figure out the problem on the Windows side. EDIT 3: Through additional testing I have found that `XeLaTeX` compiles fine and produced the proper output with this file in Windows. I can use that in a pinch, but I would still prefer `LuaLaTeX` if possible. EDIT 4: Well checking the `.log` file showed one warning for the version of the PDF. It was 1.6 and I guess only up to 1.5 is supported. Resaving the PDF as PDF 1.5 fixed it for this image, so that is awesome. It doesn't seem to fix it for a couple other images that were created the same way, however, which is really weird. Those `.log` files don't seem to have any errors or warnings either.


title: Use short form with \cite

text: I am using a modified `verbose-ibid` citestyle (as suggested here). If I use `\cite`, it won't use the short version, and that might be good, but right know I need to use the short version (`cite:short`). So how would I use `\cite` and force the short form?


title: How to add equation with cases inside the table

text: I want to include the complicated equation into one of the cells of my table. I am using tabular environment, additionally I have some multirows. I would like to add something like this:               \begin{table}           \centering        \begin{tabular}{l||p{6.5cm}|p{6cm}|p{3cm}|}          \multirow{2}{*}{Problem}          & a=3 & description & something \\          &          \[ l= \begin{cases}              a when sth \\             b when sth else \\             c when elsewhere;            \end{cases}          \]           & & \\       \end{tabular}     \end{table}      The problem is precisely when I need to use \\ in purpose of proper cases environment look. In such a case it simply (compiler) get frozen... until whole processor is 'consumed'. Anyway anyone knows how to put the function, equation with cases into table?


title: Why do user-defined whatsit nodes affect LuaTeX pagebreaking?

text: **EDIT** : A summary of the possible answers is given below. In my current LuaTeX project I am using user-defined whatsit nodes to transfer information between the different stages of a LuaTeX run. On this topic, the manual states the following: > The LUATEX engine will simply step over such whatsits without ever looking > at the contents. My interpretation of this is, that I can add user-defined whatsit nodes and nothing should change in the actual processing of the node lists (i.e. the document should look the same with or without them). I am encountering the following problem, however. In my case, a certain paragraph, let's call it _P_ , would overflow the page and is moved to the next page. Accordingly, the white space between the remaining paragraphs on the previous page is stretched to fill the page (resp. column). If I add a user-defined whatsit node as first node of _P_ , the content of the paragraph is moved to the next page (as before), BUT the whatsit node STAYS on the previous page. Subsequently, whitespace is added at the bottom of the last column on the previous page, the ensure correct inter-paragraph spacing. In my opinion, this is not the correct behavior and I have the following two **questions** :   1. Can I force the whatsit node to stay with its paragraph? (But preferably not by packing it into additional horizontal or vertical lists.)   2. If not, can I at least suppress the generation of inter-paragraph white space at the bottom of the column? ## Additional Information An **illustration** of how it looks like:                        Without whatsit                  With whatsit          Page n  |text          |        Page n  |text          |             |text          |                |              |             |              |                |text          |             |text          |                |text          |    Incorrect             |text__________|                |______________| <- inter-paragraph                                                                 glue              ______________                  ______________     Page n+1|text of P     |        Page n+1|text of P     |             |text of P     |                |text of P     |             |              |                |              |             |text          |                |text          |      * * * **In detail** I do the following: With a `post_linebreak_filter` callback, I add my user-defined whatsit node as new head of the vertical paragraph list (by using `node.insert_before(head, head, my_whatsit)`). This node is still visible at the shipout stage, where it gets integrated into the vertical list of the current column. In the case of a paragraph that gets moved to the next page (as in my example above), the whatsit node can be found in the vertical column list of page `n`, while the rest of the paragraph is moved to page `n+1`. I would need it to stay with the paragraph. * * * # Answers ## Pure LaTeX The answer of Dan explains how to dock the whatsit to the paragraph by the use of `\penalty` and `\nobreak`. ## LuaTeX David Carlisle and topskip gave two different ways to achieve this behavior by altering the insertion location of the whatsit node in the `post_linebreak_filter` callback. topskip's solution recursively searches for the first hlist in the paragraph and inserts the whatsit node into it. David's approach aims to insert the whatsit node after the first node (usually a glue node) and thus anchors it to the paragraph. In my case this can be achieved by simply changing `node.insert_before(head, head, my_whatsit)` to `node.insert_after(...)`. This keeps the whatsit node in the same vlist as the paragraph's hlists, which is the reason why I selected this as my solution. As David already mentioned, it would be better to insert the whatsit node after all discardable nodes (and not just after the first one).


title: 2 rows legend and alignment

text: I got a legend with two rows and I would like to have a different alignment on each row. Is it possible ? In my current code, the legend entries on the second line are much longer than ones on the first line. This results in extra space between 1st line legend entries and I would like to avoid that. Here is my code :               \documentclass{article}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}          \begin{document}     \begin{figure}     \begin{tikzpicture}     \begin{semilogyaxis}[xmin=0, xmax=600, ymin=1e-1, ymax=1e7, axis x line*=bottom, axis y line*=left, xlabel={X}, ylabel={Y},width=0.9\textwidth, height=0.5\textwidth, legend columns=3, legend style={cells={anchor=west}, at={(1,0.3)}, anchor=east}]          \addplot [color=red, domain=0:600, samples=1000, thick, mark=none] {(1+4*x^2) };     \addlegendentry{A}     \addplot [color=blue, domain=0:600, samples=1000, thick, mark=none] {1+2*x };     \addlegendentry{B}     \addplot [color=green!80!black, domain=0:600, samples=1000, thick, mark=none] {1.};     \addlegendentry{C}          \addlegendimage{black, thick}     \addlegendentry{Numerical}     \addlegendimage{black, ultra thick, loosely dashed}     \addlegendentry{Analytical}          \addplot[color=red, domain=0:600, loosely dashed, samples=1000, ultra thick] {(1+4*x^2) };     \addplot[color=blue, domain=0:600, loosely dashed, samples=1000, ultra thick] {1+2*x };     \addplot[color=green!80!black, domain=0:600, loosely dashed, samples=1000, ultra thick] {1.};          \end{semilogyaxis}     \end{tikzpicture}     \end{figure}     \end{document}      Thanks !


title: Forcing \overline not to continuously extend to adjacent variables

text: Could someone kindly help me how I can correctly display the following formula?               (\pi\rho\overline{\Gamma_\theta}\overline{R_\theta}^2)      The output is shown below. ![enter image description here](http://i.stack.imgur.com/WtxPa.png) However, the overline should not be continuously extending over both `\Gamma_\theta` and `R_\theta`. I would expect something like the following, which is the edited version of the above picture using Microsoft Paint. ![enter image description here](http://i.stack.imgur.com/Z6oqA.png)


title: Suppress frame title when using allowframebreaks in beamer

text: How can I suppress the title completely on the continuation slides when using `allowframebreaks` in beamer? In the example below, Title should only appear on the first slide.               \documentclass{beamer}          \begin{document}     \begin{frame}[allowframebreaks]{Title}     A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\     \framebreak     B\\ B\\ B\\ B\\ B\\ B\\ B\\\framebreak B\\ B\\ B\\ B\\ B\\ B\\     \end{frame}     \end{document}      Thanks.


title: inputenc[utf8] error with input-function of external tex files

text: I got a problem with inputenc[utf8]. My document is in German and uses 'ä, ö, ü' which usually works fine with the following preamble:               \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel}      I am using Texstudio for writing my document if that matters. The external tex files are only xtables produced by R. These are saved as .tex files, and put into my document via the `\input{./file.tex}` function. This also works well. The problem is, when I add captions in German to the tables (e.g. sthg like 'ääääääää'), the following error results when compiling: `Package inputenc Error: Unicode char \u8:ä not set up for use with LaTeX ...` Is there any way I can circumvent this? I have the feeling the problem is that the above preamble is not part of tables produced by xtable in R. These have the following simple format (not separate preamble, just the following):               % latex table generated in R 3.0.1 by xtable 1.7-1 package     % Sat Nov 28 00:05:12 2013     \begin{table}[htbp]     \caption{ääää}     \begin{tabular}{ l c r }      1 & 2 & 3 \\      4 & 5 & 6      \end{tabular}     \end{table}      But then again these files should be included into the original document via the input-function just fine? I dont get the problem. You can test this hopefully by saving the above table under a separate tex file, then including it at the beginning of the document:               \documentclass[a4paper]{scrreprt}     \usepackage{setspace}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel}          \begin{document}     \input{./file.tex} % assuming you called it 'file'     \end document      Thanks for any hints. I am using Win 7 x64 and Miktex 2.9.


title: How do I get the titles on the list of contents, list of tables and list of figures pages to be a specific height on the page?

text: The titles on the pages for list of contents, list of tables and list of figures are not at the height that I want them to be. I need them to go further up on the page. How do I do this?


title: break line within mathescape in listing

text: How do I solve the evergreen problem of breaking a long equation into multiple lines but this time within the `lstlisting[mathescape]` environment. Attached is the minimum working example.               \documentclass{standalone}     \usepackage{listings}          \begin{document}          \begin{lstlisting}[mathescape]     $\displaystyle     a = b =c =  d =e \\ =f =g =e =h = \alpha     $     \end{lstlisting}     \end{document}      ![enter image description here](http://i.stack.imgur.com/hEPEA.png)


title: Why can I not vsplit a parbox? (and fbox alignment, and unvbox syntax)

text: I was trying to experiment with the code in this answer: Breakable vboxes, and I got something I didn't expect; consider this MWE:               \documentclass{article}     \usepackage{lipsum}     \usepackage{xcolor}     % \usepackage{lua-visual-debug}          \pagecolor{yellow!10}     \begin{document}          \lipsum[1]          \def\shouldUseParbox{1} % comment to undefine          \newbox\mybox     \ifx\shouldUseParbox\undefined%       %       \setbox\mybox=\vbox{%         \rightskip=35mm%         \lipsum[2-4]       }       %     \else% \shouldUseParbox defined:       %       \setbox\mybox=\vbox{%         \parbox[t]{0.7\textwidth}{%           \lipsum[2-4]         }%       }       %     \fi          First bit here:     \setlength{\fboxsep}{0pt}          % \copy\mybox     \hskip-1\parindent %\fbox will indent;     \fbox{\copy\mybox} %ok          \newbox\myboxtemp     \setbox\myboxtemp=\vsplit\mybox to 0.3\textheight          Split bit here:          % \copy\myboxtemp % ok     % \unvbox\myboxtemp % ok; same out as \copy in this case     \hskip-1\parindent %\fbox will indent;     \fbox{\copy\myboxtemp}          remains here:          \hskip-1\parindent %\fbox will indent;     \fbox{\copy\mybox}          % \setbox\myboxtemp=\unvbox\myboxtemp % "! A <box> was supposed to be here." ??     % \fbox{\unvbox\myboxtemp} % "! Missing } inserted." ??          \end{document}      If I want to `\vsplit` a parbox placed in a vbox (`\shouldUseParbox` is active, as in the MWE), then I get this (`lua-visual-debug`) output (click for full res): ![minitestA.png](http://i.stack.imgur.com/RT2Adm.png) ... which is totally unexpected: there is nothing on the first page - and I cannot really tell if the boxes are split, even if the framebox indicates that is the case; in any case, the boxes aren't interleaved with the rest of the text. Now, if `\shouldUseParbox` is inactive - which means contents directly in a vbox with rightskip (as in the answer posted above), then all works as expected (click for full res): ![minitestB.png](http://i.stack.imgur.com/dPxFMm.png) My questions are:   1. Why can I not vsplit a parbox (in a vbox)? All I know is `\parbox` is a LaTeX command, while `\vsplit` and rest are TeX core... What should one do if one need to split `\parbox` material?   2. You can see I have to "unindent" (with `\hskip-1\parindent`), so that the `\fbox` output is at the same position, as when fbox isn't used - why is this so?   3. Why can I use syntax like `\fbox{\copy\myboxtemp}` - but I cannot use `\fbox{\unvbox\myboxtemp}` ?? (I thought the effect of `\unvbox` was the same as `\box` and `\copy`, but apparently not?)


title: pdflatex nonstopmode with TikZ stops compiling

text: I compiled a TikZ code using pdflatex `-interaction=nonstopmode`. Depending on code errors, compiling stops. I want to know what went wrong. Let me show you two cases, both of which involve a code error each. Case 1: "`$`" is missing in the 6th line (`\node` at...). Compiling does NOT stop.               \documentclass{standalone}     \usepackage{tikz}     \begin{document}          \begin{tikzpicture}               \draw [help lines] (0,0) grid (2,2);               \node at (1,1) {$x^2};          \end{tikzpicture}     \end{document}      Case 2: "`;`" is missing at the end of the 5th line (`\draw`...). Compiling STOPS. I have to press keys to continue.               \documentclass{standalone}     \usepackage{tikz}     \begin{document}          \begin{tikzpicture}               \draw [help lines] (0,0) grid (2,2)               \node at (1,1) {$x^2$};          \end{tikzpicture}     \end{document}      Is Case 2 an expected result? If so, how can I make compiling non-stop? Your help is appreciated.


title: how to decorate a parametric function drawn with \datavisualization?

text: I have to plot a few parametric curves like the one on the left below, and I would like to add small arrows to represent the direction of the plot as parameter _t_ increases from 0 to π. I know how to add arrows on a curve using `postaction=decorate` as shown on the right example, but this does not appear to work on curves rendered by `\datavisualization`. Is there any other way to do it? ![examples](http://i.stack.imgur.com/y84fd.png) Essentially I would just like to equip the left plot with those blue arrows. Here is the code I have for the above picture:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{arrows}     \usetikzlibrary{decorations.markings}     \usetikzlibrary{datavisualization}     \usetikzlibrary{datavisualization.formats.functions}          \begin{document}          \begin{tikzpicture}[decoration={markings,       mark=between positions 0 and 1 step 3mm       with { \arrow[blue]{>};}}]          % Decoration works here...     \draw[red,postaction=decorate] (2,0) to[out=-90,in=85] (4,0);          % ...but is ignored here.     \datavisualization[school book axes,                        visualize as smooth line=f,                        all axes={include value/.list={1,-1}},                        f={style={red,postaction=decorate}}                        ]     data [format=function,set=f] {       var t : interval [0:pi] samples 50;       func x = cos(3 * \value{t}r) * cos(\value{t}r);       func y = cos(3 * \value{t}r) * sin(\value{t}r);     };     \end{tikzpicture}     \end{document}      **EDIT:** Two days later, I realized I could work around this by drawing the function in several pieces as follows:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{spy}     \usetikzlibrary{datavisualization}     \usetikzlibrary{datavisualization.formats.functions}          \begin{document}          \begin{tikzpicture}[spy using outlines={circle, magnification=5, size=1cm, connect spies}]          \foreach \i in {1,...,6}     \datavisualization[school book axes,                        visualize as smooth line=f,                        all axes={include value/.list={1,-1}},                        f={style={red,->[blue]}}                        ]     data [format=function,set=f] {       var t : interval [pi*(\i-.5)/6:pi*(\i+.5)/6] samples 10;       func x = cos(3 * \value{t}r) * cos(\value{t}r);       func y = cos(3 * \value{t}r) * sin(\value{t}r);     };          \spy [green] on (.72,0.18) in node (zoom) at (.8, 1);     \end{tikzpicture}     \end{document}      ![second attempt](http://i.stack.imgur.com/YW6nS.png) However this has several drawbacks:   1. decomposition of the range in six parts is really dependent on the function I'm drawing,    2. I'm drawing the axes 6 times on top of each other and for some reason this produce thicker axes,   3. because the arrow tip is not flat, there is some gap between the end of one function piece and the start of the next one (as shown by the spy node).


title: Custom name & justification, single line spread and "within chapter" numbering of figure captions

text: I now know how to add images with captions but still need help how to tweak the captions.               \begin{figure}[h]     \begin{center}     \includegraphics[width=100mm]{01.jpg}     \caption*{\textbf{Bild 2.1:} Curtiss XP-23 mit einem Turbo-Superlader, 1923. Arbeitsergebnis von Sanford Moss, der US-Armee und der GE Company.}         \end{center}     \end{figure}      And my code:               \documentclass[10pt]{report}      \usepackage[german]{babel}     \usepackage[utf8]{inputenc}     \usepackage{titlesec}     \usepackage[left=35mm,right=35mm,top=35mm,bottom=35mm]{geometry}      \usepackage{graphicx}     \titleformat{\section}{\huge\bfseries}{\thesection}{1em}{}     \titleformat{\chapter}{\huge\bfseries}{\thesection}{1em}{}     \titlespacing*{\section} {0pt}{3.5ex plus 1ex minus .2ex}{8.3ex plus .2ex}     \titlespacing*{\chapter}{0pt}{2.0cm}{2cm}     \linespread{1.8}     \setlength\parindent{0pt}     \begin{document}      Here is my code, I need to remove the linespacing of the caption and to left- align it and to remove _Abbildung 1_ because now I'm in the second chapter and it's the first image so _Bild 2.1_ or can you tell me how to connect the image to the chapter? enter image description here


title: Include Abstract & References page in ToC using tocbibind

text: The code below will print a table of contents that lists the Contents page, section and subsection. The contents page itself is on page ii, and the abstract should come before it, but it doesn't appear on the ToC. Also, how would I get the bibliography on my ToC as well? Given that I don't use a dedicated `\section{Bibliography}`               \documentclass[a4paper,12pt]{scrartcl}          \usepackage{tocbibind}          \begin{document}          \newpage     \pagenumbering{roman}     \newpage     \section*{Abstract}     \newpage     \tableofcontents     \newpage          \pagenumbering{arabic}     \setcounter{page}{1}     \section{Section 1}          \subsection{Subection of Section 1}          \newpage     \printbibliography          \end{document}


title: How to space '|'?

text: I write a lot `|`, for instance, `even numbers = \\{ z | z \in Z, z mod 2 = 0 \\}`. But the space around `|` does not look enough... I tried `\mathbin{|}` and `\quad | \quad`, they do not look great either... Could anyone tell me a conventional way to put space around `|`?


title: Enumerate with different first line?

text: I want to do an enumeration, but the first line should be bolded, see e.g. this picture: ![enter image description here](http://i.stack.imgur.com/wnavF.png) What is blue I want to have in bold. In addition, I don't know how to generate a new line for the other text in the enumerate environment, should I just use `\\\` ?


title: Including GIF image in pdflatex document

text: I'm trying to include GIF image in my LaTeX document. To my understanding this is possible. I'm using `pdflatex` and I get the following message:               ERROR: LaTeX Error: Unknown graphics extension: .gif.      And the figure I try is:               \begin{figure}       \centering       \subfloat[]{\label{fig:a}}{\includegraphics[width=0.45\textwidth]{Safinya_lamelar.png}}       \subfloat[]{\label{fig:b}}{\includegraphics[width=0.45\textwidth]{Safinya_hex.png}}       \subfloat[]{\label{fig:c}}{\includegraphics[width=0.45\textwidth]{Farago_lamelar.gif}}       \subfloat[]{\label{fig:d}}{\includegraphics[width=0.45\textwidth]{Farago_hex.gif}}       \caption{Lipoplexes}       \label{gene.fig1}     \end{figure}        What am I doing wrong?


title: Problems with mdframed

text: I am trying to put a box around matlab code but the bottom of the box sits extremely close to the next line. I try a line break but it does not work. Any ideas?               \documentclass[a4paper,12pt]{article}     \usepackage{mdframed}     \begin{document}     ...get,\\          \begin{mdframed}     \begin{verbatim}     S = 55; % Value of the underlying     ...     V =         2.2147   %This is the value of our put option     \end{verbatim}     \end{mdframed}     \end{document}     bla bla bla


title: How to print the section name without the section number in a fancyhdr header?

text: I've copied a code to have a header that prints the section name on the left and my name on the right:               \usepackage{fancyhdr}          \pagestyle{fancy}     \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}          \fancyhf{}          \rhead{\fancyplain{}{MyName}}     \lhead{\fancyplain{}{\rightmark }}      \cfoot{\fancyplain{}{\thepage}}      The problem is that it prints the section number as well, which I don't want. I've experimented with removing the 1's in the code but that doesn't work.


title: Images Coming top down not side by side

text: \frame{     \begin{figure}[h!] \centering         \begin{subfigure}[h]{0.49\linewidth} \centering             \includegraphics[scale=0.20]{acf_trace1.jpg}             \label{fig:a}         \end{subfigure}     ~         \begin{subfigure}[h]{0.49\linewidth} \centering             \includegraphics[scale=0.20]{acf_trace3.jpg}             \label{fig:b}         \end{subfigure}         \caption{XYZ}     \end{figure}}


title: Avoid footnotes from appearing before mark

text: I have these `\footnotetext` and `\footnotemark` as illustrated in the figure below. I used these tags to enforce my own numbering (and because using only `\footnote` was not working the way I expected). ![My footnotetext/footnotemark as they are rendering](http://i.stack.imgur.com/pLymg.png) The code I use for generating the mark is:                \caption{Lista de notas presentes em um piano de 88 teclas,      com notação em Inglês, frequência em Hertz e comprimento de      onda em centímetros.\protect\footnotemark[1]}      Is there any way I can enforce my `\footnotetext` to appear in the same page as my `\footnotemark`?


title: Repeating frame contents

text: Supposing that I'll use always two blocks on each frame. Then, I'd like to have a simple way to do the following, without copy/paste procedure: On each frame (except the first one),   * the first block should be the second block from the previous frame. So I guess that something similar to the code below would be possible and helpful:               \begin{frame}     % code to call the second block from the previous frame     \begin{block} % the new block, to be used again on the next frame     \end{block}     \end{frame}      If it's possible to use some overlays it would be nice. Any idea?


title: TikZ exits with "do not know the key '/tikz/restrict y to domain"

text: When I try to compile, I get the following error.               Runaway argument?     samples=60, domain=0:10, xmax=10.5, restrict y to domain=0:10, axis l\ETC.     ! Paragraph ended before \pgfplots@@environment@axis was complete.     <to be read again>                         \par       with the input               \begin{tikzpicture}     \begin{axis}[samples=60,         domain=0:10, xmax=10.5,         restrict y to domain=0:10,         axis lines=left,         y=0.5cm/3,         x=0.5cm,         grid=both,         xtick={0,...,10},         ytick={0,3,...,9},         compat=newest,         xlabel=$x$, xlabel style={at={(1,0)}, anchor=west},         ylabel=$y$, ylabel style={rotate=-90,at={(0,1)}, anchor=south}          ]     \addplot [red] {x};     \addplot [black] {x^2};     \end{axis}     \end{tikzpicture}      Not working. Error is               ! Package pgfkeys Error: I do not know the key '/tikz/restrict y to domain' and      I am going to ignore it. Perhaps you misspelled it.          See the pgfkeys package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.32 \end{axis}          ?      with the MWE               \documentclass{article}     \usepackage{amsmath,amssymb,amsfonts}     \usepackage{epsf,graphicx,tikz,graphics}     \usepackage{pgfplots}     \usepackage{url}     \begin{document}     \title{}     \author{}     \maketitle     \begin{tikzpicture}     \begin{axis}[samples=60,         domain=0:10, xmax=10.5,         restrict y to domain=0:10,         axis lines=left,         y=0.5cm/3,         x=0.5cm,         grid=both,         xtick={0,...,10},         ytick={0,3,...,9},         compat=newest,         xlabel=$x$, xlabel style={at={(1,0)}, anchor=west},         ylabel=$y$, ylabel style={rotate=-90,at={(0,1)}, anchor=south}     ]     \addplot [red] {x};     \addplot [black] {x^2};     \end{axis}          \end{tikzpicture}          \end{document}


title: How do I create multiple glossary entries for the same definition?

text: When I have many glossary words that describe the same, how do I neatly put these into the glossary? Ideally, something like:               \newglossaryentry{digest, hash, hash code} {     name=digest, description={The output of a hash function).}     }      producing     **digest** , **hash** or **hash code** The output of a hash function. is what I'm looking for, and I can't seem to find this anywhere.


title: Reduced word spacing when wrapping text in a cell

text: I'm wrapping text in a table, some of the cells have 4 words in, wrapped to have two in the first line and two in the second. LaTeX introduces a large space between the first two words so that the second word is at the end of the cell, and the spacing looks looks pretty messy. I can't reduce the cell size without it spreading over too many lines and can't increase the cell size without taking up too much space               \begin{table}     \begin{tabular}{p{1.6cm} p{1.8cm} p{1.8cm} p{1.8cm} p{1.8cm} p{1.8cm}} \hline      Wavelength (nm) & Rb trap depth ($\mu$K) &  Cs trap depth ($\mu$K) & Heating rate ($\mu$K/s) & Selectivity & Sustainability (s) \\     1&2&3&4&5&6     \end{tabular}     \end{table}      Here `Rb` and `trap` and also `Cs` and `trap` are so widely spaced they look like they're in the next column and I don't want to use lines to separate the columns. Any thoughts on how to stop LaTeX spacing out these words?


title: Asymptote 3D: how to draw a surface with a pattern (e.g. checkerboard)?

text: In Asymptote, I'd like to draw two intersecting planes, one with a solid color and another with some pattern (e.g. checkerboard), so that it would look okay if printed black and white. However, the pattern module doesn't appear to work. The code below is what I'm trying to get to work, with the statement that I wished drew that plane commented out (I understand of course that function doesn't exist, I just don't know which one to use).               settings.prc = false;     defaultpen(fontsize(10pt));     import three;     import graph3;     import patterns;     size(11cm,0);          real rot_param = 0.01;     currentprojection=perspective((10000,-20000,100000),up=(-rot_param,1-rot_param,0));     currentlight = (4,-1,4);          render render = render(compression=Low, merge = true);          limits((0,0,0), (3,3,3));          real delta = 0.75;     real dterm = (1-delta)/delta;          draw(surface(O -- (dterm,0,0) -- (3,3-dterm,0) -- (3,3,0) -- cycle), orange+opacity(0.5), render);     draw(surface(O -- (3,3,0) -- (0,3,0) -- cycle), orange+opacity(0.5), render);     draw(surface(O -- (3,3,0) -- (3,3,3) -- (0,0,3) -- cycle), lightred+opacity(0.5), render);     draw(surface((dterm,0,0) -- (3,3-dterm,0) -- (3,3-dterm,3) -- (dterm,0,3) -- cycle), lightblue+opacity(0.5), render);          // Does not work!     //filldraw(surface((dterm,0,0) -- (3,3-dterm,0) -- (3,3-dterm,3) -- (dterm,0,3) -- cycle), pattern("checker"));          xaxis3("",Bounds,black+dashed,InTicks(3,1));     yaxis3("",Bounds,black+dashed,InTicks(3,1));     //zaxis3("",Bounds,black,InTicks(3,1));     draw(O -- 3.5X,arrow=Arrow3);     label("$\gamma(C)$",3.7X);     draw(O -- 4Y,dashed, arrow=Arrow3);     label("$\gamma(D)$",4.2Y);     draw(O -- 4Z,arrow=Arrow3);     label("$\phi(C,\theta_0)$",(-0.2,0,5));     label("1",(-0.1,0,3));          draw(box((0,0,3),(3,3,3)), black+linewidth(0.6pt));     draw((0,3,0) -- (0,3,3), dashed);     draw((3,3,0) -- (3,3,3));     draw((3,0,0) -- (3,0,3));      This is how it looks (I'd like to make at least the blue plane checkerboard): ![Generated plot](http://i.stack.imgur.com/pnISq.png) I would be very grateful if anyone knows how to do this. In case you can't tell I have some other problems too, so I'll just throw these out there if anyone happens to know:   * I'm using perspective but I'd like to use the "oblique" perspective except from "below", so that the axis pointing "out of the screen" ($\phi(C,\theta_0)$ ) is actually pointing up and to the left a bit. I've tried to approximate it as you can see. Is there a way to do this?   * How do I get the last "3"s to show up as labels on the axis?   * I don't want the vertical axis to scale (I want it bigger than it appears, so I'm just relabeling, e.g. the 1). Is there a way to do this automatically?


title: Spider Graph Legend and Caption

text: I would like to add: legend (Red, blue and Green) and figure caption (with legend) for my Keviat plot. The code of my keviat is listed below. Thank you               \documentclass[]{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[upright]{fourier}     \usepackage[usenames,dvipsnames]{xcolor}     \usepackage{tkz-kiviat,numprint,fullpage}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}[label distance=.15cm,rotate=30,scale=0.75]          \tkzKiviatDiagram[radial=3,lattice=7,gap=1,step=1,label space=2]%         {Cover,         Droppings,         Other,         }     \tkzKiviatLine[thick,color=red,fill=red,label=SiteA](0.78,5.59,2.02);label{p4}         \tkzKiviatLine[thick,color=blue,fill=blue](5.92,1.57,3.06);label{p5}         \tkzKiviatLine[thick,color=green,fill=green](2.9,4.6,3.6);label{p6}         \tkzKiviatGrad[suffix=\%,unity=10](0)     \end{tikzpicture}               \end{document}


title: Last chapter number

text: Is there a way similar to what is achieved by the `lastpage` package to get the Last Chapter number? I would then like to use this information to design chapter headings.


title: Complete Figure using Tikz

text: I want to draw the figure where x size and y size will be different. Mark of x will be like 10, 20, 30 etc. and y will be 0.1, 0.2, 0.3 etc. It will be also nice if there is a small grid in the back ground.               \begin{figure}[]     \begin{tikzpicture}[x=0.080cm,y=40.160cm] \centering     \begin{axis}[       ylabel=$\delta \uparrow $,       xlabel=$p \rightarrow$,       legend style={         at={(0.95,0.05)},         anchor=south east       },       axis equal image]          \addplot[no marks] coordinates{ ( 2 , 0.33 ) ( 3 , 0.33 ) ( 4 , 0.33 ) ( 5 , 0.33 ) ( 6 , 0.33 ) ( 7 ,     0.33 ) ( 8 , 0.33 ) ( 9 , 0.33 ) ( 10 , 0.33 ) ( 11 , 0.33 ) ( 12 , 0.33 ) ( 13 , 0.33 ) ( 14 , 0.33 ) ( 2 , 0.33 ) ( 3 , 0.33 ) ( 4 , 0.33 ) ( 5 , 0.33 ) ( 6 , 0.33 ) ( 7 ,     0.33 ) ( 8 , 0.33 ) ( 9 , 0.33 ) ( 10 , 0.33 ) ( 11 , 0.33 ) ( 12 , 0.33 ) ( 13 , 0.33 ) ( 14 , 0.33 ) ( 15 , 0.33 ) ( 16 , 0.33 ) ( 17 , 0.33 ) ( 18 , 0.33 ) ( 19 , 0.33 ) ( 20 , 0.33 ) ( 21 , 0.33 ) ( 22 , 0.33 ) ( 23 , 0.33 ) ( 24 , 0.33 ) ( 25 , 0.33 ) ( 26 , 0.33 ) ( 27 , 0.33 ) ( 28 , 0.33 ) ( 29 , 0.33 ) ( 30 , 0.33 ) ( 31 , 0.33 ) ( 32 , 0.33 ) ( 33 ,     0.33 ) ( 34 , 0.33 ) ( 35 , 0.33 ) ( 36 , 0.33 ) ( 37 , 0.33 ) ( 38 ,     0.33 ) ( 39 , 0.33 ) ( 40 , 0.33 ) ( 41 , 0.33 ) ( 42 , 0.33 ) ( 43 ,     0.33 ) ( 44 , 0.33 ) ( 45 , 0.33 ) ( 46 , 0.33 ) ( 47 , 0.33 ) ( 48 ,     0.33 ) ( 49 , 0.33 ) ( 50 , 0.33 ) ( 51 , 0.33 ) ( 52 , 0.33 ) ( 53 ,     0.33 ) ( 54 , 0.33 ) ( 55 , 0.33 ) ( 56 , 0.33 ) ( 57 , 0.33 ) ( 58 ,     0.33 ) ( 59 , 0.33 ) ( 60 , 0.33 ) ( 61 , 0.33 ) ( 62 , 0.33 ) ( 63 ,     0.33 ) ( 64 , 0.33 ) ( 65 , 0.33 ) ( 66 , 0.33 ) ( 67 , 0.33 ) ( 68 ,     0.33 ) ( 69 , 0.33 ) ( 70 , 0.33 ) ( 71 , 0.33 ) ( 72 , 0.33 ) ( 73 ,     0.33 ) ( 74 , 0.33 ) ( 75 , 0.33 ) ( 76 , 0.33 ) ( 77 , 0.33 ) ( 78 ,     0.33 ) ( 79 , 0.33 ) ( 80 , 0.33 ) ( 81 , 0.33 ) ( 82 , 0.33 ) ( 83 ,     0.33 ) ( 84 , 0.33 ) ( 85 , 0.33 ) ( 86 , 0.33 ) ( 87 , 0.33 ) ( 88 ,     0.33 ) ( 89 , 0.33 ) ( 90 , 0.33 ) ( 91 , 0.33 ) ( 92 , 0.33 ) ( 93 ,     0.33 ) ( 94 , 0.33 ) ( 95 , 0.33 ) ( 96 , 0.33 ) ( 97 , 0.33 ) ( 98 ,     0.33 ) ( 99 , 0.33 ) };          \addlegendentry{$\tau(r)$}     \end{axis}     \end{tikzpicture}     \caption{}\label{fig1}     \end{figure}      I can do the following. Now need to increase y axis scale.               \centering       \begin{figure}[]     \begin{tikzpicture}[]     \begin{axis}[scale only axis,       x=1.0cm,y=300cm, % units     ylabel=$\delta \uparrow $,xlabel=$p \rightarrow$,legend style={at={(0.95,0.05)},anchor=south east}, axis equal image,     xmin=2, xmax=15, ymin=0, ymax=1.0,     xtick = {0, 3, 6, 9, 12, 15}, ytick = {0.2, 0.3,0.4,0.5,0.6,0.7}]          \addplot[no marks] coordinates{ ( 2 , 0.33 ) ( 3 , 0.33 ) ( 4 , 0.33 ) ( 5 , 0.33 ) ( 6 , 0.33 ) ( 7 ,     0.33 ) ( 8 , 0.33 ) ( 9 , 0.33 ) ( 10 , 0.33 ) ( 11 , 0.33 ) ( 12 , 0.33     ) ( 13 , 0.33 ) ( 14 , 0.33 ) ( 2 , 0.33 ) ( 3 , 0.33 ) ( 4 , 0.33 ) ( 5 , 0.33 ) ( 6 , 0.33 ) ( 7 ,     0.33 ) ( 8 , 0.33 ) ( 9 , 0.33 ) ( 10 , 0.33 ) ( 11 , 0.33 ) ( 12 , 0.33     ) ( 13 , 0.33 ) ( 14 , 0.33 ) ( 15 , 0.33 ) };          \addlegendentry{$\tau(r)$}     \end{axis}


title: Polish, Russian and Greek in one file

text: Is there any way to use these three languages in one file? I've been trying to do this for several hours, and all I got are some cryptic errors. Could you provide me with a simplest possible working template, that would have some text in these three languages? And I would like to use UTF-8 everywhere, if it's possible.


title: customizing the algorithmic package: break and  loop labels

text: I would like to add two customizations to the algorithmic package: introduce a new break command and have the possibility to provide labels to the LOOP so that `break {label}` is clear to which loop is referring to. I tried to introduce the break command like this:               \newcommand{\algorithmicbreak}{\textbf{break}}      but this won't work, I get the unknown command error when I type `\BREAK` However, with this hack I can make it work but it is very unnice:               \renewcommand{\algorithmicprint}{\textbf{break}}     % then use it as      \PRINT      The LOOP labels I have no idea how to introduce. UPDATE: my full example                   \begin{algorithm}         \renewcommand{\algorithmicrequire}{\textbf{Input:}}         \renewcommand{\algorithmicensure}{\textbf{Output:}}         \renewcommand{\algorithmicprint}{\textbf{break}}         \caption{\text{My-Algorithm}}         \label{algo:blah}         \begin{algorithmic}[1]         \REQUIRE X         \ENSURE Y         % STEP 1         \STATE \COMMENT{{\bf Step 1}} some something         \LOOP % can't annotate the loop :(((             % STEP 2             \STATE \COMMENT{{\bf Step 2}} do something more             \IF {$a = b$}                 \RETURN $c$             \ELSE                 \LOOP % can't annotate the loop :(((                     % STEP 3                     \STATE \COMMENT{{\bf Step 3}} do some more                     \IF {$b = c$}                         \STATE $y = x$                         \PRINT % intending to break                     \ELSE                         % STEP 4                         \STATE \COMMENT{{\bf Step 4}} and yet some more                     \ENDIF                 \ENDLOOP             \ENDIF         \ENDLOOP         \end{algorithmic}         \end{algorithm}


title: Splitting an equation

text: \documentclass[12pt,a4paper]{thesis}          \usepackage{amsmath}\usepackage{amssymb}     \usepackage{graphicx}          \usepackage[left=1.25in, right=1.0in, top=1.25in, bottom=1.0in]{geometry}          \newcommand{\piRsquare}{\pi r^2}     \begin{document} \baselineskip=22pt            \begin{equation}         \begin{split} L(A) = c_{d} \int\limits_{0}^{\infty}  r^{d-1} \left( \frac{1}{2} \dot{A}^{2} \exp\left(-\frac{2 r^{2}}{R^{2}}\right) - \frac{1}{2}A^{2} \left(\frac{4r^{2}}{R^{4}}\right)\exp\left(-\frac{2 r^{2}}{R^{2}}\right)  \\          &\quad - A^{2} \exp\left(-\frac{2 r^{2}}{R^{2}}\right) + A^{3} \exp\left(-\frac{3 r^{2}}{R^{2}}\right) - \frac{1}{4} A^{4} \exp\left(-\frac{4 r^{2}}{R^{2}}\right) \right) dr,         \end{split}         \end{equation}     \end{document}      In the above equation, where have I done wrong?


title: How to use code folding with Aquamacs?

text: I would like to use code folding with Aquamacs but I don't find any reference to do it. I would like to fold the figure and the paragraph. I've already tried all the combination listed here. Can anybody give my a practical example to fold this code? And a `\section`.               \begin{figure}[h!]       \centering         \includegraphics[width=0.5\textwidth]{fiocco}        \caption{A running dog}         \label{fig:fiocc}     \end{figure}      I've used `C-c`,`C-o`,`C-r` but it doesn't work....


title: Searchbox for a table

text: I'm new to LaTeX. I was wondering if it is possible to create a searchbox for a table (in LaTeX) which would then work in the pdf. I don't want to just display the word as in the find function. I'd like the actual table to change depending on the row name, or date entered. I guess that it's not possible as there aren't any other questions like this, or maybe I haven't searched enough. Edit: I have a list of clients, each with their own numeric KPIs. And I want account managers to be able to view how their clients have performed. I could make a new chapter per client and have it all in there. But I want a quick summary of who has performed well depending on what kpi we are talking about. So text. Table, where after you type in your client the table becomes two or three rows. then text again. rather than text . huge table. scroll scroll scroll. text. Then if possible have a plot is also dependent on the search.


title: How to edit the \newenvironment{table} in .cls

text: **The "jfm.cls" code you can get in** http://journals.cambridge.org/data/relatedlink/jfm-ifc.zip And the table redefined is as follows in "jfm.cls"               \newcounter{table}     \renewcommand\thetable{\@arabic\c@table}     \def\fps@table{tp}     \def\ftype@table{1}     \def\ext@table{lot}     \newcommand\tablename{Table}     \def\fnum@table{\tablename~\thetable}          \newif\iffollowon     \newif\ifrmrule          \newcommand\followon{\global\followontrue}     \newcommand\norule{\global\rmruletrue}          \newenvironment{table}       {\@float{table}\fstyle@table        \iffollowon \else \vspace*{9.5\p@}\fi        \global\followonfalse        \rule{\textwidth}{.5\p@}\vskip\floatsep\relax}       {\ifrmrule \global\rmrulefalse \else \rule{\textwidth}{.5\p@}\fi        \end@float}               \newenvironment{table*}{\@dblfloat{table}\fstyle@table}{\end@dblfloat}     \newenvironment{plaintable}{\@float{table}\fstyle@table}{\end@float}          \def\fstyle@table{\normalfont\small\rmfamily}     \def\fjust@table{\centering}     \def\fcapjust@table{\centering}     \def\fcapsize@table{\normalfont\small\scshape}     \def\fcapstyle@table{\normalfont\small\rmfamily}      And when I use the table, it always on the top. How to edit to not be float or other way to make it below the section title. ![enter image description here](http://i.stack.imgur.com/kGrVA.jpg) And the code is               % This is file according to the JFM2esam.tex     % Copyright (C) 1996, 1997 Cambridge University Press          \NeedsTeXFormat{LaTeX2e}          \documentclass{jfm}          \usepackage{graphicx}     \usepackage{natbib}               \title[Guidelines for authors]{Guidelines for authors and submission template}          \author[A. N. Other, H.-C. Smith and J. Q. Public]%     {Alan N. Other$^1$%       \thanks{Email address for correspondence: jfm@damtp.cam.ac.uk},\ns     H. - C. Smith$^1$\break     and J. Q.  Public$^2$}          % NOTE: A full address must be provided: department, university/institution, town/city, zipcode/postcode, country.     \affiliation{$^1$Department of Chemical Engineering, University of America,     Somewhere, IN 12345, USA\\[\affilskip]     $^2$Department of Aerospace and Mechanical Engineering, University of     Camford, Academic Street, Camford CF3 5QL, UK}          \pubyear{2010}     \volume{650}     \pagerange{119--126}     % Do not enter received and revised dates. These will be entered by the editorial office.     \date{?; revised ?; accepted ?. - To be entered by editorial office}     %\setcounter{page}{1}     \begin{document}          \maketitle          \begin{abstract}     This file contains instructions for authors planning to submit a paper to the {\it Journal of Fluid Mechanics}. These instructions were generated in {\LaTeX} using the JFM style, so the {\LaTeX} source file can be used as a template for submissions. The present paragraph appears in the \verb}abstract} environment. All papers should feature a single-paragraph abstract of no more than 250 words, which provides a summary of the main aims and results.     \end{abstract}          \begin{keywords}     Authors should not enter keywords on the manuscript, as these must be chosen by the author during the online submission process and will then be added during the typesetting process (see http://journals.cambridge.org/data/\linebreak[3]relatedlink/jfm-\linebreak[3]keywords.pdf for the full list)     \end{keywords}          \section{How to submit to the \textbf{\textit{Journal of Fluid Mechanics}}}     Authors must submit using the online submission and peer review system, Scholar One Manuscripts (formerly Manuscript Central) at http://mc.manuscriptcentral.com/jfm. If visiting the site for the first time, users must create a new account by clicking on `register here'. Once logged in, authors should click on the `Corresponding Author Centre', from which point a new manuscript can be submitted, with step-by-step instructions provided. Authors must at this stage specify whether the submission is a standard paper, or a {\it JFM Rapids} paper (see  for more details). In addition, authors must specify an editor to whom the paper will be submitted from the drop-down list provided. Note that all editors exclusively deal with either standard papers or {\it JFM Rapids} (clearly indicated on the list), so please ensure that you choose an editor accordingly. Once your submission is completed you will receive an email confirmation.  Book reviews should not be submitted via the online submission site and should instead be submitted by email to c.p.caulfield@damtp.cam.ac.uk.          \section{Rules of submission}\label{sec:rules_submission}     Submission of a paper implies a declaration by the author that the work has not previously been published, that it is not being considered for publication elsewhere and that it has not already been considered by a different editor of the Journal. Note that a report on a conference must be submitted within 3 months of the meeting.          \section{Types of paper}\label{sec:types_paper}     \subsection{Standard papers}     Regular submissions to JFM are termed `standard papers'. Note that such papers must contain original research, as review articles are not published in JFM. Papers should be written in a concise manner; though JFM has no page limit, each paper will be judged on its own merits, and those deemed excessive in length will be rejected or will require significant revision.     \subsection{JFM Rapids}     {\it JFM Rapids} is an evolution of the Fast Track scheme, and is devoted to the rapid publication of short, high-impact papers across the full range of fluid mechanics. {\it Rapids}  must occupy 10 or fewer printed pages, and must be submitted in {\LaTeX} using the jfm.cls class file, so as to ensure that they meet the page limit and to expedite their production.  The principal and over-riding objective is to publish papers of the highest scientific quality. Once a paper is submitted, referees are asked to provide reports with a short turnaround.  In order to be accepted for publication in {\it JFM Rapids}, such papers must require only minor revisions to improve clarity, usually without recourse to a second round of refereeing.  Where the editor, guided by the referees, judges that a paper has merit but requires substantial revision that will require significant refereeing, a decision of `revise and resubmit' will be given. On re-submission, such papers will be handled as standard JFM papers and will not subsequently appear as {\it JFM Rapids}.          {\it Rapids} will be published online within one month of final acceptance.  They will appear within a new devoted section on the Journal of Fluid Mechanics website, which has been re-designed as part of this development. Each {\it Rapid} will still be cited and indexed as a JFM article but with a distinctive {\it Rapids} identifier, and will be assigned to a JFM volume. {\it Rapids} will not be included in the regular print versions of JFM, but a collection of all {\it Rapids} will be available to order in print at the end of each year. {\it JFM Rapids} will have free colour and for the first year of operation will be freely accessible to all.               \appendix     \section{}\label{appA}          \begin{table}       \begin{center}     \def~{\hphantom{0}}       \begin{tabular}{lccc}           $a/d$  & $M=4$   &   $M=8$ & Callan  \\[3pt]            0.1   & 1.56905 & ~~1.56~ & 1.56904\\            0.3   & 1.50484 & ~~1.504 & 1.50484\\            0.55  & 1.39128 & ~~1.391 & 1.39131\\            0.7   & 1.32281 & ~10.322 & 1.32288\\            0.913 & 1.34479 & 100.351 & 1.35185\\       \end{tabular}       \caption{Values of $kd$ at which trapped modes occur when $\rho(\theta)=a$}       \label{tab:kd}       \end{center}     \end{table}                    \end{document}      **Then I get the advice from @masu it makes the table below,but get more empty space like above** ![enter image description here](http://i.stack.imgur.com/m4W0E.jpg) @masu solve the question. Then if I add the \newpage, it just make the table bottom like this. How can it be solved. ![enter image description here](http://i.stack.imgur.com/tnNlH.jpg)


title: Suppress fancyhdr warnings

text: Is there an easy way to disable warnings from fancyhdr that my header isn't wide enough? I'm happy with how it looks, and it doesn't intersect text, etc.