title: Hyphenation for words with underscore

text: Can I tell LaTeX that it may hyphen words that contain an underscore `_` always before the underscore? I have a lot of code examples in text, like `is_error_condition_enum` and I would like to tell LaTeX it may hyphen this as:               Lorem ipsum is_error_-     condition_enum lorem.      always. If that is not possible globally, how do I make an entry for some underscore- words like:               \hyphenation{is_-error_-condition_-enum}      because that entry is rejected, obviously. In sourcecode I write words like these as `\gpmono{is\gpus{}error\gpus{}condition\gpus{}enum}`.


title: Biblatex: using "dashed" in one refsection but not another

text: Am I right that it is impossible to turn the `dashed` option on for one `refsection`, but not for another within the same document? (If you're wondering why one would need that: I'm compiling a research proposal which has a complicated structure (stipulated by the funding organization). My CV is part of that structure and hence my list of publications. Using dashes in your CV looks silly. But I'd like to use them in the other sections, where I'm citing other people's works. (The CV-part is a seperate refsection in order to prevent the a,b,c suffixes))


title: Best practice for typesetting physical quantities using siunitx

text: Consider the following example. **Code**               \documentclass{article}          \usepackage{amsmath}     \usepackage[       locale=DE,       output-product=\cdot,       product-units=single % I use this option a lot in the document, so I've defined it globally.     ]{siunitx}          \begin{document}          \begin{align*}       A_a       &= A_b - 4 \cdot A_c\\       &= \SI[product-units=repeat]{1900 x 1500}{\mm} - 4 \cdot \frac{1}{2} \cdot \SI[product-units=repeat]{250 x 250}{\mm}\\       &= \SI[product-units=repeat]{1.9 x 1.5}{\m} - 2 \cdot (\SI{0.25}{\m})^{2}\\       &= \num{1.9} \cdot \SI{1.5}{\square\m} - \SI[parse-numbers=false]{2 \cdot 0{,}25^{2}}{\square\m}\\       &= \SI[parse-numbers=false]{(2{,}85 - 0{,}125)}{\square\m}\\       &= \SI{2.725}{\square\m}.     \end{align*}          \end{document}      **Output** ![Output](http://i.stack.imgur.com/v6VV3.jpg) **Question** What is the 'best' way to typeset this using the `siunitx` package? **Update** Taking Jake's comments into consideration, I write               \num{1.9} \cdot \SI{1.5}{\square\m}      but isn't               \SI[product-units=single]{1.9 x 1.5}{\square\m}      better in this case, since the `1.9` comes from the quantity `1.9 m` where there is a unit involved?


title: Change display style in xlop multiplication

text: When I use `xlop` for multiplication for example like this:               \documentclass{article}               \usepackage{xlop}     \begin{document}          \opmul{0.436}{0.35}          \end{document}      I get the following output: ![Output Xlop](http://i.stack.imgur.com/gr3xl.png) However I need the following style: ![output](http://i.stack.imgur.com/gfpxy.png) How can I achieve this? I guess it should be possible with some modifications of the macro `\op@muldisplayone` however my plain-tex abilities are too limited to do this...


title: Unnumbered line inside align

text: Basically, I have two equations that I wanted to use align to number, but I also wanted to put the word 'and' in between the lines. Here's what I have so far               \begin{document}     \usepackage{amsmath}          \begin{align}       \mathrm{distance} &= \mathrm{speed} \times \mathrm{time}\\       &\text{and}\\       y &= \mathrm{m}x + \mathrm{c}     \end{align}          \end{document}      This gives me the equations in the way that I want them but it numbers the line that says 'and'. Hopefully, if this made any sense, someone can help me with this.


title: Book option of the combine document class

text: I included a MWE (a main file and three articles) that uses the `combine` class with `book` option. There are two problems. The formatting process creates the LaTeX Error: Environment abstract undefined, and formatting stops at the first `\begin{abstract}` command in first input file. Press “r” to continue the formatting process. The resulting PDF is almost correct except for the section numbering (0.1, 0.2 … instead of 1, 2 …) in the input article documents. The article documents include the command `\setcounter{section}{0}` in the preamble. The file formats if I replace `book` with `report`, but the section-numbering problem persists. The main document is an accurate example of what I need (A book with parts, several chapters with no input files, and several chapters with input files.) All input files use the article document class. I use MiKTeX 2.9 on Windows 7.               \documentclass[book]{combine}     \usepackage[english]{babel}     \usepackage{blindtext}     \title{The collection}     \author{A. N. Editor}     \begin{document}     \maketitle     \tableofcontents     \part{First part}     \blindtext[1]     \chapter{First chapter}     \section{Introduction}     \blindtext[1]     \chapter{Second chapter}     \section{Introduction}     \ldots     \begin{papers}         \coltoctitle{First article}         \coltocauthor{Author of first article}         \import{inputDoc1}         \coltoctitle{Second article}         \coltocauthor{Author of second article}         \import{inputDoc2}     \end{papers}     \chapter{Third chapter}     \section{Introduction}     \ldots     \begin{papers}         \coltoctitle{Third article}         \coltocauthor{Author of third article}         \import{inputDoc3}         \end{papers}     \chapter{Chapter 4}     \section{Final introduction}     \end{document}      %first article     \documentclass[]{article}     \usepackage[english]{babel}     \usepackage{blindtext}     \begin{document}     \title{First article}     \author{Author of first article}     \maketitle     \begin{abstract}         \blindtext[2]     \end{abstract}     \section{first section}     \blindtext[3]     \end{document}     %second article     \documentclass[]{article}     \usepackage[english]{babel}     \usepackage{blindtext}     \setcounter{section}{0}     \begin{document}     \title{Second article}     \author{Author of second article}     \maketitle     \begin{abstract}         \blindtext[1]     \end{abstract}     \section{first section}     \blindtext[1]     \end{document}     %third article     \documentclass[]{article}     \usepackage[english]{babel}     \usepackage{blindtext}     \setcounter{section}{0}     \begin{document}     \title{Document 1a}     \author{Author of document 1a}     \maketitle     \begin{abstract}         \blindtext[3]     \end{abstract}     \section{first section}     \blindtext[1]     \section{second section}     \blindtext[1]     \end{document}


title: question about pgf-blur package in xelatex

text: Here is my code:               \documentclass{article}     \usepackage{pgfplots}     \usetikzlibrary{shadows.blur}          \begin{document}          \tikzfading[name=fade down,          top color=transparent!30,          bottom color=transparent!0]          \begin{tikzpicture}     \begin{axis}[axis x line*=bottom,                  axis y line*=left, blur shadow]        \addplot[yshift=-2pt,ybar, blue, fill,path fading=fade down, rounded corners=2pt]            coordinates{(1,2.9) (2,1.7) (3,4.2) (4,5.1) (5,4) (6,2.2)};     \end{axis}     \end{tikzpicture}     \end{document}      when I compile the code use `pdflatex`, the PDF is display correct. but when I compile using `xelatex`, in the generated `pdf`, the shadows became to black color. why? how to fix it? ![pdflatex output](http://i.stack.imgur.com/FrSfy.jpg) ![xelatex output](http://i.stack.imgur.com/Dd8kk.jpg)


title: Spacing below section title

text: The document class `acm_proc_article-sp` seems to be incompatible with the package `titlesec`. At least I can not load it. It fails with               (/usr/share/texmf-texlive/tex/latex/titlesec/titlesec.sty     ! Undefined control sequence.     <argument> \subparagraph           l.1470 \ttl@extract\subparagraph      However, the space below section titles is too little. The text attached directly. How can I automatically insert some space? (Instead of a manual `\vspace`)


title: Create custom node to draw this

text: I'm very very new to tikz, I've already done this: ![enter image description here](http://i.stack.imgur.com/qsigm.png) With this code:               \documentclass{article}          \usepackage[spanish,es-noquoting]{babel}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{tikz}     \usetikzlibrary{shadows}     \usetikzlibrary{arrows}     \usetikzlibrary{shapes.misc}     \usetikzlibrary{positioning}     \usetikzlibrary{calc,intersections}          \begin{document}     \begin{tikzpicture}[terminal/.style={draw, drop shadow, fill=white, rectangle, inner sep=5pt, font=\bfseries, align=center}]     \tikzset{fallastyle/.style={text=red}}     \tikzset{pasastyle/.style={text=green}}     \def \radius {0.25\textwidth}     \def \margin {20} % margin in angles, depends on the radius          \path[name path=circulo] (0, 0) circle (\radius);          \node(escribir_prueba)[name path=path_escribir_prueba,terminal] at ({0+90}:\radius){(Re)Escribir\\ Prueba};     \node(correr_prueba)[name path=path_correr_prueba, terminal] at ({300+90}:\radius){Correr\\ Prueba};     \node(escribir_codigo)[name path=path_escribir_codigo, terminal] at ({240+90}:\radius){Escribir\\ Código};     \node(correr_todas_pruebas_1)[name path=path_correr_todas_pruebas_1, terminal] at ({180+90}:\radius){Correr todas\\ las pruebas};     \node(refactorizar)[name path=path_refactorizar, terminal] at ({120+90}:\radius){Refactorizar};     \node(correr_todas_pruebas_2)[name path=path_correr_todas_pruebas_2, terminal] at ({60+90}:\radius){Correr todas\\ las pruebas};               \node (start) [node distance=8mm and -1mm, above left=of escribir_prueba, circle, fill=black, minimum width=1pt]{};          % INTERSECCIONES     \path [name intersections={of=circulo and path_escribir_prueba,name=intESCRIBIRPRUEBA}];     \def \ESCRIBIRRIGHT {intESCRIBIRPRUEBA-1}     \def \ESCRIBIRLEFT {intESCRIBIRPRUEBA-2}          \path [name intersections={of=circulo and path_correr_prueba,name=intCORRERPRUEBA}];     \def \CORRERPRUEBAUP {intCORRERPRUEBA-1}     \def \CORRERPRUEBADOWN {intCORRERPRUEBA-2}          \path [name intersections={of=circulo and path_escribir_codigo,name=intESCRIBIRCODIGO}];     \def \ESCRIBIRCODIGOUP {intESCRIBIRCODIGO-1}     \def \ESCRIBIRCODIGODOWN {intESCRIBIRCODIGO-2}          \path [name intersections={of=circulo and path_correr_todas_pruebas_1,name=intCORRERTODASPRUEBASFIRST}];     \def \CORRERTODASPRUEBASFIRSTLEFT {intCORRERTODASPRUEBASFIRST-1}     \def \CORRERTODASPRUEBASFIRSTRIGHT {intCORRERTODASPRUEBASFIRST-2}          \path [name intersections={of=circulo and path_refactorizar,name=intREFACTORIZAR}];     \def \REFACTORIZARUP {intREFACTORIZAR-1}     \def \REFACTORIZARDOWN {intREFACTORIZAR-2}               \path [name intersections={of=circulo and path_correr_todas_pruebas_2,name=intCORRERTODASPRUEBASSECOND}];     \def \CORRERTODASPRUEBASSECONDUP {intCORRERTODASPRUEBASSECOND-1}     \def \CORRERTODASPRUEBASSECONDDOWN {intCORRERTODASPRUEBASSECOND-2}               \draw [->,bend left=15] (\ESCRIBIRRIGHT) to (\CORRERPRUEBAUP);     \draw [->,bend left=15] (node cs:name=correr_prueba, anchor=west) to  node [midway,left,pasastyle] { [pasa] } (node cs:name=escribir_prueba, anchor=south);     \draw [->,bend left=15] (\CORRERPRUEBADOWN) to node [midway,right,fallastyle] { [falla] } (\ESCRIBIRCODIGOUP);     \draw [->,bend left=15] (\ESCRIBIRCODIGODOWN) to (\CORRERTODASPRUEBASFIRSTRIGHT);     \draw [->,bend left=15] (node cs:name=correr_todas_pruebas_1, anchor=north) to  node [midway,left,fallastyle] { [falla] } (node cs:name=escribir_codigo, anchor=west);     \draw [->,bend left=15] (\CORRERTODASPRUEBASFIRSTLEFT) to node [midway,left,pasastyle] { [pasa] } (\REFACTORIZARDOWN);     \draw [->,bend left=15] (\REFACTORIZARUP) to (\CORRERTODASPRUEBASSECONDDOWN);     \draw [->,bend left=15] (node cs:name=correr_todas_pruebas_2, anchor=south) to  node [midway,right,fallastyle] { [falla] } (node cs:name=refactorizar, anchor=north);     \draw [->,bend left=15] (\CORRERTODASPRUEBASSECONDUP) to node [midway,left,pasastyle] { [pasa] }(\ESCRIBIRLEFT);               \draw [->,bend left=15] (node cs:name=start, anchor=east) to (node cs:name=escribir_prueba, anchor=north);     \end{tikzpicture}      I'm sure it's not the best way to do that, but as I said, I'm very new in tikz, and the concept seems clear: draw the `nodes` at 360/total_nodes degrees, find intersections between node and a circle, draw an `arc` between intersections. So far so good. Now I want to do this, that is pretty much the same thing: ![enter image description here](http://i.stack.imgur.com/ytEB0.png) I would like to make the 3 bubbles (prueba-codigo-refactor) a `node`, so I can do the same thing I did before. This code draws the 3 bubbles:               \begin{tikzpicture}     \node [draw, circle, fill=white, minimum width=5em]at (0, 0){Prueba};     \node [draw, circle, fill=white, minimum width=5em]at (1.2, -0.6){Código};     \node [draw, circle, fill=white, minimum width=5em]at (1.2, 0.6){Refactor};     \end{tikzpicture}      But I need the hole thing to behave as one node. So the questions are:   1. How can I do to make the 3 bubbles a node (and behave like a node) so I can do the same thing I did before?   2. This is all I can think with one-day experience with tikz, you sure know better and may come up with a better solution, I want to hear it! I want to learn tikz, so a "here, paste this code and works, bye bye" it's not the best answer for me. On the other side, "look at this link, bye bye" it's kind of hard to me to understand, a MME would be awesome (and the link).


title: Where are WinEdt acronyms explained?

text: I am a newcomer to WinEdt 7.1 Where can I find a simple explanation for terms such as PDFTeX, PDFLaTeX, and PDFTexify?


title: How would one design a math font?

text: There are (some very nice) text fonts which do not have math support. Though there are ways to 'remedy' this, such as the _mathastext_ package and some others, these are hardly satisfactory. All accents need to be manually adjusted every time they are used, spacing is a nightmare, and overall the document in general does not look professional. Leading to my **Question.** How would one, given a text font, design a math package utilizing this font? In particular, I am not interested (at the moment) in artistic font design issues like shape and slope of letters and such things. Some of the precise issues that I would like to solve are:   * Positions for decorations like bars, tildes, etc.   * Subscript / superscript size and positioning.   * 'Box' sizes and position (I believe this is correct terminology), for instance how much space around an italicized $f$ so that the tail does not overlap the previous letter (an issue that occurs frequently with the remedies mentioned above). And of course, there is the issue of the math symbols (including arrows, binary operators, greek letters, script alphabets, etc.). Obviously it would be nice to create from scratch my own set of such symbols, but that is far in the future and not an issue for now. Right now, I have symbols I like from a variety of places and packages. **Example.** The package _fouriernc_ is new century schoolbook with fourier math. This is similar to what I want. To design a math font package that is equipped with math symbols from another. (Indeed, fourier is a math set I am considering.) So, now that the proposal is (relatively, I hope) clear, we return to the question. I don't have experience programming in TeX (though I know C and python quite well) beyond the basics. In particular, I have never done anything beyond what is in document. Thus I haven't a clue on how to begin with this project. Any help would be greatly appreciated.


title: Is it possible to use the listings package incrementally in beamer?

text: Given a frame that has code rendered in a `\begin{lstlisting}...\end{lstlisting}` environment, is it possible to use beamer's incremental frame building feature to highlight code snippets? Here is an example of what I would like to use:               \begin{frame}[fragile]{Test}     \begin{lstlisting}     x = y \alert<2->{// Assigns the value of y to x.}     \end{lstlisting}     \end{frame}


title: margin notes disturb line numbering of listings

text: I've tried to add margin notes for listings (PS: footnotes work fine), but when line numbering is on, the margin notes disturb the numbers:               \documentclass{article}          \usepackage{listings}     \usepackage{marginnote}          \begin{document}          \lstset{language=C++,numbers=left,escapeinside={(*@}{@*)}}          \begin{lstlisting}     for (int i = 0; i < 10; i++)     {         cout << i << endl;     }     \end{lstlisting}          \begin{lstlisting}     for (int i = 0; i < 10; i++)     {         cout << i << endl;(*@\marginnote{margin note}@*)     }     \end{lstlisting}          %% I've tried to wrap \marginnote with boxes, but could't fix it.          \begin{lstlisting}     for (int i = 0; i < 10; i++)     {         cout << i << endl;(*@\vbox{\marginnote{margin note}}@*)     }     \end{lstlisting}          \end{document}      ![result](http://i.stack.imgur.com/03Rvf.png)


title: Can I place a block inside figure in beamer?

text: I have an image with lot of white space. I want to fill up the while space with blocks and add information in it. Is it possible with beamer?


title: Using longtable with \cmidrule: page-breaking issues

text: Here's a (minimal?) working example that illustrates both the issues I am having:               \documentclass{article}     \usepackage{longtable,booktabs,lipsum,array}     \usepackage{pgfplots}     \newcommand{\sheaf}{\mathcal}     \begin{document}     \begin{longtable}{>{\raggedright}m{2.5in} c c c c c c c}     \caption{Degree 8 curves\label{table:degree_8}}\\ \toprule      Rational curve: \\$[t,s] \mapsto$ & $\sheaf E_{1} |_C$ & $\sheaf E_{2} |_C$ & $\sheaf E_{3} |_C$ & $\sheaf E_{4} |_C$ & $\sheaf E_{5} |_C$ & $\sheaf E_{6} |_C$\\ \midrule      \endfirsthead     \caption[]{Degree 8 curves (continued)}\\ \toprule      Rational curve: \\$[t,s] \mapsto$ & $\sheaf E_{1} |_C$ & $\sheaf E_{2} |_C$ & $\sheaf E_{3} |_C$ & $\sheaf E_{4} |_C$ & $\sheaf E_{5} |_C$ & $\sheaf E_{6} |_C$\\ \midrule      \multicolumn{1}{c}{\vdots} & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\ \cmidrule{2-7}      \endhead     \multicolumn{1}{c}{\vdots} & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots\\ \bottomrule     \endfoot     \endlastfoot     \pgfplotsforeachungrouped \i in {0,...,22}     {         \lipsum[\i] & $\Sigma$ & $\Sigma$ & $\Sigma$ & $\Sigma$ & $\Sigma$ & $\Sigma$ \\         \cmidrule{2-7}     }     \lipsum[1] & $\Sigma$ & $\Sigma$ & $\Sigma$ & $\Sigma$ & $\Sigma$ & $\Sigma$ \\ \bottomrule     \end{longtable}     \end{document}      I'm not even going to try to post a picture, but here are the issues:   1. On the first page (and almost every page thereafter), the `\cmidrule` comes right before the footer. I would prefer for the `\cmidrule` here to be eliminated altogether. Is there any way to manage this?    2. The `\cmidrule` at the end of page 13 has been pushed onto page 14, producing an obviously unwanted effect. Assuming my first request is not feasible, is there a way to correct this (that does not involve manual adjustments to the page breaking, which kind of defeats the whole purpose of using `longtable`)?


title: Input Single Value, store 5 different value

text: My LaTeX code is:               \documentclass{thesis}     \begin{document}     \arttype{5}     \end{document}      Required Output is: If `arttype` value is `5`:               `5thArticle Title-tnins` is need to store in \newcommand `\arttext`.     `5thArticle Short Title-tnins` is need to store in newcommand `\artshortname`.     `5thArticle Sub-Title-tnins` is need to store in newcommand `\artabbrtext`.     `5thArticle Color X-tnins` is need to store in newcommand `\artcolor`.     `5thArticle Misc. Value-tnins` is need to store in newcommand `\artmisc`.      If `arttype` value is `8`.               `8thArticle Title-toins` is need to store in \newcommand `\arttext`.     `8thArticle Short Title-toins` is need to store in newcommand `\artshortname`.     `8thArticle Sub-Title-toins` is need to store in newcommand `\artabbrtext`.     `8thArticle Color X-toins` is need to store in newcommand `\artcolor`.     `8thArticle Misc. Value-toins` is need to store in newcommand `\artmisc`.      `arttype` value is `n` number of times. I will print the each `\art*` values in each paragraph separately. How do control in LaTeX class file?


title: TikZ: create filled polygon from single points set

text: I have a list of named points (from `mark-1` to `mark-26`) and I want to use them as vertexes of a polygon, which should be filled blue. I don't want to write them down in a path manually because they will change in other versions of the document (going from 26 to 20 or something like that). I've tried this:               \newcommand{\aaa}{         \foreach \x [count=\xi from 2] in {1,...,25} {(mark-\x) -- (mark-\xi)}     };     \fill[blue] \aaa -- (mark-1) -- cycle;      but it seems that `\aaa` catches just the last 2 points (25 and 26). Update: Since the answer requires some details, I'm generating the nodes using decorations along a path:               \begin{scope}[               every path/.style={                 decoration={                     markings,                     mark=between positions 0.57 and 1.2 step 6pt with {                         \node[                               red,                               %nodes going from mark-1 to mark-26                               name=mark-\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}                              ] circle (2pt);                     }                 }               }     ]         % load base compound path         \input{img/comp}     \end[scope]      Thank you


title: Section title in header showing the title belonging to the section that begins the page

text: In the header latex shows the title of the section which starts on a page. I would like it to show the title of the section which is continued from the previous page. An example:               \documentclass{article}     \pagestyle{headings}          \begin{document}          \section{Section One}          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sit     amet nulla ornare erat commodo iaculis. Suspendisse eleifend nunc     nec nulla congue accumsan. Nulla ut suscipit libero, a vulputate metus.     Phasellus a vulputate sapien. In auctor rhoncus elit sit amet eleifend.     Aliquam vitae egestas nisl, in dapibus erat. Etiam ut ornare neque.     Duis feugiat nisi sit amet ligula ornare hendrerit. Curabitur interdum     arcu augue, in tincidunt mi bibendum eget. Nam eleifend nulla at ipsum     gravida, nec semper ligula sodales. Phasellus et sollicitudin sapien.     Integer eu nunc nisi. In cursus, tellus non dapibus auctor, mauris     lacus gravida felis, vel condimentum nibh ipsum in diam.           Nulla a viverra lacus. Lorem ipsum dolor sit amet, consectetur adipiscing     elit. Proin aliquam eget ligula sit amet bibendum. Maecenas in sodales     mauris, vitae accumsan dolor. Nam vitae nunc commodo, fermentum nibh     sed, volutpat elit. Curabitur auctor tellus quis justo mollis ultrices.     Nullam porta dapibus hendrerit. Ut non iaculis tortor, quis sollicitudin     ante. Nam ut tristique enim, in aliquam augue.           Nam eu cursus lacus. Aliquam tempor placerat nulla, ac auctor nisl     commodo ac. Duis congue sed est a auctor. Aliquam dictum eu neque     ac ornare. Maecenas sodales tristique est vestibulum tempor. Morbi     commodo nibh eget fermentum vulputate. Fusce mattis ultrices neque,     eu imperdiet massa scelerisque varius. Fusce tincidunt neque sapien,     vel luctus lectus imperdiet sit amet. Nullam aliquet ultricies enim,     et sollicitudin lorem dignissim quis.           Pellentesque at convallis est. Suspendisse eget elit et nulla egestas     semper in porttitor nisi. Nunc facilisis nec arcu ut vulputate. Donec     vel semper velit. Donec blandit neque eget volutpat lacinia. Quisque     eleifend enim vel odio consequat, ut mattis ante lobortis. Morbi tempor     lorem turpis, a dignissim massa imperdiet in. Vestibulum ante ipsum     primis in faucibus orci luctus et ultrices posuere cubilia Curae;     Sed neque augue, iaculis nec feugiat eget, varius id dui. Sed varius     lorem vitae neque placerat aliquam. Nulla volutpat congue urna id     rutrum. Morbi ullamcorper, nisl et posuere dignissim, augue lectus     tincidunt quam, sit amet luctus turpis risus sit amet velit. Curabitur     ligula orci, sollicitudin vitae neque ac, imperdiet interdum risus.     Pellentesque ut risus ante. Cras facilisis nulla id pretium consectetur.     Ut ac enim cursus, dictum tortor ultricies, lacinia nunc.           Ut quis sem nibh. Curabitur tempus felis in porttitor bibendum. Praesent     condimentum iaculis semper. In hac habitasse platea dictumst. Fusce     accumsan pulvinar ornare. Mauris eu lacinia orci. Phasellus ultricies,     ipsum eget imperdiet rutrum, nulla arcu consequat justo, in sodales     metus libero sagittis urna. Nam id ullamcorper elit. Curabitur volutpat,     nibh sit amet blandit venenatis, metus quam rhoncus massa, nec euismod     magna sapien a odio. Etiam consequat tortor dui. Ut eu lectus ac magna     elementum pretium sed nec nibh. Praesent non mi sit amet nunc gravida     tempor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sit     amet nulla ornare erat commodo iaculis. Suspendisse eleifend nunc     nec nulla congue accumsan. Nulla ut suscipit libero, a vulputate metus.     Phasellus a vulputate sapien. In auctor rhoncus elit sit amet eleifend.     Aliquam vitae egestas nisl, in dapibus erat. Etiam ut ornare neque.     Duis feugiat nisi sit amet ligula ornare hendrerit. Curabitur interdum     arcu augue, in tincidunt mi bibendum eget. Nam eleifend nulla at ipsum     gravida, nec semper ligula sodales. Phasellus et sollicitudin sapien.     Integer eu nunc nisi. In cursus, tellus non dapibus auctor, mauris     lacus gravida felis, vel condimentum nibh ipsum in diam.           Nulla a viverra lacus. Lorem ipsum dolor sit amet, consectetur adipiscing     elit. Proin aliquam eget ligula sit amet bibendum. Maecenas in sodales     mauris, vitae accumsan dolor. Nam vitae nunc commodo, fermentum nibh     sed, volutpat elit. Curabitur auctor tellus quis justo mollis ultrices.     Nullam porta dapibus hendrerit. Ut non iaculis tortor, quis sollicitudin     ante. Nam ut tristique enim, in aliquam augue.           \section{Section Two}          Nam eu cursus lacus. Aliquam tempor placerat nulla, ac auctor nisl     commodo ac. Duis congue sed est a auctor. Aliquam dictum eu neque     ac ornare. Maecenas sodales tristique est vestibulum tempor. Morbi     commodo nibh eget fermentum vulputate. Fusce mattis ultrices neque,     eu imperdiet massa scelerisque varius. Fusce tincidunt neque sapien,     vel luctus lectus imperdiet sit amet. Nullam aliquet ultricies enim,     et sollicitudin lorem dignissim quis.           Pellentesque at convallis est. Suspendisse eget elit et nulla egestas     semper in porttitor nisi. Nunc facilisis nec arcu ut vulputate. Donec     vel semper velit. Donec blandit neque eget volutpat lacinia. Quisque     eleifend enim vel odio consequat, ut mattis ante lobortis. Morbi tempor     lorem turpis, a dignissim massa imperdiet in. Vestibulum ante ipsum     primis in faucibus orci luctus et ultrices posuere cubilia Curae;     Sed neque augue, iaculis nec feugiat eget, varius id dui. Sed varius     lorem vitae neque placerat aliquam. Nulla volutpat congue urna id     rutrum. Morbi ullamcorper, nisl et posuere dignissim, augue lectus     tincidunt quam, sit amet luctus turpis risus sit amet velit. Curabitur     ligula orci, sollicitudin vitae neque ac, imperdiet interdum risus.     Pellentesque ut risus ante. Cras facilisis nulla id pretium consectetur.     Ut ac enim cursus, dictum tortor ultricies, lacinia nunc.                \section{Section Three}          Ut quis sem nibh. Curabitur tempus felis in porttitor bibendum. Praesent     condimentum iaculis semper. In hac habitasse platea dictumst. Fusce     accumsan pulvinar ornare. Mauris eu lacinia orci. Phasellus ultricies,     ipsum eget imperdiet rutrum, nulla arcu consequat justo, in sodales     metus libero sagittis urna. Nam id ullamcorper elit. Curabitur volutpat,     nibh sit amet blandit venenatis, metus quam rhoncus massa, nec euismod     magna sapien a odio. Etiam consequat tortor dui. Ut eu lectus ac magna     elementum pretium sed nec nibh. Praesent non mi sit amet nunc gravida     tempor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.          \end{document}      In this example the header on page 2 shows "2 SECTION TWO" but I'd like it to show "1 SECTION ONE".


title: Error: File baposter.cls not found

text: There is an error while creating poster in latex. The error is , > Blockquote File baposter.cls not found


title: Invert fontsize command in setbeamerfont

text: I want to customize the frametitle in a beamer presentation. I have a problem with the linespacing, so I use the size*-version. The declaration is `size*={<fontsize in pt>}{<baselineskip>}`. However, I don't want to fix the fontsize of the frametitle, so I need to convert the fontsize (e.g. \huge) to pt. Here is an example:               \setbeamerfont{frametitle}{%       size*={%         \fontsize2pt{\huge}%       }{1.5ex},%       shape=\scshape%     }      Is there an easy way to do this?


title: Set a subfolder for \include(only)

text: Let’s assume a project with a main file `main.tex` including the chapter with `\include`.               % main.tex     \documentclass{book}          \includeonly{one}          \begin{document}     \include{one}     \include{two}     \end{document}                    % one.tex     \chapter{First chapter}     Some text                    % two.tex     \chapter{Second chapter}     Some text      To keep the diretory clean the chapters should be saved in a folder named `chapters/`. Doing this means also to add the folder to each `\include` macro and to `\includeonly` too.               \documentclass{book}          \includeonly{chapters/one}          \begin{document}     \include{chapters/one}     \include{chapters/two}     \end{document}      So I wonder if it is possible to change the default path used with `\include(only)`?


title: Problem with Latin Modern in HTML

text: I ask this question here because "Latin Modern" is a font, now also available in OpenType format, that's derived from Knuth's "Computer Modern", which is is mainly known by and of interest to the TeX/LaTeX community. It bears on my present work with LaTeX profiles (see my talk at TUG 2010, video available online at river-valley.tv or the print version in TUGboat, vol. 31 (2010), pp. 240-247). When I try to use "Latin Modern Math" for inline math along with "Latin Modern Roman" in HTML, even something as simple as the inline HTML version of $x + y$ (using pseudo-mathml [to put Firefox and Chrome on the same playing field] as foreign HTML 5 markup controlled by CSS) results in the line containing the math being much too "tall". Changing to either GNU Free Serif or XITSMath makes this issue go away. Does anyone know why Latin Modern Math spawns such tall boxes when used with HTML? Small example: http://www.albany.edu/~hammond/demos/test-xe-math-lm.html


title: Error With Subsection

text: I found an error in this document:               \documentclass[a4paper , 12pt]{article}          \usepackage{amsmath}     \usepackage{hyphenat}     %\usepackage{indentfirst}     %\usepackage{multicol}     %\usepackage{blindtext}     %\usepackage{mathrsfs}     %\usepackage{amssymb}     %\usepackage{mathtools}     \usepackage{hyperref}     %\DisemulatePackage{setspace}     \usepackage{setspace}     \usepackage{graphicx}     \usepackage{float}     \usepackage{caption}     \usepackage{algorithmicx}     \usepackage{algorithm}     \usepackage{listings}     \usepackage{algcompatible}     \usepackage{algpseudocode}     \usepackage{float}     %\usepackage[compact]{titlesec}     \usepackage{parskip}     \usepackage{subcaption}     %\usepackage[pdf]{pstricks}     \usepackage{titlesec}          \usepackage{comment}     %\usepackage[crop=off]{auto-pst-pdf}     %\usepackage{pst-node,graphicx}     %\SpecialCoor     \usepackage[top=4cm, bottom=3cm, left=4cm, right=3cm]{geometry}          \usepackage{arabtex}     %\titlespacing{\chapter}{0pt}{50pt}{<after-sep>}          \usepackage[space]{grffile}          \makeatletter     \setlength{\@fptop}{0pt}     \makeatother          % untuk meletakkan float di daerah tertentu     \usepackage{float}     %\usepackage{pstrick}     %\usepackage{pst-all}     %\usepackage{pstricks-add}     \setlength{\parindent}{0cm}     %\usepackage[pdflatex]{pstricks}     %\usepackage{pstricks}     %\usepackage{auto-pst-pdf}                         %\setlength{\textfloatsep}{10pt plus 1.0pt minus 2.0pt}          \hyphenation{be-be-ra-pa}     \hyphenation{per-hi-tu-ngan}     \hyphenation{su-a-tu}     \hyphenation{se-te-ngah}     \hyphenation{hy-dro-di-na-mics}     %     %\renewcommand{\listalgorithmname}{Liste des }          %\renewcommand{\figurename}{Gambar}     %\renewcommand{\chaptername}{Bab}     %\renewcommand{\tablename}{Tabel}     %\renewcommand{\bibname}{Referensi}          \captionsetup[figure]{labelsep=period}          \setlength{\abovecaptionskip}{0pt}     \setlength{\belowcaptionskip}{0pt}          \setlength{\floatsep}{0pt}          \setlength{\textfloatsep}{0pt}          \setlength{\intextsep}{10pt}               \onehalfspacing                    %\setlength{\abovedisplayskip}{10pt}     %\setlength{\belowdisplayskip}{10pt}     \setlength{\belowdisplayskip}{0pt} \setlength{\belowdisplayshortskip}{0pt}     \setlength{\abovedisplayskip}{0pt} \setlength{\abovedisplayshortskip}{0pt}          %\titleformat{\chapter}[hang]     %{\normalfont\Large \bfseries\centering}{\centering \chaptertitlename\ \thechapter}{20pt}{\Large}     %     %\titlespacing*{\chapter}{0pt}{-50pt}{40pt}          \hyphenation{e-ner-gi}     \hyphenation{de-ngan}     \hyphenation{di-nya-ta-kan}     \hyphenation{Newton}     \hyphenation{se-lan-jut-nya}     \hyphenation{di-re-pre-sen-ta-si-kan}     \hyphenation{di-li-hat}     \hyphenation{se-pe-rang-kat}          %\newcommand*{\justifyheading}{\centering}     %\titleformat{\chapter}[display]     %  {\normalfont\bfseries\justifyheading\Large}{\chaptertitlename \  \thechapter}     %  {14pt}{}     \titleformat{\section}[hang]       {\normalfont \bfseries \raggedright  \normalsize  }{\thesection.}{1em}{}     \titleformat{\subsection}[hang]       {\normalfont \bfseries\justifyheading \raggedright     %   \setlength\leftskip{0pt} \setlength\parfillskip{-\rightskip}       }{\thesubsection}{1em}{}            \titlespacing*{\chapter}{0pt}{0pt}{20pt}       \titlespacing{\section}{0pt}{0pt}{0pt}       \titlespacing{\subsection}{0pt}{0pt}{0pt}                \newcommand{\xxb}{\boldsymbol{x} - \boldsymbol{x}'}      \newcommand{\xb}{\boldsymbol{x}}      \newcommand{\xab}{\boldsymbol{x}'}      \newcommand{\xijb}{\boldsymbol{x}_i - \boldsymbol{x}_j}          % \setlength{\intextsep}{5pt} % Vertical space above & below [h] floats               % untuk spasi antar paragrapah      % http://www.tomdesair.com/blog/2013/04/latex-paragraph-spacing-and-indentation/     %The first command sets the indentation to 0 and thus cancels paragraph indentation. The second command sets the height of the trailing blank line. This is done using the LaTeX measure ex. One ex corresponds to the height of a lowercase ‘x’ in the current font style. I use 1.3 because I want the height of a capital letter. The “plus 0.5ex minus 0.3ex” part tells LaTeX that it can increase the height with at most 0.5ex and decrease it with maximum 0.3ex to make a decent layout. This means that the minimal height of the blank line is 1ex and the maximum 1.8ex.     %\setlength{\parskip}{1.3ex plus 0.5ex minus 0.3ex}               %\usepackage{pgfplots}               % Untuk menggambar fungsi gaussian     %\pgfmathdeclarefunction{gauss}{2}{%     %  \pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}%     %}               % untuk menempatkan algoritma outside float     %\DeclareCaptionFormat{algor}{%     %  \hrulefill\par\offinterlineskip\vskip1pt%     %    \textbf{#1#2}#3\offinterlineskip\hrulefill}     %\DeclareCaptionStyle{algori}{singlelinecheck=off,format=algor,labelsep=space}     %\captionsetup[algorithm]{style=algori}          \setlength\parskip{10pt}               \hyphenation{meng-im-ple-men-ta-si-kan}     \hyphenation{me-nya-ta-kan}          \setlength{\belowcaptionskip}{0pt}     \setlength{\abovecaptionskip}{0pt}          \setlength{\textfloatsep}{10pt}      \setlength{\floatsep}{20pt}      \setlength{\abovecaptionskip}{10pt}     \setlength{\belowcaptionskip}{5pt}                    \newcommand{\Scale}[2]{\raisebox{0.ex}{\scalebox{1.0}{$\displaystyle #1_{#2}\;$}}}          \hyphenation{pre-dic-tor}     \hyphenation{me-nyim-pan}     \hyphenation{in-ter-ak-si}          \allowdisplaybreaks          \hyphenation{MATLAB}     \hyphenation{peng-ak-ses-an}     \hyphenation{na-mun}          \hyphenation{predictor-corrector}     \hyphenation{array}     \hyphenation{e-va-lu-a-si}          \hyphenation{re-fe-ren-si}          \hyphenation{prog-ram}          \hyphenation{vo-lu-me}               % Rubah penamaan  daftar gambar dan daftar isi pada table of contents     \renewcommand*\listfigurename{Daftar Gambar}     \renewcommand*\contentsname{Daftar Isi}     \renewcommand*{\listtablename}{Daftar Tabel}     % juga penamaan daftar algorithm     \renewcommand{\listalgorithmname}{Daftar Algoritma}          \hyphenation{eks-ter-nal}          \hyphenation{in-fi-ni-te-si-mal}          \hyphenation{i-ni-sia-li-sa-si}          \hyphenation{di-de-fi-ni-si-kan}          \hyphenation{institut}     %\setcounter{secnumdepth}{2}     %\setsecnumdepth{subsection}          \hyphenation{per-sya-ra-tan}          \hyphenation{program}          \hyphenation{meng-ap-li-ka-si-kan}          \hyphenation{difference}          \hyphenation{si-mu-la-si}          \hyphenation{lag-ra-ngi-an}          % \renewcommand{\rmdefault}{pnc}     %\renewcommand{\sfdefault}{pag}     %\renewcommand{\ttdefault}{pcr}          %\renewcommand{\rmdefault}{pbk}          %\renewcommand{\rmdefault}{pzc}               \hyphenation{di-bang-kit-kan}     \renewcommand{\rmdefault}{bch}          \hyphenation{ber-ka-i-tan}          \hyphenation{programming}     \hyphenation{con-vex}     \hyphenation{hull}          \hyphenation{product}     \usepackage{listing}          \hyphenation{ge-ne-ra-tion}          \hyphenation{pe-nga-tu-ran}          \hyphenation{sa-ling}     \hyphenation{doub-le}          \hyphenation{diffe-ren-si-al}          \hyphenation{ber-a-da}               \hyphenation{pe-nga-ruh}     \hyphenation{se-ba-gai}          \hyphenation{boun-da-ry}          \hyphenation{re-gu-ler}          \hyphenation{i-te-ra-si}          \hyphenation{meng-a-ki-bat-kan}          \hyphenation{ge-ra-kan}          \hyphenation{se-di-kit-pun}          \hyphenation{lag-ra-ngian}               % set roman letter for section and sub-section     %\renewcommand{\thesection}{\Roman{chapter}.\arabic{section}}      %\renewcommand{\thesubsection}{\Roman{chapter}.\arabic{section}.\arabic{subsection}}     %\renewcommand{\thechapter}{\Roman{chapter}}          % Use "Times News Roman" aka  nestxtext letter because  mathpmtx not very likely with Times News Roman      \usepackage{newtxtext}               % hilangkan  subsection dari table of content     \setcounter{tocdepth}{1}          % ganti penamaan algorithm     \makeatletter     \renewcommand*{\ALG@name}{Algoritma}     \makeatother          % ubah penomoran algoritma dengan menambah nomor dari bab      \renewcommand{\thealgorithm}{\Roman{chapter}.\arabic{algorithm}}          \hyphenation{per-ban-di-ngan}          %\usepackage{fancyhdr}     %\pagestyle{fancy}     %\chead{\thepage}     %%\fancyhf{}     %\thispagestyle{fancy}               % menghilangkan header dan membuat nomor halaman pada bawah tengah      \pagestyle{plain}          \hyphenation{di-sa-ji-kan}          \hyphenation{ke-ting-gi-an}          \usepackage{multirow}               \usepackage{multirow,array,booktabs}          %\tablename{Tabel}               % untuk menebalkan garis dari tabel..      \usepackage{makecell}          \usepackage[numbers]{natbib}          % untuk mengatasi masalah Penempatan verbatim dalam footnotes ...       \usepackage{fancyvrb}      \VerbatimFootnotes           \hyphenation{se-gi-ti-ga}          % \interfootnotelinepenalty=1000          \title{Simulasi Gerak Fluida Dua Fasa Cair-Cair dengan Metode  Smoothed Particle Hydrodynamics}               \date{}     \begin{document}     \section{Pendahuluan}     dsadasdsa     \subsection{sadad}     dasd     \end{document}      With error output: ![enter image description here](http://i.stack.imgur.com/JkvSK.png)


title: How to use a complex expression in matrix anchor?

text: Please look a next figure: ![enter image description here](http://i.stack.imgur.com/f3OZx.png) I've done it with:               \documentclass[tikz,border=2mm]{standalone}     \usetikzlibrary{matrix,positioning,arrows}          \tikzset{         >=stealth',         box/.style={%            rectangle,             rounded corners,             draw=black, very thick, solid,            text width=10em,             minimum height=3em,             align=center,             inner sep=.3333em         },         vbox/.style={%             matrix of nodes,             nodes = {box},             draw,           dashed,             column sep=.8cm,             row sep=.8cm,             inner sep=.2cm         }     }          \begin{document}          \begin{tikzpicture}[node distance=2cm]        \matrix (A) [vbox]{             A11 & A12 \\         };             \matrix (B) [vbox, matrix anchor=B-2-1.south, above=of A-1-1.north-|A.center] {             B11\\ B21 \\         };              \begin{scope}[red]         \draw (A-1-1.north)--(A-1-2.north);         \draw[<->] (B-2-1.south) -- (A-1-1.north-|A.center) node[midway,right] {node distance = 2cm};         \end{scope}     \end{tikzpicture}     \end{document}      As you can see, I first draw matrix A and later place matrix B with `matrix anchor=B-2-1.south, above=of A-1-1.north-|A.center`. Now, I would like to do it the other way round, first matrix B and later matrix A using something like `matrix anchor=A-1-1.north-|A.center, below=of B-2-1.south`. But `TiKZ` doesn't like this `matrix anchor`. I've tested with several combinations of `{}` and `()` without any success. Is it possible to do it? If not, how can I place matrix A after matrix B?


title: Issues with pgf package: "There is no ... in font nullfont" but no tkzpicture usage

text: I am trying to use a template listed here: http://people.debian.org/~dburrows/resume-cls.html but the `pdf` output is all nonsense, with a few bullet points and random lines - but no text. I think this is due to a dependency with the `pgf` package. My issue is very similar to this post: tikzpicture "There is no ... in font nullfont", but no extraneous text but my examples are not using `tkzpicture` or other identified problematic code. I suspect that I need to correct something here, which is the only code in the document that uses `pgf`:               % Usage: \@setupshading{width}{height}{start}{end}     \newcommand{\@setupshading}[4]{%       \pgfdeclarehorizontalshading{@ruleshading}{#2}{%         color(0pt)=(#3); color(#1)=(#4)%       }     }          \newcommand{\pgfrule}[4]{%       \begin{pgfpicture}{0pt}{0pt}{#1}{#2}%         \pgfdeclarehorizontalshading{@ruleshading}{#2}{%           color(0pt)=(#3); color(#1)=(#4)%         }         \pgfputat{\pgfxy(0,0)}{\pgfbox[left,bottom]{\pgfuseshading{@ruleshading}}}       \end{pgfpicture}%     }          \newcommand{\lrule}[2]{\pgfrule{#1}{#2}{rulestartcolor}{ruleendcolor}}     \newcommand{\rrule}[2]{\pgfrule{#1}{#2}{ruleendcolor}{rulestartcolor}}      I have excerpts of the errors from my logs below. How can I resolve these errors? Here are the excerpts from my `.log` file:               Package pgfshade Warning: This package is obsolete. pgf.sty will load shade man     agement automatically on input line 17.          ) (/usr/share/texmf/tex/latex/pgf/utilities/xxcolor.sty     Package: xxcolor 2003/10/24 ver 0.1     \XC@nummixins=\count102     \XC@countmixins=\count103     )     (/usr/share/texlive/texmf-dist/tex/latex/psnfss/times.sty     Package: times 2005/04/12 PSNFSS-v9.2a (SPQR)      )     (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty     Package: fontenc 2005/09/27 v1.99g Standard LaTeX package          (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def     File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file     LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.     )     ! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file or inst     alled font not found.     <to be read again>                         relax      l.100 \fontencoding\encodingdefault\selectfont          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          ) (/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty     Package: geometry 2010/09/12 v5.6 Page Geometry          (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty     Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)     Package ifpdf Info: pdfTeX in PDF mode is not detected.     )     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty     Package: ifvtex 2010/03/01 v1.5 Detect VTeX and its facilities (HO)     Package ifvtex Info: VTeX not detected.     )     (/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty     Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional     )      And there is more:               Missing character: There is no . in font nullfont!     Missing character: There is no . in font nullfont!     LaTeX Font Info:    Font shape `T1/ptm/bx/n' in size <10> not available     (Font)              Font shape `T1/ptm/b/n' tried instead on input line 24.     ! Font T1/ptm/bx/n/10=ptmb8t at 10.0pt not loadable: Metric (TFM) file or insta     lled font not found.     <to be read again>                         relax      extract@font ...ont font@name external@font relax                                                        font@name relax csname f@e...          define@newfont ...ong@fontshape else extract@font                                                        fi endgroup      pickup@font ...ifx font@name relax define@newfont                                                        fi      selectfont  ...ape /f@size endcsname }pickup@font                                                        font@name size@update enc@...          textbf  ...hmode@bgroup text@command {#1}bfseries                                                        check@icl #1check@icr expa...          @begin@tempboxa ...tempboxa #1{color@begingroup #2                                                       color@endgroup }def width ...          @imakebox [#1][#2]#3->@begin@tempboxa hbox {#3}                                                    setlength @tempdima {#1}hb@xt...          maketitle ...xtbf {Large {@authorname  @email }}}}                                                       vspace {headerbuffer }par ...     l.24 \maketitle          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          ! Font \T1/ptm/b/n/10=nullfont not loadable: Metric (TFM) file or installed fon     t not found.     <to be read again>                         \relax      \pickup@font ...\font@name \relax \define@newfont                                                        \fi      \selectfont  .../\f@size \endcsname }\pickup@font       and here is the `There is no ... in font nullfont!` issue:               \maketitle ...{\Large {\@authorname \ \@email }}}}                                                       \vspace {\headerbuffer }\p...     l.24 \maketitle          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          Missing character: There is no J in font nullfont!     Missing character: There is no o in font nullfont!     Missing character: There is no h in font nullfont!     Missing character: There is no n in font nullfont!     Missing character: There is no Q in font nullfont!     Missing character: There is no R in font nullfont!     Missing character: There is no a in font nullfont!     Missing character: There is no n in font nullfont!     Missing character: There is no d in font nullfont!     Missing character: There is no o in font nullfont!     Missing character: There is no m in font nullfont!     LaTeX Font Info:    Try loading font information for T1+pcr on input line 24.     (/usr/share/texlive/texmf-dist/tex/latex/psnfss/t1pcr.fd     File: t1pcr.fd 2001/06/04 font definitions for T1/pcr.     )     LaTeX Font Info:    Font shape `T1/pcr/bx/n' in size <14.4> not available     (Font)              Font shape `T1/pcr/b/n' tried instead on input line 24.          ! Font T1/pcr/bx/n/14.4=pcrb8t at 14.4pt not loadable: Metric (TFM) file or ins     talled font not found.     <to be read again>                         relax      extract@font ...ont font@name external@font relax                                                        font@name relax csname f@e...      I also believe that my distro is up to date, from the following output:               [lucas@lucas-ThinkPad-W520]/home/.../jobsearch/resume$ latex --version     pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)     kpathsea version 6.1.1     Copyright 2013 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).     There is NO warranty.  Redistribution of this software is     covered by the terms of both the pdfTeX copyright and     the Lesser GNU General Public License.     For more information about these matters, see the file     named COPYING and the pdfTeX source.     Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).     Compiled with libpng 1.2.49; using libpng 1.2.50     Compiled with zlib 1.2.8; using zlib 1.2.8     Compiled with poppler version 0.24.5          [lucas@lucas-ThinkPad-W520]/home/.../jobsearch/resume$ tlmgr update --list     (running on Debian, switching to user mode!)     TeX Live 2013 is frozen forever and will no     longer be updated.  This happens in preparation for a new release.          If you're interested in helping to pretest the new release (when     pretests are available), please read http://tug.org/texlive/pretest.html.     Otherwise, just wait, and the new release will be ready in due time.     tlmgr: package repository http://mirror.math.ku.edu/tex-archive/systems/texlive/tlnet     tlmgr: no updates available


title: Generate font collection book

text: > **This question led to a new package:**   >  `fontbook` Is there a package to generate a font collection book/catalogue from all fonts in the system (`fc-list`) or by selecting a list of fonts? Ideally, it would print a small example, and list the features of the font (specially, the OTF features such as ligatures, small caps, etc.)


title: Biblatex: Attach "'s" to author name in citations

text: I am using `biblatex` with `biber` as backend and `natbib` loaded. What I am trying to achieve is appending an author's name with `'s`, e.g. in a situation like: > [...] as outlined in Krugman's (1989) early work I could use `\citeauthor{krugman89}'s (\citeyear{krugman89})`, I suppose, but I was wondering whether there is a more direct way of appending the `'s` directly to the author's name. `\citet[]['s]{krugman89}` would not work, since this adds the `'s` after year in parenthesis, i.e. `Krugman (1989, 's)`.


title: Foreach inside a TikZ matrix

text: Consider this MWE:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{matrix}          \begin{document}     \begin{tikzpicture}     \matrix [matrix of nodes] {     a \\     b \\     c \\     };     \end{tikzpicture}     \end{document}      It might be convenient to fill the matrix with a foreach loop:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{matrix}          \begin{document}          \begin{tikzpicture}     \matrix [matrix of nodes] {     \foreach \c in {a,b,c}{     \c \\     }     };     \end{tikzpicture}     \end{document}      This however fails with the message                ! Extra }, or forgotten      \endgroup.      It seems like the ending brace of `\foreach` bothers the `matrix` node. Can a matrix be populated with `\foreach` and how?


title: Modifying `*` and `o` style tikz arrows so that they are centered at the end of line

text: I would like to use tikz `*` and `o` arrows to indicate included/excluded endpoints in plots of piecewise functions, like for example the following one: ![Sample plot](http://i.stack.imgur.com/VXZFl.png) However, it seems that `tikz` always aligns the "tip" of the arrow with the end of the line, so that the code               \documentclass{article}      \usepackage{tikz}     \usetikzlibrary{arrows}     \begin{document}     \begin{tikzpicture}        \draw[help lines] (-.1,-.1) grid (2.1,2.1);        \draw[thick,-*] (0,1.5) -- (1,.5);        \draw[thick,o-] (1,1.5) -- (2,.5);     \end{tikzpicture}     \end{document}      produces ![tikz arrows \(incorrect alignment\)](http://i.stack.imgur.com/tcTf5.png) where I would like the circles to be vertically aligned on the grid line. Is there a parameter or code I can modify to get the desired behavior?


title: Palatino, roman \chi and the math mode

text: I am using Palatino for the content and I have a problem displaying \chi in math mode. The problem happens when I have a roman formatting in math, e.g., vector **x** , **X** , and **χ** ; the χ turns to some other character. ## The minimal example               \documentclass[12pt,oneside,english,titlepage, a4paper, fontsize=12pt]{scrbook}          \usepackage{mathpazo}     \usepackage{geometry}     \geometry{letterpaper}     \usepackage{graphicx}     \usepackage{amssymb}     \usepackage{epstopdf}               %show vectors in bold     \renewcommand\vec[1]{\mathrm{\mathbf{#1}}}     %end renew commands          \title{Brief Article}     \author{The Author}     \begin{document}          \noindent Three different systems of reference are used within this     work. Structural deformations are described in the Lagrangian or material     formulation. The corresponding Lagrangian coordinate system denoted     by $\vec{X}$ is associated with the particular material points. The Eulerian or     spatial system of reference denoted by $\vec{x}$,     in which the observer is fixed in space and looks at the fluid passing.     In the ALE description of the motion, a third reference system, denoted     by $\vec{\chi}$.     \end{document}      which produces the following image: ![chi is not shown correct](http://i.stack.imgur.com/ylE75.png) What I would like to have is this [1]: ![chi is shown correct](http://i.stack.imgur.com/7NXGu.png) How can I fix this? [1] The difference is that I removed `\usepackage{mathpazo}` from the top.


title: LyX Beamer Author Names Get Cut Off

text: I am using LyX and the beamer template to write presentation slides for a conference paper, which has three authors. This is not a problem, until I notice that the third name gets cut off from the bottom left corner of the slide (see screenshot below). How can I fix this? ![enter image description here](http://i.stack.imgur.com/v2YNf.png) Technical Details:   * Mac OS X 10.7.5 (Lion)   * LaTeX Version 2.0 (build 150)   * LyX Version 2.0.6


title: Part of the file name of my image is printed in the document, twice

text: > **Possible Duplicate:**   >  How to include graphics with spaces in their path? When I add a piece of code of figure insertion to the context I'm faced with a problem: a number of irrelevant words appear. Code:               \begin{figure}         \centering             \includegraphics[width=0.9\textwidth]{C:/Thesis/Latex/thesis_1(1)/Pictures/study area.jpg}             \rule{35em}{0.3pt}         \caption{The Grand St. Bernard wireless sensor network deployment (a) the coordinates of nodes according to the Swiss coordinate system (b) the distribution of the nodes in the study site \citep{r33}}         \label{fig:study area}     \end{figure}      Problem: ![Error which is presented by sign](http://i.stack.imgur.com/80jDX.png)


title: Problem with importing image

text: I added a png image named MVC Unit 2 Question 1 Graph 1 to the directory, but I am not able to add the image to Latex. I am currently using online Share LaTeX, which I believe is pdflatex.               \documentclass{article}     \usepackage[utf8]{inputenc}          \usepackage{natbib}     \usepackage{graphicx}          \begin{document}     \includegraphics{MVC_Unit_2_Question_1_Graph_1}     \end{document}


title: Multiple images to PDF using pdflatex

text: For a long time I used to losslessly convert muliple PNGs to a single PDF using the following template:               \documentclass[a4paper]{article}     \usepackage{pdfpages}     \usepackage[margin=0pt]{geometry}     \begin{document}     \pagestyle{empty}     \enlargethispage*{0cm}     %     %     \centering{     \includegraphics[width=.99\paperwidth,totalheight=.99\paperheight,keepaspectratio]{img1.png}     \clearpage     \includegraphics[width=.99\paperwidth,totalheight=.99\paperheight,keepaspectratio]{img2.png}     \clearpage     }     \end{document}      Lately, I've been getting (on Ubuntu 12.04)               ! Missing $ inserted.     <inserted text>                      $     l.10 ...ht,keepaspectratio]{img1.png}      What's wrong, what's changed? Alternatives? **Update** : turns out this only happens with filenames with spaces (so "img 1.pdf", not img1.pdf). How can this be avoided?


title: XeLaTeX: \includegraphics with a .png file shows filename in output. How do I hide this?

text: > **Possible Duplicate:**   >  How to include graphics with spaces in their path? Ok, I was creating graphs in GNUPlot and inputing them in my XeLaTeX file as I usually do, and then I realized that one of my fit lines was not showing up on one of the graphs. The middle graph was always missing the fit line, so I outputted them as .png files instead, which was actually nice because they output in color. My new problem is that when using `\includegraphics` in XeLaTeX, it appears that the filename is always displayed to the left of the picture, and throws off the formatting. I can't figure out how to get rid of this, and it has become kind of frustrating for me. On top of this, I cannot have more than one graphic, as it throws an error. Here's the code for the first graphic:               \includegraphics[ width=\linewidth ]{Aluminum Data.png}      This will output my graph into the .pdf, but it is awful looking. A picture of the pdf is here: ![](http://i.imgur.com/4aN7S.jpg) If I try to add a second graphic, it just gets worse. It won't even complete rendering then. What I want to have is:               \includegraphics[width=\linewidth]{Aluminum Data.png}\\     \includegraphics[width=\linewidth]{Iron Data.png}\\     \includegraphics[width=\linewidth]{Lead Data.png}      Or something to that effect. Here is the console output when I try and insert more than 1 image:               ABD: EveryShipout initializing macros     ! Package pgfplots Warning: running in backwards compatibility mode (unsuitable      tick labels; missing features). Consider writing \pgfplotsset{compat=1.7} into      your preamble.          (F:\LaTeX\tex\latex\amsfonts\umsa.fd) (F:\LaTeX\tex\latex\amsfonts\umsb.fd)          LaTeX Warning: File `Aluminum Data.png' not found on input line 111.          <use  "Aluminum Data.png" >          LaTeX Warning: File `Iron Data.png' not found on input line 112.          ! Unable to load picture or PDF file '"Iron Data.png"'.     <to be read again>                         }     l.112 \includegraphics{Iron Data.png}          ?       Any help would be much appreciated.


title: How to include graphics with spaces in their path?

text: I want to import graphics into my main input file using the macro `\includegraphics`. It does not work if the filename contains spaces. Include image with spaces in path directory to be processed with dvips also discusses this subject, but there is no solution there. My compilation routine is latex->dvips->ps2pdf (because of PSTricks).


title: Problem in inserting figures

text: When i am inserting figure in tex2beta2 it is showing my figure path in pdf document how can i remove it. I am croping the figure in paint to insert. i am using               \begin{figure}         \centering             \includegraphics[width=0.50\textwidth]{D:/optical projcet/3rd sem seminar/report/figure1.png}         \label{fig:figure1}     \end{figure}


title: Duplicate captions problem with figure

text: I am a beginner in LaTeX. I used the LaTeX example to insert a figure in my thesis. Here is the code:               \begin{figure}[ht]     \centering     \includegraphics[width=\textwidth]{figs/#####.jpg}     \vspace{0in}     \caption{#####}     \end{figure}      I think the code should only generate one caption below the figure. However, I got two captions with my figure. The form is like: > #####.jpg > > (The figure itself looks fine) > > Fig1.1 ##### Anyone had this problem in the past? How could I get rid of the top #####.jpg?


title: Problems with images in lyx

text: I have been writing a chapter of my thesis using Lyx. Everything was normal until I put the last image in the project. When I am trying to generate the DVI file I got this error message:               LaTeX Error: 'File 8D_***path to my image***'.          LaTeX Error: Cannot determine size of graphic in 8D_***"location of the image inside the .lyx file"***.      I don't understand why this happening because this image has the same extension of the other (`.png`), besides is not bigger than some of those. I tried to put the image in the same folder but this did not work, I also changed the extension to `.bmp` but it was worse. What could happen?


title: Create parent folder

text: I'm writing my training report. I created different chapters in `multipath`. Now I want to join every chapter in one file. I use this command               \include{C:/Users/ETTIEN/Google Drive/Rapport de stage/chapitre 1/Chapitre1.tex}      but it doesn't work. Maybe because of the space in the directory? Or is there any package needed?


title: Remove dot after appendix numbering

text: I want my appendix section numbering to look like this               Appendix     A Section one     B Section two      I've figured out how to get the A and B (see question How to modify the appendix chapter numbering?). But with the solution described there I get the following:               Appendix     A. Section one     B. Section two      How can I remove the dot after the A and B? Here is my latex file               \documentclass[bibliography=totoc,version=first,listof=totoc,BCOR5mm,DIV12,index=totoc]{scrbook}     \usepackage[table]{xcolor}     \usepackage{bibgerm}     \usepackage[english,german]{babel}     \usepackage[utf8]{inputenc}      \usepackage{todonotes}     \usepackage{makeidx}     \usepackage{latexsym}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage{listings}      \usepackage{a4wide}     \usepackage{wrapfig}     \usepackage{caption}     \usepackage{listings}     \usepackage{rotating}     \usepackage{multirow}     \usepackage{array,amssymb}     \usepackage{url}     \usepackage[style=altlist,order=word,hyperfirst=true]{glossaries}     \loadglsentries{glossar}     \makeglossaries     \usepackage[babel,german=quotes]{csquotes}     \usepackage[bibstyle=alphabetic,citestyle=diplomarbeit,language=ngerman]{biblatex}          \begin{document}     \frontmatter        \tableofcontents     \mainmatter     \backmatter        \appendix        \renewcommand\thesection{\Alph{section}}        \chapter{Appendix}        \section{First section}     \end{document}


title: Is there any way to put the section numbers after titles like "axiom", "theorem", etc?

text: The normal LaTeX input and output would be something like               \subsection{Theorem (Fundamental Theorem of Calculus)}      1.1 Theorem (Fundamental Theorem of Calculus) * * * Is there any way to use a `\subsection` function with two arguments like               \subsection**{Theorem}{Fundamental Theorem of Calculus}      and have it output Theorem 1.1 | Fundamental Theorem of Calculus or THEOREM 1.1 | Fundamental Theorem of Calculus or something like that? I need some way of doing this that will still catalogue everything in the table of contents. As far as I can tell, the `titlesec` package is not capable of doing this, but it seems like something a lot of people would want to be able to do.


title: How can I style tkz-euclide points?

text: The `tkz-euclide` package lets you do things like               \begin{tikzpicture}       \tkzDefPoint(0,0){A} \tkzDefPoint(4,0){B} \tkzDefPoint(2,3){C}       \tkzDrawPoints(A,B,C)       \tkzDrawSegments(A,B B,C C,A)     \end{tikzpicture}      However, by default, the point style is filled with a semi-transparent black. Using `\tkzDrawPoints[fill=black]` fixes this, but it would be nice to be able to style all the points to, by default, use a black fill. What styles, TikZ or tkz-euclide, should I use to accomplish this? * * * MWE:               \documentclass{standalone}     \usepackage{tikz}     \usepackage{tkz-euclide}     \begin{document}     \begin{tikzpicture}       \tkzDefPoint(0,0){A} \tkzDefPoint(4,0){B} \tkzDefPoint(2,3){C}       \tkzDrawPoints(A,B,C)  % want them filled       \tkzDrawSegments(A,B B,C C,A)     \end{tikzpicture}     \end{document}


title: Pagebreak problem (stop my document from not pagebreaking)

text: > **Possible Duplicate:**   >  What is the command to just slightly increase the text height of a > particular page?   >  Squeeze some more lines on the current page How would I shift up my text from the 2nd page to the 1st page? I realised if I removed a few lines from my personal summary (first section), the page will fit nicely. But right now there is a big gap in my first page, how would I push up my 2nd page to my 1st page? Edit: If you can't see the picture, i think if you right-click and find the image location, you can see the full picture. My latex code is below. ![enter image description here](http://i.stack.imgur.com/L245c.jpg)               \documentclass[10pt]{article}     \usepackage{array, xcolor, lipsum, bibentry}     \usepackage[margin=3cm]{geometry}     \usepackage{scrbase,scrpage2}     \pagestyle{scrheadings} % pagestyle with page number     \lohead{John Doe}                    \definecolor{lightgray}{gray}{0.8}     \newcolumntype{L}{>{\raggedleft}p{0.14\textwidth}}     \newcolumntype{R}{p{0.8\textwidth}}     \newcommand\VRule{\color{lightgray}\vrule width 0.5pt}               \begin{document}     \thispagestyle{empty}     \begin{center}\Huge John Doe \end{center}     \vspace{1em}     \begin{minipage}[ht]{0.70\textwidth}     Address\\     Address\\     Address\\     Address\\     Address     \end{minipage}     \begin{minipage}[ht]{0.48\textwidth}     Mobile: 12345\\     Email: 123@gmail.com\\     Date of Birth: 01/01/2012\\     Citizenship: World     \end{minipage}     \vspace{2pt}          \section*{Personal Summary}     Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here.           \section*{Education}     \begin{tabular}{L!{\VRule}R}     2009--2012&MSc Course.\vspace{5pt}\\     2006--2008& BSc Course.\\     \end{tabular}          \section*{Employment}     \begin{tabular}{L!{\VRule}R}     2011--2011&{\bf Name of company} Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here.  \\     &\begin{itemize}     \item Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here.      \item Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here.      \item Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here.     \item Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here.      \end{itemize}\\     \end{tabular}          \section*{Organisational Experience}     \begin{tabular}{L!{\VRule}R}     2011& Add my text here. \vspace{5pt}\\     \end{tabular}          \section*{Awards and Achievements}     \begin{tabular}{L!{\VRule}R}     2011&Add my text here. .\vspace{5pt}\\     2010&Add my text here. .\vspace{5pt}\\     2008&Add my text here. \\     \end{tabular}          \section*{Languages}     English, This, That.          \section*{Computer Skills and Competencies}     Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here. Add my text here.           \section*{Referees}     \begin{minipage}[t]{0.65\textwidth}     \textbf{Name}\\     \textit{Title}\\     Address\\     Address\\     Address\\     Address\\     Contact no.: 12345678     \end{minipage}     \begin{minipage}[t]{0.48\textwidth}     \textbf{Name}\\     \textit{Title}\\     Address\\     Address\\     Address\\     Address\\     Address\\     Address\\     Address\\     Contact no.: 12345678     \end{minipage}          \end{document}


title: Avoiding widows by increasing the page size

text: Two related questions: I think atm I feel that the best and easiest way to avoid widows and orphans is to let the affected pages differ a little in size. Almost no one would recognise it and -- even if -- it might look better than having empty space because of breaking the page earlier to get yet another line on the next page etc.   1. So what are the arguments against this approach?   2. Notwithstanding these arguments, how could I automatically achieve it? Maybe even by a global command in the preamble?


title: Squeeze some more lines on the current page

text: During the last phase of layout I frequently get a single line or two on a separate page. Rather then pulling the whole paragraph on that last page I would like to "squeeze" the lines on the previous page a bit. Is there a way to mark the current page to be squeezed a bit if necessary, but let LaTeX reset this marking automatically after the page is done?


title: How to simulate 2 dimensional loop using 1 dimensional loop?

text: `animate` package does not allow nested loops. Only a single loop is allowed. However, we often need to simulate 2 dimensional space in a single loop. Please see the following C# code that I want to implement in LaTeX.               static void Main()     {         const int M = 3;         const int N = 4;         int i = 0;         int j = 0;              for (int c = 0; c < M * N; c++)         {             if (i >= N)             {                 j++;                 i = 0;                 //newline             }             //print i and j             i++;         }     }      The real scenario is to create a PDF animation using `animate` package instead of the GIF animation at this link. * * * **Last edit:** Because I used Altermundus' answer in my real scenario below,               \documentclass{article}     \usepackage{graphicx}     \usepackage{animate}     \usepackage{pstricks}     \SpecialCoor          \newsavebox\IBox     \savebox\IBox{\includegraphics{Images/bald}}     \def\N{2}% columns     \def\M{3}% rows     \psset{xunit=\dimexpr\wd\IBox/\N\relax,yunit=\dimexpr\ht\IBox/\M\relax}               \begin{document}     \animateinline[palindrome,autoplay]{1}     \newcounter{i}\newcounter{j}     \multiframe{\numexpr\N*\M\relax}{}     {            \unless\ifnum\value{i}<\N\relax                 \addtocounter{j}{1}%                 \setcounter{i}{0}%         \fi         \begin{pspicture}[showgrid](\N,\M)             \begin{psclip}{\psframe[linestyle=none]                     (!\thei\space \thej)                     (!\thei\space 1 add \thej\space 1 add)}                 \rput[bl](0,0){\usebox\IBox}             \end{psclip}         \end{pspicture}         \addtocounter{i}{1}     }     \endanimateinline     \end{document}      so I will accept his answer. Other answers also get +1 of course! > NOTE: Compile it with `xelatex`. Animation importing images does not work > with `latex-dvips-ps2pdf`. `\newcount` does not work as well, use > `\newcounter` instead.


title: How to trim the end of line character for each line read from an external file?

text: How to trim the end of line character for each line read from an external `\jobname.list` file below? Note that the real scenario does not use `filecontents` package to generate the list. I use a batch file to prepare the list. The following MWE is just for the sake of simplicity.               \documentclass{article}          \usepackage{filecontents}     \begin{filecontents*}{\jobname.list}     a.jpg     b.pdf     c.eps     d.png     \end{filecontents*}          \parindent=0pt     \usepackage{graphicx}     \newread\reader          \begin{document}     \makeatletter     \openin\reader=\jobname.list\relax     \advance\endlinechar \@M     \loop         \read\reader to \x         \unless\ifeof\reader         \includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{../../Images/\x}%     \repeat     \advance\endlinechar -\@M     \makeatother     \end{document}      The code above cannot be compiled because `\includegraphics` does not like the end of line charcter appended in the file path. I wasted much time to find the source of problem. ## Edit: If the image files `a.jpg` and `b.pdf` are put in `../../Images/` then the proposed solutions no longer work. How to solve it? I mainly use `xelatex` to accommodate 4 image formats.


title: Arbitrary text parsing from a separate file

text: I'm still very new to the world of TeX, so please bear with me if this question is unclear or has been asked before. I'm starting to figure my way through TeX and the millions of plugins and extensions for it. As a side note: had I known about TeX when I was studying for my CompSci degree, it would have made writing my dissertation so much easier - I like it a lot better than other document creation and word processing packages. I'm building a TeX document, I'd like all of the formatting information to be stored on the main document and all of my text in separate files, but I'd also like to have some arbitrary parsing performed when TeX finds the given text entries. As an example, if I'm working on implementing a simple resume using this as an example (mainly because of it's clear section separation design), would TeX be able to pull the text for each section from a file, parse it so that it fits the formatting and display only N number entries? In the example file, the author creates a command called \EducationEntry with the following code:               \newcommand{\EducationEntry}[4]{      \noindent \textbf{#1} \hfill      \colorbox{Black}{%          \parbox{6em}{%          \hfill\color{White}#2}} \par      \noindent \textit{#3} \par      \noindent\hangindent=2em\hangafter=0 \small #4      \normalsize \par}      So, is it possible to have a text file that reads something like:               BA Some course or other | 2502-2504 | University of Mars | Details     MA More courses | 2504-2506 | University of The Moon | Details      such that TeX can read each line, separate on a given character (in this case '|', but can be anything), and create an \EducationEntry for each line? I'm thinking of implementing a very similar structure for a user guide that I'm working on, and a few translation projects too. Is this can be done, and it's not too complicated for a newer user like me, then it would make consistent formatting a lot easier. I'm still only in the planning/design stages of the overall look for the document at the minute. However, I have all of the text ready to go. If it helps, I'm using TexMaker 3.5 on both MS Windows and Ubuntu 12.04 (but I doubt that will make a huge difference) and I'm outputting directly to PDF via PS.


title: Removing the effect of color table, after the table ends

text: I am using color tables in my document, as it produces very nice results. Further to that I use some equations using cases environment. I see that the colors from the color table get mixed up with the equations. How to remove the effect of color table once I finished using it in a table. Here is a MWE to reproduce the problem. If I un-comment the line `\rowcolors{2}{white}{white}`, I see that the half brace goes missing.               \documentclass{article}          \usepackage[table,rgb,hyperref]{xcolor}     \usepackage{hhline}     \usepackage{multirow}     \usepackage{amsmath}          \begin{document}          \rowcolors{2}{white}{gray!25}     \begin{table}[h]         \centering         \begin{tabular}{cccc}             \hline             & \multicolumn{3}{c}{$TxCost_p$} \\\hhline{~---}             \multirow{-2}{*}{p} & min   & max    & avg   \\\hline\hline             1 & 1.13  & 14.00  & 2.57  \\\hline             2 & 1.78  & 29.98  & 4.13  \\\hline             4 & 3.97  & 47.23  & 11.07 \\\hline             8 & 5.43  & 87.86  & 18.82\\\hline         \end{tabular}     \caption{performance }     \end{table}     %\rowcolors{2}{white}{white}               \begin{equation}         Time = \begin{cases}             m \cdot C + 2 T & \mbox{in the computation }\\              (m+1) \cdot T & \mbox{in the transfer }         \end{cases}     \end{equation}          \end{document}      and here is the screenshot ![enter image description here](http://i.stack.imgur.com/QcuJ7.png)


title: Defining `lstset` parameters for multiple languages

text: I am using the `listings` package, and have defined `lstset` parameter sets for multiple programming languages. I would like to select a parameter set when beginning a `lstlisting` or `lstinputlisting` by selecting the language corresponding to the parameter set definitions. I appreciate, however, that language selection at this stage only affects formatting of language-specific syntax and is not connected to the preamble parameter set definitions. Rather, enumerating multiple such definitions is fruitless as the last set of definitions overrides all the former ones (or so it appears). Therefore, I would like to know how to define and subsequently invoke multiple `lstset` parameter sets. As a very rudimentary example,               \documentclass{article}     \usepackage{listings}% http://www.ctan.org/pkg/listings     \lstset{language=C,frame=lines}     \lstset{language=C++,frame=none}     \begin{document}     \begin{lstlisting}[language=C]     #include<stdio.h>     main() {      printf("Hello World");     }     \end{lstlisting}     \begin{lstlisting}[language=C++]     #include <iostream.h>     main() {      cout << "Hello World!";      return 0;     }     \end{lstlisting}     \end{document}      As one can see, both languages are displayed using the second defined parameter set (`frame=none`). I would like to use a key-value pair in the `\begin{lstlisting}` macro to invoke the appropriate language-specific parameter set defined in the preamble (as suggested by my use of the `language=` key-value pair). Is this possible?


title: Use multiple languages using lstset?

text: My MWE :               \documentclass[12pt,a4paper]{report}     \usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry}     \linespread{1.5}     \usepackage{listings}     \usepackage{color}          \definecolor{dkgreen}{rgb}{0,0.6,0}     \definecolor{gray}{rgb}{0.5,0.5,0.5}     \definecolor{mauve}{rgb}{0.58,0,0.82}          \lstset{frame=tb,       language=Matlab,       aboveskip=3mm,       belowskip=3mm,       showstringspaces=false,       columns=flexible,       basicstyle={\small\ttfamily},       numbers=left,       numberstyle=\tiny\color{black},       keywordstyle=\color{blue},       commentstyle=\color{dkgreen},       stringstyle=\color{mauve},       breaklines=true,       breakatwhitespace=true       tabsize=3     }          \begin{document}          \begin{lstlisting}      e=1;e2=1;e3=1 %%control variable for ON mode     \end{lstlisting}     \end{document}      I have a Python code that I want to add, but the language set currently is only for matlab. How can I define it for two languages ?


title: listings: using Python and Matlab code

text: Can I `\lstset` to define both Matlab code and Python code? or will last one override the first one? or does `listings` know the difference when there is a `.m` or `.py` extension and use the correct `\lstset`?


title: Syntax highlighting for different programming languages

text: In my paper I want to include some source codes with colored sytax. For syntax highlighting I use the listings package:               \lstset{frame=tb,       language={[Visual]Basic},       aboveskip=3mm,       belowskip=3mm,       showstringspaces=false,       columns=flexible,       basicstyle={\small\ttfamily},       numbers=none,       numberstyle=\tiny\color{gray},       keywordstyle=\color{blue},       commentstyle=\color{dkgreen},       stringstyle=\color{mauve},       breaklines=true,       breakatwhitespace=true       tabsize=3     }      And then in the document:               \begin{lstlisting}     'test     \end{lstlisting}      This works for one language (Visual Basic in the example above). But now I also want to include some C code. How can I achieve this?


title: Problem with tikz-pgf and \pgfmathabs

text: This is a follow up question to Problem with pgfmathsetmacro in foreach loop with pgfplots. In short I also want to use `\pgfmathabs` to get the absolute value of a number in that example (with `\i` as input). But I get the following error:               ERROR: Incomplete \iffalse; all text was ignored after line 8.          --- TeX said ---     ! Incomplete \iffalse; all text was ignored after line 8.     --- HELP ---     No help available      I tried to compose a MWE to isolate this problem:               \documentclass{article}          \usepackage{tikz}          \begin{document}          \begin{tikzpicture}      \edef\test{\noexpand \node at (0,0) {\pgfmathabs{-2}};}      \test     \end{tikzpicture}          \end{document}      Any idea how to fix this?


title: Choosing font for bold small caps (or any other particular family+series+shape combination)

text: What is the best way (most proper and general solution) to get rid of the warning               LaTeX Font Warning: Some font shapes were not available, defaults substituted.      by explicitly setting which font should be used for particular family+series+shape combination in edited document? * * * Bold small-caps are not widely available font-wise. E.g. they are available in CM-Super (which the default font for T1 encoding), but not in overall better Latin Modern. Let's say I use Latin Modern as the default font (`\usepackage{lmodern}`). What should be done to make LaTeX fallback to CM-Super in case of bold small caps? (And only in the case of bold small caps, medium small caps should remain typed using Latin Modern.)


title: \textcite without square brackets

text: I'm using Biber with fowlling options               \usepackage[backend = biber,style=bwl-FU, citestyle =authoryear-ibid, ibidpage, %siehe Doku       pagetracker=false,maxnames=4,minnames=3,maxbibnames=99]{biblatex}     \ExecuteBibliographyOptions{parentracker=false}      the `\textcite[p. 23]{LA}` creates "Large ((2012), p. 23)"   but I'd like to get "Large (2012), p. 23", is there a way to change the output of `\textcite`


title: Unclutter a bar plot with pgfplot

text: I have the given bar plot with three hirachies (color + inner-group + outer- group): ![Original image](http://i.stack.imgur.com/AetWd.png) The figure look overloaded but I don't know how to split the x axis labels in a better way. A possible solution could be this sketch: ![Possible modification](http://i.stack.imgur.com/MBCaR.png) Since I did not figure out a good workflow for me yet, the minimal example is still somewhat cluttered. I used matlab2tikz as a start and did some tikzmodifications by hand afterwards:               \documentclass{scrartcl}     \usepackage{pgfplots} % Import der Plots aus Matlab     \usepackage{tikz} % Import der Plots aus Matlab     \newlength{\fheight}     \newlength{\fwidth}     \pgfplotsset{compat=1.3}               \usepackage{amsmath,amsthm, amssymb, latexsym}          \begin{document}     \setlength\fheight{0.2\columnwidth}     \setlength\fwidth{0.42\columnwidth}          \definecolor{mycolor1}{rgb}{0.00000,0.00000,0.56250}%     \definecolor{mycolor2}{rgb}{0.00000,0.18750,1.00000}%     \definecolor{mycolor3}{rgb}{0.00000,0.87500,1.00000}%     \definecolor{mycolor4}{rgb}{0.56250,1.00000,0.43750}%     \definecolor{mycolor5}{rgb}{1.00000,0.81250,0.00000}%     %      \begin{tikzpicture}[baseline, trim axis left, trim axis right]       \newlength{\myBarWidth}       \setlength{\myBarWidth}{0.011\fwidth}       \newlength{\myBarShift}       \setlength{\myBarShift}{0.011\fwidth}       \begin{axis}[%       legend columns=4,         width=\fwidth,         height=\fheight,         area legend,         scale only axis,         xmin=0.25,         xmax=11.75,         xtick={1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11},         xticklabels={           {$\begin{array}{c}               10\\               \phantom{...}             \end{array}$           },           {$\begin{array}{c}               20\\               \text{proposed},\pi_{\text{Th}\phantom{...}}             \end{array}$           },           {$\begin{array}{c}               30\\               \phantom{...}             \end{array}$           },           {},           {$\begin{array}{c}               10\\               \phantom{...}             \end{array}$           },           {$\begin{array}{c}               20\\               \text{proposed},\kappa_{\text{Th}}             \end{array}$           },           {$\begin{array}{c}               30\\               \phantom{...}             \end{array}$           },           {},           {$\begin{array}{c}10\\\phantom{...}\end{array}$},           {$\begin{array}{c}20\\\text{DOA-based}\end{array}$},           {$\begin{array}{c}30\\\phantom{...}\end{array}$}         },         ymin=0,         ymax=100,         ytick={0, 20, 40, 60, 80, 100},         ylabel={$\text{Accuracy}$},         y label style={at={(axis description cs:-0.08,.5)},rotate=0,anchor=south},     legend style={at={(0.5,-0.35)},anchor=north,draw=black,fill=white,legend cell align=left,         /tikz/column 2/.style={column sep=5pt},         /tikz/column 4/.style={column sep=5pt},         /tikz/column 6/.style={column sep=5pt}       }         ]         \addplot[         ybar,         bar width=\myBarWidth,         bar shift=-3\myBarShift,         draw=black,         fill=mycolor1         ]         plot table[row sep=crcr] {%           1  100\\  2  100\\  3  100\\  4  0\\           5  100\\  6  100\\  7  100\\  8  0\\           9  100\\ 10  100\\ 11  100\\         };     \addlegendentry{$K = 0$};         \addplot[         ybar,         bar width=\myBarWidth,         bar shift=-2\myBarShift,         draw=black,         fill=mycolor2         ]         plot table[row sep=crcr] {%           1 99.8\\  2  100\\  3  100\\  4  0\\           5  100\\  6  100\\  7  100\\  8  0\\           9 32.8\\ 10  100\\ 11  100\\         };     \addlegendentry{$K = 1$};         \addplot[         ybar,         bar width=\myBarWidth,         bar shift=-1\myBarShift,         draw=black,         fill=mycolor3         ]         plot table[row sep=crcr] {%           1  98.4\\  2  99.4\\  3  90.6\\  4  0\\           5  98.2\\  6  97.4\\  7  90.4\\  8  0\\           9  14.4\\ 10    79\\ 11  98.8\\         };     \addlegendentry{$K = 2$};         \addplot[         ybar,         bar width=\myBarWidth,         bar shift=0\myBarShift,         draw=black,         fill=mycolor4         ]         plot table[row sep=crcr] {%           1  87.4\\  2  99.4\\  3  95.8\\  4  0\\           5  92.8\\  6  98.4\\  7  91.6\\  8  0\\           9     1\\ 10  27.2\\ 11  79.6\\         };     \addlegendentry{$K = 3$};         \addplot[         ybar,         bar width=\myBarWidth,         bar shift=1\myBarShift,         draw=black,         fill=mycolor5         ]         plot table[row sep=crcr] {%           1  63.8\\  2  98.2\\  3  93.6\\  4  0\\           5    80\\  6  94.4\\  7  85.4\\  8  0\\           9     0\\ 10  34.4\\ 11  60.6\\         };     \addlegendentry{$K = 4$};         \addplot[         ybar,         bar width=\myBarWidth,         bar shift=2\myBarShift,         draw=black,         fill=red!75!orange         ]         plot table[row sep=crcr] {%           1  31.8\\  2    94\\  3    92\\  4  0\\           5  56.6\\  6  81.8\\  7    83\\  8  0\\           9   0.2\\ 10  40.6\\ 11  52.2\\         };     \addlegendentry{$K = 5$};         \addplot[         ybar,         bar width=\myBarWidth,         bar shift=3\myBarShift,         draw=black,         fill=black!50!red         ]         plot table[row sep=crcr] {%           1     7\\  2  57.2\\  3  56.6\\  4  0\\           5  31.6\\  6    39\\  7  32.4\\  8  0\\           9     0\\ 10     0\\ 11     0\\         };     \addlegendentry{$K = 6$};       \end{axis}     \end{tikzpicture}%          \end{document}      Pastebin


title: How to draw a \mapsto in TikZ?

text: Does anyone know how to draw a line which looks like `\mapsto` by using `\draw[...]...` in TikZ?


title: Problem with escaped characters in bibliography when using Mendeley, natbib & url

text: This is my first question here, so apologies if I miss any conventions. I'm writing a dissertation in LaTeX. My sources are in Mendeley, which is generating a BibTeX file. I'm using the `natbib` package with the `plainnat` style. The first problem that I faced with this was that most of the URLs in the bibliography went off the edge of the page because TeX didn't know how to linebreak them. The natbib documentation suggested that if the `url` package was loaded, this would Just Work. It mostly did, but it left me with a more subtle problem: With the url package loaded, URLs are treated similarly to `\verb` environments - in particular, it is no longer necessary to escape special characters such as `_`. This means that I have two options:   1. I can turn on the Mendeley option that escapes special characters in its BibTeX export. This means that my printed URLs contain things like `url\_with\_underscore`.   2. I can turn off that Mendeley option so that it doesn't escape the special characters. This means that all the other fields in the bibliography have trouble (e.g. `&` characters getting lost as they're not escaped). So, ways that occur to me to go about fixing this: (a) Find a way to stop the url package from treating things like `\_` as verbatim (b) Find a different way to get URLs to linebreak in the bibliography (c) Manually edit my `.bib` file before compiling for the last time, removing escapes from URLs. I would really love to not do (c) ;-) Any ideas?


title: Error when using endfloat with unicode characters

text: I have a problem with the endfloat package and unicode characters. When I compile the following, everything works as expected:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{graphicx}          \begin{document}          \begin{figure}     \caption{Ö}     \end{figure}          \end{document}      However, when I also load the endfloat package (`\usepackage{endfloat}`), I get the following error message:               ! Package inputenc Error: Unicode char \u8:ÖÖ not set up for use with LaTeX.      This could be a bug, but my suspicion is that I'm making a mistake somewhere. I'm hardly the first person to use special characters with the endfloat package. However, the above example is so simple, I don't see where I could have made a mistake. Any advice is appreciated. Edit: The file is of course encoded using utf-8.


title: Problem with simple TikZ plot

text: I'm trying to make an explanatory graph that boils down to annotating curves between two arbitrarily placed points. My TikZ/Tex code just isn't compiling even though it closely follows the manual; What am I doing wrong?               \documentclass{minimal}          \usepackage{tikz}     \usetikzlibrary{arrows,backgrounds,snakes,shapes}     \begin{document}           \begin{centering}       \begin{tikzpicture}[domain=0:4]         \draw[->] (-0.2,0) -- (4.2,0) node[right] {$\mu$};         \draw[->] (0,-1.2) -- (0,4.2) node[above] {$\sigma$};        \fill[color=red] (1,1) circle (1ex) {$a$};         \fill[color=blue]  (2,3) circle (1ex) {$b$};        \draw[->,color=black] (1,1) -- (2,3) node[right] {$ds_{ab}^2= 2KL$};       \end{tikzpicture}      \end{centering}      \end{document}


I seem to be getting a strange error after updating MiKTeX 2.9. I am using pdfLaTeX and TeXmaker with the `graphicx` package to include `.png` images. When I try to compile, I get the error `LaTeX Error: File 'title' not found.` If I include the file extension, then the error becomes `LaTeX Error: Cannot determine size of graphic in title.png (no BoundingBox)`. I wasn't getting these errors a few days ago when I started creating my presentation. It has also worked without problems in the past. MWE:               \documentclass{beamer}     \usepackage{graphicx}     \graphicspath{{figures/}}     \begin{document}         \title{title}         \author{author}         \date{date}         \titlegraphic{\includegraphics[scale=0.5]{title}}         \frame{\titlepage}     \end{document}      Also, from the logfile it seems that pdfLaTeX is not in PDF mode, and that all graphics are being treated as `.eps`:               Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)     Package ifpdf Info: pdfTeX in PDF mode is not detected.     ...     File: title.png Graphic file (type eps)      Does anyone know how to fix this problem?


title: Classicthesis Vertical Margins

text: I've been using the classicthesis package to write my master's thesis and now that I was getting the entire thing ready for printing I ran into some trouble. The thing is that I'm not really satisfied with the style's vertical margins. I know that many people try to adjust the horizontal margins as they seem a little wide, but I'm perfectly fine with that. I would just like to take the entire text block and center it vertically a little more. The way it is now, the top and bottom margins are slightly out of balance, which becomes especially apparent when turning off the drafting option. So, is there any way to adjust the top and bottom margins without affecting the rest of the layout?


title: Page number and name in the header of each page

text: How do you enter a page number on the right-hand side of each page? Also, is there a command so that "My name" is on the top left corner of each page except the first page? And maybe put a bar below the two above items? I am using document class resume.                \documentclass[margin,line]{resume}           \begin{document}      \name{\Large My name}       \begin{resume}           This is page 1.            \newpage                 This is page 2.            \newpage            This is page 3.              \end{resume}      \end{document}       Thank you.


title: Set feature "preview" in BibDesk to generate preview in APA format

text: BibDesk has a preview feature that allows you to visualize the typeset output of the reference you just entered. I would like to know how to make BibDesk to typeset the preview using APA style.