title: Staggered entries in tabular environment

text: I am trying to create a table such that the entries in the left furthermost column are entered normally, but the entries in the column to the right must be staggered in a way such that one entry on the right corresponds to two entries on the left. Thus, the entries on the right must be staggered down so that they appear between the entries on the left. I dont have a tex example because I have no idea how to do this in latex, and my searches online haven't been successful. I have a link to pdf which I am converting to a tex file where this problem arises. http://www.physics.brocku.ca/Courses/2P32/LectureNotes/ -- page 8 the table at the bottom.


title: How to avoid this error when redefining `\psgrid` to be `\relax`?

text: # Scenario `\pspicture` with `showgrid` will be regarded as a **PERMANENT** grid. `\psgrid` in `\pspicture` **WITHOUT** `showgrid` will be regarded as a **TEMPORARY** grid. If I want to remove all temporary grids, I just need to redefine `\psgrid` as follows in the preamble.               \let\psgrid\relax      However, if I do this, the `\pspicture` with `showgrid` will produce strange output. * * * # Question How to resolve this issue? * * * # Minimal Code               \documentclass{article}     \usepackage{pstricks}          %If I uncomment out this,      %all temporary grids must disappear.     %\let\psgrid\relax          \begin{document}          %permanent grid     \pspicture[showgrid](2,2)     \psframe*(1,1)     \endpspicture               %temporary grid     \pspicture(2,2)     \psgrid     \psframe*(1,1)     \endpspicture          \end{document}


title: Where can metafont be obtained?

text: Where is the source code or executable for Knuth's `metafont` program? I cannot find it anywhere!


title: How to add hyperref package at my paper?

