title: Trouble including graphics from csv file into Pgftable, commands are dissapearing (local maybe?)

text: I've been trying to add eps graphics with the filename in a csv file. Take a look at the CSV to get an idea of what I mean: https://docs.google.com/spreadsheet/ccc?key=0Ao9if7HTdeaPdGowdXJXbURJQWVmVTdDUVRaYTdldXc#gid=0 So far, I've managed to get LaTeX to spit out this much:![Table of Reagents](http://i.stack.imgur.com/7adIQ.png) I'm trying to place figures (with compound eps and name) for each compound in the Reagent column. So far I've created a new column in Pgfplotstable and I'm trying to include values from the name and structure column of my csv file. I'm pretty confused at this point, so I started trying to create a new command for every image which I would later call in the figure (\cmpi->compound 1 name, \structurei->compound 1 structure, \cmpii->compound 2 name, \structureii->compound 2 structure). I can't get that set up because the commands are lost after another call to defineCompound. There is probably a better way to create the in-table figures, but I am lost at this point. The first `\typeout{TESTING: \cmpi, \structurei}` works and prints `TESTING: (R)-(-)carvone, ../chemicals/(r)-(-)-carvone.eps`, but the second fails due to "Undefined control sequence" ![errors](http://i.stack.imgur.com/bOqN6.png) Any help at this point would be appreciated. I've just started using LaTeX and it's been a pretty rough journey so far. I'm hoping to finally be able to have all of my compounds in one csv file and just be able to select which ones I would like based on which experiment I'm performing. My LaTeX is:               \documentclass[pdftex,12pt,a4paper]{article}     \usepackage{enumitem}     \usepackage[left=.75in,right=.75in,top=.75in,bottom=1in]{geometry}     \usepackage{textcomp}     \usepackage{pgfplotstable}     \usepackage{graphicx}     \usepackage{siunitx}     \usepackage{tabularx}     \usepackage{epstopdf}     \usepackage{longtable}     \usepackage{booktabs}     \usepackage{colortbl}     \usepackage{fp}     \usepackage[runs=2]{auto-pst-pdf}     \usepackage[journal=rsc]{chemstyle}                    \newlist{steps}{enumerate}{1}     \setlist[steps,1]{       label={Step~\arabic*},       leftmargin=*,       align=left,       labelsep=10mm,     }          \setcounter{secnumdepth}{0}          \newcommand\defineCompound[3]{%         \typeout{#1}         \typeout{#2}         \typeout{#3}         \global\expandafter\newcommand\csname cmp#1\endcsname{#2}         \global\expandafter\newcommand\csname structure#1\endcsname{#3}         \typeout{TESTING: \cmpi, \structurei}     }          \begin{document}     \makeatletter     \section{Introduction}     \newcommand{\expnum}{14}     \newcommand{\exptitle}{Conversion of Carvone to Carvacrol: Multiweek Experiment Part 1}     \input{../common/intro.tex}          \begin{figure}[h!]       \caption{Conversion of (R)-(-)Carvone to Carvacrol by Sulfuric Acid and Heat.}       \centering         \includegraphics[width=\textwidth]{../reactions/(r)-(-)-carvone-to-carvacrol.eps}     \end{figure}     \begin{figure}[h!]       \caption{Balanced Equation.}       \centering         \includegraphics[width=\textwidth]{../reactions/2.eps}     \end{figure}     \newpage     \section{Table of Reagents}     \begin{center}       \pgfplotstableread[col sep=comma]{../common/reagents.csv}\loadedtable       \pgfplotstablecreatecol[         create col/assign/.code={%           \getthisrow{name}\name           \getthisrow{structure}\structure           \FPeval{\result}{clip(\pgfplotstablerow + 1)}           \edef\entry{\romannumeral\result}           \defineCompound{\entry}{\name}{\structure}           \pgfkeyslet{/pgfplots/table/create col/next content}\entry         }]{reagent}\loadedtable       \pgfplotstabletypeset[         string type,         begin table=\begin{tabularx}{\textwidth},         end table=\end{tabularx},         columns={reagent,mw,bp,mp,density},         %columns/name/.style={column name=Name, column type={|c}},         columns/reagent/.style={           column name=Reagent,           column type={l},           postproc cell content/.code={             \message{\pgfkeysvalueof{/pgfplots/table/@cell content}}             \message{\cmpi}             %\pgfkeyssetvalue{/pgfplots/table/@cell content}{}%           },         },         columns/mw/.style={column name={Molecular Weight (\si[per-mode=symbol]{\gram\per\mol})}, column type={X}},         columns/bp/.style={column name=Boiling Point (\si{\celsius}), column type={l}},         columns/mp/.style={column name=Melting Point (\si{\celsius}), column type={l}},         columns/density/.style={column name=Density (g/mol), column type={X}},         every nth row={1}{before row=\midrule},         every head row/.style={before row=\toprule,after row=\midrule},         every last row/.style={after row=\bottomrule},         ]\loadedtable     \end{center}          \end{document}


title: bar chart - 'inner' x ticks?

text: i've successfully created my first 'bar chart' today: ![enter image description here](http://i.stack.imgur.com/UA93G.png) by the use of the code given below:               \documentclass[tikz,border=1pt]{standalone}      \usepackage[ngerman]{babel}                              \usepackage[ansinew]{inputenc}       \usepackage[T1]{fontenc}                                 \usepackage{graphicx}      \usepackage{pgfplots}     \usepackage{amsmath}      \usepackage{units}     \usetikzlibrary{matrix}          \pgfplotsset{compat=1.10,              saeule-style/.style={               title={\textbf{Bar Chart}},             },             height=6cm,             width=20cm,             grid=major,             grid style={               solid,               ultra thin,               gray             },             xmin=1925,             xmax=1975,             xtick={1925,1930,...,1975},             x tick label style={                 rotate=90             },             x tick style={               color=black,               thin             },             ymin=0,             ymax=10,             y tick style={               color=black,               thin             },             xlabel={\textbf{Year}},           ylabel={\textbf{Population}},           legend columns=2,                  legend style={                 font=\scriptsize,                 legend pos=north west,                 draw=none,                 /tikz/column 2/.style={             column sep=10pt,           }             },           ybar=5pt,           nodes near coords,           /pgf/number format/.cd,           use comma,           set thousands separator={},     }                \begin{document}                \begin{tikzpicture}          \begin{axis}[saeule-style]             \addplot[ybar, bar width=0.2cm, fill=blue, draw=black] coordinates {(1930,5) (1940,3) (1950,4) (1960,5) (1970,7)};                 \addplot[ybar, bar width=0.2cm, fill=red, draw=black] coordinates {(1930,3) (1940,4)    (1950,4) (1960,4) (1970,6)};                      \legend{Far,Near}         \end{axis}       \end{tikzpicture}           \end{document}       As you can see, I added those x- and ytics. As I expected, the ytics were drawn _in_ the diagram. Unfortunately, the xtics don't. It seems that something gave them a kind of "outer"-option. Does anyone of you know how I can place them also _in_ the diagram? Thank you in advance, eniem * * * EDIT: Hmm ... now tried to use the 'xtick align=inside'-option, but it doesn't work. Does anybody know why?               \documentclass[tikz,border=1pt]{standalone}          \usepackage[ngerman]{babel}                          \usepackage[ansinew]{inputenc}                       \usepackage[T1]{fontenc}                                 \usepackage{graphicx}      \usepackage{pgfplots}     \usepackage{amsmath}      \usepackage{units}          \pgfplotsset{compat=newest,              saeule-style/.style={               title={\textbf{Bar Chart}},             },             height=6cm,             width=20cm,             grid=major,             grid style={               solid,               ultra thin,               gray             },             xmin=1925,             xmax=1975,             xtick={1925,1930,...,1975},             xtick align=inside,             xticklabel style={                 rotate=90             },             xtick style={               color=black,               thin             },             ymin=0,             ymax=10,             ytick align=inside,             y tick style={               color=black,               thin             },             xlabel={\textbf{Year}},           ylabel={\textbf{Population}},           legend columns=2,                  legend style={                 font=\scriptsize,                 legend pos=north west,                 draw=none,                 /tikz/column 2/.style={             column sep=10pt,           }             },           ybar=5pt,           /pgf/number format/.cd,           use comma,           set thousands separator={},     }                \begin{document}            \begin{tikzpicture}          \begin{axis}[saeule-style]             \addplot[ybar, bar width=6pt, fill=blue, draw=black] coordinates {(1930,5) (1940,3) (1950,4) (1960,5) (1970,7)};             \addlegendentry{Far}                 \addplot[ybar, bar width=6pt, fill=red, draw=black] coordinates {(1930,3) (1940,4)  (1950,4) (1960,4) (1970,6)};                 \addlegendentry{Near}             \end{axis}       \end{tikzpicture}           \end{document}       Thank you in advance! eniem


title: List of BibTeX references in PDF using LyX

text: I have a list of references created in BibTex and now I'm trying to put in in LyX, to then create a PDF. I tried doing: `Insert -> List -> BibTex` Bibliography and I get a grey box saying BibTex Generated Bibliography. However, now when I try to create a pdf, nothing shows up in my bibliography. I had to put               \bibliographystyle{plain}     \bibliography{}      as a code in front of my grey box, or else I get an error. Any ideas with what could have gone wrong, with these two problems?


title: \maketitle definition on article

text: I am searching for the definition of `\maketitle` in the `article` class. I searched on CTAN but there is a lot of files. I don’t know in which one I can find this definition.


title: External animation, "hyperreffed'' from beamer

text: I want to show my students an animation during a presentation. The animation is on a particular web site and the copyright statement says that one can openly present the animation onsite or link to it, whereas copying it is prohibited (the animation itself is javascript/html5 so it would be a challenge to embed it into latex anyway, but this is another story). The animation would be too time-consuming to produce on my own. The problem is that the animation contains explanations in english, whereas I want to (have to) show my students what is going on in turkish. I thought of several solutions using hyperref, but never saw any of these in real life:   * To create ,,a hole'' (transparent frame) within the pdf slide, so that the new window containing the animation goes ,,below'' the presentation slide (by playnig with z-index?), so that the slide itself becomes a ,,mask'' that contains the expalanation in turkish. I have never seen a pdf with a hole.   * to embed the web browser in a ,,frame'' inside the slide instead of opening a new window (I know this is possible with movies for example, but never saw a web browser embedded in pdf)   * to ,,pop up'' simultaneously two windows, one with the animation and the another with the text in turkish (may be a pdf file). There I would need to control from within latex the sizes and the placement of both new windows, so that they overlap in the right way. I know one can control sizes of a pdf file with the right options of hyperref, but never seen how to control an openining window with html content. I also never saw the situation when hyperref opens simultaneously two new windows with different content.  Is any of these at all posiisble? If yes how to obtain this? If no do You have another ideas?


title: What's the reason why some TeX files compile fine on TeXworks but others don't?

text: For example, when I download the `ShowcaseCircular.tex` file from here, I can see it previewed on the PDF viewer. But when I try `pp.tex`, I get some kind of error on TeXworks. Why is that?


title: Latex, how to “avoid” syllabify or hyphenation

text: I've a problem with latex (I'm new with it): it hyphenates :) :) I'm writing my thesis and I don't want the hyphenation. The strange thing is the fact that when I write the `\chapter` there is no hyphenation while this happen as soon as I write a `\section` or in the same chapter! How can I solve this problem? thanks everyone!               \documentclass[12pt, oneside, pdf, english]{toptesi}     \begin{document}     \chapter{What is Business Intelligence?}     \paragraph{}     Since the 1990s, the socio-economic context within which economic activities are carried out has generally been referred to as the information and knowledge society.      The profound changes that have occurred in methods of production and in economic relations have led to a growth in the importance of the exchange of intangible goods, consisting for the most part of transfers of information.     \section{Definiton and Aims of Business Intelligence}Business intelligence methodologies are interdisciplinary and broad, spanning     several domains of application. Indeed, they are concerned with the     representation and organization of the decision-making process, and thus with     the field of decision theory; with collecting and storing the data intended to     facilitate the decision-making process, and thus with data warehousing technologies;     with mathematical models for optimization and data mining, and     thus with operations research and statistics; finally, with several application     domains, such as marketing, logistics, accounting and control, fi...     \end{document}


