title: Color gradient filling along a path

text: I want to make the gradient color to follow the pipe curve below rather than to span from the left to the right. The following MWE shows the default behavior which is not what I'm looking for.               \documentclass[pstricks,border=12pt]{standalone}          \usepackage{pst-slpe}           \begin{document}          \begin{pspicture}(8,-7)     \pscustom[fillstyle=slope]{       \psline(6,0)       \psarcn(6,-2){2}{90}{-90}       \psline(2,-4)       \psarc(2,-5){1}{90}{-90}       \psline(8,-6)       \psline(8,-7)(2,-7)       \psarcn(2,-5){2}{-90}{90}       \psline(6,-3)       \psarc(6,-2){1}{-90}{90}       \psline(0,-1)       \closepath}     \end{pspicture}          \end{document}      ![output1](http://i.stack.imgur.com/WMzAC.png) Could you help me to accomplish my objective? **Update** Using Pierre's solution, here is what I ended up with:               \documentclass{article}            \usepackage{pst-plot}          \makeatletter      \pst@addfams{pst-HSB}      \define@key[psset]{pst-HSB}{HueBegin}{%        \def\PstParametricplotHSB@HueBegin{#1}}      \define@key[psset]{pst-HSB}{HueEnd}{%        \def\PstParametricplotHSB@HueEnd{#1}}      \define@boolkey[psset]{pst-HSB}[Pst@]{HSB}[true]{}      % Default values      \psset[pst-HSB]{HueBegin = 0, HueEnd = 1, HSB = true}      \psset{dimen = outer}           \def\parametricplotHSB{\pst@object{parametricplotHSB}}      \def\parametricplotHSB@i#1#2#3{{%       \begin@ClosedObj       \addto@pscode{%         /t #1 def         /dt #2 t sub \psk@plotpoints\space div def         /t t dt sub def         /Counter 0 def         1 setlinejoin         \psk@plotpoints {           /t t dt add def           /Counter Counter 1 add def           #3           \pst@number\psyunit mul exch           \pst@number\psxunit mul exch           1 Counter eq { moveto currentpoint /OldY ED /OldX ED }             {\ifPst@HSB               /PointY exch def               /PointX exch def               Counter \psk@plotpoints\space div               \PstParametricplotHSB@HueEnd\space               \PstParametricplotHSB@HueBegin\space sub mul               \PstParametricplotHSB@HueBegin\space add               1 1 sethsbcolor               OldX OldY PointX PointY lineto lineto                stroke               PointX PointY moveto           /OldX PointX def /OldY PointY def             \else lineto \fi } ifelse          } repeat }%        \end@ClosedObj}       \ignorespaces}     \makeatother          \begin{document}          \begin{pspicture}(-0.5,-0.5)(4.5,4.5)      \psset{        linewidth = 1cm,        plotpoints = 300      }       \parametricplotHSB[         HueBegin = 0.70,         HueEnd   = 0.66       ]{3.05}{0}{t 4}       \parametricplotHSB[         HueBegin = 0.70,         HueEnd   = 0.78       ]{0}{180}{t sin 3 add t cos 3 add}       \parametricplotHSB[         HueBegin = 0.78,         HueEnd   = 0.86       ]{3.05}{0.95}{t 2}       \parametricplotHSB[         HueBegin = 0.86,         HueEnd   = 0.92       ]{0}{-180}{t sin 1 add t cos 1 add}       \parametricplotHSB[         HueBegin = 0.92,         HueEnd   = 1       ]{0.95}{4}{t 0}     \end{pspicture}          \end{document}      ![output2](http://i.stack.imgur.com/3q9sr.jpg)


title: microtype + siunitx and \micro - mysterious warnings

text: This code               \documentclass{scrreprt}          \usepackage{lmodern}     \usepackage[T1]{fontenc}     \usepackage{microtype}     \usepackage{siunitx}          \begin{document}          \SI{10}{\micro\metre}          \end{document}      produces these warnings:               Package microtype Warning: Unknown slot number of character     (microtype)                `\textminus '     (microtype)                in font encoding `TS1' in protrusion list     (microtype)                `textcomp'.          Package microtype Warning: Unknown slot number of character     (microtype)                `\texttrademark '     (microtype)                in font encoding `TS1' in protrusion list     (microtype)                `textcomp'.          Package microtype Warning: Unknown slot number of character     (microtype)                `\textcopyright '     (microtype)                in font encoding `TS1' in protrusion list     (microtype)                `textcomp'.          Package microtype Warning: Unknown slot number of character     (microtype)                `\textregistered '     (microtype)                in font encoding `TS1' in protrusion list     (microtype)                `textcomp'.          Package microtype Warning: Unknown slot number of character     (microtype)                `\textdegree '     (microtype)                in font encoding `TS1' in protrusion list     (microtype)                `textcomp'.      Additional information:   * This seems only to happen when using `siunitx`'s "\micro" (like µm or µs)   * The errors also come up without `fontenc` and `lmodern` packages (but in the real world document where the warnings come up I use them, so I included them in the minimum example)   * loading the `textcomp` package make the warnings disappear Questions:   * What exactly do these warnings mean?   * What exactly produces them?   * Should I just load the `textcomp` package? But it's from 1995 and I think it's obsolete. And I don't need it (appart from making the warnings disappear)   * What is the best solution here?


title: TeXShop: disabling auto bracketing?

text: Whenever I used an underscore it automatically adds those curly brackets to it. Now sometimes thats nice, but sometimes you really dont need this. Is there a way to disable that feature? I roamed through the options several times now but can't find the one regarding my problem.


title: Testing for a blank line ("paragraph") immediately after \begin{document}

text: (With this question, I hope to resolve an edge case relevant for my quoting package.) Suppose I define a customized environment for displayed text. It resembles the standard LaTeX environment `quote` (i.e., it is based on the `list` environment), but as a twist, the first line of the environment should be indented if (and only if) the environment is preceded by a blank line. At the moment, I accomplish this by testing for vertical mode (and setting `\itemindent` accordingly). However, this test fails for environments positioned immediately after `\begin{document}`. Whether I write               \begin{document}          \begin{myquote}% First line of following text should be indented      or               \begin{document}     %     \begin{myquote}% First line of following text shouldn't be indented      the first line of the `myquote` environment is always indented. (Seee full MWE below.) How should my test for a blank line ("paragraph") be amended/modified in order to also work immediately after `\begin{document}`?               \documentclass{article}          \makeatletter     \newenvironment{myquote}{%       \list{}{%         \setlength{\rightmargin}{\leftmargin}%         \setlength{\itemindent}{%           \ifvmode             \parindent           \else             \z@           \fi         }%       }%       \item\relax     }{%       \endlist     }     \makeatother          \newcommand{\sometext}{Hello, here is some text without a meaning. This         text should show, how a printed text will look like at this place.}          \begin{document}     %     \begin{myquote}     \emph{This line shouldn't be indented, but it is.} \sometext     \end{myquote}          Nomal running text. \sometext     %     \begin{myquote}     This line shouldn't be indented, and it isn't. \sometext     \end{myquote}          Normal running text. \sometext          \begin{myquote}     This line should be indented, and it is. \sometext     \end{myquote}          Normal running text. \sometext          \end{document}


title: Using ] and [ as math symbols, not delimiters

text: I'm writing some topology up, and I prefer to use the notation `]a,b[` to denote an open interval as opposed to `(a,b)`, since the `(` and `)` symbols tend to be over used in this subject. Is there a preferred practice for writing `[` and `]` as mathematical symbols as opposed to delimiters? While in my editor, I notice they are highlighted in red as unpaired delimiters. I also figure if ever want to go through and automatically change my notation of open interval, I would not want to change _all_ `[` and `]` to `)` and `(`, which would greatly mess things up.


title: Ubuntu Tex Live installation error

text: Due to the old version of Tex Live available in Ubuntu 11.04, I tried to install Tex-Live 2011 using the instructions given on the TUG website. However, when I run the install-tl script I get the following message.                   Installing TeX Live 2011 from: http://archive.cs.uu.nl/mirror/CTAN/systems/texlive/tlnet....                <D> directories:                TEXDIR (the main TeX directory):                  !! default location: /usr/local/texlive/2011                  !! is not writable, please select a different one!      Can anybody help me how to fix this ? When I try to run the script it just shuts down.


title: What is the right number of #’s for nested sequence mappings?

text: Im trying to nest two sequence mappings, which works so far but I want to use them inside a command definition so the `<items>` should be accessible as `##1` and `###1` but this won’t work. Is it possible to use nested mappings at this level?               \documentclass{article}          \usepackage{xparse}          \ExplSyntaxOn     \makeatletter          % some variants     \cs_generate_variant:Nn \seq_set_split:Nnn { Nnf , NnV , Nnx }          % sequence to store the higlight key value pair     \seq_new:N \l_@@_highlight_seq     % sequence to store the numbers inside the key     \seq_new:N \l_@@_highlight_pos_seq               \cs_new_protected:Npn \@@_evaluate_higlights:n #1      {       % map the whole argument as clist       \clist_map_inline:nn { #1 }        {         % split a clist item at the equal sign         \seq_set_split:Nnn \l_@@_highlight_seq { = } { ##1 }         % split the first part of the higlight sequence at plus signs         \seq_set_split:Nnf \l_@@_highlight_pos_seq { + }          {           \seq_item:Nn \l_@@_highlight_seq { 1 }          }         \par\bigskip         % map the key numbers to their values         \seq_map_inline:Nn \l_@@_highlight_pos_seq          {           % for this example just some text output           number~###1           {}~has~value~           \seq_item:Nn \l_@@_highlight_seq { 2 }\par          }        }      }          \NewDocumentCommand { \highlights } { m }      {       \@@_evaluate_higlights:n { #1 }      }          \ExplSyntaxOff          \begin{document}     \textbf{Highlights}     \highlights{1=a, 2+3=b}          \bigskip     \textbf{Desired output}     \par\bigskip     number 1 has value a\par          \par\bigskip     number 2 has value b\par     number 3 has value b\par     \end{document}      ![highlights](http://i.stack.imgur.com/k7UEX.png)


title: Numbering depth in appendix

text: I have a long (mathematical) document with parts, sections, subsections and paragraphs. The theorems etc. in the parts are numbered               Theorem 1.2.3      where the first number corresponds to the `section`, the second number to the `subsection` and the third to the number of the theorem, example, etc. In the appendix (and only in the appendix), I will only use sections, no subsections. By default, a lemma in the appendix is numbered as               Lemma A.0.1      for the first lemma in the first appendix. I would like to suppress the `subsection` number (only in the appendix), so that the first lemma in the first appendix is numbered as               Lemma A.1      I have tried to add `\setcounter{secnumdepth}{1}` after the `\appendix` command, but nothing changed.


title: Cleveref mislabels figures when using \ContinuedFloat

text: When using subfloats over multiple pages I have used `\ContinuedFloat` to carry on the figure environment which also preserves the numbering. However, when I try to reference the whole figure, `cleveref` does not get the label correct. There are numerous answers available for misnumbering but not mislabeling. Have I put the `\label` in the wrong place? MWE as follows with all the packages I'm using:               \documentclass[12pt,demo]{elsarticle}          \usepackage{enumerate}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{mathtools}     \usepackage{tabu}     \usepackage{multirow}     \usepackage{textcomp}     \usepackage[utf8]{inputenc}     \usepackage[capitalise]{cleveref}     \usepackage{booktabs}     \usepackage{comment}     \usepackage[section]{placeins}     \usepackage{float}     \usepackage{subfig}     \usepackage{caption}               \begin{document}          \section{Section Title}     \Cref{fig:First} and \cref{fig:Second} can be seen in \cref{fig:Both}.               \begin{figure}     \centering     \subfloat[Caption for the first image]{     \includegraphics[width=.4\columnwidth]{Img1}%     \label{fig:First}%     }     \phantomcaption     \end{figure}          \begin{figure}     \ContinuedFloat     \centering     \subfloat[Caption for the second image]{     \includegraphics[width=.4\columnwidth]{Img2}%     \label{fig:Second}%     }     \caption{Main Caption}%     \label{fig:Both}%     \end{figure}               \end{document}


title: How to center \rhead

text: I currently have my header as follows               \pagestyle{fancy}     \setlength{\headheight}{39pt}     \renewcommand{\headrulewidth}{0pt}     \lhead{\includegraphics[width=.1\textwidth]{Logo}}     % Frist page only header     \fancypagestyle{first}{%      \fancyhf{} % clear all header and footer fields      \lhead{\includegraphics[width=.1\textwidth]{Logo}}     \rhead{\tiny Some College\\Some place\\Some department\\Some date\\}     }        But the problem is that I want the right side of the header to be centred like: ![What I want](http://i.stack.imgur.com/3Q729.png) But I get ![What I get](http://i.stack.imgur.com/o7xLj.png)


title: Latex centering figures and tables when alone on a page

text: I have 4 tables that need to follow each other (they are in the appendix). Two fit on a single page together but there is plenty of space left (thought not enough for another table). I would like to vertically center these two tables so that they don't look weird. How can I do that? Here is my code (I want the tables to vertically centered):               \documentclass[11pt,a4paper]{article}          \usepackage{float} % For H          \begin{document}          \begin{table}[H]     \centering         \begin{tabular}{|c|c|}         \hline         8  &  4  \\ \hline  4  &  8  \\ \hline         4  &  8  \\ \hline  8  &  4  \\ \hline         8  &  8  \\ \hline  8  &  4  \\ \hline         4  &  8  \\ \hline  4  &  8  \\ \hline         8  &  4  \\ \hline  8  &  8  \\ \hline         8  &  4  \\ \hline  4  &  8  \\ \hline         4  &  8  \\ \hline  8  &  4  \\ \hline         \end{tabular}         \caption{Order = 1}     \end{table}          \begin{table}[H]     \centering         \begin{tabular}{|c|c|}         \hline         8  &  4  \\ \hline  4  &  8  \\ \hline         4  &  8  \\ \hline  8  &  4  \\ \hline         8  &  8  \\ \hline  8  &  4  \\ \hline         4  &  8  \\ \hline  4  &  8  \\ \hline         8  &  4  \\ \hline  8  &  8  \\ \hline         8  &  4  \\ \hline  4  &  8  \\ \hline         4  &  8  \\ \hline  8  &  4  \\ \hline         \end{tabular}         \caption{Order = 2}     \end{table}          \begin{table}[H]     \centering         \begin{tabular}{|c|c|}         \hline         8  &  4  \\ \hline  4  &  8  \\ \hline         4  &  8  \\ \hline  8  &  4  \\ \hline         8  &  8  \\ \hline  8  &  4  \\ \hline         4  &  8  \\ \hline  4  &  8  \\ \hline         8  &  4  \\ \hline  8  &  8  \\ \hline         8  &  4  \\ \hline  4  &  8  \\ \hline         4  &  8  \\ \hline  8  &  4  \\ \hline         \end{tabular}         \caption{Order = 3}     \end{table}          \begin{table}[H]     \centering         \begin{tabular}{|c|c|}         \hline         8  &  4  \\ \hline  4  &  8  \\ \hline         4  &  8  \\ \hline  8  &  4  \\ \hline         8  &  8  \\ \hline  8  &  4  \\ \hline         4  &  8  \\ \hline  4  &  8  \\ \hline         8  &  4  \\ \hline  8  &  8  \\ \hline         8  &  4  \\ \hline  4  &  8  \\ \hline         4  &  8  \\ \hline  8  &  4  \\ \hline         \end{tabular}         \caption{Order = 4}     \end{table}          \end{document}


title: Float positioning [ht] not working for algorithm

text: I am using the package algorithm2e. I have a document with several algorithms. I use the float position option [ht], but all my algorithms are positioned at the end of the chapter; none at the position or on the next page. I tried the package float as suggested in this post Floating an algorithm?. But the algorithms looked very different and wrong after that. Does anyone have an idea how I position my algorithms at 'here' or the top of the next page?


title: How to force a float page for a wide figure in two-column mode without an underfull page?

text: I've been searching around for awhile and I can't find precisely the answer. I'm preparing an article, where the journal mandates two columns. The article has many code listings (using the listings package), which should be wide, i.e., `\figure*`. These appear at the tops of pages (as expected, looks fine to me). One code figure, roughly 40% of the way through the text, occupies a full page. LaTeX pushes it to the end of the text, forcing all subsequent figures to the end as well. I would like to have a float page immediately after the page that `\ref- erences` this figure, and then resume the text after this float page. How? I tried:   * `placeins`, with a `FloatBarrier` -- the result was really awful -- the page before the float pages is very seriously underfull.   * The `[H]` placement option from the `float` package. The float disappeared (not rendered at all, although it did increase the figure counter).   * I also looked at documentation for `afterpage`, but it says it won't work in two-column mode.   * I've also tried adjusting the float percentages, but it doesn't help. The figure in question really needs a page to itself. I just don't want it to be deferred until the end of the text. Unfortunately my search results turn up a lot of generic advice about floats, but I haven't found anything specific to my situation. So how to do it?


title: Line breaks of math expressions in subfloat environment

text: I would like to show a figure in which there are a graph representation above its edge and node lists in LaTeX. I have written something like this:               \begin{figure}[!ht]          \subfloat[First figure]{     \centering     \begin{tikzpicture}[>=stealth', shorten >=1pt, auto, node distance=3cm,                     thick, main node/.style={circle,draw,font=\sffamily\Large\bfseries}]          \node[main node] (v1) at (-2,2) {2};     \node[main node] (v2) at (2,2) {3};     \node[main node] (v3) at (4,0) {6};     \node[main node] (v4) at (2,-2) {4};     \node[main node] (v5) at (-2,-2) {5};     \node[main node] (v6) at (-4,0) {1};     \draw  (v1) edge (v2);     \draw  (v2) edge (v3);     \draw  (v3) edge (v4);     \draw  (v4) edge (v5);     \draw  (v5) edge (v6);     \draw  (v6) edge (v1);     \draw  (v5) edge (v1);     \draw  (v5) edge (v2);     \draw  (v4) edge (v2);     \end{tikzpicture}     }          \subfloat[Second figure]{     $V(G) = \{1, 2, 3, 4, 5, 6\}$     $E(G) = \{(1, 2), (2, 1), (1, 5), (5, 1), (2, 5), (5, 2), (2, 3), (3, 2), (5, 3), (3, 5), (5, 4), (4, 5), (3, 4), (4, 3), (3, 6), (6, 3), (4, 6), 6, 5)\}$     }     \caption[Graph representation]{Graph representation.}     \label{fig:graphexample}          \end{figure}      ![Output](http://imageshack.com/a/img196/7216/y3ms.png) My problem is that I would like the math expression for E(G) in the second subfig environment to span along multiple lines if it's too long. If possible, I would like the caption "Second figure" to be centered on the page, too. How could I solve my problem? Thank you.


title: Hyphenation in bibliography with Biblatex

text: The hyphenation in my bibliography is off somehow, I can't figure out why. Look:               \documentclass{scrreprt}       \usepackage[style=alphabetic,hyperref=true]{biblatex}      \bibliography{\jobname.bib}      \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @book{Fowler:2006,         Address = {Boston},         Author = {Fowler, Martin},         Publisher = {Addison-Wesley},         Title = {Patterns of Enterprise Application Architecture},         Year = {2006}}          @book{Rotem-Gal-Oz:2012,         Address = {Shelter Island, NY},         Author = {{Rotem-Gal-Oz}, Arnon},         Publisher = {Manning Publications Co.},         Title = {SOA Patterns},         Year = {2012}}     \end{filecontents}          \begin{document}     \nocite{Fowler:2006} \nocite{Rotem-Gal-Oz:2012}     \printbibliography     \end{document}      Now, when you compile that you can see that the "Addison-" of "Addison-Wesley" is too long. (I put in another Bib-Entry for your reference). ![Addison is to long.](http://i.imgur.com/CRSEgXS.jpg) I could fix this with `Add\\-ison` but that's just weird. Also, I have more than one occurrence in my file and I dislike having to check for this error again and again. So, what do I do now?


title: subequations and array in braces

text: I need something like this:               \left\{     first line  (1a)     second line (1b)     third line  (1c)     \right.      all lines should be aligned to left


title: \expandafter, \expandbefor : what else?

text: I have a macro that prints exactly what I want, but I can't use it nested in another one. As far as I understand it is because the fist one is not completely executed and commands from first macro mixt together with those from the second one. How to proceed ? ![enter image description here](http://i.stack.imgur.com/TdzMi.png)               \documentclass{article}     \usepackage{tikz,pgfplots}     \usetikzlibrary{calc}     \pgfplotsset{compat=1.9}          \makeatletter     \def\L@ste#1#2{         \count255 = 1         \loop            \def\n{\the\count255}%         #1%         \advance\count255 by 1         \ifnum\count255>#2         \else         ,%         \repeat         }     \def\Liste#1#2{\L@ste{#1}{#2}}     \makeatother          \begin{document}          \verb+\Liste{\n-\n/(6-\n)*x}{5}+          Prints exactly what I need :          \Liste{\n-\n/(6-\n)*x}{5}          \bigskip              But I can't use it directly :          \verb+max(\Liste{\n-\n/(6-\n)*x}{5})+          produces errors ...          \bigskip              \begin{tikzpicture}          \begin{axis}[xmin=0,xmax=5,ymax=7]       \addplot[color=black,smooth,samples=400]        {     % can't use it here, Why ?         %max(\Liste{\n-\n/(6-\n)*x}{5})     max(1-1/(6-1)*x,2-2/(6-2)*x,3-3/(6-3)*x,4-4/(6-4)*x,5-5/(6-5)*x)       };     \end{axis}     \end{tikzpicture}     \end{document}


title: Faint text after new theorem

text: This code using `\newtheorem` produces faint text afterwards. What's the remedy?               \documentclass[xcolor=dvipsnames]{beamer}     \usetheme[height=9mm]{Rochester}     \setbeamertemplate{items}[ball]     \setbeamertemplate{blocks}[rounded][shadow=true]     \setbeamertemplate{navigation symbols}{ }     \setbeamertemplate{theorems}[numbered]     \usepackage{pgfpages}     \pgfpagesuselayout{resize to}[letterpaper,border shrink=-4mm,landscape]          \begin{document}          \newtheorem*{hyp*}{Empirical Hypothesis}          \begin{frame}          \begin{hyp*}          This is my empirical hypothesis          \end{hyp*}          Additional text.          \end{frame}          \end{document}      Here is the log file produced by this code, minus the file list at the end, dropped to meet the character limit:               This is pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3) (format=latex 2014.4.14)  19 JUN 2014 10:57      Source specials enabled.      %&-line parsing enabled.     **&latex test.tex     (./test.tex     LaTeX2e <2005/12/01>     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamer.cls     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasercs.sty     Package: beamerbasercs 2004/10/07 (rcs-revision 1.3)     )     Document Class: beamer 2005/10/23 cvs version 3.06 A class for typesetting pres     entations (rcs-revision 1.67)     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasemodes.sty     Package: beamerbasemodes 2004/12/09 (rcs-revision 1.21)     \beamer@tempbox=\box26     \beamer@tempcount=\count79     \c@beamerpauses=\count80          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasedecode.sty     Package: beamerbasedecode 2005/05/09 (rcs-revision 1.18)     \beamer@slideinframe=\count81     \beamer@minimum=\count82     )     \beamer@commentbox=\box27     \beamer@modecount=\count83     )     \headheight=\dimen102     \headdp=\dimen103     \footheight=\dimen104     \sidebarheight=\dimen105     \beamer@tempdim=\dimen106     \beamer@finalheight=\dimen107     \beamer@animht=\dimen108     \beamer@animdp=\dimen109     \beamer@animwd=\dimen110     \beamer@leftmargin=\dimen111     \beamer@rightmargin=\dimen112     \beamer@leftsidebar=\dimen113     \beamer@rightsidebar=\dimen114     \beamer@boxsize=\dimen115     \beamer@vboxoffset=\dimen116     \beamer@descdefault=\dimen117     \beamer@descriptionwidth=\dimen118     \beamer@lastskip=\skip41     \beamer@areabox=\box28     \beamer@animcurrent=\box29     \beamer@animshowbox=\box30     \beamer@sectionbox=\box31     \beamer@logobox=\box32     \beamer@linebox=\box33     \beamer@sectioncount=\count84     \beamer@subsubsectionmax=\count85     \beamer@subsectionmax=\count86     \beamer@sectionmax=\count87     \beamer@totalheads=\count88     \beamer@headcounter=\count89     \beamer@partstartpage=\count90     \beamer@sectionstartpage=\count91     \beamer@subsectionstartpage=\count92     \beamer@animationtempa=\count93     \beamer@animationtempb=\count94     \beamer@xpos=\count95     \beamer@ypos=\count96     \beamer@showpartnumber=\count97     \beamer@currentsubsection=\count98     \beamer@coveringdepth=\count99     \beamer@sectionadjust=\count100     \beamer@tocsectionnumber=\count101          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbaseoptions.sty     Package: beamerbaseoptions 2004/11/15 (rcs-revision 1.7)          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/graphics/keyval.sty     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks14     ))     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/graphics/graphicx.sty     Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/graphics/graphics.sty     Package: graphics 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/graphics/trig.sty     Package: trig 1999/03/16 v1.09 sin cos tan (DPC)     )     (c:/PCTeX/PCTeXv6/texmf-pti/tex/latex/graphics.cfg)     Package graphics Info: Driver file: dvips.def on input line 90.          (c:/PCTeX/PCTeXv6/texmf-pti/tex/latex/graphics/dvips.def     File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)     ))     \Gin@req@height=\dimen119     \Gin@req@width=\dimen120     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex)     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def)     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex     Package: pgfrcs 2006/10/26 v1.10 (rcs-revision 1.14)     ))     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex     Package: pgfsys 2006/10/16 v1.10 (rcs-revision 1.19)     \pgf@x=\dimen121     \pgf@y=\dimen122     \pgf@xa=\dimen123     \pgf@ya=\dimen124     \pgf@xb=\dimen125     \pgf@yb=\dimen126     \pgf@xc=\dimen127     \pgf@yc=\dimen128          (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg     File: pgf.cfg 2006/10/11  (rcs-revision 1.2)     )     Package pgfsys Info: Driver file for pgf: pgfsys-dvips.def on input line 845.          (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-dvips.def     File: pgfsys-dvips.def 2006/10/26  (rcs-revision 1.15)          (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscri     pt.def     File: pgfsys-common-postscript.def 2006/10/16  (rcs-revision 1.15)     \pgf@objectcount=\count102     )))     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.te     x     File: pgfsyssoftpath.code.tex 2006/10/16  (rcs-revision 1.4)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.te     x     File: pgfsysprotocol.code.tex 2006/10/16  (rcs-revision 1.4)     )) (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/xcolor/xcolor.sty     Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)          (c:/PCTeX/PCTeXv6/texmf-pti/tex/latex/color.cfg)     Package xcolor Info: Driver file: dvips.def on input line 225.     Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.     Package xcolor Info: Model `RGB' extended on input line 1353.     Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.     Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.     Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.     Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.     Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.     Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/graphics/dvipsnam.def     File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)     ))     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex     Package: pgfcore 2006/10/11 v1.10 (rcs-revision 1.4)          (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcoremath.code.tex     File: pgfcoremath.code.tex 2006/10/15  (rcs-revision 1.3)     \c@pgf@counta=\count103     \c@pgf@countb=\count104     \c@pgf@countc=\count105     \c@pgf@countd=\count106     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex     File: pgfcorepoints.code.tex 2006/10/16  (rcs-revision 1.7)     \pgf@picminx=\dimen129     \pgf@picmaxx=\dimen130     \pgf@picminy=\dimen131     \pgf@picmaxy=\dimen132     \pgf@pathminx=\dimen133     \pgf@pathmaxx=\dimen134     \pgf@pathminy=\dimen135     \pgf@pathmaxy=\dimen136     \pgf@tempdim=\dimen137     \c@pgf@tempcount=\count107     \pgf@xx=\dimen138     \pgf@xy=\dimen139     \pgf@yx=\dimen140     \pgf@yy=\dimen141     \pgf@zx=\dimen142     \pgf@zy=\dimen143     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.co     de.tex     File: pgfcorepathconstruct.code.tex 2006/10/16  (rcs-revision 1.6)     \pgf@path@lastx=\dimen144     \pgf@path@lasty=\dimen145     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.t     ex     File: pgfcorepathusage.code.tex 2006/10/16  (rcs-revision 1.7)     \pgf@shorten@end@additional=\dimen146     \pgf@shorten@start@additional=\dimen147     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex     File: pgfcorescopes.code.tex 2006/10/23  (rcs-revision 1.20)     \pgfpic=\box34     \pgf@hbox=\box35     \pgf@layerbox@main=\box36     \pgf@picture@serial@count=\count108     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.cod     e.tex     File: pgfcoregraphicstate.code.tex 2006/10/16  (rcs-revision 1.6)     \pgflinewidth=\dimen148     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.     code.tex     File: pgfcoretransformations.code.tex 2006/10/11  (rcs-revision 1.4)     \pgf@pt@x=\dimen149     \pgf@pt@y=\dimen150     \pgf@pt@temp=\dimen151     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex     File: pgfcorequick.code.tex 2006/10/11  (rcs-revision 1.2)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex     File: pgfcoreobjects.code.tex 2006/10/11  (rcs-revision 1.2)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.c     ode.tex     File: pgfcorepathprocessing.code.tex 2006/10/16  (rcs-revision 1.5)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex     File: pgfcorearrows.code.tex 2006/10/16  (rcs-revision 1.6)     ) (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex     File: pgfcoreshade.code.tex 2006/10/16  (rcs-revision 1.7)     \pgf@max=\dimen152     \pgf@sys@shading@range@num=\count109     ))) (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/pgf/basiclayer/pgfbaseimage.sty     (c:/PCTeX/PCTeXv6/texmf-dist/tex/generic/pgf/basiclayer/pgfbaseimage.code.tex     Package: pgfbaseimage 2006/10/16 v1.10 (rcs-revision 1.5)     )) (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/pgf/utilities/xxcolor.sty     Package: xxcolor 2003/10/24 ver 0.1     \XC@nummixins=\count110     \XC@countmixins=\count111     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/amsfonts/amssymb.sty     Package: amssymb 2002/01/22 v2.2d          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/amsfonts/amsfonts.sty     Package: amsfonts 2001/10/25 v2.2f     \@emptytoks=\toks15     \symAMSa=\mathgroup4     \symAMSb=\mathgroup5     LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'     (Font)                  U/euf/m/n --> U/euf/b/n on input line 132.     ))     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/geometry/geometry.sty     Package: geometry 2002/07/08 v3.2 Page Geometry     \Gm@cnth=\count112     \Gm@cntv=\count113     \c@Gm@tempcnt=\count114     \Gm@bindingoffset=\dimen153     \Gm@wd@mp=\dimen154     \Gm@odd@mp=\dimen155     \Gm@even@mp=\dimen156     \Gm@dimlist=\toks16     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/hyperref/hyperref.sty     Package: hyperref 2007/02/07 v6.75r Hypertext links for LaTeX     \@linkdim=\dimen157     \Hy@linkcounter=\count115     \Hy@pagecounter=\count116          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/hyperref/pd1enc.def     File: pd1enc.def 2007/02/07 v6.75r Hyperref: PDFDocEncoding definition (HO)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/oberdiek/kvoptions.sty     Package: kvoptions 2006/08/22 v2.4 Connects package keyval with LaTeX options (     HO)     )     Package hyperref Info: Option `bookmarks' set `true' on input line 2238.     Package hyperref Info: Option `bookmarksopen' set `true' on input line 2238.     Package hyperref Info: Option `implicit' set `false' on input line 2238.     Package hyperref Info: Hyper figures OFF on input line 2288.     Package hyperref Info: Link nesting OFF on input line 2293.     Package hyperref Info: Hyper index ON on input line 2296.     Package hyperref Info: Plain pages OFF on input line 2303.     Package hyperref Info: Backreferencing OFF on input line 2308.          Implicit mode OFF; no redefinition of LaTeX internals     Package hyperref Info: Bookmarks ON on input line 2444.     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/ltxmisc/url.sty     \Urlmuskip=\muskip10     Package: url 2005/06/27  ver 3.2  Verb mode for urls, etc.     )     LaTeX Info: Redefining \url on input line 2599.     \Fld@menulength=\count117     \Field@Width=\dimen158     \Fld@charsize=\dimen159     \Choice@toks=\toks17     \Field@toks=\toks18     Package hyperref Info: Hyper figures OFF on input line 3102.     Package hyperref Info: Link nesting OFF on input line 3107.     Package hyperref Info: Hyper index ON on input line 3110.     Package hyperref Info: backreferencing OFF on input line 3117.     Package hyperref Info: Link coloring OFF on input line 3122.               Package hyperref Warning: Option `pdfpagelabels' is turned off     (hyperref)                because \thepage is undefined.          Hyperref stopped early     )     *hyperref using default driver hypertex*     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/hyperref/hypertex.def     File: hypertex.def 2007/02/07 v6.75r Hyperref driver for HyperTeX specials     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/base/size11.clo     File: size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty     Package: beamerbasecompatibility 2005/01/25  (rcs-revision 1.60)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasefont.sty     Package: beamerbasefont 2005/05/17  (rcs-revision 1.15)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasemisc.sty     Package: beamerbasemisc 2005/05/17  (rcs-revision 1.23)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasetwoscreens.sty     Package: beamerbasetwoscreens 2005/10/14  (rcs-revision 1.6)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbaseoverlay.sty     Package: beamerbaseoverlay 2005/05/18  (rcs-revision 1.49)     \beamer@argscount=\count118     \beamer@lastskipcover=\skip42     \beamer@trivlistdepth=\count119     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasetitle.sty     Package: beamerbasetitle 2005/10/23  (rcs-revision 1.23)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasesection.sty     Package: beamerbasesection 2005/04/20  (rcs-revision 1.18)     \c@lecture=\count120     \c@part=\count121     \c@section=\count122     \c@subsection=\count123     \c@subsubsection=\count124     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbaseframe.sty     Package: beamerbaseframe 2005/06/02  (rcs-revision 1.58)     \beamer@framebox=\box37     \beamer@frametitlebox=\box38     \beamer@zoombox=\box39     \beamer@zoomcount=\count125     \beamer@zoomframecount=\count126     \beamer@frametextheight=\dimen160     \c@subsectionslide=\count127     \beamer@frametopskip=\skip43     \beamer@framebottomskip=\skip44     \beamer@frametopskipautobreak=\skip45     \beamer@framebottomskipautobreak=\skip46     \beamer@envbody=\toks19     \c@framenumber=\count128     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbaseverbatim.sty     Package: beamerbaseverbatim 2005/04/12  (rcs-revision 1.6)     \beamer@verbatimfileout=\write3     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbaseframesize.sty     Package: beamerbaseframesize 2005/06/09  (rcs-revision 1.17)     \beamer@splitbox=\box40     \beamer@autobreakcount=\count129     \beamer@autobreaklastheight=\dimen161     \beamer@frametitletoks=\toks20     \beamer@framesubtitletoks=\toks21     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbaseframecomponents.sty     Package: beamerbaseframecomponents 2004/11/08  (rcs-revision 1.40)     \beamer@footins=\box41     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasecolor.sty     Package: beamerbasecolor 2005/01/25  (rcs-revision 1.41)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasenotes.sty     Package: beamerbasenotes 2005/10/14  (rcs-revision 1.22)     \beamer@frameboxcopy=\box42     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasetoc.sty     Package: beamerbasetoc 2004/12/09  (rcs-revision 1.20)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasetemplates.sty     Package: beamerbasetemplates 2004/10/07  (rcs-revision 1.50)     \beamer@sbttoks=\toks22          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbaseauxtemplates.sty     Package: beamerbaseauxtemplates 2005/06/09  (rcs-revision 1.27)          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbaseboxes.sty     Package: beamerbaseboxes 2005/06/09  (rcs-revision 1.28)     \bmb@box=\box43     \bmb@colorbox=\box44     \bmb@boxshadow=\box45     \bmb@boxshadowball=\box46     \bmb@boxshadowballlarge=\box47     \bmb@temp=\dimen162     \bmb@dima=\dimen163     \bmb@dimb=\dimen164     \bmb@prevheight=\dimen165     )     \beamer@blockheadheight=\dimen166     ))     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbaselocalstructure.sty     Package: beamerbaselocalstructure 2005/04/20  (rcs-revision 1.51)          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/tools/enumerate.sty     Package: enumerate 1999/03/05 v3.00 enumerate extensions (DPC)     \@enLab=\toks23     )     \c@figure=\count130     \c@table=\count131     \abovecaptionskip=\skip47     \belowcaptionskip=\skip48     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasenavigation.sty     Package: beamerbasenavigation 2005/06/01  (rcs-revision 1.34)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasetheorems.sty     Package: beamerbasetheorems 2005/04/04  (rcs-revision 1.7)          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/amsmath/amsmath.sty     Package: amsmath 2000/07/18 v2.13 AMS math features     \@mathmargin=\skip49          For additional information on amsmath, use the `?' option.     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/amsmath/amstext.sty     Package: amstext 2000/06/29 v2.01          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/amsmath/amsgen.sty     File: amsgen.sty 1999/11/30 v2.0     \@emptytoks=\toks24     \ex@=\dimen167     ))     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/amsmath/amsbsy.sty     Package: amsbsy 1999/11/29 v1.2d     \pmbraise@=\dimen168     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/amsmath/amsopn.sty     Package: amsopn 1999/12/14 v2.01 operator names     )     \inf@bad=\count132     LaTeX Info: Redefining \frac on input line 211.     \uproot@=\count133     \leftroot@=\count134     LaTeX Info: Redefining \overline on input line 307.     \classnum@=\count135     \DOTSCASE@=\count136     LaTeX Info: Redefining \ldots on input line 379.     LaTeX Info: Redefining \dots on input line 382.     LaTeX Info: Redefining \cdots on input line 467.     \Mathstrutbox@=\box48     \strutbox@=\box49     \big@size=\dimen169     LaTeX Font Info:    Redeclaring font encoding OML on input line 567.     LaTeX Font Info:    Redeclaring font encoding OMS on input line 568.     \macc@depth=\count137     \c@MaxMatrixCols=\count138     \dotsspace@=\muskip11     \c@parentequation=\count139     \dspbrk@lvl=\count140     \tag@help=\toks25     \row@=\count141     \column@=\count142     \maxfields@=\count143     \andhelp@=\toks26     \eqnshift@=\dimen170     \alignsep@=\dimen171     \tagshift@=\dimen172     \tagwidth@=\dimen173     \totwidth@=\dimen174     \lineht@=\dimen175     \@envbody=\toks27     \multlinegap=\skip50     \multlinetaggap=\skip51     \mathdisplay@stack=\toks28     LaTeX Info: Redefining \[ on input line 2666.     LaTeX Info: Redefining \] on input line 2667.     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/amscls/amsthm.sty     Package: amsthm 2004/08/06 v2.20     \thm@style=\toks29     \thm@bodyfont=\toks30     \thm@headfont=\toks31     \thm@notefont=\toks32     \thm@headpunct=\toks33     \thm@preskip=\skip52     \thm@postskip=\skip53     \thm@headsep=\skip54     \dth@everypar=\toks34     )     \c@theorem=\count144     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/beamerbasethemes.sty     Package: beamerbasethemes 2004/10/07  (rcs-revision 1.9)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/themes/theme/beamerthemedefault.s     ty     Package: beamerthemedefault 2004/10/07  (rcs-revision 1.6)          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/themes/font/beamerfontthemedefaul     t.sty     Package: beamerfontthemedefault 2005/03/15  (rcs-revision 1.12)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/themes/color/beamercolorthemedefa     ult.sty     Package: beamercolorthemedefault 2005/03/15  (rcs-revision 1.27)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/themes/inner/beamerinnerthemedefa     ult.sty     Package: beamerinnerthemedefault 2005/06/17  (rcs-revision 1.19)     \beamer@dima=\dimen176     \beamer@dimb=\dimen177     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/themes/outer/beamerouterthemedefa     ult.sty     Package: beamerouterthemedefault 2005/06/09  (rcs-revision 1.13)     )))     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/themes/theme/beamerthemeRochester     .sty     Package: beamerthemeRochester 2004/10/07  (rcs-revision 1.7)          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/themes/outer/beamerouterthemeside     bar.sty     Package: beamerouterthemesidebar 2004/12/09  (rcs-revision 1.8)     \beamer@sidebarwidth=\dimen178     \beamer@headheight=\dimen179     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/themes/inner/beamerinnerthemerect     angles.sty     Package: beamerinnerthemerectangles 2004/10/07  (rcs-revision 1.3)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/themes/color/beamercolorthemewhal     e.sty     Package: beamercolorthemewhale 2004/10/07  (rcs-revision 1.3)     )     (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/beamer/themes/color/beamercolorthemeorch     id.sty     Package: beamercolorthemeorchid 2004/10/07  (rcs-revision 1.2)     )) (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/pgf/utilities/pgfpages.sty     Package: pgfpages 2004/11/05 ver 0.01          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/tools/calc.sty     Package: calc 2005/08/06 v4.2 Infix arithmetic (KKT,FJ)     \calc@Acount=\count145     \calc@Bcount=\count146     \calc@Adimen=\dimen180     \calc@Bdimen=\dimen181     \calc@Askip=\skip55     \calc@Bskip=\skip56     LaTeX Info: Redefining \setlength on input line 75.     LaTeX Info: Redefining \addtolength on input line 76.     \calc@Ccount=\count147     \calc@Cskip=\skip57     )     \pgf@logicalpages=\count148     \pgf@firstshipout=\count149     \pgf@lastshipout=\count150     \pgf@currentshipout=\count151     \pgf@cpn=\count152     \pgf@shipoutnextto=\count153     \pgfphysicalheight=\dimen182     \pgfphysicalwidth=\dimen183     \pgfpages@shipoutbox=\box50     )     \pgfpages@box@1=\box51      (./test.aux)     \openout1 = `test.aux'.          LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 11.     LaTeX Font Info:    ... okay on input line 11.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 11.     LaTeX Font Info:    ... okay on input line 11.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 11.     LaTeX Font Info:    ... okay on input line 11.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 11.     LaTeX Font Info:    ... okay on input line 11.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 11.     LaTeX Font Info:    ... okay on input line 11.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 11.     LaTeX Font Info:    ... okay on input line 11.     LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 11.     LaTeX Font Info:    ... okay on input line 11.     -------------------- Geometry parameters     paper: user defined     landscape: --     twocolumn: --     twoside: --     asymmetric: --     h-parts: 28.45274pt, 307.28987pt, 28.45274pt     v-parts: 0.0pt, 273.14662pt, 0.0pt     hmarginratio: --     vmarginratio: --     lines: --     heightrounded: --     bindingoffset: 0.0pt     truedimen: --     includehead: true     includefoot: true     includemp: --     driver:      -------------------- Page layout dimensions and switches     \paperwidth  364.19536pt     \paperheight 273.14662pt     \textwidth  307.28987pt     \textheight 244.6939pt     \oddsidemargin  -43.81725pt     \evensidemargin -43.81725pt     \topmargin  -72.26999pt     \headheight 14.22636pt     \headsep    0.0pt     \footskip   14.22636pt     \marginparwidth 4.0pt     \marginparsep   10.0pt     \columnsep  10.0pt     \skip\footins  10.0pt plus 4.0pt minus 2.0pt     \hoffset 0.0pt     \voffset 0.0pt     \mag 1000          (1in=72.27pt, 1cm=28.45pt)     -----------------------     Package hyperref Info: Link coloring OFF on input line 11.          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/hyperref/nameref.sty     Package: nameref 2006/12/27 v2.28 Cross-referencing by name of section          (c:/PCTeX/PCTeXv6/texmf-dist/tex/latex/oberdiek/refcount.sty     Package: refcount 2006/02/20 v3.0 Data extraction from references (HO)     )     \c@section@level=\count154     )     LaTeX Info: Redefining \ref on input line 11.     LaTeX Info: Redefining \pageref on input line 11.     LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'     (Font)                  OT1/cmr/m/n --> OT1/cmss/m/n on input line 11.     LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'     (Font)                  OT1/cmr/bx/n --> OT1/cmss/bx/n on input line 11.     \symnumbers=\mathgroup6     \sympureletters=\mathgroup7     LaTeX Font Info:    Overwriting math alphabet `\mathrm' in version `normal'     (Font)                  OT1/cmss/m/n --> OT1/cmr/m/n on input line 11.     LaTeX Font Info:    Redeclaring math alphabet \mathbf on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'     (Font)                  OT1/cmr/bx/n --> OT1/cmss/bx/n on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `bold'     (Font)                  OT1/cmr/bx/n --> OT1/cmss/bx/n on input line 11.     LaTeX Font Info:    Redeclaring math alphabet \mathsf on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `normal'     (Font)                  OT1/cmss/m/n --> OT1/cmss/m/n on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'     (Font)                  OT1/cmss/bx/n --> OT1/cmss/m/n on input line 11.     LaTeX Font Info:    Redeclaring math alphabet \mathit on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'     (Font)                  OT1/cmr/m/it --> OT1/cmss/m/it on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'     (Font)                  OT1/cmr/bx/it --> OT1/cmss/m/it on input line 11.     LaTeX Font Info:    Redeclaring math alphabet \mathtt on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `normal'     (Font)                  OT1/cmtt/m/n --> OT1/cmtt/m/n on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'     (Font)                  OT1/cmtt/m/n --> OT1/cmtt/m/n on input line 11.     LaTeX Font Info:    Overwriting symbol font `numbers' in version `bold'     (Font)                  OT1/cmss/m/n --> OT1/cmss/bx/n on input line 11.     LaTeX Font Info:    Overwriting symbol font `pureletters' in version `bold'     (Font)                  OT1/cmss/m/it --> OT1/cmss/bx/it on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathrm' in version `bold'     (Font)                  OT1/cmss/bx/n --> OT1/cmr/bx/n on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `bold'     (Font)                  OT1/cmss/bx/n --> OT1/cmss/bx/n on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'     (Font)                  OT1/cmss/m/n --> OT1/cmss/bx/n on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'     (Font)                  OT1/cmss/m/it --> OT1/cmss/bx/it on input line 11.     LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'     (Font)                  OT1/cmtt/m/n --> OT1/cmtt/bx/n on input line 11.      (./test.nav)          LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available     (Font)              size <5> substituted on input line 25.          \tf@nav=\write4     \openout4 = `test.nav'.          \tf@toc=\write5     \openout5 = `test.toc'.          \tf@snm=\write6     \openout6 = `test.snm'.          [2          ] (./test.aux)


title: Which "TeX" should one use?

text: This question is from my confusion with the editor. In the WinEdt 6.0, there is a button for different kinds of "TeX". How do I know which one I should use and what's the difference? ![enter image description here](http://i.stack.imgur.com/LocNw.png)


title: Cyrillic ttf/otf font with kerning support?

text: I'm looking for a cyrillic ttf/otf font with kerning support. Here's a sample XeLaTeX document:               \documentclass{article}          \usepackage{fontspec} % enagles loading of OpenType fonts     \usepackage{polyglossia} % support for languages          % fonts:     \defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} % without this XeLaTeX won't turn "--" into dashes          % Russian/English document:     \usepackage{xecyr}     \newfontfamily\cyrillicfont{NotoSans}          \setmainlanguage{russian} % \setdefaultlanguage{russian} is obsolete and not needed     \setotherlanguage[variant=american]{english}          \setlength{\parindent}{0pt}     \setcounter{secnumdepth}{-1}          \usepackage[dvipsnames]{xcolor}     \usepackage{titlesec}     \titleformat{\section}[block]{\color{Blue}\Large\bfseries}{}{1em}{}          \begin{document}          \section{Sans-serif}          \setmainfont{NotoSans}     \newfontfamily\cyrillicfont{NotoSans}     \textbf{NotoSans}:\\     \underline{Ta}ble? \\     \underline{Та}блица?     \medskip          \setmainfont{Linux Biolinum O}     \newfontfamily\cyrillicfont{Linux Biolinum O}     \textbf{Linux Biolinum O}: \\     \underline{Ta}ble? \\     \underline{Та}блица?     \medskip          \setmainfont{DejaVu Sans}     \newfontfamily\cyrillicfont{DejaVu Sans}     \textbf{DejaVu Sans}: \\     \underline{Ta}ble? \\     \underline{Та}блица?     \medskip          \setmainfont{Arial}     \newfontfamily\cyrillicfont{Arial}     \textbf{Arial}: \\     \underline{Ta}ble? \\     \underline{Та}блица?     \medskip          \setmainfont{PT Sans}     \newfontfamily\cyrillicfont{PT Sans}     \textbf{PT Sans}: \\     \underline{Ta}ble? \\     \underline{Та}блица?     \medskip          \setmainfont{Trebuchet MS}     \newfontfamily\cyrillicfont{Trebuchet MS}     \textbf{Trebouchet MS}: \\     \underline{Ta}ble? \\     \underline{Та}блица?     \medskip          \setmainfont{FreeSans}     \newfontfamily\cyrillicfont{FreeSans}     \textbf{FreeSans}: \\     \underline{Ta}ble? \\     \underline{Та}блица?     \medskip               \section{Serif}          \setmainfont{Linux Libertine O}     \newfontfamily\cyrillicfont{Linux Libertine O}     \textbf{Linux Libertine O}: \\     \underline{Ta}ble? \\     \underline{Та}блица?     \medskip               \setmainfont{DejaVu Serif}     \newfontfamily\cyrillicfont{DejaVu Serif}     \textbf{DejaVu Serif}: \\     \underline{Ta}ble? \\     \underline{Та}блица?     \medskip          \setmainfont{Minion Pro}     \newfontfamily\cyrillicfont{Minion Pro}     \textbf{Minion Pro}: \\     \underline{Ta}ble? \\     \underline{Та}блица?     \medskip               \end{document}      And the result is: ![enter image description here](http://i.stack.imgur.com/kxGcu.png) So it looks like only `Trebouchet MS` support kerning in Russian. How could it be? Do I do something wrong?


title: Times New Roman on Linux

text: I need your helps, I have written my thesis on Linux and I have used Texmaker, but i have a problem, I can not change font to Times New Roman I have searched on Google, people usually said that uses following code blog. But it does not solve my problem               \usepackage{fontspec}     \setmainfont{Times Roman}      Please help me.


title: TikZ: Draw a B+ Tree

text: Having consulted this and this thread, I think the multipart feature of TikZ might just do what I need (see picture below). Is there any way to hide the vertical lines between node parts and still be able to access the multipart anchors (possibly even draw those circles)? ![enter image description here](http://i.stack.imgur.com/yl40z.png)


title: Why no vertical-mode Knuth-Plass?

text: I have only basic knowledge of the TeX internals, so I hope what I am saying here is not complete nonsense. If I understand correctly, in TeX, horizontal positioning / line breaking is done using a rather advanced algorithm based on a paragraph-level optimization (Knuth-Plass); it allows for concepts such as glue and line break penalties, and gives considerably better results than the more naive approach of, say, MS Word. On the other hand, I seem to understand that nothing similar is used for _vertical_ positioning of text. Lines are shipped out as soon as they are done and pages are filled using the obvious greedy algorithm. Widows and orphans are handled using special tricks.   [EDIT: this is not entirely correct, see Hendrik Vogt's answer below --- there is an optimization algorithm involved, although it's only local optimization over a single page and not KP] So, a question arises naturally to me: > why isn't something similar to Knuth-Plass used also for page breaks and the > vertical layout of text? Are there major complications?


title: Copyright page on back of title page

text: I am trying to get the copyright page to print (or display) on the back of the title page. What is happening is that I get a blank page after the title page and then the copyright page opens on the right hand side. What I would like to do is eliminate the blank page immediately after the title page and have the copyright page print on the back of the title page. I am using the `memoir` class (though Koma-script `scrbook` has the same behavior). Here is a minimum working example:               \documentclass[11pt]{memoir}     \usepackage[utf8]{inputenc}     \usepackage[spanish]{babel}     \usepackage{geometry}     \geometry{bottom=1in}     \usepackage{tgpagella}     \usepackage{lettrine}     \usepackage{microtype}     \begin{document}     \begin{titlingpage}     \begin{center}     \huge{Los picapiedras}          \vspace{1 in}     \bigskip     f.flinstone     \end{center}     \end{titlingpage}          \frontmatter     \textit{Picapiedras}     here is the copyright page          \mainmatter          \lettrine{Y}{o estaba alojado} en un hotel           \end{document}


title: Dynamic signature/date line

text: I'm trying to create a signature and date line in a document. I need the date line to always be in the same spot on the page no matter what name is under the signature line, such as:               ----------------------   ----------------------     Representative           Date          ----------------------   ----------------------     Program Manager          Date           Here is the code I currently have:               \makebox[2.5in]{\hrulefill} \hspace {1.0in}\makebox[2.5in]{\hrulefill} \\     User Representative \makebox[2.5in][r]{Date} \\          \vspace{.2in}     \makebox[2.5in]{\hrulefill} \hspace {1.0in}\makebox[2.5in]{\hrulefill} \\     Program Manager \makebox[2.5in][r]{Date} \\      I want to be able to change the names, such as change Program Manager to Joe Foo and have the word 'Date' stay in the exact place. Any help would be greatly appreciated. I'm still a newbie at TeX so please forgive my ignorance.


title: How can I create a line with small text below it as in contracts?

text: I would like to create a line with text below it as it can be seen often in contracts: ![enter image description here](http://i.stack.imgur.com/Qy4Os.png) Ideally, that line would have a fillable element over it. ## Minimal Working Example The best I could come up (which is much better than I've expected as I started writing this question!) is:               \documentclass[a4paper]{scrartcl}     \usepackage[utf8]{inputenc} % this is needed for umlauts     \usepackage[ngerman]{babel} % this is needed for umlauts     \usepackage[T1]{fontenc}    % this is needed for correct output of umlauts in pdf     \usepackage[margin=2.5cm]{geometry} %layout     \usepackage{csquotes}       % nice quotes     \usepackage{parskip}        % I don't want indentation          \begin{document}     \section{Untermietvertrag}     Im Folgenden wird ein Untermietvertrag zwischen (nachfolgend \enquote{Hauptmieter} genannt)\\          \line(1,0){250}\\     \vspace{-0.3cm}     {\scriptsize Name, Anschrift}\\          und (nachfolgend \enquote{Untermieter} genannt)\\          \line(1,0){250}\\     \vspace{-0.3cm}     {\scriptsize Name, Anschrift}\\          geschlossen.     \end{document}      which renders to ![enter image description here](http://i.stack.imgur.com/jucBY.png) This solution does not have fillable form elements at the over the lines. Is there probably a package that helps when you want to write a contract? Or a document class?


title: Fixed In-line Indentation

text: I want to align content that starts in the middle of a line and content that starts at the beginning of the next line (for a thesis Authorization to Submit page). E.g.:               Major Professor:        ___________________________ Date: _________________                             Professor Name, Ph.D.      An example I saw combined `\indent` and non-breaking spaces (backslash space). This is a little messy and difficult to get just right, since \indent adds a fixed space instead of jumping to an indent level (like MS Word). Is there any way to jump to a fixed indent level (say, 2 inches into the body) in the middle of a line? Or is there a better way to do this? This code illustrates the kind of thing I'm doing:               \noindent{}M\indent{}A\\     \indent{}B % does not line up!      I want something like:               \noindent{}M\fixindent{1in}A\\     \fixindent{1in}B % lines up!


title: Losing the quality of the image in lyx

text: I have been looking for a possible answer for this problem (it seems that I am not the only one facing this), but the answers do not help too much. I got this image (.png) which I consider having a good quality even when I see it in lyx. But as soon as I create the pdf (using pdflatex) the resolution of the image decrease as you can see. ![enter image description here](http://i.stack.imgur.com/Z8qtj.png) ![enter image description here](http://i.stack.imgur.com/MWVwa.png) I got not idea about why this is happening, almost everyone in other answers says that .png images should appear like they are. Do you have any idea about this?


title: Exporting from Org-mode to LaTeX ignores LaTeX_CLASS_OPTIONS

text: When I try to export from Org-mode to latex using `C-c C-e l`, the contents of `LaTeX_CLASS_OPTIONS` is always completely ignored. Here's a minimal example: **test.org**               #+LaTeX_CLASS: article     #+LaTeX_CLASS_OPTIONS: [12pt,a4paper]          * Headline 1       some text      **test.tex**               % Created 2013-02-18 Mon 12:12     \documentclass[11pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{graphicx}     \usepackage{longtable}     \usepackage{float}     \usepackage{wrapfig}     \usepackage{soul}     \usepackage{amssymb}     \usepackage{hyperref}          \title{test}     \author{John J. Camilleri}     \date{18 February 2013}          \begin{document}          \maketitle          \setcounter{tocdepth}{3}     \tableofcontents     \vspace*{1cm}          \section{Headline 1}     \label{sec-1}            some text          \end{document}      This is a clean version of Org-mode with no customisations. Any ideas? I don't know what else to try, yet it also seems too obvious to be a bug...


title: How to get boxed citations and references but colored,unboxed \hrefs

text: It seems that if I change from boxed links to coloured links using the `\hypersetup{colorlinks=false,true}` command from the `hyperref` package, this has a global effects on all types of links, be it link, cite or URL. I like my links and cites default red/green boxed, but I don't like how the blue boxes in my bibliography are, and would like to change the, _and only them_ , to blue text. Can this be done? I use `\href` in my bibliography like this               \documentclass{article}          \usepackage{hyperref}      %\hypersetup{colorlinks=true,urlcolor=blue} Don't want this because will change       %links and cites too     \begin{document}           \begin{thebibliography}       \bibitem{some}       \href{http://some.url}{Some Ref}      \end{thebibliography}          \end{document}      Whereas links and cites are just using the `\ref{}` and `\cite{}` commands and the global `hyperref` effect.


title: Straight Braces

text: Can I make a variant of Latex Braces? In some equations system, I'd like to use a left brace like in this picture: ![Straight brace with v-shape in the middle but without curves at either end](http://i.stack.imgur.com/JHRL0.png)


title: Gnuplot+epslatex irregular dashed line

text: I'm using gnuplot+epslatex to generate some plots. This is what I put in the gnuplot code               set terminal epslatex color size xwidth cm,1.1*xwidth font 9 header      \fontsize{10}{13.2}      \usepackage[lite,subscriptcorrection,slantedGreek,nofontinfo]{mtpro2}     \usepackage{amsmath}      \renewcommand{\rmdefault}{ptm}'      dashlength 2.0 round standalone          set output "energy14two.tex"      and then I generate the .ps using this script               #!/bin/bash     gnufilename=$1     name=`grep "set *output" $1 | grep -v \# | awk '{print $3}' | cut -b 1 --complement | rev | cut -b 1 --complement | rev`     texfilename=${name%.*}     gnuplot $gnufilename && { latex -halt-on-error $texfilename.tex && dvips -q $texfilename.dvi && rm $texfilename.dvi; rm $texfilename-inc.eps $texfilename.aux $texfilename.log $texfilename.tex; }       For the curve I used a dashed line style, and when I open the `.ps` file I find that the dashes length is quite irregular. Do you know what is the problem?


