title: siunitx: Detecting \mathversion{sans}

text: Is there a way to tell siunitx to use the `\mathversion{sans}` font in the following example?               \documentclass{scrartcl}      \usepackage[T1]{fontenc}      \usepackage{helvet}      \renewcommand\familydefault{\sfdefault}      \usepackage{sansmath}      \usepackage{siunitx}      \begin{document}      \mathversion{sans}        $1=1 \SI{1}{\meter}$          \end{document}      (`\sisetup{mode=text}` is cheating).


title: Enable binary SI units with siunitx in MacTeX

text: I'm using TeXShop on OS X Lion (the MacTeX distro, which is kind of amazing) and I cannot do the following with `siunitx`:               \SI{4}{\giga\byte}      TeXShop says it's an "Undefined control sequence." According to the manual I should be able to do this:               \usepackage[detect-weight=true, binary-units=true]{siunitx}      or this:               \usepackage{siunitx}     \sisetup{ detect-weight=true, binary-units=true }      but that's not working, and I've tried small variants. How can I make the "byte" unit work?


title: TikZ frame paragraph span across pages in ConTeXt

text: I tried to reproduce the following example in ConTeXt:   http://www.texample.net/tikz/examples/framed-tikz/ How can I substitute the LaTeX `framed` package, that is make the frame span across multiple pages?   (Resigning from TikZ is not an option as I have already designed my own frame.)


title: Move vertical list of sections-subsections down

text: I'd like to move the vertical "index" of section and subsection that appears in themes like "Goettingen" down. I tried to add a vertical skip with `addtobeamertemplate`, but that moves all the sidebar content down, while what I want is to move just the "index", not Author/Title, so to gain free vertical space between "author" and "section 1". I'm attaching some example code:               \documentclass{beamer}     \usetheme{Goettingen}          \title[Title]{title}     \author[Author]{author}          \addtobeamertemplate{sidebar right}{\vskip25pt}{}     \begin{document}     \section{Section 1}     \subsection{1}     \frame{1}     \subsection{2}     \frame{2}     \subsection{3}     \frame{3}     \subsection{4}      \frame{4}     \subsection{5}      \frame{5}     \subsection{6}      \frame{6}      \end{document}


title: Defining a chapter "outside" the last \part (amsbook)

text: Currently, I have the following:               \documentclass{amsbook}     \begin{document}          \chapter*{Introduction}          \part{First Part}     \chapter{1}     \chapter{2}     \chapter{3}          \part{Second Part}     \chapter{4}     \chapter{5}          \chapter*{Conclusion}          \end{document}      The table of contents is perfect. My only concern is how I see the contents in the side panel of my pdf viewer. Currently it shows:               Introduction     Part 1       Chapter 1       Chapter 2       Chapter 3     Part 2       Chapter 4       Chapter 5       Conclusion      whereas, what I wanted to have really is the following, where "Conclusion" is outside the last \part.               Introduction     Part 1       Chapter 1       Chapter 2       Chapter 3     Part 2       Chapter 4       Chapter 5     Conclusion


title: pgfplots - How can I use 'nodes near coords' with multiple data values for one tick?

text: When using displaying multiple values for a tick and then activating the display of the values/coordinates, things get messy. This is why I want to display the values inside of the bar. Or on the right of the very bar they belong to, but I can't get it to work, the vertical alignment is always centered to the tick. One possibility could be to use the `nodes...`-options for each `\addplot`-command and then align them by `above right=XYpt` for the blue bar and `below right` vice versa. But that is thrown out the window if I decide to resize the plot a little bit. ## Picture of the problem ![enter image description here](http://i.stack.imgur.com/YK47u.png) ## MWE               \documentclass[     a4paper     ]{scrartcl}          \usepackage{     amsmath,     tikz,     pgfplots,     pgfplotstable,     }          \usepackage{lmodern}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \usepgfplotslibrary{groupplots}          \pgfplotstableread[col sep=comma]{     Process,ValueA,ValueB     1,66,70     2,66,40     3,24,20     4,52,60     5,64,30     6,12,10     }{\tableabcdef}          \begin{document}     \begin{center}     \begin{tikzpicture}[font=\small]     \begin{axis}[     %     height=6cm,     %     xlabel={Force in N},     ylabel={Process \#},     %     xbar,     %     /pgf/bar width=5pt,     %     ytick=data,     nodes near coords,     nodes near coords align={left},     every node near coord/.style={fill=white, font=\tiny, inner sep=1pt},     ]     \addplot+ table [x=ValueA, y=Process] {\tableabcdef};     \addplot+ table [x=ValueB, y=Process] {\tableabcdef};     \end{axis}     \end{tikzpicture}     \end{center}     \end{document}


title: File `balance.sty' not found

text: i recently installed texworks 2012 full version in ubuntu 12.04. i am working in latexila. when i am running a .tex file the following error occured- File `balance.sty' not found. can any one help me


title: How do I center text in a cell with `tcbox`?

