title: Accented characters and inputenc settings

text: In my bibliography database, there are several references where authors have accented characters in their names, e.g. `Chagn\'e`. The `inputenc` package seems to have a problem with this. My setting is:               \usepackage[latin9]{inputenc}      This generates error referring to the particular line number in my `.bib` database. The error is repeated dozens of times before the final PDF is generated. Can someone recommend what setting I should use for `inputenc`? Here is an example from the bib file:               @article{Chagne2003a,      author = {Chagn\'e, David and Brown, Garth and Lalanne, C\'eline and Madur, Delphine and Pot, David and Neale, David and Plomion, Christophe},      title = {Comparative genome and QTL mapping between maritime and loblolly pines},      journal = {Molecular Breeding},      pages = {185--195},      volume = {12},      issue = {3},      url = {http://dx.doi.org/10.1023/A:1026318327911},      year = {2003}     }      The reference as well as the citation is printed correctly in the PDF. However, during compilation, an error is generated at least 6 times which requires user intervention. Edit#2 - My bibliography package is 'Biblatex' which accesses the .bib file directly. The errors are generated during compilation. I will paste it here.                  l.132           ?           ! Package inputenc Error: Keyboard character used is undefined     (inputenc)                in inputencoding `latin9'.          See the inputenc package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.132           ?       Line number 132 is where the reference in question is in the bib database. * * * Edit # 3 Here is something strange. I removed the accent settings from the .bib file. Thus Chagn\'e is now Chagne. Then I deleted all aux, .bbl and .blg files from the compilation folder. I am still getting the exact same errors. Now I am not so sure if 1.132 refers to line #132 in the .bib. Edit # 4 -- A minimal example:               \documentclass[12pt]{article}     \usepackage[bibstyle=authoryear,     citestyle=authoryear,      natbib=true]{biblatex}     \usepackage{filecontents}     \usepackage[latin9]{inputenc}               \begin{filecontents}{genetics.bib}     @article{Chagne2003a,      author = {Chagn\'{e}, David and Brown, Garth and Lalanne, C\'{e}line and Madur, Delphine and Pot, David and Neale, David and Plomion, Christophe},      title = {Comparative genome and QTL mapping between maritime and loblolly pines},      journal = {Molecular Breeding},      pages = {185--195},      volume = {12},      number = {3},      doi = {10.1023/A:1026318327911},      year = {2003}     }     \end{filecontents}          \addbibresource{genetics.bib}               \begin{document}     \section{Introduction}     This was first reported by \citet{Chagne2003a}.          \printbibliography          \end{document}


title: Syntax of TeX/LaTeX

text: {} and [] do some kind of grouping, and comma seems to be special as well. Being a programmer I find it frustrating to use Latex on incantation-only basis. I would like to know how does it exactly work. What is exactly the syntax of TeX/LaTeX?   How is it parsed?   Does Latex introduces new commands only or changes the syntax as well?   Or maybe changing syntax locally is a inherent feature of Tex?


title: How to include audio file in PDF

text: How do I include audio file, or should I say, link to audio file in PDF?   1. Audio should be playable "from PDF directly", without opening any additional window.   2. Is it possible to attach audios to PDF then so I can manipulate only with that file, without being bothered with copying folders where those audio files would reside? I saw that 1. is definitely doable (but don't know how) and I'm interested if second one is also possible (while compiling `.tex` file) since I know that some files (like graphs and tables) can be attached in PDF, but after it's generated. ![alt text](http://i.stack.imgur.com/o8wfa.png) Button for playing audio from document that uses this trick.


title: Proof environment: problem with \popQED and \pushQED{\qed}

text: I was trying to replace `.` with `:` in the proof environment and after trying a lot of answered questions here, I got [I'm using amsmath]               \makeatletter     \renewenvironment{proof}[1][\proofname]{\par       \pushQED{\qed}       \normalfont \topsep6\p@\@plus6\p@\relax       \trivlist       \item[\hskip\labelsep             \itshape         #1\@addpunct{:}]\ignorespaces}         {\popQED\endtrivlist\@endpefalse}     \makeatother      but this isn't working very well for me. After dozens of tries, I came up with               \makeatletter     \renewenvironment{proof}[1][\proofname]{\par       \normalfont \topsep6\p@\@plus6\p@\relax       \trivlist       \item[\hskip\labelsep             \itshape         #1\@addpunct{:}]\ignorespaces}         {\endtrivlist\@endpefalse}     \makeatother      So, what is the problem with `\pushQED{\qed}` and `\popQED`? Without both of them, the code works, but I can't get the qed square.


title: Multiple vertical rules along text – by using \leaders?

text: I want to draw individual vertical rules on the left side of consecutive paragraphs/vertical boxes covering the vertical skips. In my case for every paragraph/vertical box, there can be _different_ vertical rules. Each paragraph itself is short and _not breakable_ , that is why I am calling them vertical boxes. The rules of a paragraph should start directly after the previous paragraph and cover the vertical skip between the two paragraphs. The main problem is how to cover this skip properly with vertical rules. Similar questions have been asked:   1. one solution aimed at source code listings (where new lines are obeyed), and another solution using the package `framed`: How to make continuous (but breakable) vertical rule along left side of paragraph?   2. using package `mdframed` (which is based on `framed`): Left-hand vertical rule applied to flalign environment with automatic pagebreak   3. avoiding to write a new output routine seems impossible: Can I write a macro for placing a vertical, breakable rule along arbitrary paragraphs without an output routine? The common approach of 1. and 2. is to do the page breaking "manually" by own code instead of completely automatically by TeX. That is, to create a vertical list of all the lines or paragraphs, and use `\vsplit` to cut this list into piece to fill the pages. Another common characteristic is that this takes at least 50 lines of TeX code and is not easy... I came about box leaders and it seems that `\leaders` could do the job. I am wondering whether my attempts can be made working. **Attempt 1:** Tell TeX never to insert any glue after a paragraph and instead insert a standard amount of glue. (The amount can be changed setting `\currentvskip`.) **Attempt 2:** Ask TeX how much space is inserted between two paragraphs (during or after page breaking) and then cover this vertical skip with rules. _Not tried since it seems complicated:_ extending the `framed` package to work for multiple rules... The attempts are not completely working. For example, the vertical rules are not continuous on one page, and there is something wrong with the usage of `\lastskip`. The following document shows my attempts. Is there a way to fix one of them?               \documentclass[12pt,english]{article}     \usepackage{babel}     \usepackage{blindtext}          \def\rules{\vrule width2pt \kern8pt \vrule \kern10pt}     \def\ruless{\vrule width2pt \kern8pt \vrule \kern8pt \vrule \kern10pt}          \newbox\vrules \setbox\vrules=\vbox{\hbox{\vrule width0pt height1pt \rules}}     \newbox\vruless \setbox\vruless=\vbox{\hbox{\vrule width0pt height1pt \ruless}}     \newbox\vl          \def\line#1{\setbox\vl=\vbox{\hbox{\rules \strut #1\unskip}}%     \leaders\copy\vrules\vskip\currentvskip \unvbox\vl}     \def\linee#1{\setbox\vl=\vbox{\hbox{\ruless \strut #1\unskip}}%     \leaders\copy\vruless\vskip\currentvskip \unvbox\vl}          \def\minibox{\begin{minipage}{5cm}\blindtext\end{minipage}}          \begin{document}     \parindent0pt \lineskip20pt \xdef\currentvskip{\lineskip}     \section*{Attempt 1}     \line{\minibox\bigskip}     {\edef\currentvskip{\bigskipamount}%     \linee{The vertical rules on the left should continue above (problem with bigskip)!}     }     \linee{One more line...}     \line{The vertical rules on the left should not continue below because of the page break.}     \line{\minibox}          \section*{Attempt 2}     \vbox{\hbox{\rules \minibox \bigskip}}%     \leaders\copy\vruless\vskip\lastskip%     \vbox{\hbox{\ruless \strut The vertical rules on the left should continue above!}}     \leaders\copy\vruless\vskip\lastskip%     \vbox{\hbox{\ruless \strut One more line...}}     \leaders\copy\vrules\vskip\lastskip%     \vbox{\hbox{\rules \strut The vertical rules on the left should not continue below because of the page break.}}     \leaders\copy\vrules\lastskip%     \vbox{\hbox{\rules \minibox}}     \end{document}


title: Gantt chart in IEEEtran

text: I would like to put a Gantt chart in my IEEE paper (`\documentclass[conference]{IEEEtran}`). I'd like the chart to span over both columns. I'm using the following chart taken from Gantt chart package:               \documentclass[conference]{IEEEtran}     \usepackage{pgfgantt}     \begin{document}     \nocite{*}     \title{Lorem ipsum}     \author{\IEEEauthorblockN{Lorem ipsum}     \IEEEauthorblockA{Lorem ipsum\\     Lorem ipsum\\     Lorem ipsum\\     Lorem ipsum \\     Email: Lorem ipsum}     }          \maketitle     \thispagestyle{plain}     \pagestyle{plain}     \begin{abstract}     \end{abstract}          \section{Introduction}     \label{sec:intro}      Lorem Ips          \section{Problem}     \label{sec:problem}     Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla          \section{Background}     \label{sec:background}     Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.          \section{Methodologies}      \label{sec:meth}     \begin{figure}          \begin{ganttchart}[y unit title=0.4cm,     y unit chart=0.5cm,     vgrid,hgrid,      title label anchor/.style={below=-1.6ex},     title left shift=.05,     title right shift=-.05,     title height=1,     bar/.style={fill=gray!50},     incomplete/.style={fill=white},     progress label text={},     bar height=0.7,     group right shift=0,     group top shift=.6,     group height=.3,     group peaks={}{}{.2}]{24}     %labels     \gantttitle{2012 - 13}{24} \\     \gantttitle{Oct}{2}      \gantttitle{Nov}{2}      \gantttitle{Dec}{2}      \gantttitle{Jan}{2}      \gantttitle{Feb}{2}      \gantttitle{Mar}{2}      \gantttitle{Apr}{2}      \gantttitle{May}{2}      \gantttitle{Jun}{2}      \gantttitle{Jul}{2}     \gantttitle{Aug}{2}     \gantttitle{Sep}{2}     \gantttitle{Oct}{2} \\     %tasks     \ganttbar{first task}{1}{2} \\     \ganttbar{task 2}{3}{8} \\     \ganttbar{task 3}{9}{10} \\     \ganttbar{task 4}{11}{15} \\     \ganttbar[progress=33]{task 5}{20}{22} \\     \ganttbar{task 6}{18}{19} \\     \ganttbar{task 7}{16}{18} \\     \ganttbar[progress=0]{task 8}{21}{24}          %relations      \ganttlink{elem0}{elem1}      \ganttlink{elem0}{elem3}      \ganttlink{elem1}{elem2}      \ganttlink{elem3}{elem4}      \ganttlink{elem1}{elem5}      \ganttlink{elem3}{elem5}      \ganttlink{elem2}{elem6}      \ganttlink{elem3}{elem6}      \ganttlink{elem5}{elem7}      \end{ganttchart}     \caption{Gantt Chart}     \end{figure}          Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.                    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.          \bibliographystyle{IEEEtran}           \end{document}      As it is, the figure bumps into the 2nd column. I'd like to make the chart span over two columns. I've tried using `\begin{figure*}` and `\end{figure*}` but the chart keeps going to the end of the page. I've also tried `\begin{figure*}[h]`, `[htb]`, `[!htb]`, `[!ht]`, `[p]` and all other forms I know of but the chart still keeps going to the end. Any ideas how I can solve this please? Thanks a lot!


title: Best package for developing a List of Abbreviations

text: I'm in the process of writing a long document and need a `List of abbreviations`. I've been reading the LaTeX wiki book about this and have had a play with the packages nomencl and glossaries. What package is the most straight forward for developing a `List of abbreviations`? Is there a package I've missed?


title: tikz: How to draw nested ellipses which contain bent text?

text: I would like to draw nested ellipses, where each ellipse shows some text (``Function 1'',...,''Function 4'' to visualize dependence of function calls). I'd like to have the text bent according to the corresponding ellipse. The following is a first trial (not sure if it's a good approach to get to this picture). When I compile it (TeXLive 2012 on Ubuntu 12.10), it hangs... what's wrong? Or rather: What's a good way to draw this picture?               \documentclass{scrartcl}          \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage[american]{babel}     \usepackage{tikz}     \usepackage{xcolor}     \usetikzlibrary{shapes,arrows}     \usetikzlibrary{decorations.pathmorphing, decorations.text}          \begin{document}          \begin{tikzpicture}[decoration=zigzag]       % ellipses       \filldraw[fill=gray!10, draw=gray!80] (0,0) ellipse (6.4cm and 3.2cm);       \filldraw[fill=gray!20, draw=gray!80] (0,0) ellipse (4.8cm and 2.4cm);       \filldraw[fill=gray!30, draw=gray!80,                 postaction={decorate,                             decoration={text along path, text={\texttt{Function                                   2}}}}] (0,0) ellipse (3.2cm and 1.6cm);% TODO:                                     % place the text on top of "Function 1"       \filldraw[fill=gray!40, draw=gray!80] (0,0) ellipse (1.6cm and 0.8cm) node       {\texttt{Function 1}};     \end{tikzpicture}     \end{document}


title: Changing the \title in amsart

text: I am new to `amsart`. I want to give myself a default running header. So I try to redefine `\title` in the obvious way as follows.               \documentclass{amsart}          \let\AmStitle\title     \renewcommand{\title}[2][My default running title]{\AmStitle[#1]{#2}}          \title{Article title here}     \author{Author name here}          \begin{document}     \maketitle     \end{document}      This apparently ends up looping indefinitely. What is the reason for this?


title: How do I write above a left-right arrow?

text: There are a few articles on how to do this for left arrow or right arrow but the method doesn't work for `\leftrightarrow`. What I want is to write a `\longleftrightarrow` with “DFT” above it. I've tried:               \longleftrightarrow{\text{DFT}}     \longleftrightarrow^{DFT}     \xlongleftrightarrow{\text{DFT}}     \longleftrightarrow\limits^{DFT}      None has worked.


title: How to prevent a page break before an itemize or enumerate list? (continued)

text: My question is essentially the same as How to prevent a page break before an itemize list?. First, I don't undestand how the proposed solution (`\par\nobreak\@afterheading`) works. Why doesn't just `\par\nobreak` work? `\nobreak` should put there impossible penalty to pagebreak at the following glue. What does `\@afterheading` do? Another thing is that it seems that the solution consumes the space between the paragraph and itemize environment. Minimal example showing the problem follows.               \documentclass[12pt, a4paper]{article}          \makeatletter     \newcommand*{\NoBreakPar}{\par\nobreak\@afterheading}     \makeatother          \begin{document}         Let's see the following list:\NoBreakPar         \begin{itemize}             \item First.             \item Second.             \item Third.         \end{itemize}     \end{document}


title: How to install LawTex on MacTex

text: I'm relatively new to LaTeX, and I run Mac OSX 10.9.1. I have the latest MacTex, and have used it with relative ease for basic documents. I'm a law student, and I'm required to make a complex document with many legal citations. I found the package LawTex and from the included PDFs it's exactly what I need. However, after downloading it I have no idea how to make it work with my standard MacTex distro. Any help would be most helpful.


title: How to get extra vertical space before group in pgfgantt?

text: Using the `pgfgantt` package, one can uniformly set vertical spacing using the `y unit chart` key. However, i would like to add extra vertical space before certain groups, but the package does not seem to provide for this. Is this possible? How?


title: Legend on second frame has only one entry, labeled wrong

text: Using pgfplots in beamer with `\only` frames, the legend for the second frame (only) inexplicably shows only one entry, with the color of the last `\addlegendentry`, but the legend of the first. The other frames are fine. (Note: my version of PGFplots is old, but when I try to update, I get an unrelated error about a missing number treated as zero on the blank line near the start of the file. The commit in pgfplots I used to generate these examples is b32c2a92a257, and the next commit, 6a9ee731a433, and evidently all newer ones, has the unrelated error.) ![First frame - OK](http://i.stack.imgur.com/bex72.png) ![Second frame - bad](http://i.stack.imgur.com/asro1.png) ![Third frame - OK](http://i.stack.imgur.com/Bmm0c.png) ![Fourth frame - OK](http://i.stack.imgur.com/I57C5.png)               \documentclass{beamer}     \usepackage{tikz}     \usepackage{pgfplots}          \begin{document}     \begin{frame}{Pgfplots problem with legend on second frame}       \begin{center}         \begin{tikzpicture}           %%\pgfplotsset{every axis legend/.append style={at={(1.02,1.0)}, anchor=north west}}           \begin{axis}[ xlabel={x}, ylabel={y},             xmin=-1, xmax=1, ymin=0, ymax=2, width=8cm]             \only<1>{               \addplot[color=green,very thick,mark=none] coordinates {                 (-1.0000, 0.2072) (-0.9900, 0.2550) (-0.9800, 0.3108) (-0.9700, 0.3751) (-0.9600, 0.4480)                 ( 0.9500, 0.0631) ( 0.9600, 0.0816) ( 0.9700, 0.1046) ( 0.9800, 0.1327) ( 0.9900, 0.1666)               };               \addlegendentry{green}               \addplot[color=blue,very thick,mark=none] coordinates {                 (-1.0000, 0.8885) (-0.9900, 0.8380) (-0.9800, 0.7513) (-0.9700, 0.6403) (-0.9600, 0.5188)                 ( 0.9500, 0.0003) ( 0.9600, 0.0001) ( 0.9700, 0.0000) ( 0.9800, 0.0000) ( 0.9900, 0.0000)               };               \addlegendentry{blue}               \addplot[color=red,very thick,mark=none] coordinates {                 (-1.0000, 0.1841) (-0.9900, 0.2137) (-0.9800, 0.2335) (-0.9700, 0.2402) (-0.9600, 0.2325)                 ( 0.9500, 0.0000) ( 0.9600, 0.0000) ( 0.9700, 0.0000) ( 0.9800, 0.0000) ( 0.9900, 0.0000)               };               \addlegendentry{red}             }             \only<2>{               \addplot[color=green,very thick,mark=none, forget plot] coordinates {                 (-1.0000, 0.0011) (-0.9900, 0.0017) (-0.9800, 0.0024) (-0.9700, 0.0035) (-0.9600, 0.0049)                 ( 0.9500, 0.0001) ( 0.9600, 0.0002) ( 0.9700, 0.0003) ( 0.9800, 0.0005) ( 0.9900, 0.0008)               };               \addlegendentry{green}               \addplot[color=blue,very thick,mark=none, forget plot] coordinates {                 (-1.0000, 0.4644) (-0.9900, 0.3446) (-0.9800, 0.2430) (-0.9700, 0.1630) (-0.9600, 0.1039)                 ( 0.9500, 0.0000) ( 0.9600, 0.0000) ( 0.9700, 0.0000) ( 0.9800, 0.0001) ( 0.9900, 0.0003)               };               \addlegendentry{blue}               \addplot[color=red,very thick,mark=none] coordinates {                 (-1.0000, 0.0005) (-0.9900, 0.0006) (-0.9800, 0.0006) (-0.9700, 0.0006) (-0.9600, 0.0005)                 ( 0.9500, 0.0000) ( 0.9600, 0.0000) ( 0.9700, 0.0000) ( 0.9800, 0.0000) ( 0.9900, 0.0000)               };               \addlegendentry{red}             }             \only<3>{               \addplot[color=green,very thick,mark=none] coordinates {                 (-1.0000, 0.0099) (-0.9900, 0.0136) (-0.9800, 0.0186) (-0.9700, 0.0251) (-0.9600, 0.0336)                 ( 0.9500, 0.0017) ( 0.9600, 0.0025) ( 0.9700, 0.0036) ( 0.9800, 0.0050) ( 0.9900, 0.0071)               };               \addlegendentry{green}               \addplot[color=blue,very thick,mark=none] coordinates {                 (-1.0000, 0.1346) (-0.9900, 0.0837) (-0.9800, 0.0495) (-0.9700, 0.0278) (-0.9600, 0.0149)                 ( 0.9500, 0.0002) ( 0.9600, 0.0005) ( 0.9700, 0.0012) ( 0.9800, 0.0026) ( 0.9900, 0.0054)               };               \addlegendentry{blue}               \addplot[color=red,very thick,mark=none] coordinates {                 (-1.0000, 0.0013) (-0.9900, 0.0011) (-0.9800, 0.0009) (-0.9700, 0.0007) (-0.9600, 0.0005)                 ( 0.9500, 0.0000) ( 0.9600, 0.0000) ( 0.9700, 0.0000) ( 0.9800, 0.0000) ( 0.9900, 0.0000)               };               \addlegendentry{red}             }             \only<4>{               \addplot[color=green,very thick,mark=none] coordinates {                 (-1.0000, 0.0131) (-0.9900, 0.0179) (-0.9800, 0.0243) (-0.9700, 0.0325) (-0.9600, 0.0431)                 ( 0.9500, 0.0024) ( 0.9600, 0.0034) ( 0.9700, 0.0049) ( 0.9800, 0.0068) ( 0.9900, 0.0095)               };               \addlegendentry{green}               \addplot[color=blue,very thick,mark=none] coordinates {                 (-1.0000, 0.2304) (-0.9900, 0.1530) (-0.9800, 0.0966) (-0.9700, 0.0580) (-0.9600, 0.0331)                 ( 0.9500, 0.0001) ( 0.9600, 0.0001) ( 0.9700, 0.0004) ( 0.9800, 0.0009) ( 0.9900, 0.0020)               };               \addlegendentry{blue}               \addplot[color=red,very thick,mark=none] coordinates {                 (-1.0000, 0.0030) (-0.9900, 0.0027) (-0.9800, 0.0023) (-0.9700, 0.0019) (-0.9600, 0.0014)                 ( 0.9500, 0.0000) ( 0.9600, 0.0000) ( 0.9700, 0.0000) ( 0.9800, 0.0000) ( 0.9900, 0.0000)               };               \addlegendentry{red}             }           \end{axis}         \end{tikzpicture}       \end{center}     \end{frame}     \end{document}


title: Aligning several '=' symbols across two lines

text: I'd like to write two lines of equations, each containing two '`=`' symbols, in such a way that the corresponding '`=`' symbols will be vertically aligned. I tried using the `align` environment thus:               \begin{align*}       P^{-1}AP & = P^T\left[\lambda_1p_1, \dots, \lambda_np_n\right] & = \left[\lambda_1P^Tp_1, \dots, \lambda_nP^Tp_n\right]       \\ & = \left[\lambda_1i_1, \dots, \lambda_ni_n\right] & = \textrm{diag}\left(\lambda_1, \dots, \lambda_n\right)     \end{align*}      But this produced this output where the second '`=`' symbols are not aligned. Why aren't they aligned? How can I align them?


title: Background-image on titlepage at upper right corner

text: I am trying to add a background image at the upper right corner of my titlepage with 1cm margins to the top and the right.               \documentclass{article}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[ngerman]{babel}          \title{Test}     \author{Test}     \date{\today}          \usepackage{eso-pic}     \usepackage[demo]{graphicx}          \providecommand*\LenToUnit[1]{#1\@gobble}          \newcommand\AtPageUpperRight[1]{\AtPageUpperLeft{     \put(\LenToUnit{0.5\paperwidth},\LenToUnit{-1cm}){#1}}     }          \begin{document}          \AddToShipoutPictureBG*{      \AtPageUpperRight{\raisebox{-\height}{\includegraphics{logo.pdf}}}     }          \maketitle          \end{document}      Is it possible to right align the image?


title: bibliography numbering

text: I'm using biblatex with the biber as follows               \usepackage[backend=biber,sorting=nyt]{biblatex}      and my references show up beginning with the number 1. I would like to number them starting at the number 0. How can I do this?


title: How to customize cleveref package macro to be consistent when multiple figure references are used in this case?

text: The `cleveref` package does a very nice job of sorting the labels of the many references for you (whatever they are) in their natural order.   However, I was stumbled by a special case when I wanted to refer to _parts_ of a figure that had already letters like A, B, C, D, etc. generated by external program like `Photoshop` or a similar software.   What I want is to refer to these parts of the figure (which are not marked by `LaTeX` as subfigures or subfloats) and still be consistent with the rest of my latex document using the multiple references to figures by `cleveref` package. To illustrate this, you would type this in `LaTeX` when you typically want to refer to multiple subfigures using the `cleveref` package:               \cref{fig:lab1:1, fig:lab1:3, fig:lab1:2}        this would yield the desired typesetting result (normal behavior):               ﬁgs. 1.1a, 1.1b and 1.1c      Please note that `cleveref` sorted out the order of the subfigues, plus it added the type of the reference, `fig.` in this case, and more importantly added `s` because they were more than one reference. Also note that the reference number (`1.1` in this case) was repeated with the different subfigure letters.   Now back to the special occasion, the figure which was already annotated using an external program with (A,B,C,D). It should be obvious that I cannot use multiple references the usual way, since I don't have separate labels for each part of the figure, I only have one label for the whole figure but not for its parts.   Therefore, as a workaround, I tended to use the following code to mimic the output of `cleveref` package had separate labels for the parts of the figure been available:               \cref{fig:lab1}a, \ref{fig:lab1}b and \ref{fig:lab1}c        _BUT_ the output of this code was suboptimal and didn't reproduce the `s` to denote many figures as it should be. More importantly, the output is inconsistent with the rest of the document:               ﬁg. 1.1a, 1.1b and 1.1c      **What is needed:**   1. One alternative is to remove the `s` story from all of the document, i.e., customizing the `cleveref` package so that not to add the `s` wherever multiple references are called out. I would be grateful if you could show me how to do this in code.    2. To fix this inconsistency issue using some other superior solution that I had no idea of (like usual).


title: Embed HTML in LaTeX document

text: Is it possible to run HTML code in a Latex document? Probably not since I never seen it. Soundcloud have an miniplayer that you can embed in your homepage to give the reader the possibility to play a soundtrack while reading. I want to do this in a LaTeX document. Is it possible? Just wanted to check.


title: Inventing New Character for TeX

text: how can I invent a new symbol/character for TeX. For example, say I want to type the Tengwar letter ungwe (2 IV: http://en.wikipedia.org/wiki/File:Tengwar_alphabet.png), or any other symbol that I can draw- how would I go about doing so. I want to be able to use these diverse symbols as variables in a specific document that I am writing (which happens to be for a constructed language). Note: I am not specifically concerned with Tengwar necessarily. So, if Tengwar is already supported in TeX (probably in a package), this will not necessarily and immediately answer my question. I am more concerned with being _generally_ able to, basically, create _any_ set of symbols and call them an alphabet/writing-system (or, more generally, a list of mathematical symbols) and then be able to reproduce them in a document using TeX as if they were any other letters/characters/symbols. For the most part, I am not inventing mathematical symbols for new operations or anything- I just want unique variables rather than the typical Latin, Greek, and Cyrillic ones. I am not sure if this is rephrasing the issue properly (they may be technically different), but naively, I would suppose that I would like to invent a font. I am completely new to TeX.


title: xelatex -shell-escape permission

text: I'm quite confused what means `-shell-escape` option. I'm trying to beutify creating my tikz images (differently from editing PDFs in Photoshop). I'm using `xelatex` and TeXnicCenter. I haven't read shell escape enabling details anywhere. I thought that option is to put into `Command line arguments to pass the compiler` in `Define Output Profiles` in TeXnic. ![MiXtecCenter output profiles](http://i.stack.imgur.com/Nx7bP.jpg) When I run some simple graphics through xelatex, no image is given (standalone convert=true). In log file there is (at the end):               runsystem(xelatex  -shell-escape  -jobname "import" "\expandafter\def\csname sa@internal@run\endcsname{1}\input{import}"     )...executed.          runsystem(imgconvert -density 300 import.pdf  -quality 90 image.png)...executed.                    Class standalone Warning: Conversion failed! Please ensure that shell escape     (standalone)              is enabled (e.g. use '-shell-escape').      Please help!


title: Drawing Graph of Markov Chain with "Patches" using Tikz

text: First time using Tikz. Haven't found any documentation on drawing graphs like these, so I have been reading other examples and trying to modify their code to fit my example. I am trying to reproduce something like this Markov Chain (please excuse my very crude drawing!): ![enter image description here](http://i.stack.imgur.com/NAPXf.png) with edges labeled with probabilities which I've tried to incorporate into my code below:               \documentclass[letter,10pt]     \usepackage{amsmath}     \usepackage{tikz}     \usetikzlibrary{automata}     \begin{document}          \begin{center}     \begin{tikzpicture}[->,>=stealth',auto,semithick,node distance=3cm]     \tikzstyle{every state}=[fill=white,draw=black,thick,text=black,scale=1]     \node[state]    (A)                     {$A$};     \node[state]    (B)[above right of=A]   {$B$};     \node[state]    (C)[below right of=A]   {$C$};     \node[state]    (D)[below right of=B]   {$D$};     \path     (A) edge[loop left]     node{$p^2$}         (A);         edge[bend left]     node{$(1-p)^2$}     (B);         edge                node{$p(1-p)$}      (D);         edge[bend right]    node{$p(1-p)$}      (C);     (B) edge                node{$1$}           (D);     (C) edge                node{$1$}           (D);     (D) edge[loop right]    node{$(1-q)^2$}     (D);         edge[bend right]    node{$q(1-q)$}      (B);         edge[bend left]     node{$q(1-q)$}      (C);         edge                node{$q^2$}         (A);     \end{tikzpicture}     \end{center}      Even though I think my structure is correct, most of the paths don't show up and the labels are jumbled and unreadable. If it's also possible, I'd like to group together states $B$, $C$ and $D$ as a patch called $H$, and call state $A$ patch $G$. Thank you very much for your help!


title: Possibility to ref link different areas of an image to different labels?

text: I have a diagram as an image. There are described different components which are later described and marked with `\label` tags. Can I ref link different areas/sections of one image to different `\label` tags? Or do I have to combine the diagram out of different images and ref them each? I am using the package `hyperref` at the moment.               \documentclass[11pt, a4paper, oneside]{article}          \usepackage{graphicx}     \usepackage{hyperref}          \begin{document}          \includegraphics[scale=0.2]{diagrammPicture.pdf}     % something like    \refInsidePicture{area1}{fromX}{toX}{fromY}{toY}     %                   \refInsidePicture{area2}{fromX}{toX}{fromY}{toY}     %                   \refInsidePicture{area3}{fromX}{toX}{fromY}{toY}     %                   \refInsidePicture{area4}{fromX}{toX}{fromY}{toY}     \section{area1 explained} \label{area1}     \section{area2 explained} \label{area2}     \section{area3 explained} \label{area3}     \section{area4 explained} \label{area4}     \end{document}


title: Installing MinionPro fonts on Ubuntu 10.04 running TexLive 2012

text: I followed the instructions to install MinionPro fonts from this website. http://carlo-hamalainen.net/blog/2007/12/11/installing-minion-pro-fonts/ However, when I tried to run the tex file at the bottom, I have this error message:               ! LaTeX Error: File `MinionPro.sty' not found.      Running the command `kpsewhich MinionPro.sty` gives the following output:               /usr/local/share/texmf/tex/latex/MinionPro/MinionPro.sty      So the system knows where MinionPro.sty is, so why can't the file compile?


title: listings with background color and mathescape broken

text: I have a `listings` environment in my document with `backgroundcolor=\color{grey}` to get a nice grey background and `mathescape=true` for using math symbols. However when using the `\vdots` command inside a code listing I get a break in my listing, as follows:               \documentclass{book}     \usepackage{color}     \definecolor{grey}{rgb}{0.9,0.9,0.9}     \usepackage{listings}     \lstset{%     language=Lisp,     basicstyle=\small,     backgroundcolor=\color{grey},     mathescape=true}          \begin{document}     \begin{lstlisting}     (let ((<$var_1$> <$exp_1$>)           (<$var_2$> <$exp_2$>)           $\vdots$           (<$var_n$> <$exp_n$>))        <$body$>))     \end{lstlisting}     \end{document}      Resulting output: ![enter image description here](http://i.stack.imgur.com/2O9DF.png) So far it's _only_ `\vdots` which is doing this (and it happens multiple times so I know it's not a fluke). Is there a fix for this, or maybe would `minted` work better at this sort of thing? (Although I'd rather not switch if I don't have to.)


title: 1st, 2nd and i-th?

text: Assume I wish to refer to the _i_ -th object, or the _n_ -th function out of some set, where i and n are letters and not numbers (as in "Multiply the $j$th row with the $i$th column and store the result in the $k$th memory cell, where $k=i+j$") How do you suggest to write it? `$n$th` is just confusing, `$n$-th` seems weird, and `$n^{\text{th}}$`, which is my current choice, is (pardon me) simply ugly. Any suggestions?


title: What environment to use in writing formal deductions?

text: Learning about mathematical logic, I have to write formal deductions*. How can I write them using TeX? Any feedback is welcome. * * * (*)Roughly they are numbered lists over two columns, the first one gives a formula and the second one gives its justification (if it is an axiom, a hypothesis or if it is inferred by previous entries), both can go over many rows.   Anyway here is an example (from: Mendelson, Intro. to Math. Logic.) ![enter image description here](http://i.stack.imgur.com/D1IxH.png)


title: Inserting SVG markup directly in LaTeX

text: Is there any package that let inserting SVG markups directly in LaTeX and get result image like:               \begin{svg}[version="1.1"]       <polygon points="100,10 40,180 190,60 10,60 160,180" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:nonzero;"/>     \end{svg}


title: How soon do all CTAN mirrors update for TeX Live Utility to detect the changes?

text: If a new package gets officially recognized with an entry at CTAN today, (on average) when can I typically expect all mirrors to be updated so that TeX Live Utility can detect the changes?


title: Write a column selectively to the appropriate row using pgfplotstable?

text: **Description:** I have a .csv file named `namespgf.csv`               Reg.No.,Name     5501,Kathirvelu A     5502,Gugan K     5503,Kalaitchelvi S     5504,Suresh S     5505,Mahesh K      and another .csv file named `markspgf.csv`               number,marks     5501,67     5502,25     5503,62     5505,95      **Pl. note** that the register number 5504 is not there in `markspgf.csv`. Now I try to copy the `marks` column to the `namespgf.csv` file and typeset a table like this (This is what I want):               Reg.No.     Name                 marks     5501        Kathirvelu A         67     5502        Gugan K              25     5503        Kalaitchelvi S       62     5505        Mahesh K             95      Here, the candidate with register number `5504` has no marks in `markspgf.csv. I want to omit the entry corresponding to that number from my resulting table as above. But this is what I get in my attempt: ![enter image description here](http://i.stack.imgur.com/yy5ul.png) Here is the code (MWE) that produces the table:               \documentclass{article}     \usepackage{pgfplotstable}     \usepackage{filecontents}     %     \begin{filecontents}{namespgf.csv}     Reg.No.,Name     5501,Kathirvelu A     5502,Gugan K     5503,Kalaitchelvi S     5504,Suresh S     5505,Mahesh K     \end{filecontents}     %     \begin{filecontents}{markspgf.csv}     number,marks     5501,67     5502,25     5503,62     5505,95     \end{filecontents}     \begin{document}     %=============================================================================     \pgfplotstableread[col sep=comma]{namespgf.csv}\namespgf     \pgfplotstableread[col sep=comma,verb string type]{markspgf.csv}\markspgf     %     \pgfkeys{/pgfplots/table/verb string type}     % ----------------------------------------------------------------------%     \pgfplotstablecreatecol[copy column from table={\markspgf}{[index] 1},skip first n=1] {marks} {\namespgf}     %     {\centering      \pgfplotstabletypeset[columns={Reg.No.,Name,marks}      ]{\namespgf}     }     %     \end{document}      **The question:** How to omit the entry corresponding to Reg. No. 5504 and put the correct marks in front of Reg. No. 5505? (How to get the table as I explained above)? **Please note** that I want a solution using `pgfplotstable`. The main reason behind this is the size of the data I am dealing with. With this amount of data, `datatool` takes light years to compile and some times, pdflatex runs out of memory. But `pgfplotstable` is fast and and memory efficient.


title: Check if pdf is up to date for git pre-commit hook?

text: It'd be really nice to do a `git commit -m "some stupid broken commit"` and get back a refusal from git, because the latest version of the document hasn't been successfully compiled yet (ie. changes haven't been tested). The git side of this is pretty simple, just a shell script that returns a non-zero exit code. But in order to do that, I need to be able to check whether the pdf is up to date. Apparently it can be done, since if I run `latexmk` after a successful compile, I get:               $ latexmk -pdf -f thesis     Latexmk: This is Latexmk, John Collins, 30 March 2012, version: 4.31.     **** Report bugs etc to John Collins <collins at phys.psu.edu>. ****     Latexmk: All targets (thesis.pdf) are up-to-date      This is nice, and I could just use this in the script (assuming it spits out a usable exit code). But it'd be really nice to be able to do it without latexmk compiling the document if it ISN'T up to date. So, how does latexmk work out that the output file is up to date? Or, is it possible to tell latexmk to _not_ compile, and just check the compilation status?


title: No Counter Theorem1 is defined

text: I got an exception in the following latex code: "No Counter Theorem1 is defined", what is the problem?               \documentclass[conference]{IEEEtran}          \newtheorem{definition}[theorem1]{Definition}     \begin{document}          \title{Title}          \maketitle          \begin{abstract}     %\boldmath     The abstract goes here.     \end{abstract}                         \section{Introduction}     \begin{definition}[dd]     sdfa     \end{definition}               \end{document}


title: Breaking equations in cases environment

text: Similar questions have been asked before, but my problem is a little different:               \begin{equation}     E_K \approx     \begin{cases}     - \sum\limits_{i = 1}^{N} K_1 \bri \left( \mathbf{m \bri} \cdot \unit{u} \bri \right)^2 V_i & \text{(Uniaxial)} \\     \sum\limits_{i = 1}^{N} [ K_1 \bri \left( m_x^2 \bri m_y^2 \bri + m_y^2 \bri m_z^2 \bri + m_x^2 \bri m_z^2 \bri \right) \\ \qquad + K_2 m_x^2 \bri m_y^2 \bri m_z^2 \bri ] Vi & \text{(Cubic)}     \end{cases} \text{.}     \end{equation}      The above code produces an output as shown below: ![enter image description here](http://i.stack.imgur.com/dP1uL.png) The description of the second case is not in the middle. How do I fix this? Also, I should have used `\left[`...`\right]` instead of `[`...`]`. But, that produces an error.


title: How to disable new paragraph at empty line?

text: With the goal of making the latex source easier to parse, I was wondering if one could (locally or globally) disable the latex default behaviour of creating a new paragraph when it encounters an empty line. Obviously, I can always just put a % on empty lines when I don't want a paragraph. Nevertheless, I was wondering if there is a different solution. Finally, I would also like to know if such an alternative solution would be considered good form or not.


title: Increase listings spacing through the package listings or use figure instead?

text: This is more a conceptional question on how to use LaTeX in the right way. So far I have striven to customize only those things in LaTeX which are supposed to be without messing to much with print space. I would like to increase the top and bottom spacing of `listings` to the rest of the text. I inserted a `listing` and it was put directly on to the next line, which is to close to the text. Should I increase this space by using listings option or should I just put it into a `figure`?


title: A.0.1 figure labels in Appendix

text: I have two issues:   1. The figures/tables in my appendix are being labeled `A.0.1` instead of `A.1`. I assume this is because of the convention in my document is `chapter.section.#`. How do I change this for the appendix only?   2. My bibliography is being considered at a higher level than the appendices and it's noticeable in the ToC and the pdf `hyperref` structure.  See my example (Contains LyX document and `.tex` export)


title: vector arrow with superscript

text: I want to have a vector with a superscript:               \vec{o}^t      But this gives very bad results: the t is overlapping with the vector arrow. How do I fix this (and why does this give bad results in the first place) ?


title: biblatex: sentence case and nested quotation marks

text: If a title contains formatting commands, how can we hook in `\MakeSentenceCase` to ensure correct casing and, say, nesting of quotation marks? The example below doesn't work; the quotes are properly nested, but "Quotation Marks" is still title case.               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[american]{babel}     \usepackage{csquotes}     \usepackage[style=authoryear]{biblatex}     \usepackage{filecontents}          \begin{filecontents}{test.bib}     @article{ref,       sorttitle = {Handle Quotation Marks within Article Titles},       author = {Lastname, Firstname},       title = {Handle \mkbibquote{Quotation Marks} within Article Titles},       journal = {Journalname},       volume = {10},       date = {1},       pages = {5--10}}     \end{filecontents}          \bibliography{test.bib}          \DeclareFieldFormat{sentencecase}{\MakeSentenceCase*{#1}}     \renewbibmacro{title}{%         \ifthenelse{\iffieldundef{title}\AND\iffieldundef{subtitle}}{}             {\ifthenelse{\ifentrytype{article}\OR\ifentrytype{inbook}%                 \OR\ifentrytype{incollection}\OR\ifentrytype{inproceedings}}                 {\printtext[title]{%                     \printfield[sentencecase]{title}%                     \setunit{\subtitlepunct}%                     \printfield[sentencecase]{subtitle}}%                     \newunit}%                 {\printtext[title]{%                     \printfield[titlecase]{title}%                     \setunit{\subtitlepunct}%                     \printfield[titlecase]{subtitle}}%                     \newunit}}%         \printfield{titleaddon}}          \begin{document}         \textcite{ref}         \printbibliography     \end{document}


title: background for pgfplots and other tikz constructs

text: The answer to ybar stacked interferes with tikz background raises further questions I solved some of them. With the background commented out the MWE below produces this image: ![enter image description here](http://i.stack.imgur.com/iq2VB.png) With the background commented in, I see ![enter image description here](http://i.stack.imgur.com/j5hfm.png)   * The background is behind the plot, but covers my carefully placed labels.    * The background image must be positioned behind and slightly larger than all the content (including the separately placed title and legend). **Fixed:** making the background a node did the trick.    * The ragged edge should apply to the full background image. **Fixed** Finally, as much of the placement as possible should be computed rather than done by trial and error. I've isolated most of the sizes and positions in macros, but they are still all hard coded. I realize that this is more than one question, but they seem to me to be naturally grouped. Other people like me who need an answer to one of them may need them all. The MWE (not fully minimal since it has my real data).               \documentclass[border=5mm]{standalone}     \usepackage{tikz,pgfplots}     \usepackage{pgfplotstable}     \usepackage{mwe}          \usetikzlibrary{calc,decorations.pathmorphing}          %Use the new axis label placement features     \pgfplotsset{compat=1.8}               \usepackage{helvet}     \usepackage[eulergreek]{sansmath}          \begin{document}          \pgfdeclarelayer{background}     \pgfsetlayers{background,main}           \pgfplotstableread[col sep=comma]{     category, mass, other     {dollars\\\$3.14m}, 31, 69     {donors\\56k}, 21, 79     }\warren          \newcommand{\plotsize}{width=6cm, height=5cm}     \newcommand{\boxsize}{(6,5)}     \newcommand{\boxspot}{(-2,-2)}     \newcommand{\titlepos}{(2.0,-1.5)}      \newcommand{\legendpos}{(0.17, -0.02)} %fraction of plotsize          \pgfplotsset{every axis legend/.append        style={at={\legendpos},anchor=north west,fill=none}     }          \tikzset{     pencildraw/.style={ %         decorate,         decoration={random steps,segment length=6pt,amplitude=3pt}         } %     }          \begin{tikzpicture}[font=\sffamily\sansmath]     \path[clip,pencildraw] \boxspot rectangle \boxsize;     \begin{axis}[          clip=false,         ybar stacked,         ymin=0,         ymax=100,         bar width=35pt,         enlarge x limits={abs=20pt},         \plotsize,         hide y axis,         axis x line*=top,         axis line style={opacity=0},         xtick style={opacity=0},         xtick=data,         xticklabel style={align=center},         xticklabel pos=upper,         xticklabels from table={\warren}{category},         nodes near coords={\pgfmathprintnumber{\pgfplotspointmeta}\%},         nodes near coords align={anchor=east,xshift=-5.5mm,yshift=-3mm},         point meta=explicit,         ]       \legend{Massachusetts, out of state};       \addplot [fill=blue] table [x expr =\coordindex, y=mass, meta=mass] {\warren};       \addplot [fill=yellow] table [x expr =\coordindex, y=other,         meta=other]{\warren};         \pgfplotsextra{\begin{scope}[on layer=axis background]        \node{   {\includegraphics[scale=1.5]{example-image-A}}};     \end{scope}}     \end{axis}      \node at \titlepos {\large Elizabeth Warren's Fundraising};     \end{tikzpicture}     \end{document}


title: XeTeX not recognizing some commands, yet output is fine

text: I am trying an example of Arabic script in XeTeX. I use TeXstudio. The output is displayed fine, but there are some "unrecognized commands". MWE:               \documentclass[a4paper,12pt]{article}     \usepackage{polyglossia}     \setmainlanguage{arabic}     \setotherlanguage{english}     \setmainfont[Ligatures=TeX]{Amiri}     \newfontfamily\arabicfont[Script=Arabic]{Amiri}     \pagestyle{headings}          \title{مثال بسيط Example Simple}     \author{اسمي}          \begin{document}     \maketitle     \section{القسم الأول}     هنا نبدأ باسم الله. وهذه كلمة انجليزية: Hi تعني: مرحباً.\\     \textenglish{I am here.}      \end{document}      The unrecognized commands (highlighted in RED in TeXstudio) are: `\setmainlanguage, \newfontfamily\arabicfont` and `\textenglish`. There are NO error messages though.


title: Nodes linked by a horizontal arrow in enumerate environment

text: Alright, here's what I need. I need links between nodes _a la_ `tkz- linknodes`, but, unlike that package, I need linking arrows that appear **beneath** the sentence as opposed to linking arrows that appear in the right margin. And here's another constraint. I would like this to work in an `enumerate` environment. So, for example, I would like to be able have something like this                   \begin{quote}         \begin{enumerate}         \item[(1)] \node{A man} walked in. \node{He} sat down.          \end{enumerate}         \end{quote}      where there is an arrow that starts with the pronoun _he_ and which then points back to the noun phrase _a man_. And like the arrows in `tkz- linknodes`, I want this to be a non-curved arrow with right angles. Maybe this can be done easily in TiKz, but I'm having trouble doing this in a way that plays nice with the `enumerate` environment and I can't seem to get `tkz-linknodes` to do this either. Any help would be greatly appreciated!


title: Start with page two in LaTeX book

text: I need to not have a page number for title but my second page should start with roman numeral 2. I tried               \setcounter{page}{1}     \thispagestyle{empty}      but it would not work and it hides the page number for title page but it does not start with page 2 afterwards.


title: bibnewpage option using apacite not working

text: I am having difficulty with getting the references to show on a new page using apacite. According to the documentation the bibnewpage option should do it, but it is not happening. It is displaying the citation and references fin, just not showing it on a new page. I am also have the natbibapa option.               \documentclass{article}          \begin{filecontents}{test.bib}     @article{author99,     title = {A fine title},     year = {1899},     author = {An Author and Another Bauthor and Yeta Cauthor},     journal = {Madness}     }     @article{author05,     title = {The best title},     year = {1905},     author = {An Author and More Dauthors and Whois Thisauthor and Heis Thatauthor},     journal = {Insanity}     }     \end{filecontents}          \documentclass{apa6e}     \usepackage[american]{babel}          \usepackage[natbibapa,bibnewpage]{apacite}          \usepackage{comment}          \begin{comment}     citation commands     \citep Parenthetical citation     \citet Text citation     \citeauthor Author only (text citation)     \citeyear Year only (no parentheses)     \citeyearpar Year citation (with parentheses)     \citealp Parenthetical citation without the parentheses     \citealt Text citation without the parentheses     \citenum Number of the reference     \nocite No citation, only reference list entry     \Citep etc. Capitalized citation     \citep* etc. Full author lists     \shortcites Short author lists     \defcitealias Dene alias (e.g., DSM-IV )     \citepalias Parenthetical citation of alias     \citetalias Text citation of alias     \citetext Arbitrary text within citation parentheses     \end{comment}          \bibliographystyle{apacite}          \begin{document}               \title{Title of Paper}     \shorttitle{Short title}     \author{Name}     \authornote{This is an assignment for .}     \abstract{abstract text }     \date{\today} % or \date{24Jan11} for example               The time has come for all good men to come to the aid of their country test      \citep{author05}.  According to \citet{author05}, the time has come for all good men to come to the aid of their country.                    \bibliography{./test}     \end{document}     ...      Note, according to the APA 6 manual (p. 36), "Start the reference list on a new page. The word References should appear in uppercase and lowercase letters, centered. Double-space all reference entries. APA publishes references in hanging indent format, meaning that the first line of each reference is set flush left and subsequent lines are indented." Using the apa6e and apacite with the bibnewpage option does not produce a reference list on a new page. It puts the reference list after the last paragraph on the same page. I tried to enter a \newpage before the bibliography , but that didn't work. Thanks!


title: Using a font sizing command in \addcontentsline does not work for ccfonts or cmbright

text: If you comment out \large in the code, it works. The toc level doesn't matter. Any thoughts?               \documentclass{article}          %\usepackage{ccfonts}     \usepackage{cmbright}          \begin{document}                     \addcontentsline{toc}{section}{{%                        \large                         foo\hfill}}%          \end{document}


title: Setting minimal number of references for cleveref's compression feature

text: I am using `cleveref` for cross-referencing. The default `sort&compress` option compresses _three or more_ consecutive references into a range. I would like to get this compression already for _two_ consecutive references:               \documentclass{article}          \usepackage{amsmath}     \usepackage[nameinlink,sort&compress]{cleveref}          \newcommand*{\crefrangeconjunction}{--}    %% instead of the default ' to\nobreakspace'     \newcommand*{\crefpairconjunction}{, }     %% instead of the default ' and\nobreakspace'          \begin{document}     \begin{align}       a & = b \label{eq:1}\\       c & = d \label{eq:2}\\       e & = f \label{eq:3}\\       g & = h \label{eq:4}\\       i & = j \label{eq:5}     \end{align}          \cref{eq:1,eq:2,eq:4,eq:5} default behaviour          eqs. (1)--(2), (4)--(5) looks better, IMHO.     \end{document}      ![sample output](http://i.stack.imgur.com/UWd6R.png)


title: How to create a section whose title looks different in the table of content?

text: I'm writing my thesis, and one of the sections has a title which looks good in the table of content, but it's too long in the main text, so that it goes on the new line by hyphenating one of the words. More in specific, it looks like this: In the toc: 2.1 Conservative Extensions and Inseparability Relations In the main text: 2.1 Conservative Extensions and Inseparability Re- lations I would like still to have 1 line in the toc, but to decide where to go on the new line in the main text. Do you have any suggestion? I don't even know how to google for this problem...


title: Landscape forces position of floats

text: I have a couple of large figures, which I'd like to put on separate pages in landscape mode.               \usepackage{lscape}          ...          \begin{landscape}     \begin{figure}[!t]       \centering       ...     \end{figure}     \end{landscape}      The problem is that when I wrap the `figure` in a `landscape` environment, it stops floating. `Landscape` creates a landscape page exactly in the place where it is expanded and `figure` is forced into it. At the moment I'm dealing with this by moving these figures around manually but I wonder if there is any way of making latex handle them the same way as any other floating figures (i.e. ones without `landscape` environment).


title: Setting page number with fancy without lastpage package

text: I am using the following code to generate footer with fancy to show the page number               \documentclass[twoside,a4paper,10pt]{article}     \usepackage{lastpage}     \usepackage{fancyhdr}     \pagestyle{fancy}%     \renewcommand{\headrulewidth}{0.1pt}     \renewcommand{\footrulewidth}{0pt}          \renewcommand{\sectionmark}[1]{%     \markright{#1}{}}          \fancypagestyle{plain}{%     \fancyhf{}     \fancyfoot[R]{\thepage/\pageref{LastPage}}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt}}     \fancyhf{}     \fancyhead[L]{\rightmark}     \fancyhead[R]{\leftmark}     \fancyfoot[R]{\thepage/\pageref{LastPage}}     \renewcommand{\headrulewidth}{0.1pt}     \renewcommand{\footrulewidth}{0pt}      This works in my local computer since I have the `lastpage` package installed. But I need to run LaTeX on the server where I don't have the `lastpage` and I don't have right to install the package. So is there any way to implement the same thing without the `lastpage` package? Here I upload the complete code but I just find that if there is any \newpage command, it won't compile, is that any way to fix this?               \documentclass[twoside,a4paper,10pt]{article}     \usepackage{hyperref}     \usepackage{lastpage}     \usepackage{fancyhdr}          \pagestyle{fancy}     \renewcommand{\headrulewidth}{0.1pt}     \renewcommand{\footrulewidth}{0pt}          \renewcommand{\sectionmark}[1]{     \markright{#1}{}}          \fancypagestyle{plain}{     \fancyhf{}     \fancyfoot[R]{\thepage/\pageref{LastPage}}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt}}     \fancyhf{}     \fancyhead[L]{\rightmark}     \fancyhead[R]{\leftmark}     \fancyfoot[R]{\thepage/\pagenum{LastPage}}     \renewcommand{\headrulewidth}{0.1pt}     \renewcommand{\footrulewidth}{0pt}          \begin{document}       \title{XXX}       \author{YYY}       \maketitle            This is first page        %\newpage  % it won't compile if \newpage was there            This is second page       %\newpage % if won't compile if \newpage was there            This is last page          \end{document}


title: Align environment

text: I'd like to ask how in align environment to number only one of the equations.               \begin{aligned}     \mathsf{E}[W^{i}_{t}-W^{i}_{s}]&=0,\\     \mathsf{E}\big[[W^{i}_{t}-W^{i}_{s}][W^{j}_{t}-W^{j}_{s}]\big]&=q_{ij}(t-s),\quad     1\le i,j\le n,\, 0\le s<t.     \end{aligned}      One more question. (The first one has already been sorted out). How can I break page in the align environment?


title: debug No room for a new \write problem

text: I have a template with an extensive documentation. (See TemplateDocumentation.pdf). It compiled several month ago. Now with updated packages it does not compile anymore because of the famous _No room for a new \write problem_. Before everything was already tuned such that all writes are used. I had to disable packages to make it compile (and thus give up functionality). Now I can test that disabling for example pgf/tikz solves the original problem. But I would rather not give up pgf/tikz in my template... Note that I do not use the external package of tikz. So the basic question is how to find out which packages are actually using \write. Some must have introduced an file output or consume more than before. The code fails at that first time the `filecontents` package is used. A minimal example for this problem is currently not available and would be really hard to create, Basically because the code basis is so huge. I use this code to make writes less a problem, but it solves nothing really               \usepackage{morewrites}     % see http://www.tex.ac.uk/cgi-bin/texfaq2html?label=noroom     \usepackage{etex}      \reserveinserts{28}      The packages I know of which use a \write and which I load are   * tikz/pgf   * imakeidx   * glossaries   * listings   * titletoc The complete list of packages can be found in my documentation (see link) on page 240.


title: Beamer: problems with \only, \pause, and fixed spacing

text: I have a slide with three blocks, say 1, 2, 3a, and 3b, where 3a and 3b have exactly the same height (they are the same equation with some change of variable). I want to use \pause and \only to obtain the following: only 1 (click) -> only 1 and 2 (click) -> 1, 2, and 3a (click) -> 1, 2, and 3b while maintaining the exact same positioning of each block as in the last two slides. Here is my tentative example: what happens is that Block 1 and Block 2 appear in the center of the slide as no third block is going to appear.               \begin{frame}[c]{Title}          Block 1          \pause          Block 2          \pause          \only<3>{     Block 3a     }          \only<4>{     Block 3b     }          \end{frame}


title: increase vertical distance between nodes with forest

text: I have the following tree and want to increase the vertical space between the nodes. Is there a straightforward way to do this?               \documentclass{article}                                         \usepackage{forest}     \forestset{     sn edges/.style={for tree={parent anchor=south, child anchor=north,align=center,base=bottom,where n children=0{tier=word}{}}},      background tree/.style={for tree={text opacity=0.2,draw opacity=0.2,edge={draw opacity=0.2}}}     }                    \begin{document}          \begin{forest}     sn edges     [D-Struktur,edge label={node[midway,right]{move $\alpha$}}        [S-Struktur             [Tilgungsregeln{,}\\Filter{,} phonol. Regeln                     [Phonetische\\Form (PF)]]             [Regeln des anaphorischen Bezugs{,}\\der Quantifizierung und der Kontrolle                     [Logische\\Form (LF)]]]]     \end{forest}          \end{document}


title: Kp-fonts package used font

text: Which is the font used in Kp-fonts package? I would to know what's the name of the fonts provided by the `kpfonts` package. I can't understand if kp-fonts is just package's name or also the font's name!


title: Using \hyphenation and umlauts

text: I have included the `ngerman` package and I write               \hyphenation{An-fangs-n"a-he-rung}      into the preamble of my document. However, latex complains with               !Improper \hyphenation will be flushed.     \grmn@OTumplayt ->\protect                                \newumlaut     l.3 \hyphenation{An-fangs-n"a                                  -he-rung}     ?      How can I fix this? By the way: I'm using the document class `scrartcl`. **EDIT:** The following minimal not-working example leads to this error message:               \documentclass{scrartcl}     \usepackage{ngerman}     \hyphenation{An-fangs-n"a-he-rung}     \begin{document}     Es soll das Wort names Anfangsn"aherung richtig getrennt werden.      \end{document}


title: How to achieve this Beamer style?

text: I think the attached slide used the following `beamer` settings:               \usetheme[]{Frankfurt}   % or berlin     \usecolortheme{beaver}  % red color      However, I have several questions:   1. How to customize the foot-line to: Topic + Author (email) + Institute + Page Number?   2. How to make the background colour of the logo matching the beamer colour theme? My institute logo is a `JPG` file and the background colour is white. If the `beamer` theme colour is NOT white, then an area of white colour will appear in the title. I think `SVG` file will solve this problem, but latex does not support this format. If we convert the `SVG` file to jpg/png format, the white background colour will appear again! How to figure this out? **Update** : including `logo` in `pdf` format solves the problem 2. ![enter image description here](http://i.stack.imgur.com/NQ42N.png)


title: Errors when plotting a bar chart

text: This is my crude attempt to create a graph from copied example. I want to plot the diseases on the Yy axis and QoL scores on x axis. It has resulted in errors. Could anyone be kind enough to point out the problems?               \documentclass[tikz]{standalone}          \usepackage{pgfplots}          \begin{document}          \pgfplotstableread[row sep=\\,col sep=&]{         Disease &    Score                                      \\         Untreated HT&  108  \\         Normal man &   105\\         Normal woman & 104\\         CHF (mild) & 95  \\         Angina pectoris & 88 \\         Untreated DU   & 83 \\       Untreated GER  &  82 \\       Psychiatric disease & 62 \\            }\mydata          \begin{tikzpicture}         \begin{axis}[                 ybar,                 bar width=.5cm,                 width=\textwidth,                 height=.5\textwidth,                 legend style={at={(0.5,1)},                     anchor=north,legend columns=-1},                 symbolic x coords={60, 65, 70, 75, 80,85, 90, 95, 100, 105, 110},                 xtick=data,                 nodes near coords,                 nodes near coords align={vertical},                 ymin=60 ,ymax=110                 ylabel={},             ]             \addplot table[x=score, y=Disease]{\mydata};              \end{axis}     \end{tikzpicture}     \end{document}


title: ï & î font encoding

text: I've one problem in my scrbook, ï and î don't work when I compile my `\printbibliography`. But the problem come only with these 2 accents… ![Begin of my bibliography](http://i.stack.imgur.com/zwF2a.png) I export my .bib from Papers2 for Mac application, & I use TexShop, UTF8 encoding, & I'm newbie with Biber & Biblatex. Please help ! Thank you. My ref :               @book{GoncalvesdaCosta:2000tw,     author = {Goncalves Da Costa, H{\'e}lo{\"\i}sa},     title = {{Les mus{\'e}es d'histoire de ville leur contribution au d{\'e}veloppement social contemporain.}},     publisher = {Universit{\'e} du Qu{\'e}bec {\`a} Montr{\'e}al},     year = {2000},     address = {Montr{\'e}al}}      My minimal config :               % !TEX encoding = UTF-8 Unicode     \documentclass[12pt]{scrbook}          \usepackage[english,frenchb]{babel}                  \usepackage[quiet]{fontspec}              \usepackage[automark]{scrpage2}     \usepackage[babel,french=guillemets*]{csquotes}      \usepackage[backend=biber,style=authortitle-ticomp,doi=false]{biblatex}          \frenchbsetup{FrenchFootnotes=false}     \MakeOuterQuote{"}          \setmainfont[Mapping=tex-text, Ligatures={Common, Rare}, Numbers={OldStyle}]{Adobe Garamond Pro}          \addtokomafont{disposition}{\normalfont}     \addtokomafont{pageheadfoot}{\normalfont}            \addtokomafont{pagenumber}{\normalfont}      \addtokomafont{footnote}{\normalfont}                    \addtokomafont{footnotereference}{\normalfont}          \addbibresource{Biblio.bib}                  \AtBeginBibliography{\def\UrlFont{\scriptsize}}          \begin{document}     "Héloïse"\footcite{GoncalvesdaCosta:2000tw}.     \printbibliography     \end{document}


title: Using htlatex with tikz-dependency

text: I am trying to generate an html file from a tex file using htlatex. The htlatex works well with simple tikz pictures, but it has problem with the pictures (trees) drawn with tikz-dependency package. Here is my code copied from tikz-dependency manual.               \documentclass{article}     \def\pgfsysdriver{pgfsys-tex4ht.def}          \usepackage{tikz,graphicx,tikz-dependency}     %\usetikzlibrary{external}     \begin{document}     \begin{dependency}     \begin{deptext}[column sep=.5cm, row sep=.1ex]     PRP\$ \& NN \& RB \&[.5cm] VBZ \& VBG \& NN \\     My \& dog \& also \& likes \& eating \& sausage \\     \end{deptext}     \deproot{4}{root}     \depedge{2}{1}{poss}     \depedge{4}{2}{nsubj}     \depedge{4}{3}{advmod}     \depedge{4}{5}{xcomp}     \depedge{5}{6}{dobj}     \wordgroup{2}{4}{4}{pred}     \wordgroup{2}{1}{2}{a0}     \wordgroup{2}{5}{6}{a1}     \groupedge[edge below]{pred}{a0}{ARG0}{4ex} % pred -> a0 (ARG0, 4ex)     \groupedge[edge below]{pred}{a1}{ARG1}{6ex} % pred -> a1 (ARG1, 6ex)     \end{dependency}          \begin{dependency}     \begin{deptext}[column sep=0.2cm]     My \&[.5cm] dog \& also \&[.7cm] likes \&[.4cm] eating \& sausage \\     \end{deptext}     \depedge{2}{1}{poss}     \depedge{4}{2}{nsubj}     \depedge{4}{3}{advmod}     \depedge{4}{5}{xcomp}     \depedge{5}{6}{dobj}     \end{dependency}     \end{document}      For second example, I get a nice tree, though without terminal-nodes (words). The first code throws an error in html. htlatex also doesn't work with qtree and xytree packages! Any help is highly appreciated. This thing is really getting on my nerves!


title: Can I make a "deep copy" of a macro?

text: I would like to make a deep copy of macro that I don't have control of, because various packages might change it. So I want to take the current meaning of the macro, patching it, but without changing the original macro. Something along the lines of               \deepcopy\mylabel\label     \patchcmd{\mylabel}{\thepage}{\thepage+1}{}{}      How can I achieve that?


title: What is the difference between \let and \edef?

text: When you write               \edef\a{\b}     \let\a\b      the results are often identical. What is the difference between these two commands? When do they behave the same? When do they not? (The question isn't for me; inspired by this question comparing `\let` and `\def`, I'm asking this question so it can be used as a reference to point people towards in the future.)


title: Tool to visualize connections between bibtex entries

text: I'm searching a tool to visualize connections between bibtex entries, for example same autor, references, same conference etc. The Visual Explorer from Microsoft has this feature, but I want to create those visualizations for my bibliography :-) I can use tags and "intelligent folders" in my management software of course but I prefer a graph visualization.


title: A dangerous \if@ in the dtx preamble

text: Why does the following `.dtx` not compile, while the equivalent `.tex` file does? (You must name the file `error.dtx`, that's what `\DocInput` includes.) DTX:               % \iffalse meta-comment     %<*driver>     \documentclass{ltxdoc}     \input pgfutil-common     \makeatletter     \def\myitem#1{%       \pgfutil@in@{,}{#1}%       \ifpgfutil@in@         \myitem@#1\@end       \else         \myitem@#1,\@end       \fi     }     \def\myitem@#1,#2\@end{\item\texttt{#1}\quad\marginpar{\small\it#2}}     \makeatother     \begin{document}       \DocInput{error.dtx}     \end{document}     %</driver>     % \fi     % \begin{description}     %   \myitem{align,key} This is documentation for key \emph{align}.     % \end{description}     % \endinput      LaTeX:               \documentclass{ltxdoc}     \input pgfutil-common     \makeatletter     \def\myitem#1{%       \pgfutil@in@{,}{#1}%       \ifpgfutil@in@         \myitem@#1\@end       \else         \myitem@#1,\@end       \fi     }     \def\myitem@#1,#2\@end{\item\texttt{#1}\quad\marginpar{\small\it#2}}     \makeatother     \begin{document}       \begin{description}         \myitem{align,key} This is documentation for key \emph{align}.       \end{description}     \end{document}


title: pgfplot Boxplot How to change the thickness of median

text: Is there a way to change the thickness of median line in box plot. I am using the code given in Pgfplot : change the distance between 2 adjacent boxes in box plot


title: matrices too big to fit the width of a page

text: When I type matrices in `beamer` class, they are often too big to fit the width of a page. What is the way to make the matrices smaller? I also want to make the font of the entries of these matrices smaller. I used               \[ \scriptscriptstyle     M_{1,k}  = \frac{1}{15} \left(             \begin{array}{cccccccc}              0 & 0 & 0 & 0 & 0 & 0  \\              0 & 12k b_0 & (12k+15) b_1 & (12k+30) b_2 & (12k+45)  b_3 & (12k+60) b_4  \\              0 & 0 & 0 & 0 & 0 & 0   \\              0 & 2k  a_0 & (2k+5)  a_1 & (2k+10)  a_2 & 0 & 0   \\             \end{array}           \right)     \]      But it only makes the scaler 1/15 smaller, not the entries of this matrix. Is there a way to make the entries smaller, without typing `\scriptstyle` for each entries? Maybe something we can change the whole size by 75%, 50% of the content in `\begin{equation}...\end{equation}`


title: pgfplots trim to axis area even with extra ticklabels

text: I have a plot with extra x tick labels on top in `pgfplots` that i wish to display in a figure at the top of my page. I wish to have the top of the actual axis rectangle directly at the top, with the extra tick label protruding into the top margin. Since i am using `tikz- externalize` i dont think a simple \vskip will work, plus since not all the ticklabels have the same length, id prefer something universal. ideally there would be something like the `[trim axis left]` setting just with `[trim axis top]`. is there some way to implement something similar? example with margins shown: (https://www.writelatex.com/186618fknbff)               \documentclass[12pt]{article}     \usepackage{pgfplots}     \pgfplotsset{compat=1.5}     \usepackage{blindtext}     \usepackage[showframe]{geometry}     \begin{document}     %     \begin{figure}[t]     \centering     \begin{tikzpicture}[trim axis left,trim axis right]     \begin{axis}[     extra x ticks={60},     extra x tick labels ={\rotatebox{90}{ESB}},     extra x tick style  = { tick pos=right, grid=major, ticklabel pos=right},     xlabel=testlabel,     scale only axis,     width=\textwidth,     height=5cm     ]     \addplot coordinates {     (0.1, 4)     (0.5, 2.5)     (1, 7.5)     (2, 2.6)     (3, 5.6)     (7, 1.4)     (17, 4.3)     (40, 1.4)     (92, 3.3)     };     \end{axis}     \end{tikzpicture}     \caption{testcaption}     \end{figure}     %     %     \begin{figure}[t]     \centering     \begin{tikzpicture}[trim axis left,trim axis right]     \begin{axis}[     extra x ticks={60},     extra x tick labels ={\rotatebox{90}{ESBaaaaaa}},     extra x tick style  = { tick pos=right, grid=major, ticklabel pos=right},     xlabel=testlabel,     scale only axis,     width=\textwidth,     height=5cm     ]     \addplot coordinates {     (0.1, 4)     (0.5, 2.5)     (1, 7.5)     (2, 2.6)     (3, 5.6)     (7, 1.4)     (17, 4.3)     (40, 1.4)     (92, 3.3)     };     \end{axis}     \end{tikzpicture}     \caption{testcaption}     \end{figure}     %     \Blindtext     %     \end{document}      (there seems to be some bug as well that shifts the x axis label down as if the extra tick label were at the bottom but that is easily corrected by an xlabel shift for now)


title: biblatex-verbose: edition as superscript in front of year

text: I’m using `biblatex` and Biber, and modifying the `verbose` style. I’m having trouble with the placement and formatting of the edition: The edition should appear immediately in front of the year, without any “rd”, “th” etc., and without a space in between edition and year. I’ve been trying to fix this for a good while and I can post one or two MWEs of attempted solutions if it should help, but I’m afraid they’d be more confusing than helpful. Below is an unadulterated MWE to start with. The relevant bibmacros seem to be in `standard.bbx`.               \documentclass{article}          \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @incollection{foo,         author = {A. Author},         title = {Foo},         booktitle = {Book},         location = {North Pole},         date = {2013},         edition = {7},     }     \end{filecontents}          \usepackage[style=verbose, backend=biber]{biblatex}         \addbibresource{\jobname.bib}          \begin{document}          \nocite{foo}          \printbibliography          Should be: North Pole, \textsuperscript{7}2013          \end{document}      ![output](http://i.stack.imgur.com/5Gvwn.png)


title: item formatting in description list

text: How can I get this to work:               \begin{description}         \item[\texttt{foo :: a \rightarrow b}] bla     \end{description}      without having to write:               \begin{description}         \item\ttfamily[foo~::~a~$\rightarrow$~b]\normalfont~bla     \end{description}      ?   * \ttfamily: for typewriter formating   * ~: to get the spacing right(??)   * $: to activate math mode   * \normalfont: to get back to normal   * last ~: insert simple space(??) or how would you list some function definitions and append a description for the functions?


title: Algorithm with chapter number

text: I want the algorithm to be prefix with chapter say in chapter 1, it should be 1.1, 1.2, for chapter 2, it should be 2.1, 2.2 But for my case, i only have 1,2,3,... across all chapters, how should I change it? The include package is listed as followed:               \usepackage[ruled,vlined,linesnumbered,algo2e,resetcount,algochapter]{algorithm2e}      Here is the minimal working example               \documentclass[11pt]{book}     \usepackage{bigstrut}     \usepackage{stmaryrd}     \usepackage{tipa}     \usepackage{amssymb}          \usepackage{textcomp}     \usepackage{times}     \usepackage{pifont}     \usepackage{amsfonts}          \usepackage{makeidx}     \usepackage{moreverb}     \usepackage{calc}     \usepackage{dsfont}               \usepackage{tikz}     \usepackage{color}     \usepackage{etex}     \usepackage{ctable}     \usepackage{bigstrut}     \usepackage{pifont}     \usepackage{amsfonts}     \usepackage{makeidx}     \usepackage{moreverb}     \usepackage{scalefnt}     \usetikzlibrary{shapes.geometric, positioning, fit, calc}          \usetikzlibrary{decorations.markings}          \usepackage{scalefnt}     \usepackage{pgf}     \usepackage{graphicx}     \usepackage{pgfplots}     \usepackage{verbatim}     \usetikzlibrary{         shapes.geometric,         positioning,         fit,         calc     }     \usepackage{amsmath}                    \usetikzlibrary{arrows,automata,positioning,shapes,patterns}          \usepackage{etex}     \usepackage{amsmath, url, proof} % mathabx,     \usepackage{textcomp}     \usepackage{listings}     \usepackage{float}     \usepackage{multirow}     \usepackage[ruled,vlined,linesnumbered,algo2e,resetcount,algochapter]{algorithm2e}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows,positioning}     \usepackage{wrapfig}     \usepackage{graphicx}     \usepackage[latin1]{inputenc}     \usetikzlibrary{trees}     \usepackage{verbatim}     \usetikzlibrary{trees,decorations.pathmorphing}     \usepackage{listings}     \usepackage[T1]{fontenc}     \usepackage[scaled]{beramono}     \usepackage{lipsum}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                   \def\pgfsysdriver{pgfsys-dvipdfm.def}     \usepackage{pgfplots}     \pgfplotsset{compat=1.3}     \usepackage{epsfig}     \usepackage{pgf}     \usepackage{tikz}     \usetikzlibrary{arrows,automata,positioning}     \usepackage{epsf}     \usepackage{amsmath,amssymb,amsfonts} %     \usepackage{graphicx}          \usepackage{ltlfonts}     \usepackage{textcomp}     \usepackage{color}     \usepackage{chngcntr}          \usepackage{latexsym} % latex symbols     \usepackage{amsthm} % for defining theorems     \usepackage{syntonly} % verify syntax, not very important     \usepackage{lscape}           \usepackage{algpseudocode}     \usepackage{algorithm}     \usepackage{caption}     \usepackage{subcaption}% http://ctan.org/pkg/subcaption     \captionsetup{compatibility=false}     \DeclareCaptionSubType*{algorithm}     \renewcommand\thesubalgorithm{\thetable\alph{subalgorithm}}     \DeclareCaptionLabelFormat{alglabel}{Alg.~#2}               \usepackage{pxfonts, pifont} % About fonts     \usepackage{setspace}          \usepackage{graphics}     \usepackage{multirow} % To write complicated tables     \usepackage{colortbl} % Colors     \usepackage{rotating} % For rotating tables          \usepackage{verbatim} % Comment Environment                           % eg. \begin{comment}                           %     \end{comment}          \usepackage{mdwlist}          %%          \usepackage[titletoc]{appendix}          \usepackage{url}          \usepackage{style/mythesis}     \usepackage{lscape}          \usepackage{listings}     \newcommand{\myfontsize}{\fontsize{9}{10}\selectfont}     \usepackage[backref=section,colorlinks=true,hyperfootnotes=false]{hyperref}       \hypersetup{                 colorlinks,%                 citecolor=black,%                 filecolor=black,%                 linkcolor=black,%                 urlcolor=black,breaklinks = true, %                 pdfprintscaling = None, %                 unicode = true, %                 bookmarksnumbered = true,           }               \setcounter{secnumdepth}{3}          \interfootnotelinepenalty=10000                                        \begin{document}               \newpage     \pagenumbering{roman}     \singlespacing{ \listofalgorithms     \addcontentsline{toc}{section}{\numberline{}\hspace{-.35in}{\bf List     of Algorithms}}}           \doublespacing                    \chapter{chapter1}~\label{a1}     \begin{algorithm}[H]     \centering     a     \caption{algo}\label{algo1}     \end{algorithm}          \chapter{chapter2}~\label{a2}     \begin{algorithm}[H]     \centering     a     \caption{algo}\label{algo2}     \end{algorithm}          \begin{algorithm}[H]     \centering     a     \caption{algo}\label{algo3}     \end{algorithm}          \end{document}


title: Why don't this two consecutive draw commands with angle generate parallel lines?

text: Consider the added minimal example, I was expecting it to generate two parallel lines. The ending result however is that the second line start at the end of the first in what I assume is the relative angle. I have no idea how the length is determined. I've also attached a figure of my results. So, as the title ask. Why won't this two line be parallel?               \documentclass{article}     \usepackage{tikz}     \usepackage{graphicx}          \begin{document}          \begin{figure}       \begin{tikzpicture}         \draw  (-1.5,-0.1) -- (51:1.9);         \draw  (1.5,-0.1) -- (51:1.9);         \node at (-1.5,-0.1) {a};       \end{tikzpicture}     \end{figure}               \end{document}      The output of the simple code ![enter image description here](http://i.stack.imgur.com/ASgVB.png)


title: Preserving "\label" in the final PDF to retrieve it with poppler?

text: Our PDF contains lots of `\label{foo}` commands, where we jump to from links from within the PDF (using the _hyperlinks_ package) When I tried to jump to there from within our PDF displaying application, which uses the Poppler library, I however failed to find that label.               // C++ code to find the label 'foo' in the document     Poppler::LinkDestination *linkDest = m_doc->linkDestination("foo");      When I instead tried to use the `\hyperdef` command, I was able to do what I wanted               \hyperdef{foo}{bar}{}      Doing in our PDF application               Poppler::LinkDestination *linkDest = m_doc->linkDestination("foo.bar");      Can anyone please explain the technical difference between these commands? We would like to be able to keep using `\label` if possible, since we have a large LaTex codebase that uses it.


title: LaTeX figure labeling in tables

text: I have 6 figures in a 2x3 table which, inclucing the caption, fill one page nicely. I would like to label them with a), b), c) at the top left of every row. I experimented with subfigures, but didn't get it done. In some way, the `caption` package also conflicts with the `subcaption` package. This is what I have at the moment. I appreciate any hints!               \usepackage{hyperref}     \usepackage[labelfont=bf]{caption}     %\usepackage{subcaption}     \usepackage{subfig}          \begin{figure}     \centering     \begin{tabular}{cc}     \subfloat{\includegraphics[width=0.5\linewidth]{1}} &      \subfloat{\includegraphics[width=0.5\linewidth]{2}} \\     \subfloat{\includegraphics[width=0.5\linewidth]{3}} &      \subfloat{\includegraphics[width=0.5\linewidth]{4}} \\     \subfloat{\includegraphics[width=0.5\linewidth]{5}} &      \subfloat{\includegraphics[width=0.5\linewidth]{6}}      \end{tabular}     \caption{x}     \label{x}     \end{figure}


title: Changing bibliography styles locally

text: Is it possible to change the bibliography style locally in a document from author-year to numbered citation. I have used Apalike in the thesis that I am writing now, but there are two tables which contain a lot of references. Thus, it would be handy to have numbered citations in the table. for instance:               % Preamble:     \documentclass[global, referee]{svjour}     \usepackage{ragged2e}     \usepackage{float}     \usepackage[table]{xcolor}     \usepackage{amssymb, amsmath}     \usepackage{booktabs}     \usepackage{array}     \usepackage{subfig}      %-----------------%---------------------------------------------------%-----------------%     \begin{document}     %-----------------%---------------------------------------------------%-----------------%     \begin{abstract}     This is abstract          %-----------------%---------------------------------------------------%-----------------%     \section{Introduction}     this is introduction     %-----------------%---------------------------------------------------%-----------------%     %begin environment     %here change the bibliography style to a numbered citation bibliography style for e.g. ieeetr%          % Table generated by Excel2LaTeX from sheet 'Sheet1'     \begin{table}[h!]       \centering       \caption{test table}         \begin{tabular}{cc}         \toprule         {Compound} & {\% variance (R$^2$)} \\         \midrule         A & 7.1 \citep{Franek2, Eagle}\\            \rule{0cm}{0.50cm}         B & 7.4 \citep{Franek2, Eagle, Taylor}\\                \rule{0cm}{0.50cm}         C & 6.0 \citep{Franek2, Eagle, Taylor} \\           \rule{0cm}{0.50cm}         D & 6.8 \citep{Franek2, Eagle, Taylor, Carvalhal}\\     \rule{0cm}{0.50cm}         E & 5.2 \\                   \bottomrule         \end{tabular}%       \label{tableauc}%     \end{table}%          %end environment     %-----------------%---------------------------------------------------%-----------------%     \bibliographystyle{apalike}     \bibliography{references}     \end{document}