title: Modify template's front page to support lengthier subject titles and two additional text lines

text: I know that this is easy, but I can't figure out how to make it work with a 3 or 4 -line subject title. Any suggestion? The template of the project I am working on is here. EDIT: In additiona, how could I add the following two lines (and the appropriate space) just below my my name:               Supervised by     <name>      where, , preferably, should be in the form of link, exactly as my name. EDIT 2: I added the following after line 222 in ".cls" file:               {{\supervisiontext} \par}     \vspace*{1ex}     {\it {\@supervisor} \par}     \vspace*{15mm}      And the following in "thesis.tex" file:               \renewcommand{\supervisiontext}{supervised by}     \ifpdf         \supervisor{\href{mailto:xxx@xxx.xx}{xxx xxx}}     \else         \supervisor{xxx xxx}     \fi      But, unfortunately, it stills not working.


title: How to use the = sign in captions

text: I'd like my axis to be labeled `$s(t)=\delta(t)$`, but this does not work because of the `=` sign (key-value separator). I had a look into the "Comprehensive Symbols Guide" referenced here: http://w2.syronex.com/jmr/tex/texsym.old.html I also found `\equal`, but it seems like another package is used and to avoid that .... does anyone know how to handle that? For comepleteness, this is what I need to compile.               % \begin{axis}[ylabel=$u_1(t)=\delta(t)$,ymax=1.2] does not work     \begin{axis}[ylabel=$u_1(t)\ne\delta(t)$,ymax=1.2] % different symbol, of course         \addplot [->,>=latex] coordinates {             (0, 0)             (0, 1)         };     \end{axis}


title: Vertically and horizontally centering a matrix bigger than margins

