title: Running headers for endnotes: Notes to pp. xx–yy

text: Many books have running headers from which you can conveniently find the endnotes and the pages to which they refer. They may be at the end of each chapter, or at the end of the book. The running headers have the form “Notes to pp. xx–yy” for the endnotes. The **endheads** package allows running headers of this form for the **standard** , **komascript** , and **memoir** classes. It worked for me some time ago with memoir, but now it is broken and gives error message, _Undefined pagestyle_. This mwe breaks when the endheads package (and its supporting commands) is activated. Can someone suggest what can be done when using **memoir** and the **endheads** package to make it work?               \documentclass[openany,oldfontcommands]{memoir}     \usepackage{endnotes}     \usepackage{ifthen}     \usepackage{endheads} % requires oldfontcommands option for memoir class             \setupendnoteheaders          \titleinnotestrue         \setstyleforchapternotebegin{\begin{flushleft}\begin{bf}\normalsize}         \setstyleforchapternoteend{\end{bf}\end{flushleft}}          \begin{document}     \chapter{One}     \resetendnotes     \setcounter{secnumdepth}{0}     Text for chapter one with an endnote.   \endnote{chp 1 fn 1}          \chapter{Two}     \resetendnotes     \setcounter{secnumdepth}{0}     This is a second endnote. It is the first endnote of chp. 2.     \endnote{chp 2 fn 1 or second fn of the book}. Here is a second endnote of chp. 2. \endnote{chp2 fn 2}          \newpage     \addcontentsline{toc}{chapter}{\protect\numberline{} \the\notescontentsname}     \theendnotes     \end{document}


title: Overhead captions with short final line in combination with a relativly thin float look unpleasant

text: I'm using the `caption` package and have a relatively small table with a caption above with a short final line. In the the case of the `equation` environment, it will spot this and move the equation up if it detects no overlap between the bottom line of the text above and the equation. I'm hoping there is some similar setting or package to make this happen for floats (specifically tables). I can apply a correction manually with `\vspace{-0.3cm}` but this seems rather ugly. I'm using the `caption` package here, here is some code to demonstrate               \documentclass{article}     \usepackage{caption}               \begin{document}               \begin{table}         \caption{Hello how are you today, wibble wobble, words, more words and stuff'n stuff.}         %\vspace{-0.3cm}         \centering         \begin{tabular}{c c}             \hline             wib & wob \\             \hline             1   &  2  \\             8   &  7  \\             \hline         \end{tabular}     \end{table}               \end{document}      Many thank for any help!


title: Tikz Nodes in margin gets overwritten by page-wide tikz environments

text: I'm trying to improve the typesetting of openly licensed books created by my company. We do the typesetting of all our books with LaTeX. The design of these books requires coloured environments that stretch completely across the page as well as boxes in the margin containing lists of words etc. Now, the problem I'm having is that when a margin environment occurs just before a page-wide environment, the margin box gets overlapped by the wide environment. At the moment we deal with this by hand, moving things around and recompiling the document until we have no more overlaps but something better would be great. Is there a way to force the margin box to be on top of anything typeset after it? or Can I somehow tell marginpar (or another margin note environment) to avoid having margin notes close to these environments? Here is a MWE to illustrate:               \documentclass[12pt, a4paper, openleft]{memoir}          \usepackage{blindtext}     \usepackage{environ}% enables you to pass environment contents to a command     \usepackage{tikz}               \usetikzlibrary{%     arrows,%     shapes,%     backgrounds,%     patterns,%     decorations.pathreplacing,%     decorations.pathmorphing,%     decorations.markings,%     shadows,%     shapes.misc,%     calc,%     positioning,%     intersections}          \tikzset{normal border/.style={orange!30!black!10}}     \pgfmathsetseed{1} % To have predictable results          %     % Start of Boxed Environment     %     % Macro to draw the shape behind the text, when it fits completly in the     % page     \def\WideEnvBoxframe#1{     \tikz{       \node[inner sep=2em, outer xsep=5cm] (A) {#1};  % Draw the text of the node       \begin{pgfonlayer}{background}  % Draw the shape behind       \fill[fill=normalborder]              (A.south east) -- (A.south west) --              (A.north west) -- (A.north east) -- cycle;       \end{pgfonlayer}}}          % Macro to draw the shape, when the text will continue in next page     \def\WideEnvBoxframetop#1{     \begin{tikzpicture}[remember picture]         \node[inner sep=2em, outer xsep=5cm] (A) {#1};    % Draw the text of the node       \begin{pgfonlayer}{background}           \fill[fill=normalborder]              % Draw the ``complete shape'' behind             (A.south east) -- (A.south west) --              (A.north west) -- (A.north east) -- cycle;     \end{pgfonlayer}     %   \node[] (empty) at (current page.south west) {};     %     \fill[fill=red]     %           ($ (empty.south east)+(0,2)$) -- ($ (empty.south west)+(0,2)$) -- (empty.south west) -- (empty.south east) -- cycle;        \end{tikzpicture}     % fill in the white space gap between bottom of frame and footer        \begin{tikzpicture}[remember picture,overlay]          \begin{pgfonlayer}{background}             \fill[fill=normalborder,opacity=1]          ($(A.south west)+(-1,0.1)$) rectangle           ($(current page.south east)+(2,2.2)$);          \end{pgfonlayer}        \end{tikzpicture}     }          % Macro to draw the shape, when the text continues from previous page     \def\WideEnvBoxframebottom#1{     \tikz{       \node[inner sep=0.2em, outer xsep=5cm, outer ysep=0cm] (A) {#1};   % Draw the text of the node       \begin{pgfonlayer}{background}          \fill[fill=normalborder]             % Draw the ``complete shape'' behind             (A.south east) -- (A.south west) --              (A.north west) -- (A.north east) -- cycle;       \end{pgfonlayer}}     % fill in the white space gap between bottom of frame and footer     \begin{tikzpicture}[overlay,remember picture]       \begin{pgfonlayer}{background}          \fill[fill=normalborder,opacity=1]       ($(current page.north west)+(-3mm,3mm)$) rectangle        ($(current page.north east)+(3mm,-2.25cm)$);       \end{pgfonlayer}     \end{tikzpicture}}          % Macro to draw the shape, when both the text continues from previous page     % and it will continue in next page     \def\WideEnvBoxframemiddle#1{     \begin{tikzpicture}[remember picture]       \node[inner sep=0.2em, outer xsep=5cm, outer ysep=0cm] (A) {#1};   % Draw the text of the node       \begin{pgfonlayer}{background}          \fill[fill=normalborder]             % Draw the ``complete shape'' behind             (A.south east) -- (A.south west)  --              (A.north west) -- (A.north east) -- cycle;        \end{pgfonlayer}     \end{tikzpicture}     % fill in the white space gap between bottom of frame and footer     \begin{tikzpicture}[overlay,remember picture]       \begin{pgfonlayer}{background}           \fill[fill=normalborder,opacity=1]          ($(A.south west)+(-1,0.1)$) rectangle           ($(current page.south east)+(2,0)$);       \end{pgfonlayer}     \end{tikzpicture}          % fill in the white space gap between top of frame and header     \begin{tikzpicture}[overlay,remember picture]       \begin{pgfonlayer}{background}          \fill[fill=normalborder,opacity=1]       ([xshift=-3mm, yshift=3mm] current page.north west) rectangle        ([yshift=-2.25cm, xshift=3mm] current page.north east);       \end{pgfonlayer}     \end{tikzpicture}}     % Define the environment which puts the frame     % In this case, the environment also accepts an argument with an optional     % title (which defaults to ``Example'', which is typeset in a box overlaid     % on the top border     \newenvironment{WideEnvBox}[2]{%     \tikzset{normalborder/.style={#2}}       \def\FrameCommand{\WideEnvBoxframe}%       \def\FirstFrameCommand{\WideEnvBoxframetop}%       \def\LastFrameCommand{\WideEnvBoxframebottom}%       \def\MidFrameCommand{\WideEnvBoxframemiddle}%       \MakeFramed {\FrameRestore}     %\needspace{9\baselineskip}     {#1}\par     }%     {\endMakeFramed}          \definecolor[named]{activity}{HTML}{E1E6D1}          \newenvironment{Activity}[1]{%     \colorlet{normalborder}{activity}     \begin{WideEnvBox}{\sffamily\large\textbf{ACTIVITY:} #1}{activity}%     }{%     \end{WideEnvBox}%     }     %     % End of Boxed Environment     %          %     %  Margin box     %     \definecolor[named]{newwords}{HTML}{FCD2C1}          \tikzstyle{newwordsblock} = [rectangle, fill=newwords, text badly centered, text width=2.5cm, rounded corners=10pt, draw=black, very thick]          \NewEnviron{NoteNewwords}{%     \marginpar{\begin{tikzpicture}         \node[] (text) [newwordsblock]     {\vskip1mm\small\textbf{New Words}\vskip2mm\hrule\vspace{3mm}\scriptsize\BODY\vspace{3mm}};         \node[below=0.5cm of text] (dummytext) [newwordsblock] {\vspace{50mm}};     \end{tikzpicture}}%     }{%     }                         \begin{document}          \pgfdeclarelayer{background}     \pgfdeclarelayer{foreground}     \pgfsetlayers{background,main,foreground}          \begin{NoteNewwords}     \blindlist{itemize}[6]     \end{NoteNewwords}               \begin{Activity}{Example}     \blindtext[3]     \end{Activity}               \end{document}      ![margin box is underneath page-wide environment](http://i.stack.imgur.com/6s7DZ.png)


title: Tikz arrow starting exactly in the center