title: Using breakable hyphen "= in \newcommand

text: I want to use a breakable hyphen `"=` in a command:               \documentclass[a4paper]{article}     \usepackage[ngerman]{babel}     \newcommand{\TT}{Test"=Text }     \begin{document}     This is a test whether the hyphen in \TT works or not.     In normal Test"=Text works.     \end{document}      In the text `"=` works fine, but as a command `"=` does not work. Any idea?


title: Explanatory bubbles in beamer

text: In the MWE below I want to place an "explanatory bubble" (see picture inserted below) pointing to the word "Integer" in the 8th line (the bubble should superimpose the text, a transparency effect such that the text behind the bubble is still weakly visible would be nice but is by no means necessary if this would make things significantly more complex) . What is the most simple and elegant solution to do this?               \documentclass[10pt,xcolor=dvipsnames]{beamer}     \usepackage{lipsum}     \begin{document}       \frame{\frametitle{A Modern Exegesis of Lipsum}       \lipsum[1]       \begin{itemize}         \item WDQGCBIOZBWIWURZBBTBRTTVVUQRWXWTVEWQVY         \item BXWZTVWQTVCWRCQTVXTTQVRQXTRCVCVRTCVVTX         \item AUXZWTCVWVWUTVRTVCUZTEVWTVCUTVTVERVCTV       \end{itemize}       }     \end{document}      The pdf output of the MWE: ![MWE](http://i.stack.imgur.com/Ykodk.jpg) The bubble should look somewhat like this: ![bubble](http://i.stack.imgur.com/HFglG.jpg) PS: I saw Simple speech bubbles, arrows or balloon like shapes in beamer but it seems quite complicated to me -- hopefully there is a simpler solution to my problem. In case the solution involves TikZ some explanations would be appreciated since I have never used TikZ yet. NB: The solution should work with standard `LaTeX` and preferably not require `PDFLaTeX`. * * * **EDIT** : There is a follow-up question TikZ callout pointing to nested nodes. The accepted answer to that question also gives an alternative solution to the above problem which may be more robust in combination with `beamer` than the solution suggested below.


title: TikZ bounding box too big

text: I'm fairly new to LaTeX and I'm trying to make a homework template that uses figures generated in LaTeX but when I use TikZ I get a bounding box that is way too large. What is the easiest way to automatically get TikZ to make a tight bounding box? Here is my code:               \documentclass{article}[12 pt]     \usepackage{amsmath,amssymb, amsthm, pgfplots} % Math packages     \pgfplotsset{compat=1.6}          \usepackage{tikz}          \usetikzlibrary{arrows}          \usepackage[margin=1in]{geometry} % Page settings          \usepackage{fancyhdr} %Used for headers     \usepackage{graphicx}                \pagestyle{fancy} % Sets page style to fancy     \fancyhf{} % Clears standard header     \lhead{\textbf{Algebra II}} %Subject Name     \chead{\textbf{Name:}\hspace{3 in}}     \rhead{\textbf{Mr. A}}  %Teacher name          \rfoot{Page \thepage}               \begin{document}          \begin{flushright}     \textbf{Period:}  \makebox[0.5 in]{\hrulefill} %Transfer this to header     \textbf{Date:}  \makebox[0.75 in]{\hrulefill} \\[20 pt]     \end{flushright}          \center{\LARGE{\textbf{Intervals, Parent Functions and Domain \& Range}}}          %Create Question command          \center{Directions: Given a representation of an interval, give the other two representations. Below are examples of the three representations} \\          \begin{tikzpicture}     \begin{axis}[     axis y line=none,     axis lines=left,     axis line style={<->},     xmin=-5,     xmax=5,     ymin=0,     ymax=1,     %xlabel=$\mathbb R$,     scatter/classes={                     o={mark=*,draw=black,fill=white},                     c={mark=*,black}                     },     restrict y to domain=0:1,     xtick={-5,-4,...,5},     point meta=explicit symbolic,      ]      \addplot[scatter,black,ultra thick] table [y expr=0,meta index=1, header=false] {      -2 c      3 c      };                \end{axis}           \end{tikzpicture}                               \end{document}


title: Avoid arrow crossing over blocks in flow chart

text: I've been creating a flow chart using the template I found here: http://www.texample.net/tikz/examples/simple-flow-chart/ Please see the code below:               \documentclass{article}     \usepackage[latin1]{inputenc}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows}     % Define block styles     \tikzstyle{decision} = [diamond, draw, fill=blue!20,          text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]     \tikzstyle{block} = [rectangle, draw, fill=blue!20,          text width=5em, text centered, rounded corners, minimum height=4em]     \tikzstyle{line} = [draw, -latex']     \tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,         minimum height=2em]     \begin{document}     \begin{tikzpicture}[node distance = 2cm, auto]         % Place nodes              \node [cloud] (a) {a};             \node [block, right of = a, node distance =5cm] (b) {b};             \node [decision, below of = b] (c) {c};             \node [block, below of = c, node distance = 3cm] (d) {d};             \node [decision, below of = d, node distance = 3.2cm] (e) {e};             \node [block, right of = e, node distance = 3.2cm] (f) {f};             \node [decision, below of = e] (g) {g};             \node [block, left of = g, node distance = 3.2cm] (h) {h};             \node [decision, below of = g, node distance = 3.5cm] (i) {i};             \node [block, left of = i, node distance = 3.2cm] (j) {j};             \node [block, right of = i, node distance = 3.5cm] (k) {k};          % Draw edges         \path [line] (a) -- (b);         \path [line] (b) -- (b);         \path [line] (b) -- node [near start] {yes} (d);         \path [line] (d) -- (e);         \path [line] (e) -- node [near start] {no} (f);         \path [line] (f) |- (b);         \path [line] (e) -- node [near start] {yes} (g);         \path [line] (g) -- node [near start] {no} (h);         \path [line] (h) |- (e);         \path [line] (g) -- node [near start] {yes} (i);         \path [line] (i) -- node [near start] {yes} (j);         \path [line] (j) -- (h);         \path [line] (i) -- node [near start] {no} (k);         \path [line] (k) -| (h);     \end{tikzpicture}     \end{document}      How can I create an arrow from k to h that doesn't intersect any of the other boxes or arrows? ![](http://i.stack.imgur.com/lUvLB.png)


title: Setting up Acronym on IEEEtran Class Documemt

text: I am looking for a way to setup acronym list such that, on first reference the full name will be listed and the acronym in brackets. From thereon, future reference to the acronym will only give the abbreviated form. For example, "This is an Association for Computing Machinery (ACM) article. ACM is very popular in computer science." For both reference to ACM above, I would refer it just like `cite`, say \abr{ACM}. So the above would be written in tex file as: "This is an Association for \abr{ACM} article. \abr{ACM} is very popular in computer science." Similar to Bibliography, what ACM stands for would be mentioned somewhere. I hope the question is clear.


title: Separate labels in cases 2

text: Is there a cases package that lets me label my cases as I want? The `cases` and `subcases` environments of the `cases` package either labels tags with consecutive numbers or not at all. I would like some cases labeled and some not.


title: Appendix numbering issue

