title: Figures: Can the list of figures be embedded into the table of contents?

text: Can the list of figure be embedded in the table of contents for the article class? I tried a variation of the solution here but by replacing chapter with section and then tried using chapter. The only thing that appeared was the list of figures. To be more clear, I would like for my figures to be combined with the table of contents not a link to the figure sections; that is, if figure 1 is in section 1, the table of contents will look like               1 something        figure 1 caption      Figures are setup as               \begin{figure}     \subfloat[]{}     ...     \end{figure}      So this is my setup:               \documentclass[11pt]{article}          \usepackage[usenames, dvipsnames, svgnames, table]{xcolor}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{eucal}     \usepackage{pxfonts}     \usepackage{setspace}     \usepackage{enumerate}     \usepackage{amscd}     \usepackage{dsfont}     \usepackage{wasysym}     \usepackage{tikz}     \usepackage{tikz-qtree}     \usepackage{mathtools}     \usepackage{kurier}     \usepackage{pgfplots}     \usepackage{listings}     \usepackage{etoolbox}     \usepackage{tikz-3dplot}     \usepackage{float}     \usepackage{wrapfig}     \usepackage{multirow}     \usepackage{array}     \usepackage{tkz-fct}     \usepackage{graphicx}     \usepackage{datetime}     \usepackage[protrusion = true, expansion]{microtype}     \usepackage{marvosym}     \usepackage{starfont}     \usepackage{fixltx2e}     %\usepackage[nottoc]{tocbibind}                                                           \usepackage{tocloft}     \usepackage{subfig}     %\usepackage{thmtools}                                                                    %\usepackage{amsthm}                                                                      \usepackage{hyperref}     \usepackage[margin = 0.75in]{geometry}     \usepackage{fancyhdr}     \usepackage[caption = false]{subfig}     \usepackage[all]{hypcap}          %  Figures in TOC                                                                        \makeatletter     \renewcommand\ext@figure{toc}     \makeatother          \newlength\mylen     \renewcommand\cftfigpresnum{Figure~}     \settowidth\mylen{\bfseries\cftfigpresnum\cftfigaftersnum}     \addtolength\cftfignumwidth{\mylen}          \begin{document}     \cleardoublepage     \tableofcontents          \begin{figure}[H]       \centering       \begin{tabular}{cc}         \subfloat[\(L_1\)]{\includegraphics[width = 3.25in]{L1Contour}} &         \subfloat[\(L_2\)]{\includegraphics[width = 3.25in]{L2Contour}}\\         \subfloat[\(L_3\)]{\includegraphics[width = 3.25in]{L3Contour}} &         \subfloat[\(L_4\) and \(L_5\)]{\includegraphics[width = 3.25in]           {L4L5Contour}}       \end{tabular}       \caption[2-D Zero Velocity Surfaces]       {2-D zero velocity surfaces for the Earth-Moon Lagrange points.}       \label{fig:2dzerovelocitysurface}     \end{figure}     \end{document}


title: Add text to TOC without dotted-lines and line number

text: Despite following many suggestions on the net, I have the following issue. I am using TeXnicCenter and MiKTeX. [I have posted the same on Latex Community Forum]. I have not used/tried the `tocloft` package yet. I am currently using the `thesis2` class. Objective: In my table of contents, I want a text "Chapter" without the dotted lines and the page number. Eg.,               ============================================          Table of Contents          Acknowledgments ................ ii          Abstract ........................ v          Chapter          1 Introduction .................. 1          1.1 Network Design .............. 1          1.1.1 Steiner Tree Problems ..... 2          ============================================      Trial-1: When I do `\addcontentsline{toc}{chapter}{\protect Chapter}`, it adds the required text (Chapter) to toc. But, the dotted lines and page number is present. Trial-2: The same happens when I do `\addcontentsline{toc}{chapter}{\protect \numberline{}Chapter}`. Q1) Also, I want only one-line spacing between "Chapter" and "1 Introduction". Currently, I get 2 line-spacing (like between Acknowledgments and Abstract). How do I get rid of that 2 line spacing and make it 1-line spacing?


title: TeXShop Search Window

text: I've just reinstalled TeXShop [and OS X]. I would like to find/replace/replaceall _only within a block of selected text_. I seem to recall my old version had this feature, but I can't find it now (my search window is much more basic now). Any suggestions?


title: Tikzpicture horizontal alignment with to[grid with coordinates]