title: Include java code to display text in latex

text: is it possible to do something like the following in texlipse?               \documentclass{article}     \usepackage{listings}       \begin{document}          \section{Title}     import java     \subsection{Subtitle}          I want to display some java result          \begin{lstlisting}         printMyString()            \end{lstlisting}                   \end{document}      Where printMyString() is for example:               public String printMyString() {     return "Hello World";     }      thanks!


title: How to keep a nice table, it won't line up properly

text: Basically i'm trying to make a 2x8 table with a variable in the first column with horizontal lines but it won't line up and keeps adding the word "height" into the table when viewed as a pdf. I can't find any similar problems on here. Thanks in advance Here's an example of my problem               \begin{document}     \begin{tabular}{ |c|c|c|c|c|c|c|c| }     \hline     $x$ & 2.9 & 2.99 & 2.999 & 3 & 3.001 & 3.01 &3.1     \hline     y & 1.9 & 1.99 & 1.999 & \textbf{DNE} & 2.001 & 2.01 & 2.1     \hline     \end{tabular}     \end{document}


title: Restoring qtree spacing in tikz-qtree

text: Is it somehow possible to achieve the same node spacing in `tikz-qtree` as in the original `qtree` package? Compare the two: qtree: ![qtree](http://i45.tinypic.com/5jve9t.png) tikz-qtree: ![tikz-qtree](http://i50.tinypic.com/2urrtyc.png) The spacing between nodes in one level should be the same. Also, I somehow dislike that the lengths of the edges are depending on the content (see the dot vs. Z). The reason I use `tikz-qtree` is because I have a tree which has a node with more than 5 branches, which `qtree` doesn't support. Edit: And the tree code:               \documentclass{article}          \usepackage{amsmath}        \usepackage{tikz}     \usepackage{tikz-qtree}     % or \usepackage{qtree}          \newcommand{\bftt}[1]{\textbf{\texttt{#1}}}     \newcommand{\ts}[1]{\bftt{#1}}          \begin{document}              \Tree [.$Z$ \ts{(} [.$Z$ \ts{.} [.$Z$ \ts{(} [.$Z$ $\epsilon$ ] \ts{)} [.$Z$ $\epsilon$ ] ] ] \ts{)} [.$Z$ $\epsilon$ ] ]          \end{document}


title: Note below figure

text: I have a figure and include it in LaTeX using `\includegraphics` in a `\figure` floating environment. The caption is at the top. Basically I would like to have a note below the figure too. I see some entries for tables but not for figures. Please suggest!


title: How can I fix the size of parentheses around stacked function symbols?

text: I apologize if this is a duplicate, I looked at a number of other questions regarding parentheses size but didn't find an answer to my problem. I'm trying to stack two function symbols within parentheses. Here is what I have:               \documentclass{article}     \usepackage{amsmath,amssymb,mathtools}     \begin{document}          $\LARGE(\mathrel{\substack{s\\ \\ f}})$          \end{document}      Which I would like to be rendered like this: ![enter image description here](http://i.stack.imgur.com/yZbPs.gif) When I enter the MWE provided, though, it renders the parentheses a good bit smaller and much rounder than the image above (which was generated by entering `$\LARGE(\mathrel{\substack{s\\\ \\\ f}})$` at http://www.codecogs.com/latex/eqneditor.php), with the result that both the "s" and "f" hang well above and below (respectively) the parentheses. How can I get the MWE to match the image?


title: How to draw an additional line over an existing TikZ figure?

text: \documentclass[border=5mm] {standalone}     \usepackage{pgfplots, pgfplotstable}               \begin{document}          \begin{tikzpicture}     \pgfplotstableread{ % Read the data into a table macro     Label   First   Second  Third     10      0.1     0.3     0.3     20      0.2     0.3     0.3     30      0.3     0.4     0.5     40      0.3     0.5     0.8     160     0.5     0.9     1.5     }\datatable          \begin{axis}[         xbar stacked,   % Stacked horizontal bars         xmin=0,         % Start x axis at 0         ytick=data,     % Use as many tick labels as y coordinates         yticklabels from table={\datatable}{Label}  % Get the labels from the Label column of the \datatable     ]     \addplot [fill=yellow] table [x=First, y expr=\coordindex] {\datatable};    % Plot the "First" column against the data index     \addplot [fill=green!70!blue]table [x=Second, y expr=\coordindex] {\datatable};     \addplot [fill=red!80!yellow] table [x=Third, y expr=\coordindex] {\datatable};     \end{axis}     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/sJIG8.png) Now how do I draw a vertical black line parallel to the Y axis going through 1 on x axis? And how do I put a label on this line?


title: Natbib setcitestyle causes "undefined control sequence error"

text: The following test code works if I comment out the `\setcitestyle` line. If I don't it throws a "undefined control sequence error." What's wrong? (I'm using the MacTeX-2011 distribution.)               \documentclass{article}     \usepackage{etoolbox}          \def\bibfile{refs}          \usepackage{natbib}     \setcitestyle{numbers}     \setcitestyle{notesep={: },aysep={}}          \ifdefmacro{\bibname}{}{\newcommand{\biname}{References}}   % Default bibliography name     \ifdefmacro{\bibfile}{}{\newcommand{\bibfile}{references}}  % Default name of references file, references.bib      %\input{mmd-local-chicagoAD}          \begin{document}      Hello \citep{KandR}          Kernighan wrote, \citet{gary_a._dymski_afterword:_2009}          Goodbye \citep[][222]{gary_a._dymski_afterword:_2009}     \renewcommand\bibname{References}     \bibliographystyle{mcbride}     \bibliography{refs}     %\input{mmd-local-bibmake}     \end{document}


title: Invoice class for variable pricing

text: One of my clients uses me for bug fixes and feature extensions on various websites. We agreed to a pricing structure that is some sum per hour for the first 50 hours of work in a month, and a lower sum per hour afterwards. Is there an invoice class that can deal with this, or do I need to roll my own?


title: Hyperref link jumps to the first entry of the bibliography entry rather than to its title

text: This is a follow-up question to Gonzalo Medina's answer of Bibliography in table of contents. One of his solutions for including the bibliography in the ToC is to use the following code:               \documentclass{book}     \usepackage{etoolbox}          \apptocmd{\thebibliography}{\csname phantomsection\endcsname\addcontentsline{toc} {chapter}{\bibname}}{}{}          \begin{document}     \tableofcontents     \include{chapter1}     \bibliographystyle{plain}     \bibliography{biblio}     \end{document}      With `hyperref`, however, clicking on the ToC entry for the bibliography you end up at the first bib entry rather than at the title of the bib as it should be. How can this be solved? PS: This is not a duplicate of \phantomsection - how to jump to the chapter title instead of the center of the page (only). I tried playing around with `\cleardoublepage` (as suggested in the answer to that question) but it didn't work for my problem.


title: berenis and 'ę' 'ą' letters

text: The letters 'ę' e_ogonek and 'ą' a_ogonek are displayed incorrectly. Example:               \documentclass[A4paper,12pt]{article}     \usepackage{polski}     \usepackage[lf]{berenis}     \usepackage[LY1]{fontenc}     \usepackage[utf8]{inputenc}          \begin{document}     \section{Kopią i~trzęsą}     Myszy kopią i~trzęsą Warszaw\k{a}.     \end{document}      ![berenis example](http://i.imgur.com/US2dxFB.png?1) I'm using TexLive 2013 and berenis.sty 2010/08/26 v1.0. Is it the font or encoding problem?


title: How to renew caption command to get bold title?

text: How to renew `\caption` command to make all title in bold? I do this:               \usepackage[labelfont=bf,labelsep=space]{caption}      and I get > **Figure 1** caption I need > **Figure 1 caption** My try               \renewcommand{\caption}[1]{\caption{\textbf{#1}}}      doesn't work.


title: Obtaining a list of authors and keywords in the given document

text: I'm typesetting a document based on the Elsevier document class. I want to use `hyperref`'s `\hypersetup` to set title, author, and keywords of the generated PDF file to the corresponding values. The problem is that I want `\hypersetup` values to be generated automatically; i.e. it takes the title of the paper and sets it as the title of the PDF file, and does the same for the author and keywords fields. Here's what I came up with until now:               \documentclass{elsarticle}          \usepackage{hyperref}          \begin{document}          \title{A Test Title}          \author{John Doe}     \author{Jane Doe}     \author{John Smith}          \begin{abstract}     ...     \end{abstract}          \begin{keyword}         key1, key2, key3, key4.     \end{keyword}          \maketitle          \makeatletter     \hypersetup{         pdfinfo={             Title={\@title},             Author={},             Keywords={}         }     }     \makeatother          \end{document}      As shown above, I used `\@title` (which is defined internally by `elsarticle` document class). I just don't know how to automatically include author names and keyword list (both of them in the comma-separated format).


title: TeX Live 2013 tlmgr fails when trying to update -- TeX Live 2013 frozen

text: When running `tlmgr updateerror all` (with TeX Live 2013 distribution) in Windows OS, I get the following message:               TeX Live 2013 is frozen forever and will no     longer be updated.  This happens in preparation for a new release.          If you're interested in helping to pretest the new release (when     pretests are available), please read http://tug.org/texlive/pretest.html.     Otherwise, just wait, and the new release will be ready in due time.     tlmgr.pl: package repository http://ctan.imsc.res.in/systems/texlive/tlnet     tlmgr: saving backups to C:/texlive/2013/tlpkg/backups          tlmgr: all mentioned, but neither new nor forcibly removed     tlmgr: no updates available      What should I do?


title: No footnotes are produced

text: I cannot see footnote in my document               \documentclass{article}     \usepackage[utf8x]{inputenc}     \usepackage[L7x]{fontenc}     \usepackage[lithuanian]{babel}     \usepackage{pslatex}     \makeatletter     \renewcommand{\thesection}{\arabic{section}.}     \renewcommand{\section}{%         \@startsection             {section}{1}{0mm}         {\baselineskip}         {\baselineskip}         {\fontsize{14}{14}\centering\bfseries\MakeUppercase}%               }        \makeatother     \usepackage[stable,perpage]{footmisc}     \begin{document}     \section{a\footnote{b}}     \newpage     \section{c}     \end{document}      Why is it so and how to fix this?


title: TexLive 2011 does not allow custom installation

text: I am trying to install TexLive 2011 according to instructions posted on its website here: http://tug.org/texlive/quickinstall.html I used command `sudo ./install-tl --gui wizard` & I get 5-step gui. One of the steps says it would require close to 3GB of disk space for installation (which I cannot spare). I remember running the same GUI some time back and it gave 'basic' and 'full' installation options, however this time it does not. Please let me know if I am missing anything. Also installing texlive from software center is not an option as I want to use tlmgr to keep my packages updated.


title: Can I still compile without saving first?

text: I just upgraded my LaTeX package. Previously, if I were to make a change in the document and subsequently hit "typeset," the change would automatically be reflected in the preview, and the document would save ~~simultaneously~~ automatically with compiling. However, this seems to be different with the upgrade. If I make a change in the document and hit "typeset," the change does not show up in the preview unless I first save the document manually. Is there a way to revert to the previous way of doing things, so that I don't have to manually save before compiling? If it helps, I am working on a Mac, and I upgraded from Version 2.43 to Version 2.45 of TeXShop.


title: How to fix "Package hyperref Error: Wrong DVI mode driver option `dvips'"?

text: I'm having this Error when I try to compile my `.tex` file with `xelatex`:               ! Package hyperref Error: Wrong DVI mode driver option `dvips',     (hyperref)                because XeTeX is running.          See the hyperref package documentation for explanation.      This is my LaTeX header               \documentclass[10pt, a4paper, dvips,]{moderncv}          \moderncvtheme[grey, roman]{classic}          \usepackage{ifxetex}     \ifxetex % only for xelatex     \usepackage{xltxtra} % this should load both fontspec & xunicode     \usepackage{fontspec}     \setromanfont{Helvetica Neue}     \else %     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \fi % \ifxetex      Any ideas? EDIT: I removed the 'dvips', now I get:               ! Package hyperref Error: Wrong driver option `pdftex',     (hyperref)                because pdfTeX in PDF mode is not detected.          See the hyperref package documentation for explanation.      Now my first latex line               \documentclass[10pt, a4paper]{moderncv}      Any clues ?


title: Setting up a Multiple Choice Answer Key

text: I had a question about setting up a LaTeX document. I'm not sure if it is proper to post such a question here, but I figured that many people here have experience with the system and might be able to help. I've been asked to write a list of questions with multiple choice answers. The people who will be using it don't know much about TeX, so I need to try to make the code as robust as possible. I've written a command to automatically produce the multiple choice options: the command               \mc{2}{3}{5}{7}{11}      roughly outputs               (A) 2  (B) 3  (C) 5  (D) 7  (E) 11      What I'd like to do is add in a sixth argument that will take the answer to the question and then automatically append it to a list at the end of the document, essentially creating an answer key. The problem is that it's not clear to me how to call the sixth argument of every `\mc` command into an `\enumerate` environment at the end of the document. I would greatly appreciate any tips or suggestions anyone may have regarding this project.


title: Turn off locally one package

text: In the following code, I would like to show two different formatting styles: one using the package `nath` output, and another showing the default output. How can I do that?               % Source : http://tex.stackexchange.com/questions/1023/vertically-asymmetric-size-variation-for-parentheses          \documentclass[10pt,a4paper]{article}         \usepackage[utf8x]{inputenc}         \usepackage{ucs}         \usepackage{amsmath}         \usepackage{amsfonts}         \usepackage{amssymb}              \usepackage{nath} % The usefull package.              \newcommand{\formulaOne}{\sum_{0 \le i \le m \\ 0 < j < n} P(i,j)}         \newcommand{\formulaTwo}{1 + \frac{1 + x^2}{1 - \frac{x}{2}}}               \begin{document}          \section{With nath}          \begin{equation}         ( \formulaOne ) = [ \formulaTwo ]     \end{equation}               \section{Without nath}          \begin{equation}         \left( \formulaOne \right) = \left[ \formulaTwo \right]     \end{equation}               \end{document}


title: How to force LyX to convert a GraphViz file into a vector format

text: In the "Converters" section in LyX preferences, I have the two following converters automatically defined for GraphViz:   * Graphviz Dot -> PNG   * Graphviz Dot -> EPS When I export my document as PDF, the DOT diagrams are converted to PNG and the resulting file size is quite big. I've tried to remove the PNG converter, or change it to SVG, but it doesn't work. How can I force LyX to convert the dot diagrams to a vector format by default?


title: pgfplots: how to load distinct symbolic ticks/labels from file?

text: I want to plot a matrix of color-values from a csv file. Inspired by this website, I set out to write my MWE below, to which I added this way of dynamically loading symbolic ticks/labels from my data file. However, It turns out that my resulting ticks/labels are not distinct, but instead are repeated, like my rendering shows.   Another way to think of it (according to @Jake's comments) is that `flexible (x|y)ticklabels from table` does not tell PGFplots that these labels are supposed to be symbolic, as doing it manually using `symbolic (x|y) coords` would. How can I tell PGFplots that all distinct values from the `xitem` and `yitem` columns in my data file are to be used as symbolic labels?   Maybe the problem lies within `(x|y) expr=\coordindex`. What I want here is to fill in the (symbolic, not numerical) value from the respective colum (`xitem`|`yitem`). But using `x=xitem,y=yitem,` instead gives the error "Package PGF Math Error: Could not parse input 'X' as a floating point number". Rendering:   ![not distinct](http://i.stack.imgur.com/j9dCB.png) MWE:               \documentclass{standalone}          \usepackage{filecontents}     \usepackage{pgfplots, pgfplotstable}          \begin{filecontents}{data.csv}     yitem,xitem,val     r,X,0.1     r,Y,0.2     r,Z,0.3     d,X,0.4     d,Y,0.5     d,Z,0.6     j,X,0.5     j,Y,0.8     j,Z,0.9     \end{filecontents}          \pgfplotstableread[col sep=comma]{data.csv}\datatable     \makeatletter     \pgfplotsset{         /pgfplots/flexible xticklabels from table/.code n args={3}{             \pgfplotstableread[#3]{#1}\coordinate@table             \pgfplotstablegetcolumn{#2}\of{\coordinate@table}\to\pgfplots@xticklabels             \let\pgfplots@xticklabel=\pgfplots@user@ticklabel@list@x         },         /pgfplots/flexible yticklabels from table/.code n args={3}{             \pgfplotstableread[#3]{#1}\coordinate@table             \pgfplotstablegetcolumn{#2}\of{\coordinate@table}\to\pgfplots@yticklabels             \let\pgfplots@yticklabel=\pgfplots@user@ticklabel@list@y         }     }     \makeatother          \begin{document}     \begin{tikzpicture}     \begin{axis}[         flexible xticklabels from table={data.csv}{xitem}{col sep=comma},         xtick=data,         flexible yticklabels from table={data.csv}{yitem}{col sep=comma},         ytick=data,         unbounded coords=jump,     ]     \addplot[         mark=square*,         only marks,         scatter,         point meta=explicit,     ] table [         col sep=comma,         x expr=\coordindex,         y expr=\coordindex,         meta expr=\thisrow{val},     ] {\datatable};          \end{axis}     \end{tikzpicture}     \end{document}


title: Scaling isn't affecting a diagram made with the tqft package

text: I'm trying to make a drawing, part of which will use Andrew Stacey's tqft package. However, everything his package produces seems to be immune from scaling. For example, the following code is my attempt to essentially use the test drawing from the link above, and scale it by 1/4. However, all it seems to do for me is scale the equal sign by 1/4, and keep the tqft drawings the same:               \documentclass{article}     \usepackage{tikz}     \usepackage{tqft}     \begin{document}     \begin{tikzpicture}[scale=1/4, tqft/flow=east]     \begin{scope}[tqft/boundary lower style={draw,  thick}]     \node[tqft/pair of pants,draw] (a) {};     \node[tqft/reverse pair of pants,draw,anchor=incoming boundary 1] (b) at (a.outgoing  boundary 2) {};     \node[tqft/cylinder,draw,anchor=incoming boundary 1] (c) at (a.outgoing boundary 1) {};     \node[tqft/cylinder to next,draw,anchor=outgoing boundary 1] (e) at (b.incoming boundary 2) {};     \path (b.outgoing boundary 1) ++(1.5,1) node[font=\Huge] {\(=\)};     \path (b.outgoing boundary 1) ++(3,0) node[tqft/reverse pair of pants,draw,anchor=incoming boundary 2] (e) {};     \node[tqft/pair of pants,draw,anchor=incoming boundary 1] (f) at (e.outgoing boundary 1) {};     \end{scope}          \end{tikzpicture}          \end{document}      I'm not an advanced TeX user at all, so hopefully it's something simple. And I thought about just emailing Andrew to ask but he seems to be frequently here, and maybe somebody else will have the same problem sometime.


title: How to stop biblatex's \footcite to reverse the order of dots/commas and footnote number?

text: The biblatex `\footcite` command always moves points or commas, that originally appeared _after_ `\footcite`, _before_ the footnote number. For example, I have:               \documentclass[oneside]{scrbook}     \usepackage[english,ngerman]{babel}     \usepackage[babel,english=american,german=quotes]{csquotes}          \usepackage[bibstyle=authoryear, autocite=footnote, citestyle=authoryear-icomp,      urldate=long, abbreviate=false, dateabbrev=false, backend=biber]{biblatex}     \usepackage[babel,english=american,german=quotes]{csquotes}          \begin{document}          In my text \enquote{I have a quote}\autocite{Author2008}, which      cites \enquote{even more}\autocite[S.~76]{Author2005}, and then     just a normal footnote citation\autocite{Author2010}, and then it      finishes here \enquote{with another quote}\autocite[S. 90]{Author2009}.          \end{document}      This results in: (N.B. the order of footnote number and commas/dots now being reversed): ![enter image description here](http://i.stack.imgur.com/MpzuU.png) However, I want it the order I originally typeset in the latex document, that is commas/dots before the number: > In my text "I have a quote"¹, which cites "even more"², and then just a > normal footnote citation³, and then it finishes here "with another quote"4. How can I stop biblatex from reverting the order of punctuation if there is a comma or dot after the `\footcite`?


title: Set author font in scrartcl

text: I've got a document using the scrartcl and fontspec packages, like so:               \documentclass[a4paper]{scrartcl}     \usepackage{fontspec}      I'm setting the fonts using the following:               \setmainfont[Ligatures={Common,TeX}]{Minion Pro}     \setsansfont{Myriad Pro}     \setmonofont[Scale=0.8]{Consolas}      Then creating a title:               \title{Document Title}     \author{Author Name}     \date{}     \maketitle      This works great, however while the title is set in my sans serif font, the author appears in the main font. What do I need to do to get the author to appear in the sans serif font as well?


title: Suddenly, a problem with boldface Greek symbols; bm package doesn't work

text: I've added the following packages:               \usepackage{fontspec}     \usepackage{xunicode,xltxtra,url,parskip}      \usepackage[usenames,dvipsnames]{xcolor}      \usepackage{hyperref}      \definecolor{linkcolour}{rgb}{0,0.2,0.6}      \hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour}       In addition, I started compiling(?) in XeLaTeX instead of pdfLaTeX. As a consequence, in the math environment, the boldface (i.e. `\mathbf`) in combination with Greek letters does not work (whereas the latin letter do work). Just to clarify: I can still compile my code, but the Greek letter have become invisible in the output. I've tried to use the `\bm` package to attempt to circumvent this problem, but it spits out the following error:               ! Undefined control sequence.     \Call@AtVeryEndDocument ...cumentHook \@undefined                                                    \global \let \Call@AtVeryE...      Does anybody know how to fix this problem?


title: Splitting Algorithm across multiple slides

text: I am wondering how to split an algorithm across multiple beamer slides. The algorithm is created using package psuedocode. I tried using [allowframebreaks] but all that did was push my algorithm to the second slide. Here is my code:               \begin{frame}[allowframebreaks]          \frametitle{Online: Drost \etal}         \begin{algorithm}[H]             \begin{algorithmic}[1]             \State Create a discrete pose space             \State $S_r \gets$ randomly selected set of reference points             \ForEach {$s_r \in S_R$}                 \State select $s_i$ at discrete distance and angle intervals                 \ForEach {$(s_r,s_i)$}                     \State compute $PPF(s_r,s_i)$                     \State Map to corresponding model pairs in hash table                     \State Compute poses between $(s_r,s_i)$ and all corresponding model pairs                     \State Increment poses in discrete pose space                 \EndFor                 \State $T \gets$ all poses with high votes             \EndFor             \State Cluster poses in $T$             \State Compute a score for each cluster             \State $C \gets$ all clusters with high score             \ForEach $c_i \in C$                 \State Return average pose of all poses in $c$             \EndFor              \end{algorithmic}     \end{algorithm}


title: Myriad Pro: Chapter number style of the toc with pdfLaTex

text: I use the MinioPro and MyriadPro fonts in my document. To compile I use the pdfLaTex. I would like to change the format of the table of contents. I'm looking for an option to make the chapter numbers and page numbers (of the chapters) in the table of contents bold in Myriad Pro. Here a MWE:               \documentclass[11pt]{scrreprt}     \usepackage[textlf,mathlf]{MinionPro}                              \renewcommand{\sfdefault}{Myriad-LF}     \usepackage[toc,eqno,enum,bib,lineno]{tabfigures}             \begin{document}     \tableofcontents         \chapter{Chapter One}      \section{Section One}     \section{Section Two}     \chapter{Chapter Two}     \section{Section One}     \section{Section Two}     \end{document}      Here an image of the table of contents: ![enter image description here](http://i.stack.imgur.com/DIs7x.jpg) Thank you very much for some hints! @maetra: I tried you code out in a new document with copy-paste but I got a different result. ![enter image description here](http://i.stack.imgur.com/csOyV.jpg) Why do we have a difference? Thank you!


title: LastPage not defined - can't get "page x of y" - even after multiple compiles

text: Here is my MWE:               \documentclass[11pt,letterpaper,oneside,notitlepage]{article}          \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{natbib}     \usepackage{graphicx}     \usepackage[loose]{units}     \usepackage{url}     \usepackage{pgf,tikz}     \usepackage{fancyhdr}     \usepackage{lastpage}     \usepackage{multirow}     \usepackage{dcolumn}     \newcolumntype{.}{D{.}{.}{-1}}     \usepackage{booktabs}     \usepackage{alltt}     \usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption}     \usepackage[margin=1in]{geometry}               % these commands use the fancyhdr package to get "x of y" style     % page numbering.  The headrulewidth command gets rid of a decorative      % horizontal rule that is default with "fancy" pagestyle.     \pagestyle{fancy}     \cfoot{\thepage\ of \pageref{LastPage}}     \renewcommand{\headrulewidth}{0pt}               \begin{document}          \cfoot{{Cyclic triaxial test report  \ \ \ \ \ \ \   Page \thepage\ of \pageref{{LastPage}} \ \ \ \ \ \ \ Test ID: {testid} \\ {{\bf PRELIMINARY REPORT - NOT FOR ENGINEERING USE!}}}}          \subsection*{1}     \subsection*{2}     \subsection*{3}     \clearpage      \subsection*{a}     \clearpage      \subsection*{b}     \clearpage      \subsection*{c}     \clearpage      \subsection*{d}     \clearpage      \clearpage      \end{document}      Can anyone offer advice? As the title says, even after multiple compiles, I can't get `LastPage` to work. I'm using `pdfLaTeX`.


title: color of unicode-math in xetex

text: My question is based on the example which may be found here in teh second answer. Actually, I discovered this feature of `unicode-math` some time ago, but suspected that I am doing something wrong. Setting the color of the math font using `\setmathfont` changes the color of all letters and symbols but not of the horizontal lines in fracions, square roots, etc. It is rather unexpected behavior. The question is, whether this is a bug or feature. And, if it is a feature, how to change the color of these elements? Minimal strangely working example:               \documentclass{article}     \usepackage{fontspec}     \setmainfont[Color=000000]{XITS}     \usepackage{unicode-math}     \setmathfont[Color=FF0000]{XITS Math}          \begin{document}     A bunch of text, then an equation.     \[      N^2 = -\frac{g}{\rho_0} \frac{\partial \rho}{\partial z} ,\;\;\;\;      N = \sqrt{-\frac{g}{\rho_0} \frac{\partial \rho}{\partial z}}     \]     \end{document}      Produces the following result for me: ![enter image description here](http://i.stack.imgur.com/kUgp3.png)


title: reset theorem counter after every subsection and print just #subsection

text: I have declared `\newtheorem{thm}{Theorem} \numberwithin{thm}{subsection}`. This numbers every theorem in this format `[chapter].[section].[subsection].[numberofthm]`. Is it possible to have the counter just printing `[numberofthm]` instead?


title: Automatic / variable vertical alignment within a minipage?

text: I have defined a new environment that I use to highlight warnings in my text. Here's a minimal example of the code I use:               \documentclass[parskip]{scrartcl}     \usepackage{fourier} % for the bomb     \usepackage{lipsum}          \newenvironment{warning}{%       \begin{minipage}[t][\height][c]{0.12\textwidth}%         {\Huge{\bomb}}%       \end{minipage}%       \begin{minipage}[t]{0.88\textwidth}         \begin{sloppypar}%     }{%         \end{sloppypar}%       \end{minipage}%       \hspace{-\parfillskip}%     }          \begin{document}     \lipsum[1]          \begin{warning}     \lipsum[2]     \end{warning}          \lipsum[3]          \begin{warning}     This is just a short warning.     \end{warning}          \lipsum[4]          \end{document}      This mostly works as intended, at least for longer warnings. If the text of the warning consists of only one or two lines, the vertical alignment of the text next to the symbol starts looking weird. If I change the vertical alignment of the minipages from `t` to `c`, the overall spacing improves for the short warnings, but this also changes the longer warnings in what I consider a worse layout. I realize that I could solve this with two distinct environments for short and long warnings, but is there a way to automate this? Like _if the contents of the right-hand column exceed a height of ..., use this alignment, else use the other one_? (I'll also accept pointers to packages that provide a similar highlighting in a more robust/professional/cool way :-))


title: Automatically  breaking a line before an in-line mathematical expression

text: How do I automatically break the line before mathematical expression without using `\\\` Minimal example:               \documentclass[a4paper]{article}     \usepackage[utf8]{inputenc}          \begin{document}          text text text text text text text text text text text text text $f:A \to B; f(x) =      x^2 + x + 1$ text text text text text text text text text $p(x) = \{ a_0  + a_1 x +     a_2 x^2  + a_3 x^3  +  \ldots  + a_n x^n \}$ text text text text text text text text     text text          \end{document}      Result: ![Output of code](http://i.stack.imgur.com/TTfKG.jpg) But, I need: ![Desired output](http://i.stack.imgur.com/Ge1Zn.jpg) Remember: I need automatically, without `\\\`.


title: Contents header returns after first chapter

text: I am using `\documentclass{book}` and `tocloft` for the table of contents. The way my document is structured I have the table of contents, then a `\chapter*`, then part one, chapters, etc. For some reason, the "CONTENTS" header is on the blank page after the `\chapter*` finishes. If I change that chapter to `\chapter{Prologue}` instead of `\chapter*{Prologue}`, it's fine (but I don't want that chapter numbered). Any idea what's going on here or how to make it               \clearpage          \setlength\cftparskip{-2pt}     \setlength\cftbeforesecskip{1pt}     \setlength\cftaftertoctitleskip{18pt}     \tableofcontents          \clearpage     % fixme: ``Contents'' still shows up on the header after prologue          \chapter*{Prologue}     \addcontentsline{toc}{chapter}{\protect\numberline{}Prologue}     % Prologue goes here          \clearpage          \part*{Part One}     % and so on...