title: How should I fix the "Option clash for package babel" connected with "undefined control sequence" with hyperref?

text: I have these two problems using the German documentclass "DissOnlineLatex" (Manual see:`http://www.dnb.de/SharedDocs/Downloads/DE/DNB/wir/dissonlineAnleitungLatex.pdf;jsessionid=E59481F1782EF811F84EB598A0593BD9.prod- worker3?__blob=publicationFile`):   1. `Option clash for package babel. \usepackage (followed by: [T1]{fontenc})` (...) `Texlipse Build Error`   2. `Undefined control sequence: \ProcessKeyvalOptions{Hyp}` (followed by: ) `(Occurance: /usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty)`(...)`Texlipse Build Error` Result: no pdf-output using pdflatex. Any ideas how to fix it? (Editor: texlipse 3.8.1, operating system: Ubuntu 14 LTS) MWE follows: * * *               \RequirePackage[patch]{kvoptions}      \documentclass{DissOnlineLatex}     \usepackage[ngerman]{babel}     \usepackage[T1]{fontenc}     \usepackage{lscape}     \usepackage{setspace}     \usepackage[style=chem-angew,backend=bibtex8,]{biblatex}     \usepackage{hyperref}     \usepackage[printonlyused]{acronym}     \bibliography{Literatur.bib}     \onehalfspacing     \begin{document}     \end{document}      document class follows (cls-file)               % FILE: DissOnlineLatex.cls  Version 2.1     % AUTHOR:     % Universität Duisburg-Essen, Standort Duisburg     % AG Prof. Dr. Günter Törner     % Verena Gondek, Andy Braune, Henning Kerstan     % Fachbereich Mathematik     % Lotharstr. 65., 47057 Duisburg     % entstanden im Rahmen des DFG-Projektes DissOnlineTutor     % in Zusammenarbeit mit der     % Humboldt-Universitaet zu Berlin     % AG Elektronisches Publizieren     % Joanna Rycko     % und der     % DNB - Deutsche Nationalbibliothek          %--- Diese Datei darf nicht verändert werden, alle benötigten     % Anpassungen nehmen Sie in einer der anderen mitgelieferten Dateien vor.---------     \NeedsTeXFormat{LaTeX2e}      \ProvidesClass{DissOnlineLatex}[2011/01/05 v2.1 Vorlage zur Erstellung digitaler Hochschulschriften]          % Einstellungen für kvoptions - DOT = DissOnlineTutor     \SetupKeyvalOptions{         family=DOT,         prefix=DOT@     }          % Parameter können übergeben werden für die Pakete inputenc, fontenc,     % babel, geometry, report, hyperref     \DeclareStringOption{inputenc}     \DeclareStringOption{fontenc}     \DeclareStringOption{babel}     \DeclareStringOption{geometry}     \DeclareStringOption{report}     \DeclareStringOption{hyperref}          % Übergib die Parameter an die Pakete     \ProcessKeyvalOptions*          \PassOptionsToClass{a4paper, 12pt, openright, twoside}{report}     \ifx\DOT@report\@empty       \LoadClass{report}     \else       \expandafter\LoadClass\expandafter[\DOT@report]{report}     \fi          \ifx\DOT@inputenc\@empty       \RequirePackage[latin1]{inputenc}      \else       \expandafter\RequirePackage\expandafter[\DOT@inputenc]{inputenc}     \fi          \ifx\DOT@fontenc\@empty       \RequirePackage[T1]{fontenc}     \else       \expandafter\RequirePackage\expandafter[\DOT@fontenc]{fontenc}     \fi          \ifx\DOT@babel\@empty       \RequirePackage[ngerman]{babel} % Sprachen: Deutsch     \else       \expandafter\RequirePackage\expandafter[\DOT@babel]{babel}     \fi          % Seitenränder vorgeben     \PassOptionsToPackage{left=3.5cm,top=3cm,right=3.5cm,bottom=4cm}{geometry}     \ifx\DOT@geometry\@empty       \RequirePackage{geometry}      \else         \expandafter\RequirePackage\expandafter[\DOT@geometry]{geometry}     \fi          % Erzeuge eine Auflistung aller verwendeten Dateien     \listfiles          %-------Absatzformatierung----------------------------------------------------------     \setlength{\parindent}{5mm}     \renewcommand{\baselinestretch}{1.3} % 1.3-facher Zeilenabstand           %-------Neudefinition der Abstract-Umgebung-----------------------------------------     \def\sprachtestE{Abstract}          \if@titlepage       \renewenvironment{abstract}{%           \titlepage           \null\vfil           \@beginparpenalty\@lowpenalty           \begin{flushleft}%             \vspace*{-55\p@}             \LARGE \bfseries \abstractname             \@endparpenalty\@M           \end{flushleft}}%           {\ifx\abstractname\sprachtestE           \par\vfil\@Keywords           \else           \par\vfil\@Schlagwoerter           \fi            \endtitlepage}     \else       \renewenvironment{abstract}{%           \if@twocolumn             \chapter*{\abstractname}%           \else             \small             \begin{flushleft}%               {\LARGE\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%             \end{flushleft}%             \quotation           \fi}           {\if@twocolumn\else\endquotation\fi}     \fi           % Makros zum Einlesen der Metadaten (werden in metadata.tex benutzt)     \newcommand*{\Anrede}[1]{\gdef\@Anrede{#1}}     \newcommand*{\Nachname}[1]{\gdef\@Nachname{#1}}     \newcommand*{\NachnameohneUmlaute}[1]{\gdef\@NachnameohneUmlaute{#1}}     \newcommand*{\Vorname}[1]{\gdef\@Vorname{#1}}     \newcommand*{\Geburtsdatum}[1]{\gdef\@Geburtsdatum{#1}}     \newcommand*{\Geburtsort}[1]{\gdef\@Geburtsort{#1}}          \newcommand*{\Typ}[1]{\gdef\@Typ{#1}}     \newcommand*{\Titel}[1]{\gdef\@Titel{#1}}     \newcommand*{\TitelohneUmlaute}[1]{\gdef\@TitelohneUmlaute{#1}}     \newcommand*{\Untertitel}[1]{\gdef\@Untertitel{#1}}          \newcommand*{\GutachterA}[1]{\gdef\@GutachterA{#1}}     \newcommand*{\GutachterB}[1]{\gdef\@GutachterB{#1}}     \newcommand*{\GutachterC}[1]{\gdef\@GutachterC{#1}}          \newcommand*{\Grad}[1]{\gdef\@Grad{#1}}     \newcommand*{\Fach}[1]{\gdef\@Fach{#1}}     \newcommand*{\Fakultaet}[1]{\gdef\@Fakultaet{#1}}     \newcommand*{\Universitaet}[1]{\gdef\@Universitaet{#1}}     \newcommand*{\Dekan}[1]{\gdef\@Dekan{#1}}     \newcommand*{\Rektor}[1]{\gdef\@Rektor{#1}}          \newcommand*{\Abgabedatum}[1]{\gdef\@Abgabedatum{#1}}     \newcommand*{\Pruefungsdatum}[1]{\gdef\@Pruefungsdatum{#1}}          \newcommand*{\Schlagwoerter}[1]{\gdef\@Schlagwoerter{#1}}     \newcommand*{\Keywords}[1]{\gdef\@Keywords{#1}}          % Metadaten einlesen (werden danach benötigt für die Einbindung von hyperref)     \include{metadata}          %--Gewährleistung der Kompatibilität mit hyperref.sty-------------------------------------     \RequirePackage{ifpdf}          \ifpdf     \PassOptionsToPackage{%         pdftitle={\@TitelohneUmlaute},         pdfauthor={\@NachnameohneUmlaute},         pdfsubject={\@Typ},         pdfkeywords={\@Keywords},         pdfpagemode=UseOutlines,             colorlinks=true,                    % bitte nicht ändern!         linkcolor=black,                    % bitte nicht ändern!         filecolor=black,                    % bitte nicht ändern!         urlcolor=black,                     % bitte nicht ändern!         citecolor=black,                    % bitte nicht ändern!         pdftex=true,              % bitte nicht ändern!         plainpages=false,         % bitte nicht ändern!         hypertexnames=false,      % bitte nicht ändern!         pdfpagelabels=true,       % bitte nicht ändern!         hyperindex=true,             pdfa=true}{hyperref} % bitte nicht ändern! NEU: PDF/A-flag          \ifx\DOT@hyperref\@empty       \RequirePackage{hyperref}     \else       \expandafter\RequirePackage\expandafter[\DOT@hyperref]{hyperref}     \fi          \else        %hier können Sie gegebenenfalls Befehle umdefinieren,        %die nur für pdfLaTeX vorgesehen sind         \newcommand{\texorpdfstring}[2]{#2}     \fi               %---GENERIERUNG VON WARNUNGEN / FEHLERMELDUNGEN-------------------------------------------------------     % Zweispaltiger Satz     \if@twocolumn         \PackageWarning{DissOnlineLatex}{Die Option twocolumn (zweispaltiges Seitenlayout) ist an einigen Hochschulen               nicht zugelassen. Bitte überprüfen Sie, ob Sie diese Option verwenden dürfen.}      \fi          % Veraltete oder verbotene Pakete     \AtBeginDocument{             \@ifpackageloaded{pstricks}                     {\ClassWarning{DissOnlineLatex}                         {Das Paket pstricks darf nicht verwendet werden. Grafiken dürfen nur als eps- oder pdf-File importiert werden.}}                     {}             \@ifpackageloaded{bbm}                     {\ClassWarning{DissOnlineLatex}                         {Das Paket bbm ist nicht zugelassen. Verwenden Sie stattdessen z.B. amsfonts oder amssymb.}}                     {}             \@ifpackageloaded{curves}                     {\ClassWarning{DissOnlineLatex}                         {Das Paket curves ist nicht zugelassen. Grafiken dürfen nur als eps- oder pdf-File importiert werden.}}                     {}             \@ifpackageloaded{epic}                     {\ClassWarning{DissOnlineLatex}                         {Das Paket epic ist nicht zugelassen. Grafiken dürfen nur als eps- oder pdf-File importiert werden.}}                     {}               \@ifpackageloaded{eepic}                     {\ClassWarning{DissOnlineLatex}                         {Das Paket eepic ist nicht zugelassen. Grafiken dürfen nur als eps- oder pdf-File importiert werden.}}                     {}             \@ifpackageloaded{epsf}                     {\ClassWarning{DissOnlineLatex}                         {Das Paket epsf ist nicht zugelassen. Wenn Sie das Paket graphicx verwenden, werden eps-Grafiken direkt unterstützt.}}                     {}             \@ifpackageloaded{epsfig}                     {\ClassWarning{DissOnlineLatex}{Das Paket epsfig ist nicht zugelassen. Wenn Sie das Paket graphicx verwenden, werden eps-Grafiken direkt unterstützt.}}                     {}             \@ifpackageloaded{epstopdf}                     {\ClassWarning{DissOnlineLatex}                         {Das Paket epstopdf ist nicht zugelassen. Wenn Sie das Paket graphicx verwenden, werden eps-Grafiken direkt unterstützt.}}                     {}             \@ifpackageloaded{xypic}                     {\ClassWarning{DissOnlineLatex}                         {Das Paket xypic ist nicht zugelassen. Grafiken dürfen nur als eps- oder pdf-File importiert werden.}}                     {}             \@ifpackageloaded{a4}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket a4 ist veraltet und die Verwendung kann Fehler verursachen, verwenden Sie stattdessen die report-Option a4paper.}}                     {}             \@ifpackageloaded{a4wide}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket a4wide ist veraltet und die Verwendung kann Fehler verursachen, verwenden Sie stattdessen die report-Option a4paper.}}                     {}             \@ifpackageloaded{doublespace}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket doublespace ist veraltet und die Verwendung kann Fehler verursachen. Verwenden sie stattdessen das Paket setspace.}}                     {}             \@ifpackageloaded{euler}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket euler ist veraltet und die Verwendung kann Fehler verursachen. Verwenden Sie stattdessen das Paket eulervm.}}                     {}             \@ifpackageloaded{fancyheadings}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket fancyheadings ist veraltet und die Verwendung kann Fehler verursachen. Verwenden Sie stattdessen das Paket fancyhdr.}}                     {}             \@ifpackageloaded{isolatin}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket isolatin ist veraltet und die Verwendung kann Fehler verursachen. Verwenden Sie stattdessen das Paket inputenc, dieses ist bereits als Pflichpaket eingebunden.}}                     {}             \@ifpackageloaded{isolatin1}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket isolatin1                                               ist veraltet und die                                               Verwendung kann Fehler verursachen. Verwenden Sie stattdessen das Paket inputenc, dieses ist bereits als Pflichpaket eingebunden.}}                     {}             \@ifpackageloaded{mathpple}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket mathpple ist veraltet und die Verwendung kann Fehler verursachen. Verwenden Sie stattdessen das Paket mathpazo.}}                     {}             \@ifpackageloaded{mathptm}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket mathptm ist veraltet und die Verwendung kann Fehler verursachen. Verwenden Sie stattdessen das Paket mathptmx.}}                     {}             \@ifpackageloaded{pslatex}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket pslatex ist veraltet und die Verwendung kann Fehler verursachen. Verwenden Sie stattdessen eines der Pakete mathptmx, helvet mit Option scaled=.95 oder courier.}}                     {}             \@ifpackageloaded{palatino}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket palatino ist veraltet und die Verwendung kann Fehler verursachen. Verwenden Sie stattdessen eines der Pakete mathpazo, helvet mit Option scaled=.95 oder courier.}}                     {}             \@ifpackageloaded{t1enc}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket t1enc ist veraltet und die Verwendung kann Fehler verursachen. Verwenden Sie stattdessen das Paket fontenc mit Option T1, dies ist bereits über die Pflichtpakete voreingestellt.}}                     {}             \@ifpackageloaded{times}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket times ist veraltet und die Verwendung kann Fehler verursachen. Verwenden Sie stattdessen eines der Pakete mathpazo, helvet mit Option scaled=.90 oder courier.}}                     {}             \@ifpackageloaded{umlaut}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket umlaut ist veraltet und die Verwendung kann Fehler verursachen. Verwenden Sie stattdessen das Paket inputenc, dieses ist bereits als Pflichpaket eingebunden.}}                     {}             \@ifpackageloaded{umlaute}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket umlaute ist veraltet und die Verwendung kann Fehler verursachen. Verwenden Sie stattdessen das Paket inputenc, dieses ist bereits als Pflichpaket eingebunden.}}                     {}         \@ifpackageloaded{floatflt}                     {\ClassError{DissOnlineLatex}                         {Das Paket floatflt ist                                               aufgrund von                                               Lizenzänderungen verboten.}}                     {}          \@ifpackageloaded{here}                     {\ClassWarning{DissOnlineLatex}                         {Vorsicht, das Paket here ist veraltet und die Verwendung kann Fehler verursachen. Verwenden Sie stattdessen das Paket float.}}                     {}         }


title: Coordinate system in LaTeX with TikZ

text: How can I create a simple coordinate system with a linear line in LaTeX using the `tikz` package? It should look something like this. With the iterating numbers on each axis and all. ![enter image description here](http://i.stack.imgur.com/K8Re6.png)


title: Additional TOC for PDF attachment

text: in my document I have several PDF-Files which I want to attached at the end of my document. I do this with `\usepackage{pdfpages}` and `\includepdf[pages=-]{08_Attachment/UC001.pdf}`. BUT, before all the PDF-Files I want an own TOC for the files like:               \chapter*{Attachment}     \label{sec:Attachment}     \include{08_Attachment/Attachment}        The Attachment.tex includes all the PDF-Files like               \includepdf[pages=-]{08_Attachment/UC001.pdf}      My target would something like: > **Attachments** > > UC001 .... Page X > > UC002 .... Page X+1 > > UC003 .... Page X+2 > > UC004 .... Page X+3 > > UC005 .... Page X+4 After this little TOC the actual PDF-Files are listed. A bonus would be, if I can click on the entries and it moves to the specific PDF-File. Furthermore, the **Attachment** -Chapter should also be an entry in the "Main-TOC". Kind Regards.


title: Hyphen going into margin

text: I have the following issue with a hyphen going into the margin: ![output](http://i.stack.imgur.com/O4AUv.png) As you can see, the `Spatio-Temporal` word has crossed the margin. How can I fix it in LaTeX? I am using the TeX template at www.biostat.umn.edu/~brad/8400/HQuick_cv.tex.


title: \part Heading style

text: I'm using `\documentclass{book}`. I like to redefine my `\part` style to sth similar to the one in the picture below. So, I like when I use part I get sth similiar to pic below with "Part" instead of chapter on top and a gray rectangle with a number inside. Any ideas how to do that? ![enter image description here](http://i.stack.imgur.com/vea0K.png)


title: Size-dependent \big-, \Big- (etc.) modifiers

text: What I'm looking for is a way to use `\big` and its friends such that they adapt to the environment that they're in, e.g. `\scriptstyle`. To a degree, this was already covered in this question and the corresponding answer, but the results are not yet as I'd hope.               \documentclass{article}     \usepackage[english]{babel}     \usepackage{amsmath}          \newcommand{\tbo}{\tilde{b}+1}          \begin{document}          \[ \left(\tbo\right)^{\left(\tbo\right)^{\left(\tbo\right)}} \]     \vspace{-0.5cm}     \[ \bigl(\tbo\bigr)^{\bigl(\tbo\bigr)^{\bigl(\tbo\bigr)}} \]          % Bruno Le Floch's modification (see answer linked above)     \makeatletter     \let\bBigg@@\bBigg@     \renewcommand{\bBigg@}[2]{{%       \mathchoice         {\bBigg@@{#1}{#2}}%         {\bBigg@@{#1}{#2}}%         {\big@size=.7\big@size\bBigg@@{#1}{#2}}%         {\big@size=.5\big@size\bBigg@@{#1}{#2}}}}%     \makeatother          \vspace{-0.5cm}     \[ \bigl(\tbo\bigr)^{\bigl(\tbo\bigr)^{\bigl(\tbo\bigr)}} \]          \end{document}      ![big](http://i.stack.imgur.com/Mo9il.jpg) The modification improves the sizing a bit, but not substantially (especially in the `\scriptscriptstyle`). Also, the horizontal spacing in the small styles is a bit wide for my taste. I tried playing around with the factors `0.7` and `0.5` a bit, but this didn't change anything (to the bare eye). I don't know if it's too much to ask, but I'd hope that it's possible to mimic the behaviour of `\big` for normal text as closely as possible also for the superscripts. In a perfect world, a solution would also take into account what David Carlisle's comment to the answer linked above mentioned, namely preventing the scaling to be too small for smaller font sizes. However, I don't know how to read NFSS data, and neither whether this could be done dynamically...


title: Figure numbering with minipages (memoir)

text: I have the following figure, where I can't seem to get the numbering right. The numbers next to the captions comes out as Figure 1, Figure 2, and Figure 3, but I want them to be (a), (b), and Figure 1               \begin{figure}[!h]     \centering     \begin{minipage}{0.45\linewidth}          \begin{python}       for i in [1,2,3,4]:         print i     \end{python}     \caption{Implementation in Python}          \end{minipage}     \qquad     \begin{minipage}{0.45\linewidth}          \begin{python}       1       2       3       4      \end{python}     \caption{Output}          \end{minipage}          \caption{Python code}     \label{lst:python_code}     \end{figure}      I am using the memoir class. Including the minipages in subfigures yields an error from pygmentize.


title: How to use HARVARD STYLE bibliography

text: I've just started using LaTeX in my assignments, and I've got some questions about the bibliography. This are the commands I am using at the moment:               \bibliographystyle{amsplain}     \bibliography{thesisref}      I need to arrange my bibliography in alphabet order using the **Harvard Referencing Style** , and I'd be really grateful if you could show me how to do this in LaTeX. One other issue is "multi-citation". For example, Pennycook A (2010),"Writes the chapter", in Coupland N(ed), "the book name", "publisher", "year"," page number" How can I show it properly in LaTeX bibliography? I've tried to find related questions, but they still didn't fix my problems. Thank you for your replies in advanced. Deeply appreciated!


title: Line overflow with long filenames and urls

text: Consider the following text. Here `/etc/postgresql/8.4/main/pg_hba.conf`overflows into the margin, and is hypenated. `/var/lib/pgsql/data/pg_hba.conf` is also hyphenated, but does not overflow. So, I was wondering what was a good general way to deal with the overflow. I've run into this issue before, and usually I just stick a `//` before the offending text, but this is not a good general solution. For example, if the text changes, then the line break may be for no good reason. I'm actually surprised that LaTeX doesn't simply move that text onto the next line. Is there some good general way to say - don't break this text and move it to the next line if it overruns? I've looked at other questions, and it is possible no such thing exists, but maybe I'm missing something.               \documentclass{article}     \usepackage{underscore}     % Text layout     \topmargin 0.0cm     \oddsidemargin 0.5cm     \evensidemargin 0.5cm     \textwidth 16cm     \textheight 21cm      \newcommand{\sourcefile}[1]{\texttt{#1}}          \begin{document}          Therefore, the user running init_db.py needs to have sudo     privileges on the machine, or have a database superuser of the same     name as the shell account. In addition, you may need to modify the     PostgreSQL client authentication configuration. This is located in the     file pg_hba.conf. I give basic instructions about the     necessary modifications in this section. For further information about     PostgreSQL client authentication, see     http://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html          With the Debian and Ubuntu default client authentication configuration     located at \sourcefile{/etc/postgresql/8.4/main/pg_hba.conf}, SNPpy     will run without modification. For other Linux distributions, changes     may be necessary.          For example, the client authentication configuration file is located     in Fedora at \sourcefile{/var/lib/pgsql/data/pg_hba.conf} and its     default values are given in Table 1.          \end{document}


title: tex4ht conversion of tables (memoir class problem)

text: I am trying convert my document to HTML using htlatex. Everything my document (70+ pages) works fine until I look at the tables. The tables generated do not actually follow any kind of table format. Here is my minimal example to reproduce the problem:               \documentclass[12pt,letter]{memoir}     \begin{document}     \begin{center}     \begin{tabular}{| l | p{9cm} |}     \hline     \textbf{Column Name} & \textbf{Column Description} \\ \hline     Test line 1 & Insert text here (line 1)\\ \hline     Test line 2 & Insert text here (line 2)\\ \hline     Test line 3 & Insert text here (line 3) \\ \hline     \end{tabular}     \end{center}     \end{document}      In command prompt, I use:               htlatex.exe MinimalTest.tex "html,3,info" "" "-dhtml" "--interaction=nonstopmode"      Note: If I run the same command without "nonstopmode", I receive warning that \halign is translated to linear text and an error saying that there is a missing number, which is then treated as zero. I have tried searching for both of these errors, but did not find solutions that worked. Edit:   So I can't believe I haven't tried it before, but I changed the document class type and it works as it should. However, the problem is that I need to use memoir for the layout of my PDF. Does anyone know of a workaround to make the HTML generation with memoir work correctly?


title: How to use formal csQuotes and page citing?

text: I have been trying to write a document containing correct norwegian quotes. For this `csQuotes` seemed the best. I am also using natbid for the references, however when using \citep[page]{refference} instead of \citep{refference} the document fails to compile               \begin{filecontents}{biblio.bib}     @book{Feynman,             author = "Richard P. Feynman",             title = "Surely You're Joking, Mr.Feynman!",             publisher = "WW.Norton Company, Inc",             year = "1985"     }     \end{filecontents}          \documentclass[12pt,a4paper]{article}     \usepackage[sort,numbers,square]{natbib}     \usepackage[norsk]{babel}     \usepackage[autostyle]{csquotes}          \begin{document}          \textquote[Feynman \citep[s39-41]{Feynman}]{One thing I never did learn was contour integration. I had learned to do integrals          by various methods shown in a book that my high school physics teacher Mr. Bader had          given me. That book also showed how to differentiate parameters under the integral          sign—it's a certain operation. It turns out that's not taught very much in the          universities; they don't emphasize it.              But I caught on how to use that method, and I used that one damn tool again and again.          So because I was self-taught using that book, I had peculiar methods of doing integrals.          The result was, when guys at MIT or Princeton had trouble doing a certain integral, it          was because they couldn't do it with the standard methods they had learned in school. If          it was contour integration, they would have found it; if it was a simple series expansion,          they would have found it. Then I come along and try differentiating under the integral sign,          and often it worked. So I got a great reputation for doing integrals, only because my box of          tools was different from everybody else's, and they had tried all their tools on it before          giving the problem to me.}{}{}          \bibliographystyle{plain}     \bibliography{biblio}              \end{document}      In this example the document compiles fine when using `\citep[s39-41]{Feynman}` and fails when one uses `\citep[s39-41]{Feynman}` After some more testing it seems the document does compile when using no spaces in the quotes. But the result is somewhat bizarre.. Does anyone know how to correctly use `csQuote` and `\citep` ?


title: radix sort tikz

text: I want to visualize Radix sort to look like ![this](http://i.stack.imgur.com/24qkO.png) but I can't find a way based on this Thanks in advance


title: How to show a placeholder instead of an equation?

text: I am looking for functionality similar to the endfloat package but for equations. Instead of displaying an equation I would like to display a placeholder such as               [equation 1 here]      Does anyone know of such a package?


title: Change font size in tables document-wide

text: Using `scrartcl` as my document class, tables are set in a slightly larger font size than my normal text (12pt vs. 11pt I suppose). How can I change the font size for tables document wide? At the moment I just add a `\small` to all my tables.


title: Is there an Unicode code point for umlauts marked with a small e instead of a diaresis?

text: The original way to denote an umlaut in German was to write a small e on top of the umlauted letter, like in the second row of the image below. Is this form of the umlaut availabe via Unicode? In LaTeX, you can use the package `yfonts` and then the command `\*` to get such an umlaut, but I am not sure whether there is a regular codepoint for letters umlauted this way. ![Umlaut comparison](http://i.stack.imgur.com/Yu5qE.png) ### Offtopic I think, this is a bit offtopic, but since I don't know where to post this, I post it here because I find tex.SE the place where the people are most likely to answer this question.


title: Text placed in pespective on 3D object

text: I am experimenting with Tikz to include graphics in my LaTeX documents. I have made a few 2D and 3D diagrams. One of the diagrams contains a 3D pyramid. I want to place text on the front and side of the pyramid. I managed to place text on the front. Placing text on the side however is a problem for me because it is not in perspective and therefore ruining the 3D experience. I want the text on the side to be rotated in such a way that it appears to be in the same pane as the side. I could try to rotate the text but then positioning is cumbersome. There must be a better way to do this? Somehow write text on the z-axis instead of in the x/y pane. I managed to produce something to illustrate what i had in mind. There should be a better way to achieve this. The text is obviously not 3D aware and therefore not in perspective. Also the text is not aware of the figure and with larger texts it runs outside the boundaries of the illustration as it is not contained by the edges. Any suggestions would be really appreciated. Thank you in advance!               \begin{tikzpicture}[scale=0.5]     \example of my pyramid:     \path   coordinate (0) at (0,0,0)         % The base layer         coordinate (A) at (-9,0,9)         coordinate (B) at (9,0,9)         % The middle layer         coordinate (C) at (-6,4,6)         coordinate (D) at (6,4,6)         % The top layer         coordinate (E) at (-3.75,7,3.75)         coordinate (F) at (3.75,7,3.75)         coordinate (G) at (0,12,0)              % 3d effect         % The base layer         coordinate (AA) at (-9,0,-9)         coordinate (BB) at (9,0,-9)         % The middle layer         coordinate (CC) at (-6,4,-6)         coordinate (DD) at (6,4,-6)         % The top layer         coordinate (EE) at (-3.75,7,-3.75)         coordinate (FF) at (3.75,7,-3.75);              % Draw lines between points         \draw (A) -- (B) -- (BB);         \draw (C) -- (D) -- (DD);         \draw (E) -- (F) -- (FF);         \draw (A) -- (G) -- (B);         \draw (G) -- (BB);              % Text added to node positioned at center of segment.         \node at (0,2,7.5) {Base of the pyramid};         \node at (0,5.5,4.875) {Middle section};                 \node at (0,9,1.875) {Top of the pyramid};         % Rotated text added to node positioned at center of segment.         \node [rotate=45] at (7.5,2,0) {Base};         \node [rotate=45] at (4.875,5,0) {Middle};         \node [rotate=45] at (1.875,9,0) {Top};          \end{tikzpicture}


title: Removing parentheses from date only in bibliography with natbib

text: I am using `natbib` with `agsm` style to achieve Harvard style referencing. Is there any way to remove the parenthesis around the year in the references section (not the citations in the main text)? I tried `dcu` instead of `agsm` which sorts of achieves it but puts a colon instead, which I don't want either. Is there any bst that matches the style I am looking for (which seems to be the style lots of Universities require too). It is well described here too: http://libweb.anglia.ac.uk/referencing/harvard.htm So in a nutshell I wish to achieve this: **Boughton, J.M., 2002. The Bretton Woods proposal: an indepth look. Political Science Quarterly, 42(6), pp.564-78**. Instead of this: **Boughton, J.M. (2002), The Bretton Woods proposal: an indepth look. Political Science Quarterly, 42(6), pp.564-78.** Thanks.


title: question marks instead of citations / extended problem

text: I am having trouble with generating references. For some citations instead of authors names the file generates question marks. I tried the suggested found in this forum and already I am aware for the "compile - double compile" process but no progress. Can someone help me? Here is parts of my code               \documentclass[a4paper]{article}     \usepackage[hmargin=2.5cm,vmargin=1cm]{geometry}     \usepackage{amsmath}     \usepackage{setspace}     \usepackage[pdftex]{graphicx}     \usepackage{xcolor}     \usepackage{setspace}     \setstretch{2}      \usepackage[utf8]{inputenc}     \usepackage{booktabs}      \usepackage{textcomp}     \usepackage{float}          \usepackage[round]{natbib}     \usepackage[hidelinks,colorlinks,urlcolor=blue, linkcolor=blue, citecolor=blue]{hyperref}     \begin{document}     \section{Introduction}     For a survey see \citet{Perotti2008} who...     A leading example is \citet{Papageorgiou2012} who          \newpage           \bibliographystyle{plainnat}     \bibliography{references}     \end{document}      The bibliography file contains the following entries               @TECHREPORT{ Perotti2008,     title = {In Search of the Transmission Mechanism of Fiscal Policy},     author = {Hill, Scott and Wootters, William K.}     booktitle = {NBER Macroeconomics Annual 2007",}     volume = {22},     publisher = {National Bureau of Economic Research}     year = {1997},     }          @ARTICLE{Papageorgiou2012,       author = {Papageorgiou Dimitris},       title = {Fiscal Policy Reforms in General Equilibrium: The case of Greece},       journal = {Journal of Macroecnomics},       year = {2012},       volume = {34},       pages = {504-522},       owner = {Minamar},       timestamp = {2012.08.03}     }


title: Indentation for proofs

text: I'm using `amsbook` document class and `amsthm` package. I want the proofs to stand out from the rest of the text by slightly indenting them, i.e. leaving some margins from left and right. How do I do that? It seems that Margins for proof environment is the same question. But the code doesn't work for me, probably because I'm using `amsthm` package already.


title: Mathtools' showonlyrefs fails with subequations

text: For the code               \begin{subequations}\label{eq:sub}     \begin{gather}       \frac{\text{d}b_1}{\text{d}z} - \im\beta_1b_1 = C_{12}b_2,\\       \frac{\text{d}b_2}{\text{d}z} - \im\beta_2b_2 = C_{21}b_1.     \end{gather}     \end{subequations}      with `\mathtoolsset{showonlyrefs=true,showmanualtags=true}`, the `\eqref` correctly references the equation group number, however the equations themselves appear in the document without numbers (so the previous equation is, say (2.7), the following one is (2.9) and no numbers 2.8a and 2.8b). Is it to be expected? Is there a work-around?


title: Latex commands for a specific page format

text: I am writing a report for which my University has given the following guidelines (Clearly, it was intended for use with Microsoft Windows).   * Project reports should be typed only on one side of the paper with 1.5 or double line spacing on a A4 size bond paper (210 x 297 mm). The margins should be: Left - 1.25", Right - 1", Top and Bottom - 0.75".   * The chapter must be left or right justified (font size 16). Followed by the title of chapter centered (font size 18), section/subsection numbers along with their headings must be left justified with section number and its heading in font size 16 and subsection and its heading in font size 14. The body or the text of the report should have font size 12. I used the following commands in my latex file, but somehow, it didn't look like the document my friend printed using Word. Specifically, I have the following questions:   1. Does 12pt in latex mean size 12 in Word?   2. Does \onehalfspacing mean the same as "1.5 line spacing" in word?   3. Will the following commands produce the same margins as setting the margins in Word?   4. What changes will I need to make to get the required format? (If you are interested, the complete specification is here: http://vtu.ac.in/index.php/examination-guidlines.html?start=12)               \documentclass[a4paper, 12pt]{report}     \usepackage[top=0.75in, bottom=0.75in, left=1.25in, right=1in]{geometry}          \chapternumberfont{\fontsize{16}{17}\selectfont}     \chaptertitlefont{\fontsize{18}{19}\selectfont \centering}     \sectionfont{\fontsize{16}{18}\selectfont}     \subsectionfont{\fontsize{14}{16}\selectfont}          \onehalfspacing          \pagestyle{fancy}     \fancyhf{}          \renewcommand{\headrulewidth}{0.4pt}     \renewcommand{\footrulewidth}{0.4pt}          \setlength{\headheight}{25pt}          \addtolength{\footskip}{-5pt}          \lhead{\fontsize{08}{10}\selectfont Control of A solenoid valve through current governing\\ implemented on a Renesas R8C23 microcontroller}          \rhead{\fontsize{12}{14}\selectfont 2010-2011}          \rfoot{\fontsize{10}{12}\selectfont \nouppercase{\thepage}}          \lfoot{\fontsize{08}{10}\selectfont Department of Electronics and Communications Engineering,\\ K.S.I.T}      * * * Thanks in advance :)


title: Figures on left pages, text on right pages

text: I'm writing a thesis in the `book` document class and I'm using a lot of figures to explain the working method. If I use the method proposed in Figures on left pages, text on right ones with class book, numbering only on right pages, my professor made the comment that it feels strange to have the text on the left side. He asked if it could be figures on the left and text on the right side. I've tried to do that, but when i do that, my figures go to the next page. This is what I want:               l-----------l------------l      l           l  bla bla,  l     l           l  bla bla   l     l  fig 1    l            l     l           l            l     l           l            l     l-----------l------------l      but this is what I get:               l-----------l------------l   l-----------l------------l     l           l  bla bla,  l   l           l            l     l           l  bla bla,  l   l           l            l     l           l            l   l  fig1     l            l     l           l            l   l           l            l     l           l            l   l           l            l     l-----------l------------l   l-----------l------------l      Is there any possible method to get me the result I want? Or am I making a stupid fault somewhere? PS: ow, the left page should be left blank if there's no figure. @Ignasi: Yes that is what I want (if that is possible).


title: how to draw the simple geometric figure with arrow shows its width via tex?

text: Before I ask this question, I have clicked many pages. Unluckily, I have found none. Could someone tell me how to draw the simple geometric figure with arrow via tex? Be grateful so much! ![enter image description here](http://i.stack.imgur.com/U6UkG.png)


title: Block with two inputs in pgf/TikZ

text: I am trying to draw the following block diagram using pgf/TikZ. Actually I am struck at getting the two inputs to the first block horizontal. ![block diagram](http://i.stack.imgur.com/JmWJg.png) What is the best way to draw the above diagram using pgf/TikZ.


title: Tabular alignment issue in a loop

text: I'm getting some odd table alignment issues with a table that I'm constructing inside of a `\whileboolexpr`. The `.tex` file is the following:               \documentclass{article}      \usepackage{etoolbox}          \newcounter{pcnt}     \setcounter{pcnt}{0}          \newenvironment{defineperson}[1]     {\csgdef{person\thepcnt}{#1}}     {\stepcounter{pcnt}}          \newcommand\persontitle[1]{\csgdef{persontitle\thepcnt}{#1}}     \newcommand\personmail[1]{\csgdef{personmail\thepcnt}{#1}}     \newcommand\showperson[1]{\textbf{#1}}          \newcommand\maketabular[1]{\begin{tabular}{| l | l | l |} \hline #1 \end{tabular}}          \newcounter{nada}      \newcommand\makepersonrtable{%       \setcounter{nada}{0}%       \maketabular{%       \whileboolexpr         { test {\ifnumcomp{\value{nada}}{<}{\value{pcnt}}} }%         {\showperson{\csuse{person\thenada}} & \csuse{persontitle\thenada} & \csuse{personmail\thenada} \\ \hline \stepcounter{nada} }       }}          \begin{defineperson}{Mr.}       \persontitle{Wall Eye}       \personmail{weye@gmail.com}     \end{defineperson}          \begin{defineperson}{Mrs.}       \persontitle{Perch}       \personmail{perch@gmail.com}     \end{defineperson}          \begin{defineperson}{Mr.}       \persontitle{Brook Trout}       \personmail{btrout@gmail.com}     \end{defineperson}          \begin{document}          \makepersonrtable          \end{document}      This does generate a table as I would have expected, but the alignment is off - e.g., ![](http://i.stack.imgur.com/0zdo7.jpg) Notice that the first "Mr." is not aligned with the second row. Also notice the extra vertical lines at the bottom. Any idea what's going on here? I know there are other ways of making tables, but this I'm trying a few alternatives as a learning exercise.


title: How can I write specifications following the W3C specifications format in LaTeX?

text: W3C specifications follow a very nice template (example: HTML-RDFa). The specifications are HTML documents styled by a javascript library ReSpec. Is it possible to write specifications in LaTeX following the same guidelines, but by using native LaTeX commands? I am currently writing specifications in LaTeX, which eventually will be published as HTML with the ReSpec js library. ALthough it would be extremely convenient, it is not necessary to be able to convert the latex file into HTML and JS code later. I only want to follow the same style as the W3C specs in my current LaTeX document, while they are being drafted in LaTeX. I guess I have to write the style file myself, but I am hoping it has been done before so I don't have to start from scratch.


title: background color of colorbox doesnt fill enclosing framebox entirely?

text: I am using a colorbox (that contains a parbox) inside a framebox. Inside the parbox there is an itemize environment I need some paddding around the text so I put fboxsep for the colorbox to 6pt However I cant seem to get the background color to fill the framebox entirely even though I set the fboxsep of the framebox to 0pt. There is always space remaining at the left and right hand side as can be seen from the example.               \documentclass[letterpaper,12pt]{article}     \usepackage[usenames,dvipsnames]{xcolor}     \begin{document}          {\setlength{\fboxsep}{0pt}     \centering       \framebox{     \setlength{\fboxsep}{6pt}      \colorbox{red}{\parbox{\textwidth}     {\centering            Some text text text          \begin{itemize}     \item xxxxxxxxxxxxxxxxxxxxxxxxxxx     \item yyyyyyyyyyyyyyyyyyyyyyyyyyy     \item zzzzzzzzzzzzzzzzzzzzzzzzzzz     \end{itemize}      \par}}     }     \par}          \end{document}      Any ideas ? ![enter image description here](http://i.stack.imgur.com/0zZWh.png)


title: Installing a font package in TeX-Live

text: I cannot make _fourier_ and other font packages to work on TeX-Live on Mac OS. I have installed _fourier_ package and tried `updmap-sys` and `mktexlsr` terminal commands in different combinations. Still the following example does not compile:               % !TEX TS-program = pdflatex     \documentclass{article}     \usepackage{fourier}     \begin{document}     $0$     \end{document}      I get: > pdfTeX error: /usr/texbin/pdflatex (file futr8r): Font futr8r at 552 not > found My question: what is the proper way to install a font package in TeX Live? For example, what should i have done to install _fourier_ package, in addition to installing it with _TeX Live Utility_? Can i re-install it? * * * I have tried to reinstall or remove _fourier_ with _TeX Live Utility_. Reinstallation claims to succeed, but does not fix the package. Removal does not work, i get the following log messages:               2013-11-10 12:10:24 +0000 Notice -[TLMMainWindowController removePackagesWithNames:force:][1376]    Beginning removal of     (         fourier     )     2013-11-10 12:10:24 +0000 Notice -[TLMAuthorizedOperation main][1376]   Checking code signature before running tlu_ipctask as root…     2013-11-10 12:10:24 +0000 Notice /usr/bin/codesign[1376]    /Applications/Custom/TeX Front Ends/TeX Live Utility.app/Contents/MacOS/tlu_ipctask: valid on disk     /Applications/Custom/TeX Front Ends/TeX Live Utility.app/Contents/MacOS/tlu_ipctask: satisfies its Designated Requirement     2013-11-10 12:10:24 +0000 Notice -[TLMAuthorizedOperation main][1376]   Signature was valid, okay to run tlu_ipctask     2013-11-10 12:10:32 +0000 Notice -[TLMAuthorizedOperation main][1376]   Invoking privileged task via AuthorizationExecuteWithPrivileges     2013-11-10 12:10:32 +0000 Notice tlu_ipctask[4080]  dropped privileges to user nobody     2013-11-10 12:10:33 +0000 Notice -[TLMAuthorizedOperation setWrapperPID:][1376] tlu_ipctask checking in:  tlu_ipctask pid = 4080     2013-11-10 12:10:33 +0000 Notice -[TLMAuthorizedOperation setUnderlyingPID:][1376]  tlu_ipctask checking in: pid = 4081 (/usr/texbin/tlmgr remove fourier)     2013-11-10 12:10:33 +0000 Notice tlu_ipctask[4080]  tlu_ipctask: child HOME = '/var/root'     2013-11-10 12:10:33 +0000 Notice tlu_ipctask[4080]  tlu_ipctask: current HOME = '/var/empty'     2013-11-10 12:10:34 +0000 Notice tlu_ipctask[4080]  tlmgr: removing package fourier     2013-11-10 12:10:34 +0000 Notice tlu_ipctask[4080]  tlmgr: ultimately removed these packages: fourier     2013-11-10 12:10:34 +0000 Notice tlu_ipctask[4080]  tlmgr: package log updated: /usr/local/texlive/2013basic/texmf-var/web2c/tlmgr.log     2013-11-10 12:10:34 +0000 Notice tlu_ipctask[4080]  running mktexlsr ...     2013-11-10 12:10:35 +0000 Notice tlu_ipctask[4080]  done running mktexlsr.     2013-11-10 12:10:35 +0000 Notice tlu_ipctask[4080]  running updmap-sys ...     2013-11-10 12:10:40 +0000 Notice tlu_ipctask[4080]  done running updmap-sys.     2013-11-10 12:10:40 +0000 Notice -[TLMAuthorizedOperation _runUntilChildExit][1376] kqueue noted that pid 4081 exited (/usr/texbin/tlmgr remove fourier)     2013-11-10 12:10:40 +0000 Notice tlu_ipctask[4080]  child process pid = 4081 exited     2013-11-10 12:10:41 +0000 Notice tlu_ipctask[4080]  exit status of pid = 4081 was 0     2013-11-10 12:10:41 +0000 Notice -[TLMAuthorizedOperation _runUntilChildExit][1376] waitpid returned 4080, WIFEXITED(0) = 1, errno = 17 (File exists)     2013-11-10 12:10:41 +0000 Notice -[TLMAuthorizedOperation _runUntilChildExit][1376] kqueue noted that tlu_ipctask (pid = 4080) exited with status 0     2013-11-10 12:10:41 +0000 Notice -[TLMRemoveOperation main][1376]   ERROR: failed to remove packages {(         fourier     )} (requested removal of (         fourier     ))      * * * I experimented further: i removed and reinstalled the whole TeX Live distribution, installed updates and _fourier_ package. I tried to remove it right away, and the removal failed. I reinstalled it, and tried to compile my test file, and the compilation failed with a different error: > pdfTeX error: /usr/texbin/pdflatex (file putr8a.pfb): cannot open Type 1 > font file for reading


title: How to optimize Latin Modern font with XeLaTeX

text: I need to create a XeLaTeX document with many fonts. I will use many fonts because my documents talk about fonts. But I want to use Latin Modern as main font. So I downloaded and installed ALL the open type font on my win7 via http://www.gust.org.pl/projects/e-foundry/latin-modern First I just did a simple :               \setmainfont{Latin Modern Roman}      It worked, but for instance I discovered that I couldn't get the small caps. Then I tried a:               \setmainfont[Ligatures=TeX,SmallCapsFont={* Caps}]{Latin Modern Roman}        It is working fine but my question is what is the best way to call the LM font in the preamble in order to be sure to get the best typography?


title: Change Bibliography Icon/Label with Beamer Class

text: I'm doing a presentation in latex. I have included the references using bibtex, however, the references appear as images and not numbers: Main code:               \documentclass[10pt]{beamer}     \usepackage{beamerthemeshadow}     \usepackage{graphicx}     \usepackage{epsfig}     \usepackage{hyperref}     \usepackage{tikz}     \usepackage{tikzpagenodes}     \usepackage{enumitem}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[english]{babel}          \tikzstyle{block}=[draw opacity=0.7,line width=1.4cm]          \title{My Presentation}      \author{Thunder}      \today          \setcounter{tocdepth}{1}          \begin{document}     \frame{\maketitle}           \begin{frame}{Contents}         \vspace{-1.20cm}         \tableofcontents     \end{frame}          \include{Objective}     \include{References}          \end{document}      References:               \begin{frame}{References}     \vspace{-0.50cm}     \begin{minipage}{1\linewidth}     \bibliographystyle{unsrt}     \bibliography{biblio}     \end{minipage}     \end{frame}      Output: ![enter image description here](http://i.stack.imgur.com/n4TxZ.png) Does anyone knows why the reference is not appearing as a number? My bib entry is:               @misc{Guide,      author               = {Guide},      howpublished         = {Guide},      title                = {The Guide},      year                 = {2014},     }


title: Cross reference to align

text: What I want to do is to make a cross reference to program (P) and still be able to make cross references to each separate line in the alignment.               \begin{align}       (P)\quad \min &cx\label{objective}\\       s.t.: & Ax\geq b\label{firstConst}\\             & Dx\geq d\label{secondConst}\\             & x\in\{0,1\}\label{binary}      \end{aling}      I known that I can use gather-aligned to make a reference to the program, but then I do not have the possibility to make references to separate lines. Any suggestions?


title: Clash between alltt and semantic and minus sign

text: Why does this code...               \documentclass{article}     \usepackage{alltt}     \usepackage{semantic}     \begin{document}     \begin{alltt}     \(x-y\)     \end{alltt}     \end{document}      ...give this error? > ERROR: TeX capacity exceeded, sorry [main memory size=3000000].


title: How to adapt a batch-script / write18-call to Linux systems

text: I want to compile a bunch of (independent) documents from a main.tex file. The documents are in subfolders and as they can load input files and graphics from other subfolders I need to change the current directory. I think this can't be done inside a `\write18` call so I'm writing first a `.bat`-script and call this later. I would like to adapt the code so that is works on linux too, but as I don't have a linux system available I can't test it. Could someone tell me how this should look on linux? (You need folders a1 and a2 with a1.tex and a2.tex in them.)               \documentclass{article}          \begin{document}          \newwrite\writebatch     \immediate\openout\writebatch=compile-files.txt     \immediate\write\writebatch{cd a1}     \immediate\write\writebatch{pdflatex a1}     \immediate\write\writebatch{cd ..}     \immediate\write\writebatch{cd a2}     \immediate\write\writebatch{pdflatex a2}     \immediate\closeout\writebatch     \immediate\write18{copy compile-files.txt compile-files.bat}     \immediate\write18{compile-files.bat}      %compile-files.bat will probably be called later  on the command line, is here for      %the test. Needs --shell-escape.                \end{document}


title: How to get rid of overlapping node shapes when using dot2tex?

text: I'm trying to introduce multiline `dot2tex` nodes using `\parbox` like this:               \documentclass[12pt,draft]{article}          \usepackage{cmap}          \usepackage[T2A]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}          \usepackage[margin=2.5cm]{geometry}          \usepackage{dot2texi}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows}          \begin{document}          \begin{figure}[ht!]     \begin{center}     \begin{dot2tex}     digraph {       rankdir=LR;       os [texlbl="\parbox{3cm}{\centering Operating system}"];       exe [texlbl="\parbox{3cm}{\centering Machine code in an .exe-file}"];       os -> exe;     }     \end{dot2tex}     \end{center}     \end{figure}          \end{document}      Unfortunately, this gives me overlapping nodes: ![Overlapping nodes](http://i.stack.imgur.com/1cERf.png) Does anyone know how to solve this issue? Thank you in advance.


title: Sublime Text 2 - use typeset latex instead of pdflatex

text: I just started using this tool and it looks awesome. However I started working on a project I started in TeXShop and I have always used latex typesetting. (I'm on OSX 10.9) Now when I try to compile it won't! it looks like it doesn't recognize the '\include' command (./main.tex:27: Undefined control sequence. [\include{RL_Standardization}]) , but works with \input. is this due to the typesetting pdflatex? How can I make the latex typeset work instead? I am using this "%!TEX program = ts-latex" but I am not sure what I should change in the LaTeX.sublime-build.. Also when I change it the documentation says: "If you copied the default file to the User directory and modified it, you will not get this functionality. In this case, copy the new default file to User and apply your personalizations again." However this is not clear to me, I don't understand what I should do with this. Can someone help me out? main.tex:               \input{preample}% in directory above current          % Continue on Errors     \nonstopmode          \begin{document}          \OnehalfSpacing          \frontmatter%     \include{frontpage}     %\include{abstract}      %\tableofcontents*     %\vspace{1cm}%     %\listoffigures*%     %\vspace{1cm}%     %\listoftables*%     %\vspace{1cm}%     \frontmatter % roman page numbering     \mainmatter%          %\begingroup     %\let\clearpage\relax          %\include{KK_SA}     %\include{RL_Standardization}     %\include{LK_SOA}     %\include{TG_Stakeholders}     \include{MM_Cloud}          %\bibliographystyle{apalike}     %\bibliography{bibliography}          % Style 2     %\bibliographystyle{plain}     %\printbibliography          %\input{appendix}     %\endgroup     %\backmatter     \end{document}       preamble.tex               \documentclass[11pt,article, twoside,openany]{memoir}          \usepackage[top=3cm, bottom=3cm, left=4.5cm, right=3.5cm, headsep=1cm]{geometry}     %\usepackage[,]{geometry}          %\usepackage[latin1]{inputenc} % danske bogstaver     \usepackage[applemac]{inputenc}  % use applemac      %\usepackage[UKenglish]{babel} % hvis danske overskrifter brug danish istedet for UKenglish     \usepackage{varioref}     \usepackage{lmodern} % vector based Computer Modern font     \usepackage[T1]{fontenc} % fonte (output)     \usepackage{graphicx} % inds¾ttelse af billeder     \usepackage{wrapfig}     \usepackage[svgnames]{xcolor} % enables us to use normal names for colors in links and so on.     \usepackage{cite}               \usepackage{graphics} % rotation af tekst i gnuplots pŒ y-axis          \graphicspath{{./figures/}} % path to figures and images     \usepackage{amssymb}%til gunplay          \usepackage{colortbl} %til farver i tabeller     \usepackage[final]{pdfpages} % allows for adding pdf's to the finished doc. i.e adding an A3 pdf to a A4 project     \usepackage{sistyle,amsmath,amssymb,amsthm}     % verbatim: allows for latex to put text exactly as it looks.. making it like a typewriter.     \usepackage{verbatim} % usage: \begin{verbatim} PUT TEXT HERE \end{verbatim}           \usepackage{epic,eepic,color} % inkludering af Xfig-figur          \pretolerance=2500 % h¿jt tal, mindre orddeling og mere space mellem ord.     % 3000 er okey, 1000 er for lidt, 5000 i overkanten, 8000 er for meget..          \usepackage{amsmath}     \usepackage{mathtools}     \usepackage{float}          \setcounter{maxsecnumdepth}{5}     \setcounter{tocdepth}{2}     \setcounter{topnumber}{2}     \setcounter{bottomnumber}{2}     \setcounter{totalnumber}{2}     % 2 may work better      %\renewcommand{\topfraction}{0.9}?  % max fraction of floats at top      %\renewcommand{\bottomfraction}{0.8}?  % max fraction of floats at bottom      \usepackage[plainpages=false,pdfpagelabels,pageanchor=false, breaklinks]{hyperref} % aktive links     \hypersetup{       colorlinks = true,       citecolor=Blue,       linkcolor=Black,       urlcolor=Blue,       citebordercolor=Violet,       filebordercolor=Red,       linkbordercolor=Blue       }               %\setlength{\intextsep}{10pt plus 2pt minus 2pt}     \usepackage{longtable}     \usepackage{lscape}%Landsscape mode in a file \begin{landscape}...\end{landscape}     \usepackage{hyperref}     \hypersetup{ %       pdftitle={Smart Homes for the elderly},       pdfauthor={Manuel Maestrini, Lasse Kabell, Robert Lapins, Florin Timotei Ghiurau, Katharina Kluge},       bookmarksopen=true,         citebordercolor={1 0.1 0}, % 0 1 0 The color of the box around citations         linkbordercolor={0 0.1 1}, % 1 0 0 The color of the box around normal links         pagebordercolor={0 0.1 1}, % 1 1 0 The color of the box around links to pages         urlbordercolor={0 0.1 1}, % 0 1 1 The color of the box around links to URLs     %Note that the color of link borders can be specified only as 3     %numbers in the range 0..1, giving an RGB color. You cannot use colors defined in TEX.     }          \usepackage{memhfixc} % fjerner problem med hyperref og "to<kapitelnummer>" i bookmarks i acrobat reader.          \hyphenation{}     \DisemulatePackage{setspace}      \usepackage{setspace}     \usepackage{parskip}     \usepackage{lipsum}     \usepackage[colorinlistoftodos]{todonotes}          \let\footruleskip\undefined     \usepackage{fancyhdr}          \pagestyle{fancy}     \fancyhf{}     \fancyhead[L]{Top Left}     %\fancyhead[C]{Top Center}     \fancyhead[R]{Services Architectures\draftIntro}     \renewcommand{\headrulewidth}{0.4pt}     \fancyfoot[L]{Bottom Left}     \fancyfoot[R]{\thepage}     %\fancyfoot[R]{Bottom Right}     \renewcommand{\footrulewidth}{0.4pt}          \fancyhead[L]{2013 Aalborg University}     \fancyfoot[L]{Aalborg University. Copenhagen, Denmark. December, 2013\draftIntro}          \counterwithout{section}{chapter}      When compile this I get: There were errors in your LaTeX source ./main.tex:29: Undefined control sequence. [\include{MM_Cloud}] ./main.tex:29: Undefined control sequence. [\include{MM_Cloud}] There were also warnings. ./preample.tex: Package hyperref Warning: Option `pagebordercolor' is not available anymore. ./frontpage.tex:6: LaTeX Font Warning: Font shape`T1/lmr/bx/sc' undefined(Font) using `T1/lmr/bx/n' instead on input line 6. ./main.tex: LaTeX Font Warning: Some font shapes were not available, defaults substituted. [Done!]


title: How to "rough up" paths of stochastic processes in TikZ?

text: I'm currently typing up notes for a stochastic analysis course and would like to substitute my hand drawn pictures by pictures created with tikz. I am familiar with the basics of tikz but have the following problem: Very often I would like to draw a path of a stochastic process that has some special properties, for example a path of a 2D Brownian motion that closes a loop around 0. I would like to be able to draw the path smoothly using normal tikz first and then apply some kind of disturbance to it, so that it actually looks like a BM. Here is a picture that explains what I would like to be able to achieve: ![smooth and rough path](http://i.stack.imgur.com/aOLw3.jpg) I'd like to be able to draw the blue line first and then turn it into the "randomized" red path. Does anybody have an idea how i can achieve this? I don't really want to simulate paths of brownian motion until one comes along that has the properties that i want it to have... Thanks!


title: Latex, Tikz, PDF's and Multiple .tex files

text: To give a brief background of my situation, I am currently writing a group report in LaTeX for my honours project and I'm attempting to use LaTeX for this. There are several sections in this report, each in different .tex files, each contributed by different people and there is also a document class that has been provided to us. Below is an example of the file structure: Master Tex file:               - section 1     --Images     --TikzInput     --IncludePDFs     - section 2     --Images     --TikzInput     --IncludePDFs     etc..      Each document (section) complies perfectly fine by itself, including input PDF's and input tikz files. When I attempt to bring them together in a master document using `\include` or `\input`, the document looks for the tikz input files and the IncludePDFs files in the master tex location. I've currently found a way to include different paths for the image folders, is there a similar way for tikz scripts/pdfs? alternatively, is there a way to separately compile each section by themselves and then compile them together at the end? Currently, the only way i can see to do this is to manual change the paths before compiling them all together which is rather arduous for an 400 page document, even with ctrl-f. Thanks in advance for anyone thoughts/input.


title: Possible incompatibility - LaTeX3 kernel and EbGaramond.sty

text: In advance, I apologise if this is off-topic as "too localised", but I'm not sure where's the best place to ask. I am running TeX Live 2014 on Windows 7, fully up-to-date as of this morning. Here's my MWE:               % !TEX TS-program = xelatex     % !TEX encoding = UTF-8 Unicode     \documentclass{article}     \usepackage{ebgaramond}     \begin{document}     Hello, World!     \end{document}       which gives me this (partial) log:               ! LaTeX error: "kernel/misplaced-equals-sign"     !      ! Misplaced equals sign in key-value input 81     !      ! See the LaTeX3 documentation for further information.     !      ! For immediate help type H <return>.     !...............................................            l.81       {EBGaramond12}      The l.81 in question appears to come from this part of ebgaramond.sty:                 \setmainfont           [ Numbers = {\ebgaramond@figurealign,\ebgaramond@figurestyle},             UprightFont    = *-Regular ,             ItalicFont     = *-Italic ,             BoldFont    = *-Regular ,             BoldItalicFont     = *-Italic ,           ]           {EBGaramond12}      For EBGaramond problems, I would normally talk with Bob Tennent, but can't help feeling this case is something else. Please, a clue, or suggest additional useful diagnostics. I don't _think_ I have a corrupted install, as I installed clean from the ISO three days ago, and did just one `tlmgr update --all` this morning. * * * And here's the `\listfiles`:                *File List*      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)     ebgaramond.sty    2014/07/02 (Bob Tennent) Style file for EB Garamond fonts.      ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)      xkeyval.sty    2014/05/25 v2.7 package option processing (HA)      xkeyval.tex    2014/05/25 v2.7 key=value parser (HA)     textcomp.sty    2005/09/27 v1.99g Standard LaTeX package       ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file     fontspec.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX        expl3.sty    2014/06/10 v5105 L3 programming layer (loader)      expl3-code.tex    2014/06/10 v5105 L3 programming layer          etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)     l3xdvipdfmx.def           xparse.sty    2014/06/10 v5105 L3 Experimental document command parser     fontspec-patches.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTe     X     fontspec-xetex.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX      fontenc.sty       eu1enc.def    2010/05/27 v0.1h Experimental Unicode font encodings       eu1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern     xunicode.sty    2011/09/09 v0.981 provides access to latin accents and many oth     er characters in Unicode lower plane      eu1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern     graphicx.sty    2014/04/25 v1.0g 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    2010/04/23 v1.9 graphics configuration of TeX Live        xetex.def    2014/04/28 v4.01 LaTeX color/graphics driver for XeTeX (RRM/JK)          fontspec.cfg     ebgaramond12.fontspec     ebgaramond12.fontspec     ebgaramond12.fontspec     ebgaramond12.fontspec     ebgaramond12.fontspec     ebgaramond12.fontspec     ebgaramond12.fontspec       ts1cmr.fd    1999/05/25 v2.5h Standard LaTeX font definitions        t3cmr.fd    2001/12/31 TIPA font definitions      ##  *********** And here are the actual file paths from the .log:               (d:/Programs/TeX.Live/texmf-dist/tex/latex/base/article.cls     (d:/Programs/TeX.Live/texmf-dist/tex/latex/base/size10.clo     (d:/Programs/TeX.Live/texmf-dist/tex/latex/ebgaramond/ebgaramond.sty     (d:/Programs/TeX.Live/texmf-dist/tex/generic/ifxetex/ifxetex.sty     (d:/Programs/TeX.Live/texmf-dist/tex/generic/oberdiek/ifluatex.sty     (d:/Programs/TeX.Live/texmf-dist/tex/latex/xkeyval/xkeyval.sty     (d:/Programs/TeX.Live/texmf-dist/tex/generic/xkeyval/xkeyval.tex     (d:/Programs/TeX.Live/texmf-dist/tex/generic/xkeyval/xkvutils.tex     (d:/Programs/TeX.Live/texmf-dist/tex/generic/xkeyval/keyval.tex))     (d:/Programs/TeX.Live/texmf-dist/tex/latex/base/textcomp.sty     (d:/Programs/TeX.Live/texmf-dist/tex/latex/base/ts1enc.def     (d:/Programs/TeX.Live/texmf-dist/tex/latex/fontspec/fontspec.sty     (d:/Programs/TeX.Live/texmf-dist/tex/latex/l3kernel/expl3.sty     (d:/Programs/TeX.Live/texmf-dist/tex/latex/l3kernel/expl3-code.tex     (d:/Programs/TeX.Live/texmf-dist/tex/latex/etex-pkg/etex.sty     (d:/Programs/TeX.Live/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def     (d:/Programs/TeX.Live/texmf-dist/tex/latex/l3packages/xparse/xparse.sty     (d:/Programs/TeX.Live/texmf-dist/tex/latex/fontspec/fontspec-patches.sty     ) (d:/Programs/TeX.Live/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty     (d:/Programs/TeX.Live/texmf-dist/tex/latex/base/fontenc.sty     (d:/Programs/TeX.Live/texmf-dist/tex/latex/euenc/eu1enc.def     (d:/Programs/TeX.Live/texmf-dist/tex/latex/euenc/eu1lmr.fd     (d:/Programs/TeX.Live/texmf-dist/tex/xelatex/xunicode/xunicode.sty     (d:/Programs/TeX.Live/texmf-dist/tex/latex/tipa/t3enc.def     (d:/Programs/TeX.Live/texmf-dist/tex/latex/euenc/eu1lmss.fd     (d:/Programs/TeX.Live/texmf-dist/tex/latex/graphics/graphicx.sty     (d:/Programs/TeX.Live/texmf-dist/tex/latex/graphics/graphics.sty     (d:/Programs/TeX.Live/texmf-dist/tex/latex/graphics/trig.sty     (d:/Programs/TeX.Live/texmf-dist/tex/latex/latexconfig/graphics.cfg     (d:/Programs/TeX.Live/texmf-dist/tex/xelatex/xetex-def/xetex.def     (d:/Programs/TeX.Live/texmf-dist/tex/latex/fontspec/fontspec.cfg)))     (d:/Programs/TeX.Live/texmf-dist/tex/latex/ebgaramond/ebgaramond12.fontspec)     (d:/Programs/TeX.Live/texmf-dist/tex/latex/ebgaramond/ebgaramond12.fontspec)     (d:/Programs/TeX.Live/texmf-dist/tex/latex/ebgaramond/ebgaramond12.fontspec)     (d:/Programs/TeX.Live/texmf-dist/tex/latex/ebgaramond/ebgaramond12.fontspec)     (d:/Programs/TeX.Live/texmf-dist/tex/latex/ebgaramond/ebgaramond12.fontspec)     (d:/Programs/TeX.Live/texmf-dist/tex/latex/ebgaramond/ebgaramond12.fontspec)     (d:/Programs/TeX.Live/texmf-dist/tex/latex/ebgaramond/ebgaramond12.fontspec)     (d:/Programs/TeX.Live/texmf-dist/tex/latex/base/ts1cmr.fd     (d:/Programs/TeX.Live/texmf-dist/tex/latex/tipa/t3cmr.fd      * * * And here's `ebgaramond12.fontspec`. Looks innocuous:                 \defaultfontfeatures{             Extension = .otf              UprightFont    = *-Regular ,             ItalicFont     = *-Italic ,             BoldFont    = *-Regular ,             BoldItalicFont     = *-Italic        }


title: Could anyone help with vertical spaces over text in psmatrix?

text: I´m trying doing some examples with pstricks, but I´m having problems, because only changing a cell of the psmatrix.... I have problems. Could anyone help me with vertical spaces and and showing the final |nclines in the last images. ? example file


title: how to get chapter title in a rectangular frame

text: how to get chapter heading like this in pdflatex ![enter image description here](http://i.stack.imgur.com/c5abM.jpg) can titlesec be used?               % hanging chapters     \usepackage{titlesec}     \titleformat{\chapter}[hang]      {\normalfont \Large \bfseries}{\chaptertitlename\ \thechapter}{1em}{}


title: beamer \pause behaves differently inside tabular using different \setbeamercovered option

text: The following MWE demonstrates the problem:               \documentclass{beamer}          \usepackage{lmodern}          \setbeamercovered{transparent=0}     %\setbeamercovered{invisible}          \begin{document}          \begin{frame}          \begin{tabular}{ll}     a & b \\\pause     c & d     \end{tabular}          \end{frame}          \end{document}      `\pause` effects one row if `\setbeamercovered{invisible}` is used, but only one cell if `\setbeamercovered{transparent=??}` is used. Is it a bug? Shouldn't it be the same?! Can I write my code to affect the entire row with both of the above?


title: Configuration of Texmaker to work with MiKTeX Portable

text: I have MiKTeX Portable on my USB, and I've installed Texmaker on my machine with Windows XP. I cannot find a way to configure Texmaker so that it compiles with MiKTeX portable. It just prompts me with the message "Could not start the command." I guess that I should configure that in `Option -> Configure Texmaker -> Quick Build`. But I don't know what to do there. I've done research and could not find solution. I find one workaround where they use Texmaker USB with MiKTeX Portable, but it's not I want (and it's quite complicated). Any advice and help would be appreciated. Or if you know some other LaTeX editor that can be easily configured for MiKTeX Portable. The built in editor TeXworks works just fine, but I would love to have a more user friendly interface. ## Edit I use the following versions: Texmaker 4.1 and MiKTeX is 2.9.


title: having custom caption in listing

text: I would like to have my custom name for my listing, how can I do that. here is my code:               \documentclass[12pt,a4paper]{scrreprt}           \usepackage{listings}      \lstloadlanguages{R}      \lstset{% general command to set parameter(s)      basicstyle=\sffamily\footnotesize, % print whole listing small      keywordstyle=\sffamily\footnotesize\bfseries, % ubold black keywords      identifierstyle=, % nothing happens      commentstyle=\sffamily\footnotesize\slshape, % green comments      stringstyle=\sffamily\footnotesize, % typewriter type for strings      showstringspaces=false, % no special string spaces      numbers=left,      numberstyle=\sffamily\footnotesize,      stepnumber=1,      numbersep=10pt,      showspaces=false,      showtabs=false,      frame=lines,      morecomment=[l]{\%},      float=htbp,      numberbychapter=true      }           \begin{document}           \chapter{Kapitel2}           Hier noch etwas Kode \ref{lst:DFZVf3}.           \begin{lstlisting}[float,label={Code} ,caption=R Code für die Berechnung der nicht lieare Regression]      #values of a time series with the length of 128      data.frame(index=1:length(values),values)     fit.loess <- loess(values~index,df,span=.1)     plot(df, type="l", col="blue",main="loess")     lines(df$index,predict(fit.loess),col="red",lwd=2)     # non-linear regression usign a single sine term          fit.nls <- nls(values~a*sin(b*index+c)+d,df,                    start=c(a=1000,b=pi/10,c=0,d=mean(df$values)))     plot(df, type="l", col="blue",main="sin [1 term]")     lines(df$index,predict(fit.nls),col="red",lwd=2)                    # non-linear regression using 2 sine terms     fit.nls <- nls(values~a1*sin(b1*index+c1)+a2*sin(b2*index+c2)+d,df,                    start=c(a1=1000,b1=pi/10,c1=1,                            a2=1000,b2=pi/4.55,c2=1,d=mean(df$values)))     plot(df, type="l", col="blue",main="sin [2 terms]")     lines(df$index,predict(fit.nls),col="red",lwd=2)      \end{lstlisting}      \label{lst:DFZVf3}           \end{document}      I would like to have `code` instead of `listing`


title: Azimuth shading

text: I would like to gradually shade a rectangle in a way that e.g. bottom edge is red and left edge is blue.               \fill[left color=blue,bottom color=red] (0,0) rectangle (2,2);      Therefore colour should be changing by azimuth, like colour wheel centred in bottom left angle. Is that possible to do? Thanks.


title: Bibliography in ConTeXt

text: I have two problems with bibliography using `ConTeXt ver: 2013.01.10 01:04 MKIV`.   1. I would like to get `\citet` like behaviour `Author name [1]`. However, presently the MWE produces only the numbers.   2. Secondly, a list of publications is not being produced at all either `\placepublications` or `\completepublications`. **MWE**               \setupbibtex[database={bib}]     %\setuppublications[alternative=]          \starttext       I am refering to \cite{me13}.       \placepublications[criterium=text]     \stoptext      **bib.bib**               @article{me13,             title = {This bibliography in context},             author = {Convert, Recent},             journal = {Tex SX},             volume = {1},             number = {1},             pages = {1-11},             year = {2013},     }


title: Footnote is not clickable and the PDF cannot be selected

text: Say in chapter 2, page 10 I create a foonote (by doing: `\footnote{bla bla....}`). When I reference it in Page 10 I get a clickable reference to that footnote. But, in page 12 when I reference this footnote using `\footnotemark[\value{footnote}]` , I get the number of the footnote correct, but this time its not clickable. How can I fix this? I am using Windows 7, MikTEX 2.9 and TexMaker. The PDF that I create is OK. But I can't seem to copy any text from the PDF. When I click, a long vertical bar appears. I am using Adobe PDF for viewing.


title: I need help width \rule

text: Minimal example:               \documentclass{memoir}     \usepackage[utf8]{inputenc}     \thispagestyle{empty}     \begin{document}          \begingroup     \color{blue}     \rule{\paperwidth}{7.5cm}     \endgroup     \end{document}      I just want to make a box which is blue, has paperwidth and is placed at the bottom and is 7.5cm high. How to do that? Thank you very much in advance :) PS! It would be nice if I also could write a text which begins 7 cm from the right edge and goes to maximum 2 cm of the right edge and starts two centimeters under the blue beginning and ends to cm before bottom (white text) :D And a picture which is 2 cms from each edge of the paper (also in the blue box) and is 9 cm long. ![Example picture](http://i.stack.imgur.com/t0uN2.jpg)


title: Tocloft + KOMA, get rid of numberings in table of content, but keep them in the content

text: I am using the documentclass `scrbook` (KOMA) with `tocloft` and would like to get rid of all the numberings of the chapters, sections and subsections in the table of content, but not in the content itself. How can I do that? I searched a lot, but couldn't find anything. I tried                \renewcommand{\thechapter}{}      but then all the numberings will disappear...


title: Size of the delimiters when the equation is split in an align environment.

text: The following code does not work:               \begin{align*}      \left \| x \mapsto \sup_{(y, t) \in \Gamma_x^{(A, a)}(\gamma)} & \int_{\R^d} M_{t^2}(y, z) 1_{N_\tau^c}(y, z) |f(z)| \, \d z \right \|_{L^1(\gamma)}\\      &= \int_{\R^d} \left | \sup_{(y, t) \in \Gamma_x^{(A, a)}(\gamma)} \int_{\R^d} M_{t^2}(y, z) 1_{N_\tau^c}(y, z) |f(z)| \, \d z \right | \, \d\gamma(x)     \end{align*}      `\R` is defined as `\newcommand{\R}{\mathbf R}`. Probably `\left` does not work across `&`'s. How do I fix this? Do I have to give the size manually? Placing `\right . & \left .` does not give the desired effect because they will not necessarily both be the same size. Manually setting the size works, but I'm not sure if `\left` works "stepless" in the sense that it can get any size, where the `\Bigg` and so on are fixed. Further, it would be nice if it would work automatically so that I don't have to get back all the time to check if my delimiters are large enough.


title: Warsaw theme - Frame title bar covers top infolines

text: I'm making a presentation using `Warsaw` theme, but with `infolines` at the top of every frame. The problem is that `\frametitle` command makes the title bar to cover part of the top infolines bar, as you can see in this image: ![enter image description here](http://i.stack.imgur.com/guFMi.jpg) I thought of two solutions:   * shifting down the title bar in the `Warsaw` theme;   * choose another theme and add the gradient myself (with the same colors as Warsaw theme). I'm new to `beamer`, so I don't know how to do this.


title: Removing Figure: from some pictures

text: I've searched the web, but I didn't have any luck with this. I have two pictures in a document, and I would like for one to have a caption, and for the other not to have one. So far I've only found how to remove the caption, but the 'Figure 1' part will still stay, and I want that to be gone as well, but still to be able to have a caption on the second figure. Is this possible?


title: Generate List/Array of Requirements

text: There's a problem I'm trying to solve: I want to generate an Array with e.g. required Modules for a Software Installation. It should look like this:               \makebox[0pt][r]{required Modules}     \begin{tabular}[t]{p{1.8cm}p{1.8cm}}     Module01 & Module02 \\     Module03 & Module04 \\     ...     \end{tabular}      I'd like to have kind of a little circle (maybe a png) in Front of each Module wich is filled, if the Module is required and empty otherwise. The Array should be generated with a simple Command like this:               \requiredModules{Module02,Module04}      so that the given Modules are the required ones... How can i do this?


title: Images next to each other

text: I am using `\hspace{-0.1mm}` to ensure the `image1` and `image2` are right next to each other. Otherwise, when the pdf viewer is zoomed in, a blank vertical line is seen between the images. I wonder if there is a more logical way to ensure images are laid out right next to each other.               \includegraphics[scale=1]{image1.png}\hspace{-0.1mm}     \includegraphics[scale=1]{image2.png}


title: Differences between tabular and tabularx

text: What is the difference between the `tabular` and the `tabularx` environements? Which one should I use for placing a row of pictures?


title: Too much space around wrap figure

text: I am using the `wrapfig` package to have my text around the figure but there is too much space around it as you can see below. ![example of too much space](http://i.stack.imgur.com/Nzlj9.png) Here is the code that I am using, I looked at the wikibook on LaTeX for this issue and it suggested that I use `\vspace{-xpt}` to decrease the amount but it's not working very well. Here is the code for `wrapfig`.               \begin{wrapfigure}{r}{0.5\textwidth}     \vspace{-20pt}     \centering         \includegraphics[scale=0.5]{Program_Layout.png}     \vspace{-10pt}     \caption{Basic layout}     \end{wrapfigure}      How can I fix the code such so the text can get as close as possible?


title: TeXLive cannot be updated, older version not available and cannot install pretest version

text: I freshly installed `Ubuntu 13.04` and proceeded to install `TexLive 2012` which has been frozen for upcoming release of `TeXLive 2013` and hence cannot be updated. I wanted to modify and compile a `LaTeX` document which requires installation of some packages that do not come with the standard full installation of `TeXLive 2012`, which, as I noted cannot be modified. I cannot find older version `TeXLive 2011`. And I get following error when I try to install `TeXLive 2013` pretest version:               Loading ./tlpkg/texlive.tlpdb     ./install-tl: open(./tlpkg/texlive.tlpdb) failed: No such file or directory at tlpkg/TeXLive/TLPDB.pm line 359.      I am stuck in no man's land.


title: Defining the caption of newtheorem with a command

text: In the example below you can see that both environments get the same caption. How to prevent this? You will get the same result if you use an other package like `amsthm`, `theorem` or `thmtools`.               \setcounter{errorcontextlines}{999}     \documentclass{scrartcl}     \usepackage{ntheorem,xcolor}     \def\tempA{Game}     \newtheorem{game}{\color{red}\bfseries\tempA}     \def\tempA{Example}     \newtheorem{example}{\color{blue}\bfseries\tempA}     \begin{document}          \begin{example}     Test     \end{example}          \vspace*{2em}          \begin{game}     Test     \end{game}     \end{document}      ![enter image description here](http://i.stack.imgur.com/18F12.png)


title: Full table of contents with truncated body

text: I have lecture notes in beamer for my classes which I compile into a single document. I put an `\end{document}` after the last page that I've lectured from on a given day and then post the resulting document. I update this throughout the semester. The table of contents resulting from this document is of course just the section headings of the document as it appears. However, I would like to include the entire table of contents as a form of course outline that the students can see in advance of a topic being covered, and to keep the page numbers stable. I suppose that the links to future topics must either be inactive or give an error when clicked, and the page numbers blank, but I'd like the titles there. Is there a way to do this?


title: Can I have a curly brace as macro argument delimiter?

text: Is there any trick that allows to have a `{` in argument delimiters of a macro ? for example, with this definition :               \def\start#1\fin{+++#1+++}      the call               \start coucou\fin{3}4      will display > +++coucou+++34 because `\fin` is the right delimiter of the argument of the macro `\start`. Now, i would like the whole `\fin{3}` to be the delimiter. So that the same call as above would now output: > +++coucou+++4 The problem is how to include the curly brace in the delimiters. **Edit1** In particular, I would like the following call               \start coucou\fin{2}blabla\fin{3}       to "output" > coucou\fin{2}blabla but, regarding to David's comments, it seems to be impossible.


title: Using bold/italic text inside listings?

text: How can I use bold text inside a code listing? I wanted to make some parts of the code bold.


title: Embed \cite in \bibnote

text: Consider the following code:               \documentclass[10pt,a4paper, twocolumn]{article}          \usepackage[backend=biber]{biblatex}     \usepackage{notes2bib}          \addbibresource{test.bib}          \defbibnote{intro}{This intro works perfectly well.}          \begin{document}          In this essay, I will disclose rhetorical strategies invented by John Doe \bibnote{The author cites from \cite{somekey} only in the 1984 edition.}. However, in the Notes at the end, it does not look exactly the way I would like it \bibnote{\ldots but this does!}.          \printbibliography[title=Notes, prenote=intro]          \end{document}      For completeness here is the BibTeX entry (could be anything really):               @ARTICLE{somekey,       author = {Dunno, Someone I.},       title = {Whatever Works},       journal = {Paper Series},       year = {2069},       volume = {XXX},       pages = {69--96}     }      The result is: ![Bothersome result...](http://i.stack.imgur.com/Ee2ZD.png) What really bothers me is that instead of printing the actual bibliographic entry in the Notes, another entry `[3]` is created (at the end of the bibliography on top of that!)... How can I have something like: > [1] The author cites from Someone I. Dunno. "Whatever Works". In: Paper > Series XXX (2069), pp. 69--96. only in the 1984 edition. The problem is that I have a different text snippet before and after each citation (or sometimes no text at all). **NOTE** : I tried to wrap `\cite` in `\bibnote` because I am using `\bibnote`s anyway...


title: How to prevent last period in captions from appearing in the list of figures?

text: Is there any simple way of removing the last character of an argument to a command (or environment)? I'm looking for a simple way to remove the punctuation mark from a caption when it appears in the contents list without having to write the same caption twice.


title: How to customize placement of floats and figures?

text: First, using LaTex, is it possible to place/orient a figure anywhere on the page regardless of text? Example: split the page up into 9 squares(3 on top, 3 in the middle, and 3 on the bottom), and you want the figure to be in any one of the squares, say the second row and the third square from the left of the page. And you want it to be there regardless of the text. Is this possible? Second, if this is not possible, what would one have to do to make this possible(with out using Microsoft Word)? I would like to do this for things like posters and custom flyers. I enjoy using LaTex and use it for technical writing. So, any input or ideas are very welcome. Nothing is impossible, just tricky. Thanks and best regards. Note: I dont believe this is a question for the trivial h,t,b,p,!,and H commands.


title: How to count the space around lines to align lines vertically on a grid?

text: I'm trying to create a XeTeX class which aligns text vertically on a grid. What I'm trying to achieve is layout on the left (created in InDesign), and what I'm generating now is on the right (the document text's baseline is not aligned with the grid): http://koziej.info/typo-problems.png I'm using `geometry` package with page head just below the top margin (`includehead` option). I use `fancyhdr` package to render these headings. _Question:_ how to specify `\headheight` and `\headsep`, so that the page content is aligned with the grid. I cannot count it, because:   1. I do not know how within the head space (specified by `\headheight`) the head content is positioned. Do the letters start just where top margin ends? Or is there some additional space?   2. I do not know, also, how much space below the head baseline is still reserved for the head.    3. If I would know #2, i could set `\headskip` so what when the first line height is added (first line height is just the font size, without the leading, right? so 10pt for 10pt document), I should get a multiplication of the grid step size. Yet I'm also not sure if there is no spacing above the the first line of text (is `height = dept + font size` for the first line?). BTW: is there some way to display all the boxes created by LaTeX?


title: How can I make lines break automatically in multirow?

text: I want to obtain a table like the one in my attachment. Then I tried to use `\hhline` to draw horizontal lines. But I still have a problem about breaking lines automatically. The one that I want to have ![enter image description here](http://i.stack.imgur.com/EXjfc.jpg) The bad one ![enter image description here](http://i.stack.imgur.com/re2dR.jpg)               \documentclass[12pt, a4paper,twoside]{article}     \usepackage{multirow,booktabs}     \usepackage{colortbl,multirow,hhline,mathtools}     \usepackage{makecell}     \begin{document}          \definecolor{c1}{rgb}{0.30980, 0.50588, 0.73725}     \definecolor{c2}{rgb}{0.82353, 0.87843, 0.92941}               \setlength{\arrayrulewidth}{1pt}     \setlength{\extrarowheight}{1.0pt}     \begin{table}[H]   % added on 12172013 for caption and label     \centering     \caption{Table}     \label{tb32b}     \arrayrulecolor{white}     \begin{tabular}{|p{4.5em}|p{7cm}|p{3.8cm}|l|}     \rowcolor{c1}     \multirow{4}*{\textcolor{white}{Measure}}              & \multicolumn{2}{l|}{\multirow{4}*{\textcolor{white}{Description}}} &                                                 \multirow{4}*{\textcolor{white}{NO.}}  \\     \hline      \arrayrulecolor{white}          \rowcolor{c2}     \multirow{4}*{\parbox[t]{4.5em}{Orientation-based}}  &  \multicolumn{2}{p{11.25cm}|}{The first orientater of empty bins in the rose plot.}   & \multirow{2}*{$M_8$}    \\     \hhline{|>{\arrayrulecolor{c2}}-|>{\arrayrulecolor{white}}-|>{\arrayrulecolor{white}}-|>{\arrayrulecolor{white}}-|}% \hhline hack     \rowcolor{c2}      & \multicolumn{2}{p{11.25cm}|}{The second one is defined  in  the orientations of the delta points.}      & \multirow{2}*{$M_9$} \\     \hline          \rowcolor{c2}     \multirow{4}{4.5em}{Pair-based} & Equ1 &  \multirow{4}*{\parbox[t]{3.8cm}{The first orid measure is the number of empty bins in the rose plot, The first orased measure is the number of empty bins in the rose plot.}}  & \multirow{4}*{$M_{10\_13}$} \\     \hhline{|>{\arrayrulecolor{c2}}-|>{\arrayrulecolor{white}}-|>{\arrayrulecolor{c2}}-|>{\arrayrulecolor{c2}}-|}% \hhline hack               \rowcolor{c2}     & Equ2 & & \\     \hhline{|>{\arrayrulecolor{c2}}-|>{\arrayrulecolor{white}}-|>{\arrayrulecolor{c2}}-|>{\arrayrulecolor{c2}}-|}% \hhline hack               \rowcolor{c2}     & Equ3 & & \\     \hhline{|>{\arrayrulecolor{c2}}-|>{\arrayrulecolor{white}}-|>{\arrayrulecolor{c2}}-|>{\arrayrulecolor{c2}}-|}% \hhline hack               \rowcolor{c2}     &  Equ4 & & \\     \hline          \end{tabular}     \end{table}     \end{document}


title: BibTeX Citation Style

text: My goal is to have citations of the style > [Newspaper Name] or [Newspaper Name, year] Either is fine, and the difference between having square brackets vs parenthesis is negligible. Currently I am using               \bibliographystyle{apalike}      but my key problem is that if the name of the newspaper is longer than one word, i.e. Bangkok Post, the citation will only use the last word as if a last name; in this example the citation would be > [Post, 2013] where I am at least looking for > [Bangkok Post, 2013] or [Bangkok Post] If it makes any difference, I am using the command `\cite{}` for these citations. Thank you in advance for suggestions. Here is the BibTeX entry for the above example from the database I am using for the articles               @article(14848CBDC1D8B7A0,     title={Partner of NSA leaks journalist held for 9 hours},     year={August 19, 2013},     journal={Bangkok Post (Thailand)},     ISSN={0125-0337},     )      Additionally I am using the article document class


title: How to add right-aligned logo to top of standard letter

text: I would like to add a logo to the top right of the document in line with the centered address on the top. I found Put an image header in \documentclass{letter} but this adds a line and separates itself from my centered top address. Here is a MWE:               \documentclass[11pt]{letter}          \usepackage{helvet}          % Margins     \topmargin=-1in      \textheight=8.5in      \oddsidemargin=-10pt      \textwidth=6.5in           \let\raggedleft\raggedright           \begin{document}          \begin{letter}{mr. so and so \\ 123 main st \\ blah blah, IL 60617}          \begin{center}     \large{\bf Cowbell Place} \\      PO Box 5551212 \\ Chicago, IL 60617     \end{center}      \vfill          \signature{some dude}          \opening{mr. so and so,}          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris pretium pharetra orci, at commodo turpis pharetra nec. Ut pretium odio quis metus euismod, ut vestibulum tellus ullamcorper. Donec quis egestas velit. Praesent quis eros enim. Nunc malesuada mi sagittis, ornare nisi id, aliquet dui. Sed tempus egestas libero, ac mollis turpis vulputate ac. In rutrum nec turpis eu mattis. In sagittis aliquet diam, eu ultricies enim posuere nec. Vestibulum in turpis quis nunc condimentum rhoncus vel et nulla. Quisque est eros, mollis vitae ornare sit amet, interdum nec diam. Mauris eget cursus justo. Nam ipsum sem, ornare eget justo eu, commodo rutrum quam.          Sed id velit volutpat, viverra urna ac, placerat dolor. Vestibulum aliquam euismod mollis. Pellentesque commodo leo non augue dignissim hendrerit. Maecenas convallis eleifend augue quis egestas. Curabitur dictum ante vitae mi porta consectetur non et sapien. Pellentesque sit amet sollicitudin arcu. Duis in pharetra dolor. Aliquam tincidunt quam at interdum scelerisque. Fusce bibendum lobortis quam id consectetur.          Etiam placerat tempus diam. Ut a nisl pharetra, accumsan velit ut, pretium tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris volutpat nulla nec tempus vestibulum. Donec quis aliquet sapien. Nullam aliquam magna odio, vel faucibus leo congue ac. Morbi tincidunt lacinia ipsum. Vivamus elit arcu, tempus eget purus dapibus, iaculis iaculis eros. Etiam viverra erat eu libero tincidunt fermentum. Cras at mi semper, venenatis neque vel, porttitor nibh.          \closing{Sincerely,}               \encl{Form A, Form B, blah blah}          %----------------------------------------------------------------------------------------          \end{letter}          \end{document}      I'd like it to go here: ![example of logo placement and alignment](http://i.stack.imgur.com/e6gvo.png)


title: How can I use [Author Year] like new ACM Style?

text: I'm use the TeX ACM Style in my thesis:               \bibliographystyle{acm}     \bibliography{Anderson_EQM}      And cite references using `\cite{}`, but it's different of the new ACM style: **[Number]** instead **[Author Year]** How can I use [Author Year] like ACM Style? Thanks * * * Obs.: In ACM examples, the cite and reference styles are: > TYPICAL REFERENCES IN NEW ACM REFERENCE FORMAT > > A paginated journal article [Abril and Plant 2007], an enumerated journal > article [Cohen et al. 2007], a reference to an entire issue [Cohen 1996], a > monograph (whole book) [Kosiur 2001], a monograph/whole book in a series > (see 2a in spec. document) [Harel 1979], a divisible-book such as an > anthology or... REFERENCES > Rafal Ablamowicz and Bertfried Fauser. 2007. CLIFFORD: a Maple 11 Package > for Clifford Algebra Computations, version 11. (2007). Retrieved February > 28, 2008 from http://math.tntech.edu/rafal/cliff11/index.html > > Patricia S. Abril and Robert Plant. 2007. The patent holder’s dilemma: Buy, > sell, or troll? Commun. ACM 50, 1 (Jan. 2007), 36–44. > DOI:http://dx.doi.org/10.1145/1188913.1188915


title: BibLaTeX in LyX 2.1.0 with MiKTex on Windows 7: ! Package biblatex Error: Incompatible package 'backref'

text: I took the `tex` code from here and imported to `LyX 2.1.0` to use `BibLaTeX` with `MiKTeX` on `Windows 7`. But I'm getting the following error:               ! Package biblatex Error: Incompatible package 'backref'.      The problem persists even after updating the packages. I wonder how to figure out this problem. Any help will be highly appreciated. Thanks in advance. **Edited** The same code works fine in `tex` but after importing to `LyX 2.1.0` it throws the error. Might be in the back-end `LyX 2.1.0` using `backref` package too. I also tried > Tools > Preferences > Output > LaTeX > Bibliography generation > Processor > > Biber but without any success.


title: BibTeX: Citations appear with three names instead of first name + et al

text: I use `natbib` and the bibliography style `aipauth4-1.bst`. When I cite entries that have 3 authors, all three names appear in the text. It is the first time I see something like that, other bst styles do not do it. So it's not a `natbib` option I use. It shortens the list as "name et al." only when the authors are more than 3. I also tried the `\shortcites{key-list}`, but it doesn't work. I believe that I could use a `\defcitealias{key}` but I would prefer something automatic. As I like other features of the `aipauth4-1.bst` style, can anyone please tell me how I have to edit the `.bst` file in order to have normal citations and not three names? Or any other idea?


title: Problem using mmap, mathpazo and siunitx

text: I have these packages in my preamble: `siunitx`, `mmap`, `mathpazo` that somehow seem to mess things up. A minimum working example that shows the error:               \documentclass[a4paper]{article}          \usepackage{mmap}     \usepackage{siunitx}     \usepackage{mathpazo}    % fancy math fonts          \begin{document}          Hello world.          \end{document}      The error I get (using MikTeX 2.9 and LuaLaTeX or pdftex) is               ...     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\siunitx\config\siunitx-binary.cfg     ")     ! Argument of strip@CM@prefix@ has an extra }.     <inserted text>                  par      l.9 \begin{document}      If it helps, I've observed that the order of the packages makes no difference. I get the same error. Googling the issue gave no results. Is there a workaround for this? ### Edit by diabonas: The problem doesn't seem to be related to `siunitx`, apparently `mmap` doesn't support math fonts other than the default Computer Modern: Even a simple               \documentclass{article}     \usepackage{mmap}     \usepackage{mathpazo}    % fancy math fonts     \begin{document}     $Hello$     \end{document}      produces the `\strip@CM@prefix@`-error.


title: Memoir changes page number from bottom to top-right in pages with heading

text: I'm using `memoir` with the `companion` page style and the `madsen` chapter style.               \documentclass[11pt, openany, oneside]{memoir}  %Start chapter in even or odd page     \usepackage[utf8]{inputenc} %Carácteres españoles     \usepackage[spanish]{babel} %Traducción de Título, Seccion, etc.          \setcounter{secnumdepth}{2} %Profundidad de Numeracion de titulos     \setcounter{tocdepth}{2}        %Profundidad de Numeracion de TOC          \pagestyle{companion}     \chapterstyle{madsen}       %Chapter style          \setcounter{chapter}{-1}        %Comenzar a numerar en 0          \usepackage{epsfig}         %??          %\setlength{\parindent}{0pt}    %Eliminar indent inicial     \nonzeroparskip         %Aumentar espacio entre párrafo          \tightlists                 %Less space betwenn item lists      On pages where there is no heading the page number is at the bottom, center position. On pages with heading the page number is at the top, left position. Is this the default behaviour? I don't like it at all. Is there a way to make it consistent through all document? I would prefer bottom-center. Note: I have tried to read the Memoir class documentation but it is a bit hard for me.