title: Small Caps Kerning for "Va" in Linux Libtertine (XeTeX)

text: Has anyone else noticed this kerning error in Linux Libertine small caps...? ![Kerning combo "Va" \(and "Wa"\) error in Linux Libertine.](http://i.stack.imgur.com/cV6yJ.jpg) What are the (1) permanent solution & (2) quick local fix? Pretty important initial combo. Here's the code:               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode          \documentclass[12pt]{article}          % PACKAGES          \usepackage{geometry}     \geometry{letterpaper}     \usepackage{fontspec}     \usepackage{xltxtra}     \defaultfontfeatures{Mapping=tex-text}     \setromanfont[Mapping=tex-text]{Linux Libertine O}     \setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Linux Biolinum O}     \setmonofont[Scale=MatchLowercase]{Linux Libertine Mono O}          % BEGIN          \begin{document} % ==============================================================          Vacillate Vaccine Vapour Vanish Va...          \textit{Vacillate Vaccine Vapour Vanish Va...}          \textsf{Vacillate Vaccine Vapour Vanish Va...}          \texttt{Vacillate Vaccine Vapour Vanish Va...}          \textbf{Vacillate Vaccine Vapour Vanish Va...}          \vspace{3ex}          \textsc{Vacillate Waccine Vapour Vanish Va...}          \textsc{\textsf{Vacillate Vaccine Vapour Vanish Va...}}          \end{document}


title: Why can't I install MacTeX or BasicTeX on my Mac?

text: I am a beginner for LaTeX and I was trying to install the package BasicTeX on my mac (version 10.7.3). Everything went well - downloading the `.zip` file from TUG, unarchiving--until I actually started to install the package. ![Here is what I got at the last stage of the installation. Everything working fine up till now.](http://i.stack.imgur.com/w1Psj.png) But then ![Here is the error.](http://i.stack.imgur.com/EGB0x.png) I also tried MacTeX but it also failed. Here is the installer log for the full MacTex:               **Apr 11 20:39:04 William-Lius-MacBook-Pro installd[7796]: PackageKit: ----- Begin install -----**          **Apr 11 20:43:07 William-Lius-MacBook-Pro installd[7796]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Ghostscript-9.02.pkg”." UserInfo=0x7fd45e807e90 {NSFilePath=./postflight, NSURL=file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/Ghostscript-9.02.pkg, PKInstallPackageIdentifier=org.tug.mactex.ghostscript9.02, NSLocalizedDescription=An error occurred while running scripts from the package “Ghostscript-9.02.pkg”.} {             NSFilePath = "./postflight";             NSLocalizedDescription = "An error occurred while running scripts from the package \U201cGhostscript-9.02.pkg\U201d.";             NSURL = "file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/Ghostscript-9.02.pkg";             PKInstallPackageIdentifier = "org.tug.mactex.ghostscript9.02";         }**          **Apr 11 20:43:08 William-Lius-MacBook-Pro Installer[7783]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.**          **Apr 11 20:43:08 William-Lius-MacBook-Pro Installer[7783]: Displaying 'Install Failed' UI.**               **Apr 11 20:43:08 William-Lius-MacBook-Pro Installer[7783]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.**      I tried deselecting the Ghostscript package but a similar problem occurred with "GUI Application", here is the full log:               Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: @(#)PROGRAM:Install  PROJECT:Install-686.3     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: @(#)PROGRAM:Installer  PROJECT:Installer-530     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Hardware: MacBookPro8,1 @ 2.70 GHz (x 4), 4096 MB RAM     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Running OS Build: Mac OS X 10.7.3 (11D50b)     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: TMPDIR=/var/folders/r2/gx0svmcs5h95bd34kkrvzknr0000gn/T/     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: SHELL=/bin/bash     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: HOME=/Users/William     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: USER=William     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: LOGNAME=William     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: DISPLAY=/tmp/launch-NlNQAn/org.x:0     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: SSH_AUTH_SOCK=/tmp/launch-mwoggh/Listeners     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: Apple_Ubiquity_Message=/tmp/launch-wNPeC9/Apple_Ubiquity_Message     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: Apple_PubSub_Socket_Render=/tmp/launch-ZINUEC/Render     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: COMMAND_MODE=unix2003     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0:0     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: MacTeX-2011  Installation Log     Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Opened from: /Users/William/Downloads/MacTeX-2011.mpkg     Apr 11 21:07:03 William-Lius-MacBook-Pro Installer[7837]: InstallerStatusNotifications plugin loaded     Apr 11 21:08:18 William-Lius-MacBook-Pro Installer[7837]: -[IFPKGDerivedDocument sortedPackageLocations]: result = (         "file://localhost"     )     Apr 11 21:08:25 William-Lius-MacBook-Pro runner[7847]: Administrator authorization granted.     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: ================================================================================     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: User picked Custom Install     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: Choices selected for installation:     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]:   Install: "MacTeX-2011"     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]:       MacTeX-2011.mpkg : org.tug.mactex.mactex2011 : 1.3.0.1.3     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]:   Install: "GUI Applications"     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]:       GUI-Applications.pkg : org.tug.mactex.gui : 1.3.0.1.3     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]:   Install: "ImageMagick Convert 6.6.9-3"     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]:       ImageMagick-Convert-6.6.9-3.pkg : org.tug.mactex.imagemagick-convert-6.6.9-3 : 1.3.0.1.3     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]:   Install: "Latin Modern Fonts"     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]:       Latin-Modern-Fonts.pkg : org.tug.mactex.latin-modern : 1.3.0.1.3     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]:   Install: "TeX Live 2011"     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]:       TeXLive-2011.pkg : org.tug.mactex.texlive2011 : 1.3.0.1.3     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: ================================================================================     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: It took 0.00 seconds to summarize the package selections.     Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: -[IFPKGDerivedDocument sortedPackageLocations]: result = (         "file://localhost"     )     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/William/Downloads/MacTeX-2011.mpkg     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/ImageMagick-Convert-6.6.9-3.pkg     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/Latin-Modern-Fonts.pkg     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/TeXLive-2011.pkg     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/William/Downloads/MacTeX-2011.mpkg     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Set authorization level to root for session     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Will use PK session     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Starting installation:     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Configuring volume "Macintosh HD"     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Preparing disk for local booted install.     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Free space on "Macintosh HD": 433.11 GB (433109905408 bytes).     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Create temporary directory "/var/folders/r2/gx0svmcs5h95bd34kkrvzknr0000gn/T//Install.7837eNj0ED"     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: IFPKInstallElement (6 packages)     Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Using authorization level of root for IFPKInstallElement     Apr 11 21:08:26 William-Lius-MacBook-Pro installd[7850]: PackageKit: ----- Begin install -----     Apr 11 21:08:26 William-Lius-MacBook-Pro installd[7850]: PackageKit: request=PKInstallRequest <6 packages, destination=/>     Apr 11 21:08:26 William-Lius-MacBook-Pro installd[7850]: PackageKit: packages=(         "PKJaguarPackage <file://localhost/Users/William/Downloads/MacTeX-2011.mpkg>",         "PKJaguarPackage <file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg>",         "PKJaguarPackage <file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/ImageMagick-Convert-6.6.9-3.pkg>",         "PKJaguarPackage <file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/Latin-Modern-Fonts.pkg>",         "PKJaguarPackage <file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/TeXLive-2011.pkg>",         "PKJaguarPackage <file://localhost/Users/William/Downloads/MacTeX-2011.mpkg>"     )     Apr 11 21:08:27 William-Lius-MacBook-Pro installd[7850]: PackageKit: Extracting file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)     Apr 11 21:08:38 William-Lius-MacBook-Pro installd[7850]: PackageKit: Extracting file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/ImageMagick-Convert-6.6.9-3.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)     Apr 11 21:08:39 William-Lius-MacBook-Pro installd[7850]: PackageKit: Extracting file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/Latin-Modern-Fonts.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)     Apr 11 21:08:39 William-Lius-MacBook-Pro installd[7850]: PackageKit: Extracting file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/TeXLive-2011.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)     Apr 11 21:10:52 William-Lius-MacBook-Pro installd[7850]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root (3 items) to /     Apr 11 21:12:19 William-Lius-MacBook-Pro installd[7850]: PackageKit: Executing script "./postflight" in /Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg/Contents/Resources     Apr 11 21:12:22 William-Lius-MacBook-Pro installd[7850]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “GUI-Applications.pkg”." UserInfo=0x7ffb9d7e09f0 {NSFilePath=./postflight, NSURL=file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg, PKInstallPackageIdentifier=org.tug.mactex.gui, NSLocalizedDescription=An error occurred while running scripts from the package “GUI-Applications.pkg”.} {         NSFilePath = "./postflight";         NSLocalizedDescription = "An error occurred while running scripts from the package \U201cGUI-Applications.pkg\U201d.";         NSURL = "file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg";         PKInstallPackageIdentifier = "org.tug.mactex.gui";     }     Apr 11 21:12:22 William-Lius-MacBook-Pro Installer[7837]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “GUI-Applications.pkg”." UserInfo=0x7f9de9616730 {NSFilePath=./postflight, NSURL=file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg, PKInstallPackageIdentifier=org.tug.mactex.gui, NSLocalizedDescription=An error occurred while running scripts from the package “GUI-Applications.pkg”.}     Apr 11 21:12:22 William-Lius-MacBook-Pro Installer[7837]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.     Apr 11 21:12:22 William-Lius-MacBook-Pro Installer[7837]: IFDInstallController E9535990 state = 7     Apr 11 21:12:22 William-Lius-MacBook-Pro Installer[7837]: Displaying 'Install Failed' UI.     Apr 11 21:12:22 William-Lius-MacBook-Pro Installer[7837]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.      I tried repairing permission for the harddrive but the same problems persists. And even if I select only "TeX Live" when installing full MacTex, it still fails. Can anybody help explain what's going on here? It's kind of frustrating to get stuck at this stage. Any advice would be very much appreciated.


title: Chapter heading with the word "chapter" replaced by chapter name

text: When I create a chapter               \documentclass[12pt]{memoir}     \usepackage{graphicx}     \renewcommand{\chaptername}{}          \begin{document}     \chapterstyle{veelo}     \chapter{Implementation}     \section{Implementation2}     \end{document}      It displays it like               Chapter 1     Implementation      How can I make it display               Implementation 1      I tried doing this               \renewcommand{\chaptername}{}      But it just hides the word chapter and does display implementation and 1 in the same line.


title: How to remove the section name of \printglossary?

text: I added a heading for my glossary with `\addcontentsline`. However the `\printglossary` command still creates an additional section heading. How can this be removed? **Screenshot:** ![enter image description here](http://i.stack.imgur.com/Uuzqr.png) **Code:**               % Glossary     \addcontentsline{toc}{chapter}{Glossar}     \newpage     \printglossary[style=altlist]          % Acronyms     \addcontentsline{toc}{chapter}{Abkürzungsverzeichnis}     \deftranslation[to=German]{Acronyms}{Abkürzungsverzeichnis}     \newpage     \printglossary[type=\acronymtype,style=dontgroup]


title: Table does not fit

text: I created a table that does not fit the page. It's not because it's too big, it's because the table starts from the middle of the page when I export it to PDF. So even though I have half the page empty, the table is cut off. Any tips? This is how I started it:               \vfill\eject     \begin{sidewaystable}[ht]     \caption{Listing Audit Table}      \begin{tabularx}{\textwidth}{|l|l|l|l|l|l|l|l|l|l}\hline\hline     <content>     \end{tabularx}     \end{sidewaystable}


title: Tree with some nodes and leafs in arbitrary places

text: I need to draw a quite abstract tree. This tree will visualize proof substituting in natural deduction (proof theory). I have a deduction (let's call it 'D1') of A with open assumption B and a deduction (let's call it 'D2') of B with open assumption C. Each deduction can be visualized with a tree with its leafs labeled by the proof's assumption and its root labeled by the proof's conclusion. So, proof substitution can be visualized with substituting all leafs B of tree D1 with the tree of D2. This is like adding D2 as a subtree with root B and leafs C on each leaf B of D1. What I need to do is draw the tree of the proof that results after the substitution. I tried this:               \documentclass[a4paper]{scrartcl}     \usepackage{fancybox}     \usepackage{tikz}          \title{MergeSort-RecursionTree}     \author{Manuel Kirsch}     \date{}     \begin{document}          \begin{tikzpicture}[level/.style={sibling distance=5cm/#1}]     \node (z){$A$}       child {node (a) {$\vdots$}         child {node (b) {$B$}           child {node (A) {$\vdots$}             child {node (B) {$C$}}             child {node (G) {$C$}}           }           child {node (J) {$\vdots$}             child {node (K) {$C$}}             child {node (L) {$C$}}           }         }         child {node (g) {$B$}                 child {node (A) {$\vdots$}             child {node (B) {$C$}}             child {node (G) {$C$}}           }           child {node (J) {$\vdots$}             child {node (K) {$C$}}             child {node (L) {$C$}}           }         }       }       child {node (j) {$\vdots$}         child {node (k) {$B$}               child {node (A) {$\vdots$}             child {node (B) {$C$}}             child {node (G) {$C$}}           }           child {node (J) {$\vdots$}             child {node (K) {$C$}}             child {node (L) {$C$}}           }}       child {node (l) {$B$}             child {node (A) {$\vdots$}             child {node (B) {$C$}}             child {node (G) {$C$}}           }           child {node (J) {$\vdots$}             child {node (K) {$C$}}             child {node (L) {$C$}}           }}     };     \path (a) -- (j) node [midway] {$\cdots$};     \path (b) -- (g) node [midway] {$\cdots$};     \path (k) -- (l) node [midway] {$\cdots$};     \path (k) -- (g) node [midway] {$\cdots$};     \path (A) -- (J) node [midway] {$\cdots$};     \path (K) -- (G) node [midway] {$\cdots$};     \path (B) -- (G) node [midway] {$\cdots$};     \path (K) -- (L) node [midway] {$\cdots$};     \end{tikzpicture}          \end{document}      ![tree](http://i.stack.imgur.com/kQYjJ.jpg) But except that some lower edges cross, this kind of tree gives to the reader the impression that all nodes B are in the same level and the same for C, too. In addition, it is not clear that the tree is not binary. Is there a more abstract tree such that it visualizes only the necessary information and does not add any further impressions about its structure to the reader? **What I want to emphasize about this tree is that all nodes B have the same subtree.** To be honest, I can't even imagine such a tree. I don't know how to visualize arbitrary number of children for each node or arbitrary lengths for the paths from the root to each leaf. So, any ideas/suggestions on that would be really helpful! Code for such a tree would be highly appreciated, since don't have much experience with tikz.


title: Siunitx + Junicode font: Overfull hboxes

text: The following MWE, using Junicode, creates 4 overfull hboxes. But any other font I tried (e.g. Linux Libertine O) creates no warnings. Any ideas?               \documentclass{article}          \usepackage{fontspec}     \setmainfont[Numbers=OldStyle]{Junicode}% Generates 4 overfull hboxes     %\setmainfont[Numbers=OldStyle]{Linux Libertine O}% No overfull hbox           \usepackage{siunitx}          \begin{document}          \begin{tabular}{l*{4}{S[table-format=1.3]}}     &\multicolumn{1}{c}{Column 1}&\multicolumn{1}{c}{Column 2}\\      &  0.234                        &0.095             \\     \end{tabular}          \end{document}


title: Decreasing font size in verbatim

text: How can I modify the following command to make it work?               \newcommand{\code}[1]{\begingroup \fontsize{10pt}{10pt}\selectfont \begin{verbatim} #1 \end{verbatim} \endgroup}      I currently get the following error on the close of the following `verbatim` block:               ! Undefined control sequence.     <argument> ...endgroup ^^M^^M$\eta_{xi} = r_{xi} -                                                        q_i \cdot p_x$ \\^^M$q_i ...     l.227     \end{verbatim}


title: LaTeX tables in pandoc, captions

text:
If I feed a simple LaTeX table to Pandoc, e.g.               \begin{table}[h!]     \begin{tabular}{ll}     x&y\\     \end{tabular}     \caption{A caption}     \end{table}      and convert it to HTML using               pandoc -s table.tex -o table.html      the resulting table will lack the caption (moreover, it also prints the characters '[h!]' which is just for table positioning):
[h!]

     x	     y

      Do I have to run pandoc differently? I am using pandoc version 1.12.3 on a Mac OS X 10.6.8. Captions used to be rendered fine in HTML with my previous version of Pandoc (1.9, I believe).


title: Fill Nodes according to table/data file

text: I have a lattice of nodes generated by two `\foreach` commands. So each node has two numbers which define its location (essentially x and y coordinates). Is there any way to fill a circle at that node according to a value in a table. I wish to do this as the colour I would like is generated by a piece of Matlab script based on a model. So basically the ideal would be to have TikZ look up the current nodes location say `(4,5)` in a table which would give it the colour it should be. Is there any way to do this or am I asking too much?


title: How to invoke \write18{pdflatex "\def\param{...}\input{filename}"}?

text: Why can't I compile the following even though I have enabled `-shell-escape`?               \documentclass{article}     \usepackage{filecontents}     \begin{filecontents*}{inputfile.tex}     %\def\paramA{standalone}     \def\paramB{Hello World}     \documentclass{\paramA}     \begin{document}     \paramB     \end{document}     \end{filecontents*}          \begin{document}     \immediate\write18{pdflatex "\def\paramA{standalone}\input{inputfile}"}     \immediate\write18{inputfile.pdf}     done!     \end{document}      ## Log File               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/W32TeX)      \write18 enabled.          << the unnecessary texts are intentionally removed by me for the sake of simplicity >>          No file executor.aux.     ! Undefined control sequence.     <write> pdflatex "\def \paramA                                     {standalone}\input {inputfile}"     l.13 ...\def\paramA{standalone}\input{inputfile}"}          ?


title: How can I set the chapter titles in EB Garamond?

text: I am using the font EB Garamond but I don't succeed to get the chapter and section titles to be set right. The package `ebgaramond` does not have all the features I want, and when looking for the font with fontspec, the true type version seems to be taken. That's why I have to define the path to the fonts explicitly. At the moment, I use the following MWE:               % arara: lualatex: { shell: yes, options: -synctex=-1 }          \documentclass{scrreprt}     \usepackage{luatextra}     \usepackage{fontspec}     \defaultfontfeatures{%         ,RawFeature={+dlig, +calt, +cv11, +ss05}         ,Ligatures={TeX}     }     \setmainfont[%         ,Path = C:/WINDOWS/Fonts/         ,Extension = .otf         ,UprightFont = *12-Regular         ,ItalicFont  = *12-Italic         ,BoldFont = *08-Regular     ]{EB Garamond}          \begin{document}          \chapter{Test}     Test     \section{Test}     %\textin{T}est % This does not work eather.          \end{document}      I don't know, what is happening and would like to use the font in all places.


title: TikZ:How to consider a curve as an axis in a chart?

text: In the shown image bottom and left lines are considered as axis...:How to consider left curve as an axis in the chart? > Psychrometric charts: > http://en.wikipedia.org/wiki/File:PsychrometricChart.SeaLevel.SI.svg               \documentclass{standalone}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     \draw[help lines] (0,0) grid (8,6);     %     \coordinate (ns) at (0,1.5);     \draw [thick] (ns)--++(0,-1.5)coordinate (nx)--++(7,0) coordinate (no)--++(0,6)coordinate (ny)--++(-1.5,0) coordinate (ne);     \draw [thick] (ns) to [bend right] (ne);     %     \coordinate (n1) at (5,2);     \fill[red] (n1) circle (2pt);     %axis     \path  (ny) coordinate (yaxis) |- (nx) coordinate (xaxis);     \draw[dashed] (xaxis -| n1) node[below] {$DBT_1$} -- (n1);     \draw[dashed] (yaxis |- n1) node[right] {$W_1$} -- (n1);     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/Z3Eyw.png) > i want to draw as below: an inclined line upto the curve and write $WBT_1$ ![enter image description here](http://i.stack.imgur.com/ITCY5.png)


title: groupplot pie charts

text: Is there a way to group pie charts using groupplots? I want to have something similar to this: ![enter image description here](http://i.stack.imgur.com/5MLX7.png) Here is the MWE:               \documentclass[times]{article}     \usepackage{pgfplots, pgfplotstable}     \usepackage{tikz}     \usepgfplotslibrary{groupplots}     \begin{document}     \newcommand{\legend}[2][]{      \begin{scope}[#1]      \path         \foreach \n/\s in {#2}             {                   ++(0,-10pt) node[\s,legend box] {} +(5pt,0) node[legend label] {\n}             }     ;     \end{scope}     }     \tikzstyle{chart}=[     legend label/.style={font={\scriptsize},anchor=west,align=left},     legend box/.style={rectangle, draw, minimum size=5pt},     axis/.style={black,semithick,->},     axis label/.style={anchor=east,font={\tiny}},     ]     \tikzstyle{pie chart}=[     chart,     slice/.style={line cap=round, line join=round, very thick,draw=white},     pie title/.style={font={\bf}},     slice type/.style 2 args={         ##1/.style={fill=##2},         values of ##1/.style={}     }     ]     \pgfdeclarelayer{background}     \pgfdeclarelayer{foreground}     \pgfsetlayers{background,main,foreground}     \newcommand{\pie}[3][]{     \begin{scope}[#1]     \pgfmathsetmacro{\curA}{90}     \pgfmathsetmacro{\r}{1}     \def\c{(0,0)}     \node[pie title] at (90:1.3) {#2};     \foreach \v/\s in{#3}{         \pgfmathsetmacro{\deltaA}{\v/100*360}         \pgfmathsetmacro{\nextA}{\curA + \deltaA}         \pgfmathsetmacro{\midA}{(\curA+\nextA)/2}              \path[slice,\s] \c             -- +(\curA:\r)             arc (\curA:\nextA:\r)             -- cycle;         \pgfmathsetmacro{\d}{max((\deltaA * -(.4/50) + 1) , .5)}              \begin{pgfonlayer}{foreground}         \path \c -- node[pos=\d,pie values,values of \s]{$\v\%$} +(\midA:\r);         \end{pgfonlayer}              \global\let\curA\nextA     }     \end{scope}     }     \begin{figure}     \begin{tikzpicture}     [     pie chart,     slice type={inlined}{lightgray},     slice type={noninlined}{darkgray},     pie values/.style={font={\tiny}},     scale=1     ]          \pie{\footnotesize{benchmark}}{41/inlined,13/noninlined}          \legend[shift={(-1cm,-1cm)}]{{Inlined}/inlined, {Not inlined}/noninlined}     \end{tikzpicture}     \end{figure}       \end{document}


title: Graphing linear probability model using pgfplots

text: So, I am attempting to use pgflots to draw a sketch of a one-independent variable linear probability model in the form of the equation I have below, which shows the implied relationship between E(Yj) and X1j. ![Equations below](http://i.stack.imgur.com/VxcOR.png) Now, I have developed a sketch of what I want (see picture below), but have been unable to replicate it. The closest thing to helping me out has been the following post: Non-linear curve fitting with gnuplot. However, it really has proven difficult for me to translate that code into the sketch I want below (labels and everything). Help is deeply appreciated! ![Sketch I want to produce in LaTeX](http://i.stack.imgur.com/JSuZC.png)


title: How to include the volume number in IEEE conference reference?

text: I want to include the volume number in my IEEE conference reference and use the code in the following               @inproceedings{Logue2001,      author = "Logue, D.L. and Krein, P.T.",      title = "Preventing instability in DC distribution systems by using power buffering",      booktitle = "Proc. IEEE Power Electronics Specialists Conference",      volume = "1",     month = jun,     year = "2001",      pages = "33-37"}      The output is like: > D. Logue and P. Krein, “Preventing instability in dc distribution systems by > using power buffering,” in Proc. IEEE Power Electronics Specialists > Conference, **vol. 1, Jun. 2001** , pp. 33–37. However, I would like the output to be > D. Logue and P. Krein, “Preventing instability in dc distribution systems by > using power buffering,” in Proc. IEEE Power Electronics Specialists > Conference, **Jun. 2001, vol. 1** , pp. 33–37. The volume number should appear after the month and year. Does anyone know how to solve this problem?


title: Pagerefo on cref? Multiple pages?

text: I am using `\cref` to refer to different figures in the appendix:               \cref{figure1,figure2,...}      Now I want to create a `\pageref{}` to it, but I don't know how I can achieve this with multiple pages? So that the first and the last page is given?


title: HtLaTeX - problem when using relative paths

text: I'm currently working on a little thing I called offline blog engine. The idea is to write my articles in simple (La)TeX files and create some static HTML files which contains the blog posts. The infrastructure is written with an ant script. At the moment I'm having trouble to get HtLaTeX to work on my Windows 7 box (using MiKTeX 2.9). HtLaTeX works just fine if I'm in the CLI in the directory with the article. E.g. If I'm currently in the directory `C:\users\me\articles\` and there's one article `article.tex`:               C:\users\me\articles$> htlatex article.tex      Works just fine. It generates the formulas as PNGs, creates the `css` file and puts it in the current directory. If I'm in a whole different directory and calling HtLaTeX with an absolute path it doesn't work. So,                C:\users\me\other\dir$> htlatex C:\uisers\me\articles\article.tex      just generates an log file containg this information:               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9) (preloaded format=latex 2013.8.3)  18 AUG 2013 11:20     entering extended mode     **\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx\HCode\def\HCod     e##1{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g     @addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\doc     umentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname te     x4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HC     ode}{\documentstyle[tex4ht]}}}\makeatother\HCode html.a.b.c.\input  e:\Users\zo     mbie\Documents\Blog\articles\Zukunftsplanung.tex          ! Emergency stop.     <*> ...keatother\HCode html.a.b.c.\input  c:\Users                                                   \me\articles\art...     End of file on the terminal!               Here is how much of TeX's memory you used:      4 strings out of 493922      56 string characters out of 3144897      49031 words of memory out of 3000000      3403 multiletter control sequences out of 15000+200000      3640 words of font info for 14 fonts, out of 3000000 for 9000      841 hyphenation exceptions out of 8191      4i,0n,3p,1b,8s stack positions out of 5000i,500n,10000p,200000b,50000s      No pages of output.      If I use relative paths some files more are generated (like the DVI file) but the html file and the mathematical formulas are missing too. Any idea what's wrong here? Problem consist within ant script and from the CLI. **UPDATE:** While escaping the backslashes didn't work, replacing them with regular slashes worked. (As David Carlisle suggested) But the PNGs of the formulas are missing. In the output they are generated but I can't find them. The command looks like that:               C:\users\me\other\dir$> htlatex C:\users\me\articles\article.tex "html" "" "-dC:\users\me\articles\html"      Within the ant script it doesn't work because ant uses automatically the path devider of the current system and on windows it's backslash. (No problem, this call could be replaced by an batch file.)


title: Lyx - change margins for one page or one paragraph

text: Is it possible in LYX to change the margins for one page or one paragraph only ? I am trying to insert logos that need to be closer to the sides of page. Thanks !


title: Latex Log too big (>2MB)

text: My log is getting VERY big. This is a short except:               LaTeX Font Info:    Try loading font information for T1+uop on input line 7.     (c:/texlive/2012/../texmf-local/tex/latex/uop/t1uop.fd     File: t1uop.fd 2006/12/24 Fontinst v1.929 font definitions for T1/uop.     )     Underfull \vbox (badness 10000) has occurred while \output is active     \vbox(491.21909+0.0)x373.44246, glue set 4.44821     .\pdfdest name{chapter*.3} xyz     .\glue(\topskip) 11.0     .\rule(0.0+0.0)x*     .\penalty 10000     .\glue 50.0     .\glue 0.0     .\glue 0.0     .\glue 0.0     .\glue(\parskip) 14.5521 plus 1.45529     .\glue(\baselineskip) 9.63017     .\hbox(22.47005+9.63016)x373.44246, glue set 287.8553fil     ..\glue(\leftskip) 0.0 plus 1.0fil     ..\rule(22.47005+9.63016)x0.0     ..\T1/uop/m/n/24.88 V     ..\kern-1.56744     ..\T1/uop/m/n/24.88 o     ..\T1/uop/m/n/24.88 r     ..\kern0.64687     ..\T1/uop/m/n/24.88 w     ..\kern-0.77129     ..\T1/uop/m/n/24.88 o     ..\T1/uop/m/n/24.88 r     ..\kern0.59712     ..\T1/uop/m/n/24.88 t     ..\kern 0.0     ..\rule(22.47005+9.63016)x0.0     ..\penalty 10000     ..\glue(\parfillskip) 0.0     ..\glue(\rightskip) 0.0     .\penalty 10000     .\glue 0.0     .\glue 0.0     .\glue 40.0     .\glue 0.0     .\mark{{\protect \foreignlanguage {ngerman}{\protect \bbl@restore@actives Vo\ET     C.}     .\penalty 10000     .\glue(\parskip) 14.5521 plus 1.45529     .\glue(\lineskip) 1.0     .\hbox(7.9223+3.09885)x373.44246, glue set 0.48692     ..\T1/pplj/m/n/10.95 (+20) D     ..\T1/pplj/m/n/10.95 (+20) i     ..\T1/pplj/m/n/10.95 (+20) e     ..\T1/pplj/m/n/10.95 (+20) s     ..\glue 3.18645 plus 1.91624 minus 0.7665     ..\T1/pplj/m/n/10.95 (+20) h     ..\T1/pplj/m/n/10.95 (+20) i     ..\T1/pplj/m/n/10.95 (+20) e     ..\T1/pplj/m/n/10.95 (+20) r     ..\glue 3.18645 plus 1.91624 minus 0.7665     ..\T1/pplj/m/n/10.95 (+20) i     ..\T1/pplj/m/n/10.95 (+20) s     ..\T1/pplj/m/n/10.95 (+20) t     ..\glue 3.18645 plus 1.91624 minus 0.7665     ..\T1/pplj/m/n/10.95 (+20) e     ..\T1/pplj/m/n/10.95 (+20) i     ..\T1/pplj/m/n/10.95 (+20) n     ..\glue 3.18645 plus 1.91624 minus 0.7665     ..\T1/pplj/m/n/10.95 (+20) B     ..\T1/pplj/m/n/10.95 (+20) l     ..\T1/pplj/m/n/10.95 (+20) i     ..\T1/pplj/m/n/10.95 (+20) n     ..\T1/pplj/m/n/10.95 (+20) d     ..\discretionary     ...\T1/pplj/m/n/10.95 (+20) -     ..\T1/pplj/m/n/10.95 (+20) t     ..\T1/pplj/m/n/10.95 (+20) e     ..\T1/pplj/m/n/10.95 (+20) x     ..\T1/pplj/m/n/10.95 (+20) t     ..\glue 3.18645 plus 1.91624 minus 0.7665     ..\T1/pplj/m/n/10.95 (+20) z     ..\T1/pplj/m/n/10.95 (+20) u      You can read my text in vertical direction at the end of each line (in german). Latex does this for all my text! Does anyone know where this comes from? Thanks for your help! It's really appreciated!


title: Double bibliography, at the end and for any chapters

text: Hi guys I've many difficult to do a chapter bibliography. In the attachment there are a pdf after compile and the source. I would like to have a bibliography for each chapter, and a final as well as I have already. Can you help me? https://dl.dropboxusercontent.com/u/15269862/main1.pdf https://dl.dropboxusercontent.com/u/15269862/questions.rar Minimal Example:               \begin{filecontents*}{references.bib}     @BOOK{childs_temperature,       title = {Practical Temperature Measurement},       publisher = {Butterworth - Heinemann},       year = {2001},       author = {Childs, Peter R N},       address = {Great Britain},       edition = {1},       isbn = {0 7506 5080 X}       }            @PHDTHESIS{hashemian,       author = {Hashemian, Hashem Mehrdad},       title = {Measurements of dynamic temperatures and pressures in nuclear power plants},       school = {{The University of Western Ontario}},       year = {2011},       type = {PhD {T}hesis}       }     \end{filecontents*}          \documentclass{report}     \usepackage[style=alphabetic,backend=bibtex]{biblatex}     \addbibresource{references.bib}     \begin{document}     \begin{refsection}     \chapter{First chapter}     \section{Foo}     Some text \cite{childs_temperature}.     \printbibliography     \end{refsection}          \begin{refsection}     \chapter{Second chapter}     \section{Bar}     Some text \cite{hashemian}.     \printbibliography[heading=subbibliography]     \end{refsection}               \printbibliography{}     \end{document}


title: Print A6 on A6 paper

text: I've set a document with a couple of pages in A6:               \usepackage[paperheight=4.13in,paperwidth=5.83in, margin=0.5cm]{geometry}      The pages in the PDF I get as a result are indeed A6 sized. When I try to print this, though, it always ends up as the A6 page printed onto an A4 page. Doesn't matter if I try to "print" this to my printer or another PDF. Maybe a picture helps to show what I mean: ![output](http://i.stack.imgur.com/jdTWk.png) On the right, the PDF produced by TeXShop, and on the left what happens when I try to print it. Is that a problem my printer and preview have, or can I somehow fix this?


title: Is there a repository of math exercises written in latex source code available?

text: Is there a collection of math exercises/exam questions already available for download, especially the ones that have geometric figures and pictures involving related rates and optimizations? I have been using tikz euclid to type my geometry questions but working with tikz is time consuming, and each semester I have to change the problems/figures to make my exams different. I figured that with the millions of users of latex out there someone probably had already typed a similar problem that I need, so why should I re-invent the wheel?


title: Literature -search for reference -details such as Author, Title, Year, Type and Publisher? Ready exporting to Bibtex?

text: TexNicCenter has a Literature -search but it does not work. Suppose I write a number-theoretic -paper and a reference is a book but I cannot remember its publication details such as Author, Year and Publisher. I currently use Bibtex and I always manually enter things but after seeing the Literature -search in TexNicCenter, I started to think there may be some sort of platform- independent reference -search. >   1. Does there exist some sort of tool that could help me to find fast the > details (not going to library or using google)? > >   2. Does it export things to Bibtex -format? > >   3. Some sort of tool exist in Apple -products that helps to search > academic papers (pay-only) but I haven't yet seen any platform-independent > tool that could help to fill the reference details to formats such as > bibtex. Also it is monotonous working to keep track of refrencese, perhaps > some tool also to store refrences. Just brainstorming, ideas? > >


title: Package algorithm to use

text: Please, what package can i use in latex to have the model of algorithm in the figure ? ![figure algorithm](http://i.stack.imgur.com/qYCuQ.png)


title: IEEEtran not working

text: I am trying to use the IEEEtran for my document. I have used it in the past, but now I have a new system and have to install all the programs again. I downloaded IEEEtran.zip from a recommended source, and I copied the contents into /MikTek/tex/IEEEtran. But on using `{IEEEtran}` next to `\documentclass`, the system reports errors such as :               Command Line:   bibtex.exe "paper"     Startup Folder: C:\Users\1\Desktop\Paper and Thesis\Paper          This is BibTeX, Version 0.99d (MiKTeX 2.9)     The top-level auxiliary file: paper.aux          ======================================================================     starting package maintenance...     installation directory: "C:\Program Files (x86)\MikTek"     package repository: http://ctan.mirrors.hoobly.com/systems/win32/miktex/tm/packages/     lightweight database digest: bcd18fcf486ebfeac5892e057437cdbc     going to download 2656528 bytes     going to install 14 file(s) (1 package(s))     downloading http://ctan.mirrors.hoobly.com/systems/win32/miktex/tm/packages/ieeetran.tar.lzma...     2656528 bytes, 496.61 KB/Sec     extracting files from ieeetran.tar.lzma...     bibtex.exe: Windows API error 5: Access is denied.          bibtex.exe: Data: C:\Program Files (x86)\MikTek\bibtex/bib/ieeetran     ======================================================================     I couldn't open style file IEEEtran.bst     ---line 156 of file paper.aux      : \bibstyle{IEEEtran      :                   }     I'm skipping whatever remains of this command     I found no style file---while reading file paper.aux     (There were 2 error messages)               Command Line:   texify.exe --pdf "C:\Users\1\Desktop\Paper and Thesis\Paper\paper.tex"     Startup Folder: C:\Users\1\Desktop\Paper and Thesis\Paper          This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9)     entering extended mode     ("C:/Users/1/Desktop/Paper and Thesis/Paper/paper.tex"     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,      croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,      lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman     ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm     an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl     ishmax, welsh, loaded.          ======================================================================     starting package maintenance...     installation directory: "C:\Program Files (x86)\MikTek"     package repository: http://ctan.mirrors.hoobly.com/systems/win32/miktex/tm/packages/     lightweight database digest: bcd18fcf486ebfeac5892e057437cdbc     going to download 2656528 bytes     going to install 14 file(s) (1 package(s))     downloading http://ctan.mirrors.hoobly.com/systems/win32/miktex/tm/packages/ieeetran.tar.lzma...     2656528 bytes, 415.28 KB/Sec     extracting files from ieeetran.tar.lzma...     pdflatex.exe: Windows API error 5: Access is denied.          pdflatex.exe: Data: C:\Program Files (x86)\MikTek\bibtex/bib/ieeetran     ======================================================================          ! LaTeX Error: File `IEEEtran.cls' not found.          Type X to quit or <RETURN> to proceed,     or enter new name. (Default extension: cls)          Enter file name:           Process has been terminated ...      If I write something like :               \documentclass[twocolumn,twoside]{IEEEtran}     \usepackage{cite}     \usepackage{latexsym}     \usepackage{dsfont}     \usepackage{graphicx}     \usepackage{dsfont}     \usepackage{amssymb}     \usepackage[cmex10]{amsmath}     \usepackage{array}     \usepackage{caption}     \usepackage{subcaption}          \usepackage{times,epsfig,latexsym,fancybox,amsmath,amssymb}     \usepackage{graphicx,cite,epsfig,amssymb,amsmath,endnotes,algorithm,algorithmic}     \usepackage{float}     \usepackage{srcltx}               \begin{document}     Hello, a test!     \end{document}      I should get a pdf file. For non-IEEEtran usage documents, it works fine


title: tikz external use png as default instead of pdf

text: I have somewhat successfully set up my tikz external code using zeroth's very helpful advise Externalization to other format, Makefile. Add new rules to the makefile My aim is to generate pngs for some files instead of pdfs. The problem with the above method is that it generates the pdf's as well (with the same name) and hence the \pgfimage command will always include the pdf instead of the png. I have some rather large plots, which are very easily generated with tikz but are much quicker to render in their bitmap format. I have come as far as generating the pdf, converting to png and then deleting the pdf. But this now will re-generate the deleted pdfs everytime I rerun the makefile. I'm not too familiar with the tikz external code. Is there a convenient way to set it up to generate the pngs only? Here is my current setup:               \documentclass{minimal}     \usepackage{tikz}     \usetikzlibrary{external}          \tikzsetexternalprefix{tikz/}     \tikzexternalize[mode=list and make]          %pdf setup     \tikzset{external/system call=%         {xelatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"}}          %optional png setup     \tikzset{         png export/.style={             external/system call=%             {xelatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource";%              convert -density 300 -transparent white "\image.pdf" "\image.png"; rm -f "\image.pdf"},         }     }          \begin{document}         \begin{tikzpicture}             \draw (0,0) circle (2);         \end{tikzpicture}         %now png export         \bgroup         \tikzset{png export}         \begin{tikzpicture}             \draw (0,0) circle (2);         \end{tikzpicture}         \egroup      \end{document}


title: Trying to use symbols withing the number in the siunitx package

text: I'm trying to use the following with `siunitx`:               \omega_x = \SI{100\pi}{rad.s^{-1}}      But it comes out wrong. There is a space placed between 10 and 0π, as if π was actually a digit rather than a symbol. How do I get `siunitx` to treat it as a symbol? I'd prefer an option to be used with the `\usepackage` declaration, to make the behaviour system-wide. An alternative package would also be helpful. Image for clarification: ![siunitx output, with superfluous space between the zeros](http://i.stack.imgur.com/AZuar.png) Also, I'd prefer a way that supported multiple symbols. I'm using the TeX Live 2012 distribution, last updated on September 25, if that helps.


title: Where do I find character codes to make my own "big symbols"?

text: A couple of months ago I was having trouble getting a `\bigtimes` symbol that worked well. A few libraries have one, but they all did all sorts of other troublesome things to how math was formatted. In the end I was suggested to just take the code that `mathabx` uses to make `\bigtimes` and that's worked fantastically:               \DeclareFontFamily{U}{mathx}{\hyphenchar\font45}     \DeclareFontShape{U}{mathx}{m}{n}{       <5> <6> <7> <8> <9> <10>       <10.95> <12> <14.4> <17.28> <20.74> <24.88>       mathx10     }{}     \DeclareSymbolFont{mathx}{U}{mathx}{m}{n}     \DeclareMathSymbol{\bigtimes}{1}{mathx}{"91}      Now I find myself in deed of a variable sized `$\ast$` and I was wondering how to adapt this code to do it. Clearly I need to write a new `DeclareMathSymbol` line and I presume that I need to input the character code for `ast` into where `"91` is. I wrote something to brute force checking a couple hundred values of integers and see if I could find the symbol that way, but I could not (and it also made me feel mildly silly). I glanced around a little bit and found the `\meaning` command, which did not seem to give the same result. Furthermore I lack a general understanding of latex programming past defining simple macros. But I presume that there is a table somewhere that would have what I'm looking for, so that if in the future I need to make some math symbol variable-sized I don't always have to ask the fine people of tex.stackexchange. Edit: For my end solution I ended up switching the base font family to cmsy and just making the sole purpose of the font family be to make large characters, i.e.:               \DeclareFontFamily{U}{large}{\hyphenchar\font45}     \DeclareFontShape{U}{large}{m}{n}{       <27>       cmsy10     }{}     \DeclareMathSymbol{\bigtimes}{1}{large}{"02}     \DeclareMathSymbol{\bigtest}{1}{large}{"03}      Although this isn't quite optimal because it introduces a large number of warnings to my log files.


title: What is the right way to redefine macros defined by babel?

text: If I want to use the `babel` package and redefine a macro such as `\contentsname`, what is the right way to go about this? Just putting `\renewcommand` in the preamble doesn't work. This sort of works               \documentclass{article}     \usepackage[english]{babel}     \AtBeginDocument{%             \renewcommand\contentsname{Foo}%     }     \begin{document}     % \selectlanguage{english}     \tableofcontents     \end{document}      but if you uncomment the `\selectlanguage{english}`, the definition is undone. The best I could come up with is to use the following.               \usepackage{etoolbox}     \patchcmd\captionsenglish{Contents}{Foo}{}{}


title: How can I change the level of the References in the Table of Contents by using the package "bibunits" for long monographs

text: In monographs, references are often put at the end of each chapter, and the **bibunits** package can be used. References in the Table of Contents(ToC) should have the same level as section as follows:               CONTENTS...................1     1 XX.......................3         1.1 XX ................3         1.2 XX ................4         References.............6     2 XX.......................7         2.1 XX ................7          ... ...      (correct ToC above) However, I get the following ToC where References appear as chapter level.               CONTENTS...................1     1 XX.......................3         1.1 XX ................3         1.2 XX ................4     References.................6     2 XX.......................7         2.1 XX ................7          ... ...      (incorrect ToC above) Here are my codes.               \documentclass{book}     ...     \usepackage[sectionbib]{bibunits}     ...     \begin{document}     ...     \bibliographyunit[\chapter]     ...     \chapter{XX}     \section{XX}     ...     \putbib     ...     \chapter{XX}     ...     \end{document}      How can I get the correct ToC. Any response would be appreciated. \-- Best wishes, radiofeda


title: How do I split a string?

text: I need to split a string into one or more substrings. I know that I could use the `xstring` package, but I'd like to do it using only inbuilt TeX/LaTeX commands. So, if I say `\def\MyTeXKnowledge{Not good enough}` what is the simplest way to extract the substrings "Not", "good" and "enough" from the macro `\MyTexKnowledge` and store them in variables?


title: Count character in line

text: ![Example](http://www.bankfotek.pl/image/1481675.jpeg) I have chapter and on end of each line I would write counter of chars, and before text line write a line sized of counts of chars. Please solution in LuaTeX. My LaTeX code               \begin{document}     \begin{minipage}{5cm}     \blindtext     \end{minipage}     \end{document}


title: Why does the tableau package raise the error "undefined control sequence" for \newpsstyle?

text: I'm running ubuntu 11.04, and trying tableau to draw logic diagrams for the first time.               \documentclass[english]{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage{ifsym}     \usepackage{amstext}     \usepackage{amssymb}     \usepackage{tableau}     \usepackage{babel}     \begin{document}          \     Here I use $\Box$ to represent necessity and $\Diamond$ to represent     possibility.          a) Whether $\Diamond(P\parallel Q) \vdash\Diamond P\parallel\Dimaond Q$          \end{document}      I'm getting this error:               ...     (/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty     (/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty))     (/usr/share/texmf-texlive/tex/latex/tableaux/tableau.sty     ! Undefined control sequence.     l.151 \newpsstyle                      {TabDblBarre}{linewidth=.4pt,doubleline=true,doublesep=.6pt}     ?


title: Lightening Font in Latex

text: How can you make font for one paragraph of a light nature?      The basic setup is:   `\section{Title`   `\vspace{-5mm}`   `\paragraph{....}`      That entire paragraph is bold and I haven't been able to find a way to lighten the font through google. Any suggestions would be appreciated.      Thanks :-)


title: How to style Tikz arrow tip for state-loop?

text: I want to have a state-node with a loop, where the arrow tip is customized (here with `-triangle 60`). How do change the arrow tip a loop uses? Heres a short example. I expect the loop to have the same arrow tip as the edge from start to end.               \documentclass[a4paper,abstracton,11pt]{scrreprt}     \usepackage{tikz}     \usetikzlibrary{automata}     \usetikzlibrary{arrows}     \begin{document}     \begin{tikzpicture}     \node (loop-node) at (0,0) {node};     \node (path-start) at (2,0) {start};     \node (path-end) at (2,2) {goal};     \path     (path-start) edge [-triangle 60] node {path} (path-end)     (loop-node) edge [loop above, -triangle 60] node {edge} ();     \end{tikzpicture}     \end{document}      Now I would like to understand why its not working as I expect, and how I can change the arrow tip for loops. I also tried to change the style of the loop with `loop/.append style{-triangle 60}`, with and without `\tikzset`, but that seemed to be a dead end.


title: How can I set short footnotes next to each other (two-column style)?

text: When having a comparatively large number of footnotes that are each very short (URLs say), it sometimes looks weird to have them stack up to a high footnote tower, especially in a `minipage` or some similarly confined space. ![four URLs one under the other](http://i.stack.imgur.com/Xif1y.png)               \documentclass[a5paper]{article}     \usepackage[hidelinks=true]{hyperref}     \newcommand{\footurl}[1]{\footnote{\url{#1}}}     \begin{document}     \begin{minipage}{\textwidth}     As Linux Jabber clients there are for example Pidgin\footurl{http://www.pidgin.im/}, Kopete\footurl{http://kopete.kde.org/}, Gajim\footurl{http://gajim.org/} and Psi\footurl{http://psi-im.org/}.     \end{minipage}     \end{document}      Intuitively, I'd like to see these footnotes next to each other, like so: ![2x2 footnotes](http://i.stack.imgur.com/tcJa8.png) Is there any package that does this for me? Or any other way? If at all possible I'd like not to go all two-columned with all my footnotes. * * * **Edit** Just for reference, I'll show the two closest solutions so far. The first is the `eledmac` solution I linked to myself which can be used locally when not changing the `\footnote` command. ~~It's not compatible with`fnpct` however.~~ It can be made to work with `fnpct` with the excellent extension capabilities of this package, so the following image uses `\AdaptNoteNoMult{\footnoteA}`. ![3+1 footnotes](http://i.stack.imgur.com/VnC5w.png) The second is the solution suggested by jon which uses `bigfoot` and the `para` option. It is compatible with `fnpct` which I used in the following example but it inherits `manyfoot`'s "feature" of escaping minipages so the length of the following example is still a huge understatement. It's also not properly aligned so it doesn't look satisfactory on its own. ![2x2 but not aligned](http://i.stack.imgur.com/l3Ryh.png)


title: TexStudio with MiKTeX - arabtex

text: I try to setup an environment for translating some Tex document to arabic but that gives me some headaches. I always end up with a document having ??????? instead of the arabic letters. Simple example               \documentclass[a4paper,oneside,12pt]{article}     \usepackage{arabtex}     \usepackage{utf8}     \begin{document}     \begin{arabtext}     بسم الله الرحمن الرحيم     \end{arabtext}     \end{document}      Looks like I forget something small but I can't figure it out. Thanks for help. Here the log file:               This is XeTeX, Version 3.1415926-2.3-0.9997.5 (MiKTeX 2.9 64-bit) (preloaded format=xelatex 2013.5.31)  31 MAY 2013 13:06     entering extended mode     **Arabic.tex     (C:\Users\user\Desktop\Text\Arabic.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,      croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat     vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm     an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,      romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis     sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u     senglishmax, welsh, loaded.     ("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("C:\Program Files\MiKTeX 2.9\tex\latex\base\size12.clo"     File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count80     \c@section=\count81     \c@subsection=\count82     \c@subsubsection=\count83     \c@paragraph=\count84     \c@subparagraph=\count85     \c@figure=\count86     \c@table=\count87     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\arabtex.sty"     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\aconfig.sty"     LaTeX2e detected      BABEL detected     \a@moduledate=\count88     \a@maindate=\count89     )     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\arabaux.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\acmd.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\afonts.sty"     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\afonts2.sty"))     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\ascan.sty"     (ArabTeX) scanner for code `arabtex' installed.     (ArabTeX) input encoding set to ArabTeX standard conventions.)     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\aparse.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\awrite.sty"     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\xarbsymb.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\arabskel.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\xarbskel.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\aboxes.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\arabtoks.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\arabchrs.sty"))     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\aligs.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\aoutput.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\abidir.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\atrans.sty"     (ArabTeX) ZDMG transliteration.)     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\alatex.sty"     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\afoot.sty"))     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\abjad.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\apatch.sty"     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\alists.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\asect.sty")     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\atabg.sty")     Invalid UTF-8 byte or sequence at line 1299 replaced by U+FFFD.     Invalid UTF-8 byte or sequence at line 1299 replaced by U+FFFD.     Invalid UTF-8 byte or sequence at line 1300 replaced by U+FFFD.          ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\alocal.sty"     (ArabTeX) 3.11 local stub, 26.02.2006))     Arabic processor `ArabTeX' [20060702 patch level 3.11s (02.07.2006)]     (ArabTeX) ... now be patient ... )     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\utf8.sty"     ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\utfcode.sty"     Package: utfcode 2002/03/07  3.10a Arabic+Hebrew segment of UTF-8     \u@lb=\count119     \u@lq=\count120     )     Package: utf8 2000/06/13  3.10 UTF-8 input encoding      Invalid UTF-8 byte or sequence at line 30 replaced by U+FFFD.     Invalid UTF-8 byte or sequence at line 30 replaced by U+FFFD.     Invalid UTF-8 byte or sequence at line 31 replaced by U+FFFD.          (ArabTeX) scanner for code UTF-8 installed.)     (C:\Users\user\Desktop\Text\Arabic.aux)     LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.          ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\apatch.sty"     Invalid UTF-8 byte or sequence at line 1299 replaced by U+FFFD.     Invalid UTF-8 byte or sequence at line 1299 replaced by U+FFFD.     Invalid UTF-8 byte or sequence at line 1300 replaced by U+FFFD.     \a@lines=\count121     \a@Lwidth=\dimen125     \a@displaywidth=\dimen126          ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\alocal.sty"     (ArabTeX) 3.11 local stub, 26.02.2006)     (ArabTeX) version 3.11s (02.07.2006): second phase of patching)     LaTeX Font Info:    Try loading font information for U+xnsh on input line 5.          ("C:\Program Files\MiKTeX 2.9\tex\latex\arabtex\uxnsh.fd"     File: uxnsh.fd  1999/10/19 v3.10 ArabTeX Naskh extd. font definitions     )     LaTeX Font Info:    Font shape `U/xnsh/m/n' will be     (Font)              scaled to size 17.28003pt on input line 5.      [1          ]     (C:\Users\user\Desktop\Text\Arabic.aux)           *File List*      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size12.clo    2007/10/19 v1.4h Standard LaTeX file (size option)      arabtex.sty    2003/08/22  3.11 ArabTeX main module      arabaux.sty    2003/05/21  3.11 auxiliary macros for ArabTeX         acmd.sty    2003/08/20  3.11 Arabic command processing        afonts.sty    1995/11/16  3.04 define Naskh font       afonts2.sty    1998/10/19  3.10 define Naskh fonts for LaTeX2e        ascan.sty    2003/08/22  3.11 standard ZDMG input encoding        aparse.sty    2003/05/26  3.11 get syllables        awrite.sty    2003/06/05  3.11 build output word      xarbsymb.sty    1998/07/15  3.07 symbolic output encoding      arabskel.sty    2000/06/04  3.10 character skeleton definitions      xarbskel.sty    1999/07/17  3.09 character skeleton definitions        aboxes.sty    2003/05/28  3.11 build output boxes     arabtoks.sty    1999/07/17  3.09 ArabTeX CS token definitions      arabchrs.sty    1998/07/11  3.07 letter token definitions         aligs.sty    2003/05/26  3.11 compute ligatures      aoutput.sty    2000/06/04  3.10 build output lines       abidir.sty    2003/08/22  3.11 bidirectional linebreaking       atrans.sty    2003/06/14  3.11 generate the transliteration        alatex.sty    2003/05/04  3.11 ArabTeX extensions for LaTeX         afoot.sty    2003/05/12  3.11 ArabTeX footnotes        abjad.sty    2003/04/26  3.11 abjad numerals        apatch.sty    2006/07/02  3.11s last minute patches        alists.sty    2003/04/26  3.11 inverted list macros        asect.sty    2003/04/26  3.11 section macros for Arabic        atabg.sty    1997/01/21  3.05 LaTeX tabbing macros for Arabic         utf8.sty    2000/06/13  3.10 UTF-8 input encoding       utfcode.sty    2002/03/07  3.10a Arabic+Hebrew segment of UTF-8       apatch.sty    2006/07/02  3.11s last minute patches         uxnsh.fd     1999/10/19 v3.10 ArabTeX Naskh extd. font definitions      ***********           )      Here is how much of TeX's memory you used:      2504 strings out of 429156      22340 string characters out of 3168943      90459 words of memory out of 3000000      5744 multiletter control sequences out of 15000+200000      4602 words of font info for 17 fonts, out of 3000000 for 9000      786 hyphenation exceptions out of 8191      25i,4n,23p,239b,124s stack positions out of 5000i,500n,10000p,200000b,50000s          Output written on Arabic.pdf (1 page).


title: Problem after copying text: inputenc Error: Unicode char \u8: not set up for use with LaTeX

text: I have a LaTeX document, that can be compiled without any problems, but after copying some text into the document, I'm getting a huge amount of errors that say: > ! Package inputenc Error: Unicode char \u8: not set up for use with LaTeX. I know that this kind of error is quite common, but in my case it is not caused by a single character, but the whole text (which is very long). The text has been written in Abi Word and saved as UTF-8 encoded text file. The Texmaker Editor uses also UTF-8 encoding. I don't know what could be wrong with that copied text.


title: Specification of the Layout for Q-A Reference Cards (Flashcards, Visual Cards)

text: I'm relatively new to LaTeX and I've used Microsoft Word so far for virtually all work with documents. For college, to use own question-and-answer reference cards, I decided once to split a portrait page (odd) and its adjacent page (even) in four equal cells with a 4x4 table. On the compound face side I have questions and on the flip side - the respective answers. The cells are aligned and properly ordered as if mirrored on the long side of the page. The design of a cell is nothing fancy, just a three-cell table in every face- side cell with a header split in a wide and a narrow cells, while the flip side is an empty cell. This has worked out well, so far. But now we've moved to Linux and I don't have Microsoft Word. And there's a presentation looming at which I wanted to hand out some of my refcards. Since I have too little time to wade through the manuals, which I do want to do later on, I would like to ask for a few hints as to **what packages/classes and functions/methods I need to reproduce the layout for such a two-sided reference card** so I can look up what's necessary only. I'm concerned most with the **specifications of a template** , as I would like to have to specify the layout once and just use--if possible--delimiters per refcard and face/flip side within the body of the document. Other than this, when **printing** , I would like to have the same layout as before, i.e., four face-side questions with four mirrored flip-side answers-- unless there is a better way to do the individual flipping while printing multiple refcards per sheet. I'm an experienced programmer and have used the LaTeX-like notation in MS Word for mathematical formulae. So I'd appreciate a reference to some sources of a similar layout to I can see what I need to replicate just as much as direct answers. As @Fran's accepted answer has brought my attention to the package called flashcards, a quick search gave me a list of the suitable packages/styles/document classes for such a purpose as visual cards (and another as well), obtainable at the CTAN Catalog under "Exams."


title: Meaning of \quad

text: Many LaTeX command names have some 'justification'. For example the commands `\cup` and `\cap` have a straightforward meaning. However, I couldn't find a meaning for the commands `\quad` and `\qquad`. Is it maybe coming from a concatenation of 'equation' and 'add' ?


title: XeLaTeX on centos 7 does not work

text: I tried to compile some trivial LaTeX files with the shipped XeLaTeX on centos 7:               $ xelatex trivial.tex     This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013)      restricted \write18 enabled.          kpathsea: Running mktexfmt xelatex.fmt     /usr/bin/mktexfmt: line 395:     /usr/share/texlive/texmf/texconfig/tcfmgr: No such file or directory     fmtutil: config file `fmtutil.cnf' not found.     I can't find the format file `xelatex.fmt'!     $ rpm -q texlive-xetex     texlive-xetex-svn26330.0.9997.5-32.el7.noarch     $ cat trivial.tex     \documentclass{article}          \title{Hello World!}          \begin{document}     \maketitle     \end{document}      Upon reading this I tried the following               TEXMF=/usr/share/texlive/texmf-dist xelatex trivial      but it did not help. How can I fix it?


title: Too deeply nested error with beamer

text: in this code I get a `too deeply nested error` I used this command `\usepackage[loadonly]{enumitem}` to fix error,but all items become on the same level. Any help please?               \documentclass[compress,red]{beamer}     \usepackage{etex}     \mode<presentation>      \usetheme{Warsaw}      \usepackage[applemac]{inputenc}%les accents pour mac      \usepackage{caption}      \captionsetup{font=small}      \captionsetup{labelformat=empty}      \usepackage{subfigure}      \usepackage{multicol}      \usepackage{animate}       \usepackage{movie 15}      \usepackage{amsmath}      \usepackage{epsfig}      \usepackage{graphicx}      \usepackage[all,knot]{xy}      \xyoption{arc}      \usepackage{url}      \usepackage{array,ragged2e}      %\usepackage{multimedia}     %\usepackage{hyperref}      \usepackage{setspace}     \usepackage{multirow}            \begin{document}      \section{section1 }      \frame[shrink]{\frametitle{Titre de la fenetre}      \begin{itemize}      \item Optimisation problem      \begin{itemize}      \setbeamercolor*{item}{fg=green}      \item \tiny chamfer distance      \item Algorithme d’optimisation      \textit{\begin{enumerate}      \item step1      \item step2      \item step3      \begin{itemize}      \item step3.1      \item step3.2      \item step3.3      \item step3.4      \itemstep3.5      \end{itemize}      \item step4      \end{enumerate} }      \end{itemize}      \end{itemize}      }      \end{document}


title: How to handle \section* with asterisk in my custom class

text: I've redefined sections and subsections in my .cls file in such a way that \section* results in bad behavior. For example, `\section*{Introduction} These analyses were performed` in my .tex file results in: ![enter image description here](http://i.stack.imgur.com/o61eO.png) I know that I should fix this using something like the `\@ifstar` functionality discussed here : http://www.tex.ac.uk/cgi- bin/texfaq2html?label=cmdstar . However, after a few hours and many iterations, I haven't succeeded. Do any of you know what I'm missing? The sections and subsections are redefined thusly in my .cls file:               %%%%%%%%%%% SECTIONING %%%%%%%%%%%     \renewcommand\section{\@startsection%     {section}{1}{\z@}%      %name, level, indent     {-\baselineskip}%       %beforeskip     {.75\baselineskip}%     %afterskip     {\reset@font\bf\MakeUppercase}  %bold, uppercase     }     \renewcommand{\thesection}{\@Roman\c@section}           \renewcommand\subsection{\@startsection%     {subsection}{2}{\z@}%       %name, level, indent     {-\baselineskip}%       %beforeskip     {.75\baselineskip}%     %afterskip     {\reset@font\bf}%               %bold     }     \renewcommand{\thesubsection}{\thesection\@Alph\c@subsection}          \renewcommand\subsubsection{\@startsection     {subsubsection}{3}{\z@}%    %name, level, indent     {-.75\baselineskip}%        %beforeskip     {.5\baselineskip}%      %afterskip     {\reset@font\emph}%             %italic     }     \renewcommand{\thesubsubsection}{\thesubsection.\@roman\c@subsection}      I have put a minimal working example online. It contains three files and a pdf. min_ex.tex : https://dl.dropboxusercontent.com/u/10060444/min_ex/min_ex.tex ntmanuscript.cls : https://dl.dropboxusercontent.com/u/10060444/min_ex/ntmanuscript.cls min_ex.pdf : https://dl.dropboxusercontent.com/u/10060444/min_ex/min_ex.pdf


title: gb4e example with two-paragraphed footnote throws error

text: `gb4e` is a useful package for writing linguistics papers, as it allows one to append judgments to examples, via the optional argument of `\ex{}`. As such, I would like to retain the use of this package, but I have just run into a problem. I'm not sure what is going on internally, but it seems that `gb4e` prevents paragraph breaks from occurring anywhere within the scope of the required argument of `\ex{}`. In particular, I have a footnote attached to an example to clarify an aspect of the example. If I try to put a paragraph break inside of this footnote, using either a blank line or the TeX primitive `\par`, an error is thrown. Here's an MWE:               \documentclass{article}          \usepackage{gb4e}          \begin{document}          \begin{exe}         \ex[]{An example requiring a footnote\footnote{A footnote with two paragraphs.\par Here's the second paragraph.}}     \end{exe}          \end{document}      And the resulting error: > Runaway argument? {An example requiring a footnote.\footnote {A footnote > with two parag\ETC. ./test.tex:8: Paragraph ended before \@ex was complete. > \par l.8 ...ootnote{A footnote with two paragraphs.\par Here's the second > paragra... > > ? Is it possible to achieve a multiple-paragraphed footnote inside of a `gb4e` example, or is there a workaround that would allow me to retain the use of `gb4e`?


title: Space between rows in a table

text: I created a table in LaTeX, however, I can not put a space after the first row. As you can see the bar of X mean overlaps the `\hline`. I tried `\\[1pt]` after `\hline`, but it produced much more space than I expected. The code I wrote is shown below. ![Table](http://i.stack.imgur.com/fPHJa.jpg)               \begin{center}     \begin{tabular}{l@{\hskip 0.3in}c@{\hskip 0.2in} c@{\hskip 0.2in} c@{\hskip 0.2in} c@{\hskip 0.3in} l}     \hline      & $\delta$ & $\varepsilon$ & $\eta$ & $w$ & $c_{i}~(i=1,...,k)$\\ \hline     $\overline{y}_{RW(st)}=\overline{y}_{st} \dfrac{\overline{X}}{w\overline{x}_{st}+(1-w)\overline{X}}$ & -1 & -1 & -1 & & $(-w)^{i}$\\[10pt]     $\overline{y}_{Gu(st)}=\overline{y}_{st}\left[w\dfrac{\overline{X}}{\overline{x}_{st}}+(1-w)\left(\dfrac{\overline{X}}{\overline{x}_{st}}\right)^{2}\right]$ & -1 & -1 & 1 & & $(-1)^{i}[i(1-w)+1]$\\          ....               \hline         \end{tabular}     \end{center}


title: How to create an array with the last column align on the right at the end of the page (using array environment))

text: I would like if possible using array environment, to align the last column of my array to the right and at the end of the page. Something like that:               \begin{array}{\textwidth}{l r}        first column & second column     \end{array}      But of course this does not work. Does anyone know how to achieve this ? Thanks in advance.


title: Fancy Table of Contents and Hyperref Set Up

text: I am using a code in `tikz` for a fancy table of contents and I want to apply certain settings on it using the `hyperref` package and the relevant command `hyperrefsetup`. I want to create the following image ![enter image description here](http://i.stack.imgur.com/NyTlX.png) or at least something that will be smooth, like section numbers should have the same color with their title and their page numbering while the chapter title should have this light blue color. When I use `linkcolor` option(which I actually need it for colored links) there seems to be a mess up, where all of the ToC entries have the same color and not the same color with section/chapter/page numbering, like the following ![enter image description here](http://i.stack.imgur.com/qNEvW.png) or ![enter image description here](http://i.stack.imgur.com/6oHLW.png) How can I achieve the first image and how can I explicitly change section/page numbering color? My code is the following               \documentclass{book}          \usepackage{tikz}          %~~~~~~~~~~~~~~~~~~~~~Fancy ToC~~~~~~~~~~~~~~~~~~~~~~     \usepackage{titletoc}     \usepackage{titlesec}          \definecolor{doc}{RGB}{0,60,110}     \definecolor{myblueii}{RGB}{63,200,244}          \contentsmargin{0cm}     \titlecontents{chapter}[0pc]     {\addvspace{30pt}%     \begin{tikzpicture}[remember picture, overlay]%     \draw[fill=myblueii,draw=myblueii, rounded corners] (-4,-.1) rectangle (-0.15,.5);%     \pgftext[left,x=-2.7cm,y=0.2cm]{\color{white}\Large \chaptertitlename\ \thecontentslabel};%     \end{tikzpicture}\color{myblueii}\large\bfseries}%     {}     {}     {\hspace*{6pt}\titlerule\hspace*{6pt}\large\bfseries \thecontentspage     \begin{tikzpicture}[remember picture, overlay]     \draw[fill=doc!25,draw=myblueii, rounded corners=0pt] (2pt,0) rectangle (6,0.1pt);     \end{tikzpicture}}%     \titlecontents{section}[2.4pc]     {\addvspace{1pt}}     {\contentslabel[\thecontentslabel]{2.4pc}}     {}     {\hfill\small \thecontentspage}     []     \titlecontents{subsection}[4.8pc]     {\addvspace{1.0pt}}     {\contentslabel[\thecontentslabel]{2.4pc}}     {}     {\hfill\small\thecontentspage}     []          \makeatletter     \renewcommand{\tableofcontents}{%     \chapter*{%     \vspace*{-20\p@}%     \begin{tikzpicture}[remember picture, overlay]%     \pgftext[right,x=15cm,y=0.2cm]{\color{myblueii}\Huge \contentsname};%     \draw[fill=myblueii,draw=myblueii, rounded corners=15pt] (13,-.75) rectangle (20,1);%     \clip (13,-.75) rectangle (20,1);     \pgftext[right,x=15cm,y=0.2cm]{\color{white}\Huge \contentsname};%     \end{tikzpicture}}%     \@starttoc{toc}}     \makeatother          %~~~~~~~~~~~~~~~~~Hyperref Settings~~~~~~~~~~~~~~~~~~~~~~          \usepackage{hyperref}     \hypersetup{%         pdfborder = {0 0 0},         colorlinks,         citecolor=red,         filecolor=green,         linkcolor=myblueii,         urlcolor=cyan!50!black!90     }          %~~~~~~~~~~~~~~~~~Main Document~~~~~~~~~~~~~~~~~~~~~~~          \begin{document}       \tableofcontents       \chapter{rkbnjg}       \section{ljkihb;kjb}       \url{http://www.google.com}       \section{lkhb;hkb}       \section{;kjbkjb}       \subsection{;kjblkhjblhkb}       \subsection{lhjbljh}       \subsection{;jbnlkhjblbh}       \section{ljhblkhbj}       \subsection{ljhblhjkblkbh}       \chapter{kgjb}       \chapter{;kjdfb543}     \end{document}


title: figure next to a barplot

text: Okay, I tried a lot of things and can't really find it anywhere. Is there a simple example code for how to put a picture next to a graph? I tried to play around with `hspace` and `vspace` as well as an example of having two plots next to each other but replacing it by a figure is not possible for me at the moment.


title: align+multicolumn sometimes produces misaligned equation labels

text: Here is a short document demonstrating the problem:               \documentclass[twocolumn]{article}     \makeatletter     \renewcommand{\rmdefault}{ptm}     \renewcommand{\normalsize}{\@setfontsize{\normalsize}{9pt}{10pt}}     \makeatother     \usepackage[table]{xcolor}     \usepackage{amsmath}          \begin{document}     \begin{itemize} \item         \begin{align}             longfoo &\in foo \\             foo &= longlonglongfoo \\             foo &= foo && longlonglongfoo \\             \multicolumn{2}{c}{foo}         \end{align}     \end{itemize}     \end{document}      This produces a document that looks like this: ![minimal bad alignment](http://i.stack.imgur.com/KAUKL.png) As you can see, the `(4)` label does not line up with the others. I tried to minimize the document as much as possible, so the visual problem is not so serious in this small example, but you can see in my actual document that the alignment is quite far off indeed. ![bad alignment in my original document](http://i.stack.imgur.com/2A3GT.png) Why is the alignment off, and what can I do to fix it?


title: Why do "in prep" papers behave differently from "year'd" ones?

text: Someone asked me to troubleshoot a LaTeX+BibTeX document. The problem, I've found, boils down to an abuse of the author-year system in the citations in the following way:               @article{W1,        author = {Waldo, W},        title = {First paper},        year = {in prep. }     }     @article{W2,        author = {Waldo, W},        title = {Second paper},        year = {in prep. }     }      With the actual document looking like               \documentclass{article}     \usepackage{natbib}     \begin{document}     Cite first \cite{W1}. Cite second \cite{W2}. Cite both \cite{W1,W2}.          \bibliographystyle{plainnat}     \bibliography{test}     \end{document}      For the single citations, it will look correct: > Cite first Waldo [in prep.a]. Cite second Waldo [in prep.b]. But for the two items, it looks like > Cite both Waldo [in prep.a,i] whereas the author of the document expects it to read > Cite both Waldo [in prep.a,b] **Remark** If you replace the "in prep" in the bibtex file above by a made up year, say 2038, the document shows correctly > Cite both Waldo [2038a,b] **Questions** :   1. Why did the numbering switch from alphabetical to roman, and restart from 1?   2. Most likely this is the incorrect way of abusing the author-year citation style from NatBib to include "in prep" papers. Is there a better way? Or a way to hack this so it would work? The goal is for published papers to show "Author [year]" and for manuscripts in preparation to show "Author [in prep.]", with multiple manuscripts by the same author correctly handled.


title: Allow theorem split in many frames in beamer

text: How can a theorem-like environment be (automatically) split into multiple frames if the vertical space it needs is not enough in a frame? In my document preamble I have               \theoremstyle{definition}     \newtheorem{exercise}{Exercício}      And a given frame in the document has an `exercise` environment which does not fit into a single frame. So I want it split in more frames. Any clues?


title: Replace lstlisting with verbatim depending on a boolean

text: I use `latex2rtf` to convert latex documents to .rtf and thence to MS-word (see this thread). To do this, I set up a custom class and limit which packages are used as `latex2rtf` only accepts a limited subset of commands (see manual pages). `latex2rtf` provides a booelan, `\iflatextortf`, that is set to true if you use `latex2rtf` as your compiler. I now need to display code listings and maintain the `latex2rtf` functionality. That means, I want to define something in the preamble to replace calls to `\lstlisting{}` with something like `\begin{verbatim} ... \end{verbatim}` when `\iflatextortf` is true. **Question:** Is it possible to use switch between the `lstlisting` and `verbatim` environment depending on the value of `\iflatextortf`, keeping the content of the environment? The solution would not require any packages to be installed and should work with the limited subset of commands in latex2rtf (see section 8.6.1). This should help me run compile using `latex2rtf`. Solutions using the verbatim package won't work unfortunately. My ideal solution looks like this:               \newif\iflatextortf          \iflatextortf         \documentclass[12pt,letterpaper]{report}         % whatever my replacement for lstlistings is %     \else         \documentclass[10pt,letterpaper]{report}         \usepackage{listings}         % something fancy with listings         \lstnewenvironment{codeenv}[1][]{\lstset{basicstyle=\small\ttfamily}#1}{}            \fi      And I would like something a little more elegant than using find & replace on the raw .tex!


title: longtable + itemize + resize

text: i'm trying to rezise a longtable that contains itemize...can you help me? if i put `\resizebox{0.8\textwidth}{!}{` I have error. My table start as:               \begin{centre}\resizebox{0.8\textwidth}{!}{     \begin{longtable}{|l|l|p{9cm}|p{5cm}|p{5cm}|}     \caption[Features]{Features} \label{features} \\     \hline      \textbf{Study} & \textbf{Type} & \textbf{Feature}  &\textbf{Metrics} &\textbf{Classifier}\\      \hline      \endfirsthead          \multicolumn{3}{c}%     {{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\     \hline      \textbfStudy} & \textbf{Type} & \textbf{Feature}  &\textbf{Metrics} &\textbf{Classifier}\\       \hline      \endhead          \hline \multicolumn{3}{|r|}{{Continued on next page}} \\ \hline     \endfoot          \hline \hline     \endlastfoot               ...


title: Accents package incompatible with bm?

text: Reading egreg's answer to Decrease length of underline in math, I wanted to use the `accents` package for lower bars in math mode. It seem however that the package is incompatible with the `bm` package. When I add `\usepackage{accents}` to my preamble, even without using any commands related to the package, I get error messages for all my uses of `\bm`.               Missing number, treated as zero ...s when only one specific $\bm{\tilde{a}}          Missing control sequence inserted ...s when only one specific $\bm{\tilde{a}}          Missing } inserted ...s when only one specific $\bm{\tilde{a}}          Missing } inserted ...s when only one specific $\bm{\tilde{a}}          Missing } inserted ...s when only one specific $\bm{\tilde{a}}          Missing } inserted ...s when only one specific $\bm{\tilde{a}}          Extra }, or forgotten \endgroup ...s when only one specific $\bm{\tilde{a}}          Missing control sequence inserted ...s when only one specific $\bm{\tilde{a}}          Parameters must be numbered consecutively ...s when only one specific $\bm{\tilde{a}}          Missing number, treated as zero ... \leq \left| \sum_{a_i \in \bm{\tilde{a}}          Missing control sequence inserted ... \leq \left| \sum_{a_i \in \bm{\tilde{a}}          Missing } inserted ... \leq \left| \sum_{a_i \in \bm{\tilde{a}}          Extra }, or forgotten \endgroup ... \leq \left| \sum_{a_i \in \bm{\tilde{a}}          Missing control sequence inserted ... \leq \left| \sum_{a_i \in \bm{\tilde{a}}          Parameters must be numbered consecutively ... \leq \left| \sum_{a_i \in \bm{\tilde{a}}          Missing number, treated as zero for any $\bm{\tilde{a}}          Missing control sequence inserted for any $\bm{\tilde{a}}          Missing } inserted for any $\bm{\tilde{a}}          Extra }, or forgotten \endgroup for any $\bm{\tilde{a}}          Missing control sequence inserted for any $\bm{\tilde{a}}          Parameters must be numbered consecutively for any $\bm{\tilde{a}}          Missing number, treated as zero ...he case in particular for $\bm{\tilde{a}}          Missing control sequence inserted ...he case in particular for $\bm{\tilde{a}}          Missing } inserted ...he case in particular for $\bm{\tilde{a}}          Extra }, or forgotten \endgroup ...he case in particular for $\bm{\tilde{a}}          Missing control sequence inserted ...he case in particular for $\bm{\tilde{a}}          Parameters must be numbered consecutively ...he case in particular for $\bm{\tilde{a}}      Is there a way to make both packages compatible?


title: Padding in a minipage

text: I build a minipage with some background picture:               \newsavebox\langscapeSafebox     \newenvironment{dsaBoxLandscape}[1][]{%     \def\imgcmd{\includegraphics[width=\wd\langscapeSafebox,height=\dimexpr\ht\langscapeSafebox+\dp\langscapeSafebox\relax,#1]{images/box-landscape.png}}%        \begin{lrbox}{\langscapeSafebox}%        \begin{minipage}%     }{%        \end{minipage}        \end{lrbox}%        \sbox\langscapeSafebox{\usebox\langscapeSafebox}%        \mbox{\rlap{\raisebox{-\dp\langscapeSafebox}{\imgcmd}}\usebox\langscapeSafebox}%     }          % somewhere in the document:          \begin{dsaBoxLandscape}{14cm}        Some content     \end{dsaBoxLandscape}      Now I want to have some padding at each side (top, down, left, right) inside the minipage so that the content does not overlap with the styled border part of the background image. How can I do that?


title: Why powerdot on Mac (MacTeX 2011) is giving me a shrunk dvi output?

text: I'm trying to use the powerdot class that comes with TeX Live 2011 on Mac OS X Lion (MacTex). I'm using the sample file from docs, powerdot-example.tex. On the command line, I use > latex powerdot-example.tex > > latex powerdot-example.tex And it gives me a dvi file. However, the contents of this dvi file are much smaller then the paper size, I'm not understading what is the cause of this. This sample file has a lyx cousin file: powerdot-example.lyx, which I can open in the LyX editor and chose File>Export>DVI from Menu. When I do that, the dvi output is right, and I'm not able to figure out how LyX is doing it right while I'm unable to do the same from the command line. Also, a detail that is not so important, the sample file tries to use a randomdots slide option which has no effect when opening a pdf file created from the dvi file, while opening the dvi file directly with xdvi shows the random dots background decoration on the given slide.


title: How to insert author information with ACM Tighter Alternate style at the end of paper

text: Currently, I am writing paper with ACM Tighter Alternate style (link here). Now I want to write authors' information where must be the end of paper (after reference section). For instance,![enter image description here](http://i.stack.imgur.com/fq7rF.png) . I found an example in here but unfortunately it is IEEE style. I tried to use table environment but I did not make it because   1. Table floats and I can not keep it in place at the top   2. Figure in table is too wide and it caused errors. Do anybody experience same situation as I. Please help. Thank you.


title: Page number before Chapter title in the Table of Contents with memoir

text: I've seen in some novel that, in the table of contents, the page number is before the chapter title, for example:               3    Down the Rabbit Hole     7    The Pool of Tears     15   The Caucus Race and a Long Tale      How can I obtain the same using `memoir` class?


title: Slightly Alter a symbol position

text: I am using a symbol and it looks too low vertically. I would like to slightly shift it up. Can I do this easily? I would like to do this "permanently" since it is probably more efficient than shifting it inline(I will be using the symbol a lot). I'd like to create a copy of the symbol so I do not modify the original. I know how you guys love MWE's so here you go!! Hope it helps!!!               \documentclass{article}     \newcommand{\sym}{\diamondsuit}     \begin{document}     G$\sym$     \end{document}      Obviously I want `\sym` to be shifted up. In fact I would like it to be centered to the previous text which may different in the font than what the symbol uses. (On my screen the diamond sits slightly too low)               \documentclass{article}     \newcommand{\sym}{\diamondsuit}     \usepackage{fontspec}     \newfontfamily\fontt{cyklop}     \begin{document}     {\fontt G}$\sym$     \end{document}


title: Comparing LaTeX3 token list to string

text: Is there a way to compare a LaTeX3 token list to string without having to create a temporary token list? I though I'd use `\tl_use:N` to get the contents of the token list for the comparison, but that doesn’t seem to work.               \documentclass{article}     \usepackage{expl3}               \begin{document}     \ExplSyntaxOn     \tl_new:N \my_tl     \tl_set:Nn \my_tl {foo}     \tl_if_eq:nnTF {\tl_use:N \my_tl} {foo} {True} {False}          \tl_new:N \my_ii_tl     \tl_set:Nn \my_ii_tl {foo}     \tl_if_eq:NNTF \my_tl \my_ii_tl {True} {False}     \ExplSyntaxOff     \end{document}


title: Does LaTeX have to reprocess included files that haven't changed?

text: I have included several `.tex` files (they do not contain the header code like documentclass, begin and end document, etc). When I include the file using `\include` everything works. But if I recompile the code I still takes a while even though most of the includes(or even all) have not changed. My basic method to deal with this is to comment out the includes I do not want compiled but I see no reason why they can't be "precompiled" and reused each time unless the `.tex` file changed.


title: Formatting chapter in memoir

text: I'm trying to reproduce this chapter heading (Styling my section/chapter) in `memoir`. This is more or less working with the following code:               \documentclass[11pt,oneside]{memoir}     \usepackage{blindtext}          \makechapterstyle{uno}{%       \setlength{\midchapskip}{5pt}       \renewcommand{\chapnumfont}{\Huge\bfseries}       \renewcommand{\printchaptername}{}%       \renewcommand*{\chapternamenum}{}       \renewcommand{\printchapternum}{}%       \renewcommand{\chaptitlefont}{\Huge\bfseries\scshape}       \renewcommand{\printchaptertitle}[1]{%        \hspace*{-0.1\textwidth}\chaptitlefont ##1}       \renewcommand{\afterchaptertitle}{%        \vskip -2pt \hspace*{-\marginparwidth}\rule{0.7\textwidth}{5pt}}        }           \chapterstyle{uno}          \begin{document}     \chapter{Es war einmal ein Mann}     \blindtext[1]     \end{document}      But my question: Why does the following code:               \renewcommand{\afterchaptertitle}{%     \vskip\midchapskip\hspace*{-\marginparwidth}\rule{0.7\textwidth}{5pt}}     }      leave such a large separation to the rule? As far as I understand, `\vskip` is creating a new paragraph. But if I use               \renewcommand{\afterchaptertitle}{%     \vskip\midchapskip\hrule}     }      there is no separation at all (only the `5pt` of `\midchapskip`). `\rule` and `\hrule` are behaving differently, but I can not understand why and I did not see a good explanation for this.


title: A problem in placing caption exactly below the graph

text: I draw a graph in Latex but I'm having a problem in placing the caption of the graph since I want it be exactly below my graph at the left side of the page but it's always in the center regardless to whatever I do in order to bringin it to the left side , I'm using picture enviroment . I also looked at the similar problems but the solution did not work . this is the code which I'm using . which changes should I make in order to solve this problem? here I put 2 codes one of them is when i'm not using English and all the commands will work but the second one is when I'm using Farsi language where this problem remains :               \documentclass[a4]{book}           \usepackage{color}     \usepackage{graphicx}     \usepackage{pict2e}      \textwidth =12cm      \textheight =19cm     \usepackage{amsmath,amssymb}      \usepackage{pict2e}                 \begin{document}          \begin{figure}[htp!]     \setlength{\unitlength}{0.1cm}     \linethickness{0.3mm}      \begin{picture}(0,20)     \put(0,0){\vector(1,0){40}}     \put(42,0){$x$}     \put(0,0){\vector(0,1){30}}     \put(0,32){$y$}     \put(0,0){\color{red}\vector(2,1){30}}      \put(30,16){$(x,y)$}      \put(29,-4){$x$}     \put(-4,16){$y$}     \put(9,1){$\theta$}     \put(14,10){$r$}     \multiput(0,15)(0.8,0){38}{\line(1,0){0.3}}      \multiput(29.5,0)(0,0.8){20}{\line(0,1){0.3}}     \end{picture}      \caption{ I want name below gragh  }     \end{figure}      \end{document}      the Second one :                \documentclass[a4]{book}           \usepackage{caption}     \usepackage{color}     \usepackage{graphicx}     \usepackage{pict2e}      \textwidth =12cm      \textheight =19cm     \usepackage{amsmath,amssymb}      \usepackage{pict2e}      \usepackage{xepersian}     \settextfont[Scale=1]{XB Zar}     \setdigitfont[Scale=1]{XB Zar}      \begin{document}     \begin{figure}[!hb]     \setlength{\unitlength}{0.1cm}     \linethickness{0.3mm}      \begin{LTR}     \begin{picture}(0,20)     \put(0,0){\vector(1,0){40}}     \put(42,0){$x$}     \put(0,0){\vector(0,1){30}}     \put(0,32){$y$}     \put(0,0){\color{red}\vector(2,1){30}}      \put(30,16){$(x,y)$}      \put(29,-4){$x$}     \put(-4,16){$y$}     \put(9,1){$\theta$}     \put(14,10){$r$}     \multiput(0,15)(0.8,0){38}{\line(1,0){0.3}}      \multiput(29.5,0)(0,0.8){20}{\line(0,1){0.3}}     \end{picture}      \end{LTR}     \captionsetup{singlelinecheck=false}     \caption {نمایشِ قطبیِ یک نقطه}      \end{figure}     \end{document}


title: Using aliases with BibTeX in the list of references

text: I have a frequently-cited paper in a manuscript, and I want to refer to it as "Paper I" in the text, which I can do with `\defcitealias` in `natbib`. However, I want also the acronym "Paper I" to be shown in the list of references at the end of the paper, which is automatically generated by `bibtex`. Note that although I could easily do this by modifying the bibtex entry for Paper I in the bibtex library, I am not inclined in doing so because the same bibtex library is used for different manuscripts, and I do not want the indication "Paper I" to appear in the references of all my manuscripts.