title: Creating new characters from existing ones

text: **In a nutshell.** Is there a relatively easy way of building characters out of parts of existing ones? **Rationale.** (La)TeX linguists’ need for a wide palette of characters—for example, ⟨ɳ⟩ (U+0273), ⟨ɲ⟩ (U+0272), ⟨ʁ⟩ (U+0281), ⟨ɱ⟩ (U+0271), ⟨ə⟩ (U+0259)—is generally met by Rei Fukui’s `tipa` package. However, `tipa` provides no italic shapes and is limited to Computer Modern. Which causes problems. Publishers very often ask for a font other than Computer Modern, and there is a near universal convention that italics be used for in-text citation. The result is unsatisfying and visually unappealing (and frequently leads to publications in which there is a mishmash of fonts and/or font shapes). (Some publishers do have full sets of italic IPA fonts, but these are frequently specially commissioned and not freely available; e.g., OUP’s Minion set.) **Example.** Here is the mixture of fonts and shapes you get by calling for a schwa via `\textipa{@}`, while using Times Roman: ![enter image description here](http://i.stack.imgur.com/ctyuy.png) To get around this, I’ve taken to getting `rotating.sty` to rotate an `e`:               \newlength{\schwawidth}     \newlength{\schwaheight}     \newcommand{\x}{%         \settowidth{\schwawidth}{\it e}%         \settoheight{\schwaheight}{\it e}%         \makebox[\schwawidth][r]{%         \raisebox{\schwaheight}{%         \turnbox{180}{e}}}%         }      Notice that this also gets reasonable kerning (which is the reason for defining `\schwawidth` and `\schwaheight` rather than using, what’s it called, a rotate box?): ![enter image description here](http://i.stack.imgur.com/URrqz.png) **The Question.** This approach fails when parts of characters have to be assembled. Consider ⟨ɺ⟩ (U+027A). You can rotate a ⟨r⟩, as for schwa, and superimpose on an ⟨l⟩, but the tail of the ⟨l⟩ sticks out uncomfortably: ![enter image description here](http://i.stack.imgur.com/oqUpY.png) What you really need is to lop the top off an ⟨l⟩ and to stick it on the rotated ⟨r⟩ and then to have the result treated as a single character. **Is there are simple way of doing this?** * * * **Update.** The author of `expex.sty` reminds me of a trick I used to use in Word: covering parts of letters up with white boxes, replicable in TeX with `pstricks.sty`. Here is how you might get ⟨ɺ⟩ (U+027A) above:               \documentclass[12pt]{article}     \usepackage{rotating,mathptmx,pstricks}          \begin{document}          \newlength{\rwidth}     \newlength{\rheight}     \newcommand{\turnedr}{%         \settowidth{\rwidth}{\it r}%         \settoheight{\rheight}{\it r}%         \makebox[\rwidth][r]{%         \raisebox{\rheight}{%         \turnbox{180}{r}}}%         }     \def\cutr{\leavevmode\hbox{\turnedr}%         \psframe*[linecolor=white](0,0)(-.15em,1.1ex)%         \psframe*[linecolor=white](0,-.1ex)(-.24em,.2ex)%         \psframe*[linecolor=white](0,-.1ex)(-.26em,.1ex)%         }     \def\turnedlongr{\cutr\kern-.27eml}          \noindent \it      \verb|\cutr| --- \cutr \\     \verb|\turnedlongr| --- \turnedlongr \\     \verb|\l\turnedlongr d| --- l\turnedlongr d          \end{document}      ![enter image description here](http://i.stack.imgur.com/xu2Qo.png) I doubt this will work for all letters, and I’m sure that purists will need to rinse their eyes after reading this... * * * **Undertaking.** If I make progress on this, I’ll start posting whatever characters I create/cobble/frankenstein on (something linked to) my webpage (which you can find by googling my name). **Notes.** This question is quite general as:   1. Many IPA characters are combinations of common characters (⟨j⟩+⟨n⟩=⟨ɲ⟩, ⟨m⟩+⟨j⟩=⟨ɱ⟩, etc.).   2. The problem of mismatches doesn't just apply to Times italics: it affects italics in Computer Modern and roman in all other fonts. This question started life as part of this question. Although a work around was found, the broad issue of lopping bits of existing characters (in that case, the crossbar from ⟨f⟩) remains. * * *               \documentclass[12pt]{article}     \usepackage{rotating,mathptmx, tipa}          \begin{document}          \newlength{\schwawidth}     \newlength{\schwaheight}     \newcommand{\x}{%         \settowidth{\schwawidth}{\it e}%         \settoheight{\schwaheight}{\it e}%         \makebox[\schwawidth][r]{%         \raisebox{\schwaheight}{%         \turnbox{180}{e}}}%         }          \noindent \it      e\x e --- all Times italic\\     e\textipa{@}e --- Times italic with slanted Computer Modern schwa\\     \textipa{e@e} --- all Computer Modern slanted\\     \underline{e \footnotesize\x\ \normalsize\x\ \Large\x}\ \normalsize --- various sizes          \newlength{\rwidth}     \newlength{\rheight}     \newcommand{\turnedr}{%         \settowidth{\rwidth}{\it r}%         \settoheight{\rheight}{\it r}%         \makebox[\rwidth][r]{%         \raisebox{\rheight}{%         \turnbox{180}{r}}}%         }     \ \\     $\turnedr + l \stackrel{_?}{=} \turnedr\kern-.265eml$          \end{document}


title: Alternatives to bibtex2html

text: As the title says, are there viable alternatives to bibtex2html for converting bibliographic entries to HTML? I am specifically looking for some command-line utility allowing to export a `bib` files to HTML, XML or text-based files, although dedicated GUI would do the job as well.


title: table of contents and fancyhdr

text: I'm using the `report` class to write my phd. But when I tried the               \usepackage[Conny]{fncychap}       I have to delete `\tableofcontents` `\listoffigures` and `\listoftable`, otherwise it wouldn't work. What can I do to solve this problem. Thank you so much.


title: Are boolean operations on TikZ shapes possible?

text: ## The Situation Many vector graphics editors (for instance, Inkscape, Adobe Illustrator and Microsoft Visio) permit the synthesis of new shapes by union, difference or intersection operators. A collection of Venn diagrams on TeXample demonstrates the use of clipping to fill unions and differences of shapes, however I have not yet seen any examples of construction of new shape _outlines_ through boolean operations. Does this functionality exist in TikZ at all? ## A Workaround I have devised a workaround for the little diagram that I'm working on that takes advantage of Z-ordering to give the impression of a composite outline ( _i.e._ the union of several shapes) by drawing a shape, drawing intersecting shapes and then redrawing the original shape without a line style. It is necessary to slightly shrink the redrawn shape to get constant apparent line weight all the way around:               \begin{tikzpicture}[scale=1]          % Draw all of the necessary shapes.         \draw[fill=gray!30] ( 0.0,  0.0) circle (1cm and 0.5cm);         \draw[fill=gray!30] ( 0.4,  0.5) circle (0.3cm);         \draw[fill=gray!30] (-0.4, -0.5) circle (0.3cm);         \draw[fill=gray!30] (-0.4,  0.4) circle (0.3cm);         \draw[fill=gray!30] ( 0.4, -0.4) circle (0.3cm);          % Now draw a grey circle over the top with no outline.         \draw[fill=gray!30,draw=none] (0,0) circle (0.99cm and 0.49cm);         \draw[] (0,0) node {Q.M.};     \end{tikzpicture}      Needless to say this is probably the wrong way to go about this problem. Any better ways? ## Example Output at 200% zoom, as viewed in Evince. ![A hacky composite shape in TikZ](http://i.stack.imgur.com/o2Erj.png) ## Further Explorations In my dabbling I have determined that fairly interesting effects can be had by judicious z-ordering of shapes with and without borders, for instance, giving the appearance of an ellipsoid with protrusions in front and behind. Shared in the hope it might be useful to someone.               \begin{tikzpicture}[scale=1]     % Draw lobes behind.         \draw[fill=gray!30] ( 0.4,  0.4) circle (0.3cm);         \draw[fill=gray!30] (-0.4, -0.4) circle (0.3cm);     % Draw ellipsoid.         \draw[fill=gray!30] ( 0.0,  0.0) circle (1cm and 0.5cm);     % Draw lobes in front.         \draw[fill=gray!30] (-0.4,  0.4) circle (0.3cm);         \draw[fill=gray!30] ( 0.4, -0.4) circle (0.3cm);     % Now draw a grey circle over the top with no outline,     % shrunken to only clip a section of the lobes in front.         \draw[fill=gray!30,draw=none] (0,0) circle (0.80cm and 0.35cm);         \draw[] (0,0) node {Q.M.};     \end{tikzpicture}      ![Shape with vaguely 3D appearance.](http://i.stack.imgur.com/25OgW.png)


title: How can I number theorems in introduction without section counter and later with it?

text: I would like to have my theorems numbered in the following way. > Theorem 1. Blah-blah > > Theorem 2. More blah-blah > > Section 1. > > Theorem 1.1. Special blah > > Theorem 1.2. More special blah > > Section 2 > > Theorem 2.1. Another special blah and so on, preferably using the `amsmath` package. I've been struggling for a while with this, can anyone suggest a simple solution? I would also like to be able to `\label` and `\ref` all theorems.


title: Texlive and Gregorio Manual Font Installation

text: Here I am again trying to get Gregorio working. I discovered that the Gregorio installation failed to install its fonts, so I am trying to install them manually. When I run Gregorio, I get this output:               (c:/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))     (c:/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty     (c:/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     (c:/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))     (c:/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))     *geometry* driver: auto-detecting     *geometry* detected driver: pdftex     checksum mismatch in font ptmrc8t.vf ignored     checksum mismatch in font greciliae.ofm.vf ignored     checksum mismatch in font ptmrc8t.vf ignored     checksum mismatch in font ptmbc8t.vf ignored     checksum mismatch in font ptmri8t.vf ignored  (./PopulusSion.tex     Module luatexbase-mcb info: inserting 'gregoriotex.callback'     (luatexbase-mcb)            at position 1 in 'post_linebreak_filter'          Underfull \hbox (badness 10000) in paragraph at lines 3--403          Module luatexbase-mcb info: removing 'gregoriotex.callback'     (luatexbase-mcb)            from 'post_linebreak_filter'     ) [1{c:/Users/username/.texlive2012/texmf-var/fonts/map/pdftex/updmap/pdftex.m     ap}] (./main-lualatex.aux) )     (see the transcript file for additional information)      38653 words of node memory still in use:        1248 hlist, 209 vlist, 835 rule, 2074 glue, 833 kern, 10 penalty, 414 glyph,      874 attribute, 91 glue_spec, 441 attribute_list, 1 write, 416 pdf_colorstack n     odes        avail lists: 2:1334,3:414,4:245,5:512,6:507,7:48,9:277,10:12      <c:/Users/username/.texlive2012/texmf-var/fonts/pk/modeless/gregoriotex/greci     liae/greciliae-3.1556pk     !LuaTeX error (file greciliae-3): unexpected eof in pk file      ==> Fatal error occurred, no output PDF file produced!      So, I decided to try to "enable" the fonts with this (none of these work, although I've seen all three usages in the documentation):                   updmap-sys --enable map grecilia.map     or         updmap --enable map grecilia.map     or         updmap --enable map=gregilia.map      Any of those commands gets me this output:               c:\texlive\gregorio\fonts>updmap-sys --enable map grecilia.map     updmap is using the following updmap.cfg files (in precedence order):       c:/texlive/texmf/web2c/updmap.cfg       c:/texlive/texmf-dist/web2c/updmap.cfg     updmap is using the following updmap.cfg file for writing changes:       c:/texlive/texmf-config/web2c/updmap.cfg     updmap: invalid mapType map at c:/texlive/texmf-dist/scripts/tetex/updmap.pl line 1396.     C:\texlive\bin\win32\runscript.tlu:591: command failed with exit code 2:     perl.exe c:/texlive/texmf-dist/scripts/tetex/updmap.pl --enable map grecilia.map      Now, I've placed the font files in their appropriate folders in `c:\texlive\texmf-local\fonts\` \- including the map files in the subdirectory there at `map\dvips\gregoriotex` I've ran `texhash` to no avail. When I run `updmap` I don't see that it scans the directory at `c:\texlive\texmf-local\fonts` How can I get it to scan that directory? What can I do to get past this?


title: Using shell escape to access system time

text: In an earlier question, I asked for analogs of `\pdfelapsedtime` (which measures the time since the start of the current run) in XeTeX and LuaTeX. A LuaTeX solution was provided, and is now part of Heiko's `pdftexcmds` package. However, no XeTeX solution was provided. The only approach I can see to measuring time in XeTeX is to use shell-escape. With pdfTeX on a Unix system I would build a wrapper around               \everyeof{\noexpand}     \catcode`\%=12     \message{\input|"date +%s.%N"}      (compile with `pdftex --shell-escape`).   1. Is there an analog of the `\input|...` construction for XeTeX? (When writing this question I thought that this construction would work.)   2. How can the system time be accessed in various os?


title: Equation tags for parts of alignments

text: Consider the following example:               \documentclass{article}     \usepackage{amsmath}     \begin{document}       \[       1+2=3       \implies       \left\{         \begin{aligned}         &a+b=c, \\         &x=y+z.         \end{aligned}       \right.       \]     \end{document}      ![enter image description here](http://i.stack.imgur.com/oDhA4.png) Is there a way to set up _two_ equation tags, one per line in the aligned environment?


title: What is bleed, and how do I achieve it?

text: I am going to print business cards that I've created using LaTeX, and when I contacted the print company and asked what they needed for the print, they answered that they needed a "pdf with the correct page size, including a 5 mm bleed." I've read up on wikipedia and understood that when you print something, you usually print it on paper that is too large, and then cut away the extra to fit the page size. This "extra" is, if I understand correctly, called bleed. Is my understanding accurate? I intend the finished business cards to be 85x50 mm, printed on white paper with a faint watermark. I've fixed the paper size with the `geometry` package and "underlayed" the watermark using the `eso-pic` package, so that's down allright. The watermark image is large enough to span almost the entire card, but it is white (transparent) all the way around the edges, so it doesn't actually touch the paper edge. How do I achieve in LaTeX what the printers ask for? Do I simply adjust the paper size to 10 mm extra in each direction, or should I do something more advanced than that? If it's more advanced, how do I do it?


title: Is the Bembo font (or a close equivalent) available for LaTeX?

text: I'm currently writing my PhD thesis and was wondering if perhaps, the Bembo font was available in LaTeX? What package should I load? (I obviously tried `\usepackage{bembo}` already but the `sty` is missing.) The Bembo font is used by the Everyman's Library editions and I find it to be beautiful and comfortable for reading. Is this font, or maybe a really close equivalent available for LaTeX. Also, my PhD is in the Mechanics field, so there is a large number of equations. Will there be problems (incompatibilities) with these fonts? Any hints are appreciated, thanks.


title: Can I have a table that spans multiple pages using ctable?

text: I'm currently working on a paper and I have a bunch of tables. Currently I'm using the `ctable` package for my tables. One of my tables is rather long and it spans more than one page. However currently the table is kinda being cut off. My question is, is there a way to make `ctable` behave like `longtable`?


title: Insert TeX code from another Beamer presentation (which uses PGF) into Lyx while composing new Beamer presentation

text: I'm struggling to insert the TeX code for an older Beamer presentation into one that I'm currently putting together using Lyx. The problem seems to be that Lyx doesn't recognize the package import:               \usepackage{pgf,pgfarrows,pgfnodes}      What I'm trying to do is insert several slides using a TeX code inset (Ctrl+L), where some drawing has been done using PGF. Here's an example of one of the slides:               \frame     {     \frametitle{Building things up}     \begin{pgfpicture}{0cm}{0cm}{5cm}{5cm}     \pgfnodebox{Node1}[stroke]{\pgfxy(1.2,5)}{Item 1}{2pt}{2pt}     \pgfnodebox{Node2}[stroke]{\pgfxy(8.2,5)}{Item 2}{2pt}{2pt}     \pgfnodebox{Node3}[stroke]{\pgfxy(3,2)}{a}{2pt}{2pt}     \pgfnodebox{Node4}[stroke]{\pgfxy(4.7,2)}{blue}{2pt}{2pt}     \pgfnodebox{Node5}[stroke]{\pgfxy(6.4,2)}{sky}{2pt}{2pt}     \pgfnodeconncurve{Node3}{Node4}{-20}{260}{1cm}{1cm}     \pgfnodeconncurve{Node3}{Node4}{-25}{270}{1cm}{1.5cm}     \pgfnodeconncurve{Node3}{Node4}{-30}{280}{1cm}{2cm}     \pgfnodeconncurve{Node3}{Node4}{-35}{290}{1cm}{2.5cm}     \pgfnodeconncurve{Node4}{Node5}{-5}{260}{.7cm}{.6cm}     \pgfnodeconncurve{Node4}{Node5}{-8}{270}{.8cm}{.8cm}     \pgfnodeconncurve{Node4}{Node5}{-11}{280}{.9cm}{1cm}     \pgfnodeconncurve{Node4}{Node5}{-13}{290}{1cm}{1.2cm}     \end{pgfpicture}     }


title: Easiest way for installing and using pdfLaTeX on Windows

text: Installing and using pdfLaTeX is straight forward on Linux since you can select an install from the synaptic package manager and then use the command prompt. In Windows it seems a bit more complicated with the choices of which approach to take. It seems that TeX Live is the best option, but does it allow for pdfLaTeX which is very useful allowing you to use .jpg images and .png? I cannot find a simple workflow description for using TeX Live or some other distribution, for pdfLaTeX on Windows. And does the command prompt need to be used? Can you use an editor that will also automatically compile BibTeX as well along with the .tex files?


title: Conditional command (depending of the arguments)

text: I have the commands:               \def\tabfive{%         \renewcommand{\arraystretch}{1.1}         \begin{tabular}{p{0.18\linewidth}p{0.18\linewidth}p{0.18\linewidth}p{0.18\linewidth}p{0.18\linewidth}}         \fiveoptions         }     \def\tabfour{%         \renewcommand{\arraystretch}{1.1}         \begin{tabular}{p{0.23\linewidth}p{0.23\linewidth}p{0.23\linewidth}p{0.23\linewidth}}         \fouroptions         }     \def\tabend{\end{tabular}}          \def\fouroptions #1&#2&#3&#4\\ { a) #1&b) #2&c) #3&d) #4~}     \def\fiveoptions #1&#2&#3&#4&#5\\ { a) #1&b) #2&c) #3&d) #4&e) #5~}      The usage is:               \tabfour         10 &         12 &         15 &         20\\     \tabend               \tabfive         10 &         12 &         15 &         18 &         20\\     \tabend      Is there a way to join this two commands in a commands named `\mytab`, with LaTeX choosing the right command in function of the number of alternatives?


title: Names on title page of Beamer presentation

text: We have several group members whose names should be on the title slide of a Beamer document. However, when I put something like this:               \author{Person A \and Person B \and Person C \and Person D \and Person E}     \begin{document}     \maketitle     ...     \end{document}      Person C's name will be broken across two lines. How can I prevent this from happening?


title: babel, frenchb and em dash

text: If I'm not wrong, in French the em-dashes, typeset with `---` in LaTeX, are usually treated like the guillemets as far as non-breaking spaces go. An "opening" em-dash must be followed by a non-breaking space, while a "closing" em-dash must be preceded by a non-breaking space. `[french]{babel}` doesn't apply this rule, so I ended up making my own macros:               \newcommand{\ocadr}{\mbox{---~}}     \newcommand{\fcadr}{\mbox{~---}}      Is there a better way to ensure these non-breaking spaces? **Edit:** Here is a minimal example to justify the use of `\mbox`:               \documentclass{minimal}          \begin{document}          \parbox{9cm}{\textsc{     Dieu se sert des epreuves pour nous montrer nos c\oe{}urs,      afin de pouvoir nous purifier et nous faire ensuite entrer      dans le pays de la benediction ---~physiquement et spirituellement.     }}          \end{document}      which produces: ![em bad newline](http://i.stack.imgur.com/h7js3.png) Whereas with `\mbox` around the `---~`, I get: ![em good newline](http://i.stack.imgur.com/LDUP3.png) **Nota:** I kept the `\textsc` because it's a case that I know produces this effect with the given size of the `\parbox`.


title: How to alphabetize all of the parts, chapters, sections, and content of an entire document in ConTeXt?

text: I have a document that is structured like this:               \part{Birds}         \chapter{North America}             \section{West Coast}                 \mymacro{Bald Eagle}                 \mymacro{Spotted Owl}             \section{East Coast}             \section{Alaska}         \chapter{South America}             \section{Peru}             \section{Brazil}     \part{Bears}         \chapter{Canada}        * The preamble appears in a separate file.   * All of the content is added using a custom macro, `\mymacro`, so each item gets a single line. How can I alphabetically sort all of the parts, chapters, sections, and macros in the document, at each level? E.g., the above would be sorted like this:               \part{Bears}         \chapter{Canada}     \part{Birds}         \chapter{North America}             \section{Alaska}             \section{East Coast}             \section{West Coast}                 \mymacro{Bald Eagle}                 \mymacro{Spotted Owl}         \chapter{South America}             \section{Brazil}             \section{Peru}


title: Set two environments next to each other

text: How would I set two environments next to each other? Lets say two tables. I want to have something like this, where red is my page and blue one table and yellow the other. My scenario is that I have a chart on the left side (blue) and a legend on the right (yellow). ![enter image description here](http://i.stack.imgur.com/cWB70.png) With David's solution: ![enter image description here](http://i.stack.imgur.com/EU7Dx.png)


title: Shaded box around multiline section heading?

text: I'm using LaTeX to write up an assignment which comprises a number of questions. I'd like to break up the questions from my answers by placing the section headings inside a shaded box. I'm relatively new to LaTeX. So far, from searching around and reading quite a few examples, I've managed to knock together something of a partial solution (attempted minimal working example here:)               \documentclass{article}     \usepackage{titlesec}     \usepackage{lipsum}     \usepackage[framemethod=TikZ]{mdframed}     \usepackage{tikz}\usetikzlibrary{shapes.misc}     \newcommand\qnhead{%     \tikz[baseline,trim left=3.1cm, trim right=3cm] {             \fill [black!12] (0.5cm,-1ex) rectangle (\textwidth+3.3cm,2.5ex);             \node [                 anchor= base east,                 rectangle,                 minimum height=3.5ex] at (3cm,0ex) {         \textnormal{\textbf{Question \thesection}}     };     }}     \titleformat{\section}{\itshape\large}{\qnhead}{0.1cm}{}     \renewcommand{\thesection}{\arabic{section}}          \begin{document}     \section{The text of the first question, which spans over more than %              one line, will be placed here.}     \lipsum[2]     \section{The second question text will be placed here.}     \lipsum[2]     \end{document}      This works great until I have a question that ends up spanning over multiple lines. It's a limitation, I think, of the way I've got tikz drawing the rectangle, but I can't work out how to modify the code to make it span multiple lines. Does anyone have any suggestions as to how I would go about fixing this? ![enter image description here](http://i.stack.imgur.com/47UnZ.png)


title: Bibtex file does not compile

text: I've been googling for hours and found many related issues but still don't understand what's gone wrong. i have run latex and bib at least 1000 times. In the dropdown menu I use "pdflatex" for my latex file and "bibtex" for my bib file. I am using Texworks. Also, I should say this has worked previously on another computer. here's my bib file:               @article{paper,     author={name},     title="{title}",     journal={J. Phys. Conf. Ser.},     volume={67},     number={},      pages={23},      year={2007}     }      and this is my latex file:               \documentclass[a4paper, 12pt]{article}               \begin{document}     \title{Autumn Term Report}     \author{myself}     \date{\today}     \maketitle            HI     \cite{paper}          \bibliographystyle{unsrt}     \bibliography{trial.bib}     \end{document}      and here's my bbl file (empty! so i think bibtex musn't be compiling)               \begin{thebibliography}{}          \end{thebibliography}      Also, in my output pdf i get a "References" section but the article is not listed there, and there's a question mark where i refer to it in the main body.


title: problem with ledpar: "! Undefined control sequence. l.36 \ledRcolfalse"

text: I am trying to produce a bilingual edition with Latin on the left and English on the right using ledmac and ledpar. I cannot compile even the most minimal example as I receive the error message > ! Undefined control sequence. > > l.36 \ledRcolfalse Here is the code I'm trying to compile:               \documentclass[a4paper,twoside]{article}     \usepackage[latin,english]{babel}     \usepackage{ledmac,ledpar}          \listfiles          \lineation{page}     \linenummargin{inner}     \sidenotemargin{outer}          \firstlinenum{5}     \linenumincrement{5}          \newcommand{\E}{\emph{E} }          \begin{document}     \begin{pages}     \begin{Leftside}     \beginnumbering     \pstart     \textbf{$\slash$\E 47vB$\slash$} Tantum verum opponitur falso. Quaeritur de hoc sophismate.  Quod probatur sic.  Verum opponitur falso et nihil aliud quam verum opponitur falso, ergo tantum verum opponitur falso.  Et videtur ibi esse locus ab expositione vocabuli scilicet ab expositione huius dictionis `tantum'.  Improbatur sic.  \edtext{Contra.}{\Afootnote{\emph{Sic}.}}  Tantum verum opponitur falso, ergo tantum verum et falsum opponuntur.  Et videtur ibi esse locus a convertabili.  Probatio sequitur si verum opponitur falso, ergo verum et falsum opponuntur et e converso. Verum et falsum opponuntur, ergo verum opponitur falso.  Sicut sequitur Socrates et Plato sunt similes, ergo Sortes est similis Platoni, et e converso.  Unde ista relatio quae est oppositio fundatur supra ista duo extrema quae sunt verum et falsum.  Sicut a parte illa similitudo fundatur supra illos duos terminos qui sunt Sortes et Plato.  Convertuntur ergo ista verum opponitur falso.  Et verum et falsum opponuntur.  Igitur eodem addito utrobique adhuc convertentur.  Et sic addita hac dictione tantum.  Ad utrumque adhuc convertentur.  Et sic sequitur tantum verum opponitur falso, ergo tantum verum et falsum opponuntur et e converso.  Sit haec est falsa ut probabo tantum verum et falsum opponuntur.  Ergo et haec tantum verum opponitur falso.  Quod autem sit falsa patet quoniam si haec esset vera tantum verum et falsum opponuntur sequeretur quod nulla alia opponerentur.  Et sic sequeritur quod album et nigrum non opponerentur quod falsum est.  Igitur haec est falsa tantum verum et falsum opponentur, ergo et prima.  Haec scilicet tantum verum opponitur falso.  Igitur prima falsa.     \pend     \endnumbering     \end{Leftside}          \begin{Rightside}     \beginnumbering     \pstart     \textbf{$\slash$\E 47vB$\slash$} Only true is opposed to false.  It is inquired concerning this sophism, which may be proved thus.  True is opposed to false and nothing other than true is opposed to false, therefore only true is opposed to false.  And here is seen to be a locus of the exposition of words namely from the exposition of this word `only'.  It is proved negatively thus.  Only true is opposed to false, therefore only true and false are opposible.  And here is seen to be a locus from conversion.  The proof follows if true is opposed to false, therefore true and false are opposed and conversely, true and false are opposed, therefore true is opposed to false. In the same way it follows Socrates and Plato are similar, therefore Socrates is similar to Plato, and conversely.  From which this relation, which is opposition, is established between those two extremes which are true and false, in the same way, partly, the former likeness is established between those two terms which are Socrates and Plato.  Therefore this is converted, `true is opposed to false', and `true and false are opposed'.  %Igitur eodem addito utrobique adhuc convertentur.  Et sic addita hac dictione tantum.  Ad utrumque adhuc convertentur.  Et sic sequitur tantum verum opponitur falso, ergo tantum verum et falsum opponuntur et e converso.  Sit haec est falsa ut probabo tantum verum et falsum opponuntur.  Ergo et haec tantum verum opponitur falso.  Quod autem sit falsa patet quoniam si haec esset vera tantum verum et falsum opponuntur sequeretur quod nulla alia opponerentur.  Et sic sequeritur quod album et nigrum non opponerentur quod falsum est.  Igitur haec est falsa tantum verum et falsum opponentur, ergo et prima.  Haec scilicet tantum verum opponitur falso.  Igitur prima falsa.     \pend     \endnumbering     \end{Rightside}     \Pages     \end{pages}          \end{document}      I added the \listfiles command at Jon's suggestion, to see what version of ledmac/ledpar I'm using, and I get the error message before this information is provided:               [liana@athena anonymierfordensis]$ pdflatex test.tex      This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)      %&-line parsing enabled.     entering extended mode     (./test.tex     LaTeX2e <2005/12/01>     Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, nohyphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ngerman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish, french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibycus, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, portuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish, turkish, ukenglish, ukrainian, loaded.     (/usr/share/texmf/tex/latex/base/article.cls     Document Class: article 2005/09/16 v1.4f Standard LaTeX document class     (/usr/share/texmf/tex/latex/base/size10.clo))     (/usr/share/texmf/tex/generic/babel/babel.sty     (/usr/share/texmf/tex/generic/babel/latin.ldf     (/usr/share/texmf/tex/generic/babel/babel.def))     (/usr/share/texmf/tex/generic/babel/english.ldf)) (./ledmac.sty (./ledpatch.sty)) (./ledpar.sty     ! Undefined control sequence.     l.36   \ledRcolfalse      So I'm still not sure if it's the age of the packages that I'm using or what.


title: [T1]{fontenc} package makes text unselectable for Android Adobe Reader application?

text: Alright, here's a weird one. I'm writing a paper for my English class and am encountering some problems.** So, I put `\usepackage[T1]{fontenc}` in my preamble and compile it.** It works! Not so fast. I need to proofread my draft. Although I could use Foxit on my PC, I want to edit on the go, so I grab my Android tablet. I've used the annotations and highlighting on it before with other papers and it works well. So I get the file on my tablet, open it, and... **I can't do anything with text. I can add comments and drawings, but anything that selects text does not work.** I compare my paper's `.tex` source to the template I usually use and the only thing that's different about the preamble is the use of `\usepackage[T1]{fontenc]`. **I remove the package, recompile, and lo and behold I can now select, highlight, underline, and strikethrough text on my Android using Adobe Reader, the same application as before.** **What happened?** And what is making Adobe Reader get confused over `\usepackage[T1]{fontenc}`?               \documentclass[12pt,letterpaper]{article}     \usepackage[T1]{fontenc}     \begin{document}     Here is some text. Can you highlight it? My post says you can't. Do {\it you} have     what it takes to figure out what's going wrong!?     \end{document}      Here's a link to the PDF compiled from the above example (click here) And here is a PDF compiled without the line in question (click here) The first PDF is unselectable, and the second is. **Edit 1:** I realized I messed up and it wasn't `textcomp` causing the problem but `[T1]{fontenc}`. I reworded the title and question to reflect this. I'd still like to know what's up, but I can simply remove that and my paper works. It was in there because I wanted better language support, but I didn't end up using it. **Edit 2:** Added links to PDFs.


title: footmisc in beamer citations get lost

text: Since I want to take advantage as much as possible of the space in a poster I'm making I want to make the footnotes (that include citations) appear continuous (in one line). After searching I found this post that says that I can achieve that using the `footmisc` package. The problem is that when I use it, my footnotes disappear. Consider the following example code. If you remove the `\usepackage[norule,para]{footmisc}`, the footnotes appear properly.               \documentclass{beamer}     \usepackage[norule,para]{footmisc}     \usepackage{biblatex}          \begin{document}          \begin{frame}[fragile]       \begin{columns}         \begin{column}{.49\textwidth}           \begin{beamercolorbox}[center,wd=\textwidth]{postercolumn}             \begin{minipage}[T]{.95\textwidth}               \parbox[t]{\textwidth}{                 \begin{block}{Test}                   this is some test text\footnotemark                 \end{block}}             \end{minipage}           \end{beamercolorbox}         \end{column}         \footcitetext{osborne-rubinstein}         %Second Column %         \begin{column}{.49\textwidth}           test\footnotemark         \end{column}         \footcitetext{test}       \end{columns}     \end{frame}          \end{document}      Is there some problem with the `footmisc` package and the the `beamer` class or am I doing something wrong?


title: Beamer: make slide transitions dependant only on slide content when notes hidden

text: I have developed a presentation in which I used notes a lot, and often have delays between points on the slides because a single point may have multiple notes associated with it, so it takes multiple clicks to get to the next point because each click is bringing up another note on the notes page. However, when compiling without notes, I would like it to automatically transition only based on the frame content. This is extra tricky because I've hard coded a lot of delays in my slide content. I've included a MWE that shows what I mean. If you compile it with and without notes (see the two options at the top), you will see what I mean. With notes one, every time you click down, something changes, either on the notes slide or the slide itself. However, with notes off, it often takes multiple clicks to progress because it's factoring in either a) multiple notes or b) a delay introduced in the slide itself with the uncover command. Is there a compile option that will make Beamer automatically and intelligently ignore any notes delays and in-slide delays that do not result in a slide transition such that, when compiling without notes, you will always have a slide transition with a click or page down? I realize it was a mistake to have hard coded delays in the slides themselves, but it seems the notes should not have this effect, and because of the length of my presentation, I'm hoping this can be done automatically with a little Beamer hacking or patching. Thanks. MWE:               % 1. NO NOTES     %\documentclass[]{beamer}          %% 2. DUAL-DISPLAY NOTES:     \documentclass[hyperref={bookmarks=true}]{beamer}     \usepackage{pgfpages}     \setbeameroption{show notes on second screen=left}          \usepackage[english]{babel}     \mode<presentation>{       \usetheme{Warsaw}         \setbeamercovered{transparent}}          \begin{document}          \begin{frame}{Introduction}{}          \begin{itemize}         \uncover<1->{\item Here is my first point}       \uncover<2->{\item Here is my second point}         \uncover<4->{\item With notes on, I would expect it to take two clicks to get here from the last point, since there are two notes. But with them off, I would expect it to take one click.}         \uncover<5->{\item This is my third point. I have four notes about this point, so with notes on, it should take three more clicks to get to the next slide. With them off, however, it should take one. }     \end{itemize}          \note[item]<1->{Here is a note about my first point}     \note[item]<2->{Here is a note about my second point}     \note[item]<3->{Here is \textbf{another} note about my second point}     \note[item]<4->{Here is a note about my third point}     \note[item]<5->{Here is the second of several more notes about my third point}     \note[item]<6->{Another one}     \note[item]<7->{And another}     \end{frame}          \begin{frame}{Another slide}{}     \begin{itemize}         \uncover<1->{\item Not much to say here}     \end{itemize}     \end{frame}          \end{document}


title: Fallback text in header if overlapping occurs

text: I'm currently working on several projects, where the authors are read from a textfile. I'm also displaying the authors in the header using fancyhdr. This works great if there are just 2 or 3 contributors, but if there are more, the text starts overlapping. ![screenshot](http://tmp.dbrgn.ch/screenshots/20130116_182411.png) The overlapping is also dependent on the document title, which is shown the left. **Is there a way to detect whether the text overlaps, and if it does, use a fallback text (an URL) instead of the authors instead?** Header specification looks like this at the moment:               \usepackage{fancyhdr} % Fancy headers          % Capture title and author     \makeatletter                                                                                \let\Title\@title     \let\Author\@author     \makeatother          % Fancy headers configuration     \pagestyle{fancy}     \fancyhead{} % Clear all header fields     \fancyhead[LO,LE]{\bfseries \Title}     \fancyhead[RO,RE]{\Author}     \fancyfoot{} % Clear all footer fields     \fancyfoot[CO,CE]{Page \thepage}     \renewcommand{\headrulewidth}{0.3pt}     \renewcommand{\footrulewidth}{0pt}


title: Shouldn't there be larger sizes of the CM math fonts?

text: In a poster I'm making I wanted to use 17-point Computer Modern. I noticed that when entering math mode LaTeX switched from cmr17 to cmmi12 to cmsy10. Surely this can't be good style? And cmsy10 even controls things like superscript positioning, so LaTeX is using placement designed for 10-point when I specified 17-point! True, Knuth didn't design cmmi17 or cmsy17, but probably only because he had no use for it? In any case, it's available using the Sauter extension, but I still couldn't find any Type 1 version. However, it's at least easy to generate the metrics for cmsy17, which would fix the superscript positioning. I'm considering doing that manually...


title: Is there an algorithm to determine the best layout and font size for a specific screen?

text: If I have a 4:3 7" tablet with a 200PPI screen (as an example), could you algorithmically make a TeX template that would be readable on the screen fullsize without zooming? It would be great if there were a site where you could enter these dimensions and get a template for reference. With so many different devices out there, I really think this would be useful.


title: Reduce space between sections?

text: I'm using LaTeX for my resume with the `res` class. It looks great, but one detail is bugging me. I'm using the `res` class' `position` environment but the space it puts between the title and the paragraph below it is too much. Can I reduce that space? ![enter image description here](http://i.stack.imgur.com/tGxFf.png)               \employer{{\sl \textbf{St. Louis School of Mandaue}}}     \title{High School}     \dates{June 2002 --- March 2006}     \location{\underline{Mandaue City, Cebu}}          \begin{position}          I received ``blue cards" for three years. These were tokens of recognition for good academic records of the school.     \end{position}


title: Typesetting a pattern matching equation

text: I want to typeset an equation for a paper. In the field of computer science we can define an equation that depends upon the form of one of it's arguments. I want to typeset this with LaTeX & `amsmath`. I might write it as follows in a program, I'm using a familiar example:               fib 0 = 1     fib 1 = 1     fib X = (fib (X - 1)) + (fib (X - 2))      This could be typeset to appear as:               fib X = { 1                              if X < 2             { (fib (X - 1)) + (fib (X - 2))  otherwise      And I know how to do this using amsmath's align and case environments. But I'd prefer the pattern match or guards to appear on the left of the equation, the same way they would in the program above. Can someone point me at how I can do this? This is what I have so far using \begin{array}{llcl} but the spacing doesn't look right. This is the actual equation I'm trying to typeset, fibs is just a familiar example. ![Example](http://www.bone.id.au/~paul/typeset_pattern_matching_1.png)               $$     \begin{array}{llcl}     \operatorname{prodtime}\,V & X = Y &=& 0 \\     \operatorname{prodtime}\,V & X = f(\ldots)                &=& 0 \\     \operatorname{prodtime}\,V & p(X_1,\,\ldots,\,X_n)        &=&         \operatorname{prodtime}\,V\,(\operatorname{body}\,p) \\     \operatorname{prodtime}\,V & V = \,f(X_1,\,\ldots,\,X_n)  &=&         \operatorname{prodtime}\,V\,(\operatorname{body}\,f) \\     \operatorname{prodtime}\,V & X_0(X_1,\,\ldots,\,X_n)      &=& time\_of\_call \\     \operatorname{prodtime}\,V & m(X_1,\,\ldots,\,X_n)        &=& time\_of\_call \\     \operatorname{prodtime}\,V & foreign(\ldots)              &=& 0 \\     \operatorname{prodtime}\,V & G_{head},\,G_{tail}     \end{array}     $$


title: knitr yielding different output in pdf than in R console

text: I am running RStudio Version 0.98.484 and R version 3.0.2 on OS X Mavericks. While using knitr I noticed a discrepancy between the console output from a summary() command and that generated in the PDF (via pdflatex). Here is the example.               \documentclass[11pt]{article}     \usepackage{MinionPro}     \usepackage{MnSymbol}     \usepackage[margin = 1 in]{geometry}     \geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm}     \setcounter{secnumdepth}{2}     \setcounter{tocdepth}{2}     \usepackage{url}     \usepackage[unicode=true,pdfusetitle,      bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=2,      breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]      {hyperref}     \hypersetup{      pdfstartview={XYZ null null 1}}     \usepackage{breakurl}          \usepackage{color}     \usepackage{graphicx}     \usepackage{fancyhdr}     \definecolor{darkred}{rgb}{0.5,0,0}     \definecolor{darkgreen}{rgb}{0,0.5,0}     \definecolor{darkblue}{rgb}{0,0,0.5}     \hypersetup{ colorlinks,     linkcolor=darkblue,     filecolor=darkgreen,     urlcolor=darkred,     citecolor=darkblue }          \definecolor{keywordcolor}{rgb}{0,0.6,0.6}     \definecolor{delimcolor}{rgb}{0.461,0.039,0.102}     \definecolor{Rcommentcolor}{rgb}{0.101,0.043,0.432}          \usepackage{booktabs}          \usepackage{listings}     \lstset{breaklines=true,showstringspaces=false}               \makeatletter     \newcommand\gobblepars{%         \@ifnextchar\par%             {\expandafter\gobblepars\@gobble}%             {}}     \makeatother          \newcommand{\R}{R}          \title{\textsc{Laboratory Session 1}}     \author{Ani}                    \begin{document}          <<setup, include=FALSE, cache=FALSE>>=     library(knitr)     # set global chunk options     opts_chunk$set(fig.path='figure/minimal-', fig.align='center', fig.show='hold')     options(replace.assign=FALSE, width=90, tidy=TRUE)     render_listings()     @          \maketitle     <<chunk26>>==     require(rpart)      data(car90)     summary(car90$Price)      @          Hello!               \end{document}      The console shows:               > summary(car90$Price)        Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's         5866    9995   13070   15810   19940   41990       6       the pdf shows               Min. 1st Qu. Median Mean  3rd Qu. Max.  NA 's     5870 10000   13100  15800 19900   42000  6      Why would this be happening? There are no decimals to round up. Any clues would be much appreciated. Thanks!! Ani


title: Remove the qed symbol of only a proof environment, not everyone else

text: I have seen several posts on how to remove the qed symbol in a proof, but that affects all proof environments. I would like to know how to remove the qed symbol in a particular proof because I have a proof in another.


title: Generating LaTeX reports from XML *without* external scripts

text: First of all, I apologize if this is pretty similiar in nature to my previous question: Reading and (custom) formatting a CSV (not \csvautotabular) I thought it would be better to separate the two for future reference. Also, converting to CSV is not always an option, if you have some serious XMLs. So, here is the deal - I have an XML file that - suppose - looks like this:               <root>     <foo>      <bar>Boom</bar>      <baz>Bang</baz>     </foo>     <foo>      <bar>Zip</bar>      <baz>Zoom</baz>      <bak>Boing</bak>     </foo>     </root>      I would like to obtain something along the lines of:               \begin{Foo}       \Bar{Zoom}       \Baz{Bang}     \end{Foo}     \begin{Foo}       \Bar{Zip}       \Baz{Zoom}       \Bak{Bang}     \end{Foo}           ATM I'm doing this with a couple of python lines the output of which I then proceed to \include it in my main file, but it would be nice not having to depend on an external script, especially since I'm not the only one working on the document. Any hint is appreciated.


title: How to draw rectangle edge label in tikz?

text: I want to draw something like this. How to get that rectangle edge label? ![enter image description here](http://i.stack.imgur.com/WMnrw.png) This is the MWE.               \documentclass{article}     \usepackage{tikz}     \usepackage[margin=15mm]{geometry}     \usepackage{calc}     \usetikzlibrary{matrix,arrows}     \usetikzlibrary{positioning,arrows}     \usetikzlibrary{shapes,arrows,fit,calc,positioning,automata}               \begin{document}          \begin{tikzpicture}[>=stealth',shorten >=1pt,auto,node distance=5 cm,thick]              \node[initial,state]        (A) []                          {};         \node[state]         (B) [right of=A]                       {};            \path[->] (A)  edge []    node []         {} (B);          \end{tikzpicture}          \end{document}      How to get the Label?


title: asymptote giving me an error: could not load module 'example_01'

text: On page 3 of Dario Teixeira's **Asymptote and LaTeX** , the following simple example is provided:               \documentclass[10pt]{article}     \usepackage{graphicx}     \usepackage{asymptote}     \begin{document}     \begin{figure}     \centering     \begin{asy}     size (3cm);     draw (unitcircle);     \end{asy}     \caption{Embedded Asymptote figures are easy!}     \label{fig:embedded}     \end{figure}     \end{document}      I saved this in a file called `example_01.tex` and then following the instructions tried to compile by running from the command line:               latex example_01     asy example_01     latex example_01      But `asy` complains:               error: could not load module `example_01`      I'm using TeXLive 2013 on Mac OS X. Any suggestions about what I need to do or am doing wrong? **UPDATE** I just noticed that there was a `example_01-1.asy` file in my directory. I ran `asy` on this and then recompiled my LaTeX file and everything seems to work out fine. How do I get `asy` to find the correct files to compile on? In particular, if I have multiple `asy` environments, is there a straight forward way to get `asy` to compile each file without me having to do through by hand telling it which files it needs? ## Solutions I've tried **Using: make** I can create a _makefile_ as follows:               example_01.dvi : example_01.tex                latex example_01.tex                asy example_01-*                latex example_01.tex      Or               example_01.pdf : example_01.tex                pdflatex example_01.tex                asy example_01-*                pdflatex example_01.tex      Both of which work. **Using: arara** My usual approach is to use `arara`. Since `arara` doesn't know `asy` I have to define my own `asy.yaml` file which I tried to do as follows:               !config     identifier: asy     name: asy     commands:      - <arara> asy  @{getBasename(file)}-*     arguments: []      but the problem with this is that `arara` doesn't recognize _wildcard_ specifiers for the file name. Any suggestions about how to get `arara` to recognize _wildcards_ or to get `arara` to feed the necessary files to `asy` for it to compile?


title: Drawing boxplots with pst-plot

text: I'd like to draw in the same frame a given number of box plots with the macro `\psBoxplot` from the `pst-plot` package. I'm retrieving the sampled data from as many files as different box plots by using the macro `\readdata`. I'd like to use a single file to store the data sets for the different box plots, though. By using the optional arguments of the `\listplot` macro I can plot a given number of curves based on different data sets stored in the same file-- the latter data sets only need to comprise different columns in the file. Now, how could I do something similar to this in order to draw box plots? I believe no MWE is needed for this question, but if required I could provide one. MWE (as per suggestion): Let us say I have two data sets that I'm going to number and label by the corresponding numerals; e.g., '1' and '2'. I've stored data set 'i' in the file Data<i>.dat (i=1,2) and I can draw the box plots as follows:               \documentclass{article}          \usepackage{filecontents,pstricks,pst-plot}          \begin{filecontents*}{Data1.dat}     [98   20   79   14   23   21   58   13   19   53  41 11 83 71 10  89 10 46 76]     \end{filecontents*}          \begin{filecontents*}{Data2.dat}     [98   20   79   14   23   21   58   13   19   53  41   11 83 71 10 89 10 46 76]     \end{filecontents*}          \begin{document}          % Let us say my data are bounded between 10 and 100.     \psset{xunit=20mm,yunit=0.5mm}     \begin{pspicture}(0,0)(3,110)     \multido{\ind=1+1}{2}{%         % Reading data from file         \readdata{\Data}{Data\ind.dat}         \rput{0}(\ind,0){\psBoxplot[barwidth=0.5\psxunit]{\Data}}     }     \end{pspicture}          \end{document}      With the MWE I generate the two data files Data1.dat and Data2.dat (right, they store the same data, but that's irrelevant here). If I were to plot two curves (as opposed to box plots) in the same frame I could do it with `\listplot`, have the data sets stored in the same file comprising each data set one column, and use the options `plotNo` and `plotNoMax`. I'd like to be able to do something like this with box plots.


title: \nameref -- How to display section name AND its number

text: Is it possible to make `\nameref` display not only the title of the section but also its number?               \section{First Section}     \label{sec:some_sec}          \subsection*{Unnumbered subsection}     \label{sec:subsec}          [...]          As we defined in section \nameref{sec:some_sec}, yada yada yada, see section \nameref{sec:subsec}      With normal `\nameref` I get: > "As we defined in section First Section, yada yada yada, see section > Unnumbered subsection" what I want is a combination of numbers (as in `\autoref`} and section names AND (if possible) unnumbered subsections should inherit the number of the parenting section: > "As we defined in section 1 First Section, yada yada yada, see section 1 > Unnumbered subsection"


title: Actual page number (and total number of pages) in the handout

text: I am trying to print out page number/total number of pages in the handout that I get from this code: This is my `MWE`:               \documentclass[11 pt, handout,xcolor=pdftex,x11names,table]{beamer}     \mode<beamer>{\usetheme{CambridgeUS}}     \usepackage{pgfpages}     \pgfpagesuselayout{2 on 1}[letterpaper,border shrink=10mm]     \pgfpageslogicalpageoptions{1}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{2}{border code=\pgfusepath{stroke}}          \begin{document}          \begin{frame}     \frametitle{First}     \begin{itemize}     \item check1     \item check 2     \end{itemize}     \end{frame}          \begin{frame}     Text 1     \end{frame}          \end{document}       I'd like to modify the code in a way that I can add (ideally) header and footer (OR at least page #/# of pages) in the right bottum corner. Is it possible?


title: Bookmarks not automatically generating

text: I have `\usepackage{hyperref}` in the preamble of a very simple document, which has defined sections. However, the output pdf file has no bookmarks. In 4.1 of this manual, it's stated that > Usually hyperref automatically adds bookmarks for \section and similar > macros What am I missing? Also, surfing a forum, I found that someone said that all he had to was put `\usepackage[bookmarks=true]{hyperref}` in his preamble... but this did not work for me either. (I am using the latest version of TeXworks as my editor and I am a PC user.)


title: How to produce ũ in my bibliography

text: I am trying to produce Dũng as a name in my bib. I do use `\~u` for this. I am loading `inputenc` with the `utf8` option. the final result is "Dng (2012)" in the text and "Dng, N. V. (2012)." in my Bib. So somehow the ũ is not encoded. How can I tackle this? Here is the code for the bib entry that I currently have:               @phdthesis{Dung:2012,         Author = {D{\~u}ng, Ng{\^o} Vi},         Date-Added = {2013-06-21T11:01:40GMT},         Date-Modified = {2013-06-21 11:29:57 +0000},         Title = {{An Institution-Based View of the Competitive Advantage of Firms in Emerging and Transition Economies}}      I do use biblatex to create my bibliography. ![Result in Bibliography](http://i.stack.imgur.com/7bY5g.png) This is the entry for the bibliography with my current settings: This is the result when I cite the author. ![citeDung](http://i.stack.imgur.com/WE0fs.png) So somehow it does not seem that I get the correct ũ produced This is a condensed verion of my LaTeX file               \documentclass[a4paper,openright,oneside,11pt]{article}          \usepackage[hyperref=true,                 url=false,                 isbn=false,                 backend=biber                 ]{biblatex}     \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage{hyperref}     \usepackage{csquotes}     \usepackage[T1,T2A]{fontenc}          \bibliography{Bibliography_papers_test}  %          \begin{document}           \section{One}          This is my test text \citeauthor{Dung:2012}          \addcontentsline{toc}{chapter}{Bibliography} \printbibliography%          \end{document}      Where               @phdthesis{Dung:2012,         Author = {D{\~u}ng, Ng{\^o} Vi},         Title = {{An Institution-Based View of the Competitive Advantage of Firms in Emerging and Transition Economies}},             Year = {2012}              }        Is my Bib file and ![Result](http://i.stack.imgur.com/QaQL0.png) Is the corresponding pdf


title: How to change default theme title style (bold, color, margin) of title in the beginning of each slide

text: I am interested in having a local change to the default theme of `beamer`. I want every title in the beginning of a slide to be boldfaced, black (instead of purplish, black) with a horizontal line that stretches below it, with some margin between the line and the end points of the slide. Is that possible to do with `beamer`?


title: Make curly braces wrap around part of a circle

text: Essentially the same question as Draw Curly Braces in TikZ except that I want the brace to wrap around a circle to display an angular sector (for example 0-30 degrees). How can I do this? * * * I dont know if it is even possible, but here is a MWE               \documentclass[12pt]{minimal}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}[scale=0.4]     \draw[style=thick] (0,0) circle (7);     \draw[thin,dashed] (0, 0 ) -- (100:7) ;     \draw[thin,dashed] (0, 0 ) -- (170:7) ;     \end{tikzpicture}     \end{document}


title: Reduce vertical space between text and table and remove table indentation

text: I want to reduce the vertical space between the first line text and the start of the table. I also want to remove the indent on the table, so that all three lines start at exactly the same vertical point.               \documentclass[final,a4paper,notitlepage,10pt]{report}          \usepackage[utf8]{inputenc} % inputenc for encoding to utf8          \setlength\parindent{0pt}          \begin{document}     \thispagestyle{empty}   % this page does not have a header          Testing some text on the first line.\\     \begin{tabular}{l l}\\     Lorem ipsum & dolor sit amet     \end{tabular}\\     Why was the table above indented? and how can I reduce the space between first line and start of the table?          \end{document}      I couldn't find any table indent command that I could simply reduce to 0. I am open to using a different tabular environment if it gets the job done easily. This currently gives something similar to: ![Table vertical space and indent MWE](http://i.stack.imgur.com/2cQs2.png)


title: How to get forward-search working in Kile with nested source files

text: I have a huge set of .tex files which compile into a single document. I have recently switched to Kile on Unbuntu (love it so far). However I see that forward search from source files other than the root don't work because Kile doesn't know how they fit into the document as a whole, unless they are included in a Kile project (the error message is ".pdf does not exist; did you compile the source file?"). I assume that creating a Kile project and adding the existing source files is the way to solve this. But how can I do that efficiently? It seems I have to add files in one folder at a time. Edit: What I really want is to be able to do forward-search in Kile with nested source files. I don't particularly care if I have a Kile project file. How do I do that?


title: polynom division without package polynom

text: I am quite new to TeX, so i don't know how to represent polynom division in latex. I can't use package polynom, since I don't have a polynom with numbers so this is a generic solution for this fraction (x_1^n-x_0^n)/(x_1-x_0) I would appreciate some help to represent this somehow like this: ![enter image description here](http://i.stack.imgur.com/RlyJv.png) A similar question was answered there: How to draw polynom division? but i want to picture polynom division in more convinient style ![enter image description here](http://i.stack.imgur.com/bQwaV.jpg) like the package polynom does it and don't know how to tune that solution for my purposes


title: Setting TEXMFHOME variable when using Miktex portable

text: Apparently Miktex sometimes doesn't properly set the TEXMFHOME variable, or rather leaves it empty, even though you manually add folders to the "root" list and refresh the file name database. So how do I set the TEXMFHOME variable? Another way of phrasing the question: What is the Miktex version of `tlmgr conf texmf TEXMFHOME ~/path/to/texmf` ?


title: How can I automate "regression testing" for LaTeX documents, when updating packages?

text: I recently asked a related question about how often one should update LaTeX packages. Supposing that I update a bunch of packages in one go, or regularly update with only a few packages changing, how can I test that my TeX documents aren't changing substantially? In programming, this would be akin to unit or regression testing. Maybe I am bringing too much experiences with programming bugs to the LaTeX realm, but it is a concern of mine that, over time, different versions of packages will lead to different PDF output. I am aware of `latexdiff`, and use it routinely for manual inspection of differences in tex files, but that doesn't address two issues: it won't easily capture differences attributable to different package versions, and it isn't clear to me that it's easily automated to identify those files that have differences. It seems to me that the former issue requires that I do a lot to manually segregate different versions of packages, and the latter issue requires doesn't seem easily automated at all. Is there another method for checking that the output is visually the same, for files compiled with different versions of the same dependencies? * * * Update 1: A use case: Suppose you have a lot of published documents or a large manuscript, and want to be sure that their compiled versions haven't changed due to a package update. It may be the case that you want to change the output, hence the reason for a package update, but it's most important that you know _if_ anything has changed, and you can subsequently discern how and why they changed.


title: Two paragraphs side-by-side and page breaks

text: I have a little mind puzzle here. This idea was bugging me since I saw a question about breaking cells in a table on a page break. Let's think of a table row that's built from cells that are paragraphs and we want to have normal page breaks, as if we had just one paragraph to deal with. It doesn't have to be one of the regular table environments. Just have for example paragraphs of `.45\linewidth` with space between them. Suppose we have two paragraphs running side-by-side and let's assume that nothing fancy happens in them - just plain text, same font and size and identical baseline skips. Theoretically it should be possible to save those paragraphs in boxes of given widths where they will be converted into lines, then match each line from one cell with the corresponding line from the other and add those (boxed or haligned) pairs to the vertical list, letting TeX do the usual page breaking. Can this be achieved fairly easily?


title: How to expand linear regression fit to the full x-axis range while using semilogyaxis

text: Since I was asked in another post: Trend line or line of best fit in pgfplots to ask this question explicitly, I'm now doing so: How can I expand the linear regression fit, generated with for example (note the semilogyaxis !!):               \documentclass[fontsize=12pt,openright,oneside,DIV11,a4paper,numbers=noenddot,headsepline,parskip=half]{scrbook}     \usepackage[latin1]{inputenc}     \usepackage[cmex10]{amsmath}     \usepackage{dsfont}          % SIUnitx package     \usepackage{siunitx}     \DeclareSIUnit{\dBm}{dBm}          \usepackage{tikz}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \pgfplotsset{compat=1.3}          \begin{document}         \begin{tikzpicture}             \begin{semilogyaxis}[                     legend style={font=\footnotesize},                     legend pos=north east,                     legend cell align=left,                     /pgf/number format/.cd,                     use comma,                 xlabel=x,                 ylabel=y,                 ymin=,                 ymax=,                 xmin=0,                 xmax=10,                 ]                              \addplot+[only marks,color=black, mark=square*,mark options={fill=black}] table[x=x,y=y] {measurement1.txt};                 \addlegendentry{measurement1};          % Here I would like to plot the linear regression for the whole x-axis range, not only for the x-values in measurement1.txt                      \addplot+[solid,thick,color=black, no marks] table[y={create col/linear regression={y}}] {measurement1.txt};                 \addlegendentry{linearregression1};                     \end{semilogyaxis}             \end{tikzpicture}     \end{document}       to the full x-axis range (for example 0 to 10 and I have measurmentpoints ranging from 2 to 8 only)? It plots only for the x-values for the data points in measurement1.txt. Yes I could extract the slope and intercept using               \xdef\slope{\pgfplotstableregressiona}     \xdef\yintercept{\pgfplotstableregressionb}     \addplot+[solid,thick,color=black, no marks,domain=0:-10] (x,\slope*x+\yintercept);       but if I use semilogyaxis, the line will not be a straight line any more (of course not!). Although the linear regression generated in the axis environment is perfect linear (but is not spanned over the entire x-axis range ...).


title: Choosing whether to include PDF or PNG in PDFLaTeX

text: Can I tell `graphicx` somehow which graphic format to choose when I omit the file extension in `includegraphics` and both a PDF and a PNG version of the same image exist? The reason is that I have some very large PDF vector graphics (in terms of file size/drawing primitives) that take a pretty long time to load each time I view the document. I would like to convert them to PNGs while working on the document and only use the PDF versions in the final document. Therefore, a global option that I can switch in the end would be great. An additional plus would be to do the conversion to PNG on the fly during the LaTeX run if there is a PDF that has not been converted to PNG yet, if a tool for that exists. (I know how to use `convert`, but not how to include it automatically in LaTeX.)


title: Vertical alignment of text in a table

text: I have two images in two different column in a table and in the third table i want to have a text, ideally as a list, but when i write the text it begins at the last row and goes down from there, i want to have the text start from the top. Here is the code                   \begin{tabular}{c c |p{0.30\linewidth}}         {\includegraphics[width=0.30\linewidth]{BoAwoNO2}}&         {\includegraphics[width=0.30\linewidth]{BoAwithNO}} &         Some text          \end{tabular}      and the image of output. ![enter image description here](http://i.stack.imgur.com/JfDtm.png)


title: How to set a image background and tile on page in ConTeXt?

text: That's it. I want to use a image pattern, let's say this image. But I can't figure how to do this on ConTeXt, 'cause neither `\setupbackgrounds` or `\setupframed` have an option to tile backgrounds. I suppose that could be done with Metapost, but I'm very noob at it... Any help is very appreciated!


title: What is the difference between the scalefnt and anyfontsize packages?

text: What is the difference between the `scalefnt` and `anyfontsize` packages? Even though I use `scalefnt`, I get font size substitutions of up to "2.30002pt" in a document I am currently editing. The documentation of `anyfontsize` states that it doesn't yet work with "pdfLaTeX + the EC fonts", but what does that mean? It doesn't work with either, or it just doesn't work with this combination? And what exactly are EC fonts? (If this is relevant: I am using `memoir`, `times`, `microtype`, and many other packages.)


title: How do I specify two default options for an arara identifier?

text: (Apologies if I have the terminology incorrect.) I want to write a directive for arara that can take an argument. The directive should set the name of the output file according to the following rules:   1. If no argument is given, use a default value.   2. If the argument is given but has no value, use the `file` variable.   3. If an argument is given, use that. I thought that the right way to do this would be:               command: 'echo @{ name == "" ? "default" : name }'     arguments:     - identifier: name       flag: '@{value == "" ? file : value }'      but I get: `ERROR: Parsing rule '<rulename>' failed. It might be a malformed directive or orb tag syntax.` if I don't pass an actual argument. Here's a MWE:               !config     # test rule for arara     # author: Andrew Stacey     identifier: echo     name: Echo the value of the argument     command: 'echo @{ name == "" ? "default" : name }'     arguments:     - identifier: name       flag: '@{value == "" ? file : value }'      Then in my test document I try one of:               % arara: echo     % arara: echo: {name: 'something'}     % arara: echo: {name: }     % arara: echo: {name: ''}      The first two work, the second two don't. Is this possible?


title: ytick pgfplot issue

text: I have the following latex code but unfortunately cannot get the ytick to be of my choice.               \documentclass{article}          \usepackage{tikz}     \usepackage{pgfplots}     \begin{document}          \begin{center}         \begin{tikzpicture}             \begin{axis}[                 xlabel=Trail Run \#,                 ylabel=Task completion time,                 xtick={0, 4, 8, 12, 16, 20},                 ytick={0, 1, 2, 3, 4, 5, 6},             legend style={                     at={(0.5,0.5)},                     anchor=center}]                  \addplot[smooth,color=black,mark=*]                 plot coordinates {                     (1, 5.372137)                     (2, 5.401571)                     (3, 5.418153)                     (4, 5.409281)                     (5, 5.440709)                     (6, 5.425516)                     (7, 5.366961)                     (8, 5.392147)                     (9, 5.345825)                     (10, 5.366253)                     (11, 5.320773)                     (12, 5.373887)                     (13, 5.338346)                     (14, 5.322246)                     (15, 5.399925)                     (16, 5.349757)                     (17, 5.345629)                     (18, 5.336819)                     (19, 5.364673)                     (20, 5.402730)                   };             \addlegendentry{XY at 3x3}                  \addplot[smooth,color=magenta,mark=*]                 plot coordinates {                     (1, 4.349543)                     (2, 4.348597)                     (3, 4.349540)                     (4, 4.348221)                     (5, 4.344659)                     (6, 4.350545)                     (7, 4.345121)                     (8, 4.337458)                     (9, 4.344044)                     (10, 4.349293)                     (11, 4.344615)                     (12, 4.349939)                     (13, 4.346299)                     (14, 4.341717)                     (15, 4.345412)                     (16, 4.351933)                     (17, 4.351421)                     (18, 4.338126)                     (19, 4.345590)                     (20, 4.348072)                 };             \addlegendentry{YX at 3x3}             \end{axis}         \end{tikzpicture}     \end{center}          \end{document}      In this case I've specifically changed the legend's position which I didn't really want to. I want the legend to be on south east (which I can do) but I want the ytick to be more like — {0, 1, 2, 3, 4, 5, 6} so I've both the graphs near each other and make terminal '0' as the reference. ![enter image description here](http://i.stack.imgur.com/UWY9J.png) Any thoughts?


title: When using the 'longtable' package, how can I have the table title on the second page indicate that it's a continuation from the previous page?

text: \documentclass[letterpaper]{article}     \usepackage{longtable}              % Longtable package     \usepackage[margin=1in]{geometry}   % Margins     \usepackage{booktabs}               % Nicer horizontal lines          \begin{document}     \begin{longtable}{ l l }     \caption{Heading} \\ \toprule       % toprule, midrule, and bottomrule are the horizontal lines     Left Heading & Right Heading \\ \midrule     \endhead     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\     Left cell & Right cell \\ \bottomrule     \end{longtable}     \end{document}      The above code produces the following: ![First page.](http://i.stack.imgur.com/nr43C.png) ![Second page.](http://i.stack.imgur.com/DGXJy.png) But this is what I want on the second page (this is obviously a product of MS Paint, but please bear with me): ![This is what I want](http://i.stack.imgur.com/JUcE9.png)! So, how would I do this?


title: Datatool, UTF8 and Export to a file

text: The title contains the problem: I have a `datatool` table, which contain accented characters (öäü) and I want to export the table into a CSV file :               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{datatool}          \begin{document}     \DTLnewdb{table}     \DTLnewrow{table}     \DTLnewdbentry{table}{name}{aouäöü}               \DTLdisplaydb{table}     \DTLsavedb{table}{export.csv}          \end{document}      With the package `inputenc`, the display of the table is ok:               name     aouäöü      But in the created file `export.csv` there is :               name     aou\IeC {\"a}\IeC {\"o}\IeC {\"u}      The best for me would be if the exported file was UTF8 encoded (instead of Ascii), and if it contained `aouäöü`. A second class solution which I could accept, would be, if the exported file contained               aou\"a\"o\"u      I could also accept a macro `\convert` which would take `öäü` as argument and would return `\"a\"o\"u`, but I don't know if it exists.


title: Back-referencing figures

text: Similar to the `backref` package that enables back-referencing for bibliographic items in a LaTeX document, I want to use back-references in my list of figures. Is there a clean way to accomplish this? EDIT: I want to add text behind the caption in the LoF, on what pages a given figure is referenced. For example: > 2.3 Visualisation of the manufacturing process (referenced on page 3,4 and > 8) ......... 3


title: APA6 and Beamer and BibLaTex

text: I am having trouble (i.e., a complete failure) getting Beamer to use Biblatex and apa6. Any examples of templates that do this would be appreciated. I have found this very helpful link: https://bitbucket.org/rivanvx/beamer/issue/16/make-bibliography-code-biblatex- aware and with the code the author provides I can get biblatex into beamer, just not in apa6 format.


title: tutorial for making tikz/pgf library

text: I am very impressed with the tikz/pgf libraries created by this community at http://launchpad.net/tex-sx. I would like to create my own too, but don't know where to start. I have tried to reverse engineer the packages I linked to, but find them too sophisticated to have a clue as to what is going on. I had previously asked what tutorials/howtos are available to teach novices how to develop a tikz/pgf library, but am editing my question to take in to account Andrew Stacey's suggestion: > I want to write a tikz package. For those of you with some experience, what > would you go back in time to tell your novice self about?


title: Adding child nodes to child nodes in TikZ Mindmap

text: I'm trying to build a mind map in TikZ and am having numerous problems. I have only a very basic grasp of TeX and would like some help. I found a source and replaced text to create my first steps. Now I'd like:   1. To add child nodes to my child nodes   2. A bigger canvas How do I do them? Source code:               \documentclass{article}              \usepackage{tikz}         \usetikzlibrary{mindmap,trees}              \begin{document}         \begin{tikzpicture}           \path[mindmap,concept color=black,text=white]             node[concept] {Die Wahrnehmung}             [clockwise from=0]             child[concept color=green!50!black] {               node[concept] {Sensorische Prozesse}               [clockwise from=90]               child { node[concept] {Sinnes\-organe} }               child { node[concept] {Schwellen}        child {node[concept] {absolute Schwelle}}       child {node[concept] {Unterschiedsschwelle}}       }       child { node[concept] {Optische Täuschungen aufgrund sensorischer Prozesse}          }     }      child[concept color=blue] {       node[concept] {Organisation}       [clockwise from=-30]       child { node[concept] {Hauptsatz} }       child { node[concept] {Gestaltgesetze} }     }     child[concept color=red] { node[concept] {Klassifikation} };     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/qyzUR.png)


title: Is there an easy way to get the \frontmatter \mainmatter, and \backmatter in a LaTeX report?

text: I'm writing my thesis using the `report` class, which does not support the `\frontmatter`, `\mainmatter`, or `\backmatter` commands. However, I really like the idea of having Roman numeral page numbering for the abstract and other front-matter items as provided by `\frontmatter`. Is there an easy way to import this (or similar) functionality into the `report` class? Thanks in advance for the help!


title: Typesetting C functions

text: I want to describe C-functions in a document, e.g.: `The function fooBar() does foo and bar...` Should I use a different typeset for the function in the text? I have the feeling that for example `\textsc{fooBar()}` highlights the function in the text, but for a high cost in appearance.


title: Two lines in IEEEpubid

text: I have a paper in `IEEEtran` style, on which I'm supposed to add the copyright. I did as follows, after the `\begin{document}`:               \IEEEoverridecommandlockouts     \IEEEpubid{\makebox[\columnwidth]{978-1-4799-5500-8/14/\$31.00 \copyright 2014 IEEE \hfill }      \hspace{\columnsep}\makebox[\columnwidth]{\hfill }}      Now the problem is, the editor wants the name and location of the conference to appear on a line right before this copyright line (and still everything aligned under the left column). How can I do that?


title: Get next section to put bibliography in TOC

text: I'd like to show the bibliography in the TOC. This is how far I got:               \clearpage     \def \nextsection{\thesection + 1}     \addcontentsline{toc}{section}{\nextsection Bibliography}     \printbibliography     \thispagestyle{empty}        * `\clearpage` For some reason, the page number wasn't right without this. It would seem, the bibliography command alone won't increment it.   * `\def ...` This is meant to return an integer. Actually, it returns a string (for example, `11 + 1`), so the computation is not performed; the arithmetic is taken literally. I could replace this by the section I know it to be, but that would break if I ever were to add another section (assuming the bibliography would remain last). Yet another problem (while a detail) is the incorrect spacing of the TOC: see the screenshot below.   * `\thispagestyle{empty}` As I'd like the page number not to show up on the bibliography page (works). Also, I'd say "Bibliography" is a bit pretentious. Is there a way to change it to, say, "References" or "Sources"? This is actually related to this question: perhaps that way, I could name it to use the "increase section" function so that it will show up as (say) "12. Sources" **both** in the TOC and as page header? **Edit** As for the name, and header, this is an improvement:               \clearpage     \renewcommand\bibname{12 Sources}     \addcontentsline{toc}{section}{\bibname}      Still: explicit section number (no increment), TOC align thing, and, for a clickable TOC, you don't get to the correct place by clicking the Sources line (probably because of the `\clearpage`). **Edit 2: MWE** OK, check out the MWE here. Files: `Makefile`; `x.bib`, `x.tex`; and `x.pdf` Problems, already described above and in comments: Increment, TOC align, clickable, consistent header looks. ![incorrect spacing](http://user.it.uu.se/~embe8573/bib.png)


title: algorithm2e with RevTex

text: _Note: I have seen the previous answer to this problemhere and it doesn't work for my purposes. I suspect that others are in the same boat._ I'm writing a paper for which the publisher requires the use of RevTex 4.1. I have several pages worth of algorithms already written using the `algorithm2e` package. But when I went to put them in the paper, all of the indentation failed. Here's a minimal working example:               \documentclass[aip,jcp]{revtex4-1}          \usepackage[ruled,vlined,linesnumbered,commentsnumbered]{algorithm2e}          \begin{document}          \begin{algorithm}       \ForEach{i}{         \ForEach{j}{           hello world\;         }       }       \caption{This is wrong: no indentation}     \end{algorithm}          \end{document}      which gives: ![Output](http://i.stack.imgur.com/3VICQ.png) Am I stuck rewriting pages and pages of algorithms in `algorithmic` syntax (or something else), or is there a workaround for this problem?


title: Centering Table with Column Width in Two-column layout

text: I have the following table which I want to put in the center of the two-column manuscript. But it failed although I already put the asterisk in the `\begin{table*}` command.               \begin{table*}     \noindent\begin{tabular*}{\columnwidth}{@{\extracolsep{\stretch{1}}}*{7}{r}@{}}       \toprule       & $z_{6}$ & $z_{8}$ & $z_{9}$ & $z_{11}$ & $z_{13}$ & $z_{14}$ \\       \midrule       fileA & 0.00 & 0.00 & 0.00 & 0.08 & 0.79 & 0.08  \\       fileB & 0.01 & 0.00 & 0.13 & 0.00 & 0.84 & 0.00  \\       fileC & 0.00 & 0.39 & 0.02 & 0.49 & 0.00 & 0.00  \\       fileD & 0.75 & 0.08 & 0.00 & 0.00 & 0.00 & 0.00  \\       \bottomrule                                  \end{tabular*}     \end{table*}      What's the right way to do it?


title: Why isn't a zero-width box in math mode aligned on the baseline?

text: I'd like to move equation labels into the margin for an article I'm working on, and the answers in Theorem Name/Numbering in Margin accomplish exactly what I'm looking for. Here is a small example:               \documentclass{article}          \usepackage{amsmath,amssymb,amsthm}          \makeatletter     \let\mytagform@=\tagform@     \def\tagform@#1{%         \makebox[1sp][r]{\maketag@@@{(\ignorespaces#1 \unskip \@@italiccorr)}\hspace*{-1in}}%         }     \renewcommand{\eqref}[1]{\textup{\mytagform@{\ref{#1}}}}     \makeatother          \begin{document}          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod     tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,     quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse     cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non     proident, sunt in culpa qui officia deserunt mollit anim id est laborum.          \begin{equation}         f(x) = x^2 \label{deepinsight}     \end{equation}          See \ref{deepinsight} for an example.          \end{document}      When I first tried this, however, I used a box a box of zero width: `\makebox[0pt][r]{ ...`. This almost works, but the resulting equation labels aren't vertically aligned with the equation anymore, as you see here: ![Misaligned equation label](http://i.stack.imgur.com/b9x1I.png) After fiddling with this some more I realized that the original solution is using `\llap` which is probably a better way to get this effect, but I am still curious why a box with zero width is aligned differently than a box with some very small width. Thanks for any explanations or pointers!


title: Math column in tabular without "array" package

text: I'd like to do something like               \begin{tabular}{>{$}c<{$} c}      but I'm not able to use the `array` package (which defines `>{...}` and `<{...}`) due to technical restrictions. Is there any simple way I can achieve this?


title: PGF/TikZ Clipping & Drawing: How to customize lines?

text: I have gotten some undesirable behavior with PGF/TikZ related to clipping and drawing paths with different color, say gray. So I tried with no success to exchange between `\clip[draw=gray]`, `\draw[clip,gray]` or `\path[draw=gray, clip]` or maybe using indirectly styles, the Emacs' output throws a TeX error message:               Extra options not allowed for clipping path command...      the only way to do so is by using scopes:               \begin{scope}[draw=gray] ... \end{scope}      Unfortunately, this technique requires that all the scoped objects' lines should be switched to black. So is there a trickery way to achieve this without passing by scope environment?


title: Conversion of latex to html for Word does not work

text: In order to get html code that is appropriate for Word I used the following command that I found on a TUG page:               htlatex filename "html,word" "symbol/!" "-cvalidate"      If I do this in Cygwin I get the following error message:               sh.exe": !": event not found      If I change the line to:               htlatex filename "html,word" "" "-cvalidate"      ...I get:               --- warning --- Couldn't find font `5chr8t.htf' (char codes: 0--255)     [1 file main.html     --- error --- Can't find/open file `main.html'


title: How Do I insert a image in LaTex from my computer

text: How do I create a file in windows from where LaTex can extract the pdf or Jpg file I want to insert in my document? In other words I need an example of inserting either images or pdf files in my document Here's the image I want to insert ![enter image description here](http://i.stack.imgur.com/cM66I.jpg) The Image will be placed center to the page just beneath this codes               \[     \overline \rho = \overline P + 0.645 \Big (\frac { \overline P}{K}\Big) ^{\frac {3}{4}} \tag { Tazkera}     \]


title: Glossaries: "see" having no effect

text: I tried to implement the `glossaries` package in my document and it works pretty well. But when it comes to the "see" option, I'm currently facing some trouble: whether I include a `see=entry2` or not, is affecting the glossary in no way               \documentclass[a4paper,10pt]{article}          \usepackage[utf8]{inputenc}          \usepackage{lipsum}     \usepackage{glossaries}          \newglossaryentry{entry1}{       name=first example,       description={\lipsum[3]},       sort=example1,       see=[see also]{entry2}     }          \newglossaryentry{entry2}{       name=second example,       description={\lipsum[4]},       sort=example2,     }          \renewcommand*{\glspostdescription}{\hspace{1em}}     \makeglossaries          \begin{document}          \lipsum[1]          This is the first \gls{entry1} for testing.           \lipsum[2]          \medskip          And this is the second \gls{entry2} for testing.           \printglossaries          \end{document}      What's wrong with the above MWE?


title: Bad pagenumber display in head and footline

text: I'm just writing my thesis in Latex and I am having a problem with the pagenumber display. I want the **headline** to contain chapternumber, chaptername and pagenumber. The footline should be empty. An alternative would be that the pagenumber is displayed in the lower right corner of the page (then not in the headline). Anways, my current situation is that the pagenumber IS displayed in the headline together with the chapternumber and chaptername, but on the pages that contain the beginning of a new \section the pagenumber is displayed in the middle of the footline and the headline is totally empty. Now what can I do so that the pagenumber is either: • Displayed on the right of the headline or • Not at all (on the pages that contain a new \section or \chapter? The document is supposed to be onesided. Here is my header of the tex-file:               \documentclass[12pt,a4paper,toc=listofnumbered]{scrbook}     \usepackage{geometry}     \geometry{a4paper, twoside=false, left=4cm, right=2cm, top=2cm, bottom=2.5cm, marginparwidth=0pt}     \usepackage[utf8]{inputenc}     \usepackage{lmodern}     \usepackage[ngerman]{babel}     \usepackage{color} %Farbe im Allgemeinen     %\usepackage{colortbl} % Für farbig hinterlegte Zellen in Tabellen     \usepackage[table]{xcolor}     %\usepackage{float}     \usepackage{enumitem}     \usepackage{wrapfig} %Um Umgebung \wrapfigure benutzen zu können      \usepackage{amsmath} %Für Equation-Umgebung     \usepackage{amssymb} %Für verschiedene Mathesymbole     \usepackage{nicefrac} %ermöglicht Brüche mit Schrägstrichdarstellung     \usepackage{array} %Für Paragraph-Spalten in Tabular-Umgebung     \usepackage{textcomp} %Für Pfeildarstellungen im Text     \usepackage{picins} % Textumflossene Bilder      \usepackage[labelfont=bf, figurename=Abb., tablename=Tab.]{caption} %Umbenennung der Bild- und Tabellenunterschriften in Abkürzungen     \renewcommand{\tablename}{Tab.}     \usepackage{multirow}     %\restylefloat{figure} % Damit Package "Float" wirksam wird     \usepackage{graphicx}     \captionsetup{font={small}}     \usepackage[pdftex]{rotating} %Objekte können rotiert werden     \usepackage{setspace} %ermöglicht das Einstellen des Zeilenabstands     \onehalfspacing  %Stellt auf 1,5fachen Zeilenabstand ein     \graphicspath{{Bilder_Diplomarbeit/}}     \usepackage{fancyhdr} %Um Kopfzeilen editieren zu können          %Abstand zwischen einzelnen Absätzen und kein Zeileneinzug am Anfang     \parindent=0pt                  % Setzt den Zeileneinzug     \parskip=\smallskipamount       % Setzt den Freiraum zwischen zwei Absaetzen     \usepackage{setspace}     \setstretch{1.17}          %Farbdefinitionen     \definecolor{dunkelgrau}{rgb}{0.8,0.8,0.8}     \definecolor{hellgrau}{rgb}{0.95,0.95,0.95}          \begin{document}     \chapter{1}     \end{document}


title: Different color display between Adobe Reader and Yap

text: Today I have been realized some drawings for my scientific article using PGF. After converting the DVI to the PDF file I have noticed that my grid which has been supposed to be gray was somewhat darker in Adobe Reader than Yap. Why do colors display differently in Adobe Reader (PDF version) compared with Yap (DVI version)?


title: Modifications for labeling a triangle

text: I have a diagram that needs some modifications. The mark for the right angle and the label of $\theta$ are not in the right places. The arc indicating $\angle ACB$ is not in the place. The lengths $x$ and $y$ for $\overline{PC}$ and $\overline{PB}$, respectively, are not in the right places. The line indicating the length of $\overline{BC}$ is shifted rightward from its correct position. I would like $a + x$ to be typeset in the same direction as the line.               \documentclass[10pt]{amsart}     \usepackage{tikz}     \usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings}     \usepackage{tkz-euclide}     \usetkzobj{all}          \begin{document}          \begin{tikzpicture}     \path (60:2.5) coordinate (A) (10:6) coordinate (B) (0:0) coordinate (C);     \draw (A)     -- (B) node [at start, above left]{$A$} node [midway, above]{$c$}     -- (C) node [at start, right]{$B$}     -- (A) node [at start, below]{$C$} node [midway, left]{$b$} -- cycle;     \coordinate (P) at ($(B)!(A)!(C)$);     \draw [dashed] (A) -- (P) node [below]{$P$} node [midway, right]{$h$} -- (C);     C -- node [midway, below]{$x$} -- P -- node [midway, below]{$y$} B;     \draw pic[draw, angle radius=2mm,"$\theta$",angle eccentricity=2] {angle = B--C--A};     \tkzMarkRightAngle(A,P,B);     \draw[|<->|] ($(B)!7mm!90:(C)$)--node[fill=white] {$x + y$} ($(C)!7mm!-90:(B)$);     \end{tikzpicture}          \end{document}


title: Reduce space after \includegraphics

text: I do not know how to reduce the vertical space between a figure and the following text or line. LaTeX code:               \begin{document}      \centering     \includegraphics[width = 5.0cm]{logo.png}     \HRule     \end{document}      where `\HRule` is defined as `\newcommand{\HRule}{\rule{\linewidth}{1mm}}` I want to reduce the space between the figure and the line. I have tried with `\vspace`, but it did not work. I hope you have a solution.


title: \textmu doesn't work with newtxtext

text: I've read that the `newtxtext` and `newtxmath` packages are preferable to `times`, `txfonts` and `mathptmx`, at least for use with `pdfTeX`. I'm in the process of writing a paper where some measurements are given in microns (µm). Unfortunately, the `\textmu` (as well as `\micro` in `siunitx`) is replaced with a Computer Modern replacement. Example:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{newtxtext}     \usepackage{newtxmath}          \usepackage{textcomp}          \begin{document}          This is 10\textmu m.          \end{document}      In the compilation process, I see this:               LaTeX Font Warning: Font shape `TS1/ntxrx/m/n' undefined     (Font)              using `TS1/cmr/m/n' instead     (Font)              for symbol `textmu' on input line 12.      and `LaTeX Font Warning: Some font shapes were not available, defaults substituted.` This seems to happen with the `\textohm` command as well (and perhaps others I'm not using). It looks particularly bad in bold text. `txfonts` seems to produce output (though the mu symbol isn't quite as nice as it is with `mathptmx`). Using `mathptmx` causes compilation to fail with `\textohm`. Arg. I'm wondering if there is some trick that I'm not aware of for getting `\textmu` (or `\micro` from siunitx) to work with these packages. I'm using version 1.07 of `newtxtext`, dated Dec 25, 2012. Thanks.


title: Tabular integration by parts

text: All I am trying to do is write an integration by parts table in LaTeX. I can't seem to find an .tex code examples anywhere though I have seen pictures of such tables in PDF form (like at http://cazelais.disted.camosun.bc.ca/187/parts.pdf for example). Hopefully someone can let me know real quick.


title: article style bibliography in Beamer class

text: I'm making a poster with the `beamer` class and the `beamerposter` package. I add some important references at the end, but I don't like the style. I would like the style that a bibliography has in the `article` class. is there a way to do this?               \documentclass{beamer}     \begin{filecontents}{\jobname.bib}     @article{Baird2002,     author = {Baird, Kevin M and Hoffmann, Errol R and Drury, Colin G},     journal = {Applied ergonomics},     month = jan,     number = {1},     pages = {9--14},     title = {{The effects of probe length on Fitts' law.}},     volume = {33},     year = {2002}     }     \end{filecontents}          %\usetheme{EastLansing}     %\usepackage{natbib}     \bibliographystyle{apalike}     % make bibliography entries smaller     %\renewcommand\bibfont{\scriptsize}     % If you have more than one page of references, you want to tell beamer     % to put the continuation section label from the second slide onwards     \setbeamertemplate{frametitle continuation}[from second]     % Now get rid of all the colours     \setbeamercolor*{bibliography entry title}{fg=black}     \setbeamercolor*{bibliography entry author}{fg=black}     \setbeamercolor*{bibliography entry location}{fg=black}     \setbeamercolor*{bibliography entry note}{fg=black}     % and kill the abominable icon     \setbeamertemplate{bibliography item}{}          \begin{document}     \begin{frame}         \frametitle{My great slide}         \begin{itemize}         \item \cite{baird2002} said some stuff.         \end{itemize}          \end{frame}     \begin{frame}[t,allowframebreaks]     \frametitle{References}     \bibliography{\jobname}     \end{frame}     \end{document}


title: Adjusting spacing in beamer while changing font size

text: If I decrease the font size in `beamer`, as in the code below, the spacing stays the same. I do want single spacing throughout, but adjusted according to the specific font size being employed. That is, I want smaller fonts to be closer together vertically than bigger fonts. How can I accomplish this?               \documentclass{beamer}     \usepackage{setspace}     \usepackage{blindtext}          \begin{document}     \blindtext          \begin{tiny}     \blindtext     \end{tiny}          \end{document}      ![enter image description here](http://i.stack.imgur.com/1lXMs.png)


title: Suppress space after acronym

text: I'm using the `glossaries` package to keep a list of acronyms. In Dutch when you compose a word with an acronym you should use a hyphen to put the two words together. For example, an ARP table becomes ARP-tabel in Dutch. If I have defined the acronym 'ARP', how can I put the '-tabel' after it without a space being introduced by LaTeX? This is what I have currently:               \gls{arp} -tabel      But produces:               ARP -tabel      What I want:               ARP-tabel