title: algorithm package: Comment on "for" loop does not work?

text: It seems that `\COMMENT` in the `algorithm` package is broken. It gives an error when used in a `FOR` or `FORALL` line, so the first comment gives a compilation error:               \begin{algorithm}[ht]       \caption{My algorithm}       \begin{algorithmic}        \FORALL{$p \in P$}   \COMMENT{loop over all puppies}        \STATE PatPuppy($p$) \COMMENT{sooo nice!}        \ENDFOR       \end{algorithmic}     \end{algorithm}      The error is:               Something's wrong--perhaps a missing \item.     leading text:     \FORALL{$p \in P$}      Is there a workaround? I really need to display a comment on that line.


title: Bold square brackets

text: How do I typeset a bold square bracket? I need to typeset it about 3 times thicker than it is (to denote a specific mathematical operator). `{\bf[}` does not do this. Things like `[\\![` do not seem to produce good quality. "The Comprehensive LaTeX Symbol List" does not seem to mention an appropriate symbol.


title: Roman numerals in frontmatter are skipping some numbers

text: I have the following document:               \documentclass{article}     \usepackage{titling, graphicx}     \title{Title goes here}     \author{Authors go here}     \date{}          \begin{document}     \include{title}          \pagenumbering{Roman}     \newpage     \thispagestyle{empty}     \mbox{}     \newpage     \tableofcontents     \newpage     \pagenumbering{arabic}          \section{Introduction}          \end{document}      What I expect from this is to have my title page inserted at the front, then a black page with no numbering, and then the table of contents starting at number I, and the page containing the Introduction section being number 1, however the table of contents is actually starting at number II. I've cross- referenced this code with that of two other documents I've written and I'm not entirely sure why it's not working as expected.


title: \placeongrid and \moveongrid not working in ConTeXt

text: I am trying to use the grid features in ConTeXt, but some of the commands are somehow not recognized by the compiler. Whenever I try to use the commands `\placeongrid` or `\moveongrid`, the compiler exits with an error message such as:               l.27 \moveongrid [both] ? >Exit code: -1073741510      the grid=yes option for the `\setuplayout` works well, but this is not what I intend to use. I have both the TeXLive 2012 package and the ConTeXt Standalone (ver. 2012.10.17), and both distributions produce the same error message. One concern is that when I try to update my ConTeXt standalone files, I get a message saying               The program can't start because kpathsea611.dll is missing from your computer. Try reinstalling the program to fix this problem.      I wonder if this has any relevance to the issue. Btw, I am on a Win7-x64 system.


title: LaTeX symbol for table sorting

text: I was wandering if there was some symbol that I could use in my tables, to give some visual information about which column is being used for ordering. By this, I mean those little triangles that are used pretty much everywhere when sorting via a column is involved, both up and down. Thanks.


title: Change paper size in mid-document

text: My document should be letterpaper and my attachments should be a4paper. I had high hopes for the `\newgeometry` command from the `geometry` package, but the documentation says > `\newgeometry` is almost similar to `\geometry` except that `\newgeometry` > disables all the options specified in the preamble and skips the papersize- > related options: `landscape`, `portrait` and paper size options (such as > `papersize`, `paper=a4paper` and so forth). Any help is appreciated!


title: Override global page style?

text: > **Possible Duplicate:**   >  Change paper size in mid-document How can I use default               \documentclass[a4paper]      styles in Title page, index pages, header and footer - but the text itself as if I were using               \documentclass[a4paper]     \usepackage[top=2.5cm, bottom=2.5cm, left=1.5cm, right=6cm]{geometry}      The point is - long lines are not convenient to read, while I want to use `A4` paper - to include code listings (I can exceed `right=6cm` manually in verbatim environment). And code listings look better at A4 paper (otherwise I have to cut lines all the time...) P.S. Actually I get `latex` from sphinx. But I'm interested in general solutions as well.


title: make one page 11x16 in middle of document?

text: So I am working on a report and I need to make a few of my report pages fold outs, thus 11x16 inches instead of the usual 8.5x11. How can I do this in tex?


title: How to draw a ring-like diagram with some labels on its arcs?

text: I would like to draw a figure that looks like the following scenario: Consider a circle of radius `$r$`, described parametrically by `$x = cos(t) and y = sin(t)$`. I'd like to draw a figure where the 90 to 180 degrees arc and the 270 to 360 arc are stretched by adding 1 to the previous point, while keeping the figure connected. Here is a sketch of the figure below: (x and y axis should not be included in the final figure). ![enter image description here](http://i.stack.imgur.com/JykZb.jpg) The respective labels are `$\Omega_1$`, `$\partial \varphi(1)$`, `$\partial \varphi (1)$`, `$t=0$`, `$t=1$`, `$t=0$`, `$t=1$`, `$\phi^2$`, `$\Omega_2$` Any help would be greatly appreciated. Here is part of the picture that I have drawn:               \begin{pspicture}(-.5,-.5)(3.5,3.5)     \psaxes[labels=none,ticks=none]{->}(0,0)(-.5,-.5)(3,3)[$x$,0][$y$,90]     \pscustom[fillstyle=solid,fillcolor=lightgray]     {      \psarc(0,0){2.5}{0}{90}      \psarcn(0,0){1.5}{90}{0}      \closepath        }        \rput(2;45){$\Delta \mathfrak{M}$}         \end{pspicture}      I'd also like to have an additional label `$\Delta \mathfrak{M}$` in each annulus as well as for them to be shaded.


title: using hobby MF font with LaTeX, adding accented characters

