title: KOMA-Script scrreprt: How to change chapter appearance and produce a chapter based Mini TOC

text: This post is a 3 part question with which I would need help. The questions are all associated with chapter styling and subsections within the `\documentclass{scrreprt}`. I am sure I could work them out _eventually_ , I come to you for guidance to learn and save a bit of time. # Intro I am a fledgling LaTeXer, I have already used LaTeX to produce simple reports for which I wasn't too fussed about the formatting. Now I am writing a PhD thesis and I would like it to look the way I choose. # Desired Result The result I would like to achieve for my chapters is roughly as shown in the below image. The essential elements I would like to implement in my document are:   * Chapter first page look as below with Chapter Title not having a number   * Possibility of adding a quote before the Chapter Title. (probably not hard)   * Mini ToC for each chapter   * More than the `\subsection` level of sectioning that will be included in the ToC. ![Thesis Desired Output Concept](http://i.stack.imgur.com/TGRku.jpg) # Question 1: Subsections I have been reading around on the site and saw that there were solutions suggested to this matter with the `scrreprt` class such as in the post scrreprt - add levels below \subparagraph; I have read that the `titlesec` package is very customisable, however I have also read it would disable/interfere with some of the `KOMA-script` macros (I don't know exactly which). What would be best to implement in my case to achieve my desired look? # Question 2: Setting up the chapter look and style Based on the answer to question 1, could you help explain how I would set it up please? # Question 3: Mini ToC and quote Could you please advise how you would go about adding a quote between the Chapter No. and Title (I might not for every chapter). I imagine that to make a mini chapter confined ToC would simply require a package, or maybe there is already a functionality in `scrreprt`? # MWE Update 10/02/2014 Sorry again for not having this sooner, here is my `MWE` of the thesis setup. I included the title page I use and the `Dedication` and `Abstract` sections which are fine the way they are for now. I have implemented what `@Crissov` suggested but unfortunately I cannot get the `minitoc` to generate or the chapter format to match the one presented in his MWE which does work until implemented in my case. Due to his code working alone, but not once I implemented it into mine, I included what I realise is a bit of a bulky MWE, but the mistake I am making must be somewhere in there.               \documentclass[     DIV=11,     twoside,     headinclude=false,     titlepage=firstiscover,     abstract=true,     headsepline=true,     footsepline=true,     %headings=big     ]{scrreprt}     \usepackage[left=2cm,right=2cm,top=2cm,bottom=3cm]{geometry} %typearea has that nasty problem of double bottom margin so had to remove it     \usepackage{setspace}     \usepackage{graphicx}     \usepackage{xcolor}     \usepackage{minitoc}           \linespread{1.5}     \flushbottom          \iffalse % don’t use titlesec.sty with KOMA script classes     \usepackage{titlesec}     %% ￼￼￼\titleformat{⟨command⟩}[⟨shape⟩]{⟨format⟩}{⟨label⟩}{⟨sep⟩}{⟨before⟩}[⟨after⟩]     \titleformat{name=\chapter}[display]     {\usekomafont{chapter}}     {\raggedleft\chaptertitlename\ {\textcolor{gray}{\fontsize{60}    {65}\selectfont\thechapter}}}     {20pt}{}[\minitoc]     \fi          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ToC DEPTH LEVEL     \setcounter{secnumdepth}{3} % number subsubsection     \setcounter{tocdepth}{3} % list subsubsection               \addtokomafont{chapterprefix}{\raggedleft}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PREFACE AND BODY STYLING     \def\preface{         \pagenumbering{roman}         \doublespacing     }          \def\body{         \cleardoublepage         \dominitoc         \tableofcontents         \linespread{1.5} %Clear double spacing from preface         \pagenumbering{arabic}         \pagestyle{headings}     }          \def\abstract{         \begin{center}{             \large\bf Abstract}         \end{center}         \normalsize         \linespread{1.5}         }{\cleardoublepage}     \def\endabstract{       \par     }          \newenvironment{acknowledgements}{        \cleardoublepage         \begin{center}{             \large \bf Acknowledgements}         \end{center}         \normalsize         \linespread{1.5}         }{\cleardoublepage}     \def\endacknowledgements{       \par     }          \begin{document}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TITLE PAGE     \titlehead{         \Large \centering University of London \\     }     \subject{Department of Materials \\     }     \title{My PhD Thesis Title}     \author{Edoardo}     \date{         \vskip 1cm         \normalsize Submitted \\         \Large 2014 \\         \vskip 2cm         \normalsize Supervisors: \\         \Large Jim Bob \\         John Doe \\         \vskip 2cm         \normalsize Submitted in part fulfilment of the requirements for the degree of \\         Doctor of Philosophy in Materials     }          \dedication{Dedication here}     \maketitle          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PREFACE     \preface     \addcontentsline{toc}{chapter}{Abstract}     \begin{abstract}          In this study we did a lot of things          \end{abstract}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ToC ToF ToT     \body     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTERS     \chapter{Introduction}          \dictum[Sun Tzu]{If you know the enemy and you know yourself %\\     you need not fear the results of a hundred battles.}          \minitoc % should be put here automatically               \section{Test of depth}          We are delving deeper into the unknown.               \subsection{Publications}          Many publications here.          \subsubsection{Text Mass}     Here goes lots and lots of text, here goes lots and lots of text, here goes lots and lots of text, here goes lots and lots of text, here goes lots and lots of text, here goes lots and lots of text, here goes lots and lots of text, here goes lots and lots of text, here goes lots and lots of text, here goes lots and lots of text          \end{document}      I have however found out that there is a way to put a quote (if desired) just after the chapter using the `{after}` part of the command line for `\titleformat` as follows:               \titleformat{name=\chapter}[display]       {\usekomafont{chapter}}       {\raggedleft\chaptertitlename\ {\textcolor{gray}{\fontsize{60}{65}\selectfont\thechapter}}}       {20pt}{\dictum[Sun Tzu]{If you know the enemy and you know yourself %\\     you need not fear the results of a hundred battles.}}      All I'd need to workout is how to link that specific `\dictum` section for each chapter to a part I can write just after `\chapter{chapter}` I suppose...


title: Render documents as cubic spline outlines

text: The Metafont system is very different from the Postscript or Truetype systems that store the entire font outlines in quadratic and cubic splines, respectively. Metafont font outlines are, I believe, not even splines themselves anymore (I could be mistaken), but in any case those outlines are not calculated as such to render a Metafont font. Metafont produces bitmaps from basic font shapes and a multitude of font parameters. That is why, in contrast to Metafont text, the Postscript and Truetype systems make it easier to be "rendered to spline outlines": For example, WPF allows to typeset a paragraph of text given a supported font not only into a bitmap, but also into the outlines as quadratic splines. To have text "rendered into splines" is helpful when you want to do something further fancy with it, such as building 3D extrusion models from it. I would even argue that with SVG, XAML and a plethora of other spline-based vector graphics systems the spline representation of text has become a pretty standard interchange format besides simple bitmaps. So my question: Does anyone know if it's possible to get TeX to render into splines in such a fashion? Or, put differently, to get an SVG/XAML/AI/Inkscape representation from the text? I understand that it might be necessary for Metafont font outlines to be represented by splines as an approximation, but that would be absolutely fine. Can anyone contribute something clever to this? Has some bored soul done some magic that makes this possible?


title: Several bib.tex entries do not work in combination with biber