text: I have problem about adding `hyperref` package to my paper. You can see the details in the following. ![How to add hyperref package at my paper](http://i.stack.imgur.com/z55Na.png) You can also see my edited class as follows.               % ---------------------------------------------------------------------     % Conference proceedings and article templates for     % personal open-archiving activities     % September 2012     % ---------------------------------------------------------------------          \NeedsTeXFormat{LaTeX2e}     \ProvidesClass{Hirwanto}[25/01/2012, v1.0]     \RequirePackage{ifthen}     \RequirePackage{calc}     \AtEndOfClass{\RequirePackage{microtype}}     \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}     \ProcessOptions*     \LoadClass{article}          \RequirePackage{times}      % Loads the Times-Roman Fonts     \RequirePackage{mathptmx}   % Loads the Times-Roman Math Fonts     \RequirePackage{ifpdf}      % Needed to pick between latex and pdflatex          % ---------------------------------------------------------------------     \RequirePackage[latin1]{inputenc}     \RequirePackage{amsmath,amsfonts,amssymb}     \RequirePackage{graphicx,xcolor}     \RequirePackage[indonesian,english,french]{babel}     \RequirePackage{booktabs}     % ---------------------------------------------------------------------          %%%%% for abstract+authors frames                % ---------------------------------------------------------------------            % margins              \RequirePackage[left=2cm,%                     right=2cm,%                     top=2.25cm,%                     bottom=2.25cm,%                     headheight=11pt,%                     a4paper]{geometry}%     \RequirePackage[labelfont={bf,sf},%                     labelsep=period,%                     justification=raggedright]{caption}     % ---------------------------------------------------------------------     \RequirePackage{fancyhdr}  % Needed to define custom headers/footers     \RequirePackage{lastpage}  % Number of pages in the document     \pagestyle{fancy}          % Enables the custom headers/footers     % Headers     \lhead{}%     \chead{}%     \rhead{\small\sffamily\bfseries\@PaperTitle\  --- \thepage/\pageref{LastPage}}     % Footers     \lfoot{}%     \cfoot{}%     \rfoot{}%     \renewcommand{\headrulewidth}{0pt}% % No header rule     \renewcommand{\footrulewidth}{0pt}% % No footer rule     % ---------------------------------------------------------------------     % section/subsection/paragraph set-up     \RequirePackage[explicit]{titlesec}     \titleformat{\section}       {\color{color1}\large\sffamily\bfseries}       {}       {0em}       {\colorbox{color2!10}{\parbox{\dimexpr\linewidth-2\fboxsep\relax}{\centering\arabic{section}. #1}}}       []     \titleformat{name=\section,numberless}       {\color{color1}\large\sffamily\bfseries}       {}       {0em}       {\colorbox{color2!10}{\parbox{\dimexpr\linewidth-2\fboxsep\relax}{\centering#1}}}       []       \titleformat{\subsection}       {\color{color1}\sffamily\bfseries}       {\thesubsection}       {0.5em}       {#1}       []     \titleformat{\subsubsection}       {\sffamily\small\bfseries}       {\thesubsubsection}       {0.5em}       {#1}       []         \titleformat{\paragraph}[runin]       {\sffamily\small\bfseries}       {}       {0em}       {#1}      \titlespacing*{\section}{0pc}{3ex \@plus4pt \@minus3pt}{5pt}     \titlespacing*{\subsection}{0pc}{2.5ex \@plus3pt \@minus2pt}{0pt}     \titlespacing*{\subsubsection}{0pc}{2ex \@plus2.5pt \@minus1.5pt}{0pt}     \titlespacing*{\paragraph}{0pc}{1.5ex \@plus2pt \@minus1pt}{10pt}     % ---------------------------------------------------------------------     % tableofcontents set-up     \usepackage{titletoc}     \contentsmargin{0cm}     \titlecontents{section}[\tocsep]       {\addvspace{4pt}\small\bfseries\sffamily}       {\contentslabel[\thecontentslabel]{\tocsep}}       {}       {\hfill\thecontentspage}       []     \titlecontents{subsection}[\tocsep]       {\addvspace{2pt}\small\sffamily}       {\contentslabel[\thecontentslabel]{\tocsep}}       {}       {\ \titlerule*[.5pc]{.}\ \thecontentspage}       []     \titlecontents*{subsubsection}[\tocsep]       {\footnotesize\sffamily}       {}       {}       {}       [\ \textbullet\ ]       % ---------------------------------------------------------------------       % Get the multiple author set     \newcount\@authcnt     \newcount\@tmpcnt\@tmpcnt\z@          \def\@affiliation{%       \ifnum\@tmpcnt<\@authcnt        \global\advance\@tmpcnt1         \raggedright \csname @auth\romannumeral\the\@tmpcnt\endcsname\hfill\\%        \let\next\@affiliation \vskip1pt       \else        \let\next\relax       \fi     \next}          \newcommand{\affiliation}[1]{%         \global\advance\@authcnt1         \expandafter\gdef\csname @auth\romannumeral\the\@authcnt\endcsname         {#1}}     % ---------------------------------------------------------------------     \RequirePackage{enumitem}     %\setlist{nolistsep} % Uncomment to remove spacing between items in lists (enumerate, itemize)     % ---------------------------------------------------------------------     % Remove brackets from numbering in List of References     \renewcommand{\@biblabel}[1]{\bfseries\color{color1}\textsuperscript{[#1]}}     %\setlength{\bibitemsep}{0cm}     % ---------------------------------------------------------------------     \newcommand{\PaperTitle}[1]{\def\@PaperTitle{#1}}     \newcommand{\Archive}[1]{\def\@Archive{#1}}     \newcommand{\Authors}[1]{\def\@Authors{#1}}     \newcommand{\JournalInfo}[1]{\def\@JournalInfo{#1}}     \newcommand{\Abstract}[1]{\def\@Abstract{#1}}     \newcommand{\Keywords}[1]{\def\@Keywords{#1}}     % ---------------------------------------------------------------------     \renewcommand{\@maketitle}{%     \twocolumn[{%     \thispagestyle{empty}%     \vskip-36pt%     {\raggedleft\small\sffamily\bfseries\@JournalInfo\\\@Archive\par}%     \vskip20pt%     {\raggedright\color{color1}\sffamily\bfseries\fontsize{20}{25}\selectfont \@PaperTitle\par}%     \vskip10pt     {\raggedright\color{color1}\sffamily\fontsize{12}{16}\selectfont  \@Authors\par}     \vskip18pt%     \fcolorbox{color1}{white}{%     \parbox{\textwidth-2\fboxsep-2\fboxrule}{\centering%     \colorbox{color2!10}{%     \parbox{\textwidth-3.5\fboxsep-3.5\fboxrule}{%     \ifx\@Keywords\@empty     \sffamily\small\textbf{\abstractname}\\\@Abstract     \else     \sffamily\small\textbf{\abstractname}\\\@Abstract\\[5pt]%     \textbf{\keywordname}\\\@Keywords%     \fi     }%     }%     \vskip5pt%     \begingroup%     \raggedright\sffamily\small%     \footnotesize\@affiliation\par%     \endgroup%%     }%     }%     \vskip25pt%     }]%     }%     % ---------------------------------------------------------------------     \let\oldbibliography\thebibliography     \renewcommand{\thebibliography}[1]{%     \addcontentsline{toc}{section}{\hspace*{-\tocsep}\refname}%     \oldbibliography{#1}%     \setlength\itemsep{0pt}%     }      @Kurt, I tried to produce a PDF output, but I can't. You can see the following error messages. ![error message](http://i.stack.imgur.com/X5gFQ.png) How to fix this problem?


title: Call Bibtex files for citation in PowerPoint?

text: Is it possible to call Bibtex files for citation in MS PowerPoint. Is there any such add-in or software to do this?


title: my equation breaks into two rows

text: I have the following problem: These equations don't compose into a single line, instead, they break into two lines each of them. There must be a problem with my syntax but I can't seem to find it, I hope you can detect it:               \begin{center}       \begin{equation}         \alpha(\frac{K_{t}^g}{N_{t}})^\psi   A_{t}    K_{t}^\((\alpha - 1)\) L_{t}^\((1-\alpha)\)   =  r_{t}       \end{equation}     \end{center}           \begin{center}       \begin{equation}         (1-\alpha) (\frac{K_{t}^g}{N_{t}})^\psi A_{t} K_{t}^\alpha L_{t}^\(-\alpha\) = w_{t}       \end{equation}     \end{center}


title: How to enclose terminal symbols within circles and/or nice oval boxes in a syntax diagram built using syntax.sty?

text: I hope you can help me again. I want to use the `syntax` package to build syntax diagrams, but I want to enclose non-terminal symbols in boxes and terminal symbols in circles or well- formed oval boxes (or rounded boxes). Here is my MWE built using `\ovalbox` from the package `fancybox`:               \documentclass[letterpaper, 12pt]{report}          \usepackage[rounded, nounderscore]{syntax}     \usepackage{fancybox}          \begin{document}          \begin{syntdiag}     \fbox{ident} \ovalbox{(}     \begin{rep} \begin{stack} \\     \fbox{type} \begin{stack} \\ \fbox{ident} \end{stack}     \end{stack} \\ \ovalbox{,} \end{rep}     \begin{stack} \\ \ovalbox{...} \end{stack} \ovalbox{)}     \end{syntdiag}          \end{document}      Yes, it looks awful. I know it can be improved, but I don't know how. Do you know what commands I should use to enclose terminal symbols in circles or oval boxes? I have not found a solution in the documentation of `syntax.sty` and, since I am using `pdflatex`, I would not like to use `pstricks` and `dvi2ps` because my figures might mess up.


title: Is usage of \ell instead of l in math mode best practice?

text: Is usage of `\ell` instead of `l` in math mode best practice?


title: Handling overflows in biblatex bibliographies

text: I'm finally making the transition to `biblatex`. This is a remarkable package, and has allowed me to cut out quite a bit of old code I used to use to handle eprints, DOIs, crossref mapping problems, etc. Wow! One challenge is that I am less sure how to "fine-tune" the results of the system. One recent issue that has come up is how to handle overfull bibliography items. Consider the following example, typeset by `biblatex`/pdfLaTeX in the middle of a bibliography: ![Overfloww Example](http://i.stack.imgur.com/VNQHQ.png) This seems to be a challenge: I don't have "direct" control of the typesetting --as I understand, it is produced on-the-fly by macros applied to the .bbl file. To make matters worse, it seems like the right solution is to fiddle with `biblatex`'s DOI code, which seems very intimidating. My favorite solution would be a way to have `biblatex` break this DOI in the middle. No one's going to read it anyhow. Is this possible? Failing that, I suppose I could manually edit the .bbl and add `\tolerance` changes right before this entry, but it seems this would have to be done each time I compile the file. Any suggestions very appreciated.


title: PDF files in Appendix are ill placed

text: I'm writing up my bachelors thesis. I have used the appendix{} command i.e.,                     \newpage\chead{Appendix}\begin{appendices}\numberwithin{equation}{section}      and I have a lot of sections in the appendix. The section where I reference mathematical concepts is no problem as I'm just writing and adding equations and defintions. I do have a section where I add PDF files of MATLAB code I generated for the paper. When I add the boxed in PDF figure, its not where it should be. This is the code:               \newpage\rhead{Matlab Code}\section{Matlab Code}\label{sec:MatlabCode}          % Appendix: Penalty Function --------------------------------------------------------     \subsection{Penalty Function}\label{code:MatlabPenalty}     \begin{figure}     \centering     \setlength\fboxsep{0pt}     \setlength\fboxrule{0.5pt}     \fbox{\includegraphics[trim=0.5cm 2.5cm 2.25cm 2.0cm,clip=true,scale=0.6]{MLB_Code_Penalty}}     \caption{"Penalty Function"}     \end{figure}      The figure is displaced. I've not had this problem when I just added an appendix by simply creating a new section{}. Any Advice.


title: Numbering of subsections and paragraphs

text: I have a document style for a report which I'm having to copy to LaTeX format. I'm using pdfLaTeX, for information. In essence, the system is that paragraphs are on the same level as subsections, until the first subsection in a section, wherafter paragraphs are on the level below subsections. It should look like this: > **1.00 FIRST SECTION** > > 1.01 This is a paragraph at subsection level in the first section. > > 1.02 This is also a paragraph at subsection level in the first section. > > **1.03 First Subsection** > > 1.03.1 This is a paragraph at paragraph level in the first subsection in the > first section. > > 1.03.2 This is a paragraph at paragraph level in the first subsection in the > first section. > > **1.04 Second Subsection** > > 1.04.1 This is a paragraph at paragraph level in the second subsection in > the first section. Although I've been playing around with LaTeX for a pretty long time, I can't quite manage this style. What I've got is the following MWE:               \documentclass{article}          %%% TITLE DEFINITIONS %%%     \usepackage{chngcntr}    % change the display of counters     \counterwithin{table}{section}     \counterwithin{paragraph}{subsection} % paragraphs counted within subsections     \usepackage[tiny,raggedright,uppercase,noindentafter,toctitles,explicit]%                {titlesec}          \newcommand*{\newpar}{\paragraph{}}          \newcounter{paraintro}[section]     \setcounter{paraintro}{0}          \makeatletter     \@addtoreset{paragraph}{section}     \@addtoreset{subsection}{section}     \renewcommand\thesection{\arabic{section}.\two@digits{\arabic{subsection}}}     \renewcommand\thesubsection{%         \ifnum\arabic{paraintro}>0%         \addtocounter{subsection}{\arabic{paraintro}}%       \fi%       \arabic{section}.\two@digits{\arabic{subsection}}%       \addtocounter{paraintro}{-\arabic{paraintro}}%     }     \renewcommand\theparagraph{%       \ifnum\arabic{subsection}<1%         \addtocounter{paraintro}{1}%         \arabic{section}.\two@digits{\arabic{paraintro}}%       \else         \arabic{section}.\two@digits{\arabic{subsection}}.\arabic{paragraph}%       \fi     }     \renewcommand{\thetable}{%       \arabic{section}.\two@digits{\arabic{subsection}} (\alph{table})%     }     \let\oldsection\section     \newcommand{\mysection}[1]{\oldsection{\uppercase{#1}}}     \def\section{\@ifstar{\oldsection}{\mysection}}     \makeatother     \setcounter{secnumdepth}{5}          \begin{document}          \section{First Section}\label{sec:first}          \newpar This is a paragraph at subsection level in the first section.\label{intropar:first}          \newpar This is also a paragraph at subsection level in the first section.It comes after intropar \ref{intropar:first}. \label{intropar:second}          \subsection{First Subsection}\label{ssec:first}          \newpar This is a paragraph at paragraph level in subsection \ref{ssec:first} in section \ref{sec:first}.\label{par:first}          \newpar This is a paragraph at paragraph level in subsection \ref{ssec:first} in section \ref{sec:first}. It comes after paragraph \ref{par:first}.\label{par:second}.          \subsection{Second Subsection}\label{ssec:second}          \newpar This is a paragraph at paragraph level in subsection \ref{ssec:second} in section \ref{sec:first}. It comes after paragraphs \ref{par:first} and     \ref{par:second}.\label{par:third}          \end{document}      This does not give me the results I'm after; the numbers are all over the place. It would seem as though the references are messing the thing up. I suspect it's to do with the invocation of `\theparagraph` and its ilk when `\ref` is called, but I've messed around with it for so long that I've no idea how to resolve the problem. Might anyone be able to help with this?


title: Finding the current position on the PDF

text: I am trying to generate automated reports in R using knitr. There are a list of objects I need to print on the PDF and the size (rows, columns, length etc.) can vary. The problem is that when any of the list of objects starts from the middle of the page, it is possible that it will flow out of the page. So, I was wondering if there was a way to know where I am on the page, so that I can decide whether the next object should be printed on the same page, or I use `\clearpage` and start in the next page.


title: Getting rid of DOI, ISSN links from bibliography

text: In light of this and this AND if I'd want to use `pdflatex` instead of `biblatex`, how do I get rid of doi, ISSN links from my bibliography? I can write a script such as here but that leaves a `,` hanging in each of the entries? Any comments? > Edit: > > I received very nice input from Mico but I was not able to apply his > recommendations (I will do it and post the result here). > > Meawhile, here is one not very elegant solution I devised: > > I rid my .bib file off all url, doi, issn text like this: > > `cat mybibfile.ib | sed -e '/url /d' > mybibfile2.bib` > > Then I opened my new .bib file viz, mybibfile2.bib in gedit and replaced all > `,\n}` with `}` which ensured that I didn't have a hanging comma(,) in my > file.


title: How to change arrows to \Rightarrow, and draw two different arrows between two nodes

text: I have two questions. There must be an easy way for the diagram that I am trying to draw, but I am totally new to drawing diagrams in tex. Xy-pic package seems too complicated, thus I am trying TikZ-package.   1. How do I change the arrows in my matrix to simply to `$\Rightarrows$`, I solved it by `[double]`, but it does not look nice and the color of arrows are somehow different.    2. How can I add two arrows between two nodes. Simply, I want to write `$A \Rightarrow B$` and `$B \nLightarrow A$` between my two nodes A and B. I could not also solve the bending problem yet.  Here is my code up to now.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{matrix,arrows,decorations.pathmorphing}     \begin{document}     \begin{tikzpicture}     \matrix (m) [matrix of math nodes, row sep=3em, column sep=3em, text                 height=1.5ex, text depth=0.25ex]                  {   & X & & \\                   A & B & C & D \\                   E & F & G & H \\                       & I & & \\};                 \path[->] (m-1-2) edge [double] (m-2-3)                                    edge [double,bend left=90] (m-4-2);                  \path[->] (m-2-1) edge [double] (m-2-2)                                    edge [double] (m-3-1)                                    edge [double] (m-1-2);                  \path[->] (m-2-2) edge  [double] (m-2-3)                                    edge  [double] (m-3-2);                  \path[->] (m-2-3) edge [double] (m-2-4)                                    edge [double] (m-3-3);                  \path[->] (m-2-4) edge [double] (m-3-4);                  \path[->] (m-3-1) edge [double] (m-3-2)                                    edge [double] (m-4-2);                  \path[->] (m-3-2) edge [double](m-3-3);                   \path[->] (m-3-3) edge [double] (m-3-4);                   \path[->] (m-4-2) edge [double] (m-3-3);                  \end{tikzpicture}                  \end{document}


title: Remove part page

text: In my thesis all my chapters are grouped as a part (titled **CHAPTERS** ). I want the part to appear in the TOC, but do not want a part page. The part is showing up fine in the toc, but the part page shows up before the first chapter and I don't want it to show up at all. That is I don't want the part titled **CHAPTERS** to appear anywhere except for the toc. Here's a MWE.               \documentclass[11pt, letterpaper]{thesis}          \usepackage{fancyhdr}     \renewcommand{\headrulewidth}{0pt}     \fancyhf{}     \cfoot{\thepage}          \renewcommand{\thechapter}{\Roman{chapter}}     \renewcommand{\thesection}{\arabic{section}}          \usepackage[title,titletoc]{appendix}          \usepackage{etoolbox}          \usepackage{tocloft}     \makeatletter     \renewcommand{\numberline}[1]{%       \@cftbsnum #1\@cftasnum~\@cftasnumb%     }     \makeatother          \usepackage{titlesec}     \assignpagestyle{\chapter}{fancy}     \titleformat{\chapter}[display]{\normalfont \centering}{CHAPTER \chaptertitlename\ \thechapter}{11 pt}{}     \titleformat{\section}[display]{\normalfont \centering}{}{11 pt}{}          \begin{document}     \renewcommand{\cftpartfont}{\normalfont}     \renewcommand{\cftchapfont}{\normalfont}     \renewcommand{\cftsecfont}{\normalfont}     \renewcommand{\cftpartpagefont}{\normalfont}     \renewcommand{\cftchappagefont}{\normalfont}     \renewcommand{\cftdotsep}{\cftnodots}          \setcounter{tocdepth}{1}     \setcounter{secnumdepth}{2}     \cftsetindents{chapter}{.5in}{1.0in}     \cftsetindents{section}{1.0in}{1.0in}     \setlength{\cftchapnumwidth}{2em}          \setlength\cftbeforechapskip{11pt}     \renewcommand\cftchapafterpnum{\vskip11pt}     \setlength{\cftbeforesecskip}{0pt}          \addcontentsline{toc}{part}{CONTENTS}          \renewcommand{\tocloftpagestyle}[1]{\def\@cftpagestyle{\thispagestyle{#1}}}     \tocloftpagestyle{empty}     \renewcommand*\contentsname{\centerline{CONTENTS}}     \renewcommand{\cfttoctitlefont}{\normalfont}          \tableofcontents     \newpage            \part*{CHAPTERS} % Use this so "Part" won't show up before title in toc      \addcontentsline{toc}{part}{CHAPTERS}          \chapter{First Chapter}     \thispagestyle{fancy}          \chapter{Second Chapter}     \thispagestyle{fancy}          \end{document}


title: Using a forloop to generate PDF output of eps stata files

text: I'd like to create a PDF file which, for now, contains only the image output I've generated in stata. The images are all located in a folder called \network\location and all follow a common naming convention, file1,file2,...,filen. The latex engine i want to use is pdfLaTex within Teworks. I've written the following code to generate the file via pdflatex, but the process bombs before completion. The specific error message is "Missing $ inserted, $ Any input would be greatly appreciated.               \documentclass{article}     \usepackage{graphicx}     \usepackage{pgffor}     \begin{document}     \begin{figure}       \foreach\x in {1,2,...,10}{%         \includegraphics[height=5.4cm]{//network/location/file\x}       }     \end{figure}       \end{document}      Thanks for any help.


title: Different errors while compiling, depending on distribution

text: When compiling my TeX document in PCTeX the **_** in the bibliography url's appear as **“˙**. When compiling it in TeXworks the **_** appears fine, but all the table references appear as **??**. Any ideas to how I can compile my document without any errors? Included packages are:               \documentclass[12pt, a4paper, twoside]{report}          \usepackage[round]{natbib}          \usepackage{mathtools}     \usepackage{microtype}     \usepackage[latin1]{inputenc}     \usepackage{amsmath}     \usepackage{parskip}     \usepackage{tabulary}     \usepackage{graphicx}          \usepackage[hyphens]{url}          \usepackage[flushleft]{threeparttable}          \usepackage{multirow, float, eurosym, booktabs, subfigure, subfig, caption, setspace, fixltx2e, amssymb, pbox, pdfpages}     \usepackage[titletoc,toc]{appendix}     \usepackage[bottom]{footmisc}     \usepackage[inner=3.5cm, outer=2.5cm, top=2.5cm, bottom=3cm]{geometry}     \usepackage{lmodern}     \usepackage[section]{placeins}


title: Comma alignment problem

text: I don't know how to set all the labels on the same level.               \documentclass[french]{article}          \usepackage{tikz}          \begin{document}          \begin{tikzpicture}[>=stealth,x=6cm,font=\footnotesize]          \draw [->] (0,0)--(1,0)  ;          \foreach \x in {0,1,...,12} {%         \coordinate (\x) at (\x/12,0) ;         \draw [very thin] (\x/12,+2pt)--(\x/12,-2pt) ;              \pgfmathsetmacro\result{2 + \x / 10}         \node[above=1pt]  at (\x)%             {\pgfmathprintnumber[precision=1,fixed,use comma]{\result}};              } ;          \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/q2sit.png)


title: LaTeX Companion as an ebook

text: Apologies if this seems frivolous but I've been trying to find the _LaTeX Companion_ 2ed by Mittelbach et al. in ebook form. Other than illegal rip-offs there doesn't seem to be anywhere I can buy it in electronic form despite multiple Google searches. I'm not sure if I'm missing something, it seems strange that a book about Latex would only be available in paper form, hence the question. Does anyone know if its being sold as an ebook and where?


title: Why does pdfTeX hang on this file?

text: MWE:               \documentclass{minimal}     \usepackage{commath, tikz}     \begin{document}     \begin{tikzpicture}     \node {$:$};     \end{tikzpicture}     \end{document}      When I compile this, pdfTeX enters an infinite loop. Why?


title: dcolumn italicize header for me

text: I am trying to use `dcolumn` to align the decimals for me. I am using `booktabs` while constructing the table. The code I have is:               \documentclass{article}     \usepackage{booktabs,dcolumn}     \newcolumntype{.}{D{.}{.}{-1}}     \begin{document}     \begin{tabular}{l .}     \toprule     M & N \\     \midrule     5 & 12 \\     10 & 24.0\\     \bottomrule     \end{tabular}     \end{document}      Everything seems to be perfectly fine except that the N was _italicized_ for me. How can I do this without having to _italicized_ my header? I am so sorry I couldn't post an image because I do not have enough reputation.


title: Footnotes causing pagebreaks in philosophersimprint.cls

text: I am trying to typeset an article using the philosophersimprint class, but footnotes are having a weird interaction with pagebreaks. Here is a minimal example demonstrating my problem:               \documentclass{philosophersimprint}     \usepackage{lipsum}          \begin{document}       \lipsum[1]       \section{First Section}       A sentence fragment.\footnote{A footnote}       \subsection{A subsection}       \lipsum[3-4]     \end{document}      ![screenshot](http://i.stack.imgur.com/lpuOt.png) The first column lasts up until the footnote, and then the column breaks and starts subsection 1.1 at the top of the next column. Using the `\samepage` environment closes up the gap, but later on in the document it makes text run off the bottom of the page in many places. I'm thinking that I'll have to make my own changes to how philosophersimprint.cls handles either footnotes or {sub,}sections, but I'm not sure which to look at.


title: Set the length of 1ex

text: How can I set the length of `1ex`? I tried `\setlength{1ex}{4.40999pt}` but I get errors.


title: How can I get "block" justification

text: I would like all my paragraph text to not start with indents at beginning of paragraph. And both sides justified against the margin (left and right).


title: Get the stem width (i, T) of a Font in ConTeXt Mk IV

text: In the TiKz-Manual it says: > ... that LaTeX has two commands called \thinlines and \thicklines and that > \thinlines gives the line width of “normal” lines, more precisely, of the > thickness that, say, the stem of a letter like “T” or “i” has. Is there a similar command in ConTeXt to get the stem width of i,T of a font? I would like to have a consistent line width in my MetaPost drawings and the used font.


title: Very strange biblatex style in french archeology

text: I have many problems with a bibliography style with `biblatex`. And excuse my english, I'm a French student. I would like a style like this: ![enter image description here](http://i.stack.imgur.com/SGzTt.png) but after a lot of research I obtained: ![enter image description here](http://i.stack.imgur.com/TX7l9.png) It is almost perfect but I do not manage to obtain the key in small letters, doubtless because of the `babel` package with the `french` option which puts the authors in small capitals. After the key is sometimes stupid like that : ![enter image description here](http://i.stack.imgur.com/3eDcO.png) Finally I would like to remove the quotation marks of the title of article like this journal ! (for curious it's Documents d'Archéologie Méridionales (external link) ) Here are the modifications that I made in the stoneware of my researches on the Internet in my preamble and a short extract of my bibliography:                   @BOOK{bohec95,         title = {Histoire militaire des guerres puniques},       publisher = {{\'E}dition du Rocher},       year = {1995},       author = {Le Bohec, Yann},       address = {Monaco},       entrysubtype = {sources secondaires},       keywords = {monographie, histoire},       lccn = {96141557},       owner = {Axel},       pagetotal = {337},       timestamp = {2013.09.25}     }          @ARTICLE{leveau03,       author = {{\relax Ph}ilippe Leveau},       title = {Le franchissement du Rh\^one par Hannibal : le chenal et la navigation         fluviale à la fin de l'\^Age du Fer},       journal = {Revue archéologique},       year = {2003},       volume = {3},       pages = {25-50},       number = {35},       entrysubtype = {sources secondaires},         keywords = {article, histoire},       owner = {Axel},       shortjournal = {RA},       timestamp = {2013.09.25}     }              \documentclass{article}           %%%%%%%%%%%%%%% FRANCAIS %%%%%%%%%%%%%%%     \usepackage[french]{babel}               \usepackage{csquotes}     \usepackage{fontspec}     \usepackage{xunicode}     \setmainfont[Mapping=tex-text,Numbers=OldStyle]{Linux Libertine O}          %%%%%%%%%%%%%%%%%% %BILIOGRAPHIE            \usepackage[                                                                                %BILIOGRAPHIE       backend=bibtex,bibstyle=authortitle,citestyle=authoryear,sorting=nyt                                     % Configuration de la bilio     ]{biblatex}                \ExecuteBibliographyOptions{maxnames=3, % Et al. quand trop de nom     firstinits=true,     uniquename=init%initiale     }                                                                %% BIDOUILLES BIBLIO          \renewcommand{\mkbibnamefirst}[1]{\parentext{#1}}                                           %parenthèse de l'initiale     \DeclareNameAlias{sortname}{last-first}                                                                     %rangement des noms de famille et prénoms     \renewcommand{\revsdnamepunct}{\addnbspace}                                                 %Enlève la virgule après le nom de famille quand nom inversé     \renewcommand{\multinamedelim}{\addnbspace\addcomma\addnbspace}                 %   remplace et par ","      \renewcommand{\finalnamedelim}{\addnbspace\addcomma\addnbspace}                %   remplace et par ","           \DeclareLabelname{%     \field{editor}     }                    \DeclareBibliographyDriver{book}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%      \printtext{\bfseries{\printnames{labelname}}\space\printfield{year}\space\addcolon\space}%       \usebibmacro{author/editor+others}%       \setunit{\space\textendash\space}\newblock       \usebibmacro{maintitle+title}%       \newunit       \printlist{language}%       \newunit\newblock       \usebibmacro{byauthor}%       \newunit\newblock       \usebibmacro{byeditor+others}%       \newunit\newblock       \printfield{edition}%       \newunit       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \usebibmacro{publisher+location+date}%       \setunit*{\addspace}\newblock       \usebibmacro{series+number}%       \newunit       \printfield{pagetotal}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \usebibmacro{related}%       \usebibmacro{finentry}}          \DeclareBibliographyDriver{article}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \printtext{\bfseries{\printnames{labelname}}\space\printfield{year}\space\addcolon\space}%       \usebibmacro{author/editor+others}%       \setunit{\space\textendash\space}\newblock       \usebibmacro{maintitle+title}%       \newunit\newblock           \usebibmacro{journal+issuetitle}%        \newunit        \usebibmacro{byeditor+others}%        \newunit        \usebibmacro{note+pages}%        \newunit\newblock        \iftoggle{bbx:isbn}          {\printfield{issn}}          {}%        \newunit\newblock        \usebibmacro{doi+eprint+url}%        \newunit\newblock        \usebibmacro{addendum+pubstate}%        \setunit{\bibpagerefpunct}\newblock        \usebibmacro{pageref}%        \newunit\newblock        \iftoggle{bbx:related}          {\usebibmacro{related:init}%           \usebibmacro{related}}          {}%        \usebibmacro{finentry}}          \DeclareBibliographyDriver{incollection}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \printtext{\bfseries{\printnames{labelname}}\space\printfield{year}\space\addcolon\space}%       \usebibmacro{author/editor+others}%       \setunit{\space\textendash\space}\newblock       \usebibmacro{maintitle+title}%       \newunit\newblock          \usebibmacro{in:}%      \usebibmacro{bybookauthor}%     \newunit\newblock       \usebibmacro{maintitle+booktitle}%       \newunit\newblock       \usebibmacro{byeditor+others}%       \newunit\newblock       \printfield{edition}%       \newunit       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \iftoggle{bbx:related}         {\usebibmacro{related:init}%          \usebibmacro{related}}         {}%       \usebibmacro{finentry}}          \DeclareBibliographyDriver{inproceedings}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \printtext{\bfseries{\printnames{labelname}}\space\printfield{year}\space\addcolon\space}%       \usebibmacro{author/editor+others}%       \setunit{\space\textendash\space}\newblock       \usebibmacro{maintitle+title}%       \newunit\newblock        \usebibmacro{in:}%       \usebibmacro{maintitle+booktitle}%       \newunit\newblock       \usebibmacro{event+venue+date}%       \newunit\newblock       \usebibmacro{byeditor+others}%       \newunit\newblock       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \printlist{organization}%       \newunit       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \iftoggle{bbx:related}         {\usebibmacro{related:init}%          \usebibmacro{related}}         {}%       \usebibmacro{finentry}}               % "Et al." en ITALIQUE          \renewbibmacro*{name:andothers}{% Based on name:andothers from biblatex.def       \ifboolexpr{         test {\ifnumequal{\value{listcount}}{\value{liststop}}}         and         test \ifmorenames       }         {\ifnumgreater{\value{liststop}}{1}            {\finalandcomma}            {}%          \andothersdelim\bibstring[\emph]{andothers}}         {}}          %Enlever le tiret lorsqu'il y a une récurrence des auteurs     %     \makeatletter     \AtEveryBibitem{%       \global\undef\bbx@lasthash%       \clearfield{extrayear}}     \makeatother          %Enlever les parenthèses des dates des articles     \renewbibmacro*{issue+date}{%       \setunit{\addcomma\space}% NEW     %  \printtext[parens]{% DELETED         \iffieldundef{issue}           {\usebibmacro{date}}           {\printfield{issue}%            \setunit*{\addspace}%     %       \usebibmacro{date}}}% DELETED            \usebibmacro{date}}% NEW       \newunit}          %Met les abréviations des revues     \renewbibmacro*{journal}{%       \iffieldundef{shortjournal}         {%           \iffieldundef{journaltitle}             {}             {%               \printtext[journaltitle]                 {%                   \printfield[titlecase]{journaltitle}%                   \setunit{\subtitlepunct}%                   \printfield[titlecase]{journalsubtitle}%                  }%              }%         }         {\printtext[journaltitle]{\printfield[titlecase]{shortjournal}}}%         }      Bigs modifications are with this line for dash and key.                \printtext{\bfseries{\printnames{labelname}}\space\printfield{year}\space\addcolon\space}%      _Voilà!_ (I always dreamed to write in italics :p) If somebody has an idea I would be extremely happy and delighted in others it would be awesome ! :D Thanks a lot. Merci beaucoup. EDIT: Yeah there are others problems with the field editor, there is "sous la direction de" and I would like "dir." after the author like that: ![enter image description here](http://i.stack.imgur.com/d1v2p.png) After how to change the citation in lower case with authoryear style? Finally I can't use Linux Libertine with this style because I always have smalls caps, do you have a solution? Edit2 : Wonderful ! It's almost perfect ! You're a genius ! :D Indeed, i can use xelatex and have some fancy ligatures with linux libertine :) For "et al." I would like in label not in the list of author. ![enter image description here](http://i.stack.imgur.com/gBK2r.png) Informal in this journal sometimes we have "et al." in the key and sometimes no, like with the previous example with Py,Lopez,Asensio. I don't understand. The ultimate edit : I succeed to have "dir." instead "éd" and "Établit par" for ancients sources with that :               \DefineBibliographyStrings{french}{%      byeditor = \iffieldequalstr{keywords}{source}% %Etablit par, pour les sources et dir. pour les inX      {Établit\space par}%     {dir\adddotspace\smartof},       editor           = {dir.},      editors          = {dir.},     }      But I have a annoying comma after the author.! ![enter image description here](http://i.stack.imgur.com/mqD5E.jpg) Do you have an idea to remove this ? I'm seeing another problems... For page of books I use "pagetotal" to have : 550 p. for example, so with your code I have a final dot. Ok. But I have a dot after the date too. And with article, I don't have final dot thanks to :               \renewcommand*{\finentrypunct}{}      So, how do I do, to have always a final dot, but a comma after date because for the moment I have this: ![enter image description here](http://i.stack.imgur.com/jCLe7.jpg) I succeed to remove the comma before "dir.", and parenthesis for proceedings, there is only this problem of dot after date and put byeditor before maintitle. Last edit : I managed to remove the point after the date and change the order of entries inbook, incollection etc. in by modifying the order in the file standard. Here is my last one MWE for futures generations ! XD               \usepackage[                                                                                %BILIOGRAPHIE       backend=bibtex,style=authoryear, firstinits, mergedate=false, style=authoryear-ibid,maxcitenames=2, maxbibnames=999                                     % Configuration de la bilio     ]{biblatex}           \renewcommand*{\revsdnamepunct}{}     \renewcommand*{\finalnamedelim}{\multinamedelim}     \renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}     \DeclareNameAlias{sortname}{last-first}          \renewcommand{\mkbibnamefirst}[1]{\parentext{#1}}                   %parenthèse de l'initiale          \renewcommand*{\labelnamepunct}{\space\textendash\space}      %tiret après le label                    \renewbibmacro*{date+extrayear}{}%                                          rajoute date          \DeclareFieldFormat       [article,inbook,incollection,inproceedings,patent,thesis,unpublished]       {title}{#1}            \renewbibmacro{in:}{%                                                                 enlève guillemets articles       \ifentrytype{article}         {}         {\printtext{\bibstring{in}\intitlepunct}}}              \renewbibmacro*{issue+date}{%       \printfield{issue}%       \setunit{\addcomma\space}%       \printdate%       \newunit}          \renewbibmacro*{publisher+location+date}{%       \printlist{location}%       \setunit*{\addcomma\space}%       \printlist{publisher}%       \setunit*{\addcomma\space}%       \usebibmacro{date}%       \newunit}          \renewbibmacro*{begentry}{\printtext[bold]{\usebibmacro{cite}\addspace\addcolon\space}}            %Met les abréviations des revues     \renewbibmacro*{journal}{%       \iffieldundef{shortjournal}         {%           \iffieldundef{journaltitle}             {}             {%               \printtext[journaltitle]                 {%                   \printfield[titlecase]{journaltitle}%                   \setunit{\subtitlepunct}%                   \printfield[titlecase]{journalsubtitle}%                  }%              }%         }         {\printtext[journaltitle]{\printfield[titlecase]{shortjournal}}}%     }          %Enlever le tiret lorsqu'il y a une récurrence des auteurs     %     \makeatletter     \AtEveryBibitem{%       \global\undef\bbx@lasthash%       \clearfield{extrayear}}     \makeatother          % "Et al." en ITALIQUE          \renewbibmacro*{name:andothers}{% Based on name:andothers from biblatex.def       \ifboolexpr{         test {\ifnumequal{\value{listcount}}{\value{liststop}}}         and         test \ifmorenames       }         {\ifnumgreater{\value{liststop}}{1}            {\finalandcomma}            {}%          \andothersdelim\bibstring[\emph]{andothers}}         {}}           %%% Histoire des noms    et al...     \makeatletter     \renewbibmacro*{begentry}{%       \renewcommand*{\mkbibnamelast}[1]{##1}%       \defcounter{maxnames}{\blx@maxcitenames}%       \printtext[bold]{\usebibmacro{cite}\addspace:\space}%       \defcounter{maxnames}{\blx@maxbibnames}       \renewcommand*{\mkbibnamelast}[1]{\textsc{\textnohyphenation{##1}}}}     \makeatother          \AtBeginDocument{\renewcommand*{\mkbibnamelast}[1]{#1}}                 %minuscule citation          \renewbibmacro*{event+venue+date}{                        %Enlève parenthèse colloque       \iffieldundef{eventtitle}         {}         {%           \bibstring{presentedat}%           \printfield{eventtitle}%         }%       \ifboolexpr{         test {\iffieldundef{venue}}         and         test {\iffieldundef{eventyear}}       }         {}         {\setunit*{\addspace}%          \printtext{%            \printfield{venue}%            \setunit*{\addcomma\space}%            \printeventdate}}%       \newunit     }                   \DefineBibliographyStrings{french}{%      byeditor = \iffieldequalstr{keywords}{source}%                         %Etablit par, pour les sources et dir. pour les inX      {Établit\space par}%     {dir\adddotspace\smartof},      in = {\textit{in}},%      editor           = {dir\adddotspace},%      editors          = {dir\adddotspace},%      opcit = \iffieldequalstr{entrytype}{article}{art\adddotspace cit\adddot}{\emph{op\adddotspace cit}\adddot},%     idem = {\emph{idem}},%     ibidem = {\emph{ibid\adddot}},%     %pagetotal = {p\adddot},%      %pages            = {pp\adddot},%     }     %enlève la virugule avant dir.     \makeatletter     \renewbibmacro*{bbx:editor}[1]{%       \ifboolexpr{         test \ifuseeditor         and         not test {\ifnameundef{editor}}       }         {\usebibmacro{bbx:dashcheck}            {\bibnamedash}            {\printnames{editor}%     %   \setunit{\addcomma\space}% DELETED         \setunit{\addspace}% ADDED         \usebibmacro{bbx:savehash}}%     %     \usebibmacro{#1}% DELETED          \printtext{\usebibmacro{#1}}% ADDED          \clearname{editor}}         {\global\undef\bbx@lasthash}}     \makeatother      %%modifié book pour virgule      \DeclareBibliographyDriver{book}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/editor+others/translator+others}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{maintitle+title}%       \newunit       \printlist{language}%       \newunit\newblock       \usebibmacro{byauthor}%       \newunit\newblock       \usebibmacro{byeditor+others}%       \newunit\newblock       \printfield{edition}%       \newunit       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\addcomma       \printfield{pagetotal}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \iftoggle{bbx:related}         {\usebibmacro{related:init}%          \usebibmacro{related}}         {}%       \usebibmacro{finentry}}            %Change ordre des entrées pour les in quelquechoses :        \DeclareBibliographyDriver{incollection}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/editor+others}%       \setunit{\space\textendash\space}\newblock       \usebibmacro{maintitle+title}%       \newunit\newblock          \usebibmacro{in:}%      \usebibmacro{bybookauthor}%     \newunit\newblock       \usebibmacro{byeditor+others}%       \newunit\newblock       \usebibmacro{maintitle+booktitle}%       \newunit\newblock       \printfield{edition}%       \newunit       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \iftoggle{bbx:related}         {\usebibmacro{related:init}%          \usebibmacro{related}}         {}%       \usebibmacro{finentry}}          \DeclareBibliographyDriver{inproceedings}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/editor+others}%       \setunit{\space\textendash\space}\newblock       \usebibmacro{maintitle+title}%       \newunit\newblock        \usebibmacro{in:}%       \usebibmacro{byeditor+others}%       \newunit\newblock       \usebibmacro{maintitle+booktitle}%       \newunit\newblock       \usebibmacro{event+venue+date}%       \newunit\newblock       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \printlist{organization}%       \newunit       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \iftoggle{bbx:related}         {\usebibmacro{related:init}%          \usebibmacro{related}}         {}%       \usebibmacro{finentry}}          \DeclareBibliographyDriver{inbook}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/editor+others}%       \setunit{\space\textendash\space}\newblock       \usebibmacro{maintitle+title}%       \newunit\newblock        \usebibmacro{in:}%       \usebibmacro{byeditor+others}%       \newunit\newblock       \usebibmacro{maintitle+booktitle}%       \usebibmacro{bybookauthor}%       \newunit\newblock       \usebibmacro{maintitle+booktitle}%       \newunit\newblock       \printfield{edition}%       \newunit       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \iftoggle{bbx:related}         {\usebibmacro{related:init}%          \usebibmacro{related}}         {}%       \usebibmacro{finentry}}      I a


title: How to keep the last page number even?

text: I want to make sure the last page always be even, so I defined command as the following:               \documentclass{article}     \usepackage{lipsum}     \usepackage[paperwidth=302pt,paperheight=400pt, offset=0pt, hmargin=40pt, tmargin=50pt,         bmargin=75pt, noheadfoot]{geometry}          \newcommand{\OpenNewPageIfNeeded}{%     \ifodd\value{page}%     \newpage%     \hbox{}%     \else%     \fi%     }     \AtEndDocument{\OpenNewPageIfNeeded}          \begin{document}     \lipsum     \end{document}      This works for most of the cases, but fails sometimes, for example the above sample code. It seems that this question is duplicated with Ensure last page is even and blank, I tried the solution but it still fails, any suggestions?


title: highlight the desired item

text: How can I mark any desired item/statement in red circle/ oval mark as shown in this slide. Can it be animated too? ![enter image description here](http://i.stack.imgur.com/C0tj8.jpg)


title: Remove vertical space between paragraphs for IEEEtran class for conference

text: I am using IEEEtran latex class 2-column format for conference. It gives me spacing between paragraphs which I want to take off. I got the template from this link. http://www.ieee.org/conferences_events/conferences/publishing/templates.html Your help will be greatly appreciated.


title: Setting initial value of a storage macro

text: When I create a "storage macro" I often initialize it to be empty with               \newcommand{\@mymacro}{}     \newcommand{\mymacro}[1]{\renewcommand{\@mymacro}{#1}}      Instead of initializing it to empty I could do `\let\@mymacro\relax`. In `letter.cls` storage macros (is there a better term) are defined by               \newcommand{\mymacro}[1]{\def\@mymacro{#1}}     \mymacro{}      In this method one wouldn't even have to initialize `\@mymacro` and could leave out the `\mymacro{}`. This would lead to potentially cryptic error messages and in the LaTeX kernel the storage macros `\@title` and `\@author` are initialized as               \def\@title{\@latex@error{No \noexpand\title given}\@ehc}     \def\@author{\@latex@warning@no@line{No \noexpand\author given}}      to give less cryptic messages. Is there a proper way to initialize storage macros?


title: Customizing the target at creating context sensitive JavaHelp with Tex4ht

text: With `tex4ht` I created all the files needed for `javahelp` (to show the html pages and accessing specific pages for a context sensitive help). I have to access these specific pages by a key. Unfortunately these keys (target) are generated by a sequential algorithm:               <mapID target="section-1" url="docu_dese1.html#x2-10001"></mapID>     ...     <mapID target="subsection-5" url="docu_dese4.html#x5-60004"></mapID>      So when I change the order of some sections in latex all links in my software would be wrong! I would like to put my own keys there und I also found the place where the target (key name) is generated. javahelp.4ht:               \NewConfigure{mapIdTarget}{2}     \Configure{mapIdTarget}        {\sectionType-\sectionId}        {}      But I have no idea, what I could use instead of this. Is there any section property field, which I can write in latex and (ab)use in javahelp.4ht? Or is there a chance to customize the file names (html; then I could parse the xml file and assign the targets dynamically)?


title: breaking lines in listings enviroment

text: I am trying to make listing enviroment brake lines. Unfortunately `breaklines=true` does not work for me. Here is my code:               \usepackage{listings}          \begin{document}          \lstset{language=matlab,breaklines=true, extendedchars=true, numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=5pt, basicstyle=\footnotesize, frame=lines, keywordstyle=\bfseries\color{blue}, commentstyle=\color{green!50!black}}          \lstset{emph={classdef, properties, methods},emphstyle={\color{blue}\bfseries}}          \renewcommand{\lstlistingname}{Algorytm}          \begin{lstlisting}[caption=Funkcja \emph{createFoR} klasy \emph{row}., label=func_createFoR, float=ht]     classdef row < handle          properties     rp  %promien rownoleznika     end          methods          function [T1 T2] = createFoR(obj,hT,Alpha,Beta,DeltaAlpha,DeltaBeta)              P1(1,1) = obj.r * cosd(Beta);              P1(1,2) = obj.r * cosd(90 - Beta);              P1(1,3) = obj.r * tand(90 - (Alpha + DeltaAlpha));              P1(2,:) = hT.P(1,:);              %hT - trojkat z wyzszego wiersza              P1(3,1) = obj.r * cosd(Beta + DeltaBeta);              P1(3,2) = obj.r * cosd(90 - (Beta + DeltaBeta));              P1(3,3) = obj.r * tand(90 - (Alpha + DeltaAlpha));               T1 = triangle(P1);              P2(1,:) = hT.P(1,:);              P2(2,:) = hT.P(3,:);              P2(3,:) = P1(3,:);              T2 = triangle(P2);         end     end     \end{lstlisting}      This is how it looks: ![http://i.imgur.com/VjTH3ku.png](http://i.stack.imgur.com/No86Z.png) May I kindly ask you for help?


title: Latex beamer block shadow fades to white and not to the background color

text: I modified the background color using `\setbeamercolor{background canvas}{bg=blue!25}`. However, the shadow of the blocks fade from black to white and not to the background color (resulting in a tiny white stripe around the shadow before the background color takes over), see code below. I found the following fix How to add a transparent shadow to a block in beamer? (there the white line around the shadow can also be seen clearly) However, the modified version of `beamerbaseboxes.sty` seems to be outdated, since it changes the appearance of the whole presentation, not only the shadows. Since I do not want transparent shadows but merely shadows that fade into the background color, I would like to ask how to achieve this without hacking the `beamerbaseboxes.sty` file.               \documentclass{beamer}     \usetheme{Madrid}          \setbeamercolor{background canvas}{bg=blue!25}          \begin{document}          \frame{       \begin{block}{test block}        block block      \end{block}          }          \end{document}


title: Title Slide of Flip Beamer Theme

text: I just came across the Flip Beamer Theme. It is a cool theme to use on Beamer presentations, however, I don't understand how one has to customise the title slide of the presentation. The slide title and author name in the sample presentation go very well with the theme, but how do I recreate that? Do I have to do this in something like photoshop? Or can it be done in XeLaTeX as well?


title: latest updates to lua* break ... something

text: So, now, after most recent (23 Apr) updates (I'm using MiKTeX 2.9) to various things related to lualatex, I noticed that compilation of anything takes twice as long as it did (say) 10 minutes ago (i.e., before I applied the updates). Didn't take long to see why. Basically, now, every time I try to compile something, it re-runs luaotfload. > >     luaotfload | Updating the font names database: >     luaotfload | Scanning TEXMF and OS fonts.. >   Every time - it should only have to do this on c, but since the updates, it tries to do this every time, which is where the added time to compile comes from. Compilation seems to progress 'correctly', but something that takes twice as long (because of what appears to be a bug causing luaotfload to run every time a file is compiled, is not an 'update'. Wonder if its related to the following. If I bring up and admin cmd console, and run `mkluatexfontdb -f -vvv` I get an error: > >     mklualatexdb: Windows API Error 5: Access is denied >     mklualatexdb: Data: C://Documents and settings >   When I run this on my other machines - which I have not 'updated' runs fine. Suggestions?


title: Using sans font for tick labels in pgfplots

text: I am using a sans font for my figures. Hence I also want the tick labels of the pgfplots to be in sans. The tick labels, however, are set in a math enviroment. So changing the text font does not change anythings here. I have seen a possible solution here on tex.SE. The problem is that get many error messages like that:               ! LaTeX Error: Symbol font `um_fam1' not defined.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.23        \end{axis}      I think the problem is that a non-math font is used with `unicode-math`, which is not the intended use case for `unicode-math`. I really tried many ways to change the math font to sans, see for example here, but the essence is that a sans math font is not possible. Since it is not possible to use a sans math font, maybe it is possible to change the pgfplots to use not an mathematical enviroment. I'm asking here, if it is possible to patch `pgfplots` to use an non mathematical enviroment for the tick labels? I understand this enviromnent is needed for fractions or some log scales. But I actually don't use those. So I'm fine with a solution ignoring those cases. The only important characters are digits and commas.               % !TeX program = lualatex     \documentclass{article}          \usepackage{siunitx}     \sisetup{locale = DE}          \usepackage{unicode-math}     \setmainfont[Ligatures=TeX, Numbers=OldStyle]{TeX Gyre Pagella}     \setmathfont{TeX Gyre Pagella Math}     % In reality I do not use Adventor but another sans font     \setsansfont{TeX Gyre Adventor}          \usepackage{pgfplots}     \pgfplotsset{compat=1.10}     \SendSettingsToPgf          \begin{document}         \begin{tikzpicture}[font=\sffamily]             \begin{axis}[xlabel=x direction, ylabel=y direction, xmin=-1, xmax=1,domain=-1:1]                 \addplot {x^2};             \end{axis}         \end{tikzpicture}              \textsf{1,2,3,4,5,6,7,8,9,0}     \end{document}      ![enter image description here](http://i.stack.imgur.com/ESfD9.png) * * *


title: using the chronology package with babel french option

text: I'm trying to use the chronology package and it works fine with the english option in the babel package but if I use               \usepackage[french]{babel}      It doesn't work anymore. I've found a solution (that I don't understand) on a french forum. It says I can use               \usepackage[babel=true,kerning=true]{microtype}      It works fine with a simple example like this :               \documentclass[10pt,a4paper]{report}     \usepackage[T1]{fontenc}     \usepackage[francais]{babel}     \usepackage{chronology}     \usepackage[babel=true,kerning=true]{microtype}          \begin{document}     \chapter*{Introduction}     \begin{chronology}[5]{1983}{2010}{10cm}[7cm]     \event{1984}{\color{blue}{one}}     \event[1985]{1986}{\small{two}}     \event{\decimaldate{25}{12}{2001}}{\huge{three}}     \end{chronology}     \end{document}      Yet my text throw an exception :               ! pdfTeX error (font expansion): auto expansion is only possible with scalablefonts.\AtBegShi@Output ...ipout \box \AtBeginShipoutBox\fi \fi \chapter      on this line :               \chapter{Environnement de travail}      I'm fairly new to Latex and I guess that a encoding problem with the font but I have no idea about the solution. **EDIT** :               \documentclass[10pt,a4paper]{report}     \usepackage[utf8]{inputenc}     \usepackage[french]{babel}     \usepackage[T1]{fontenc}     \usepackage{chronology}     \usepackage{placeins}     \usepackage[babel=true,kerning=true]{microtype}     \title{test}          \begin{document}     \chapter{L'environnement de travail}     \section{Le groupe}     \subsection{Historique}          \vspace{1cm}     \begin{chronology}[5]{1964}{2012}{20cm}[10cm]     \event{1864}{Création}     \end{chronology}     \vspace{1cm}          Lorem ipsum dolor sit amet, consectetur adipiscing elit. In mollis odio tortor, a ultrices neque posuere vitae. Aenean nec arcu nec lorem luctus dictum.          \end{document}      This doesn't work. But if I delete the lorem ipsum It works fine.


title: How can one make RStudio pass options to Sweave()?

text: I'm trying to use a UTF-8 encoded .Rnw file in combination with xelatex in RStudio. Since xelatex uses native UTF-8 support i cannot use               \usepackage[utf8]{inputenc}      in my .Rnw file, which would ensure that the encoding auto-guessing of Sweave() works properly. The only other option I know of is to run               Sweave(..., encoding="utf8")      however, I don't know how to configure RStudio to call `Sweave()` that way. Is there an option in RStudio for that, or any other way to pre-set this option for Sweave?


title: Big brackets around Text

text: I want to create a big single curly bracket over a paragraph of text. I will be using this for many, many paragraphs. I want to make it left and/or right idented. This is for a conversational styled work. **Edit 1:** What I want: ![http://imgur.com/eD89EPb](http://i.stack.imgur.com/F9pAr.png) I would like to know the same for square brackets, too. I've tried using some normal math modes, but the text goes off the page. **Edit 2** : I'm now using the first response here: by Peter Grill: Dynamically sized brackets/parentheses for text How can I get the LEFT bracket to "work" without all the text being compressed on one side? I get badness 10000. Dump:               \documentclass[12pt]{memoir}          \newcommand{\LBracket}[4][0.1\textwidth]{%     \begin{math}%       \left.%        \parbox{#1}{#3}\vphantom{\parbox{#1}{#4}}%       \right#2%       \parbox{#1}{#4}\vphantom{\parbox{#1}{#3}}%     \end{math}     }%          \newcommand{\RBracket}[4][0.9\textwidth]{%     \begin{math}%       \left.%        \parbox{#1}{#3}\vphantom{\parbox{#1}{#4}}%       \right#2%       \parbox{#1}{#4}\vphantom{\parbox{#1}{#3}}%     \end{math}     }%               \begin{document}               \RBracket{)}     {Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsu}     {Words}% Use a round )          \LBracket{\{}     {Words}     {Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsu}% ETC               \end{document}      **Edit 3:** In the interim: i'm using Werner's response in the link above. I am able to rescale without much trouble. But changing symbols is I cannot do. How can I change the bracket symbol? e.g. to { or [ etc.? I cannot find where this controlled for in the code.               \documentclass[11pt]{memoir}     \usepackage[margin=15mm]{geometry}% http://ctan.org/pkg/geometry      \usepackage{xparse}% http://ctan.org/pkg/xparse      \usepackage{varwidth}% http://ctan.org/pkg/varwidth      \begin{document}           \newsavebox{\leftbox} \newsavebox{\rightbox}%          \NewDocumentCommand{\lrboxbrace}{s O{0.05\linewidth} m O{0.8\linewidth} m}{% \lrboxbrace[<lwidth>]{<ltext>}[<rwidth>]{<rtext>}       \begin{lrbox}{\leftbox}% Left box         \IfBooleanTF{#1}% starred/unstarred           {\begin{varwidth}{#2}#3\end{varwidth}}           {\begin{minipage}{#2}#3\end{minipage}}       \end{lrbox}       \begin{lrbox}{\rightbox}% Right box         \IfBooleanTF{#1}% starred/unstarred           {\begin{varwidth}{#4}#5\end{varwidth}}           {\begin{minipage}{#4}#5\end{minipage}}       \end{lrbox}       \ensuremath{\left.\usebox\leftbox\rule{0pt}{\ht\rightbox}\right\}\usebox\rightbox}     }            \lrboxbrace%        {Word}%        {Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifend      tincidunt enim, eu tincidunt felis auctor quis. Aenean eget enim urna.      Pellentesque tincidunt adipiscing velit a fermentum. \endgraf         Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eleifend      tincidunt enim, eu tincidunt felis auctor quis. Aenean eget enim urna.      Pellentesque tincidunt adipiscing velit a fermentum.}                \end{document}      **Edit 4:** For the paragraph with only one bracket, I'm trying to figure a solution. Went I try to leave an empty space in the brackets where "Word" would be, it causes a misalignment. The two paragraphs are no longer placed perfectly underneath each other. The one with {} is positioned slightly left to the first paragraph. Obviously this is due to the proportional sizes specified. But I want that to remain so it can adjust according to any document specific. But in the interim I put an underscore there, but it brings up bad errors. What should I do? Tex:               \documentclass[oldfontcommands,12pt]{memoir}     \usepackage[margin=1in, paperwidth=8.5in, paperheight=11in]{geometry}% http://ctan.org/pkg/geometry     \usepackage{xparse}% http://ctan.org/pkg/xparse     \usepackage{varwidth}% http://ctan.org/pkg/varwidth     \usepackage{musixtex}     \usepackage{feyn}     \usepackage{feynmp}          % Bracket commands:     %% Box array setup:     \newsavebox{\leftbox} \newsavebox{\rightbox}%     %%% Box Bracket Command:     \NewDocumentCommand{\boxbrace}{s O{\{} O{\}} O{0.05\linewidth} m O{0.8\linewidth} m}{% \lrboxbrace[<lbrace>][<rbrace>][<lwidth>]{<ltext>}[<rwidth>]{<rtext>}      \begin{lrbox}{\leftbox}% Left box         \IfBooleanTF{#1}% starred/unstarred           {\begin{varwidth}{#4}#5\end{varwidth}}           {\begin{minipage}{#4}#5\end{minipage}}       \end{lrbox}       \begin{lrbox}{\rightbox}% Right box         \IfBooleanTF{#1}% starred/unstarred           {\begin{varwidth}{#6}#7\end{varwidth}}           {\begin{minipage}{#6}#7\end{minipage}}       \end{lrbox}       \ensuremath{\usebox\leftbox\left#2\,\usebox\rightbox\,\right#3}     }               %%%%%%%%%%%%%%%%%%%%%%%%%%           \begin{document}          Example of full brackets on both sides. By default it fully covers     both sides of the paragraph.     \begin{center}       \boxbrace {abc}%       {Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed       eleifend tincidunt enim, eu tincidunt felis auctor quis. Aenean eget       enim urna.  Pellentesque tincidunt adipiscing velit a       fermentum. \endgraf Lorem ipsum dolor sit amet, consectetur       adipiscing elit. Sed eleifend tincidunt enim, eu tincidunt felis       auctor quis. Aenean eget enim urna.  Pellentesque tincidunt       adipiscing velit a fermentum.}     \end{center}          Example of only one bracket: just fill the relevant comment area with     a single full stop.     \begin{center}       \boxbrace [\lbrace][.] {abc}%       {Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed       eleifend tincidunt enim, eu tincidunt felis auctor quis. Aenean eget       enim urna.  Pellentesque tincidunt adipiscing velit a       fermentum. \endgraf Lorem ipsum dolor sit amet, consectetur       adipiscing elit. Sed eleifend tincidunt enim, eu tincidunt felis       auctor quis. Aenean eget enim urna.  Pellentesque tincidunt       adipiscing velit a fermentum.}     \end{center}          With a second one to follow     \begin{center}       \boxbrace [.][\rbrace] {_}%       {Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed       eleifend tincidunt enim, eu tincidunt felis auctor quis. Aenean eget       enim urna.  Pellentesque tincidunt adipiscing velit a       fermentum. \endgraf Lorem ipsum dolor sit amet, consectetur       adipiscing elit. Sed eleifend tincidunt enim, eu tincidunt felis       auctor quis. Aenean eget enim urna.  Pellentesque tincidunt       adipiscing velit a fermentum.}     \end{center}          Errors turn up here. Otherwise with just a space it's misaligned like     this:     \begin{center}       \boxbrace [.][\rbrace] { }%       {Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed       eleifend tincidunt enim, eu tincidunt felis auctor quis. Aenean eget       enim urna.  Pellentesque tincidunt adipiscing velit a       fermentum. \endgraf Lorem ipsum dolor sit amet, consectetur       adipiscing elit. Sed eleifend tincidunt enim, eu tincidunt felis       auctor quis. Aenean eget enim urna.  Pellentesque tincidunt       adipiscing velit a fermentum.}     \end{center}          \end{document}      **Edit 5:** Bach again! Currently attempting a dual bracket thing: where word {para}{para} word are all on one line. I'm trying to play around with the code. But I cannot seem to get it to work. Here's my attempt. Any advice much appreciated! Command:                 %% Dual Convo Bracket Command:       \NewDocumentCommand{\dboxbrace}{s O{\{} O{\}} O{0.05\linewidth} m O{0.4\linewidth} m  }{% \lrboxbrace[<lbrace>][<rbrace>][<lwidth>]{<ltext>}[<rwidth>]{<rtext>}              \begin{lrbox}{\leftlatbox}% Left Lateral box           \IfBooleanTF{#1}% starred/unstarred             {\begin{varwidth}{#4}#5\end{varwidth}}             {\begin{minipage}{#4}#5\end{minipage}}         \end{lrbox}         \begin{lrbox}{\rightmedbox}% Right Medial box           \IfBooleanTF{#1}% starred/unstarred             {\begin{varwidth}{#6}#7\end{varwidth}}             {\begin{minipage}{#6}#7\end{minipage}}         \begin{lrbox}{\leftmedbox}% Left Medial box           \IfBooleanTF{#1}% starred/unstarred             {\begin{varwidth}{#4}#5\end{varwidth}}             {\begin{minipage}{#4}#5\end{minipage}}         \end{lrbox}         \begin{lrbox}{\rightlatbox}% Right Lateral box           \IfBooleanTF{#1}% starred/unstarred             {\begin{varwidth}{#6}#7\end{varwidth}}             {\begin{minipage}{#6}#7\end{minipage}}               \end{lrbox}         \ensuremath{\usebox\leftlatbox\left#2\usebox\rightmedbox\right#3\left#2\usebox\leftmedbox\right#3\usebox\rightlatbox}       }      Example of attempted use                 %% Example of dual Work       \begin{center}           \dboxbrace {word} {Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed         eleifend tincidunt enim, eu tincidunt felis auctor quis. Aenean eget         enim urna.  Pellentesque tincidunt adipiscing velit a         fermentum. \endgraf Lorem ipsum dolor sit amet, consectetur         adipiscing elit. Sed eleifend tincidunt enim, eu tincidunt felis         auctor quis. Aenean eget enim urna.  Pellentesque tincidunt         adipiscing velit a fermentum.} {Lorem ipsum dolor sit amet, sectetur   adipiscing elit. Sed         eleifend tincidunt enim, eu tincidunt felis auctor quis. Aenean eget         enim urna.  Pellentesque tincidunt adipiscing velit a         fermentum. \endgraf Lorem ipsum dolor sit amet, consectetur         adipiscing elit. Sed eleifend tincidunt enim, eu tincidunt felis         auctor quis. Aenean eget enim urna.  Pellentesque tincidunt         adipiscing velit a fermentum.} {word}             \end{center}


title: Incompatibility between mdframed and todonotes?

text: Is there an incompatibility between `mdframed` and `todonotes`? For example, try this:               \documentclass{article}     \usepackage{mdframed}     \usepackage{todonotes}     \begin{document}     \begin{mdframed}       x\todo{y}     \end{mdframed}     \end{document}      Is there a trick to avoid it?


title: How do I customize a WikiPublisher tex file?

text: I've been using WikiPublisher (an addon for pmwiki) with quite a bit of success. Lately though, I have been wanting to customize the tex file that is used to generate the final pdf file from a wikitrail page. WikiPublisher generates XML on the fly and then converts that to Tex. but there must be templates somewhere that allow me to add custom code. In fact, there is a `template` folder in the `wikibook` folder that is installed with the package, but the structure is complicated and it is not clear that the file (or files) I need to edit is even in there, or is it in a LateX installation folder? After spending hours of going through the code I decided I would check to see if somebody has already gone through the effort and discovered how to do this. Thanks for any information. I have discovered that it is running the `pdftex` executable and building from xml files created in the `tmp` folder. What templates are likely being referenced or how can I tell which ones are? I have very little experience with LaTeX, but I do have an idea of what code I can add to manipulate the properties I want.


title: store duplicated qtree subtrees for convenience

text: I am making a tree that reflects a number of different sequential choices. The lower parts of the tree will be repeated, so I'd like to store them in some shorter definition earlier on to make it possible to modify them and keep the code clean. MWE:               \documentclass[11pt]{article}     \usepackage{qtree}     \title{Map}          \begin{document}          \maketitle          \Tree[.O.2-30Hz [.{Raw Stats} [.Ensemble Bag                                               [.Boost Ada Total LP ] ]                     [.LDA [.SWLDA ]]]               [.PCA [.Ensemble Bag                                               [.Boost Ada Total LP ] ]                     [.LDA [.SWLDA ]]]]          \end{document}      ![mwe](http://i.stack.imgur.com/Co6qg.png) How can I store the redundant parts of the tree separately in the TeX?


title: Problem with yasnippet in emacs + autex

text: I am newbie in Emacs + AucTeX and trying to get familiar with auto-complete mode in editing LaTeX. Auto-complete is a fantastic attribute, but I don't understand the follow problem: Auto-complete can help me when I use `TAB` > \usepac   >  \usepackage[opt1, ...]{Package} But if I regret and try to use backspace to cancel it > usepackage[opt1, ...]{ the command line shows > "Exist the snippet first !" and this line becomes undeletable. How can I do?


title: Why do the following nested loops spin beyond my expectation?

text: Let's consider the following code that reflects my simplified scenario. I want to show a distinct integer for each slides. Of course the real scenario is not to do such a silly thing.               \documentclass{beamer}     \usepackage{pgffor}          \begin{document}     \begin{frame}     \foreach \x in {0,1,2}{%         \foreach \y in {0,1}{%             \only<\numexpr2*\x+\y+1\relax>{\numexpr2*\x+\y+1\relax}}}     \end{frame}     \end{document}      My question is why do nested loops spin beyond my expectation? Theoretically there should be 6 slides in total.


title: Multirow not working for subplots

text: I tried to add a colorbar to a figure consisting of six subplots. In my MWE, I have replaces them with letters to spare you the extra hassle:               % Einstellung der Dokumentklasse für A4 und weitere Optionen     \documentclass[12pt, a4paper, bibliography=totoc, listof=totoc, parskip=half, numbers=noenddot]{scrreprt}          \usepackage[utf8]{inputenc}     \usepackage{textcomp}     \usepackage[english, ngerman]{babel}     \usepackage[babel,german=quotes]{csquotes}     \usepackage{siunitx}     \usepackage{ziffer}     \usepackage{float}     \usepackage{subcaption}     \usepackage{multirow}     \usepackage{lmodern}     \renewcommand{\familydefault}{\sfdefault}     \usepackage{tikz, tikz-3dplot, pgfplots}     % Zahlen mit Einheiten setzen     \usepackage{siunitx}     \usepackage{tikz, tikz-3dplot, pgfplots}     \pgfplotsset{compat=1.9}          \begin{document}          \begin{figure}[p]         \centering         \begin{tabular}{cccc}         \begin{subfigure}[b]{0.25\textwidth}             \centering             \resizebox{3.5cm}{!}{A}             \caption{Zeitschritt 31}             \label{fig:develops031}         \end{subfigure}~         &         \begin{subfigure}[b]{0.25\textwidth}             \centering             \resizebox{3.5cm}{!}{B}             \caption{Zeitschritt 51}             \label{fig:develops051}         \end{subfigure}~         &         \begin{subfigure}[b]{0.25\textwidth}             \centering             \resizebox{3.5cm}{!}{C}             \caption{Zeitschritt 71}             \label{fig:develops071}         \end{subfigure}         &          \multirow{2}{*}{             \begin{subfigure}[b]{0.25\textwidth}                 \centering                           \begin{tikzpicture}                     \begin{axis}[                         hide axis,                         scale only axis,                         height=0pt,                         width=0pt,                         colormap/hot2,                         colorbar right,                         point meta min=300,                         point meta max=3133,                         colorbar style={height=8cm}]                                                     \addplot [draw=none] coordinates {(0,0)};                     \end{axis}                 \end{tikzpicture}             \end{subfigure}         }\\          \begin{subfigure}[b]{0.25\textwidth}             \centering             \resizebox{3.5cm}{!}{D}             \caption{Zeitschritt 91}             \label{fig:develops091}         \end{subfigure}         &         \begin{subfigure}[b]{0.25\textwidth}             \centering             \resizebox{3.5cm}{!}{E}             \caption{Zeitschritt 111}             \label{fig:develops111}         \end{subfigure}         &         \begin{subfigure}[b]{0.25\textwidth}             \centering             \resizebox{3.5cm}{!}{F}             \caption{Zeitschritt 131}             \label{fig:develops131}         \end{subfigure}         &\\         \end{tabular}         \caption{Entwicklung der Temperaturen im Längsschnitt}         \label{fig:referenz_development_section}     \end{figure}     \end{document}      And I get this result: ![enter image description here](http://i.stack.imgur.com/smJiE.png) The problem is the colorbar, it is not in the place it should be. It should span both rows but it looks like it is only in the lower row. I have also tried moving the colorbar to the last place and calling               \multirow{-2}{*}{...      But that yields the same result. How can I archive the desired result, with the colorbar being on the right side of "both rows" ?


title: How to work with command \input{filename.tex}?

text: I'm writing a book with lots of chapters using a command `\input{filename.tex}` for each chapter in the book `book.tex`. How to make it not to have `book.tex` and all `filename.tex` in the same directory? Is it possible to have directory `book.tex` with subdirectories `filename.tex`?


title: Remove "white parts" of tikz picture

text: I have a tikz picture, which consists of a visible part on the left side and a white part on the right side (for some constructive reasons). Now I would like to redefine the size so that the new picture just consists of the left part (without scaling). How do you do that?


title: subfigures in array

text: How do I create a figure using subfigures with this alignment?:               |figure 1 | figure 3 | figure 4 |     |figure 2 |          |          |      Note that I want figure 3 to be in both rows and figure 4 to be in both rows as well. I have seen that the `multirow` package is necessary, however if I use it I am getting a wrong ordering (horizontal instead of vertical). Is there anyway to bypass this? This is a followup question to this one: how to put subfigures in several rows Note that the solution is essentially the same, but I am having trouble labelling the order of the subfigures. EDIT: Code seems to work this way! *I'm using the subfigure package instead.               \begin{figure}[t]     \setlength{\abovecaptionskip}{-5pt}     \setlength{\belowcaptionskip}{-5pt}     \addtolength{\subfigcapskip}{3pt}          \centering     \begin{tabular}{ccc}     \subfigure[car image pair]{\includegraphics[scale=0.17]{car_example.jpg}     \label{fig:img_pair_1}} &      \multirow{-4}[2.5]{*}{\subfigure[car image set]{\includegraphics[scale=0.136]{car_total.jpg}         \label{fig:img_complete_1}}} &     \multirow{-4}[2.5]{*}{\subfigure[animal image set]{\includegraphics[scale=0.136]{aww_total.jpg}     \label{fig:img_complete_2}}} \\     \subfigure[animal image pair]{\includegraphics[scale=0.17]{aww_example.jpg}     \label{fig:img_pair_2}}\\     \end{tabular}     \vspace{10pt}     \caption[]{Caption}     \label{fig:affinity}     \vspace{-10pt}     \end{figure}


title: Writing a text as LyX user together with an LaTeX user?

text: > **Possible Duplicate:**   >  Can I think of LyX as a LaTeX IDE? I know that LyX can import and export LaTeX. But e.g. comments and formatting of the LaTeX code is lost every time. If I send my text for some small corrections to my co-worker, this is really a problem. Is there a different solution or work-a-round? LyX has become a _really_ good program. I think this is really the crucial point, why often you can't use it.


title: Front-end for pdfpages

text: I use following `.tex` file very much for printing books, booklets, etc               \documentclass{article}     \usepackage{pdfpages}          \begin{document}     \includepdf[pages={4-8},nup=1x2,frame,landscape]{xyz.pdf}     \end{document}       I wanted ideas on making a front-end for this repeatedly used file. Like having file add options, parameter setup (for `pdfpages`, ex : `pages={3-45}`, or `nup=3x1` or `frame=true` or `signature=8`, etc) etc; and then have a button to execute the commands at the back-end and get the PDF preview as the final step My questions:   1. Is it possible to make something like this?   2. If it is possible to do it, how -- as in, are there predefined ways?   3. Are there tools already doing something like this?


title: drawing water droplets with tikz

text: I have drawn a few arrows as follows:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{decorations.pathmorphing, arrows.meta, arrows}     \begin{document}          \begin{tikzpicture}[>=Stealth]     \draw [line width = 1pt, decorate, decoration = {snake, amplitude = 1mm, segment length = 1cm, post length = 1mm},arrows={->[length=0.5cm,width=0.5cm]}] (-3,-1) -- (-3,1);     \draw [line width = 1pt, decorate, decoration = {snake, amplitude = 1mm, segment length = 1cm, post length = 1mm},arrows={->[length=0.5cm,width=0.5cm]}] (-2,-1) -- (-2,1);     \end{tikzpicture}          \end{document}      I am now wondering if it is possible to draw water droplets falling down from each side of each arrow. I know I can get an svg of a water droplet and then add that one in but I was wondering if this has already been done with tikz?


title: Why is the \underbrace off the line?

text: I have the following problem with `\underbrace`: ![underbrace](http://i.stack.imgur.com/4APQU.png) As you can see, the third underbrace and its comment are not in the line with the first two. Here is my code:               \documentclass[a4paper,12pt]{article}     \usepackage{amsmath}     \begin{document}          $\underbrace{\text{A long word}}_{=a}$,     $\underbrace{\text{Another long word}}_{=b}$,     $\underbrace{\text{Word}}_{=c}$          \end{document}      Update: It looks like it's because of the `g`'s and not the length. But still: is there a way to make them in the line?


title: How can I make a horizontal dashed line?

text: How can I make a horizontal dashed line in LaTeX? Just writing lots of single dashes results in a continuous horizontal line.


title: Reference list: Suppressing dots after companies names using biblatex

text: \documentclass[12pt,ngerman,twoside]{article}      \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel}      \usepackage[backend=biber,style=apa]{biblatex}      \usepackage[german=quotes]{csquotes}     \usepackage[locale=US]{siunitx}     \DeclareLanguageMapping{ngerman}{ngerman-apa}     \addbibresource{Test.bib}           \begin{document}          Test cite \parencite{Duden.2014}.          \printbibliography          \end{document}      I want to cite:               @Misc{Duden.2014,       Title                    = {{E}valuation},            Author                   = {Duden},       Year                     = {2014},            Url                      = {http://www.duden.de/rechtschreibung/Evaluation},       Urldate                  = {2014-06-18}     }      In the bibliography, it results in (ignore the a, it's due to multiple citing of Duden): ![enter image description here](http://i.stack.imgur.com/VX0GP.jpg) How can I eliminate the unwanted dot after Duden? The problem occurs in all the specific cases of not citing an author like Mustermann, M. (2014).... but citing a company/institution.


title: DALEIF1 margin top

text: I am new guy on texstackexchange... I am using the daleif1 theme for my heading :                \documentclass{memoir}         \usepackage{color,calc,graphicx,soul,fourier}         \definecolor{nicered}{rgb}{.647,.129,.149}         \makeatletter         \newlength\dlf@normtxtw         \setlength\dlf@normtxtw{\textwidth}         \def\myhelvetfont{\def\sfdefault{mdput}}         \newsavebox{\feline@chapter}         \newcommand\feline@chapter@marker[1][4cm]{%           \sbox\feline@chapter{%             \resizebox{!}{#1}{\fboxsep=1pt%               \colorbox{nicered}{\color{white}\bfseries\sffamily\thechapter}%             }}%           \rotatebox{90}{%             \resizebox{%               \heightof{\usebox{\feline@chapter}}+\depthof{\usebox{\feline@chapter}}}%             {!}{\scshape\so\@chapapp}}\quad%           \raisebox{\depthof{\usebox{\feline@chapter}}}{\usebox{\feline@chapter}}%         }         \newcommand\feline@chm[1][4cm]{%           \sbox\feline@chapter{\feline@chapter@marker[#1]}%           \makebox[0pt][l]{% aka \rlap             \makebox[1cm][r]{\usebox\feline@chapter}%           }}         \makechapterstyle{daleif1}{           \renewcommand\chapnamefont{\normalfont\Large\scshape\raggedleft\so}           \renewcommand\chaptitlefont{\normalfont\huge\bfseries\scshape\color{nicered}}           \renewcommand\chapternamenum{}           \renewcommand\printchaptername{}           \renewcommand\printchapternum{\null\hfill\feline@chm[2.5cm]\par}           \renewcommand\afterchapternum{\par\vskip\midchapskip}           \renewcommand\printchaptertitle[1]{\chaptitlefont\raggedleft ##1\par}         }         \makeatother         \chapterstyle{daleif1}      ![enter image description here](http://i.stack.imgur.com/swlCM.png) I would like to have the red box in the top left hand corner. I have been trying for hours without any results... Does anyone can help me please ? Thanks.


title: How do I create a variant of the snugshade box from the framed package to wrap my definition environments in a blue box?

text: I'm already using snugshade to wrap my theorem environments in a grey box, but I'd like to have another bounding box just like snugshade to wrap my definitions in a blue box instead. Here is my code:                   \documentclass[english,nohyper]{tufte-handout}         \usepackage{amsthm}         \usepackage{amsmath}         \usepackage{amssymb}              \makeatletter         %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.         \usepackage{enumitem}       % customizable list environments           \theoremstyle{definition}           \newtheorem{defn}{\protect\definitionname}           \theoremstyle{remark}           \newtheorem*{rem*}{\protect\remarkname}           \theoremstyle{definition}           \newtheorem*{example*}{\protect\examplename}         \theoremstyle{plain}         \newtheorem{thm}{\protect\theoremname}              %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.              \usepackage[dvipsnames]{xcolor}         \usepackage{framed}         \definecolor{shadecolor}{RGB}{236,236,236} %defines color of snugshade box         \setcounter{secnumdepth}{2}         \setcounter{tocdepth}{2}         \renewcommand{\sectionmark}[1]{%           \markboth{}{\thesection.\ #1}}              \makeatother              \usepackage{babel}           \providecommand{\definitionname}{Definition}           \providecommand{\examplename}{Example}           \providecommand{\remarkname}{Remark}         \providecommand{\theoremname}{Theorem}              \begin{document}         \begin{snugshade}         \begin{defn}         Let $A\subseteq\mathbb{R}$ and let $f:A\rightarrow\mathbb{R}$, we         say that $f$ is \textbf{continuous }on $A$, if given $\varepsilon>0$         and $u\in A$, there exists a $\delta_{\varepsilon,u}>0$, perhaps         depending on $u$, such that          \[         \left|f\left(x\right)-f\left(u\right)\right|<\varepsilon\quad\text{whenever }x\in A\text{ and }\left|x-u\right|<\delta_{\varepsilon,u}         \]          Essentially to say that a function $f$ is continuous on $A$ is         to say that $f$ is continuous at every point $u\in A$.\end{defn}         \end{snugshade}              \begin{snugshade}         \begin{thm}         More text\end{thm}         \end{snugshade}         \end{document}


title: How can I have a bigger integral (\int) delimiter?

text: I'm writing some integrals and I don't like the way the `\int` symbol is displayed when it is followed by a big delimiter. Here's the code:               \[     \int_S\biggl(\nabla\times\bar B - \mu_0\bar J -     \mu_0\varepsilon_0\frac{\partial\bar E}{\partial t}\biggr) \cdot\hat n\,ds = 0     \]      And here's the output: ![alt text](http://i.stack.imgur.com/eUOu6.png) What I'd like to have is an integral sign taller than the parenthesis, as if it would have a sort of `\bigg` command right before. Is there any way to do this, or the `\int` symbol is impossible to modify?


> **Possible Duplicate:**   >  How can I have a bigger integral (\int) delimiter? Please tell me where could I find a large integral symbol, matching a matrix of 3 rows.


title: nomenclature in a specific way

text: I want to make my nomenclature using `nomencl` to look like ![enter image description here](http://i.stack.imgur.com/uQcCv.jpg) taken from here but I have no idea how to do it. How would the `nomencl.cfg` file have to look like, and would I what changes would I have to make to the `nomencl.ist` file?


title: Awkward line spacing with \LARGE font size

text: I'm confused about the look of my rendered output. It looks strange. I'm not doing anything special, but it looks like there is not enough vspace between the lines? The letters are almost touching. I googled a lot but could not find anything about this. MWE:               \documentclass{scrbook}     \begin{document}     \begin{center}     \vspace{50mm}     {\LARGE\textbf{Development of Self-Cleaning Clothes for Everyone that is Busy All The Time}}     \end{center}     \end{document}      ![enter image description here](http://i.stack.imgur.com/lN88l.gif)


title: How to typeset and annotate a polynomial long division

text: I need to type a paper for a teacher, who hasn't seen the European division method, so that she could possibly use it in her curriculum. I need something to look like this               x^2+4x+4       Box(x+2)      -(x^2 + 2x)     ----------------     2x+4      -(2x + 4)     -----------------     0


title: TikZ in Beamer: subscope does not inherit `visible on` from parent scope

text: In the MWE below, I define a macro `\markxy` that draws dashed lines from a point to the x and y axes to indicate the x/y coordinates. Since I don't want the dashed lines to be drawn over my other "more important" lines, I collected the contents of `\markxy` within a scope and set it to be on the background layer. I use the `visible on` key to create overlay effects. To save on typing, I group everything that is shown on frame 2 (including a `\markxy` path) within a scope and pass `visible on=<2->` to that scope. However, the `\markxy` command doesn't seem to inherit the option from the scope. **I would like to understand why this is the case, and how to correct this.** (My current solution is to copy the scope options and add them to `\markxy`. But this is not very efficient.) # MWE               \documentclass{beamer}     \usepackage{tikz}     \usetikzlibrary{intersections,backgrounds,scopes}     \tikzset{       % use option [visible on=<+->] to uncover parts of a tikzpicture       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       },     }     \newcommand\axes[3][]{       \draw[<->,#1](0,10)node[left]{$#3$}--(0,0)--(10,0)node[below]{$#2$};     }     \newcommand\markxy[4][]{       \scoped[on background layer]       \draw[dashed,#1](#2-|0,0)node[left]{$#3$}--(#2)--(#2|-0,0)node[below,anchor=base,yshift=-9pt]{$#4$};     }          \begin{document}     \begin{frame}     Frame \insertpagenumber\centering          \begin{tikzpicture}[font=\scriptsize,scale=.5]       \draw[thick,name path=nd1](1,8)to[bend right=8](8,3)node[right]{$N^d$};       \draw[thick,name path=ns1](5,1)to[bend right=8](9,6)node[above]{$N^s_1(r_1)$};       \filldraw[name intersections={of=nd1 and ns1,by=ne1}](ne1)circle[radius=4pt];       \markxy{ne1}{w_1}{N_1}       \begin{scope}[visible on=<2->,orange]         \draw[thick,name path=ns2,](1,3)to[bend right=8](5,8)node[above]{$N^s_2(r_1)$};         \filldraw[name intersections={of=nd1 and ns2,by=ne2},](ne2)circle[radius=4pt];         \markxy[]{ne2}{\widetilde w_2}{\widetilde N_2}       \end{scope}       \axes{N}{w}     \end{tikzpicture}     \end{frame}     \end{document}      # Output (wrong) from MWE ![enter image description here](http://i.stack.imgur.com/KCVxe.gif) # Desired Output ![enter image description here](http://i.stack.imgur.com/4mPjN.gif)


title: How to draw a border around character in a formula?

text: So far everything I found on the matter of borders only applies to the text mode. I want to be able to do something like               $x_i = y$      so the result will be like the ordinary "xi = z" formula with the border around "i"? The common answers seems to be the **fbox** or **boxed** commands. Yet they render their argument in the standart mode, unless specified to do otherwise with the specific mode. For example, the following code               \[ x_i, \boxed{x}_i, x_{\boxed{i}}, \boxed{x}_{\boxed{i}} \]      produces two normal xi figures, and another two with an oversized `i`.