title: What to do about error message about extra \else in greek.ldf?

text: I get this error since I upgraded to texlive 2013:               (/usr/local/texlive/2013/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua)))     ! Extra \else.     l.74 \else          ?      Posting this question directly in case someone has an easy answer. In the mean time I am trying to come up with a minimal example that gives me this error. * * * EDIT: This:               \documentclass[11pt,oneside]{article}              \usepackage[greek, english]{babel}          \begin{document}          test          \end{document}      gives:               This is LuaTeX, Version beta-0.76.0-2013061817 (rev 4627)       restricted \write18 enabled.     (./test.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 78 languages loaded.     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size11.clo))     (/usr/local/texlive/2013/texmf-dist/tex/generic/babel/babel.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/babel-greek/greek.ldf     (/usr/local/texlive/2013/texmf-dist/tex/generic/babel/babel.def     (/usr/local/texlive/2013/texmf-dist/tex/generic/babel/luababel.def))     ! Extra \else.     l.74 \else          ?       So it seems to be `babel` somehow?


title: Hyperref problem with mdframed+pdflatex

text: I'm encountering a problem when I use hyperref with mdframed and pdflatex. Below is a MWE which gives the following error:               ! Missing \endcsname inserted.     <to be read again>                        \bx@A     l.29    \end{defini}      If I don't use hyperref, the problem goes away; however, with a 100+ page document, having a hyperlinked table of contents is essentially a requirement. Here's the MWE:               \documentclass[11pt]{memoir}          \usepackage{lipsum}          \usepackage{mdframed}     \RequirePackage{ltxkeys}   %%% Different error if not there     \usepackage{xcolor}          \mdfdefinestyle{DefinitionStyle}{innertopmargin=5pt,linewidth=4pt,linecolor=red,backgroundcolor=blue!3}     \newcounter{definitioncount}[section]          \newenvironment{defini}{\refstepcounter{definitioncount} \begin{mdframed}[style=DefinitionStyle]%     \raisebox{4pt}[0pt][-5pt]{\hspace{-14pt}\fcolorbox{red}{red}%     {\bfseries \large\textcolor{white}{$\quad$Definition \thedefinitioncount $\quad$}}}\\}%     {\end{mdframed}}          \usepackage{hyperref}          \begin{document}          \chapter{Introduction}     \lipsum[2]     \lipsum[1]          \begin{defini}     \lipsum[1]     \end{defini}          \end{document}


title: One of the symbols of the font used look odd, what are my options to fix it?

text: I have enjoyed the `mathptmx` package font for some time. However recently I discovered that `mathptmx` used the really wide double integral symbol (`iint`) which looks much like this: ![doubleintegral symbol used by mathptmx](http://i.stack.imgur.com/eMdNw.png) I would much rather use the traditional sleeker symbol for the integral: ![Convensional symbol](http://i.stack.imgur.com/WanNM.png) Can I fix this somehow? Either substitute the symbol for another one, or do something else?


title: \AddEverypageHook just checks the first page

text: I am totally new to LaTeX and right now I'm trying to find out how everything works. For the following code I get a background picture only on the first page although I want to have it on all odd pages. Additionally I get an error stating:               Undefined control sequence: \AddEverypageHook This is my code:               \documentclass[a4paper]{report}     \usepackage[english]{babel}      \usepackage{lipsum}     \usepackage{ifthen}     \usepackage{blindtext}     \usepackage{graphicx}     \usepackage{eso-pic}          \newcommand\BackgroundPic{     \put(-4,0){     \parbox[b][\paperheight]{\paperwidth}{%     \vfill     \centering     \includegraphics[width=\paperwidth,height=\paperheight,     keepaspectratio]{background.jpg}%     \vfill     }}}          \makeatletter     \AddEverypageHook{%     \ifthenelse{\isodd{\value{page}}}%       {}%       {\AddToShipoutPicture*{\BackgroundPic}}%       }     \makeatother          \begin{document}               \title{The Triangulation of Titling Data in            Non-Linear Gaussian Fashion via $\rho$ Series}     \date{October 31, 475}     \author{John Doe\\ Magic Department, Richard Miles University             \and Richard Row, \LaTeX\ Academy}     \maketitle     \blinddocument     \end{document}      It would be nice if you could help me with this and explain what is going wrong here. Thanks in advance.


title: Nested labeled colored boxes with TikZ

text: I need nested boxes, as they are shown in this question, but colored ones. I tried both solutions. Using `shapes.multipart` I totally failed when tried to generate the nodeparts by a `foreach` command. If I use multiple `\tikz` parts in one nodepart, I can use `foreach`, but I am unable to put them in one column (tried matrix and failed). Trying `drs` with `xcolor` I almost got a correct result, but when I write this:               \documentclass{article}          \usepackage{drs}     \usepackage{xcolor}          \begin{document}          \colorbox{green}     {         \drs{box label}             {                 drs box text             }     }          \end{document}      some margin around the `drs` generated box is colored as well. What I basically need is to draw a colored box with some label. Then, by a `foreach` loop, to generate several colored boxes inside it. It is perfectly possible to have them in one column. Following advice from egreg I wrote this:               \documentclass{article}          \newcommand{\zcolorbox}[2]{{\setlength{\fboxsep}{0pt}\colorbox{#1}{#2}}}     \newcommand{\nestedbox}[3]{\zcolorbox{#1}{\drs{#2}{#3}}}          \usepackage{drs}     \usepackage{xcolor}          \begin{document}          \nestedbox{green}{box label}{\nestedbox{yellow}{inner box label}{inner box text}}          \end{document}      and got this: ![colored nested drs boxes with fboxsep set to 0](http://i.stack.imgur.com/jkI7Y.png) How can I get rid of the yellow color there, but not of the space?


title: Using != in \pgfmathparse

text: In section _63.1 Operators_ of the pgf manual `pgfmanual.pdf` I see the claim that > x != y returns 1 if x ≠ y, 0 otherwise. Unfortunately, I can't get that to work:               \documentclass{article}     \usepackage{pgf}     \pgfmathparse{3!=4}      gives me a `Missing \begin{document}` error, but replacing `!=` by `<=` works. Is this a bug in pgfmath, or a misunderstanding on my part? (This may be related to the factorial operator being `!` too.)


title: Fractional increment for enumerate

text: I am looking to create a numbered list such that the numbers of the list items be incremented by fractional amounts as in 1.1, 1.2, 1.3... etc. Can this be done by manipulating the `enumerate` counter?


title: \renewcommand of \input for embedding input files without embed ALL source files

text: I would like to redefine the `\input` command so that it also embed the input file to the generated `pdf`. So far I used the code from thi s question (Mark on document where input starts and what is the filename):               \documentclass{article}     \usepackage{embedfile}     \usepackage{pgfplots}     \usepackage{letltxmacro}          \makeatletter     \LetLtxMacro\latex@iinput\@iinput     \renewcommand{\@iinput}[1]{%         \latex@iinput{#1}%         \embedfile[desc=input file]{#1}%     }     \makeatother          \begin{document}         \input{input-prova.tex}         \begin{tikzpicture}             \begin{axis}                 \addplot {x};             \end{axis}         \end{tikzpicture}     \end{document}      This works but it has a problem: when I use other packages as `pgfplots` my redefinition of `\input` affect also `\input`'s commands present in the package's source codes and in my final `pdf` I have all these files embedded.. The second problem is that when I try to add an argument to this command in this way:               \makeatletter     \LetLtxMacro\latex@iinput\@iinput     \renewcommand{\@iinput}[2][input file]{%         \latex@iinput{#2}%         \embedfile[desc=#1]{#2}%     }     \makeatother          \begin{document}         \input[file description]{input-prova.tex}     \end{docmuent}      I get an error... I know that both problems can be resolved by defining my own command lie this:               \newcommand{\myinput}[2][input file]{%         \input{#2}%         \embedfile[desc=#1]{#2}%     }      but I was wondering if there is a way of doing it without changing the name of the `\input` command.


title: Redefine memoir Part to allow image

text: I am preparing a book with `memoir`. The book has three parts. I would like to have the Part title raised and to insert an image directly below the title. I am able to raise the Part title to the upper portion of the page, and to add an image, but the image falls on the following (normally blank) page (see minimum example, below). How can I get the image to appear on the same page as the Part title, directly under it? Here is the minimum example:               \documentclass[12pt,letterpaper]{memoir} %     \usepackage[T1]{fontenc}     \usepackage{eso-pic}     \usepackage[english]{babel}     \usepackage[demo]{graphicx}               \makeatletter     \renewcommand*{\beforepartskip}{\null\vskip-2cm}     \renewcommand*{\afterpartskip}{\par\vskip-5cm%     \@afterindentfalse\@afterheading}     \makeatother               \begin{document}          % \frontmatter     %     %     % \mainmatter          \part{This is the first part}     \AddToShipoutPicture*{%     % By default, eso-pic's zero coordinate is in the lower left corner     \put(\LenToUnit{3.5in},\LenToUnit{5.5in}){%     \includegraphics[height=25mm,keepaspectratio]{figs/PA-500942}%     }     }          \part{This is the second part}          \end{document}


title: Weird output of \tracingassigns with \font

text: Setting `\tracingassigns` to a positive value causes eTeX to write to the log file (and console when `\tracingonline` is positive) all assignments it performs. Thus, I would expect the following code to indicate that `\foo` is changed from `undefined` to `select font cmr10`.               \tracingonline=1     \tracingassigns=1     \font\foo=cmr10     \message{But \foo is \meaning\foo!}      However, eTeX reports               {changing \foo=undefined}     {into \foo=select font nullfont}     But \foo is select font cmr10!      Why?


title: Beamer: Removing headline and its space on a single frame (for plan), but keeping the footline

text: There is now 4 hours that I'm Googling to found a solution to my problem but it's still impossible! Here is the situation: I have some frames in a presentation using the `Warsaw` theme, on the first one I wanted to remove both headline and footline so I use the `\begin{frame}[plain]`, but I want to, for the next frame, keep the footline but only hide the headline. I tried the following:               {     \setbeamertemplate{headline}{} %or \setbeamertemplate{headline}[default]     \begin{frame}{Sommaire}         \tableofcontents     \end{frame}     }      But, although the content of the headline is removed, it keeps the space blank (as it is used, but not available for my content). So, there is a white space below my frame title... (Table of Contents). I don't want to have the plan of my presentation in the header here as it is a frame showing the plan ... Is there anyone here who could help me?


title: biblatex - How can I print out the date (always provided as YYYY-MM) as a string at the end of a block?

text: At the end of an entry for `standardisodin`, I'd like to have the content in of the `Date`-field printed out like this: > [...] Stuff, Version: May 2011. I think the month would get changed to my language lateron, but adding the string _Version_ , I haven't been successful at all yet. ## MWE               \documentclass[     a4paper,     12pt,     ]{scrartcl}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{lmodern}          \usepackage[     language=auto,     style=authoryear-ibid,     backend=biber,     hyperref=true,     dashed=false,     isbn=false,     doi=false,     maxcitenames=2,     maxbibnames=99,     sorting=nyt,     firstinits=true,     uniquename=init,     uniquelist=false,     autocite=footnote,     ibidtracker=true,     date=comp,     mincrossrefs=1,     ]{biblatex}     \usepackage{xpatch}          %definition of new source type: Standard (ISO, DIN, or other guidelines)     \DeclareDatamodelEntrytypes{standardisodin}     \DeclareDatamodelEntryfields[standardisodin]{type,number}     \DeclareBibliographyDriver{standardisodin}{%     \usebibmacro{bibindex}%     \usebibmacro{begentry}%     %\usebibmacro{author}%     %\setunit{\labelnamepunct}\newblock     \printfield{type}\addspace%     \printfield{number}\addcolon\addspace%     \usebibmacro{title}\addspace%     %\newunit\newblock     %\usebibmacro{location+date}%     \newunit\newblock     \printfield{date}     \newunit\newblock     \iftoggle{bbx:url}     {\usebibmacro{url+urldate}}     {}%     \newunit\newblock     \usebibmacro{addendum+pubstate}%     \setunit{\bibpagerefpunct}\newblock     \usebibmacro{pageref}%     \newunit\newblock     \usebibmacro{related}%     \usebibmacro{finentry}}          \DeclareCiteCommand{\citetitle}     {\boolfalse{citetracker}%         \boolfalse{pagetracker}%         \usebibmacro{prenote}}     {\ifciteindex         {\indexfield{indextitle}}         {}%         \ifentrytype{standardisodin}          {\printfield{type}%             \setunit{\addspace}%             \printfield{number}%             \setunit{\addcolon\space}}         {}         \printfield[citetitle]{labeltitle}}     {\multicitedelim}     {\usebibmacro{postnote}}          \renewbibmacro*{cite}{%         \global\boolfalse{cbx:loccit}%         \iffieldundef{shorthand}         {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}             {\usebibmacro{cite:ibid}}             {\ifentrytype{standardisodin}                 {\printfield{type}%                     \setunit{\addspace}%                     \printfield{number}}                 {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}                     {\usebibmacro{cite:label}%                         \setunit{\addspace}}                     {\printnames{labelname}%                         \setunit{\nameyeardelim}}%                     \usebibmacro{cite:labelyear+extrayear}}}}         {\usebibmacro{cite:shorthand}}}          \begin{filecontents}{\jobname.bib}     @Standardisodin{abc,     Title                    = {Stuff},     Author                   = {{DIN Deutsches Institut für Normung e.~V.}},     Date                     = {2011-05},     Location                 = {Berlin},     Number                   = {333444},     Type                     = {DIN},     Year                     = {2011},     }     \end{filecontents}          \addbibresource{\jobname.bib}     \nocite{*}          \listfiles          \begin{document}     \begin{flushleft}     \citetitle{abc}     \end{flushleft}          Words.          \printbibliography     \end{document}


title: Article: bad footer on the second page

text: See the previous question. This is how my letter looks like               \documentclass[a4paper, 11pt]{article}          \usepackage{fontspec}     \usepackage{fancyhdr}               \newcommand{\DocumentTitle}{Motivation Letter}     \newcommand{\Author}{John Smith}          \setmainfont{Times New Roman}     \newfontfamily\hdrfont[ LetterSpace=5.0, WordSpace=1.0, Scale=0.9, Color=FFFFFF ]{Arial}          \usepackage[hmargin=1in,vmargin=0.4in, includehead, includefoot]{geometry}     \setlength{\parindent}{0in}     \linespread{1.2}     \parskip 11pt          \pagestyle{fancy}     \fancyhf{} % clear all header and footers     \setlength{\headheight}{0.0in}     \fancyhead[L]{\hdrfont\textbf{\DocumentTitle} \\ \emph{\Author}}     \fancyhead[R]{\hdrfont\thepage}     \fancyfoot[L]{\hdrfont\textbf{\DocumentTitle} \\ \emph{\Author}}     \fancyfoot[R]{\hdrfont\thepage}          \renewcommand{\headrulewidth}{0.4pt}     \renewcommand{\footrulewidth}{0.4pt}          \renewcommand{\today}{ February 16, 2009 }     \begin{document}          { \vspace*{0.5in} }     \hspace{4.8in}\today     \vspace{0.2in}          \hspace{0.5in}To Whom It May Concern,     \vspace{0.2in}          My Letter          \vspace{0.2in}     \hspace{0.5in}Respectfully,          \vspace{0.1in}     \hspace{0.5in}\Author          \end{document}      What like the pdf looks like               --------------------------------------- PAGE BEGIN                                             H     --------------------------------------- HEADER RULE                                             M1     To Whom It May Concern,---------------- TEXT BEGIN     My Letter     Respectfully,-------------------------- closing                                             S     John Smith----------------------------- signature     --------------------------------------- TEXT END                                             M2     --------------------------------------- FOOTER RULE                                             F     --------------------------------------- PAGE END      On the first page it looks ok and `H=F`. Starting from the second page `F` is surprisingly small. Do you have any ideas? This is the resulting PDF (with some text): ![enter image description here](http://i.stack.imgur.com/qpQe7.jpg)


title: TeXShop gives "(null) does not exist" error when compiling postscript

text: Mac: 10.7.3 TeXShop version: 2.47 When I try to compile .tex into a Post Script file, TeXShop gives me an error as follows: > (null) does not exist. Perhaps TeXLive was not installed or was removed > during a system upgrade. If so, go to the TeXShop web site and follow the > instructions to (re)install TeXLive. Another possibility is that a tool path > is incorrectly configured in TeXShop preferences. This can happen if you are > using the fink teTeX distribution. I can compile PDFs fine though. I don't remember updating TeXShop recently, so have no idea what's going on. Though I almost never compile to PS, so not sure if this problem is new either. Found a post suggesting I delete the preference file, but that doesn't work. If not a solution to this problem, does anybody know which script it is looking for and how to run it from command line?


title: Using cleveref with tagged equations

text: In my document I have a tagged equation, something that goes like               \begin{equation}\tag{$\dagger$}\label{whatever}  \end{equation}      Then latter I want to refer to it using `\eqref{whatever}`. But instead of a desired output (`$\dagger$`) I get something like `(3)`. How do I fix this? (I also use `hyperref` and `amsrefs` in addition to `cleveref`.)


title: Defining custom commands is bad style?

text: I recently received this in a e-mail from my professor > Good LaTeX style would preclude creating any of your own commands, counters, > etc. (Most journals would reject submissions with user-defined commands.) I have two questions:   1. Is this in fact true (both parts)?   2. Given that I am required to conform to a specific format and there is a lot of repetition (for example, I often have to use `\qquad\textnormal`) is there a way to define a command, and then when I run it produce a file that expands all of those macros? **Note:** My understanding is that the standard way of doing this is to have the journal (or professor in this case) create a package that includes all of the things that are required to conform to the style that they want, but he does not seem to want to do that.


title: Another problem with display graphic

text: I have full code of my document (I hope it's correct now):               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[demo]{graphicx}     \usepackage{placeins,listings}          \begin{document}     \lstset{language=Java, breaklines=true, basicstyle=\small, columns=fullflexible}     \tableofcontents     \newpage     \section{Title}     \subsection{Title}     Text 1     \\ Text 2:     \begin{figure}[htp]     \centering     \includegraphics[scale=0.5]{image1.jpg}     \caption{Caption 1}      \end{figure}     \begin{figure}[htp]     \centering     \includegraphics[scale=0.5]{image2.jpg}     \caption{Caption 2}     \end{figure}     \begin{figure}[htp]     \centering     \includegraphics[scale=0.5]{image3.jpg}     \caption{Caption 3}      \end{figure}     \begin{figure}[htp]     \centering     \includegraphics[scale=0.5]{image4.jpg}     \caption{Caption 4}     \end{figure}     \begin{figure}[htp]     \centering     \includegraphics[scale=0.5]{image5.jpg}     \caption{Caption 5}     \end{figure}          \FloatBarrier          Text 3          \FloatBarrier          \begin{figure}[htp]     \centering     \includegraphics{image6.jpg}     \caption{Caption 6}     \end{figure}     \begin{figure}     \centering     \includegraphics{image7.jpg}     \caption{Caption 7}     \end{figure}     \begin{figure}     \centering     \includegraphics{image8.jpg}     \caption{Caption 8}     \end{figure}     \begin{figure}[htp]     \centering     \includegraphics{image9.jpg}     \caption{Caption 9}     \end{figure}     \end{document}      And I get this: page1 - image6 is after Text3 and another pictures (image7, image8, image9) are on next page, not after image6 page2.


title: Problem with Endfloat

text: What am I doing wrong with the following MWE? The numbering is incorrect and a table which should be listed at the end of chapter 2 is being listed at the end of chapter 1 for some reason. I need arabic numbering for all the tables (even in the Endfloat markers). I want to print a list of the figures and tables at the end of each chapter.               \documentclass[oneside,12pt]{book}          \usepackage[tablesfirst]{endfloat}     \usepackage{titletoc}          \begin{document}     \renewcommand\theposttable{\arabic{chapter}.\arabic{posttbl}}     \renewcommand\thepostfigure{\arabic{chapter}.\arabic{postfig}}     \chapter{Data}     \startlist{lot}     \begin{table}     \caption{Data chapter table}     \begin{tabular}{c}     123 \\     \end{tabular}     \end{table}     \processdelayedfloats          \chapter{Learning}     \startlist{lot}     \begin{table}     \caption{Learning chapter table}     \begin{tabular}{c}     123 \\     \end{tabular}     \end{table}          \processdelayedfloats          \end{document}


title: Pgfplot second intersection point

text: As it can be seen in the figure i added a line from the first intersection (y=2x and y=6-x) to x(2). But i couldn't add a line from second intersection (y=x and y=6-x) to x(3). i tried `intersection-2` but it gave an error. **i want to make this using intersection command** because there may be new situations in which i can't find the intersection exactly. What should i do? ![enter image description here](http://i.stack.imgur.com/yrNw0.png)               \documentclass[11pt,a4paper]{article}%     \usepackage[english]{babel}     \usepackage[utf8x]{inputenc}     \usepackage{tikz,pgf,pgfplots}     \pgfplotsset{compat=1.10}     \usepgfplotslibrary{fillbetween}     \usetikzlibrary{patterns,intersections}              \begin{document}         \begin{tikzpicture}         \begin{axis}[axis lines=middle,              height=7cm, width=7cm,                     xlabel=$x$,                     ylabel=$y$,                     enlargelimits,                     ytick=\empty,                     xtick={2,3},                   every axis y label/.style={at=(current axis.above origin),anchor=south},         every axis x label/.style={at=(current axis.right of origin),anchor=west}],         \addplot[name path=f,blue,domain={0:2}] {2*x} node[pos=.8, above]{};         \addplot[name path=h,blue,domain={2:3}] {6-x} node[pos=.8, above,,rotate=-15]{};         \addplot[name path=g,blue,domain={0:3}] {x} node[pos=.8, below,rotate=30]{};         \addplot[name path=bos,white,domain={2:4}] {x/2} node[pos=.8, below,rotate=30]{};              \addplot[pattern=north west lines, pattern color=brown!50]fill between[of=f and g, soft clip={domain=0:2}];         \addplot[pattern=north west lines, pattern color=brown!50]fill between[of=h and g, soft clip={domain=2:3}];         \node[coordinate,pin=95:{\footnotesize{$y=2x$}}] at (axis cs:1,2){};         \node[coordinate,pin=-45:\footnotesize{$y=x$}] at (axis cs:0.8,0.8){};         \node[coordinate,pin=40:\footnotesize{$y=6-x$}] at (axis cs:2.5,3.5){};         \draw [name intersections={of=f and h},ultra thin,gray] ({axis cs:0,0}-|intersection-1) -- (intersection-1);         \end{axis}         \end{tikzpicture}         \end{document}


title: How can I hide the chapter headings number on LaTeX and change the spacing?

text: I'm writing my Thesis but I have run into some layout troubles, I'm using the standard book document class, which results in my Chapters headings in the form of: > Chapter # > > Name of my chapter I was looking for a way to change it, removing the "Chapter #" from it to the form of: > Name of my chapter I have tried doing what I wanted with the following code on my main file, although I don't know if it is ideal, like I said in the comments I have tried with the /titlesec but I couldn't remove the chapter number:               \renewcommand{\@makechapterhead}[1]{\vspace*{50\p@}%     {\parindent \z@ \raggedright \normalfont     \hrule                                        % horizontal line     \vspace{5pt}%                                 % add vertical space     \interlinepenalty\@M     \Huge \scshape #1\par                        % chapter title     \vspace{5pt}%                                 % add vertical space     \hrule                                        % horizontal rule     \nobreak     \vskip 2\baselineskip     }}          \renewcommand{\@makeschapterhead}[1]{%     \vspace*{50\p@}%     {\parindent \z@ \raggedright     \normalfont     \hrule                                        % horizontal line     \vspace{5pt}%                                 % add vertical space     \interlinepenalty\@M     \Huge \scshape #1\par                         % chapter title     \vspace{5pt}%                                 % add vertical space     \hrule                                        % horizontal line     \nobreak     \vskip 2\baselineskip     }}      I also need to set the spacing after the chapter heading to two lines as it's one of the requirements from my university, I'm currently trying to do it with the `\vskip #\baselineskip` but I'm getting a bigger spacing than the one I wanted so I'm guessing it has to do with the `\Huge` format modifier I used but I'm not sure.


title: Numbering a theorem with a letter but not changing numbering of other theorems

text: I am wondering how to label a theorem in LaTeX using a letter but not changing the numbering of the other theorems. For example, I want Theorem 1.3 to be Theorem A and Theorem 1.4 to remain as Theorem 1.4 (not changing its numbering).


title: Creating a good looking appendix

text: As Mark S. Everitt writes in Table/Figure Layout tables/figures among other things should be looking nice, otherwise they are quiet useless. Ergo, one should pay the same attention to the information presented in the appendix. Now, I have created a pretty ugly one because I don't know better. :-/ Maybe someone has some suggestions to enhance the look of my appendix:               \documentclass{article}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[german]{babel}     \usepackage{array}     \usepackage{lscape}     \usepackage{booktabs}     \usepackage{enumitem}% for control of list spaceing     \usepackage{graphicx}     \usepackage{subfig}%for subfloat     \begin{document}     %\newcolumntype{C}[1]{>{\arraybackslash}m{#1}}     \newcolumntype{R}[1]{>{\raggedright\arraybackslash}p{#1}}% This creates a column type with no text justification     \begin{landscape}          \section{Appendix A: quarterly data}          %GDP     \subsection{Gross domestic product}     \begin{tabular}{R{4cm}R{4cm}R{4cm}R{4cm}}     %<--- damit geht es jetzt auch ;)     \toprule     \multicolumn{1}{c}{\textbf{Cluster 1}} & \multicolumn{1}{c}{\textbf{Cluster 2}} & \multicolumn{1}{c}{\textbf{Cluster 3}} & \multicolumn{1}{c}{\textbf{Cluster 4}} \\      \midrule     \begin{itemize}[nolistsep,leftmargin=*]      \item Canada, France, Germany      \item Austria, Belgium, Netherlands, Switzerland      \item Finland, Iceland, Norway, Sweden      \item Greece, Portugal, Spain      \item New Zealand     \end{itemize}      &      \begin{itemize}[nolistsep,leftmargin=*]     \item Italy, Japan, United Kingdom, United States     \item Denmark, Ireland     \item Estonia, Hungary     \end{itemize}      &      \begin{itemize}[nolistsep,leftmargin=*]      \item Luxembourg      \item Czech Republic, Slovenia      \item Australia, Korea, Turkey     \end{itemize}      &      \begin{itemize}[nolistsep,leftmargin=*]      \item Poland, Slovak Republic      \item Israel     \end{itemize}     \\     \bottomrule     \end{tabular}          %Plots     \begin{landscape}     \begin{figure}[htbp]        \centering        \subfloat[Cluster 1]{\label{fig:GDPClusterPlot1}  \includegraphics[width=0.45\textwidth]{GDPClusterPlot1.eps}}        \subfloat[Cluster 2]{\label{fig:GDPClusterPlot2}  \includegraphics[width=0.45\textwidth]{GDPClusterPlot2.eps}}        \hspace{1cm}        \subfloat[Cluster 3]{\label{fig:GDPClusterPlot3}  \includegraphics[width=0.45\textwidth]{GDPClusterPlot3.eps}}        \subfloat[Cluster 4]{\label{fig:GDPClusterPlot4}  \includegraphics[width=0.45\textwidth]{GDPClusterPlot4.eps}}     \caption{Identified clusters within GDP data}        \label{fig:GDPClusters}     \end{figure}     \end{landscape}               \newpage                         %p.c. GDP     \subsection{Per capita gross domestic product}     \begin{tabular}{R{3.2cm}R{3.2cm}R{3.2cm}R{3.2cm}R{3.2cm}}     %<--- damit geht es jetzt auch ;)     \toprule     \multicolumn{1}{c}{\textbf{Cluster 1}} & \multicolumn{1}{c}{\textbf{Cluster 2}} & \multicolumn{1}{c}{\textbf{Cluster 3}} & \multicolumn{1}{c}{\textbf{Cluster 4}} & \multicolumn{1}{c}{\textbf{Cluster 5}} \\     \midrule     \begin{itemize}[nolistsep,leftmargin=*]       \item Canada, Italy, Japan, United Kingdom, United States       \item Denmark, Iceland, Ireland, Norway       \item Hungary       \item Spain     \end{itemize}      &      \begin{itemize}[nolistsep,leftmargin=*]       \item Germany       \item Netherlands       \item Czech Republic, Slovenia       \item Israel, Korea, Turkey     \end{itemize}      &      \begin{itemize}[nolistsep,leftmargin=*]      \item France      \item Austria, Belgium, Switzerland      \item Sweden      \item Portugal      \item Australia, New Zealand     \end{itemize}      &      \begin{itemize}[nolistsep,leftmargin=*]      \item Luxembourg      \item Finland      \item Estonia      \item Greece     \end{itemize}      &      \begin{itemize}[nolistsep,leftmargin=*]      \item Poland, Slovak Republic     \end{itemize}     \\     \bottomrule     \end{tabular}          %5 Plots     \begin{landscape}     \begin{figure}[htbp]        \centering        \subfloat[Cluster 1]{\label{fig:pcGDPClusterPlot1}  \includegraphics[width=0.45\textwidth]{pcGDPClusterPlot1.eps}}        \subfloat[Cluster 2]{\label{fig:pcGDPClusterPlot2}  \includegraphics[width=0.45\textwidth]{pcGDPClusterPlot2.eps}}        \hspace{1cm}        \subfloat[Cluster 3]{\label{fig:pcGDPClusterPlot3}  \includegraphics[width=0.45\textwidth]{pcGDPClusterPlot3.eps}}        \subfloat[Cluster 4]{\label{fig:pcGDPClusterPlot4}  \includegraphics[width=0.45\textwidth]{pcGDPClusterPlot4.eps}}        \hspace{1cm}       \subfloat[Cluster 5]{\label{fig:pcGDPClusterPlot5}  \includegraphics[width=0.45\textwidth]{pcGDPClusterPlot5.eps}}     \caption{Identified clusters within p.c. GDP data}        \label{fig:pcGDPClusters}     \end{figure}     \end{landscape}               \end{landscape}     \end{document}


title: Where can I find the standard LaTeX reference manual?

text: Like a semi-detailed user manual for LaTeX commands (`\newtheorem`, etc).


title: bbm package error

text: I am not sure if this should be here or whether I should create a bug report. I am trying to use the `bbm` package as per this example:               \documentclass{article}     \usepackage{bbm}     \begin{document}     $\mathbbm{A}$     \end{document}      but I get the following error:               This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)      restricted \write18 enabled.     entering extended mode     (./minimalbbm.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, uk     english, usenglishmax, loaded.     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/size10.clo))     (/usr/local/texlive/2011/texmf-dist/tex/latex/bbm-macros/bbm.sty)     (./minimalbbm.aux)     (/usr/local/texlive/2011/texmf-dist/tex/latex/bbm-macros/ubbm.fd)     kpathsea: Running mktextfm bbm10     /usr/share/texlive/texmf/web2c/mktexnam: Could not map source abbreviation  for bbm10.     /usr/share/texlive/texmf/web2c/mktexnam: Need to update ?     mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input bbm10     This is METAFONT, Version 2.718281 (TeX Live 2011)               kpathsea: Running mktexmf bbm10     ! I can't find file `bbm10'.     <*> ...e:=ljfour; mag:=1; nonstopmode; input bbm10          Please type another input file name     ! Emergency stop.     <*> ...e:=ljfour; mag:=1; nonstopmode; input bbm10          Transcript written on mfput.log.     grep: bbm10.log: No such file or directory     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input bbm10' failed to make bbm10.tfm.     kpathsea: Appending font creation commands to missfont.log.          ! Font U/bbm/m/n/10=bbm10 at 10.0pt not loadable: Metric (TFM) file not found.     <to be read again>                         relax      l.6 $\mathbbm{A}                     $     ?      FYI: I am running Fedora with TeXlive 2011 installed manually and I have run               $ tlmgr install bbm-macros      but there is no poackage `bbm` available:               $ tlmgr search bbm     bbm-macros - LaTeX support for "blackboard-style" cm fonts.      It seems that this might be the problem. In the Fedora TeXlive there is a package `texlive-bbm` and a package `texlive-bbm-macros` -- the former containing the cm-fonts.


title: ConTeXt using LaTeX style files

text: I've just discovered ConTeXt for the first time, and it looks pretty sweet. However, it is near-useless to me if I cannot use LaTeX style files for formatting (i.e. for journal/conference papers). Is it possible to use the style files provided by the journal publishers, etc., within ConTeXt? Is it even worth using ConTeXt if you are not doing much, if any, typesetting?


title: Problem of understanding definitions

text: I have defined a stack structure (I found an example in the LaTeX `currfile` package, which I adapted to my needs):               \def\MB@modulestack{}     \def\MB@modulestack@push#1{\xdef\MB@modulestack{{#1}\MB@modulestack}}     \def\MB@modulestack@top{\expandafter\MB@modulestack@top@eat\MB@modulestack\relax\relax}     \def\MB@modulestack@top@eat#1#2\relax{#1}     \def\MB@modulestack@pop{\expandafter\MB@modulestack@pop@eat\MB@modulestack\relax\relax}     \def\MB@modulestack@pop@eat#1#2\relax{\gdef\MB@modulestack{#2}}      I understand how it works, especially those `\relax`. I keep a 4-tuple of parameters there:               \def\MB@modulestack@push{{a}{b}{c}{d}}     \def\MB@modulestack@push{{1}{2}{3}{4}}      Now, to parse such a 4-tuple from the top of stack I wanted to use the following code:               \def\MB@modulestack@topitemparse@eat#1#2#3#4{... here I use #1, #2, #3, #4 ...}     \def\MB@modulestack@topitemparse{       \expandafter\MB@modulestack@topitemparse@eat\MB@modulestack@top     }      ...but it didn't work. While experimenting I found that I had to do this another way:               \def\MB@modulestack@topitemparse@eat#1#2#3#4#5\relax{... here I use  #1, #2, #3, #4 ...}     \def\MB@modulestack@topitemparse{       \edef\MB@modulestack@topitem{\MB@modulestack@top}       \expandafter\MB@modulestack@topitemparse@eat\MB@modulestack@topitem\relax\relax     }      Why does the first doesn't work and the second does? Why do I need to get `#5` and `\relax` in the `@eat` macro? Why do I need to read the top of stack into variable, instead of passing it straight to the `@eat` macro?


title: Lyx - List of Figures

text: I am using LyX and the report class. (KOMA-Script). My **List of Figures** just prints the figure number and its caption but not the word **Figure** infront. How could I modify the command in the Latex preamble?


title: Wrong page numbering(ToC-LoT)-Empty pages before ToC-

text: First of all I am sorry for my not minimum WE. I will explain why it's not... I am creating a ToC in a book-class document. ToC starts at page iii(I am using roman numbering) and ends at iv. The ToC entry though indicates that ToC starts at iv. ![](http://i.imgur.com/wLH56.jpg) Another issue is that before ToC there two blank pages(i,ii) but I don't know how to make them dissapear. The last issue has to do with LoT. Despite including LoT before arabic page numbering, LoT starts on page 1. I tried `\setcounter{page}{xi}` but it is indicated that there is a number missing. How can I resolve those issues. Here comes my WE(despite 8 errors pdf is produced). The reason why it's not MWE is that I wanted to add chapters and section in order to create a two page ToC.               \documentclass[11pt,a4paper]{book}     \usepackage{kerkis}     \usepackage{units}     \usepackage[pdftex]{graphicx}     \usepackage[Glenn]{fncychap}     \usepackage{float}     \usepackage{xcolor}          \usepackage{tocloft}     \setlength\cftparskip{0pt}     \setlength\cftbeforesecskip{-5pt}     \setlength\cftbeforesubsecskip{-8pt}     \setlength\cftbeforechapskip{-1pt}     \setlength\cftaftertoctitleskip{-50pt}      \setlength\cftbeforefigskip{-5pt}     \setlength\cftbeforetabskip{-5pt}     \makeatletter     \newcommand*{\tocwithouttitle}{\@starttoc{toc}}     \makeatother     %--------------------------------------------------------------------------------     \makeatletter     \newcommand*{\lofwithouttitle}{\@starttoc{lof}}     \makeatother     %--------------------------------------------------------------------------------     \makeatletter     \newcommand*{\lotwithouttitle}{\@starttoc{lot}}     \makeatother     %--------------------------------------------------------------------------------     %!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}          \newcommand{\HRule}{\rule{\linewidth}{0.8mm}}          \begin{document}     \begin{titlepage}     \begin{figure}[H]      \begin{center}      \includegraphics[scale=0.2]{logo.jpg}      \end{center}      \end{figure}      \begin {center}      \large     {University\\Faculty\\Department\\Group}\\     \vspace{2cm}     \HRule\\ \vspace{0.7cm} \textbf{\LARGE Title}\\ \vspace{0.7cm}\HRule     \vspace{2cm}     {\La rge Author}\\ \vspace{2cm}     supervision\\     \vspace{2cm}     {\Large Prof\\     \Large Supervisor}\\ \vspace{4cm}     Month Year     \end{center}          \newpage     \thispagestyle{empty}     \mbox{}     \end{titlepage}          \pagenumbering{roman}          \textcolor{blue}{\chapter*{\contentsname}}     \markboth{\MakeUppercase{\contentsname}}{\MakeUppercase{\contentsname}}     \textcolor{blue}{\tocwithouttitle}     \addcontentsline{toc}{chapter}{Contents}          \textcolor{blue}{\chapter*{Abstract}}     \addcontentsline{toc}{chapter}{Abstract}     \markboth{\MakeUppercase{Abstract}}{\MakeUppercase{Abstract}}          This is the abstract          \textcolor{blue}{\chapter*{Aknowledgements}}     \addcontentsline{toc}{chapter}{Aknowledgements}     \markboth{\MakeUppercase{Aknowledgements}}{\MakeUppercase{Aknowledgements}}          These are aknowledgements          \textcolor{blue}{\chapter*{LoF}}     \markboth{\MakeUppercase{LoF}}{\MakeUppercase{LoF}}     \textcolor{blue}{\lofwithouttitle}     \addcontentsline{toc}{chapter}{LoF}           \textcolor{blue}{\chapter*{LoT}}     \markboth{\MakeUppercase{LoT}}{\MakeUppercase{LoT}}     \textcolor{blue}{\lotwithouttitle}     %\setcounter{page}{xi}<----Error missing number/seems it doesn't accept roman like that     \addcontentsline{toc}{chapter}{LoT}          \pagenumbering{arabic}          \chapter{Introduction}          This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introductionThis is the introductionThis is the introductionThis is the introductionThis is the introductionThis is the introductionThis is the introductionThis is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.v.This is the introduction.This is the introductionThis is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the introduction.This is the     introduction.This is the introduction.This is the introduction.This is the introduction.          \newpage     \section{Intro}     bla bla bla\\     \section{Intro}     bla bla bla\\     \section{Intro}     bla  bla bla\\     \section{Intro}     bla bla bla\\     \subsection{intro}     bla bla bla\\          \newpage     \section{Intro}     bla bla bla\\     \section{Intro}     bla bla bla\\     \section{Intro}      bla bla bla\\     \section{Intro}     bla bla bla\\     \subsection{intro}     bla bla bla\\          \newpage     \section{Intro}      bla bla bla\\     \section{Intro}     bla bla bla\\     \section{Intro}     bla bla bla\\      \section{Intro}     bla bla bla\\     \subsection{intro}     bla bla bla\\           \newpage     \section{Intro}     bla bla bla\\     \section{Intro}     bla bla bla\\     \section{Intro}     bla bla bla\\     \section{Intro}     bla bla bla\\     \subsection{intro}     bla bla bla\\          \chapter{Theory}     This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.This is about theory.           \newpage     \section{Theo}     bla bla bla\\     \section{Theo}     bla bla bla\\     \section{Theo}      bla bla bla\\      \section{Theo}      bla bla bla\\      \subsection{theo}      bla bla bla\\          \newpage     \section{Theo}      bla bla bla\\     \section{Theo}     bla bla bla\\     \section{Theo}     bla bla bla\\     \section{Theo}     bla bla bla\\     \subsection{theo}      bla bla bla\\          \newpage     \section{Theo}     bla bla bla\\     \section{Theo}     bla bla bla\\     \section{Theo}     bla bla bla\\     \section{Theo}     bla bla bla\\     \subsection{theo}     bla bla bla\\          \newpage     \section{Theo}     bla bla bla\\     \section{Theo}     bla bla bla\\     \section{Theo}     bla  bla bla\\     \se ction{Theo}     bla bla bla\\     \subsection{theo}     bla  bla bla\\          \chapter{Experiment}     This is about epxeriment.This is about epxeriment.This is about epxeriment.This is about  epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This  is about epxeriment.This is about epxeriment.This is about epxeriment.This is about  epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This  is about epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This  is about epxeriment.This is about epxeriment.This is about epxeriment.This is about  epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This  is about epxeriment.This is about epxeriment.This is about epxeriment.This is about  epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This  is about epxeriment.This is about epxeriment.This is about epxeriment.This is about  epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This  is about epxeriment.This is about epxeriment.This is about epxeriment.This is about  epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This  is about epxeriment.This is about epxeriment.This is about epxeriment.This is about  epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This    is about epxeriment.This is about epxeriment.This is about epxeriment.This is about     epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This     is about epxeriment.This is about epxeriment.This is about epxeriment.This is about     epxeriment.This is about epxeriment.This is about epxeriment.This is about epxeriment.This    is about epxeriment.This is about epxeriment.This is about epxeriment.This is about     epxeriment.          \newpage     \section{Exp}     bla bla bla\\     \section{Exp}     bla bla bla\\     \section{Exp}     bla bla bla\\     \section{Exp}     bla bla bla\\     \subsection{exp}     bla bla bla\\          \newpage     \section{Exp}     bla bla bla\\     \section{Exp}     bla bla bla\\     \section{Exp}     bla bla bla\\     \section{Exp}     bla bla bla\\     \subsection{exp}     bla bla bla\\          \newpage     \section{Exp}     bla bla bla\\     \section{Exp}     bla bla bla\\     \section{Exp}     bla bla bla\\     \section{Exp}     bla bla bla\\     \subsection{exp}     bla bla bla\\          \newpage     \section{Exp}     bla bla bla\\     \section{Exp}     bla bla bla\\     \section{Exp}     bla bla bla\\     \section{Exp}     bla bla bla\\     \subsection{exp}      bla bla bla\\          \end{document}      * * * My real ToC, with better spacing is that ![](http://i.imgur.com/TDCC3.jpg)


title: Custom Tikz node with background graphics that scale to node size?

text: I have an SVG shape, which I'd like to use as a sort of a TikZ node border. The shape is basically a path with stroke effects - but the effects have been "baked in", so now I just have a non-stroked path as a final output; so in `inkscape` it looks like this: ![custombordershape_ink](http://i.stack.imgur.com/uIId4m.png) Thus, using it as a "proper" border will be difficult - so I'd like the next best thing: that is, for the "border image" to be drawn scaled to the size of a rectangular node. The source SVG is here: custombordershape.svg. Using the Tikz exporter in `inkscape`, I can export the same file to `tikz`, which has been pasted below as `custombordershape_tikz.tex`. (compiling it, I obtain `custombordershape_tikz.pdf`, which is used in the test code below). At this time, I found two related questions:   * tikz pgf - Creating node shapes   * graphics - Tikz: using external images as building blocks. The first approach is much better - but I cannot afford the time to convert the path in the image to low-level pgf commands, so I'd settle for a scaled image. That leaves me with the approach in the second link, which among other things, recommends `\includegraphics`. So here is a small MWE, `test.tex`, which I've used to try that out:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{positioning}     \usepackage{lipsum}     \begin{document}     \begin{tikzpicture}     \node[draw=red] (n1) at (1,0) {\pgftext{\includegraphics[width=\linewidth]{custombordershape_tikz.pdf}}Testing};     \node[draw=red,align=left,text width=250pt,minimum width=250pt] (n2) [right=5pt of n1] {\pgftext{\includegraphics[width=\linewidth]{custombordershape_tikz.pdf}}\lipsum[4]};     \end{tikzpicture}     \end{document}      The output is this: ![test2.png](http://i.stack.imgur.com/mqmG7.png) I would have wanted the custombordershape to fit within the red bounding boxes of the respective nodes (and preferably, behind the text; should have made the color gray to check for that); however, clearly that is not how it turned out. So, what would be the recommended way to achieve "custom nodes" (hopefully, eventually callable only through a tikz style) with external background graphics that scales to the size of the node? Given that I also have the background shape in `tikz` path format, would there be an easier way to reuse that for a "custom" node definition, instead of using `\includegraphics` on the resulting pdf? `custombordershape_tikz.tex`:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{tikz}          \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}          \begin{document}          \begin{tikzpicture}[y=0.80pt,x=0.80pt,yscale=-1, inner sep=0pt, outer sep=0pt]     \begin{scope}[shift={(-82.356111,-10.404272)}]% layer1       % path3193       \path[color=black,draw=black,fill=black,miter limit=4.00,line width=0.800pt]         (88.3126,84.1662) .. controls (119.3839,59.7883) and (150.4194,35.4229) ..         (181.4190,11.0699) .. controls (195.2747,11.0104) and (209.1177,10.9552) ..         (222.9480,10.9043) .. controls (236.0262,11.3164) and (249.1067,12.0061) ..         (262.1675,13.0685) .. controls (276.2273,14.2122) and (290.2969,15.7785) ..         (304.2800,18.1188) .. controls (316.9975,20.2388) and (329.7769,22.9688) ..         (342.1644,27.3079) .. controls (347.3201,29.1118) and (352.4536,31.2466) ..         (357.3736,33.9560) .. controls (357.3736,33.9560) and (357.3736,33.9560) ..         (357.3736,33.9560) .. controls (361.4740,36.1969) and (365.4940,38.9437) ..         (368.9931,42.4708) .. controls (368.9931,42.4708) and (368.9931,42.4708) ..         (368.9931,42.4708) .. controls (371.9776,45.4571) and (374.4607,49.1795) ..         (375.8351,53.5099) .. controls (377.1521,57.9341) and (377.1035,62.5489) ..         (375.9901,66.7999) .. controls (375.9901,66.7999) and (375.9901,66.7999) ..         (375.9900,66.7999) .. controls (375.9900,66.7999) and (375.9900,66.8000) ..         (375.9900,66.8000) .. controls (374.5540,72.2195) and (371.8596,76.9865) ..         (368.7736,81.1359) .. controls (368.7736,81.1359) and (368.7736,81.1359) ..         (368.7736,81.1360) .. controls (364.0149,85.8523) and (358.4752,89.7947) ..         (352.7532,93.2987) .. controls (378.2527,92.4528) and (403.8614,88.7208) ..         (428.3691,80.7837) .. controls (428.3691,80.7837) and (428.3691,80.7837) ..         (428.3691,80.7837) .. controls (446.2121,75.8733) and (463.4729,68.7906) ..         (479.2016,59.1792) .. controls (489.3775,52.9588) and (498.9333,45.7435) ..         (507.2811,37.3486) .. controls (509.5718,35.0452) and (511.7600,32.6737) ..         (513.7769,30.1940) .. controls (513.7769,30.1940) and (513.7769,30.1940) ..         (513.7769,30.1939) .. controls (514.3092,29.5395) and (514.8227,28.8880) ..         (515.3080,28.2333) .. controls (515.4330,28.0647) and (515.5526,27.9012) ..         (515.6654,27.7420) .. controls (516.2398,27.4626) and (516.8118,27.1863) ..         (517.3813,26.9128) .. controls (517.3814,26.9127) and (517.3816,26.9127) ..         (517.3817,26.9126) .. controls (517.3819,26.9125) and (517.3820,26.9124) ..         (517.3822,26.9124) .. controls (517.4610,26.8697) and (517.5397,26.8271) ..         (517.6184,26.7845) .. controls (517.6186,26.7844) and (517.6187,26.7843) ..         (517.6189,26.7842) .. controls (517.6460,26.7696) and (517.6730,26.7549) ..         (517.7000,26.7402) .. controls (517.7001,26.7402) and (517.7001,26.7401) ..         (517.7002,26.7401) .. controls (517.7384,26.7287) and (517.7721,26.7167) ..         (517.8057,26.7046) .. controls (517.9091,26.6699) and (518.0124,26.6353) ..         (518.1158,26.6006) .. controls (518.5242,26.4635) and (518.9322,26.3265) ..         (519.3398,26.1896) .. controls (519.6205,26.2312) and (519.8993,26.2736) ..         (520.1764,26.3161) .. controls (521.2465,26.4805) and (522.3122,26.6515) ..         (523.3742,26.8262) .. controls (527.3249,27.4759) and (531.2608,28.1818) ..         (535.1841,28.9255) .. controls (548.5481,31.4585) and (561.8256,34.4391) ..         (574.9878,37.8572) .. controls (574.9878,37.8572) and (574.9878,37.8572) ..         (574.9879,37.8572) .. controls (592.2183,42.3304) and (609.2859,47.5624) ..         (625.9635,53.9084) .. controls (643.1553,60.4433) and (660.0491,68.1573) ..         (675.6732,78.1250) .. controls (682.8865,82.7271) and (689.8284,87.8512) ..         (696.1810,93.6946) .. controls (696.1811,93.6947) and (696.1811,93.6947) ..         (696.1811,93.6947) .. controls (702.0214,99.0619) and (707.3627,105.0863) ..         (711.6831,111.8630) .. controls (715.7596,118.2581) and (718.8414,125.3501) ..         (720.4470,132.8385) .. controls (722.1070,140.6546) and (722.0962,148.7503) ..         (720.6503,156.5438) .. controls (718.9193,165.8285) and (715.3263,174.6094) ..         (710.7741,182.7058) .. controls (704.9045,193.1590) and (697.5142,202.6154) ..         (689.5039,211.3539) .. controls (679.0292,222.7893) and (667.4380,233.0972) ..         (655.3890,242.7212) .. controls (655.3890,242.7212) and (655.3890,242.7212) ..         (655.3890,242.7212) .. controls (639.7589,255.1596) and (623.3180,266.4937) ..         (606.5183,277.1699) .. controls (606.5183,277.1699) and (606.5183,277.1699) ..         (606.5183,277.1699) .. controls (606.5182,277.1699) and (606.5182,277.1699) ..         (606.5182,277.1699) .. controls (606.5182,277.1699) and (606.5182,277.1699) ..         (606.5182,277.1699) .. controls (573.7686,284.1402) and (540.8445,290.4535) ..         (507.6340,294.7866) .. controls (507.6339,294.7866) and (507.6339,294.7866) ..         (507.6339,294.7866) .. controls (507.6339,294.7866) and (507.6339,294.7866) ..         (507.6339,294.7866) .. controls (487.0405,297.4599) and (466.2315,299.5662) ..         (445.3631,298.9541) .. controls (445.3631,298.9541) and (445.3631,298.9541) ..         (445.3631,298.9541) .. controls (438.7497,298.7611) and (432.0972,298.2685) ..         (425.5230,297.0775) .. controls (420.9242,296.2504) and (416.2952,295.0659) ..         (411.9459,293.0484) .. controls (408.9251,291.6605) and (405.9970,289.7631) ..         (403.7314,287.1009) .. controls (403.7314,287.1009) and (403.7314,287.1009) ..         (403.7314,287.1009) .. controls (401.9395,284.9708) and (400.7335,282.3604) ..         (400.3201,279.5879) .. controls (400.3201,279.5879) and (400.3201,279.5879) ..         (400.3201,279.5878) .. controls (399.9247,276.7962) and (400.2646,274.0063) ..         (401.0113,271.4170) .. controls (401.0113,271.4170) and (401.0113,271.4170) ..         (401.0113,271.4169) .. controls (401.8492,268.4834) and (403.1397,265.7412) ..         (404.6261,263.1742) .. controls (407.9354,257.4513) and (412.1752,252.3870) ..         (416.6561,247.6813) .. controls (416.6561,247.6813) and (416.6562,247.6812) ..         (416.6562,247.6812) .. controls (420.5929,243.5400) and (424.7782,239.6513) ..         (429.1217,235.9664) .. controls (429.1217,235.9664) and (429.1217,235.9664) ..         (429.1217,235.9664) .. controls (430.4943,234.8018) and (431.8855,233.6559) ..         (433.2994,232.5356) .. controls (433.2994,232.5356) and (433.2995,232.5356) ..         (433.2995,232.5356) .. controls (433.9627,232.5266) and (434.6253,232.5167) ..         (435.2874,232.5047) .. controls (435.2924,232.5307) and (435.2981,232.5566) ..         (435.3035,232.5826) .. controls (435.3191,232.6580) and (435.3347,232.7335) ..         (435.3503,232.8090) .. controls (435.3503,232.8091) and (435.3503,232.8092) ..         (435.3503,232.8093) .. controls (435.4119,233.1073) and (435.4734,233.4052) ..         (435.5347,233.7031) .. controls (435.5347,233.7032) and (435.5347,233.7033) ..         (435.5347,233.7034) .. controls (435.3842,233.7004) and (435.2333,233.6974) ..         (435.0821,233.6944) .. controls (434.4957,233.6836) and (433.9088,233.6747) ..         (433.3212,233.6669) .. controls (431.1133,233.6375) and (428.9042,233.6233) ..         (426.6939,233.6190) .. controls (426.6939,233.6190) and (426.6939,233.6190) ..         (426.6939,233.6190) .. controls (418.9800,233.6040) and (411.2649,233.7102) ..         (403.5519,233.9247) .. controls (403.5519,233.9247) and (403.5519,233.9247) ..         (403.5519,233.9247) .. controls (393.0416,234.2171) and (382.5382,234.7124) ..         (372.0552,235.4762) .. controls (372.0552,235.4762) and (372.0552,235.4762) ..         (372.0552,235.4762) .. controls (360.6610,236.3065) and (349.2917,237.4407) ..         (338.0055,239.1229) .. controls (338.0055,239.1229) and (338.0055,239.1229) ..         (338.0055,239.1229) .. controls (338.0054,239.1229) and (338.0054,239.1230) ..         (338.0054,239.1230) .. controls (327.5978,240.6757) and (317.2477,242.6361) ..         (307.2257,245.7016) .. controls (307.2257,245.7016) and (307.2257,245.7016) ..         (307.2256,245.7016) .. controls (303.0114,246.9909) and (298.8644,248.4759) ..         (294.8987,250.3345) .. controls (291.5892,251.8885) and (288.3991,253.6814) ..         (285.6074,255.9566) .. controls (283.3329,257.8176) and (281.3089,259.9987) ..         (280.0584,262.5680) .. controls (278.8967,264.9273) and (278.4530,267.6454) ..         (278.7756,270.2662) .. controls (278.7756,270.2662) and (278.7756,270.2662) ..         (278.7757,270.2663) .. controls (279.1629,273.5211) and (280.6149,276.6279) ..         (282.4305,279.4783) .. controls (282.4305,279.4783) and (282.4305,279.4783) ..         (282.4305,279.4783) .. controls (284.9396,283.7553) and (288.2219,287.5222) ..         (291.7271,291.0324) .. controls (256.9666,294.8001) and (221.3088,293.1164) ..         (188.1927,282.3136) .. controls (188.1927,282.3136) and (188.1926,282.3136) ..         (188.1926,282.3136) .. controls (164.6618,274.5301) and (142.6438,262.0560) ..         (124.3125,245.4118) .. controls (111.5478,233.8214) and (100.5184,220.3117) ..         (91.8691,205.4131) .. controls (91.8691,205.4131) and (91.8691,205.4131) ..         (91.8691,205.4131) .. controls (91.8691,205.4131) and (91.8691,205.4131) ..         (91.8691,205.4131) .. controls (89.3190,201.0206) and (86.9709,196.5078) ..         (84.9234,191.8606) .. controls (84.3653,190.5940) and (83.8294,189.3172) ..         (83.3314,188.0256) .. controls (83.3314,188.0256) and (83.3314,188.0256) ..         (83.3314,188.0256) .. controls (83.3314,188.0256) and (83.3314,188.0256) ..         (83.3313,188.0256) .. controls (83.2013,187.6883) and (83.0738,187.3499) ..         (82.9510,187.0097) .. controls (82.9247,186.9208) and (82.8986,186.8318) ..         (82.8730,186.7426) .. controls (82.8690,186.7191) and (82.8650,186.6956) ..         (82.8611,186.6721) .. controls (82.8601,186.6661) and (82.8591,186.6601) ..         (82.8581,186.6542) .. controls (82.8564,186.6482) and (82.8567,186.6482) ..         (82.8571,186.6482) .. controls (82.8568,186.6483) and (82.8564,186.6484) ..         (82.8561,186.6485) .. controls (82.8591,186.6604) and (82.8601,186.6664) ..         (82.8611,186.6723) .. controls (82.8651,186.6958) and (82.8691,186.7193) ..         (82.8733,186.7428) .. controls (82.8733,186.7428) and (82.8733,186.7428) ..         (82.8733,186.7428) .. controls (82.8992,186.8319) and (82.9259,186.9207) ..         (82.9530,187.0093) .. controls (83.0778,187.3487) and (83.2073,187.6863) ..         (83.3393,188.0228) .. controls (83.3394,188.0228) and (83.3394,188.0229) ..         (83.3394,188.0229) .. controls (83.3394,188.0229) and (83.3394,188.0229) ..         (83.3394,188.0229) .. controls (83.8450,189.3113) and (84.3883,190.5845) ..         (84.9536,191.8475) .. controls (87.0279,196.4813) and (89.4013,200.9772) ..         (91.9753,205.3514) .. controls (91.9753,205.3514) and (91.9753,205.3514) ..         (91.9753,205.3514) .. controls (100.7056,220.1874) and (111.7982,233.6080) ..         (124.5992,245.0945) .. controls (124.5992,245.0945) and (124.5992,245.0945) ..         (124.5992,245.0945) .. controls (124.5992,245.0945) and (124.5992,245.0945) ..         (124.5992,245.0945) .. controls (142.9800,261.5882) and (164.9952,273.8811) ..         (188.4621,281.4913) .. controls (188.4621,281.4913) and (188.4621,281.4913) ..         (188.4621,281.4913) .. controls (221.4094,292.3079) and (256.7636,294.1822) ..         (291.1511,290.8420) .. controls (291.1511,290.8420) and (291.1511,290.8420) ..         (291.1511,290.8420) .. controls (287.4379,287.7146) and (283.9099,284.2978) ..         (281.1132,280.3287) .. controls (281.1132,280.3287) and (281.1132,280.3287) ..         (281.1132,280.3287) .. controls (279.1856,277.3775) and (277.6334,274.0594) ..         (277.1594,270.4701) .. controls (277.1594,270.4701) and (277.1594,270.4701) ..         (277.1594,270.4700) .. controls (276.7826,267.5370) and (277.2593,264.5058) ..         (278.5493,261.8332) .. controls (279.9442,258.9712) and (282.1059,256.5853) ..         (284.5104,254.6164) .. controls (287.4450,252.2051) and (290.7464,250.3155) ..         (294.1313,248.7091) .. controls (298.1886,246.7805) and (302.4079,245.2392) ..         (306.6718,243.9092) .. controls (316.8073,240.7470) and (327.2427,238.7027) ..         (337.6953,237.0836) .. controls (337.6953,237.0836) and (337.6953,237.0836) ..         (337.6954,237.0836) .. controls (349.0375,235.3251) and (360.4545,234.1173) ..         (371.8840,233.2172) .. controls (382.4008,232.3886) and (392.9365,231.8293) ..         (403.4765,231.4739) .. controls (411.2110,231.2131) and (418.9504,231.0609) ..         (426.6913,231.0302) .. controls (428.9093,231.0212) and (431.1284,231.0222) ..         (433.3485,231.0392) .. controls (433.9393,231.0432) and (434.5308,231.0492) ..         (435.1228,231.0565) .. controls (435.2755,231.0585) and (435.4285,231.0605) ..         (435.5818,231.0625) .. controls (435.7170,231.3514) and (435.8523,231.6404) ..         (435.9877,231.9295) .. controls (435.9878,231.9297) and (435.9879,231.9299) ..         (435.9880,231.9301) .. controls (436.0222,232.0032) and (436.0565,232.0762) ..         (436.0907,232.1493) .. controls (436.1024,232.1744) and (436.1142,232.1995) ..         (436.1259,232.2245) .. controls (436.1260,232.2246) and (436.1260,232.2247) ..         (436.1261,232.2248) .. controls (435.7314,233.0212) and (435.3373,233.8193) ..         (434.9438,234.6191) .. controls (434.9438,234.6191) and (434.9438,234.6192) ..         (434.9438,234.6192) .. controls (433.5660,235.7241) and (432.2080,236.8564) ..         (430.8653,238.0094) .. controls (426.6053,241.6681) and (422.5135,245.5142) ..         (418.6810,249.5949) .. controls (418.6810,249.5949) and (418.6810,249.5949) ..         (418.6810,249.5949) .. controls (414.3160,254.2504) and (410.2383,259.1617) ..         (407.1421,264.6163) .. controls (405.7579,267.0585) and (404.5756,269.5874) ..         (403.8525,272.2146) .. controls (403.8525,272.2147) and (403.8525,272.2147) ..         (403.8525,272.2147) .. controls (403.8525,272.2147) and (403.8525,272.2147) ..         (403.8525,272.2147) .. controls (403.2241,274.5233) and (402.9260,276.9016) ..         (403.2832,279.1449) .. controls (403.2832,279.1449) and (403.2832,279.1449) ..         (403.2832,279.1450) .. controls (403.6122,281.3347) and (404.6065,283.4372) ..         (406.0533,285.1383) .. controls (407.9018,287.3420) and (410.4877,288.9534) ..         (413.2459,290.2380) .. controls (417.2474,292.0829) and (421.6264,293.1596) ..         (426.0817,293.9490) .. controls (432.4402,295.0673) and (438.9334,295.5045) ..         (445.4508,295.6611) .. controls (466.0349,296.1527) and (486.6415,293.9334) ..         (507.1527,291.1570) .. controls (507.1527,291.1570) and (507.1527,291.1570) ..         (507.1528,291.1570) .. controls (539.9917,286.7330) and (572.5370,280.3412) ..         (604.9239,273.3024) .. controls (604.9239,273.3024) and (604.9239,273.3024) ..         (604.9239,273.3024) .. controls (604.9239,273.3024) and (604.9239,273.3024) ..         (604.9240,273.3024) .. controls (604.9240,273.3024) and (604.9240,273.3024) ..         (604.9240,273.3024) .. controls (621.3553,262.6722) and (637.3694,251.4293) ..         (652.5064,239.1354) .. controls (652.5064,239.1354) and (652.5064,239.1354) ..         (652.5064,239.1354) .. controls (664.3691,229.5375) and (675.7227,219.3277) ..         (685.9006,208.0741) .. controls (693.6794,199.4670) and (700.7929,190.2748) ..         (706.3357,180.2343) .. controls (710.6193,172.4643) and (713.9719,164.1891) ..         (715.4941,155.6052) .. controls (715.4941,155.6051) and (715.4941,155.6051) ..         (715.4941,155.6051) .. controls (716.7728,148.4327) and (716.7475,141.0272) ..         (715.1927,133.9746) .. controls (713.7146,127.2018) and (710.8371,120.7233) ..         (707.0470,114.8312) .. controls (703.0181,108.5669) and (697.9529,102.9434) ..         (692.3717,97.8565) .. controls (692.3717,97.8565) and (692.3717,97.8565) ..         (692.3717,97.8565) .. controls (686.2924,92.3208) and (679.5873,87.4413) ..         (672.5706,83.0148) .. controls (657.3562,73.4160) and (640.7835,65.9847) ..         (623.8053,59.6292) .. controls (607.3448,53.4741) and (590.4662,48.4118) ..         (573.3904,44.0834) .. controls (573.3904,44.0834) and (573.3904,44.0834) ..         (573.3904,44.0834) .. controls (573.3903,44.0834) and (573.3903,44.0834) ..         (573.3903,44.0834) .. controls (573.3903,44.0834) and (573.3903,44.0834) ..         (573.3903,44.0834) .. controls (560.3464,40.7781) and (547.1938,37.9071) ..         (533.9616,35.4799) .. controls (530.0770,34.7674) and (526.1906,34.0939) ..         (522.3003,33.4778) .. controls (522.3003,33.4778) and (522.3003,33.4778) ..         (522.3003,33.4778) .. controls (522.3003,33.4778) and (522.3003,33.4778) ..         (522.3003,33.4778) .. controls (522.3003,33.4778) and (522.3003,33.4778) ..         (522.3003,33.4778) .. controls (521.2545,33.3122) and (520.2112,33.1511) ..         (519.1700,32.9974) .. controls (518.9003,32.9577) and (518.6323,32.9186) ..         (518.3658,32.8806) .. controls (518.6320,32.7243) and (518.8986,32.5680) ..         (519.1656,32.4119) .. controls (519.2331,32.3724) and (519.3007,32.3329) ..         (519.3683,32.2934) .. controls (519.3928,32.2802) and (519.4174,32.2670) ..         (519.4419,32.2538) .. controls (519.4379,32.2531) and (519.4379,32.2531) ..         (519.4379,32.2530) .. controls (519.4592,32.2467) and (519.4805,32.2405) ..         (519.5018,32.2342) .. controls (519.5636,32.2159) and (519.6253,32.1976) ..         (519.6871,32.1792) .. controls (519.6872,32.1792) and (519.6873,32.1792) ..         (519.6875,32.1791) .. controls (520.1883,32.0021) and (520.6910,31.8216) ..         (521.1957,31.6380) .. controls (521.0476,31.8493) and (520.9010,32.0526) ..         (520.7571,32.2489) .. controls (520.7571,32.2489) and (520.7570,32.2489) ..         (520.7570,32.2489) .. controls (520.1981,33.0112) and (519.6265,33.7465) ..         (519.0517,34.4607) .. controls (519.0517,34.4607) and (519.0517,34.4607) ..         (519.0517,34.4608) .. controls (516.8727,37.1680) and (514.5477,39.7220) ..         (512.1461,42.1616) .. controls (503.3887,51.0566) and (493.4424,58.6755) ..         (482.8983,65.1925) .. controls (482.8983,65.1925) and (482.8983,65.1925) ..         (482.8983,65.1925) .. controls (466.5823,75.2802) and (448.7475,82.7379) ..         (430.3496,87.9053) .. controls (404.2711,94.0406) and (377.1130,95.7334) ..         (350.1087,94.2811) .. controls (354.7073,88.6842) and (358.9805,82.8454) ..         (362.3239,76.4397) .. controls (362.3240,76.4397) and (362.3240,76.4396) ..         (362.3240,76.4396) .. controls (364.9737,72.7114) and (367.2125,68.8436) ..         (368.1732,64.8166) .. controls (368.9028,61.8032) and (368.9645,58.6484) ..         (368.0672,55.9121) .. controls (368.0672,55.9120) and (368.0672,55.9120) ..         (368.0672,55.9120) .. controls (367.2438,53.1355) and (365.4058,50.5364) ..         (363.1625,48.2319) .. controls (360.4463,45.4690) and (357.0448,43.2228) ..         (353.3934,41.2110) .. controls (349.0061,38.8142) and (344.2840,36.8969) ..         (339.4140,35.2122) .. controls (327.6849,31.1595) and (315.3633,28.6244) ..         (302.8851,26.6001) .. controls (302.8851,26.6001) and (302.8850,26.6001) ..         (302.8850,26.6001) .. controls (302.8850,26.6001) and (302.8850,26.6001) ..         (302.8850,26.6001) .. controls (289.2010,24.3896) and (275.3678,22.9356) ..         (261.4752,21.8849) .. controls (248.6103,20.9121) and (235.7094,20.3075) ..         (222.7928,19.9756) .. controls (209.9469,19.7763) and (197.1140,19.5727) ..         (184.2940,19.3648) .. controls (154.3411,43.5847) and (124.4246,67.7921) ..         (94.5446,91.9868) -- cycle;          \end{scope}          \end{tikzpicture}     \end{document}


title: How can I make the fancyhdr footer to be longer than \textwidth?

text: I'm using XeLaTeX with `fancyhdr`. I need to have the footer wider than `\textwidth`. This is an intentional effect. The problem is that the footer is several lines long, so I want them to appear as a single paragraph, wider than `\textwidth`. I'm not sure how best to do that.


title: Latex and gedit: color text in \footnote

text: My question is linked with using Latex and gedit together. I am currently writing a large academic text and I am putting a lot of text into footnotes. Is there an easy way or a nice plugin that would change the **visuals of gedit** so that it changes the **color** of all the text within a `\footnote`-macro? I'd like to be better able to discern the proper text and the footnote text. Gedit is already color-coding all the macros, which is really nice. So in short: **how to make gedit color everything within** `\footnote` macro? (i.e. how to make it change xxx in `\footnote{xxx}` to e.g. slightly blueish color)


title: \titleformat{name=\section} in documentclass

text: I defined a documentclass in which I redefine a heading format with (using the package `titlesec`):               \titleformat{name=\section}       This works. But if I move this `\titleformat{name=\section}` to a block `\DeclareOption`, then it does not compile. It say that all the commands in the `\DeclareOption` are already defined. On the other hand, this format declaration in the `\DeclareOption` block works if I use the syntax `\titleformat{name=\section}` Is it a bug? The point is that I want to use two arguments `{name=\section, numberless=true}`; this is why I want to have this syntax. [EDIT] Thanks for your post. So here would be an example of the "bug" : documentclass file maclasse.cls :               \NeedsTeXFormat{LaTeX2e}     \ProvidesClass{maclasse}[2011/12/19 maclasse]     \LoadClass{article}     \RequirePackage[explicit]{titlesec}          % Sectioning     %% BLOC 1     \titleformat{\section}%        {\large\sffamily\bfseries}%        {lasection \arabic{section}}%        {0.5em}%        {#1}%           %% BLOC 2     \titleformat{name=\section,numberless=true}%        {\sffamily\bfseries}%       {}%        {0.5em}%        {#1}                    \DeclareOption{opt}{               }          \ProcessOptions      A test file with               \documentclass[opt]{maclasse}          \begin{document}     \section{abc}     abc     \section*{def}     def          \end{document}      It compiles.   * Now, move BLOC1 into the \DeclareOption{opt} -> it works.   * Instead, move BLOC2 into \DeclareOption{opt} -> Compilation fails : ! LaTeX Error: \RequirePackage or \LoadClass in Options Section. What do i do wrong ? thanks nicolas


title: Prevent tikz to calculate

text: I just played with an answer to a question I asked here some time ago: Divide a rectangle into n times k equal cells. I wanted to be able to generate the list of points in a separate macro, however if I just put the list into a macro for example               \newcommand{\testlist}{1/2}      And do               \rectDiv{7}{5}{(1,1)}{(4,3)}{\testlist}      I get the following: ![rectangle](http://i.stack.imgur.com/2N4Kj.jpg) So it seems that 1/2 is interpreted as the coordinate (0.5,0.5). If I have something like 2/0 I get an compiler error because of division by zero. Why is `\newcommand{\testlist}{1/2} \rectDiv{7}{5}{(1,1)}{(4,3)}{\testlist}`not equivalent to `\rectDiv{7}{5}{(1,1)}{(4,3)}{1/2}` ? How do I have to modify the example such that I can put the list of points into a macro which will be the last argument of `\rectDiv`? I also tried `\def` and `\edef` instead of `\newcommand` without success.


title: Problem using matlab2tikz

text: I'm trying to get `matlab2tikz` to work. I want to use it for prettyfying output of Matlab's `image()` command. In Matlab I tried               imagesc(rand(100));     xlabel('X');     ylabel('Y');     title('Random Colors');     matlab2tikz('image.tikz');      but when I do               \usepackage{pgfplots}     \input{../../../../src/image.tikz}      it get error               ERROR: Package pgfkeys Error: I do not know the key '/tikz/y dir' and I am going to ignore it. Perhaps you misspelled it.      Also when I try the `matlab2tikz` recommended settings               \pgfplotsset{compat=newest} % For best results      I get a similar error               ERROR: Package pgfkeys Error: I do not know the key '/pgfplots/compat' and I am going to ignore it. Perhaps you misspelled it.      How do I determine if my `pgfplots` version is too old? I'm on Ubuntu 11.10. The latest version of `pgfplots` itself is 1.5.


How to make spaces as command argument delimiters?               \documentclass{article}     \newcommand\foo[2]{#1 and #2.}     \begin{document}     \foo hi you     \end{document}      The expected output is > hi and you. Of course I don't want to enclose the arguments with curly braces. The following is not what I am looking for.               \documentclass{article}     \def\foo #1 #2 {#1 and #2.}     \begin{document}     \foo hi you     \end{document}


title: Color running over text in multirow column

text: I have a simple table with 2 multirow cells. However when I apply background color, it covers the lower portion of the multirow cells and cuts through the middle of my text entry which is obviously not what I want. Can someone please tell me what I'm doing wrong here? Also notice that I'm using \vspace to move my text entry 1mm up in the multirow cells because it wasn't centered. It was closer to the lower border. There is probably a better way of doing this. Below is my code and output table that I'm getting with it:![enter image description here](http://i.stack.imgur.com/Fx4g5.png)               \documentclass[12pt]{article}          \usepackage{latexsym,amssymb}     \usepackage{colortbl}     \usepackage[margin=1in,headsep=2.5cm]{geometry}     \usepackage{multirow}          \definecolor{mycolor}{rgb}{0.92,0.95,0.86}     \arrayrulecolor{white}          \setlength{\parindent}{0pt}     \setlength{\doublerulesep}{2pt}     \setlength{\extrarowheight}{3pt}          \begin{document}          \begin{tabular}     { >{\columncolor{mycolor}}b{79pt}     >{\columncolor{mycolor}}b{145pt}||      >{\columncolor{mycolor}}b{79pt}     >{\columncolor{mycolor}}b{145pt} }     \multicolumn{2}{>{\cellcolor{mycolor}}l||}{\textbf{STUDENT DATA}}&      \multirow{2}{*}{{\vspace{-1mm}\textbf{Name:}}} & \multirow{2}{*}{\vspace{-1mm}MyName}\\     \textbf{E-mail:} & test@example.com &  & \\     \hline \hline     \textbf{Date:} & 21.3.2011 & \textbf{Student ID:} & 3836127\\     \end{tabular}          \end{document}


title: subfigure placement incorrect with 4 figures

text: I am having an issue with latex placing my figures incorrectly. I have 4 related plots that I want to appear together as a single figure (with a,b,c,d sub-references).               \begin{center}     \begin{figure}[h]     \subfigure[All instances]{     \includegraphics[width=0.4\textwidth]{timeregression/graphs/bucketing/all_Q_time}     \label{fig:q_time_all}     }     \subfigure[SAT instances]{     \includegraphics[width=0.4\textwidth]{timeregression/graphs/bucketing/all_sat_Q_time}     \label{fig:q_time_sat}     }     \subfigure[UNSAT instances]{     \includegraphics[width=0.4\textwidth]{timeregression/graphs/bucketing/all_unsat_Q_time}     \label{fig:q_time_unsat}     }     \subfigure[Uniform Random Sample]{     \includegraphics[width=0.4\textwidth]{timeregression/graphs/bucketing/sample_Q_time}     \label{fig:q_time_sample}     }     \caption{Q metric plotted against time}     \end{figure}     \end{center}      This should display an even 4*4 grid of plots, each the same size. However what happens is that the top right plot is offset on the x-axis, such that the left hand side of it is in the middle of the space (i.e. roughly offset by 50% of its width)![enter image description here](http://i.stack.imgur.com/LcHNr.png) Any suggestion of how to fix it?


title: How to remove line breaks before and after theorems?

text: By default, in the `amsthm` package, when you begin a theorem, LaTeX begins on a new line, and when you end the theorem, it also jumps to a new line. How can you prevent this behavior? For example, I might want to display something like this.               Example text before theorem. \begin{thm}This is a theorem.\end{thm} Example text after theorem.      In this example, I would like the example text before and after to appear inline with the theorem.


title: Use of pdftricks with memoir

text: below is a (long, non-working) minimal example for use of pdftricks with the memoir document class. It is based directly on the (shorter, working) minimal example of use of pdftricks found at http://www.tug.org/pipermail/macostex- archives/2009-June/040498.html. I get an error as follows:               ! Undefined control sequence.     \psinputs ->\verbatimwrite                                 {tmp.inputs}     l.28   \begin{psinputs}      Any help is appreciated!               \documentclass[article, a4paper, 12pt, twoside]{memoir}          \setlrmarginsandblock{23mm}{23mm}{*}     \setulmarginsandblock{23mm}{28mm}{*}     \setheadfoot{\onelineskip}{2\onelineskip}     \setheaderspaces{*}{1mm}{*}     \checkandfixthelayout     \setcounter{secnumdepth}{1}     \setsecindent{1cm}     \let\footruleskip\relax % for compatibility of memoir and fancyhdr     \let\sl\ttfamily        % for compatibility of memoir and blindtext (silly, but it works) ha ha \ttfamily     \let\sc\scshape     \let\bf\bfseries     \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhead{}     \fancyfoot{}     \cfoot{\thepage}     \renewcommand{\headrulewidth}{0pt}     %%% End of memoir stuff          \usepackage{ifpdf}     \ifpdf%       \usepackage{pdftricks}       \begin{psinputs}         \usepackage{pstricks}         \usepackage{pst-plot}         \usepackage{pstricks-add} % <- added this line!       \end{psinputs}     \else       \usepackage{pstricks}       \usepackage{pst-plot}       \usepackage{pstricks-add} % <- added this line!       \newenvironment{pdfpic}{}{}     \fi          \begin{document}      \centering     \begin{pdfpic}     \begin{pspicture}(-1,-1)(6,6)     \psaxes[showOriginTick=false,showorigin=false,Dx=2,Dy=2,subticks=2](6,6)     \end{pspicture}     \end{pdfpic}     \end{document}


title: How to cite papers within research paper without displaying the bibliography at the end

text: As the title suggests I would like to reference papers in my bib file but I dont want those references to appear at the end of my document. How could this be achieved?


title: Biblatex Printing "ibid" Lowercase at Beginning of Footnote

text: My ›house‹ citation style is an author-year system with the citations placed in foot- or endnotes rather than in the text. I'm using biblatex's `\autocite` exclusively, with `autocite=footnote` so I don't have to care about placing my citation commands in the right place, and to facilitate switching from my style to an inline citation style when I have to submit a text of mine to someone who demands inline citations. (That's because \autocite can be placed before or after terminal punctuation, and will move the footnote mark or brackets to the correct position later.) Once in a while, though, I have to add a longer comment of mine to a citation. The `postnote` IMHO isn't a proper place for that, especially when further citations are needed within that comment. So I'm going for a `\footnote{\cite{...}...}` construction. This works fine most of the time, the only minor annoyance being I now have two different citation commands (but that's for another thread). But when the citation starting that footnote is a duplicate of the previous one, the resulting `ibid` will be printed in _lowercase,_ in contrast to the ones that result from the `\autocite`s. It's as if biblatex isn't aware of the position of that citation, thinking it's somewhere in the middle rather than at the beginning of that footnote. Any ideas on how to fix this?               \documentclass{scrartcl}     \usepackage{lipsum}     \usepackage[style=authoryear-icomp,autocite=footnote]{biblatex}     \addbibresource{biblatex-examples.bib}          \begin{document}         testing.\autocite{malinowski}     testing\autocite{malinowski}.     testing.\footnote{\cite{malinowski}. I'd like to add: \lipsum[1]}      \end{document}       ![enter image description here](http://i.stack.imgur.com/einBm.png)


title: Increasing paragraph indentation in KOMA script

text: The default parindent in KOMA `scrartcl` is too small for me. I remember reading somewhere that just changing `\parindent` directly is not wise, since it also affects other things (like `itemize` etc). And I think I read that using something like the `parskip` package is better. Now, the `parskip` package documentation says that the KOMA script classes provide similar functionality. But I can't see where in the KOMA guide it discusses changing the indentation. Does KOMA script offer a better way of doing this, or should I just modify parindent directly?


title: How to annotate this chemical scheme using chemfig package?

text: To depict a chemical scheme with more than one reactant and more than one product, I used the handy package `chemfig`. I found some issues though annotating the below chemical reaction in a better way.               \documentclass[12pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}          \usepackage{chemfig}     \setbondstyle{line width=0.5pt}     \setatomsep{1.6em}     \newcommand*\circleatom[1]{\tikz\node[circle,fill=gray!50]{\printatom{#1}};}     \renewcommand*\printatom[1]{\ensuremath{\mathsf{#1}}}     %\schemedebug{true} % uncomment to see names of compounds              \schemestart     \subscheme{     \chemfig{\circleatom{Mol.}-[,1.5]NH_3}     }     \+     \subscheme{     \chemfig{(-[::-150]R)(=[::90]O)(-[::-30]O-[::60]*5(N-(=O)---(=O)-))}     }     \arrow(.mid east--.mid west){->[\chemfig{ pH \rangle 7}]}     \subscheme{     \chemfig{(-[::-150]R)(=[::90]O)(-[::-30]\chembelow{N}{H}-[::60,1.5]\circleatom{Mol.})}     }     \+     \subscheme{     \chemfig{HO-[::30]*5(N-(=O)---(=O)-)}     }     \arrow(@c1.west--){0}[-50,0.5] \parbox[s]{60pt}{\textit{N}-Hydroxy-succinimide-esters}     \arrow(@c3.west--){0}[-50,0.8] \parbox[s]{60pt}{Reactant name2}     \arrow(@c4.west--){0}[-45,1] \parbox[s]{60pt}{Some text}     \arrow(@c6.west--){0}[-35,1.2] \parbox[s]{60pt}{Text}     \schemestop     \end{document}        MWE result: ![enter image description here](http://i.stack.imgur.com/f1T8D.png) **Issues that need to be fixed**   1. At the arrow where the pH should be more than 7, after interrogating Detexify, I couldn't find a better way to do `\textgreater`'s equivalent in math mode. The nearest thing was to use `\rangle` which I don't think is an elegant choice. Anybody knows a better way?    2. The two (N)itrogen atoms became cluttered as you can see, one nice thing, this issue was addressed in `chemfig` manual using the `#( , )` syntax and that should always be _after_ the bond. Unfortunately, this didn't work in this very example returning an error. Is there any other solution?    3. Is there any way to center the alignment of the compound names, center and/or justified alignment? I used the `\par` syntax as it allows text breaking, but is there a better way to address this issue here with LaTeX? It would be better also to come up with a solution where names of all compounds align horizontally.


title: Storing unexpanded macro definitions (including #1, #2, ...) for later use (now includes full usecase)

text: ## Preliminary Info I'm working on a new LaTeX package to make scoping more flexible. To do this I'll be capturing and reintroducing user defined commands behind the scenes. (For a comprehensive description of this package, skip to the **Motivation** section.)   * For storage and retrieval, I'm (ab)using the excellent `datatool` package.   * At some point I'll be integrating this functionality in `\newcommand` itself, but to simplify my question, I'll be defining the `\snewcommand` macro instead.   * This code won't show the scoping stuff. I'm reducing it to the issue at hand. ## What I Have So Far               \usepackage{xparse}     \usepackage{datatool}     \usepackage{etextools}          \makeatletter          \newcommand{\sc@db@name}{scopedcommands}          \DTLnewdb{\sc@db@name}          \newcommand{\sc@db@assignlist}{         \sc@db@col@index      =index,         \sc@db@col@star       =star,         \sc@db@col@command    =command,         \sc@db@col@arguments  =arguments,         \sc@db@col@default    =default,         \sc@db@col@definition =definition%     }          \newcounter{sc@defcount}          \DeclareDocumentCommand{\snewcommand}{s+mo+o+m}{%         \addtocounter{sc@defcount}{1}%         \DTLnewrow{\sc@db@name}%         \dtlexpandnewvalue%             \DTLnewdbentry{\sc@db@name}{index}    {\thesc@defcount}%             \DTLnewdbentry{\sc@db@name}{star}     {\IfBooleanT{#1}{*}}%             \DTLnewdbentry{\sc@db@name}{command}  {\noexpand#2}%             \DTLnewdbentry{\sc@db@name}{arguments}{\IfNoValueF{#3}{[#3]}}%         \dtlnoexpandnewvalue%             \IfValueTF{#4}{\DTLnewdbentry{\sc@db@name}{default}{[#4]}}%                           {\DTLnewdbentry{\sc@db@name}{default}{}}%             \DTLnewdbentry{\sc@db@name}{definition}{#5}%     }          \newcommand{\definestoredcommand}[1]{%         \expandnext{\DTLassign{\sc@db@name}{#1}}{\sc@db@assignlist}%         %         \expandnext{%         \expandaftercmds{%         \expandaftercmds{%         \expandnext{%         \expandaftercmds{%             \newcommand%         }{%             \sc@db@col@star%         }}%             {\sc@db@col@command}%         }{%             \sc@db@col@arguments%         }}{%             \sc@db@col@default%         }}%             {\sc@db@col@definition}     }          \makeatother      It works quite well for commands without parameters:               \def\testfoo{foo}     \snewcommand*{\foo}{\testfoo}     % index 1     \snewcommand*{\foo}{\testfoo bar} % index 2          \definestoredcommand{1}     \foo % foo          \let\foo\relax     \definestoredcommand{2}     \foo % foobar      ## Problem But if I add parameters and actually use them in the command definition, I get errors from the deepest bowels of `datatool`: "Illegal parameter number in definition of \@dtl@tmp." Obviously I should be escaping the hash character in the command definition. ## Questions   1. How can I escape any possible hash characters so they'll be dormantly stored in the database, and then unescape them so they'll do their job?   2. Is there anything else that might still go wrong with this? ## Motivation _(new info)_ I should show you what the package is supposed to do when it's finished. It's something I need for writing my PhD thesis, but I think it may be useful for other TeXers. ### Basics In its simplest form it would allow you to open a named scope multiple times and have the referencing environment continue from one to the other, but not in between. The mandatory argument holds the name:               \begin{scope}{s1}         \newcommand{\foo}{FOO}         \foo   % FOO     \end{scope}          \foo   % <error: undefined>          \begin{scope}{s1}         \foo   % FOO     \end{scope}      (Everything up until this point already works.) Of course, nested scopes behave as expected. But scopes can also behave as though they are nested while being textually separate, and therein lies the real power of this package. You do this by specifying a comma-separated list of superscopes in the optional argument:               \begin{scope}{s1}         \newcommand{\foo}{FOO}              \begin{scope}{s1sub}             \newcommand{\baz}{BAZ}         \end{scope}              \baz   % <error: undefined>     \end{scope}          \begin{scope}[s1sub]{s2}         \newcommand{\bar}{\foo BAR}         \bar   % FOOBAR         \baz   % BAZ     \end{scope}          \begin{scope}{s1}         \bar   % <error: undefined>         \baz   % <error: undefined>     \end{scope}      The package would also allow you to do something else you normally can't do with scopes: have a partial nesting hierarchy, i.e. inherit the commands from two or more unrelated scopes. Some preemptive reassurement: a single-origin command inherited via multiple paths will cause no trouble:               \begin{scope}{s1}         \newcommand{\foo}{FOO}     \end{scope}          \begin{scope}[s1]{s2}         \newcommand{\bar}{\foo BAR}     \end{scope}          \begin{scope}[s1]{s3}         \newcommand{\baz}{\foo BAZ}         \bar   % <error: undefined>     \end{scope}          \begin{scope}[s2,s3]{s4}         \foo   % FOO   <no problem>         \bar   % FOOBAR         \baz   % FOOBAZ     \end{scope}      Last but not least, when you 'join' two scopes in this way, you have full control over how to resolve any conflicts between their referencing environments:               \begin{scope}{s1}         \newcommand{\foobar}{FOO}     \end{scope}          \begin{scope}{s2}         \newcommand{\foobar}{BAR}     \end{scope}          \begin{scope}[s1,s2]{s3}         % <no problem so far>         \foobar   % <error: ambiguous>         \newcommand{\foobar}{...}   % <error: already defined>         \renewcommand{\foobar}{\from{s1}\foobar \from{s2}\foobar}         \foobar   % FOOBAR     \end{scope}      ### Extras The nice thing is, you could optionally get rid of all the overhead by embedding scopes in existing constructs. For my intended use-case:   * the `document` environment forms a root scope   * every `chapter`/`section`/etc. forms a properly nested scope with a name derived from their `\label`   * `\label` takes an optional argument specifying superscopes ### My Usecase My PhD thesis will consist of a formal framework ( _delta modeling_ : find related publications here), introducing new definitions/theorems step-by-step, building on earlier ones. The thesis has a partial recommended reading-order. Some independent concepts build on the first chapter. Later chapters may then combine these concepts. Building on this package, I can ensure that:   * References to definitions/theorems/notation only occur later in the partial reading order than where they originated,   * newly introduced names and notation are unambiguous within their branch,   * notation is always consistent and   * notation can be automatically extracted and put in      * sentence fragments, e.g., "for any deltas $x, y \in D$" and     * a glossary which reflects the reading order. Example:               \chapter{Identity Function} \label{identity}              \newcommand*{\i}{I}              $\i$ is a function such that $\i(x) = x$.          \chapter{Derivatives} \label{derivatives}              \newcommand*{\d}[1]{#1'}              Given function $f$, $\d{f}$ is the derivative of $f$.              % no clue about \i here          \chapter{Boring Conclusion} \label[identity,derivatives]{boring}              Taking the information from chapters \ref{identity}         and \ref{derivatives}, we can now see that:              $\forall x \in \mathbb{R}: \d{\i}(x) = 1$      As you see, it's mostly the partial order I'm interested in. But I'm choosing to make the package more general for two reasons:   * It may be useful to others, maybe for purposes I haven't yet come up with and   * the partially ordered scopes which transform the referencing environment can be seen as deltas in a delta model. In other words, it's interesting for my PhD research. A description of this package will actually be part of my thesis, formalized within the framework. I love self-reference.


title: Getting MacOS Preview to play audio by \href{run: in beamer

text: Originally I had a file `audio.mp4` that I wanted to play by `\href{run:audio.mp4}{START}` from a `beamer` presentation pdf that is run in Preview. Following hints here, I created a `.app` by `appify`, and it works: entering `open runit.app` at the terminal prompt now runs the audio fine. However, `\href{run:runit.app}{START}` still doesn't work (I tried all minor syntactic variants, with absolute path, `./runit.app`, `\href[]{` and so forth).


title: Polyglossia and Verbatim problem

text: After having some hyphenation problems with my text (in greek and english) I changed some of my packages. In the beggining I was using:                 \usepackage{mathspec}        \usepackage{xgreek}       \usepackage{xunicode}       \usepackage{fontspec}       \setallmainfonts[Mapping=tex-text]{Arial}       \setallsansfonts[Mapping=tex-text]{Arial}       \setallmonofonts[Mapping=tex-text]{Arial}      After doing some search I modified those to get correct hyphenation. After doing so in a small sample text, I am trying to change the packages of my original text to the ones used in my sample, in order to get finally the correct hyphenation. However at some point I get: > Package polyglossia error: The current Roman Font does not contain the Greek > Script. > > Line 242: \begin{verbatim} The packages I use are the following:               \usepackage{fontspec}     \newfontfamily\greekfont[Script=Greek]{Linux Libertine O}     \newfontfamily\greekfontsf[Script=Greek]{Linux Libertine O}     \usepackage[Greek,Latin]{ucharclasses}     \usepackage{polyglossia}     \usepackage{xltxtra}     \setmainlanguage{greek}     \setotherlanguages{english}     \setTransitionsForGreek{\selectlanguage{greek}}{\selectlanguage{english}}     \setmainfont{Linux Libertine O}      How can this be fixed?


title: Can I make an alias for a node argument in TikZ

text: When I am drawing illustrations with TikZ, the most common mistake I make is incorrectly writing the relative position of a node. I would for example write "left above" in stead of "above left". It is probably due to my native language where you would state "linksboven" when you indicate a position of an object. Of course this is just a question of correcting and recompiling, but it remains a disturbing annoyance. Is it possible to make an alias for all those above|bolow left|right, so my document would simply compile when I write Dunglish TikZ?