title: Biber gives "I found no \citation commands". Is there a solution ?

text: Help me, please, to fix the work of `biber`. When I put in `biblatex` options `backend=biber` then during the compilation I get:               This is BibTeX, Version 0.99d (TeX Live 2010)     The top-level auxiliary file: test.aux     I found no \citation commands---while reading file test.aux     I found no \bibdata command---while reading file test.aux     I found no \bibstyle command---while reading file test.aux     (There were 3 error messages)      I just updated my TexLive 2010 at 23.05.2011 by the command `tlmgr update --all` Maybe I do something wrong? Please, help. **After correction: code added**               \documentclass[12pt]{report}           \usepackage{fontspec}     \usepackage[hidelinks]{hyperref}          \usepackage{xunicode}     \usepackage[no-sscript]{xltxtra}          \usepackage[babel=false]{csquotes}     \usepackage{polyglossia}     \setdefaultlanguage{french}     \setotherlanguages{german,english,greek,polish,russian}     \usepackage[backend=biber,style=verbose-ibid,citepages=suppress,sorting=nty]{biblatex}          \setmainfont[Mapping=tex-text]{Linux Libertine}          \usepackage{setspace}     \usepackage{acronym}     \usepackage{tocloft}          \usepackage{filecontents}          \begin{filecontents}{fortest.bib}          @Book{Kaluzh,     title = {Nowy sobór. Natura, historia przygotowań, tematyka},     author = {Tadeusz Kałużny},     publisher = {wydawnictwo księży Sercanów},     year = {2008},     location = {Krakóv},     }               @Book{AlKarapan,     author = {Αλέξανδρος Κ. Καραπαναγοπούλου},     title = {Η Μεγάλη Σ. της ΟΑΕ},     publisher = {Auto-édition},     year = {1990/1998},     volumes = {6},     location = {Αθήνα},     shorthand = {MS-OAE},     }               @Misc{Konst1923,     title = {Πρακτικὰ καὶ ἀποφάσεις τοῦ ἐν ΚΠΣ (10 μαΐου--8 ἰουνίου 1923)},     year = {1923},     location = {Κωνσταντινούπολη},     keywords = {primary}     }          @Article{Akury,     author = {Adolf Küry},     title = {Die Konferenz in Konstantinople},     journal = {Internationale kirchliche Zeitschrift},     year = {1924},     number = {14},     pages = {62--64}     }          @Online{Tichon1923enciclic,     title = {\textrussian{Послание Патриарха Тихона к православному народу о реформе календаря в РПЦ}},     date = {1923-10-01},     urldate = {2010-10-05},     url = {http://holyrussia.narod.ru/Tykhon_Calendar.html}     }          @Article{Echo1932,     journal = {Échos d'Orient},     title = {Le préconcile orthodoxe},     author = {J. Lacombe},     number = {31},     year = {1932},     pages = {239-241}     }          \end{filecontents}          \addbibresource{conference.bib}               \begin{document}     test\footcite[331]{Kaluzh} est\footcite[23--27]{AlKarapan} test\footcite[23--27]{Konst1923} test\footcite[23--27]{Tichon1923enciclic} test\footcite[23--27]{Echo1932} test test          \printbibliography          \end{document}


title: Biber typesetting fails

text: On MacOs X running updated mactex packages, when I compile my biber file I get this error:               data source /var/folders/yf/y69gwrx12kj2jtzrs78vg2vm0000gn/T/par-67696f6e61/cache-    23e542f078c05cf97a78083ff4d628bc746d389d/inc/lib/Biber/LaTeX/recode_data.xml not found in .     Compilation failed in require at Biber/Utils.pm line 20.     BEGIN failed--compilation aborted at Biber/Utils.pm line 20.     Compilation failed in require at Biber/Internals.pm line 8.     BEGIN failed--compilation aborted at Biber/Internals.pm line 8.     Compilation failed in require at (eval 22) line 2.     ...propagated at /opt/local/lib/perl5/5.14.1/base.pm line 94.     BEGIN failed--compilation aborted at Biber.pm line 5.     Compilation failed in require at script/biber-darwin line 20.     BEGIN failed--compilation aborted at script/biber-darwin line 20.      Any idea on how to solve it?


title: biber, why does my MWE not work?

text: Please help me, I have no idea why this MWE does not work. I am using the TeXnicCenter. I get the error message: Citation 'author2000' on page 1 undefined on input line 29.               \listfiles                % shows used packages in a list in log file     \RequirePackage{filecontents}     \begin{filecontents*}{\jobname.bib}     @article{author2000,       author  = {AuthorA},       title   = {Title of Article},       journal = {Name of Journal},       year    = {2000},     }     \end{filecontents*}          \documentclass{article}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[german]{babel}     \usepackage{csquotes}          \usepackage[%       style=authoryear      ,backend=biber         % to force biblatex to use biber      ,sortlocale=de_DE     ]{biblatex}     \addbibresource{\jobname.bib}          \begin{document}          hi.\autocite{author2000}              \nocite{*}              % all bib entrys are printed          \printbibliography          \end{document}      geh.blg just says > [0] Config.pm:320> INFO - This is Biber 1.9 > > [0] Config.pm:323> INFO - Logfile is 'geh.blg'


title: Bibliography in LaTeX with Biblatex and Biber as backend

text: I am not able to create a bibliography with biblatex and can't figure out what the problem might be. Below are the steps I have taken which I thought would work. What am I doing wrong?   * I am using:      * MiKTeX 2.9     * TeXnicCenter 2.0 Beta 1 (64 bit)     * JabRef 2.10   * I downloaded and copied manually **biber.exe** to my MiKTeX directory:       * this step was advised here     * `C:\Program Files\MiKTeX 2.9\miktex\bin\x64\biber.exe`   * I created a new project in TeXnixCenter and a `reference.bib` file in JabRef (both in utf-8): **LaTeX**               \documentclass{article}     \usepackage[backend=biber]{biblatex}     \addbibresource{reference.bib}          \begin{document}     \cite{ref1}     \printbibliography          \end{document}      **Bib-File**               % This file was created with JabRef 2.10.     % Encoding: UTF8               @Article{ref1,       Title                    = {Title},       Author                   = {Phil},       Journaltitle             = {Journal},       Year                     = {2014},            Owner                    = {Phil},       Timestamp                = {2014.05.03}     }        * I set up the output profile in TeXnicCenter: ![Output Profile](http://i.stack.imgur.com/189p0.png)   * I compiled several times in order to create the document but I only recived these warnings:   ... ![enter image description here](http://i.stack.imgur.com/H9qhL.png) ...


title: How can I add Section numbering and a Contents entry to the PDF bookmarks?

text: I'm having a bit of trouble with the PDF bookmarks. I am trying to   1. Add "Contents" as an entry to the PDF bookmarking.   2. Have numbering for my sections and subsections. I am looking to achieve something like this (image taken from the `bookmarks` package documentation): ![Bookmarks](http://i.stack.imgur.com/2IcBi.png) So far, I have only managed to generate my PDF bookmarks, but not edit them. I have included a sample of my document with the following note. The code is only an attempt at a MWE, if there are lines of code that are not relevant to this problem then please feel free to edit. Sorry for the length!               \documentclass[10pt]{article}     \usepackage{graphicx}     \usepackage{epstopdf}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{fnpct}          %\usepackage[numbered]{bookmark}          \usepackage[a4paper]{geometry}     \geometry{top=1.0in, bottom=1.15in, left=1.15in, right=1.15in}          \usepackage[usenames,dvipsnames]{color}     \usepackage{natbib}     \usepackage[colorlinks=true]{hyperref}     \hypersetup{colorlinks=true, citecolor=ForestGreen, linkcolor=Red, urlcolor=Blue}          \usepackage{footnotebackref}     \newcounter{intro}     \renewcommand{\theintro}{Int.}               \begin{document}          \begin{titlepage} \Huge{\sc{Title}} \end{titlepage}          \thispagestyle{empty}     \newpage     \clearpage     \thispagestyle{empty}     \phantom{a}     \vfill     \newpage     \vfill     \addtocounter{page}{-4}          \begin{center}     \textbf{\Large{Abstract}} \\     \vspace*{0.43 cm}     \noindent This is the abstract so far.      \end{center}           \thispagestyle{empty}     \newpage          \clearpage     \thispagestyle{empty}     \phantom{a}     \vfill     \newpage     \vfill          \thispagestyle{empty}     \tableofcontents     \newpage               \section*{Introduction}     \addcontentsline{toc}{section}{Introduction}      \refstepcounter{intro}     \label{s:intro}          \section[Title to be added to ToC]{Title to be added to ToC\\ \large{Subtitle only appearing in text}}\label{label1}     \subsection{Subsection name here}     \subsection{Other name here}     \section{Another section}          \bibliographystyle{plain}      \begin{thebibliography}{99}      ...     \end{thebibliography}     \end{document}      When I tried to use the `bookmark` package I got the error that there was an "option clash" between `bookmark` and `hyperref`.


title: sidenotes package not working with oneside option in book

text: MWE               \documentclass[oneside]{scrbook}          \usepackage{blindtext}          \usepackage{sidenotes}     \usepackage{mwe}          \usepackage[showframe]{geometry}     \geometry{paperwidth=170mm, paperheight=240mm, left=42pt, top=40pt, textwidth=280pt, marginparsep=20pt, marginparwidth=100pt, textheight=560pt, footskip=40pt}     %                    \begin{document}                         %     \begin{marginfigure}%         \includegraphics[width=\marginparwidth]{example-image-a}%         \caption{A small rectangle put in the margin.\label{rectangle}}%     \end{marginfigure}%     %     \blindtext     %     \begin{figure*}[htbp]         \includegraphics[height=180pt,width=400pt]{example-image-c}%         \caption{An even larger rectangle. This is the widest figure option. Both, the text as well as the margin width are used for the diagram.}         \label{rectangle3}     \end{figure*}     %     \clearpage     %     \begin{marginfigure}%         \includegraphics[width=\marginparwidth]{example-image-a}%         \caption{A small rectangle put in the margin.\label{rectangle2}}%     \end{marginfigure}%     %     \blindtext     %     \begin{figure*}[htbp]         \includegraphics[height=180pt,width=400pt]{example-image-c}%         \caption{An even larger rectangle. This is the widest figure option. Both, the text as well as the margin width are used for the diagram.}         \label{rectangle31}     \end{figure*}     %     \end{document}      > Right placement of figure ![enter image description here](http://i.stack.imgur.com/Hioa3.jpg) > Wrong placement of figure ![enter image description here](http://i.stack.imgur.com/s8HYd.jpg)


title: File format preference with graphicx

text: I'm using `Mathematica`to produce some of my graphics (when i'm not able to just TikZ them easily). All these images are availabvle as `.eps` and `.png`having the same file name - let's use `img.eps` / `img.png` in the following. I would like to set a preference for `graphicx` to use only one type, i.e. using               \includegraphics[width=.6\textwitdh]{img}      I would like to specify, which `img` to use with one switch, (package) option or variable. I tried               \DeclareGraphicsExtension{.eps}      to restrict the allowed image extension to `.eps`, but still the `.png` file is included. It seems, `.png`is preferred over `.eps`. Though this is of course restricted to `XeTeX` it might be interesting for others, if you use `.png` together with some lossy format like `.jpg` to have a file extension preference. Is there a package option for that or an easy command (global document option) for that? To provide an MWE is - I think - difficult, because it would be necessary to provide at least 3 files.


title: Move Margin Figure to Other Side

text: I have margin figures on the right side of the page. How can I move them to the left side for all pages?               \documentclass[oneside]{scrbook}     \usepackage{amsmath}     \usepackage{blindtext}          \usepackage{sidenotes}     \usepackage{mwe}          \usepackage[showframe]{geometry}     \geometry{paperwidth=170mm, paperheight=240mm, left=42pt, top=40pt, textwidth=280pt, marginparsep=20pt, marginparwidth=100pt, textheight=560pt, footskip=40pt}     %                    \begin{document}               \chapter{Introduction}          \section{Introduction}          \blindtext          %     \begin{marginfigure}%         \includegraphics[width=\marginparwidth]{example-image-a}%         \caption{A small rectangle put in the margin.\label{rectangle}}%     \end{marginfigure}%     %          \blinddocument     \end{document}      ![enter image description here](http://i.stack.imgur.com/9EYMi.jpg)


title: Page break in dmath equation environment

text: I have a very very long equation. I want it to split over different pages automatically. My quation contains 1700 terms and it may go for many pages. Is it possible with dmath or any other way? e.g.,               \begin{dmath}     a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b     +c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c     +d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d     +e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e     +f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f     +a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a     +b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b     +c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c     +d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d     +e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e     +f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f     +a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a     +b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b     +c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c     +d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d     +e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e     +f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f     +a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a     +b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b     +c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c     +d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d     +e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e     +f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f     +a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a     +b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b     +c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c     +d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d     +e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e     +f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f     +a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a     +b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b     +c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c     +d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d     +e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e     +f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f     +a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a     +b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b     +c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c     +d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d     +e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e     +f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f     +a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a     +b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b     +c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c     +d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d     +e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e     +f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f     +a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a     +b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b     +c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c     +d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d     +e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e     +f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f     +a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a     +b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b     +c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c     +d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d     +e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e     +f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f     +a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a     +b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b     +c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c     +d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d     +e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e     +f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f     \end{dmath}


title: Aligned equations inside of TikZ node.

text: How can I create a tree node with an aligned math equations inside?               \begin{align}     \end{align}      doesn't work               \begin{minipage}{100}       \begin{align}         ...       \end{align}     \end{minipage}      Gives a lot of margin and I don't want to manually tune 100. \nodepart from shapes tikz library seems to be overkill and doesnt do the alignment. Any ideas?


title: How to create custom Tikz nodes?

text: I don't want to change style only. I want to create node that takes 3 numbers and display them with appropriate decorations. For instance:               \mynode{5,6,7}       Should display node with "a=5", "b=6" and "c=7" inside in 3 lines. **Update:** I have this code:               \documentclass{standalone}     \usepackage{tikz}     \usepackage{amsmath}          \newcommand{\statnode}[3]{       \node[rectangle, draw]{         $\begin{aligned}           n &= #1 \\            \text{sum} &= #2 \\            \mu &= #3         \end{aligned}$       }     }          \newcommand{\statnodex}[3]{       node[rectangle, draw]{         $\begin{aligned}           n &= #1 \\            \text{sum} &= #2 \\            \mu &= #3         \end{aligned}$       }     }          \begin{document}          \begin{tikzpicture}[         level distance=100,       ]            \statnode{1}{10}{0.1}       child {         \statnodex{1}{10}{0.1}       };     \end{tikzpicture}     \end{document}      But:   * it is ugly to have 2 commands   * it renders incorrectly for some reason


title: Do commented out options slow down compilation?

text: My main TeX template has a whole bunch of commented out packages and options (so that when I need a package, I can just skim my preamble and comment out the right thing, rather than try and remember the exact name of the package). I also have quite a few packages that I load by default, and I'm not sure which of them I really need in any given file. I could go through one by one, commenting them out and seeing what breaks stuff, I suppose, but if it's not slowing stuff down, I might as well not bother... Does having a lot of extra commented out lines slow compilation of tex documents? Does loading packages that aren't used at all slow down compilation?


title: How to break a word at a given length (without a hyphen)?

text: The problem is to get ![enter image description here](http://i.stack.imgur.com/VYKHS.jpg) The question is justified. The answer is right flush. The dimensions of the rectangle are 5cm and 4cm. The length of the question is unknown. Manually               \documentclass[11pt]{scrartcl}     \usepackage{tikz}          \begin{document}            \def\quest{1/(4.2+5.4)-(3.5+4.7)\\/9}        \def\ans{-0.806944444}           \begin{tikzpicture}[font=\Large]       \draw (0,0) rectangle (5,-4);     \node[align=justify,text width =5cm-1ex,           anchor=north west,inner sep=1pt] (qu) {\quest};     \node[align=right,text width =5cm-1ex,           anchor=north west,inner sep=1pt] (an) at (qu.south west) {\ans};      \end{tikzpicture}          \end{document}      and I get ![enter image description here](http://i.stack.imgur.com/hmrr9.png) **But how to get this automatically ?** **Update-information** The same question was asked on the list pgf/tikz. Mark Wibrow (who worked on pgfmath, and other parts of pgf) gave a beautiful solution :               \documentclass{article}     \usepackage{tikz}     \begin{document}          \def\showsum#1{\ifx#1=\par\hfill\else#1\hskip0.1ex      minus0.5ex\expandafter\showsum\fi}     \tikzset{calculator screen/.style={         inner sep=2pt,         fill=blue!20,         font=\huge\tt,         execute at begin node={\parindent=0pt\hsize=5cm\vbox to4cm\bgroup},         execute at end node=\vfill\egroup     }}          \tikz\node[calculator screen]         {\showsum 1/(4.2+5.4)-(3.5+4.7)/9 +3+2+1= -.80694444};          \end{document}       Very impressive


title: Converting legacy amstex picture with \LPic to latex

text: I am converting legacy amstex code to latex. I am stuck on vector pictures in the document. In the "main" document, there is code like this:               \centerline{\input fig11.tex}      In the `fig11.tex` file, there is code, that looks like this:               %%AmSTeX     \LPic 11.8 5.0 fig11.psp      {}{}{     \atxy 20 5 \BText{some description}     %%.....more similar \atxy commands...%%     }      and `fig11.psp` looks like this (with far more lines of the "same thing"):               81 LBegin     /p0 { 120 5 } def     /p1 { 140 5 } def     /p2 { 70 10 } def     LNarrow     p0 p1 2 LTextloc     p2 p3 3 LTextloc     p3 p4 4 LTextloc     p5 LDot     p6 LDot     p14 p9 LLine     p14 p10 LLine     p15 p11 LLine     p15 p12 LLine     p23 p24 LVector     p26 p25 LVector     LEnd      (It is not a legal postscript.) Now I don't have a clue how to convert those to something LaTeX will like (it doesn't know the `\LPic` command, lpic.sty seems like something a bit different and I can't force it to work anyway) edit: oh god. It's probably this frankly bizzare thing: http://jan.ucc.nau.edu/~ns46/226/1/lhead.tex ...I am not sure at all what to do with it.


title: Citing RFCs with biblatex

text: I want to cite RFCs in the format [RFCxxxx] instead of using the author's initials and the year it was published. Currently I am using the `alphabetic` style that comes with `biblatex`. So far, I tried using the `\DeclareCiteCommand` command to use the `key` field in the `.bib` file, but that does not seem to work. I would really appreciate any ideas as how to solve this problem.


title: TikZ: how to draw chained tabular material

text: I am new to TikZ, and this is probably regarded as do-my-homework-for-me question. I'd like to draw a diagram like this: ![enter image description here](http://i.stack.imgur.com/kOwGJ.png) First I need the very basic help on the segments themselves. I have tried nodes with a tabular environment:               \documentclass{standalone}     \usepackage{tikz,tabularx}     \begin{document}     \begin{tikzpicture}     \draw (0,0) node {       \begin{tabularx}{4cm}{|X|X|}       \hline        \multicolumn{2}{|c|}{foo} \\       \hline         prev \hfill & \hfill next \\         \hline        \multicolumn{2}{|c|}{type: local\_par} \\        \multicolumn{2}{|c|}{width: 20pt} \\       \hline       \end{tabularx}     };     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/tbjKZ.png) which comes close, but has a drawbacks:   * I have the feeling that this is not the right way to go    * I don't know how to make the line go from the "next" field to the next table. (Or the prev field of the previous table) as I don't know the position   * The width of the table should be "minimum n points but stretch if needed". Ultimately I'd like to have the arrows start _in_ the field (next to the entry "prev","next" and "list"), similar to this example: ![enter image description here](http://i.stack.imgur.com/IpF2p.png)


title: LaTeX notation for summation over all combinations of two variables?

text: Is there a notation that expresses a summation over all order-independent combinations of two variables? I have a single set of objects and want to show the summation of the joint probabilities of each unordered pair of those objects. I want it to be clear I'm not counting duplicate pairs, because the order of the elements doesn't matter. For example, if I have the set:               w = [dog, cat, bear]      I want to convey:               Z = P(dog, cat) + P(dog, bear) + P(cat, bear)      NOT               Z = P(dog, cat) + P(dog, bear) + P(cat, dog) + P(cat, bear) + P(bear, dog) + P(bear, cat)      ![summation](http://i.stack.imgur.com/Rg1nZ.png)


title: Image on top specified page

text: How can i place an image on the top of the specified page. For example odd pages will be filled by image, even with text. Or, i just want to make sure that (lua)latex will place images on page 2,3,6? Similar problem was discussed here: How to include a picture over two pages, left part on left side, right on right (for books)?


title: Two figures with side captions next to one another

text: I currently have the following figure placed at the bottom of my page:               \begin{SCfigure}[][h]         \centering         \caption{Georg Kantor (1845--1918)}         \includegraphics[height=\measurepage]{images/Georg_Cantor2}         \label{fig:cantor}     \end{SCfigure}      However, I would like to place another figure with side captions right next to it. I can't use the normal `figure` environment because I really need those side captions. Any suggestions?


title: Drawing a grid on each image inside the array of images

text: Please see what I have written,when I need individual grid on each of picture inside my figure-array. In contrast to previews question Drawing a grid on array of images. Question now is why I can't use `\subfloat` before `\includegraphics` in this case? I want to since I need caption below each image. Also I guess it should be some solution to optimize this code, like to define new command and not write grid code on each element of array, since I have more arrays in original document.               \documentclass{article}     \usepackage{subfig}     \usepackage[demo]{graphicx}     \usepackage{tikz}          \begin{document}     \begin{figure}     \centering     \begin{tikzpicture}         \node[anchor=south west,inner sep=0] (image) at (0,0){\includegraphics[trim = 10mm 10mm 70mm 20mm,clip,scale=0.15]{image1}};         \begin{scope}[x={(image.south east)},y={(image.north west)}]         \draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1);     \end{scope}     \end{tikzpicture}     \begin{tikzpicture}         \node[anchor=south west,inner sep=0] (image) at (0,0){\includegraphics[trim = 10mm 10mm 70mm 20mm,clip,scale=0.15]{image2}};         \begin{scope}[x={(image.south east)},y={(image.north west)}]         \draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1);     \end{scope}     \end{tikzpicture}\\     \begin{tikzpicture}         \node[anchor=south west,inner sep=0] (image) at (0,0){\includegraphics[trim = 10mm 10mm 70mm 20mm,clip,scale=0.15]{image3}};         \begin{scope}[x={(image.south east)},y={(image.north west)}]         \draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1);     \end{scope}     \end{tikzpicture}     \begin{tikzpicture}         \node[anchor=south west,inner sep=0] (image) at (0,0){\includegraphics[trim = 10mm 10mm 70mm 20mm,clip,scale=0.15]{image4}};         \begin{scope}[x={(image.south east)},y={(image.north west)}]         \draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1);     \end{scope}     \end{tikzpicture}          \caption{Time evolution}     \end{figure}          \end{document}


title: mtxrun opens PDF reader multiple times (in some invalid way)

text: This seems like a problem that should be well known and easy to fix, but I can't find any information about it. I decided to look in to ConTeXt, and I've hit a couple of stumbling blocks (but one is far more annoying than the other, so I'll focus on that one here). I've installed ConTeXt and SciTE on two of my computers following the instructions at http://wiki.contextgarden.net/Windows_Installation:_ConTeXt_Suite_with_SciTe. One machine runs Windows 7 x64, the other x86. One has Evince installed, and the other does not (instead it has Adobe Reader right now). On the 64-bit machine with Evince, when I build a file using mtxrun, it launches evince three times (evince doesn't open a file), produces output like it's actually doing the build process, and then opens Evince three more times. So the result of building is always 6 Evince instances, all with no file loaded. On the 32-bit machine with Adobe Reader, when I try using mtxrun, it sits for a very long while (presumably while Adobe Reader loads) and I get "An internal error occurred." from Adobe Reader three times. Then it builds, and then it sits for a while longer and I get "An internal error occurred" from Adobe Reader three more times. So, for some reason, it appears to be launching the default PDF reader 3 times at the beginning and 3 times at the end, and I suspect calling them in some invalid way (with a bad file?) that results in Evince just not opening anything and Adobe Reader crashing. If I open the PDF it produced manually it looks fine. I'm building from SciTE and mtxrun should be set up to use MKIV/LuaTeX. I'm thinking this is a configuration problem with LuaTeX, but I don't know enough to investigate this myself and no one else seems to be having the same problem (even though it does the same thing on both of my computers). My other issue is that despite following the instructions I linked to I can't get SciTE to syntax highlight. I mention it only in case someone knows a problem with those instuctions, otherwise this isn't a big issue for me because I'll probably end up using a different text editor anyway.


title: Aligning enumerate labels to top of image?

text: I asked a question a while ago about vertically aligning enumerate labels to the top of table. Now I am having the same problem, but with images. Since my problem was solved in my previous thread, I tried sticking the image in a single-cell table and aligning that with the tabular's alignment parameter, but it seemed to have no effect. Can someone explain what is the correct way to align this image and why didn't sticking it in a table work as expected? I am simply trying to align the enumerate label with the top of my image. ![enter image description here](http://i.stack.imgur.com/ngZeA.png)               \begin{enumerate}[label=(\alph*)]       \item\begin{tabular}[t]{l}\includegraphics[width=10cm]{13a.png}\end{tabular}     \end{enumerate}


> **Possible Duplicate:**   >  Aligning enumerate labels to top of image? The current code produces the labels at the lower left corners of the enumerated images. ![enter image description here](http://i.stack.imgur.com/6XQqQ.png)               \documentclass[a6paper]{article}     \usepackage{geometry,graphicx,multicol,enumerate}     \columnsep=5pt          \begin{document}     \begin{enumerate}[\bf 1.]     \item Which is the correct diagram?         \begin{multicols}{2}             \begin{enumerate}[a.]                 \item \includegraphics[width=\linewidth]{example-image-A}                            \item \includegraphics[width=\linewidth]{example-image-B}                 \item \includegraphics[width=\linewidth]{example-grid-100x100pt}                             \item \includegraphics[width=\linewidth]{example-image-A}                            \item \includegraphics[width=\linewidth]{example-image-B}             \end{enumerate}         \end{multicols}     \item What is your name?     \end{enumerate}     \end{document}      How to put the labels of enumerated images at the middle left of the images?


title: How do I have the list item appear on the top left of the image?

text: I am including an image with the `graphicx` package in an enumerated list.               \begin{enumerate}     \item     \includegraphics[width=100px]{my_image.png}     \end{enumerate}      The list item number appears on the bottom left of the image. I tried to place the list item number above left of the image with a new line to no avail.               \begin{enumerate}     \item     \newline     \includegraphics[width=100px]{my_image.png}     \end{enumerate}      How do I place the list item number above left of the image?


title: How to align enumerate and image

text: I have the following code which doesn't align a) and b) with the top of the image. How can I align them?               ...     \begin{enumerate}     \item Find the unknown values and in each case, give a reason.             \begin{enumerate}     \item     \includegraphics[scale=0.6]{images/image1.png}\\     \item     \includegraphics[scale=0.6]{images/image2.png}\\       \end{enumerate}     \end{enumerate}     ...      ![enter image description here](http://i.stack.imgur.com/QktZT.png)


title: Export eps figures from TikZ II

text: > This question is a very similar to Export eps figures from TikZ however the > solution that has been accepted there does NOT appear to be working for me. > > I have also tried the example from the pgfmanual (v2.10) on page 344. It > works to create pdf's but I have not been able to get the part working that > is needed to generate eps files (described on page 345) > > I have tried it on two different machines but both are running mac os 10.9.2 > with TeXLive-2013 and TeXShop. After I had tried the example provided in the pgfmanual and could not produce eps files with it (at all) I used the code provided Caramdir provided (version for unix systems on top). I used `latex -shell-escape` to run the code and all seemed fine. However I have not been able to open the generated .eps file with either "preview", "word for mac (desperate attempt)" or "adobe illustrator (win 7)". The first two would present me with an error message and the later show me an empty white space. The odd thing is however that if I open the eps file with texshop it seems to be able to convert the file into a pdf document and display it (also works if I manually rename the file first). I have tried with a few different version but always got the same results. Below is the last code I have tried:               \documentclass{article}     \usepackage{tikz}          % set up externalization     \usetikzlibrary{external}     \tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error     -interaction=batchmode -jobname "\image" "\texsource";     dvips -o "\image".ps "\image".dvi;     ps2eps "\image.ps"}}     \tikzexternalize      %  activate!     \begin{document}     \begin{tikzpicture}       \node {root}         child {node {left}}         child {node {right}           child {node {child}}           child {node {child}}         };     \end{tikzpicture}     A simple image is \tikz \fill (0,0) circle(5pt);.     \end{document}      I am not dead set on using this approach to produce eps versions of my tikzpictures so I am happy for any other idea to create the pictures. One more thing that is likely of little consequence: I have placed all my tikz images in separate files using the standalone package. I hope this will not cause any problems. Or do I need to be concerned? Could the cause also be an improper installation of pdftoeps? The problem is the link provided seems to be broken. > Possible solution found? I have just found this question. It does not have an accepted answer but I gave the one by `pluton` a go never the less. Everything worked just as before but I did not get a eps file. Luckily one of the comments caught my attention (also by pluton) that the result would be a *.ps file but could just be renamed to *.eps. This seams to work for his approach as well as the code I posted above. Is there a problem with this approach? Is *.ps and *.eps interchangeable?


title: How can I set the 'final' option for the graphicx package in XeTeX?

text: I'm using XeTeX and wondering how to set the `final` option of the `graphicx` package. I started my document with pdfTeX and the following lines:               \documentclass[a4paper, 12pt, twoside, headsepline, draft]{scrreprt}          ...          \usepackage[final]{graphicx}      Then I migrated to XeTeX and got an option clash for the `graphicx` package. Having removed the `graphicx` declaration the clash vanished but so did the graphics. Doing some research I came across this and tried to change it from `draft` to `final` but unfortunately without success.


title: Print year after author in biblatex' numeric style

text: I'm using the default style `numeric` in `biblatex`. In this style, the year is printed last in the bibliography: ![enter image description here](http://i.stack.imgur.com/6W7g5.png) I would like to have the year directly after the author's name: > George Harrison. 2000. _My music is better than Paul's and John's_. What command can I put into the preamble of my `.tex` file to enforce this?               \documentclass{article}     \usepackage{csquotes,biblatex,filecontents}     \begin{filecontents}{\jobname.bib}     @BOOK{harrison2000,         AUTHOR = "George Harrison",         TITLE = "My music is better than Paul's and John's",         YEAR = "2000"}     \end{filecontents}     \addbibresource{\jobname.bib}     \begin{document}     Text \parencite{harrison2000}.     \printbibliography     \end{document}


title: \newcommand for tabular entries using keyval

text: I am trying to define a command for tabular entries using `keyval`.               \documentclass{article}          \usepackage{keyval}          \makeatletter     \define@key{tabularEntryKeys}{a}[\dots]{#1 & }     \define@key{tabularEntryKeys}{b}[\dots]{#1   }     \makeatother          \newcommand{\tabularEntry}[1]{\setkeys{tabularEntryKeys}{#1}}          \begin{document}          \begin{tabular}{c|c}\hline       \tabularEntry{a=1,b=2} % shall be "1 & 2"     \end{tabular}          \end{document}      However it does not compile. Any suggestions?


title: Rebinding keys in AUCTeX

text: I'm trying to rebind a few keys in AUCTeX, mainly `\textit` and the like. So, as a test I've added to `.emacs`               (add-hook 'LaTeX-mode-hook       (lambda ()         (define-key LaTeX-mode-map (kbd "C-S-i") 'find-file)       )     )      It works, but which is the command I have to write instead of `find-file` to insert `\textit` as `C-c C-f C-i` does?


title: biblatex driver for journals without real page numbers

text: Some open access journals like JHEP don't have a real page number, altough they export one, see: http://iopscience.iop.org/1126-6708/2001/01/010/               \documentclass{article}          \usepackage[]{biblatex}     \usepackage{filecontents}          \begin{filecontents*}{refs.bib}     @article{1126-6708-2001-01-010,       author={Gennaro Corcella and Ian G. Knowles and Giuseppe Marchesini and Stefano Moretti and Kosuke Odagiri and Peter     Richardson and Michael H. Seymour and Bryan R. Webber},       title={HERWIG 6: an event generator for hadron emission reactions with interfering gluons (including supersymmetric processes)},       journal={Journal of High Energy Physics},       volume={2001},       number={01},       pages={010},       url={http://stacks.iop.org/1126-6708/2001/i=01/a=010},       year={2001},       abstract={HERWIG is a general-purpose Monte Carlo event generator, which includes the simulation of hard lepton-lepton, lepton-hadron and hadron-hadron scattering and soft hadron-hadron collisions in one package. It uses the parton-shower approach for initial- and final-state QCD radiation, including colour coherence effects and azimuthal correlations both within and between jets. This article updates the description of HERWIG published in 1992, emphasising the new features incorporated since then. These include, in particular, the matching of first-order matrix elements with parton showers, a more correct treatment of heavy quark decays, and a wide range of new processes, including many predicted by the Minimal Supersymmetric Standard Model, with the option of R-parity violation. At the same time we offer a brief review of the physics underlying HERWIG, together with details of the input and control parameters and the output data, to provide a self-contained guide for prospective users of the program.}     }     \end{filecontents*}          \addbibresource{refs.bib}          \begin{document}     \nocite{*}     \printbibliography     \end{document}      This does not render well with biblatex's `article` driver, because the "010" is regarded as a real page number. What do you suggest to remove the "p." and maybe put the "010" in paranthesis? ![screenshot demonstrating the problem](http://i.stack.imgur.com/4utGV.jpg)


title: Matrices with llncs class

text: I have the following snippet to display a matrix equation using the regular `amsmath` packages:               \begin{equation}     S(x) =       \begin{pmatrix}     0 & 0 & 1 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 0 \\     1 & 1 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 1 & 1 & 0 & 1 & 0 & 1 & 0 \\     1 & 1 & 0 & 0 & 1 & 0 & 1 & 1 & 0 & 1 & 0 & 1 & 0 & 0 & 1 & 1 \\     1 & 1 & 1 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 1 & 0 & 0 & 0 & 0 & 0 \\     1 & 1 & 0 & 0 & 0 & 1 & 1 & 0 & 0 & 1 & 1 & 1 & 1 & 0 & 1 & 1 \\     0 & 1 & 0 & 0 & 0 & 0 & 1 & 1 & 0 & 1 & 1 & 1 & 1 & 1 & 0 & 1 \\     0 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 1 & 0 & 0 & 1 & 1 & 0 & 0 \\     1 & 0 & 1 & 1 & 1 & 0 & 1 & 1 & 0 & 0 & 0 & 1 & 0 & 1 & 1 & 1 \\     0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 1 & 1 & 0 & 1 \\     1 & 0 & 1 & 1 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 1 & 0 & 0 & 0 \\     1 & 0 & 1 & 0 & 0 & 1 & 1 & 1 & 0 & 0 & 1 & 1 & 0 & 1 & 0 & 0 \\     1 & 0 & 1 & 1 & 1 & 0 & 1 & 1 & 1 & 1 & 0 & 1 & 1 & 0 & 0 & 1 \\     1 & 0 & 1 & 0 & 0 & 1 & 0 & 1 & 1 & 0 & 0 & 1 & 0 & 0 & 0 & 1 \\     0 & 1 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 1 \\     1 & 0 & 0 & 0 & 1 & 1 & 0 & 1 & 0 & 1 & 1 & 1 & 1 & 0 & 0 & 0 \\     1 & 1 & 0 & 1 & 0 & 1 & 1 & 0 & 1 & 0 & 0 & 1 & 1 & 0 & 0 & 0 \\     \end{pmatrix}     \begin{pmatrix}     x_{15} \\     x_{14} \\     x_{13} \\     x_{12} \\     x_{11} \\     x_{10} \\     x_{9} \\     x_{8} \\     x_{7} \\     x_{6} \\     x_{5} \\     x_{4} \\     x_{3} \\     x_{2} \\     x_{1} \\     x_{0} \\     \end{pmatrix}^{-1}     +     \begin{pmatrix}     0 \\     1 \\     0 \\     0 \\     0 \\      1 \\     0 \\     1 \\     1 \\     0 \\     1 \\     1 \\     0 \\      1 \\     1 \\     1 \\     \end{pmatrix}      However, when I try to compile this same code with the `llncs` class file (http://www.springer.com/computer/lncs/lncs+authors?SGWID=0-40209-0-0-0), which forces me to remove the `amsmath` package references, the following error is thrown: > ! Misplaced alignment tab character &. l.544 0 & 0 & 1 & 0 & 0 & 0 & 0 & 1 & > 0 & 0 & 1 & 1 & 1 & 1 & 1 & 0 \ Clearly I'm making some simple error, but I'm not sure what it is. Does anyone see it?


title: Can I change the overall width of the invoice package's table?

text: I'm using `\usepackage{invoice}`, and I'm wondering if I can adjust the width of the table?               \documentclass{article}     \usepackage{invoice}     \date{September 1994}     \begin{document}     \begin{invoice}{USD}{0}     \ProjectTitle{Administrative Fees}     \Fee{Database Management}{1199.99}{3}     \EBC{Tolerating You}{1000.00}     \end{invoice}     \end{document}      * * *


title: Listings package does not break with mwrep document class

text: I cannot get listings package to break lines with any of the methods described in previous questions: Listings package does not break, http://stackoverflow.com/questions/981020/how-to-force-line-wrapping-in- listings-package This problem appears only when using `mwrep` document class. In `report` or `article` line-breaks work just fine. Here is my MWE:               \documentclass{mwrep}     \usepackage{listings}          \begin{document}     \begin{lstlisting}[ breaklines=true ]     Some text with a long line that needs to be broken but is not with mwrep documentclass. What should I do about it?     \end{lstlisting}     \end{document}


title: How do I change the font size of the \tag content globally?

text: Is it possible to set the font size for the `\tag{}` content from the `align` environment globally? MWE:               \documentclass{article}     \usepackage{amsmath}     \begin{document}     \begin{align*}     1+1=2 \tag{test}       \end{align*}     \end{document}      I want the tag text to be `\small` without having to specify it every time.


title: How can I create a better pseudo-enumerated list unconstrained by any environment

text: I have a longish document which isn't written in LaTeX but structures for markup are easily identified. I can write a Perl script to translate most of the document into LaTeX. However, lists present a bit of a headache because it's not always clear where such an _environment_ should begin or end. Fortunately, the vast majority (if not all) listed items to appear in the document consist of single paragraphs each. So, I thought I could write a simple macro that would simulate the appearance of a list item. Here's the code that I came up with on my first run.               \documentclass{article}          \makeatletter          \newcounter{aelistcnt}     \newcommand\alist{\ae@list}     \def\ae@list{%%       \refstepcounter{aelistcnt}%%       \par       \vskip 2ex plus 0pt minus 2ex       \let\ae@par\par       \let\par\ae@@par       \parshape 1 2em \dimexpr\columnwidth-4em\relax       \noindent       \makebox[0pt][r]{(\arabic{aelistcnt})\hspace{0.5em}}%%     }          \def\ae@@par{%%       \ae@par       \vskip 1ex plus 0pt minus 1ex       \let\par\ae@par}          \makeatother          \def\aevbox{%%       \raisebox{0pt}[0pt][0pt]{\makebox[0pt]{\rule{1pt}{4ex}}}}          \usepackage{lipsum}          \begin{document}          \lipsum[13]          \alist \aevbox Pr     \alist b          \alist \lipsum[11]     \alist \aevbox\lipsum[39]     \alist \lipsum[65]          \lipsum[23]          \alist\lipsum[11]          \end{document}      The problem is how the list interacts with the surrounding document. In particular, whether or not there is a paragraph break between items for this _pseudo_ list, I want consistent spacing in front of the list, between items in the list, and following the last item. I use glue (something I'm not all that familiar with) to try to achieve the desired effect. The above does a reasonable job, but I want to be able to better. (The point o the `\aevbox` was to help me see discrepencies.) Another approach dispenses with glue altogether. Instead I change the definition of `\par`.               \documentclass{article}          \makeatletter          \newif\if@aelist     \newif\if@aedoublepar     \newcounter{aelistcnt}     \newcommand\alist{\ae@list}     \def\ae@list{%%       \refstepcounter{aelistcnt}%%       \ae@par@test       \parshape 1 2em \dimexpr\columnwidth-4em\relax       \noindent       \makebox[0pt][r]{(\arabic{aelistcnt})\hspace{0.5em}}%%     }          \def\ae@par@test{%%       \typeout{===>\theaelistcnt}%%       \if@aelist         \ae@@@par         \let\par\ae@@par         \typeout{\space\space\space\space:(TRUE):\space\space PREVIOUSLY LIST}%%       \else         \typeout{\space\space\space\space:(FALSE):\space NEW LIST}%%         \vspace{2ex}%%         \par         \let\ae@par\par         \let\par\ae@@par       \fi       \@aelisttrue       }          \def\ae@@par{%%       \typeout{\space\space\space\space:ae@@par:}%%       \ae@par       \vspace{2ex}%%       \@aedoublepartrue       \let\par\ae@@@@par       }          \def\ae@@@par{%%       \typeout{\space\space\space\space:ae[3@]par:}%%       \if@aedoublepar         \@aedoubleparfalse       \else         \vspace{2ex}%%         \ae@par       \fi     }          \def\ae@@@@par{%%       \typeout{\space\space\space\space:ae[4@]par:BACK TO NORMAL PAR}%%       \let\par\ae@par       \@aelistfalse       \@aedoubleparfalse       \par     }          \makeatother          \usepackage{lipsum}     \begin{document}          \lipsum[13]          \alist a     \alist b     \alist c          \alist d     \alist \lipsum[11]     \alist \lipsum[39]     \alist \lipsum[65]          \lipsum[23]          \alist\lipsum[11]          \lipsum[23]          \end{document}      This seems to do a better job. But I'm still not entirely satisfied. There seems to be no nice way to clean up the definition of `\par` early and I worry that some other LaTeX code may come in and inadvertently create havoc with an only-partially reimplemented `\par` command. (One benefit of this exercise is I've seen how nice an environment can be for _containing_ and _cleaning up_ code before things get to out of whack.) So what I'm interested in are suggestions for better ways of handling this without having to actually manually create the proper list environment.


title: amsbook with multiple page glossary

text: I'm not sure if the protocol is to edit my previous post amsart/amsbook with non-default glossary style to add this question, but it is certainly related. There seems to be another conflict between the AMS document classes and the glossary package, which occurs when the glossary runs to more than one page. The error is:               ! Undefined control sequence.     <argument> \glossarytoctitle      Here's the MWE. (I say `minimal': there might be a few more lines than needed, but it's minimal in complexity.)               \documentclass{amsbook}     \usepackage{glossaries}          \makeglossaries          \newglossaryentry{q}{name=q,description=blah}     \newglossaryentry{w}{name=w,description=blah}     \newglossaryentry{e}{name=e,description=blah}     \newglossaryentry{r}{name=r,description=blah}     \newglossaryentry{t}{name=t,description=blah}     \newglossaryentry{y}{name=y,description=blah}     \newglossaryentry{u}{name=u,description=blah}     \newglossaryentry{i}{name=i,description=blah}     \newglossaryentry{o}{name=o,description=blah}     \newglossaryentry{p}{name=p,description=blah}     \newglossaryentry{l}{name=l,description=blah}     \newglossaryentry{k}{name=k,description=blah}     \newglossaryentry{j}{name=j,description=blah}     \newglossaryentry{h}{name=h,description=blah}     \newglossaryentry{g}{name=g,description=blah}     \newglossaryentry{f}{name=f,description=blah}     \newglossaryentry{d}{name=d,description=blah}     \newglossaryentry{s}{name=s,description=blah}     \newglossaryentry{a}{name=a,description=blah}     \newglossaryentry{z}{name=z,description=blah}     \newglossaryentry{x}{name=x,description=blah}     \newglossaryentry{c}{name=c,description=blah}     \newglossaryentry{v}{name=v,description=blah}     \newglossaryentry{b}{name=b,description=blah}     \newglossaryentry{n}{name=n,description=blah}     \newglossaryentry{m}{name=m,description=blah}          \begin{document}          \gls{q}     \gls{w}     \gls{e}     \gls{r}     \gls{t}     \gls{y}     \gls{u}     \gls{i}     \gls{o}     \gls{p}     \gls{l}     \gls{k}     \gls{j}     \gls{h}     \gls{g}     \gls{f}     \gls{d}     \gls{s}     \gls{a}     \gls{z}     \gls{x}     \gls{c}     \gls{v}     \gls{b}     \gls{n}     \gls{m}          \printglossary          \end{document}


title: Why cannot the word in the last column be centered

text: I have the following table:               \begin{tabular}{|p{3cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|}     \hline     \centerline {image}      &    \multicolumn{2}{c|}{ABC} & \multicolumn{2}{c|}{DEF} \\     \hline      & \centering A&\centering B&\centering C&\centering D      \\     \hline     \centerline 1&&&& \\     \hline     \centerline 1&&&& \\     \hline     \centerline 1&&&& \\     \hline     \centerline 1&&&& \\     \hline     \end{tabular}      When I try centering `D`, I have a problem in the shape of the table. Why is that? How can I center it appropriately? Thanks.


title: Table with shaded transitition, rounded corners and shadow (like a block of the theme)

text: this is my first question here. I want to make my table look like the block to have a consequent style. Questions:   * How to create that shaded transition from the table headline to the body (like the block)   * How to add the shadow. (Different solutions on this forum dont seem to work for my code..) Here is my minimalistic code which produces the following output:               \documentclass{beamer}       \usetheme{Berlin}       \setbeamertemplate{blocks}[rounded][shadow=true]          % Packages       \usepackage[USenglish]{babel}       \usepackage{times}       \usepackage{tikz}       \usepackage{parskip}       \usepackage{tabularx}       \usepackage{booktabs}       \usepackage{colortbl}          % This is for rounded corners       \usetikzlibrary{calc}       \pgfdeclarelayer{background}       \pgfdeclarelayer{foreground}       \pgfsetlayers{background,main,foreground}          % Define colors       \definecolor{TblTitle}{RGB}{38,38,134}       \definecolor{TblBody}{RGB}{233,233,243}          \begin{document}                                                              \begin{frame}       \begin{block}{Block 1}       \begin{itemize}       \item item 1       \item item 2       \end{itemize}       \end{block}          \begin{tikzpicture}       \node(tbl){       \begin{tabularx}{\textwidth}{p{0.5\textwidth}p{0.5\textwidth}}       \textcolor{white}{Column 1} & \textcolor{white}{Column 2} \\       \begin{itemize}       \item item 3       \item item 4       \end{itemize} &        \begin{itemize}       \item item 5       \item item 6       \end{itemize} \\[-1em]       \end{tabularx}};       \begin{pgfonlayer}{background}         \draw[rounded corners,top color=TblTitle,       bottom color=TblTitle,draw=white]       ($(tbl.north west)+(0.12,0)$)       rectangle ($(tbl.north east)-(0.12,0.9)$);       \draw[rounded corners,top color=TblBody,       bottom color=TblBody,draw=white]        ($(tbl.south west)+(0.12,0.5)$)       rectangle ($(tbl.south east)-(0.12,0)$);       \draw[top color=TblBody,bottom color=TblBody,draw=TblBody]       ($(tbl.north east)-(0.13,0.6)$)       rectangle ($(tbl.south west)+(0.13,0.2)$);       \end{pgfonlayer}       \end{tikzpicture}       \end{frame}          \end{document}      ![Table and block](http://i.stack.imgur.com/5M7OE.png)


title: Cambria Math becomes plain Cambria

text: I'm a LaTeX neophyte, so please excuse my ignorance. I want to typeset a document with text in Cambria and math in Cambria Math. I found the unicode-math package, which seems to do what I want. Here is a simple sample:               \documentclass{article}          \usepackage{unicode-math}     \setmainfont{Cambria}     \setmathfont{Cambria Math}          \begin{document}          The Bezier curve $C$ of degree $m$ is     $$C(u) = \sum_{i=0}^m f_i(u)P_i$$          \end{document}      The math is coming out as plain (upright) Cambria. Any idea what might be going wrong ?? [Elaboration]: I'm using MikTeX 2.9, and XeLateX. I updated the XeTeX version because unicode-math told me to. I'm just choosing an option from the TeXworks menu. I don't know what's happening behind the scenes (and I hope I don't need to know). Here is some log file output that might be relevant:               Requested font "Cambria/ICU:script=latn;language=DFLT;" at 10.0pt      -> C:/Windows/Fonts/CAMBRIA.TTC     Requested font "Cambria Math/ICU" at 10.0pt      -> C:/Windows/Fonts/CAMBRIA.TTC     \g_fontspec_family_Cambria Math_int=\count125     Requested font "Cambria Math/B/ICU" at 10.0pt      -> C:/Windows/Fonts/CAMBRIA.TTC     .................................................     . fontspec info: "no-font-shape"     .      . Could not resolve font Cambria Math/B (it probably doesn't exist).     .................................................     . fontspec info: "defining-font"     .      . Font family 'CambriaMath(0)' created for font 'Cambria Math' with options     . [BoldItalicFont={},ItalicFont={},Script=Math,SizeFeatures={{Size=10-},{Size=7     -10,Font=Cambria     . Math,Style=MathScript},{Size=-7,Font=Cambria     . Math,Style=MathScriptScript}},].     .      . This font family consists of the following shapes:     .      . * 'normal' with NFSS spec.:     . <10->"Cambria Math/ICU:script=math;language=DFLT;"<7-10>"Cambria     . Math/ICU:script=math;language=DFLT;+ssty=0;"<-7>"Cambria     . Math/ICU:script=math;language=DFLT;+ssty=1;"


title: How to remove a single section from the header of a beamer presentation?

text: > **Possible Duplicate:**   >  LaTeX Beamer: Frame outside sections? I am using Beamer with the Warsaw theme, and all sections show up in my headline. Is there an easy way to remove them? I have tried using               \section*{My section}      and this removed them from the TOC, however the trick doesn't apply for the headline. Thank you for your help,   Tunnuz


title: Remove section from table of contents AND headline

text: I want to add a section in my presentation without showing it in the TOC or in the headlines. I know how to hide a section from the headline using an empty optional arguments `\section[]{}`, I also know how to hide it from TOC `\section*{}`, but after searching I didn't find how to hide it from both headline and TOC ?


title: How to customize lists in Latex without using frenchb package?

text: I found that we can customize LaTeX lists like this (for example):               \begin{itemize}[font=\color{red},label=\ding{43}]     \item item1     \item item2     \end{itemize}      but to have such beautiful lists, we must load the packages               \usepackage[frenchb]{babel}     \usepackage{enumitem}     \usepackage{pifont}      and add this instruction:               \frenchbsetup{StandardLists=true}      My problem is that I do not want to use the `frenchb` package, I am writing an article in English language. How can I fix this trouble?


title: How to refer to the corner of a node?

text: Is there a node suffix for the corners of a node? I'd like the brace in this example to go from the lower-left corner of the first box to the lower-right corner of the last.               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{shapes,patterns,decorations.pathreplacing}     \begin{document}         \tikzstyle{frame} = [rectangle, draw, fill=blue!20,             text width=4em, text centered, minimum height=3em, node distance=3cm]         \begin{tikzpicture}             \node [frame] (f1) {$f_1$};             \node [frame, right of=f1] (f2) {$f_2$};             \node [frame, right of=f2] (f3) {$f_3$};             \draw [decoration={brace,mirror},decorate] (f1.center) -- (f3.center);         \end{tikzpicture}     \end{document}      ![MWE](http://i.stack.imgur.com/UaceZ.png)


title: How to change partitioned frame title number from Roman to Arabic?

text: ## Problem When `allowframebreaks` is turned on, long data will be divided into several slides. Each slide in this partition has the same title ending with a unique number in Roman. How to change this number from Roman to Arabic? * * * ## Screenshot ![alt text](http://i.stack.imgur.com/apn2k.png) * * * ## Code Snippet               \documentclass{beamer}     \usepackage{lipsum}          \begin{document}     \begin{frame}[allowframebreaks]{A}     \lipsum[1-2]     \end{frame}     \end{document}      * * * ## Edit 1 On page 60 of beamer's manual there is an info about this but I have no idea how to do this because the convention and terminology used there is a bit confusing.


title: Making align produce the same output as multiple aligns

text: How can I make the following code:               \begin{align*}     P(a<\mu<b|\mathbf{y})  = 0.95 \\     P\left(-t_{0.025}<\frac{\mu-\overline{y}}{\widehat{\sigma} / \sqrt{n}}<t_{0.025} |\mathbf{y}\right)  = 0.95 \\     P\left(-t_{0.025}\frac{\widehat{\sigma}}{\sqrt{n}}+\overline{y} < \mu < t_{0.025}\frac{\widehat{\sigma}}{\sqrt{n}}+\overline{y}\right)  = 0.95     \end{align*}      ...produce the same output as the following code:               \begin{align*}     P(a<\mu<b|\mathbf{y})  = 0.95     \end{align*}     \begin{align*}     P\left(-t_{0.025}<\frac{\mu-\overline{y}}{\widehat{\sigma} / \sqrt{n}}<t_{0.025} |\mathbf{y}\right)  = 0.95     \end{align*}     \begin{align*}     P\left(-t_{0.025}\frac{\widehat{\sigma}}{\sqrt{n}}+\overline{y} < \mu < t_{0.025}\frac{\widehat{\sigma}}{\sqrt{n}}+\overline{y}\right)  = 0.95     \end{align*}      The output of the second code has too much white vertical space between each line, however the alignment is what I want, but I am not sure how to achieve that in the first code. Thanks.


title: The key to understanding the LaTeX syntax

text: I'm having serious problems understanding the syntax of LaTeX well. I know a lot of programming languages but LaTeX still is a little cryptic for me. Do you know what the key to fully understanding it is?


Why does LaTeX make a distinction between commands and environments?   Or also: why do we need environments? I ask this because I am defining a number of custom commands (like `\question{}` and `\answer{}`) and I am not entirely sure whether to use the `\newcommand`-way or the `\newenvironment`-way (both work). The difference seems to be in supporting Tables and Figures and other 'complicated' stuff in my custom command. (If I compare to HTML/CSS, all things are tags (or CSS classes or IDs), and they can be specified (or default to) to be inline or not. But apart from that, there is not a real difference among them. It seems to be that the underlying model of HTML/CSS formatting is simpler and therefor easier to understand and use.)


title: How to prevent beamer from removing the tab alignment of lstlisting?

text: I want to show my C# code snippet on the presentation slides using `beamer`. Because the code is long, I set the frame to be breakable using the frame option `allowframebreaks`. The code now can be shown in several frames. Unfortunately, the tab alignment in the original source no longer be preserved. * * * ![alt text](http://i.stack.imgur.com/0Pur7.png) * * *               \documentclass[dvipsnames,cmyk]{beamer}     \usepackage{listings}          \lstset%     {%        language=[Sharp]C,        backgroundcolor=\color{Black},        basicstyle=\color{White}\tiny\ttfamily,        keywordstyle=\color{Orange},        identifierstyle=\color{Cyan},        stringstyle=\color{Red},         commentstyle=\color{Green},          breaklines=true,        breakatwhitespace=true,        tabsize=10,        showstringspaces=false%     }                    \begin{document}     \begin{frame}[allowframebreaks,fragile]{MyListing}     \begin{lstlisting}     using System;          publid delegate void Foo(object o);          public class Program: object     {      public static void Main(string[] args)      {        Console.WriteLine("Hello World");//This is a comment.        /*This is a comment too.*/      }      public static void PSTricks(this object)      {        Say("I Love PSTricks!");             Say("I Love PSTricks!");             Say("I Love PSTricks!");             Say("I Love PSTricks!");      }           public static void LaTeX(this object)      {        Say("I Love LaTeX too!");             Say("I Love LaTeX too!");             Say("I Love LaTeX too!");             Say("I Love LaTeX too!");      }           public void Say(System.String message)      {        System.Text.StringBuilder sb=new System.Text.StringBuilder();             sb.Append(messange);             Console.WriteLine(sb);      }     }     \end{lstlisting}     \end{frame}     \end{document}      * * * ## Edit 1: This bad behavior only happens for the inline inclusion. The inclusion from an external file works well as shown in the following figure. ![alt text](http://i.stack.imgur.com/Hm5ER.png)


title: Missing values in pgfplots with error bars

text: pgfplots can deal with missing values in table inputs by either skipping or jumping over any values which are given as `nan` in the input table file, as discussed here. I want to do a similar thing with error bar plots. In particular, several entries of the table column where errors are given are set to `nan`, as in the code example below. I'd like to have a result where error bars are only plotted on points where non-`nan` values are available.               \documentclass[11pt]{article}     \usepackage{pgfplots}          \begin{filecontents}{tabletest.data}     x  ind2    ind3     0  0.22507 0.99741     1  0.22507 nan     2  0.22507 0.99741     3  0.22507 nan     \end{filecontents}          \begin{document}          \begin{tikzpicture}     \begin{axis}[xlabel=x,ylabel=y,no markers]     \addplot plot[error bars/.cd,y dir=plus,y explicit,error mark=diamond*]        table[x=x,y=ind2,y error=ind3] {tabletest.data};     \end{axis}     \end{tikzpicture}          \end{document}      Unfortunately, compilation fails with the errors `Missing number, treated as zero.` and `Illegal unit of measure (pt inserted).` When replacing `nan` by numeric values, the file compiles, but of course has error bars on all points. Is there another reasonably way to get error bars only on part of the plotted points from table data, or is this a missing feature in pgfplots? This question has an answer suggesting the use of gnuplot, but I'd like to do it without gnuplot.


title: autoref with the float package

text: I would like to use `\autoref{fig:subfig:a}`, but I don't get the figure number by simply typing this. My code is:               \documentclass{article}     \usepackage{amssymb,amstext,amsmath,latexsym,mathtools}     \usepackage{pdfpages}          \usepackage{graphicx}     \usepackage{caption}     \usepackage{subcaption}     \usepackage{float}          \usepackage{hyperref}          \begin{document}          \section{Aya}          \autoref{fig:ABC:a}          \begin{figure}[H]     \centering     \subfloat[this is ...]{     \label{fig:ABC:a}     \includegraphics[width=0.45\linewidth]{ABC1.pdf}}     \hspace{0}     \subfloat[this is ...]{     \label{fig:ABC:b}     \includegraphics[width=0.45\linewidth]{ABC2.pdf}}\\[20pt]     \subfloat[...]{     \label{fig:ABC:c}      \includegraphics[width=0.45\linewidth]{ABC3.pdf}}     \hspace{0}     \subfloat[...]{     \label{fig:ABC:d}     \includegraphics[width=0.45\linewidth]{ABC4.pdf}}     \caption{abcd}     \label{fig:ABC} %% label for entire figure     \end{figure}          \end{document}       What should I add to display the number of the figure correctly?


title: Using listings package for documenting LISP code in two column mode

text: Using `listings` package, I am trying to write some LISP code. The issue is that LISP uses a lot of '-' in function name, and it makes the line width too large to break the boundary in two column mode.               \lstset{numbers=left, numberstyle=\tiny, stepnumber=1,firstnumber=1,       numbersep=5pt,language=Lisp,     stringstyle=\ttfamily,     basicstyle=\footnotesize,      showstringspaces=false     }          \begin{lstlisting}[firstnumber=1, caption=Getting labels, label=glabels]           (defun find-symbol-between-sigma-sets (sigma-a sigma-b scan-node symbols g)       (let* ((scan-node-set-in-sigma-a (find-scan-node sigma-a scan-node))              (next-scan-node-set-in-sigma-b                (get-next-node-set-from-scan-node-set                 scan-node-set-in-sigma-a sigma-b g))              (union-node-set-in-sigma-a                (get-previous-nodes next-scan-node-set-in-sigma-b g)))         (if           (and            (memberp union-node-set-in-sigma-a scan-node-set-in-sigma-a)           (path-exists-between-set-a-and-set-b             union-node-set-in-sigma-a next-scan-node-set-in-sigma-b g))          (car            (unique-get-symbols             union-node-set-in-sigma-a next-scan-node-set-in-sigma-b symbols))          nil)))     \end{lstlisting}       Any good solution? ![enter image description here](http://i.stack.imgur.com/x6LMH.png)


title: Dagger for first footnote on author field

text: How can I get a dagger as the footnote symbol for the author field, not increment the counter, and start off at one with arabic characters from then on?


title: wrapfigure within an exam

text: I am trying to float a figure using `wrapfigure` within an `exam` document using `minipage`. If I don't use a `minipage`, then the exam questions do not wrap around the figure. When I use `minipage` as in the example below, everything wraps, but if the `minipage` (or the longer form with solutions included with `\printanswers`) is longer than one page, then the typesetting runs off the bottom. My simple question is this: what's the correct way to include figures in an `exam`? My example `questions` block follows:               \documentclass{exam}     \usepackage{amsmath}     \usepackage{graphics}     \usepackage{wrapfig}     \begin{document}     \begin{questions}     \begin{minipage}{\linewidth}     \begin{wrapfigure}{r}{9cm}     \includegraphics[width=8cm]{./20x20grid-axes.png}     \end{wrapfigure}          \question Answer all parts below:           \begin{parts}          \part[1] 1 + 1 = \answerline          \fullwidth{\begin{solution}\begin{align*} \boxed{ 2 } \end{align*}\end{solution}}          \part[1] 2 + 2 = \answerline          \fullwidth{\begin{solution}\begin{align*} \boxed{ 4 } \end{align*}\end{solution}}          \part[1] 3 + 3 = \answerline          \fullwidth{\begin{solution}\begin{align*} \boxed{ 6 } \end{align*}\end{solution}}          \end{parts}     \end{minipage}     \end{questions}     \end{document}


title: Relay communication Block diagram

text: Im trying to prepare a research note on the relay communication field, I tried to draw the following diagram in LaTeX (TikZ) but I didn't succeed to draw it good enough... Can anybody help me to draw the following diagram in LaTeX? The 'H's are bold for example               ${\mathbf H}_0$...      ![enter image description here](http://i.stack.imgur.com/HUMPG.png)


title: How do I use \titledquestion in the exam class with or without points?

text: When using the exam class, it is possible to have commands like `\question[5]` or simply `\question` (i.e. with no points). The former includes the points within parentheses by default, and the latter omits the points and the surrounding parentheses. To use titled questions within the exam, where the points are surrounded by parentheses, I have used the following command:               \qformat{\bf \thequestiontitle ~(\thepoints) \hfill}      Now, when I use the `\titledquestion{my title}[5]` and `\titledquestion{my title}` commands, they do not behave in the same way that the `\question[5]` and `\question` commands do. The difference is that the titled versions always end up including parentheses, whether or not points have been specified. **What I want to know is:** what is a proper way to modify the argument of `\qformat` so that the parentheses are only present when a point value has been specified? I was unable to find this in the manual for exam.cls (I assumed it would be somewhere in the section dealing with titled questions).


title: acm_proc_article-sp author's long email address overlapping

text: I'm having a problem with acm_proc_article-sp author's long email address, they overlap each other. Please suggest a solution for this. ![enter image description here](http://i.stack.imgur.com/VaBv9.jpg)


title: Compile chokes on floating table. "Missing number, treated as zero. <to be read again>" error

text: I'm compiling a doc and I get the following error no matter what I try.               LaTeX Warning: Reference `LastPage' on page 4 undefined on input line 256.          <use logo.jpg> [4 <./picture4.png> <./picture4.png>]     ! Missing number, treated as zero.     <to be read again>                         |     l.285 ...5cm} | p{1.25cm} | p{3.0cm} | p{4.5cm} |}          ?      ! Illegal unit of measure (pt inserted).     <to be read again>                         |     l.285 ...5cm} | p{1.25cm} | p{3.0cm} | p{4.5cm} |}          ?      )     Runaway argument?          ! File ended while scanning use of \TX@get@body.     <inserted text>                      \par      <*> Input_API.tex      Yes, I have googled and searched this (and other) sites for an answer to this. Snarky comments not required. Here are my packages               %% Doc Class Declaration %%     \documentclass[a4paper]{article}     \usepackage[margin=4.5cm]{geometry}               %% Additional packages to use %%     \usepackage{amscd,amsmath,amssymb,verbatim}     \usepackage[TS1,OT1,T1]{fontenc}     \usepackage{graphics}     \usepackage{float}     \usepackage{times}          %% These packages are symbols %%     \usepackage{fourier}     \usepackage{bbding}     \usepackage{dingbat}          %% Word wrap in tables %%     \usepackage[english]{babel}          %% Other Stuff     \usepackage{fancyhdr}     \usepackage{lastpage}     \usepackage[xindy,nonumberlist,acronym,toc]{glossaries}     \usepackage[colorlinks]{hyperref}     \hypersetup{linkcolor=black,urlcolor=blue2,citecolor=black,filecolor=black}     \usepackage[usenames,dvipsnames,table]{xcolor}     \usepackage[pdftex]{graphicx}     \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}     \usepackage{pifont}     \usepackage{enumitem}     \usepackage{tabularx}      I have other tex docs that are highly similar to this one that compile fine. For the life of me I cannot pinpoint the diff. Here is the block of code just before line 256.               \begin{figure}[H]     \centering     \framebox{\fboxrule=0.1cm{\includegraphics[width=0.9\linewidth]{picture4.png}}}     \caption{blah blah blah text.}     \label{fig:Picture number Four}     \end{figure}      Any help or guidance is much appreciated. UPDATE 1: Full tabularx env for Xavier               \subsection{API Actions}     \smallskip     \begin{center}     \rowcolors{1}{blue1}{grey2}     \begin{tabularx}{ | p{2.5cm} | p{1.25cm} | p{3.0cm} | p{4.5cm} |}     \hline     \textbf{Action} & \textbf{(C)reate (U)pdate} & \textbf{Params} & \textbf{Comments}\\ \hline     \hiderowcolors     place\_order & CU & order\_id & Orders can be placed as though      specific customers were driving the form.\\ \hline     submit\_order & U & order\_id & Submits the specified order. Order submit     constraints must be met (e.g. if you have "charge code" as a      required field and the order has no "charge code",     then the API request will fail. \\ \hline     order\_purchasing\_information & U & order\_id & Updates am order's purchasing information.     The billing address, shipping address, purchase contact,     and charge code information may be set via this action. \\ \hline     user\_address &  CU & address\_id, type, user\_id & Creates or updates a user address.     If creating a new address you must supply the type and user\_id parameters,     where type is S (shipping), B (billing) or P (purchase contact).     If updating an existing address only the address\_id parameter is required. \\ \hline     primer & CU & primer\_id & \\ \hline     instrument & C & instrument\_id & \\ \hline     user & CU & user\_id & \\ \hline     lab\_group  & CU & lab\_group\_id & \\ \hline     charge\_code & CU & charge\_code\_id & \\ \hline     template & CU & tempalte\_id & \\ \hline     container\_map & U & container\_id & This action updates the location map (a two-column text string that maps container locations to template barcode) for an existing container. Useful for automatically updating the contents of a plate that was just scanned by a bed scanner. \\ \hline     inventory\_item & CU & & inventory\_item\_id \\ \hline     update\_template\_step & U & template\_id (\textit{n}-many) & Updates the step of a supplied list of tempaltes to     the next step in their workflow. \\ \hline     update\_container\_step & U & container\_id (\textit{n}-many) & Updates the step of a list of provided containers.\\     \hline     \end{tabularx}     \end{center}


title: Removing article pages from the footnotes using Historische Zeitschrift Style

text: I use this command to remove pages from the footnotes when the `incollection` is quoted but to leave them in the bibliography.                 \renewbibmacro*{chapter+pages}{%           \printfield{chapter}%           \newunit}%      and:                 \renewbibmacro*{chapter+pages}{%           \printfield{chapter}%           \setunit*{\addcomma\space}%           \printfield{pages}%           \newunit}%      Does anyone know how to adapt this to also work for the `article`? Here is my MWE:               \documentclass[a4paper,11pt]{scrartcl}     \usepackage[latin1]{inputenc}     \usepackage{csquotes}     \usepackage{blindtext}     \usepackage{filecontents}     \usepackage{hyperref}     \hypersetup{         colorlinks,          citecolor=black,          filecolor=black,          linkcolor=black,          urlcolor=black     }     \begin{filecontents}{\jobname.bib}      @incollection{athanasius1857,             Address = {Parisiis},             Author = {{Athanasius Alexandrinus}},             Booktitle = {Patrologiae cursus completus: Series Graeca},             Editor = {Jacques Paul Migne},             Pages = {37-40},             Publisher = {Accurante J.-P. Migne},             Shortauthor = {Ath.},             Shorttitle = {ep. Marcell.},             Title = {Epistula ad Marcellinum de interpretatione psalmorum},             Volume = {27},             Year = {1857}}     @article{stead1997,         Author = {Christopher Stead},         Call-Number = {X2 rewa},         Date-Added = {2014-07-20 08:23:48 +0000},         Date-Modified = {2014-07-20 08:25:04 +0000},         Journal = {Studia Patristica},         Keywords = {secondary},         Pages = {39-52},         Title = {Was Arius a Neoplatonist?},         Volume = {32},         Year = {1997}}     \end{filecontents}     \usepackage[ngerman]{babel}     \usepackage[style=historische-zeitschrift, maxnames=2, hyperref=true, backref=true, backrefstyle=none, backend=bibtex,idemtracker=true]{biblatex}     \bibliography{\jobname}     %     \makeatletter%     \renewbibmacro*{chapter+pages}{%       \printfield{chapter}%       \newunit}%     \renewenvironment{thebibliography}%          {\renewbibmacro*{chapter+pages}{%       \printfield{chapter}%       \setunit*{\addcomma\space}%       \printfield{pages}%       \newunit}}%     \makeatother%     %     \begin{document}     \blindtext\footcite[See][S. 56]{athanasius1857}     \blindtext\footcite[See][S. 22]{stead1997}     \printbibliography          \end{document}


title: make citation callout different for books than for articles

text: I'm using natbib with style "apalike", like this:               \usepackage[round]{natbib}     ...     \citep{jones_2005} % this is a journal article     \citep{gray_1988} % this is a book     ...     \bibliographystyle{apalike}     \bibliography{./bibliographyfile}      Which generates cite labels (the ones in the text) like this   * article: (Jones et. al., 2005)   * books: (Gray, 1988) I'd like the books and only the books to appear including their title, like this:   * (Quantum theory of solids, Gray, 1988) I couldn't find anything helpful regarding this in the natbib manual, but maybe there are some tricks to still make it work?


title: Problem with Natbib after installing biblatex

text: I installed BibLaTeX, and I couldn't get it to work so I decided to go back to my old BibTeX `natbib` - but now I can't get my references back. What's going on...? Do I have to redo the installation of BibLaTeX? Code:               \documentclass[11pt,a4paper]{article}          \usepackage[sort]{natbib}          \begin{document}          \bibliographystyle{plainnat}     \bibliography{References}\thispagestyle{empty}          \end{document}


title: typesetting a physical law

text: How should one type set one of Newton's law? `\begin{definition}` environment doesn't seem right since it should say the law's name in bold not definition (some number) and `\begin{theorem}` doesn't fit since we are dealing with a law.


title: Rotation of a bmatrix

text: I'm writing a report, with a restriction on page numbers. So I want to rotate a `bmatrix` that sticks out of the page (horizontal) and put it inside a `\minipage`. My `bmatrix`:               \begin{equation}     \footnotesize     \arraycolsep=1pt     \medmuskip = 1mu % default: 4mu plus 2mu minus 4mu     B = \begin{bmatrix}     -\dfrac{(\xi_{2}-1)(2\xi1+\xi2)}{4\alpha_{1}}  & 0 &      -\dfrac{(\xi_{2}-1)(2\xi_{1}-\xi_{2}) }{4\alpha_{1}} & 0 &        \dfrac{(\xi_{2}+1)(2\xi_{1}+\xi_{2})}{4\alpha_{1}} & 0 &        \dfrac{(\xi_{2}+1)(2\xi_{1}-\xi_{2})}{4\alpha_{1}} & 0 &      -\dfrac{(\xi_{2}-1)(\xi_{2}+1)}{2\alpha_{1}} & 0 &       -\dfrac{(\xi_{2}+1)\xi_{1}}{\alpha_{1}} & 0 &        \dfrac{(\xi_{2}-1)(\xi_{2}+1)}{2\alpha_{1}} & 0 &        \dfrac{(\xi_{2}-1)\xi_{1}}{\alpha_{1}} & 0 \\[0.3em]      0 &  -\dfrac{(\xi_{1}-1)(2\xi_{2}+\xi_{1})}{4\alpha_{2}} &      0 &  -\dfrac{(\xi_{1}+1)(-2\xi_{2}+\xi_{1})}{4\alpha_{2}} &      0 &  \dfrac{(\xi_{1}+1)(2\xi_{2}+\xi_{1})}{4\alpha_{2}} &      0 & \dfrac{1}{4\alpha_{2}} (\xi_{1}-1)(-2\xi_{2}+\xi_{1}) &      0 &  -\dfrac{(\xi_{1}+1)\xi_{2}}{\alpha_{2}} &      0 & -\dfrac{(\xi_{1}-1)(\xi_{1}+1)}{2\alpha_{2}} &      0 & \dfrac{(\xi_{1}-1)\xi_{2}}{\alpha_{2}} &      0 & \dfrac{(\xi_{1}-1)(\xi_{1}+1)}{2\alpha_{2}} \\[0.3em]     -\dfrac{(\xi_{1}-1)(2\xi_{2}+\xi_{1})}{4\alpha_{2}} &      -\dfrac{(\xi_{2}-1)(2\xi1+\xi2)}{4\alpha_{1}} &      -\dfrac{(\xi_{1}+1)(-2\xi_{2}+\xi_{1})}{4\alpha_{2}} &      -\dfrac{(\xi_{2}-1)(2\xi_{1}-\xi_{2})}{4\alpha_{1}} &       \dfrac{(\xi_{1}+1)(2\xi_{2}+\xi_{1})}{4\alpha_{2}} &       \dfrac{(\xi_{2}+1)(2\xi_{1}+\xi_{2})}{4\alpha_{1}} &       \dfrac{(\xi_{1}-1)(-2\xi_{2}+\xi_{1})}{4\alpha_{2}} &       \dfrac{(\xi_{2}+1)(2\xi_{1}-\xi_{2})}{4\alpha_{1}} &      -\dfrac{(\xi_{1}+1)\xi_{2}}{\alpha_{2}} &      -\dfrac{(\xi_{2}-1)(\xi_{2}+1)}{2\alpha_{1}} &      -\dfrac{(\xi_{1}-1)(\xi_{1}+1)}{2\alpha_{2}} &      -\dfrac{(\xi_{2}+1)\xi_{1}}{\alpha_{1}} &       \dfrac{(\xi_{1}-1)\xi_{2}}{\alpha_{2}} &       \dfrac{(\xi_{2}-1)(\xi_{2}+1)}{2\alpha_{1}} &        \dfrac{(\xi_{1}-1)(\xi_{1}+1)}{2\alpha_{2}} &       \dfrac{(\xi_{2}-1)\xi_{1}}{\alpha_{1}}     \end{bmatrix}     \end{equation}


title: Smart parentheses?

text: Is there a way of smartly nesting parentheses and square brackets (in text mode), so that LaTeX detects nesting relations and typesets them accordingly? I'm thinking in something like `csquotes` does with quotation marks. Something like:               \enparent{My outer layer \enparent{my inner lever \enparent{my innermost level}}}      with the result being:               (My outer layer [my inner level {my innermost level}])      I wonder if there is already an out-of-the-box solution for that.


title: How can I adjust parenthesis on mathematics?

text: How can I make the square brackets on the following equation the same size?               \begin{equation}     \begin{split}R^{\mu}_{\nu\rho\sigma} &= \partial_{\rho}\left[\bar{\Gamma}^{\mu}_{\nu\sigma} + \tfrac{1}{2}\,\bar{g}^{\mu\beta}\left(\bar{\nabla}_{\nu}h_{\sigma\beta}+\bar{\nabla}_{\sigma}h_{\nu\beta}+\bar{\nabla}_{\beta}h_{\nu\sigma}\right)\right] \\     & -\partial_{\sigma}\left[\bar{\Gamma}^{\mu}_{\nu\rho} + \tfrac{1}{2}\,\bar{g}^{\mu\alpha}\left(\bar{\nabla}_{\nu}h_{\rho\alpha}+\bar{\nabla}_{\rho}h_{\nu\alpha}+\bar{\nabla}_{\alpha}h_{\nu\rho}\right)\right]     \end{split}     \end{equation}      Edit: to clarify, I have uploaded the problem I was having with the above code: ![enter image description here](http://i.stack.imgur.com/ZBerO.png)


title: Trapezium rule for integration using TikZ

text: I have problem to draw graphic with LaTeX (especially `TikZ`)? Like this: ![enter image description here](http://i.stack.imgur.com/I8qgO.jpg)


title: Macro expanding to comma separated list

text: I'm trying to use a macro for `pgfplotstable` labels but the macro is treated as a single entry of a csl rather than a csl. The Question asked in Using a macro as value of addtotoc in \includepdf answered my question but I'm not able to do the same. `test.csv`:               category, value, value 2     cat a,  1,  7     cat b,  2,  6     cat c,  3,  5     cat d,  4,  4     cat e,  5,  3     cat f,  6,  2     cat g,  7,  1      The code:               \def\blah{a,b,c,d,e,f,g}          \def\plotTable{       \begin{tikzpicture}         \begin{axis}[ybar,                      ymin=0,                      xlabel=X Label,                      ylabel=Y Label,                      xticklabel style={text height=1.5ex},                      xtick=data,                      xticklabels={\blah},                      nodes near coords,                      nodes near coords align={vertical},                      width=80mm,                      height=80mm,                      area legend,                      legend pos=outer north east,                      legend entries={a,b},                      bar width=3mm]           \addplot table [x expr=\coordindex, y=value, col sep=comma] {test.csv};           \addplot table [x expr=\coordindex, y=value 2, col sep=comma] {test.csv};         \end{axis}       \end{tikzpicture}     }      Manually typing out               xticklabels={a,b,c,d,e,f,g},      shows the labels for each column (rather than clustered to label the first column) Is there an easy way to be able to put a macro there? Thanks


title: Minipage with four figures - avoiding too much whitespace

text: I have hundreds of figures that I have arranged into 2x2 matrices using the `\minipage` environment like so:               \begin{figure}[ht] \label{ fig7}        \begin{minipage}[b]{0.5\linewidth}         \includegraphics[width=.5\linewidth]{/home/dnaneet/Research/Dissertation/wigner/Effect_of_domainSize_wavelength/G=0.333/dftdata/L_lambda_max_1wl_profile_0}          \caption{Initial condition}        \end{minipage}        \begin{minipage}[b]{0.5\linewidth}         \includegraphics[width=.5\linewidth]{/home/dnaneet/Research/Dissertation/wigner/Effect_of_domainSize_wavelength/G=0.333/dftdata/L_lambda_max_1wl_profile_Rup}          \caption{Rupture}        \end{minipage}        \begin{minipage}[b]{0.5\linewidth}         \includegraphics[width=.5\linewidth]{/home/dnaneet/Research/Dissertation/wigner/Effect_of_domainSize_wavelength/G=0.333/dftdata/L_lambda_max_1wl_dft_0_corner}          \caption{DFT, Initial condition}        \end{minipage}       \hfill       \begin{minipage}[b]{0.5\linewidth}         \includegraphics[width=.5\linewidth]{/home/dnaneet/Research/Dissertation/wigner/Effect_of_domainSize_wavelength/G=0.333/dftdata/L_lambda_max_1wl_dft_corner_Rup}          \caption{DFT, rupture}        \end{minipage}      \end{figure}      I find that with this kind of an arrangement I have lots of white space after the figures. How should I ensure that I use all the "page real-estate" for my figures without too much white space? I am really sorry that I can't seem to explain my problem any better. ![enter image description here](http://i.stack.imgur.com/zqXMe.png) ## How to avoid spilling of images into following page? As per the comments, when I use `\includegraphics[width=x\linewidth]` with `x>0.5`, my images spill into the following page. I would like my table and image to be in the same page and have the images leave little white space: **Images moving to following page:** ![enter image description here](http://i.stack.imgur.com/Fu1KR.png) **I would like this with lesser white space:** ![enter image description here](http://i.stack.imgur.com/Yhm4u.png) **Minimum working example:**               \documentclass[draft,10pt]{article}          % \usepackage[ascii]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{caption}     % \usepackage{babel}     \usepackage{fontenc}     \usepackage{graphicx}     % \usepackage{tabular}          \begin{document}      MWE:     \centering     \scriptsize     \begin{table}[h]         \begin{tabular}{|p{5cm}|p{5cm}|}     \hline             a & 1 \\          a & 1 \\      b & 1 \\      c & 1 \\      d & 1 \\      e & 1 \\      f & 1 \\      g & 1 \\      h & 1 \\      i & 1 \\          \hline         \end{tabular}     \end{table}               \begin{figure}[h] \label{ fig7} \begin{minipage}[b]{0.50\linewidth}\centering\includegraphics[width=0.70\linewidth]{/home/dnaneet/Research/Dissertation/wigner/Effect_of_domainSize_wavelength/G=0.333/dftdata/L_lambda_max_1wl_profile_0} \caption{Initial condition} \end{minipage} \begin{minipage}[b]{0.50\linewidth}\centering\includegraphics[width=0.70\linewidth]{/home/dnaneet/Research/Dissertation/wigner/Effect_of_domainSize_wavelength/G=0.333/dftdata/L_lambda_max_1wl_profile_Rup} \caption{Rupture} \end{minipage} \begin{minipage}[b]{0.50\linewidth}\centering\includegraphics[width=0.70\linewidth]{/home/dnaneet/Research/Dissertation/wigner/Effect_of_domainSize_wavelength/G=0.333/dftdata/L_lambda_max_1wl_dft_0_corner} \caption{DFT, Initial condition} \end{minipage}\hfill \begin{minipage}[b]{0.50\linewidth}\centering\includegraphics[width=0.70\linewidth]{/home/dnaneet/Research/Dissertation/wigner/Effect_of_domainSize_wavelength/G=0.333/dftdata/L_lambda_max_1wl_dft_corner_Rup} \caption{DFT, rupture} \end{minipage} \end{figure}          \end{document}


title: Command delimited by return or blank line

text: I have this document               \documentclass{scrartcl}          \long\def\quotenextparagraph#1          {\begin{quote}#1\end{quote}}          \begin{document}          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod     tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,     quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse     cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat     non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.          \quotenextparagraph     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod     tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,     quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse     cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat     non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod     tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,     quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse     cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat     non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.          \end{document}      The command `\quotenextparagraph` puts its argument (which is delimited by a blank line) in a `quote` environment. One may suggest using               \long\def\quotenextparagraph#1\par{\begin{quote}#1\end{quote}}      but with that definition you loose the hability to include paragraph breaks (without little tricks) inside the argument. With the blank line in the definition you can use               \quotenextparagraph     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod     tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,     quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat.\par     Duis aute irure dolor in reprehenderit in voluptate velit esse     cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat     non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.      However… you need to leave no space before the `\par` token. If you leave a space, then LaTeX understands that the argument is delimited there. ##  First question: why is that? And now the second part of the question. I'm interested in doing the same thing with only one return (I don't know the exact word; I mean “blank line” = two returns).               \def\quotethisline#1     {\begin{quote}#1\end{quote}}      so that               \quotethisline Lorem ipsum dolor sit amet.     Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut     aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in     voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint     occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit     anim id est laborum.      gives only `Lorem ipsum dolor sit amet.` in the quote. As I expected, it only gives `Lorem` (until the first space). ##  Second question: why does this happen? ## Third question: how can I achieve the argument delimited by only one return? (preferably without touching catcodes, if possible) PS: I might know why, but I think it's worth to have an answer explaining it.


title: Writing musical pitches

text: Is there a package or macro that allows me to easily typeset musical pitches, like the following: ![enter image description here](http://i.stack.imgur.com/AHrpX.png) ? Indeed I would like to have subscripts for the octaves. Let's say               $\mathrm{E}\flat_3$      How would I write a macro producing this output, when the invocation is               \note{Eb3}      Like:               \newcommand{\note}[1]{???}      I would have to take the string apart, the first char goes into `\mathrm`, then there is an optional second char `#` or `b`, followed by a digit.


title: Free online quiz maker with LaTeX (MathJax)

text: Can anyone suggest (from personal experience) a reliable free online quiz (exam) maker with MathJax support (displaying rendered equations in a webpage)? I mean a system for online testing. The main goal is automatic grading.


title: Package doc and glossaries together cause problem

text: If I comment out `\RecordChanges` below it compiles and works, otherwise I get:                   Package glossaries Warning: No file defined for glossary `[' on input line 13.          ! Extra \endcsname.     \@@do@wrglossary ...\csname glo@#1@type\endcsname                                                        ]{\string \glossaryentry {...     l.13 A \gls{sample}                          entry      Here is the minimum example:               \documentclass{article}     \usepackage[colorlinks]{hyperref}     \usepackage{doc}     \usepackage{glossaries}          \RecordChanges          \makeglossaries     \newglossaryentry{sample}{name={sample}, description={a sample entry}}          \begin{document}          A \gls{sample} entry          Plurals: \glspl{sample}.          \printglossaries          \end{document}


title: chapter heading appearing in appendix

text: I am using `\fancyhdr` package for the headings and report as a document class samplecode is given below               \documentclass[a4paper,11pt]{report}      \usepackage[toc,page]{appendix}     \usepackage{fancyhdr}               \pagestyle{fancy}     \renewcommand{\chaptermark}[1]{%     \markboth{\chaptername     \ \thechapter.\ #1}{}}     \fancyhf{}     \fancyhead[LE,LO]{\slshape \leftmark}     \rhead{\thepage}     \cfoot{}          \begin{document}     \pagenumbering{arabic}          \input{chap_01}     \input{chap_02}     \input{chap_03}          \begin{appendices}          \input{Appendix_01}     \end{appendices}     \end{document}      Now everything seems to be working but on the appendix page i get: ![enter image description here](http://i.stack.imgur.com/fiUqb.png) where as instead of chapter i would like 'Appendix A. Parameter Definition'. Suggestions?


title: Fontspec, open type fonts, and lining figures

text: So here is the problem I have: I am using fontspec and a number of my fonts have lining figure only in the small caps font. So my question is how can I tell XeLaTeX that when it comes to numbers (section numbering, footnotes, ...) to get it from those files? Rather than the regular font file it uses for everything else? Is there a command like `\setfigurefont`?


title: Suppression of a ligature in XeLaTeX

text: I'm trying to reproduce an old book with XeLaTeX, and it has the ct ligature but not the st ligature. The `Ligatures=Rare` option seems to turn either both on or off. Is there a way to select which ligatures to use in XeLaTeX? I am using the Adobe Caslon Pro OTF fonts. I know the microtype package may be able to do this but it is not supported by XeLaTeX. Any help is appreciated. Another question I have is, is it possible to change ligature options midway through a document? Or perhaps temporarily change the ligatures for one occasion?


title: Multiple \the... formats for a single counter?

text: Say I have a definition (`\arabic`) that includes a small list of sub- definitions (`\alph`). Sometimes I want to use full cross-references ( **2.3a** , **2.3b** , ...). But sometimes, when the main definition is clear from context, I want to use short cross-references ( **a** , **b** , ..). But I can only define one `\thesubdefinition` macro. So my question is: is there a recommended way to tie more than one formatting to a single counter (i.e., one `\label`)? In the 'user code' I imagine using `\ref` for the full reference and `\shortref` for the short one:               \newcounter{subdefinition}[definition]     \def\subdef#1{\refstepcounter{subdefinition}(\alph{subdefinition}) #1}      ...               \begin{definition} \label{def}         Bla bla technical stuff:         \subdef{simple axiom}\label{simple},          \subdef{complex axiom}\label{complex}.         Note that axiom~\shortref{complex} is more complex than axiom~\shortref{simple}.     \end{definition}          We will focus mostly on axiom~\shortref{complex}).  % axiom b      ...               Recall that axiom~\ref{complex} is very complex.  % axiom 2.3b      I could probably hack something, but maybe there's a package for this?