text: I have the following problem. I am using the `tikz` package to draw figures. I am drawing some sort of a data structure. This includes having nodes and lines which connect nodes. Sometimes, a line has to start with a dot and end with an arrow. I have the following code (using `arrows` and `patterns` `tikz` libraries):               \documentclass{article}          \usepackage{verbatim}     \usepackage{tikz}     \usepackage{pgfplots}     \usetikzlibrary{patterns}     \usetikzlibrary{arrows}     \begin{document}     \begin{figure}[h]              \begin{tikzpicture}           [internal/.style={rectangle,draw},            bmp/.style={rectangle,draw,pattern=north east lines},            ]           \node(root)     at ( 0.00, 0.00)                           {\verb=root=};           \node(in1)      at ( 0.00,-0.60)          [internal,minimum width=3mm,label=left:I1]        {};           \draw[-stealth](root)--(in1);                \node(cn1)      at ( 0.00,-1.2)           [internal,minimum width=6mm,label=left:C1]        {};           \node(cn1bmp)   at (-0.15,-1.2)           [bmp,minimum width=3mm]             {};           \node(cn1arr1)  at ( 0.15,-1.2)           [internal,minimum width=3mm]        {};           \draw[*-stealth](in1.mid)--(cn1);                \node(k1)       at ( 0.50,-1.8)                                               {$k_1$};           \draw[*-stealth](cn1arr1.mid)--(k1);                \node(cas)      at ( 0.8,-0.20)                              {\verb=CAS=};           \draw[->, shorten >=2pt](cas)--(in1);                \node(lab)      at (-0.70,-1.80) [internal]     {C};         \end{tikzpicture}          \caption{Trie examples}     \label{f-tries}     \end{figure}     \end{document}      This yields the following picture: ![enter image description here](http://i.stack.imgur.com/Pcenb.png) Now, as you can see, the arrow pointing to `k1` (corresponding to `\draw[*-stealth](cn1arr1.mid)--(k1);`) starts a little bit to the right. When I have more arrows, this looks nasty - they all seem to have offsets in various directions. Is there any way to force the arrow to start in exactly the center (`cn1arr1.center` doesn't work - it puts it too low)? Thanks!


title: How to define a random number with xcolor and tikz/pgf

text: I tried to get a random color with xcolor and tikz:               \documentclass{article}     \usepackage[xetex, rgb]{xcolor}     \usepackage{tikz}          \begin{document}          \pgfmathsetseed{1}     \begin{tikzpicture}         \xdefinecolor{MyColor}{hsb}{rand, 1.0, 1.0}         \node[fill=MyColor]{Hello};     \end{tikzpicture}     \end{document}      But this does not work, it reports the following error               Missing number, treated as zero      Does anybody know how to get random colors? thanks.


title: Add vertical spacing between epigraphs

text: I am writing a thesis and would like to add some vertical spacing between epigraphs inside a \begin{epigraphs} environment at the start of my chapters. MWE:               \documentclass{report}     \usepackage{setspace}     \usepackage{epigraph}     \setlength{\epigraphrule}{0pt}     \onehalfspacing     \begin{document}     \chapter{Introduction}     \setlength{\epigraphwidth}{.95\textwidth}     \begin{epigraphs}     \qitem{``It's a poor sort of memory that only works backwards.'' \\*%     The White Queen to Alice}%     {--\textsc{Lewis Carroll} $\sim$ Through the Looking Glass}     \qitem{\textbf{Science is}, I believe, \textbf{nothing} but \emph{trained and organised common sense}, differing from the latter only as a veteran may differ from a raw recruit: and its methods differ from those of common sense only so far as the guardsman's cut and thrust differs from the manner in which a savage wields his club.}%     {---\textsc{Aldous Huxley}}     \end{epigraphs}     \end{document}


title: arara: problem with animate.yaml

text: I wanted to automate conversion from pdf to animated gif with `animate` rule provided by cmhughes in answer to plotting the sequence x_n using tikz. I'm using arara+texworks+miktex on windows. I also have imagemagick installed and working from command line. I've saved cmhughes code as `animate.yaml` in my `\rules` folder. I add               % arara: pdflatex     % arara: animate      to my tex file (as example, this pgfplots code) and compile it with `arara`. The result is a correct pdf file but when starts `animate` it shows a message with               Running animate ...          Parámetro no válido: 10     FAILURE      `Parámetro no válido` means `non valid parameter` and I don't know which program (arara, convert) shows it. I'm using arara from TeXworks with options `\--log` and `\--verbose`. After compiling a tex file, `arara.log` contains:               05 Jun 2013 15:52:58.687 INFO  Arara - Welcome to arara!     05 Jun 2013 15:52:58.687 INFO  Arara - Processing file '117309.tex', please wait.     05 Jun 2013 15:52:58.703 INFO  DirectiveExtractor - Reading directives from 117309.tex.     05 Jun 2013 15:52:58.703 TRACE DirectiveExtractor - Directive found in line 1 with animate: {density: 200, delay: 10}.     05 Jun 2013 15:52:58.812 INFO  DirectiveParser - Parsing directives.     05 Jun 2013 15:52:58.812 INFO  TaskDeployer - Deploying tasks into commands.     05 Jun 2013 15:52:58.812 TRACE TaskDeployer - Task 'animate' found in 'D:\Archivos de programa\arara\rules'.     05 Jun 2013 15:52:59.125 INFO  CommandTrigger - Ready to run commands.     05 Jun 2013 15:52:59.125 INFO  CommandTrigger - Running 'animate'.     05 Jun 2013 15:52:59.125 TRACE CommandTrigger - Command: convert -delay 10 -loop 0 -density 200 "117309.pdf" "117309.gif"     05 Jun 2013 15:52:59.265 TRACE CommandTrigger - Output logging:     05 Jun 2013 15:52:59.265 TRACE CommandTrigger - Par metro no v lido: 10          05 Jun 2013 15:52:59.265 WARN  CommandTrigger - 'animate' returned an error status.     05 Jun 2013 15:52:59.265 INFO  Arara - Done.      (empty line is original, not my mistake editing it) In any case, running command               convert -delay 10 -loop 0 -density 300 myfile.pdf myfile.gif      from command window works and creates a gif file. This command is what it's trying to do `arara: animate`. Do you know what's wrong?


title: How to create commands for automating the commenting process on some zones of a picture

text: I have a lot of comments to make on different pictures, I can do it with the following command for ex:               \begin{tikzpicture}         \node[anchor=south west,inner sep=0] (image) at (0,0)         {\includegraphics[width=0.9\textwidth]{mypicture}};         \begin{scope}[x={(image.south east)},y={(image.north west)}]             \draw[red,ultra thick,rounded corners] (0.68,0.01) rectangle (0.97,0.85);             \node[fill=blue!10,text centered] at (0.83,0.43){Comment one};             \draw[red,ultra thick,rounded corners] (0.04,0.08) rectangle (0.30,0.55);              \node[fill=blue!10,text width=2cm,text centered] at              (0.17,0.31){zone~2 comment~2 multiline};      \end{scope}      \end{tikzpicture}      ![enter image description here](http://i.stack.imgur.com/FCXa0.png) I would like to automate a bit since the text is always centered on the bounding box and shall not go outside. I haven't a clue where I should start, I have a basic knowledge of TikZ, I tried using a `\pgfdeclareshape` but without success, don't even kmow if it is the good start! How to specify the decoration of the frame and text separately? Shall I use a syntax like :               \draw[parameters] (a,b) myshape (c,d){my comment}      Or               \node[theshape, parameters, heigh, width] at (a,b){my comment}      This is far beyond my knowledge today :-(


title: Tikz: draw a line between nodes in a loop

text: Code:               \documentclass[tikz]{standalone}     \usetikzlibrary{positioning,calc}     \begin{document}     \begin{tikzpicture}          \def\names{{"1", "2"}}     \foreach \i in {0,1} {%       \ifnum\i=0\relax           \node (\i) [draw] {\pgfmathparse{\names[\i]}\pgfmathresult};       \else           \pgfmathparse{int(\i-1)}           \node (\i) [draw,right= 1cm of \pgfmathresult]                 {\pgfmathparse{\names[\i]}\pgfmathresult};                %this doesn't work:           %\draw[dotted] ($\pgfmathresult.south east !.5! (\i.south east)$)           %      -- ($\pgfmathresult.south east !.5! (\i.south east) + (0,1cm)$);       \fi     }     \end{tikzpicture}     \end{document}      Creates this: ![enter image description here](http://i.stack.imgur.com/ZDiiW.png) How can I create a dotted line between the blocks 1cm long? I tried to do it, using the commented code, but it doesn't work, gives an error: > Runaway argument? > > \pgfmathresult .south east !.5! (\i .south east)$) -- ($\pgfmathresult \ETC.


title: Supertabular problem with \input

text: Consider a simple supertabular example:               \documentclass{article}     \usepackage{supertabular}     \begin{document}     \begin{supertabular}     a & b \\     \end{supertabular}     \end{document}      Suppose I wanted to create a template for dynamically inputting table data using a slightly unusual approach (instead of just inputting table data): ### `document.tex`               \documentclass{article}     \usepackage{supertabular}     \begin{document}     \input{beforetable}     a & b \\     \input{aftertable}     \end{document}      With `beforetable.tex` and `aftertable.tex` being `\begin{supertabular}{cc}\endinput` and `\end{supertabular}\endinput`. That fails with the following error: > ! Misplaced \noalign. \@tabletail ->\noalign {\global \let \@savcr =\ > \global \let \=\org@tabula... The example works if I replace `\input{aftertable}` with its contents.               \documentclass{article}     \usepackage{supertabular}     \begin{document}     \input{beforetable}     a & b \\     \end{supertabular}     \end{document}      What is going on "behind the scenes"?


title: Problem in installing package

text: Each time I tried to install package and choose the source: internet, I receive the following message: Cannot download the list of available package repositories: Not found. Please, can I get any help? In fact, I need to work on beamer.


title: How to convert font file to a series of Bézier curves?

text: While we are solving this question How to get intersection point(s) of two glyphs?, we are facing some interesting subproblems. This is the first one. How we could convert any font file (OTF, TTF, PFB, ...) to a series of Bézier curves, ideally loadable by TikZ? We can view control points of cubic Bézier curves in FontForge's native format (SFD) or we can save font file to SVG and then it can be converted to TikZ (svg2tikz known as inkscape2tikz), but it's probably not that simple as we want to preserve character names. I've found some inspiration by Andrew Stacey in Letterpress effect through PSTricks or Tikz. I can prove his approach is working as should be in case of the STIX font family.


title: gnuplot within LaTeX using epslatex terminal and pdflatex for compiling

text: I am encountering problems of implementing `gnuplot` images in my TeX document. I can actually create a `gnuplot` image (`.tex` and `.eps` file) interactively (separately) and use `\input{image}` to implement in my document but this is very inconvenient. I hope one of you would have a look on the code and tell me what's the craic. I am using `gnuplot` 4.6 patch 4. Latest TeX version, running Ubuntu 14.04 LTE.               \documentclass      [fontsize=12pt,twoside,BCOR17mm,DIV15,headinclude,bibliog     raphy=totoc, captions=tableheading,pdftex,parskip=half,openright,      cleardoublepage=empty]{scrbook}           \usepackage{color}                  % manage foreground/background color, works with graphics package     \usepackage{amsmath}                % Mathematikbefehle     \usepackage{amssymb}                % Unter anderem schöne Mengensymbole     %\usepackage[amssymb]{SIunits}      % Einheiten per Befehl einfügen     \usepackage[numbers]{natbib}                                             \usepackage[pdftitle={Diplomarbeit John - Robert Scholz}, pdfauthor={John - Robert Scholz}, bookmarks=true, pdfborder={0 0 0}]{hyperref}        % klickbare verlinkungen im dokument     \usepackage[all]{hypcap}                 \usepackage[utf8]{inputenc}         % translates encoding into latex language     \usepackage[T1]{fontenc}            % allows the user to select font encodings     \usepackage[ngerman, english]{babel}     \usepackage{siunitx,booktabs}     \sisetup{range-phrase=--}           % Deutsch --> option: [locale=DE], händelt auch alle andere Pakte dazu     \usepackage[babel,german=quotes]{csquotes}  % csquotes einbinden; hauptsächlich um Anführungszeichen in Bibliographie anzupassen     \numberwithin{table}{section}       % Formel-, bilder- und Tabellennummer mit section.nummer     \numberwithin{equation}{section}     \numberwithin{figure}{section}     \usepackage{graphicx}               % Grafiken einfügen     \usepackage{epstopdf}               % verwandelt .eps to .pdf on the fly     \usepackage[labelformat=parens,labelfont=normalfont]{subcaption} %Teilbilder     \usepackage{placeins}               % Barieren für figures     %\usepackage{subfigure}             % Teilbilder erzeugen     \usepackage[format=plain, font=small, labelfont=bf,justification=RaggedRight,width=\textwidth]{caption}              % extended implementation of the array and tabular environments     \usepackage{caption}                % customize caption in floating enviroments     \usepackage{tabularx}                    %\usepackage{gnuplottex}                 \usepackage[miktex]{gnuplottex}          \usepackage{tocstyle}          ...          \begin{figure}\centering     \begin{gnuplot}[terminal=epslatex,terminaloptions=color,scale=1]          f(x)= x**2         plot f(x) title "Fitfunktion"     \end{gnuplot}      \caption[..]{..}     \label{..}     \end{figure}      All I get is the actual caption in my document but nothing else, like as the picture itself would miss. I compiled with:               pdflatex --shell-escape document.tex ; pdflatex -shell-escape document.tex ; pdflatex document.tex      Nothing worked. All I got was the terminal warning as follows:               Package gnuplottex Warning: Shell escape not enabled.     (gnuplottex) You'll need to convert the graphs yourself.          [18] Opening gnuplot stream diplomarbeit-gnuplottex-fig1.gnuplot     Package gnuplottex Warning: Please convert diplomarbeit-gnuplottex-fig1.gnuplot manually.          LaTeX Warning: Characters dropped after `\end{gnuplot}' on input line 339.      I'd appreciate your help and hope you forgive me my package chaos.


title: titleformat deviation from specified vertical space

text: I have specified using titleformat (titlesec) the distances around different headings. This works fine, however sometimes, LaTeX deviates from the specified spaces, presumably to better fill up the space on the page. Is there a way to indicate that no, or only minor deviations from the specified vertical spaces can occur ? I know have something like this:               \titlespacing{\chapter}{0pt}{0pt}{10pt}     \titlespacing{\section}{0pt}{14pt}{0pt}     \titlespacing{\subsection}{0pt}{10pt}{0pt}     \titlespacing{\subsubsection}{0pt}{8pt}{0pt}     \titlespacing{\paragraph}{0pt}{6pt}{0pt}      I have tried to search for this but I am not sure how to proceed. I am not sure if the plus or minus options can be used for this? When I try I get an error..


title: How to use LaTeX fonts to format the text?

text: Are there fonts in LaTeX equivalent to those of Microsoft Office ("Times New Romans, Veranda, Courrier ... ") ? If yes, how can we use them ? Which package contains them?


title: A script language for beamer animations?

text: This is a follow-up question to Clever beamer animation? Writing a script that changes a tikz picture in beamer? as suggested there, I will put a bounty on this one. What I seek is a set of macros, perhaps a package for a scripting language for beamer/tikz animations. I proceed carefully here, since I am not sure whether some of the concrete requests and suggestions are possible as is. At the same time, I do not wish to hinder the resourcefulness of whoever tries to respond here. I am also aware that I might be asking for the wrong set of features: things that are not really needed, and missing real useful features. And of course, I would not expect any "full" solution; I would be infinitely grateful even if a small part of this "plan" is implemented. So, please take whatever follows as a very very initial draft, and feel free to change. The desired set of features, revolves around three ingredients: role, action(or "say"), and script. Each graphical element can take several roles, and can associate with each of these a default "action". The concrete visualization problem that lead me to this question is related to the simulation of the execution of a flow chart. First I define the notion of a "role", which is something that can take the place of a tikz definition. So, if "role" is a non-terminal symbol in an EBNF, I would like to be able to write " Concrete syntax is:                role -> 'r' opCode nameSayList      opCode -> '=' //Resets the roles list                '+=' // Add to the roles list                '-=' // Remove items from the role list (not sure it is needed)            nameSayList -> singleSay                       '{' singleSay, ... '}'            singleSay -> roleName                     roleName '/' keyList            roleName -> Any unique identifier, with whichever syntax            keyList -> singleKey                  '{' manyKeys '}'            singleKey -> any pgf key       manyKeys -> any list of pgf keys with their assignments      Semantics of the above specification: for each graphical element (which may be even a scope) the package computes a set of pairs. The first element of each pair is a "role name", and the second, and optional element, is a list of pgf key assignments. Now, a script can be specified with the following:                script -> \script{ Stages } picture      picture -> \begin{tikzpicture} ... \end{tikzpicture}      stages -> stage, ...      stage  -> singleActivation                '{' singleAction, ... '}'      singleActivation -> role                          role/says      says -> singleSay              '{' singleSay, .... '}'      singleSay -> key [= value]      This model does not include the "fadeOut" and the "introduction" of a graphical element, by which such an element with a role is activated with specific key setting in the stage before (or after) its designated stage. To demonstrate, think of a flow-chart diagram. Each node belong in a class: decision, IO, process, etc. You can run a script on the diagram that would highlight all the nodes of a certain class as the speaker speaks about the different kinds of components. Or, you can run a simulation, in which edges and nodes are highlighted, as the flowchart progresses through the computation. A stage including several roles could be used for highlighting the current input, current output, etc. (Feel free to use a "Turing Machine" or "Finite State Automaton" if you dislike flowcharts as much as I do.)                          '


title: Tikz, decorations

text: I use tikz as a general purpose drawing package because of its flexibility etc... I need to draw some Feynman diagrams like these: ![Feynman diagrams with vector loops](http://i.stack.imgur.com/WgFcX.png) I tried to draw arc like               \begin{tikzpicture}      \draw [decorate, decoration={snake}] (0,0) arc (180:0:2);     \end{tikzpicture}      but the result is ugly looking: ![Ugly looking result with Tikz](http://i.stack.imgur.com/3OF3I.png) Googleing I found some interesting link: Other question but 1) I tried to compile and the result was different: ![Link result](http://i.stack.imgur.com/mEAuX.png) 2) As you can see in the first image I posted, I need arbitrary angle arc and, in the solution presented in the link, it seems possible to draw only semicircles 3) The code is not elegant at all: in particular, using this solution drawing a solid e arc or a snakeish arc requires complete different source code. I was thinking if it is possible simply to stop the arc when it reaches the specified (final) angle, without any regard to the decoration.


title: Greek circumflex accent with ascii characters using mapping does not work

text: I want to input Greek letters with polytonic accents (ancient Greek) using ASCII characters in my tex document (so I don't need to change the keyboard layout). I am using polyglossia. I have been following the method lined out in the top answer here: Stackexchange: How to insert Greek with "ascii keyboard" and XeTeX, Polyglossia I created a mapping file asciitogreek.map and put it in the same directory as the tex file:               ; TECkit mapping for ASCII Greek <-> Unicode characters          LHSName "TeX-text"     RHSName "UNICODE"          pass(Unicode)          ; Class "letter" consists of letters and characters denoting accents     ; in order to cope with "sigma finalis", i.e., A-Z a-z ` ' > < ~     ; we don't need the double quote because it goes only after a vowel     UniClass[letter] = ( U+0041..U+005A U+0061..U+007A U+0060 U+0027 U+003E U+003C U+007E )               ; ligatures from Knuth's original CMR fonts     U+002D U+002D <> U+2013 ; -- -> en dash     U+002D U+002D U+002D <> U+2014 ; --- -> em dash          ; Greek (according to C. Beccari conventions)          ; (-1)     U+0022 <> U+2019 ; APOSTROPHE     U+0060 U+0060 <> U+201C ; `` -> LEFT DOUBLE QUOTATION MARK     U+0027 U+0027 <> U+201D ; '' -> RIGHT DOUBLE QUOTATION MARK     U+003C U+003C <> U+00AB ; << -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK     U+003E U+003E <> U+00BB ; >> -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK     U+0028 U+0028 <> U+00AB ; (( -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK     U+0029 U+0029 <> U+00BB ; )) -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK          ; (0) basic letters     ; uppercase     U+0041 <> U+0391      U+0042 <> U+0392      U+0044 <> U+0394      U+0045 <> U+0395      U+0046 <> U+03A6      U+0047 <> U+0393      U+0048 <> U+0397      U+0049 <> U+0399      U+004A <> U+0398      U+004B <> U+039A      U+004C <> U+039B      U+004D <> U+039C      U+004E <> U+039D      U+004F <> U+039F      U+0050 <> U+03A0      U+0051 <> U+03A7      U+0052 <> U+03A1      U+0053 <> U+03A3      U+0054 <> U+03A4      U+0055 <> U+03A5      U+0057 <> U+03A9      U+0058 <> U+039E      U+0059 <> U+03A8      U+005A <> U+0396      ; lowercase     U+0061 <> U+03B1      U+0062 <> U+03B2      U+0063 <> U+03C2      U+0064 <> U+03B4      U+0065 <> U+03B5      U+0066 <> U+03C6      U+0067 <> U+03B3      U+0068 <> U+03B7      U+0069 <> U+03B9      U+006A <> U+03B8      U+006B <> U+03BA      U+006C <> U+03BB      U+006D <> U+03BC      U+006E <> U+03BD      U+006F <> U+03BF      U+0070 <> U+03C0      U+0071 <> U+03C7      U+0072 <> U+03C1      U+0073 <> U+03C3      U+0073 / _ ^[letter] <> U+03C2      U+0074 <> U+03C4      U+0075 <> U+03C5      U+0077 <> U+03C9      U+0078 <> U+03BE      U+0079 <> U+03C8      U+007A <> U+03B6           ; (1) ` + letter -> varia     U+0060 U+0041 <> U+1FBA      U+0060 U+0061 <> U+1F70      U+0060 U+0045 <> U+1FC8      U+0060 U+0065 <> U+1F72      U+0060 U+0048 <> U+1FCA      U+0060 U+0068 <> U+1F74      U+0060 U+0049 <> U+1FDA      U+0060 U+0069 <> U+1F76      U+0060 U+004F <> U+1FF8      U+0060 U+006F <> U+1F78      U+0060 U+0055 <> U+1FEA      U+0060 U+0075 <> U+1F7A      U+0060 U+0057 <> U+1FFA      U+0060 U+0077 <> U+1F7C           ; (2) ' + letter -> oxia     U+0027 U+0041 <> U+1FBB      U+0027 U+0061 <> U+1F71      U+0027 U+0045 <> U+1FC9      U+0027 U+0065 <> U+1F73      U+0027 U+0048 <> U+1FCB      U+0027 U+0068 <> U+1F75      U+0027 U+0049 <> U+1FDB      U+0027 U+0069 <> U+1F77      U+0027 U+004F <> U+1FF9      U+0027 U+006F <> U+1F79      U+0027 U+0055 <> U+1FEB      U+0027 U+0075 <> U+1F7B      U+0027 U+0057 <> U+1FFB      U+0027 U+0077 <> U+1F7D           ; (3) > + letter -> psili     U+003E U+0041 <> U+1F08      U+003E U+0061 <> U+1F00      U+003E U+0045 <> U+1F18      U+003E U+0065 <> U+1F10      U+003E U+0048 <> U+1F28      U+003E U+0068 <> U+1F20      U+003E U+0049 <> U+1F38      U+003E U+0069 <> U+1F30      U+003E U+004F <> U+1F48      U+003E U+006F <> U+1F40      U+003E U+0055 <> U+1FBF U+03A5      U+003E U+0075 <> U+1F50      U+003E U+0057 <> U+1F68      U+003E U+0077 <> U+1F60           ; (4) < + letter -> dasia     U+003C U+0041 <> U+1F09      U+003C U+0061 <> U+1F01      U+003C U+0045 <> U+1F19      U+003C U+0065 <> U+1F11      U+003C U+0048 <> U+1F29      U+003C U+0068 <> U+1F21      U+003C U+0049 <> U+1F39      U+003C U+0069 <> U+1F31      U+003C U+004F <> U+1F49      U+003C U+006F <> U+1F41      U+003C U+0055 <> U+1F59      U+003C U+0075 <> U+1F51      U+003C U+0057 <> U+1F69      U+003C U+0077 <> U+1F61           ; (5) >` + letter -> psili and varia     U+003E U+0060 U+0041 <> U+1F0A      U+003E U+0060 U+0061 <> U+1F02      U+003E U+0060 U+0045 <> U+1F1A      U+003E U+0060 U+0065 <> U+1F12      U+003E U+0060 U+0048 <> U+1F2A      U+003E U+0060 U+0068 <> U+1F22      U+003E U+0060 U+0049 <> U+1F3A      U+003E U+0060 U+0069 <> U+1F32      U+003E U+0060 U+004F <> U+1F4A      U+003E U+0060 U+006F <> U+1F42      U+003E U+0060 U+0055 <> U+1FCD U+03A5      U+003E U+0060 U+0075 <> U+1F52      U+003E U+0060 U+0057 <> U+1F6A      U+003E U+0060 U+0077 <> U+1F62           ; (6) `> + letter -> psili and varia     U+0060 U+003E U+0041 <> U+1F0A      U+0060 U+003E U+0061 <> U+1F02      U+0060 U+003E U+0045 <> U+1F1A      U+0060 U+003E U+0065 <> U+1F12      U+0060 U+003E U+0048 <> U+1F2A      U+0060 U+003E U+0068 <> U+1F22      U+0060 U+003E U+0049 <> U+1F3A      U+0060 U+003E U+0069 <> U+1F32      U+0060 U+003E U+004F <> U+1F4A      U+0060 U+003E U+006F <> U+1F42      U+0060 U+003E U+0055 <> U+1FCD U+03A5      U+0060 U+003E U+0075 <> U+1F52      U+0060 U+003E U+0057 <> U+1F6A      U+0060 U+003E U+0077 <> U+1F62           ; (7) >' + letter -> psili and oxia     U+003E U+0027 U+0041 <> U+1F0C      U+003E U+0027 U+0061 <> U+1F04      U+003E U+0027 U+0045 <> U+1F1C      U+003E U+0027 U+0065 <> U+1F14      U+003E U+0027 U+0048 <> U+1F2C      U+003E U+0027 U+0068 <> U+1F24      U+003E U+0027 U+0049 <> U+1F3C      U+003E U+0027 U+0069 <> U+1F34      U+003E U+0027 U+004F <> U+1F4C      U+003E U+0027 U+006F <> U+1F44      U+003E U+0027 U+0055 <> U+1FCE U+03A5      U+003E U+0027 U+0075 <> U+1F54      U+003E U+0027 U+0057 <> U+1F6C      U+003E U+0027 U+0077 <> U+1F64           ; (8) '> + letter -> psili and oxia     U+0027 U+003E U+0041 <> U+1F0C      U+0027 U+003E U+0061 <> U+1F04      U+0027 U+003E U+0045 <> U+1F1C      U+0027 U+003E U+0065 <> U+1F14      U+0027 U+003E U+0048 <> U+1F2C      U+0027 U+003E U+0068 <> U+1F24      U+0027 U+003E U+0049 <> U+1F3C      U+0027 U+003E U+0069 <> U+1F34      U+0027 U+003E U+004F <> U+1F4C      U+0027 U+003E U+006F <> U+1F44      U+0027 U+003E U+0055 <> U+1FCE U+03A5      U+0027 U+003E U+0075 <> U+1F54      U+0027 U+003E U+0057 <> U+1F6C      U+0027 U+003E U+0077 <> U+1F64           ; (9) <` + letter -> dasia and varia     U+003C U+0060 U+0041 <> U+1F0B      U+003C U+0060 U+0061 <> U+1F03      U+003C U+0060 U+0045 <> U+1F1B      U+003C U+0060 U+0065 <> U+1F13      U+003C U+0060 U+0048 <> U+1F2B      U+003C U+0060 U+0068 <> U+1F23      U+003C U+0060 U+0049 <> U+1F3B      U+003C U+0060 U+0069 <> U+1F33      U+003C U+0060 U+004F <> U+1F4B      U+003C U+0060 U+006F <> U+1F43      U+003C U+0060 U+0055 <> U+1F5B      U+003C U+0060 U+0075 <> U+1F53      U+003C U+0060 U+0057 <> U+1F6B      U+003C U+0060 U+0077 <> U+1F63           ; (10) `< + letter -> dasia and varia     U+0060 U+003C U+0041 <> U+1F0B      U+0060 U+003C U+0061 <> U+1F03      U+0060 U+003C U+0045 <> U+1F1B      U+0060 U+003C U+0065 <> U+1F13      U+0060 U+003C U+0048 <> U+1F2B      U+0060 U+003C U+0068 <> U+1F23      U+0060 U+003C U+0049 <> U+1F3B      U+0060 U+003C U+0069 <> U+1F33      U+0060 U+003C U+004F <> U+1F4B      U+0060 U+003C U+006F <> U+1F43      U+0060 U+003C U+0055 <> U+1F5B      U+0060 U+003C U+0075 <> U+1F53      U+0060 U+003C U+0057 <> U+1F6B      U+0060 U+003C U+0077 <> U+1F63           ; (11) ~ + letter -> perispomeni     U+007E U+0041 <> U+0391 U+0342      U+007E U+0061 <> U+1FB6      U+007E U+0048 <> U+0397 U+0342      U+007E U+0068 <> U+1FC6      U+007E U+0049 <> U+0399 U+0342      U+007E U+0069 <> U+1FD6      U+007E U+0055 <> U+03A5 U+0342      U+007E U+0075 <> U+1FE6      U+007E U+0057 <> U+03A9 U+0342      U+007E U+0077 <> U+1FF6           ; (12) >~ + letter -> psili and perispomeni     U+003E U+007E U+0041 <> U+1F0E      U+003E U+007E U+0061 <> U+1F06      U+003E U+007E U+0048 <> U+1F2E      U+003E U+007E U+0068 <> U+1F26      U+003E U+007E U+0049 <> U+1F3E      U+003E U+007E U+0069 <> U+1F36      U+003E U+007E U+0055 <> U+1FCF U+03A5      U+003E U+007E U+0075 <> U+1F56      U+003E U+007E U+0057 <> U+1F6E      U+003E U+007E U+0077 <> U+1F66           ; (13) ~> + letter -> psili and perispomeni     U+007E U+003E U+0041 <> U+1F0E      U+007E U+003E U+0061 <> U+1F06      U+007E U+003E U+0048 <> U+1F2E      U+007E U+003E U+0068 <> U+1F26      U+007E U+003E U+0049 <> U+1F3E      U+007E U+003E U+0069 <> U+1F36      U+007E U+003E U+0055 <> U+1FCF U+03A5      U+007E U+003E U+0075 <> U+1F56      U+007E U+003E U+0057 <> U+1F6E      U+007E U+003E U+0077 <> U+1F66           ; (14) <~ + letter -> dasia and perispomeni     U+003C U+007E U+0041 <> U+1F0F      U+003C U+007E U+0061 <> U+1F07      U+003C U+007E U+0048 <> U+1F2F      U+003C U+007E U+0068 <> U+1F27      U+003C U+007E U+0049 <> U+1F3F      U+003C U+007E U+0069 <> U+1F37      U+003C U+007E U+0055 <> U+1F5F      U+003C U+007E U+0075 <> U+1F57      U+003C U+007E U+0057 <> U+1F6F      U+003C U+007E U+0077 <> U+1F67           ; (15) ~< + letter -> dasia and perispomeni     U+007E U+003C U+0041 <> U+1F0F      U+007E U+003C U+0061 <> U+1F07      U+007E U+003C U+0048 <> U+1F2F      U+007E U+003C U+0068 <> U+1F27      U+007E U+003C U+0049 <> U+1F3F      U+007E U+003C U+0069 <> U+1F37      U+007E U+003C U+0055 <> U+1F5F      U+007E U+003C U+0075 <> U+1F57      U+007E U+003C U+0057 <> U+1F6F      U+007E U+003C U+0077 <> U+1F67           ; (16) letter + | -> ypogegrammeni     U+0041 U+007C <> U+1FBC      U+0061 U+007C <> U+1FB3      U+0048 U+007C <> U+1FCC      U+0068 U+007C <> U+1FC3      U+0057 U+007C <> U+1FFC      U+0077 U+007C <> U+1FF3           ; (17) ` + letter + | -> varia and ypogegrammeni     U+0060 U+0061 U+007C <> U+1FB2      U+0060 U+0068 U+007C <> U+1FC2      U+0060 U+0077 U+007C <> U+1FF2           ; (18) ' + letter + | -> oxia and ypogegrammeni     U+0027 U+0061 U+007C <> U+1FB2      U+0027 U+0068 U+007C <> U+1FC2      U+0027 U+0077 U+007C <> U+1FF2           ; (19) ~ + letter + | -> perispomeni and ypogegrammeni     U+007E U+0061 U+007C <> U+1FB7      U+007E U+0068 U+007C <> U+1FC7      U+007E U+0077 U+007C <> U+1FF7           ; (20) > + letter + | -> psili and ypogegrammeni     U+003E U+0041 U+007C <> U+1F88      U+003E U+0061 U+007C <> U+1F80      U+003E U+0048 U+007C <> U+1F98      U+003E U+0068 U+007C <> U+1F90      U+003E U+0057 U+007C <> U+1FA8      U+003E U+0077 U+007C <> U+1FA0           ; (21) >` + letter + | -> psili and varia and ypogegrammeni     U+003E U+0060 U+0041 U+007C <> U+1F8A      U+003E U+0060 U+0061 U+007C <> U+1F82      U+003E U+0060 U+0048 U+007C <> U+1F9A      U+003E U+0060 U+0068 U+007C <> U+1F92      U+003E U+0060 U+0057 U+007C <> U+1FAA      U+003E U+0060 U+0077 U+007C <> U+1FA2           ; (22) `> + letter + | -> psili and varia and ypogegrammeni     U+0060 U+003E U+0041 U+007C <> U+1F8A      U+0060 U+003E U+0061 U+007C <> U+1F82      U+0060 U+003E U+0048 U+007C <> U+1F9A      U+0060 U+003E U+0068 U+007C <> U+1F92      U+0060 U+003E U+0057 U+007C <> U+1FAA      U+0060 U+003E U+0077 U+007C <> U+1FA2           ; (23) >' + letter + | -> psili and oxia and ypogegrammeni     U+003E U+0027 U+0041 U+007C <> U+1F8C      U+003E U+0027 U+0061 U+007C <> U+1F84      U+003E U+0027 U+0048 U+007C <> U+1F9C      U+003E U+0027 U+0068 U+007C <> U+1F94      U+003E U+0027 U+0057 U+007C <> U+1FAC      U+003E U+0027 U+0077 U+007C <> U+1FA4           ; (24) '> + letter + | -> psili and oxia and ypogegrammeni     U+0027 U+003E U+0041 U+007C <> U+1F8C      U+0027 U+003E U+0061 U+007C <> U+1F84      U+0027 U+003E U+0048 U+007C <> U+1F9C      U+0027 U+003E U+0068 U+007C <> U+1F94      U+0027 U+003E U+0057 U+007C <> U+1FAC      U+0027 U+003E U+0077 U+007C <> U+1FA4           ; (25) < + letter + | -> dasia and ypogegrammeni     U+003C U+0041 U+007C <> U+1F89      U+003C U+0061 U+007C <> U+1F81      U+003C U+0048 U+007C <> U+1F99      U+003C U+0068 U+007C <> U+1F91      U+003C U+0057 U+007C <> U+1FA9      U+003C U+0077 U+007C <> U+1FA1           ; (26) <` + letter + | -> dasia and varia and ypogegrammeni     U+003C U+0060 U+0041 U+007C <> U+1F8B      U+003C U+0060 U+0061 U+007C <> U+1F83      U+003C U+0060 U+0048 U+007C <> U+1F9B      U+003C U+0060 U+0068 U+007C <> U+1F93      U+003C U+0060 U+0057 U+007C <> U+1FAB      U+003C U+0060 U+0077 U+007C <> U+1FA3           ; (27) `< + letter + | -> dasia and varia and ypogegrammeni     U+0060 U+003C U+0041 U+007C <> U+1F8B      U+0060 U+003C U+0061 U+007C <> U+1F83      U+0060 U+003C U+0048 U+007C <> U+1F9B      U+0060 U+003C U+0068 U+007C <> U+1F93      U+0060 U+003C U+0057 U+007C <> U+1FAB      U+0060 U+003C U+0077 U+007C <> U+1FA3           ; (28) <' + letter + | -> dasia and oxia and ypogegrammeni     U+003C U+0027 U+0041 U+007C <> U+1F8D      U+003C U+0027 U+0061 U+007C <> U+1F85      U+003C U+0027 U+0048 U+007C <> U+1F9D      U+003C U+0027 U+0068 U+007C <> U+1F95      U+003C U+0027 U+0057 U+007C <> U+1FAD      U+003C U+0027 U+0077 U+007C <> U+1FA5           ; (29) '< + letter + | -> dasia and oxia and ypogegrammeni     U+0027 U+003C U+0041 U+007C <> U+1F8D      U+0027 U+003C U+0061 U+007C <> U+1F85      U+0027 U+003C U+0048 U+007C <> U+1F9D      U+0027 U+003C U+0068 U+007C <> U+1F95      U+0027 U+003C U+0057 U+007C <> U+1FAD      U+0027 U+003C U+0077 U+007C <> U+1FA5           ; (30) " + letter -> dialytika     U+0022 U+0049 <> U+03AA      U+0022 U+0069 <> U+03CA      U+0022 U+0055 <> U+03AB      U+0022 U+0075 <> U+03CB           ; (31) "' + letter -> dialytika and oxia     U+0022 U+0027 U+0069 <> U+1FD3      U+0022 U+0027 U+0075 <> U+1FE3           ; (32) '" + letter -> dialytika and oxia     U+0027 U+0022 U+0069 <> U+1FD3      U+0027 U+0022 U+0075 <> U+1FE3           ; (33) "` + letter -> dialytika and varia     U+0022 U+0060 U+0069 <> U+1FD2      U+0022 U+0060 U+0075 <> U+1FE2           ; (34) `" + letter -> dialytika and varia     U+0060 U+0022 U+0069 <> U+1FD2      U+0060 U+0022 U+0075 <> U+1FE2           ; (35) "~ + letter -> dialytika and perispomeni     U+0022 U+007E U+0069 <> U+1FD7      U+0022 U+007E U+0075 <> U+1FE7           ; (36) ~" + letter -> dialytika and perispomeni     U+007E U+0022 U+0069 <> U+1FD7      U+007E U+0022 U+0075 <> U+1FE7           ; (37) rho, medial sigma and punctuation     ; >r     U+003E U+0072 <> U+1FE4      ; <R     U+003C U+0052 <> U+1FEC      ; <r     U+003C U+0072 <> U+1FE5      ; medial sigma (sv)     U+0073 U+0076 <> U+03C3      ; question mark     U+003F <> U+037E      ; semicolon     U+003B <> U+0387       Then I ran the following command:               teckit_compile asciitogreek.map       and created the minimal working sample tex file to show you the problem:               \documentclass{scrreprt}     %\usepackage[cm-default]{fontspec}     %\setmainfont{Liberation Serif}     %\setromanfont{Liberation Serif}     %\usepackage{xunicode}     %\usepackage{fixltx2e}     \usepackage{polyglossia}     \setdefaultlanguage[spelling=new,latesthyphen=true]{german}     \setotherlanguage[variant=ancient]{greek}     \newfontfamily{\greekfont}[Mapping=asciitogreek]{FreeSerif}     \newfontfamily{\greekfontsf}[Mapping=asciitogreek]{FreeSans}     \newfontfamily{\greekfonttt}[Mapping=asciitogreek]{FreeMono}     \newcommand{\gk}[1]{\textgreek[variant=ancient]{#1}}          \begin{document}      \gk{d~wr>'a}           \gk{δῶρα}     \end{document}      Compilation worked fine. However, the ~ before the w is not displayed in the document. Instead, there is a little gap. This is apparently not a font issue since entering the unicode key directly works, as the second example shows. See this screenshot from the pdf: ![Greek circumflex not displayed correctly](http://i.stack.imgur.com/YU45l.png) However, I checked the mapping, and the unicode keys in there seem to be correct. Though probably something with the mapping must be wrong. Changing the Greek variant from "ancient" to "polytonic" does not help either. In case it matters, I am using texlive 2013.20140215-1 on kubuntu 14.04 trusty (LTS). Does anyone have a good idea?


title: Unable to print index at the beginning of the document

text: I am trying to compile a 'Table of Cases' and 'Table of Statutes' in the form of an index which should go before the main text. I am using the Oscola package, Biber, and imakeidx to put together the indices, but they will not show at the beginning of the document. Is there a way to fix this?


title: Table headers colliding with table title

text: I have a table that has some vertical column headers, but they keep colliding with the table title. I've tried making the top row taller but that did not help the solution, simply moved all the text higher but they were still colliding A simple example is given below               \documentclass[12pt,leftblank]{article}     \usepackage{amsmath, amsthm, amssymb, mathtools}     \usepackage{adjustbox}     \usepackage{rotating}          \begin{document}     \begin{table}[H]     \centering     \caption{Table Title}     \footnotesize     \begin{tabular}{lll}         & \begin{rotate}{60}Long Column Title 1\end{rotate} & \begin{rotate}{60}Long Column Title 2\end{rotate} \\         Row 1 & Data & Data\\         Row 2 & Data & Data\\     \end{tabular}     \end{table}          \end{document}


title: pgfplots - How can I define the bar width for a xbar plot?

text: I found the key `bar width` on page 82 in the manual. However, when I use it: > ! Package pgfkeys Error: I do not know the key '/pgfplots/bar width', to > which you passed '5pt', and I am going to ignore it. Perhaps you misspelled > it. Is there something (hopefully not so obvious) that I missed? ## MWE               \documentclass[     a4paper     ]{scrartcl}          \usepackage{     amsmath,     tikz,     pgfplots,     pgfplotstable,     }          \usepackage{lmodern}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \usepgfplotslibrary{groupplots}               \pgfplotstableread[col sep=comma]{     Process,ValueA,ValueB     1,66,70     2,66,40     3,24,20     4,52,60     5,64,30     6,12,10     }{\tableabcdef}          \begin{document}     \begin{center}     \begin{tikzpicture}[font=\small]     \begin{groupplot}[     group style={         group size=2 by 1, %2 cols 1 rows         horizontal sep=1cm,         %horizontal sep=2.5cm,     %   vertical sep=2.25cm,         ylabels at=edge left,         yticklabels at=edge left,     },     %     width=5cm,     height=7cm,     %     xlabel={Force in N},     ylabel={Process \#},     %     xbar,     bar width=5pt,     %     ytick=data,     nodes near coords,     nodes near coords align={right}     ]     \nextgroupplot     \addplot+ table [x=ValueA, y=Process] {\tableabcdef};     \nextgroupplot     \addplot+ table [x=ValueB, y=Process] {\tableabcdef};     \end{groupplot}     \end{tikzpicture}     \end{center}     \end{document}


How can I typeset this mathematical expression? ![enter image description here](http://i.stack.imgur.com/r624V.png)


title: How can create one bibliography file for different tex files in one project

text: I am beginner in Tex writing, and writing a report in Texmaker on Ubuntu 13.10. I have separate files for different chapters. Now I want to create one .bib file for all chapters including main file, where I keep references of all files. How can I create .bib file and how can I refer to this file from different files?


title: Tikz: How can I use the power of LaTeX to find the rotation angle of the ellipse?

text: I need to rotate my second ellipse around some angle. I have made guesses and determined it is around `88.5` degrees. However, I want to identify the exact angle. The code I have so far is:                 \documentclass{article}       \usepackage{tikz}       \usetikzlibrary{intersections, calc}       \begin{document}       \begin{tikzpicture}[scale = 1.5,         every label/.append style = {font = \small},         dot/.style = {outer sep = +0pt, inner sep = +0pt,           shape = circle, draw = black, label = {#1}},         dot/.default =,         small dot/.style = {minimum size = 2.5pt, dot = {#1}},         small dot/.default =,         big dot/.style = {minimum size = 5pt, dot = {#1}},         big dot/.default =         ]         \pgfmathsetmacro{\e}{0.2768}         \pgfmathsetmacro{\etilde}{0.6789}         \pgfmathsetmacro{\rone}{1}         \pgfmathsetmacro{\rtwo}{1.524}         \pgfmathsetmacro{\deltanu}{107}         \pgfmathsetmacro{\a}{1.36}         \pgfmathsetmacro{\am}{1.1442}         \pgfmathsetmacro{\b}{\a * sqrt(1 - \e^2)}         \pgfmathsetmacro{\btilde}{\a * sqrt(1 - (\etilde)^2)}         \pgfmathsetmacro{\c}{sqrt(\a^2 - \b^2)}         \pgfmathsetmacro{\ctilde}{sqrt(\a^2 - (\btilde)^2)}         \pgfmathsetmacro{\angle}{88.5}         \draw[dashed] (-2 * \c, 0) -- (0, 0);         \begin{scope}[rotate around = {\angle:(0, 0)}]           \draw[dashed] (2 * \ctilde, 0) -- (0, 0);         \end{scope}         \node[scale = .75, fill = orange, big dot = {below: \(F\)}] (F)         at (0, 0) {};         \node[scale = .75, fill = white, big dot = {below: \(F^*\)}] (FS)         at (-2 * \c cm, 0) {};         \draw[red, thick, name path = r2] (0, 0) circle (1.523679cm);         \draw[blue, thick, name path = r1] (0, 0) circle (1cm);         \draw[name path = ecc2768] (-\c, 0) ellipse (\a cm and \b cm);         \draw[name intersections = {of = ecc2768 and r1}] (F) -- (intersection-1)         coordinate (P1) node[fill, big dot = {right: \(P_1\)}, minimum size = 3pt]         {};         \draw[name intersections = {of = ecc2768 and r2}] (F) -- (intersection-1)         coordinate (P2) node[fill, big dot = {left: \(P_2\)}, minimum size = 3pt]         {};         \draw (P1) -- (P2) node[scale = .75, fill = white, shape = circle, pos = .5]         {\(c\)};         \draw let           \p0 = (F),           \p1 = (P1),           \p2 = (P2),           \n1 = {atan2(\x1 - \x0, \y1 - \y0)},           \n2 = {atan2(\x2 - \x0, \y2 - \y0)},           \n3 = {.35cm}         in (F) +(\n1:\n3) arc [radius = \n3, start angle = \n1, end angle = \n2]         node[scale = .45, pos = 0.5, above = 10pt] {\pgfmathparse{\n2 - \n1}%                       $\pgfmathprintnumber{\pgfmathresult}^{\circ}$         };         \begin{scope}[rotate around = {\angle:(0, 0)}]           \draw (\ctilde, 0) ellipse (\a cm and \btilde cm);           \node[scale = .75, fill = white, big dot = {above: \(\tilde{F}^*\)}] (FST)           at (2 * \ctilde cm, 0) {};         \end{scope}       \end{tikzpicture}       \end{document}      ![enter image description here](http://i.stack.imgur.com/jul10.png) From the picture, we can see that guess seems decent but it may or may not be correct. Is there a some built in function that will let us rotate the near side of the ellipse to the the intersection point P2 and the far side to P1?


title: How to add the word "page" or "pages" in the Glossary

text: I would like to add the word "page" or "pages" in the Glossary. The following is the code. At the end of each entry for Glossary, there is a page number. But I would like it to display like: (page 1), or (pages 1-4), or (pages 1, 2). Also, how to enlarge the space between the abbreviation and description? How can I achieve these? Any help will be appreciated.                   \documentclass[a4paper]{book}         \usepackage[pagebackref=true,hyperindex=true,hyperfigures=true,pdfduplex=DuplexFlipLongEdge]{hyperref}         \usepackage{datatool}           \usepackage[toc,acronym]{glossaries}          \usepackage[xindy]{imakeidx}         \usepackage{amsmath,amsfonts}         \makeindex         \makeglossaries          \newglossaryentry{2D}{name=2D,           description={2 dimensional}}         \renewcommand*{\glossarypreamble}{%           \label{\currentglossary}%         }         \begin{document}          Some text about \gls{2D}.         \printglossaries         \end{document}


title: Figures for the new Evolve user guide

text: I don't know how many Mercurial users are on this site, but if you do use Mercurial, you may have heard of the Mercurial killer extension, Evolve, which is eventually planned to be in Mercurial core. There is a new user guide out now. You can see it at Evolve: User Guide As you can see, this guide has 12 figures. It seems to me these figures are crying out for some TikZ love. So, I thought it would be nice if the community could get together and create figures for this guide. Once these exist, creating more figures would probably be easier. I realise this is not what this site is customarily used for, but since it is in a good cause (a widely used piece of free software) perhaps people could stretch a point. Once produced, it would not be difficult to merge these figures into the user manual. I was thinking that we could mark everything community wiki, and each answer could be for one figure. Here is the source code repository for Evolve on Bitbucket. Here the figures. The figures that correspond to the figures in the user guide are of the form `figure-ug{i}.svg`, where i = 1,...,12. UPDATE: Looks like I jumped the gun a bit here. It was pointed out to me that the maintainers may not be willing to accept TikZ figures, even if produced. I've written to the mercurial devel mailing list, and I'll update this if and when I hear from them. If they are not willing to accept the figures, there seems little point in pursuing this. UPDATE 2: As people here predicted, Pierre-Yves was not ehthusiastic about this. Evolve is his baby. Here are some extracts from yesterdays #mercurial IRC channel. Given these comments, it doesn't look likely this is going to happen, though it came up during the chat (details omitted) that another Mercurial developer (smf in the chat transcript below) had independently suggested the same thing, and said he had done some preliminary TikZ work on the diagrams. However, I've not seen this work yet. I'll leave this question open for now, if that is Ok. If not, let me know.               12:27 < marmoute> faheem: not super enthousiastic at the tikz idea     12:32 < faheem> marmoute: so i heard via durin42. are you familiar with it?     12:39 < marmoute> faheem: I've some exposure to it. but I fill like it going              to be a pretty high entry barrier for contributors. Both from a skill              perspective and a build dependency one     12:40 < faheem> marmoute: Ok. The  build dependency bit can be automated,             though     12:41 < faheem> anyway, the tex.sx people predicted it wouldn't fly.     12:41 < faheem> as you could see from the comments there.     12:42 < marmoute> faheem: the dependency bit can be automated on proper             operating system with proper dependency management.     12:43 < marmoute> (and I kind of hate when I've to download a fw GB of latex             package on crappy hotel wifi when I do a dist-upgrade)     12:44 < faheem> marmoute:  is there some problem in using "proper operating             system with proper dependency management"?     12:44 < smf> faheem: I have a fork of mutable-history that implements TikZ     12:44 < marmoute> [...] I would like to have a a nice and automated way to              generated the diagrams. But I feel like we did not saw anything                    signicantly better than svg.     12:46 < marmoute> I can still be convinces de the tkz is better and less             troubles. but is has to be amazing     12:46 < faheem> marmoute: tikz is pretty amazing     12:47 < smf> TikZ is da bomb.com     12:48 < faheem> marmoute: tikz is also quite automated. yes, it is a good bit             of extra overhead     12:51 < marmoute> what could convince me is a easy a lightweight syntax to             write the kind of diagram we need in evolve. The exchange test is a                good benchmark


title: Gnuplot invisible

text: I'm trying to plot two implicit curves (using pgfplots and raw gnuplot) but they don't appear in the document. In gnuplot it works just fine so I guess it has something to do with pgfplots but i can't figure out, what the problem is. Example:               \documentclass{article}     \usepackage{pgfplots}     \begin{document}     \begin{tikzpicture}     \begin{axis}     \addplot +[raw gnuplot] gnuplot {     unset key     set contour base;     set cntrparam levels discrete 0.003;     unset surface;     set view map;     set isosamples 50,50;     set xrange [0:1]     set yrange [-1:1]     f(a,c) = a*cosh(c/a)-N     ell1(a,c) = (c/z)**2+(1/(1-cosh(z)))**2*(a-N/(cosh(z)))**2-(N/cosh(z))**2       N = 1     z = 1.19968     splot f(x,y),ell1(x,y)     };     \end{axis}     \end{tikzpicture}     \end{document}


title: Babel with UKenglish does not use British English hyphenation?

text: I am having trouble understanding the hyphenation rules of "babel". According to this question, selecting either `UKenglish` or `british` should result in Oxford dictionary type hyphenation. But it doesn't:               \documentclass{article}     \usepackage[UKenglish]{babel}          \begin{document}     Foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar produce foo bar.     \end{document}      This hyphenates `pro-duce`: ![enter image description here](http://i.stack.imgur.com/NtP6N.png) Which is in accordance with American English, e.g., Merriam -Webster, whereas according to Oxford it should be `prod-use`.


title: Why do I get so many "underfull box" and "runaway argument" errors?

text: The code below was working for a while, but now, when I compile it, I get many "underfull box" warnings and "runaway argument" errors. Why?               \documentclass{article}          \usepackage{tikz}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{fancyhdr}     \usepackage[T1]{fontenc}     \usepackage{fourier}          % document size parameters          \setlength{\oddsidemargin}{0.0in}     \setlength{\evensidemargin}{0.0in}     \setlength{\textheight}{8.4in}     \setlength{\textwidth}{6.5in}     \setlength{\voffset}{-0.40in}     \setlength{\headsep}{26pt}     \setlength{\parindent}{0pt}     \setlength{\parskip}{6pt}          % header information          \usepackage{environ}               \pagestyle{fancyplain}     \lhead{\large{{\bf MATH 122: Complex Analysis} }}     \rhead{\large{{\bf Spring Semester 2014}}}          % user defined macros          \renewcommand\Re{\operatorname{Re}}     \renewcommand\Im{\operatorname{Im}}     \newcommand\Arg{\operatorname{Arg}}               \newcommand{\secskip}{\vspace{6pt}}     \newcommand{\vect}[1]{\vec{#1}}          \begin{document}          \begin{Large}      \large      \flushright\textbf{{Kalvin Ogbuefi}}\\           \flushleft          \begin{center}     \textbf{Homework Assignment \# 4}\\     \textbf{Due: Wednesday, February 25, 2014}     \end{center}     \end{Large}          \begin{large}          When you are asked to prove or disprove a statement you \textbf{must} use appropriate proof structure with complete sentences.          \begin{enumerate}          \item Use the $\epsilon-\delta$ definition of limits to show the following limits:     \begin{enumerate}     \item $\lim_{z \to z_0} \Re(z) = \Re(z_0)$\\           Let $\epsilon > 0$, therefore we choose $\delta = \epsilon$\\     Then, if $0<|z-z_0|<\delta=\epsilon$, we have:\\      \begin{align*}     |Re(z)-Re(z_0)|<\epsilon \\     &=|Re(z-z_0)|<\epsilon\\     &=|Re(z-z_0)|\leq|z-z_0|<\delta=\epsilon\\     \text{as desired.}     \end{align*}          \item $\lim_{z \to 1} \frac{1}{(z-1)^3} = \infty$\\          Let $\epsilon > 0$, we choose $\delta = (\epsilon)^{1/3}$\\     Then, if $0<|z-1|<\delta$ we have:\\     $$|z-1|^{3}<\delta^{3}=\epsilon$$\\      and so:\\     $$|\frac{1}{z-1}|^{3}<\frac{1}{\epsilon}$$\\     \begin{align*}     \text{as desired.}     \end{align*}     \item $\lim_{z \to 0} \frac{\overline{z}^2}{z} = 0$\\          Let $\epsilon>0$, we choose $\delta=\epsilon$\\      Then for:\\     $$0<|z-0|=|z|<\delta=\epsilon$$     We have:     \begin{align*}     &|\frac{\overline{z}^{2}}{z}-0|\\     &=|\frac{\overline{z}^{2}}{z}|\\     &=\frac{|\overline{z}|^{2}}{|z|}\\     &=\frac{|{z}|^{2}}{|z|}\\     &=|z|<\epsilon\\     \text{as desired.}     \end{align*}               \end{enumerate}          \item Find the following limits:          \begin{enumerate}     \item $\lim_{z \to 2 + i} (z^2 - 4z + 2 + 5i)$\\          First we begin by expanding the complex numbers then apply limit:\\     \begin{align*}     &=\lim_{z \to 2 + i} (x^2-y^2+2ixy - 4x-4iy + 2 + 5i)\\     &=\lim_{z \to 2 + i} (x^2-y^2-4x+2+i(2xy-4y+5))\\     &=-3+i5\\     \text{as desired.}     \end{align*}          \item $\lim_{z \to i} \frac{z^4 -1}{z-i}$\\          We begin by rewriting the limit according to the roots of unity:\\      $$\lim_{z \to i} \frac{(z-i)(z+i)(z+1)(z-1)}{(z-i)}$$     Simplifying yields:\\     $$\lim_{z \to i} (z+i)(z-1)(z+1)$$     Applying the limit will yield:\\     $$=-4i$$     \item $\lim_{z \to i} \frac{z^2 + 4z + 2}{z + 1}$\\     We begin by rewriting the limit:\\      $$\lim_{z \to i} \frac{x^2-y^2+4x+2+i(2xy+4y)}{x+1+iy}$$\\     Now we take the complex conjugate\\     $$\lim_{z \to i} \frac{x^2-y^2+4x+2+i(2xy+4y)}{x+1+iy} \frac{(x+1)-iy}{(x+1)-iy}$$     Simplifying yields:\\     $$\lim_{z \to i} \frac{(x^2-y^2+4x+2)+y(2xy+4y)+i((2xy+4y)(x+1)+y(x^2-y^2+4x+2))}{(x+1)^2+y^2}$$     Applying the limit will yield:\\     $$=\frac{5+i5}{2}$$     \end{enumerate}          \item Let $f(z) = \frac{z^2}{|z|^2}$     \begin{enumerate}     \item Find the limit as $z \to 0$ along the line $y = x$.           Let $f(z)=\frac{x^2-y^2+i(2xy)}{x^2+y^2}$\\           Along y=x, we have\\     \begin{align*}     &=\lim_{x \to 0} \frac{x^2-x^2+(2x x))}{x^2+x^2} \\     &=\lim_{x \to 0} \frac{i2x^2}{2x^2}\\     &=-i\\     \end{align*}     \item Find the limit as $z \to 0$ along the parabola $y = x^2$.\\     Along $y=x^2$ we find:\\     \begin{align*}     &=\lim_{x \to 0} \frac{x^2-x^4+(2x x^2))}{x^2+x^4} \\     &=\lim_{x \to 0} \frac{1-x^2+i2x}{1-x^2}\\     &=1\\     \end{align*}          \item What can you conclude about the limit of $f(z)$ as $z \to 0$?\\          Since the limits don't match the limit does not exist at that point.     \end{enumerate}          \item If $f(z)$ and $F(z)$ are two complex valued functions and     $$\lim_{z \to z_0} f(z) = w_0 \text{ and } \lim_{z \to z_0} F(z) = W_0$$     then show that     $$\lim_{z \to z_0} f(z) F(z) = w_0 W_0.$$\\          First of all, we have to use the $\epsilon-\delta$ definition of limits to use:\\     $$\lim_{z \to z_0} F(z) = W_0$$\\     There exists a $\delta$ s.t if $0<|z-z_0|<\delta$ then $|F(z)-W_0|<\sqrt{{\epsilon}}$\\     Likewise for:\\     $$\lim_{z \to z_0} f(z) = w_0$$\\     There exists a $\delta$ s.t if $0<|z-z_0|<\delta$ then $|f(z)-w_0|<\sqrt{{\epsilon}}$\\          So! If $\delta=min(\delta_1,\delta_2)$ , then:\\          \begin{align*}     &|f(z)-w_0||F(z)-W_0|\\     &=|(f(z)-w_0)(F(z)-W_0)|\\     &=|(f(z)-w_0)(F(z)-W_0)-0|\\     &<\sqrt{\epsilon}\sqrt{\epsilon}=\epsilon\\     \end{align*}     and so,\\     $$\lim_{z \to z_0} (f(z)-w_0)(F(z)-W_0)=0$$\\          Now to evaluate the limit using that answer we manipulate both sides to make the equation look like:\\     $$\lim_{z \to z_0} [(f(z)-w_0)(F(z)-W_0)+w_0W_0]=w_0W_0$$          If we foil the inside and use the properties of limits we'll find the solution to be:\\     $lim_{z \to z_0} [(F(z)f(z)-f(z)W_0-F(z)w_0+2w_0W_0]=w_0W_0$\\     $=lim_{z \to z_0} [F(z)f(z)]-lim_{z \to z_0} W_0[lim_{z \to z_0}f(z)]-w_0[lim_{z \to z_0}F(z)]+lim_{z \to z_0} 2w_0W_0=w_0W_0$\\     $$w_0W_0-2w_0W_0+2w_0W_0=$$\\     $$w_0W_0$$\\     So therefore through using the limit definition were we able to prove this limit.     \item Use mathematical induction, and the property you proved in the previous exercise to show:     $$\lim_{z \to z_0} z^n = z_0^n.$$\\          First we begin with the base case where $n=1$\\     $$lim_{z \to z_0} z^1=z_0^1$$\\          With the Inductive hypothesis we assume $n=k$ so $lim_{z \to z_0} z^k=z_0^k$.\\     Therefore we use this if $n=k+1$\\          $\lim_{z \to z_0}  z^{k+1}=\lim_{z \to z_0} z^{k}z^1$\\     =$(\lim_{z \to z_0} z^k)(\lim_{z \to z_0} z^1)$\\     =$z_0^{k}z_0$\\     =$z_0^{k+1}$\\          \item  Let $f(z)$ be continuous for all values of $z$. Prove that $g(z) = f(\overline{z})$ is also continuous for all $z$.     Since this is true:\\     $$lim_{z \to z_0} f(z)=f(z_0)$$\\           We want to show that this is also true!:\\          $$lim_{z \to z_0} f(\overline{z})=f(\overline{z_0})$$\\           So, $|f(z)-f(z_0)|<\epsilon and |f(\overline{z})-f(\overline{z_0)|$\\          So, since:\\          \begin{align*}     &|z-z_0|\\     &=|\overline{z-z_0}|\\     &=|\overline{z}-\overline{z_0}|\\     \end{align*}               We have $0<|\overline{z}-\overline{z_0}|<\delta$ and so\\          $f(\overline{z})-f(\overline{z_0})<\epsilon$                              \item Determine where the following functions are continuous:     \begin{enumerate}     \item $\frac{z+1}{z^2+1}$     \item $\frac{z^2 + 6z + 5}{z^2 + 3z + 2}$     \end{enumerate}          \item Are there any points where $f(z) = (\overline{z})^2$ is differentiable?  By definition the derivative (if it exists) is defined by the following limit:          $$\lim_{\Delta z \to 0} \frac{ f(z_0 + \Delta z) - f(z_0)}{ \Delta z} $$          Decide for yourself if the limit exists by considering the following:          \begin{enumerate}     \item Determine the limit as $z \to z_0$ along vertical lines:          $$\lim_{\Delta z \to 0} \frac{f(z_0 + \Delta z) - f(z_0)}{ \Delta z} = \lim_{\Delta y \to 0} \frac{ f\left( x_0 + i (y_0 + \Delta y)\right) - f(x_0,y_0)}{ i \Delta y}$$          \item Determine the limit as $z \to z_0$ along horizontal lines:          $$\lim_{\Delta z \to 0} \frac{f(z_0 + \Delta z) - f(z_0)}{ \Delta z} = \lim_{\Delta x \to 0} \frac{ f\left( (x_0 + \Delta x) + i y_0\right) - f(x_0,y_0)}{ \Delta x}$$               \item Decide for yourself where $f(z)$ is differentiable.      \end{enumerate}          \end{enumerate}          \end{large}          \end{document}


title: Bibliography not compiling

text: I have a latex file for my dissertation wherein I `include` several chapters. Everthing (`\ref`, figures) compiles file **except** my bibliography. Scouring the internet does me no help as this seems to be full of deadends. The error message from `bibtex` that I get is:                bibtex Thesis_Final_ps_11142012a.aux      This is BibTeX, Version 0.99c (TeX Live 2009/Debian)     The top-level auxiliary file: Thesis_Final_ps_11142012a.aux     A level-1 auxiliary file: Applications.aux     A level-1 auxiliary file: LiteratureReview.aux     A level-1 auxiliary file: Microgravity.aux     A level-1 auxiliary file: modified-evolution-equation-11_08_2012.aux     A level-1 auxiliary file: ConstitutiveRelationship_05_17_2012a.aux     A level-1 auxiliary file: MaximizingWavenumber_11082012.aux     A level-1 auxiliary file: Validation_ps.aux     A level-1 auxiliary file: Results_1.aux     A level-1 auxiliary file: Contributions.aux     A level-1 auxiliary file: mathfluid_3.aux     I found no \bibdata command---while reading file Thesis_Final_ps_11142012a.aux     I found no \bibstyle command---while reading file Thesis_Final_ps_11142012a.aux     (There were 2 error messages)      My latex file is:               \documentclass[12pt,oneside]{book}          \usepackage{MTU_Thesis_Style21}     %     %Stuff like names that I don't want to reveal on this forum     %     \include{Applications}                                            \include{LiteratureReview}               %% Bibliography     \bibliographystyle{/home/user/Research/Dissertation/Draft/unsrtnat}                      \bibliography{/home/user/Research/Dissertation/Draft/dnaneet_MASTER}              \end{document}          %% eof      My preamble (MTU_Thesis_Style21) has:               \usepackage{graphicx}     %\usepackage{float}     \usepackage[section]{placeins}         \usepackage{caption}     \captionsetup{margin=10pt,font=small,labelsep=period,labelfont=bf}     % --------     \usepackage{lscape}         % allows for landscape tables and figures     \usepackage{paralist}       % enancements to list environment     \usepackage{array}          % enhancements to array and tabular environments     \usepackage[usenames]{color}         \usepackage{url}                 \usepackage{longtable}      % multipage tables     \usepackage{ifthen}     \usepackage{ifpdf}     \usepackage{setspace}       % easy single or doublespacing     \usepackage{amsmath,amsfonts,amssymb}     \usepackage{rotate}     \usepackage{subfigure}     \usepackage{subfig}     \usepackage{wrapfig}     \usepackage{listings}       % for listing computer code such as matlab     \usepackage[bw]{mcode}      % for matlab code with listings package     \usepackage[square,comma,sort&compress]{natbib} % enhances bibtex citations     % \usepackage{biblatex}     \usepackage{setspace}       % \singlespacing, \onehalfspacing, \doublespacing, ...          %%%%%%%%uyser%%%%%%%%%%%%%%%55     \usepackage{epsfig}     \usepackage{epstopdf}     \usepackage{textcomp}     \usepackage{multirow}     \usepackage{subfig}     \usepackage{paralist}     \usepackage{changepage}      I can't seem to figure out whats going wrong. When I try to bibtex my aux file without all these `\include` statements, things are fine!!!! Why are most of my citations missing from my `aux` file? `:(` I am beginning to hate latex with a passion. ## Aux file:               \relax      \ifx\hyper@anchor\@undefined     \global \let \oldcontentsline\contentsline     \gdef \contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}     \global \let \oldnewlabel\newlabel     \gdef \newlabel#1#2{\newlabelxx{#1}#2}     \gdef \newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}     \AtEndDocument{\let \contentsline\oldcontentsline     \let \newlabel\oldnewlabel}     \else     \global \let \hyper@last\relax      \fi          \providecommand*\HyPL@Entry[1]{}     \HyPL@Entry{0<</S/r>>}     \HyPL@Entry{2<</S/r>>}     \@writefile{toc}{\contentsline {chapter}{\hbox to\@tempdima {\hfil }Table of Contents}{iii}{chapter*.1}}     \citation{Krishnamoorthy1995a}     \citation{Krishnamoorthy1995a}     \citation{Krishnamoorthy1995a}     \citation{Oron2000b}     \citation{Oron2000b}     \@writefile{toc}{\contentsline {chapter}{\hbox to\@tempdima {\hfil }List of Figures}{xiii}{chapter*.2}}     \@writefile{toc}{\contentsline {chapter}{\hbox to\@tempdima {\hfil }List of Tables}{xiv}{chapter*.3}}     \@input{Applications.aux}     \HyPL@Entry{16<</S/D>>}     \@input{LiteratureReview.aux}     \@input{Microgravity.aux}     \@input{modified-evolution-equation-11_08_2012.aux}     \@input{ConstitutiveRelationship_05_17_2012a.aux}     \@input{MaximizingWavenumber_11082012.aux}     \@input{Validation_ps.aux}     \@input{Results_1.aux}     \@input{Contributions.aux}     \@input{mathfluid_3.aux}      ## Causative of the error message The error messages that `bibtex` gave me were as a result of two of the `.tex` files that I included using `\include`               %mathfluid.tex     \input{format_mathplots_3}          \begin{document}     \renewcommand*{\thesubfigure}{}     \input{include_grphx_3}     \end{document}     %% eof      The above `mathfluid.tex` that I used in one of the `\include` called on another tex file via `\input{format_mathplots_3}`. This `format_math_plots.tex` was again, erroneously included in the main file. Somehow (I don't know why) bibtex didn't like that althoug this file didn't have any citations. It might be as a result of conflicting `aux` files but I am clueless about it. Would anyone care to offer an explanation for this? `:)`


title: Mixing some math fonts

text: I want the symbols such `\int` or `\sum` from the Latin Modern Math font and the `\nabla` and all the greek letter such `\alpha \beta \psi` etc from the Latin Modern Math but all numbers and letters from the EB Garamond. How can i do that?               \documentclass{article}     \usepackage{amsmath}     \usepackage[T1]{fontenc}     \usepackage{fontspec}     \usepackage{unicode-math}          \setmathfont[range=\mathup]  {EB Garamond}     \setmathfont[range=\mathbfup]{EB Garamond}      \setmathfont[range=\mathbfit]{EB Garamond}     \setmathfont[range=\mathit]  {EB Garamond}          \usepackage{mathptmx}          \setmainfont{EB Garamond}          \begin{document}     \[ \int f(\alpha+x)=\sum\beta \]     Some text\dots     \begin{equation}     \begin{split}     \frac{\partial^2 \nabla}{\partial \nabla^2}&=x^2 + yimc^2=z^2 \\                                                &=\mathrm{x^2 + y^2 = z^2} \\                                                &=\mathbf{x^2 + y^2 = z^2}     \end{split}     \end{equation}          \begin{equation}     i\hbar \frac{\partial \psi }{\partial t}=\frac{\hbar c}{i}\left(\alpha _1\frac{\partial \psi }{\partial x^1}+\alpha _2\frac{\partial \Psi }{\partial x^2}+\alpha _3\frac{\partial \psi }{\partial x^3}\right)+\alpha _4mc^2\psi     \end{equation}          \end{document}      And the shape of `\partial` how this example               \documentclass{article}          \usepackage[T1]{fontenc}          \usepackage{txfonts}          \begin{document}          \begin{equation}     \frac{\partial}{\partial}     \end{equation}          \end{document}


title: LaTeX: splitting the words

text: I have a quite long text, and I sometimes I have words breaking in a weird way, so I wonder if there is some command in LaTeX which will prevent the splitting of words in the whole document?


title: How to insert a JPEG picture using LaTeX

text: I try to insert a picture using the code below               \usepackage{pgf}          \begin{figure}[h]     \centering     \includegraphics[width=2.5in]{image/Test}     \caption{Example TA}     \label{fig:Reinforcement}     \end{figure}      However, the error says `Missing $ inserted`; may someone help me?


title: Removing page number from title frame without changing the theme

text: I am using theme Madrid and would like to keep my title page and the rest of my presentation as it is and ONLY make the following changes: 1- Don't count title frame towards the total number of frames 2- Do not enter frame number and total number of frames in the title frame. For number 1, I can manually change total number of frames available and I was wondering if there is a more automatic way to do it.               \documentclass {beamer}     \mode<beamer>{\usetheme{Madrid}}     \title[Test Title]{Test}          \begin{document}     \begin{frame}     \titlepage     \end{frame}     \begin{frame}     \frametitle{First test frame}          \begin{itemize}     \item Item 1     \item item 2     \end{itemize}     \end{frame}          \begin{frame}     \frametitle<beamer>{Second frame}     \begin{block}<beamer>{Example block}     Some text in the block     \end{block}     \end{frame}          \end{document}      This code has three frames; first one title and the next two are my actual presentation. Currently the page numbers in the slides are 1/3, 2/3, and 3/3. What I am ideally looking for is: keeping the presentation as it is and changing the page numbers to "nothing in the title fram" and 1/2 in the second frame and 2/2 in the third frame. I hope it is clear.


title: Why does the objects get shifted to the left when using clipping?

text: Without clipping, the output position is correct: ![enter image description here](http://i.stack.imgur.com/WS05o.png) With clipping, the output position is wrong as it gets shifted to the left: ![enter image description here](http://i.stack.imgur.com/F7PuQ.png)               \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pst-eucl}               \psset     {         unit=0.8cm,         runit=\psunit,         fillstyle=solid,         PointName=none,         PointSymbol=none,     }          \pstVerb     {         true setglobal         globaldict begin         /theta 76 def         /Major 6.0 def         /Minor 3.3 def         /p2c {dup 3 1 roll cos mul 3 1 roll sin mul} bind def         end         false setglobal     }          \def\DeclareNodes     {%         \pstGeonode             (0,-8){Bottom}%             (0,8){Top}%             (0,0){center}%             (0,2.7){A}%             (0.5,2.7){B}%             (1,3.25){C}%             (1.2,1.3){D}%             (1.3,1.0){E}%             (2.0,1.0){F}%             (3.0,1.0){G}%             (3.0,2.2){H}%             (!Minor Major theta p2c){I}%             (!Minor Major theta neg p2c){J}%             (4,-2){K}%             (4,0){L}%             (2.2,-1.8){M}%             (1.5,-1){N}%             (1,-1){O}%             (0,-3.2){P}%         \pstOrtSym{Bottom}{Top}{B,C,D,E,F,G,H,I,J,K,L,M,N,O}%     }          \def\RightPart     {%         \psline(A)(B)(C)%         \psbezier(D)(E)(F)%         \psbezier(G)(H)(I)%         \psellipticarcn[dimen=middle](center)(!Major Minor){(I)}{(J)}%middle must be set!         \psbezier(K)(L)(M)%         \psbezier(N)(O)(P)%     }               \def\LeftPart     {%         \psbezier(O')(N')(M')%         \psbezier(L')(K')(J')%         \psellipticarcn[dimen=middle](center)(!Major Minor){(J')}{(I')}%middle must be set!         \psbezier(H')(G')(F')%         \psbezier(E')(D')(C')%         \psline(B')%     }%               \begin{document}               \begin{pspicture}[showgrid=top](-7,-4)(7,4)         \DeclareNodes         \pscustom*{\RightPart\LeftPart\closepath}     \end{pspicture}               \begin{pspicture}[showgrid=top](-7,-4)(7,4)         \DeclareNodes         \begin{psclip}{\pscustom[linestyle=none]{\RightPart\LeftPart\closepath}}                 \psframe*(-7.5,-5)(7.5,5)         \end{psclip}     \end{pspicture}               \end{document}


title: Emacs AUCTeX View command

text: I need help using the `View` command in AUCTeX running in Emacs. This is essential for viewing PDFs and without it I can not make TeX documents. In my `.emacs` file I have the following (which was created by `M-x customize- variable`):               (custom-set-variables      ;; custom-set-variables was added by Custom.      ;; If you edit it by hand, you could mess it up, so be careful.      ;; Your init file should contain only one such instance.      ;; If there is more than one, they won't work right.      '(TeX-view-program-list (quote (("Preview" "\"open -a Preview.app %o\""))))      Now I open up a `.tex` document and enter `C-c C-c` (I have already compiled): Emacs gives: `Command: (default View)` I hit enter Emacs gives this default command: `View command: dvi2tty -q -w 132` I hit enter and Emacs says: `View: done.` but displays nothing in a PDF reader! `dvi2tty` is intended for text only devices, and the command actually creates a new buffer in Emacs which attempts to display the PDF file (it is very messy). Anyway, if I replace `dvi2tty -q -w 132` with `open -a Preview.app %o' (I am running Mac os X 10.8.4 and Preview is the name of the default PDF reader) then Preview opens the PDF!   1. How do I change the default `View command` from `dvi2tty -q -w 132` to `open -a Preview.app %o`? All help is greatly appreciated!


title: Is there a way to force text to NOT wrap to the next line?

text: Is there a way to force text (in a `beamer` slide) not to overflow to the next line, regardless of whether it fits into the page or not?


title: Use of templates in org mode of emacs

text: How can I use following template in an org mode on latex. This will help me understand the org mode latex. Kindly explain the changes you make in the template so that I understand the org mode better (Teach me fishing!) Regards               \documentclass{article}     \usepackage{eso-pic}     \usepackage{fancyhdr}     \usepackage{blindtext} % just for the example     \usepackage[headsep=3cm,top=5cm]{geometry}     \usepackage{datatool}     % create sample csv file     \begin{filecontents*}{test.csv}     Id,myauthor,mydate,myaddress     1,Sebastian,12.12.2012,XYZ road,XYZ city     2,Rose,12.12.2013,XYZ road,abc city     \end{filecontents*}     % load data     \DTLloaddb{mydata}{test.csv}     \AddToShipoutPicture{%       \AtTextUpperLeft{%         \makebox(420,75)[lt]{%           \footnotesize%           \begin{tabular}{@{}*{3}{p{4.5cm}}@{}}%           \textbf{Author}\newline\myauthor&%           \textbf{Date of birth}\newline\mydate&%           \textbf{Address}\newline\myaddress%           \end{tabular}%     }}}     \pagestyle{fancy}     \newcommand{\myauthor}{user34083}     \newcommand{\mydate}{December 26, 1997}     \newcommand{\myaddress}{26 Washington Ave., Manhattan, New York.\newline United States of America}     % Define a command that fetches data for the row with the ID     % given in the argument     \newcommand*{\fetchdata}[1]{%     % fetch the first matching row        \dtlgetrowforvalue{mydata}{\dtlcolumnindex{mydata}{Id}}{#1}%     % Lookup the required values from this row        \dtlgetentryfromcurrentrow{\myauthor}{\dtlcolumnindex{mydata}{myauthor}}%        \dtlgetentryfromcurrentrow{\mydate}{\dtlcolumnindex{mydata}{mydate}}%        \dtlgetentryfromcurrentrow{\myaddress}{\dtlcolumnindex{mydata}{myaddress}}%     }          % fetch data for Id=2     \fetchdata{2}          \begin{document}          \blinddocument % just for the example     \end{document}


title: How to define numbered theorem, definition at ConTeXt ?(ConTeXt)

text: I have problem about define numbered like theorem, definition, corrollary etc at ConTeXt ? You can see like this my screenshot and my code (sorry, i copy and paste from other document) : ![theorem](http://i.stack.imgur.com/s8VXv.jpg) and my code :               % language=uk          % author  : Hans Hagen, PRAGMA ADE, NL     % license : Creative Commons, Attribution-NonCommercial-ShareAlike 3.0 Unported          \usemodule[art-01,abr-02]     \defineenumeration[definisi]     [text=Definisi,style=italic]      \defineenumeration[teorema]     [text=Teorema,style=italic,      after=\blank]     \definecolor[maincolor] [r=.4]     \definecolor[extracolor][b=.4]     \definereferenceformat[eqref][left=(,right=)]     \setupbodyfont       [10pt]          \usesymbols       [cc]          \setuptyping       [color=extracolor]          \setuptype       [color=extracolor]     \setuplabeltext[chapter=BAB~~]     \setuphead[chapter][header=empty,         alternative=middle,     numbercommand=\groupedcommand{}{\blank[0.5cm]},         after={\blank[0.5cm]},color=maincolor]     \setuphead       [section]       [color=maincolor]          \setupinteraction       [hidden]          \startdocument       [metadata:author=Hirwanto,        metadata:title=Vector In ConTeXt,        author=Hirwanto,        affiliation=Universitas Gadjah Mada,        location=Yogyakarta,        title=Vector In ConTeXt,        extra-1=VECTOR,        extra-2=IN CONTEXT,        extra-3=HIRWANTO,        support=www.l-hirwanto.blogspot.com,        website=www.ugm.ac.id]          \startMPpage              StartPage;              numeric n, m ; n := 3 * 4 ; m := 4 * 4 ;         numeric w, h ; w := PaperWidth/n ; h := PaperHeight/m ;         numeric max ; max := 20 ;              for i=1 upto n :             for j=1 upto m :                 fill                     unitsquare                     xysized (w,h)                     shifted ((i-1)*w,(j-1)*h)                     withcolor (.5[darkblue,white] randomized(.75,.75,.75))                 ;             endfor ;         endfor ;              path p ; p := Page enlarged -5mm ;              pair a[] ; % <              a[1] := .80[lrcorner p,urcorner p] ;         a[2] := .50[llcorner p,ulcorner p] ;         a[3] := .20[lrcorner p,urcorner p] ;              pair b[] ; % \              b[1] := ulcorner p ;         b[2] := center   p ;         b[3] := lrcorner p ;              path c[] ; % from < (xml) to \ (tex)              c[1] := a[1] .. b[1] ;         c[2] := a[2] .. b[2] ;         c[3] := a[3] .. b[3] ;              linecap := butt ;              numeric fraction ;              for i=1 step 1 until max :             fraction := i/max ;             draw                 ((point fraction along c[1]) -- (point fraction along c[2]) -- (point fraction along c[3]))                 withpen pencircle scaled 5mm                 withcolor .75[(max+1-i)*red/n,i*blue/max]                 withtransparency (1,.5)                 ;         endfor ;              draw             textext.rt("\ssbf{\documentvariable{extra-1}}")             xsized (7w)             shifted (.8w,3h)             withcolor white         ;              draw             textext.rt("\ssbf{\documentvariable{extra-2}}")             xsized (8w)             shifted (w,h)             withcolor white         ;              draw             textext.ulft("\ssbf{\documentvariable{extra-3}}")             rotated 90             ysized (5.9h)             shifted (PaperWidth-1.2w,PaperHeight/2+2.95h)             withcolor white         ;              StopPage;          \stopMPpage          \startsubject[title={Contents}]          \placelist[chapter,section,subsection][alternative=c, criterium=all,interaction=all,color=maincolor]     \stopsubject     \chapter{Plase}     \section{FR}     Pada bab ini dibahas tentang konsep yang mendasari pembahasan di bab-bab berikutnya. Konsep dasar yang dibahas pada bab ini antara lain: sistem bilangan real, integral Riemann,     \subsection{LEon}     \chapter{LAet}     \startdefinisi     Saya belum berhasil     \stopdefinisi     \startsubdefinisi     Saya     \stopsubdefinisi     \startdefinisi     Sistem bilangan real merupakan salah satu sistem aljabar yang sering digunakan dalam teori integral. Oleh karena itu, sifat dai sistem bilangan real yang akan bermanfaat pada pembahasan selanjutnya. Untuk penotasian, yang dimaksud ${\mathbb R}$ tidak lain adalah himpunan bilangan real.     Pada subbab ini pembahasan mencakup beberapa sifat bilangan $\varepsilon$, nilai mutlak, persekitaran, dan partisi pada himpunan.     \stopdefinisi     \startteorema     Diberikan sebarang $\varepsilon >0$ dan $a\in {\mathbb R}$. Jika $0\leq a<\varepsilon$ maka $a=0$.     \stopteorema     Saya masih juga belum berhasil     \section{Sistem Bilangan Real}     Sistem bilangan real merupakan salah satu sistem aljabar yang sering digunakan dalam teori integral. Oleh karena itu, sifat dai sistem bilangan real yang akan bermanfaat pada pembahasan selanjutnya. Untuk penotasian, yang dimaksud ${\mathbb R}$ tidak lain adalah himpunan bilangan real.     Pada subbab ini pembahasan mencakup beberapa sifat bilangan $\varepsilon$, nilai mutlak, persekitaran, dan partisi pada himpunan.     Didalam \CONTEXT\ juga memiliki suatu perintah dalam menggunakan notasi  atau rumus matematika menggunakan suatu vektor atau panah berarah seperti ini \type{$(\vec{\imath}, \vec{\jmath}, \vec{k})$} ($(\vec{\imath}, \vec{\jmath}, \vec{k})$).               \startsubject[title={\CONTEXT\ Person}]          \starttabulate[|B|p|]     \NC author    \NC \getvariable{document}{author}, \getvariable{document}{affiliation}, \getvariable{document}{location} \NC \NR     \NC version   \NC \currentdate \NC \NR     \NC website   \NC \getvariable{document}{website} \endash\ \getvariable{document}{support} \NC \NR     \NC copyright \NC \symbol[cc][cc-by-sa-nc] \NC \NR     \stoptabulate          \stopsubject     \pdftexbanner     \stopdocument      I want numbered theorem, definition etc like this : ![after](http://i.stack.imgur.com/kupjs.jpg)


title: Auto Generate Table with Tons of + and -

text: i want to create a table containing lots of "+","-" and "0", which depend on the column and row number by (quite simple) mathematical formulas which are known to me. I could enter the signs by hand but i think it would be better to generate them automatically somehow, i.e. to implement the logic which determines the entrys, for two reasons:   * My formulas may turn out to be wrong some day...   * It is in the spirit of dividing layout and content. To give you an impression, i have scanned a sketch on paper. ![enter image description here](http://i.stack.imgur.com/SAQFM.jpg) As you can see, there are actually four entrys for each row and column. I'd like to know if anyone here has some hints on how to realize something like that.


title: break on @ symbol in table cell

text: I have a table that often overruns the width of the page. I figured out that if I format the cells as paragraphs with a set width then LaTeX will wrap the contents of the cell. However, the column that needs this most is the one with email addresses in it. Because email addresses don't have spaces they won't wrap within the cell. I would like to make it break and wrap before the @ symbol in the email address. I can't find anything online about how to do this.               \begin{longtabu}{|p{3cm}|p{3cm}|p{3cm}|p{3cm}|p{2cm}|p{4cm}|}     \hline     \textbf{Name} & \textbf{Title} & \textbf{City} & \textbf{State/Province} & \textbf{Phone} & \textbf{Email}     \\     \hline     \raggedright     \nohyphens{Doe, John} &     \raggedright     \nohyphens{Electrical Engineer} &     \raggedright     \nohyphens{New York} &     \raggedright     \nohyphens{New York} &     555-555-5555 &      john_doe@really_long_email_address.com     \\     \hline     \end{longtabu}


title: Page numbering starts too early

text: As the title already indicates, I have a problem with the page numbering. At first I am in roman numbering mode and then I switch to arabic. But even though my `\pagenumbering{arabic}` statement is _after_ my `\listoftables` command, the list of tables has the pagenumber **1**.               \documentclass[10pt,a4paper,headsepline,footsepline,DIV13,BCOR12mm]{scrbook}     \usepackage[english,ngerman]{babel}     \usepackage[T1]{fontenc}     \usepackage[latin1]{inputenc}     \usepackage{scrpage2}     \pagestyle{scrheadings}     \usepackage{graphicx}     \usepackage{hyperref}     \usepackage[toc,numberedsection]{glossaries}     \makeglossaries     \newacronym{fap}{FAP}{Fundamental Architectural Principles}          \begin{document}          \selectlanguage{ngerman}     \thispagestyle{empty}          \begin{table}[h]     \centering     \begin{tabular}{ccc}     \hspace{0.7cm} &     \end{tabular}     \end{table}          \vspace{8mm}     \begin{center}     {\Large     {\bfseries \scshape Institut Software \&  Engineering}\\      6a \hspace{0.25cm} D- \\     }     \end{center}          \vspace{1cm}     %title     \begin{center}     {\Huge \bfseries asd  \\[2mm] in   \\[5mm] asdasd }     \end{center}          \vspace{1.5cm}     %author     \begin{center}     {\Large Christian Vaas}     \end{center}          \vspace{1cm}     \begin{center}     {\Large \bfseries Masterarbeit  Software Engineering}     \end{center}          \vspace{1cm}     \begin{center}     \includegraphics[width=.4\linewidth]{img/logos/LogoSEengl}     \end{center}          \newpage     \thispagestyle{empty}     \mbox{}     \newpage     \thispagestyle{empty}          \begin{table}[h]     \centering     \begin{tabular}{ccc}     \hspace{0.7cm} &     \end{tabular}     \end{table}          \vspace{1cm}     \begin{center}     {\Large     {\bfseries \scshape Institut Software \& Systems Engineering}\\      6a \hspace{0.25cm} D- \\     }     \end{center}          \vspace{2.5cm}     %title     \begin{center}     {\Huge \bfseries  Patterns \\[2mm] in   \\[5mm]  Architectures}     \end{center}          \vspace{1cm}     %author     \begin{center}     \begin{table}[h]     \centering     \begin{tabular}{ll}     Matrikelnummer: &  \\     Beginn der Arbeit: & XX.\ XXXX 20XX \\      Abgabe der Arbeit: & XX.\ XXXX 20XX \\     Erstgutachter: & Prof.\ Dr.\   \\     Zweitgutachter: & Prof.\ Dr.\ YYY YYYYYY \\     Betreuer: &  S.  \\     \end{tabular}     \end{table}     \end{center}          \vspace{1.25cm}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%% Statement-Page     \newpage     \thispagestyle{empty}     \mbox{}     \newpage     \thispagestyle{empty}          \centerline{\bfseries ERKLAERUNG}          \vspace{5cm}     Hiermit versichere ich, dass ich diese Masterarbeit selbstaendig verfasst habe.     Ich habe dazu keine anderen als die angegebenen Quellen und Hilfsmittel     verwendet.          \vspace{1cm}     \begin{flushleft}     %select german for formatting the date     \selectlanguage{ngerman}     Augsburg, den \today \hfill ZZZ ZZZZZZ     \end{flushleft}          \newpage     \thispagestyle{empty}     \mbox{}               \newpage          %select english as language!     \selectlanguage{english}          \vspace*{1cm}     \section*{\centering Abstract}     \vspace{1cm}          \paragraph*{CONTEXT}          \pagenumbering{roman}          \tableofcontents     \newpage     \listoffigures     \newpage     \listoftables          \pagenumbering{arabic}          \chapter{Introduction}     \section{Motivation/Challenges}     \section{Approach}     Blubber \gls{fap}          \printglossaries          \end{document}


title: Behavior of \global when used with xifthen package

text: I'm trying to calculate the sum of some numbers in my document. I want to allow non-integer values, so I'm using lengths, which works just fine. In my document it's often necessary to specify the values for adding to the sum from inside an environment. I learned that the `\global` command does the trick. However, I encountered the problem that the `\global` command seems to not work properly when the `xifthen` package is loaded, either directly or by another package. Here's an example:               \documentclass{article}     \usepackage{xifthen}     \makeatletter     \newcommand*{\getlength}[1]{\strip@pt#1}     \makeatother          \begin{document}     \newlength{\mylength}     \setlength{\mylength}{0pt}     \getlength{\mylength}     {         \addtolength{\mylength}{0.5pt}         \getlength{\mylength}     }     \getlength{\mylength}     {         \global\addtolength{\mylength}{0.5pt}         \getlength{\mylength}     }     \getlength{\mylength}     \end{document}      The output is:               0 0.5 0 0.5 0      Removing the `xifthen` package produces the expected output:               0 0.5 0 0.5 0.5      Is there any workaround to produce the second output, without having to ensure that no package which uses `xifthen` is loaded?


title: How is cropping for EPS-files done in XeLaTeX?

text: When trying to crop an EPS-figure with `trim=<left> <bottom> <right> <top>, clip, ...` it results in strange behavior. Please find a MWE and a image of the result below. It seems like the cropping is done only for the top and the right (or twice). In this post you can read the proceeding until now, to get the boundaries of the EPS recognized by `xetex.def` and `dvipdfmx.def`.               \documentclass[]{scrreprt}     \usepackage{xltxtra}     \usepackage{subcaption}          \begin{document}          \begin{figure}     \begin{subfigure}[b]{.3\linewidth}         \includegraphics[width=\linewidth]{Beispiel.eps}         \caption{No clipping}     \end{subfigure}     \begin{subfigure}[b]{.3\linewidth}         \includegraphics[trim = 100 0 0 0, clip, width=\linewidth]{Beispiel.eps}         \caption{Trimming left}     \end{subfigure}           \begin{subfigure}[b]{.3\linewidth}         \includegraphics[trim = 0 100 0 0, clip, width=\linewidth]{Beispiel.eps}         \caption{Trimming bottom}     \end{subfigure}     \begin{subfigure}[b]{.3\linewidth}         \includegraphics[trim = 0 0 100 0, clip, width=\linewidth]{Beispiel.eps}         \caption{Trimming right}     \end{subfigure}           \begin{subfigure}[b]{.3\linewidth}         \includegraphics[trim = 0 0 0 100, clip, width=\linewidth]{Beispiel.eps}         \caption{Trimming top}     \end{subfigure}     \begin{subfigure}[b]{.3\linewidth}         \includegraphics[trim = 100 100 100 100, clip, width=\linewidth]{Beispiel.eps}         \caption{Cropping all}     \end{subfigure}      \end{figure}          \end{document}      ![Output](https://dl.dropboxusercontent.com/u/520136/Trim.jpg)


title: How do I remove the next token from the stream in LaTeX3?

text: I want to remove a token from the stream from within a command (ignoring spaces). The next token will be a `{` (actually, I've just thought that it might not be ... but I'll continue as if it were). In "ordinary" TeX I would end the command with `\let\junk=`. LaTeX3 has lots of `\peek_<something>_remove_ignore_spaces:NTF` commands which would do it, except that there's an unnecessary conditional there which seems like overkill. So what's the LaTeX3 equivalent of `let\junk=`?