text: I'm trying to align horizontally three grids, two of them in one figure. Below is the sample code:               \documentclass[twocolumn]{article}     %% -------------------------------------------------------------------------------------     \usepackage{tikz,pgfplots}          \makeatletter     \def\grd@save@target#1{%       \def\grd@target{#1}}     \def\grd@save@start#1{%       \def\grd@start{#1}}     \tikzset{       grid with coordinates/.style={         to path={%           \pgfextra{%             \edef\grd@@target{(\tikztotarget)}%             \tikz@scan@one@point\grd@save@target\grd@@target\relax             \edef\grd@@start{(\tikztostart)}%             \tikz@scan@one@point\grd@save@start\grd@@start\relax             \draw[minor help lines] (\tikztostart) grid (\tikztotarget);             \draw[major help lines] (\tikztostart) grid (\tikztotarget);             \grd@start             \pgfmathsetmacro{\grd@xa}{\the\pgf@x/1cm}             \pgfmathsetmacro{\grd@ya}{\the\pgf@y/1cm}             \grd@target             \pgfmathsetmacro{\grd@xb}{\the\pgf@x/1cm}             \pgfmathsetmacro{\grd@yb}{\the\pgf@y/1cm}             \pgfmathsetmacro{\grd@xc}{\grd@xa + \pgfkeysvalueof{/tikz/grid with coordinates/major step x}}             \pgfmathsetmacro{\grd@yc}{\grd@ya + \pgfkeysvalueof{/tikz/grid with coordinates/major step y}}             \foreach \x in {\grd@xa,\grd@xc,...,\grd@xb}             \node[anchor=north] at (\x,\grd@ya -0.05) {\pgfmathprintnumber[fixed,fixed zerofill,precision=1]{\x}};                    \foreach \y in {\grd@ya,\grd@yc,...,\grd@yb}             \node[anchor=east] at (\grd@xa,\y) {\pgfmathprintnumber[fixed,fixed zerofill,precision=1]{\y}};           }         }       },       minor help lines/.style={         help lines,         black!20!white,         line cap =round,         xstep=\pgfkeysvalueof{/tikz/grid with coordinates/minor step x},         ystep=\pgfkeysvalueof{/tikz/grid with coordinates/minor step y}       },       major help lines/.style={         help lines,         black!20!white,         line cap =round,         line width=\pgfkeysvalueof{/tikz/grid with coordinates/major line width},         xstep=\pgfkeysvalueof{/tikz/grid with coordinates/major step x},         ystep=\pgfkeysvalueof{/tikz/grid with coordinates/major step y}       },       grid with coordinates/.cd,       minor step x/.initial=.5,       minor step y/.initial=.2,       major step x/.initial=1.0,       major step y/.initial=1.0,       major line width/.initial=1pt,       grid precision x/.initial=1,     }     \makeatother     %% -------------------------------------------------------------------------------------          \begin{document}          \begin{figure}[!b]         \centering         \begin{tikzpicture}[xscale=0.1,yscale=1,font=\scriptsize,grid with coordinates/major step x=10,grid with coordinates/minor step x=2]             \draw (0,0) to[grid with coordinates] (50,1);                  \coordinate [label=above:``low''] (A) at (5,1.0);             \draw[thick,line cap =round] (0,1) -- (10,1) -- (20,0);             \coordinate [label=above:``average''] (A) at (20,1.0);             \draw[thick,line cap =round] (10,0) -- (20,1) -- (30,0);                     \coordinate [label=above:``high''] (A) at (35,1.0);             \draw[thick,line cap =round] (20,0) -- (30,1) -- (50,1);              \end{tikzpicture}         \begin{tikzpicture}[xscale=1,yscale=1,font=\scriptsize,grid with coordinates/minor step x=0.2]             \draw (0,0) to[grid with coordinates] (5,1);                  \coordinate [label=above:``low''] (A) at (0.5,1.0);             \draw[thick,line cap =round] (0,1) -- (1,1) -- (2,0);             \coordinate [label=above:``average''] (A) at (2,1.0);             \draw[thick,line cap =round] (1,0) -- (2,1) -- (3,0);                    \coordinate [label=above:``high''] (A) at (3.5,1.0);             \draw[thick,line cap =round] (2,0) -- (3,1) -- (5,1);              \end{tikzpicture}         \caption{Membership functions of 12-month ROR ($C$ -- upper) and 1-month ROR ($P$ -- lower).}\label{fig:predicatesRORmemF}     \end{figure}     \begin{figure}[!b]         \centering         \begin{tikzpicture}[xscale=5,yscale=1,font=\scriptsize,,grid with coordinates/major step x=0.2,grid with coordinates/minor step x=0.04]             \draw (0,0) to[grid with coordinates] (1,1);                  \coordinate [label=above:${Q}_1$ -- ``majority''] (A) at (0.5,1.0);             \draw[thick,dashed,line cap =round] (0.3,0) -- (0.5,1) -- (1.0,1) -- (1.0,0);             \coordinate [label=above:${Q}_2$ -- ``most''] (A) at (0.90,1.0);             \draw[thick,line cap =round] (0.3,0) -- (0.8,1) -- (1.0,1) -- (1.0,0);                    \end{tikzpicture}         \caption{${Q}_1$ (``majority'') and ${Q}_2$ (``most'') linguistic quantifiers' membership functions.}\label{fig:quantifiersMemF}     \end{figure}          \end{document}      and screen capture of resulting PDF: ![Valid XHTML](http://i43.tinypic.com/s28pps.png). The small difference comes from "5.0" and "50.0" width, as far as I understand. I've tried               \pgfresetboundingbox     \path (-10.1) rectangle (60.0);      and               \path (-1.1) rectangle (6.0);      from tikzpicture alignment and centering with no result. Is there any easy solution for this problem? I only need to use it on those 3 grids/2 figures.


title: Page Content Misalignment

text: I've started using LyX to write technical specification documents. As a result of numerous hasty Google searches (many ending at this site) I have cobbled together a LyX file that mostly delivers what I'm after. However, I've found that when I render it to PDF using xetex my first page after the title (a Part) seems to always be vertically misaligned relative to the other pages. **Question: what have I overlooked / mangled ?**       Note that I've got some stuff in my preamble to make Parts look like Chapters (can't remember why anymore). My MWE is below, if you process it to PDF using XeTeX you'll find that the heading for "Document Control" is vertically misaligned relative to "Background Information". All my other Parts (not in the MWE) align with the "Background Information" part. My tests indicate that it doesn't matter which is the first Part - it will always misalign (viewed in OSX Preview.app with 2-page view): ![enter image description here](http://i.stack.imgur.com/VrNNl.png) The mis-alignment extends as far as the footer. So it's like the entire page body has been vertically bumped up a number of pixels I've found that changing the size of the header image (logo.png) causes the scale of the mis-alignment to change. Being a total newbie to TeX I am at a loss to explain it.    # MWE logo.png is 464px x 60px The documentclass is `report`               #LyX 2.0 created this file. For more info see http://www.lyx.org/     \lyxformat 413     \begin_document     \begin_header     \textclass report     \begin_preamble     \usepackage[a4paper]{geometry}     \usepackage[table]{xcolor}     \usepackage{background}          \usepackage{lastpage}     \usetikzlibrary{calc,shapes,arrows}               %tables     \arrayrulecolor[RGB]{127,127,127}     \setlength{\arrayrulewidth}{0.25mm}                         \usepackage[explicit]{titlesec}          % make part like a chapter     \titleclass{\part}{top}      \titleformat{\part}     [display]     {\normalfont\Huge\bfseries}     {\titlerule[5pt]\vspace{3pt}\titlerule[2pt]\vspace{3pt}\MakeUppercase{\partname} \thepart}     {0pt}     {\titlerule[2pt]\vspace{1pc}\huge\MakeUppercase{#1}}     \titlespacing*{\part}{0pt}{0pt}{20pt}               % make chapter like a section (no newpage)     \titleclass{\chapter}{straight}      \titleformat{\chapter}     [display]     {\centering\normalfont\Huge\bfseries}     {\titlerule[5pt]\vspace{3pt}\titlerule[2pt]\vspace{3pt}\MakeUppercase{\chaptertitlename} \thechapter}     {0pt}     {\titlerule[2pt]\vspace{6pt}\huge\MakeUppercase}     \titlespacing*{\chapter}{0pt}{0pt}{40pt}          % make section have a background      \titleformat{\section}     [display]     {\normalfont\Large\bfseries}     {\thesection}     {0pt}     {\colorbox{blue!20}{\parbox{\dimexpr\textwidth-2\fboxsep}{#1}}}     %               % make subsubsection italicised     \titleformat{\subsubsection}     [display]     {\normalfont\bfseries}     {\thesubsubsection}     {0pt}     {\textit{#1}}     %          %Document variables     \newcommand*{\customer}{Foo}     \newcommand*{\customerlong}{Bar}     \newcommand*{\docversion}{Draft Version 0.0.1}          %Page footer - horiz line     \def\footrule{{       \vskip-\footruleskip\vskip-\footrulewidth       \color{\footrulecolor}       \hrule\@width\headwidth\@height       \footrulewidth\vskip\footruleskip     }}          %page borders     \pagestyle{fancy}     \fancyhf{}     \setlength\headheight{12pt}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{1pt}     \newcommand{\footrulecolor}{blue}          %page candy     \fancypagestyle{plain}{%     \fancyhf{} % clear all header and footer fields     \fancyhead[C]{\includegraphics{logo.png}}     %\fancyfoot[C]{\bfseries \thepage} % except the center     \fancyfoot[L]{\textbf{\textcolor{orange}{\scriptsize Confidential}}}     \fancyfoot[C]{\textbf{\textcolor{blue}{\Large website.com}} }     \fancyfoot[R]{\textbf{\textcolor{orange}{\scriptsize Page \thepage\ of \pageref{LastPage} }} }     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{1pt}     \renewcommand{\footrulecolor}{blue}     }     \end_preamble     \options demo     \use_default_options true     \begin_modules     theorems-ams     eqs-within-sections     figs-within-sections     customHeadersFooters     \end_modules     \maintain_unincluded_children false     \begin_local_layout          \end_local_layout     \language british     \language_package default     \inputencoding auto     \fontencoding global     \font_roman lmodern     \font_sans lmss     \font_typewriter lmtt     \font_default_family sfdefault     \use_non_tex_fonts false     \font_sc false     \font_osf false     \font_sf_scale 100     \font_tt_scale 100          \graphics xetex     \default_output_format pdf4     \output_sync 0     \bibtex_command default     \index_command default     \paperfontsize 12     \spacing single     \use_hyperref false     \papersize a4paper     \use_geometry true     \use_amsmath 1     \use_esint 1     \use_mhchem 1     \use_mathdots 1     \cite_engine basic     \use_bibtopic false     \use_indices false     \paperorientation portrait     \suppress_date false     \use_refstyle 1     \index Index     \shortcut idx     \color #008000     \end_index     \leftmargin 2cm     \topmargin 2cm     \rightmargin 2cm     \bottommargin 4.75cm     \headsep 1cm     \footskip 2.5cm     \secnumdepth -1     \tocdepth 0     \paragraph_separation skip     \defskip 16pt     \quotes_language english     \papercolumns 1     \papersides 1     \paperpagestyle fancy     \tracking_changes false     \output_changes false     \html_math_output 0     \html_css_as_file 0     \html_be_strict false     \end_header          \begin_body          \begin_layout Center Header     \begin_inset Graphics         filename logo.png          \end_inset               \end_layout          \begin_layout Center Footer     \begin_inset ERT     status open          \begin_layout Plain Layout               \backslash     textbf{     \backslash     textcolor{blue}{     \backslash     Large website.com}}     \end_layout          \end_inset               \end_layout          \begin_layout Left Footer     \begin_inset ERT     status open          \begin_layout Plain Layout               \backslash     textbf{     \backslash     textcolor{orange}{     \backslash     scriptsize Confidential}}     \end_layout          \end_inset               \end_layout          \begin_layout Right Footer     \begin_inset ERT     status open          \begin_layout Plain Layout               \backslash     textbf{     \backslash     textcolor{orange}{     \backslash     scriptsize Page      \backslash     thepage     \backslash      of      \backslash     pageref{LastPage} }}     \end_layout          \end_inset               \end_layout          \begin_layout Title     \begin_inset Graphics         filename logo.png          \end_inset               \begin_inset Newline newline     \end_inset          Specification     \begin_inset Newline newline     \end_inset               \begin_inset ERT     status open          \begin_layout Plain Layout               \backslash     docversion     \end_layout          \end_inset               \begin_inset Newline newline     \end_inset               \begin_inset ERT     status open          \begin_layout Plain Layout               \backslash          \end_layout          \end_inset               \begin_inset Newline newline     \end_inset               \begin_inset ERT     status open          \begin_layout Plain Layout               \backslash     customerlong     \end_layout          \end_inset               \begin_inset Newline newline     \end_inset          A Title     \end_layout          \begin_layout Part*          \lang english     Document Control     \end_layout          \begin_layout Section*          \lang english     Copyright     \end_layout          \begin_layout Standard          \lang english     Generic blurb     \end_layout          \begin_layout Section*          \lang english     Document Version History     \end_layout          \begin_layout Standard     a table     \end_layout          \begin_layout Part*     Background Information     \end_layout          \begin_layout Section*     Project Taxonomy     \end_layout          \begin_layout Standard     a table     \end_layout          \begin_layout Section*     Stakeholders     \end_layout          \begin_layout Itemize     List of direct project stakeholders     \end_layout          \begin_layout Section*     Other Parties     \end_layout          \begin_layout Itemize     List of ancialliary parties     \end_layout          \begin_layout Section*     Exclusions     \end_layout          \begin_layout Standard     Generic stuff     \end_layout          \begin_layout Section*     Another Heading     \end_layout          \begin_layout Standard     Some useful information     \end_layout          \begin_layout Section*     Another Heading     \end_layout          \begin_layout Standard     Some useful information     \end_layout          \begin_layout Section*     Another Heading     \end_layout          \begin_layout Standard     Some useful information     \end_layout          \end_body     \end_document         # Update Further testing has indicated that simply having some plain text after the title will produce the same offset effect - so it's not the Part definitions that are having the problem.


title: Square Brackets Within Brackets (was: Twopage Graphics in Headers)

text: How can I scale graphics on alternate pages using fancyhdr from within a template that other corroborators use? The first listing below is a working example, and the second is the failing example. The only difference is the definition of "\rhead" texerr.sty (works without scaling):               \usepackage{fancyhdr}     \usepackage{graphicx}     \usepackage{epstopdf}     \usepackage[letterpaper, headheight=80px, top=.5in, bottom=.5in, left=1in, right=.5in, includeheadfoot]{geometry}     \pagestyle{fancy}     \lhead[\thepage]{\includegraphics[scale = 0.08]{images/logo.eps}}     \chead{Sample Title}     \rhead[\includegraphics{images/logo.eps}]{\thepage}     \cfoot{Jon}     \title{     My Title     }      texerr.sty (fails when scaling is included):               \usepackage{fancyhdr}     \usepackage{graphicx}     \usepackage{epstopdf}     \usepackage[letterpaper, headheight=80px, top=.5in, bottom=.5in, left=1in, right=.5in, includeheadfoot]{geometry}     \pagestyle{fancy}     \lhead[\thepage]{\includegraphics[scale = 0.08]{images/logo.eps}}     \chead{Sample Title}     \rhead[\includegraphics[scale = 0.08]{images/logo.eps}]{\thepage}     \cfoot{Jon}     \title{     My Title     }      error on the second example:               ! LaTeX Error: Missing \begin{document}.     See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...     l.9 ...cludegraphics[scale = 0.08]{images/logo.eps}]                                                   {\thepage}      Generic implementation .tex file:               \documentclass[letterpaper, 10pt, twoside]{article}     \usepackage{texerr}     \usepackage{lipsum}     \begin{document}     \maketitle     \thispagestyle{empty}     \newpage     Todo: Copyright Page     \thispagestyle{empty}     \newpage     \setcounter{page}{1}     \pagenumbering{arabic}     \section{Introduction}     \lipsum     \end{document}


title: Keep block quotes text on single lines

text: I am using `CSQUOTES` package as suggested by this TEX question. It plays nicely with the nested `{}`s How do I get the following (bibtex) text that has each line as a single line to remain on a single line, while in a blockquote (indented) format? It should look like this, but in a blockquote:               @inproceedings{Velloso:2013:MMM:2470654.2466171,      author = {Velloso, Eduardo and Bulling, Andreas and Gellersen, Hans},      title = {MotionMA: Motion Modelling and Analysis by Demonstration},      booktitle = {Proceedings of the SIGCHI Conference on Human Factors in Computing Systems},      series = {CHI '13},      year = {2013},      isbn = {978-1-4503-1899-0},      doi = {10.1145/2470654.2466171},      acmid = {2466171},      publisher = {ACM},      ...     }


title: Problematic nested subscript

text: Hello and sorry if I'm reiterating an already asked question. The two i-subscripts have different positions in relation to m, the one on the right hand side of the inequality being the correct one presumably. Is there any way to fix this?               \documentclass[]{article}     \usepackage{mathtools}     \usepackage{amssymb}     \begin{document}     \begin{equation*}     \dim_{\mathbb{F}_{2^{m_{i}}}} W \geq \frac{n}{m_i}     \end{equation*}     \end{document}      ![enter image description here](http://i.stack.imgur.com/LECYy.png)


title: How to only import certain commands?

text: The `soul` package defines a ton of short macros, some of which I use regularly for my own writing. I only need `\hl` and `\sethlcolor`. Is there a way to load the package and only get those two commands?


title: Can't insert/remove a blank page in main document

text: I'm on Win7 with TeX Live 2013 and TeXstudio. I have a `main.tex` file (`\documentclass[...]{scrartcl}`) with 2 `\input{file}` commands. I want to **put a blank page** between the table of contents and the beginning of the 1st file _and_ **remove** the extra blank page that TeX Live keeps adding somewhere _before_ the 2nd file or in the _middle of it!_ `main.tex`               \documentclass[a4paper, 12pt]{scrartcl}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \usepackage[italian]{babel}          \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}          \usepackage{lipsum}          \newcommand{\campoE}{\mathcal{E}\ped{x}}     \newcommand{\derivata}[2]{\frac{\textup{d}{#1}}{\textup{d}{#2}} }     \newcommand{\derivataparziale}[2]{\dfrac{\partial{#1}}{\partial {#2}} }     \newcommand{\integrale}[4]{\displaystyle \int_{#3}^{#4}#1\,\text{d}{#2} }          %----------------------------------     \title{E.S.S.}     \author{Wobby Windows}     \date{Written on some day}          \begin{document}     \maketitle     \thispagestyle{empty}     \tableofcontents          \newpage     \input{captest}     \clearpage     \input{formule}     \end{document}      `captest.tex`               \newpage     \section{Test}          \subsection{Introduzione lipsum}          \lipsum[1-2]          \subsection{Effetto lipsum}          \lipsum[3-4]      `formule.tex`               \section{Formule}          \begin{align}     \label{7.1.1} I\ped{c} &= \dfrac{q\tilde{D\ped{n}} n\ped{i}^{2} A\ped{E} \, \exp\left({ q V\ped{BE} / kT}\right) }{\integrale{p}{x}{0}{x_B} } & \\     \label{7.1.2} \derivataparziale{I_C}{V\ped{CB}}&= \dfrac{-q\tilde{D\ped{n}} n\ped{i}^{2} A\ped{E} \, \exp\left({qV\ped{BE}/kT}\right) \, p(x_B) }{\left[\integrale{p}{x}{0}{x_B} \right]^{2}} \, \derivataparziale{x_B}{V\ped{CB}}&\\     \label{7.1.3} \derivataparziale{I\ped{C}}{V\ped{CB}}&= -I\ped{C}\,p(x\ped{B}) \; \dfrac{1}{\integrale{p}{x}{0}{x\ped{B}}} \, \bigg [\derivataparziale{x\ped{B}}{V\ped{CB}} \bigg] &\\       \notag &= {} -\dfrac{I\ped{C}}{V\ped{A}}=\dfrac{I_C}{|V_A|}\\     \label{7.1.4} V\ped{A}&= \dfrac{\integrale{p}{x}{0}{x_B} }{p(x\ped{B}) \derivataparziale{x\ped{B}}{V\ped{CB}}}\\     \label{eq:7.1.5-6}  \integrale{p}{x}{0}{x\ped{B}}&=\dfrac{Q\ped{B}}{q} \qquad \qquad q\, p(x\ped{B}) \, \derivata{x_B}{V\ped{CB}}=\derivata{Q_B}{V\ped{CB}}\\     \label{eq:7.1.7-8} \bigg| \derivata{Q_B}{V\ped{CB}} \bigg|&= C\ped{jc} \qquad \qquad  |V\ped{A}|= \dfrac{Q\ped{B}}{C\ped{jC}}\\     \label{7.2.1} I_B&= I_0\, \exp\left({\dfrac{qV\ped{BE}}{nkT}}\right)  \\     \label{7.2.2} \integrale{p(x)}{x}{0}{x\ped{B}}&=\integrale{[N\ped{a}(x) + \, n'(x)]}{x}{0}{x\ped{B}}\\     \label{7.2.3} n(0) &=\dfrac{N\ped{a}(0)}{2} \left[ \bigg(1+ \dfrac{4 \, n^{2}\ped{i} \, \exp\left({qV\ped{BE}/kT}\right) }{N\ped{a}(0)} \bigg)^{1/ \,2} -1 \right] \\     \label{7.2.4} \derivata{\campoE}{x}&=\dfrac{1}{\epsilon\ped{s}} \left[  q\,N(x) - \dfrac{J_C}{v(x)} \right]\\     \label{7.2.5}  V\ped{CB}+\phi \ped{i}&=\integrale{-\campoE}{x}{x_B}{x_C}\\     \label{7.2.6} J\ped{l}&=q\, N(x)\, v(x)\\     \label{7.2.7} \integrale{x \; \derivata{\campoE}{x}}{x}{x\ped{B}}{x\ped{C}}&=\dfrac{1}{\epsilon\ped{s}}\, \integrale{x\, \left[ qN(x) - \dfrac{J_C}{v(x)}\right]}{x}{x_B}{x_C}\\     \label{7.2.8} \integrale{x}{\campoE}{x_B}{x_C}&= - \integrale{\campoE}{x}{x_B}{x_C}=V\ped{CB} + \phi_i\\     \label{7.2.9} V\ped{CB}&= \dfrac{1}{\epsilon_s} \integrale{x \, \left[q \, N(x) - \dfrac{J_C}{v(x)} \right]}{x}{x_B}{x_C} - \phi_i\\     \end{align}          \begin{align}     \label{7.2.10} V\ped{CB}&= \dfrac{1}{2\, \epsilon_s} \left[ qN\ped{epi} + \dfrac{J_C}{v_l}\right]\, x\ped{CB}^2  - \phi_i\\     \notag &= \dfrac{q N\ped{epi}}{2 \epsilon_s} \left[ 1+ \dfrac{J_C}{J_l}\right]\, x^2_{CB} -\phi_i\\     \label{7.2.13} I_C&=I\ped{S} \; \exp{\left[ \dfrac{q (V\ped{BE} - I\ped{B}R\ped{B})}{kT}  \right] }\\     \label{7.3.1} Q\ped{nB} &= \integrale{q \,A\ped{E} \, n'(x) }{x}{0}{x_B}\\     \label{7.3.2} \tau_B &= \dfrac{Q_{nB}}{I_{C}}\\     \label{7.3.3} \tau_B &= \dfrac{x_{B}^2 }{2 \tilde{D}_{n}}\\     \label{7.3.4} \tau_{B} &= \dfrac{\integrale{p}{x}{0}{x_{B}} \, \integrale{n'}{x}{0}{x_{B}}}{\tilde{D_n} \, n^{2}_{i}\, \exp{\left(qV_{BE} / \, kT\right)}}\\     \label{7.3.5} \tau_{B} &=\dfrac{\tfrac{1}{2} n'(0) x_{B} \left[ \tfrac{1}{2} (n'(0) +2N_{A} ) x_{B} \right]}{\tilde{D} \left[ n'(0) (n'(0) + N_{a} )\right]} =\\     \notag &= \dfrac{x^2_{B}}{4 \tilde{D_n}} \left[ 1 + \dfrac{N_a}{n'(0) + N_a}\right]\\     \label{7.3.6} n(x) &= -\dfrac{J_n}{q\tilde{D_n} p(x) } \, \integrale{p(\xi)}{\xi}{x}{x_B} \\     \label{7.3.7} \tau_B&= \dfrac{1}{\tilde{D_n}} \integrale{\dfrac{1}{p(x)} \left[ \integrale{p(\xi)}{\xi}{x}{x_B}\right]}{x}{0}{x_B}\\      \label{7.3.8}\tau_B &= \dfrac{x^2}{\tilde{D_n}} \left\lbrace \integrale{\dfrac{1}{p(y)} \left[ \integrale{p(\xi)}{\xi}{y}{1}\right]}{y}{0}{1}\right\rbrace\\      \notag &= \dfrac{x^2_B}{\nu \, \tilde{D_n}}     \end{align}      Is there a way to force TeX Live to do what I want? I just want the 2nd file to start on a new page, not insert a blank page. Since I'm still writing stuff in the 1st file, its length is yet not definitive.   1. Could that be the problem?    2. What is the difference between `\clearpage` and `\newpage`? **PS** After problem n.2 was solved still trying to solve problem n1: how to put a blank page right after the table-of-contents?


title: "For loop" in newcommand

text: I have this command               \newcommand{\pdfappendix}[1]{         \includegraphics[scale=0.6]{pdf/#1.pdf}     }      It works well when I have 1 page pdf but is not including the other pages. Now I decided to change the command to take a second argument which is the number of pages and will repeat `\includegraphics` that number of times. I want something similar to (the following is not latex code):               \newcommand{\pdfappendix}[2]{         for index=1 to #2         {            \includegraphics[scale=0.6]{pdf/#1index.pdf}         }     }      Example: MyPDF.pdf has 4 pages. I will split it in 4 pdfs with 1 page each: MyPDF1.pdf, MyPDF2.pdf, MyPDF3.pdf, MyPDF4.pdf. The output of the command will be: Then I will write the command: \pdfappendix{MyPDF}{4} And it will output:               \includegraphics[scale=0.6]{pdf/MyPDF1.pdf}     \includegraphics[scale=0.6]{pdf/MyPDF2.pdf}     \includegraphics[scale=0.6]{pdf/MyPDF3.pdf}     \includegraphics[scale=0.6]{pdf/MyPDF4.pdf}      Is it possible to do that? PS: I don't want to use `\includepdf` because I have some problems with section headers.


title: How can I setup PGFPlots to work with gnuplot?

text: **Notes:** I'm using Windows 8 and TeXworks. Also, I have never used gnuplot by itself, so I am unfamiliar with it. I'm trying to use PGFPlots with gnuplot to graph functions. I have not been able to make anything work at all. I'm reading the PGFPlots manual, but I can't make heads or tails from the instructions. This is the MWE given in the manual:               \documentclass{memoir}          \usepackage{pgfplots}     \pgfplotsset{compat=1.8}          \begin{document}          \begin{tikzpicture}     \begin{axis}     \addplot     gnuplot[id=sin]{sin(x)};     \end{axis}     \end{tikzpicture}          \end{document}      Which SHOULD create this: ![enter image description here](http://i.stack.imgur.com/oRWPU.png) **However,** I get nothing except an error: ![enter image description here](http://i.stack.imgur.com/4LYAY.png) I tried modifying TeXworks in the following manner as the PGFPlots manual discussed, trying all the variations I could think of with `pdflatex -shell- enable`, `-shell-enable` `\--shell-enable` `-enable-write18`, ad nauseum. Nothing worked. **Update:** I've additionally tried writing `\--shell-escape` or `\--enable- write18`, and placing these before `$fullname`. Still, I am getting the same error. ![enter image description here](http://i.stack.imgur.com/h8Ihd.png) I've additionally tried running these commands from the commandline, which does not seem to work either. The most I get is the request to install a package called `dehyph-exptl`, **which is already installed**. I have administrator privileges as well, so that's not the issue. In case you were wondering, `dehyph-exptl` has to do with the special hyphenation of German words apparently? No clue why this package is so important to run gnuplot via TeXworks. ![enter image description here](http://i.stack.imgur.com/HQDjY.png) Lastly, here is evidence that I probably have gnuplot installed and working correctly, however..I know so little about computers that I can't be sure: ![enter image description here](http://i.stack.imgur.com/HQnqH.png) ![enter image description here](http://i.stack.imgur.com/FoauE.png) What am I doing wrong? Can anybody step me through this? I've searched online and in the manuals and haven't found any answers.


title: Glossary with Makeglos no numbered in 2 columns

text: I would like to know how to put my glossary in two columns and without page numbers and the acronym in bold letters like this > **UAV** : Unmanned Air Vehicle This is my code               \usepackage{makeglos}     \makeglossary          \glossary{UAV: Unmanned Air Vehicle |textbf}      \addcontentsline{toc}{chapter}{Glossary}     \printglossary


title: Help with xkeyval crashing pax/pdfpages

text: I'm preparing a document, and after trying to load some of my self-made style files, it started crashing. It is apparently the same problem as in [texhax] latest xkeyval breaks pdfpages and fancytooltips, which sadly seems to have no responses. I could boil this down to the following minimal example (using TexLive 2010 on Ubuntu Linux):               \documentclass{article}          \usepackage{xkeyval} % comment to have compilation pass     \usepackage{pax}     \usepackage{pdfpages}          \begin{document}          Test          \includepdf[scale=1,addtotoc={1,subsection,2,My PDF Document,mypdf-doc}]{mypdf-doc.pdf}          \end{document}      When `\usepackage{xkeyval}` is uncommented, then `pdflatex` fails with:               ! Package xkeyval Error: `scale' undefined in families `PAX@Gin'.          See the xkeyval package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.11 ...ument,mypdf-doc}]{mypdf-doc.pdf}      If `xkeyval` is not loaded, then compilation passes fine. Does anyone have an idea how I could "cheat" pdflatex, so `xkeyval` and `pdfpages` can coexist? xkeyval.pdf says: > 2) ‘name’ undefined in families ‘fams’ (error) > > The key name is not defined in the families in fams. Probably you mistyped > name. ... but my problem is, I have no idea which of the style files I included through my homemade style files actually includes `xkeyval` - so I was hoping maybe there was a way to cheat `xkeyval` - maybe by somehow "defining" `scale` for the family `PAX@Gin` ?! If anyone knows if and how would this be possible, it would be great to hear an answer :) EDIT: Here: CTAN package update: xkeyval it is also claimed a fix has been released for this; apparently, I'm not having it ?! The file in my TexLive distribution says:               \ProvidesPackage{xkeyval}       [2008/08/13 v2.6a package option processing (HA)]


title: Using psfrag with LaTeX counters (insert counter number directly in eps figure)?

text: I am writing an organic chemistry dissertation using (pdf)LaTeX. The content of the thesis contains a large amount of numbered chemical structures. The chemical structure drawings were generated using ChemDraw and exported to eps format. Since there are literally hundreds of numbered structures, I wrote a macro that uses a custom counter to keep track of the numbers:               \newcounter{compound}     \def\thecompound{\textbf{\thechapter.\arabic{compound}}}     \newcommand{\cmp}[1]{\refstepcounter{compound}\label{cmp:#1}\textsf{\scriptsize{\thecompound}}}      Each time I want to number a compound, I simply write the command (which automatically increments the counter):               \cmp{uniquestring}      The problem I am having is finding an efficient way to put the compound numbers on the structural drawings (eps figures). What I am using right now is a floating text block over the image that I have to manually align. Here is an example of one of my figures (I defined a custom float called a Scheme):               \begin{Scheme}[h]       \centering \includegraphics[scale=0.8]{chp_diazobkg/images/shioiritwo}        \begin{textblock}{1}(1.65,-0.8) \cmp{aax} \end{textblock}       \begin{textblock}{1}(7,-1) \cmp{aay} \end{textblock}       \begin{textblock}{1}(13,-1) \cmp{aaz} \end{textblock}       \begin{textblock}{1}(17.5,-0.5) \cmp{aba} \end{textblock}       \caption{Facile [1,3]-Brook rearrangement of $\alpha$-keto silane intermediate \ref{cmp:aay}.}       \label{sch:shioiritwo}     \end{Scheme}      Ideally what I would like to be able to do is use a package like pstool/psfrag so that the unique identifiers could be built into the eps file and get replaced with the compound numbers. Using the pstool package, I am able to do text replacements in eps figures, but when I try to do a replacement with a counter psfrag chokes and can't generate the figure. The code below works fine for me so I know the package is installed correctly.               \psfragfig[scale=0.8]{test}{       \psfrag{[aaa]}{testing}     }      However, when I try to do something like this no luck (in fact the whole package breaks and no image is generated):               \psfragfig[scale=0.8]{test}{       \psfrag{[aaa]}{\cmp{xxx}}     }      Or even something simpler like this just gives ?? for the replaced text:               \psfragfig[scale=0.8]{test}{           \psfrag{[aaa]}{\ref{somefigure}}         }      Any suggestions would be greatly appreciated. **I have posted a minimal working example with EPS files at:** https://sites.google.com/site/vrendina/latex


title: Globally altering styles

text: Is there a generally applicable technique which will, for any tag/environment used in a LaTeX document, allow the default styling of the contents of instances of that tag/environment to be tweaked in the preamble?   * For instance, if I decided that all instances of `\emph{}` in the document should have their contents rendered not only italicised (a common default) but also bold, then what would I do?   * Similarly, if I decided that all instances of `\begin{verbatim}...\end{verbatim}` should have their contents rendered not only in a monospaced font (a common default) but also on a grey background, then what would I do? But more importantly than simply explaining how to handle these two example cases, please can you outline a procedure a LaTeX user can follow in _all_ cases in order to be able to change the styling of any given tag/environment.


title: Log axis in pgfplots

text: When I add the `log ticks with fixed point` option, `pgfplots` ignores the x-axis range instead of just affecting the y-axis. without `log ticks with fixed point` ![enter image description here](http://i.stack.imgur.com/P5hU5.png) with `log ticks with fixed point` ![enter image description here](http://i.stack.imgur.com/qooUw.png)               \documentclass{standalone}     \usepackage{pgfplotstable}         \pgfplotsset{width = 3in, compat = 1.6}          \begin{document}     \begin{tikzpicture}         \begin{semilogyaxis}[log ticks with fixed point]             [                 scale only axis,                 xmin=0.4, xmax=2.1,                 ymin=1e-4, ymax=0.1,             ]             \addplot {x^3/1e3};         \end{semilogyaxis}             \end{tikzpicture}     \end{document}      My goal is to make a plot with y axis in ppm (parts per million). I want to avoid multiplying all the values in the table by 1e6 instead just want to change the labels by multiplying them by 1e6. How can I do this? Right now I am manually changing the tick marks to get right display. I do this by adding `ytickten={-4,-3,-2,-1}, yticklabels={100, 1000, 10000, 100000}`. How can I make this automatic?


title: How to typeset "TikZ"?

text: I know I can use the macros `\TeX` and `\LaTeX` for typesetting the names of TeX and LaTeX (including the necessary vertical alignment trick). But how am I supposed to typeset "TikZ"? (I am asking because I'd like to mention TikZ in the Colophon of a book).


title: Setting Margins like in the attached file

text: I need you help because the command about setting margins are driving me crazy. I need to produce an output like the file here http://www.dmi.unict.it/~difazio/PROVA_Bontempi.pdf Please, could anybody help me?


title: Why does ConTeXt sometimes ignore surrounding font properties?

text: I am working on a document which contains a wide range of font styles and sizes. I am using commands such as `\ss` to change to sans serif, `\tfa` to set the font size to size "a", and `\bf` to make text boldface. I am also using brackets to define which areas receive which formatting. I found the behavior is sometimes unpredictable. Here is an example:               \starttext         {\ss             This is 12pt sans serif text. \crlf             {\tfc This is 20.7pt sans serif text.} \crlf             {\bf                 This is 12pt bold sans serif text. \crlf         {\tfc This is 20.7pt bold sans serif text.} \crlf         {\tfc \bf This is 20.7pt bold sans serif text.} \crlf             }          }          This is 12pt serif text.     \stoptext      In this example, `\ss` from line 2 sets all text within the brackets to sans serif, however, the `\bf` command in line 5 does create boldface text in line 7. Why is the text on line 7 ignoring the `\bf` command on line 5?


title: LaTeX error with moderncv

text: I can't seem to figure where the problem is, and why the file wont compile. I'd be grateful if someone could help me. Here is the LaTeX code:               \documentclass[11pt,a4paper]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman          \moderncvstyle{classic} % CV theme - options include: 'casual' (default), 'classic', 'oldstyle' and 'banking'     \moderncvcolor{blue} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'          \usepackage{lipsum,amsmath} % Used for inserting dummy 'Lorem ipsum' text into the template          \usepackage[scale=0.75]{geometry}          \firstname{Anas}     \familyname{CHEIKH}     \title{Industrial Engineering student \newline ENIT - University Tunis El Manar}               % optional, remove the line if not wanted     \address{Rue Tilia, Av. Merdes}{8090, Kélibia, Tunisia}    % optional, remove the line if not wanted     \mobile{+216 20 826 448}                    % optional, remove the line if not wanted     \email{cheikh_anas@live.fr}     \quote{\textbf{Looking for a 1-2 month entry-level internship starting in May 2014}}                    \setlength{\quotewidth}{320 cm}               \setlength{\hintscolumnwidth}{2.5 cm}                    \begin{document}          \maketitle          \section{\textbf{Education}}     \cventry{2013-2014\newline Tunisia}{National Engineering School of Tunis (ENIT– University Tunis El Manar)}{}{}{}{\textbf{Élève-ingénieur en Génie Industriel (B.Eng in Industrial Engineering)}     \newline Academic Background :     \begin{itemize}     \item Management of production systems.     \item Non conducting systems and procedures.     \item Energetic systems.     \item Procedures in polymeres and composites.     \end{itemize}      }               % arguments 3 to 6 are optional     \cventry{2012-2013\newline Tunisia}{Preparatory institute of scientific and technical studies in \textit{La Marsa} (IPEST)}{}{}{}{\textbf{Advanced undergraduate studies in mathematics and physics in preparation for the     French and Tunisian nation-wide competitive entrance examinations for the 'Grandes Écoles'.}      \newline Rank: 212th out of 5000 candidates in the Tunisian nation-wide examinations}     % arguments 3 to 6 are optional               \cventry{2010-2013\newline France}{Lycée du Parc in \textit{LYON}}{}{}{}{1st and 2nd year of preparatory school for engineering studies      \newline Advanced undergraduate studies in Mathematics, Physics and Computer  Science.      \newline 120 ECTS-credits  || A ECTS-grading scale.     \newline Tunisian Government Excellence Scholarship }     \cventry{2006-2010 \newline Tunisia}{Lycée Abdelaziz Belkhouja in \textit{Kélibia}}{\textsc{Tunisian Baccalaureate.}}{}{}{Rank : 47th out of 60 000 candidates in the Tunisian nation-wide examinations. \newline \textbf{Pioneer High School of Nabel.}}               \section{\textbf{Experience}}     \cventry{2013-2014 \newline Tunisia}{ENIT Junior Entreprise}{}{}{}{\textbf{Junior Member || Event Founder and Coordinator of “Almouhandes”} \newline Organization of the first Edition of the “Almouhandes” Event. \newline Team and budget management. }     \cventry{2013- Present \newline Tunisia}{IAESTE Tunisia \footnotesize{(The International Association for the Exchange of Students for Technical Experience)}}{}{}{}{\textbf{Junior Member} \newline (Job raising, Incoming, Outgoing ...)}      \cventry{Oct-Dec 2013 \newline Tunisia}{ENIT Tunis \textbf{Mini project} : \textsc{Building a RepRap 3D-printer}}{}{}{}{}     \cventry{2012-2013 \newline Tunisia}{IPEST La Marsa \textbf{TIPE} : \textsc{Airplane modelization and flight simulation}}{}{}{}{}     \cventry{2011-2012\newline France}{Lycée du Parc LYON \textbf{TIPE} : \textsc{An application of the Galton-Watson Branching Process}}{}{}{}{}               %\section{Master thesis}     %\cvline{title}{\emph{Title}}     %\cvline{supervisors}{Supervisors}     %\cvline{description}{\small Short thesis abstract}               \section{\textbf{Skills}}     \cvline{Computer \newline Science}{C, Pascal, Caml, MATLAB, Maple, Photoshop, Microsoft office \& \LaTeX}{}{}     %\cvline{Programming}{C, Ada, Pascal}{}{}     %\cvline{Scientific}{Matlab, Maple}{}{}     %\cvline{Design}{ HTML, CSS}{}{}     %\cvline{OS}{Linux/Unix, Windows, DOS}{}{}          \section{\textbf{Languages}}     \cvlanguage{}{\textnormal{French}}{\textnormal{Full professional proficiency}}     \cvlanguage{}{\textnormal{English}}{\textnormal{Bilingual proficiency}}     \cvlanguage{}{\textnormal{Arabic}}{\textnormal{Native proficiency}}     \cvlanguage{}{\textnormal{German}}{\textnormal{Limited working proficiency}}               \section{\textbf{Interests}}          \cvline{Arts}{Photography, Music (Guitarist), Reading, Cinema.}      \cvline{Sports}{Tennis. \textsc{Ex-Membre of the local Tennis Club ( T.C.K). Gold medal winner of the local tennis tournament}  \newline Jogging. Insanity fitness program ...}     \cvline{Others}{Development of human potentials. American TV shows.}     %\textbf{Voyage:} Hong Kong, Macau, Chine, Thailande,...          \closesection{}                   % needed to renewcommands     \renewcommand{\listitemsymbol}{-} % change the symbol for lists                    \end{document}


title: pgfpages outer border instead of border shrink

text: I'm using the `pgfpages` package to publish my handout. But I think the space between the pages is to big, whereas the space at the outer border is to small. How can I change this? Currently I use this code:               \documentclass[compress,handout]{beamer}     \usepackage[ngerman]{babel}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{pgfpages}          \mode<presentation>     {         % Präsentationsthema auswählen         \usetheme{Boadilla}              % äußeres Thema anpassen         \useoutertheme[subsection=false]{miniframes}              \setbeamercovered{transparent}     }          \pgfpagesuselayout{4 on 1}[a4paper, border shrink=5mm, landscape]     \pgfpageslogicalpageoptions{1}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{2}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{3}{border code=\pgfusepath{stroke}}     \pgfpageslogicalpageoptions{4}{border code=\pgfusepath{stroke}}          \begin{document}          \begin{frame}         \frametitle{Seite 1}     \end{frame}          \begin{frame}         \frametitle{Seite 2}     \end{frame}          \begin{frame}         \frametitle{Seite 3}     \end{frame}          \begin{frame}         \frametitle{Seite 4}     \end{frame}          \end{document}


title: Nomenclature header problems

text: I'm writing a document in book class, using the `fancyhdr` package. I have both an index, and a symbol list, for which I use the `imakeidx` and `nomencl` packages. I had problems with getting the right headers for both. I managed to set the index straight, by using `\indexsetup{level=\chapter}` (which works fine since `\backmatter` had already been declared). However, I couldn't find out how do to the same for the nomenclature, so I ended up manually calling `\markboth` directly after `\printnomenclature`. This works, but feels dodgy (e.g., if I switched the order of the two, the `\markboth` affected the last chapter). I was hoping someone had a better solution to this problem.


title: Weird alignment issues in table for list of courses

text: I am trying to make a table containing details of all my coursework. I wrote the following code. There are a few issues with it:   1. Why is it giving a blank 1st page upon compiling(with the table on the second page)?   2. The table seems to leave a lot of space on the left margin of the page, which could be used to have a wider 4th column, but I can't seem to be able to use that space.   3. The table goes over the page number on the bottom of the second page, and nothing gets displayed after whatever is displayed on Page 2. I have several other courses, and would like this table to span over approximately 3 pages. How can I do it? Note: I have made the second column as a p-column as the real names of some instructors require two lines. Here is the code:               \documentclass[a4paper,10pt]{article}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{booktabs}          \begin{document}     \begin{tabular}{p{2.5cm}p{2cm}lp{6cm}}      \toprule[2pt]      Name of Course & Instructor & Book(s) Referred & Brief List of Topics Covered \\      \hline     \\[\defaultaddspace]          Algebra I & ABC & Herstein; M. Artin &      \parbox{6cm}{Basic Set Theory; Group Theory\\(upto Sylow theorems);\\ Introduction to Ring Theory} \\      \\[\defaultaddspace]          Algebra II & DEF & Hoffman and Kunze &      \parbox{6cm}{Linear Algebra \\(upto Spectral theorems)} \\      \\[\defaultaddspace]          Algebra III & GHI & S. Lang &      \parbox{6cm}{Ring and Module Theory\\(covering Hilbert basis theorem and structure theorem for finitely generated abelian groups)}\\     \\[\defaultaddspace]          Algebra IV & JKL & S. Lang &      \parbox{6cm}{Introduction to Field \\ and Galois Theory}\\     \\[\defaultaddspace]          Analysis I &  MNO  & T. Apostol &      \parbox{6cm}{Real numbers; Sequences and series;\\ Calculus of a single variable \\ (upto Taylor's Theorem)     } \\      \\[\defaultaddspace]          Analysis II &  PQR  & T. Apostol &      \parbox{6cm}{Riemann integral; Introduction to \\ Calculus of several variables; \\ Metric spaces and elementary \\ topological notions on it} \\      \\[\defaultaddspace]          Analysis III &  \parbox{2cm}{STU}  & S. Dineen &      \parbox{6cm}{\textbf{Vector Calculus}: multiple integrals, \\ Jacobian formula, line and surface \\ integrals, Green's, Stokes' and Gauss' (Divergence) theorems; \\ Sequences of functions; Weierstrass \\ approximation theorem} \\      \\[\defaultaddspace]          Analysis IV &  VWX  & Rudin &      \parbox{6cm}{\textbf{Introduction to Function Spaces}:\\ compact metric spaces,\\ C([a,b]) as a complete metric space, \\ Banach's contraction principle, \\ Stone-Weierstrass and Arzela-Ascoli theorems, Fourier series } \\      \\[\defaultaddspace]          Probability Theory I &  YZ  & Chung; Feller &      \parbox{6cm}{Combinatorial probability and urn models; Conditional probability; \\ Random variables; Expectation; \\ Moment generating functions;\\ Standard distributions(Binomial etc.); \\ Joint and conditional distributions; \\ Weak law of large numbers} \\      \\[\defaultaddspace]          Probability Theory II &  YZ  & Feller &      \parbox{6cm}{Joint distributions; \\Transformation of variables\\(assuming Jacobian formula);\\ Distributions for sums, maxima/minima, order statistics, etc.; Standard multivariate and sampling distributions; Conditional expectation; Convergence of random variables} \\      \\[\defaultaddspace]          \bottomrule[2pt]          \end{tabular}          \end{document}


title: What is LaTeX? a software or a makup language?

text: According to Wikipedia: > LaTeX is a document preparation system and document markup language. LaTeX > is not the name of a particular editing program, but refers to the encoding > or tagging conventions that are used in LaTeX documents. I would like to question this statement claiming that LaTeX is not a software but a markup language. I am not sure LaTeX is a language but if it is, it is also a software in my opinion. You can call LaTeX in a terminal (so LaTeX is also a command, therefore a software or a part of a software). And LaTeX has (friendly) competitors in the person of XeLaTeX, LuaLaTeX or TeX. There are also executable files (i.e. softwares) which provide similar functionalities. Having competitors could be saw as a criteria to be a software. The purpose of LaTeX language is (only) to be understood by LaTeX command which aims is to produces good quality printable documents. Could we call a language a syntax which only wants to be understood by one software? (shouldn't a language be more universal?) As counterexample, Markdown is only a markup language. There is no process or executable binaries behind the language. Markdown is designed for writing in markdown (and not to be converted in something else). It is very different from LaTeX. So, what do you think? Should I correct Wikipedia?


title: How to make header normal font in moderncv

text: The moderncv (classic) consists of various sections like address, phone, email .. in header which are italic! How do I change them to normal font? ![enter image description here](http://i.stack.imgur.com/HfFO2.png) So, I want to change the above italic data into normal font The template can be found here: http://www.latextemplates.com/template/moderncv-cv-and-cover-letter


title: How to have two x parallel xtick labels in a single pgfplots plot?

text: I want to have this effect:   1. The first set of xtick labels are exactly the first column in this table (is there such a command?);   2. Then, under this first set of label, there should be another xtick labels, which are exactly the nth column in this table; As the code sample shown below, I want to plot x1 vs y1. But I also want to use x2 as labels. Anyone knows how to do that? Thanks               \begin{figure}     \centering     \begin{tikzpicture}     \begin{axis}[     height=8cm,     width=12cm,     grid=major,     legend pos=north west]     \addplot table[x=x1,y=y1] {     x1 y1 x2     16  4.27    3.24     32  1.84    1.96     64  1.82    1.57     80  2.06    1.51     128 1.29    2.51     160 2   2.98     256 2.45    5.41     320 2.71    20.78     };      \end{axis}     \end{tikzpicture}     \end{figure}      ## Edit: I don't want the second set of labels look clustered, they should be just labels. I do NOT want to plot x2 vs y1, x2 is just for an additional set of labels. Each number should be right under the number from the first column. See the picture below, ![enter image description here](http://i.stack.imgur.com/dXnen.jpg)


title: How do I get consistent spacing around an mbox?

text: I am trying to typeset a formula in LaTeX with a rule name beneath it, such as the following: ![Desired output](http://i.stack.imgur.com/aLM6B.png) The code for the rule an automatically-generated mess (not necessarily using maths mode), output from the theorem prover Isabelle/HOL, which I have little control over. My hope was that I could somehow isolate the auto-generated output by using `mbox` or something similar. My attempt to generate a macro for generating this output boils down to something like the following once I remove formatting commands:               \newcommand{\myrule}[2]{{       \begin{minipage}{\textwidth}%           \mbox{#1} \\           \mbox{#2}       \end{minipage}}}      This can then be used as `\myrule{\AutoGeneratedOutput}{ParitalPrimeSuc}`. The problem I have is that the vertical space between the two boxes depends on the content of the first box. For example, consider the following example:               \documentclass{article}          \begin{document}          \newcommand{\myrule}[2]{{         \begin{minipage}{\textwidth}%             \mbox{#1} \\             \mbox{#2}         \end{minipage}}}          \newcommand{\myruleii}[2]{{         \begin{minipage}{\textwidth}%             \fbox{#1} \\             \fbox{#2}         \end{minipage}\ignorespacesafterend}}          \myrule{\begin{minipage}{1in}line 1\end{minipage}}{last line}          \vspace*{.5in}          \myrule{\begin{minipage}{1in}line 1\\ line 2\end{minipage}}{last line}          \vspace*{.5in}          \myruleii{\begin{minipage}{1in}line 1\end{minipage}}{last line}          \vspace*{.5in}          \myruleii{\begin{minipage}{1in}line 1\\ line 2\end{minipage}}{last line}          \end{document}      The output of this is as follows (images moved to save space): ![Actual output](http://i.stack.imgur.com/RaNdC.png) Note that the distance between the bottom of the first `mbox` and the second `mbox` (highlighted in blue) differs depending on whether the first parameter has a line-break in it our not. Interestingly, if I replace the `mbox` with a `fbox`, the spacing becomes consistent (highlighted in green). This confuses me somewhat, because an `fbox` is supposed to be the same as an `mbox`, other than having a border around it. Is there a way to get the consistent spacing of `fbox` without the border? (Or should I be using a completely different mechanism for this?)


How to make footnotes appear at bottom of the footer's bar? Code:               \renewcommand{\footrulewidth}{0.4pt}          AJAX\footnote{Asynchronous JavaScript and XML permet de construire des applications Web et des sites web dynamiques interactifs sur le poste client.}      Made: ![enter image description here](http://i.stack.imgur.com/47WQV.png) Thanks in advance!


title: Label placement in pgfplots

text: I want to have the label arrows look that I get when using `axis lines=center` but I also want my x and y label to be on the outside of the plot and not inside the actual plot area. I have been looking through that huge manual for a while now but I am not making any progress. How can I get this?               \documentclass{memoir}     \usepackage{pgfplots}     \pgfplotsset{compat=1.8}          \begin{document}          \begin{tikzpicture}     \begin{axis}[ymin=0,ymax=1,xmin=0,xmax=1,     xlabel=$\mathit{foo}$,     ylabel=$\mathit{bar}$,     axis lines=center     ]     \addplot[color=black, fill=black, fill opacity=0.5] coordinates {     (0.0,0.0)     (0.05, 0.3)     (0.1,0.5)     (0.2,0.7)     (0.3,0.8)     (0.4,0.9)     (0.5,0.92)     (0.6,0.93)     (0.7,0.95)     (0.8,0.99)     (1.0,1.0)     (1.0,0.0)};     \end{axis}     \end{tikzpicture}          \end{document}      I want the labels like this: ![](http://i.stack.imgur.com/ToaLS.png) But the axes like this: ![](http://i.stack.imgur.com/OynSV.png)


title: Passing an array type argument for new command

text: I've looked around and can't seem to find anywhere, but I was wondering if there is somewhere you can do something like the following:               \newcommand{\loopy}[1]{         \begin{tikzpicture}             \foreach \x in #1 {                 \foreach \y in \x {                     \node at (\y_1,\y_2);                 }             }         \end{tikzpicture}     }          \loopy{{{1,2},{2,3}}}      Then the 'loopy' command would go through and plot nodes at (1,2) and (2,3). I'm not sure this is even possible or how you would go about doing it? Additionally, would there be a way to see the number of elements within a number? So say I pass in               \loopy{{{1,2,3},{2,3}}}      Is there a way to know that the first set has 3 elements and the second set has 2? **Edit** (Adding more description) The above example was to simplistic, so I'll make a more 'complex' example to show kinda what I'm trying to do:               \newcommand{\loopy}[1]{         \begin{tikzpicture}             \foreach \x in #1 {                 \if \x has 2 elements {                     \foreach \y in \x {                         \node at (\y_1,\y_2);                     }                 }                 \else if \x has 3 elements {                     \foreach \y in \x {                         \node at (\y_1,\y_2) {\y_3};                     }                 }                 \else if \x has 4 elements {                     \foreach \y in \x {                         \node at (\y_1,\y_2);                         \node at (\y_3,\y_4);                     }                 }             }         \end{tikzpicture}     }          \loopy{{{1,2},{1,2,3},{2,3,4,5}}}


title: triangle like \textcorner

text: I wish to denote the algebra of all upper triangular matrices by $M_n^\textcorner(K)$ but with $\textcorner$ being a triangle. How can I create this symbol (add additional diagonal line)? ![enter image description here](http://i.stack.imgur.com/kG3nW.jpg) My current preamble:               \documentclass[b4paper, twoside, final, openodd, 10pt]{book}     \usepackage{etex}     \usepackage[english]{babel}     \usepackage[cp1250]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{charter}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage[framed, thmmarks]{ntheorem}     \usepackage{framed}     \usepackage{tikz}         \usetikzlibrary{shadows,matrix,arrows}     \usepackage{hyperref}         \hypersetup{bookmarksopen=false, pdfpagelayout=TwoPageLeft, pdflinkmargin=0pt}  %colorlinks=true, linkcolor={blue}, citecolor={green}, urlcolor={medium-blue}     \usepackage[numbered]{bookmark}     \usepackage[all]{xy}     \usepackage{mathtools}     \usepackage{animate}     \usepackage{subfigure}     \usepackage{caption}         \captionsetup{labelformat=empty,labelsep=none}     \usepackage{verbatim}     \usepackage{multirow}     \usepackage{multicol}     \usepackage{longtable}         \setlength{\LTpre}{0pt}\setlength{\LTpost}{0pt}     \usepackage{wrapfig}     \usepackage{cancel}     \usepackage{enumitem}     \usepackage[subfigure]{tocloft}     \usepackage[top=2.1cm, bottom=2.9cm, left=2.1cm, right=2.1cm]{geometry}     \usepackage{stmaryrd}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%        new definition of SQUARE ROOT: it renames \sqrt as \oldsqrt ()            %%     %%======http://tex.stackexchange.com/questions/29834/closed-square-root-symbol======%%     \usepackage{letltxmacro}                                                            %%     \LetLtxMacro{\oldsqrt}{\sqrt}                                                       %%     \renewcommand{\sqrt}[1][\hphantom{3}]{ \def\DHLindex{#1}\mathpalette\DHLhksqrt }    %%     \def\DHLhksqrt#1#2{ \setbox0=\hbox{$#1\oldsqrt[\DHLindex]{#2\,}$}\dimen0=\ht0       %%                         \advance\dimen0-0.2\ht0                                         %%                         \setbox2=\hbox{\vrule height\ht0 depth -\dimen0}                %%                         {\box0\lower0.4pt\box2} }                                       %%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%                      DASHED and DOTTED UNDERLINE (ulem)                      %%     %%==============================================================================%%     \usepackage[normalem]{ulem}                                                     %%     \def\dotuline{\bgroup                                                           %%       \ifdim\ULdepth=\maxdimen  % Set depth based on font, if not set already       %%       \settodepth\ULdepth{(j}\advance\ULdepth.4pt\fi                                %%       \markoverwith{\begingroup                                                     %%       \advance\ULdepth0.08ex                                                        %%       \lower\ULdepth\hbox{\kern.15em .\kern.1em}                                    %%       \endgroup}\ULon}                                                              %%     %%------------------------------------------------------------------------------%%     \def\dashuline{\bgroup                                                          %%       \ifdim\ULdepth=\maxdimen  % Set depth based on font, if not set already       %%       \settodepth\ULdepth{(j}\advance\ULdepth.4pt\fi                                %%       \markoverwith{\kern.15em                                                      %%       \vtop{\kern\ULdepth \hrule width .3em}                                        %%       \kern.15em}\ULon}                                                             %%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%                           CUSTOMIZED CHAPTER HEADINGS                            %%     %%==================================================================================%%     \usepackage{titlesec}   %za spreminjat chapter headinge v Article, Book, Report     %%     \usepackage{fix-cm}     %da popravi nesoglasja po redefiniranju dolžin              %%     %\titleformat{command}[shape]{format}{label}{sep}{before}[after]                    %%     \titleformat{\chapter}                                                              %%                 {\bfseries\fontsize{30pt}{25pt}\selectfont}                             %%                 {\thechapter}                                                           %%                 {8pt}                                                                   %%                 {}                                                                      %%     \titleformat{\section}                                                              %%                 {\bfseries\fontsize{22pt}{16pt}\selectfont}                             %%                 {\thesection}                                                           %%                 {5pt}                                                                   %%                 {}                                                                      %%     \titleformat{\subsection}                                                           %%                 {\fontsize{18pt}{10pt}\selectfont}                                      %%                 {\thesubsection}                                                        %%                 {4pt}                                                                   %%                 {}                                                                      %%     \titleformat{\subsubsection}                                                        %%                 {\fontsize{16pt}{10pt}\selectfont}                                      %%                 {\thesubsubsection}                                                     %%                 {4pt}                                                                   %%                 {}                                                                      %%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%              CUSTOMIZED THEOREMS (ntheorem + TikZ)               %%     %-------------------------------------------------------------------%%     \theoremheaderfont{\normalfont}                                     %%     \theoremseparator{\bfseries :}                                      %%     \theorembodyfont{\normalfont\it}                                    %%     \newtheorem{envThm}{{\large\bfseries Theorem}}[section]             %%     %-------------------------------------------------------------------%%     \theoremheaderfont{\normalfont}                                     %%     \theoremseparator{\bfseries :}                                      %%     \theorembodyfont{\normalfont\it}                                    %%     \newtheorem{envPrp}[envThm]{{\large\bfseries Proposition}}          %%     %-------------------------------------------------------------------%%     \theoremheaderfont{\large}                                          %%     \theoremseparator{\bfseries :}                                      %%     \theorembodyfont{\normalfont}                                       %%     \newtheorem{envExp}[envThm]{{\large\bfseries Examples}}             %%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \renewcommand{\labelenumi}{\alph{enumi})}


title: How to rotate a TikZ label

text: I need to place information below and to the right of a grid. I was not able to rotate the label text of a node. I ended up using `\rotatebox`, but is there a pure `TikZ` solution?               \documentclass{scrartcl}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}       \draw[step=1cm] (1,1) grid (4,4);       \node[label=below:\rotatebox{-90}{a long text}] at (2.5,1) {};       \node[rotate=-90,label=below:rotate] at (1.5,0.5) {A};       \node[label=right:a long text] at (4,3.5) {};     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/LFvTD.png)


title: Conditional based on character following the macro

text: Basically, I would like to something like `\xspace` does, i.e. the meaning of the macro should depend on what is following it. So for example if I say               \mymacro a      it might expand to `foo`, and if any other character is following, it should expand to `bar`. In my specific case I'll try to match a unicode character, if that makes a difference. **Edit:** Specifically, I want to influence the spacing after an integral. When it stands alone, the default spacing is fine. If it is the first of multiple integrals, the space became too wide. Here is what I cobbled together from the previous answer:               \newcommand\timeintegral[1]{         ∫_{t_0}^{t_1} \if ∫#1 \!\!\! \fi #1     }      This is how it looks in use:               \timeintegral E \, dt = \timeintegral ∫_z ∫_φ f \, dφ dz dt      ![enter image description here](http://i.stack.imgur.com/G4g3D.png)


title: Using \mathpalette with macros that take more arguments

text: As I understand it, `\mathpalette` takes two arguments; the first must be a macro A that itself takes two arguments. A will be passed as `#1` commands to reproduce the math enviroment at the location where `\mathpalette` was invoked; and A will be passed as `#2` the second argument passed to the invocation of `\mathpalette`. For instance:               \newcommand\A[2]{\hbox{$\m@th#1(#2)$}}     ...     $$\mathpalette\A2$$      Will display a `(2)` in the same math environment as `2` inhabited on the last line. (Here, that is a displaystyle environment.) So far, so good. My problem is that I want to work with a macro like A that needs additional parameters. My strategy for solving this was to keep A as a 2-argument macro (making `\mathpalette` happy) but to have A invoke a further macro, but only partially supplying the arguments it wants. The rest of the arguments should be read from the position in the stream following the invocation of `\mathpalette`. For example:               \newcommand\A[2]{\B#1#2}     \newcommand\B[3]{\hbox{$\m@th#1(#2,#3)$}}     ...     $$\mathpalette\A23$$      `\mathpalette` will invoke `A` with the current math environment settings in `#1` and with `2` in `#2`. `A` should then pass those arguments on to `B`, and `B` should read `3` as its third argument, yielding the output `(2,3)`. But this doesn't compile. It gives the error: > `! Argument of \B has an extra }.` I can get it to compile but sticking `\expandafter` or `\relax` at the end of the definition of `\A`, but I don't fully understand what I'm doing, and none of my monkeying around is getting this to deliver the desired output of `(2,3)`.


title: Drawing the E-R Diagram - TikZ - Diagram Overflowing

text: I would like to draw the following E-R diagram: ![enter image description here](http://i.stack.imgur.com/pB04z.png) I am using the TikZ-er2 package. The package is available here. Now, I have completed almost 50% of the drawing. But, my TikZ picture appears in page 2 (article class and I have put landscape mode) and when the diagram is extended, it cuts off. How do I proceed? And I want to label my drawing as well. I can have a separate node for that, but are there any other ways. Here is what I have done:               \documentclass[12pt]{article}     \usepackage{tikz-er2}     \usepackage{lscape}     \usetikzlibrary{shadows}     \begin{document}     \tikzstyle{every entity} = [top color=white,bottom color=blue!30,draw=blue!50!black!100,drop shadow]     \tikzstyle{every attribute} = [top color=white, bottom color=yellow!20,     draw=yellow, drop shadow]     \tikzstyle{every relationship} = [top color=white, bottom color=red!20,     draw=red!50!black!100, drop shadow]     \tikzstyle{every edge} = [link]     \tikzstyle{every isa} = [top color=white, bottom color=green!20,     draw=green!50!black!100, drop shadow]     \begin{landscape}     \begin{tikzpicture}[node distance=10em]         \node[entity] (student) {Student};         \node[isa] (isa1) [below of=student, node distance=5em] {ISA} edge node [auto,swap] {disjoint} (student);         \node[entity] (mtech-stud) [below left of=isa1] {MTech$-$student} edge (isa1);         \node[attribute] (btechproj) [below left of=mtech-stud] {No.-of-BTech-Projects} edge (mtech-stud);           \node[entity] (btech-stud) [below of=isa1] {BTech$-$student} edge (isa1);         \node[entity] (phd-stud) [below right of=isa1] {Ph.D.$-$student} edge (isa1);         \node[attribute] (stud-id) [left of=student] {\key{student-id}} edge (student);         \node[attribute] (name) [above left of=student] {Name} edge (student);         \node[attribute] (fname) [above left of=name] {First-Name} edge (name);         \node[attribute] (lname) [above right of=name] {Last-Name} edge (name);         \node[attribute] (cgpa)  [above right of=student] {CGPA} edge (student);         \node[relationship] (joins) [right of=student] {joins} edge [total] (student);         \node[entity] (pgroup) [right of=joins] {Project-Group} edge [<-] (joins);         \node[attribute] (group-id) [above left of=pgroup] {\key{group-id}} edge (pgroup);         \node[derived attribute] (group-cgpa) [above right of=group-id] {group-CGPA} edge (pgroup);         \node[multi attribute] (areas) [above right of=group-cgpa] {areas-of-interest} edge (pgroup);         \node[relationship] (pgroup-guide) [right of=pgroup] {Project-Group-Guide} edge (pgroup);     \end{tikzpicture}     \end{landscape}     \end{document}      ![enter image description here](http://i.stack.imgur.com/l9s9n.png)


title: Prevent page breaks between item heading and item content

text: I have headings that appear before items in an enumerated list. The problem is that I think it looks ugly when a heading appears at the end of a page with the content of that heading on the next page. I'd like it so that at least one line of text from the item contents appears after a heading. I've tried `\nopagebreak[4]` (doesn't appear to do anything?) and `begin{samepage}` wrapping the heading and entire paragraph (left big empty spaces on pages). I'm hoping there's a nice way to solve it! Here's sample code to reproduce the issue:               \documentclass[letterpaper]{article}     \usepackage{enumitem}     \usepackage{lipsum}     \begin{document}     \begin{enumerate}     \item[]{\Huge{Heading}}     \item{\lipsum[1]}     \item[]{\Huge{Heading}}     \item{\lipsum[1]}     \item[]{\Huge{Heading}}     \item{\lipsum[1]}     \item[]{\Huge{Heading}}     \item{\lipsum[1]}     \end{enumerate}     \end{document}      And an image of the problematic output (see bottom of page). In this case, I'd either like the heading to be pushed to the next page or at least the first line of text from the paragraph to be pulled onto the first page. ![enter image description here](http://i.stack.imgur.com/hEUPO.png)


title: How can I find out whether I have 32bit or 64bit of MiKTeX installed?

text: I am trying to debug a problem with biber not being available. I know it's not in 64bit. So I need to find out what the machine's installation of MiKTeX has.


title: Newlfm horizontal line too low on second page

text: I'm using the newlfm document class and find myself bothered by the problem that the lower horizontal line (which on the first page is some centimeters above the end of the page) starts being exactly at the lower edge of the page starting with page 2. Any ideas how to change that? Here's my code:               \documentclass[10pt,stdletter,dateno, sigleft]{newlfm}     \usepackage[ansinew]{inputenc}     \usepackage{url}          \widowpenalty=1000     \clubpenalty=1000          \newlfmP{headermarginskip=20pt}     \newlfmP{sigsize=50pt}     \newlfmP{dateskipafter=20pt}     \newlfmP{addrfromphone}     \newlfmP{addrfromemail}     \PhrPhone{Phone}     \PhrEmail{Email}          \namefrom{}     \addrfrom{}     \phonefrom{}     \emailfrom{}          \addrto{}          \greetto{}     \closeline{nmnmnmnmnm}     \begin{document}     \begin{newlfm}     Text\newpage text     \end{newlfm}     \end{document}


title: How can I remove the white space within a cloud in TikZ?

text: I am trying to produce a figure which contains a cloud drawn around a set of images. The code I have so far is:               \node [draw, cloud, cloud puffs=20, aspect=2, inner sep=0cm] (pathways)       {\begin{tikzpicture}        \node at (0,0) [inner sep = 0pt] (pathway) {\includegraphics[width=5cm]{png/WP716_74442.png}};        \node at (2,1) [inner sep = 0pt] (pathway2) {\includegraphics[width=4cm]{png/WP716_74442.png}};        \node at (1,2) [inner sep = 0pt] (pathway3) {\includegraphics[width=5cm]{png/WP716_74442.png}};        \node at (4,2) [inner sep = 0pt] (pathway4) {\includegraphics[width=5cm]{png/WP706_74443.png}};        \node [above left = of pathway2] (pathway5) {\includegraphics[width=4cm]{png/WP1591_73381.png}};     \end{tikzpicture}     };      This results in the following cloud: ![TikZ cloud](http://i.stack.imgur.com/VqAy7.png) There is to much white space to my liking. I prefer the line of the cloud the just barely touch the figures included. According to an answer here, I should use inner sep=0cm. However the white space surrounding the figures remain. What I need is a cloud that is drawn around a set of figures in png format. What do I need to do, to get a smaller cloud (with less white space).


title: babel + hyperref: »redefining shorthand« several times per page

text: consider the following code:               \documentclass{article}     \usepackage[ngerman]{babel}     \usepackage{hyperref}     \usepackage{blindtext}          \begin{document}     \Blindtext\Blindtext\Blindtext     \Blindtext\Blindtext\Blindtext     \end{document}      ...and a small piece from its logfile.               [3]     Package babel Info: Redefining ngerman shorthand "|     (babel)             in language  on input line 7.     Package babel Info: Redefining ngerman shorthand "~     (babel)             in language  on input line 7.     Package babel Info: Redefining ngerman shorthand "|     (babel)             in language  on input line 7.     Package babel Info: Redefining ngerman shorthand "~     (babel)             in language  on input line 7.     Package babel Info: Redefining ngerman shorthand "|     (babel)             in language  on input line 7.     Package babel Info: Redefining ngerman shorthand "~     (babel)             in language  on input line 7.      babel seems to redefine these shorthands several times per page, even when there's nothing but plain text (why does it do so?). This happens only if `hyperref` is active. Half of that logfile consists of nothing but iterations of these lines. Obviously, it's even worse in the 350-page document that I'm currently working on, making troubleshooting a real pain in the neck. Is there a way to prevent this bloating?


title: Trees have a huge gap before and after

text: I am trying to print out a tree by using following packages:               \usepackage{epic}     % required by ecltree and fancybox packages     \usepackage{ecltree}  % to draw the GP trees     \usepackage{fancybox} % required by \Ovalbox     \setlength{\GapWidth}{1em}          \thicklines \drawwith{\dottedline{2}}     \newcommand{\gpbox}[1]{\Ovalbox{#1\rule[-.7ex]{0ex}{2.7ex}}}      This is my actual code:               deep structure, which does not increase the complexity of the problem as we will recursively apply reductions all the same.      \begin{center}     \begin{minipage}[!ht]{1cm}     \begin{bundle}{\gpbox{L}}\chunk{\begin{bundle}{\gpbox{L}}\chunk{\begin{bundle}{\gpbox{L}}\chunk{\begin{bundle}{\gpbox{P}}\chunk{\gpbox{2}}\chunk{\gpbox{1}}\end{bundle}}\end{bundle}}\end{bundle}}\end{bundle}     \end{minipage}     \end{center}     Moreover, many techniques are available for simplifying $\lambda$-trees. As explained in Section \ref{secReduction}, $\alpha$-conversion could be used to rename nodes in $\lambda$-trees and $\eta$-conversion could be used to take out redundant parts.      The tree shows up, however, if I put text before or after the tree, there is a huge gap as you can see in this image: ![output](http://i.stack.imgur.com/xEHjo.png). I also tried to remove the `\begin{center}` `\end{center}` but it doesn't really help. This is how it looks like after the change: ![wanted](http://i.stack.imgur.com/AMaxd.png) Any way to make it just like a normal picture with a normal gap?


title: No comma between multiple authors in bibliography

text: I am trying to write a paper and at the bibliography I have several titles which contain multiple authors. I want a comma to appear between them, but even if in the bib file I write the authors with comma between them, in the pdf the comma does not appear. I am trying to do this using `natbib`. A friend sent me a paper which uses `natbib` and when I compiled it the comma appeared, but the same code does not work in my paper. This is my paper:               \documentclass[a4paper,10pt]{report}     \usepackage[round]{natbib}     \usepackage[utf8x]{inputenc}     \usepackage{hyperref}          \title{Title}     \author{Author}          \date{}          \begin{document}     \maketitle     \begin{abstract}       Abstract     \end{abstract}          \section{Introduction}     \cite{williamson}          \bibliographystyle{plainnat}     \bibliography{bibliography}     \end{document}        And this is the entry from my bibliography.bib file:               @Book{williamson,     author={David P Williamson, David B Shmoys},     year = {2010},     title = {The Design of Approximation Algorithms},     publisher = {Cambridge University Press},     }


title: AUCTeX: How can I add syntax highlighting for custom cite commands?

text: I'm new to Emacs and AUCTeX and I want to have consistent syntax highlighting. Besides the "normal" `\cite` command, I'm also using commands like `\citeauthor` or `\Citeauthor`or self defined commands like `\cians{...}` which have bibtex keys as arguments and are used to cite literature.   * How can I change syntax coloring in AUCTeX so that those commands and their arguments have the same colors as the `\cite` command?  _I'm sorry, I'm not very experienced with Emacs, so for me those customizations are very difficult, I tried and found the`Font Latex User Keyword Classes`, but I do not know how to apply them (if this should be the right solution)._


title: How to apply a macro to each row of a table

text: This is similar to the question about cells, but with whole rows, and hopefully will help me to implement an answer to this question. Given a macro `\RowMacro`, how can I define the `mytable` environment such that I an write in my document               \begin{mytable}     a & b & c \\     d & e & f \\     g \\     h & i & j     \end{mytable}      and get the same result as if I had written               \RowMacro{a}{b}{c}     \RowMacro{d}{e}{f}     \RowMacro{g}{}{}     \RowMacro{h}{i}{j}      The maximum number of columns may have to be specified upfront.


title: Typesetting keys with TikZ

text: I am using a little TikZ Code to typeset Calculator keys, which works pretty well in general. I only have one problem: when I type just single lines I would like to have the corresponding box as big as the ones with two parts in it.               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[]{amsmath}     \setlength{\parskip}{1em}          \usepackage{tikz}     \usetikzlibrary{positioning,shapes,shadows}          \tikzstyle{abstract}=[rectangle, draw=black, rounded corners, fill=gray!30,drop shadow, text centered,  text=black, text width=8mm]     \tikzstyle{fkey}=[rectangle, draw=black, rounded corners, fill=orange,drop shadow, text centered,  text=black, text width=8mm]     \tikzstyle{gkey}=[rectangle, draw=black, rounded corners, fill=blue!40,drop shadow, text centered,  text=black, text width=8mm]          \newcommand{\mykey}[2]{%     \begin{tikzpicture} \node (Item) [abstract, rectangle split, rectangle split parts=2]{\textbf{\scriptsize{#1}} \nodepart{second}\textbf{\tiny{#2}}};%     \end{tikzpicture}}          \newcommand{\myfkey}{%     \begin{tikzpicture} \node (Item) [fkey, rectangle split, rectangle split parts=2]{\textbf{\footnotesize{f}} \nodepart{second}};%     \end{tikzpicture}}          \newcommand{\mygkey}{%     \begin{tikzpicture} \node (Item) [gkey, rectangle split, rectangle split parts=2]{\textbf{\footnotesize{g}} \nodepart{second}};%     \end{tikzpicture}}          \newcommand{\mynumberkey}[1]{%     \begin{tikzpicture} \node (Item) [abstract]{\textbf{#1}};%     \end{tikzpicture}}               \begin{document}                \mykey{n}{$12x$}           \mykey{SST}{$\Delta \text{DYS}$}           \myfkey           \mygkey           \mykey{Enter}{=}          \mynumberkey{3}          \end{document}      ![calculator keys](http://i.stack.imgur.com/rHpMj.png)


title: How to generate named nodes from the counter used in `foreach` in TikZ?

text: I'm trying to generate multiple nodes in TikZ using the `foreach` operator, but whatever I try I get compilation errors. I need all nodes to be named in order to draw edges between them. Having read that `let` could solve it, here follows my latest attempt:               \foreach \i in {1, 2, 3}     {       \node let \n1 = (4+\i)         in           at +(1, 0) [process_small] (p0\n1) {};     }


title: Appendix in scrreprt - Separate table of appendices but mentioned in original TOC

text: I tried to find solutions to this particular case, but I wasn't able to. What I want to achieve is to create an appendix in the following class: `\documentclass[a4paper, 12pt, headsepline, smallheadings]{scrreprt}` which is mentioned in the usual TOC only once by the name, that means as 'Appendix'. Moreover, I would like add a separate table of contents as 'List of Appendices' for the subsections of the appendix. This should become the first page of the appendix. The headline should still work as intended, that means show the current appendix/chapter. The names of 'Appendix' and 'List of appendices' should be changable (if possible), because I am not sure yet which names are ideal. To illustrate this a little better, I want the following entries in the TOC:               TOC          Introduction     Chapter      etc.     List of appendices      And then at some point of the document:               List of appendices          A      B      etc.       Does anyone know how to do it? Thanks for any helps/hints. Regards Here is a very small MWE:               \documentclass[a4paper, 12pt, headsepline, smallheadings]{scrreprt}     \begin{document}          \listoffigures         \listoftables          \tableofcontents             \chapter{Start}     Start          \appendix            \chapter{AAA}     \chapter{vvv}     \chapter{ccc}          \end{document}


title: How can you update the current relative coordinate in TikZ without adding an element?

text: Is it possible to update the current relative coordinate in TikZ without actually adding anything to the picture? For instance,               \node at ++(1, 0) (node1) {...};      will update the current `x` coordinate by incrementing it by 1, but how can I do this without actually adding a node? Also, it is possible to increment the position within a loop (i.e. to keep the new value between the iterations)?


title: Why doesn't relative coordinates in TikZ work with this example?

text: I was working on a figure, and for some reason relative coordinates have stopped working (it did before). I removed all code down to a bare minimum, and they still don't work. I don't know what I've done wrong so I'll just include it here:               \documentclass[english]{article}          \usepackage[T1]{fontenc}     \usepackage{babel}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows}     \usetikzlibrary{fit}     \usetikzlibrary{backgrounds}     \usetikzlibrary{positioning}     \usetikzlibrary{calc}          \begin{document}     \begin{tikzpicture}       % Nodes       \node at (0, 0) (input) {i};       \node at ++(2, 0) (p1) {a};       \node at ++(2, 0) (p2) {b};     \end{tikzpicture}     \end{document}      In this example, _a_ and _b_ are positioned _on top_ of each other instead of next to each other. Why?


title: How do we mirror a reversible reaction arrow in chemfig

text: In Chemfig, the reversible reactions are represented with a double harpoon. The top one goes from the left to the right, the bottom from the right to the left. One can rotate this double arrow. But I could not find a way to mirror it, like `\leftrighharpoon` in the package `mathrel`. This seems silly, but my reactions diagrams are very big and intricated, so the relative position of forward and reverse matter. I am sorry if I missed something in the manual or in the previous questions asked on this forum.


title: \chaptermark in tikz header (book design)

text: How can I add the current chapter and section to the node?               \node[color=white, anchor=west] at ($(current page.north west) - (-10ex,3.5ex)$)     {\ifnum\value{chapter}>0 \thechapter.~\chaptermark\fi};      `\chaptermark` or `\sectionmark` doesn't work here.               \documentclass{scrbook}          \usepackage[       a4paper, top=25mm, bottom=30mm,        inner=20mm, outer=70mm,       marginparsep=7mm, marginparwidth=45mm,     ]{geometry}          \usepackage{xcolor}     \definecolor{myviolet}{HTML}{4c0068}          \usepackage{microtype}          \usepackage{tikz}     \usetikzlibrary{calc}          \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhf{}     \renewcommand\headrulewidth{0pt}     \fancyhead[ER]{%       \begin{tikzpicture}[overlay,remember picture]         \draw[fill=myviolet!90, draw=none] ($(current page.north west) + (8.5ex,7ex)$) rectangle ($(current page.north east) - (0ex,7ex)$);         \draw[fill=myviolet, draw=none] ($(current page.north west) + (8ex,7ex)$) rectangle ($(current page.north west) - (0ex,7ex)$);         \node[color=white] at ($(current page.north west) - (-4ex,3.5ex)$) {\textbf{\Large\thepage}};         \node[color=white, anchor=west] at ($(current page.north west) - (-10ex,3.5ex)$) {\ifnum\value{chapter}>0 \thechapter.\fi};       \end{tikzpicture}%     }     \fancyhead[OL]{%       \begin{tikzpicture}[overlay,remember picture]         \draw[fill=myviolet!90, draw=none] ($(current page.north west) + (0,7ex)$) rectangle ($(current page.north east) - (8.5ex,7ex)$);         \draw[fill=myviolet, draw=none] ($(current page.north east) - (8ex,7ex)$) rectangle ($(current page.north east) + (0ex,7ex)$);         \node[color=white] at ($(current page.north east) - (4ex,3.5ex)$) {\textbf{\Large\thepage}};         \node[color=white, anchor=east] at ($(current page.north east) - (10ex,3.5ex)$) {\ifnum\value{section}>0  \thesection.\fi};       \end{tikzpicture}%     }          \usepackage{lipsum}          \begin{document}          \chapter{Test Chapter}     \section{Test Section}         \lipsum[1-3]         \newpage         \section{Test Section 2}         \lipsum[1-3]         \newpage         \section{Test Section 3}        \lipsum[1-3]          \end{document}


title: Parenthetical citation without author's name (\parencite*{}) not working in biblatex-chicago with [notes] style

text: I am using `biblatex-chicago` in the notes style. Sometimes I want to use the `\parencite*` command in a footnote, so as to produce, say: > Thomas S. Kuhn ( _The Copernican Revolution: Planetary Astronomy in the > Development of Western Thought_ [1957; Cambridge, Mass.: Harvard University > Press, 1995]) wrote that... The documentation for the `biblatex-chicago` package does not mention this case (parenthetical citation without author while using the notes style), but in the documentation of the `biblatex` package, it is said about `\parencite*` (p. 80): > This command is provided by all author-year and author-title styles. It is > similar to the regular `\parencite` command but merely prints the year or > the title, respectively. However, I cannot get it to work with the `biblatex-chicago` notes style. Instead, I get the full citation with the author's name, even if I use the starred (*) option of the command. This is a minimal working example (I compile using XeLaTeX) that illustrates the problem:               \documentclass[utf8,12pt,letterpaper]{article}     \usepackage[notes,strict,isbn=false,backend=biber,bibencoding=utf8,hyperref=true]{biblatex-chicago}          \addbibresource{bibliography.bib}          \begin{document}           Thomas S.\ Kuhn \parencite*{Kuhn19571995TheCopernicanRevolution} wrote that\ldots          \end{document}      The contents of `bibliography.bib` being:               @book{Kuhn19571995TheCopernicanRevolution,     author = {Kuhn, {Thomas S.}},     title = {The Copernican Revolution},     subtitle = {Planetary Astronomy in the Development of Western Thought},     publisher = {Harvard University Press},     address = {Cambridge, Mass.},     date = {1995},     origdate = {1957}     }      The resulting PDF looks like this: ![enter image description here](http://i.stack.imgur.com/7Mqsx.png) Any ideas?


title: Custom sorting in biblatex taking type into account

text: I am using `biblatex` for the first time, and was looking at the customisation section in the manual, but couldn't find what I was looking for. I want to define a sort order such that all books come first, then all articles and finally all remaining types of entries. Can this be done using the available commands or should I add custom fields to my BibTeX file?


title: Why does animate package produce a strange PDF file that always prompts us before closing?

text: % test.tex     \documentclass[preview,border=12pt,varwidth]{standalone}     \usepackage{animate}          \begin{document}     Why does animate package produce a strange PDF file \\that always prompts us before closing?     \end{document}      ![enter image description here](http://i.stack.imgur.com/Lse4Z.png) ![enter image description here](http://i.stack.imgur.com/5d3Cn.png)


title: Problem with hhline with tables having more than 9 columns

text: I found out that the hhline does not print lines when the argument is greater than `9` as in `\hhline{|*14{-}|}`. It works well when doing instead `\hhline{|*9{-}*5{-}|}` as the following file shows:               \documentclass{article}          \usepackage{hhline}     \usepackage{colortbl}          \begin{document}          \begin{center}     \small\sf     \begin{tabular}{|c|c|c|c|c|c|c|c|c|} \hhline{|*9{-}|}     \rowcolor[gray]{.8} & & \multicolumn{7}{c|}{Year} \\ \hhline{|*9{-}|}     a & a & a & a & a & a & a & a & a \\ \hhline{|*9{-}|}     \end{tabular}      \end{center}          \begin{center}     \small\sf     \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|} \hhline{|*9{-}*5{-}|}     \rowcolor[gray]{.8} & & \multicolumn{12}{c|}{Year} \\ \hhline{|*9{-}*5{-}|}     a & a & a & a & a & a & a & a & a & a & a & a & a & a \\ \hhline{|*9{-}*5{-}|}     \end{tabular}      \end{center}          \begin{center}     \small\sf     \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|} \hhline{|*14{-}|}     \rowcolor[gray]{.8} & & \multicolumn{12}{c|}{Year} \\ \hhline{|*14{-}|}     a & a & a & a & a & a & a & a & a & a & a & a & a & a \\ \hhline{|*14{-}|}     \end{tabular}      \end{center}          \end{document}      Is this the expected behavior ?


title: Beamer column citations

text: I have two columns and I am citing in each one:               \documentclass[mathserif]{beamer}     \usepackage[style=verbose,backend=biber]{biblatex}     \usepackage{graphicx}     \usepackage{caption}     \usepackage{amsmath}     \usepackage{relsize}     \usepackage{url}     \usepackage{bm}          \setbeamertemplate{footline}[frame number]     \setbeamertemplate{caption}[numbered]          \renewcommand{\footnotesize}{\tiny}          \bibliography{refs}               \begin{document}        \frame{\frametitle{Title}        \begin{columns}[2]        \begin{column}{0.4\textwidth}            \footnotemark        \end{column}        \begin{column}{0.4\textwidth}            \footnotemark        \end{column}        \end{columns}        \footcitetext{cocco}        \footcitetext{kirkpatrick}        }     \end{document}      The problem is that at the bottom of the page both citations have the same number:2, while in the first column there is 1, in the second 2. What am I doing wrong?