text: I have this code in preambule:               \documentclass[12pt,letterpaper,twoside]{article}     \renewcommand*\rmdefault{cmd}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{amsfonts}     \usepackage{animate}     \usepackage{anysize}     \usepackage{arcs}     \usepackage{array}     \usepackage[scale=0]{background}     \usepackage{calc}     \usepackage{cancel}     \usepackage{chngcntr}     \usepackage{CJK}     \usepackage{CJKspace}     \usepackage{CJKpunct}     \usepackage{colortbl}     \usepackage{enumitem}     \usepackage{epsfig}     \usepackage{epstopdf}     \usepackage{etoolbox}     \usepackage{fancybox}     \usepackage{fancyhdr}     \usepackage{float}     \usepackage{framed}     \usepackage{graphicx}     \usepackage{ifoddpage}     \usepackage{latexsym}     \usepackage{lmodern}     \usepackage{MnSymbol}     \usepackage{multicol}     \usepackage{multirow}     \usepackage{mwe}     \usepackage{pgffor}     \usepackage{rotating}     \usepackage{tabularx}     \usepackage{textcomp}     \usepackage{tgheros,tgtermes,tgcursor}     \usepackage{tikz}     \usepackage{times}     \usepackage{tipa}     \usepackage{varwidth}     \usepackage{wasysym}     \usepackage{wboiboites}     \usepackage[table, x11names]{xcolor}     \usepackage[T1]{fontenc}     \usepackage[spanish]{babel}     \usepackage[total={18.59cm,24.5cm},top=3cm,inner=1cm,outer=2cm]{geometry}     \usepackage[abs]{overpic}     \usepackage[breaklinks,colorlinks=true,linkcolor=red,citecolor=red, urlcolor=blue]{hyperref}     \usepackage[framemethod=TikZ]{mdframed}     \usepackage[breakable, theorems, skins]{tcolorbox,empheq}          \tcbuselibrary{skins,breakable,listings,theorems}          \newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}     \newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}          \tcbset{enhanced,fonttitle=\bfseries\large,fontupper=\normalsize\sffamily,     colback=hkvcyan,colframe=orange,colbacktitle=hkvred!10,     coltitle=black,center title     }      And this code in document:               \newcolumntype{s}{>{\centering\arraybackslash}>{\hsize=.25\hsize}X}     \begin{center}     \begin{tcolorbox}[width=90mm,boxsep=1pt,,tabularx={c|c},title= {\textcolor{black}{ Expresiones trigonom\'etricas}}, beamer]          \centering          \textcolor{blue}{Expresi\'on}   & \textcolor{blue}{Grado}   \\ \hline\hline     $5m^{3}n^{4}$&$7$\\          \end{tcolorbox}     \end{center}      I need the text inside every cell to be centered horizontally, but my result is this. ![enter image description here](http://i.stack.imgur.com/dUHd6.png)


title: Placing text at random positions on the screen in beamer

text: I am creating a presentation and for the Q&A session slide, I want to show question marks (?) in various colors and sizes in random locations on the screen. Is this possible in `beamer`?


title: Setting \predisplaypenalty to allow pages to have displayed equations at the top

text: If you're okay with letting pages have displayed equations at the top, what's a good value less than 10000 to set `\predisplaypenalty` to? I mean a value that allows pages to have displayed equations at the top, but that tends not to allow "too many" such pages. Also, will setting `\predisplaypenalty` to less than 10000 allow displays to be put at the top of a page if they're created with any of the standard LaTeX and `amsmath` equation environments (`equation`, `align`, etc.), or will some of them still never be put there?


title: beamer presentation for mathematicians

text: I am using the following code for my presentation:               \documentclass[10pt]{beamer}          \mode<beamer>{%     \usetheme[hideothersubsections,     right,width=22mm]{Goettingen}     }     \title{Math}     \author[Mister X]{X}     \institute{University}     \titlegraphic{\includegraphics[width=20mm]{USTL}}     \date{January 15, 2012}          \begin{document}     \begin{frame}<handout:0>     \titlepage     \end{frame}     \end{document}      But I am having troubles using environments like `itemize`. It is a mathematical presentation, It is a long time ago I used a `beamer` presentation. EDIT: I know the problem, when compiling I should close the "pdf file".


title: missing several fields in a bibliographic entry

text: Clarification: I'm writing a thesis. Edit: It seems that my TeXworks doesn't compile -- to a en-dash, any idea why? I just use – for now with XeTeX. I compile with XeLaTeX + MakeIndex + BibTex and use `natbib` with `\bibliographystyle{plainnat}` Example:               @article{brown1960,       title={The Pronouns of Power and Solidarity},       author={Brown, Roger and Gilman, Albert},       journal={Style in Language},       volume={2},       editor={Sebeok, Thomas A.},       pages={253--76},       publisher={MIT Press},       address={Cambridge},       year={1960}     }      produces ![enter image description here](http://i.stack.imgur.com/fNz8h.png)   1. Editor, volume, publisher and address is lost.   2. Two dashes -- don't become a hyphen. Minimal example:               \documentclass{report}     \usepackage{fontspec}     \usepackage{xunicode}     \usepackage{xltxtra}     \usepackage[round]{natbib}          \bibliographystyle{plainnat}          \begin{document}          \citet{brown1960}          \bibliography{sources}          \end{document}


title: Remove a \textit{} or \emph{} in Vim with vim-latex (LaTeX-Suite)

text: Thanks to this SE answer I now know that I can emphasise the highlighted word with ``em`. Is there a way to _remove_ the `\emph{}` from a word?


title: biblatex -- citation versus bib style first name first and dashed/idem

text: after much effort and time, I am finally coming closer to what I need with biblatex. Jurabib was really nice but didn't integrate with babelbib at all and it's built-in feature for internationalization didn't work for spacing before punctuations. It was in fact very limited. I am happy to see that biblatex plays with babel directly with the autoload option, within the bibliography. I need full citations in footnotes, eventually with a page number added, while keeping the full reference (without any citation-specific page number) in the bibliography at the end. So the styles should be approximately the same. It's a pretty common need for History, Humanities and it seems, for law studies also. I cannot figure out why it is so hard to get such a simple setup up and running before biblatex, as I said before, and now with biblatex although I appreciate its advantage for correctly internationalized bibliography. Especially the spacing before punct which Jurabib did mess up! This is how far I get for today: the style for citation versus bibliography isn't the same. I remember it was kind of tricky with Jurabib to get the same but it was possible. And with other packages for Bibtex it was even possible to point directly to the same .bst style file, with or without additional bibliographystyle-alike argument. How to get the same style for (footnote) citation and bibliography with biblatex? Precisely, why are first name reversed in the citation versus bib? (I need the firstname before). In the example below, the first name is only first with the citation. And how to get the dashed OR Idem behaviour for the citation (dashed works for bibliography)? See the example below, Harry Collins isn't dashed or Idem in the citation. Besides, I am not really sure about autolang=. Should I use hyphen or other? I don't understand the difference and some insights about that are welcome. Thanks.               \documentclass[french]{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage{verbatim}     \usepackage[english,ngerman,frenchb]{babel}     \usepackage{csquotes}     \usepackage[style=verbose-ibid,backend=bibtex8,autolang=hyphen,dashed,     ibidtracker=constrict,opcittracker=constrict,loccittracker=constrict,idemtracker=constrict]{biblatex}     \renewcommand*{\newunitpunct}{\addcomma\space}     \addbibresource{C:/file.bib}          \begin{document}     \cite{collinscha}.          \cite{collinsoth}          \cite[256]{binetmag}.          \cite{binetmag}.          \printbibliography     \end{document}      gives, ![citation versus bib](http://i.stack.imgur.com/4kBfd.jpg)


title: Beamer "show notes on second screen" with pgfpages "4 on 1"

text: I'm trying to build on this answer:               \documentclass[handout]{beamer}     \title{The Title}     \author{The Author}     \usetheme{Copenhagen}     \usepackage{pgfpages}     \pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm] % could also use letterpaper     \setbeamertemplate{note page}[plain] % Beamer manual, section 19.1     \setbeameroption{show notes on second screen=bottom} % Beamer manual, section 19.3          \begin{document}     \begin{frame}     Here's some content, with no notes added.     \end{frame}     \begin{frame}     Here's some content, with notes added.     \end{frame}     \note{     Here are things to remember:     \begin{enumerate}     \item Stress this first.     \item Then this.     \end{enumerate}     }     \end{document}      I'd like to print two slides per page, but I can't get it to work:               \documentclass[handout]{beamer}     \title{The Title}     \author{The Author}     \usetheme{Copenhagen}     \usepackage{pgfpages}     \pgfpagesuselayout{4 on 1}[a4paper,border shrink=5mm] % could also use letterpaper     \setbeamertemplate{note page}[plain] % Beamer manual, section 19.1     \setbeameroption{show notes on second screen=bottom} % Beamer manual, section 19.3     %\pgfpagesuselayout{resize to}[a4paper,border shrink=5mm]          \begin{document}     \begin{frame}     Here's some content, with no notes added.     \end{frame}     \begin{frame}     Here's some content, with notes added.     \end{frame}     \note{     Here are things to remember:     \begin{enumerate}     \item Stress this first.     \item Then this.     \end{enumerate}     }     \end{document}


title: Dot before numbering

text: I have a problem with numbering. Everywhere is a dot before the number. Like equation numbering, figures numbering etc. Does anyone know how to remove it? ![enter image description here](http://i.stack.imgur.com/meqkJ.png) ![enter image description here](http://i.stack.imgur.com/YL6L0.png) Thank you a lot!


title: LaTeX Resume, Code Review for style and advice

text: ## I am using the code-review tag. I would like to get feedback on my Resume. I started out with another's CV, but I pared it back to almost nothing and expanded it in a totally different style. I would like advice on my LaTeX style, (as well as to show off a bit, if you'll permit). Thanks in advance! ## My specific question(s): **Can my LaTeX be improved?** Am I violating any best practices? Should I do anything differently? ## Here's the header:               \documentclass[letterpaper,10pt]{article}     \usepackage{ucs}     \usepackage[utf8x]{inputenc}     \usepackage[english]{babel}     \usepackage{fontenc}     \usepackage[margin=.5in,includehead]{geometry}     \usepackage{fancyhdr,lastpage}     \pagestyle{fancy}     \lhead{80 Dekalb Ave. Apt. 14N\\Brooklyn, NY  11201}     \chead{\Huge \textbf{Aaron Hall, MBA}}     \rhead{aaronchall@yahoo.com\\+001 (850) 529 9078}     \fancyfoot{}     \headsep = 5mm     \usepackage{parskip} %should remove indenting     \usepackage[dvips]{hyperref}     \date{08/22/11}     %\newenvironment{blockindentone}{\quote\YOURCOMMANDSHERE}{\endquote}     \renewcommand{\headrulewidth}{0pt}          \usepackage{color,hyperref}     \definecolor{darkblue}{rgb}{0.0,0.0,0.5}     \hypersetup{colorlinks,breaklinks,                 linkcolor=darkblue,urlcolor=darkblue,                 anchorcolor=darkblue,citecolor=darkblue}      ## Here's a little bullet: (I use this throughout as a separator)               %the following makes small bullets, since $\bullet$ was too large,     %credit goes to Jeremy Osterhouse's home page, http://www.josterpi.com/latex-notes.html      %downside is tilde, ~, doesn't create non-breaking space     \newcommand{\sbullet}{\,\begin{picture}(1,1)(0,-3)\circle*{3}\end{picture}\ }       ## Here's my base template:               %%%%%%%%%%%TEMPLATE%%%%%%%%%%     %%%%%Heading%%%%%     % \textsc{e.g.Professional Experience}      % \vspace{.5mm} %Space required else text will touch the line below     % \hline     %%%%%Items%%%%%%%     % {\addtolength{\leftskip}{5mm}  %creates an indent for the whole text contained here     % \textbf{Org} \emph{Title}      % \sbullet City, ST \hfill{} Month, YEAR - Month, YEAR %\hfill moves everything on the line after it flush right     %      % \vspace{-2mm} %removes a bit of extra white space to tighten up usage     %  {\addtolength{\leftskip}{5mm} %creates a further indent for the whole paragraph contained here     % \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} %      % % \addtolength{\itemsep}{-0.5\baselineskip} %these options would have the same effect, apparently, but I don't fully understand them     %     \item Item     %This block creates a bulleted list of items      %     \item Item     %     \item Item     %     \item Item     % \end{itemize}     % }}      ## Here's the main document: I deleted commented parts. I may have deleted an important blank line. Including this for completeness as well as for the benefit of anyone trying to create a LaTeX resume.               \begin{document}     \textsc{Relevant Domain Knowledge}     \vspace{.5mm}     \hline     {\addtolength{\leftskip}{0mm}     \textbf{Programming Languages}          \vspace{-2mm}           {\addtolength{\leftskip}{0mm}          \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} {\addtolength{\leftskip}{-5mm}         \item Languages: Python (Active Tutor and Speaker), Quartz, Ruby, Rails, SQL, JavaScript, CoffeeScript, and BASH         \item Typesetting \& Markup Packages: reST (rst), Sphinx, HTML5, \LaTeX, HAML, CSS, SCSS, Emacs Org-mode         \item Statistics Languages \& Packages: R Statistics (on Linux) and SAS, SPSS, and Stata (Windows)          }     \end{itemize}          }}     \vspace{-1mm}{\addtolength{\leftskip}{0mm}     \textbf{Investments, Financial Products, and Accounting Knowledge}          \vspace{-2mm} {\addtolength{\leftskip}{0mm}     \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} {\addtolength{\leftskip}{-5mm}         \item Securities Licensed on Packaged Products, Stocks \& Bonds, Options, and Investment Advisor Regulations         \item Passed State of Florida Insurance and Real Estate Licensure Courses and Tests         \item Answered over 150 Accounting and Tax Questions on Investments Pro-bono for All-Experts.com          }     \end{itemize}          }}               \vspace{-1mm} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%       Professional Experience     \textsc{Professional Experience}     \vspace{.5mm}     \hline     {\addtolength{\leftskip}{0mm} \textbf{Bank of America Merrill Lynch} \emph{Source Code Manager \& Software Engineer}      \sbullet New York, NY \hfill{} October, 2012 - Present          \vspace{-2mm} {\addtolength{\leftskip}{0mm}     \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} {\addtolength{\leftskip}{-5mm}       \item Developed Portal for Delivering Documentation, Information, Statistics, and Reports       \item Led Team to use Core Technology, Idiomatic Python, Maintainable Style, Proper Unittesting, and Proper SDLC       \item Contributed to Documentation and Training on Quack, Sandra, Python, QzDev, Sphinx, Bob and SpongeBob       \item Developed Tool to Document Filesets, Provide Actionable Statistics, Push to Environments, and Raise Review Requests       \item Reviewed Projects for Best Practices \& Edited Scripts for Performance, Maintainability, and Readability       \item Instructed Developers in Best Practices with Weekly Webinars and Led Code Review          }     \end{itemize}          }}     \vspace{-1mm}     {\addtolength{\leftskip}{0mm} \textbf{Bramson ORT/Professional Business College} \emph{Business Professor}      \sbullet New York, NY \hfill{} February, 2012 - October, 2012          \vspace{-2mm} {\addtolength{\leftskip}{0mm}     \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} {\addtolength{\leftskip}{-5mm}       \item Bramson ORT: Econ, Mktg, Bus Comm, RE Law \sbullet PBC: Org Behavior, Small Bus Man, Intro Bus       \item Created Course Syllabi, Lectured, Wrote Quizzes, and Designed Exams          }     \end{itemize}          }}     \vspace{-1mm}     {\addtolength{\leftskip}{0mm} \textbf{Simplify IT} \emph{Computer Technician}      \sbullet New York, NY \hfill{} March, 2012 - May, 2012          \vspace{-2mm} {\addtolength{\leftskip}{0mm}     \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} {\addtolength{\leftskip}{-5mm}       \item Troubleshot Computers and Networks, Audited and Installed Software       \item Uploaded and Managed Inventory in an Amazon Web Store, Working With CSV and Flat Files          }     \end{itemize}          }}          \vspace{-1mm}     {\addtolength{\leftskip}{0mm} \textbf{Thornhill Community Supportive Services Inc.} \emph{Assistant Director}      \sbullet New York, NY \hfill{} August, 2011 - February, 2012          \vspace{-2mm} {\addtolength{\leftskip}{0mm}     \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} {\addtolength{\leftskip}{-5mm}       \item Operation Planning, Risk Management, and Network, Computer, Accounting, and Electronic Document Administration       \item Led Team of 17 in Providing Computer Literacy and Coat, Toy, Book, and Media Community Distribution Programs          }     \end{itemize}          }}     \vspace{-1mm}     {\addtolength{\leftskip}{0mm} \textbf{Pvt. Invest. Advisor/Sol Strategies} \emph{%CFO and      Investment/Strategic Planning}      \sbullet New York, NY \hfill{} April, 2007 - October, 2012          \vspace{-2mm} {\addtolength{\leftskip}{0mm}     \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} {\addtolength{\leftskip}{-5mm}       \item Advised Sol Strategies on Firm Strategy, Business Development, Cash-Flow Management, and Billing Policy       \item Consulted on Strategy and Wrote Financial, Investment, and Business Plans and Grant Applications          }     \end{itemize}          }}          \vspace{-1mm}     {\addtolength{\leftskip}{0mm}      \textbf{Florida State University} \emph{Research Assistant}      \sbullet Tallahassee, FL \hfill{} August, 2007 - April, 2008          \vspace{-2mm} {\addtolength{\leftskip}{5mm}     \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} {\addtolength{\leftskip}{-5mm}       \item Teaching Fellow, Graded for Mergers and Acquisitions, Assisted in Data Collection, Research, and Proctoring Exams       \item Programmed in SAS, Stata, SPSS, and R and Performed Regressions on Econometric Data          }     \end{itemize}          }}     \vspace{-1mm}{\addtolength{\leftskip}{0mm}     \textbf{Merrill Lynch} \emph{Financial Advisor}      \sbullet Pensacola, FL \hfill{} May, 2006 - April, 2007          \vspace{-2mm} {\addtolength{\leftskip}{5mm}     \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} {\addtolength{\leftskip}{-5mm}       \item Hosted Speakers, Brought in \$3 Million in Accounts, and Serviced More Than 100 House Accounts       \item Executed Trades and Limit Orders on Exchange Traded Funds, Stocks, Options, and Auction Rate Securities          }     \end{itemize}          }}     \vspace{-1mm}{\addtolength{\leftskip}{0mm}     {\addtolength{\leftskip}{-5mm}     \textbf{Ameriprise Financial Services, Inc.} \emph{Financial Advisor}      \sbullet Pensacola, FL \hfill{} January, 2004 - August, 2005          \vspace{-2mm} {\addtolength{\leftskip}{5mm}     \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} {\addtolength{\leftskip}{-5mm}       \item Gave Seminars, Sold Financial Plans, Met Sales Goals, and % and average production per client was twice that of other firm advisors     Applied Monte Carlo Simulation \& Modern Portfolio Theory % to asset management       \item Series 7 Securities, Series 66 Investment Advisor, Life Insurance, Health Insurance, and Variable Annuity Licensed          }     \end{itemize}          }}               \vspace{-1mm} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%        Education     \textsc{Education}     \vspace{.5mm}     \hline     {\addtolength{\leftskip}{0mm}     \textbf{University Of West Florida}, \emph{Master of Business Administration} \sbullet Pensacola, FL \hfill August, 2010          \vspace{-2mm} {\addtolength{\leftskip}{0mm}          \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} {\addtolength{\leftskip}{-5mm}         \item 730 GMAT, 3.6 GPA, 486 Item Bibliographic Database, and \href{http://bit.ly/aaronmba}{International Business Strategy Championship winner}         \item Notable Papers: Predictors of Stock Market Values (Time Series) and Marketing Financial Services (Best in Class)           \item Statistics Courses: Econometrics \sbullet Applied Regression \sbullet Probability and      Statistics \sbullet Special Topics \sbullet Quantitative Methods         \item Finance: Financial Management \sbullet Accounting Aspects \sbullet Advanced      Managerial Economics \sbullet Static Optimization          }     \end{itemize}          }}     \vspace{-1mm}{\addtolength{\leftskip}{0mm}     \textbf{Florida State University}, \emph{Bachelor of Science, Political Science \& Real Estate} \sbullet Tallahassee, FL \hfill April, 2002          \vspace{-2mm} {\addtolength{\leftskip}{0mm}          \begin{itemize}\setlength{\itemsep}{0cm}\setlength{\parskip}{0cm} {\addtolength{\leftskip}{-5mm}         \item National Merit Scholar, Dean's List, and Graduated with 169 credit hours, 3.4 GPA, Served on Boards, Volunteered         \item Real Estate Courses: Real Estate \sbullet Real Estate Finance \sbullet Appraisal I \& II  \sbullet Feasibility \sbullet Legal Environment         \item Relevant: Game Theory \sbullet Financial Accounting \sbullet Managerial Accounting \sbullet Corporate Finance     \sbullet Calculus \sbullet International Relations \sbullet Macroeconomics \sbullet Microeconomics \sbullet Comparative Government      \sbullet Quantitative Methods \sbullet Research Methods          }     \end{itemize}          }}               \vspace{-1mm}     \textsc{Interests, \& Miscellany}     \vspace{.5mm}     \hline     Big Data, Databases (Hadoop, MongoDB, etc), Attended Strata 2011, Statistics, Finance, Economics, Machine Learning     Extensive Bibliographies: User Experience, Software Design, Finance Classics, Knowledge, and Management          \end{document}


title: hyphenation with special (Estonian) letters

text: Hyphenation is working correctly most of the time, but it has problems with words that have Estonian letters like õ inside of the word. For example:               lõplikumõõtmeline.      I write it like this in TeX:               l~oplikum~o~otmeline.      LaTeX refuses to hyphenate this word. From output: > LaTeX2e <2005/12/01> Babel and hyphenation patterns for english, > usenglishmax, dumylang, noh yphenation, arabic, basque, bulgarian, coptic, > welsh, czech, slovak, german, ng erman, danish, esperanto, spanish, catalan, > galician, estonian, farsi, finnish, french, greek, monogreek, ancientgreek, > croatian, hungarian, interlingua, ibyc us, indonesian, icelandic, italian, > latin, mongolian, dutch, norsk, polish, por tuguese, pinyin, romanian, > russian, slovenian, uppersorbian, serbian, swedish, turkish, ukenglish, > ukrainian, loaded. > > ... > > Overfull \hbox (33.50668pt too wide) in paragraph at lines 969--970 > []\T1/cmr/m/n/12 Eelneva n�i-te p[]ohjal si-sal-dab te-ki-ta-tud ope-raa-to- > ri- deaal k[]oik l[]oplikum[]o[]otmelised| I tried to search, but I only found such links, that did not help much:   1. Hyphenation of terms containing symbols other than letters   2. Hyphenation in LaTeX   3. pdflatex and \hyphenation I tried to do like this:               \hyphenation{l~op-li-ku-m~o~ot-me-line}      But I got error: > ! Improper \hyphenation will be flushed. \leavevmode ->\unhbox \voidb@x l.54 > \hyphenation{l~ op-li-ku-m~o~ot-me-line} What am I doing wrong? EDIT: Here is my configuration:               \documentclass[12pt,a4paper,draft]{article}     \pagestyle{plain}     \usepackage[estonian]{babel}     \usepackage[a4paper]{geometry}     \usepackage{enumerate}     \usepackage[T1]{fontenc}     \usepackage{amsfonts}     \usepackage{indentfirst}     \usepackage{amsthm}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{verbatim}     \usepackage{color}      EDIT2: Here is the minimal working example:               \documentclass[12pt,a4paper,draft]{article}     \pagestyle{plain}     \usepackage[estonian]{babel}     \usepackage[a4paper]{geometry}     \usepackage{enumerate}     \usepackage[T1]{fontenc}     \usepackage{amsfonts}     \usepackage{indentfirst}     \usepackage{amsthm}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{verbatim}     \usepackage{color}          \theoremstyle{plain}     \newtheorem{teoreem}{Teoreem}     \newtheorem{lause}[teoreem]{Lause}     \newtheorem{jareldus}[teoreem]{J\"areldus}     \newtheorem*{lemma*}{Lemma}     \newtheorem{defin}{Definitsioon}               \newenvironment{toestus}{\begin{proof}[T~oestus]}{\end{proof}}               \author{Rauni Lillemets}     \begin{document}          \begin{lause}     Olgu $1 \leq p \leq \infty, 1 \leq r \leq p^*$.      \end{lause}     \begin{toestus}     Eelneva n"aite p~ohjal sisaldab tekitatud operaatorideaal k~oik l~oplikum~o~otmelised operaatorid.          \end{toestus}          \end{document}


title: How to remove the header of the ToC's page and to place the ToC's title at top

text: Is it possible to remove the header of the ToC's page and to place its title at the top? If it is, how, please? MWE:               \documentclass[xcolor={dvipsnames}]{beamer}     \usetheme{CambridgeUS}          \author{The Author}     \title{Work Culture}     \begin{document}     \begin{frame}     \titlepage     \end{frame}          \begin{frame}{Outline}       \tableofcontents     \end{frame}          \begin{frame}     \frametitle{Test title}     \framesubtitle{Test subtitle}     test text     \end{frame}          \end{document}      Thanks a lot!


title: position symbol horizontally

text: I would like to place symbol `\ding{97}` directly at the constant distance from the headword. I made command to place the symbol               % place frequent star     \newcommand{\freqstar}[1]{\hspace*{-1em}{\color{darkgreen}{\ding{97}}}}      in front of the headword. For placing the headwords I use this command               \newcommand\entry[3][]{\hangpara{2em}{1}{\fontfamily{phv}\selectfont{\textbf{{#2}}}}\#3\ifx\relax#1\relax\markboth{#2}{#2}\else\markboth{#1}{#1}\fi\par}\nopagebreak[4]      Problem is that the position is not precise. I would like to achieve that headwords are placed exactly same and the symbol is in front of them. Follows a picture of incorrect placement: ![symbol placement](http://i.stack.imgur.com/vkMHW.png)


title: Nested bracket in breqn doesn't work

text: I tried to use the latest version of `breqn` package to break this equation; The result shows that it can't break the equation at Level/depth greater than 2 even by using `\setkeys{breqn}{breakdepth={4}}`, also the breaking at level/depth 2 is align right. Have you any explanation?               \documentclass{article}               \usepackage{breqn}     \setkeys{breqn}{breakdepth={4}}          \begin{document}          \begin{dmath}     R     \left\{tr\left[{P}_{k+1}^{H}\left({V}^{\ast\,\!}-{V}_{k+1}\right)+{Q}_{k+1}^{H}\left({W}^{\ast\,\!}-{W}_{k+1}\right)\right]\right\}     %level 1     =R     \left\{tr\left[     \left(  %level 3     {A}_{1}^{H}{R}_{k+1}{B}_{1}^{H}+{A}_{1}^{H}{R}_{k+1}{B}_{1}^{H}+{A}_{1}^{H}{R}_{k+1}{B}_{1}^{H}     +{\overline{A}}_{2}^{H}\overline{{R}_{k+1}}{\overline{B}}_{2}^{H}+{B}_{3}{R}_{k+1}^{H}{A}_{3}     +{\overline{A}}_{2}^{H}\overline{{R}_{k+1}}{\overline{B}}_{2}^{H}+{A}_{1}^{H}{R}_{k+1}     \right)     % level 2     +\left(  %level 3     {C}_{1}^{H}{R}_{k+1}{D}_{1}^{H}     +{\overline{C}}_{2}^{H}\overline{{R}_{k+1}}{\overline{D}}_{2}^{H}{D}_{3}{R}_{k+1}^{H}{C}_{3}     +\overline{{D}_{4}}{R}_{k+1}^{T}\overline{{C}_{4}}     +\dfrac{{\left\Vert{R}_{k+1}\right\Vert }^{2}}{{\left\Vert {R}_{k}\right\Vert}^{2}}{Q}_{k}     +\left({W}^{\ast\,\!}-{W}_{k+1}\right)+\left({W}^{\ast\,\!}-{W}_{k+1}\right)     \right)     %level 2     +\left({W}^{\ast\,\!}-{W}_{k+1}\right)+\left({W}^{\ast\,\!}-{W}_{k+1}\right)     \right]\right\}     %level 2     =R     \left\{tr\left[ %level 2     {R}_{k+1}^{H}{A}_{1}\left({V}^{\ast\,\!}-{V}_{k+1}\right){B}_{1}     +{R}_{k+1}^{T}{\overline{A}}_{2}\left({V}^{\ast\,\!}-{V}_{k+1}\right){\overline{B}}_{2}     +{R}_{k+1}{B}_{3}^{H}\left({V}^{\ast\,\!}-{V}_{k+1}\right){A}_{3}^{H}     +\overline{{R}_{k+1}}{\overline{{B}_{4}}}^{H}\left({V}^{\ast\,\!}-{V}_{k+1}\right){\overline{{A}_{4}}}^{H}     +{R}_{k+1}^{H}{C}_{1}\left({W}^{\ast\,\!}-{W}_{k+1}\right){D}_{1}+{R}_{k+1}^{T}{\overline{C}}_{2}\left({W}^{\ast\,\!}-{W}_{k+1}\right){\overline{D}}_{2}     +{R}_{k+1}{D}_{3}^{H}\left({W}^{\ast\,\!}-{W}_{k+1}\right){C}_{3}^{H}+\overline{{R}_{k+1}}{\overline{{D}_{4}}}^{H}\left({W}^{\ast\,\!}-{W}_{k+1}\right){\overline{{C}_{4}}}^{H}     +\left(\dfrac{{\left\Vert{R}_{k+1}\right\Vert }^{2}}{{\left\Vert {R}_{k}\right\Vert}^{2}}{P}_{k}^{H}\left({V}^{\ast\,\!}-{V}_{k+1}\right)\,\,+{Q}_{k}^{H}\left({W}^{\ast\,\!}-{W}_{k+1}\right)\right)     \right]\right\}     \label{eq12}     \end{dmath}          \end{document}


title: how to typeset a fraction with a very loooong expression in the denominator?

text: I have problem, because I have long maths formula. So I would like have it in two lines. What I do:               P_{N_3}(P_X(t)) = \\ \frac{1.098848191 \cdot 10^{596}}{(-1.0 \cdot 10^{12}+8.33 \cdot 10^{9} \cdot t+7.50 \cdot 10^{10} \cdot t^2+4.167 \cdot 10^9 \cdot t^4+3.33 \cdot 10^{10} \cdot t^5+4.167 \cdot 10^{10} \cdot t^8+4.167 \cdot 10^9 \cdot t^{10})^50}      As you can see, after equal sign I have `\\` which unfortunately doesn't work. I use following packages:               \usepackage{amssymb}     \usepackage{polski}     \usepackage[utf8x]{inputenc}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage[colorinlistoftodos]{todonotes}     \usepackage{graphicx}      Why it doesn't work? Could you help me? I use Miktex and editor Texmaker. Thanks in advance!


title: Drawing an axis partially

text: I would like to emphasize certain features in plots, by only showing the meaningful parts of the axis, e.g. let's assume I have a plot much like this one: ![My example plot](http://i.stack.imgur.com/rhQlP.png) Is it possible to draw, say the y-axis, only between two specified points? Similar to what I've hacked together below. ![enter image description here](http://i.stack.imgur.com/EnqWI.png)               \begin{tikzpicture}          \begin{axis}[%             axis x line=bottom,             axis y line=left,             xmin=0,             ymin=0     ]%     \addplot coordinates {         (0,0.6)         (0.1,0.3)         (1,1)     };     % Axis     \draw[thick] (axis cs:0,0.3) -- (axis cs:0,0.6);     % "Ticks"     \draw (axis cs:0.01,0.3) -- (axis cs:0,0.3);     \draw (axis cs:0.01,0.6) -- (axis cs:0,0.6);          \end{axis}          \end{tikzpicture}


title: Words of more than 32765 characters

text: When I compile the following document:               \documentclass[10pt, oneside, a4paper]{report}     \begin{document}     xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx     \end{document}      where the number of x's is greater than 32765, Adobe Reader is not able to read the document anymore, and just produces a blank page. Has anybody come across this before?


title: titlesec: Vertical space that I don't want

text: Again me, still trying to emulate a very specific layout... I used the `titlesec` package to define chapter and section titles, and am very pleased with the outcome... except of some ponts' worth of vertical space that keep showing up in places where I don't want them. Perhaps you guys can help me out here. The almost-M-WE is below... all `pt` values in the source have been figured out from the original with a ruler, I left them in because they are as good as any. Never mind the faulty subsection numbering, that's been taken care of in the "real" document. This code _almost_ works. I have two problems with it though:   * If the chapter title contains an Umlaut (Ä, Ö, Ü), additional vertical whitespace gets added between the bars and the title. This isn't exactly a showstopper as I could rename the chapters in a way so they don't contain Umlauts, but I would like to know why this happens and if there is a way to avoid it.   * I used a baseline smaller than the fontsize in the `\subsection` and `\subsubsection` formats to emulate the very compact layout of the original book. However, this setting seems to work _only between the second and third line_ of a long title - there is extra vertical whitespace _between the first and second line_ , which does not get reduced even if I set a yet smaller baseline. If it were the other way around, I could easily work around having three-line titles, but I cannot avoid having two-line titles, and would like to know how to reduce that vspace. Thanks in advance, you guys have been a great help already in my quest into the LaTeX world!               \documentclass[open=any,twocolumn]{scrbook}          \usepackage[scaled]{helvet}     \usepackage{times}          \usepackage[ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{titlesec}          \titlespacing{\chapter}{0pt}{0pt}{11pt}     \titlespacing{\section}{0pt}{14pt}{0pt}     \titlespacing{\subsection}{0pt}{11pt}{0pt}     \titlespacing{\subsubsection}{0pt}{5pt}{0pt}          % scaleable chapter bars, credit to Gonzalo Medina, tex.sx #17124     \newcommand*\varhrulefill[1][17pt]     {\leavevmode\leaders\hrule height#1\hfill\kern0pt}          \renewcommand\thechapter{\arabic{chapter}.0}     \titleformat{\chapter}[display]         {\normalfont\fontsize{25pt}{0pt}\bfseries\sffamily}         {\varhrulefill\enskip\thechapter\enskip\varhrulefill}         {-4pt}         {\center\MakeUppercase}          \newcommand{\trailthesubsection}[1]{\MakeUppercase{#1} (\thesubsection)}     \titleformat{\subsection}         {\normalfont\fontsize{15pt}{14pt}\bfseries\sffamily}         {}         {0pt}         {\filcenter\trailthesubsection}          \titleformat{\subsubsection}         {\normalfont\fontsize{12pt}{11pt}\bfseries\scshape}         {}         {0pt}         {\filcenter}          \begin{document}          \chapter{Functional}      % This one looks as it should          \chapter{Düsfunctional}   % The Umlaut triggers extra vspace          % Notice the extra, non-reducable whitespace after the first line break     \subsection{My Long Subsection Title breaking the line twice}     \subsubsection{My Very Long Subsubsection Title actually breaking the line twice}          \end{document}      A pasted-together output sample. Red lines point out the offending vspace. ![Red lines point out the offending vspace.](http://i.stack.imgur.com/8ZsqQ.png)


title: How can I set a time between slides to create an automatic slideshow with beamer?

text: I switched from PowerPoint to Beamer. I developed my presentation in Beamer and would like to create a slide show that will play my file automatically. Is there a way to set a time between slide as we can do in a PowerPoint slideshow?


title: \addvspace{x}\noindent … \addvspace{x} doesn’t work

text: The combination of `\addvspace{x}\addvspace{x}` will cause the skip `x` but `\addvspace{x}\noindent \addvspace{x}` gives a 2`x` skip.               \documentclass{scrartcl}          \newenvironment{env}{%         \par\addvspace{2\baselineskip}%         \hspace*{2em}%         \begin{minipage}{0.5\textwidth}%     }{%         \end{minipage}%         \par\addvspace{2\baselineskip}%         \noindent\ignorespacesafterend%     }          \begin{document}     Line of text Line of text Line of text Line of text and     \begin{env}     --- \verb+env+ ---     \end{env}     no indent here. Line of text Line of text Line of text.          Next par (with indent). Line of text Line of text Line of text.     \begin{env}     --- \verb+env+ ---     \end{env}          Next par (with indent). Line of text Line of text Line of text.          \begin{env}     --- Two \verb+env+s following ---     \end{env}     \begin{env}     --- dont work with \verb+\addvspace+ ---     \end{env}     \end{document}      This example gives the doubled space. If i comment out the line `\noindent\ignorespacesafterend%` in the definition of `{env}` there is a single space with is the desired result but then the line `no indent here ...` will be indented which is not correct, I think. Is it possible to make `{env}` behave like e.g. `{equation}`?


title: Centered captions containing \vref may not always appear as expected

text: I've noticed that when centered captions contains `\vref` to some reference, the captions may sometimes not become entirely centered. I see this especially in my document where there are two figures on the same page, the second referring to the first, and the caption of the second is no longer completely centered. I've tried to create a minimal example but it's difficult to get this behavior. However, I've managed to come up with the following:               \documentclass[a4paper, 11pt]{article}          \usepackage{varioref}          \begin{document}     \begin{figure}[!h]       \centering       \framebox{1}       \caption{test}       \label{test}     \end{figure}          \begin{figure}[!h]       \centering       \framebox{2}       \caption{bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \vref{test}}     \end{figure}          \begin{figure}[!h]       \centering       \framebox{3}       \caption{bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \ref{test}}     \end{figure}     \end{document}      The behavior I'm looking for will be shown in the caption of the Figure 2. However, when built twice as it is, everything looks okay. But if one does the following   1. Build once   2. Add an additional "bla" to the caption of the second figure, and rebuild.   3. Remove the "bla" that you just added and then rebuild again. Now the output will be the following: ![enter image description here](http://i.stack.imgur.com/qOhjJ.png) Even though the captions of Figure 2 and 3 are textually exactly the same, the caption of Figure 2 is no longer centered as it should be. I fixed this problem in my own document by using `\ref` instead of `\vref` (the figures are on the same page anyway), but out of curiosity I would like to know what's going on.


title: Biber backend and Vim-Latex

text: I'm trying to make biblatex work with Vim-Latex (a.k.a Latex-Suite). Using bibtex as a backend works fine but using biber doesn't. I'm using Miktex 2.9 and have the following in my .vimrc file:               " Latex configuration     set shellslash     set grepprg=grep\ -nH\ $*     let g:tex_flavor='latex'     let g:Tex_BibtexFlavor = 'biber'     let g:Tex_CompileRule_pdf = 'pdflatex --synctex=-1 -src-specials -interaction=nonstopmode -file-line-error-style $*'     let g:Tex_DefaultTargetFormat='pdf'       let g:Tex_MultipleCompileFormats='pdf'      I've also tried setting:               let g:Tex_CompileRule_bib = 'biber $*'      But I still get the "There were undefined references" warning.


title: Tabular environment for specified width, bg and font colorings by row?

text: I'm looking for a tabular-type environment which will allow me to:   * Specify the total width (like `tabular*` or `tabularx`, `tabulary`)   * Allow an individual row to have a specific background color (like `colortbl`)   * Allow all entries in a row to have a specific font or color (like `tabu`) It seems that each package can do one thing, but is there any super-tabular package which can do all of that? Otherwise I'm going to have to load them all and hope they play well with each other.


title: Change the line spacing in PGF calendar

text: 2 questions really: in the following example I would like to 1) change the line spacing in the calendar 2) move the calendar to the left I couldn't find the way to increase line spacing in calendar; I have tried **\linespread** in the document but it has no effect on calendar. And I haven't been able to move the days of the calendar any more to the left. I gave up! This is the complete example, largely based on the .pgf document mindmap.               \documentclass{article}     %%%<     \usepackage{verbatim}     %%%>               \usepackage{tikz}     \usepackage[paperwidth=22cm,paperheight=29cm,left=0cm,top=0cm,bottom=0cm,right=0cm]{geometry}                    \usetikzlibrary{%     backgrounds,%     trees,%     mindmap,%     calendar}               \begin{document}               \noindent     \begin{tikzpicture}[mindmap]     \begin{scope}[     every node/.style={concept, circular drop shadow={shadow scale=1.1, shadow xshift=.8ex, shadow yshift=-.3ex,     fill=black, path fading={circle with fuzzy edge 20 percent}, every shadow},     % execute at begin node=\hskip0pt     },     root concept/.append style={concept color=black, fill=white, line width=1ex, text=black, font=\Huge\scshape, minimum size=5cm},     text=white,     radio/.style={concept color=red,faded/.style={concept color=red!50}, minimum size=4cm},     ortho/.style={concept color=blue,faded/.style={concept color=blue!50}, minimum size=4cm},     rhumato/.style={concept color=orange,faded/.style={concept color=orange!50}, minimum size=4cm},     reeduc/.style={concept color=green!50!black,faded/.style={concept color=green!50!black!50}, minimum size=4cm},     grow cyclic,     level 1/.append style={level distance=6cm,sibling angle=90,font=\Large\scshape},     level 2/.append style={level distance=4.5cm,sibling angle=45,font=\normalsize}]       \node[font=\bfseries, root concept, xshift=-4.3cm] (arteos) {ART\'eOS} % root       child [radio,sibling angle=45] { node[yshift=-2cm, xshift=1cm] {\makebox[0pt]{{Radiologie}}}         child [minimum size=2.5cm] { node {{Imagerie\\fonctionnelle}}}         child [minimum size=2.8cm] { node {{Radiographie\\inter-ventionnelle}}}         child [minimum size=2cm] { node {{EOS}}}       }       child [ortho] { node[yshift=-0.5cm, xshift=-1cm] {\makebox[0pt]{{Orthop\'edie}}}         child [minimum size=2.5cm] { node (o_perf) {\makebox[0pt]{Performance}}}         child [minimum size=2.2cm] { node (o_mat) {{Tribologie}}}         child [minimum size=2.8cm] { node (o_art) {\makebox[0pt]{Arthroplasties}}}         child [minimum size=2cm] { node (o_fra) {{Fractures}}}       }       child [rhumato] { node[yshift=+3cm, xshift=-1cm] {\makebox[0pt]{{Rhumatologie}}}         child [minimum size=2.5cm] { node (rh_epid) {\makebox[0pt]{Epid\'emiologie}}}         child [minimum size=2.5cm] { node (rh_infla) {{Maladies\\inflam-matoires}}}         child [minimum size=2.5cm] { node (rh_auto) {{Maladies\\ auto-immunes}}}         child [minimum size=2.5cm] { node (rh_ost) {\makebox[0pt]{Ost\'eoporose}}}       }       child [reeduc] { node[yshift=+1cm, xshift=+0.5cm] {\makebox[0pt]{{R\'e\'education}}}         child [minimum size=2.5cm] { node (re_rea) {\makebox[0pt] {R\'eadaptation}}}         child [minimum size=2.1cm] { node (re_han) {{Handicap}}}         child [minimum size=2.2cm] { node (re_eva) {{Evaluation}}}         child [minimum size=2.5cm] { node (re_ree) {\makebox[0pt]{R\'e\'education}}}         child [minimum size=2cm] { node (re_exe) {{Exercices}}}       };          \end{scope}          \tiny     \calendar [day list downward,           month text=\% mt\ \%y0,           month yshift=1.5em,           name=cal,           at={(-0.5\textwidth -2cm,0.5\textheight-2cm)},           dates=2012-11-01 to 2013-01-last]     if (weekend)     [black!25]     if (day of month=1) {     \node at (-2cm,1.5em) [anchor=base west] {\Large\tikzmonthtext};     };               \begin{pgfonlayer}{background}       \clip[xshift=-6cm, yshift=2cm] (-.5\textwidth,-.5\textheight) rectangle ++(\textwidth,\textheight);       \colorlet{upperleft}{green!50!black!25}       \colorlet{upperright}{orange!25}       \colorlet{lowerleft}{red!25}       \colorlet{lowerright}{blue!25}       % The large rectangles:       \fill [upperleft] (arteos) rectangle ++(-20,20);       \fill [upperright] (arteos) rectangle ++(20,20);       \fill [lowerleft] (arteos) rectangle ++(-20,-20);       \fill [lowerright] (arteos) rectangle ++(20,-20);       % The shadings:       \shade [left color=upperleft,right color=upperright]         ([xshift=-1cm]arteos) rectangle ++(2,20);       \shade [left color=lowerleft,right color=lowerright]         ([xshift=-1cm]arteos) rectangle ++(2,-20);       \shade [top color=upperleft,bottom color=lowerleft]         ([yshift=-1cm]arteos) rectangle ++(-20,2);       \shade [top color=upperright,bottom color=lowerright]         ([yshift=-1cm]arteos) rectangle ++(20,2);     \end{pgfonlayer}     \end{tikzpicture}               \end{document}      Any help welcome, and thanks all for the really helpful posts on the website. Cheers,![enter image description here](http://i.stack.imgur.com/ZgjPV.png)


title: Re-displaying section headings after page-breaks

text: I'd like to automatically repeat section headings after a page break. My naive attempt at doing this is to check the page counter and print the extra text whenever the counter increments:               \newcounter{pagecnt}                                                                                \setcounter{pagecnt}{\value{page}}          ...          \ifnum \value{page} > \value{pagecnt}% are we on a new page?       \normalfont\Large\bfseries\sectionheadinghere% print heading again                                                                                \setcounter{pagecnt}{\value{page}}% reset counter                                                                                \fi%       Except I'm not entirely sure what should 'trigger' this code? Is it possible or desirable to check after every line-break (or every word) if the page has flipped?


title: Environment for ancient Greek poem with comments

text: I want to write an ancient Greek poem and I am having problems in setting the right environmental parameters. ![Here is a sample of how it should look like](http://i.stack.imgur.com/iQZXh.jpg) My major difficulty is to make an effective use of footnotes. Instead of using a superscript the footnote should contain the numbering of the line of the poem where it appears. I tried to use the teubner package which is supposed to deal with philological texts. It contains the environment "Versis" which works fine with the numbering but it does not even print the footnote with the \footnote{} command. On the other hand the environment "verse" which is used for poems in general, prints the footnote but I am not aware of a way to make the connection to the line numbering I described above. I am asking thus if you are familiar with some process of tampering with the numbering and footnotes to make this work. Any other advice on how to deal with the task of writing such poems would be highly appreciated! For me this means shifting my work from a cumbersome philological editor to the neat world of LaTeX / Tex. Many thanks in advance! Here is a sample of what I tried up to now:               \documentclass{article}          \usepackage[english,polutonikogreek]{babel}     \usepackage[utf8x]{inputenx}          \usepackage{verse}     \usepackage{marginnote}          \newcommand{\push}{\ \ \ \ }     \begin{document}          \settowidth{\versewidth}{Quid sum miser tunc dicturus?}     \verselinenumbersleft     \verselinenumfont{\footnotesize}     \setlength{\vrightskip}{-2em}          \poemtitle{Dies Irae}          \poemlines{5}          \begin{verse}          \push Ἐν οὐρανοῖς τῷ δεσπότῃ παρεστηκὼς \\     ὡς αὐτοῦ διάκονος \\     καὶ ἀπόστολος σεπτὸς\footnote{fdsfds} \\     τοὺς ἐν γῇ τιμῶντας υε, Θωμᾶ, \\     \marginpar{λαλαλα}πειρασμῶν παντοδαπῶν βίου διάσωζε. \\           \push Ἐν οὐρανοῖς τῷ δεσπότῃ παρεστηκὼς \\     ὡς αὐτοῦ διάκονος \\     καὶ ἀπόστολος σεπτὸς\footnote{fdsfds} \\     τοὺς ἐν γῇ τιμῶντας υε, Θωμᾶ, \\     πειρασμῶν παντοδαπῶν βίου διάσωζε. \\     \push Ἐν οὐρανοῖς τῷ δεσπότῃ παρεστηκὼς \\     ὡς αὐτοῦ διάκονος \\     καὶ ἀπόστολος σεπτὸς\footnote{fdsfds} \\     τοὺς ἐν γῇ τιμῶντας υε, Θωμᾶ, \\     πειρασμῶν παντοδαπῶν βίου διάσωζε. \\     \push Ἐν οὐρανοῖς τῷ δεσπότῃ παρεστηκὼς \\     ὡς αὐτοῦ διάκονος \\     καὶ ἀπόστολος σεπτὸς \\     \flagverse{fdsfsd}τοὺς ἐν γῇ τιμῶντας υε, Θωμᾶ, \\     πειρασμῶν παντοδαπῶν βίου διάσωζε. \\     \push Ἐν οὐρανοῖς τῷ δεσπότῃ παρεστηκὼς \\     ὡς αὐτοῦ διάκονος \\     καὶ ἀπόστολος σεπτὸς\footnote{fdsfds} \\     τοὺς ἐν γῇ τιμῶντας υε, Θωμᾶ, \\     πειρασμῶν παντοδαπῶν βίου διάσωζε.                \end{verse}          \end{document}


title: Make tocloft insert empty page after the ToC

text: How can I redefine the `tocloft` `\tableofcontents` to insert a new page automatically after the table of contents. The suggestions at Redefine \tableofcontents to start a new page after the ToC do not work because `tocloft` probably overrides them.


title: \twopagepicture package refining

text: I have been able to use the `\twopagepicture` package with success (all margins, appearances, etc.) correspond to what I have been looking for one of my wide figures in the thesis, however, it only gets at the end of the chapter not right after the text where it is supposed to introduce the figure. Is there a particular command I should add to force the figure to the next even/odd pages? I have tried the `\clearpage` before the next section but still it is. I am working on a `memoir` like class that I have found useful for french style memoires. Here is what you can find on my styles file:               \usepackage{amsmath,amssymb}             % AMS Math %Format& definition of styles Myriam     \usepackage[french]{babel}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{multirow}     \usepackage{supertabular}     \usepackage{rotating}     \usepackage{graphicx}     \usepackage{adjustbox}     \usepackage{afterpage}     \usepackage{placeins}     \usepackage{xcolor}     \usepackage{diagbox}     \usepackage{slashbox}          % For the `memoir` class remove the following two packages.     % This class already provide the functionality of both     \usepackage{caption}     \usepackage[strict]{changepage}     %%%          \setcounter{totalnumber}{1}     \setcounter{topnumber}{1}     \setcounter{bottomnumber}{1}     \renewcommand{\topfraction}{.99}     \renewcommand{\bottomfraction}{.99}     \renewcommand{\textfraction}{.01}          \makeatletter     \newcommand*{\twopagepicture}[4]{%         \checkoddpage         \ifoddpage             \expandafter\@firstofone         \else             \expandafter\afterpage         \fi         {\afterpage{%         \if #1t%             \if #2p%                 \thispagestyle{empty}%                 \afterpage{\thispagestyle{empty}}%             \fi         \fi         \begin{figure}[#1]             \if #2p%                 \if #1t%                     \vspace*{-\dimexpr1in+\voffset+\topmargin+\headheight+\headsep\relax}%                 \fi             \fi             \if #1b%                 \caption{#4}%             \fi             \makebox[\textwidth][l]{%             \if #2p\relax                 \let\mywidth\paperwidth                 \hskip-\dimexpr1in+\hoffset+\evensidemargin\relax             \else                 \let\mywidth\linewidth             \fi             \adjustbox{trim=0 0 {\mywidth} 0,clip}{\includegraphics[width=2\mywidth]{#3}}}%             \if #1b\else                 \caption{#4}%             \fi             \if #2p%                 \if #1b%                     \vspace*{-\dimexpr\paperheight-\textheight-1in-\voffset-\topmargin-\headheight-\headsep\relax}%                 \fi             \fi         \end{figure}%         \begin{figure}[#1]             \if #2p%                 \if #1t%                     \vspace*{-\dimexpr1in+\voffset+\topmargin+\headheight+\headsep\relax}%                 \fi             \fi             \makebox[\textwidth][l]{%             \if #2p%                 \let\mywidth\paperwidth                 \hskip-\dimexpr1in+\hoffset+\oddsidemargin\relax             \else                 \let\mywidth\linewidth             \fi             \adjustbox{trim={\mywidth} 0 0 0,clip}{\includegraphics[width=2\mywidth]{#3}}}%             \if #2p%                 \if #1b%                     \vspace*{-\dimexpr\paperheight-\textheight-1in-\voffset-\topmargin-\headheight-\headsep\relax}%                 \fi             \fi         \end{figure}%         }}%     }     \makeatother     \usepackage{natbib}     \usepackage{array}     \usepackage{booktabs,tabularx}     \usepackage{longtable}     \usepackage{ltxtable}     \usepackage{xcolor}\usepackage{multicol}     \usepackage{verbatim}     \usepackage[normalem]{ulem}     \usepackage{color}     \definecolor{forestgreen}{rgb}{0.13,0.54,0.13}     \usepackage[left=1.5in,right=1.3in,top=1.1in,bottom=1.1in,includefoot,includehead,headheight=13.6pt]{geometry}     \renewcommand{\baselinestretch}{1.05}                              % Table of contents for each chapter          \usepackage[nottoc, notlof, notlot]{tocbibind}     \usepackage[french]{minitoc}     \setcounter{minitocdepth}{3}     \mtcindent=15pt     % Use \minitoc where to put a table of contents          \usepackage{aecompl}          % Glossary / list of abbreviations          \usepackage[intoc]{nomencl}     \renewcommand{\nomname}{Liste des Abréviations}          \makenomenclature          % My pdf code          \usepackage{ifpdf}          \ifpdf       \usepackage[pdftex]{graphicx}       \DeclareGraphicsExtensions{.jpg}       \usepackage[a4paper,pagebackref,hyperindex=true]{hyperref}     \else       \usepackage{graphicx}       \DeclareGraphicsExtensions{.ps,.eps}       \usepackage[a4paper,dvipdfm,pagebackref,hyperindex=true]{hyperref}     \fi          \graphicspath{{.}{images/}}          %nicer backref links     \renewcommand*{\backref}[1]{}     \renewcommand*{\backrefalt}[4]{%     \ifcase #1 %     (Non cité.)%     \or     (Cité en page~#2.)%     \else     (Cité en pages~#2.)%     \fi}     \renewcommand*{\backrefsep}{, }     \renewcommand*{\backreftwosep}{ et~}     \renewcommand*{\backreflastsep}{ et~}          % Links in pdf     \usepackage{color}     \definecolor{linkcol}{rgb}{0,0,0.4}      \definecolor{citecol}{rgb}{0.5,0,0}           % Change this to change the informations included in the pdf file          \hypersetup     {     bookmarksopen=true,     pdftitle="EFFETS DE LA FLEXIBILITÉ ET LA STANDARDISATION DES SYSTÈMES D'INFORMATION SUR L'INNOVATION DE SERVICE DANS LES OPÉRATIONS BANCAIRES SOUS -TRAITÉES",     pdfauthor="Myriam RAYMOND", %auteur du document     pdfsubject="Flexibilité et standardisation des SI dans les BPOs", %sujet du document     %pdftoolbar=false, %barre d'outils non visible     pdfmenubar=true, %barre de menu visible     pdfhighlight=/O, %effet d'un clic sur un lien hypertexte     colorlinks=true, %couleurs sur les liens hypertextes     pdfpagemode=None, %aucun mode de page     pdfpagelayout=SinglePage, %ouverture en simple page     pdffitwindow=true, %pages ouvertes entierement dans toute la fenetre     linkcolor=linkcol, %couleur des liens hypertextes internes     citecolor=citecol, %couleur des liens pour les citations     urlcolor=linkcol %couleur des liens pour les url     }          % definitions.     % -------------------          \setcounter{secnumdepth}{4}     \setcounter{tocdepth}{2}          % Some useful commands and shortcut for maths:  partial derivative and stuff          \newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}     \def\abs{\operatorname{abs}}     \def\argmax{\operatornamewithlimits{arg\,max}}     \def\argmin{\operatornamewithlimits{arg\,min}}     \def\diag{\operatorname{Diag}}     \newcommand{\eqRef}[1]{(\ref{#1})}          \usepackage{rotating}                    % Sideways of figures & tables     %\usepackage{bibunits}     %\usepackage[sectionbib]{chapterbib}          % Cross-reference package (Natural BiB)     %\usepackage{natbib}                  % Put References at the end of each chapter                                              % Do not put 'sectionbib' option here.                                              % Sectionbib option in 'natbib' will do.     \usepackage{fancyhdr}                    % Fancy Header and Footer          % \usepackage{txfonts}                     % Public Times New Roman text & math font          %%% Fancy Header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Fancy Header Style Options          \pagestyle{fancy}                       % Sets fancy header and footer     \fancyfoot{}                            % Delete current footer settings          %\renewcommand{\chaptermark}[1]{         % Lower Case Chapter marker style     %  \markboth{\chaptername\ \thechapter.\ #1}}{}} %          %\renewcommand{\sectionmark}[1]{         % Lower case Section marker style     %  \markright{\thesection.\ #1}}         %          \fancyhead[LE,RO]{\bfseries\thepage}    % Page number (boldface) in left on even     % pages and right on odd pages     \fancyhead[RE]{\bfseries\nouppercase{\leftmark}}      % Chapter in the right on even pages     \fancyhead[LO]{\bfseries\nouppercase{\rightmark}}     % Section in the left on odd pages          \let\headruleORIG\headrule     \renewcommand{\headrule}{\color{black} \headruleORIG}     \renewcommand{\headrulewidth}{1.0pt}     \usepackage{colortbl}     \arrayrulecolor{black}          \fancypagestyle{plain}{       \fancyhead{}       \fancyfoot{}       \renewcommand{\headrulewidth}{0pt}     }          \usepackage{MyAlgorithm}     \usepackage[noend]{MyAlgorithmic}          %%% Clear Header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Clear Header Style on the Last Empty Odd pages     \makeatletter          \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else%       \hbox{}%       \thispagestyle{empty}%              % Empty header styles       \newpage%       \if@twocolumn\hbox{}\newpage\fi\fi\fi}          \makeatother          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      % Prints your review date and 'Draft Version' (From Josullvn, CS, CMU)     \newcommand{\reviewtimetoday}[2]{\special{!userdict begin         /bop-hook{gsave 20 710 translate 45 rotate 0.8 setgray           /Times-Roman findfont 12 scalefont setfont 0 0   moveto (#1) show           0 -12 moveto (#2) show grestore}def end}}     % You can turn on or off this option.     % \reviewtimetoday{\today}{Draft Version}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%           \newenvironment{maxime}[1]     {     \vspace*{0cm}     \hfill     \begin{minipage}{0.5\textwidth}%     %\rule[0.5ex]{\textwidth}{0.1mm}\\%     \hrulefill $\:$ {\bf #1}\\     %\vspace*{-0.25cm}     \it      }%     {%          \hrulefill     \vspace*{0.5cm}%     \end{minipage}     }          \let\minitocORIG\minitoc     \renewcommand{\minitoc}{\minitocORIG \vspace{1.5em}}                    \newenvironment{bulletList}%     { \begin{list}%         {$\bullet$}%         {\setlength{\labelwidth}{25pt}%          \setlength{\leftmargin}{30pt}%          \setlength{\listparindent}{20pt}%          \setlength{\itemsep}{\parsep}}}%     { \end{list} }          \newtheorem{definition}{Définition}     \renewcommand{\epsilon}{\varepsilon}          % centered page environment          \newenvironment{vcenterpage}     {\newpage\vspace*{\fill}\thispagestyle{empty}\renewcommand{\headrulewidth}{0pt}}     {\vspace*{\fill}}      And this is how my chapter looks like:                   \chapter{Cas Pilote:}         \label{chap:Pilote}         \minitoc         \twopagepicture{b}{p}{Chapitre8/ATMprocessmap.jpg}{Shéma du processus de dévidage des enveloppes deposées par les clients dans les guichets automatiques.}\label{fig:ATMprocess}         \section % another section     \end      Could you please help in telling me why the process picture is shifted till the end of the chapter and does not take its place after the `\twopagepicture` environment? I still am facing a shifting between the left portion of the picture and the right portion (amounting to the caption's space). I totally depend on you figuring out what packages &/or commands are conflicting and resulting in these two issues please. * * * OK. I seem a bit clearer on this oversize image. But perhaps I'm not getting the required results because I'm not following the advice correctly. Here are some steps I need to clarify: a) When you say "These type of figures are best to insert them manually". You meant insert in the chapter directly? Where is the \twopagepicture command line then? b)You adviced to "Try modifying the \twopagepicture by copying it and renaming it". Where should I copy the file? and HOW could I rename it? c) The commands: \cleartoevenpage \includegraphics[height=0.95\textheight]{petra} \newpage should come in the chapter I'm writing? how do I combine these commands with the \twopagepicture command? Is the 0.95 indicative of an "OK" rescaling of my picture? or should I try other ratios until I reach the desired results? Last, I used the commands as follows in my chapter:                \cleartoevenpage         \twopagepicture{b}{p}{Chapitre8/ATMprocessmap.jpg}{Schéma du processus de dévidage des enveloppes de paiement déposées dans les guichets automatiques}         \label{fig:ATMprocess}         \pagebreak          \cleardoublepage      By trying the \cleartoevenpage before the \includegraphics and the \newpage after do not get me the required results. Notice that I need to omit all paper margins and that still my float goes to the end of the chapter leaving a blank paper at the required section. How could I manage a caption that spans above the two pages?


title: Very simple condition in macros

text: I try to define a macro in LaTeX. This macro should give a different output when I use condition `true` and `false`. This does not work:               \documentclass{article}     \usepackage{lipsum}     \newif\ifABC     \ifABC     \newcommand{\abcdef}[1]{{Letters} #1}%     \else     \newcommand\abcdef[1]{}     \fi          \begin{document}     \ABCtrue     \abcdef{ABC}     \lipsum[2]          \end{document}%      How I should define conditional macro?


title: Why doesn't \@ifstar work inside a caption?

text: For some reason, the following minimal example doesn't compile:               \documentclass{article}          \makeatletter     \newcommand{\testMe}{%         test         \@ifstar{1}{2}%     }     \makeatother          \begin{document}     \testMe     \testMe*     \begin{figure}       bla bla bla       \caption{\testMe*}     \end{figure}     \end{document}      However, if you uncomment the `\@ifstar` line, or don't use `\testMe` in the caption then it works. Why?


title: Arabic text in \begin{arab} displays properly but titles, sections, and everything else doesn't

text: Titles and Sections are not displayed properly in Arabic. They are shown as separated characters while other parts of the document is displayed perfectly. If I remove `\setmainfont[Ligatures=TeX]{Amiri}`, nothing gets displayed when it is processed with XeLaTeX besides the text within `\begin{arab}`, however, `\section{التعليمات}` is still separated characters.               \documentclass[a4paper,12pt]{article}     \usepackage{fontspec}     \usepackage[pdfauthor={Yousef Raffa},pdftitle={Translation of The ARRL LoTW Registration Instructions in Arabic}]{hyperref}          \usepackage{arabxetex}          \setmainfont[Ligatures=TeX]{Amiri}     \newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{Amiri}          \pagestyle{headings}          \title{ترجمة لتعليمات التسجيل في \textLR{ARRL LoTW}\\ \textLR{Translation of ARRL LoTW Registration     Instructions in Arabic}}     \author{يوسف عدنان رفـّـه\and Yousef A. Raffah}     \date{\today}          \begin{document}     \maketitle     \thispagestyle{empty} % No page number on 1st page          \begin{arab}          \section{التعليمات}          اتبع الخطوات التالية لإتمام عملية إنشاء حسابك الخاص في دفتر سجلات العالم      \textLR{Logbook of the World}.          \subsection{الخطوة الأولى - تنزيل و تهيئة البرنامج}          دفتر سجلات العالم \textLR{Logbook of the World} يستخدم برنامج اسمه \textLR{TrustedQSL} وهو          \end{arab}     \end{document}      Here is a link to the Amiri font I'm using **UPDATE:** If I `\setmainfont[Ligatures=TeX]{Geeza Pro}` the output displays titles and sections properly but English characters are squares now and so are section numbers! ![Screenshot showing the problem of separated characters](http://i.stack.imgur.com/TwNx7.png) ![Screenshot of what happens if I remove \\setmainfont\[Ligatures=TeX\]{Amiri}](http://i.stack.imgur.com/KkQeo.png) ![Screenshot of output when \\setmainfont is changed to Geeza Pro](http://i.stack.imgur.com/2ggqM.png)


title: Finding the depth of nesting in a macro call

text: Is there a general way to find the depth of a macro evaluation? For example, consider the following script,               \documentclass{beamer}     \usepackage{mathtools}     \usepackage{calc}          \begin{document}          \begin{frame}       \newcommand*{\ofSize}[2]{\hphantom{####2}\llap{####1}}       x \alt<1>{\ofSize{apples}{oranges}}{oranges} \uncover<1-2>{done.}          \end{frame}          \end{document}      I wanted to alternate between two expressions so that it would not cause surrounding text to move around during animations, with a more general solution then that given in Animated equation in Beamer. As you can see, I needed to escape the first argument, `#1`, three more times (`####1`) to get this to work. The process I used was arbitrary; I just added `#` till it stopped giving me an error. Clearly, this could fail with horrendous side-effects if `#1` is a meaningful expansion in a "deeper" nested macro level. Is there a best practice / methodology when writing such commands?


title: TikZ: using the new angles library

text: I am trying to use the `angles` library, but I am not sure how to apply it when the nodes were specified from other methods. In the examples, the drawing of the vectors and naming of the nodes happens on the same `draw` command that issue the `angles` command.               \documentclass[tikz]{standalone}%          \usetikzlibrary{calc}     \usetikzlibrary{intersections}     \usetikzlibrary{angles}          \begin{document}     \begin{tikzpicture}       \coordinate (O) at (0, 0);            \path[name path = para] (-1, -2.5) parabola bend (2, 2) (4, 0);            \draw (O) -- (5, 0) coordinate (P1);            \path[name path = circ] (O) circle[radius = .75bp];       \path[name intersections = {of = para and circ}];            \coordinate (A) at (intersection-1);       \coordinate (B) at (intersection-2);            \draw[-latex, red] (A) -- ($(B)!1cm!(A)$) coordinate (P2);            \path (P1) -- (O) -- (P2)       pic[''$\theta$'', draw, -latex, red, angle radius = .5cm,       angle eccentricity = 1.2] {angle = P1--O--P2};     \end{tikzpicture}     \end{document}      It is telling me theta isn't a color. * * * Even if I load the `quotes` library and put double quotes around `\theta` as Harish Kumar has answered, I still receive the message:               ! Missing \endcsname inserted.     <to be read again>                        \theta     l.41   angle eccentricity = 1.2, font = \tiny]                                                    {angle = P1--O--P2};     ! Missing \endcsname inserted.           ...          l.41 ...y = 1.2, font = \tiny] {angle = P1--O--P2}                                                       ;          ! Package xcolor Error: Undefined color ```$\theta $'''.      * * * For those who don't believe me that double quotes are causing the same problem, I narrated a video for you showing that this is the case. https://www.dropbox.com/s/44zhedz2psg1vrk/2014-05-08%2018.08.46.mp4


title: Why are EPS files generated by gnuplot rotated 90 degrees?

text: I have an EPS file generated by gnuplot. I used the code:               #set term post enh color     #set out '1.eps'      The EPS file viewer in gsview is horizontal. However, when I include it in my paper the graph is rotated 90 degrees (vertical) I tried `set term post enh color port`, it doesn't work. However, I found the following code can be used with LaTeX:               #set term post enh color eps     #set out '1.ps'      then use gsview to convert the PS file to EPS. It will be displayed horizontally in LaTeX (but rotated 90 degrees in gsview) How can I get the EPS file such that it is rotated 90 degrees in both?


title: Add small line in \section title

text: I'm trying to duplicate an old document that has a small centered line above each `\section`. I have not been able to duplicate this when I set the formatting for the `\section`. (I'm using the titlesec package, among others.) This is an example of what I've tried:               \titleformat{\section}{\normalfont\Large\filcenter}{\rule{.5in}{.02in} \\ \thesection}{0em}{}      Is there a way to do this without putting the `{\rule{.5in}{.02in}` before each `\section`?


title: Can you have curving, empty, broken arrows in xymatrix?

text: In \xymatrix, the command   `\ar@{}[dr] |{\text{lab}}`   typesets an empty arrow, broken by some text. Similarly, the command   `\ar@/^10pt/ @{->}[ur] |{\text{lab}}`   typesets a curving arrow, broken by some text. I would expect   `\ar@/^10pt/ @{}[ur] |{\text{lab}}`   then to typset a curving, empty arrow, broken by some text, but it doesn't. Is there a convenient way to achieve curving, empty, broken? Here is a minimal example:               \documentclass{amsart}       \usepackage[all]{xy}       \begin{document}       \begin{equation}       \xymatrix{       a \ar@/^10pt/ @{}[r] |{\text{lab}} & b       }       \end{equation}       \end{document}


title: Theorem and lemma sharing counter with mdframed and cleveref

text: # Problem Essentially I've got the same problem described in Cleveref with counters with same name: I've got theorems, lemmata and corollaries all sharing the same counter, and when referencing them using `\cref` the text always reads “theorem”. The main difference is that I'm using `\mdtheorem` from the `mdframed` package to set up my theorem environments. I like the way the boxes look, so switching to `amsthm` or `ntheorem` as suggested in that answer is not an option for me. I even have `amsthm` included, but that alone isn't enough. I've looked a bit at the sources. It seems `cleveref` provides a version of `\refstepcounter` which can take the name of the environment as an optional argument. So that should probably be used. # Workaround So one solution which works for me is the following: copy `mdframed.sty` and add that optional argument in the right place, which looks approximately like this.                {%#3 given -- number relationship         \global\@namedef{the#2}{\@nameuse{the#3}}%         \newenvironment{#2}[1][]{%           \refstepcounter[#2]{#3}           \ifstrempty{##1}%      But this is an ugly hack. In particular, it means I'll have to update `mdframed` myself to keep this in the code. # Question I also don't see any such use of an optional argument in `amsthm` or `ntheorem`. So my question is this: do you know of any more elegant way to achieve what I'm trying to do? Can you tell how these two packages address the problem, and can I somehow port that to `mdframed`? # Patching Or can I use `etoolbox` and `\patchcmd` to get this working? I tried the following, but it didn't work:               \expandafter\patchcmd\csname mdtheorem\space code\endcsname     {\refstepcounter{#3}}{\refstepcounter[#2]{#3}}{}{}      With `\tracingpatches` the log claims that patching worked, but in fact nothing changed. # Example Small reproducing example:               \documentclass{article}     \usepackage[framemethod=TikZ]{mdframed}     \usepackage{hyperref}     \usepackage[textwidth=5cm]{geometry}     \usepackage[nameinlink,noabbrev]{cleveref}     \mdtheorem{Theorem}{Theorem}     \mdtheorem{Lemma}[Theorem]{Lemma}     \crefname{Theorem}{theorem}{theorems}     \crefname{Lemma}{lemma}{lemmas}     \begin{document}      \begin{Lemma}\label{x}       Mary had a little lamb.      \end{Lemma}      Now look at \cref{x}.     \end{document}      ![Undesired rendering](http://i.stack.imgur.com/AsQPb.png)


title: how can improve this tree (forest package) to fit in classicthesis?

text: I just learnt about the forest package, and following another question in this site, I produced a forest tree (see mwe). The question is very simple: how can I improve this tree? Indeed, I feel that such a tree fits better in a presentation than within a written thesis. I look for something more minimal, more readable (i need to use adjustbox, so the font appears smaller) that fits much better within komascript/classicthesis (and, of course, if you think it would be better, you could also propose tikz-independant solutions) Thank you MWE (maybe not so minimal..)               \documentclass[12pt,a4paper,twoside,openright, headinclude,footinclude,cleardoublepage=empty,captions=tableheading,]{scrreprt}      \usepackage{scrhack}                       \usepackage[T1]{fontenc}     \usepackage{tikzscale}     \usepackage[utf8]{inputenc}     \usepackage{mparhack,fixltx2e,relsize}           \usepackage{amsmath,amssymb,amsthm}           \usepackage{graphicx}                          \usepackage[eulerchapternumbers,subfig,beramono,eulermath,pdfspacing, listings]{classicthesis}     \usepackage{arsclassica}      \usepackage{lipsum}     %\onehalfspacing     \usepackage{subfig}      \setlength{\headheight}{1.1\baselineskip}          \raggedbottom          \usepackage{forest}     \usetikzlibrary{arrows.meta, shapes.geometric, calc, shadows}     \usepackage[export]{adjustbox}     \usepackage{geometry}     \geometry{a4paper,top=3cm,bottom=3cm,left=3.5cm,right=3.5cm,heightrounded,bindingoffset=5mm}          \colorlet{mygreen}{green!75!black}     \colorlet{col1in}{red!30}     \colorlet{col1out}{red!40}     \colorlet{col2in}{mygreen!40}     \colorlet{col2out}{mygreen!50}     \colorlet{col3in}{blue!30}     \colorlet{col3out}{blue!40}     \colorlet{col4in}{mygreen!20}     \colorlet{col4out}{mygreen!30}     \colorlet{col5in}{blue!10}     \colorlet{col5out}{blue!20}     \colorlet{col6in}{blue!20}     \colorlet{col6out}{blue!30}     \colorlet{col7out}{orange}     \colorlet{col7in}{orange!50}     \colorlet{col8out}{orange!40}     \colorlet{col8in}{orange!20}     \colorlet{linecol}{blue!60}     \begin{document}     \pgfkeys{/forest,       rect/.append style   = {rectangle, rounded corners = 2pt,                              inner color = col5in, outer color = col5out},       ellip/.append style  = {ellipse, inner color = col6in,                               outer color = col6out},     }     \pagestyle{scrheadings}      \pagenumbering{arabic}          \chapter{Test test}     \lipsum[1-8]     \begin{figure}      \centering     \includegraphics{partecipanti.tikz}     \caption[blabla]{blabla}     \end{figure}     \lipsum[1-8]     \end{document}      Image file (save as partecipanti.tikz)               \adjustbox{width=\textwidth}{     \begin{forest}       for tree={           font=\sffamily\bfseries,           line width=1pt,           ellip,           draw=linecol,           align=center,           child anchor=north,           parent anchor=south,           drop shadow,           l sep+=12.5pt,           edge path={             \noexpand\path[color=linecol, rounded corners=5pt,               >={Stealth[length=10pt]}, line width=1pt, ->, \forestoption{edge}]               (!u.parent anchor) -- +(0,-10pt) -|               (.child anchor)\forestoption{edge label};             },       }         [135 pazienti\\inizialmente\\inclusi, inner color=col1in, outer color=col1out                 [95 pazienti\\partecipanti\\allo studio, inner color=col2in, outer color=col2out,l=6.5cm, s=-3.cm                 [61\\Gruppo Gesso, rect, inner color=col2in, outer color=col2out,                      [x valutati clinicamente, rect, inner color=col2in, outer color=col2out]                 ]                 [34\\Gruppo Chirurgico, rect, inner color=col2in, outer color=col2out, s= -3.5cm                     [y valutati clinicamente, rect, inner color=col2in, outer color=col2out]                 ]             ]             [19 pazienti\\non hanno aderito\\allo studio ]             [, phantom, calign with current]                  [8 pazienti\\esclusi\\dallo studio                 [5 con frattura\\composta, rect, l=3cm]                 [1 con radiografie\\insufficienti, rect, l=3cm]                 [1 con frattura\\dell'ulna, rect,l=3cm]                 [1 rifratturato\\dallo stesso lato, rect, l=3cm]             ]             [13 pazienti\\con importanti\\deficit neurologici]         ]     \end{forest}}


title: Converting a set of .bib entries in bibitem

text: I have a set of bibtex items:               @INPROCEEDINGS{citation1,      author={authors...},      booktitle={Computer Vision Workshops (ICCVW), 2013 IEEE International Conference on},      title={title...},      year={2013},      month={Dec},      pages={145-152},      doi={10.1109/ICCVW.2013.25},}            @INPROCEEDINGS{citation2,      author={authors...},      booktitle={Computer Vision Workshops (ICCVW), 2013 IEEE International Conference on},      title={title...},      year={2013},      month={Dec},      pages={145-152},      doi={10.1109/ICCVW.2013.25},}      Is there any tools/commands to convert all of these to (or any other bibitem style):               \bibitem{citation1} Authors (years). \emph{title}.     \bibitem{citation1} Authors (years). \emph{title}.     ...      ? PS. I mainly use sharelatex.com


title: Labels with \psplot

text: Consider the following example:               \documentclass{article}          \usepackage{pst-plot}          \begin{document}          \begin{figure}     \def\dx{2.5}     \def\dy{1}     \makeatletter       \renewcommand*\pst@@@hlabel[1]{$\frac{1}{2}U_{#1}$} % X-labels       \renewcommand*\pst@@@vlabel[1]{$\frac{1}{5}U_{#1}$} % Y-labels     \makeatother     \centering       \begin{pspicture}(-1,-0.85)(11.55,5.5)         \psaxes[dx = \dx, dy = \dy]{->}(11,5)[$X$,0][$Y$,90]         \multido{\rA = \dy+\dy, \rB = \dx+\dx, \iA = 70+-10}{4}{           \psline[linecolor = blue!\iA](0,\rA)(\rB,0)         }       \end{pspicture}      \caption{Indifferenskort med linjebundt.}     \end{figure}          \end{document}      ![output](http://i.stack.imgur.com/MqqIL.jpg) How do I remove the first label on each axis, i.e., the ones at the origin? P.S. I want the indices of _U_ to start at `1` instead of `0` so I don't want label offset.


title: Grouping plots without groupplots

text: Running this MWE:               \documentclass{article}     \usepackage{pgfplots}     \begin{document}          \begin{figure}     \centering     \begin{tikzpicture}     \begin{axis}[%     width=2in, height=2in,     scale only axis, xmin=0,     xmax=7, xtick={\empty}, ymin=-1, ymax=1.1     ]     \addplot [color=blue,solid,forget plot]       table[row sep=crcr]{0 0\\     };     \end{axis}     \end{tikzpicture}%          \begin{tikzpicture}     \begin{axis}[%     width=2in, height=2in,     scale only axis, xmin=0,     xmax=7, xtick={\empty}, ymin=-1, ymax=1.1     ]     \addplot [color=blue,solid,forget plot]       table[row sep=crcr]{0 0\\     };     \end{axis}     \end{tikzpicture}%     \end{figure}          \end{document}      gives me this image: ![example plots](http://i.stack.imgur.com/oi4qZ.png) I would like to join these graphs so they share the same x-axis. But I would like to do this without using `groupplots`, because I will be generating individual .tikz files using `matlab2tikz` and would rather just set it up so I can group them in latex. (`matlab2tikz` does not handle subplots very well. My desired outcome is (using paint): ![Joined plot](http://i.stack.imgur.com/p315I.png) Don't worry about the y-axis, that will be sorted out in MATLAB with the right scaling before exporting. Edit - Thanks for the comments, yes I am happy to edit the contents of `\begin{tikzpicture}` and `\end{tikzpicture}`. As long as the editing isn't as much as copying the second data set into it, then I may as well scrap this idea and go for `groupplots`. Thanks Thanks


title: titletoc: problem with "left" parameter (not working for LOF)

text: I am having trouble with changing the style of the LOF using `titletoc`. Everything works fine but the **left** parameter (i.e. the first parameter in the square brackets containing a length measure) of the `\titlecontents{figure}` command does not have any effect (it seems to be 0pt regardless of the value I provide). However, it works for `chapter`, `section`, and `subsection`. Is this a known bug or am I too stupid? The misalignmentis shown in the picture: ![BUUUG](http://i.stack.imgur.com/AVnPU.jpg) I would like to have _Figure_ aligned with _Section_. Please find a MWE below.               \documentclass[a4paper]{article}          \usepackage{titletoc}               \contentsmargin{0pc}          % Section     \titlecontents{section}     [2.25pc]     {}     {\hspace*{-.75pc}\makebox[0pt][r]{\thecontentslabel}\hspace*{.75pc}}     {}     {\hspace{.5pc}\raisebox{.3ex}{$\scriptstyle\cdot$}\hspace{.5pc}\thecontentspage}          % Figures     \titlecontents{figure}     [2.25pc]     {\raggedright}     {\contentslabel{2.25pc}}     {}     {\hspace{.5pc}\raisebox{.3ex}{$\scriptstyle\cdot$}\hspace{.5pc}\thecontentspage}               \begin{document}          \tableofcontents     \listoffigures          \section{Section}     \begin{figure}         \caption{Figure}     \end{figure}          \end{document}


title: biblatex & references: unpublished style with eprint

text: The biblatex unpublished style does not offer the eprint & eprinttype fields. Would you know how to add them (if possible).


title: Block Diagrams using Tikz

text: I am trying to implement this Block Diagram: ![enter image description here](http://i.stack.imgur.com/5FaHE.png) Forget about the math, I can do it. I just want to implement the diagram. I used the example here; it is nice, but whenever I remove the "measurement" block, the feedback path cannot be obtained unless directly (-180 deg). Also, I am still unable to get more than one box on top of each other. ![enter image description here](http://i.stack.imgur.com/jO28p.png) MWE:               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{shapes,arrows}     \begin{document}          \tikzstyle{block} = [draw, fill=white, rectangle,          minimum height=3em, minimum width=6em]     \tikzstyle{sum} = [draw, fill=white, circle, node distance=1cm]     \tikzstyle{input} = [coordinate]     \tikzstyle{output} = [coordinate]     \tikzstyle{pinstyle} = [pin edge={to-,thin,black}]          \begin{tikzpicture}[auto, node distance=2cm,>=latex']              \node [input, name=input] {};         \node [sum, right of=input] (sum) {};         \node [block, right of=sum] (controller) {Controller};         \node [block, right of=controller, pin={[pinstyle]above:D},                 node distance=3cm] (system) {System};              \draw [->] (controller) -- node[name=u] {$u$} (system);         \node [output, right of=system] (output) {};         \node [block, below of=u] (measurements) {Measurements};              \draw [draw,->] (input) -- node {$r$} (sum);         \draw [->] (sum) -- node {$e$} (controller);         \draw [->] (system) -- node [name=y] {$y$}(output);         \draw [->] (y) |- (measurements);         \draw [->] (measurements) -| node[pos=0.99] {$-$}              node [near end] {$y_m$} (sum);     \end{tikzpicture}     \end{document}


title: How to create new font encoding in LaTeX?

text: The technical documentation for the Latin Modern font family lists all available glyphs. There are more glyphs than are gathered in the accompanying encoding tables (CS, T1, L7X, OT1, OT4, QX, T5, LY1, TS1). I need glyphs like h with stroke or vowels with double grave accent. They are not in the encoding tables mentioned above. I cannot use Xe(La)TeX. My question is: How can I create new encoding table with needed glyphs?


title: How to cross off the structure with an anchor in chemfig

text: I am trying to cross of the structure after the arrow (with an anchor) but I get a mess. I've been told how to do that without the anchor. I was trying to move a "cross off" command to different places but with no luck. Here is my sample:               \documentclass[12pt,doublespacing,letterpaper]{report}          \usepackage{chemfig}          \setatomsep{2em}     \setbondoffset{1pt}     \setdoublesep{3pt}     \setbondstyle{line width=1pt}          \renewcommand\printatom[1]{%       \fontsize{11pt}{11pt}\selectfont       \ensuremath{\mathrm{#1}}%     }          \begin{document}          \schemestart[0,1.2,thick]     \chemfig{CH_2=CH-C(=[:90]O)-COH}     \arrow(.mid east--.mid west){%     ->[\footnotesize 1. NaH][2. \textbf{1}]%     }[,2,thick]     \chemfig{Ph-CH_2-CH-C(=[:90]O)-COH}     \schemestop                    \end{document}      Thanks in advance!


title: How to integrate conference/ journal TeX templates with LyX?

text: A possible duplicate using LYX to write journal with given formatting but re- adding for no answers given. The comment to abstain from "LyX-ifying" isn't very helpful and moreover, I have an extensive query. Any conference/ journal template will generally provide with `.cls`, `.aux`, `.bib`, `.bbl`, `.tex`, `.blg`, `.bst` files. What are the roles of these files? How can one integrate these files to LyX? Where should you place these files and how can you get started? For the operating system, I'm on Ubuntu 12.04. Note: Even apposite references will be appreciated. I highly appreciate the pure code users but kindly allow novices to advance as well.


title: pdflatex removes highlights in the included PDF

text: I have a figure in the PDF format and there are some texts in the figure (pdf) are highlighted. However, when I include this PDF file into latex document, the highlights are automatically removed. Do you know to to preserve the highlights? I am using PdfLaTeX to compile the TeX documents. The minimal working example provide below:               \documentclass{article}     \usepackage{graphicx}     \begin{document}          \begin{figure}     \includegraphics[width=\linewidth]{figure}     \end{figure}          \end{document}      The figure in PDF format can be downloaded here. However, you can use any pdf file that contains highlights to see the problem.


title: No arXiv id showing in bibtex generated by Mendeley

text: I noticed that those arXiv papers in my bibliography are not correctly showing their arXiv id. Is there any fix to this? Thanks


title: Beamer keeping line position constant on itemize

text: I want to have a slide in beamer with itemize exposing new line on each click while at the bottom part of the slide there are some equations. This is my attempt               \begin{frame}       \begin{overprint}{\textwidth}         \leavevmode         \begin{itemize}[<+->]         \item <1-> Poisson Boltzman equation (PB)         \item <2-> Debye-H\"uckle equation  (DH)         \item <3-> The naive approach - applying (DH) equation to PE         \end{itemize}       \end{overprint}       \begin{tikzpicture}         \node at (0,0) {};             \node<1,2> [text width = 20cm]at (10.5,-1) {$ \nabla^2 \phi =\sum_i \frac{n_i q_i\text{e}^{-q_i \phi/kT}}{4 \pi \epsilon}$};             \node <2> [text width = 20cm]at (10.5,-2) {$q_i \phi/kT \ll 1 \Rightarrow \nabla^2 \phi \simeq \kappa^2 \phi$};             \node <2> [text width = 20cm, font=\footnotesize]at (10.5,-2.5) {$\kappa^2 = \lambda^{-1/2} =  \sum_i \frac{n_i q_i}{4 \pi \epsilon}$};             \node <3> [text width = 20cm] at(10.5,-1) {$\frac{F_{el}}{VkT} = - \left ( \frac{ 4 \pi e^2}{\epsilon kT}         \sum_{i=1} n_i z_i^2 \right )^{3/2} \left ( 12 \pi \right )^{-1}$};       \end{tikzpicture}     \end{frame}      However, the itemized line jump up and down between slides. I've tried to use `itemize` without any environment surrounding it. I've also tried to use `overlayarea` instead of `overprint`. How can I keep the line position constant? I've uploaded a gif animation to display this. On my machine it run really fast and I can't fix this. Hope the problem is understood. When I run this, I get![enter image description here](http://i.stack.imgur.com/n4Ys1.gif)


title: How to correctly display and separate the author names in a bibliographic entry?

text: How to correctly display and to separate among the BibLaTeX's author's names? Code:               @book{atl1,         label     = {SELLS},         author    = {Cristopher TAVARES, Kirk FERTITTA, Brent RECTOR, Chris SELLS},         title     = {ATL Internals},         subtitle  = {Working with ATL 8},         edition   = {2},         publisher = {Addison-Wesley Professional},         date      = {2006-07-15},         pages     = {888}         }      Output: ![enter image description here](http://i.stack.imgur.com/ypdTB.png) In this case I'm trying to display this as `Cristopher TAVARES, Kirk FERTITTA, Brent RECTOR and Chris SELLS` before `ATL Internals...`. How do I to deal with this, please? Thanks a lot!


title: Chapter displayed in headings and page number on the left

text: I am writing my thesis using the class `memoir`. I have two problems to get nice headings/footers. First, I want the page number to be in the footer, on the right or on the left but for the first page of a chapter, it stays centered. Then, for pages with an even number, I want the name of the current chapter to be inserted in the headings. I can not find how to do these things. Here is my code:               \documentclass[12pt]{memoir}          \usepackage{blindtext}     \usepackage[english]{babel}     \nouppercaseheads     \makepagestyle{these}     \makeevenhead{these}{\rightmark}{}{}     \makeoddhead{these}{}{}{\leftmark}     \makeheadrule{these}{\textwidth}{\normalrulethickness}     \makeevenfoot{these}{\thepage}{}{}     \makeoddfoot{these}{}{}{\thepage}     \makepsmarks{these}{%     \createmark{section}{left}{shownumber}{}{\ }      \createmark{chapter}{right}{shownumber}{}{\ }     \createplainmark{toc}{both}{\contentsname}}     \pagestyle{these}          \makeatother          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{document}     \frontmatter          \title{My title}           \maketitle          \chapter{Thanks}     \tableofcontents          \chapter{Introduction}\label{intro}     \Blindtext          \mainmatter     \part{1st Part}          \chapter{My Chapter}     \section{My Section}          \Blindtext     \end{document}


title: Adding word "Chapter" into Table of Contents for only numbered chapter entries

text: I'm trying to use the `titletoc` package to add the word "Chapter" only to my numbered entries in my Table of Contents. I'm using a `report` document class. I'm really close (I think), I just need to know how to align the numberless entries with the word "Chapter" from the numbered entries. Here's what I've got:               \usepackage{titletoc}%      \titlecontents{chapter}% <section-type>       [0pt]% <left>       {}% <above-code>       {\bfseries\chaptername\ \thecontentslabel\quad}% <numbered-entry-format>       {\bfseries}% <numberless-entry-format>       {\bfseries\hfill\contentspage}% <filler-page-format>      Which gives me: ![Table of Contents result](http://i.stack.imgur.com/eU2KZ.png) I'd like to align those numberless chapters on the left hand side with the word "Chapter". Also, I'm receiving `\hbox` warnings for the page numbers with four or more characters (such as viii) and am not sure what to do about those. I'm new to LaTeX and am at a loss. I tried looking through the `titletoc` documentation but was unsuccessful. Thanks in advance! EDIT: As requested, here is a MWE:               \documentclass[12pt]{report}     \usepackage[utf8]{inputenc}          \usepackage{titletoc}%      \titlecontents{chapter}% <section-type>       [0pt]% <left>       {}% <above-code>       {\bfseries\chaptername\ \thecontentslabel:\quad}% <numbered-entry-format>       {\bfseries}% <numberless-entry-format>       {\bfseries\hfill\contentspage}% <filler-page-format>          \usepackage{lipsum}          \usepackage{setspace}          \begin{document}          \pagenumbering{roman}           \clearpage                       \setcounter{page}{2}                  \chapter*{Abstract}     \addcontentsline{toc}{chapter}{\numberline{}Abstract}     \lipsum[1]          \chapter*{Acknowledgements}     \addcontentsline{toc}{chapter}{\numberline{}Acknowledgements}     \lipsum[1]          \begin{doublespace}     \renewcommand*{\contentsname}{Table of Contents}     \tableofcontents     \addcontentsline{toc}{chapter}{\numberline{}Table of Contents}     \end{doublespace}          \pagenumbering{arabic}     %\setcounter{page}{255}  % % Uncomment to see \hbox warnings due to long TOC page number          \chapter{Introduction}     \lipsum[1]     \section{Section one}     \lipsum[1]          \chapter{Second Chapter}     \lipsum[1]     \section{Another section}     \lipsum[1]          \end{document}      Note: remove the comment to receive the `\hbox` warnings. Thanks again


title: Question about using package babyloniannum

text: I'm trying to use package babyloniannum, here's my file               \documentclass{article}     \usepackage{fontspec,babyloniannum}          \begin{document}          \babylonianfont{Santakku}     \babyloniannum{8}          \end{document}      I am getting the message that `\babyloniannum{8}` is an undefined control sequence...but no objection to the `\babylonianfont` command. What am I missing?