text: This question is a follow-up on a previous question: positioning of a matrix bigger than margins That question dealt with positioning a `pgf` matrix that exceeded the horizontal margins of the page (although I imagine this works for floats as well?), and both answers provide a solution to the problem. However, none of those solutions work if the matrix is bigger than the margins both horizontally _and_ vertically. How can I make sure that a matrix that is (slightly) too big for the margins is centered on the text area, both vertically _and_ horizontally? It seems to me that, out of the answers provided in the previous question, the one based on `stackengine` might be more up to the task (that's why I chose to use that one below), but this may well not be the case, and of course I'm open to all sorts of suggestions. This is a sample document using the `stackengine` solution:               \documentclass{article}     \usepackage{tikz}     \usepackage{pgf}     \usetikzlibrary{matrix}     \usepackage{stackengine}     \newcommand\zerowidth[2][c]{\stackengine{0pt}{}{#2}{O}{#1}{F}{T}{L}}     \begin{document}     \newsavebox\toowide     \setbox0=\hbox{%     \begin{tikzpicture}       \matrix [           matrix of nodes,           nodes={             text depth=4em,             text height=5em,             minimum width=10em,             draw           },           row sep=-\pgflinewidth,           column sep=-\pgflinewidth,         ]       {         A & B & C & D \\         A & B & C & D \\         A & B & C & D \\         A & B & C & D \\         A & B & C & D \\         A & B & C & D \\         A & B & C & D \\         A & B & C & D \\       };     \end{tikzpicture}     \unskip}          \sbox\toowide{\box0}          \centering\zerowidth{\usebox{\toowide}}          \noindent\rule{\textwidth}{1ex}     \end{document}      **Update** Ok, I guess there are some more details that I should have added to make this question more closely reflect the actual problem. In the actual document the chart is within a `table` which is much wider than tall, so the table is _also_ inside a `landscape` environment. This new MWE reflects that, and includes the partial solution by Qrrbrbirlbel:               \documentclass{article}     \usepackage{pdflscape}     \usepackage{tikz}     \usepackage{pgf}     \usetikzlibrary{matrix}     \newenvironment{xycenter}       {\par\setbox0=\hbox\bgroup\ignorespaces}       {\unskip\egroup\noindent\parbox[c][\textheight][c]{\hsize}{\makebox[\hsize]{\box0}}\par}     \begin{document}     \begin{landscape}     \begin{table}     \caption{This is my awesome caption}     \begin{xycenter}     \begin{tikzpicture}       \matrix [matrix of nodes,           nodes={             text depth=3.5em,             text height=4.5em,             minimum width=9em,             draw           },           row sep=-\pgflinewidth,           column sep=-\pgflinewidth,         ]       {         A & B & C & D & E & F & G \\         A & B & C & D & E & F & G \\         A & B & C & D & E & F & G \\         A & B & C & D & E & F & G \\         A & B & C & D & E & F & G \\       };     \end{tikzpicture}     \end{xycenter}     \end{table}     \end{landscape}     \end{document}      The size of the matrix in this case might make it look like the caption should really not be on this page at all, but the actual chart is just a bit bigger than the page, so it's not as bad as this. An alternative solution would be to be able to use `scale` in the `tikzpicture` options, but that's the first thing I tried and it didn't seem to change anything. If scaling were possible, then I wouldn't need to fiddle so much with trying to squeeze this into that page. I'm starting to think I should rename this question...


title: Biblatex: collaborator(s) field

text: I've been pulling my hair out the last several days trying to configure biblatex to handle single and multiple collaborators in bibliography entries. _Exasperated sigh._ Given this example:               \documentclass{article}          \usepackage[style=authoryear]{biblatex}     \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @book{LadymanRoss07,        author = {Ladyman, James and Ross, Don},        collaborator = {David Spurrett and Collier, John},        title = {Every Thing Must Go: Metaphysics Naturalized},        publisher = {Oxford University Press},        year = {2007}     }     \end{filecontents}          \addbibresource{\jobname.bib}     \nocite{*}          \begin{document}     \printbibliography     \end{document}      how can I elegantly achieve:               Ladyman, James and Don Ross (2007). Every Thing Must Go: Metaphysics Naturalized.      With collaborators: David Spurrett and John Collier. Oxford University Press.      in the output, and `With collaborator:` if only one collaborator were involved? FYI, my current most unsatisfactory "fix" involves changing `collaborator =` to `annotator =` wherever it appears in my .bib files, and adding               \DefineBibliographyStrings{english}{       withannotator = With collaborators:\addspace ,     }      to my biblatex configuration code. (This is clearly an awful "solution" in a multitude of ways!)


title: Disable specific section mapping in Vim-LaTeX

text: I don't want to disable all the section mappings with `let g:Tex_SectionMaps = "0"` but the SPA -> \part mapping always interferes when I want to type SPARQL. How can I deactivate just this one section mapping?


title: Alternative to align in this case?

text: I have the following formulas in an `align` environment:               \begin{align}     l_t&=\sigma_t * \epsilon_t\\      \hat{VaR}_{0.99,T+1|T}&=\hat{\sigma}_{T+1|T} * z_{0.99}\\     \hat{\sigma}_{T+1|T}^{ewma}&=\sqrt{(1-\lambda)\sum_{i=0}^{(262-1)} \lambda^i l_{T-i}^2}      \end{align}      How can I set this formulas with a different envrironment?


title: Issues with APACite package undefined control sequence \bibitem

text: I get the following errors when I try to cite with `apacite`               Undefined control sequence \bibitem{GDP:2012}     You can't use `\relax' after \the \bibitem{GDP:2012}     Citation `GDP:2012' undefined     There were undefined references.      Here is the MWE:               \documentclass{article}     \usepackage{apacite}          \begin{document}          \bibliographystyle{plain}          Some text \cite{GDP:2012}          \bibliography{summative}          \end{document}      and here is the BibTeX file               @online{GDP:2012,     ALTauthor = {The World Bank},     ALTeditor = {},     title = {GDP Per Capita (Current \$US)},     date = {2012},     url = {http://data.worldbank.org/indicator/NY.GDP.PCAP.CD},     }      Updated:               @misc{GDP:2012,     author = "The World Bank",     editor = {},     title = "GDP Per Capita (Current \$US)",     year = "2012",     url = "http://data.worldbank.org/indicator/NY.GDP.PCAP.CD",     }      I have ran it twice and the file is in the same directory as my .tex file. What could be the issue?


title: Textsuperscript and linebreak problem

text: I got a problem when doing cites and linebreaks. I configured `natbib` the following way:               \usepackage{babelbib}      \usepackage[super,square,numbers,sort&compress]{natbib}      Now, citing multiple references inside text: > ...Weise auch modulatorische Aktivität für das Aktin-Cytoskelett, weswegen > gelegentlich eine Art Netzwerk-Cross-Talk (engl. für Übersprechen) > diskutiert > wird\cite{wu:par1mappsd,kodama:acf7microtubuli,tsvetkov:claspsmicrotubuli,jaworski:microtubuledynamicsspines,hoogenraad:microtubulispines}. > Bestätigend dazu zeigte eine Studie zum mikrotubuli assoziierten Protein 1B > (MAP1b), dass dessen Knockout in Mäusen die Hippocampale Spine-Dichte > reduzierte. Dies... This produces the cite in brackets superscripted. Looks nice, if it wouldn't run over the page width: ![using super option](http://i.stack.imgur.com/Ulone.jpg) Now, if I remove the super-option from `\usepackage[square,numbers,sort&compress]{natbib}` it breakes the lines as usual: ![using no super option](http://i.stack.imgur.com/HmQ7Y.jpg) So it's the super-option which makes the text running over the page width. Now I tried the `\textsuperscript` command and entered a pretty large text: > ...Spine-Dichte reduzierte. Dies wurde zusammen mit RhoA-Aktivierung und > Rac1-Inaktivierung beobachtet, also Modulatoren der Aktin- > dynamik\cite{tortosa:map1bspinematuration}.\textsuperscript{test test test > test test test test te-st test test test test}\ Andere Beispiele, die > zunächst über eine Veränderung im Transkriptom eine Änderung... Also here, the superscript text runs over the page width: ![enter image description here](http://i.stack.imgur.com/xAZBk.jpg) Finally, here is my preamble:                   \documentclass[a4paper,12pt,BCOR8mm,DIV=calc,oneside,headings=normal,parskip=half,toc=graduated,bibliography=totocnumbered,final]{scrreprt}         \pagestyle{headings}         \usepackage[T1]{fontenc}         \usepackage{frutigernext}         \renewcommand{\familydefault}{\sfdefault} % andere schriftart              \usepackage{setspace} % um Zeilenabstand definieren zu kÃ¶nnen         \usepackage[left=30mm, right=29mm,top=30mm,bottom=30mm,bindingoffset=8mm]{geometry} %RÃ¤nder         \usepackage[ngerman,english]{babel} % Deutsche Trennungen, Anführungsstriche und mehr, englisch in den Zitaten         \usepackage[latin1]{inputenc} % Eingabe von ä,ö,ü,ß erlauben         \setcounter{tocdepth}{4} % TOC wird bis auf Ebene 4 herunter gestellt         \setcounter{secnumdepth}{4}              \usepackage[markuppercase,clines]{scrpage2} % fÃ¼r die Striche in den Kopf- und FuÃŸzeilen         \clearscrheadfoot         \renewcommand*{\chapterpagestyle}{scrheadings}         % Kopfzeile         \chead[]{}         \automark{chapter}         \ihead[\headmark]{\uppercase{\headmark}}         \ohead[\pagemark]{\pagemark}         \setheadsepline{0.5pt}                   % ----- BIBTEX -----         \usepackage{babelbib} % Deutsche Zitierweise, muss nach(!!!) babel geladen werden         \usepackage[super,square,numbers,sort&compress]{natbib} % fÃ¼r die Zitate: Nummer in eckigen Klammern, hochgestellt                   % ----- MISC -----         \usepackage{blindtext}         \usepackage{lscape} % stellenweises Querformat         \usepackage{rotating}         \usepackage{pifont}% Symbole einfügen \ding{i}         \usepackage{url} % zum intelligenten anzeigen von url's         \usepackage{amsmath} % mathematische Formel einbinden         \usepackage{amssymb}         \usepackage{textcomp} %für Textzeichen wie TM, (c), (R)         \usepackage{upgreek}                   % ----- GRAFIKEN -----         \usepackage{float}         \usepackage{graphicx} % zum Einbinden von Grafiken         \setcapindent{0pt}         \addtokomafont{caption}{\footnotesize}         \addtokomafont{captionlabel}{\bfseries}         \usepackage{wrapfig} %für umfließen von grafiken / tabellen         \usepackage{caption}         \usepackage[absolute]{textpos}                    % ----- FARBEN -----         \usepackage{color}         \usepackage[table,usenames,dvipsnames]{xcolor}                   % ----- TABELLEN -----         \usepackage{tabu}         \usepackage{longtable}         \usepackage{calc}         \newcommand{\ctabukopf}{\taburowcolors[1]1{gray!100 .. gray!100}\rowfont[c]\bfseries\hline}         \newcommand{\ltabukopf}{\taburowcolors[1]1{gray!100 .. gray!100}\rowfont[l]\bfseries\hline}         \newcommand{\tabudashedline}{\tabucline[on 2pt gray!100]}         \newlength{\quotetextwidth}         \setlength{\quotetextwidth}{\textwidth-\leftmargin}                   % ----- SOURCECODE -----         \usepackage{listings} % Source-Code printer fÃ¼r LaTeX         \usepackage{etoolbox} %entfernt "closed-bracked-bug                   % ----- REFS, FOOTNOTES -----         \usepackage{prettyref}         \usepackage{titleref}         % text:         \newrefformat{sec}{siehe Abschnitt~\ref{#1} auf Seite \pageref{#1}}         \newrefformat{insec}{siehe auch Er\"orterungen auf Seite \pageref{#1}}         \newcommand{\prettysections}[2]{siehe auch Abschnitt~\ref{#1} \glqq\titleref{#1}\grqq \ auf Seite \pageref{#1} und Abschnitt~\ref{#2} \glqq\titleref{#2}\grqq \ auf Seite \pageref{#2}}         \newcommand{\prettysection}[1]{siehe auch Abschnitt~\ref{#1} \glqq\titleref{#1}\grqq \ auf Seite \pageref{#1}}         \newcommand{\prettyfig}[1]{siehe auch Abbildung~\ref{#1}\ auf Seite \pageref{#1}}         \newcommand{\prettyqsecs}[2]{siehe Abschnitt~\ref{#1}\ auf Seite \pageref{#1}\ und Abschnitt~\ref{#2}\ auf Seite \pageref{#2}}         \newcommand{\prettyqsec}[1]{siehe Abschnitt~\ref{#1}\ auf Seite \pageref{#1}}              \usepackage[para]{footmisc}          \renewcommand{\footnoterule}{\rule{0pt}{0pt}} %ausblenden der linie         \renewcommand\thefootnote{\normalsize\fnsymbol{footnote}}         % figs:         \newrefformat{fig}{siehe Abbildung~\ref{#1} \glqq\titleref{#1}\grqq \ auf Seite \pageref{#1}}         % tabs:         \newrefformat{tab}{siehe Tabelle~\ref{#1} \glqq\titleref{#1}\grqq \ auf Seite \pageref{#1}}      * * * Of course I can provide you with a minimal example - I should have added it in my initial post: test.tex:               \documentclass[a4paper,12pt,BCOR8mm,DIV=calc,oneside,headings=normal,parskip=half,toc=graduated,bibliography=totocnumbered,final]{scrreprt}     \pagestyle{headings}     \usepackage[T1]{fontenc}     \usepackage{setspace} % um Zeilenabstand definieren zu kÃ¶nnen     \usepackage[left=30mm, right=29mm,top=30mm,bottom=30mm,bindingoffset=8mm]{geometry} %RÃ¤nder     \usepackage[ngerman,english]{babel} % Deutsche Trennungen, Anführungsstriche und mehr, englisch in den Zitaten     \usepackage[latin1]{inputenc} % Eingabe von ä,ö,ü,ß erlauben     \setcounter{tocdepth}{4} % TOC wird bis auf Ebene 4 herunter gestellt     \setcounter{secnumdepth}{4}          \usepackage[markuppercase,clines]{scrpage2} % fÃ¼r die Striche in den Kopf- und FuÃŸzeilen     \clearscrheadfoot     \renewcommand*{\chapterpagestyle}{scrheadings}     % Kopfzeile     \chead[]{}     \automark{chapter}     \ihead[\headmark]{\uppercase{\headmark}}     \ohead[\pagemark]{\pagemark}     \setheadsepline{0.5pt}               % ----- BIBTEX -----     \usepackage{babelbib} % Deutsche Zitierweise, muss nach(!!!) babel geladen werden     \usepackage[super,square,numbers]{natbib} % fÃ¼r die Zitate: Nummer in eckigen Klammern, hochgestellt               % ----- MISC -----     \usepackage{blindtext}     \usepackage{lscape} % stellenweises Querformat     \usepackage{rotating}     \usepackage{pifont}% Symbole einfügen \ding{i}     \usepackage{url} % zum intelligenten anzeigen von url's     \usepackage{amsmath} % mathematische Formel einbinden     \usepackage{amssymb}     \usepackage{textcomp} %für Textzeichen wie TM, (c), (R)     \usepackage{upgreek}               % ----- GRAFIKEN -----     \usepackage{float}     \usepackage{graphicx} % zum Einbinden von Grafiken     \setcapindent{0pt}     \addtokomafont{caption}{\footnotesize}     \addtokomafont{captionlabel}{\bfseries}     \usepackage{wrapfig} %für umfließen von grafiken / tabellen     \usepackage{caption}     \usepackage[absolute]{textpos}                % ----- FARBEN -----     \usepackage{color}     \usepackage[table,usenames,dvipsnames]{xcolor}               % ----- TABELLEN -----     \usepackage{tabu}     \usepackage{longtable}     \usepackage{calc}     \newcommand{\ctabukopf}{\taburowcolors[1]1{gray!100 .. gray!100}\rowfont[c]\bfseries\hline}     \newcommand{\ltabukopf}{\taburowcolors[1]1{gray!100 .. gray!100}\rowfont[l]\bfseries\hline}     \newcommand{\tabudashedline}{\tabucline[on 2pt gray!100]}     \newlength{\quotetextwidth}     \setlength{\quotetextwidth}{\textwidth-\leftmargin}               % ----- SOURCECODE -----     \usepackage{listings} % Source-Code printer fÃ¼r LaTeX     \usepackage{etoolbox} %entfernt "closed-bracked-bug               % ----- REFS, FOOTNOTES -----     \usepackage{prettyref}     \usepackage{titleref}     % text:     \newrefformat{sec}{siehe Abschnitt~\ref{#1} auf Seite \pageref{#1}}     \newrefformat{insec}{siehe auch Er\"orterungen auf Seite \pageref{#1}}     \newcommand{\prettysections}[2]{siehe auch Abschnitt~\ref{#1} \glqq\titleref{#1}\grqq \ auf Seite \pageref{#1} und Abschnitt~\ref{#2} \glqq\titleref{#2}\grqq \ auf Seite \pageref{#2}}     \newcommand{\prettysection}[1]{siehe auch Abschnitt~\ref{#1} \glqq\titleref{#1}\grqq \ auf Seite \pageref{#1}}     \newcommand{\prettyfig}[1]{siehe auch Abbildung~\ref{#1}\ auf Seite \pageref{#1}}     \newcommand{\prettyqsecs}[2]{siehe Abschnitt~\ref{#1}\ auf Seite \pageref{#1}\ und Abschnitt~\ref{#2}\ auf Seite \pageref{#2}}     \newcommand{\prettyqsec}[1]{siehe Abschnitt~\ref{#1}\ auf Seite \pageref{#1}}          \usepackage[para]{footmisc}      \renewcommand{\footnoterule}{\rule{0pt}{0pt}} %ausblenden der linie     \renewcommand\thefootnote{\normalsize\fnsymbol{footnote}}     % figs:     \newrefformat{fig}{siehe Abbildung~\ref{#1} \glqq\titleref{#1}\grqq \ auf Seite \pageref{#1}}     % tabs:     \newrefformat{tab}{siehe Tabelle~\ref{#1} \glqq\titleref{#1}\grqq \ auf Seite \pageref{#1}}              \begin{document}         \selectlanguage{ngerman}         \pagestyle{scrheadings}         \onehalfspacing         \chapter{CITE-MWE}         \subsection{something}         ...Weise auch modulatorische Aktivität für das Aktin-Cytoskelett, weswegen gelegentlich eine Art Netzwerk-Cross-Talk (engl. für Übersprechen) diskutiert\cite{a:a,a:c,a:d,a:f,a:h,a:j,a:b,a:e,a:g,a:i} wird. Bestätigend dazu zeigte eine Studie zum mikrotubuli assoziierten Protein 1B (MAP1b), dass dessen Knockout in Mäusen die Hippocampale Spine-Dichte reduzierte. Dies...         \clearpage                   \chapter{Textsuperscript-MWE}         \subsection{something}         ...Weise auch modulatorische Aktivität für das Aktin-Cytoskelett, weswegen gelegentlich eine Art Netzwerk-Cross-Talk (engl. für Übersprechen) diskutiert wird. \textsuperscript{Bestätigend dazu zeigte eine Studie zum mikrotubuli assoziierten Protein 1B (MAP1b), dass dessen Knockout in Mäusen die Hippocampale Spine-Dichte reduzierte.} Dies...         \clearpage                        %------------------Literatur         %\bibliographystyle{babunsrt} % Zitierordnung und Stil         \bibliographystyle{my-plain}         \setbtxfallbacklanguage{english} % wenn im bib-Eintrag nicht explizit language=[ngerman} gesetzt ist, wird von einem englischen Zitat ausgegangen         \let\oldbibliography\thebibliography         \renewcommand{\thebibliography}[1]{%             \oldbibliography{#1}%             \setlength{\itemsep}{0pt}%         }              \scriptsize         \bibliography{Quellen}         \normalsize         \clearpage              \end{document}      Quellen.bib:               @Article{     a:a,        Author="Garey, L. J.  and Ong, W. Y.  and Patel, T. S.  and Kanani, M.  and Davis, A.  and Mortimer, A. M.  and Barnes, T. R.  and Hirsch, S. R. ",        Title="{{R}educed dendritic spine density on cerebral cortical pyramidal neurons in schizophrenia}",        Journal="J. Neurol. Neurosurg. Psychiatr.",        Year="1998",        Volume="65",        Number="4",        Pages="446--453",        Month="Oct"     }          @Article{     a:b,        Author="Lee, F. H.  and Kaidanovich-Beilin, O.  and Roder, J. C.  and Woodgett, J. R.  and Wong, A. H. ",        Title="{{G}enetic inactivation of {G}{S}{K}3-alpha rescues spine deficits in {D}isc1-{L}100{P} mutant mice}",        Journal="Schizophr. Res.",        Year="2011",        Volume="129",        Number="1",        Pages="74--79",        Month="Jun"     }          @Article{     a:c,        Author="He, C. X.  and Portera-Cailliau, C. ",        Title="{{T}he trouble with spines in fragile {X} syndrome: density, maturity and plasticity}",        Journal="Neuroscience",        Year="2012",        Pages=" ",        Month="Apr"     }          @Article{     a:d,        Author="Fiala, J. C.  and Spacek, J.  and Harris, K. M. ",        Title="{{D}endritic spine pathology: cause or consequence of neurological disorders?}",        Journal="Brain Res. Brain Res. Rev.",        Year="2002",        Volume="39",        Number="1",        Pages="29--54",        Month="Jun"     }          @Article{     a:e,        Author="Penzes, P.  and Cahill, M. E.  and Jones, K. A.  and VanLeeuwen, J. E.  and Woolfrey, K. M. ",        Title="{{D}endritic spine pathology in neuropsychiatric disorders}",        Journal="Nat. Neurosci.",        Year="2011",        Volume="14",        Number="3",        Pages="285--293",        Month="Mar"     }          @Article{     a:f,        Author="Mines, M. A.  and Jope, R. S. ",        Title="{{G}lycogen synthase kinase-3: a promising therapeutic target for fragile x syndrome}",        Journal="Front Mol Neurosci",        Year="2011",        Volume="4",        Pages="35"     }          @Article{     a:g,        Author="Mines, M. A.  and Jope, R. S. ",        Title="{{G}lycogen synthase kinase-3: a promising therapeutic target for fragile x syndrome}",        Journal="Front Mol Neurosci",        Year="2011",        Volume="4",        Pages="35"     }          @Article{     a:h,        Author="Mines, M. A.  and Jope, R. S. ",        Title="{{G}lycogen synthase kinase-3: a promising therapeutic target for fragile x syndrome}",        Journal="Front Mol Neurosci",        Year="2011",        Volume="4",        Pages="35"     }          @Article{     a:i,        Author="Mines, M. A.  and Jope, R. S. ",        Title="{{G}lycogen synthase kinase-3: a promising therapeutic target for fragile x syndrome}",        Journal="Front Mol Neurosci",        Year="2011",        Volume="4",        Pages="35"     }          @Article{     a:j,        Author="Mines, M. A.  and Jope, R. S. ",        Title="{{G}lycogen synthase kinase-3: a promising therapeutic target for fragile x syndrome}",        Journal="Front Mol Neurosci",        Year="2011",        Volume="4",        Pages="35"     }          @Article{     a:k,        Author="Mines, M. A.  and Jope, R. S. ",        Title="{{G}lycogen synthase kinase-3: a promising therapeutic target for fragile x syndrome}",        Journal="Front Mol Neurosci",        Year="2011",        Volume="4",        Pages="35"     }      I did not include my-plain.bst. You can download the whole bunch from here: test.zip


title: Different formats but using same IEEETran template

text: I'm using the IEEETran.cls (version 1.7) file to compile my latex files. The sample pdf from the website shows the title format in image (1). However it is showing as image (2) in my system. I'm not modifying the template and using the same *.tex file. Same is the issue with entries in references. In the first method, there is spacing between entries and in the latter they is no spacing at all. Are these both acceptable formats for IEEE conferences. If not how do I get the actual formatting. Thanks, kris ![enter image description here](http://i.stack.imgur.com/IWZw8.png) ![enter image description here](http://i.stack.imgur.com/2f0P6.png)


title: 'Dimension too large' error in animate package

text: I am using the animate package to include a series of images into a PDF (like a small movie), which usually works fine, however, now I am running into an               ! Dimension too large.     <recently read> \calc@B           l.5 ...\columnwidth]{4}{images/ani-}{00000}{00023}      error, which I cannot figure out or work around. The images are JPEG files, each 130x326 pixels large. The width and height given in the document should make them fit on the page neatly. Here is the latex input file:               \documentclass[8pt]{beamer}     \usepackage{animate}     \begin{document}         \section{Image Slides}         \animategraphics[controls = false, autoplay, loop, height=0.18\columnwidth]{4}{images/ani-}{00000}{00023}     \end{document}      And here you can download the complete package with minimal latex file and the image frames (as JPEG): http://www.vivoquant.com/files/remove/Dimension-too- large.tgz I of course already googled 'Dimension too large' and tried many of the workaround explained there, however, none worked for or applied to my case. Any help is appreciated. Christian


title: Looping over elements to change font in math mode

text: I have the following code:               \documentclass{article}          \newcommand*{\ident}[1]{\texttt{\small #1}}          \makeatletter     \newcommand\ci[1]{%         \def\citmp{}%         \@for\reserved:=#1\do{%             \protected@edef\citmp{\citmp\ifx\citmp\empty\else,\fi\ident{\reserved}}%         }%         \{\citmp\}%     }     \makeatother          \begin{document}          $\ci{a,b,c}$ % (1)          $\ci{a, b, c}$ % (2)          $\{\ident{a}, \ident{b}, \ident{c} \}$ % (3)          \end{document}      (The code for `\ci` is taken from an answer on this site; I can't find the URL right now, though.) This contains two problems:   1. ~~Lines`(1)` and `(2)` report those warnings, whereas line `(3)`, which should (from what I understand, at least), be identical to line `(1)`, does not:~~ (Solved by jfbu, thanks!)              LaTeX Font Warning: Command \relax \GenericWarning {(Font)              }{LaTeX      Font Warning: Command \relax \GenericWarning {(Font)              }{LaTeX Font      Warning: Command \relax \fontsize {9}{11}\selectfont \abovedisplayskip 8.5\p@      plus3\p@ minus4\p@ \abovedisplayshortskip \z@ plus2\p@ \belowdisplayshortskip 4     \p@ plus2\p@ minus2\p@ \def \leftmargin \leftmargini \parsep 4\p@ plus2\p@ minu     s\p@ \topsep 8\p@ plus2\p@ minus4\p@ \itemsep 4\p@ plus2\p@ minus\p@ {\leftmarg     in \leftmargini \topsep 4\p@ plus2\p@ minus2\p@ \parsep 2\p@ plus\p@ minus\p@ \     itemsep \parsep }\belowdisplayskip \abovedisplayskip invalid in math mode}\font     size {9}{11}\selectfont \abovedisplayskip 8.5\p@ plus3\p@ minus4\p@ \abovedispl     ayshortskip \z@ plus2\p@ \belowdisplayshortskip 4\p@ plus2\p@ minus2\p@ \def \l     eftmargin \leftmargini \parsep 4\p@ plus2\p@ minus\p@ \topsep 8\p@ plus2\p@ min     us4\p@ \itemsep 4\p@ plus2\p@ minus\p@ {\leftmargin \leftmargini \topsep 4\p@ p     lus2\p@ minus2\p@ \parsep 2\p@ plus\p@ minus\p@ \itemsep \parsep }\belowdisplay     skip \abovedisplayskip invalid in math mode}\fontsize {9}{11}\selectfont \above     displayskip 8.5\p@ plus3\p@ minus4\p@ \abovedisplayshortskip \z@ plus2\p@ \belo     wdisplayshortskip 4\p@ plus2\p@ minus2\p@ \def \leftmargin \leftmargini \parsep      4\p@ plus2\p@ minus\p@ \topsep 8\p@ plus2\p@ minus4\p@ \itemsep 4\p@ plus2\p@      minus\p@ {\leftmargin \leftmargini \topsep 4\p@ plus2\p@ minus2\p@ \parsep 2\p@      plus\p@ minus\p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip invalid      in math mode on input line 17.          LaTeX Font Warning: Command \relax \GenericWarning {(Font)              }{LaTeX      Font Warning: Command \relax \fontsize {9}{11}\selectfont \abovedisplayskip 8.     5\p@ plus3\p@ minus4\p@ \abovedisplayshortskip \z@ plus2\p@ \belowdisplayshorts     kip 4\p@ plus2\p@ minus2\p@ \def \leftmargin \leftmargini \parsep 4\p@ plus2\p@      minus\p@ \topsep 8\p@ plus2\p@ minus4\p@ \itemsep 4\p@ plus2\p@ minus\p@ {\lef     tmargin \leftmargini \topsep 4\p@ plus2\p@ minus2\p@ \parsep 2\p@ plus\p@ minus     \p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip invalid in math mode}     \fontsize {9}{11}\selectfont \abovedisplayskip 8.5\p@ plus3\p@ minus4\p@ \above     displayshortskip \z@ plus2\p@ \belowdisplayshortskip 4\p@ plus2\p@ minus2\p@ \d     ef \leftmargin \leftmargini \parsep 4\p@ plus2\p@ minus\p@ \topsep 8\p@ plus2\p     @ minus4\p@ \itemsep 4\p@ plus2\p@ minus\p@ {\leftmargin \leftmargini \topsep 4     \p@ plus2\p@ minus2\p@ \parsep 2\p@ plus\p@ minus\p@ \itemsep \parsep }\belowdi     splayskip \abovedisplayskip invalid in math mode on input line 17.          LaTeX Font Warning: Command \relax \fontsize {9}{11}\selectfont \abovedisplaysk     ip 8.5\p@ plus3\p@ minus4\p@ \abovedisplayshortskip \z@ plus2\p@ \belowdisplays     hortskip 4\p@ plus2\p@ minus2\p@ \def \leftmargin \leftmargini \parsep 4\p@ plu     s2\p@ minus\p@ \topsep 8\p@ plus2\p@ minus4\p@ \itemsep 4\p@ plus2\p@ minus\p@      {\leftmargin \leftmargini \topsep 4\p@ plus2\p@ minus2\p@ \parsep 2\p@ plus\p@      minus\p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip invalid in math      mode on input line 17.      The same warnings are repeated for the other line.   2. Line `(2)` is formatted differently (see below) than lines `(1)` and `(3)`, since the spaces between the commas and the elements are copied to the output instead of ignored. This is not that bad since I can always use the version in line `(1)`, but I wonder if there is a way to simply ignore the spaces. ![enter image description here](http://i.stack.imgur.com/40JvV.png)


title: dimexpr: multiplication with constant real factor from macro

text: I want to multiply a constant from a macro with a deimension using `dimexpr`. When using real numbers the decimal point and the decimal digits are typeset behind the result and the result is a mutliplication with the floor value of the constant used.               \documentclass{report}     \begin{document}       \def\const{1.9}       \noindent       \the\dimexpr \linewidth*\const\relax \newline       \the\dimexpr \linewidth*\numexpr\const\relax\relax \newline       \the\linewidth     \end{document}      The second multiplication is an attempt to use the suggestion from here, to wrap the macro in a sub expression


title: Texmaker Package Management for Linux

text: I'm using Texmaker on Linux Mint 15. I previously used Texmaker on Windows, with the MiKTeX package manager to automatically download required packages for me. Is there a similar tool I can use on Mint?


title: colors in tablecells in LaTeX

text: I'm making a tabular and I want some of the cells to be colored. So I searched how to make colored cells. I now have the following:               \documentclass{article}     \usepackage{xcolor,colortbl}          \definecolor{lblue}{RGB}{218,227,254}     \newcommand{\lblue}{\cellcolor{teal}}          \begin{tabular}{|c|c|}     \hline     \lblue yes & no \\     \hline     \end{tabular}      The problem is, I want to use two different colors, so I thought I can define a new color, just like I did before:               \definecolor{newcolor}{RGB}{200,100,50}     \newcommand{\newcolor}{\cellcolor{teal}}      But everything turns into the first defined color. Even if I try `{rgb}` instead of `{RGB}`. My question is: why can't I make two (or multiple) different colors? How should I make the two colors? Should I use different type of `\newcommand`? Hopefully somebody can help me.


title: Citation colour with Beamer + Hyperref + Natbib

text: I'm using `natbib` for citation with a custom bibstyle. I'm working on a presentation using LaTeX `beamer` and for some reason the citation marker doesn't have the colour that is specified to `hyperref`. The citation marker is black instead of green. I'll give you a MWE:               \documentclass{beamer}     \hypersetup{       colorlinks,       citecolor=green,       linkcolor=red     }          \usepackage{filecontents}     \begin{filecontents}{mybib.bib}     @ARTICLE{Bar2011,       author = {F. Foo and F. Bar},       title = {Foo and Bar},       journal = {Journal of Foo},       year = {2011},       volume = {1},       pages = {1--3}     }     \end{filecontents}          \usepackage[comma,numbers,sort&compress]{natbib}     \bibliographystyle{plain}          \begin{document}     Dummy referefence to~\cite{Bar2011}     \bibliography{mybib}     \end{document}      For the purpose of the MWE I have selected the `plain` bibstyle, however, changing that to something else (including the custom style I want to use) doesn't affect the label colour. Is there any patch for this problem?


title: How to make an image for backgrounds with exact A4 dimensions?

text: In order to make a background image that fits the page perfectly, I have tried two things. The first is to use a document class where the dimensions of the page can be set to that of A4, which resulted in the following.               \documentclass[a4paper]{article}     \usepackage{graphicx,tikz}     \usepackage[margin=0cm]{geometry}     \begin{document}     \noindent\resizebox{\pdfpagewidth}{\pdfpageheight}{         \begin{tikzpicture}             \draw (0,0) -- (1,0) -- (1,1) -- (0,1) -- cycle;         \end{tikzpicture}         }     \end{document}      Another thing was to look up the dimensions of A4 in points, to which I found an answer on Wrong A4 measurements? (consistent with the 21x29.7cm), and then make a standalone with those lengths, with the following code.               \documentclass{standalone}     \usepackage{graphicx,tikz}     \begin{document}     \noindent\resizebox{595.276pt}{841.89pt}{         \begin{tikzpicture}             \draw (0,0) -- (1,0) -- (1,1) -- (0,1) -- cycle;         \end{tikzpicture}         }     \end{document}      Here I just drew a rectangle to make sure it covered the page, but unfortunately it didn't, as can be seen in the following image (changed the paper colour to grey to make it visible). Both tex files gave the same output, so there is just one image. ![An attempt to make a background image](http://i.stack.imgur.com/3rx4d.png) Now I suspected it was the `tikz` that made this error, and tried with `picture` instead:               \documentclass{standalone}     \usepackage{graphicx,tikz}     \begin{document}     \begin{picture}(595.276,841.89)         \linethickness{10pt}         \multiput(0,0)(595.276,0){2}{\line(0,1){841.89}}         \multiput(0,0)(0,841.89){2}{\line(1,0){595.276}}     \end{picture}     \end{document}      This worked, resulting in the next image (grey just for consistency this time). ![The second attempt](http://i.stack.imgur.com/rWp8w.png) The image was used as a background using               \documentclass[a4paper]{article}     \usepackage{graphicx,lipsum}    % lipsum for the filling text     \usepackage{wallpaper}     \begin{document}     \CenterWallPaper{1}{img/bg2}     \lipsum[1-5]     \end{document}      Now there is one thing I would like an argumented opinion on, and two questions:   1. Would it be better to make a standalone with the A4 dimenions -possibly not exact- or to use a documentclass that already has the right dimensions (such as `[a4paper]{article}`)?   2. How does one get `tikz` to fill an image, or to rescale an image to the width and height of the page? The picture environment just isn't enough for most purposes.   3. When the line `\setlength\unitlength{1pt}` was added just above the `picture` environment, the lines shifted, and the resulting document had extra white at the top and bottom around the image. How could this happen, and how can this be solved?


title: How to remove 'Chapter 1.' from 'Chapter 1. Introduction' while using \leftmark?

text: MWE is below:               \documentclass{report}     \usepackage{fancyhdr}     %\newcommand{\currentchapter}{}     %\let\oldchapter\chapter     %\renewcommand{\oldchapter}[1]{\oldchapter{#1}\renewcommand{\currentchapter}{#1}}          %\renewcommand{\sectionmark}[1]{\markright{#1}}          %\renewcommand{\chaptermark}[1]{\markboth{\textbf{#1}}{}} \rhead{\leftmark}           \fancypagestyle{newstyle}{     \fancyhf{}     \fancyhead[LE]{{\nouppercase{\leftmark}}}     \fancyhead[RO]{{\nouppercase{\rightmark}}}     }     \begin{document}      I want to have > 'Introduction' in place of > 'Chapter 1. Introduction' as the header for my pages inside the document. So, is there a command set I can use instead of `\leftmark` to get the desired results? Or can I redefine `\leftmark` in any way to get the desired results?


title: how to draw double circle nodes in tikz more clear?

text: I like the drawing final states in Peter Linz's Book, more clear than final states in tikz. can do it with apply an option in tikz, or other packages?


title: Revisiting auto-pst-pdf Fundamental Problem (<jobname>-pics.pdf not created)

text: The code provided as an answer on this post used to work. To ease things, I reproduce it here, only in a more condensed form since I'm interested just in the `PSTricks` part -- the `minted` part working alright.               \documentclass[12pt]{memoir}     \usepackage{ifpdf}     \usepackage{auto-pst-pdf}     \ifpdf       \usepackage{minted}       \usemintedstyle{friendly}       \newminted{latex}{linenos=true,mathescape}     \else       \usepackage{pstricks-add}     \fi     \pagestyle{empty}          \listfiles          \begin{document}     \begin{postscript}     \begin{pspicture}(0,0)(1,1)     \psframe*(0,0)(1,1)     \end{pspicture}     \end{postscript}          and now the minted part: (no problem here, I've just deleted it)          \end{document}      What I get is a fine `pdfLaTeX -shell-escape` compilation, but no picture and the dreaded (by me, at least) message `"Creation of <jobname>-autopp.pdf failed"`. Is there somebody who can reproduce this behavior or suggest what's been going on? I'm using an updated (about two weeks old) (semi-)full installation of MiKTeX 2.9 on Windows XP. EDIT: In accordance with Joseph Wright's suggestion to issue the `\listfiles` command, I append next the list appearing in my `.log` file:                *File List*      memoir.cls    2011/03/06 v3.6j configurable book, report, article document class      ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)      ifetex.sty    2011/12/15 v1.2 ifetex      ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional      ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)      etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)      mem12.clo    2010/10/19 v0.4b memoir class 12pt size option      mempatch.sty    2009/07/24 v6.0f Patches for memoir class v1.6180339      auto-pst-pdf.sty    2009/04/26 v0.6 Wrapper for pst-pdf      xkeyval.sty    2012/10/14 v2.6b package option processing (HA)      xkeyval.tex    2012/10/14 v2.6b key=value parser (HA)      ifplatform.sty    2010/10/22 v0.4 Testing for the operating system      pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)      infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)      ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)      catchfile.sty    2011/03/01 v1.6 Catch the contents of a file (HO)      etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)      pst-pdf.sty    2008/10/09 v1.1v PS graphics for pdfLaTeX (RN,HjG)      graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)      graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)      trig.sty    1999/03/16 v1.09 sin cos tan (DPC)      graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive      pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX      pstricks.sty    2013/05/22 v0.57 LaTeX wrapper for `PSTricks' (RN,HV)      pstricks.tex    2013/07/09 v2.45 `PSTricks' (tvz,hv)      pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)      pst-fp.tex    2013/07/09 v2.45 `PST-fp' (hv)      xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)      color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive      preview.sty    2010/02/14 11.86 (AUCTeX/preview-latex)      dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)      environ.sty    2013/04/01 v0.3 A new environment syntax      trimspaces.sty    2009/09/17 v1.1 Trim spaces around a token list      minted.sty    2011/01/04 v1.7 Yet another Pygments shim for LaTeX      fancyvrb.sty    2008/02/07     float.sty    2001/11/08 v1.3d Float enhancements (AL)     ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)     calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)     Tryout.pyg     supp-pdf.mkii     ***********


title: Problem with longtabu and tabucline on pagebreak

text: I've got a `tabu` package related question. In the `longtabu` environment using `\hline` works perfectly. But when I try to use `\tabucline[...]` instead, on `pagebreak` there is one line missing. Info according my preamble which I think may be relevant:               \documentclass[a4paper,12pt,BCOR8mm,DIV=calc,oneside,headings=normal,parskip=half,toc=graduated,bibliography=totocnumbered,draft]{scrreprt}     \pagestyle{headings}     \usepackage[T1]{fontenc}     \usepackage{frutigernext}     \renewcommand{\familydefault}{\sfdefault}      \usepackage{lscape}     \usepackage{setspace}     \usepackage[left=30mm, right=29mm,top=30mm,bottom=30mm,bindingoffset=8mm]{geometry}     \usepackage[ngerman,english]{babel}     \usepackage[latin1]{inputenc}      \setcounter{tocdepth}{4}      \setcounter{secnumdepth}{4}     \usepackage[markuppercase,clines]{scrpage2}      \clearscrheadfoot     \renewcommand*{\chapterpagestyle}{scrheadings}     \chead[]{}     \automark{chapter}     \ihead[\headmark]{\uppercase{\headmark}}     \ohead[\pagemark]{\pagemark}     \setheadsepline{0.5pt}          % ----- TABELLEN -----     \usepackage{tabu}     \usepackage{longtable}     \usepackage[table]{xcolor}     \usepackage{calc}     \newcommand{\ctabukopf}{\taburowcolors[1]1{gray!100 .. gray!100}\rowfont[c]\bfseries\hline}     ...      Now using `\hline` in `longtabu`:               \scriptsize     \tabulinesep=0.8ex     \begin{longtabu} to \linewidth {|X[ml]X[ml]X[ml2.5]|}     \ctabukopf     \multicolumn{3}{|c|}{Programmaufrufe}\\ \hline     \taburowcolors[1]1{white .. white}                   \textbf{Aufruf} & \textbf{Argument} & \textbf{Bedeutung}\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     \end{longtabu}       \tabureset     \normalsize      Result (OK): ![http://homepages-nw.uni-r.de/~ocs23577/a.jpg](http://homepages- nw.uni-r.de/~ocs23577/a.jpg) Using `\tabucline[...]` in `longtabu`:               \scriptsize     \tabulinesep=0.8ex     \begin{longtabu} to \linewidth {|X[ml]X[ml]X[ml2.5]|}     \ctabukopf     \multicolumn{3}{|c|}{Programmaufrufe}\\ \hline     \taburowcolors[1]1{white .. white}                   \textbf{Aufruf} & \textbf{Argument} & \textbf{Bedeutung}\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \tabucline[on 2pt gray!100]     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \tabucline[on 2pt gray!100]     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \tabucline[on 2pt gray!100]     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     Example1 & Example2 & Little bit longer example Little bit longer example Little bit longer example Little bit longer example\\ \hline     \end{longtabu}       \tabureset     \normalsize      Result (crashed): ![http://homepages- nw.uni-r.de/~ocs23577/b.jpg](http://homepages-nw.uni-r.de/~ocs23577/b.jpg) Do you know how to address this problem correctly? Thanks, Simon


title: How to make fbox fit automatically around wide equations using empheq package

text: Is there a trick to make `fbox` used with `empheq` fit around the equations, even if they are too wide, or does not have to manually enter numerical values for sizes in this case? One set of my equations I'd like to put a box around are too wide, and I get this: ![Mathematica graphics](http://i.stack.imgur.com/OkpJJ.png) MWE               \documentclass[12pt,notitlepage]{article}%     \usepackage{amsmath}     \usepackage{empheq}     \usepackage{siunitx}     \begin{document}          \begin{empheq}[box=\fbox]{align*}     \frac{v}{r}  & =2.651e^{-0.055268t}+0.4867e^{-56.5025t}+7.849e^{-0.4218t}     \left(  \cos\left(  2.2873t+\SI{80.15}{\degree}\right)  +\sin\left(  2.2873t+     \SI{80.15}{\degree}\right)  \right)  \\     %     \frac{p}{r}  & =-0.4348e^{-0.055268t}+\overset{\text{compare to g=0     below}}{\overbrace{168.36e^{-56.5025t}}}+1.543e^{-0.4218t}\left(  \cos\left(     2.2873t-\SI{98.95}{\degree}\right)  +     \sin\left(  2.2873t-\SI{98.95}{\degree}\right)  \right)  \\     %     \frac{r}{r}  & =e^{-0.055268t}+e^{-56.5025t}+e^{-0.4218t}\left(     \cos2.2873t+\sin2.2873t\right)  \\     %     \frac{\phi}{r}  & =133.09e^{-0.055268t}-50.4e^{-56.5025t}+11.22e^{-0.4218t}     \left(  \cos\left(  2.2873t-\SI{199.39}{\degree}\right)       +\sin\left(  2.2873t-\SI{199.39}{\degree}\right)  \right)     \end{empheq}          \end{document}      I've seen couple of related questions, but too complicated for me to follow. I hope there is a _simple_ way to just tell Latex to make the box as wide as needed? May be I should be using something other than `fbox` in this case?


title: Add when the file was compiled to the draft document.

text: I would like to have on my draft-documents on the bottom something like `compiled ch2.tex on July 21, 2011 at 18:46`. My document has multiple files which I include by using `\input`. I have the following preamble (I only kept the relevant part):               \documentclass[a4paper,11pt, leqno, draft]{scrbook} %draft     \usepackage{scrtime}     \usepackage{currfile}     \usepackage{fancyref}     \usepackage{fancyhdr}     \pagestyle{fancy}     \usepackage{calc}     \fancyheadoffset[LE,RO]{\marginparsep+\marginparwidth}     \renewcommand{\chaptermark}[1]{\markboth{#1}{}}     \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}     \fancyhf{}     \fancyhead[LE,RO]{\bfseries\thepage}      \fancyhead[LO]{\rightmark}     \fancyhead[RE]{\leftmark}     \fancypagestyle{plain}{%       \fancyhead{} % get rid of headers       \renewcommand{\headrulewidth}{10pt} % and the line     }     \lfoot{\scriptsize{\texttt{compiled \currfilename \ on \today \ at \thistime}}}     \cfoot{}     \rfoot{}          \author{Jonas Teuwen}     \title{}          \begin{document}          \input{ch1.tex}     \input{ch2.tex}          \end{document}      The line that gives problems is the following:               \lfoot{\scriptsize{\texttt{compiled \currfilename \ on \today \ at \thistime}}}      It does work, it gives me the correct result, however, at the last page of `ch1.tex` at the bottom LaTeX already prints the line for `ch2.tex`. What is wrong? Another small question: How do I automatically disable this part if the document is set as `[final]` instead of `[draft]`?


title: Colon between address and institution

text: I want to put a colon between my `address` and `institution` for `techreport` objects in `bibtex`. So it would be > _Urban Mobility Report._ College Station, TX: Texas Transportation > Institute. I'm working from the `elsarticle-harv.bst` file. The I've edited the `techreport` output code to be:               FUNCTION {techreport}     { output.bibitem       format.authors "author" output.check       author format.key output       format.date "year" output.check       date.block       format.btitle "title" output.check       new.sentence         address output.nonnull        institution "institution" output.check       format.note output       fin.entry       write.url     }      This produces > _Urban Mobility Report._ College Station, TX, Texas A&M University > Transportation Institute. which is fine but not ideal. I've tried to fix this by writing the following code               FUNCTION {output.address.check}     { address empty$         { "empty address in " cite$ * warning$ }         { write$             address * "\addcolonandeatcomma" *           mid.sentence 'output.state :=         }       if$     }      and adding the relevant code to my preamble (see this answer for details) and changing the `techreport` line to read `address output.address.check` Confusingly, this gives > College Station, TX _Urban Mobility Report._ College Station, TX: Texas A&M > University Transportation Institute. What's up with this?


title: LaTeX enumerate - bold item with non-bold text

text: I'm trying to customize the environment `enumerate` where the `\item` is bold but the text is not bold. What I've tried is (at the suggestion of one of the google-results):               \let\origitem\item     \renewcommand{\item}{\normalfont\origitem}     \newcommand{\bolditem}{\normalfont\bfseries\origitem}      and then use it with               \begin{enumerate}         \bolditem[0] First item (whole line is bold)         \bolditem[1] Second item (also bold)         \item[2] Third item (not bold)     \end{enumerate}      But this makes the whole line bold. I only want the numbered part to be bold. How can I achieve this ?


title: Shortened page-ranges from \pageref

text: In some typographic conventions page-ranges are shortened to save space, e.g. writing "1234-35" or even "1234-5" instead of "1234-1235". I would like to have a `\pageref{foo}--\pageref{bar}` automatically shortened to either of these formats. I gather from the answer to Reference to page-range: can LaTeX convert "3-4" to p. 4f or "3-5" to p. 3ff ? that `varioref` should be able to do this, but adapting Martin Scharrer's customisation to my problem is frankly over my head. How could I do this? Or have I overlooked another package, that does this out of the box?


title: How to change the section font to specific size by using \titleformat?

text: I want to set the section font to the specific size and type. But using \titleformat can only give few standard types, like Large, large...               \titleformat*{\section}{\LARGE\headingfont}      \titleformat*{\subsection}{\Large\headingfont}      \titleformat*{\subsubsection}{\large\headingfont}       I wonder is there any way to use               \fontencoding{OT1}\fontfamily{cmr}\fontseries{m}\fontshape{n}\fontsize{11pt}{11}\selectfont      to change the section font size? Thanks a lot!


title: Is it possible to create an animated GIF from LaTeX?

text: > **Possible Duplicate:**   >  Converting beamer slides to animated images I wrote a LaTeX beamer presentation with an animated Tkiz figure. Creating PDF files work perfectly, but I would like to include it into a website. So it would be great if I could automatically create an animated gif file. Is this possible?


title: error in memoir: Command \newfloat already defined

text: Using this preamble:               \documentclass[pdftex,11pt,a4paper,openany]{memoir}     \usepackage[brazil]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{indentfirst}     \usepackage{latexsym}     \usepackage{amsmath,amssymb,amsfonts,wasysym}     \usepackage[pdftex]{graphicx}     \usepackage{wrapfig}     \usepackage[left=3cm,right=2cm,top=3cm,bottom=3cm]{geometry}     \usepackage{color}     \usepackage[dvipsnames]{xcolor}     \definecolor{darkgray}{gray}{0.3}     \setcounter{secnumdepth}{3}     \setcounter{tocdepth}{3}     \usepackage[pdftex, colorlinks=true, linkcolor=darkgray, citecolor=blue, urlcolor=blue]{hyperref}      TexMaker gives this error message:               ! LaTeX Error: Command \newfloat already defined.     Or name \end... illegal, see p.192 of the manual.      Where is the problem?


title: How to separate a case into lines in a cases environment

text: I need to divide both the condition and equation part of some cases into lines, as the cases would not fit to text width. I read some similar questions and could not see that solves my problem. A MWE is given.               \documentclass[11pt,a4paper]{article}     \usepackage[paperheight=22.9cm, paperwidth=8.1cm, margin=0.1cm]{geometry}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{authblk}     \usepackage{amsmath}     \usepackage{bm}          \title{The Title}     \author{Somebody}          \begin{document}     \maketitle               \begin{equation}\label{eq:carcost}     c = \begin{cases}      0           & \mbox{if aaaa bbbb ssssss ddddd fffff ssssss} \\     t(\psi_2-\psi_1)+t_p(\psi_3-\psi1)   & \mbox{if aaaa bbbb ssssss ddddd fffff ssssss}\\     t(\psi_4-\psi_1)+t_p(\psi_5-\psi_1) & \mbox{if if aaaa bbbb ssssss ddddd fffff ssssss}\\     t(\psi_4-\psi_1)+t|\psi_2-\psi_4|+t|\psi_2-\psi_6|+t_p|\psi_3+\psi_5-\psi_1|& \mbox{if if aaaa bbbb ssssss ddddd fffff ssssss}     \end{cases}      \end{equation}          \end{document}


title: beamer + exsheets package

text: Is it possible to use `exsheets` package with beamer class? I try to do so, but this piece of code               \documentclass{beamer}     \usepackage{exsheets}          \begin{document}          \begin{frame}     test     \end{frame}          \end{document}      gives an error               !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     !     ! LaTeX error: "xparse/environment-already-defined"     !      ! Environment 'solution' already defined!     !      ! See the LaTeX3 documentation for further information.     !      ! For immediate help type H <return>.     !...............................................        What should be done to make `exsheets` package work with `beamer`?


title: Left-align math

text: I'm trying to left-align some math, like here (the center block with the arrows): ![enter image description here](http://i.stack.imgur.com/t0A58.png) I've tried the following:               \begin{flalign*}     (0, (2, q_1), (0, q_1)) \rightarrow (0, (0, q_1), (1, q_2)) \rightarrow (0, (1, q_2), (2, q_2)) \rightarrow \\     (0, (2, q_2), (0, q_2)) \rightarrow (0, (0, q_2), (1, q_3)) \rightarrow (0, (1, q_3), (2, q_3)) \rightarrow \\     \vdots \\     (0, (2, q_i), (0, q_i)) \rightarrow (0, (0, q_i), (1, q_{i + 1})) \rightarrow (0, (1, q_{i + 1}), (2, q_{i + 1})) \rightarrow \\     \vdots     \end{flalign*}      ... which leads to this: ![enter image description here](http://i.stack.imgur.com/TvNDf.png) What am I doing wrong here?


title: Uncovering items with changing bullet color

text: In this case consecutive items get covered. How could I change this behaviour so that all items would be black and only bullets would get different colours?               \documentclass{beamer}     \setbeamercovered{transparent}          \begin{document}          \begin{frame}     \frametitle{Title}     \begin{itemize}      \item<1-> First      \item<2-> Second      \item<3-> Third     \end{itemize}     \end{frame}          \end{document}      ![Desired effect](http://i.stack.imgur.com/5p3Je.gif)


title: TikZ externalize option causes error in compilation

text: As the title says, the externalize option causes some strange errors I can't figure out of. It works for some figures (e.g. figures for which the code I've found in the pgfplots manual), but for some other figures which are generated with i.e. matlab2tikz, I get some strange errors if the externalize option is activated. E.g. if my document looks like               \documentclass[12pt]{standalone}          \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \usetikzlibrary{external}     \tikzexternalize[prefix=figures/]          \begin{document}          \begin{tikzpicture}     \pgfplotsset{every axis/.append style={line width=0.5pt}}          \begin{axis}[%     view={0}{90},     width=4in,     height=3in,     scale only axis,     xmin=0, xmax=6.28318530717959,     ymin=-0.999874127673875, ymax=0.999874127673875,     outer axis line style={line width=0.8pt},     grid style={densely dashed}]     \addplot [     color=blue,     solid     ]     coordinates{      (0,0)(0.0634665182543393,0.0634239196565645)(0.126933036508679,0.126592453573749)(0.190399554763018,0.18925124436041)(0.253866073017357,0.251147987181079)(0.317332591271696,0.312033445698487)(0.380799109526036,0.371662455660328)(0.444265627780375,0.429794912089172)(0.507732146034714,0.486196736100469)(0.571198664289053,0.540640817455598)(0.634665182543393,0.59290792905464)(0.698131700797732,0.642787609686539)(0.761598219052071,0.690079011482112)(0.82506473730641,0.734591708657533)(0.88853125556075,0.776146464291757)(0.951997773815089,0.814575952050336)(1.01546429206943,0.849725429949514)(1.07893081032377,0.881453363447582)(1.14239732857811,0.909631995354518)(1.20586384683245,0.934147860265107)(1.26933036508679,0.954902241444074)(1.33279688334112,0.971811568323542)(1.39626340159546,0.984807753012208)(1.4597299198498,0.993838464461254)(1.52319643810414,0.998867339183008)(1.58666295635848,0.999874127673875)(1.65012947461282,0.996854775951942)(1.71359599286716,0.989821441880933)(1.7770625111215,0.978802446214779)(1.84052902937584,0.963842158559942)(1.90399554763018,0.945000818714669)(1.96746206588452,0.922354294104581)(2.03092858413886,0.895993774291336)(2.0943951023932,0.866025403784439)(2.15786162064753,0.832569854634771)(2.22132813890187,0.795761840530832)(2.28479465715621,0.755749574354258)(2.34826117541055,0.712694171378863)(2.41172769366489,0.666769000516292)(2.47519421191923,0.618158986220606)(2.53866073017357,0.567059863862771)(2.60212724842791,0.513677391573407)(2.66559376668225,0.458226521727411)(2.72906028493659,0.400930535406614)(2.79252680319093,0.342020143325669)(2.85599332144527,0.28173255684143)(2.91945983969961,0.220310532786541)(2.98292635795395,0.15800139597335)(3.04639287620828,0.0950560433041829)(3.10985939446262,0.0317279334980681)(3.17332591271696,-0.0317279334980679)(3.2367924309713,-0.0950560433041826)(3.30025894922564,-0.15800139597335)(3.36372546747998,-0.220310532786541)(3.42719198573432,-0.281732556841429)(3.49065850398866,-0.342020143325669)(3.554125022243,-0.400930535406613)(3.61759154049734,-0.45822652172741)(3.68105805875168,-0.513677391573406)(3.74452457700602,-0.567059863862771)(3.80799109526036,-0.618158986220605)(3.87145761351469,-0.666769000516292)(3.93492413176903,-0.712694171378863)(3.99839065002337,-0.755749574354258)(4.06185716827771,-0.795761840530832)(4.12532368653205,-0.832569854634771)(4.18879020478639,-0.866025403784438)(4.25225672304073,-0.895993774291336)(4.31572324129507,-0.922354294104581)(4.37918975954941,-0.945000818714668)(4.44265627780375,-0.963842158559942)(4.50612279605809,-0.978802446214779)(4.56958931431243,-0.989821441880933)(4.63305583256677,-0.996854775951942)(4.69652235082111,-0.999874127673875)(4.75998886907544,-0.998867339183008)(4.82345538732978,-0.993838464461254)(4.88692190558412,-0.984807753012208)(4.95038842383846,-0.971811568323542)(5.0138549420928,-0.954902241444074)(5.07732146034714,-0.934147860265107)(5.14078797860148,-0.909631995354519)(5.20425449685582,-0.881453363447582)(5.26772101511016,-0.849725429949514)(5.3311875333645,-0.814575952050336)(5.39465405161884,-0.776146464291757)(5.45812056987318,-0.734591708657534)(5.52158708812751,-0.690079011482113)(5.58505360638185,-0.64278760968654)(5.64852012463619,-0.59290792905464)(5.71198664289053,-0.540640817455597)(5.77545316114487,-0.486196736100469)(5.83891967939921,-0.429794912089172)(5.90238619765355,-0.371662455660328)(5.96585271590789,-0.312033445698487)(6.02931923416223,-0.251147987181079)(6.09278575241657,-0.189251244360411)(6.15625227067091,-0.12659245357375)(6.21971878892525,-0.0634239196565654)(6.28318530717959,-2.44929359829471e-16)      };     \end{axis}     \end{tikzpicture}%          \end{document}      I get errors that suggest I've forgotten a `}` somewhere. If I, however, comment out the two lines for externalizing, it works just fine, so nothing wrong with the code for the figure. I've never experienced any problems with this until recently, but I really can't tell what has triggered it. I've installed the latest builds (unstable) of both pgfplots and tikz, but this hasn't caused any problems before. Only recent changes are that I tried to install the `MinionPro` fonts, but I can't see how this is related? The log for the case I experience a compilation error can be found here I also tried installing the pretest of the new TL last night, but still the same. Any suggestions?


title: What beamer environment is text within a frame?

text: I'm going crazy just trying to change the color of the text within a `frame` environment.               \begin{frame}[plain]       I want this text to be red!!!     \end{frame}      I have tried almost every single environment listed on the Latex Wiki.               {       %\usebackgroundtemplate{\includegraphics[width=\paperwidth]{dark_galaxy.jpg}}       \begin{frame}[plain]         \setbeamercolor{alerted text}{fg=red}         \setbeamercolor{background canvas}{fg=red}         \setbeamercolor{block body alerted}{fg=red}         \setbeamercolor{block body}{fg=red}         \setbeamercolor{block body example}{fg=red}         \setbeamercolor{block title}{fg=red,bg=blue}         \setbeamercolor{fine separation line}{}         \setbeamercolor{frametitle}{fg=red}         \setbeamercolor{item projected}{fg=red}         \setbeamercolor{normal text}{fg=red}         \setbeamercolor{section in sidebar}{fg=red}         \setbeamercolor{section in sidebar shaded}{fg=red}         \setbeamercolor{separation line}{fg=red}         \setbeamercolor{sidebar}{fg=red}         \setbeamercolor{structure}{fg=red}         \setbeamercolor{subsection in sidebar}{fg=red}         \setbeamercolor{subsection in sidebar shaded}{fg=red}         \setbeamercolor{title}{fg=red}         \setbeamercolor{titlelike}{fg=red}              Electromagnetic radiation from hydrogen gas in VIRGOHI 21 suggests it is         part of a system with a mass of \approximately $10^{11}$ solar masses.       \end{frame}     }


title: Adding a figure to a Part Page

text: I'd like to add a figure below the title of the part on the part page. How does one go about doing so using the `amsbook` class?               \documentclass{amsbook}     \usepackage{lipsum}          \begin{document}          \lipsum[1-2]     \part{Part Title (Figure Below)}        \lipsum[1-2]          \end{document}


title: Line numbers in traditionalpoem environment?

text: So I've been trying to get satisfactory results typesetting Persian and Arabic poems, in the traditional format, with XeLaTeX. It works just about fine – see the sample document below – but I would like to get line numbers. I want the formatting to look something like this example, a different poem that I put together using an Adobe product that shall remain unnamed. Can anyone think of a way of getting line numbers while using these packages? (bidipoem & XePersian) Thanks!               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode     \documentclass[12pt,letterpaper]{article}     \usepackage{xltxtra}     \usepackage{fullpage}     \usepackage{hyperref}     \usepackage{setspace}     \usepackage{bidipoem}     \usepackage[Kashida]{xepersian}     \settextfont[Scale=1.4]{Scheherazade}     \setlatintextfont[Ligatures=TeX]{Brill}     \renewcommand{\thepage}{\texorpdfstring{\lr{\arabic{page}}}{\arabic{page}}}     \begin{document}     \begin{latin}     \title{Typesetting sample: \emph{Ghazal no.\ 1} of Ḥāfeẓ}     \author{}     \date{}     \maketitle     \section*{Persian text}     \end{latin}     \vspace{-4.5pc}     \begin{spacing}{1.5}     \begin{traditionalpoem}     \\الا یا ایّها الساقی ادر کأسا و ناولها&که عشق آسان نمود اول ولی افتاد مشکلها     \\به بوی نافه‌ای کآخر صبا زان طره بگشاید&ز تاب جعد مشکینش چه خون افتاد در دلها     \\مرا در منزل جانان چه امن عیش چون هر دم&جرس فریاد می‌دارد که بربندید محملها     \\به می سجاده رنگین کن گرت پیر مغان گوید&که سالک بی‌خبر نبْوَد ز راه و رسم منزلها     \\شب تاریک و بیم موج و گردابی چنین هایل&کجا دانند حال ما سبکباران ساحلها     \\همه کارم ز خود کامی به بدنامی کشید آخر&نهان کی ماند آن رازی کز او سازند محفلها     \\حضوری گر همی‌خواهی از او غایب مشو حافظ     \\متی ما تلق من تهوی دع الدنیا و اهملها     \end{traditionalpoem}     \end{spacing}     \end{document}


title: Tick marks on Lyx Beamer Presentation

text: I'm writing a presentation with Lyx. I don't find how to include this line of balls on top that tell you where you are in the presentation. This is a sample lyx file with this problem. Thank you.


title: Text area shifted right slightly using geometry package

text: I've just discovered the `geometry` package, which seems like a nicer way of doing things than manually setting a bunch of lengths, and I'd like to set all my margins to 0.75in. I thought this would be easy enough: just input `\usepackage[margin=0.75in]{geometry}`. But something seemed a bit off; the text seemed a bit too far to the right. So I changed it to `\usepackage[margin=0.75in,centering]{geometry}`; still no change, everything was still shifted right. Here is a minimal working example - I've changed the margins to 0in, to emphasize the problem:               \documentclass[11pt]{article}     \usepackage[margin=0in,centering]{geometry}     \pagestyle{empty}     \begin{document}     test \hfill test     \vfill     test \hfill test     \vfill     test \hfill test     \end{document}      produces ![enter image description here](http://i.stack.imgur.com/V9wyh.png) Is there another option I need to set to get the text area to align correctly relative to the page? I'm using TeXnicCenter on Windows 7, and outputting to PDF, if that helps.


title: Detect number of pages in custom class

text: How can I make a conditional in my custom documentclass (based on article) for when the document is only one page long? I need this because when it is only one page, I don't want to put the page number in the footer (but if there is multiple pages, I _do_ want the page number on the first page—so it's not simply a matter of giving the first page a numberless footer).


title: Draw a rectangle on page borders (not margins) with tikz?

text: Let's assume that the blue rectangle in the next image 1 represents the page borders, the gray rectangle represents page margins and, the black one represents what I need to draw using Tikz. ![image 1](http://i.stack.imgur.com/HPv0O.png) I need it there as a background of my text, but the tikz image align as a text on margins.


title: Nicer alignment of x^*/2

text: I'm trying to typeset `$\frac{x^*}{2}$`, but I can't find a (simple) way to make the alignment look nice. So far, I've tried the following:               \documentclass{article}     \begin{document}          \begin{equation}     \frac{x^*}{2} \qquad \frac{x^*}{2\phantom{{}^*}}     \end{equation}          \end{document}      With the following output: ![alignment issues](http://i.stack.imgur.com/xaL0R.png) In the left one, it looks odd because the `x` is very off-center, and in the right example the fraction bar is extended way more to the right than what's really necessary. Is there a nicer (and still simple enough) way to typeset this fraction?


title: Draw a closed liquid-droped shaped curve with TikZ

text: I am trying to draw a closed liquid-droped shaped curve using TikZ, but I don't know how. I tried to draw it using coordinates but I don't think that this is the solution. I am using               \documentclass{article}     \usepackage{tikz}          \begin{document}          \begin{figure}[H]     \centering     \begin{tikzpicture}     %\draw[very thick] (0,4) to [out=90,in=195] (0.1,3.9);     %\draw [shorten >=-1cm,shorten <=-1cm] (0,3) to [bend right=5](0.1,2.9);     \draw[orange, very thick] (0,4) -- (-0.1,3.5) -- (-0.3,3) -- (-0.65,2.7) -- (-0.55,2) -    - (-0.2,1.2) -- (0,0) -- (0.2,0.4) -- (1,1) -- (0.8,2.3) -- (0.5,2.8) -- (0.25,3.5) -- (0.1,4);     \end{tikzpicture}     \caption{Avalanche Multiplication}%     \label{fig:avalanche}%     \end{figure}     \end{document}      ![liquid-droped shape](http://i.stack.imgur.com/KJQK7.jpg)


title: Absolute horizontal position of margin notes

text: My question concerns the margin notes and particularly its position in the page. Is it possible that margin notes have an absolute horizontal position but a vertical position that depends on the part of the text the margin note is inserted ? Precisely I want that margin notes have :   * an absolute horizontal position (given for example in centimeters)   * a vertical position that is centered on the middle of a part of a text (for example delimited by an environment); and which depend on odd/even pages. The minimal example given below also includes a "vrule" that I wanted to by adapted to the text it depends on (absolute horizontal and relative vertical positions). I think the first part of my question would answer this part. For the moment I tried to play with \raggedrightmargin... but without a "good" result and tried some solution on this website. I hope that I am clear and I thank you by advance for your answers.                   \documentclass[9pt]{extarticle}     \usepackage[T1]{fontenc}     \usepackage{lipsum}          \usepackage[absolute]{textpos}     \textblockorigin{0pt}{0pt}          \usepackage[papersize={15cm,21cm},top=1cm, bottom=1.5cm, left=1cm , right=1cm,twoside,marginparsep=0cm]{geometry}%dimensions customisées de la page          \newtheorem{ex}{Example}          \newcommand{\cexemple}[1]{\begin{minipage}{13cm}#1\end{minipage}}          \usepackage[fulladjust]{marginnote}          \renewcommand*{\raggedrightmarginnote}{\hspace{-1.8cm}}     \renewcommand*{\raggedleftmarginnote}{\hspace{-0.8cm}}          \begin{document}          \newgeometry{inner=1cm, outer=3cm, top=1cm, bottom=1.5cm,twoside,bindingoffset=0pt,marginparsep=0cm}          \noindent\hspace{-0.3cm}\cexemple{\begin{ex}\lipsum[5]\end{ex}}          \medskip          \marginnote{\small\textit{\begin{minipage}{2.1cm}This is a long margin note.\end{minipage}}}[0cm] \lipsum[4]          \begin{textblock*}{40pt}(345pt,120pt)     \vrule width 0.5pt height 2.8cm     \end{textblock*}          \newpage          \noindent\hspace{-2cm}\cexemple{\begin{ex} \lipsum[5]\end{ex}}          \medskip          \noindent  This text include a margin note \marginnote{\small\textit{\begin{minipage}{2.1cm}This is another long margin note.\end{minipage}}}[0cm] that we have to align properly.           \begin{textblock*}{40pt}(55pt,120pt)     \vrule width 0.5pt height 1cm     \end{textblock*}          \end{document}


title: Is there a class for writing novels?

text: Is there a class for writing novels? _I know_ it's trivial to you, but I really need one.


title: Draw in pgfplot axis before axis and grid are drawn

text: Is there a way to draw something using the axis coordinates `(axis cs:x,y)` _before_ the axis and the grid are drawn? Namely I would like to draw rectangles with tikz to give different areas of the plot different backgrounds, however, the only thing I found in the docs was `before end axis` which seems to be the earliest point in time when one can kick in with own tikz drawings having the axis cs available.


title: Caption Centered but Table is not

text: For some reason the caption is aligned in the center of the page but the table is too far to the right. How can I have both centered?               \documentclass{article}     \usepackage{booktabs}     \usepackage[justification=centering]{caption}     \begin{document}          \begin{table}[htbp]     \centering     \caption{X \\ Y}     \smallskip          \begin{tabular}{l rlrlrl }          \midrule[\heavyrulewidth]     & \multicolumn{2}{c}{Model 1}     & \multicolumn{2}{c@{}}{Model 2}     & \multicolumn{2}{c@{}}{Model 3} \\          \midrule     \midrule          Variable Variable Variable 1 (Variable) Variable & 17.122 & * &   3.481 &* & 0.138 &* \\          \end{tabular}     Note: XYZ     \end{table}     \end{document}


title: Create line between two edges in pstree

text: Basically I want to create a (dashed) line between two tree edges. I tried cheating a bit and created such line manually between two hidden nodes. The problem is, I don't get them hidden! There's always a bit of space between the connecting edges and no parameter I tried seemed to help (radius, treenodesize,..).               \documentclass{minimal}          \usepackage{pstricks,auto-pst-pdf}     \usepackage{pst-tree}          \newcommand{\terminal}[1]{\TR{\boldsymbol{#1}}}     \newcommand{\nonterminal}[1]{\TR{#1}}     \newcommand{\emptyword}{\TR{\epsilon}}     \newcommand{\derivationtree}[1]     {         \begin{postscript}             $   \pstree[treemode=R,nodesep=2pt,treesep=0.4cm,levelsep=1.5cm]{\TR{S}}{#1} $         \end{postscript}         }          \begin{document}          \derivationtree{       \pstree{\nonterminal{M_1}}       {         \pstree{\Tr[name=m1]{}}         {           \terminal{(}         }       }       \pstree[levelsep=1cm]{\nonterminal{S}}       {         \emptyword       }       \pstree{\nonterminal{M_2}}       {         \pstree{\Tr[name=m2]{}}         {           \terminal{)}         }       }       \ncline[linestyle=dashed]{m1}{m2}     }          \end{document}


title: Draw a railway network in Tikz

text: I need to make several diagrams of a railway network, each of them representing different scenarios. Here is an ugly example of what I want: ![enter image description here](http://i.stack.imgur.com/fTXy1.png) And here my first attempt to reproduce it: ![enter image description here](http://i.stack.imgur.com/lj0Vr.png) As you can see, I am perfectly capable of reproducing the scenario in Tikz, but I would have to do lots of different scenarios. Can someone help me improve my code? What I need is a quick and "automatized" way of delimiting the rails (in black), the rest I can do it. What I find difficult is creating the paths with the same angles when I try to change from one side to the other and to create the end lines that represent a contact. Moreover, different scenarios have different ways of connecting both sides. MWE:               \documentclass[tikz,border=5pt]{standalone}          \begin{document}          \usetikzlibrary{shapes}     \tikzstyle{rail}=[very thick]       % m19     \begin{tikzpicture}               \draw [rail] (0,0) -- (2,0)  -- (3.5,3.8);     \draw [rail] (3.2,3.8) -- (3.8,3.8);          \draw [rail] (2.5,0) -- (5.5,0);     \draw [rail] (2.5,-0.3) -- (2.5,0.3);     \draw [rail] (5.5,-0.3) -- (5.5,0.3);          \draw [rail] (4.5,3.8) -- (6,0) -- (10.5,0);     \draw [rail] (4.2,3.8) -- (4.8,3.8);     \draw [rail] (10.5,-0.3) -- (10.5,0.3);          \node [rectangle,draw,fill=green, minimum width=1cm, minimum height=1cm] (train) at (1.5,4) {TTX2};          \draw [rail] (train) -- (9.3,4) -- (11,0) -- (13,0);     \draw [rail] (13,-0.3) -- (13,0.3);          \draw [rail](10,4) --(13,4);     \node [diamond,draw,fill=yellow] at (7.5,4) {};          \node [draw] (zone2) at (9,5.5) {Zone 2};     \draw [rail] (zone2) -- (11,5.5) -- (11.6,4.2);     \draw [rail] (11.3,4.2) -- (11.9,4.2);               \end{tikzpicture}          \end{document}


title: xelatex memory problem

text: I have problem while running **xelatex** :               TeX capacity exceeded, sorry [main memory size=1500000].      I tried increasing memory limits in **texmf.cnf** (also ran **fmtutil-sys** ), but I hit maximum allowed and it still crashes with same error (just different memory amount). There are no other warnings or errors than one mentioned above (when it crashes). I use packages: _babel_ , _fontenc_ , _inputenc_ , _graphicx_ , _ifthen_ , _multicol_ , _fontspec_ , _xunicode_ , _xltxtra_ and _xcolor_. I use true type font:               \setmainfont{LiberationSansNarrow}      Document is started and ended with commands:               \newcommand{\stardoc}[0]     {       \begin{multicols}{4}     }               \newcommand{\donedoc}[0]     {      \end{multicols}     }      (Just wrappers (put in custom class so there can be changed for many documents). Between multi-columns I include (with _\include_ ) "large" file (~3MB) consisting of following commands:               \newcommand{\myrow}[4]     {      \noindent      \vbox to 15pt {\vfil         \hbox to \columnwidth {           \parbox{0.97\columnwidth}{             \tiny             \textbf{#1}\dotfill#3\\             \emph{#2}\hfill{#4}}%\vspace{6pt}           }           \vfil          }      }          \newcommand{\myblock}[1]     {      \noindent      \colorbox{gray}{         \vbox to 15pt {\vfil           \hbox to 0.913\columnwidth {             \hfill\textbf{{\small #1}}\hfill           }           \vfil         }       }     }      Here is also end of **.log** file:               If you really absolutely need more capacity,     you can ask a wizard to enlarge me.          Here is how much of TeX's memory you used:      6293 strings out of 191470      96261 string characters out of 1925444      1500000 words of memory out of 1500000      9402 multiletter control sequences out of 10000+200000      6692 words of font info for 33 fonts, out of 1200000 for 2000      605 hyphenation exceptions out of 8191      35i,5n,37p,320b,232s stack positions out of 5000i,500n,6000p,200000b,15000s     No pages of output.      If I cut input file to ~30% (~1MB) then everything goes OK and pdf is produced. I assume there is an error somewhere in custom defined commands as I am not an expert - please help me. **EDIT** Per request in comments, input file is just a series of _\myrow_ and _\myblock_ commands generated from the database. It works if I add _\par_ before _\noindent_ in any of the commands, but that creates spacings... Is there a way to make _\par_ produce no extra spacings - my layout prior adding _\par_ command was perfect.


title: Numbering trees/diagrams in tikzpicture

text: I want to number my trees/diagrams according to section number and at the center and bottom of them. Like > Diagram 1.1 Here is a simple one that I wrote.               \usepackage{tikz}     \usepackage{amsfonts}     \usepackage{amsthm,amsmath}     \newcounter{dummy}      \numberwithin{dummy}{section}     \numberwithin{figure}{section}     \newtheorem{thm}[dummy]{Theorem}     \newtheorem{defn}[dummy]{Definition}     \usepackage{etoolbox}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \numberwithin{equation}{section}     \begin{document}\begin{center}     \tikzstyle{bag} = [text width=2em, text centered]     \tikzstyle{end} = []     \begin{tikzpicture}[sloped]       \node (a) at ( 0,0) [bag] {$S$};       \node (b) at ( 4,-1.5) [bag] {$ dS $};       \node (c) at ( 4,1.5) [bag] {$ uS $};            \draw [-] (a) to node [below] {$(1-q)$} (b);       \draw [-] (a) to node [above] {$q$} (c);          \end{tikzpicture}     \end{center}     \end{document}


title: How to start a new line in \boxed{}?

text: I have:               \documentclass[12pt,a4paper]{article}     \newcounter{conto}     \setcounter{conto}{\time}     \usepackage{lmodern}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{dsfont}     \usepackage{mathrsfs}     \usepackage{amssymb,amsmath}     \usepackage{cancel}     \begin{document}     \section{Prove}     \(\boxed{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"}\)     \end{document}      but the output is the following: ![enter image description here](http://i.stack.imgur.com/fK1AH.png) How start a new line in `\boxed{}` automatically?


title: How to have columns of different sizes using tabularx and make table respect page height?

text: I am using Kile and I am trying to learn how to use `tabularx` to have tables that fit within the width of my pages. However, I have two big problems:   * I have to use X for column size and therefore cannot set the size of my columns (for example, if I have 4 columns, I want column A to be 10% of the size, and columns B, C and D to have the rest equally distributed).   * Now that my table finally fits within the width of the page, it does not respect the height of the page ... Now to fix this, I read the documentation and used the following MWE:               \documentclass[a4paper,10pt]{article}     \usepackage[utf8]{inputenc}     \usepackage{tabularx}          \begin{document}     \begin{table}     {%     \newcommand{\mc}[3]{\multicolumn{#1}{#2}{#3}}     \begin{center}     \begin{tabularx}{\textwidth}{>{\hsize=.25\hsize}X>{\hsize=1.25\hsize}X>{\hsize=1.25\hsize}X>{\hsize=1.25\hsize}X}\cline{2-4}     \textbf{} & \textbf{Hibernate OGM} & \textbf{EclipseLink NoSQL} & \textbf{DataNucleus}\\\hline     \mc{1}{|l|}{\textbf{Goal}} & Complement JPA with NoSQL, key-value stores & Integrates in the father project main goal of providing a complete persistence solution & Being a standards compliant and efficient JPA and JDO platform\\\hline     \mc{1}{|l|}{\textbf{NoSQL and Datastores supported}} & Infinispan, EHCache, MongoDB & MongoDB, Oracle NoSQL, Oracle AQ, JMS, XML files & Google Big Table, MongoDB, Cassandra, Excel, OOXML, ODF, XML, HBase, AppEngine/DataStore, Neo4j, JSON, Amazon S3, GoogleStorage, LDAP, NeoDatis, db4o\\\hline     \mc{1}{|l|}{\textbf{Operations supported}} & Object Oriented queries (JP-QL), CRUD of entities, Polymorphic entities, Embeddable objects, Basic types (partial), Unidirectional and Bidirectional relationships (partial), Collections, Hibernate Search queries, JPA and Hibernate ORM API & Object Oriented Queries, Polymorphic entities, Basic types, Unidirectional relationships, Collections, JPA (partial), Complex hierarchical, Indexed hierarchical data, Mapped hierarchical data, CRUD operations, Embedded objects and collections, Inheritance, Subset of JP-QL and Criteria API, Denormalization & CRUD operations, Embedded objects and collections, Inheritance, Relationships (Unidirectional and Bidirectional), Queries for JP-QL, JDOQL and SQL (partial),  Basic types, Joins.\\\hline     \mc{1}{|l|}{\textbf{No support for}} & Denormalization, Complex joins and aggregations & Joins & Aggregations? (not specified in documentation)\\\hline     \mc{1}{|l|}{\textbf{Future}} & High performance sequence generator, parallel key fetching, support for Map/Reduce, more NoSQL classes, better mixing of NoSQL and RDBMS & ? & JPA2.1 full feature list, Official support for Cassandra, Considering a plugin for REDIS\\\hline     \mc{1}{|l|}{\textbf{Commercial support}} & Red Hat & Oracle (via TopLink) & Supported by DataNucleus team\\\hline     \mc{1}{|l|}{\textbf{Documentation}} & Scattered, inactive forums, official documentation lacking & Bureaucratic forums, information is complete and gathered mainly in the official website & Active forums, acceptable official documentation, but the big advantage comes from user support in form of blogs and posts scattered around the Internet\\\hline     \end{tabularx}     \end{center}     }%     \end{table}               \end{document}      However, even though the preamble seems to be correct (for a case with 4 columns, where columns B, C and D should be 6x greater than A) nothing happens. **What do I exactly want?** Lets say the total width of the table is 100%. I would like for column A to have 10% of that width, and columns B, C and D to have 30% each one. I would also like to make this table fit in one page, without extended to extra pages. So no, i cannot use longtable ... The MWE currently generates something like this: ![enter image description here](http://i.stack.imgur.com/bc3EQ.jpg) The documentation I read can be found here:   * http://texdoc.net/texmf-dist/doc/latex/tools/tabularx.pdf How can I fix my problems?


title: Updating Timeframe

text: How often should I update my portable LaTeX flash drive? It seems that new updates are developed each month, and it is a real hassle to check for new updates too often. I was advised to check for updates "often" since an obsolete version can cause certain code not to work.


title: Using listings with output

text: I wonder how to get the output of listings with code. Here is my MWE with output. Now I want to output of this listings too. Any help will be highly appreciated. Thanks * * * ## Code * * *               \documentclass{article}     \usepackage{listings}     \usepackage{color}          \lstset{ % General setup for the package         language={[LaTeX]TeX},         basicstyle=\small\sffamily,         numbers=left,         numberstyle=\tiny,         frame=tb,         tabsize=4,         columns=fixed,         showstringspaces=false,         showtabs=false,         keepspaces,         commentstyle=\color{red},         keywordstyle=\color{blue}     }          \begin{document}          \begin{lstlisting}     \begin{document}     Welcome to \LaTeX.     \end{document}     \end{lstlisting}          \end{document}      * * * ## Output * * * ![enter image description here](http://i.stack.imgur.com/M0kVO.png)


title: Drawing a logo using some specific package

text: I am using this logo in my document as a picture. Could anyone guide how I can draw this logo in my document? ![logo](http://i.stack.imgur.com/lVF4D.png)


How do put keywords in Texmaker with MikTex.               \documentclass[10pt,a4paper]{article}     \usepackage[latin1]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}


title: Different fnmark style in footer and text

text: I'm using the memoir document class and redefining fnmark like this in my preamble:               \documentclass{memoir}     \usepackage{footnote}     \usepackage[bottom,hang]{footmisc}     \usepackage{xcolor}          \newcommand{\blueboxedfnmark}[1]{%       \begingroup%       \setlength{\fboxsep}{2pt}%       \raisebox{7pt}{\colorbox{blue}{\color{white}{%         \tiny{#1}%       }}}       \endgroup     }          \newcommand{\whiteboxedfnmark}[1]{%       \begingroup%       \setlength{\fboxsep}{2pt}%       \raisebox{7pt}{\colorbox{blue}{\color{white}{%         \tiny{#1}%       }}}       \endgroup     }          \makeatletter % boxes footnote number     \renewcommand{\@makefnmark}{\blueboxedfnmark{\@thefnmark}}     \makeatother          \begin{document}     this is a footnote\footnote{I'm in the footer} in the document text     \end{document}      I'd like footnotes in the footer to always use `blueboxedfnmark`, but footnotes in certain environments to use `whiteboxedfnmark`. Is this possible?


title: Special Table with Diagonal lines

text: Recently, I have to work with some problems that require to draw table like below in LaTeX. I used to think about diagonal line inside a cell, but it's not a good choice for this problem since the texts are not in diagonal direction. Does anyone create something like this in LaTeX, can you suggest me any solution ![sample table](http://i.stack.imgur.com/2VDhS.png)


title: Text mistakenly indented after ending landscape section

text: For some reason LaTeX indents the text right after the end of a "landscape" section of my DVI output, even though I don't want it to do so. Any thoughts on how I can fix this?


title: Converting tex to docx using pandoc - why are images not converted?

text: I'm converting a tex document into docx with pandoc. It works nicely, but my figures are not included in the docx. The command I am using is: > pandoc -o output.docx paper.tex. The figures are made with pgf/tikz are included in the tex file like this:               \begin{figure}     \centering     \input{figure1.tikz}     \end{figure}      How can I use pandoc to correctly export the figures?


title: Vertically centered horizontal rule filling the rest of a line?

text: I'd like to have a horizontal line extending from the end of the text on a line to the right margin. So far I've found `\hrulefill` and `\leaders\hrule\hfill`, but these draw a line that's flush with the baseline of my text — how can I get it to be vertically centered?