title: Weird behavior of Partial TOC with titletoc

text: I have been looking for two hours for an explanation to the problem I am facing, and so far I found no hint. In a document of the `book` class, I am trying to include partial TOC at the beginning of my chapters after some text introducing the chapter. I was using the `minitoc` package successfully for that purpose. However, I needed the `[toctitles]` option of package `titlesec` to fix problems due to wide titles in headers. As `minitoc` complained that the use of `titlesec` was not compatible, I tried to get `titletoc` to generate my partial TOCs. Here is a test document demonstrating my problem:               \documentclass[12pt,a4paper]{book}          \usepackage[hidelinks]{hyperref}     \usepackage{titletoc}     \usepackage[toctitles]{titlesec}          \newcommand{\PartialToc}{\vspace*{2pc}\hrule\vspace*{1pc}%     \startcontents[chapters]\vbox{\bf\Large Outline}     \printcontents[chapters]{}{1}{}\vspace*{1pc}\hrule}          \begin{document}          \chapter{First Chapter}          Text Text Text Text Text Text Text Text Text Text Text Text Text          \PartialToc          \section{First Section}     \section{Another Section}     \subsection{One Subsection}     \subsection{Two Subsection}          \chapter{Second Chapter}          Text Text Text Text Text Text Text Text Text Text Text Text Text          \PartialToc          \section{Last Section}     \subsection{Three Subsection}     \subsection{Four Subsection}          \end{document}      This results in the following partial TOC for chapter 1 ![enter image description here](http://i.stack.imgur.com/XAKk8.png) Notice the lines "chapter.1" and "section.2.1 subsection.2.1.1 subsection.2.1.2" before and after the TOC. I think this text comes from the last argument of the `\contentsline` instructions in the `.ptc` file, but I have no idea why they show up ... Anyone knows how to get rid of them ?


title: stacking negative value for ybar

text: I would like my `ybar`s to be stacked the same way positively than negatively. It works for positive values but not for negative ones. On the given example, ThirdCol should be stacked negatively. Any idea to stack it ?               \documentclass[border=5mm]{standalone}          \usepackage{pgfplots}          \pgfplotstableread{     Year    OneCol  SecCol  ThirdCol ForthCol     2005    10     50      -10     30       2006    -40     60      -15     90     2007    -20     60      -15     60     }\datatable               \pgfplotsset{   width=5cm,             compat=newest,             height=5cm}     \usepgfplotslibrary{dateplot}          \begin{document}%         \begin{tikzpicture}             \begin{axis}[                 x tick label style={/pgf/number format/1000 sep=},                 ybar stacked,                 bar shift=0pt,                 enlarge x limits=0.15,                 bar width=1em,                 ymin=-100,                 legend style={                     at={(0.5,-0.1)},                     anchor=north,                     draw=none }               ]     \addplot table [y index=1] {\datatable};       \addplot table [y index=2] {\datatable};        \addplot table [y index=3] {\datatable};        \addplot table [y index=4] {\datatable};       \legend{Factor1,Factor2,Factor3,Factor4}       \end{axis}     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/mzXpD.png)


title: Save length with \let command

text: I want to save `\fboxsep` length in `\oldfboxsep` and use it later. The following code doesn't work:               \newlength{\oldfboxsep}     \let\oldfboxsep\fboxsep % 3pt by default     \setlength{\fboxsep}{8pt}     \fbox{\begin{minipage}{.9\textwidth}       \setlength{\fboxsep}{\oldfboxsep}       Text\fbox{Box}Text     \end{minipage}}      While the following code works:               \newlength{\oldfboxsep}     \setlength{\oldfboxsep}{\fboxsep} % 3pt by default     \setlength{\fboxsep}{8pt}     \fbox{\begin{minipage}{.9\textwidth}       \setlength{\fboxsep}{\oldfboxsep}       Text\fbox{Box}Text     \end{minipage}}      What are the differences between these two ways?


title: Usage of \caption command in converting LaTeX files to HTML using tex4ht (For tables)

text: I am looking to convert TeX files into HTML using the htlatex command. I was previously having an issue with the formatting of my HTML file: the captions to my figures were skewed to the left of my page. I was able to correct this by including a configuration file (Thanks to @michal.h21) Now I am facing a similar kind of problem with the formatting of tables included in my HTML. I've been told I would possibly need more configuration files for the tables. The MWE to my problem is:               \begin{table}      \begin{center}       \begin{tabular}{c}        \includegraphics[width=\linewidth,keepaspectratio]{figs/tab1.png}       \end{tabular}       \caption{TestTable}      \end{center}     \end{table}      Any advice would be great! Thanks :)


title: Splitting a caption and cross-referencing

text: I'm currently writing my thesis and I'm struggling with my redefinition of the caption command. I've got large captions which I don't want to show up in my list of figures. Of each caption I want only to use the first sentence. In some captions I would like to refer to other floats using the cleveref package. Below a minimal example is given.               \documentclass{article}     \usepackage{cleveref}     \def\mcaption#1{%         \begingroup         \edef\@tempa{#1}%         \expandafter\endgroup         \expandafter\split\@tempa\relax     }     \def\split#1.#2\relax{\caption[#1]{#1.#2}}     \begin{document}     \listoffigures     \begin{figure}         \centering         Insert figure here         \mcaption{This is a working caption. One can see that ......}         \label{fig:abc}     \end{figure}     \begin{figure}         \centering         Insert figure here         \mcaption{This caption does not work. See also Figure \cref{fig:abc}}     \end{figure}     \end{document}      This fails to produce a PDF with the following error message: ./temp.tex:27: Undefined control sequence. \@cref ...oup =1\count@group =1\def \cref@variant {#1}\newif \if@secondref ... l.27 ... not work. See also Figure \cref{fig:abc}} ./temp.tex:27: Undefined control sequence. \if@secondref Is it possible to do what I want or should I forgo the idea of referencing other floats in a caption?


title: Unwanted line breaks after equation tag when using fleqn and leqno

text: When you use `fleqn` and `leqno` and assign your own equations tags with `\tag` to equations in environments such as `gather` and `align` and you assign a tag with a certain length, then there's a line break after the tag. Given the same condition except that environment `equation` is used instead does not cause line breaks. How can I avoid the line breaks in the former case? ![Example of the problem](http://i.stack.imgur.com/639Jj.png)               \documentclass[fleqn,leqno]{article}          \usepackage{amsmath}          \begin{document}          \begin{gather}       \tag{one}       1+1=2 \\       \tag{two}       2+2=4     \end{gather}          \begin{equation}       \tag{three}       1+1=2     \end{equation}          \end{document}


title: z-order (foreground/background) in pdflatex

text: I am using the `wallpaper` package to put a pre-made PDF on the title page of my LaTeX document. On the same page, I use the `textpos` package to insert some text and an image (with `\includegraphics` inside the `textblock` environment provided by `textpos`). This works beautifully, all is on the same page. Compiled on OSX, the image is rendered **behind** the PDF. Compiled on Windows, the image is **on top of** the PDF. The problem is, the PDF contains a transparent window with rounded corners, so I need the image to go behind the PDF to be masked properly. How can I determine the z-order in a LaTeX document?


title: Generate png images of chemical structure using LaTeX, dvipng and chemfig

text: How to generate `.png` images of chemical structures using `LaTeX`, `dvipng` & `chemfig` ? What packages need to be included ? Is there any reference article for same ?


title: Having trouble with MikTex and fonts for custom package, missing file

text: I'm trying to get a custom document class working on a Windows PC where I do not have administrative rights. MikTex can't access its package repository, and so far I've been forced to install a large amount of packages by hand which is really time consuming. Now, when I try to compile my document, I run into this bug:               Command Line:   pdflatex.exe --interaction=errorstopmode --synctex=-1 "main.tex"     Startup Folder: C:\Users\x\Downloads\rtthesisex-exjobb\rtthesisex          This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9)     entering extended mode     (C:\Users\x\Downloads\rtthesisex-exjobb\rtthesisex\main.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,      croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,      lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman     ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm     an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl     ishmax, welsh, loaded.     ----- SNIP (loading packages) -----     Option `squaren' provided!     )) (C:\Users\x\Downloads\rtthesisex-exjobb\rtthesisex\main.aux)     (C:\Users\x\AppData\Roaming\MiKTeX\2.9\tex\omljkpw.fd)     (C:\Users\x\AppData\Roaming\MiKTeX\2.9\tex\omsjkpw.fd)     (C:\Users\x\AppData\Roaming\MiKTeX\2.9\tex\omxjkp.fd)     (C:\Users\x\AppData\Roaming\MiKTeX\2.9\tex\ujkpexa.fd)     ("C:\Program Files\MiKTeX 2.9\tex\latex\base\ts1cmr.fd")     (C:\Users\x\AppData\Roaming\MiKTeX\2.9\tex\t1jkpk.fd)     ======================================================================     miktex-maketfm.exe: Try Again     miktex-maketfm.exe: Data: get host by name failed in tcp_connect()     ======================================================================     Running miktex-makemf.exe...     miktex-makemf: The jkpmn8t source file could not be found.          Running hbf2gf.exe...               hbf2gf (CJK ver. 4.8.0)                    Couldn't find `jkpmn.cfg'          miktex-maketfm: No creation rule for font jkpmn8t.          ! Font T1/jkpk/m/n/10=jkpmn8t at 10.0pt not loadable: Metric (TFM) file not fou     nd.     <to be read again>                         relax      l.17 \begin{document}          ? x     No pages of output.     Transcript written on main.log.               _____________________________________________________________________           PDFLaTeX Compilation Report (Pages: 0)           Errors: 1   Warnings: 1   Bad Boxes: 0     _____________________________________________________________________      I have no idea how to fix this manually. I have tried reinstalling the package, but there are no .cfg files included in kpfonts. Does anyone have another idea?


title: Changing the Label Font Size for xypic Commutative Diagrams

text: I'm using xymatrix in the xypic package to draw commutative diagrams and I would like for the math in the arrow labels to use the same font size as the math in the rest of the document. Is there an easy way to accomplish this? I've tried various tex commands for locally changing the font size but these don't seem to help. For example,               \documentclass[11pt,letterpaper, oneside]{book}     \usepackage{amsmath}     \usepackage{xypic}     \begin{document}     \xymatrixcolsep{5pc}\xymatrixrowsep{5pc}\xymatrix{     X \ar[d]_{\pi} \ar[rd]^f \\     X/\sim \ar[r]_{\xoversim{f}} & Y     }     \end{document}      produces symbols on the arrow labels that are considerably smaller than the other math symbols in the document. This is understandable since one uses subscript and superscript notation to indicate the labels but results in labels that are difficult to read.


title: Circuitikz doesn't recognize units

text: For example when I use `\ohm` or `\micro` it throws an error. For example, in the MWE:               \documentclass{article}     \usepackage{circuitikz}     \begin{document}     \begin{circuitikz} \draw         (0,0) to [C=$100\ohm$](2,0)         ;     \end{circuitikz}      It produces the error:               "Undefined control sequence:    \pgfk@/tikz/circuitikz/bipole/label/name ...0\ohm :     (0,0) to [C=$100\ohm$](2,0)"      I updated the package and it didn't help.


title: Removing keywords and subject descriptors from a ACM template