text: I am trying to obtain the following structure (in terms of titles) : > >     Chapter 5 : Last Title >     Annex >       A - Section1Annex >       B - Section2Annex >   where `Chapter 5` and `Annex` are referenced as `\chapter` title. I managed to "remove" the chapter numbering for the Annex (with `addcontentsline` and `chapter*{Annex}` inside a custom made command, "`\myChap`), so, **no problem** on that side. Then, on below the code I wrote :               \chapter{Last Title}     \myChap{Annex}     \appendix     \section{Section1Annex}     \section{Section2Annex}      However, it displays the following structure: > >     Chapter 5 : Last Title >     Annex >       0.1 - Section1Annex >       0.2 - Section2Annex >   **My problem :** How can I switch these section numbering from `0.1` (resp.`0.2`) to `A` (resp. `B`). I am having difficulties to deal with the `\appendix` environment. Thank you in advance for your help.


title: How can I create a notes column in a document?

text: I need a document that has a notes column on the right hand side of each page starting after the contents page. This notes column should have the heading "Notes" , should be 50% of the size of the main column and be separated with a thin line. Any ideas which packages I can use to do this? I've managed to get a wide ruled margin. No heading so far.


title: Document requiring infinitely many compiler passes?

text: It is an unfortunate reality that one must compile a LaTeX file several times in order to get all labels and citations correct. As far as I know, one should go on compiling as long as TeX warns that that "labels may have changed", and two or three passes may not be enough. _Is it possible to write a LaTeX document that never stabilizes, i.e., no matter how many times I compile it, it will go on complaining that labels have changed?_ I am thinking about something like a `\pageref{something}` written in a large font that moves from page 9 to page 10, which requires longer to typeset and thus makes the corresponding label change page and so on _ad infinitum_.


title: What configuration do you propose for listings.sty to make the output look comfortable?

text: The objective of this topic is to make a common place where we can share our settings for `listings.sty`. So we can use this as a reference. Note that I am only interested in the following settings:   1. font family, font size, font weight, font color   2. background color In other words, the layout such as frame, line numbers, etc must not be taken into account here. The rule of the game:   1. Use the following code snippet as the template. Only modify the lines marked with `%<==`. **NOTE:** Please leave the font size unchanged. I already set it to `\scriptsize`.               \documentclass[dvips,dvipsnames]{article}     \usepackage[a4paper,margin=55mm]{geometry}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{listings}     \lstset%     {%     language={[Sharp]C},     breaklines=true,     breakindent=0pt,     tabsize=2,     showstringspaces=true     }          %=================================     %Rule of the Game:     %You are ONLY allowed  to      %modify the lines marked with %<==     %=================================        \usepackage[rgb]{xcolor}%<==         \lstset     {%       backgroundcolor=%       \color{Black},%<==       %       basicstyle=\scriptsize%leave the font size unchanged please.       \color{lightgray}\ttfamily,%<==       %       keywordstyle=%       \color{Orange}\sffamily,%<==       %       commentstyle=%       \color{Green},%<==       %       identifierstyle=%       \color{Cyan},%<==       %       stringstyle=%       \color{Yellow}%<==      }       \begin{document}     \begin{lstlisting}     using System;     public class Foo     {      public static void Main()      {             Console.WriteLine("I Love LaTeX");//This is a comment.      }      /*This is a comment too.*/     }     \end{lstlisting}     \end{document}        2. View the pdf output in 150% scale and make a screenshot of it in *.png format.   3. Submit your screenshot followed by your modified settings (NOT complete code please). You can submit as many as you want but make sure you don't make a duplication.


title: Matrix equation and \notag

text: My problem is related to the following "equation":               \begin{align}     \left(     \begin{matrix}          \shat{X} \notag \\          \shat{X}' \notag \\          \shat{Y} \notag \\              \shat{Y}' \\         \end{matrix}      \right)_{n+1}      = R(\omega_x, \omega_y)      \left(         \begin{matrix}             \shat{X}  \\             \shat{X}' + \shat{X}^2 - \chi \shat{Y}^2 + \kappa \left( \shat{X}^3 - 3 \chi \shat{X} \shat{Y}^2 \right)  \\             \shat{Y}  \\             \shat{Y}' - 2 \chi \shat{X} \shat{Y} - \kappa \left( \chi^2 \shat{Y}^3     - 3 \chi \shat{X}^2 \shat{Y} \right)  \\         \end{matrix}     \right)_n      \end{align}      It looks like I have to use `notag` for each line to avoid the individual line/equation numbering. Why is that ? The next problem is: when I use 'notag' for each line, then the result is completely ugly, and the delimiters are in the wrong order (something strange with `)` before `(` ... I'm using `memoir` with `amsmath`. **EDIT:** The `shat` command is defined as               \newcommand{\shat}[1]{\ensuremath{\hat{#1}}}        and it seems to work. The problem looks the same for this simpler case: ![enter image description here](http://i.stack.imgur.com/gD6Bj.png)


title: Looking for Cover letter template

text: I'm looking for cover letter template which would fit with this CV, PDF here. Can anyone suggest anything similar to that (just a regular cover letter, sender's address on top right, recipients lower on the left, text follows ...). I'm newbie to LaTeX, and somewhat short on time, otherwise would have try to compose my own. But as the situation stands, unfortunately, haven't got the time for experimenting :/


title: Controlling vertical space after headline when using \parskip

text: When using a 0 length `\parindent` and an expandable length of `\parskip` it is my feeling that the space after section headlines becomes too big (see example). Is there another command I should use for decreasing the vertical space after section headings or should I perhaps use a completely different approach to accomplish what I am after?               \documentclass[a4paper, twoside, 11pt, onecolumn]{article}     \usepackage{sectsty}          \begin{document}              \allsectionsfont{\sffamily}              \section{Lorem ipsum}         Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse mollis         ultricies porttitor. Mauris iaculis dignissim magna, sit amet viverra enim         feugiat consectetur. Ut at mauris in felis congue mattis. Nam molestie mattis         erat sit amet eleifend. Nulla volutpat ornare quam.               Pellentesque at varius libero. Nunc quis nunc eget elit congue pulvinar non         sagittis turpis. Fusce mauris lorem, euismod accumsan sollicitudin dictum,         adipiscing dignissim tortor. Aliquam commodo cursus sapien placerat         volutpat. Mauris dignissim sem vitae magna fringilla hendrerit.              \setlength{\parindent}{0 em}         \setlength{\parskip}                   {1 \baselineskip plus 0.2 \baselineskip minus 0.2 \baselineskip}              \section{Dolor sit}         Phasellus non odio nec arcu aliquam cursus. Integer at sem id magna         lobortis ultrices. Morbi sed lacus neque, vitae aliquet massa. Aliquam vel         ligula orci.  Nam at velit libero. Vivamus ac commodo velit. Mauris cursus         ultricies sapien et egestas. Donec non augue ut nisi luctus pretium.         Vivamus laoreet varius lacus at feugiat. Phasellus condimentum tincidunt         egestas. Aenean eu aliquam sem.               Cras libero nunc, mattis quis aliquet vel, faucibus fringilla nibh. Etiam         commodo sem et arcu eleifend tincidunt. Maecenas pulvinar odio id turpis         feugiat ac sollicitudin nulla sollicitudin. Pellentesque habitant morbi         tristique senectus et netus et malesuada fames ac turpis egestas. Quisque         non felis ligula, in interdum justo.          \end{document}


title: Failing to add a bibtex file into a main tex file

text: I see several entries in the forum suggesting that the enclosed Miminal code should print the references in the file `myref.bib` in the tex file here. The output of this file for me gives a pdf file with just the "How are you" written on the entire page.               \documentclass[12pt]{article}     \usepackage{natbib}     \begin{document}          How are you      \bibliographystyle{acm}     \bibliography{myref.bib}          \end{document}      The file `myref.bib` is in the same directory and has 3 few entries in the following way:               @article{diamondprop,         author = {Kania D R, Landstrass M I and Plano M A},         title = {Diamond radiation detectors},         journal = {Diamond and Related Material},         year = { 1993 },         volume = {2},         number = {1012–9}     }


title: vertical line in tabular problem

text: im trying to create a table with a vertical line at the left and at the right, EXCEPT the top row shouldn't have the vetical lines. something like:                 A  B  C     | a  b  c |     | a  b  c |     | a  b  c |     | a  b  c |     | a  b  c |      I have this code:               \documentclass{article}          \setlength{\parindent}{0mm}     \usepackage[dutch]{babel}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{multirow}     \begin{document}          \begin{tabular}{|cr@{}lr@{}lr@{}l|}     & \multicolumn{2}{c}{P} & \multicolumn{2}{c}{E} & \multicolumn{2}{c}{D} \\     \hline          pond &10&&8&,9&6&,2\\     \hline\hline          euro &11&,3&10&&7&,0\\     \hline\hline          dollar&16&,2& 14&,3&10&\\     \hline     \end{tabular}          \end{document}      How to fix it so that it doesnt add a vertical line to the top row? thx in advance!


title: Plot a matrix of real values with TikZ/PGF like imshow in matlab

text: How can I plot a matrix of real values with TikZ/PGF such that it looks like plotted with `imshow` in MATLAB? `\addplot3` does something similar, but I'd like to have that in a color-coded 2D plot.


title: Not recompile unchanged pgfplots graph

text: I'm writing a document with something like 30 graphs with a lot of points in each. The graphs are almost ok and I don't need to change them for now. I'm improving the text, so I need to recompile often when I change something on the file (to see if it is ok). Each time I have to recompile all the graphs and compilation took about 6-8 minutes. Is there any way not to recompile the graphs but include them on the final pdf however (not commenting them)?


title: figure/table caption formatting without packages

text: I am writing a document which needs to have tables and figures. Normally for formatting the caption of figures/tables I use               \renewcommand{\@makecaption}      But it affects both tables and figures captions. Is there any way to define different formatting for captions, e.g. bold captions for tables and italic captions for figures? I'd like to do this without using packages.


title: Stickers on Thesis paper

text: I want to put a sticker "Examiners Copy" on the the front page of the thesis. How to do this?


title: Block Diagram with image in it

text: I am trying to write a block diagram of my system in latex. My problem is that I do not know how to import images inside tikspicture. A sample of the thing which I want to do is as below: ![enter image description here](http://i.stack.imgur.com/nvApC.jpg) For example I want to show Images instead of input image. Any help would be appreciated. Thank you in advance


title: A short hyphen in a math formula

text: In a LyX math formula, I want to write something like "r-number". However, the usual dash looks too long (like a minus sign). I am looking for a short, possibly upper hyphen. I couldn't find it in the lists of symbols in the bottom toolbar, and I also don't know how to search for symbols online If you can give me a tip, how to find a symbol that I need, this will be very useful.


title: Can gitHeadInfo.gin be safely added to .gitignore (without interfering with gitinfo's proper functioning)?

text: Can `gitHeadInfo.gin` be safely added to `.gitignore` _without_ interfering with `gitinfo`'s proper functioning ? I'm asking this, cuz currently (using `gitinfo`) `git`'s working directory is _never_ clean: `# modified: gitHeadInfo.gin` and this just seems a bit "untidy".


title: Environment variable TEXEDIT doesn't work with LuaLaTeX (?)

text: I like the ability to press `e` when running `pdflatex` in `errorstopmode` to jump directly to the line where the error occurs in my favourite editor. This works fine for `pdflatex` and `xelatex` as long as the variable `TEXEDIT` (which seems to be responsible of this behaviour) is set to the right editor. I've set (my editor is WinEdt)               TEXEDIT=WinEdt.exe "[Open(|%s|);SelPar(%d,7);]"      in a PC with TeX Live 2013 installed. Anyway, I can't get it working with `lualatex`. I mean, when I have an error in the line 21 in a file called `test.tex`, the console output of `lualatex` is:               You want to edit file ./test.tex at line 21      but it doesn't jump at all to the line with the error. So, the question is: do I have to set a different environment variable for `lualatex` or is there something that I'm missing?


The following MCE and image show that titleps' page styles inserted just before chapters start too early: the head rule begins with the 'test' page style which should be applied only after the end of chapter 1 and, hence, at beginning of chapter 2.               \documentclass{book}     \usepackage{lipsum}     \usepackage[pagestyles]{titlesec}     \usepackage{hyperref}     %     \newpagestyle{main}[]{%       \sethead       [\thepage][][\chaptertitlename\space\thechapter. \chaptertitle]       {\ifthesection{\thesection\space\,\sectiontitle}       {\chaptertitlename\space\thechapter. \chaptertitle}}{}{\thepage}     }     %     \newpagestyle{test}[]{%       \sethead       [\thepage][][\chaptertitlename\space\thechapter. \chaptertitle]       {\ifthesection{\thesection\space\,\sectiontitle}       {\chaptertitlename\space\thechapter. \chaptertitle}}{}{\thepage}       \headrule     }     %     \begin{document}     \tableofcontents     \pagestyle{main}     \chapter{Main}     \lipsum[1-25]     \pagestyle{test}     \chapter{Test}     \lipsum[1-25]     \end{document}      Here is the output: ![enter image description here](http://gte.univ- littoral.fr/members/dbitouze/pub/latex/divers/trouble-with- titleps/downloadFile/file/titleps-trouble.png) As shown by the following image, adding a `\cleardoublepage` at the beginning of `\newpagestyle{test}` doesn't help: ![enter image description here](http://gte.univ-littoral.fr/members/dbitouze/pub/latex/divers/trouble- with-titleps-1/downloadFile/file/titleps-trouble1.png)


title: algorithm2e with boxruled gives overfull hbox

text: I am using the algorithm2e package with the boxruled option to format my pseudo-code. However, I am getting an overfull hbox, which I suspect is due to margin/box conflicts. Does anyone have a fix for this? Minimal working example provided:               \documentclass[11pt]{llncs}          \usepackage[boxruled]{algorithm2e}     \SetAlFnt{\scriptsize}     \SetAlCapFnt{\scriptsize}     \SetAlCapNameFnt{\scriptsize}          \begin{document}         \begin{algorithm}[H]         \SetAlgoLined         \KwData{input}         \KwResult{output}         a;         b;         c;         \caption{lalala}     \end{algorithm}     \end{document}


title: Chapters numbering

text: A question about chapters numbering and the ToC. I do this:               \include{disclaimer}     \include{dedication}     \include{epigraphe}     \include{ackno}     \include{abstract}          \setcounter{page}{1}     \pagenumbering{roman}     \include{abstract_det}          \mainmatter          \tableofcontents          \newpage          \setcounter{page}{1}     \pagenumbering{arabic}          \include{introduction}      \include{chapter1}     \include{chapter2}     \include{chapter3}     \include{chapter4}     \include{chapter5}     \include{chapter6}     \include{chapter7}        1. Right now Introduction is `\chapter*{Introduction}`, so it does not appear in the ToC. How to make it appear there without attributing to it a chapter number?    2. How to get rid of numbering pages in the ToC?


title: Using WrapFigure near an environment. (Some text inside environment is not wrapped by the wrapfig)

text: To count words in a document, I am using a custom environment, as suggested here on tex.stackexchange. As can be seen below, when this environment is used next to a wrapfigure, the wrapfigure fails to wrap the text correctly. ![enter image description here](http://i.stack.imgur.com/EbWxe.png) Below is the PNG file used in this MWE. In my original document, I am using the PDF file created by TikZ, but this is easier to host and has the same effect save for poor quality rasterisation. ![PNG raster of PDF created in TikZ](http://i.stack.imgur.com/O8saz.png) The MWE follows.               \documentclass[a4paper]{article}     \usepackage{mathtools}     \usepackage{wrapfig}     \usepackage{xesearch}     \usepackage{enumitem}          \newcounter{words}     \newenvironment{counted}{%       \setcounter{words}{0}       \SearchList!{wordcount}{\stepcounter{words}}         {a?,b?,c?,d?,e?,f?,g?,h?,i?,j?,k?,l?,m?,         n?,o?,p?,q?,r?,s?,t?,u?,v?,w?,x?,y?,z?}       \UndoBoundary{'}       \SearchOrder{p;}}{%       \StopSearching}          \begin{document}     \begin{wrapfigure}{r}{0.5\textwidth}     \centering     \includegraphics{fig1.png}     \caption{Caption}     \label{fig:1a}     \end{wrapfigure}          \begin{counted}     We assume that point $\mathrm{P}$ is far enough from the dipole such that the $\mathbf{B}$ field obeys the equation for a dipole aligned along the $z$-axis:     As can be seen by inspection, the magnetic field lines encircle the $z$-axis and therefore a circular wire loop centred at any point along the axis would have a net zero flux passing through the centre -- no signal would be detected.\\          The wire loop must be aligned in a plane normal to the magnetic flux. If the loop were aligned parallel to the flux, then no flux would pass \emph{through} the loop. In accordance with Faraday's Law, this would mean that no electric field would be found integrating along the path of the loop -- i.e. no current would be induced and therefore no signal detected. It is important to note that the direction of the flux is key and flux from opposite directions cancels out, as demonstrated in figure~\ref{fig:1a}.     \end{counted}     \end{document}      At the moment I am having to choose between correctly wrapped text and a word count. I would much rather not have to choose between the two!


title: How to put symbol around the equal sign?

text: In the question Latex Math Symbol: Vitanyi puts a tiny plus symbol over his equals. How do I do that?, there was an answer to how to place additional sign over the equal sign. And my question is, what if I also want to have some symbol/text under the equal sign? Or if I want to use `\stackrel` to label my equal sign that follows an tab alignment character (`&=`)?


title: References spilling out of margin in bibliography

text: I have a search for this problem but all I could find was the case of reference citations in document spilling over, not the bibliography. Quite simple problem I hope... In my bibliography some of the journal names are spilling over the right margin: ![names](http://i.stack.imgur.com/V8TpB.png) The italic journal names are spilling over, I am using package `cite` and `\bibliographystyle{unsrt}`. I **am** using `\usepackage{microtype}`. Any idea whats causing this? A MWE of just one article that causes this is,               \documentclass[11pt,a4paper]{report}     \usepackage{cite}     \usepackage[utf8]{luainputenc}     \usepackage{microtype}          \begin{document}          In papers \cite{Ferri2004}          \bibliographystyle{unsrt}     \bibliography{testbib}      \end{document}      with the bibtex file `testbib.bib` as:               @article{Ferri2004,     author = {Ferri, F. and Magatti, D. and Pescini, D. and Potenza, M. a. C. and Giglio, M.},     doi = {10.1103/PhysRevE.70.041405},     file = {},     issn = {1539-3755},     journal = {Physical Review E},     month = oct,     number = {4},     pages = {041405},     title = {{Heterodyne near-field scattering: A technique for complex fluids}},     url = {http://link.aps.org/doi/10.1103/PhysRevE.70.041405},     volume = {70},     year = {2004}     }      Thanks.


title: \sqrt(2) in TikZ results in illegal unit of measure

text: The code snippet below works well on my Mac but under Linux I get the error messages > "! Illegal unit of measure (pt inserted)."   >  "! Missing number, treated as zero."   >  ! Package calc Error: `s' invalid at this point."   > for line 3 of the example.               \begin{tikzpicture}[thick,scale=0.9]     \draw (0, 0) -- (0, -4); %works     \draw ({3.5 / sqrt(2)}, {3.5 / sqrt(2)}) -- ({4 / sqrt(2)},{4 / sqrt(2)});     \end{tikzpicture}      Does anybody know what the problem could be?


title: create list of thumbnails for each section

text: I want to create a cooking book. There I want to define for each receipe a thumbnail image. At the beginning of each chapter I want to show instead of a TOC a gallery of thumbnails of each subsection (the title of each receipe is in the subsection). I have same very basic background in LaTeX programming, but here I do not know how to start. The sections are groups of recipes defined as               \newcommand{\recipesection}[1]{%     \phantomsection%     \stepcounter{section}%     \addcontentsline{toc}{section}{\thesection\hspace{1em}#1}%     }      The recipes titles itself are printed as               \DeclareRobustCommand*{\titel}{%       \@startsection{subsection}%Name     {2}%Level     {0pt}%Einrückung%     {2\baselineskip}%beforeskip     {0.2\baselineskip}%afterskip        {\font@recipetitle}*%     }%      I could define a command according to the section and subsection level which stored the path of the image. However how do I save this to the aux file, so that I can read it afterwards and how do I know the number of section and subsections in a chapter so that I could define a galleray on that basis?


title: input filename as caption in listing

text: I'm working on the following piece of code               \newcommand{\mycin}[1]{% new command for icluding piece of code from external files       \lstinputlisting{#1}     }      I want to add a caption that reflects the name of the actual filename included by the command, i tryed something like               \newcommand{\mycin}[1]{% new command for icluding piece of code from external files       \lstinputlisting[caption=\caption{#1}]{#1}     }      or               \newcommand{\mycin}[1]{% new command for icluding piece of code from external files       \lstinputlisting[caption={#1}]{#1}     }      but both solutions do not works, there is a way to automate the generation of a caption in a newcommand?


title: Trouble with epstopdf: File 'foo-eps-converted-to.pdf' not found

text: My question has been asked before but none of the answers previously has answered my question. I have an `.eps` file that I want to include in my LaTeX document. For this purpose I have included the epstopdf package. However, when I try to compile my document by using pdflatex, I get the error message `File 'foo-eps-converted-to-pdf' not found`. In the log file it says:               {/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2]     Package epstopdf Info: Source file: <Aoo.eps>     (epstopdf)                    date: 2014-04-28 18:54:16     (epstopdf)                    size: 18858 bytes     (epstopdf)             Output file: <foo-eps-converted-to.pdf>     (epstopdf)             Command: <epstopdf --outfile=foo-eps-converted-to.pdf foo.eps>     (epstopdf)             \includegraphics on input line 142.     runsystem(epstopdf --outfile=foo-eps-converted-to.pdf foo.eps)...disabled.          Package epstopdf Info: Result file: <foo-eps-converted-to.pdf>.          ! Package pdftex.def Error: File `foo-eps-converted-to.pdf' not found.          See the pdftex.def package documentation for explanation. Type  H     <return>  for immediate help.       ...                                              l.142 \includegraphics{foo.eps}      It should be noted that all files are in the same directory, so there shouldn't be any issues with that. Any suggestions? Thanks in advance!


title: How to print a warning sign (triangle with exclamation point)?

text: I am interested in including a triangle with an exclamation point (unicode #9888: ⚠) in a tex document. I've looked in the usual places (detexify, etc.) and not found this symbol. The document should be compilable with pdflatex and the source should have ASCII encoding. I already have a tikz version that I like reasonably well, given by               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{shapes.geometric}     \newcommand{\warningsign}{\tikz[baseline=-.75ex] \node[shape=regular polygon, regular polygon sides=3, inner sep=0pt, draw, thick] {\textbf{!}};}     \begin{document}     \warningsign Warning     \end{document}      so I am also requiring that the answer be an actual character, or at least not done using graphics.


title: What is the Right Way to install a new font locally?

text: In this answer, I produced a new `tfm` file for the beamer standard math font. What is the Right Way to make the new font available to the TeX system? With texlive I tried               updmap-sys --enable Map=cmssmi.map      but this gave the following error message.               updmap: This is updmap, version $Id: updmap 14402 2009-07-23 17:09:15Z karl $     updmap: no permissions for writing /usr/local/texlive/2009/texmf-var/web2c/updmap.log', so no transcript          There was a problem finding a proper place to store configuration data.     The message was:       Directory `/usr/local/texlive/2009/texmf-config/web2c' is not writable          To overcome such problems, set up the environment variable TEXMFCONFIG to     point to a directory tree that is writable to you, e.g.       TEXMFCONFIG=$HOME/texmf; export TEXMFCONFIG     or       setenv TEXMFCONFIG $HOME/texmf      I did try setting up `TEXMFCONFIG`, but to no avail. To make clear what I aim at: I'm on a system where I'm just a poor user; the TeX distribution is installed globally, so it's read-only for me as I don't have root permissions. Therefore, I want the changes installed in a local directory.


title: Associating error messages with tex input

text: I'm compiling a paper that someone else started and I have to fix some error messages associated with text that I've never read before. When I compile the paper sometimes it gets to an error and I have to figure out where that is in the paper and how to fix it. The warning messages give some information about what causes the warning, for example:               LaTeX Warning: Reference `label1' on page \thepage  undefined on input line 74.      These have been helpful for me in figuring out where `pdflatex` is in processing the file because the error messages are typically thigns like:               [5]          ! LaTeX Error: Illegal character in array arg.      This is just an example of one the errors that I've gotten to and am trying to fix. I can Google for the error message and try to understand what is causing it. But my question is: **is there an easy way to know what causes an error message to occur in latex?** Mostly I'd like to see something like the line number information that is provided for warnings, but for errors instead. I don't know if that feature exists or not but I thought it might be worth asking.


title: Add logo on each page.

text: I need to insert a logo on pdflatex supported format on the bottom right of each page. Do you think it's possible?


title: How can I use fontspec to set a sans heading font with mathdesign

text: I like the `mathdesign` package, but would like to use Myriad Pro section headings in `LuaLaTeX`. Is this possible, or do I have to convert an OTF font to T1? (My ignorance of font issues in *TeX is boundless.) The `\setsansfont` command and `mathdesign` packages seem not to work together, though there is no mention of fontspec within mathdesign. Here's a MWE that shows what doesn't work when running through LuaLaTeX.                \documentclass{article}      \usepackage [english] {babel}      \usepackage {blindtext}      \usepackage {titlesec}      \usepackage {etoolbox}      \usepackage {ifluatex}      \titleformat{\section}{\Large\sffamily\bfseries}{\thesection}{1em}{}           \ifbool{luatex} {         \usepackage {fontspec}        \setsansfont [Ligatures=TeX,Scale=MatchLowercase] {Myriad Pro}        \usepackage [charter] {mathdesign}      }{\usepackage [T1] {fontenc}        \usepackage [charter] {mathdesign}        \renewcommand*{\sfdefault}{phv} % Adobe Helvetica       }           \begin{document}      \section {A section}      \blindmathpaper      \end{document}      The beginning of that document looks as follows (note the lack of sans serif section heading) ![fontspec first](http://i.stack.imgur.com/mU6s9.png) If I load the `mathdesign` package before `fontspec` I get the correct section heading font, but the `rmdefault` font switches to CM. Interestingly, the math font remains Charter in all cases. ![enter image description here](http://i.stack.imgur.com/aLRJ2.png)


title: Moving navigation symbols to footline of Beamer presentation with Berlin theme

text: I have exactly the style of navigation symbols that I would like for my Berlin themed Beamer presentation:               \documentclass[xcolor=dvipsnames,compress]{beamer}          \usetheme{Berlin}     \makeatletter     \beamer@theme@subsectionfalse     \makeatother          \setbeamertemplate{navigation symbols}{}          \useoutertheme{miniframes}     \setbeamertemplate{mini frame in other subsection}{}     \usepackage{etoolbox}     \makeatletter     \beamer@compressfalse     \patchcmd{\insertnavigation}{\hskip-1.875ex plus-1fill}{}{}{}     \patchcmd{\sectionentry}{\beamer@section@set@min@width}{}{}{}     \patchcmd{\sectionentry}{\hskip1.875ex plus 1fill}{}{}{}     \patchcmd{\sectionentry}{\hyperlink{Navigation#3}{{\usebeamertemplate{section in head/foot shaded}}}}{}{}{}     \patchcmd{\slideentry}{\beamer@ypos=#2\relax}{}{}{}     \patchcmd{\fakeslideentry}{\beamer@ypos=#2\relax}{}{}{}     \makeatother          \makeatletter     \patchcmd{\slideentry}{\advance\beamer@tempdim by -.05cm{\advance\beamer@tempdim by\beamer@vboxoffset\advance\beamer@tempdim by\beamer@boxsize\advance\beamer@tempdim by 1.2\pgflinewidth}{}{}     \patchcmd{\slideentry}{\kern\beamer@tempdim}{\advance\beamer@tempdim by 2pt\advance\beamer@tempdim by\wd\beamer@sectionbox\kern\beamer@tempdim}{}{}     \makeatother          \author[sklum]{sklum}      \title{mytitle}     \institute[myinst]{     institution \\     }          \begin{document}     \section{Sec00}     \subsection{Sec00} {     \begin{frame}{001}          \end{frame}          \begin{frame}{002}          \end{frame}     }     \end{document}      Using the answers here and here, this code makes navigations symbols appear only for a section, and symbols appear directly to the right of the section title. However, I'd like to move the header containing the navigation symbols to the lowest part of the footer (i.e. below my name and the title). Unfortunately, the answer here does not work for the Berlin theme. Is this possible?


title: Indent, Font of headlines

text: 1. I need to set an indent which must be equal to 1.27 cm, but, actually, I have no indent at the first line after title. How can I add it at the beginning of EVERY LINE, including the first one?   2. Font of headlines must have bold type with size 16. Besides, line-to-line spacing must be 1.5 everywhere. Instead of it, I have very large line-to-line spacing between any text and headlines by default Here is my preamble:               \documentclass[a4paper,14pt ]{report}     \usepackage[T2A]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{amssymb,amsfonts,amsmath,mathtext,cite,enumerate,float}     \usepackage{graphicx}     \usepackage[14pt]{extsizes}     \usepackage{times}     \usepackage{hyperref}     \usepackage{tikz}     \usepackage[labelsep=period]{caption}     \usepackage{parallel,enumitem}     \usepackage{tabularx}     \DeclareCaptionLabelSeparator{par}{\par}     \captionsetup{labelsep=par,justification=centering}     \graphicspath{{images/}}               \newcommand\tablecaption[1]{     \captionsetup{labelsep=par,justification=centering}     \caption{#1}     }          \renewcommand{\baselinestretch}{1.5}\normalsize     \makeatletter     \renewcommand{\@biblabel}[1]{#1.}     \makeatother               \usepackage{geometry}     \geometry{left=3cm}     \geometry{right=1cm}     \geometry{top=2cm}     \geometry{bottom=2cm}          \renewcommand{\theenumi}{\arabic{enumi}}     \renewcommand{\labelenumi}{\arabic{enumi}}     \renewcommand{\theenumii}{.\arabic{enumii}}     \renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}.}     \renewcommand{\theenumiii}{.\arabic{enumiii}}     \renewcommand{\labelenumiii}{\arabic{enumi}.\arabic{enumii}.\arabic{enumiii}.}     \renewcommand{\rmdefault}{ftm}      Why is there a very big indent? ![enter image description here](http://i.stack.imgur.com/cnKJY.png) As for the indent, I want to fix this problem: ![enter image description here](http://i.stack.imgur.com/n00km.png)


title: LaTeX produces bad, widowed line

text: I just found a widowed line in my PDF document, created by LaTeX. It looks something like this, see "sion" on the second page:               | blah blah expres- |     |        8          |     ---------------------     ---------------------     |sion.              |     |                   |     |                   |     |2.2.1   Title A    |     |2.2.1.1 Title B    |     | Foo foo foo foo   |     |foo foo foo foo foo|     |foo foo foo foo foo|     |foo foo foo foo foo|     |foo foo foo foo foo|     |         9         |     ---------------------      Shouldn't LaTeX have avoided this? What could be the reason for this typography error?


title: Create own central templates

text: I worked with LaTeX for a short while and now I'd like to create my own templates for e.g. handouts. Here is a example for the beginning of my handout template:               \documentclass[12pt,german,a4paper]{article}          \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel}     \usepackage{url}     \usepackage{fancyhdr}          \pagestyle{fancy}     \fancyhf{}     \renewcommand{\headrulewidth}{0pt}          \setlength\parindent{0pt}      All of this templates should be in one folder somewhere on my file system e.g. `~/templates`. If I start a specific file I'd like to import one of these files with `\input{}`. I got the advice to use texmf-local for this because the LaTeX commands doesn't understand environment variables (I use Ubuntu Linux). Unfortunately I don't have any experience with that. So how can I create a central folder for all my templates and input these files with e.g. `\input{handout}`? It would be cool if I only have to change one variable after moving the template folder to another place.


title: How to install and use the key fonts for a TI-Calculator in pdflatex or xelatex

text: This answer http://tex.stackexchange.com/a/37550/4011 suggested that it should be possible to install a font which enables one to typeset the keys of a TI- calculator. Now my question is, how to install and use it exactly on a texlive linux system with pdflatex or xelatex. For example I want this: http://education.ti.com/educationportal/sites/US/productDetail/us_key_font_83p_84p.html The first problem is that there are only `exe` and `hqx` files for download. **Edit** I followed ArTourters suggestion, extracted the fonts to `/home/myuser/Downloads/TiKeys/` And tried to compile the following with `xelatex`               \documentclass{article}     \usepackage{fontspec}          \fontspec [ Path = /home/myuser/Downloads/TiKeys/]     {TI83____.TTF}               \begin{document}     Test.     \end{document}      Then I get: > >     ! Font \zf@basefont=TI83____.TTF at 10.0pt not loadable: Metric (TFM) > file or i >     nstalled font not found. >     \zf@fontspec ...ntname \zf@suffix " at \f@size pt >                                                       \unless \ifzf@icu > \zf@set@... >     l.12 {TI83____.TTF} >   And lot's of other messages. It produces a pdf which uses standard font. I don't want to use this font for the whole document, I just want to typeset the TI-Calculator keys. So how to do so?


title: Changing numbering of chapters, sections and subsections in table of contents

text: I need to build a table of contents in latex, where the chapters are as roman numerals, sections are arabic numbers, and the subsections are letters. I also need it to only go up to the subsection level. It should look like this:               I. CHAPTER     II. CHAPTER        1. Section        2. Section           (a) Subsection           (b) Subsection      I use the following command to generate the table of contents but It does it with another format.               \tableofcontents      How do I achieve this with latex? Ted.


title: Using Latexmk with mpost

text: Is it possible to tell `latexmk` to execute `mpost paper.mp` after each compilation run if `paper.mp` has changed? I tried to create a custom `latexmkrc` rule:               add_cus_dep('mp', '1', 0, 'mpost');     sub mpost {      system "mpost $name" ;      popd();      return 0;     }      But this does not seem to work


title: Change font size in envlab?

text: I am using the `envlab` environment to create and print address labels. Unfortunately, I have some long names that I am addressing letters to, and not all of them will fit on the label. I'd like to decrease the font size in order to compensate. Does anyone know how to do this? The standard tricks I know (putting `\tiny` in the beginning of the document, adding `8pt` to the options of `\documentclass{letter}`) don't seem to work.


title: pgfplots: two y-axis with three plots and one legend

text: After googling about my problem, I came up with this two year old question here on TeX.SX.   I adopted the example from there having two plots in the first axis- environment and one plot in the second axis-environment as given below:               \documentclass{article}              % UNITS     \usepackage{siunitx}     \sisetup{per=slash, load=abbr}              % GRAPHICS     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{width=7cm,compat=1.3}          \begin{document}          \begin{tikzpicture}     \pgfplotsset{         scale only axis,         scaled x ticks=base 10:3,         xmin=0, xmax=0.06     }          \begin{axis}[       axis y line*=left,       ymin=0, ymax=80,       xlabel=x-axis,       ylabel=y-axis 1,     ]     \addplot[smooth,mark=x,red]        coordinates{         (0,68.6)         (0.0148,72)          (0.0295,68.6)         (0.0441,53.4)         (0.059,22.8)      }; \label{plot_one}     %\addlegendimage{/pgfplots/refstyle=Hplot}\addlegendentry{plot 1}     \addplot[smooth,mark=o,green]        coordinates{         (0,60)         (0.0148,65)          (0.0295,73)         (0.0441,49)         (0.059,19)      }; \label{plot_two}     %\addlegendentry{plot 2}     \end{axis}          \begin{axis}[       axis y line*=right,       axis x line=none,       ymin=0, ymax=100,       ylabel=y-axis 2     ]     \addlegendimage{/pgfplots/refstyle=plot_one}\addlegendentry{plot 1}     \addplot[smooth,mark=*,blue]        coordinates{         (0,0)         (0.0148,48)          (0.0295,66)         (0.0441,66)         (0.059,45.0)      }; \addlegendentry{plot 3}     \end{axis}          \end{tikzpicture}     \end{document}      There is a comment about my problem beneath the answer of the old question linked to above, but I do not get this hint working. So, how can I get one legend containing all three "descriptions" of the three plots?


title: arara: making a rule to compile the main file from a chapter file

text: I am really enjoying the `arara` tool for automating the compilations of my documents- thanks Paulo and the team `:)` I work on a few projects that have a main file (say `myfile.tex`) that `\include`s its 'chapter' files. A typical example is **`myfile.tex`**               % arara: pdflatex     \documentclass{article}          \begin{document}          \include{lions}          \end{document}      I can run `arara` on this file just fine, and pass options to it (such as `-v` for `verbose` mode). I would like to be able to run `arara` on my 'chapter' file **`lions.tex`**               % arara: mainfile: {name: myfile}     hello world      My first attempt at a 'rule' for `arara` is as follows **`mainfile.yaml`**               !config     # compile mainfile rule for arara     # author: Chris Hughes     # requires arara 3.0+     identifier: mainfile     name: The main file is ...     command: arara @{name}     arguments:     - identifier: name       flag: <arara> @{parameters.name}      Although this does work, it isn't really perfect because even if I run               arara -v lions.tex      the `-v` (and any other options) are ignored because I haven't passed the options through to the command. So, how can I make an `arara` rule to compile the main file from within a chapter file? If there's a better way of doing this in `arara` I'd like to see that too :)


title: Have tableofcontents as PDF bookmark, but not lstlistoflistings

text: I want to have the "Contents" section appear as a PDF bookmark. I have found this question, and the following generally works:               \makeatletter     \usepackage{etoolbox}     \pretocmd{\tableofcontents}{%       \if@openright\cleardoublepage\else\clearpage\fi       \pdfbookmark[0]{\contentsname}{toc}%     }{}{}%     \makeatother      **But** now I have a new problem. It also adds a bookmark for "List of Listings". I have the following sequence:               \tableofcontents     \listoffigures     \listoftables     \lstlistoflistings      I want _only_ the first item (`\tableofcontents`) to appear as PDF bookmark. Interestingly, the list-of-figures and list-of-tables do not get bookmarks, which is great. But unfortunately the list-of-listings seems implemented differently and does appear. How can I make the list-of-listings go away again from my PDF bookmarks? * * * I already have this customisation, perhaps it can be further adjusted?               \renewcommand\lstlistlistingname{List of Listings}      Or I could "undo" the `\pretocmd` before `\lstlistoflistings`?


title: How to use PSTricks in pdfLaTeX?

text: I thought that PSTricks package was not possible to use in pdfLaTeX but the user Dima claims otherwise. How can I force pdfLaTeX to use PSTricks then?


title: figures as .pdf in latex poster gives error in compilation

text: I want to use figures as .pdf in a poster format in latex. Here is what my .tex file looks like:               \documentclass{article}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{pstricks}     \usepackage{pst-node}     \usepackage{pst-grad}     \usepackage{calc}     \usepackage{pgf}     \usepackage{ifthen}     \usepackage{graphicx}     \usepackage{type1cm} % for arbitrary scaling      \usepackage{tikz}     \usepackage{rotating}     \usepackage{multirow}     \usetikzlibrary{arrows}     \usepackage[bf]{caption}     \newlength{\posterwidth}     \newlength{\posterheight}     \newlength{\bodywidth}     \newlength{\bodyheight}          \newlength{\boxleftcolA}     \newlength{\boxrightcolA}     \newlength{\boxleftcolB}     \newlength{\boxrightcolB}     \newlength{\boxwidth}     \newlength{\boxtop}     \newlength{\boxmarginleft}     \newlength{\txtmrgtop}     \newlength{\txttop}     \newlength{\headingleft}     \newlength{\headboxheight}     \newlength{\headingtop}     \newlength{\headingmrgtop}     \newlength{\headboxbtm}          \setlength{\posterheight}{125cm}     \setlength{\posterwidth}{90cm}     \setlength{\bodywidth}{86cm}     \setlength{\bodyheight}{121cm}          \setlength{\boxwidth}{40cm}     \setlength{\boxleftcolA}{2cm}     \setlength{\boxrightcolA}{\boxleftcolA+\boxwidth+0.75cm}     \setlength{\boxleftcolB}{44cm}     \setlength{\boxrightcolB}{\boxleftcolB+\boxwidth+0.75cm}          \setlength{\boxmarginleft}{1cm}     \setlength{\headboxheight}{2.5cm}     \setlength{\headingmrgtop}{0.75cm}     \setlength{\txtmrgtop}{3.5cm}               \usepackage[pdftex]{geometry}     \geometry{paperwidth=\posterwidth,paperheight=\posterheight}          \ifthenelse{\bodyheight<\bodywidth}{%     \geometry{landscape,text={\bodywidth,\bodyheight},centering}}{%     \geometry{text={\bodywidth,\bodyheight},centering}}          \newenvironment{poster}     {\centering\begin{pspicture}(0,0)(\bodywidth,\bodyheight)         \psframe[linestyle=none,fillstyle=none](0,0)(\bodywidth,\bodyheight)}     % \psframe[linestyle=solid,fillstyle=none](0,0)(\bodywidth,\bodyheight)}       {\end{pspicture}}     \newrgbcolor{clrA}{0.0 0.0 0.0}     \newrgbcolor{clrB}{0.04 0.2 0.6} % [12.,66.,155.]     \newrgbcolor{clrC}{0.7 0.8 0.88} % [182.,199.,225.]          \newpsobject{showgrid}{psgrid}{subgriddiv=10,griddots=500,subgriddots=20,gridlabels=50pt,unit=10cm}          \psset{unit=10cm}     \psset{cornersize=absolute}     \psset{linearc=0cm}     \psset{framesep=0.4cm}     \psset{linewidth=15pt}          \def\figpath{figs}          %% fonts     \renewcommand{\familydefault}{cmss}     \newcommand{\titlefont}{\fontsize{2.0cm}{2.0cm}\selectfont\bfseries}     \newcommand{\labelfont}{\fontsize{1.2cm}{1.0cm}\selectfont\bfseries}     \newcommand{\authorfont}{\fontsize{1.5cm}{1.5cm}\selectfont\bfseries}     \newcommand{\addressfont}{\fontsize{10mm}{10mm}\selectfont\bfseries}     \newcommand{\bodyfont}{\fontsize{11mm}{12mm}\selectfont}     \newcommand{\smallfont}{\fontsize{7mm}{8mm}\selectfont}     \newcommand{\refsfont}{\fontsize{6mm}{6.5mm}\selectfont}     \newcommand{\sectionfont}{\fontsize{1.5cm}{1.5cm}\selectfont\bfseries}     \newcommand{\subsectionfont}{\fontsize{1.2cm}{1.2cm}\selectfont\bfseries}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               \begin{document}     \pagestyle{empty}     \begin{poster}     \bodyfont     %% OUTER FRAME     \psframe[linecolor=clrB,fillstyle=solid,fillcolor=white]     (0,0)(\bodywidth,10.3)     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      %% TITLE     \psframe[linecolor=clrB,fillstyle=solid,fillcolor=white]     (0,10.5)(\bodywidth,\bodyheight)     \setlength{\boxtop}{101cm}     \setlength{\headboxbtm}{\boxtop-\headboxheight}     \psframe[linecolor=clrC,fillstyle=solid,fillcolor=clrC]     (\boxleftcolA,\headboxbtm)(\boxrightcolA,\boxtop)          \setlength{\headingleft}{\boxleftcolA+\boxmarginleft}     \setlength{\headingtop}{\boxtop-\headingmrgtop}          \rput[tl](\headingleft,\headingtop){     \parbox[t]{\boxwidth}     {     \sectionfont{Specific connectivity of the striatal circuit}     }}     \setlength{\txttop}{\boxtop-\txtmrgtop}     \rput[tl](\boxleftcolA,\txttop){     \parbox[t]{\boxwidth}     {     \bodyfont     \begin{minipage}[h]{19cm}     %\bodyfont     \vspace*{0.1cm}     \centering     \includegraphics[trim = 0mm 0mm 0mm 0.7mm,clip,scale=1.0]{ford1d2.pdf}     \end{minipage}     \begin{minipage}[h]{20.89cm}     %\centering     %\hspace*{1cm}     %\vspace*{0.5cm}     %\noindent     %\smallfont     \begin{flushleft}     {     \begin{itemize}     \item FSI preferentially innervate D1 as compared to D2. \cite{Gittis}     \item D2 make stronger inhibitory connections as compared to D1. \cite{Taverna}     \item D2 preferentially innervate D1 as compared to vice versa. \cite{Taverna}     \end{itemize}}     \end{flushleft}     \end{minipage}          } % of parbox     } % of rput          \end{poster}     \end{document}      This gives a compilation error saying: _geometry detected driver: pdftex_ ! Undefined control sequence. \c@lor@to@ps l.98 \begin{poster}


title: Cannot load the "pstricks" option in mdframed package

text: I tried to frame texts in double lines following directions in the mdframed package manual. However, I cannot even load the mdframed package with the "pstricks" option. Following are my codes:               \documentclass{article}     \usepackage{amssymb}     \usepackage[framemethod=pstricks]{mdframed}     \begin{document}       \begin{mdframed}     test     \end{mdframed}     \newpage     \end{document}      And this is the error message I am getting:               .......     ("C:\Program Files\MiKTeX 2.9\tex\latex\mdframed\md-frame-2.mdf"))     (C:\Users\Jerry\Desktop\test.aux)     ("C:\Program Files\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"     [Loading MPS to PDF converter (version 2006.09.02).]     )     ! Undefined control sequence.     <recently read> \c@lor@to@ps           l.7 \end{mdframed}**      Thank you very much for your kind assistance... ?


title: Alternative to pst-gr3d

text: I am unable to get pst-gr3d to work with pdftex. Is there an alternative that will allow me to easily define a cube structure? I've looked at TikZ alternatives but they require me to define each sub cube in the structure, which is very time consuming.


title: A graphics problem where LaTeX->PS->PDF and LaTeX->PDF both fail

text: I have a Latex-file with some `\psplots` and `\includegraphics` commands. When I compile with LaTeX->PS->PDF the \psplots are okay but I get the error message               cannot determine the size of graphic in fig5.jpg       And fig5 is much to big. And also some characters f.E `\ding{46}` are printed not correctly. When I compile directly Latex->PDF I only get the right size of Fig5.jpg but no drawings from the plots. The `\ding{46}` is correct. I use the latest versions of `MikTeX`, `TexnicCenter` and `GhostScript` (I updated the today) What is wrong? MWE:               \documentclass[a4paper,11pt]{article}      \usepackage{graphicx}      \usepackage{pstricks}      \usepackage{pst-plot}      \usepackage{pifont}      \usepackage{marvosym}      \begin{document}      \begin{pspicture}(0,0)(6,6)      \psset{xunit=30pt, yunit=3pt}      \psgrid[Ox=0, Oy=0, xunit=1, yunit=10,subgriddiv=1,griddots=10,gridlabelcolor=white](0,0)(0,0)(6,6)      \psaxes[Dx=1,Dy=10,linewidth=1pt,ticksize=4pt](0,0)(0,0)(6,60) \psplot[plotpoints=200, algebraic=true, linewidth=2pt]{0}{3}{3*x^2+4}      \end{pspicture}      \\      \\      \ding{46}      \\      \includegraphics[width={\textwidth}]{fig5.jpg}      \end{document}


title: Problems using pst-node/Undefined Control Sequence-- PStricks

text: The code is:               \documentclass{article}     \usepackage{pstricks}     \usepackage{pst-plot}     \usepackage{pst-node}     \usepackage{pst-circ}     \usepackage{pst-text}     \usepackage{pst-tree}     \usepackage{pst-coil}          \pagestyle{empty}          \begin{document}         \begin{pspicture}[showgrid](0,0)(4,4)             \rput(3,3){\circlenode{P1}{$P_t$}}             \rput(1,1){\circlenode}{a1}{$a_1$}}             \rput(5,1){\circlenode}{a2}{$a_2$}}             \ncline{->}{P1}{a1}             \ncline{->}{a1}{a2}             \ncline{->}{a2}{P1}         \end{pspicture}     \end{document}      I've tried this code in Linux and windows, with LyX and Texmaker and I always obtain the same problem:               ! Undefined control sequence.     <recently read> \c@lor@to@ps     l.13 \begin{pspicture}[showgrid](0,0)(4,4)     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     \XC@usec@lor ...string \color@ #1#2\endcsname \@@     \fi \space     l.13 \begin{pspicture}[showgrid](0,0)(4,4)     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     <recently read> \c@lor@to@ps     l.13 \begin{pspicture}[showgrid](0,0)(4,4)     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     \XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@     \else \expandafter \expand...     l.13 \begin{pspicture}[showgrid](0,0)(4,4)     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     <recently read> \c@lor@to@ps     l.13 \begin{pspicture}[showgrid](0,0)(4,4)     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     \XC@usec@lor ...string \color@ #1#2\endcsname \@@     \fi \space     l.13 \begin{pspicture}[showgrid](0,0)(4,4)     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     LaTeX Font Info: External font `cmex10' loaded for size     (Font) <7> on input line 14.     LaTeX Font Info: External font `cmex10' loaded for size     (Font) <5> on input line 14.     ! Undefined control sequence.     <recently read> \c@lor@to@ps     l.14 \rput(3,3){\circlenode{P1}{$P_t$}}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     \XC@usec@lor ...string \color@ #1#2\endcsname \@@     \fi \space     l.14 \rput(3,3){\circlenode{P1}{$P_t$}}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     <recently read> \c@lor@to@ps     l.14 \rput(3,3){\circlenode{P1}{$P_t$}}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     \XC@usec@lor ...string \color@ #1#2\endcsname \@@     \fi \space     l.14 \rput(3,3){\circlenode{P1}{$P_t$}}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Argument of \circlenode@i has an extra }.     <inserted text>     \par     l.15 \rput(1,1){\circlenode}     {a1}{$a_1$}}     I've run across a `}' that doesn't seem to match anything.     For example, `\def\a#1{...}' and `\a}' would produce     this error. If you simply proceed now, the `\par' that     I've just inserted will cause me to report a runaway     argument that might be the root of the problem. But if     your `}' was spurious, just type `2' and it will go away.     Runaway argument?     ! Paragraph ended before \circlenode@i was complete.     <to be read again>     \par     l.15 \rput(1,1){\circlenode}     {a1}{$a_1$}}     I suspect you've forgotten a `}', causing me to apply this     control sequence to too much text. How can we recover?     My plan is to forget the whole thing and hope for the best.     ! Extra }, or forgotten \endgroup.     l.15 \rput(1,1){\circlenode}{a1}{$a_1$}}     I've deleted a group-closing symbol because it seems to be     spurious, as in `$x}$'. But perhaps the } is legitimate and     you forgot something else, as in `\hbox{$x}'. In such cases     the way to recover is to insert both the forgotten and the     deleted material, e.g., by typing `I$}'.     ! Argument of \circlenode@i has an extra }.     <inserted text>     \par     l.16 \rput(5,1){\circlenode}     {a2}{$a_2$}}     I've run across a `}' that doesn't seem to match anything.     For example, `\def\a#1{...}' and `\a}' would produce     this error. If you simply proceed now, the `\par' that     I've just inserted will cause me to report a runaway     argument that might be the root of the problem. But if     your `}' was spurious, just type `2' and it will go away.     Runaway argument?     ! Paragraph ended before \circlenode@i was complete.     <to be read again>     \par     l.16 \rput(5,1){\circlenode}     {a2}{$a_2$}}     I suspect you've forgotten a `}', causing me to apply this     control sequence to too much text. How can we recover?     My plan is to forget the whole thing and hope for the best.     ! Extra }, or forgotten \endgroup.     l.16 \rput(5,1){\circlenode}{a2}{$a_2$}}     I've deleted a group-closing symbol because it seems to be     spurious, as in `$x}$'. But perhaps the } is legitimate and     you forgot something else, as in `\hbox{$x}'. In such cases     the way to recover is to insert both the forgotten and the     deleted material, e.g., by typing `I$}'.     ! Undefined control sequence.     <recently read> \c@lor@to@ps     l.17 \ncline{->}{P1}{a1}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     \XC@usec@lor ...string \color@ #1#2\endcsname \@@     \fi \space     l.17 \ncline{->}{P1}{a1}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     <recently read> \c@lor@to@ps     l.17 \ncline{->}{P1}{a1}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     \XC@usec@lor ...string \color@ #1#2\endcsname \@@     \fi \space     l.17 \ncline{->}{P1}{a1}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     <recently read> \c@lor@to@ps     l.18 \ncline{->}{a1}{a2}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     \XC@usec@lor ...string \color@ #1#2\endcsname \@@     \fi \space     l.18 \ncline{->}{a1}{a2}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     <recently read> \c@lor@to@ps     l.18 \ncline{->}{a1}{a2}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     \XC@usec@lor ...string \color@ #1#2\endcsname \@@     \fi \space     l.18 \ncline{->}{a1}{a2}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     <recently read> \c@lor@to@ps     l.19 \ncline{->}{a2}{P1}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     \XC@usec@lor ...string \color@ #1#2\endcsname \@@     \fi \space     l.19 \ncline{->}{a2}{P1}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     <recently read> \c@lor@to@ps     l.19 \ncline{->}{a2}{P1}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     ! Undefined control sequence.     \XC@usec@lor ...string \color@ #1#2\endcsname \@@     \fi \space     l.19 \ncline{->}{a2}{P1}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     [1     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!     Non-PDF special ignored!] (G:\PRACTICAS-LATEX\PracticaFlujo.aux) )     Here is how much of TeX's memory you used:     7307 strings out of 493921     124000 string characters out of 3147282     259467 words of memory out of 3000000     10560 multiletter control sequences out of 15000+200000     3640 words of font info for 14 fonts, out of 3000000 for 9000     841 hyphenation exceptions out of 8191     37i,5n,57p,570b,202s stack positions out of 5000i,500n,10000p,200000b,50000s     <C:/Program F     iles/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmmi10.pfb><C:/Program Files/MiK     TeX 2.9/fonts/type1/public/amsfonts/cm/cmmi7.pfb><C:/Program Files/MiKTeX 2.9/f     onts/type1/public/amsfonts/cm/cmr10.pfb><C:/Program Files/MiKTeX 2.9/fonts/type     1/public/amsfonts/cm/cmr7.pfb>     Output written on PracticaFlujo.pdf (1 page, 33495 bytes).     PDF statistics:     22 PDF objects out of 1000 (max. 8388607)     0 named destinations out of 1000 (max. 500000)     1 words of extra memory for PDF output out of 10000 (max. 10000000)      Thanks


title: DVIView and PDFView

text: I have a problem, that when I use DVIview I get the correct picture but no result with PDFView. Maybe I don't use a necessary package or the problem in the pdf program in my computer! here is an example               \documentclass{article}     \usepackage{pstricks}     \begin{document}          \scalebox{1} {%     \begin{pspicture}(0,-2.15)(4.94,2.15)     \psline[linewidth=0.04](1.92,1.63)(3.06,0.15)(4.88,1.31)(0.38,-0.73)(0.86,2.01)(4.92,1.33)(4.86,1.33)     \end{pspicture}}          %\end{center}<-- disabled by mozartstrasse!     \end{document}      I'm using (winshell) I need your help :)


title: PSTricks picture not compiling with pdfLaTeX

text: > **Possible Duplicate:**   >  How to use PSTricks in pdfLaTeX? What is wrong with this code:               \documentclass{article}     \usepackage{pstricks}          \begin{document}         \begin{pspicture}(-0.5,0)(2.5,1)         \psdots(0,0)(2,0)(1,1)     \end{pspicture}     \end{document}      I am trying to compile it with `pdflatex`, and getting following error:                    ! Undefined control sequence.     <recently read> \c@lor@to@ps           l.6     \psdots(                  0,0)(2,0)(1,1)     ?


I get a bad result when creating my first simple image with PSTricks. I get: > 0 Errors, 2 Warnings but... bad results. What am I doing wrong? My files can be downloaded at https://dl.dropboxusercontent.com/u/56475675/intento_simple.zip I understand many PSTricks lines, but... I'm doing something wrong in the `.tex` file Must I compile with LaTeX? or ... Can I compile with pdfLaTeX?


title: Vertical table lines are discontinuous with booktabs

text: I created a table in LaTeX, but there are some problems with the borders. The borders remain open whereas I want them closed. Also, in the last row, I want the vertical line gone, ie I want just one column in the last row. Can someone please fix it? Here are my code and my table:               \documentclass{article}     \usepackage{booktabs}           \begin{document}           \begin{table} [h!]     \begin{center}     \begin{tabular}{|l|c|c|c|c|}     \hline     Parameters  & \multicolumn{2}{c}{Model 1} & \multicolumn{2}{c}{Model 2}\\          \midrule          &  Coefficient & 95\% CI     &   Coefficient & 95\% CI \\          \midrule             $\beta_{concern_2}$  &   $0.190^{\ast}$ & (0.113, 0.268) & 0.171 & (0.100, 0.241)\\        $\beta_{concern_3}$   &  0.117 &  (0.043, 0.191)  & 0.117 & (0.050, 0.183)\\          $\beta_{concern_4}$ & 0.210  &  (0.139, 0.281)  & 0.190 & (0.127, 0.253)\\           $\beta_{concern_5}$ & 0.204 & (0.135, 0.273)   & 0.111 & ( 0.049, 0.173)\\           $\beta_{breath_2}$  &  0.157 & (0.07,8 0.236) & 0.208 & (0.136, 0.280) \\          $\beta_{breath_3}$ & 0.115 & (0.041, 0.189) & 0.100 & (0.034, 0.166) \\         $\beta_{breath_4}$ & 0.236 &  (0.160, 0.311) & 0.301 & ( 0.234, 0.368)\\           $\beta_{breath_5}$ & 0.092 & (0.020, 0.163) & 0.079 & (0.015, 0.144) \\        $\beta_{weath_2}$  &   0.164 & ( 0.092, 0.236) & 0.137 & (0.071, 0.203) \\         $\beta_{weath_3}$  & 0.160 &  (0.089, 0.231) & 0.199 & (0.135, 0.263) \\        $\beta_{weath_4}$ &  0.141 & (0.067, 0.215) & 0.133 & (0.066, 0.199) \\         $\beta_{weath_5}$ & 0.176 & (0.103, 0.249) &  0.257 & (0.191, 0.323)\\          $\beta_{sleep_2}$  & 0.111 & (0.036, 0.187) & 0.135 & (0.068 0.203)  \\          $\beta_{sleep_3}$  & 0.110 & (0.036 0.184) & 0.176 &  0.110 0.242 \\            $\beta_{sleep_4}$  &  0.131 & (0.056 0.205 & 0.162 & 0.095 0.229 \\           $\beta_{sleep_5}$  & 0.011 & (-0.064, 0.086) & 0.034 & (-0.033, 0.101) \\          $\beta_{act_2}$ &  0.135 & (0.060, 0.209) & 0.033 & (-0.033, 0.100) \\         $\beta_{act_3}  $ &0.195 & (0.121, 0.269) & 0.203 & ( 0.137, 0.268)\\           $\beta_{act_4}  $ & 0.214 & ( 0.139, 0.290) & 0.254 & (0.186 0.321) \\          $\beta_{act_5}  $ & 0.224 & (0.154, 0.294) & 0.158 & (0.095, 0.221) \\          \hline         & *statistically significant at 5\% level \\     \hline     \end{tabular}     \caption{Regression Coefficients of model 1 and model 2 }     \label{beta}     \end{center}     \end{table}           \end{document}      ![](http://i.stack.imgur.com/tSiMD.png)


title: Does tikz work in wrapfigure environment?

text: I tried to use tikz in `wrapfigure` and received the errors below:   ![enter image description here](http://i.stack.imgur.com/bt6I5.png) ![enter image description here](http://i.stack.imgur.com/RTXDx.png)


title: problem with loading tikz

text: My coauthor sent me a latex file calling for tikz. I find that LaTeX chokes on loading tikz. I am using a freshly installed texlive2012 installation (but I checked same thing happens on TeX Live 2011 an 2010). Test file:               \documentclass[11pt,reqno]{amsart}     \usepackage{tikz}     \begin{document}     blah     \end{document}      Errors:               (/usr/local/texlive/2012/texmf-dist/tex/latex/amscls/amsart.cls     Document Class: amsart 2009/07/02 v2.20.1     (/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsmath.sty     For additional information on amsmath, use the `?' option.     (/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amstext.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsgen.sty))     (/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsbsy.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsopn.sty))     (/usr/local/texlive/2012/texmf-dist/tex/latex/amsfonts/umsa.fd)     (/usr/local/texlive/2012/texmf-dist/tex/latex/amsfonts/amsfonts.sty))     (/usr/local/texlive/2012/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty     (/Users/fgoodman/Library/texmf/tex/latex/pgf/pgf.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/graphicx.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/graphics.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/trig.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/graphics.cfg)     (/usr/local/texlive/2012/texmf-dist/tex/latex/pdftex-def/pdftex.def     (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))     (/usr/local/texlive/2012/texmf-dist/tex/latex/xcolor/xcolor.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/color.cfg)))     (/usr/local/texlive/2012/texmf-dist/tex/latex/pgf/utilities/pgffor.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty     (/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te     x)     (/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def     (/usr/local/texlive/2012/texmf-dist/tex/latex/ms/everyshi.sty))     (/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex))      (/usr/local/texlive/2012/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty     (/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex     (/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c     ode.tex)))     (/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex))          (/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.cod     e.tex     (/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothan     dlers.code.tex     /usr/local/texlive/2012/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothand     lers.code.tex:104: Undefined control sequence.     \pgfsetplottension ...ttension {\pgf@sys@tonumber                                                        \pgf@x }     l.104 \pgfsetplottension{0.5}          ?      Process aborted


title: Why does \uchyph=0 not work for me?

text: Why does `\uchyph=0` not work for me? It is in my preamble, but Istill get names of people hyphenated. Is it a font issue? I typeset with XeLaTeX. * * * Minimal example: try with XeLaTeX with and without `fontspec`:               \documentclass{article}     \usepackage{fontspec}          \begin{document}     \noindent     Some Textual Material.     Some Textual Material.     Some Textual Material.     Some Textual Material.     Some Textual Material.     Some Textual Material.     Some Textual Material.          \uchyph=0 %     \noindent     Some Textual Material.     Some Textual Material.     Some Textual Material.     Some Textual Material.     Some Textual Material.     Some Textual Material.     Some Textual Material.     \end{document}