text: I created a hobby font with metafont. I would like to include some accents in the font, but I am not sure what is the standard way for accomplishing that (gogle was not very helpful), so that the font works with LaTeX (pdflatex, if needs be).   1. How can I load the font in LaTeX, so that it is used for characters which it defines, and some fallback font (with warning) is used for the rest? (in plain, I do just `\font\myFont=myFont \myFont`, but characters which are not defined are not typeset at all)   2. How to define shapes of accents, placed atop glyphs with `\'`, ...? I imagine this has to do with font encodings, such as `T1`?   3. I found virtual fonts HOWTO, which only mentions creating virtual font from PS fonts. Can I use metafont-generated fonts as well?   4. Do I need virtual fonts, or is there an easier alternative?   5. **EDIT:** I am considering using approach (and some scripts) from Lilypond: trace metafont with mftrace, then use fontforge scripts to create an OpenType font. (it needs mf log reading hackery, but could work) If I include accents as combining characters in OTF, they will work automatically with XeTeX? It looks like the easiest now, am I just being eluded? I am sorry if the questions are confused, I am new to fonts. Thanks for any pointers -- **PS:** I tried loading the font with XeLaTeX+fontspec but I get (ignota.tfm is in the current dir):               fontspec.cfg loaded.     (/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.cfg))     ! Undefined control sequence.     \zf@set@font@type ...onttype \zf@basefont \zf@tfm                                                        \or \zf@atsuitrue \ifnum \...     l.4 \setmainfont{ignota}      **PPS:** everybody loves screenshots :-) ![lorem ipsum](http://i.stack.imgur.com/Hsaae.png)


title: dpfloat isn't obeying my leftfullpage and fullpage directives

text: I'm using dpfloat for figures which are large (or have large captions) so I can have the caption on the left-hand side and the illustration on the right. It works until about page 50 of my dissertation, then three figures in a row have the caption starting on the right-hand side and the illustration starting on the very next left-hand side (so, they're offset by +1 pages). I imagine I must be doing something incredibly stupid to cause it to behave this way, but cannot for the life of me figure out what it is. Included below is the figure code.               %== Figure 2 ==     \begin{figure}[p]% should be left side, but prints on p. 52       \begin{leftfullpage}       {\caption[The matrix formalism for calculating phenolog overlaps]{\textbf{The matrix formalism for calculating phenolog overlaps} is         especially important when predicting between species where large         gene family expansions have occurred since         species divergence, such as between \textit{Arabidopsis} and         humans. The example uses human and mouse to illustrate the orthogroup-based matrix formalism.         (\textbf{a}) Phenotype associations (colors) are plotted as graphs for         genes from human (left nodes, subscripted $h$) and mouse (right         nodes, subscripted $m$), showing genes' orthology relationships (edges radiating from         orthogroups --- middle nodes, labeled $O$). The orthologies (from INPARANOID), are used         to ``translate'' phenotype associations         between species (in the case of the gene-based matrix         framework in panels (\textbf{b, c})) or into an intermediate collection of         orthogroup--phenotype associations (for the orthogroup-based         matrix framework in (\textbf{d})). Orthogroup vertices         (e.g., $O_A$) connect human and mouse orthologs (such as         $A_h$, $A'_h$, and $A''_h$, which are paralogs of one another         relative to the human--mouse divergence, with $A_m$ and $A'_m$. Red vertices within a species are genes         associated with the phenotype of interest ($\phi_h$ for human and         $\phi_m$ for the mouse phenotype); orthogroup colors reflect the species data.         These associations can alternately be captured by representing         the graphs as matrices (\textbf{b--d}), with bullets indicating an         association between a given genetic element and a         phenotype. Specifically, (\textbf{b}) and (\textbf{c}) represent the gene-based         formalism, and (\textbf{d}) illustrates the orthogroup-based         formalism. Human and mouse phenotype columns are indicated by         $\phi_h$ and $\phi_m$, respectively.}\label{fig2}}       \end{leftfullpage}     \end{figure}     \begin{figure}[p]% right side, but instead prints on p. 53.       \begin{fullpage}         {\includegraphics[width=1.0\textwidth]{knn-figs/final_f2.pdf}}       \end{fullpage}     \end{figure}      Any ideas? I'm not even really sure what extra information to provide.


title: Figure not printing

text: I have about 20 figures in my document. All of them compile and I get a nice pdf output but when I print a paper copy of my document, only the pages containing the first couple of figures print and the rest don't. I have tried this on five different printers and burned a lot of money on it. In my MWE below, I have included two figures. The first one is prints while the second one doesn't. Please help. Thanks. Code: (A lot of stuff in the preamble (?) is not relevant to the figures but I left it there just in case something there was tripping things up.) **EDIT: Edited to have the two pics on separate pages so when you print, the first page prints and the second page doesn't.**               \documentclass[12pt]{article}          \usepackage{float}     \usepackage{verbatim}     %\usepackage{pstricks,pst-node}     %\usepackage{pstcol}     %\usepackage{egameps}          \usepackage{cancel}     \usepackage[margin=1in]{geometry}  % set the margins to 1in on all sides     \usepackage{graphicx}        \usepackage{amsmath}                 \usepackage{amsfonts}           \usepackage{amsthm}            \usepackage{harvard}     \usepackage{setspace}     \usepackage{fullpage}     \usepackage{threeparttable}     \usepackage{amssymb}     \usepackage{comment}     \usepackage{leftidx}     \usepackage{tabularx}     %\usepackage{bbm}     %\usepackage{enumitem}     \usepackage{booktabs}     \usepackage{longtable}     \usepackage{color,soul}     \usepackage[titletoc,toc,page]{appendix}     \usepackage{hyperref}     \usepackage[all]{hypcap}     \usepackage{url}     \newtheorem{thm}{Theorem}[section]     \newtheorem{lem}[thm]{Lemma}     \newtheorem{prop}[thm]{Proposition}     \newtheorem{cor}[thm]{Corollary}     \newtheorem{conj}[thm]{Conjecture}          \DeclareMathOperator{\id}{id}          \newcommand{\bd}[1]{\mathbf{#1}}      \newcommand{\RR}{\mathbb{R}}          \newcommand{\ZZ}{\mathbb{Z}}         \newcommand{\col}[1]{\left[\begin{matrix} #1 \end{matrix} \right]}     \newcommand{\comb}[2]{\binom{#1^2 + #2^2}{#1+#2}}     \newcommand{\BigO}[1]{\ensuremath{\operatorname{O}\bigl(#1\bigr)}}     \linespread{1.6}     \singlespacing     \begin{document}     \nocite{*}          \title{Figures not printing MWE}     \maketitle     \section{Introduction}          \begin{figure}[h!]     \includegraphics[width= 1.1\linewidth]{game2.pdf}     \caption[blurb]{\textbf{blurb}}     \label{fig:blurb}     \end{figure}      \newpage          \begin{figure}[h!]       \caption[blah]{\textbf{blah}\\ blah blah  \\}       \centering         \includegraphics[width=0.99\textwidth]{RenH1RvG.pdf}         \label{fig:RenEvG}     \end{figure}     \end{document}      I am attaching via google drive the output pdf and also the input pdfs of the two figures.   1. output pdf   2. input pdf 1   3. input pdf 2 Thanks


title: Using Tikz Calendar in Portuguese as a Syllabus

text: I have been trying to use this question answer calendar among pages and in portuguese without much luck. For instance, when I attempt to display a larger than one page calendar, instead of having it spread over pages, it simple truncate. Furthermore, I was unsucessful on finding on the documentation any means of renaming days and months to my native language (portuguese-br) or if any setting would be able to do it. Some of the code provided on alternative websites such as a brazilian website and the tikz documentation on section 28, page 323 of the pdf strangely do not compile on my Latex TextMate build which is running on my mac os lion. In short, what I am looking for is:   1. A way to translate it to portuguese-br   2. Be able to spam the length of time larger than one page. In fact, the time length I am looking for is already shown on the code I current have and pdf generated attached for clarification. **My tex file which can be compiled directly into a pdf and show the afore mentioned problems can be foundhere.**               \documentclass[a4paper]{article}          \usepackage[utf8]{inputenc}     \usepackage[brazilian]{babel}     \usepackage[T1]{fontenc}          \usepackage{lscape}     \usepackage{longtable}     \usepackage{multicol}     \usepackage{tikz}     \usetikzlibrary{calendar}          \newcounter{lecture}     \setcounter{lecture}{1}          \newcommand{\scheme}[4]{% Lecture Name, Aim, Objectives, Activities     \expandafter\gdef\csname lecture \arabic{lecture}\endcsname{#1}%     \arabic{lecture}. \stepcounter{lecture} & \raggedright #1 & Aim: #2          Objectives:     #3     &     #4     \\     \hline     }          \newcounter{topic}     \renewcommand{\thetopic}{\Roman{topic}}     \setcounter{topic}{0}          \newcommand{\topic}[1]{%     \multicolumn{4}{l}{\stepcounter{topic}     \rule{0pt}{20pt} \Large \textbf{Topic \thetopic: #1}}      \\* \multicolumn{4}{l}{\parbox{0pt}{\vspace*{12pt}\hspace*{-\tabcolsep}\rule{\fullwidth}{.5pt}}} \\*     }          \newcounter{excursion}     \renewcommand{\theexcursion}{\Alph{excursion}}     \setcounter{excursion}{0}          \newcommand{\excursion}[1]{%     \multicolumn{4}{l}{\stepcounter{excursion}     \rule{0pt}{20pt} \Large \textbf{Excursion \theexcursion: #1}}      \\* \multicolumn{4}{l}{\parbox{0pt}{\vspace*{12pt}\hspace*{-\tabcolsep}\rule{\fullwidth}{.5pt}}} \\*     }          \newenvironment{objectives}{%     By the end of this lecture a student should be able to:     \enumerate}{\endenumerate}          \pagestyle{empty}          \setlength{\hoffset}{.5\textwidth}     \setlength{\textwidth}{19cm}     \addtolength{\hoffset}{-.5\textwidth}     \setlength{\voffset}{.5\textheight}     \setlength{\textheight}{27cm}     \addtolength{\voffset}{-.5\textheight}          \newlength{\fischeme}     \newlength{\sescheme}     \newlength{\thscheme}     \newlength{\foscheme}     \newlength{\fullwidth}          \addtolength{\textwidth}{-15pt}     \addtolength{\textheight}{-15pt}          \setlength{\fischeme}{.075\textheight}     \setlength{\sescheme}{.125\textheight}     \setlength{\thscheme}{.4\textheight}     \setlength{\foscheme}{.35\textheight}          \setlength{\fullwidth}{\fischeme}     \addtolength{\fullwidth}{\sescheme}     \addtolength{\fullwidth}{\thscheme}     \addtolength{\fullwidth}{\foscheme}          \addtolength{\fischeme}{-2\tabcolsep}     \addtolength{\sescheme}{-2\tabcolsep}     \addtolength{\thscheme}{-2\tabcolsep}     \addtolength{\foscheme}{-2\tabcolsep}          \addtolength{\textwidth}{15pt}     \addtolength{\textheight}{15pt}          \begin{document}     \begin{landscape}          \begin{center}     {\Huge MA3402 Analysis on Manifolds}     \end{center}          \vfill          \begin{longtable}{|p{\fischeme}|p{\sescheme}|p{\thscheme}|p{\foscheme}|}     \hline     Lecture Number & Lecture Name & Aims and Objectives & Activities,     Material, Refs \endhead     \hline \endfoot     \hline          \topic{Manifolds}          \scheme{%     Calculus Review     }{%     To recall the key concepts of calculus.     }{%     \begin{objectives}     \item List the main definitions and results of calculus     \item Understand the key role of approximation in the application of     analysis     \end{objectives}     }{%     \begin{enumerate}     \item Recall quiz     \item Vote for the ``Most Valuable Theorem''     \item How close is close enough?     \end{enumerate}     }          \excursion{Lie Groups}          \scheme{%     Lie Groups     }{%     To introduce basic Lie groups     }{%     \begin{objectives}     \item Prove that multiplication and inverse are smooth maps on       \(Gl_n\).     \item Prove the same for \(O_n\).     \item Know the definition of a principal bundle (for \(Gl_n\) and       \(O_n\)).     \item Know how to construct associated fibre bundles.     \end{objectives}     }{%     }          \hline\hline          \scheme{%     Problem Session     }{%     To go through the fifth problem sheet.     }{%     }{%     Fifth problem sheet     }               \topic{Differentiation}          \scheme{%     Differentiation on Manifolds     }{%     To explore the different types of differentiation that are possible.     }{%     \begin{objectives}     \item Define the Lie bracket of vector fields in terms of flow.     \item Define the Lie derivative of tensors.     \end{objectives}     }{%     \begin{enumerate}     \item Differentiation as change under infinitesimal perturbation.     \end{enumerate}     }               \end{longtable}     \end{landscape}          %\setcounter{lecture}{0}          \tikz [every day/.style={anchor=east}]     \calendar [dates=2013-07-10 to 2014-14-01, day list downward, month label above left,day text={\%w. \%d=}]     %if (Monday) {\draw (-0.29,0) circle (8pt);} Circulo para provas     if (Sunday) [black!50,nodes={draw=none}] %Cinza para dias sem aula     if (Monday,Tuesday) [red]     if (Monday,Tuesday) {\node[anchor=west] at (.5,0) {\stepcounter{lecture}Aula \arabic{lecture} \csname lecture \arabic{lecture}\endcsname};};          \end{document}      I appreciate any help on how to go about this, there aren't many syllabus template out there as .tex files. Let alone that it is easy to translate. If it comes down to writing the 12 months and 7 days in my own native language I wouldn't mind as a solution as well, so long it could be explained how with 1 day and 1 month example. I hope the question is not too specific. Thank you.


title: How can I explicitly ask a \label{} command to refer to a given counter?

text: ## Question In a comment there, I learnt that > The latest `\refstepcounter` before `\label` sets the counter for `\label` **Is it possible to explicitly ask a`\label{}` command to refer to a given counter?** I see two cases where this could be useful:   1. there are several counters and you want to be sure which one is chosen.   2. the value of the counter is set _via_ `\setcounter`. ## Code and picture               \documentclass{article}     \begin{document}          \newcounter{counterA} \setcounter{counterA}{0}          \refstepcounter{counterA}     \label{First_Label}     I get: \ref{Second_Label}. I would like 99.          \bigskip     \setcounter{counterA}{99}     \label{Second_Label}     I get: \ref{First_Label}. I would like 1.          \end{document}      ![enter image description here](http://i.stack.imgur.com/Cz6V8.png)


title: Problem with hyphens in listings

text: The problem is that in the inline listing "ABC-ABC" the hyphen disappears. It works if I remove the literate=... parameter but I need it because I want to wrap around long inline code by specifying manual hyphenation markers with "-". How can I solve this problem? Another weird thing is that inline listing only works with \newcommand as the second part in the example shows. Is this a bug?               \documentclass{article}          \usepackage{listings}          \lstdefinestyle{Inline}     {         literate={\-}{}{0\discretionary{-}{}{}}     }     \newcommand{\code}[1]{\lstinline[style=Inline]{#1}}          \begin{document}     \code{ABC-ABC}\\     \code{AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABC\-ABC}\\[1cm]     Bug in listings???\\     \code{AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABC\-ABC}\\     \lstinline[style=Inline]{AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABC\-ABC}     \end{document}


title: Moving the table caption

text: I want to move a wrapped table and caption, I'm trying to use vspace but it doesn't move the caption. Any ideas?               \documentclass[12pt]{article}     \usepackage{wrapfig}     \usepackage{floatrow}     \floatsetup[table]{capposition=top}     \begin{document}     \section{Section Title}     \begin{wraptable}{r}{7cm} \small       \vspace{-60pt}       \begin{center}     \begin{tabular}{lll} \hline     A & B  & C\\ \hline     1 & 2 & 3 \\     \end{tabular}     \end{center}       \vspace{-60pt}       \caption{Caption}       \vspace{-60pt}     \end{wraptable}     \end{document}


title: How do I put arrows inside circle in tikz?

text: I need your help in creating the following figure in tikz. I am absolute beginner in tikz. ![enter image description here](http://i.stack.imgur.com/rHbXD.png) I saw the example in the following page, but I need it the way as shown in the picture which I could not produce TikZ: Using Loop to Draw Grid of Nodes


title: aspell - how to ignore references inside \citep{} and \citet{} references

text: I'm using `aspell --version` International Ispell Version 3.1.20 (but really Aspell 0.60.6) to verify my tex files with the command:               aspell -d pt_PT --dont-tex-check-comments  -c file0.tex      The problem is that ispell checks inside each               \citep{someone2011sometitle}       and each               \citet{someone2011sometitle}      that I'm using with               \usepackage[authoryear]{natbib}      What can I do for ispell to ignore the references?


title: ASCII-Art Flower to a thesis in LaTex? How to make it nicely from front to back?

text: Thesis can have some sort of `thank you` thing in the beginning and perhaps something at the end. Instead of writing something specific, I would like to start a thesis with a flower-top and end it to its flower-end in ASCII art. I would like to make the flower from some lyrics in the following shape ![enter image description here](http://i.stack.imgur.com/b9BHV.png) so the reader would require almost a microscope to read the lyrics -- and it would be cool also to write something hovering in some point. Is this possible to do this kind of creative thing in LaTex and is there something already builtin to embed ASCII art to formal papers? **Perhaps related**   1. How to compose figure from text with latex?


title: Locally disabling hyphenation in a multicolumn list

text: How can I locally disable hyphenation in the following itemized list? I want to disable it only in a specific list in my document.               \documentclass[12pt,letterpaper]{article}          \usepackage{enumitem}     \usepackage{multicol}          \begin{document}          \section*{Section 01}     \begin{multicols}{2}         \begin{itemize}[noitemsep,nolistsep]             \item this is a description of item number one in the list. I would like to locally disable hyphenation in the list.             \item item 2             \item item 3             \item item 4             \item item 5         \end{itemize}     \end{multicols}     \end{document}      Here is the output. ![enter image description here](http://i.stack.imgur.com/pBux6.png)


title: break an long line in an algorithm

text: I have a long line in an algorithm and want to break it into two lines. For similar case in `equations`, `split` can be used. How do I do this within an algorithm?               \documentclass{article}     \usepackage{amsmath}     \usepackage[boxed,vlined,linesnumbered,noresetcount]{algorithm2e}     \begin{document}     \begin{algorithm}[tp]     out := foo(x$\rightarrow$child[which]     ,$\langle$1,0,0,old$\rangle$     ,$\langle$0,0,0,new$\rangle$)\;     \end{algorithm}     \end{document}      ![output](http://i.stack.imgur.com/uB8cX.png)


title: Nomencl Reference Section Number

text: I'm writing a PhD thesis that includes many similar symbols. Therefore, I'd like to list in the nomenclature the section number at which each symbol is initially using (and therefore defined in the text). I'm aware you can list the page number, but I'd prefer the section number. Is there a way to do this? Here's a minimal example what I have at the moment to define the section number, although this requires me to manually check each reference is correct:               \documentclass{report}     \usepackage{nomencl}          \makenomenclature          \begin{document}         \printnomenclature              \chapter{Structural Analysis} \label{sec:Structural Analysis}         \section{Sectional Properties} \label{sec:Sectional Properties}         The cross-sectional area is defined as         \begin{equation} \label{eqn:Cross-sectional area}             A = \int_{S} \: dS         \end{equation}         \nomenclature{$A$}{cross-sectional area, m$^{2}$ (\ref{sec:Sectional Properties})}         \nomenclature{$S$}{arbitrary surface (\ref{sec:Sectional Properties})}          \end{document}      I tried using `\thesection` as the reference but as expected this value was calculated during when creating the nomenclature, not at the position of `\nomenclature`. I imagine there should be a way to do this through programming but haven't been able to find a solution.


title: problem with alignment of an image in the center of the page in lyx

text: I have this doubt Using lyx inside a floating I been putting the images, everything was good but then I realized something: some images are aligned in the center and others not. I don't understand because I have put the latex code `\centering` beside every image but it seems that this doesn't work for all the images. ![enter image description here](http://i.stack.imgur.com/c7zzu.png) ![enter image description here](http://i.stack.imgur.com/5dVE9.png) Do you know what could be the problem and what can I do? Thanks a lot.


title: Change bibliography output with biblatex

text: I am using `biblatex` with the following options `backend=biber,style=trad- alpha,natbib=true`. Now I want to change the output of some of my bibliography. I have different citations in my `bib` file, including `inproceedings, incollections, articles,...`. However, all my `inproceedings` show the pages as last item like so               [NKSC03] Yoshitaka Nakajima, Hideki Kashioka, Kiyohiro Shikano, and Nick Campbell. Non-audible murmur recognition input interface using stethoscopic microphone attached to the skin. In Acoustics, speech, and signal processing, 2003. proceedings.(icassp’03). 2003 ieee international conference on. Vol- ume 5. IEEE, 2003, pages 708–711.      However, all non-inproceedings show the year as last word before the dot. I want to change that for `inproceedings` as well. How would I do that? Also, only the inproceedings show `pages` before the pages. All the others just have the format `x-y`. How can I change that every pages has the `pages` before?


title: Using input to read a table into a beamer. I want to neglect the table environment and keep only the tabular environment

text: I'm trying to input a table into my beamer and resize the table. But since the table file contains a table environment and a caption, I couldn't do like this:               \resizebox{\linewidth}{!}{          \input{table.txt}          }      I only want the tabular body and thus can resize it. Is there any command that extract a specified environment? I find the extract package, but it's creating a new file from the origin file. But I want extract some part of the origin file and read it into the beamer.


title: extra else with polyglossia

text: This sample gives me `! Extra \else. l.6 \else` and I don't see why. It is caused by line 5 and the sample is fine if I pull it out of the if or invert the logic, so the `\setdefaultlanguage` isn't followed by `\else`. Why is this happening?               \documentclass{article}     \usepackage{iftex}     \ifXeTeX         \usepackage{polyglossia}         \setdefaultlanguage{german}     \else        \PackageError{foo}{Cannot build with (pdf-)latex}{Use Xelatex or Lualatex}        \stop     \fi


title: I can't get a quotation mark when I insert my bib file from Jabref

text: I'm using Jabref to make my .bib file for my LaTeX file because I needed quotations for my titles. They work, except when my title is directly next to a URL. This works:               [5] ASCE (2013). "2013 Report Card for America's Infrastructure." American     Society of Civil Engineers, <http://www.infrastructurereportcard.org/bridges/>     (March).      This doesn't work:               [32] Pierce, G. (2013). "GN's Bridge 4: The Great Northern's Bridge at the Locks",     <http://www.gngoat.org/bridge 4.htm> (March).      I tried to just add '' to the end of the titles that have this problem, but my comma ends up being outside the quotation marks. I tried both styles:               bibliographystyle{ascelike}     bibliographystyle{plainnat}      but I think Jabref overrides them anyways, so I think the problem is in Jabref. Any ideas?


title: Ease the handling of labels

text: I want to ease the handling of labels in my document, and I want to show the label for a section if define a "variable". Currently I'm doing it like this Setting the up the "variable":               \usepackage{etoolbox}     \newtoggle{DEBUG}     \toggletrue{DEBUG}     %\togglefalse{DEBUG}      Then I use it like this:               \label{sec:NAT}     \iftoggle{DEBUG}{         \subsubsection{Network Address Translation (NAT) [sec:NAT]}     }{         \subsubsection{Network Address Translation (NAT)}     }      Is there an better way to do this? As it is now I still have to remember to set the same label in both places. Is there any libraries for this maybe? I assume the best would be if there was a library that would allow me to write               \subsection{Section nam}{sec:NAT}      and then according to some setting it would output it correctly and also set the label!


title: organize columns in table

text: I made a table with this code:                  \documentclass[12pt,twoside,a4paper,openright]{report}         \usepackage[portuguese]{babel}         \usepackage[utf8]{inputenc}         \usepackage[inner=3cm,outer=2cm,tmargin=2.0cm,bmargin=2.0cm, includefoot, includehead]{geometry}         \usepackage{booktabs, multicol, multirow}         \usepackage{tabularx}         \usepackage{siunitx}         \sisetup{locale = FR}              \newcolumntype{R}{>{\raggedleft\arraybackslash}X}         \newcolumntype{L}{>{\raggedright\arraybackslash}X}         \newcolumntype{C}{>{\centering\arraybackslash}X}                   \begin{document}              \begin{table}[htbp]           \centering           \caption{Equipamentos e normas utilizados nos testes papeleiros com o objectivo de caracterizar as folhas de papel.}            \begin{tabularx}{\textwidth}{@{}Lcccccc@{}}             \cmidrule[0.8pt]{1-7}          Tamanho de Partícula & H60 & H60 M & H90 & H90 M & H90E & H90E M\\             \cmidrule{1-7}         \si{d_{50}} (\si{$\mu$m}) & 2,1 & 5,1 & 1,3 & 3,4 & 1,3 & 3,4\\             \cmidrule[0.8pt]{1-7}             \end{tabularx}           \label{d50}         \end{table}              \end{document}      But I want more space between columns. There are too space between first and others columns. I have some difficuties to explain what I want.


title: How to draw vertical lines using pgfgantt package

text: I have created a Gantt chart using `pgfgantt`. Here's the complete code :               \documentclass{article}     %\usepackage[pdftex,active,tightpage]{preview}     %\setlength\PreviewBorder{2mm}     \usepackage[frenchb]{translator}     \usepackage[frenchb]{babel}     \usepackage{pgfgantt}     \usetikzlibrary{shadows}     \usepackage{lscape}     \definecolor{barblue}{RGB}{153,204,254}     \definecolor{groupblue}{RGB}{51,102,254}     \definecolor{linkred}{RGB}{165,0,33}     \sffamily          \setganttlinklabel{s-s}{Début \`a d\'ebut (DD)}     \setganttlinklabel{f-s}{Fin \`a d\'ebut (FD)}          \begin{document}     \begin{landscape}     \begin{tikzpicture} % optional        \begin{ganttchart}[x unit=1.8mm,                            y unit chart=0.87cm,                            time slot format=isodate,                            %compress calendar,                           vgrid=*{5}{dotted},                           today=2014-04-27,                           today label=aujourd'hui,                           today label font=\scshape,                           newline shortcut=true,                           title/.append style={fill=blue!20, drop shadow},                           title label font=\sffamily\bfseries\color{white},                           title label node/.append style={below=-1.6ex},                           title left shift=.05,                           title right shift=-.05,                           title height=1,                           bar/.append style={draw=none, fill=black!63},                           bar label node/.append style={align=center, font=\tiny},                           bar incomplete/.append style={fill=barblue},                           bar height=.4,                           bar label font=\normalsize\color{black!50},                           link/.style={-latex, draw=red, fill=red},                           progress label text = {\pgfmathprintnumber[precision=0, verbatim]{#1}\% fait},                          ]                           {2014-04-14}{2014-07-11}        \gantttitlecalendar{month=name} \\               \ganttbar[progress=100]{Mise en place\ganttalignnewline de environnement\ganttalignnewline du travail}{2014-04-14}{2014-04-15} \\              \ganttbar[progress=100]{Spécifications}{2014-04-15}{2014-04-17} \\              \ganttbar[progress=70]{Comprendre et\ganttalignnewline analyser le\ganttalignnewline code existant}{2014-04-18}{2014-05-03} \\              \ganttbar[progress=60]{Analyse des \ganttalignnewline besoins de la\ganttalignnewline plate-forme MEANS}{2014-04-18}{2014-05-07} \\              \ganttbar[progress=30]{Conception des \ganttalignnewline services web}{2014-04-21}{2014-05-24} \\              \ganttbar[progress=80]{Conception de \ganttalignnewline l'API Java}{2014-04-25}{2014-05-07} \\              \ganttbar[progress=0]{Implémentation des\ganttalignnewline services web}{2014-05-26}{2014-06-15} \\              \ganttbar[progress=0]{Tests des\ganttalignnewline services web}{2014-05-26}{2014-06-17} \\              \ganttbar[progress=0]{Implémentation de\ganttalignnewline l'API Java}{2014-06-03}{2014-06-20}\\              \ganttbar[progress=0]{Tests de\ganttalignnewline l'API Java}{2014-06-03}{2014-06-21} \\              \ganttbar[progress=0]{Rédaction de\ganttalignnewline la documentation}{2014-06-22}{2014-06-25} \\              %\ganttbar[]{Maintenance}{2014-06-26}{2014-07-11}              \ganttlink[link type=f-s]{elem4}{elem6}         \ganttlink[link type=f-s]{elem1}{elem2}          \ganttlink[link type=s-s]{elem6}{elem7}           \ganttlink[link type=s-s]{elem8}{elem9}                  \end{ganttchart}     \end{tikzpicture}     \end{landscape}          \end{document}      What I want now to draw vertical lines I can custimze (color, size ...etc.) like the one for `today`. For example I want to draw a red line on `2014-05-17` and put `validation` as label. My question is like this, but in my case I use `isodate` as slot time format and I don't know how to add a label text. Someone has an idea on how to do it?


title: Outer join symbols

text: In a previous post entitled "Symbols for Outer Joins" a solution was given to produce outer join symbols. However, this solution generates an error when, e.g., `$R \leftouterjoin S$` is used in a caption. Any solution for this ?               \documentclass[a4paper,10pt]{article}          \usepackage{latexsym}          % Definition of outer joins          \def\ojoin{\setbox0=\hbox{$\Join$}     \rule[0.10ex]{.3em}{.4pt}\llap{\rule[1.40ex]{.3em}{.4pt}}}     \def\leftouterjoin{\mathrel{\ojoin\mkern-6.5mu\Join}}     \def\rightouterjoin{\mathrel{\Join\mkern-6.5mu\ojoin}}     \def\fullouterjoin{\mathrel{\ojoin\mkern-6.5mu\Join\mkern-6.5mu\ojoin}}          \begin{document}          The outer join symbols work great in text: $R\rightouterjoin S$, $R\leftouterjoin S$, $R\fullouterjoin S$.      However, it generates the error \verb+Argument of \@caption has an extra }.+ when used in captions.          \begin{figure}      \centering     This a figure     \caption{$R\rightouterjoin S$}     \end{figure}           \end{document}


title: Create symbol out of given symbols with same line width

text: I'm trying to create a new symbol out of a given one `$\sqcup$` but it does not work as expected. Have a look at the following minimal example:               \documentclass{article}          \usepackage{graphicx}          \newcommand{\sqqcup}{\,{{\sqcup}\hspace*{-0.6em}\raisebox{-0.25ex}{--}}\;}          \begin{document}     \[     \scalebox{8}{$a \sqqcup b$}     \]     \end{document}      As you can see the extra horizontal line I'm trying to put over the squared cup symbol is not typeset in the same line width/strength. Has someone an idea how to draw a line with the same line width than an already existing symbol?


title: To make script smaller by make and image resizing

text: I have script which contains 777 pages with 888 images. Its size is 66 Mb because of big images. I am looking for a protocol to automatize the image resize for A4 print style. Some makefile with simple linux tools with command to make pictures smaller would be perfect. Possibility to make copies of pictures would be nice too. I should do this kind of optimisation often to share my notes to my classmates. Therefore, I think _make_ can be the only option with good selected tools. Another option is to diagnose which image takes most space in the document. **What is your way of working into smaller filesize, particularly with images?**


title: Accessible TeX/LaTeX textbooks, primers, and materials?

text: I apologize, as this is a somewhat off-the-beaten-trail question. I'm looking for textbooks (or other educational materials) on TeX and LaTeX that fulfill one or more of the following:   * Reads/renders well with a screen reader (namely TextHelps's Read & Write Gold);   * is typeset (or can be re-typeset) with a LD-friendly font such as OpenDyslexic;   * comes with online materials in the vein of MyMathLab or MyCommunicationLab (viz. flashcards and quizzes);   * has an audiobook version (MP3 or DTB); and/or   * is available via BookShare. I hope this question isn't too off-topic, because I have been having a genuinely hard time finding a textbook or primer that meets my needs. * * * P.S: Are there any TeX/LaTeX tutors in the Washington, D.C. area? 1:1 instruction is how I learn best, to be frank. P.P.S: Are there any good flashcard sets for memorizing LaTeX snippets, macros, and commands?


title: Make a large heatmap with gaps and tables between

text: I am trying to make a large heatmap which looks like this with gaps and row or column names written in some of the cells. Empty cells are also present in the heat map. Can i make this using pgfplots? Which would be the best way? To make 6 different heatmaps, different tables and then align them accordingly or make a large heatmap and then insert row, column names and empty cells?? Please help! ![enter image description here](http://i.stack.imgur.com/PWKKT.png)


title: How to add a \global before \pgfmathsetmacro?

text: It seems that one can't add `\global` before a `\pgfmathsetmacro` as that yields: > You can't use a prefix with `\begingroup'. But that is the functionality I need here. I am trying to compute the average of the integers in a list. In the MWE the list I have is               \newcommand*{\MyData}{3,7,X,Y,8,9,Z}%      and the `\typeout` messages show:               **** NumberOfValidEnteries=1, \AverageValue=3.0     **** NumberOfValidEnteries=2, \AverageValue=3.5     **** NumberOfValidEnteries=3, \AverageValue=2.66666     **** NumberOfValidEnteries=4, \AverageValue=2.25      So it seems as if the `\pgfmathsetmacro` is working except it is not saving its state between successive iterations of the `\foreach`, which is exactly what the `\global` was there for in the first place. ## Code:               \documentclass{article}     \usepackage{tikz}     \usepackage{xstring}          % http://tex.stackexchange.com/questions/50111/how-to-check-if-the-value-of-a-parameter-is-a-number     \newcommand*{\IfIsInteger}[3]{%         \IfStrEq{#1}{ }{%             #3% is a blank string         }{%             \IfInteger{#1}{#2}{#3}%         }%     }%          \newcommand*{\MyData}{3,7,X,Y,8,9,Z}%          \newcommand*{\AverageValue}{0}     \newcounter{NumberOfValidEnteries}     \newcommand*{\ComputeAverage}[1]{%         %% Initialize (in case this is used more than once)         \renewcommand*{\AverageValue}{0}         \setcounter{NumberOfValidEnteries}{0}%         %         \edef\ExpandedDataEnteries{#1}% So that #1 can be a list or a macro defined list.         \foreach \NewData in \ExpandedDataEnteries {%             \IfIsInteger{\NewData}{%                 %\global% <---- I need this ????                 \pgfmathsetmacro{\AverageValue}{%                       (\AverageValue * \arabic{NumberOfValidEnteries} + \NewData) /                     (\arabic{NumberOfValidEnteries} + 1)                 }%                 \stepcounter{NumberOfValidEnteries}%                 \typeout{**** NumberOfValidEnteries=\arabic{NumberOfValidEnteries}, \string\AverageValue=\AverageValue}%             }{%                 % Not integer data so skip it             }%         }%     }          \begin{document}         \ComputeAverage{\MyData}%         Average of integers in ``\MyData" is ``\AverageValue".     \end{document}


title: Expl V-type argument no fully expanding as I expected

text: This is related to an earlier question of mine. I'm posting my own interpretation of what's happening hoping that if I'm wrong, someone will chime in an explain why. The issue with `xparse`'s `\IfNoValue` does not hinge on passing an `n` type argument as @ScottH seems to be suggesting. The issue seems to be buried deeper inside the definition of `\IfNoValue`. The nice thing about `\IfNoValue` is that it is designed in a manner to register whether an argument was empty or not without the end-user being able to _accidentally_ pass something through the argument that'll be interpreted as an empty argument. Namely, `\IfNoValue{-NoValue-}` should register false. This comes about through some fancy temporary assignment of lower case values and the use of a _weird_ (`w`) type argument. The following example illustrates what's happening: (For the most part I'm following `xparse`'s lead in how I'm defining commands so as to mirror the issues from my earlier question as best as possible.)               \documentclass{article}     \usepackage{xparse}     \ExplSyntaxOn     \cs_new:Npn \ae_experiment:w #1 DELIMITER { #1 }          \cs_new:Npn \ae_testing_weird:n #1 {         \str_if_eq:onTF             { \ae_experiment:w #1 DELIMITER }             { Andrew }             { \emph{moi} }             { \textbf{not}~me }     }     \cs_new:Npn \ae_testing_ntype:n #1 {         \str_if_eq:onTF             { #1 }             { Andrew }             { \emph{moi} }             { \textbf{not}~me }     }          \cs_new_eq:NN \testingWeird \ae_testing_weird:n     \cs_new_eq:NN \testingNtype \ae_testing_ntype:n          \NewDocumentCommand{\bypassWeird}{m}         {             \tl_set:Nn \l_ae_bypass_tl {#1}             \exp_args:NV \testingWeird \l_ae_bypass_tl         }          \NewDocumentCommand{\Andrew}{}{Andrew}     \ExplSyntaxOff     \pagestyle{empty}     \begin{document}          \begin{tabular}{lccc}     Func. Call      & \verb=Andrew=         & vs. & \verb=\Andrew=         \\\hline     \verb=Weird=    & \testingWeird{Andrew} &     & \testingWeird{\Andrew} \\     \verb=Ntype=    & \testingNtype{Andrew} &     & \testingNtype{\Andrew} \\     \verb=bypassed= & \bypassWeird{Andrew}  &     & \bypassWeird{\Andrew}     \end{tabular}          \end{document}      I expected the second and third line of this table to have the same results. But it appears that `\exp_args:NV` only expanded `\l_ae_bypass` once to `\Andrew` and then no further. Why? Rewriting               \DeclareExpandableDocumentCommand{\Andrew}{}{Andrew}      or even                \def\Andrew{Andrew}      or                \xdef\Andrew{Andrew}      does not fix things.


title: Problem with loading font metrics file

text: Trying to make PDF output with pdflatex halts with this message: `Font T1/ptm/m/n/10=ptmr8t at 10.0pt not loadable: Metric (TFM) file not found` After searching a bit I found that file `ptmr8t.tfm` is already present on my system and located as `/usr/share/texmf- texlive/fonts/tfm/adobe/times/ptmr8t.fmt` What could be the problem? * * * Update: command `kpsewhich ptmr8t.tfm` outputs: `/usr/share/texmf-texlive/fonts/tfm/adobe/times/ptmr8t.tfm` but from the previous log file, seems like `mktextfm ptmr8t` command was called prior halting


title: Labeling the axes of my plot

text: I would like to add a label to the axes of my plot. This is my code:                   \begin{figure}[!h]     \centering     \begin{tikzpicture}[scale=1]       \begin{axis}[%           % Lengend position           legend pos = outer north east,           % We need a tick for every data           xtick = data,           % The ticks label are provided in the file as the column named Num           xticklabels from table = {test.dat}{Num}]         % How the data are separated.        % \pgfplotstableset{col sep = tab}         % We need to simulate an x coord since it is litteral in the data file. I choose to index on the line.         \addplot table [x expr = \lineno, y = Min] {test.dat};         \addlegendentry{Min}         \addplot table [x expr = \lineno, y = Moy] {test.dat};         \addlegendentry{Moy}         \addplot table [x expr = \lineno, y = Max] {test.dat};         \addlegendentry{Max}       \end{axis}          \end{tikzpicture}     \caption{Propagation d'une publication générée avec la politique est \bf {Amis Seulement}}     \end{figure}


title: Strange Warning When Compiling any Document

text: I am getting the following warning even when compiling the most minimal of documents. Please help me understand this warning and how I might prevent it:               pdfTeX warning: pdflatex (file /usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map): fontmap entry for `PTSans-Bold-tlf-ts1--base' already exists, duplicates ignored      The PDF output appears to be fine.


title: Avoid hyphenation around a specific character

text: I want to use typographic apostrophe (’) in my document. Using a simple ' don't give the same result. I can type the ’ on my keyboard. But XeTeX take it as a normal character, ie. like a letter, and it can generate bad hyphenation like this (using the xmemoire class) :               \documentclass{xmemoire}     \usepackage{wrapfig}      \lccode`\’=0     \begin{document}     \begin{wrapfigure}{R}[1cm]{0.33\linewidth}              \begin{center}               \caption{{\normalfont { Logo associé à l’\textit{ERC Starting Grants} d’Analyse de la maturation cérébrale.}}}               \label{figbb}             \end{center}     \end{wrapfigure}     \end{document}      How do I avoid hyphenation around ’, or more generally around a given character, in all the document (I know I can use mbox for local forcing).


title: Stand-alone (portable) Bibtex

text: Sorry for the newbie question, but I just wonder what exactly the files are needed to make `bibtex.exe` and `bibtex8.exe` from MiKTeX being a stand-alone programs. # Background The macro `bibtex4word` (written by Mike Brookes) can produce an .aux file containing a list of references being used in a MS Word document. Then it will give the .aux file to `bibtex.exe` or `bibtex8.exe` and then process the output .bbl file. For using `bibtex` or `bibtex8` on a PC without MiKTeX (with a least-privilege account), I only got 2 choices, either using Portable MiKTeX or installing it under my user account. But neither of both is ideal since I am always moving around plus am impatient to wait for the extraction/installation of that ~150MB file to be finished simply because I only need ~5% of a portable (or basic) MiKTeX. So I'm trying to list out what files are the dependency files of `bibtex.exe` and `bibtex8.exe`. ## So far I have used the option of `\--trace` plus DebugView (from Microsoft) for tracking, and the files I have come across are               miktexstartup.ini           - extracted from portable MiKTeX.     miktex-mo-bin-2.9.tar.lzma         - full extraction.         - containing initexmf.exe, texhash.exe & mktexlsr.exe .     miktex-kpathsea-bin-2.9.tar.lzma         - full extraction.     miktex-findtexmf-bin-2.9.tar.lzma         - full extraction.     miktex-runtime-bin-2.9.tar.lzma         - full extraction.     miktex-vc100-bin.tar.lzma         - only needs msvcp100.dll, msvcr100.dll, atl100.dll .     miktex-bibtex-base.cab         - full extraction.     miktex-bibtex-bin-2.9.tar.lzma         - full extraction.     miktex-bibtex8bit-base.cab         - full extraction.     miktex-bibtex8bit-bin-2.9.tar.lzma         - full extraction.     Some extra packages for different citation styles      So far it seems to work fine without giving me any complain when using it in the command prompt of either WinXP or Win7(X64), and the overall size is ~5 MB after compressed and excluding the `mpm.fndb` and `texmf.fndb`. Because I am fairly new to TeX, I wonder if the files listed above are really the only files which are needed to have a properly functional `bibtex.exe` or `bibtex8.exe`.


title: How to locate figures with x,y specified location in a presentation

text: I want to fix my figure in slide (latex frame) as per my wish with x,y position specification. Kindly someone help me to do it.


title: Can I alias a color?

text: I would like to define some colors and then define some aliases to them. For instance, if I define the following color: `\definecolor{MyColorA}{rgb}{0.1,0.2,0.3}` and then want to define an alias "NoteColor" to be the same as "MyColorA", what is the command? I tried: `\definecolor{NoteColor}{named}{MyColorA}` but this did not work. Any suggestions or links welcome. Thanks.


title: How to disable leading space from hyperref?

text: I defined the following command:               \newcommand{\reqWVSDataSource}[0]{     \hyperref[req:wvsDataSource]{\textit{Req01}}}      If I use it like this:               (\reqWVSDataSource)      hyperref adds a leading space. Thus the result is "( Req01)" instead of "(Req01)". How can I disable this leading space? Thanks!


title: lyx inserting endframe in the wrong place

text: I create a slide using the beamer template in LyX using the following steps:   1. Set environment to Frame   2. Edit the Frame title to "Test"   3. Press the right arrow and enter, change environment to itemize Lyx automatically inserts `\end{frame}` after the `\begin{frame}{test}` without inserting my `itemize` environment in between. If instead I simply type a bunch of text instead of an itemize environment then things are fine. I am using LyX 2.1. This did not happen in previous versions of LyX. I do not include MWE as I would like somebody to repeat my steps to see if they are seeing the same issue.


title: Using "fit" in block diagram

text: I was trying to surround two nodes in a dotted box, but nothing appears. Here is my code:               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{shapes, arrows, fit}     \begin{document}               \tikzstyle{block} = [draw, fill=gray!20, rectangle,      minimum height=2em, minimum width=4em]     \tikzstyle{sum} = [draw, fill=gray!20, circle, node distance=1cm]     \tikzstyle{input} = [coordinate]     \tikzstyle{output} = [coordinate]     \tikzstyle{pinstyle} = [pin edge={to-,thin,black}]     \tikzstyle{integrator} = [draw, fill = gray!20, rectangle, minimum height = 2.5em, minimum width = 2em]     \tikzstyle{gain} = [draw, fill = gray!20, rectangle, minimum height = 2em, minimum width = 2em]          % The block diagram code is probably more verbose than necessary     \begin{tikzpicture}[auto, node distance=2cm,>=latex']     % We start by placing the blocks     \node [input, name=input] {$\omega_R(z)$};     \node [sum, right of=input] (sum) {};     \node [block, right of=sum] (Gc) {$G_c(z)$};     \node [block, right of=Gc, node distance = 2.5cm] (B0) {$B_0(z)$};     \node [block, right of = B0] (Gp) {$G_p(s)$};     %\node [block, right of = Gp] (integrator) {$\frac{1}{s}$};            % node distance=3cm] (B0) {System};     % We draw an edge between the Gc and B0 block to      % calculate the coordinate Mz. We need it to place the measurement block.      \draw [->] (Gc) -- node[name=Mz] {$M(z)$} (B0);     \node [block, right of = B0] (Gp) {$G_p(s)$};     \node [integrator, right of = Gp] (integrator1) {$\frac{1}{s}$};     \node [output, right of = integrator1] (output) {};     \node [integrator, below of = Gp] (s) {$s$};     \node [gain, below of = B0] (gain1) {$\frac{1}{K}$};          % Once the nodes are placed, connecting them is easy.      \draw [draw,->] (input) -- node {$\omega_R(z)$} (sum);     \draw [->] (sum) -- node {$e(z)$} (Gc);     \draw [->] (B0) -- node {} (Gp);     \draw [->] (Gp) -- node {$\omega(s)$} (integrator1);     \draw [->] (integrator1) -- node [name=y] {$\theta (s)$}(output);     \draw [->] (y) |- (s);     \draw [->] (s) -- node {$rad/s$} (gain1);     \draw [->] (gain1) -| node[pos=0.99] {$-$}          node [near end] {$\omega(z)$ (LSB)} (sum);     \node [draw, dotted, fit = (Gp) (integrator1), inner sep = 0.75cm] {};     \end{tikzpicture}          \end{document}      Any suggestions is welcome.


title: Repeating section with identical structure and different content

text: I would like to repeat identical subsection format with different contents. For example               \documentclass{article}     \usepackage{graphicx}          \begin{document}          \section{Intro}          \subsection{A-text}          \begin{figure}[h]     \setkeys{Gin}{width=0.7\textwidth}     \includegraphics{figA}     \caption{This is A.}     \label{fig:001}     \end{figure}          \subsection{B-text}          \begin{figure}[h]         \setkeys{Gin}{width=0.7\textwidth}     \includegraphics{figB}     \caption{This is B.}     \label{fig:002}     \end{figure}               \subsection{C-text}          \begin{figure}[h]     \setkeys{Gin}{width=0.7\textwidth}     \includegraphics{figC}     \caption{This is C.}     \label{fig:003}     \end{figure}               \end{document}      My idea is to build a new command using a control structure:               \documentclass{article}     \usepackage{graphicx}               \newcommand{\tempsect}[4]{         \subsection{#1}              \begin{figure}[h]         \setkeys{Gin}{width=0.7\textwidth}         \includegraphics{#2}         \caption{fig:#3.}         \label{fig:#4}         \end{figure}          }          \begin{document}          \section{Intro}          for i in A to C {     % x1 of i     % x2 of i     % x3 of i     % x4 of i     \tempsect{x1,x2,x3,x4}     }          \end{document}      Eeach subsection A, B, C has different x1,x2,x3,x4 values. I have problems on several levels:   1. how to write the correct command tempsect    2. how to use which control structure?   3. how to embed a look up table and using it (A->x1-x4, B->x1-x4) I would be very happy if somebody could give me some hints how to solve this problem. If there is a solution using R/Sweave this would be also nice. Thanks for help. Edit 03.09.2013/giordano:   * to 2): I refer to the syntax of Latex control structure or loops.    * to 3): For example, after first loop x1,x2,x4 and x4 contains "A-text","figA","This is A","001", respectively. The next loop the parameter x1,x2,x3, and x4 would contain "B-text","figB","This is B","002", respectively. Etc.


title: \mainmatter adds page breaks that I don't want

text: I'm using the documentclass "book". I put a set of `\frontmatter` and `\mainmatter` instructions around everything that's before chapter 1. But now, LaTeX skips two pages at the beginning of the main matter. I've tried adding `\nopagebreak` instructions, even `\nopagebreak[4]`; it doesn't change anything. LaTeX, still wants pages 1 and 2 to be blank. What am I doing wrong? EDIT: a `\begin{verse}` instruction is placed before the first `\chapter` instruction. Is that wrong? EDIT: Putting the verse environment after the chapter begins works, but it's not the most "logical" was of describing my content. I guess the question now becomes, "why does putting a verse environment before the chapter declaration cause two blank pages to show up?" Obviously, it has something to do with chapters starting on odd pages, but it's still not very logical. EDIT: What the wrong code looks like is (simplified, but tested):               \documentclass{book}     \begin{document}     \frontmatter     Lorem Ipsum          \mainmatter     \begin{verse}     % Two blank pages numbered 1 and 2 are inserted here.          \chapter{}     Dolor si amet.          \chapter{}     Lipsum          \end{verse}     \end{document}      Putting the verse environment after the first chapter solves the problem, but the chapters are called from `\input` commands, so I'd like them to be consistent.


title: Beamer repeated citation new number

text: I am discussing a topic on multiple frames, and I want to cite the original article on each slide using footfullcite. However beamer increases the citation number on each frame. Is there a way to tell beamer to increase it only if I refer to a new article? Here is my approach:               \documentclass[mathserif]{beamer}        \usepackage[style=verbose,backend=biber]{biblatex}             \setbeamertemplate{footline}[frame number]        \setbeamertemplate{caption}[numbered]             \renewcommand{\footnotesize}{\tiny}             \bibliography{refs}                  \begin{document}            \frame{\frametitle{Title}            \footfullcite{art}        }           \frame{\frametitle{Title}            \footfullcite{art}        }             \end{document}


title: Vertical centering of figure

text: I understand from other posts that a single float should automatically be centered vertically on the page. However this does not seem to be the case in my code. Why? I use the book class. Both examples bellow results in the figures being placed on the top of the page.               \clearpage     \begin{figure}[ht]     \renewcommand{\figurename}{Picture}     \centering     \includegraphics[scale=1.0,clip]{pic1.eps}     \caption{pic1}     \label{pic1}     \end{figure}          \clearpage     \begin{figure}[H]     \renewcommand{\figurename}{Picture}     \centering     \includegraphics[scale=0.6,clip]{pic2.eps}     \caption{pic2}     \label{pic2}     \end{figure}     \clearpage


title: Package parameters should depend on the build environment

text: I'm working on the _same_ TeX file (it's in a git repository) at different places. However, these different places have different versions of LaTeX installed. At work, I need these headers:               \usepackage[caption=false]{caption}     \usepackage[font=footnotesize]{subfig}      At home (newer version of the subfig package), I need these headers:               \usepackage[font=footnotesize,caption=false]{subfig}      The wrong headers will cause the compile to fail: Using the "work" headers at home, subfig complains that I should stop using the caption package. Using the "home" headers at work, subfig complains about unknown parameters. Is there a way to have LaTeX detect the version of subfig available and use the "correct" `\usepackage` statements?


title: ModernCV modifying the header - Contents in the next line

text: As a continuation of this question moderncv banking style: How to move the title block all the way to the left?, I would like to bring in the contents, one in each line like :   street and number   city -postcode   country   ph no 1   ph no 2   email   web page   The bullet points are to be removed. the code is:               \documentclass[12pt,letterpaper]{moderncv}     \moderncvstyle{banking}     \moderncvcolor{blue}     \usepackage{libertine}     \usepackage[scale=0.75]{geometry}          \makeatletter     \renewcommand*{\flushmaketitle}{%       \strut\usebox{\maketitlebox}%       \savebox{\maketitlebox}{}%       \savebox{\maketitletempbox}{}%       \setlength{\maketitleboxwidth}{0pt}}     \renewcommand*{\maketitle}{%     %  \setlength{\maketitlewidth}{0.8\textwidth}% ORIGINAL       \setlength{\maketitlewidth}{\textwidth}% NEW       %\hfil% ORIGINAL       \parbox{\maketitlewidth}{%     %    \centering% ORIGINAL         \raggedright% NEW         % name and title         \namestyle{\@firstname~\@lastname}%         \\% \isundefined doesn't work on \@title, as LaTeX itself defines \@title (before it possibly gets redefined by \title)         % detailed information         \addressfont\color{color2}%         \ifthenelse{\isundefined{\@addressstreet}}{}{\addtomaketitle{\addresssymbol\@addressstreet}%           \ifthenelse{\equal{\@addresscity}{}}{}{\addtomaketitle{\@addresscity}}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty           \ifthenelse{\equal{\@addresscountry}{}}{}{\addtomaketitle{\@addresscountry}}%           \flushmaketitle\@firstmaketitleelementtrue\\}%         \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number           \addtomaketitle{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%         \ifthenelse{\isundefined{\@email}}{}{\addtomaketitle{\emailsymbol\emaillink{\@email}}}%         \ifthenelse{\isundefined{\@homepage}}{}{\addtomaketitle{\homepagesymbol\httplink{\@homepage}}}%         \collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link           \addtomaketitle{\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}%         \ifthenelse{\isundefined{\@extrainfo}}{}{\addtomaketitle{\@extrainfo}}%         \flushmaketitle}\\[2.5em]}% need to force a \par after this to avoid weird spacing bug at the first section if no blank line is left after \maketitle     \makeatother               \name{John}{Doe}     \address{street and number}{postcode city}{country}     \phone[mobile]{+1~(234)~567~890}     \phone[fixed]{+2~(345)~678~901}     \phone[fax]{+3~(456)~789~012}     \email{john@doe.org}     \homepage{www.johndoe.com}     \quote{Some quote}          \begin{document}     \makecvtitle          \section{A test section}     Some test text test text test text test text test text test text test text test text test text test text test text test text test text test text test text test text test text test text test text test text test text test text test text test text     \end{document}       ![enter image description here](http://i.stack.imgur.com/nyBw4.png)


title: How to remove unnecessary space in flalign* environment

text: This is the first time I've ever used TeX and I'm super confused as to why this is happening. When I used the `flalign*` environment within the `enumerate` environment, it leaves line break after the item number 2., when I'd really like to have the equation begin on the same line as number 2., as it does with number 1.               \documentclass{article}     \date{}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage{tikz}     \addtolength{\oddsidemargin}{-.875in}     \addtolength{\evensidemargin}{-.875in}     \addtolength{\textwidth}{1.75in}     \addtolength{\topmargin}{-.875in}     \addtolength{\textheight}{1.75in}               \begin{document}     \textbf{Question 3.6.}     \begin{enumerate}     \item $\mathcal{P}(\emptyset)=\{\emptyset\}$     \item\begin{flalign*}     \mathcal{P}\Big(\mathcal{P}\big(\mathcal{P}(\emptyset)\big)\Big)&=\mathcal{P}\Big(\mathcal{P}\big(\{\emptyset\}\big)\Big)&\\     \mathcal{P}\big(\{\emptyset\}\big)&=\big\{\emptyset ,\{\emptyset\}\big\}\\     \mathcal{P}\Big(\mathcal{P}\big(\mathcal{P}(\emptyset)\big)\Big)&=\mathcal{P}\big(\big\{\emptyset ,\{\emptyset\}\big\}\big)\\     &=\Big\{\emptyset , \{\emptyset\},\big\{\{\emptyset\}\big\}, \big\{\emptyset ,\{\emptyset\}\big\}\Big\}     \end{flalign*}     \end{enumerate}     \end{document}      ![enter image description here](http://i.stack.imgur.com/9slkE.jpg) Any help would be greatly appreciated.


I use Lyx 2.1. I want to make all pages with the same style footer. The first page of each chapter has its own style (Style No. 1) Other pages have a different style (Style No. 2) is it possible to make all pages with (Style No. 2)? class document: report (Style No. 1 ): ![enter image description here](http://i.stack.imgur.com/ZcT4z.png) (Style No. 2) : ![enter image description here](http://i.stack.imgur.com/gegMQ.png)


title: Create biconcave lens

text: I have been trying for hours.. can anyone help me? I can't fill with color the "shape" that is the lens.               \documentclass[border=12pt]{standalone}     \usepackage{tikz}     \usetikzlibrary{intersections}          \begin{document}          \begin{tikzpicture}[scale=1]          \begin{scope}[>=latex]     \draw [->] (-3,0) -- (3,0);     \draw [->] (0,-1.25) -- (0,1.5);     \end{scope}     \definecolor{lensBlue}{RGB}{217,232,250}                    \path [name path=arc1](-1.9,-1.5) arc[start angle=-90, end angle=90,radius=1.5];     \path [name path=arc2](1.9,1.5) arc[start angle=90, end angle=270,radius=1.5];     \path [name path=rect](-0.9,-0.9) rectangle (0.9,0.9);               \path [name intersections={of = arc1 and rect}];     \coordinate (A)  at (intersection-1);     \coordinate (B)  at (intersection-2);          \path [name intersections={of = arc2 and rect}];     \coordinate (C)  at (intersection-1);     \coordinate (D)  at (intersection-2);          \draw (A) -- (D);     \draw (B) -- (C) ;          \draw (-1.9,-1.5) arc[start angle=-90, end angle=90,radius=1.5];     \draw (1.9,1.5) arc[start angle=90, end angle=270,radius=1.5];               \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/IalxW.png)


title: Change font size of \Large etc.

text: After gaining some insight from How does font size work in TeX?, now I want to change my font size values according to my preference. As a follow up from the linked question, how can I set `\Large` = 13pt `\LARGE` = 15pt ? In the linked question it's `\Large` = 14.4pt and `\LARGE` = 17.28pt.


title: Tikz-cd: How can I arrange diagonal arrows parallel?

text: The two lower diagonal arrows in the following diagram are obviously not exactly parallel. How can I arrange them correctly? ![enter image description here](http://i.stack.imgur.com/GnQck.jpg)               \documentclass{article}     \usepackage{tikz-cd}     \usepackage{amsmath}     \begin{document}     \begin{center}     \begin{tikzcd}[column sep={{{{3em,between origins}}}}]%[bo column sep=3em]            A' \arrow{rr}[pos=0.25]{f} \arrow{dd}[swap,pos=0.25]{a} \arrow{rd}[inner sep=1pt]{1_{A'}} && B'' \arrow{dd}[pos=0.25]{\iota_{B''}} \arrow{rd}[inner sep=1pt]{\iota_{B''}}\\           {} & A' \arrow{ld}[swap,inner sep=1pt]{a} \arrow{rr}[pos=0.25]{\iota_A\circ a} &&{A}\amalg_{A'}{B''} \arrow{dl}[inner sep=1pt]{1_{{A}\amalg_{A'}{B''}}}\\           A \arrow[swap]{rr}[pos=0.25]{\iota_A} && \smash[b]{{A}\amalg_{A'}{B''}}\\          \end{tikzcd}     \end{center}     \end{document}


title: Painting an ellipse that fits a row of node but is not narrow and long

text: I want to draw a Tikz diagram, in which an ellipse contains a row of smaller ellipses. I tried doing so using the fitting library:               \begin{tikzpicture}[       every node/.style={inner sep=1pt},       proc/.style={shape=ellipse, draw}     ]     \path node[proc] (q) {q} -- ++(2cm,0)            node[proc] (p1) {p$_1$} -- ++(1.5cm,0)           node (d) {\ldots} -- ++(1.5cm,0)           node[proc] (pn) {p$_n$};     \node[fit=(q)(p1)(d)(pn), proc] {};     \end{tikzpicture}      The result is a long and narrow ellipse: ![bad ellipse](http://i.stack.imgur.com/Y5hNI.png) I would prefer the surrounding ellipse to be shorter and taller, i.e., end closer to the `q` and `pn` nodes, and also have slightly more height. What is the right configuration for this?


title: Import code from LaTeXDraw to writeLaTeX

text: I am new to LaTeX. I am trying to write my master thesis using `WriteLaTeX`. I wanted to make some figures using `LaTeXDraw`. However, I want to import the code to my report and not the final picture. How can I do that?


title: Glossaries package and acronyms with an &

text: I'm using glossaries package and have one entry that has an & in between:               %\newacronym{CK}{CK}{Chidamber \& Kemerer}     \newglossaryentry{CK}{type =\acronymtype,                           name={CK},                           description={Chidamber \& Kemerer},                           text={CK},                           first={Chidamber \& Kemerer (CK)},                           plural={CKs},                           firstplural={Chidamber \& Kemerers (CKs)}}      in both variants I do get an " in front of the and char and it looks like this:               Chidamber "& Kemerer      whenever I use \glsdesc{CK} Does someone see a workaround for this?


title: Overriding a preselected biblatex style, and suppressing unwanted BibTeX fields

text: I am trying to suppress printing data related to article issue and month by using `biblatex`, but the code below does not work for citations generated by `\mcite` (or `\mcitesupercite`), although it does for simple citations generated by `\cite`.               \AtEveryBibitem{%       \clearfield{issue}%       \clearfield{month}%       }        Is there any simple way to allow that?


title: How to add custom space in table of contents?

text: How can I add extra space between two specfied sections in the TOC? i.e. I want to add space only at the arrow: ![](http://i.imgur.com/yML48q7.png) Is this even possible in a simple way? Here's a minimal example:               \documentclass{article}     \makeatother     \begin{document}     \tableofcontents          \section{Sec 1}     \section{Sec 2} % I want space between section 2 and 3 in the table of contents     \section{Sec 3}     \section{Sec 4}     \section{Sec 5}          \end{document}      (I am also using the `classicthesis` template if that makes a difference) Thanks in advance.


title: Add macro to \chapter command

text: I am using the report class. And all I want that after the use of `\chapter{...}` the marco `\thispagestyle{onlypagenumber}` is added. I fixed this with just defining a new macro `\Chapter{...}` `\newcommand{\Chapter}[1]{\chapter{#1}\thispagestyle{onlypagenumber}}` However I would rather like to still use `\chapter{...}` since people are used to typing `\chapter{...}` instead of `\Chapter{...}`. How can I make this small alteration? Note also that `\thispagestyle{onlypagenumber}` should not be added to star chapters e.g. `\chapter*{...}` I tried also using the etoolbox which provides the some of "appto" commands on page 9. > \appto This command appends arbitrary hcodei to a hhooki. If the hcodei > contains any parameter characters, they need not be doubled. This command is > robust. This failed however but probably I am doing something wrong. I would prefer a solution of the etoolbox. Example               \documentclass{book}     \usepackage{fancyhdr}     \usepackage{lipsum}          \fancypagestyle{onlypagenumber}{%       \fancyhf{}       \fancyhfoffset[RO,EL]{2.5cm}       \fancyhead[OR]{%         \sffamily         \quad\smash{\rule[-.2ex]{1pt}{4cm}}\quad         \thepage       }       \fancyhead[EL]{%         \sffamily\thepage         \quad\smash{\rule[-.2ex]{1pt}{4cm}}\quad       }     }          \pagestyle{fancy}     \fancyhf{}     \fancyhfoffset[OR,EL]{2.5cm}     \fancyhead[OR]{%       \sffamily\MakeUppercase{\leftmark}       \quad\smash{\rule[-.2ex]{1pt}{4cm}}\quad       \thepage     }     \fancyhead[EL]{       \sffamily\MakeUppercase{\thepage}       \quad\smash{\rule[-.2ex]{1pt}{4cm}}\quad       \MakeUppercase{\chaptername}~\thechapter     }     \renewcommand\headrulewidth{0pt}     \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}          \newcommand{\Chapter}[1]{\chapter{#1}\thispagestyle{onlypagenumber}}          \begin{document}          \Chapter{Test chapter}     \lipsum[1-40]          \end{document}


title: Using fonts from winfonts package with report document class

text: The `winfonts` package (around since 2006) is said to provide the following fonts for LaTeX2e.               Arial           Franklin Gothic     Tahoma                Comic Sans      Georgia             Times     Courier New     Palatino Linotype   Verdana      I have been looking through several documents for using new fonts in LaTeX2e with `NFSS` or _New Font Selection Scheme_ :               cfgguide.pdf     clsguide.pdf     fntguide.pdf     fontinstallationguide.pdf     fontname.pdf      as well as in some books:               Kopka H., Daly P.W.     A Guide To LaTeX: Document Preparation for Beginners and Advanced Users     3rd ed, 1999          Lamport L.     LaTeX: A Document Preparation System: User's Guide and Reference Manual     2nd ed, 1994          Mittelbach Fr., Goossens M.     The LaTeX Companion     2nd ed, 2004      and it looks intricated to use those fonts. I especially require plain LaTeX2e (neither `XeTeX` nor `ConTeXt` - also, the driver must be `PDFLATEX`, so the part with `dvips` would not do) and `report` document class, somewhere along these lines **[EDITED:MWE#3]** :               \RequirePackage[T1]{fontenc}     \RequirePackage[utf8]{inputenc}     \RequirePackage{winfonts}     %\input{t1verdana.fd}     %\input{ts1verdana.fd}     %\input{winfonts.sty}     \RequirePackage{newunicodechar}          \documentclass{report}          \fontfamily{verdana}\selectfont     \renewcommand\rmdefault        {verdana}     %\renewcommand\ttdefault        {verdana}     %\renewcommand\sfdefault        {verdana}     %\renewcommand\seriesdefault    {verdana}     %\renewcommand\mddefault        {verdana}     %\renewcommand\bfdefault        {verdana}     %\renewcommand\shapedefault     {verdana}     %\renewcommand\updefault        {verdana}     %\renewcommand\itdefault        {verdana}     %\renewcommand\scdefault        {N/A}     %\renewcommand\sldefault        {verdana}     \renewcommand\familydefault    {\rmdefault}          \title{\LaTeX~package 'winfonts' MWE}     \author{Glita Sebastian}     \date{\today}          \begin{document}          \maketitle          \chapter{MWE}          \section{one}          \begin{itemize}         \item \textrm{normal} % Default         \item \textrm{roman} % Roman         \item \texttt{typewriter} % typewriter style / Monospaced         \item \textit{italics} % Italic         \item \textsf{sans--serif} % Sans Serif         \item \textbf{bold} % Bold         \item \textsl{slanted} % Slanted         %\item \textsc{small caps} % all capital letters / Small Caps         \item \textup{upright} % Upright         \item \textmd{md} % Medium     \end{itemize}          \end{document}      **[EDITED:MWE]** The output works, but the log gives **[EDITED:not with MWE#3 - solved]** :               LaTeX Font Warning: Font shape `T1/rmdefault/verdana/verdana' undefined     [1]LaTeX Font Warning: Font shape `T1/rmdefault/verdana/verdana' in size <20> not      LaTeX Font Warning: Font shape `TS1/rmdefault/verdana/verdana' undefined     [1]LaTeX Font Warning: Size substitutions with differences     LaTeX Font Warning: Some font shapes were not available, defaults substituted.      Under Linux, with `texlive-2013` distribution, the list of `winfonts` package has:               /etc/texmf/updmap.d/50winfonts.cfg     /usr/share/texmf-dist/ttf2pk/winfonts_ttf2tfm.map     /usr/share/texmf-site/fonts/map/pdftex/winfonts/winfonts.map          /usr/share/texmf-site/fonts/vf/monotype/     timesttf/mtmri8t.vf     timesttf/mtmri8c.vf     timesttf/mtmr8t.vf     timesttf/mtmr8c.vf     timesttf/mtmbi8t.vf     timesttf/mtmbi8c.vf     timesttf/mtmb8t.vf     timesttf/mtmb8c.vf     impact/micr8t.vf     impact/micr8c.vf     courierttf/mcrr8t.vf     courierttf/mcrr8c.vf     courierttf/mcrb8t.vf     courierttf/mcrb8c.vf     arial/malri8t.vf     arial/malri8c.vf     arial/malr8t.vf     arial/malr8c.vf     arial/malbi8t.vf     arial/malbi8c.vf     arial/malb8t.vf     arial/malb8c.vf          /usr/share/texmf-site/fonts/vf/microsft/     verdana/jvnri8t.vf     verdana/jvnri8c.vf     verdana/jvnr8t.vf     verdana/jvnr8c.vf     verdana/jvnbi8t.vf     verdana/jvnbi8c.vf     verdana/jvnb8t.vf     verdana/jvnb8c.vf          /usr/share/texmf-site/fonts/tfm/monotype/     timesttf/rmtmri8t.tfm     timesttf/rmtmri8c.tfm     timesttf/rmtmr8t.tfm     timesttf/rmtmr8c.tfm     timesttf/rmtmbi8t.tfm     timesttf/rmtmbi8c.tfm     timesttf/rmtmb8t.tfm     timesttf/rmtmb8c.tfm     timesttf/mtmri8t.tfm     timesttf/mtmri8c.tfm     timesttf/mtmr8t.tfm     timesttf/mtmr8c.tfm     timesttf/mtmbi8t.tfm     timesttf/mtmbi8c.tfm     timesttf/mtmb8t.tfm     timesttf/mtmb8c.tfm     impact/rmicr8t.tfm     impact/rmicr8c.tfm     impact/micr8t.tfm     impact/micr8c.tfm     courierttf/rmcrr8t.tfm     courierttf/rmcrr8c.tfm     courierttf/rmcrb8t.tfm     courierttf/rmcrb8c.tfm     courierttf/mcrr8t.tfm     courierttf/mcrr8c.tfm     courierttf/mcrb8t.tfm     courierttf/mcrb8c.tfm     arial/rmalri8t.tfm     arial/rmalri8c.tfm     arial/rmalr8t.tfm     arial/rmalr8c.tfm     arial/rmalc8t.tfm     arial/rmalc8c.tfm     arial/rmalbi8t.tfm     arial/rmalbi8c.tfm     arial/rmalb8t.tfm     arial/rmalb8c.tfm     arial/malri8t.tfm     arial/malri8c.tfm     arial/malr8t.tfm     arial/malr8c.tfm     arial/malbi8t.tfm     arial/malbi8c.tfm     arial/malb8t.tfm     arial/malb8c.tfm          /usr/share/texmf-site/fonts/tfm/microsft/     verdana/rjvnri8t.tfm     verdana/rjvnri8c.tfm     verdana/rjvnr8t.tfm     verdana/rjvnr8c.tfm     verdana/rjvnbi8t.tfm     verdana/rjvnbi8c.tfm     verdana/rjvnb8t.tfm     verdana/rjvnb8c.tfm     verdana/jvnri8t.tfm     verdana/jvnri8c.tfm     verdana/jvnr8t.tfm     verdana/jvnr8c.tfm     verdana/jvnbi8t.tfm     verdana/jvnbi8c.tfm     verdana/jvnb8t.tfm     verdana/jvnb8c.tfm          /usr/share/texmf-site/fonts/enc/dvips/winfonts/     ts1-winfonts.enc     ts1-winfonts-pala.enc     ts1-winfonts-pala-pk.enc     tex256cj-pala.enc     tex256cj-pala-pk.enc     tex256-pala.enc     tex256-pala-pk.enc          /usr/share/texmf-site/fonts/afm/monotype/     timesttf/rmtmri8t.afm     timesttf/rmtmri8c.afm     timesttf/rmtmr8t.afm     timesttf/rmtmr8c.afm     timesttf/rmtmbi8t.afm     timesttf/rmtmbi8c.afm     timesttf/rmtmb8t.afm     timesttf/rmtmb8c.afm     impact/rmicr8t.afm     impact/rmicr8c.afm     courierttf/rmcrr8t.afm     courierttf/rmcrr8c.afm     courierttf/rmcrb8t.afm     courierttf/rmcrb8c.afm     arial/rmalri8t.afm     arial/rmalri8c.afm     arial/rmalr8t.afm     arial/rmalr8c.afm     arial/rmalc8t.afm     arial/rmalc8c.afm     arial/rmalbi8t.afm     arial/rmalbi8c.afm     arial/rmalb8t.afm     arial/rmalb8c.afm          /usr/share/texmf-site/fonts/afm/microsft/verdana/     rjvnri8t.afm     rjvnri8c.afm     rjvnr8t.afm     rjvnr8c.afm     rjvnbi8t.afm     rjvnbi8c.afm     rjvnb8t.afm     rjvnb8c.afm          /usr/share/texmf-site/fonts/truetype/public/msttcorefonts/     verdanaz.ttf     verdana.ttf     verdanai.ttf     verdanab.ttf     times.ttf     timesi.ttf     timesbi.ttf     timesbd.ttf     impact.ttf     cour.ttf     couri.ttf     courbi.ttf     courbd.ttf     ariblk.ttf     arial.ttf     ariali.ttf     arialbi.ttf     arialbd.ttf          /usr/share/texmf-site/tex/latex/winfonts/     ts1verdana.fd     ts1times-ttf.fd     ts1courier-ttf.fd     ts1arial.fd     t1verdana.fd     t1times-ttf.fd     t1courier-ttf.fd     t1arial.fd     winpifont.sty     wingding.sty     winfonts.sty     windings.sty     windingbats.sty      The content of `"/usr/share/texmf-dist/ttf2pk/winfonts_ttf2tfm.map"` is:               % Entries for the winfonts bundle           rmalr8t arial.ttf Encoding=tex256.enc      rmalri8t ariali.ttf Encoding=tex256.enc      rmalb8t arialbd.ttf Encoding=tex256.enc      rmalbi8t arialbi.ttf Encoding=tex256.enc           rmalc8t arialbd.ttf Encoding=tex256.enc      rjo5r8t comic.ttf Encoding=tex256.enc      rjo5b8t comicbd.ttf Encoding=tex256.enc      rmcrr8t cour.ttf Encoding=tex256.enc      rmcrb8t courbd.ttf Encoding=tex256.enc      rifgr8t framd.ttf Encoding=tex256.enc      rifgri8t framdit.ttf Encoding=tex256.enc      rjgir8t georgia.ttf Encoding=tex256.enc      rjgiri8t georgiai.ttf Encoding=tex256.enc      rjgib8t georgiab.ttf Encoding=tex256.enc      rjgibi8t georgiaz.ttf Encoding=tex256.enc      rmicr8t impact.ttf Encoding=tex256.enc      rjybr8t sylfaen.ttf Encoding=tex256.enc      rjthr8t tahoma.ttf Encoding=tex256.enc      rjthb8t tahomabd.ttf Encoding=tex256.enc      rmtmr8t times.ttf Encoding=tex256.enc      rmtmri8t timesi.ttf Encoding=tex256.enc      rmtmb8t timesbd.ttf Encoding=tex256.enc      rmtmbi8t timesbi.ttf Encoding=tex256.enc      rjtrr8t trebuc.ttf Encoding=tex256.enc      rjtrri8t trebucit.ttf Encoding=tex256.enc      rjtrb8t trebucbd.ttf Encoding=tex256.enc      rjtrbi8t trebucbi.ttf Encoding=tex256.enc      rjvnr8t verdana.ttf Encoding=tex256.enc      rjvnri8t verdanai.ttf Encoding=tex256.enc      rjvnb8t verdanab.ttf Encoding=tex256.enc      rjvnbi8t verdanaz.ttf Encoding=tex256.enc      rmalr8c arial.ttf Encoding=ts1-winfonts.enc      rmalri8c ariali.ttf Encoding=ts1-winfonts.enc      rmalb8c arialbd.ttf Encoding=ts1-winfonts.enc      rmalbi8c arialbi.ttf Encoding=ts1-winfonts.enc      rmalc8c arialbd.ttf Encoding=ts1-winfonts.enc      rjo5r8c comic.ttf Encoding=ts1-winfonts.enc      rjo5b8c comicbd.ttf Encoding=ts1-winfonts.enc      rmcrr8c cour.ttf Encoding=ts1-winfonts.enc      rmcrb8c courbd.ttf Encoding=ts1-winfonts.enc      rifgr8c framd.ttf Encoding=ts1-winfonts.enc      rifgri8c framdit.ttf Encoding=ts1-winfonts.enc      rjgir8c georgia.ttf Encoding=ts1-winfonts.enc      rjgiri8c georgiai.ttf Encoding=ts1-winfonts.enc      rjgib8c georgiab.ttf Encoding=ts1-winfonts.enc      rjgibi8c georgiaz.ttf Encoding=ts1-winfonts.enc      rmicr8c impact.ttf Encoding=ts1-winfonts.enc      rjybr8c sylfaen.ttf Encoding=ts1-winfonts.enc      rjthr8c tahoma.ttf Encoding=ts1-winfonts.enc      rjthb8c tahomabd.ttf Encoding=ts1-winfonts.enc      rmtmr8c times.ttf Encoding=ts1-winfonts.enc      rmtmri8c timesi.ttf Encoding=ts1-winfonts.enc      rmtmb8c timesbd.ttf Encoding=ts1-winfonts.enc      rmtmbi8c timesbi.ttf Encoding=ts1-winfonts.enc      rjtrr8c trebuc.ttf Encoding=ts1-winfonts.enc      rjtrri8c trebucit.ttf Encoding=ts1-winfonts.enc      rjtrb8c trebucbd.ttf Encoding=ts1-winfonts.enc      rjtrbi8c trebucbi.ttf Encoding=ts1-winfonts.enc      rjvnr8c verdana.ttf Encoding=ts1-winfonts.enc      rjvnri8c verdanai.ttf Encoding=ts1-winfonts.enc      rjvnb8c verdanab.ttf Encoding=ts1-winfonts.enc      rjvnbi8c verdanaz.ttf Encoding=ts1-winfonts.enc      rlplr8t pala.ttf Encoding=tex256-pala-pk.enc      rlplri8t palai.ttf Encoding=tex256-pala-pk.enc      rlplb8t palab.ttf Encoding=tex256-pala-pk.enc      rlplbi8t palabi.ttf Encoding=tex256-pala-pk.enc      rlplrc8t pala.ttf Encoding=tex256cj-pala-pk.enc      rlplric8t palai.ttf Encoding=tex256cj-pala-pk.enc      rlplbc8t palab.ttf Encoding=tex256cj-pala-pk.enc      rlplbic8t palabi.ttf Encoding=tex256cj-pala-pk.enc      rlplr8c pala.ttf Encoding=ts1-winfonts-pala-pk.enc      rlplri8c palai.ttf Encoding=ts1-winfonts-pala-pk.enc      rlplb8c palab.ttf Encoding=ts1-winfonts-pala-pk.enc      rlplbi8c palabi.ttf Encoding=ts1-winfonts-pala-pk.enc      wingding wingding.ttf Encoding=wingding.enc PS=Only     webdings webdings.ttf Encoding=webdings.enc PS=Only      The content of `"/usr/share/texmf- site/fonts/map/pdftex/winfonts/winfonts.map"`:               rmalr8t ArialMT "T1Encoding ReEncodeFont" <[tex256.enc <arial.ttf     rmalri8t Arial-ItalicMT "T1Encoding ReEncodeFont" <[tex256.enc <ariali.ttf     rmalb8t Arial-BoldMT "T1Encoding ReEncodeFont" <[tex256.enc <arialbd.ttf     rmalbi8t Arial-BoldItalicMT "T1Encoding ReEncodeFont" <[tex256.enc <arialbi.ttf     rmalc8t Arial-BoldMT "T1Encoding ReEncodeFont" <[tex256.enc <arialbd.ttf     rjo5r8t ComicSansMS "T1Encoding ReEncodeFont" <[tex256.enc <comic.ttf     rjo5b8t ComicSansMS-Bold "T1Encoding ReEncodeFont" <[tex256.enc <comicbd.ttf     rmcrr8t CourierNewPSMT "T1Encoding ReEncodeFont" <[tex256.enc <cour.ttf     rmcrb8t CourierNewPS-BoldMT "T1Encoding ReEncodeFont" <[tex256.enc <courbd.ttf     rifgr8t FranklinGothic-Medium "T1Encoding ReEncodeFont" <[tex256.enc <framd.ttf     rifgri8t FranklinGothic-MediumItalic "T1Encoding ReEncodeFont" <[tex256.enc <framdit.ttf     rjgir8t Georgia "T1Encoding ReEncodeFont" <[tex256.enc <georgia.ttf     rjgiri8t Georgia-Italic "T1Encoding ReEncodeFont" <[tex256.enc <georgiai.ttf     rjgib8t Georgia-Bold "T1Encoding ReEncodeFont" <[tex256.enc <georgiab.ttf     rjgibi8t Georgia-BoldItalic "T1Encoding ReEncodeFont" <[tex256.enc <georgiaz.ttf     rmicr8t Impact "T1Encoding ReEncodeFont" <[tex256.enc <impact.ttf     rjybr8t Sylfaen "T1Encoding ReEncodeFont" <[tex256.enc <sylfaen.ttf     rjthr8t Tahoma "T1Encoding ReEncodeFont" <[tex256.enc <tahoma.ttf     rjthb8t Tahoma-Bold "T1Encoding ReEncodeFont" <[tex256.enc <tahomabd.ttf     rmtmr8t TimesNewRomanPSMT "T1Encoding ReEncodeFont" <[tex256.enc <times.ttf     rmtmri8t TimesNewRomanPS-ItalicMT "T1Encoding ReEncodeFont" <[tex256.enc <timesi.ttf     rmtmb8t TimesNewRomanPS-BoldMT "T1Encoding ReEncodeFont" <[tex256.enc <timesbd.ttf     rmtmbi8t TimesNewRomanPS-BoldItalicMT "T1Encoding ReEncodeFont" <[tex256.enc <timesbi.ttf     rjtrr8t TrebuchetMS "T1Encoding ReEncodeFont" <[tex256.enc <trebuc.ttf     rjtrri8t TrebuchetMS-Italic "T1Encoding ReEncodeFont" <[tex256.enc <trebucit.ttf     rjtrb8t TrebuchetMS-Bold "T1Encoding ReEncodeFont" <[tex256.enc <trebucbd.ttf     rjtrbi8t Trebuchet-BoldItalic "T1Encoding ReEncodeFont" <[tex256.enc <trebucbi.ttf     rjvnr8t Verdana "T1Encoding ReEncodeFont" <[tex256.enc <verdana.ttf     rjvnri8t Verdana-Italic "T1Encoding ReEncodeFont" <[tex256.enc <verdanai.ttf     rjvnb8t Verdana-Bold "T1Encoding ReEncodeFont" <[tex256.enc <verdanab.ttf     rjvnbi8t Verdana-BoldItalic "T1Encoding ReEncodeFont" <[tex256.enc <verdanaz.ttf     rmalr8c ArialMT "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <arial.ttf     rmalri8c Arial-ItalicMT "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <ariali.ttf     rmalb8c Arial-BoldMT "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <arialbd.ttf     rmalbi8c Arial-BoldItalicMT "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <arialbi.ttf     rmalc8c Arial-BoldMT "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <arialbd.ttf     rjo5r8c ComicSansMS "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <comic.ttf     rjo5b8c ComicSansMS-Bold "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <comicbd.ttf     rmcrr8c CourierNewPSMT "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <cour.ttf     rmcrb8c CourierNewPS-BoldMT "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <courbd.ttf     rifgr8c FranklinGothic-Medium "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <framd.ttf     rifgri8c FranklinGothic-MediumItalic "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <framdit.ttf     rjgir8c Georgia "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <georgia.ttf     rjgiri8c Georgia-Italic "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <georgiai.ttf     rjgib8c Georgia-Bold "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <georgiab.ttf     rjgibi8c Georgia-BoldItalic "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <georgiaz.ttf     rmicr8c Impact "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <impact.ttf     rjybr8c Sylfaen "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <sylfaen.ttf     rjthr8c Tahoma "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <tahoma.ttf     rjthb8c Tahoma-Bold "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <tahomabd.ttf     rmtmr8c TimesNewRomanPSMT "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <times.ttf     rmtmri8c TimesNewRomanPS-ItalicMT "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <timesi.ttf     rmtmb8c TimesNewRomanPS-BoldMT "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <timesbd.ttf     rmtmbi8c TimesNewRomanPS-BoldItalicMT "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <timesbi.ttf     rjtrr8c TrebuchetMS "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <trebuc.ttf     rjtrri8c TrebuchetMS-Italic "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <trebucit.ttf     rjtrb8c TrebuchetMS-Bold "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <trebucbd.ttf     rjtrbi8c Trebuchet-BoldItalic "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <trebucbi.ttf     rjvnr8c Verdana "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <verdana.ttf     rjvnri8c Verdana-Italic "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <verdanai.ttf     rjvnb8c Verdana-Bold "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <verdanab.ttf     rjvnbi8c Verdana-BoldItalic "ts1-winfonts ReEncodeFont" <[ts1-winfonts.enc <verdanaz.ttf     rlplr8t PalatinoLinotype-Roman "T1Encoding-pala ReEncodeFont" <[tex256-pala.enc <pala.ttf     rlplri8t PalatinoLinotype-Italic "T1Encoding-pala ReEncodeFont" <[tex256-pala.enc <palai.ttf     rlplb8t PalatinoLinotype-Bold "T1Encoding-pala ReEncodeFont" <[tex256-pala.enc <palab.ttf     rlplbi8t PalatinoLinotype-BoldItalic "T1Encoding-pala ReEncodeFont" <[tex256-pala.enc <palabi.ttf     rlplrc8t PalatinoLinotype-Roman "T1Encodingcj-pala ReEncodeFont" <[tex256cj-pala.enc <pala.ttf     rlplric8t PalatinoLinotype-Italic "T1Encodingcj-pala ReEncodeFont" <[tex256cj-pala.enc <palai.ttf     rlplbc8t PalatinoLinotype-Bold "T1Encodingcj-pala ReEncodeFont" <[tex256cj-pala.enc <palab.ttf     rlplbic8t PalatinoLinotype-BoldItalic "T1Encodingcj-pala ReEncodeFont" <[tex256cj-pala.enc <palabi.ttf     rlplr8c PalatinoLinotype-Roman "ts1-winfonts-pala ReEncodeFont" <[ts1-winfonts-pala.enc <pala.ttf     rlplri8c PalatinoLinotype-Italic "ts1-winfonts-pala ReEncodeFont" <[ts1-winfonts-pala.enc <palai.ttf     rlplb8c PalatinoLinotype-Bold "ts1-winfonts-pala ReEncodeFont" <[ts1-winfonts-pala.enc <palab.ttf     rlplbi8c PalatinoLinotype-BoldItalic "ts1-winfonts-pala ReEncodeFont" <[ts1-winfonts-pala.enc <palabi.ttf     rwingding Wingdings-Regular "wingdingencoding ReEncodeFont" <[wingding.enc <wingding.ttf     rwebdings Webdings "webdingsencoding ReEncodeFont" <[webdings.enc <webdings.ttf      AFAIK, the LaTeX2e `NFSS` gives steps how to generate some of the files from the actual font files via other files, and it seems this to have already been done by the `winfonts` packager. I use also the `newunicodechar` package and have defined **many** `utf-8` " _unicodemathsymbols_ " as `\newcommandx`s to issue corresponding LaTeX math macros: there is also the trouble of using `winfonts` in math mode, too. Appreciate any insight on how to use the fonts the easiest/fastest way, and where is more to do from my part, I gladly accept your help with this. Thank s. I would work this out alone, but perhaps I need get jump-started. **[EDITED]** Just to check the `winfonts.map` is found by `updmap-sys`:               user@localhost ~ less /var/lib/texmf/web2c/updmap.log     ...     Scanning for Map entries     ...     /usr/share/texmf-site/fonts/map/pdftex/winfonts/winfonts.map                   [150 files]     ...     /usr/share/texmf-site/fonts/map/pdftex/winfonts/winfonts.map:     rjvnb8c     rjvnb8t     rjvnbi8c     rjvnbi8t     rjvnr8c     rjvnr8t     rjvnri8c     rjvnri8t     rmalb8c     rmalb8t     rmalbi8c     rmalbi8t     rmalc8c     rmalc8t     rmalr8c     rmalr8t     rmalri8c     rmalri8t     rmcrb8c     rmcrb8t     rmcrr8c     rmcrr8t     rmicr8c     rmicr8t     rmtmb8c     rmtmb8t     rmtmbi8c     rmtmbi8t     rmtmr8c     rmtmr8t     rmtmri8c     rmtmri8t     ...      And `/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map` contains lines like: rjvnri8t Verdana-Italic " T1Encoding ReEncodeFont " <[tex256.enc


title: retain only the domain name of url and print in bibliography as organisation

text: How can I define a command to retain only the domain name of a link e.g. http://www.google.com/search?=bang will give only google.com and display it as organisation field for a url reference? Many Thanks


title: How to show margin distances in mm

text: I would like to know the distance (in mm) of the margins I just set, and I would like them to be displayed in the document (for debugging purposes, of course). I use the `showframe` option of the `geometry` package in order to denote the margins. How do I get to display the margin values? This is a **super** MWE:               \documentclass[12pt,twoside,a4paper]{scrreprt}     \usepackage[pass,showframe]{geometry}     \usepackage{lmodern}     \usepackage{kantlipsum}          \begin{document}     \kant[1-10]     \end{document}      I would like it to be something like this (taken from Golden Ratio for vertical poem positioning): ![enter image description here](http://i.stack.imgur.com/L28On.png) Of course, I don't care about the text inside, just the margins (margin par, topmargin, innermargin, etc.)


title: Long command name for horizontal space ~

text: The short command `\,` has (more or less) the long command equivalent `\thinspace`. - What is the long command for the unbreakable space `~`? Also, is there a long command for a space which is *just a little bit shorter than a space? (For situations like fig. 1, where `fig\,1` puts the two parts too close and `fig.\@ 1` IMHO is to far from each other.)


title: Can I make TeX completely free-form?

text: I'm bothered about the language format of TeX. I mean I want to know why the `CR` is converted into a space and `%` must be at the end of a line to avoid the matter. To make matters worse, a blank line means the end of a paragraph. I know these functions are useful in most cases. But, in macros or something like that, they bother me; I guess many package writers too. My questions are "Can I nullify these functions using some macros (such as `\catcode`)?" and "Can I make TeX completely free-form?"


title: \pgfmathparse returns a phantom .0.0

text: \documentclass{minimal}     \usepackage{tikz}     \begin{document}     \pgfmathparse{random(-5,5)}     \pgfmathresult     \end{document}      Works, but I have a `.0.0` that not supposed to be here.


title: Computing a value inside \setcounter

text: I am using an `enumerate` list. I often want to decrement the counter of a list, to get output like this:               1. Some text here     2. Some more text here     2. This is a re-use of the number     3. The counter increments     3. Decrement the counter just before this \item      I hoped to do `\setcounter{enumi}{\value{enumi}+1}`, but it doesn't do the arithmetic, it simply writes `+1` in the PDF output.


title: Does fontspec have a cache?

text: The mininimal working example is the following one:               \documentclass{article}     \usepackage{fontspec,xunicode}     \setmainfont[Numbers=OldStyle]{Linux Libertine O}     \begin{document}     0123456789     \textbf{\emph{0123456789}}     \end{document}      The 6 in italic and bold is like a 0. I wrote a report of bug on http://sourceforge.net/p/linuxlibertine/bugs/190/. The problem should be solved but I installed a new version, and tried again: the problem is still here. The only solution I see is that fontspec has a cache, but I don't see any information on the documentation file. I run with xetex.


title: make a title for a poster

text: It will be very helpful if someone kindly help me fixing the title of the code below:               \documentclass[a0,portrait]{a0poster}     \usepackage{tikz}     \usetikzlibrary{shapes,snakes,arrows,shadows,petri,decorations.markings}     \definecolor{pms286}{RGB}{4,52,177}     \tikzstyle{mybox} = [draw=pms286!80, fill=blue!20, very thick,     rectangle, rounded corners=30pt, inner sep=10pt, inner ysep=30pt,color=blue!20]     \def\Title#1{\noindent{\VeryHuge\color{pms286} #1}}               %\begin{document}     \newcommand{\displaytitle}[3]{%       \begin{tikzpicture}         \node [mybox] (box){%           \begin{minipage}{0.93\textwidth}         \begin{tabular}{lc}           \multirow {3}{*}{\includegraphics[width=0.125\textwidth]{some logo}}           & \baselineskip=3\baselineskip\Title{#1}\\\\           & \Huge\color{pms286!90}{#2} \\\\           & \LARGE\color{pms286!80}{#3}\\         \end{tabular}           \end{minipage}         };       \end{tikzpicture}     }          \begin{document}     \centering     \displaytitle{A very very very very very very \\very very very very very very very very very very     long title. }{Author}{University}     \end{document}      NB: the logo image is missing, so, compilation will give a error. But thats not the problem here. My problem is, with this displaytitle setting, Title is only for one line. If the title is really lengthy (two line), it can not be broken. A `\' linebreak erases the format(as shown in the picture). Kindly help.![enter image description here](http://i.stack.imgur.com/9Vcto.png)