text: I'm trying to customize a ACM template, the Large Format Single Column one [1] and really the main thing I want to **get rid of is the subject descriptors and keywords part**. I realize how important they are in a journal but if I want to use the template for anything else, it would be really nice to be able to remove them. In the `.tex` source, this is present under the abstract like the following:               \end{abstract}          \category{H.5.2}{Information Interfaces and Presentation}{User     Interfaces}[Evaluation/\break methodology]     \category{H.1.2}{Models and Principles}{User/Machine Systems}[Human Information Processing]     \category{I.5.1}{Pattern\break Recognition}{Models}[Neural Nets]          \terms{Human Factors}     \keywords{Contour perception, flow visualization, perceptual theory, visual cortex, visualization}          \acmformat{Daniel Pineo, Colin Ware, and Sean Fogarty. 2010. Neural Modeling of Flow Rendering Effectiveness.}      If I remove any of this, all the abstract portion is gone, I realize that the `.cls` file needs to be edited but I am sure what part needs to be edited. I would really appreciate some guidance in where to look for to edit this and remove the cateogories and keywords parts. Thanks for the help!!


title: Add missing () to mathematical functions

text: I am trying to get LaTeX to render               ${f}^\prime = e^{x\,\log \cos x}\,\left(x\,\log \cos x\right)^\prime$      as               ${f}^\prime = e^{x\,\log \left (\cos \left (x  \right )  \right )}\,\left(x\,\log \left (\cos \left (x  \right )  \right )\right)^\prime$      thus automatically adding the missing (). If the functions have more than one argument, the parentheses will already be added (so there's no ambiguity). Does anyone know a quick and simple way to accomplish this?


title: Creation of index style files (complete references)

text: Where can I get the complete reference for creating the index style files in LaTeX? Could you please help me on this?


title: Italic shape needed in small caps fonts

text: I am using MiKTeX 2.5 version. Is there any possibility to change the small caps fonts in italic shape? I had tried as like below               \textit{\textsf{Small Caps}}% This will gives the Regular Small caps output.     \textsf{\textit{Small Caps}}% This will gives the italic output.      Could you please help me on this?


title: Why LaTeX uses upright uppercase Greek letters by default in math mode?

text: Why upper-case Greek letters are typeset in upright font, i.e., `\mathrm`? While at the same time, some upper-case Greek letters those are also Latin Letters ,e.g., `A` for `$\Alpha$`, `B` for `$\Beta$`, are typeset in `\mathnormal` font, which leads to inconsistency? Can anyone give some explanations? From the "Short math guide for LaTeX" by AMS, I've found: > **For obscure historical reasons** , the default font for lowercase Greek > letters in math formulas is italic while the default font for capital Greek > letters is upright/roman. So what are the historical reasons?


title: Times-itsc style file needed

text: Could you please help me on this.. Where can get the `times-itsc.sty` files? I found the times italic small caps in the below link:   http://homepages.inf.ed.ac.uk/sterratt/progs/italic-small-caps-times-latex I am getting the error while doing the procedure.


title: \begin{document} ended by \end{figure}

text: I have this error when I try to insert a figure, even if I insert just the               \begin{figure}          \end{figure}      with nothing inside. What might be happening? I use the following packages:               \usepackage{graphicx}     \usepackage[brazil]{babel}     \usepackage[utf8]{inputenc}     \usepackage[centertags]{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{amsthm}     \usepackage{newlfont}     \usepackage{styles/xthesis} %Thesis Style     \usepackage{styles/xtocinc} %Include Table of Contents as the first entry in TOC     \usepackage{todonotes}     \usepackage{tikz}     \usepackage{xkeyval}      and am using the Thesis sample that already comes with the WinEdt for windows.


title: Draw small cross at the center of the page

text: I want to draw a small cross at the horizontal and vertical center of my page. (at this position I want to glue in a CD). Should I create an image with a cross and center it or draw it directly with latex?


title: Could I use \columncolor with \only? (Beamer)

text: In Why can't I wrap \rowcolor in \only? (Beamer), there are solutions to how to use `\rowcolor` with `\only` in Beamer. Is there a way to use `\columncolor` in a similar way?


title: \colorbox{color}{text} without increasing the height and width of the cell in a table

text: When using `\colorbox{color}{text}` to put background color for the `text` in a table, the `text` with background color seems to take more space and makes the respective cell higher and wider. Is there a way to use `\colorbox{color}{text}` in a table cell without affecting the dimension of the cell?


title: Having the starred version of a theorem environment unnumbered - with ntheorem

text: I'm trying to switch from `amsthm` to `ntheorem`. (This is due to the incompatibility of `amsthm` with babel+Hebrew, see here and here; seems not to have been resolved.) I would like to have both a starred and unstarred versions of certain environments, with the starred version being unnumbered. With `amsthm` I would do:               \newtheorem{theorem}{Theorem}     \newtheorem*{theorem*}{Theorem}      and this does what I want. With `ntheorem`, this results in an error - `theorem*` is already defined; removing the second command, both environments come out numbered, and the difference is that the `theorem*` doesn't get included in the list of theorems (which I don't use anyway). I tried this both with the `[amsthm]` option of `ntheorem` and without it. Is there anything I can do other then give up `theorem*` in favor of something like               \newtheorem*{theoremstar}{Theorem}      ?


title: Explain "Please type another output file name: "

text: Please, explain why it asks something like this.               $ latex full.tex     ...          l.5 \begin{document}          (Press Enter to retry, or Control-D to exit; default file extension is `.tex')     Please type another output file name:       **.full.tex -file**               \documentclass{article}     \begin{document}     \section{Hello 1}          hello my name is \"{a}.          \section{hello my 2}          dad  \"{o}aeoeu\"{a}!          \end{document}      **[Comment] not writing -permission issue or privilege -issue**               $ ls -lsa .full.tex      4 -rwxrwxrwx 1 tester tester 160 2011-09-24 02:42 .full.tex      Alert: Do not do this on your machine, abusing root.               # latex .full.tex      This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)     entering extended mode     (./.full.tex     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh     yphenation, loaded.     (/usr/share/texmf-texlive/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texmf-texlive/tex/latex/base/size10.clo))     No file .full.aux.     latex: Not writing to .full.aux (openout_any = p).     ! I can't write on file `.full.aux'.     \document ...ate \openout \@mainaux \jobname .aux                                                        \immediate \write \@mainau...     l.5 \begin{document}          (Press Enter to retry, or Control-D to exit; default file extension is `.tex')      _P.s. I forget to mention -- I am using 11.04 Ubuntu at the moment, not yet tried on other machines. Maybe OS-related prob._


title: Mechanics of BibLaTeX: proper connection of .bib file

text: Ok, I've experienced weird behavior with TeXstudio. I want to add bibliography directly to `.bib` file while using `biblatex`. People seem to do in this way. I don't want bibliography inside of the `.tex` file, but want to separately modify the `.bib` file - this is the condition               \addbibresource{jobname.bib}          \begin{filecontents}{\jobname.bib}       @article{JoeDoe2012,         Author = {Joe Doe},         Year = {2012},         Title = {My article's title},         Journal = {My journal's title},         Editor = {Ben Editor},         URL = {http://webpage.com},       }          \end{filecontents}      In TeXstudio, in order to update (say after adding second item in `filecontents`), you have to delete all the files except `.tex` every time . Recompiling dozen times - no reaction, no update. Adding item directly to `.bib` file - no reaction, no update again after recompiling. During these operations it complains that another `.bib` file with project name already exists - adding entries there gives no result either. It breaks also when you just try add `.bib` file without `filecontents` directly to a `.tex` file now giving annoying error:               I have no clue what `\addbibresource` command is      Yes, after you've executed it twice with `filecontents`, same as saying I don't understand what is water while drinking Pepsi. The result is always unresolved references. In TeXnicCenter it seems that connection occurs after you add two of these and then remove `filecontents` - now you are able to edit `.bib` file and recompiling gives you updated results. I've always wanted to use TeXstudio due to GUI stuff but it keeps me failing over and over again.


title: Typesetting a dictionary containing pictures

text: I am seeking advice (any ideas) how to typeset a bilingual dictionary that will contain many pictures. The picture below shows the dictionary. Problems:   1. The lines in columns differ.    2. The spaces around pictures differ.   3. I guess it would be better if the headword remained with the picture (then more space will come) I understand that because of the picture the lines are stretched and the space as well. I am looking for general ideas. ![Dictionary containing pictures](http://i.stack.imgur.com/2Uh6D.png)


title: Embeding mpeg-4 video into presentation using media9

text: I am aware there is a fair amount of content on this topic on stack exchange, however, I am stuck with this problem for three days, and can't find a solution. I am trying to embed a animation into pdf presentation. First, I created video from set of jpg pictures, with the help of this webpage. AFAIK mpeg4 should play fine in acroread, judging from their help on the topic. This is what cp from first link:               mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc \     -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o myVideo.avi      After that, I tried to embed it into pdf using \media9. I am using texlive 2013 on Ubuntu 12.04. La code:               \includemedia[activate=onclick,width=0.94\textwidth]{\includegraphics{myFile.png}}{myVideo.avi}      There are no errors. I am testing on Vista with Adobe Reader X: placeholder works, but when I click play, black square ensues. P.S. Video works fine on Ubuntu, but when I try to run it on Vista, it complains about missing codec or something. Could this be the problem? Please help, I'm running out of time. tnx


title: Fixing a Commutative Diagram

text: I am using the `xymatrix` command... If I type the following code               \documentclass[11pt,oneside,a4paper,fleqn]{report}     \usepackage[all,cmtip]{xy}     \begin{document}     $\xymatrix{     0 \ar[r] & A \ar@{^{(}->}[r]&  B \ar[r] \ar[d] &  C \ar[d]  \\ D \ar[r] & E \ar[r] & F \ar[r] \ar[ru] &  G }$     \end{document}      everything works great... The thing is, however, that I want to get rid of $D$ and $E$ in the lower row... i.e. I want to have two rows of exact sequences with only the box on the left... but if I just delete the section `D \ar[r] & E \ar[r] &`, I get an error! What should I do? Thanks!


title: Creating Logo with Fancy Font

text: I am trying to creating a logo that resembles this one shown below, but I do not know the best way of going about it. I know of a fonts package that may be useful, but not sure how to overlay the letters on top of each as so. Would anyone know a neat way of accomplishing this? Picture of Logo: ![enter image description here](http://i.stack.imgur.com/2U63J.png)


title: expl3: Look at peeked ahead token

text: With `expl3`, I can `\peek_charcode:NTF`. For debugging, I would like to actually see the peeked-ahead tokens for each iteration of my loop, but have not seen a suitable token variable in the documentation.


title: Text wrap in tables (multirow package loaded)

text: I searched a bit, but I could not find a reliable way to wrap text in tables with columns spanning more than one row. Any ideas on how to fit this table in the page?:               \documentclass[12pt,a4paper]{article}     \usepackage{booktabs}     \usepackage{multirow}          \begin{document}         \begin{tabular}{cccc}         \toprule         & & \multicolumn{2}{c}{Logic of rule adoption} \\         \cmidrule{3-4}            & & Logic of consequences & Logic of appropriateness \\         \midrule         \multirow{2}{*}{Principal actor in rule adoption process} & EU-driven & External incentives model & Social learning model \\           & CEE-driven & Lesson-drawing model & Lesson-drawing model \\         \bottomrule         \end{tabular}      \end{document}


title: How can you set an enumerate counter which contains both letters and numbers?

text: I am including, using the `enumerate` environment, some sections from legislation. In legislation, it is common to indicate subsections which were added later through the use of letters. So, for example, we might have:               5    Awesome section          (1)  This subsection existed from the beginning.     (1A) This subsection was inserted later.     (2)  And we continue with the original Act      I'm having trouble inserting '(1A)' as an enumerate counter. When I use the `enumerate` package, and do:               \begin{enumerate}[(1A)]      the package appears to treat 'A' as the counter, and outputs '(AA)'. When I try to use `setcounter`, as in:               \begin{enumerate}         \setcounter{enumi}{1A}      I get               ! Package calc Error: `A' invalid at this point.      How can I insert '(1A)', or similar letter number combinations, as an enumerate counter? I'm not awfully fussed that it actually _count_ correctly; I'm just after identical formatting to a normal enumerate environment.


title: Push table in a gb4e exe environment (almost?) to the margin

text: I use the package `gb4e` to number my (linguistic) examples in tabular format. In some of these tables, I add an extra letter counter to (some of) the rows. When there is a letter counter in the first row, there needs to be space between `gb4e`'s number and the letter counter, as in the first example below (but perhaps not as much space as the example has). But when I don't have a letter counter in the first row, as when I use table headers, the huge gap between the example number and the letter takes up unnecessary space. In such cases, I would like to push the entire table leftwards so that the letter counters `a` and `b` end up right under the example number (or at least a lot closer to the margin than is the case now). Suggestions?               \documentclass{article}     \newcounter{mycounter}         \newcommand{\myletter}{         \refstepcounter{mycounter}         \themycounter)}         \renewcommand\themycounter{\alph{mycounter}}     \usepackage{gb4e}     \begin{document}          \begin{exe}     \ex         \begin{tabular}[t]{*3{l}}         \myletter & Word & Word\\         & Word & Word\\         \myletter & Word & Word\\         & Word & Word\\         \end{tabular}\setcounter{mycounter}{0}     \end{exe}          \begin{exe}     \ex         \begin{tabular}[t]{*3{l}}         & \textsc{Header} & \textsc{Header}\\         \myletter & Word & Word\\         & Word & Word\\         \myletter & Word & Word\\         & Word & Word\\         \end{tabular}\setcounter{mycounter}{0}     \end{exe}     \end{document}      ![enter image description here](http://i.stack.imgur.com/lX8X2.png)


title: XeTeX fails with undefined control sequence in texlive 2012/dev

text: I'm using XeTeX, and I'm trying to compile a document using the following command:               xelatex mydoc.tex      I'm getting the following error:               (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty     ! Undefined control sequence.     <argument> \ExplFileName          l.57 ...e}{\ExplFileVersion}{\ExplFileDescription}      What am I doing wrong? I don't even have `\usepackage{xparse}`, probably some other package loads it. My XeTeX version is: `XeTeX 3.1415926-2.3-0.9997.5 (TeX Live 2012/dev)` Any Ideas how to fix this? I'm Using http://jnovy.fedorapeople.org/texlive/packages.fc14/texlive- release.noarch.rpm in Fedora 14, if that is of any help.


title: TikZ: What affects the space between nodes placed with `below of=` syntax?

text: How does TikZ decide how much space to put between these two nodes:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{positioning}     \begin{document}     \begin{tikzpicture}       \node (a) {A};       \node [below of=a] (b) {B};       \draw (a.north west) rectangle (a.south east);       \draw (b.north west) rectangle (b.south east);     \end{tikzpicture}     \end{document}      And how can I change it? I've added some rectangles to illustrate the extent of the nodes. I can, of course, have more control as follows:               \begin{tikzpicture}       \node (a) {A};       \node at (a.south) [anchor=north] (b) {B};       \draw (a.north west) rectangle (a.south east);       \draw (b.north west) rectangle (b.south east);     \end{tikzpicture}      And then just add whatever space I want to `(a.south)` but this is less semantic and much more fiddly. There must be a way to globally change the space between nodes placed with the `positioning` library... To clarify, I'd ideally like to specify _the separation between node_ rather than the distance between node centres. This is because I have nodes of varying y-height and I'd like to have them have a uniform distance _between_ them.


title: How to make all math equations bold by default?

text: I am using the `bm` package which provides the `\bm` command to boldify equations. However, all my equations need to be bold, and I find using the `\bm` command tedious. Is there a way to make the equations (including inline equations) bold by default without wrapping them with the `\bm` command?


title: etoolbox ifblank error with xkeyval

text: I am trying to create my first class, which is basically just my ordinary preamble with a set of options. These options are handled by `xkeyval` using the following syntax:               \NeedsTeXFormat{LaTeX2e}     \ProvidesClass{myclass}[2013/07/19]          \RequirePackage{xkeyval}          \DeclareOptionX{firstoption}[]{\newcommand\myclass@firstoption{#1}}     \DeclareOptionX{secondoption}[]{\newcommand\myclass@secondoption{#1}}          \presetkeys{myclass.cls}{}{firstoption, secondoption} %sets all keys to their default values                                          %unless set by the user               \ProcessOptionsX\relax          \LoadClass{memoir}     \RequirePackage{etoolbox}          \title{\ifblank{\myclass@firstoption}{% check if firstoption is blank                     %do nothing         }{%             \myclass@firstoption: %         }%         \myclass@secondoption%     }      The last piece of code is supposed to output `firstoption: secondoption` if `firstoption` is not blank, but only `secondoption` in case of the opposite. However, for strange reasons, the colon always appears, independently of whether or not `firstoption` is set.


title: Removing a half-blank line and precisely calculating a space

text: Consider the following MWE:               Some text, Some text, Some text, Some text, Some text, Some text,     Some text, Some text, Some text, Some text, Some text, Some text     \begin{enumerate}     \item This is a line \mbox{\parbox[t][][t]{\textwidth-\widthof{MMMx This is a line}}{          \begin{enumerate}[label=\textit{(\roman{enumii})}]     \item  Text 1 Text 1 Text 1 Text 1 Text 1 Text 1 Text 1      \item Text 2 Text 2 Text 2 Text 2 Text 2 Text 2 Text 2      \end{enumerate}          }}\end{enumerate}      I have to questions: 1) I would like that "(i) Text 1 Text 1 Text 1 Text 1 Text 1 Text 1 Text 1" be display on the same line as "This is a line". How can I do that ? 2) I would like the spacing between the last word of "This is a line", i.e. "line", and the first word of "(i) Text 1 Text 1 Text 1 Text 1 Text 1 Text 1 Text 1", i.e. "Text" be a normal space. Because "This is a line" is already indented I tried to account for this indentation by adding "MMMx" as additional spacing in `\widthof`. But this is just eye-measure. How can I make this precise ?


title: Error message when using memoir and xcolor together

text: I'm running TeX Live 2013 on OS X (Mavericks) and I'm seeing a bizarre error when using `memoir` and `xcolor` together. Here's my MWE:               \documentclass{memoir}     \usepackage[usenames]{xcolor}          \title{A title}     \begin{document}     \maketitle     \end{document}      yields the following error at compile time using `pdflatex`:               ! Missing \endcsname inserted.     <to be read again>                         \relax      l.3       whereas when I change the document class to `book`:               \documentclass{book}     \usepackage[usenames]{xcolor}          \title{A title}     \begin{document}     \maketitle     \end{document}      I get no error and the document compiles fine. I get the same error if I remove the `[usenames]` option as well. Am I just missing the right parameters to set, or is this a known problem ? As far as I can tell, I have the updated versions of the packages that go along with the 2013 distribution. Notes: I have memoir 2013/05/30 v3.7b, and am running pdfTeX 3.1415926-2.5-1.40.14. My version of xcolor has this information:               \def\XCfileversion{v2.00}%     \def\XCfiledate{2004/07/04}%


title: Problem when introducing figures

text: I'm new to LaTeX and I'm having trouble when I try to include a figure in my text. The problem is that the text appears behind the image, or the image overlays the text. Also, it's not centred properly. My code is:               \documentclass {article}      \usepackage {graphicx}      \begin{document}      Sample text, sample text, sample text.          \begin{figure}[h!]      \centering      \includegraphics[scale=0.5]{circuito.png}      \caption{Circuito empleado.}      \end{figure}           Sample text, sample text, sample text.           \end{document}      ![enter image description here](http://i.stack.imgur.com/DUpNS.jpg)


title: How can one stop LaTeX compilation?

text: When I start to compile a TeX file with wrong syntax, LaTeX complains. The first thing that I try is to stop (kill) the LaTeX compilation. However, nothing works. I have tried `Ctrl+C`, `Ctrl+q`, `quit`, `exi`t, `q`, `quit()`... At the end I need to use top-command from Linux to kill the process. Is there a civilized way to kill LaTeX?


title: Multiple items/equations in single eqref call

text: How can I reference multiple items/equations in a single `\eqref` call? I want, e.g., "In (1,2)..." instead of "In (1) and (2)...". I'd think I could do something like               \begin{enumerate}        \item blah \label{it:1}        \item blah \label{it:2}      \end{enumerate}          In \eqref{it:1, it:2}...      but that doesn't work.


title: Two questions on biblatex: remove parentheses on urldate, and change "url" label

text: I have a couple of questions on biblatex. **First:** When I use the `urldate` field in a biblatex entry, I get as a result the following string (e.g.):               . . . (visited on 01/02/2012).      With `\DefineBibliographyStrings{english}` I can change the label `visited on`, but cannot change the fact that the resulting string is included within parentheses. Is there a way to remove them? **Second:** When typesetting biblatex entries that contain URLs, the result (in `authoryear-comp`, at least) always prints in small caps the label "url:". Is there a way to change it to something like "Available at"? I tried unsuccessfully the following:               \DefineBibliographyStrings{english}{       url = {Available at}       }      Cheers!


title: Printing recurrent author names instead of a dash

text: > **Possible Duplicate:**   >  Change definition of \sameauthors to turn off by same dash I am using the `amsart` class and `bibtex` with the `amsplain` style. I have a bibliography file which is called whenever I use the `bibtex` command. (I run LaTeX through Winedt). In my references, if an author occurs more than once, the name is replaced with a straight line on all subsequent repeats. The journal I am submitting to wants the author name for every reference. Does anybody know how I suppress the dash feature, so it prints the full name of the author for every reference?


title: Problems with passing values through nested levels

text: Inspired by a comment to another question, I'm trying to generalise some code to draw coloured in rectangles upon the graph of a function. The routine `\findmax`, given an x-value and a function, calculates the maximum function value on [x, x+1] and the output shows it works, even within a loop. The other routine `\maxboxes`, given two interval boundaries, a and b, and a function, is meant to place coloured in boxes of maximum height upon the graph, each box one unit wide, over the interval [a, b]. I set `\xbridge` to half a unit so that without using `\findmax` it prints out midpoint boxes. This routine also works. But, if you uncomment the `\findmax` call you get an error that expects a number, which I've narrowed down to the use of the passed in function. Those passed in function calls work in the other cases in this code, and this thing is driving me nuts. Note: Both these functions are initial designs, restricted to unit wide boxes, in order to focus on the basic idea. I will worry later about varying box width, minimum and average boxes and so on. Please don't suggest packages that already work because there are several questions doing that already. This is just an example that I'm cutting my teeth on. I realise my title needs work, but I'm really not sure exactly how to express it at this point in the context of LaTeX, as it's not like a third generation programming language. In the output, the data columns on the left are the maximum values followed by the left hand side of the interval plus the horizontal margin to the max value. **MWE Output** ![MWE Output](http://i.stack.imgur.com/S8OiE.jpg) **MWE Code**               \documentclass[12pt]{article}     \usepackage[a5paper,margin=14mm]{geometry}          \usepackage{pgfplots}          \pgfplotsset{compat=1.9}          \pgfplotsset{         maxbox/.style={draw=red, fill=red!10},         /pgf/declare function={F(\x)=((sqrt(3)*\x/2.5)^3-9*(sqrt(3)*\x/2.5);}     }     \newcounter{colstep}     \newlength{\xval}     \newlength{\xbridge}     \newlength{\currentval}     \newlength{\maxbar}          \newcommand{\findmax}[2]     {%#1=left side of interval #2=function to be evaluated         \pgfmathsetlength{\maxbar}{#2(#1)}         \setlength{\xbridge}{0pt}%         \foreach \i in {1,...,100}         {%             \pgfmathsetlength{\currentval}{#2(#1+\i/100)}             \ifdim\currentval>\maxbar                 \setlength{\global\maxbar}{\currentval}%                 \pgfmathsetlength{\global\xbridge}{\i/100}             \fi         }%     }          \newcommand{\maxboxes}[4]     {         %#1,#2=left and right boundaries of interval         %#3=style for drawing boxes         %#4=function to be evaluated         \setlength{\xbridge}{0.5pt}         \pgfmathsetcounter{colstep}{#2-1}         \foreach \i in {#1,...,\value{colstep}}         {     %       \findmax{\i}%{#4}             \setlength{\xval}{\i pt}             \pgfmathsetlength{\xval}{\i+\xbridge}             \addplot [domain=\i:\i+1,#3,const plot]             {#4(\xval)}\closedcycle;         }     }          \begin{document}     %     \foreach \k in {-4,...,3}     {         \par \findmax{\k}{F}\the\maxbar\quad\k+\the\xbridge     }     %     \par\begin{tikzpicture}     \begin{axis}[         xlabel={$x$},ylabel={$y$},         xtick={-4,-2,2,4},ytick={-10,-5,5,10},         y=0.30cm, xmax=4.4,ymax=12,ymin=-12,xmin=-4.4,         enlargelimits=true,         axis lines=middle,         clip=false,         axis on top         ]     \maxboxes{-4}{4}{maxbox}{F}     % Function graph     \addplot[smooth, thick,domain=-4:4]{F(\x)};     %     \end{axis}     %     \end{tikzpicture}     %     \end{document}


title: What does the warning about "moved marginpar" mean?

text: I repeatedly get the LaTeX warning:               LaTeX Warning: Marginpar on page x moved.      What does this mean? Is that a problem? How can I fix the corresponding problem?


title: State where within the book a reference was cited

text: I am using a `plain` sort in my thesis. However, ordering the authors by last name does not help the reader find where the author/reference was cited within the book. Using the `unsrt` option would not help me for 2 reasons: 1. it will give a relative location of the citation based on the previous/later citations but not the page number (for example, reference 10 is cited after 9 in the book, and before reference 11) 2. a reference can be cited throughout multiple pages in the book (for example, reference 10 can be cited at page 20, 50, 100). Is there a way to automatically sort my references alphabetically, and at the end of each reference have the page numbers where the reference was cited within the book?


title: How to use underscores with pgfplotstable?

text: I have an input file like this:               some_entry 123     another_entry 456     yet_another_entry 789      and I want to typeset it as a table with:               \pgfplotstabletypeset[col sep=space]{FILENAME}      Problem is that LaTeX seems to interpret the underscores as a command to typeset subscript. Escaping the underscores in the input file does not work.


title: Fontspec/xeCJK AutoFakeBold and copyable Chinese characters in PDF

text: I'm writing a document in mixed English and Chinese (with the `xeCJK` package. I want to add some fake bold headlines using the font Kaiti SC. When I do this using the `AutoFakeBold` option, this makes it unable to copy the characters in the resulting PDF. How can I fix this? It seems like `xeCJK` is loading `fontspec` behind the curtains, so the issue might be related to it. Here's a MWE.               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode          \documentclass[12pt, a4paper]{article}          \usepackage{xeCJK}     \setCJKmainfont[Scale=1.2, AutoFakeBold=true]{Kaiti SC} % removing the bold makes the output copyable               \begin{document}          \textbf{你好}          宋代大{\color{red}文学家}苏东坡常常一个人出去旅行。他特别喜欢参观寺庙。          \end{document}


title: Did something that made right margin goofy

text: I'm editing a `.tex` file, adding a color box around changes I make. Had this:               \vpara{Problem:} Given $k$ social networks $\textbf{G} = \{G_1, G_2, ..., G_k\}$,      we want to output a set of partial one-to-one mappings $\textbf{M} = \{\textbf{M}_{i,j}\}$      where $\forall i, j = 1,2,...,k; i > j$. Each $m = (v_i, v_j) \in \textbf{M}_{i,j}$ denotes the      two accounts $v_i$ and $v_j$ belonging to the same person, and by partial, we mean that one person      may have an account on $G_i$ but do not have account on $G_j$.      Changed to this:               \vpara{Problem:} Given $k$ social networks $\textbf{G} = \{G_1, G_2, ..., G_k\}$, we want to      output a set of partial one-to-one mappings $\textbf{M} = \{\textbf{M}_{i,j}\}$\colorbox{yellow}{,}      where $\forall i, j = 1,2,...,k; i > j$. Each $m = (v_i, v_j) \in \textbf{M}_{i,j}$      denotes the two accounts $v_i$ and $v_j$ belonging to the same person\colorbox{yellow}{.      We designate as \textit{partial} a mapping for which a person may have an account on $G_i$      but not on $G_j$.}      Now the line beginning "We designate..." does not break at the right margin in the PDF; just goes right across the page. Any help will be greatly appreciated!


title: Macro for degree symbol

text: I wanted to find a simple way to made **degree symbol °** and have tried `textcomp` and `gensymb`, but none of them works. I wanted to avoid using `^{\circ}`, which isn't nice when you have a long document. I thought may be something easy can be achievable, e.g. `\degree`?


title: Latex generates pdf with black end of line

text: I hope you can help me with this. I am having a "minor" problem with Texmaker. While creating a report some lines contain at the end a "black rectangular character". Initially I thought that was because some blocks of text were copy-pasted from emails and text files, but it also happens when writing the text from scratch. Here a snippet of the code:               \documentclass[11pt,a4paper,draft]{report}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \author{António Domingues}     \begin{document}     \title{Omniviewer \\     Interpret results }     \maketitle     \section*{Scoring}          {\bf Sepscore.out} is the main file of interest. A typical cutoff is p=0 and sepscore better than 0.3.          Example:     \\     \\     \resizebox{14cm}{!} {     \begin{tabular}{|l|c|c|c|c|c|c|c|c|c|c|c|c|c|}     \hline      c1 & c2 & c3 & c4 & c5 & c6 & c7 & c8 & c9 & c10 & c11 & c12 & c13 & c14 \\     \hline      one & two & three & four & five & six & seven & eight & nine & ten & twelve & thirteen & fourteen & sixteen \\     \hline      \end{tabular}     }     \\     \\          Judging from personal comments and the online survey it is fair to say that, as usual, this was a great event from which many benefited. Here are some numbers, taken from the online survey (72 respondents), to substantiate this:           \begin{itemize}          \item           Roughly 90\% of participants came from 3 institutes: MPI-CBG (38.9\%), BIOTECH(30.6\%) and  CRTD (23.6\%)  and  the  majority  of  these  were  Predocs  (34.7\%)  or Postdocs (36.1\%). Worthy of note was that a group leader also filled in the survey.          \item      The talks were considered largely informative or inspiring and 43.5\% of respondents talked to the speakers during the breaks. As for the range of topics/speakers, 43.5\% considered it good and 14.3\% great.     \end{itemize}          \end{document}      This is the log file:               LOG FILE :     This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2012.5.31) 26 JUN 2012 13:01     entering extended mode     %&-line parsing enabled.     **test.tex     (./test.tex     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh     yphenation, loaded.     (/usr/share/texmf-texlive/tex/latex/base/report.cls     Document Class: report 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texmf-texlive/tex/latex/base/size11.clo     File: size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count79     \c@chapter=\count80     \c@section=\count81     \c@subsection=\count82     \c@subsubsection=\count83     \c@paragraph=\count84     \c@subparagraph=\count85     \c@figure=\count86     \c@table=\count87     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     (/usr/share/texmf-texlive/tex/latex/base/inputenc.sty     Package: inputenc 2008/03/30 v1.1d Input encoding file     \inpenc@prehook=\toks14     \inpenc@posthook=\toks15     (/usr/share/texmf-texlive/tex/latex/base/utf8.def     File: utf8.def 2008/04/05 v1.1m UTF-8 support for inputenc     Now handling font encoding OML ...     ... no UTF-8 mapping file for font encoding OML     Now handling font encoding T1 ...     ... processing UTF-8 mapping file for font encoding T1     (/usr/share/texmf-texlive/tex/latex/base/t1enc.dfu     File: t1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc     defining Unicode char U+00A1 (decimal 161)     defining Unicode char U+00A3 (decimal 163)     defining Unicode char U+00AB (decimal 171)     defining Unicode char U+00BB (decimal 187)     defining Unicode char U+00BF (decimal 191)     defining Unicode char U+00C0 (decimal 192)     defining Unicode char U+00C1 (decimal 193)     defining Unicode char U+00C2 (decimal 194)     defining Unicode char U+00C3 (decimal 195)     defining Unicode char U+00C4 (decimal 196)     defining Unicode char U+00C5 (decimal 197)     defining Unicode char U+00C6 (decimal 198)     defining Unicode char U+00C7 (decimal 199)     defining Unicode char U+00C8 (decimal 200)     defining Unicode char U+00C9 (decimal 201)     defining Unicode char U+00CA (decimal 202)     defining Unicode char U+00CB (decimal 203)     defining Unicode char U+00CC (decimal 204)     defining Unicode char U+00CD (decimal 205)     defining Unicode char U+00CE (decimal 206)     defining Unicode char U+00CF (decimal 207)     defining Unicode char U+00D0 (decimal 208)     defining Unicode char U+00D1 (decimal 209)     defining Unicode char U+00D2 (decimal 210)     defining Unicode char U+00D3 (decimal 211)     defining Unicode char U+00D4 (decimal 212)     defining Unicode char U+00D5 (decimal 213)     defining Unicode char U+00D6 (decimal 214)     defining Unicode char U+00D8 (decimal 216)     defining Unicode char U+00D9 (decimal 217)     defining Unicode char U+00DA (decimal 218)     defining Unicode char U+00DB (decimal 219)     defining Unicode char U+00DC (decimal 220)     defining Unicode char U+00DD (decimal 221)     defining Unicode char U+00DE (decimal 222)     defining Unicode char U+00DF (decimal 223)     defining Unicode char U+00E0 (decimal 224)     defining Unicode char U+00E1 (decimal 225)     defining Unicode char U+00E2 (decimal 226)     defining Unicode char U+00E3 (decimal 227)     defining Unicode char U+00E4 (decimal 228)     defining Unicode char U+00E5 (decimal 229)     defining Unicode char U+00E6 (decimal 230)     defining Unicode char U+00E7 (decimal 231)     defining Unicode char U+00E8 (decimal 232)     defining Unicode char U+00E9 (decimal 233)     defining Unicode char U+00EA (decimal 234)     defining Unicode char U+00EB (decimal 235)     defining Unicode char U+00EC (decimal 236)     defining Unicode char U+00ED (decimal 237)     defining Unicode char U+00EE (decimal 238)     defining Unicode char U+00EF (decimal 239)     defining Unicode char U+00F0 (decimal 240)     defining Unicode char U+00F1 (decimal 241)     defining Unicode char U+00F2 (decimal 242)     defining Unicode char U+00F3 (decimal 243)     defining Unicode char U+00F4 (decimal 244)     defining Unicode char U+00F5 (decimal 245)     defining Unicode char U+00F6 (decimal 246)     defining Unicode char U+00F8 (decimal 248)     defining Unicode char U+00F9 (decimal 249)     defining Unicode char U+00FA (decimal 250)     defining Unicode char U+00FB (decimal 251)     defining Unicode char U+00FC (decimal 252)     defining Unicode char U+00FD (decimal 253)     defining Unicode char U+00FE (decimal 254)     defining Unicode char U+00FF (decimal 255)     defining Unicode char U+0102 (decimal 258)     defining Unicode char U+0103 (decimal 259)     defining Unicode char U+0104 (decimal 260)     defining Unicode char U+0105 (decimal 261)     defining Unicode char U+0106 (decimal 262)     defining Unicode char U+0107 (decimal 263)     defining Unicode char U+010C (decimal 268)     defining Unicode char U+010D (decimal 269)     defining Unicode char U+010E (decimal 270)     defining Unicode char U+010F (decimal 271)     defining Unicode char U+0110 (decimal 272)     defining Unicode char U+0111 (decimal 273)     defining Unicode char U+0118 (decimal 280)     defining Unicode char U+0119 (decimal 281)     defining Unicode char U+011A (decimal 282)     defining Unicode char U+011B (decimal 283)     defining Unicode char U+011E (decimal 286)     defining Unicode char U+011F (decimal 287)     defining Unicode char U+0130 (decimal 304)     defining Unicode char U+0131 (decimal 305)     defining Unicode char U+0132 (decimal 306)     defining Unicode char U+0133 (decimal 307)     defining Unicode char U+0139 (decimal 313)     defining Unicode char U+013A (decimal 314)     defining Unicode char U+013D (decimal 317)     defining Unicode char U+013E (decimal 318)     defining Unicode char U+0141 (decimal 321)     defining Unicode char U+0142 (decimal 322)     defining Unicode char U+0143 (decimal 323)     defining Unicode char U+0144 (decimal 324)     defining Unicode char U+0147 (decimal 327)     defining Unicode char U+0148 (decimal 328)     defining Unicode char U+014A (decimal 330)     defining Unicode char U+014B (decimal 331)     defining Unicode char U+0150 (decimal 336)     defining Unicode char U+0151 (decimal 337)     defining Unicode char U+0152 (decimal 338)     defining Unicode char U+0153 (decimal 339)     defining Unicode char U+0154 (decimal 340)     defining Unicode char U+0155 (decimal 341)     defining Unicode char U+0158 (decimal 344)     defining Unicode char U+0159 (decimal 345)     defining Unicode char U+015A (decimal 346)     defining Unicode char U+015B (decimal 347)     defining Unicode char U+015E (decimal 350)     defining Unicode char U+015F (decimal 351)     defining Unicode char U+0160 (decimal 352)     defining Unicode char U+0161 (decimal 353)     defining Unicode char U+0162 (decimal 354)     defining Unicode char U+0163 (decimal 355)     defining Unicode char U+0164 (decimal 356)     defining Unicode char U+0165 (decimal 357)     defining Unicode char U+016E (decimal 366)     defining Unicode char U+016F (decimal 367)     defining Unicode char U+0170 (decimal 368)     defining Unicode char U+0171 (decimal 369)     defining Unicode char U+0178 (decimal 376)     defining Unicode char U+0179 (decimal 377)     defining Unicode char U+017A (decimal 378)     defining Unicode char U+017B (decimal 379)     defining Unicode char U+017C (decimal 380)     defining Unicode char U+017D (decimal 381)     defining Unicode char U+017E (decimal 382)     defining Unicode char U+200C (decimal 8204)     defining Unicode char U+2013 (decimal 8211)     defining Unicode char U+2014 (decimal 8212)     defining Unicode char U+2018 (decimal 8216)     defining Unicode char U+2019 (decimal 8217)     defining Unicode char U+201A (decimal 8218)     defining Unicode char U+201C (decimal 8220)     defining Unicode char U+201D (decimal 8221)     defining Unicode char U+201E (decimal 8222)     defining Unicode char U+2030 (decimal 8240)     defining Unicode char U+2031 (decimal 8241)     defining Unicode char U+2039 (decimal 8249)     defining Unicode char U+203A (decimal 8250)     defining Unicode char U+2423 (decimal 9251)     )     Now handling font encoding OT1 ...     ... processing UTF-8 mapping file for font encoding OT1     (/usr/share/texmf-texlive/tex/latex/base/ot1enc.dfu     File: ot1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc     defining Unicode char U+00A1 (decimal 161)     defining Unicode char U+00A3 (decimal 163)     defining Unicode char U+00B8 (decimal 184)     defining Unicode char U+00BF (decimal 191)     defining Unicode char U+00C5 (decimal 197)     defining Unicode char U+00C6 (decimal 198)     defining Unicode char U+00D8 (decimal 216)     defining Unicode char U+00DF (decimal 223)     defining Unicode char U+00E6 (decimal 230)     defining Unicode char U+00EC (decimal 236)     defining Unicode char U+00ED (decimal 237)     defining Unicode char U+00EE (decimal 238)     defining Unicode char U+00EF (decimal 239)     defining Unicode char U+00F8 (decimal 248)     defining Unicode char U+0131 (decimal 305)     defining Unicode char U+0141 (decimal 321)     defining Unicode char U+0142 (decimal 322)     defining Unicode char U+0152 (decimal 338)     defining Unicode char U+0153 (decimal 339)     defining Unicode char U+2013 (decimal 8211)     defining Unicode char U+2014 (decimal 8212)     defining Unicode char U+2018 (decimal 8216)     defining Unicode char U+2019 (decimal 8217)     defining Unicode char U+201C (decimal 8220)     defining Unicode char U+201D (decimal 8221)     )     Now handling font encoding OMS ...     ... processing UTF-8 mapping file for font encoding OMS     (/usr/share/texmf-texlive/tex/latex/base/omsenc.dfu     File: omsenc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc     defining Unicode char U+00A7 (decimal 167)     defining Unicode char U+00B6 (decimal 182)     defining Unicode char U+00B7 (decimal 183)     defining Unicode char U+2020 (decimal 8224)     defining Unicode char U+2021 (decimal 8225)     defining Unicode char U+2022 (decimal 8226)     )     Now handling font encoding OMX ...     ... no UTF-8 mapping file for font encoding OMX     Now handling font encoding U ...     ... no UTF-8 mapping file for font encoding U     defining Unicode char U+00A9 (decimal 169)     defining Unicode char U+00AA (decimal 170)     defining Unicode char U+00AE (decimal 174)     defining Unicode char U+00BA (decimal 186)     defining Unicode char U+02C6 (decimal 710)     defining Unicode char U+02DC (decimal 732)     defining Unicode char U+200C (decimal 8204)     defining Unicode char U+2026 (decimal 8230)     defining Unicode char U+2122 (decimal 8482)     defining Unicode char U+2423 (decimal 9251)     ))     (/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty     Package: amsmath 2000/07/18 v2.13 AMS math features     \@mathmargin=\skip43     For additional information on amsmath, use the `?' option.     (/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty     Package: amstext 2000/06/29 v2.01     (/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty     File: amsgen.sty 1999/11/30 v2.0     \@emptytoks=\toks16     \ex@=\dimen103     ))     (/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty     Package: amsbsy 1999/11/29 v1.2d     \pmbraise@=\dimen104     )     (/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty     Package: amsopn 1999/12/14 v2.01 operator names     )     \inf@bad=\count88     LaTeX Info: Redefining \frac on input line 211.     \uproot@=\count89     \leftroot@=\count90     LaTeX Info: Redefining \overline on input line 307.     \classnum@=\count91     \DOTSCASE@=\count92     LaTeX Info: Redefining \ldots on input line 379.     LaTeX Info: Redefining \dots on input line 382.     LaTeX Info: Redefining \cdots on input line 467.     \Mathstrutbox@=\box26     \strutbox@=\box27     \big@size=\dimen105     LaTeX Font Info: Redeclaring font encoding OML on input line 567.     LaTeX Font Info: Redeclaring font encoding OMS on input line 568.     \macc@depth=\count93     \c@MaxMatrixCols=\count94     \dotsspace@=\muskip10     \c@parentequation=\count95     \dspbrk@lvl=\count96     \tag@help=\toks17     \row@=\count97     \column@=\count98     \maxfields@=\count99     \andhelp@=\toks18     \eqnshift@=\dimen106     \alignsep@=\dimen107     \tagshift@=\dimen108     \tagwidth@=\dimen109     \totwidth@=\dimen110     \lineht@=\dimen111     \@envbody=\toks19     \multlinegap=\skip44     \multlinetaggap=\skip45     \mathdisplay@stack=\toks20     LaTeX Info: Redefining \[ on input line 2666.     LaTeX Info: Redefining \] on input line 2667.     )     (/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty     Package: amsfonts 2009/06/22 v3.00 Basic AMSFonts support     \symAMSa=\mathgroup4     \symAMSb=\mathgroup5     LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'     (Font) U/euf/m/n --> U/euf/b/n on input line 96.     )     (/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty     Package: amssymb 2009/06/22 v3.00     )     (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty     Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks21     )     (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty     Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)     (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty     Package: trig 1999/03/16 v1.09 sin cos tan (DPC)     )     (/etc/texmf/tex/latex/config/graphics.cfg     File: graphics.cfg 2009/08/28 v1.8 graphics configuration of TeX Live     )     Package graphics Info: Driver file: pdftex.def on input line 91.     (/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def     File: pdftex.def 2010/03/12 v0.04p Graphics/color for pdfTeX     \Gread@gobject=\count100     ))     \Gin@req@height=\dimen112     \Gin@req@width=\dimen113     ) (./test.aux)     \openout1 = `test.aux'.     LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 8.     LaTeX Font Info: ... okay on input line 8.     LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 8.     LaTeX Font Info: ... okay on input line 8.     LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 8.     LaTeX Font Info: ... okay on input line 8.     LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 8.     LaTeX Font Info: ... okay on input line 8.     LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 8.     LaTeX Font Info: ... okay on input line 8.     LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 8.     LaTeX Font Info: ... okay on input line 8.     (/usr/share/texmf-texlive/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     \scratchcounter=\count101     \scratchdimen=\dimen114     \scratchbox=\box28     \nofMPsegments=\count102     \nofMParguments=\count103     \everyMPshowfont=\toks22     \MPscratchCnt=\count104     \MPscratchDim=\dimen115     \MPnumerator=\count105     \everyMPtoPDFconversion=\toks23     )     LaTeX Font Info: Try loading font information for U+msa on input line 11.     (/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd     File: umsa.fd 2009/06/22 v3.00 AMS symbols A     )     LaTeX Font Info: Try loading font information for U+msb on input line 11.     (/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd     File: umsb.fd 2009/06/22 v3.00 AMS symbols B     ) [1     {/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]     Underfull \hbox (badness 10000) in paragraph at lines 16--30     []     Overfull \hbox (38.36009pt too wide) in paragraph at lines 16--30     [] |     []     Underfull \hbox (badness 10000) in paragraph at lines 16--30     []     Underfull \hbox (badness 10000) in paragraph at lines 16--30     []     LaTeX Font Info: Try loading font information for OMS+cmr on input line 36.     (/usr/share/texmf-texlive/tex/latex/base/omscmr.fd     File: omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions     )     LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10.95> not available     (Font) Font shape `OMS/cmsy/m/n' tried instead on input line 36.     Overfull \hbox (6.07912pt too wide) in paragraph at lines 37--38     []\OT1/cmr/m/n/10.95 Roughly 90% of par-tic-i-pants came from 3 in-sti-tutes: M     PI-CBG (38.9%),|     []     [1] (./test.aux) )     Here is how much of TeX's memory you used:     2031 strings out of 495061     23298 string characters out of 1182621     76401 words of memory out of 3000000     5204 multiletter control sequences out of 15000+50000     11045 words of font info for 42 fonts, out of 3000000 for 9000     28 hyphenation exceptions out of 8191     27i,7n,22p,261b,191s stack positions out of 5000i,500n,10000p,200000b,50000s     </usr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmbx     10.pfb></usr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmbx12.pfb></us     r/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texm     f-texlive/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texmf-texlive/fo     nts/type1/public/amsfonts/cm/cmr17.pfb></usr/share/texmf-texlive/fonts/type1/pu     blic/amsfonts/cm/cmsy10.pfb>     Output written on test.pdf (2 pages, 73742 bytes).     PDF statistics:     33 PDF objects out of 1000 (max. 8388607)     0 named destinations out of 1000 (max. 500000)     1 words of extra memory for PDF output out of 10000 (max. 10000000)


title: Horizontal table with pgfplotstable

text: How can I make table in `pgfplotstable` table form input file               A  B     1.0 20     1.1 21     1.2 22     1.3 23     1.4 24      looks like this one: ![enter image description here](http://i.stack.imgur.com/sfsw4.png) I trying to use `\pgfplotstabletranspose\loadedtable{input.dat} \pgfplotstabletypeset\loadedtable`, but column names (A & B) parsing as floats (and gives error). And colnames counting starts from 0 (I need from 1). And also is it posible to break (hyphenate) large horizontal tables?


title: ifsym: Document compiles successfully, but without correct output

text: I have MacOSX Leopard, TeXShop and have copied the `ifsym` package to `/usr/local/texlive/2009/texmf-dist/doc/latex/`, downloaded from ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/ifsym.html and successfully installed it etc. (updated my index: `sudo texhash`) I tried to compile this piece of LaTeX code:               \documentclass{article}     \usepackage[geometry]{ifsym}     \begin{document}     $\FilledTriangleRight$     \end{document}      It compiles successfully but without the correct output, it prints a small italic letter 'd', I mean just d in the PDF. Does anyone have an idea what I should do, so that it will print a filled triangle pointing to the left? (from the `ifsym` package of course, no others)


title: biblatex: per chapter and per section bibliography

text: I'm using `biblatex` for PhD thesis. I want to have per chapter bibliographies. Moreover I would like to split the bibliography for each `\section`. Therefore I use `refsection=section` when loading `biblatex` and use `\bibbysection[heading=subbibliography]` to print the references. The problem is all list of references have the same title ( **References** ). I would like to use the number of the `\section` (or even better the name). I have found the way to do that in the manual (section 3.10.3) but can't make it work. For instance with the following file:               \documentclass[12pt,a4paper]{scrbook}     \usepackage{csquotes}     \usepackage[backend=biber,backref=true,hyperref=true,%             refsection=section,%             firstinits=true,%             style=alphabetic,%             indexing=true,%sortcites=true             url=false,doi=false]{biblatex}          \defbibheading{subbibliography}{%     \section*{References from section \ref{refsection:\therefsection}}}     % \usepackage{nameref}     % \defbibheading{subbibliography}{%     % \section*{\nameref{refsection:\therefsection}}}     \bibliography{test}     \begin{document}          \chapter{Yep}          \section{My first method}          See~\cite{Dubois2010}.          \section{My better method}          See~\cite{Dubois2011}.          \printbibheading     \bibbysection[heading=subbibliography]          \end{document}      And the bib:               @INPROCEEDINGS{Dubois2011,     author = {Dubois, Mathieu},     title = {New stuff},     year  = {2011}     }     @INPROCEEDINGS{Dubois2010,     author = {Dubois, Mathieu},     title = {Old stuff},     year  = {2010}     }      I get:               Bibliography     References from section 1     ...     References from section 1.1      Where I expected:               Bibliography     References from section 1.1     ...     References from section 1.2      Any idea? ... I'm using TeXLive 2010 on Ubuntu 11.04 (biblatex version 1.4c).


title: Which alternatives to the beamer class exist?

text: The title is pretty much self-explanatory. Do you know any LaTeX based beamer alternative? In my university, everyone is using beamer, and every presentation has the same layout, I'm sick of it. I was even wondering to create the individual slides in inkscape and merging them afterwards...


title: subfloats vspace between its subcaption

text: How can I decrease the vspace between a subfloat and its caption? I have already tried this:               \documentclass[fleqn,10pt,twoside,a4paper]{report}     \usepackage[small,sc,bf,nooneline,skip=5pt]{caption} % Nicer formatting of figure captions.     \usepackage{subfig,float}     \captionsetup[subfloat]{captionskip=3pt}     \begin{document}     \begin{figure}     \centering     %%----start of first subfigure----     \subfloat[yyy]{     \label{subfig:a} %% label for first subfigure     \includegraphics[width=10cm]{fig1.eps}}\\[5pt]     %%----start of 2nd subfigure----     \subfloat[xxx]{     \label{subfig:b} %% label for third subfigure     \includegraphics[width=10cm]{fig2.eps}}     \caption{Cap}     \label{fig} %% label for entire figure     \end{figure}     \end{document}      But it doesn't work.


title: algorithmicx crashes standalone

text: I am creating SVG files from different stuff from my LaTeX document. For this, I am using the `standalone` package followed by `pdf2svg`. This compiles:               \documentclass{article}     \usepackage{algorithmicx}     \usepackage{algpseudocode}          \begin{document}         \begin{algorithmic}             \Function {$foo$}{$id$}             \EndFunction         \end{algorithmic}     \end{document}      Using `standalone` instead of `article` crashes with:               ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.8             \Function                      {$foo$}{$id$}      What can I do? I need to export my algorithms to PDF/SVG. My versions:   * standalone.cls 2012/05/20 v1.1a   * algorithmicx.sty 2005/04/27 v1.2  * * * `UPDATE: 27.06.2012` The same is happening with `align`:               \begin{document}         \begin{align*}         a\\         b         \end{align*}     \end{document}      The v-box hack helps:               \begin{document}     \vbox{         \begin{align*}         a\\         b         \end{align*}     }     \end{document}


title: Adding underbrace in tikz

text: I have this code to draw a mass on a spring and now I want to have a curly brace below the spring to denote the distance: x_0. How do I do this?               \begin{tikzpicture}     \tikzstyle{ground}=[fill,pattern=north east lines,draw=none,minimum width=0.3,minimum height=0.6]          \node (wall1) [ground, minimum height=2cm] {};     \draw (wall1.north east) -- (wall1.south east);     \node [draw,minimum width=0.5cm,minimum height=0.5cm] (mass) at (2,0) {m};     \node (fix) at (0,0) {};     \draw [snake=coil,segment amplitude=5pt,segment length=5pt] (fix) -- (mass);      \end{tikzpicture}


title: \psTextFrame with origin specified does not affect the content position

text: `\psTextFrame[origin={x,y}](0,0)(1,1){content}` does slide its frame's center to `(x,y)` but leave the content at `(0.5,0.5)`. Is it a bug or feature?               \documentclass{article}     \usepackage{pstricks}          \psset{unit=1cm}% default unit          %\newcommand\mybox[3]{\rput(#1,#2){\psTextFrame[dimen=outer](0,0)(1,1){#3}}}          \newcommand\mybox[3]{\psTextFrame[origin={#1,#2},dimen=outer](0,0)(1,1){#3}}          \begin{document}     \pspicture[showgrid=false](3,3)                     \mybox{1}{2}{A} \mybox{2}{2}{B}     \mybox{0}{1}{A} \mybox{1}{1}{0} \mybox{2}{1}{1}     \mybox{0}{0}{B} \mybox{1}{0}{1} \mybox{2}{0}{0}     \endpspicture     \end{document}      Bonus question: To solve this, I am forced to use `\rput` (see the commented line in the above code snippet). However, I noticed that there are some white gaps (marked by red circles) between boxes as shown below. The green circle shows there is no white gap. ![enter image description here](http://i.stack.imgur.com/cNPDs.png)


title: Colors known to PDF

text: Where can all the supported colors be found for LaTeXPDF? I have looked at a few articles to find that they only work in `dvips`. Here is one: Colors in TeX. Is there a place where they list all the colors that will execute when using LaTeX --> PDF (TeXnicCenter)? **EDIT:** Here is a mbe (minimum broke example)               \documentclass[a4paper]{article}          \usepackage[usenames]{xcolor}          \begin{document}          \begin{center} \underline{\textcolor{BrickRed}{Fourier Sine Series}} \end{center}          \end{document}      I tried this BrickRed and MidnightBlue, and both came up as undefined control sequences.


title: PGF automatic determined vertical distance between tree nodes / level

text: I am trying to draw a tree overview and got an example from http://www.texample.net. But I have a problem with the vertical distance between the nodes (levels). Is there a way how tikz can automatically determine a distance so that there is no overlapping. Using e.g. "level distance=x.yem" for each node is a lot of work for large trees. Below a running example for a small part of the tree.                           \documentclass[paper=a4]{report}                 \usepackage[utf8]{inputenc} % UTF8 encoding                      \usepackage{pgfplots}                 \pgfplotsset{compat=newest}                 \pgfplotsset{plot coordinates/math parser=false}                 \usetikzlibrary{arrows,shapes,positioning,shadows,trees}                      \begin{document}                                \tikzset{                     basic/.style  = {draw, font=\sffamily, rectangle},                     root/.style   = {basic, rounded corners=6pt, thin, align=center,                                                      fill=blue!60,text width=0.5\textwidth},                     level 2/.style = {basic, rounded corners=6pt, thin,align=center, fill=green!60,text width=0.3\textwidth},                     level 3/.style = {basic, rounded corners=2pt, thin, align=center, fill=pink!60,text width=0.2\textwidth},                 }                      \begin{tikzpicture}[level 1/.style={sibling distance=40mm},                     edge from parent/.style={->,draw},                     >=latex]                      % root of the the initial tree, level 1                 \node[root]                 [level distance=30mm]                 {Some loss calculation models}                 % The first level, as children of the initial tree                     child {node[level 2] (c1) {ALmann based models (analytical)}}                     child {node[level 2] (c2) {Loss separation stuff stuff}}                     child {node[level 2] (c3) {Mathematical models and others}};                      % The second level, relatively positioned nodes                 \begin{scope}[every node/.style={level 3}]                 \node [below of = c1, xshift=15pt] (c11) {Mathematic stuff with very long name};                 \node [below of = c11] (c12) {Mathematic2 other long name};                 \node [below of = c12] (c13){Mathematic3 short};                 \node [below of = c13] (c13){Mathematic4 meadium size name};                      \end{scope}                      % lines from each level 1 node to every one of its "children"                 \foreach \value in {1,2,3}                     \draw[->] (c1.195) |- (c1\value.west);                      \end{tikzpicture}                 \end{document}


title: vim+LaTeX Suite: How to jump to the Error List window?

text: I am trying to learn how to use vim latex-suite and following the tutorial, A (very) quick introduction to Latex-Suite. When I compiled and got some errors, I see the Error List, etc with split windows. I am in Debugging LaTeX source files page of the tutorial. It says "Jump to the Error List window and try scrolling around...", but how can I jump to the Error List?


title: Undefined control sequence \maketitle

text: I removed copyright box in my ACM review submission using this:               \usepackage{etoolbox}     \usepackage{textcomp}     \makeatletter     \patchcmd{\maketitle}{\@copyrightspace}{}{}{}     \makeatother      Now for the camera ready version, I wish to put the copyright back into place. However when I comment the above code, it throws the following error:               Undefined control sequence at \maketitle      Any suggestions? I am using Kile.


title: Set the default font narrower

text: I was trying to find the answer for my problem, but I didn't found anything good. The default font in Latex is `Computer_Modern`. But in my document, the letters are very wide. Is any possibility to set this default font narrower? I tried to use another fonts, but then everything in document is changing (for example, the section and subsection topics aren't bold, what is not good for me).               \documentclass[11pt,titlepage]{article}     \usepackage[MeX]{polski}     \usepackage[utf8]{inputenc}     \usepackage{fancyhdr}     \usepackage[pdftex]{color,graphicx}     \usepackage{geometry}     \usepackage{amsfonts}     \usepackage{amsmath}     \usepackage{url}     \usepackage[T1]{fontenc}     \geometry{verbose,a4paper,tmargin=2.8cm,bmargin=2.5cm,lmargin=2.6cm,rmargin=2.6cm}     \pagestyle{plain}     \usepackage{textcomp}     \usepackage[utf8]{inputenc}               \begin{document}      This is an example.      \end{document}


title: Criteria for deciding how best to specify coordinates with tikzpicture with or without pgfplots

text: **Conclusion** The original question, as Christian has pointed out, was far too broad and basically a result of being overwhelmed by the size of two main manuals for `tikz` and `pgfplots` and how they related to each other. The `tikzpicture` is the main environment for creating graphics and so you should make a study of the Specifying Coordinates section of pgfmanual.pdf. The current version of `tikz` is 2.10. The following is good if you're just starting out: Minimal Introduction To Tikz If you're including a `pgfplot` in your `tikzpicture` then section 4.16 of pgfplots.pdf should be studied and in particular 4.16.1 explaining the `axis cs` coordinate system. The current manual is version 1.8 and the current version of `pgfplots` is 1.9. I have left my original MWEs below to show what I was trying to do that solicited all the advice below. The first example has become redundant because I now know how to do curves in 3D with `\addplot3` and that example is now rewritten entirely within a `\begin{axis}` environment. See Positioning various types of node over a 3D Plot. None the less, the idea of placing `tikzpicture` elements over an imported graphic background is still very important as you will want to use graphics that can't possibly be created totally within, such as a photo of an aeroplane upon which you're placing design descriptions. The second example was about finding the most convenient way to place a LaTeX node over a `pgfplot`. This is where percusse pointed out `axis cs` and Jake pointed out you can scale the `axis` rather than the whole `tikzpicture`. Handling scaling when you have an imported background is still an open question for me. Scaling the background can get it out of step with what you've placed over it and I'm still not sure what is the best way to manage it. One irony is that the `node at` facility that I was initially having trouble with and was looking for an alternative, is now very useful to me. I just had to realise what it was actually doing and now I'm making good use of it. It's all part of the learning curve. I was also using my own axis labels to deal with problems that were caused by using an outdated `pgfplots`. These problems have been fixed in version 1.8. Thanks to all who have commented. **MWE 1 Output** ![MWE 1 Result](http://i.stack.imgur.com/30lBx.png) **MWE 1 Imported Image** ![Imported Image](http://i.stack.imgur.com/3a76B.png) **MWE 1 Code**               \documentclass[12pt,a4paper,fleqn]{article}     \usepackage[a5paper,margin=14mm]{geometry}          \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{pgfplots}     \usepackage{mathtools}          \def\dd{\,{\rm d}}     \def\nv{\mathbf{n}}          \begin{document}     %     \par\begin{tikzpicture}         \node[anchor=south west,inner sep=0] (image) at (0,0)             {\includegraphics[width=0.6\textwidth]{orient}};         \begin{scope}             [x={(image.south east)},y={(image.north west)}]             \path node at (.14, .03) {$x$} node at (.96, .49) {$y$}                 node at (0.35, .95) {$z$} node at (.65, .03) {$\dd r$}                 node at (.96, .17) {$\nv = (0, 1, 0)$} node at (0.65, 0.65) {$\dd s$};         \end{scope}     \end{tikzpicture}     %     \par\begin{tikzpicture}[scale=3]         \node[anchor=south west,inner sep=0] (image) at (0,0)             {\includegraphics[width=0.4\textwidth]{orient}};         \begin{scope}             [x={(image.south east)},y={(image.north west)},font=\footnotesize]             \path node at (.14, .03) {$x$} node at (.96, .49) {$y$}                 node at (0.35, .95) {$z$} node at (.65, .03) {$\dd r$}                 node at (.96, .17) {$\nv = (0, 1, 0)$} node at (0.65, 0.65) {$\dd s$};         \end{scope}     \end{tikzpicture}     %     \end{document}      **MWE 2 Output** ![MWE 2 Output](http://i.stack.imgur.com/jFTso.jpg) **MWE 2 Code**               \documentclass[10pt,a4paper,fleqn]{article}     \usepackage[a5paper,margin=14mm]{geometry}     \usepackage{pgfplots}     \usepackage{amsmath}          \begin{document}     %     \par\begin{tikzpicture}[scale=1.00]     %     \begin{axis}[         xtick={-1, 1, 3}, ytick={-8,-4, 4,8},         width=12cm, height=5cm,         axis lines=middle,         enlargelimits=true,         samples=201,         clip=false     ]     \path node [xshift=9.2cm][yshift=1.1cm] {$t$}         node [xshift=2.0cm][yshift=3cm] {$y$};     \addplot [thick, color=green, domain=-1:0] ( {x}, {0} );     \addplot [thick, color=green, domain=0:4] ( {x}, {x^2*(2-x)*(4-x)^2} )         node [color=green, pos=.55][yshift=-1.8cm]         {$g(t)=\begin{cases}         0&-1\le t \le 0\\t^2(2-t)(4-t)^2&\hfill 0\le t \le4         \end{cases}$};     %     \end{axis}     %     \end{tikzpicture}     %     \end{document}


title: Access Specific Alternate Glyph in XeTeX

text: I'm trying to use Minion Pro Italic font, specifically I would like to use the italic "g" with an open tail - instead of the default two-story version. I found that it is defined as an alternate Cyrillic character "uni0434.ital". I tried to add [Style=Italic] and different alternate values, different script and language options, but it always tells me that the feature is not available, and shows the default "0434 character instead. Is there some way to use this character? Thanks a lot.


title: How to suppress empty backreferences?

text: I am using the `backref` package to provide backreferences from my bibliography to the text, working as expected. I need to add one entry to the bibliography, however, that is not cited in the paper, as such. `\nocite{}` does just that, adding the entry to the bibliography, but I now get an empty "Cited on page:" as well. Any way to suppress that?


title: Chapter number position

text: As default chapter looks like: > "Chapter 1" I need it to be > "1 chapter" How can I change number placement? I am using `\documentclass[a4paper]{report}`


title: How to customize a brief table of contents generated from tocloft and shorttoc into one page?

text: I am writing a book with over 20 chapters using LaTex. I generated the detailed Table of Contents with the package tocloft, and a brief TOC with shorttoc. Right now, the brief TOC has two pages but I really like it to be one page long. Commands from tocloft can only control some of the features in the brief TOC. I have my sample code attached at the end. Specifically, my questions are as follows. I greatly appreciate any help you have. -- Edwin Question 1: How can I adjust the line spaces in the brief TOC only so it can be one page long? Question 2: How can I adjust the space before and after the title of "Brief Contents?" Question 3: How can I remove the entry of "Contents" from the brief TOC only? ---- sample code -----------------               \documentclass{book}          % 1. load two packges     \usepackage[tight]{shorttoc}     \usepackage{tocloft}          % 2. add a line below part title in TOC     \makeatletter           \renewcommand{\@tocrmarg}{0em}         \renewcommand\cftpartafterpnum{\par\vskip-2ex\hrulefill\par}     \makeatother          % 3. adjust vertical space in TOC     \setlength\cftbeforetoctitleskip{0pt} % change space before TOC title     \setlength\cftaftertoctitleskip{0pt}  % change space after  TOC title     \setlength\cftbeforepartskip{16pt}  % change space before part     \setlength\cftbeforechapskip{8pt}   % change space before chapter     %\setlength\cftbeforesecskip{1pt}   % change space before section     %\setlength\cftparskip{-2pt}        % distance between paragraphs/entry; default 0               \begin{document}          % 4. add brief TOC     \clearpage \phantomsection      \shorttoc{Brief Contents}{0}          % 5. add detailed TOC     \clearpage \phantomsection     \setcounter{tocdepth}{2}      \addcontentsline{toc}{chapter}{Contents} % add a link for Contents in TOC      \tableofcontents               \part{Part 1}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}          \part{Part 2}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}          \part{Part 3}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}          \part{Part 4}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}          \part{Part 5}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}          \part{Part 6}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}          \part{Part 7}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}          \part{Part 8}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}     \chapter{Test Chapter} \section{Test Section} \section{Test Section}          \end{document}


title: XeLaTeX replaces characters present in font with missing character placeholders

text: I'm using XeLaTeX in order to have access to certain opentype Unicode fonts, including Calluna. However, XeLaTeX refuses to display certain characters which exist in the font. I know they exist in the font because I can see them in charactermap, and Windows can display them just fine in other applications. The characters also display just fine when entered into TeXworks. Unfortunately, when processed by XeLaTeX (with TeXworks) the characters are replaced with the "no character" placeholder from that font. Screenshot below, showing the raw XeLaTeX, pdf generated (it displays the same in adobe acrobat), and charactermap: ![Screenshot of characters missing](http://i.stack.imgur.com/cStPF.png) And here's the demo code:               \documentclass[10pt,letterpaper]{article}     \usepackage{fontspec}     \setmainfont[Numbers=Lining]{Calluna}     \setsansfont[Numbers=Lining]{Museo Sans 300}     \begin{document}     ◆●■▲◄►▼◎∴∑→㎏€\\     \textsf{◆●■▲◄►▼◎∴∑→㎏€}     \end{document}      TeXworks is set to its default encoding, which is UTF-8. The log file reveals that XeTeX believes the characters are missing; however they clearly are not, based on charactermap:               Missing character: There is no ◆ in font Calluna/ICU:script=latn;language=DFL     T;+lnum;!     Missing character: There is no ● in font Calluna/ICU:script=latn;language=DFL     T;+lnum;!     Missing character: There is no ■ in font Calluna/ICU:script=latn;language=DFL     T;+lnum;!     Missing character: There is no ◎ in font Calluna/ICU:script=latn;language=DFL     T;+lnum;!     Missing character: There is no ∴ in font Calluna/ICU:script=latn;language=DFL     T;+lnum;!     Missing character: There is no ㎏ in font Calluna/ICU:script=latn;language=DFL     T;+lnum;!      Is there any way to fix this?


title: Using \matbb{Z} and \textregistered in Math Mode

text: How can you use the two symbols in the Math mode? My tex               $\matbb{Z}$     $\textregistered$      My formatting code \documentclass{bmcart}               %%% Load packages     %\usepackage{amsthm,amsmath}     %\RequirePackage{natbib}     %\RequirePackage{hyperref}     \usepackage[utf8]{inputenc} %unicode support     %\usepackage[applemac]{inputenc} %applemac support if unicode package fails     %\usepackage[latin1]{inputenc} %UNIX support if unicode package fails     \usepackage{amsmath, amsfonts, amssymb}     \usepackage[T4, OT1]{fontenc}     \usepackage{newunicodechar}     %\usepackage{unicode-math}     \newunicodechar{ƒ}{{\fontencoding{T4}\selectfont\m f}}     \newunicodechar{Ƒ}{{\fontencoding{T4}\selectfont\m F}}      I get these warnings and errors > LaTeX Warning: Command \textregistered invalid in math mode on input line > 248. > > LaTeX Warning: Command \textcircled invalid in math mode on input line 248. > > (/usr/local/texlive/2013/texmf-dist/tex/latex/base/omscmr.fd) > > LaTeX Warning: Command \textcircled invalid in math mode on input line 248. > > LaTeX Font Warning: Font shape `OT1/cmss/m/it' in size <8> not available > (Font) > > l.373 $\matbb {Z}$ [3] Overfull \hbox (4.19527pt too wide) detected at line > 404 $\OML/cmm/m/it/10 ^^K < ^^L \OT1/cmr/m/n/10 : \OML/cmm/m/it/10 > Q\OT1/cmr/m/n/1 0 (\OML/cmm/m/it/10 ^^Ue[] \OT1/cmr/m/n/10 + > \OML/cmm/m/it/10 ^^Ve[]\OT1/cmr/m/ n/10 )(\OML/cmm/m/it/10 x; > ^^Q\OT1/cmr/m/n/10 ) = \OMS/cmsy/m/n/10 j\OML/cmm/m/ it/10 > ^^U\OMS/cmsy/m/n/10 j[]\OML/cmm/m/it/10 ^^N[]\OT1/cmr/m/n/10 (\OML/cmm/m/ > it/10 ^^V\OT1/cmr/m/n/10 ) + \OMS/cmsy/m/n/10 j\OML/cmm/m/it/10 > ^^V\OMS/cmsy/m/ n/10 j[]\OML/cmm/m/it/10 ^^N[]\OT1/cmr/m/n/10 > (\OML/cmm/m/it/10 ^^V\OT1/cmr/m/n /10 ) + 2\OML/cmm/m/it/10 > Re\OT1/cmr/m/n/10 (\OML/cmm/m/it/10 ^^U[]e[]\OT1/cmr/ m/n/10 > (\OML/cmm/m/it/10 x\OT1/cmr/m/n/10 ))1[](\OML/cmm/m/it/10 ^^Q\OT1/cmr/m/ > n/10 )\OML/cmm/m/it/10 =\OT1/cmr/m/n/10 (\OML/cmm/m/it/10 ^^L > \OMS/cmsy/m/n/10 ^^@ \OML/cmm/m/it/10 ^^K\OT1/cmr/m/n/10 )\OML/cmm/m/it/10 > :$ > > LaTeX Warning: Command \m invalid in math mode on input line 413. and in a separate window: ![enter image description here](http://i.stack.imgur.com/v2xTX.png)


title: Chapter titles as hyperlinks in the list-of-figures

text: I would like to include the chapter titles in my list of figures. @GonzaloMedina previously answered this question using titletoc. However, not all my chapters are numbered, so I would like the chapter titles in the lof to be shown just as they are in the toc. This is Gonzalo Medina's preamble:               \documentclass{report}          \usepackage{chngcntr}     \counterwithout{figure}{chapter}          \usepackage{etoolbox}  % or xpatch     \usepackage{titletoc}          \makeatletter     % initial definitions of the chapter info (name and number)     \def\thischaptertitle{}\def\thischapternumber{}     \newtoggle{noFigs}          \apptocmd{\@chapter}%       {\gdef\thischaptertitle{#1}\gdef\thischapternumber{\thechapter}%     \global\toggletrue{noFigs}}{}{}          % the figure environment does the job: the first time it is used after a \chapter command,      % it writes the information of the chapter to the LoF     \AtBeginDocument{%       \AtBeginEnvironment{figure}{%         \iftoggle{noFigs}{            \addtocontents{lof}{\protect\contentsline {chapter}%             {\protect\numberline {\thischapternumber} {\thischaptertitle}}{}{} }           \global\togglefalse{noFigs}         }{}       }%     }     \makeatother      And creating the following document:               \begin{document}          \tableofcontents     \listoffigures          \setcounter{secnumdepth}{-1}     \chapter{Preface with a figure}     \setcounter{chapter}{0}     \setcounter{secnumdepth}{2}          \begin{figure}     \caption{caption text}     \end{figure}          \chapter{Test Chapter with Figures}     \begin{figure}     \caption{caption text}     \end{figure}     \begin{figure}     \caption{caption text}     \end{figure}     \end{document}      yields ![enter image description here](http://i.stack.imgur.com/zXJ0e.jpg) and ![enter image description here](http://i.stack.imgur.com/uU4kV.jpg) My questions are   1. How to surpress the preface's chapter number to be shown?   2. How to combine this with the `hyperref` package to let the chapters in the lof be hyperlinks?


title: Winedt 7.0 + MiKTeX 2.9 compile Problem

text: I keep getting the following error and have no idea what to do! Does anybody know how to fix this?               Command Line:   `bibtex.exe "PA1_A2"`          This is BibTeX, Version 0.99d (MiKTeX 2.9 64-bit);          The top-level auxiliary file: PA1_A2.aux I found no \citation     commands---while reading file PA1_A2.aux          I found no \bibdata command---while reading file PA1_A2.aux          I found no \bibstyle command---while reading file PA1_A2.aux (There     were 3 error messages)


title: how can I align limits at "lim"?

text: I am trying to align several limit expressions at varying x-values. It seems that align treats the "limit" portion together with its subscript as an entire object, then aligns these limits, which produces expressions aligned at "x" rather than "lim":               \documentclass[reqno,12pt]{article}     \usepackage{amsmath,amssymb,amsthm}     \addtolength{\jot}{3em}          \begin{document}          \begin{flalign*}         &\lim_{x \to -2} x =&\\         &\lim_{x \to -1} x =&\\         &\lim_{\phantom{-}x \to 0} x =&\\         &\lim_{\phantom{-}x \to 1} x =&\\         &\lim_{\phantom{-}x \to 2} x =&\\         &\lim_{\phantom{-}x \to \infty} x =&\\         &\lim_{x \to -\infty} x =&     \end{flalign*}     \end{document}      I've tried to place the align marker in other places, and also fudge it using phantoms, (which isn't nice but much better than without). Is there a way around this so that each expression aligns at "l" in "lim"? ![enter image description here](http://i.stack.imgur.com/XYBrj.png)


title: Right arrow with Label 'T' pointing from left figure to right figure

text: I want to make a right arrow pointing from left figure to right figure. ![The desired design](http://i.stack.imgur.com/268bv.png)    The following is my current code.               \begin{figure}[H]     \centering     \begin{subfigure}{.5\textwidth}       \centering       \includegraphics[width=.7\linewidth]{2D/cc1.png}       \caption{Original Matrix, $A$}     \end{subfigure}%      \begin{subfigure}{.5\textwidth}       \centering       \includegraphics[width=.7\linewidth]{2D/cc2.png}       \caption{Jordan Canonical Form of Matrix, $A$}     \end{subfigure}     \caption{Changing Coordinates}     \end{figure}      which generates   ![Current Code](http://i.stack.imgur.com/YB7lE.png)


title: Generating pages in response to iterated parameter on engine level?

text: Just to jot this down here, while I have the thought: The method I used for the .gif animations in Why does \vspace, after section heading, sometimes jump/snap in discrete steps? was basically have a `bash` script call `pdflatex` X ammount of times, each with a new value of a parameter `\mylength`, and generating X output PDF files. Obviously, each time `pdflatex` is called, it has to re-load `\documentclass`, then `\usepackage`s, etc all over again - in one word, time-consuming. I was thinking - it would be so much better if at a certain point in a .tex document, I could write something like (pseudocode):               ...     blah blah.           \newlength{\mylength}     \steplength{\mylength}{2.5pt}{20pt}{0.5pt} % pseudo     \generateParameterSequencePages{}          % pseudo          \begin{minipage}{\textwidth}     \textbf{Something here}     \vspace{\mylength}     \textit{Something else here}     \end{minipage}          Blah blah blah....      ... so when the tex engine encounters `\generateParameterSequencePages`; it basically "saves" the state of the current page; creates a new file, `\jobname_pgY.pdf`, numerated with the current page number (Y in the \jobname document); and inside this new file, it tosses the Z number of iterations ( _that`\steplength{\mylength}{startvalue}{endvalue}{step}` would specify_) of `\mylength` in the current page, as separate pages. After its done, the engine exits ( _not sure if I'd want the engine going back to tex'ing the original PDF at this point or not_ ). So, I'd end up with a new file `\jobname_pgY.pdf`, with Z number of pages, showing the Z iterations of parameter `\mylength` and their effect on layout of pg Y in the original `\jobname.pdf` document. I could imagine this would happen somewhat faster, then having a `bash` script call `pdflatex` each and every time. Is something like this possible at all with current engine(s)? Would use of `synctex` make a difference here? How about use of `luatex`? Many thanks in advance for any suggestions,   Cheers! * * * EDIT: See also this post for a more detailed `lualatex` example.