text: as the title says I have a problem with some of my entries that do not work out while a happy 15 others work. My tex file:               \documentclass[12pt,a4paper]{report}          \title{}     \author{Me Me}     \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{amssymb}          \usepackage{bm}     \usepackage{mathtools}          \usepackage[backend=biber,citestyle=alphabetic,bibstyle=alphabetic]{biblatex}          \addbibresource{citetest.bib}     \begin{document}     \subsection{Differential geometry on exotic spheres}     An overview over the further development of exotic spheres and open problems is given in \cite{joexocurv}. In 1966, Brieskorn \cite{bries}          \printbibliography      \end{document}      This is the citetest.bib file.               @Article{joexocurv,     author = {Joachim, M. and Wraith, D. J.},     title = {Exotic spheres and curvature},     journaltitle = {Bulletin of the American Mathematical Society},     date = {2008},     volume = {45},     number = {4},     month = {10},     pages = {595-616},     }          @Article{bries,     author = {Brieskorn, E.},     title = {Beispiele zur Differentialtopologie von Singularit\"{a}ten},     journaltitle = {Inventiones Mathematicae},     date = {1966},     volume = {2},     pages = {1-14},     }      This is the result:               INFO - This is Biber 1.5     INFO - Logfile is 'citetest.blg'     INFO - Reading 'citetest.bcf'     WARN - Warning: Found biblatex control file version 2.5, expected version 2.3     INFO - Found 2 citekeys in bib section 0     INFO - Processing section 0     INFO - Looking for bibtex format file 'citetest.bib' for section 0     INFO - Found BibTeX data source 'citetest.bib'      Process exited with error(s) Thanks in advance and kind regards! Zonan


title: labelling the edges on tikz figure

text: Here is my code. I want to label edges between SYMPTOMS ASSOCIATED WITH PH CHANGES ? and HYPERSENSIVE ESOPHAGUS with "+ve" and between SYMPTOMS ASSOCIATED WITH PH CHANGES ? and acid unrelated heart burn as "-ve" . How can I do so?               \documentclass{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     \tikzset{       invisible/.style={opacity=0},       visible on/.style={alt=#1{}{invisible}},       alt/.code args={<#1>#2#3}{%         \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} % \pgfkeysalso doesn't change the path       },     }     \tikzset{     block/.style = {       rectangle,       thick,       text width=6em,       align=center,       rounded corners,       draw=cyan!40!black,       fill=cyan!20,       inner ysep=10pt       }     }     \node [block] at (0,6) (GERD){GERD};     \node [block] at (-3,4) (Esophagitis){Reflux esophagitis};     \node [block] at (0,4) (NERD){NERD};     \node [block] at (3,4) (Barret){Barret's esophagitis};     \node [block] at (0,2) (Ph){Ph testing};     \node [block] at (-3,0) (positive) {Ph +ve NERD};     \node [block] at (3,0) (Negative){Functional heart burn};     \node[] at (3,-2)(Symptoms) {\footnotesize {Symptoms associated with P\textsuperscript{H} changes?}};     \node [block] at (5, -4)(hypersensitive) {hypersensitive esophagus};     \node[block] at (1,-4)(unrelated){Acid unrelated heart burn};     \begin{scope}[cyan!40!black]     \draw[->] (GERD) -- (Esophagitis);     \draw[->] (GERD) -- (NERD);     \draw[->] (GERD) -- (Barret);     \draw[->] (NERD)--(Ph);     \draw[->](Ph)--(positive);     \draw[->](Ph)--(Negative);     \draw[->](Negative)--(Symptoms);     \draw[->](Symptoms)--(unrelated);     \draw[->](Symptoms)--(hypersensitive);     \end{scope}      \end{tikzpicture}     \end{document}


title: Problems with citations using natbib

text: I have used LaTeX for reports in physics, but now I'm in a new field where I need citations. I'm not very savvy with LaTex in the first place, so please describe the possible solutions as simple as possible. Here is a MWE:               \documentclass[danish,a4paper,oneside, twocolumn,article,9pt]{memoir}     \usepackage[danish]{babel}     \usepackage[utf8x]{inputenc}     \usepackage{graphicx}     \usepackage{mathtools}     \usepackage{siunitx}     \usepackage{natbib} **%this is what't new for me.**     \bibliographystyle{agsm} **%this is also new.**      \sisetup{separate-uncertainty=true}     \usepackage[colorlinks=true]{hyperref}     \usepackage{microtype}     \setlrmarginsandblock{1.6cm}{1.6cm}{*}      \setlength{\oddsidemargin}{-1cm}      \pagestyle{plain}          \begin{document}     blah blah \citep{Deary200713}.     \bibliography{/Brugere/Julle/Skrivebord/LaTeX(artikel)/science.bib}     \end{document}      **Additional information:** As you can see, I write in Danish. I got the cited articles information from science direct, exported as a BibTeX format, and put the file in the same folder at my LaTeX document. I get the messages: > citation 'Deary200713' undefined and > there were undefined citations. edit: This was solved when i compiled differently, as suggested in the comments AND changing the path of bibliography to just 'science' since the files are in the same folder.


title: How to remove the space after the slash when year and original year were reported in Bibtex with Mathpazo font

text: When referring to Goffman (1959/1969), I see a space after the slash (-> Goffman (1959/ 1969). Can anyone help me removing this space after the slash? I am using the mathpazo font; therefore I have added an additional line into my MWE. Here my MWE:               \documentclass{scrbook}     \usepackage[utf8]{inputenc}     \usepackage[english,ngerman]{babel}     \usepackage[natbibapa]{apacite}     \usepackage[osf,sc]{mathpazo} %The font I used in my document      \author{XX} \title{YYY}          \begin{document}      \maketitle      \citep{Example1}     \bibliographystyle{apacite}     \bibliography{test}      \end{document}      The bib-file (test.bib) contains the following entry:               @book{Example1,        author = {Goffman, Erving},        title = {{Wir spielen alle Theater: Die Selbstdarstellung im Alltag}},        publisher = {Piper Verlag GmbH},        address = {(Weber-Schäfer, P., Übers.). München},        year = {1969},        originalyear={1959},     }


title: How can I compile this successfully?

text: I have to use `algpseudocode` package to improve my paper look like more professional But I can't compile successfully.               \usepackage{amsmath}     \usepackage{algorithm}     \usepackage[noend]{algpseudocode}          \makeatletter     \def\BState{\State\hskip-\ALG@thistlm}     \makeatother          \begin{document}     \begin{algorithm}     \caption{AIP}\label{euclid}     \begin{algorithmic}[1]     \Procedure{MyProcedure}{}     \State $\textit{locationAgent} \gets \text{position of }\textit{{agent}}$     \State $\textit{locationMD} \gets \text{position of }\textit{{MD}}$     \If {\textit{distance(eNB,$agent_i$)}}>$\delta$     \BState \emph{loop}:     \State $j \gets \textit{patlen}$     \If {$\textit{string}(i) = \textit{path}(j)$}\Return TURE     \State $j \gets j-1$.     \State $i \gets i-1$.     \State \textbf{goto} \emph{loop}.     \State \textbf{close};     \EndIf     \State $i \gets i+\max(\textit{delta}_1(\textit{string}(i)),\textit{delta}_2(j))$.     \State \textbf{goto} loop     \EndProcedure


title: Braces in TiKz-picture

text: the curly braces in the following picture are asymmetric:               \newcommand{\mydistance}{.7cm}     \newcommand{\mydistancee}{0.1cm}     \begin{tikzpicture}[decoration={brace,amplitude=7pt}]     \node(G)                                                {$G$};     \node(H1)   [below=\mydistance of G]                    {$H_1$};     \node(H2)   [below=\mydistance of H1]               {$H_2$};     \node(1)        [below=\mydistance of H2]               {$\left\{1\right\}$};          \node(Gb)   [right=\mydistancee of G]               {};     \node(H1b)  [right=\mydistancee of H1]              {};     \node(1b)   [right=\mydistancee of 1]               {};          \draw(G)--(H1) node[midway, left=0.1cm]{2};     \draw(H1)--(H2) node[midway, left=0.1cm]{4};     \draw(H2)--(1) node[midway, left=0.1cm]{3};          \draw[decorate] (Gb) -- (H1b) node[midway, right=0.3cm] {$C_2$};     \draw[decorate] (H1b) -- (1b) node[midway, right=0.3cm] {$A_4$};          \end{tikzpicture}      The upper curly brace is tilted slightly to the left. How do I get it to be straight? Greetings and thanks for the help, Dominik


title: Variable \hspace value in relation to outside margin (Two-sided Memoir)

text: So I have received a great deal of help on this. I myself did not create the code, but I have an additional need. As you can see from my MWE, I have a long two-sided `memoir` document that has a `background` `rule` indicating the current chapter. My issue is the `\hspace` in this particular code snippet:               \newcommand*\VerBar[2]{%       {\color{#1}\rule{#2}{65pt}}%       \llap{\rotatebox[origin=c]{-90}{%         \hspace*{-2.5cm}\raisebox{-1.5cm}[0pt][0pt]{%           \HUGE\color{white}\bfseries\sffamily\thechapter}%         }%       }%     }      While the chapter number is perfect as a single digit, double digit chapters need more horizontal space to fit the bleed of my book when printed. Therefore, is there a way to establish an `\hspace` value relative to the margin as opposed to generally in the above snippet? In other words, if I change the `\hspace` it adjusts the chapter number in the same direction whether its on the odd or even page. I wish to bring the number towards the two-sided document's gutter - or to the right on odd pages, and to the left on even pages. MWE:               \documentclass[letterpaper,twoside,openright]{memoir}          \usepackage{blindtext}     \usepackage{graphicx}     \usepackage{etoolbox}          \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}     \definecolor{ATblue}{rgb}{0,0.65,1}     \usepackage[contents={},opacity=0.5,scale=1,angle=90,hshift=-2.5cm]{background}          \newcounter{mychap}     \pretocmd{\chapter}{\stepcounter{mychap}}{}{}     \newcommand*\VerBar[2]{%       {\color{#1}\rule{#2}{65pt}}%       \llap{\rotatebox[origin=c]{-90}{%         \hspace*{-2.5cm}\raisebox{-1.5cm}[0pt][0pt]{%           \HUGE\color{white}\bfseries\sffamily\thechapter}%         }%       }%     }     \newif\ifBgUse     \newlength\LabelSize     \setlength\LabelSize{1.25cm}     \AddEverypageHook{%     \ifBgUse%     \ifodd\value{page}      \backgroundsetup{       position={current page.north east},       vshift=32.5pt,       hshift=-\value{mychap}*\LabelSize,       contents={\VerBar{ATblue}{2.5cm}}%       }%     \else     \backgroundsetup{       position={current page.north west},       vshift=-32.5pt,       hshift=-\value{mychap}*\LabelSize,       contents={\VerBar{ATblue}{2.5cm}}%       }%     \fi%     \BgMaterial%     \fi}          \begin{document}     \BgUsetrue               \Blinddocument          \Blinddocument          \Blinddocument          \end{document}


title: How can I make my LaTeX paper look like this?

text: I've seen MANY papers created with LaTeX that have the following format: ![enter image description here](http://i.stack.imgur.com/eO5GI.png) ![enter image description here](http://i.stack.imgur.com/oVhAG.png) In particular, I like the font sizes and the way that section titles are centered and in all caps. Does anyone know if there is a document class for this look? I'm sure there is something for it since I've seen so many papers that look exactly like this... Thanks!


title: Anyone willing to share his/her custom dark theme for TeXstudio?

text: After perusing LaTeX Editors/IDEs, I'm considering switching from TeXmaker (in which I use the preset "dark theme") to its fork, TeXstudio. What I mean by "dark theme" is a dark background with suitable text colours, which, in my experience, is easier on the eyes than a bright background is. Here is an example: ![enter image description here](http://i.stack.imgur.com/CFD78.png) TeXstudio doesn't seem to offer any preset dark theme, though, which means I have to customise all the colours/syntax-highlighting settings from scratch to get a dark theme even remotely usable. This can prove very time-consuming. I'm aware this might sound a bit cheeky but,   1. if you are a long-time TeXstudio user, and   2. you have fine-tuned the editor colours to get a visually pleasant dark theme, please consider posting the relevant lines from your settings (`.texsprofile`) file as an answer below. TeXstudio users who would like to use a dark theme could then build on your settings to fine-tune their own.


title: When to use \LetLtxMacro?

text: Frequently I see users redefine macros using (for example)               \let\oldmacro\macro% Store \macro in \oldmacro     \renewcommand{\macro}{%       % ...redefined \macro       \oldmacro%     }      and other times they use               \usepackage{letltxmacro}% http://ctan.org/pkg/letltxmacro     \LetLtxMacro{\oldmacro}{\macro}% Store \macro in \oldmacro     \renewcommand{\macro}{%        % ...redefined \macro       \oldmacro%     }      Why would one use `\LetLtxMacro` when `\let` works just as well? Or, more specifically, when would one use `\LetLtxMacro` and/or why?


title: \let, \renewcommand, and optional arguments

text: > **Possible Duplicate:**   >  When to use \LetLtxMacro? I have a problem in redefining a command with an optional argument in terms of its old definition. Here is what I did:               \newcommand{\testopt}[2][optional]{opt:#1;  arg:#2.}       \let\oldtestopt\testopt       \renewcommand{\testopt}[2][newoptional]{\oldtestopt[0]{1}}       I expect now `\testopt{argument}` to typeset `opt:0; arg:1.`.   When I typeset the file the compiler freezes as it was in a loop. I tried a similar example without optional argument and it worked as expected. Can anybody explain me where the error is?


title: Renewenvironment with optional parameter

text: I want to renew an environment with an optional parameter. The way I do this is:               \documentclass[10pt,a4paper]{article}     \newenvironment{myEnvironment}[1][]{#1}{}          % save old environment     \let \oldmyEnvironment \myEnvironment     \let \endoldmyEnvironment \endmyEnvironment          % redefine environment     \renewenvironment{myEnvironment}[1][]     { \oldmyEnvironment[#1] \begin{enumerate} }     { \end{enumerate} \endoldmyEnvironment     }          \begin{document}         \begin{myEnvironment}[Caption]             \item text         \end{myEnvironment}     \end{document}      The error I get is the following: `TeX capacity exceeded, sorry...` So what is the right way, to renew an environment with an optional parameter?


title: How to define environments for questions and answers

text: I wish to do a simple question and answer sheet for my students. I'd like to have something like this:               \section{Differential Equations}              \begin{questions}                   \begin{question}                   ... Question here ...              \end{question}                   \begin{answer}                   ... Answer here ...              \end{answer}              \end{questions}      I wish to have the environment QUESTIONS to have counters like enumerate. That is, each `\begin{question} ... \end{question}` should behave just like `\item` in               \begin{question}      \item      \end{question}      The `\begin{question} ... \end{question}` environment should take "normal" LaTeX commands. If possible, I'd wish to have deferred printing to print the answers at the end of the document. I first tried this               \makeatletter     \newtoks\answerscollect     \newcounter{question}     \setcounter{question}{0}     \def\thequestion{{\bfseries{Question \arabic{question}. }}\\}          \def\answer#1{%     \protected@edef\answertmp{%     \the\answerscollect\vspace{.5\baselineskip}\noindent\thequestion#1\par}%     \par\answerscollect=\expandafter{\answertmp}}     \def\printanswers{\the\answerscollect\answerscollect={}}     \def\initbox{\answerscollect={\par\noindent Answers:\par}}          \newcommand{\question}[1]{\stepcounter{question}\par\noindent\thequestion#1}     \makeatother      but it's not behaving the way I'd love the results to be ...


title: Issues aligning equations

text: I thought I was doing everything correctly, but clearly not. I want my equations (all whether I use `\begin{flalign}` or `\begin{equation}`) to be aligned each other (have the same indent), and then when using the `flalign` I want the equations to align at the `&` sign. I have put in `fleqn` in the document class, I have used `\mathindent`, however when I use `flalign` although the equation itself aligns at the `&` marks like it should, the start of the equation does not match the indent of the equation above. Currently I have the following (Excuse the massive preamble I put it in incase something was countering something else or if that is where the issue is):               \documentclass[a4paper,12pt,fleqn,titlepage]{report}     \usepackage{amsmath}     \setlength{\mathindent}{1cm}          \begin{document}          \begin{equation}     \label{whatever}     a = b     \end{equation}          words and stuff          \begin{flalign*}     a & = b&     \\     & = c&     \\     & = d&     \end{flalign*}          \end{document}


title: How to display a visual marker on the last overlay

text: Is it possible to display a visual "marker" on the last overlay of every frame? I want to know when an overlay "ends" before I go to the next frame.


title: Koma script description environment specific font

text: The font for description environment can be changed by using the `\setsansfont` in koma classes. Is there a way to be more specific, like `\addtokomafont{disposition}` is for headings?


title: ConTeXt under cygwin

text: Since I couldn't use the first-setup.bat script behind my authentication based, HTTP only, corporate proxy, I went for cygwin. I installed the version 20120628-1 of a package named `texlive-collection- context` and tried it.               $ context test.tex          mtxrun          | forcing cache reload     resolvers       | resolving | unknown configuration file '/home/xxx/texmf/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/bin/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/bin/share/texmf-site/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/bin/share/texmf/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/bin/texmf-site/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/bin/texmf/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/share/texmf-site/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/share/texmf/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/texmf-site/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/texmf/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/usr/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/usr/share/texmf-site/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/usr/share/texmf/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/usr/texmf-site/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '//usr/usr/texmf/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '/texmf-site/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '/./texmfcnf.lua'     resolvers       | resolving | unknown configuration file '/./share/texmf-site/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '/./share/texmf/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '/./texmf-site/web2c/texmfcnf.lua'     resolvers       | resolving | unknown configuration file '/./texmf/web2c/texmfcnf.lua'     resolvers       | resolving |     resolvers       | resolving | warning: no lua configuration files found     resolvers       | resolving | no texmf paths are defined (using TEXMF)     resolvers       | resolving |     mtxrun          | the resolver databases are not present or outdated     resolvers       | resolving | using suffix based filetype 'lua'     resolvers       | resolving | remembering file 'mtx-context.lua'     resolvers       | resolving | using suffix based filetype 'lua'     resolvers       | resolving | remembering file 'mtx-contexts.lua'     resolvers       | resolving | remembered file 'mtx-context.lua'     resolvers       | resolving | using suffix based filetype 'lua'     resolvers       | resolving | remembering file 'mtx-t-context.lua'     resolvers       | resolving | using suffix based filetype 'lua'     resolvers       | resolving | remembering file 'mtx-t-contexts.lua'     resolvers       | resolving | remembered file 'mtx-t-context.lua'     resolvers       | resolving | using suffix based filetype 'lua'     resolvers       | resolving | remembering file 'context.lua'     mtxrun          | unknown script 'context.lua' or 'mtx-context.lua'      However, `texmfcnf.lua` file is available on the system :               $ ls -l /usr/share/texmf/web2c/texmfcnf.lua     -rw-r--r-- 1 xxx Domain Users 8356  6 août   2012 /usr/share/texmf/web2c/texmfcnf.lua      I don't understand why the script try to access `//usr` instead of `/usr`. In the source of mtxrun, I got stuck in function `identify_configuration_files()` line 12711:               local realname = resolvers.resolve(filename)      which transform `/selfautodir:/share/texmf/web2c/texmfcnf.lua` into `//usr/share/texmf/web2c/texmfcnf.lua` And about the last error, it seems that the requested file exists too:               $ ls -l /usr/share/texmf-dist/scripts/context/lua/mtx-context.lua     -rw-r--r-- 1 xxx Domain Users 65606  2 juil.  2012 /usr/share/texmf-dist/scripts/context/lua/mtx-context.lua      ## edit1 A symbolic link from ~/texmf to /usr/share/texmf solve most issues !               lrwxrwxrwx  1 xxx Domain Users    16 12 avr.  16:28 texmf -> /usr/share/texmf     lrwxrwxrwx  1 xxx Domain Users    22 12 avr.  16:36 texmf-dist -> /usr/share/texmf-dist/     lrwxrwxrwx  1 xxx Domain Users    22 12 avr.  16:36 texmf-site -> /usr/share/texmf-site/      `$ context test.tex` just hangs (time to timeout each network access) and exit with a new, and very long, error log (even after `mtxrun --generate`):               [snip]     resolvers       | resolving | using given filetype 'tex'     resolvers       | expansions | using caches scan of path '/home/a865111/texmf/tex/generic', branch '/home/xxx/texmf/tex/generic'     resolvers       | resolving | remembering file '/home/xxx/.texlive2012/texmf-var/luatex-cache/context/74fde8c492a75a0a124aaeb6119048d0/formats/texmf-dist/tex/context/base/context.lus'     resolvers       | formats | unknown stub specification: /home/xxx/.texlive2012/texmf-var/luatex-cache/context/74fde8c492a75a0a124aaeb6119048d0/formats/texmf-dist/tex/context/base/context.lus     mtx-context     | error, no format found with name: cont-en, aborting     system          | total runtime: 15.453      o_O ## edit2 As in this post : TeXLive 2011 ConTeXt problem `texexec test.tex` seems to work now


title: How to add a few additional lines to title (without using titlepage)?

text: I just want to add my class and professor information to title. I don't want to use a page break. I want title like this and **right aligned** :               Anthony Sample          Intro to Expos          Prof. Selinsky          Summary: Draft      How to achieve this? Any help is appreciated.               \documentclass[12pt]{article}     \begin{document}          \title{}     \author{}     \date{}          \end{document}


title: vspace mysteriously being inserted after nested custom environment

text: I have created my own environment that creates a table using tabu and then puts some vertical space after it, unless my environment is being nested, in which case I want it to skip the vertical space. However, the vertical space seems to be getting inserted even after a nested use of my environment. What am I doing wrong? MWE (though I wish it was more M):               \documentclass{article}          \usepackage{tabu}     \usepackage{environ}     \usepackage{xparse}          \makeatletter          \newcommand{\lxtabu@table}[1]{       \begin{tabu}{X}         #1       \end{tabu}%     }          \newcounter{lxtabu@counter}          \NewDocumentEnvironment {lxtabu} {}     {%       \stepcounter{lxtabu@counter}       \Collect@Body\lxtabu@table     }{%       \typeout{ending lxtabu}%       \addtocounter{lxtabu@counter}{-1}%       % Only output vspace if we're not in a nested lxtabu.       \ifnum\value{lxtabu@counter} = 0 %         % If you comment this out the extra vertical space between lines 2         % and 3 goes away.  (But so does the space between lines 3 and 4,         % which is bad.)         \typeout{inserting space}\vspace{\baselineskip}%       \fi     }          \makeatother          \begin{document}          \begin{lxtabu}       Line 1 \\         \begin{lxtabu}           Line 2 \\         \end{lxtabu}       \\       Line 3, should not have big empty space above it \\     \end{lxtabu}          Line 4, should have \verb|\baselineskip| space above it.          \end{document}      Result: ![Rendered MWE](http://i.stack.imgur.com/4fLGG.png) My desire is that the spacing between lines 2 and 3 should be the same as between lines 1 and 2. I'm not _positive_ that the `\vspace` is being "executed" when it shouldn't be, but if I change it to `\vspace{0pt}` the unwanted space between lines 2 and 3 goes away. The `\typeout` commands I added produce the expected result, with "inserting space" only appearing once, at the end. A few more notes:   * I'm using LuaLaTex from MacTeX 2014, which is presumably built upon TeX Live 2014.   * I'm using `\Collect@Body` because `\begin{tabu}` and `\end{tabu}` give errors when used inside the beginning and end, respectively, of `\NewDocumentEnvironment`. Same problem with just `\tabu` and `\endtabu`.   * Though not shown in the MWE, I need `\NewDocumentEnvironment` for its argument parsing. However, I'd accept a solution that doesn't involve `\NewDocumentEnvironment` if I can still declare an environment that can parse optional arguments after mandatory ones, i.e. `\begin{lxtabu}{Foo}[Bar]`.   * My `lxtabu` environment needs to make sure there is space between its bottom and whatever comes next, which could be text, another `lxtabu` environment, or perhaps something more exotic. I don't want to have to move the `\vspace` outside of my `lxtabu` environment.


title: TikZ externalize and number of pages changing

text: I am trying to create a small animation at the bottom (odd pages only) of my PhD thesis (a walking pacman). Therefore, I have change the fancyfoot so it display a tikzpicture. Every thing works perfectly when compiling normaly (with respect to external librairy) Now when I want to externalize all my plots (and I do want because some of them are really heavy to generate) a problem can appear when the number of pages changes after one compilation. E.g. I use the minitoc package, so at the first compilation they don't exist. Let say my document is 4 pages and I have 2 footers (1 and 3). After a new compilation the minitoc produces let say 5 pages and I need 3 footers (1, 3 and 5). So the makefile generated by tikz/externalize ask for 3 images. But when running this makefile, all the minitoc are ignored and the number of page become 3 again so the compilation of the third image (page 5) fails... Here is a small exemple :               \documentclass[a4paper,11pt]{book}     \usepackage[twoside,bindingoffset=5mm,hmargin=25mm, vmargin=25mm]{geometry}     \usepackage[english]{babel}     \usepackage[english]{minitoc}     \usepackage{fancyhdr}     \usepackage{tikz}     \usepackage{lipsum}          \usetikzlibrary{external}     %%% System call for make the figure     \tikzexternalize[mode=list and make]          \newcommand{\myfigure}{       \tikzsetnextfilename{myfig\thepage}       \begin{tikzpicture}         \draw (0,0) --++ (0.01*\thepage*\linewidth,0);       \end{tikzpicture}     }          %%% new plain style (only page number)     \fancypagestyle{plain}{       \fancyhf{}       \fancyfoot[LO]{\myfigure}     }          %%% fancy style     \pagestyle{fancy}     \fancyhf{}     \fancyfoot[LO]{\myfigure}          \dominitoc     \begin{document}     %     \faketableofcontents     \chapter{My chapter}     \minitoc     small lalalilalou for blablabal     \section{my section}     \subsection{my section}     \lipsum     \section{my section}     \lipsum     \section{my section}     \subsection{my section}     \lipsum     \section{my section}     \subsection{my section}     \lipsum     \section{my section}     \subsection{my section}     \lipsum          \end{document}      So how can I tell tikz externalize to use all the stuff generated by (pdf)latex ?? Thank you for your help !


title: Extra space not wanted at the end of a title page

text: I did a title page using the titlepage environment and used \vfill between the entries (for instance name, title, date, etc.) so that they would be equally spaced and the whole title page would fill all of the page. This implies that there should be an equal blank space at the top of the page (before my first entry) and at the bottom of the page (after my last entry). Nevertheless, it is not what I get. What can I do to fix it? I do not want to alter my geometry settings.               \documentclass[12pt]{article}           \usepackage[letterpaper,textwidth=7in,textheight=9.5in]{geometry}          \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhf{}     \renewcommand{\headrulewidth}{0pt}     \fancyfoot[c]{--~\thepage~--}          \begin{document}     \newgeometry{textwidth=6.5in,textheight=9in}     \begin{titlepage}      \begin{center}     \textbf{Name of the lab} \par     Blabla     \vfill     Title     \vfill     \normalsize\textbf{Name}     \vfill     Report presented to: \par     Someone     \vfill     \today     \end{center}     \end{titlepage}          \end{document}      Blank space before the first entry: ![enter image description here](http://i.stack.imgur.com/rlWNj.png) Blank space after the last entry: ![enter image description here](http://i.stack.imgur.com/5QDhE.png)


title: How to correctly shrink the bullets of itemize

text: How can I shrink the bullets of `itemize` without change its positioning and the centering versus the items? My code below show that behaviour in fact the two item underneath have a bullet shifted down respect the other two above...               \documentclass{book}               \begin{document}          \begin{itemize}     \item One     \item Two     \end{itemize}          \renewcommand\labelitemi{\tiny$\bullet$}          \begin{itemize}     \item One     \item Two     \end{itemize}          \end{document}


title: listings: Set tabsize while using spaces for indentation in the loaded file does not work

text: I am writing a report where I want to include some source code. To do so I use the `listings` package to load the content of the source files directly. Because of coding standards I am using 4 spaces for indentation. Using 4 spaces in a document is a bit much, so I used the option `tabsize=2` in the preamble. After a bit of testing I figured out that this setting only affect the size of 'real' tabs. Is there a way to easily change the the indentation size to 2 spaces while leaving the code untouched? The only solution that I can think of is to make a copy of all source files replacing 4 spaces with either 2 spaces or a single 'real' tab. Here is a (M)WE:               \documentclass[10pt,a4paper,oneside]{article}     \usepackage[latin1]{inputenc}     \usepackage[english]{babel}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage[T1]{fontenc} %use different encoding (copy from pdf is now possible}     \usepackage{fullpage} %small margins     \usepackage{color}     \definecolor{light-gray}{gray}{0.85}     \usepackage{listings} %sourcecode     \lstset{         numbers=left,         breaklines=true,         backgroundcolor=\color{light-gray},         tabsize=2,         basicstyle=\ttfamily,     }          \begin{document}     \section{With 4 leading spaces}     \lstinputlisting[tabsize=2]{code1.mcf}          \section{With `real' tabs}     \lstinputlisting[tabsize=2]{code2.mcf}     \end{document}      Where the content of the file `code1.mcf` is (4 spaces indented):               [         true*.         foo(false).         !(foo(true))*.         bar     ]false      The content of `code2.mcf` uses real 'tabs' in stead of the 4 spaces. The output that is produced by pdflatex is shown below: ![enter image description here](http://i.stack.imgur.com/8Fbra.png)


title: How to use the new pdfTeX feature "\pdfinterwordspaceon"

text: According to the docu there are some new features in texlive 2014. One of them is a command `\pdfinterwordspaceon`. It seems as if it adds spaces between the words, so that I can just copy and paste from a PDF. OK. Can somebody give an example where this command is useful? Years ago I had issues with text copied from PDF without any space between words, but that was long ago. Even under texlive 2013 I can open a PDF and copy the text including the spaces between words.


title: How do I lift the chapter title in Koma-script so it is aligned with chapter prefix?

text: I currently have this:               \documentclass{scrbook}     \usepackage{mwe}     \renewcommand*{\chapterformat}{\mbox{\chapappifchapterprefix{\nobreakspace}\scalebox{3}{\thechapter}\enskip}}          \begin{document}     \chapter{\baselineskip{-1em}This chapter caption has multiple lines and does not fit into a single line}     \lipsum[1]     \end{document}      ![prefix and title aligned with first line only](http://i.stack.imgur.com/Ss0FB.png) But what I want to have the chapter title aligned with baseline of the prefix similar to this: ![What I want to have](http://i.stack.imgur.com/xWjZd.png) I know that to long chapter titles are a pain. But sometimes, they do not fit in a single line and I consider the first result a bit disturbing.


title: Drawing serial connection networking

text: I know how to draw a simple line using TIKZ but I'm interested to draw something similar to the picture below, between two nodes.![enter image description here](http://i.stack.imgur.com/JoZan.png) Later edit: Just to complicate it a little bit, let's suppose there are 3 nodes at positions: (0,0) (5,-1) and (3,-3). All this nodes needs to be connected by a serial connection. PS: I'm very new to Latex.


title: Annotate insertions/deletions in listings

text: I'd like to annotate some lines in my `lstlisting` environment as having been added or deleted. To do this I'd like to put a `(+)` or `(-)` symbol next to the line numbers, like this:               1       function foo {     2(-)      printf 'Hello whirled\n';     3(+)      printf 'Hello world\n';     4       }      Is there a nice way to do this using the `listings` package? So far I've just been doing it using manual spacing hacks. Here's a little starting point:               \documentclass{article}     \usepackage{listings}     \begin{document}     \begin{lstlisting}[numbers=left,escapechar=",numbersep=8mm]     function foo {     "\rlap{\hspace{-7mm}\tt (-)}"  printf 'Hello whirled\n';     "\rlap{\hspace{-7mm}\tt (+)}"  printf 'Hello world\n';     }     \end{lstlisting}     \end{document}     \end{document}


title: An undesired consequence of \vbox{}

text: \begin{enumerate}     \item blah hlah     \vbox{     \item blah blah     }     item blah blah      I did this to prevent page breaks within one item. But now the numbers of all the items after the \vbox{} are indented rather than vertically aligned with the numbers of the foregoing items. I tried again like this:               \begin{enumerate}     \item blah hlah     \item     \vbox{     blah blah     }     item blah blah      Same thing. How can I change that?


title: Printing beamer slides?

text: I want to print handouts of a Beamer presentation. I am using psnup to a create a copy with multiple slides per pages. I notice that there is a lot of empty space on the top of each slide and the actual printed material takes a small proportion of the space allocated to each slide. Is there a way I can fix this?


title: Axis labels for graphs?

text: I'd like to use gnuplot 2d graphs in my LaTeX document. I need to have a LaTeX expression in the title of y-axis, for example `$\langle \psi | \psi \rangle$` rotated vertically and centered at the axis. What would be the best way to do it? Can I use LaTeX expressions in gnuplot? I know one can use Greek symbols in gnuplot.


title: How to make "\" in latex?

text: How to make '\' in latex if '\' has to be used in set theory equations? I have to use it in the following format               $\forall X \in 2^\Omega-{\emptyset} $      Here instead of '-' sign i want to use '\'. Is there a way about it?


title: List of short problem names?

text: I typeset a book with problems and solutions. I need to get a list of short problem names. I expected there will be a way similar to pitcures:               \caption[Figure name for List of Figures]{Caption name}      below is a summary of ways to get the list of problems. # ntheorem This approach seems to be closer than others:               \documentclass{book}          \usepackage{ntheorem}     \theoremlisttype{all}     \newtheorem{Problem}{Problem}[chapter]          \begin{document}          \listtheorems{Problem}          \chapter{foo}          \begin{Problem}[Short foo name]       Foo!     \end{Problem}          \chapter{bar}          \begin{Problem}[Short bar name]       Bar!     \end{Problem}          \end{document}        * The problem here is that the short name is also shown in the problem. Perhaps it is possible to define a new `\newtheoremlisttype`... # thmtools Here's a MWE thmtools (from http://tex.stackexchange.com/a/2500/8992)               \documentclass{book}          \usepackage{amsthm}     \usepackage{thmtools}     \declaretheorem[numberwithin=chapter]{hypothesis}     \declaretheorem[numberwithin=chapter]{theorem}          \begin{document}          \renewcommand{\listtheoremname}{List of Hypotheses}     \listoftheorems[ignoreall,show={hypothesis}]          \chapter{foo}          \begin{hypothesis}[X-Y-relationship]     There is a positive relationship between X and Y.     \end{hypothesis}          \begin{theorem}     Some text.     \end{theorem}          \end{document}        * There's no way to specify a name for a list of problems # Hack Here's MWE of some hack (from http://tex.stackexchange.com/a/6917/8992):               \documentclass{book}          \usepackage{ntheorem}     \newtheorem{hypo}{Hypothesis}[chapter]     \newtheorem{hypolist}{Hypothesis}[chapter]          \newcommand*\hypothesis[1]{%         \stepcounter{hypolist}%         \addtheoremline{hypolist}{#1}%         \begin{hypo}#1\end{hypo}     }          \begin{document}          \chapter*{List of Hypotheses}     \listtheorems{hypolist}          \chapter{foo}          \hypothesis{There is a positive relationship between $X$ and $Y$.}          \chapter{bar}          \hypothesis{There is a positive relationship between $X$ and $Z$.}     \hypothesis{There is a positive relationship between $Z$ and $Y$.}          \end{document}        * there's no way to specify a shorter name for the list of problems


title: Expand tabular/array to page width

text: I recently have had the need to make a math array or a tabular expand to fill the page width. The effect I am trying to achieve is that for one line on the page, half is aligned at the left, and the other at the right. For instance, just now, the following has been giving be problems...               $$     \begin{array}{l r}           \phi_{CJ}^* = \Sum_{SV} \psi_{CSJV} = P(S) P(S|V,C,S,J) & \text{(no summation on S or V which are in evidence.)}         \end{array}     $$      The desired effect is that the first cell is aligned on the left margin, and the second is aligned on the right margin. Instead, the array is centred, with no space between the cells. Many thanks


title: Minimum width for beamer frame number

text: In certain beamer themes, the frame number is displayed as _No./tot_ in the bottom right corner, following the date. Since the frame number is not constant in width, this makes the date “move” from frame to frame, and that bugs me. (With the default font, I see it only when the number of digits changes. But with the _cabin_ font which I am using, I see the effect at every frame change.) I didn't want go into defining my own footline, but I can force the frame number to take a fixed width with a simple redefinition, commented out in this MWE:               \documentclass{beamer}          \usepackage[sfdefault]{cabin} % this makes the effect worse          \usetheme{Boadilla} % for footer          %% Proper formatting with:     %\let\ofn\insertframenumber     %\renewcommand{\insertframenumber}{\protect\makebox[1em]{\ofn}}          \begin{document}     \begin{frame}{test}     \end{frame}          \begin{frame}{test}     \end{frame}          \begin{frame}{test}     \end{frame}          \begin{frame}{test}     \end{frame}          \begin{frame}{test}     \end{frame}          \begin{frame}{test}     \end{frame}          \begin{frame}{test}     \end{frame}          \begin{frame}{test}     \end{frame}          \begin{frame}{test}     \end{frame}          \begin{frame}{test}     \end{frame}          \end{document}      This solves the problem I described, but creates another (minor) one: The page number as displayed in a PDF viewer is screwed up (it reads, e.g., “[1em]1”). To be sure, I can live with that. At this point I am asking more out of curiosity than to solve a practical problem. Is there a better way to achieve the desired effect?


title: Does \\* within footnotes have any effect?

text: One is taught that `\\\\*` is an alternative to the line-breaking `\\\` that tries (often unsuccessfully) to inhibit a page break. Normally `\\\\*` would be used in ordinary ("body") text. (And I hereby acknowledge user `egreg`'s admonition that "`\\\\*` should not be used".) What about footnotes? **Does the use of`\\\\*` instead of `\\\` have any effect within footnotes?** (And what about `\nopagebreak`?) The justification for asking whether `\\\\*` works in footnotes like it does in body text is that under a naive but sensible understanding of LaTeX, someone might think that "one page has exactly one pagebreak, so that's probably the pagebreak in the body text and not anything within some footnote". In the following code               \documentclass{article}     \usepackage{lipsum}               \begin{document}          \lipsum[1-4]\footnote{       no asterisk \\ asterisk \\*       no asterisk \\ asterisk \\*       no asterisk \\ asterisk \\*       no asterisk \\ asterisk \\*       no asterisk \\ asterisk \\*       % the pagebreak happens here       last line}     \lipsum[5]          \end{document}      the use of `\\\\*` seems to have no effect (it's the same as if I had used `\\\` in all five places; note that keeping only the fifth `\\\\*` doesn't prevent that particular page break either) ![pagebreak within footnote](http://i.stack.imgur.com/wxlyI.png) but who knows why. (I am showing the bottom left of the first page of the 2 output pages.)


title: Dealing with many tables on small space

text: I’m trying create a small and handy summary of rules for a pen and paper RPG (a game master screen). So I have to deal with lots of small paragraphs and tables. My goal is to get much information on a few sheets of paper – as clearly arranged as possible. I prefer `scrartcl` as `documentclass` (using `DIV=15` for smaller margins). At the moment most of my tables (code below). ![screenshot](http://i.stack.imgur.com/8Jd2s.png) I’d like to arrange all of the slim tables in two columns (using e.g. `multicol`) on the paper to get as many tables as possible on each sheet (but there are also wider ones). This is a screenshot of a comparable word document ![screenshot](http://i.stack.imgur.com/bmnOv.png) which shows roughly what I’d expect of my `TeX` output. Any ideas how I can arrange the tables in a nice-looking and space-saving manner? I think floating tables are not useful here. And there is a limit of floating tables per page, iirc. Which table environment(s) suit best to my needs and/or is there a "clever" way to handle those tables by creating an own environment? Sorry for being unspecific, but maybe someone else tried to create a "cheat sheet" like this with latex. **tl;dr:** I need lots of tables and `\paragraph`s to fit well-arranged on less paper. Think of a cheat sheet for school, but nice looking and clear. Here you’ve got an cleaned up TeX-file to get an idea of what my document looks like:               \documentclass[a4paper,10pt,DIV=15]{scrartcl}     \usepackage[T1]{fontenc}     \usepackage{booktabs, longtable, multicol}          \title{Game Master Screen }     \begin{document}          \maketitle          \section{Fighting}          \begin{multicols}{2}          \subsection{Melee}     \paragraph{important rule} short explanation, just one to three sentences.     \paragraph{useful rule} short explanation, just one to three sentences.     \paragraph{not useful rule} short explanation, just one to three sentences. Short explanation, just one to three sentences.           \subsection{Special Maneuvers}     \paragraph{disarming} short explanation, just one to three sentences.     \paragraph{another one} is eplained in tab.\,\ref{tab:extab}.     \paragraph{yet another one} is eplained somewhere else in very short sentences.          \end{multicols}          \begin{table}     \caption{Example Table\label{tab:extab}}     \begin{longtable}{lllp{6cm}}     \toprule     Talent & AU & WV & Anmerkungen \\      \midrule     Raufen  &  1W & 2/0 &                keine besonderen Kampfmanöver;                gute AT: echte SP oder W6\,KR kampfunfähig \\           Boxen   &  1W & 2/0  &                KK-14; bei 6 +1W, wieder 6: für 1W20\,KR                kampfunfähig\\           Ringen  &  1W & 2/0 &                AT gelungen: Wurf, 1W6 SP, 1\,KR kampfunfähig                \emph{oder}                Würgegriff (kein Schaden), dann AT-2 und PA+2                (gelungen: 1W SP), anschließend +/-3 usw.;                Kein RS! \\           Hruruzat & 2W & 3/1 &                KK-15; bei Pasch +2W SP  \\           gegen Bewaffnete      & \ldots & \ldots &                nur Ausweichen, AT erst möglich, wenn Gegners AT                misslingt; wenn Gegner Pariert, dann SP durch dessen                Waffe \\     \bottomrule     \end{longtable}      \end{table}          \section{Magic}          More text and tables go here.               \end{document}


title: Reliance on "default" ligatures (!`, two hyphens, two straight apostrophes, etc.)

text: A number of symbols seem to be normally invoked through ligature mechanisms. (Correct me if I'm wrong.) Let's have a look at which ligatures normally exist in encodings/fonts:   * true ligatures (for letters): `ff` (`ﬀ`) `fi` (`ﬁ`) `fl` (`ﬂ`) `ffi` (`ﬃ`) `ffl` (`ﬄ`)   * other uses of the ligature mechanism (for symbols): ```` (`“`) `''` (`”`) `,,` (`„`) `\--` (`–`) `\---` (`—`) `!`` (`¡`) `?`` (`¿`) `<<` (`«`) `>>` (`»`) (These seem to be the important ones for `T1`; for `OT1` subtract `,,` and `<<`/`>>`. There are other, rare ligatures, and I do not wish to research this exhaustively. Feel free to add information. I am not sure whether this is more of an encoding or a font thing.) I do not know about the normativity of such "default" ligatures. To what extent are they normative? Where are such conventions fixed? **On which ligature conventions can one safely rely on (if any)?** For example, is there any reason to always use `\textquotedblleft`, `\textquotedblright`, `\glqq`*, `\textendash`, `\textemdash`, `\textexclamdown`, `\textquestiondown`, `\guillemotleft`, `\guillemotright` instead of the ligature letter sequences in package code? [* not sure where `\glqq` works out of the box]


title: Reference or Cheat Sheet of biblatex

text: Today I switched to `biblatex` and found it amazing. I've already skimmed the manual of `biblatex`. I wonder if any Reference or Cheat Sheet of `biblatex` is available. Thanks in advance for your help.


title: Interactive surface plot with pgfplots

text: I know that it is possible to embed three-dimensional files into PDFs with `\LaTeX` which can then actively be interacted with by the reader (see here for example). I have a surface plot I made with `pgfplots`. Is there any way to have this surface plot interactive, i.e. to make it like so that the reader can rotate the surface as he/she wishes? This will obviously only work with a limited set of readers (probably only recent versions of Adobe Reader), but for the sake of trying I'm willing to work with the consequences of this.


title: How do I add indentation between text?

text: I have to write my homework with LaTeX, and I don't know how to add indentation inside text. I want to write my text, like this :               Input  : Sebuah digraf berbobot dengan bobot sisi tak negatif      Output : Panjang lintasan terpendek dari       See, the upper colon and bottom colon is indented from Input and Output, but I believe their indentation value is different, because the word "Input" has 5 words, and "Output" is 6. I try to make `\indent` code and `\hspace{size}`, but is not fulfill my intention.


title: Change header layout in moderncv

text: I am creating a CV with the moderncv classic style. My header looks so far like this: ![enter image description here](http://i.stack.imgur.com/urpSm.png): I would like to achieve that   1. the name and title are not aligned at the lower, but at the upper end of the box.    2. the name is "overlapping" with the address box, because I have to make the name smaller at the moment to avoid a line break. I guess that I have to change _moderncvstyleclassic.sty_. Unfortunately I'm not that familiar with the syntax so I cannot figure out what to change. Here is my code:               \documentclass[11pt,a4paper,sans]{moderncv}                  \moderncvstyle{classic}                 \moderncvcolor{grey}              \renewcommand*{\namefont}{\fontsize{25}{36}\mdseries\upshape}     \usepackage[ansinew]{inputenc}     \usepackage[scale=0.75]{geometry}          % personal data     \firstname{Dr. Marcus}     \familyname{Surname}     \title{Biochemist}                \address{Street abc}{D-80331 Munich}       \mobile{+49 xxx / xx xx xx xx}                    \email{marcus.surname@dummy.com}                   \photo[90pt][0.4pt]{dummy}                           \begin{document}     \makecvtitle     \end{document}      Many thanks!


title: A nice example with `name prefix ..`

text: `TiKZ pics` include a new key called `name prefix ..`. `TiKZ` documentation defines it with > `/tikz/name prefix ..` > > This key is available only inside the code of a pic. There, it (locally) > changes the name prefix to the value it had outside the pic. This allows you > to access nodes outside the current pic. but it doesn't show any example. In TeX.SX I've just found JLDiaz answer to Nodes and matrix of nodes where I don't understand what `name prefix ..` is used for. So, could you write a more simple example of its use?


title: Chapter title format back to default

text: I messed with various chapter title formats and now that I want to go back to default i.e               Chapter 1          Title      I only get               1.Title      which misses "Chapter 1" appearing before the chapter title. I tried to use titlesec like this:               \titleformat{\chapter}[display]%     {\normalfont\huge\bfseries}{%     \chaptertitlename\ \achapter     }{20pt}{\Huge\bfseries\filcenter}%      It does look similar but not the same. How can I go back to default? I am using scrbook


title: Equivalent of titlesec with sectsty

text: I am using                \usepackage{titlesec}      \usepackage{tipa}      \titleformat{\section}      {\normalfont\huge\bfseries}      {\thesection\hskip 10pt\textpipe\hskip 10pt}       {0pt}      {}      for formatting my sections. The only problem is that it has issues with `hyperref` and I cannot link the sections nicely. See here Table of contents points to wrong page for sections, not for subsection for the original problem and a MWE. I just want the same formatting (a pipe before the section name) with another package (`sectsty` or others). Is that possible? Thanks!


title: Micro-Typography with Luatex

text: Since I wanted to use `Opentype` with Latex, I had to go with `Luatex` and consequently am now missing some features of `Microtype` (spacing, kerning). (I tried converting my openfonts but failed) Here is an example text, and what I don't like about it: Since I use a special font, a pdf is better than a picture: http://de.scribd.com/doc/228281466/Minimal-Example The interword spacing just does not look right, e.g. comparing line 2 and 3; specifically the space between "of visual obtrusion" in line 2 and the spaces between "or at the margins of" in line 3. Any hints? Maybe using `luaotfload` could help? Basically, I am looking for ways to enhance the appearance of my text and I am open to all suggestions and tips. Examplecode:               \documentclass[oneside,paper=A4,DIV=9,smallheadings,12pt,]{scrbook}       \usepackage[T1]{fontenc}     \usepackage{fontspec}         \setmainfont[     Ligatures=TeX,     Renderer=Basic,     Path=/Library/Fonts/,     Extension=.otf,     ]{RotisSerifStd}     \newfontfamily\secfont{RotisSansSerifStd-ExtraBold}     \setkomafont{sectioning}{\secfont}      \usepackage[english]{babel}     \usepackage[activate={true,nocompatibility},final,tracking=true]{microtype}     \usepackage{setspace}     \setstretch{1.18}     \begin{document}     \chapter{Micro-typography with Tex}                  Micro-typography is the art of enhancing the appearance and readability of a             document while exhibiting a minimum degree of visual obtrusion. It is concerned             with what happens between or at the margins of characters, words or lines. Whereas             the macro-typographical aspects of a document (i.e., its layout) are clearly visible             even to the untrained eye, micro-typographical reﬁnements should ideally not even             be recognisable. That is, you may think that a document looks beautiful, but you             might not be able to tell exactly why: good micro-typographic practice tries to             reduce all potential irritations that might disturb a reader.                  Some essential micro-typographical aspects are already taken care of by TEX out             of the box – and in an outstanding manner – namely, hyphenation and justification,             as well as kerning and ligatures. Other aspects are in the user’s scope of responsi-             bilities, e.g., to specify the right amounts of spacing around punctuation characters,             numbers, or quotation marks. On top of this, a number of long-standing micro-             typographic techniques have been introduced to the TEX world relatively recently             with pdfTEX, and have since also propagated to LuaTEX and   XTEX. These features             make them the tool of choice not only for the creation of electronic documents             but also of works of outstanding time-honoured typography: most prominently,             character protrusion (also known as margin kerning) and font expansion. Quoting  ́             Hàn Thê Thành, the author of pdfTEX, who writes in his thesis:      \end{document}      For good reference the example text can be compared to the microtype documentation. **Edit** : Possible improvements:   * `\usepackage[activate={true,nocompatibility},final,tracking=alltext,letterspace=-10]{microtype}` Though this shifts the heading weirdly and turns off protrusion: ![Microtype with tracking and letterspace](http://i.stack.imgur.com/befQW.png)   * `\usepackage[activate={true,nocompatibility},final,stretch=80]{microtype}` ![Microtype with stretch=80](http://i.stack.imgur.com/8949N.png) Thoughts and opinions very welcome! Here is a good example but with different font, line spacing and macro- typography: ![enter image description here](http://i.stack.imgur.com/rt8R6.png)


title: Reduce vertical space at the bottom of a 'ruled' 'newfloat'

text: I have defined a custom float using the `newfloat` command from the `float` package. My custom float uses the ruled style, defined in the same package. This is a minimal example of what I'm doing:               \documentclass{article}          \usepackage{float}          \floatstyle{ruled}     \newfloat{Foo}{thp}{lop}     \floatname{Foo}{Foobar}          \begin{document}          \begin{Foo}     \begin{verbatim}     public void foo(int bar) {       foo();       bar();     }     \end{verbatim}     \caption{An example of a foobar program}     \end{Foo}          \end{document}      What I don't like, is the vertical space that lies between the last line of the contents and the bottom rule of the float. Is there a way to reduce that space?


title: Issues with \defbibentryset

text: Using `biblatex` for my bibliography. When defining a `\defbibentryset` and using the `\citeauthor` command, it only cites the authors of the first key in the set, instead of all. Moreover, it ignores my `\AtEveryBibitem` directives ( _i.e.,_ it doesn't suppress fields such as ISSN or DOI). Any ideas on how to address those? Here is my MWE:               \begin{filecontents*}{\jobname.bib}     @ARTICLE{Iftimie.etal-largetimebehavior2003,       author = {Iftimie, Drago\c{s} and Lopes Filho, Milton C. and Nussenzveig Lopes,         Helena J.},       title = {On the large-time behavior of two-dimensional vortex dynamics},       journal = {Physica D -- Nonlinear Phenomena},       year = {2003},       volume = {179},       doi = {10.1016/S0167-2789(03)00028-9},       pages = {153--160}     }          @ARTICLE{Iftimie-LargeTimeBehavior2003,       author = {Iftimie, Drago\c{s} and Lopes Filho, Milton C. and Nussenzveig Lopes,         Helena J.},       title = {Large Time Behavior for Vortex Evolution in the Half-Plane},       journal = {Communications in Mathematical Physics},       year = {2003},       volume = {237},       pages = {441--469},       number = {3},       doi = {10.1007/s00220-003-0843-3},       issn = {0010-3616}     }          @ARTICLE{Iftimie.Kelliher-RemarksVanishingObstacle2009,       author = {Iftimie, Drago\c{s} and Kelliher, James~P.},       title = {Remarks on the Vanishing Obstacle Limit for a 3D Viscous Incompressible         Fluid},       journal = {Proceedings of the American Mathematical Society},       year = {2009},       volume = {137},       pages = {685--694},       number = {2}     }          \end{filecontents*}          \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{csquotes}     \usepackage[style=numeric-comp,%                 sorting=nyt,sortcase=false,refsegment=section,%                 citereset=none,subentry,%                 backend=biber]{biblatex}               % Biblatex     \addbibresource{\jobname.bib}     \defbibentryset{Iftimie}{Iftimie-LargeTimeBehavior2003,Iftimie.etal-largetimebehavior2003,Iftimie.Kelliher-RemarksVanishingObstacle2009}          \AtEveryBibitem{\clearfield{url}}     \AtEveryBibitem{\clearfield{doi}}     \AtEveryBibitem{\clearfield{issn}}               \begin{document}          \section{Intro}               \par \citeauthor{Iftimie} wrote some papers \autocite{Iftimie-LargeTimeBehavior2003,Iftimie.etal-largetimebehavior2003}. Then another \autocite{Iftimie.Kelliher-RemarksVanishingObstacle2009}.          \printbibliography[heading=subbibliography,title={References},segment=1]          \end{document}      ![enter image description here](http://i.stack.imgur.com/tWEAW.png)


title: Prevent Float from being placed within a paragraph

text: is it possible to prevent a float from being placed within a paragraph? I know there has been another post (How to protect text from being split by a float?) with a similar question, but I would like to allow the float to be placed after the paragraph as well. This minimal working example (shortened) illustrates what I mean:               \documentclass[a4paper,10pt]{scrreprt}     \usepackage[utf8]{inputenc}          \begin{document}          \begin{figure}[htbp]        \def\a{ I am a figure}        \a\\\a\\\a\\\a\\\a\\\a\\\a\\\a\\\a\\\a\\\a     \end{figure}          \begin{figure}[htbp]         \def\b{I am another figure}         \b\\\b\\\b\\\b\\\b\\\b\\\b\\\b\\\b\\\b\\\b     \end{figure}          \begin{figure}[htbp]         \def\c{I am yet another figure}         \c\\\c\\\c\\\c\\\c\\\c\\\c\\\c\\\c\\\c\\\c     \end{figure}          \def\d{I am text}     \d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\     \d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\     \d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\     \d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\     \d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\     \d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\     \d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\     \d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\     \d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\     \d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d\\\d     \end{document}      Using the solution from the post I linked above, the three figures would be forced to be placed before the text, but I would like to allow the following solution as well:               FIGURE1     FIGURE2     TEXT     FIGURE3      I thought maybe it is possible to place the text in some kind of a boxed environment (page breaks inside the paragraph must be possible).


title: Formatting of an array of equations (left alignment)

text: I have the following text in a `matrix` environment. Is there a better way to format it, say with each column being left ordered, and how can this be done?               $$     \begin{matrix}     \Gamma^{i}_{\mbox{ }0i}=\frac{\dot{a}}{a} \mbox{ ,i from 1..3 }       & \Gamma^{0}_{\mbox{ }11}=\frac{a\dot{a}}{1-kr^{2}}       & \Gamma^{0}_{\mbox{ }22}=\dot{a}ar^{2}       & \Gamma^{0}_{\mbox{ }33}=\dot{a}ar^{2}\sin^{2}{(\theta)}     \\     \Gamma^{1}_{\mbox{ }11}=+\frac{kr}{1-kr^{2}}       & \Gamma^{1}_{\mbox{ }22}=-r(1-kr^{2})       & \Gamma^{1}_{\mbox{ }33}=-(1-kr^{2})r\sin^{2}{(\theta)}       & \Gamma^{2}_{\mbox{ }12}=\frac{1}{r}     \\     \Gamma^{3}_{\mbox{ }23}=\cot{(\theta)}       & \Gamma^{3}_{\mbox{ }13}=\frac{1}{r}       & \Gamma^{2}_{\mbox{ }33}=-\sin{(\theta)}\cos{(\theta)}     \end{matrix}     $$      ![enter image description here](http://i.stack.imgur.com/83qQD.png)


title: biblatex biber no author abbreviation

text: I am using biblatex + biber and some of my citations only have the first author listed, followed by et al. I would like to make all my references include all names no matter what. My current settings are               \usepackage[     abbreviate=false,     backend=biber,     backref=true,     refsection=chapter,     sortcites=true,     sorting=nyt,     sortlocale=en_US,     style=numeric-verb     ]{biblatex}      But I am still getting references like `Meijaard et al.` in my bibliography. How can I force the names to be presented without abbreviation? `abbreviate=false` apparently does not do it. The citation entry for this specific example is:               @article{Meijaard2007,     author = {Meijaard, Jaap P. and Papadopoulos, Jeremy M. and Ruina, Andy and Schwab, Arend L.},     journal = {Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences},     month = aug,     number = {2084},     pages = {1955--1982},     title = {{Linearized dynamics equations for the balance and steer of a bicycle:     a benchmark and review}},     volume = {463},     year = {2007}     }      Any ideas?


title: Multicolum Table

text: I am new to latex and i would like to draw this table shown in the picture. Any help is highly![enter image description here](http://i.stack.imgur.com/kwWrP.jpg) appreciated               \begin{landscape}     \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}      \hline       Characteristics & \multicolumn{3}{|c|}{Where?} & \multicolumn{2}{|c|}{Who?} & Physical          Immersion? & Mental Immersion? & Computer Required? & Interactive?\\     \hline     Media & Real & Real & Virtual & Me & We & & & & \\     & World & World & World & & & & & & \\     & Here & There & & & & & & & \\     VR & Real & Real & Virtual & Me & We & & & & \\     \end{tabular}     \end{landscape}


title: Reducing left margin inside a TikZ node

text: I would like to reduce the left margin inside this node:               \documentclass[a4paper,12pt,twoside]{article}     \usepackage{tikz}     \usepackage{enumerate}     \usetikzlibrary{shapes,arrows}     \begin{document}     \tikzstyle{block} = [rectangle, draw, text width=11em, text centered, minimum height=4em]     \begin{tikzpicture}[node distance=6cm, auto, >=stealth]     \node[block] (Example)      {\textbf{Example}     \begin{itemize}     \item First item: string     \item Second item: float     \item Third item: float     \end{itemize}};     \end{tikzpicture}     \end{document}      I'll appreciate a lot any help or advice!


How do I make \footcite work in a tabular?               \documentclass{memoir}     \usepackage{threeparttable} % nice tables     \usepackage{biblatex}     \begin{document}     \begin{threeparttable}       \begin{tabular}{@{}m{8cm}lm{6cm}@{}} \toprule       a\footcite{blah} & b & c \\       \bottomrule       \end{tabular}     \end{threeparttable}     \end{document}


title: Custom chapter title protruding in left margin

text: Based on this answer, I tried my hand at defining my own chapter title formatting. The idea is to align the chapter title to the right (a chapter always opening on an odd page) and underline it with a rule that protrudes into the right margin. When the chapter title is short, it works nicely. When it stretches far to the left however, the chapter number sometimes gets shoved into the left margin, where the binding is supposed to be, so that's a big no- no. I'm not very good at this, so maybe it's a very silly mistake. Thanks in advance for any advice! My MWE:               \documentclass{book}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{xcolor}     \usepackage{changepage}     \usepackage[calcwidth]{titlesec}     \usepackage{lipsum}          % Redefine chapter command     \newlength\mylen     \setlength\mylen{1cm}     \titleformat{\chapter}[hang]{\Huge\bfseries}{\textcolor{gray}{\thechapter}}{2pc}{\raggedleft}[\vspace{-20pt}%        {%           \begin{adjustwidth}{}{-\mylen}%             \makebox[\linewidth][r]{\rule{\dimexpr\titlewidth+\mylen\relax}{1pt}}%           \end{adjustwidth}%        }%       ]     \titlespacing{\chapter}{0pt}{0pt}{2cm}          \begin{document}          \chapter{A tremendously-long chapter title illustrating the bug I'm experiencing}          \lipsum[1]          \end{document}      ![enter image description here](http://i.stack.imgur.com/zMXzS.png)


title: What is the best _hack_ you have seen or written in (La)TeX?

text: > **Possible Duplicate:**   >  Cunning (La)TeX tricks Here, by _hack_ I mean a short, elegant, or even counterintuitive definition/macro etc. that solves a task, often in a surprising way. Background Many languages/systems collect those lists of hacks, as there are a fun way to learn some of the intricacies of that language/system. Very often, such lists reveal nuggets and shortcomings of said language/system. Yes, even the shortcomings, as something that qualifies as a _hack_ in one language is a boring one-liner in another language, because the task at hand is built in.


title: How do you use style sheets in TeXworks?

text: How do you choose which .sty file a document uses in TeXworks?


title: Creating an option clash between custom class options

text: In my custom LaTeX class, I've created some different options, such as different font sizes, `11pt`, `12pt` and `13pt`, and paper sizes, such as `a4paper` and `letterpaper`. However, only one option from each group should be given, like the following.               \documentclass[12pt, letterpaper]{class} % or     \documentclass[13pt, a4paper]{class} % but never     \documentclass[12pt, 13pt]{class}      The last one shouldn't be used since it specifies the font size twice, which would create an undesirable effect. What I would want instead is that if two or more commands which _clash_ are provided, such as in `\documentclass[12pt, 13pt]{class}`, my class delivers an error message using `\ClassError`. How would this be done? Just in case I would need to use conditional 'if' statements, please try to give code using the style of statement used for the `etoolbox` package, it's what I use and find easiest.


title: Pandoc: Markdown to PDF: select code without select number into code block

text: i want to generate the code block and i try example and it work. but when i try to select the code from the pdf, the number also get selected. how to generate code block that when select the code w/o select the number? example : Given the file testing.md as follows:                 public void update() {         updatedAt();         super.update();       }      get template from JLDiaz               % Contents of listings-setup.tex     \usepackage{xcolor}          \lstset{         basicstyle=\ttfamily,         numbers=left,         numberstyle=\footnotesize,         stepnumber=2,         numbersep=5pt,         backgroundcolor=\color{black!10},         showspaces=false,         showstringspaces=false,         showtabs=false,         tabsize=2,         captionpos=b,         breaklines=true,         breakatwhitespace=true,         breakautoindent=true,         linewidth=\textwidth     }      Using those settings, i.e. running pandoc with options:                pandoc test.md --listings -H listings-setup.tex -o output.pdf      you will get               1 public void update() {     2     updatedAt();     3     super.update();     4 }      i like the line number. but, i think user or like me find it annoying when copying the code with the line number especially with long code block. how to generate code block with line number but when selecting the code w/o selecting the line number ?


title: How do I create a negated arrow on \xRightarrow?

text: Similar to this question, but with the `\xRightarrow` instead. I tried changing the 3rd version to use `\Rightarrow` like so:               \documentclass{standalone}          \usepackage{amsmath}     \usepackage{amssymb} % for \diagup     \usepackage{mathtools}     \usepackage{tikz} % for tikz solution          \makeatletter     \def\slashedarrowfill@#1#2#3#4#5{%       $\m@th\thickmuskip0mu\medmuskip\thickmuskip\thinmuskip\thickmuskip        \relax#5#1\mkern-7mu%        \cleaders\hbox{$#5\mkern-2mu#2\mkern-2mu$}\hfill        \mathclap{#3}\mathclap{#2}%        \cleaders\hbox{$#5\mkern-2mu#2\mkern-2mu$}\hfill        \mkern-7mu#4$%     }          \def\rightslashedarrowfillc@{%       \slashedarrowfill@\relbar\relbar{\raisebox{.12em}{\tiny/}}\Rightarrow}     \newcommand\xslashedrightarrowc[2][]{%       \ext@arrow 0055{\rightslashedarrowfillc@}{#1}{#2}}     \makeatother          \begin{document}         A \xslashedrightarrowc{abcdefg} C\\[12pt]     \end{document}      But I end up with this instead: ![slashed arrows again](http://i.imgur.com/WNYMcmF.png) I'm assuming something's wrong with the def of `\slashedarrowfill` but I don't know enough to fix it. Could someone point me in the right direction please?


title: Error while using combine package

text: I am using LaTeX `combine` package for combining articles in Mathematics having document class `amsart`, but very time I had a problem with               \newtheorem{theorem}{\bf Theorem}[section]      Can anyone help me to get out of this. This is using for Main file:               \documentclass[12pt,colclass=amsart,reqno]{combine}          \usepackage{amsmath,a4,amsfonts,amssymb,enumerate,fleqn,breqn,times}          \usepackage{hyperref}          \usepackage{keyval}          \title{Proceedings of the ...}          \author{ Editor\thanks{Support ...}}          \begin{document}          \pagestyle{combine} % use the combine page style     \maketitle % main title          \tableofcontents % main ToC          \clearpage          \begin{papers}           \begingroup\import{file1}\endgroup % first article, may have own ToC,          \end{papers}          \end{document}       For file1 I am using:               \documentclass[a4paper,11pt,reqno]{amsart}          \usepackage{amsmath,a4,amsfonts,amssymb,amsthm,enumerate,fleqn,breqn}          \usepackage{enumitem}          \setdescription{leftmargin=0cm,labelindent=0cm}          \mathindent4em          \renewcommand{\theequation}{\arabic{section}.\arabic{equation}}          \mathsurround1pt          \def\disp{\displaystyle}          \def\CC{\mathbb{C}}          \def\ZZ{\mathbb{Z}}          \pretolerance=5000          \hyphenpenalty=5000          \def\cc#1{\{#1\}}          \def\pp#1{\|#1\|}          \def\ra{\rangle}          \def\la{\langle}          \def\nh{\mathcal{H}}          \def\A{\mathcal{A}}          \theoremstyle{plain}          \newtheorem{theorem}{\bf Theorem}[section]          \newtheorem{lemma}[theorem]{\bf Lemma}          \theoremstyle{remark}          \newtheorem{definition}[theorem]{\bf Definition}          \newtheorem{observations}[theorem]{\bf Observations}          \newtheorem*{notationn}{\bf Notation}          \newtheorem{example}[theorem]{\bf Example}          \newtheorem{remark}[theorem]{\bf Remark}          \newtheorem{proposition}[theorem]{\bf Proposition}          \newtheorem{corollary}[theorem]{\bf Corollary}          \newtheorem*{noten}{\bf Note}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               \title{FILE 1}          \author{C}          \address{acs}           \email{acs@gmail.com}          \def\Ker{\mathop{\rm Ker}}          \subjclass[2010]{ xxC40}           \keywords{asc}           \thispagestyle{empty}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{document}          \maketitle     \begin{abstract}          abs          \end{abstract}          \section{Introduction}          \end{document}      The error shows:               ! Undefined control sequence.     l.7 \setdescription                        {leftmargin=0cm,labelindent=0cm}     ?      ! Missing \endcsname inserted.     <to be read again>                         \relax      l.39 \newtheorem{theorem}{\bf Theorem}[section]          ?


title: How to fix the position of an item?

text: How to fix the position of an item of itemize using Beamer, please?               \begin{itemize}     \item<1-> A.     \item<2-> B.     \end{itemize}      This code makes the first item gets heigher when I go to the second frame. How to make the first item's position fixed to one position from the begin ? Thanks a lot!


title: Ignore space in defining environment

text: Let assume that I want to redefine the `quotation` environment putting the text in italic and inserting it between quotation marks. I have some problems in adjusting the space after the opening of quotation marks and before the closure of them. With this code I obtain:               \documentclass{article}          \newenvironment{itquote}       {\begin{quotation}\itshape``}       {''\end{quotation}}          \begin{document}               \begin{itquote}     Lorem ipsum dolor sit amet, consectetuer adipiscing elit.     Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.      Curabitur dictum gravida mauris.     Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.     \end{itquote}          \end{document}      ![enter image description here](http://i.stack.imgur.com/bmjXc.jpg) And to fix the spacing I clearly have to put two `%` in this way:               \begin{itquote}%     Lorem ipsum dolor sit amet, consectetuer adipiscing elit.     Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.      Curabitur dictum gravida mauris.     Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.%     \end{itquote}      ![enter image description here](http://i.stack.imgur.com/Uk7wG.jpg) But I want to fix it inside the definition of the environment in the preamble without the two `%` symbols in the document, how can I do this? I try also with `\unskip` but it works only for the the end:               \newenvironment{itquote}       {\begin{quotation}\itshape``}       {\unskip''\end{quotation}}


title: Fact Sheet's in Latex?

text: Are there fact sheets in latex something possible or not commonly done? I can't find any fact sheet templates on google or github. Are there any templates out there for a fact sheet in latex? Here are a few examples of fact sheets latex fact sheet random company fact sheet random company marketing


title: Chapter Style- Report Class

text: ![enter image description here](http://i.stack.imgur.com/fokDz.png) I am looking for different types of chapter style formats for report class document. i like memoir class Veelo chapter style. how to do exactly the same format for report class document class               \documentclass{memoir}      \usepackage{graphicx}      \stockaiv      \settrimmedsize{242mm}{165mm}{}      \settrims{20mm}{20mm}      \settypeblocksize{}{33pc}{1.618}      \setlrmargins{}{}{1.5}      \setulmarginsandblock{3pc}{3pc}{*}      \setcolsepandrule{1pc}{0pt}      \chapterstyle{veelo}      \checkandfixthelayout      \trimFrame      \begin{document}      \chapter{My first chapter}      \end{document}


title: Adding Web Pages to JabRef

text: I want to add webpage article (from New York Times) in my research paper. How can I add it to my bibigraphie . I can add using JabRef (research Article, Book, Booklet, .. ). but how can I add -automatically- webpage. Should I use this code, or is there any other faster way to do that ?               @WEB{NYTimes,       key = {NY-Immigration},       link = {http://www.nytimes.com/2014/02/07/us/politics/boehner-doubts-immigration-overhaul-will-pass-this-year.html?_r=0},       owner = {user3378649},       timestamp = {2014.02.06},       title = {Boehner Doubts Immigration Bill Will Pass in 2014},       year = {2014}     }


title: How to lock the back reference at the top left corner of the bibliography entry?

text: Anybody knows how to lock the back reference at the top left corner of the bibliography entry by employing BibTeX? The result should be like this: ![enter image description here](http://i.stack.imgur.com/rC0Pe.png) It works to me when using `\bibitem` (yes, it goes there automatically) but not through a `.bib` file. Here it is my code:               \documentclass[a4paper,12pt]{book}                                                               \usepackage[spanish]{babel}                                                                              \usepackage[T1]{fontenc}                                                                                \usepackage{latexsym}                                                                                \usepackage{lettrine}                                                                                \usepackage[latin1]{inputenc}                                                                            \usepackage{setspace}                                                                                \spanishdecimal{.}                                                                                \usepackage[usenames,dvipsnames]{xcolor}     \usepackage{eso-pic}     \usepackage{everyshi}     \usepackage{pdfpages}          \usepackage[round]{natbib}     \bibliographystyle{plainnat}         \usepackage[backref=page,citecolor=MidnightBlue,linkcolor=MidnightBlue]{hyperref}     \hypersetup{colorlinks=true,plainpages=false}     \usepackage{etoolbox}               %backref edit. this part is thanks to [lockstep](http://tex.stackexchange.com/questions/36307/formatting-back-references-in-bibliography)          \makeatletter          \patchcmd{\BR@backref}{\newblock}{\newblock p.~}{}{}     \patchcmd{\BR@backref}{\par}{\par}{}{}               %all-in-one hyperlink ([D.Roepo](http://tex.stackexchange.com/questions/115039/single-link-in-author-year-citation-style-using-natbib-and-hyperref))          \pretocmd{\NAT@citex}{%       \let\NAT@hyper@\NAT@hyper@citex       \def\NAT@postnote{#2}%       \setcounter{NAT@total@cites}{0}%       \setcounter{NAT@count@cites}{0}%       \forcsvlist{\stepcounter{NAT@total@cites}\@gobble}{#3}}{}{}     \newcounter{NAT@total@cites}     \newcounter{NAT@count@cites}     \def\NAT@postnote{}          % include postnote and \citet closing bracket in hyperlink     \def\NAT@hyper@citex#1{%       \stepcounter{NAT@count@cites}%       \hyper@natlinkstart{\@citeb\@extra@b@citeb}#1%       \ifnumequal{\value{NAT@count@cites}}{\value{NAT@total@cites}}         {\ifNAT@swa\else\if*\NAT@postnote*\else%          \NAT@cmt\NAT@postnote\global\def\NAT@postnote{}\fi\fi}{}%       \ifNAT@swa\else\if\relax\NAT@date\relax       \else\NAT@@close\global\let\NAT@nm\@empty\fi\fi% avoid compact citations       \hyper@natlinkend}     \renewcommand\hyper@natlinkbreak[2]{#1}          % avoid extraneous postnotes, closing brackets     \patchcmd{\NAT@citex}       {\ifNAT@swa\else\if*#2*\else\NAT@cmt#2\fi        \if\relax\NAT@date\relax\else\NAT@@close\fi\fi}{}{}{}     \patchcmd{\NAT@citex}       {\if\relax\NAT@date\relax\NAT@def@citea\else\NAT@def@citea@close\fi}       {\if\relax\NAT@date\relax\NAT@def@citea\else\NAT@def@citea@space\fi}{}{}          \makeatother          \usepackage{float}                                                                                \usepackage{epstopdf}                                                                                \usepackage{amsmath,amsbsy,amsfonts,amssymb,amscd,fancyhdr}                                                      \DeclareGraphicsExtensions{.jpg,.pdf,.png,.gif,.eps}                                                             \usepackage{rotating}                                                                                \usepackage{longtable}                                                                                \usepackage{chngpage}                                                                                \usepackage{anysize}      \usepackage{geometry}     \usepackage{aecompl}          \newcommand\BackgroundPic{     \put(0,0){     \parbox[b][\paperheight]{\paperwidth}{     \vfill     \centering          \vfill     }}}               \begin{document}               As it is said in \citet{trigo00} and \citet{venus}...             \mainmatter                                                                                {\refname}                                                       \addcontentsline{toc}{part}{Bibliografía}                    %%%%%%%% B1 (bibliography according to bibitems) %%%%%%%%%%%%%%%          \begin{thebibliography}{999}\bibliographystyle{plainnat}\label{biblio}          \bibitem[Svedhem et al.(2007)]{venus}          Svedhem, Hakan; Titov, Dmitry V.; Taylor, Fredric V.; Witasse, Oliver (2007). ``Venus     as a more Earth-like planet''. Nature 450 (7170): 629-632.          \bibitem[Trigo y DaCamara(2000)]{trigo00}          R. M. Trigo and C. C. DaCamara, ``Circulation weather types and their influence on    the precipitation regime in Portugal'', {\em International Journal of Climatology}, vol. 20, pp. 1559-1581, 2000.          \end{thebibliography}       %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               %%%%%%% B2 (Bibliography according to Bibtex) %%%%%%%%%%%          %     \bibliography{my_bib_file}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               \end{document}        my_bib_file.bib:               @article          {venus,     title={Venus as a more Earth-like planet.},     author={Svedhem, H. and Titov, D.V. and Taylor, F.W. and Witasse, O.},     journal={Nature},     volume={450},     number={7170},     pages={629-32},     year={2007},     }                    @article {trigo00,     author = {Trigo, Ricardo M. and DaCamara, Carlos C.},     title = {Circulation weather types and their influence on the precipitation regime in  Portugal},     journal = {International Journal of Climatology},     volume = {20},     number = {13},     publisher = {John Wiley & Sons, Ltd.},     pages = {1559--1581},     keywords = {atmospheric circulation variability, droughts, Portugal, precipitation,    weather typing},     year = {2000},     }      If B1 is commented and B2 enabled, the backref goes to the end of the bibliography entry, like this (I need the format at the top but with BibTeX): ![enter image description here](http://i.stack.imgur.com/T2mZI.png)


title: tikz draw tree with extra column

text: ![enter image description here](http://i.stack.imgur.com/pNas4.jpg) 01, 001 and 0001 are not actually "childs". How do I add K=1,2,3 and K=4 to the left hand column? And I tried really hard to adjust the distance. But this is the best I can do. Thanks.               \documentclass[landscape]{article}          \usepackage{tikz}     \usetikzlibrary{trees}          \begin{document}          \pagestyle{empty}          \begin{tikzpicture}          \node{1}         child{             node{10}             child{                 node{100}                 child{                     node{1000}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }                 child{                     node{1001}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }             }             child{                 node{101}                 child{                     node{1010}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }                 child{                     node{1011}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }             }         }         child{             node{11}             child{                 node{110}                 child{                     node{1100}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }                 child{                     node{1101}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }             }             child{                 node{111}                 child{                     node{1110}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }                 child{                     node{1111}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }             }         }         child{             node{01} edge from parent[draw=none]             child{                 node{010}                 child{                     node{0100}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }                 child{                     node{0101}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }             }             child{                 node{011}                 child{                     node{0110}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }                 child{                     node{0111}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }             }             child{                 node{001} edge from parent[draw=none]                 child{                     node{0010}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }                 child{                     node{0011}                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }                 child{                     node{0001} edge from parent[draw=none]                     child{node{$\vdots$}}                     child{node{$\vdots$}}                 }             }         };     \end{tikzpicture}                    \end{document}


title: Scaling nodes in automata in TikZ, inside equation.

text: I fail to scale the nodes (which is what I initially wanted) of the following               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri}     \usetikzlibrary{automata}     \usetikzlibrary{graphs}     \usetikzlibrary{shadows}          \def\nd{\tikz[scale=.65, baseline=1ex,shorten >=.1pt,node distance=1.8cm,on grid,semithick,auto,     every state/.style={fill=white,draw=black,circular drop shadow,inner sep=0mm,text=black},     accepting/.style ={fill=gray,text=white}]{     \node[state] (A) {$z$};     \node[state,accepting] (B) [above right=of A] {$y$};     \node[state] (C) [below right=of B] {$x$};     \path (A) edge (B)               edge [bend left] node {$z$} (C);}     }          \begin{document}          \[\frac{\partial}{\partial x}\left(\nd\right)\]          \end{document}      I used `inner sep=0mm` to reduce their size. And I tried to use `scale=.65` to make the whole smaller, because I would like to use this automata regularly as symbols in equations. What would work instead? The output is a rather huge symbol: ![enter image description here](http://i.stack.imgur.com/3UKbM.png)