title: TeXLive 2013 (on Linux/Ubuntu) - tcfmgr & fmtutil not found

text: When I try to update packages via `tlmgr` (or run `fmtutil-sys --all` directly), TeXLIve reports:               /usr/local/texlive/2013/bin/i386-linux/fmtutil: 395: /usr/local/texlive/2013/bin/i386-linux/fmtutil: /usr/local/texlive/2013/texmf/texconfig/tcfmgr: not found     fmtutil: config file `fmtutil.cnf' not found.          kpsewhich fmtutil.cnf reports "/usr/local/texlive/2013/texmf-var/web2c/fmtutil.cnf"      This was a clean install of TeX Live 2013, so I'm not sure what went wrong (or how to fix it).


title: Subsection numbering should be arabic (1.1, 1.2 etc) not A B C

text: My sections are numbered arabic. I want to get subsection numbering also arabic as 1.1, 1.2, 1.3 etc. I have searched many forums and got these codes but it does not work for me. People say it works for us. I am using this code.               \def\thesection{\arabic{section}}     \def\thesubsection{\arabic{section}.\arabic{subsection}}     \def\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}      Only the first instruction works. I also used `\renewcommand` instead of `\def`.


title: Why these thin lines on a PGFPlot doesn't appear on some PDF readers?

text: I remember reading about PDF reader issues on this StackExchange, but I cannot find the links. The following TikZ picture has some thin lines in light green that doesn't show up on some readers (e.g. Adobe, Foxit, Okular): ![enter image description here](http://i.stack.imgur.com/9JTY2.png) The interesting part is that on my computer with Okular I can see the lines, but my advisor is saying he tried this same reader without success on his machine. What can I do to ensure my PGFPlots will be shown correctly nearly everywhere?


title: Array as subscript

text: While `$\begin{matrix} 2 & 4 & 6 & 5 & 4 & 3 & 2 \\\ && 3 \end{matrix}$` looks great for the highest root of `$\mathsf E_8$`, `$s_{\begin{matrix} 2 & 4 & 6 & 5 & 4 & 3 & 2 \\\ && 3 \end{matrix}}$` looks awful. I can get closer to a reasonable result using `$s_{\begin{smallmatrix} 2 & 4 & 6 & 5 & 4 & 3 & 2 \\\ && 3 \end{smallmatrix}}$`, but it seems like there must be some variant of an `array`/`matrix`-type environment that resizes automatically in subscripts and other appropriate contexts. Does such a thing exist, or must I use some combination of `\mathchoice`, `matrix`, and `smallmatrix`? As an added bonus question, what parameter controls the space before and after an `array` or `matrix` environment?


title: Arrow cuts symbol when using the xymatrix command

text: I would like to know the following: Using xy-pic, how can I avoid that in the diagram below the one arrow's tail cuts the letter I? Is there a command in xy-pic to shorten arrows? Thanks for the help.               \documentclass[a4paper]{scrartcl}     \usepackage[ngerman]{babel}     \usepackage[latin1]{inputenc}     \usepackage{dsfont}     \usepackage{rotating}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{mathrsfs}     \usepackage{eufrak}     \usepackage{amsthm}     \usepackage{amsfonts}     \usepackage{textcomp}     \usepackage{array}     \usepackage{graphicx}     \usepackage[pdftex]{color}     \usepackage{paralist}     \usepackage{ulem}     \usepackage{hyperref}     \usepackage[arrow, matrix, curve]{xy}     \usepackage{multirow}          \begin{document}          $\xymatrix@1{I\ar[r] \ar@{>->}[d]_f & K\otimes_R M \ar@{-->}[dl]\\ M^F & }$           \end{document}      ![screenshot](http://i.stack.imgur.com/v7NOG.png)


title: Rule at the middle of a page

text: Is it possible to draw a (dotted) horizontal rule at the middle of the page (same distance from the top as from the bottom) independent of the rest of the text (perhaps in some way overlayed over the text)? I just want it as a help line for a special purpose, it will removed in the final version of the text so it doesn't matter if it overlays text.


title: Applying options to already loaded package

text: Is there a way to apply some _options_ to a _package_ which is loaded in the _cls_ file I am using? For instance, suppose that the _cls_ file loads `graphicx`, and I want to apply the option `demo` to it from my _tex_ file.


title: Defining the position of a tabularx environment

text: In my report, I use a `tabularx` environment within a `mdframed` environment. I don't know why but I have to delete the `table` environment surrouding my `tabularx` environment when I want a table in my `mdframed`. Like this :               \begin{mdframed}     \begin{tabularx}{\textwidth}{|p{3.8 cm}|X|}     Blablabla     \end{tabularx}     \end{mdframed}      The problem is that my table is floating within my `mdframed`. I don't know how to define the position of my `tabularx` ... I'm seeking the equivalent of [h] for `tabularx` environment... I hope you will be able to help me. And I hope that my english is no too bad and you understand me. My code as demanded in comment :               \documentclass[12pt, a4paper]{report}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry}     \usepackage{tabularx}     \usepackage{mdframed}          \begin{document}     \begin{mdframed}     L'établissement des composants des processus et systèmes d'information sont illustrés ci-dessous avec les exemples présentés au point \ref{ExempleProcess} page \pageref{ExempleProcess}. Seuls les composants important sont identifiés ci-dessous. Il est évident qu'une analyse réelle doit tenter d'être la plus exhaustive possible.     \subsubsection*{Exemple 1 : gestion des commandes téléphoniques}          \textbf{Composantes du processus d'affaires :}          \noindent     \begin{tabularx}{\textwidth}{|p{3.8 cm}|X|}     \hline     Intrants et extrants     & Intrant : information relative aux besoins du client \\     & Extrants : information pour le processus d'analyse de la solvabilité (si le client est nouveau) ou ordre de préparation de commande \\                             \hline     Sources et destinations     & Source : client \\     & Destinations : processus de d'analyse de la solvabilité (si le client est nouveau) ou entrepôt \\     \hline     \end{tabularx}          BLABLABLA          \end{mdframed}          \end{document}


title: AUCTeX/Emacs not recognizing correct commands automatically

text: On my previous OS install, Debian Squeeze with FluxBox, my workflow was as follows: With `*.bib` file open, I enter `C-c C-c`. The BibTeX command was recognized as necessary and `ret` executed it. Then I would go back to the *`.tex` document, `C-c C-c`, and AUCTeX would recognize to execute LaTeX, `C-c C-c` again, and AUCTex would recognize to execute BibTeX, and a few more `C-c C-c`'s and the PDF with bibliography would be viewed. I recently updated the operating system to Debian Sid with xfce. Everything is working fine except that when I have a `*.bib` file open `C-c C-c` only brings up the View command. When a `*.tex` file is open the BibTeX command is never brought up using `C-c C-c`. However, when I enter the proper command manually everything works fine. My `.emacs` is:               (set-face-foreground 'font-lock-comment-face "light blue")          (setq-default auto-fill-mode t)     (setq fill-column 120)          (setq make-backup-files nil)     (setq auto-save-default nil)          (setq auto-mode-alist (cons '("\\.\\(pde\\|ino\\)$" . arduino-mode) auto-mode-alist))     (autoload 'arduino-mode "arduino-mode" "Arduino editing mode." t)          (setq auto-mode-alist (cons '("\\.m$" . matlab-mode) auto-mode-alist))     (setq auto-mode-alist (cons '("\\.oct$" . matlab-mode) auto-mode-alist))          (setq auto-mode-alist (cons '("\\.tex$" . TeX-latex-mode) auto-mode-alist))     (setq auto-mode-alist (cons '("\\.bib$" . TeX-latex-mode) auto-mode-alist))          (setq auto-mode-alist (cons '("\\.f03$" . fortran-mode) auto-mode-alist))     (setq auto-mode-alist (cons '("\\.f90$" . fortran-mode) auto-mode-alist))          (defun pdfevince ()       (add-to-list 'TeX-output-view-style                    (quote ("^pdf$" "." "evince %o %(outpage)")))     )          (add-hook 'LaTeX-mode-hook 'pdfevince t)          (add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)     (add-hook 'LaTeX-mode-hook 'TeX-PDF-mode)     (add-hook 'LaTeX-mode-hook 'flyspell-mode)     (add-hook 'LaTeX-mode-hook 'auto-fill-mode)     (add-hook 'tex-mode-hook 'auto-fill-mode)     (add-hook 'tex-mode-hook 'flyspell-mode)     (add-hook 'bibtex-mode-hook 'flyspell-mode)          (add-hook 'LaTeX-mode-hook (lambda () (set-fill-column 120)))     (add-hook 'teX-mode-hook (lambda () (set-fill-column 120)))          (line-number-mode 1)     (column-number-mode 1)          (global-hl-line-mode 1)      Greatly indebted to any advice on this problem.


title: Need help with modifying ntheorem environments

text: I am trying to modify some of the theorem environments defined in `ntheorem`. I wanted the definitions in my document to be boxed the way in which `ntheorem` does for the _framed theorem classes_ which they define by:               \theoremclass{Theorem}     \theoremstyle{break}     \newframedtheorem{importantTheorem}[Theorem]{Theorem}      and so I modified the above code to the following:               \theoremclass{Theorem}     \theoremstyle{break}     \newframedtheorem{defn}[Theorem]{Definition}      then in my document called up an instance of a definition by:               \begin{defn}[Logical Equivalance] Two propositions are said to be logically equivalent iff ...     \end{defn}      Now, I wish to modify their shaded theorem environment which is coded as follows:               \theoremclass{Theorem}     \theoremstyle{break}     \newshadedtheorem{moreImportantTheorem}[Theorem]{Theorem}      I tried the following:               \theoremclass{Theorem}     \theoremstyle{break}     \newshadedtheorem{prop}[Theorem]{Proposition}      but keep getting the error:               Undefined control sequence: begin{prop}      Can anyone help me with this?               \documentclass[10pt,a4paper]{article}          \usepackage[left=2.50cm,right=2.50cm,top=2.50cm,bottom=2.75cm]{geometry}     \usepackage{amsmath,amssymb,amscd,amstext,amsbsy,array,color,epsfig}     \usepackage{fancyhdr,framed,latexsym,multicol,pstricks,slashed,xcolor}     \usepackage[amsmath,framed,thmmarks]{ntheorem}               \begin{document}          \theoremstyle{marginbreak}     \theoremheaderfont{\bfseries\scshape}     \theorembodyfont{\slshape}     \theoremsymbol{\ensuremath{\star}}     \theoremseparator{:}     \newtheorem{axm}{Axiom}[section]          \theoremstyle{marginbreak}     \theoremheaderfont{\bfseries\scshape}     \theorembodyfont{\slshape}     \theoremsymbol{\ensuremath{\diamondsuit}}     \theoremseparator{:}     \newtheorem{Theorem}{Theorem}[section]          \theoremclass{Theorem}     \theoremstyle{break}     \newshadedtheorem{prop}[Theorem]{Proposition}          \theoremstyle{changebreak}     \theoremsymbol{\ensuremath{\heartsuit}}     \theoremindent0.5cm     \theoremnumbering{greek}     \newtheorem{lem}{Lemma}[section]          \theoremindent0cm     \theoremsymbol{\ensuremath{\spadesuit}}     \theoremnumbering{arabic}     \newtheorem{cor}[Theorem]{Corollary}          \theoremstyle{plain}     \theorembodyfont{\upshape}     \theoremsymbol{\ensuremath{\bullet}}     \theoremseparator{}     \newtheorem{exm}{Example}          \theoremclass{Theorem}     \theoremstyle{plain}     \theoremsymbol{\ensuremath{\clubsuit}}     \newframedtheorem{defn}[Theorem]{Definition}          \theoremheaderfont{\sc}     \theorembodyfont{\upshape}     \theoremstyle{nonumberplain}     \theoremseparator{.}     \theoremsymbol{\rule{1ex}{1ex}}     \newtheorem{proof}{Proof}          \theoremstyle{plain}     \theorembodyfont{\upshape}     \theoremsymbol{\ensuremath{\ast}}     \theoremseparator{.}     \newtheorem{rem}{Remark}          \theoremstyle{plain}     \theorembodyfont{\upshape}     \newtheorem{exc}{Exercise}[section]               \begin{defn}[Logical Equivalance] Two propositions are said to be logically equivalent iff ...     \end{defn}            \begin{prop}     Let $P$ and $Q$ be propositions. Then ...     \end{prop}          \end{document}      Thanks!!!


title: Tikz node alignment

text: How can I align (or shift) Tikz nodes? I have the following figure (see below), which consists of multiple horizontal nodes. I want to align the data node with top/bottom of nodes A-D (i.e., red lines).               \documentclass[10pt,a4paper,final]{report}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows,backgrounds}          \begin{document}     \begin{figure}     \centering     \tikzstyle{block} = [rectangle, draw, text width=5.5em, text centered, rounded corners, minimum height=4em]     \tikzstyle{line} = [draw, -latex']     \tikzstyle{edge} = [draw]          \begin{tikzpicture}[node distance = 3.3cm, auto]         % Place nodes         \node [draw, cylinder, shape border rotate=90, aspect=0.75, %           minimum height=40, minimum width=60] (data) {Data};         \node [block, right of=data] (A) {A};         \node [block, right of=A] (B) {B};         \node [block, right of=B] (C) {C};         \node [block, right of=C] (D) {D};         \path [line] (data) -- (A);         \path [line] (A) -- (B);         \path [line] (B) -- (C);         \path [line] (C) -- (D);     \end{tikzpicture}     \end{figure}     \end{document}      > ![enter image description here](http://i.stack.imgur.com/pGDji.jpg)


title: How to make an exact vertically centered object in a page?

text: Note: the red lines have the same length. ![alt text](http://i.stack.imgur.com/MZ4Ob.png)               \documentclass{minimal}     \usepackage[showframe,paperwidth=4cm,paperheight=4cm,margin=1cm]{geometry}     \begin{document}     %     \vspace*{\fill}%     \fbox{test}%     \vspace*{\fill}%     %     \end{document}


title: Changing the colour of Beamer \titlepage using a .sty file

text: I've been looking for an answer everywhere to this, but so far, nothing seems to have worked. What I would like to do is change the background colour and font colour of the `\titlepage` command, but to do so within the custom `.sty` file I have generated, i.e. I don't want to have to specify the change in colours within the `.tex` file. The (hopefully as basic as possible) `.tex` file outline is (some lines are commented out to ensure the example can be run without extra files - if you wish to add your own files to see it working, feel free!):                   \documentclass{beamer}         \usetheme{Oxford}              \usepackage{color,graphicx}         \usepackage{epsfig} % Modifies table/figure captions         \DeclareGraphicsExtensions{.pdf,.png,.jpg}              \author{Author Name}         \title{Presentation Title}         \institute{Institute Name}              \date{}              \begin{document}            \begin{frame}[plain]               \titlepage            \end{frame}                 \begin{frame}               \frametitle{Outline}               \tableofcontents            \end{frame}                 \section{Example Section}            \begin{frame}               \frametitle{Example Frame}            \end{frame}                 \section{Second Example}            \begin{frame}               \frametitle{Example Frame With a Block}               \begin{block}{Test Block}                  Testing the block colour here\ldots{}               \end{block}            \end{frame}         \end{document}      The associated `beamerthemeOxford.sty` file is thus:                   \DeclareOptionBeamer{compress}{\beamer@compresstrue}         \ProcessOptionsBeamer         \mode<presentation>              \useoutertheme[footline=authortitle]{miniframes}         \useinnertheme{circles}         \usecolortheme{whale}         \usecolortheme{orchid}              % Define the colours that are to be used in the presentation         \definecolor{oxfordblue}{RGB}{0,33,71}          % Oxford Blue         \definecolor{oxfordgold}{cmyk}{0,0.21,0.60,0.30}    % Oxford Gold              % Set which colours apply to which structures         \setbeamercolor{structure}{fg=oxfordblue}         \setbeamercolor{titlelike}{parent=structure}         \setbeamercolor{frametitle}{fg=oxfordblue}         \setbeamercolor{title}{fg=oxfordblue}         \setbeamercolor{item}{fg=oxfordblue}         \setbeamercolor{section in head/foot}{bg=oxfordblue,fg=white}              % Define the headline and titlebar         \setbeamertemplate{headline}         {            \begin{beamercolorbox}[wd=1\paperwidth,left]{section in head/foot}            \vskip2pt            \insertnavigation{0.85\paperwidth}            \vskip2pt            \end{beamercolorbox}         }              \usepackage{tikz}         \usetikzlibrary{backgrounds}         \usepackage[absolute,overlay]{textpos}          % \pgfdeclareimage[height=1.1cm]{logo}{logo_file}         \setlength{\TPHorizModule}{\paperwidth}         \setlength{\TPVertModule}{\paperheight}         \setbeamertemplate{frametitle}         {            \vskip-1pt            \begin{beamercolorbox}[wd=1\paperwidth,left]{section in head/foot}               \vskip-15pt               \begin{tikzpicture}                  \shade[left color=white,right  color=oxfordblue] (0,0) rectangle +(11,0.02);               \end{tikzpicture}               \vskip-2pt               \hskip10pt\strut\insertframetitle\strut\\            \end{beamercolorbox}             \begin{textblock}{0.2}[0.5,0.5](0.99,0.07)               % \pgfuseimage{logo}            \end{textblock}          }              % Adapt other segments of code         \setbeamertemplate{blocks}[rounded][shadow=true]         \setbeamertemplate{navigation symbols}{}              % Ensures navigation circles are displayed         \usepackage{remreset}         \makeatletter         \@removefromreset{subsection}{section}         \makeatother         \setcounter{subsection}{1}              % Reformat Title Page to our own specifications         \setbeamertemplate{title page}         {         \setbeamercolor*{background canvas}{fg=oxfordblue,bg=oxfordblue}         %   \setbeamercolor*{title}{fg=oxfordblue,bg=oxfordblue}         %   \setbeamercolor{titlelike}{parent=structure}            \begin{columns}               \column{0.7\textwidth}               \usebeamerfont{title}\inserttitle               \ifx\insertsubtitle\@empty               \else                  \vskip2ex                  \usebeamerfont{subtitle}\insertsubtitle               \fi               \ifx\insertauthor\@empty               \else                  \vskip2ex                  \usebeamerfont{author}\insertauthor               \fi               \ifx\insertdate\@empty               \else                  \vskip2ex                  \usebeamerfont{date}\insertdate%               \fi               \ifx\insertinstitute\@empty               \else                  \vskip2ex                  \usebeamerfont{institute}\insertinstitute%               \fi               \vfill               \column{0.3\textwidth}               % \includegraphics[width=0.5\textwidth]{pic1}\\               \vskip5pt               % \includegraphics[width=0.5\textwidth]{pic2}\\               \vskip5pt               % \includegraphics[width=0.5\textwidth]{pic3}            \end{columns}         }              \mode         <all>      There were various other hacks that I tried, but they all came to nothing and were inelegant kludges. In either case, the background colour of the title page remains resolutely white, whereas I want to have the background as `oxfordblue` and the font as `white`. Does anyone know what I'm doing wrong? Thanks for your help.


title: Cover letter with modernCV in LyX

text: I created a CV using the modernCV package in LyX and I would like to create a fitting cover letter. I saw a lot of people doing it but following their examples does not work for me. What I tried: I opened my finished CV file (so it has all the necessary information in the preamble like e.g. my address) and deleted all the contents in the actual file. Then I added the following:               \clearpage{}          \recipient{Person}{Address} % Letter recipient      \date{\today} % Letter date      \opening{Dear Sir or Madam,} % Opening greeting      \closing{Sincerely yours,} % Closing phrase     \enclosure[Attached]{curriculum vit\ae{}} % List of enclosed documents          \makelettertitle % Print letter title      added some text here and finished with               \makeletterclosing % Print letter signature      But LyX already fails with the recipient and provides "undefined control sequence" errors for any letter related command. I checked different examples other people provided for a cover letter with modernCV and nobody seems to have changed anything in the preamble to make the CV to a letter. Have I missed something?


title: "Track changes" in LaTeX

text: I am writing a scientific paper with my collaborator. We have submitted a version to a journal and now we got a review from them, so we need to fix a few things. In Microsoft Word there is the option to "track changes", which displays the deleted text as crossed out and the new text bolded (if I remember the details correctly). Is there a way to achieve a similar result in LaTeX? I was thinking to create a new file for the revised version and then write a script which would basically compare the two files and make the differences either bold or crossed out before sending it to latex. Is there a tool that already does it?


title: Track changes option in pdfLaTeX

text: Is their any track changes option available in LaTex, similar to word. If some other person want to mark comments in my LaTex document, is that possible?


title: Making corrections during review of other people latex article

text: > **Possible Duplicate:**   >  "Track changes" in LaTeX There is the corrections mode in Word package. All your changes will be marked. In this way one can show proposed changes in other people documents. What is analog in Tex?


title: How to revise a scientific manuscript in LaTeX?

text: I have prepared a scientific manuscript for a Springer journal in LaTeX (The Springer template defines "svjour3" document class). After a review process, the editor ask me to change some parts of the paper and submit again for the second review process. In Microsoft Word, revising is defined as "track change". This feature highlights the changes within the document. I just want to know if LaTeX has a similar feature like track change in MS Word? If not, what's the best way to highlight changes in a LaTeX document?


title: Losing space with two rotated tables in one page

text: I'm writing a paper using the `IEEEtran` style, which uses two column per page. At some point, I had to make some three big tables, so I used `\sideways` to rotate them. The pages' height fill all available space, one of them fill on page alone, but two of them are thin, and I could (and should) put two of them in the same page. I'm defining my first table (the one that fills all page) like this:               \begin{table*}[h]       \centering       \caption{Performance of Second Based Operators applied to the clown image.}       \label{tab:sodclown}         \begin{sideways}           \begin{tabular}{ cccccccc }           ...           Sobel & \raisebox{-\totalheight}{\includegraphics[height=0.2\textwidth]{figs/colorbar2}}                 & \raisebox{-\totalheight}{\includegraphics[width=0.2\textwidth]{figs/Clown/MSE/Sobel}}            ...       \end{tabular}       \end{sideways}     \end{table*}      Which gives me this result (just part of it): ![enter image description here](http://i.stack.imgur.com/Zagme.png) The two tables that are in the same page are defined like this:               \begin{table*}[h]        \begin{minipage}{.5\textwidth}           \centering           \caption{Performance of Second Based Operators applied to the bike image.}           \label{tab:sodbike}             \begin{sideways}              \begin{tabular}{ cccccccc }              ...              \shortstack{Four-neighbor\\ Laplacian}               & \raisebox{-\totalheight}{\includegraphics[height=0.3\textwidth]{figs/colorbar2}}               & \raisebox{-\totalheight}{\includegraphics[width=0.3\textwidth]{figs/Clown/MSE/Laplacian1}}               ...              \end{tabular}           \end{sideways}        \end{minipage}          \begin{minipage}{.5\textwidth}           \centering           \caption{Performance of Second Based Operators applied to the clown image.}           \label{tab:sodclown}             \begin{sideways}               \begin{tabular}{ cccccccc }               ...               \end{tabular}           \end{sideways}        \end{minipage}%     \end{table*}      Which gives the following result: ![enter image description here](http://i.stack.imgur.com/k7YvQ.png) As can be seen, I got a considerable black space between my table lines and the images, which prevent my image to get bigger. I wondering what is causing this result I how can I get rid of it, so my useful space would get expanded, and, consequently, my images. The only difference is that I'm using `\shortstack` in the second table environment.


title: Mathematica notebook into latex document

text: Whereas   * Mathematica allows us to dump an entire notebook into a readable LaTeX file. However, the formatting of that file is not optimal.   * There are many posts on how to "beautify" a single Mathematica equation into LaTeX. But, this procedure can not be manually implemented for a notebook containing over 100 in/out. So my question is whether there is a LaTeX style sheet which can take the `.tex` file dumped by Mathematica and display it in a more appealing way. Following is a sample of the generated code:               %% AMS-LaTeX Created by Wolfram Mathematica 9.0 : www.wolfram.com          \documentclass{article}     \usepackage{amsmath, amssymb, graphics, setspace}          \newcommand{\mathsym}[1]{{}}     \newcommand{\unicode}[1]{{}}          \begin{document}          \section*{Define the load (omitting the d$\theta $) { } { } { } { } { } { } { } { } { } { } { } { } { } { } { } { } { } }          \begin{doublespace}     \noindent\(\pmb{\text{dP}'=w R;}\)     \end{doublespace}          \section*{Primary Structure; Externally Applied load { } { } { } { } { } { } { } { } { } { } { } { } { } { } { } { } { } { } }          \subsection*{\textup{ Determine horizontal reaction at B by taking moment with respect to Z (CCW +ve)}}          \begin{doublespace}     \noindent\(\pmb{\text{x1}=R \text{Cos}[\alpha ]; \text{x2}=R \text{Cos}[\theta ]; \text{y0}=R(1-\text{Sin}[\alpha ]);}\)     \end{doublespace}          \begin{doublespace}     \noindent\(\pmb{\text{SigMZ}= -\text{BX} \text{y0}+\int _{\alpha }^{\pi /2}(\text{x1}-\text{x2}) \text{dP}' d\theta }\)     \end{doublespace}          \begin{doublespace}     \noindent\(\frac{1}{2} R^2 w ((\pi -2 \alpha ) \text{Cos}[\alpha ]+2 (-1+\text{Sin}[\alpha ]))-\text{BX} R (1-\text{Sin}[\alpha ])\)     \end{doublespace}          \begin{doublespace}     \noindent\(\pmb{\text{Sol1}=\text{Solve}[\text{SigMZ}\text{==}0, \text{BX}]; \text{BX}= \text{BX}\text{/.}\text{Sol1}[[1]]}\)     \end{doublespace}          \begin{doublespace}     \noindent\(-\frac{R w (-2+\pi  \text{Cos}[\alpha ]-2 \alpha  \text{Cos}[\alpha ]+2 \text{Sin}[\alpha ])}{2 (-1+\text{Sin}[\alpha ])}\)     \end{doublespace}          \subsection*{\textup{ Determine vertical reaction by taking summation of forces in the y direction}}          \begin{doublespace}     \noindent\(\pmb{\text{BY}=\int _{\alpha }^{\pi /2} \text{dP}'d\theta }\)     \end{doublespace}          \begin{doublespace}     \noindent\(R w \left(\frac{\pi }{2}-\alpha \right)\)     \end{doublespace}          \begin{doublespace}     \noindent\(\pmb{\text{CX}=\text{BX}}\)     \end{doublespace}          \begin{doublespace}     \noindent\(-\frac{R w (-2+\pi  \text{Cos}[\alpha ]-2 \alpha  \text{Cos}[\alpha ]+2 \text{Sin}[\alpha ])}{2 (-1+\text{Sin}[\alpha ])}\)     \end{doublespace}               \end{document}


title: Problem with tikzpagenodes and minipage

text: Using the anchors defined by `tikzpagenodes` inside a `minipage` produces unexpected results; this is not the case for the `current page` family of anchors defined by standard TikZ as the following example shows. Labels in `cyan` correspond to the standard TikZ anchors which are correctly positioned ("cp" stands for "current page"); labels in orange correspond to `tikzpagenodes` anchors which are correctly positioned ("ta" stands for "text area"); labels in red correspond to `tikzpagenodes` anchors which are _not_ correctly positioned since the anchors were called from withing a `minipage` ("ta" stands for "text area"). The `showframe` package was used to have a visual guide of the page layout; the `minipage` also was framed for reference               \documentclass{article}     \usepackage[a6paper]{geometry}     \usepackage{tikzpagenodes}     \usepackage{showframe}          \begin{document}          \centering          \begin{tikzpicture}[remember picture,overlay]     \foreach \Anchor in {north,west,south,east}     {       \node[font=\color{orange}] at (current page text area.\Anchor) {ta.\Anchor};       \node[font=\Huge\color{orange}] at (current page text area.\Anchor) {X};     }     \end{tikzpicture}%          \frame{\begin{minipage}[c][4cm][c]{.5\textwidth}     \begin{tikzpicture}[remember picture,overlay]     \foreach \Anchor in {north,west,south,east}     {       \node[font=\color{cyan}] at (current page.\Anchor) {cp.\Anchor};       \node[font=\Huge\color{cyan}] at (current page.\Anchor) {X};       \node[font=\color{red}] at (current page text area.\Anchor) {ta.area.\Anchor};       \node[font=\Huge\color{red}] at (current page text area.\Anchor) {X};     }     \end{tikzpicture}%     \end{minipage}}          \end{document}      ![enter image description here](http://i.stack.imgur.com/O2c7z.png) How can the correct anchors defined by `tikzpagenodes` be recovered when used inside a `minipage`.


title: How to scale column numbers in a pgfplot table

text: I want the numbers in my second column in `dataTest.dat` file be multiplied by 1E4, and it seems that `\addplot table[x=x,y=10000*y] {dataTest.dat};` does not work, what should I do then? Here is the code,               % !TEX TS-program = latex      \documentclass[class=article,border=1pt]{standalone}          \usepackage{tikz}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}     \begin{axis}     \addplot table[x=x,y=y] {dataTest.dat};      \end{axis}     \end{tikzpicture}     \end{document}      And here is the `dataTest.dat` file:               x y      1 0.00004      2 0.00460      3 0.00114      4 0.00037      5 0.00017      6 0.00010      7 0.00010      8 0.00010      9 0.00010     10 0.00010     11 0.00010     12 0.00010     13 0.00010     14 0.00010


title: txfontsb small caps

text: For some reason I get an error message when using `\textsc{}` with `txfontsb.sty`. It can be my installation but since `txfonts.sty` is working I am bewildered. The MWE is here:                 \documentclass{article}          % \usepackage[T1]{fontenc}       \usepackage[LY1]{fontenc}     % \usepackage{txfonts}%  works       \usepackage{txfontsb}% error message            \begin{document}       \textsc{Hello world.}%       \end{document}      As you see I have also tried using `T1` instead of `LY1` (without success). The error message I get is               LaTeX Font Warning: Font shape `LY1/txrc/m/sc' undefined      My font directory listings are               texmf-texlive-dist/tex/latex/txfontsb:          lgrtxr.fd   lgrtxrc.fd  lgrtxry.fd  lgrtxryc.fd      ot1txrc.fd  ot1txryc.fd txfontsb.sty          texmf-texlive-dist/tex/latex/txfonts:          ly1txr.fd   omltxmi.fd  omstxsy.fd  ot1txss.fd       t1txss.fd   ts1txss.fd  utxexa.fd   utxss.fd         utxsyc.fd   ly1txss.fd  omltxr.fd   omxtxex.fd       ot1txtt.fd  t1txtt.fd   ts1txtt.fd  utxmia.fd        utxsya.fd   utxtt.fd    ly1txtt.fd  omstxr.fd        ot1txr.fd   t1txr.fd    ts1txr.fd   txfonts.sty      utxr.fd utxsyb.fd      Any clues?


title: Arrows from cloud cross the outer line

text: I'm using TikZ to draw a cloud. Also I'm drawing arrows from the cloud to some nodes. But the startpoints of the arrows are in or outside the cloud but not exactly on the outer line. I think the picture shows my problem: ![a cloud with arrows](http://i.stack.imgur.com/ejb1Q.png) As well here is an MWE:               \documentclass{minimal}     \usepackage{tikz}     \usetikzlibrary{shapes}     \begin{document}     \begin{tikzpicture}         \node[cloud, cloud puffs=15.7, minimum width=3cm, draw] (cloud) at (0,0) {Cloud};         \path[->] (cloud) edge (2, 2)               (cloud) edge (2, 1);     \end{tikzpicture}     \end{document}      As you may think by yourself my question is how to position the start points of the arrows on the line of the cloud.


title: Creating a drop shadow with guassian blur

text: How can I add a drop shadow to a `\includegraphics` picture? The effect should be very minute just to be a little bit eye pleasing. I know you can use `\shadowbox` in `fancybox` package but the output would not be like this. Sample: ![enter image description here](http://i.stack.imgur.com/PI1cn.png) Created with the drop shadow effect in `Inkscape`.


title: Equation number referral doesn't appear within the empheq/array environment?

text: Why doesn't the equation number referral appear within the `empheq/array` environment ? In this example I left out the formulas within the `empheq` environment (the problem remains with the formulas added).               \documentclass{article}     \usepackage{amsmath}     \usepackage{empheq}          \begin{document}          \begin{empheq}{align}     \label{eq:1}     \left\{\!\!\begin{array}{l}     \text{An equation reference should appear after the question mark, but doesn't ? \eqref{eq:2}}\\     \text{This doesn't work either : \eqref{eq:2}}     \end{array}\right.     \end{empheq}          I can definitely refer to the equation though, like this : \eqref{eq:2}.          \begin{empheq}{align}     \label{eq:2}     1+1=2     \end{empheq}               It compiles without throwing an error.          \end{document}


title: TikZ: variable in calc syntax

text: I'd like to draw some lines where one of points should be defined like:               ($ (A)! \X3 !(B) $)      where `\X3` is something from (0,1). But it's not working. Yeah, I could just place the right number, but I'd like use this construction (or quite similar) on several places of this figure and I'd like to make several figures with different `\X3`. Any possible way how to set variable into `$ $` in TikZ?


title: "Dynamic" picture in beamer presentation

text: Is there a way in beamer to have some kind of dynamic picture that will change if the mouse is moved over it or if the button is clicked?


title: How to Save the Changes of File

text: I am using `MikTeX` and `TeXnicCenter`. This is intended to save the file changes. How to compile the LaTeX files, for example `file.tex`, to be indexed pdf files. For the first time will be compiled into, `file1.pdf`. Further, if there is a `file1.pdf`, it will compile to `file2.pdf` and so on.


title: Problem with fill and cycle

text: Can someone tell me why the rectangle is not filled? So basically, why "cycle does not work?" I dont get it..               \documentclass{article}     \usepackage{tikz}          \begin{document}          \begin{tikzpicture}          \tikzstyle{circ} = [circle, minimum width=2.0mm, inner sep=0pt,draw,fill]     \tikzstyle{num}  = [yshift=3mm]     % QUAD     \node[circ] (a) at (0.0, 0.0) {};     \node[circ] (b) at (1.5, 0.0) {};     \node[circ] (c) at (2.3, 1.0) {};     \node[circ] (d) at (0.8, 1.0) {};     \path[draw, line width=0.3mm,top color=gray!20,bottom color=white] (a)            node[num]{1} -- (b) node[num]{2} -- (c) node[num]{3} -- (d) node[num]{4} -- cycle;          \end{tikzpicture}          \end{document}      Ok, after following the linked thread I rewrote. Now it works, but i seems like an awfull lot of code for such a small picture..               \begin{tikzpicture} % , show background rectangle          \tikzstyle{circ} = [circle, minimum width=2.0mm, inner sep=0pt,draw,fill]     \tikzstyle{num}  = [yshift=3mm]     % QUAD     \coordinate (a) at (0.0, 0.0);     \coordinate (b) at (1.5, 0.0);     \coordinate (c) at (2.3, 1.0);     \coordinate (d) at (0.8, 1.0);     \path[draw, line width=0.3mm,top color=gray!40,bottom color=white] (a)    node[num]{1} -- (b) node[num]{2} -- (c) node[num]{3} -- (d) node[num]{4} -- cycle;     \node[circ]  at (a) {};     \node[circ]  at (b) {};     \node[circ]  at (c) {};     \node[circ]  at (d) {};          \end{tikzpicture}


title: Problem at the Table of Contents in Lyx

text: I use Lyx 2.1, document class : report. At the table of Contents, no spacing between "a few" under sections. ![enter image description here](http://i.stack.imgur.com/WTVz4.png) ![enter image description here](http://i.stack.imgur.com/uQBzP.png)


title: Errors with multicolumn-equations inside tabular (inside tcolorbox)

text: I try to rebuild a fairly complicated math-table, and I'm almost satisfied with the result. The MWE actually compiles to the table I want, but with error messages. When I include the table in my real (big) document, I get the error messages too, but in that case the document doesn't compile anymore. I spent quite some time experimenting with and checking the `$`, but cannot find the error, and would be grateful for any tip.               \documentclass[]{scrbook}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{latexsym}     \usepackage{amsmath}     \usepackage[listings,theorems]{tcolorbox}     \tcbset{before={\par\medskip\pagebreak[0]\noindent},after={\par\medskip}}%          \begin{document}               \newcounter{texercise}[chapter]     \begin{tcolorbox}[colback=blue!5,colframe=blue!50!black,arc=0mm,     theorem={Algebra}{texercise}{(Vereinfachter) Datentyp 'Liste'}{myMarker}]{}     \medskip               \begin{tabular}{llll}      \textbf{algebra}  &  $list_1$  &  &  \\      \textbf{sorts}    & \multicolumn{3}{l}{$list$, $elem$ \{$bool$ ist im folgenden immer implizit dabei\}}  \\      \textbf{ops}      &  $empty$   &  $:$      &  $\to list$   \\                        &  $first$   &  $:list$  &  $\to elem$   \\                        &  $append$    &  $:list$  &  $\to list$   \\                        &  $concat$    &  $:list \times elem$  &  $\to list$   \\                        &  $isempty$    &  $:list \times list$  &  $\to bool$   \\     \textbf{sets}      &  $list$  & \multicolumn{2}{l}{$= \{ <a_1,\dots,a_n> \mid n \ge 0, a_i \in elem$\}}\\     \textbf{functions} & & & \\                       &   $empty$ & \multicolumn{2}{l}{ $ = \Diamond$}\\                       &   \multicolumn{3}{l}{                          \begin{equation*}                          $first(a_1 \dots a_n) =$                            \begin{cases}                              $a_1$ & \text{falls $n>0$} \\                              undefiniert & \text{sonst}                            \end{cases}                          \end{equation*}}  \\     \textbf{end} $list_1$ & & & \\          \end{tabular}     \end{tcolorbox}     \end{document}      Here is the error message:               ERROR: Missing $ inserted.          --- TeX said ---     <inserted text>                  $     l.36                      \end{equation*}}                                             \\     --- HELP ---     TeX probably found a command that can be used only in math mode when     it wasn't in math mode....      And here is the result: ![MWE result](http://i.stack.imgur.com/ZLPJF.png)


title: Aligning Summations Over Differing Numbers of Sets

text: I'm trying to align a set of constraints for a linear program formulation. The issue I'm having is that some of the summations are over two (or more) sets, while others are only over one. This makes it difficult to get the alignment to look good regardless of where I place the '&' align markers. I'm currently using the align environment and the amsmath package. Here's an MWE:               \documentclass{article}     \usepackage{amsmath}          \begin{document}     subject to \\     \begin{align}         & \displaystyle \sum_{j\in P, k\in K}y_{ijkw} = \sum_{a\in A}x_{aiw} && \forall i\in P, w\in S\\         & \displaystyle \sum_{i\in P, k\in K}y_{ijkw} = \sum_{l\in P, k\in K}y_{jlkw} && \forall j\in P, w\in S\\         & \displaystyle \sum_{i\in P, k\in K}y_{iukw} \geq U \\         & \displaystyle \sum_{i\in P}x_{aiw} = area_{a} && \forall a\in A \\         & \displaystyle \sum_{i\in P,  w\in S, k\in K}w_{ijkw}y_{ijkw} \geq 0.7Area_w && \forall j\in P\\         \notag     \end{align}          \end{document}      Is there an environment, or something within align, I could use to make this look better? ![enter image description here](http://i.stack.imgur.com/NBaiq.png)


title: How do I create a McKelvey resource classification diagram using tikz?

text: How do I create a McKelvey resource classification diagram as shown below using TikZ?   ![McKelvey resource classification diagram](http://i.stack.imgur.com/F9xXD.png)


title: Why can't I get a D with stroke?

text: The Comprehensive Latex Symbol list tells me that I can't get `Đ` with `OT1` using the command `\DJ`, and that I need `T1` font encoding. When I use `[T1]{fontenc}` in the preamble, this doesn't work either. So how do I get `Đ`?


title: No citations/bibliography processed/produced when using \include

text: I use TextMate 2 to write my LaTeX documents. I've noticed that when I use `\include` to add chapters, my citations don't process, whereas when I use `\input`, they do. I would like my document to have page breaks at the chapters, thus I prefer to use `\include`. (The `\includeonly` command is also a very nice benefit.) I compiled my document (cmd R) and noticed no `.bbl` was created. This is despite the fact that TextMate (with `latexmk` automatically runs LaTex and Biblatex multiple times for each compiling). I ran Biblatex independently. A `.bbl` for the main document was created, but was apparently empty, as when I compiled the document again the citations in the document did not appear, and there was no bibliography. I changed one of the chapters to `\input` and compiled, and the citations were processed and a bibliography (for those citations in that chapter only) was produced. Am I doing something wrong? Why doesn't bibliographic material get produced with `\include`? If I can't create a bibliography using `\include`, what is the easiest way to create page breaks for chapters using `\input`? I assume it would be to put `\pagebreak` before each `\input` command.


title: Preventing the "end square" of proof environment to be alone on a newpage after an enumeration

text: I have something like (with the packages amsthm and document class book):               \begin{proof}       blabla       \begin{itemize}       \item blabla       \item blabla       \end{itemize}       \end{proof}      The problem is, that ends on the bottom on a page and the square marking the end of the proof is alone on the next page. How can I avoid such behavior?


title: Can citations generated with biblatex be referenced in another document?

text: I have created a CV where I use the `biblatex` package in order to create multiple bibliographic lists containing my publications sorted into "articles", "inproceedings", etc. Now I want to create another document (an application) where I cite some of these articles. How can I do this without hard-coding the reference numbers from my CV? I am aware of the package `xcite` (which is similar to the xr-package), but I don't get it to work (probably because of the use of the `biblatex` package which seems create a non-standard `.aux`-file). Here is a small working example of what I want to achieve: In CV.tex :               \begin{filecontents}{CV_bib.bib}     @article{Einstein1935,     AUTHOR    = {Albert Einstein},     TITLE     = {Can quantum-mechanical description of physical reality be considered complete?},     JOURNAL = {Physical review},     YEAR      = {1935}     }     @unpublished{Einstein1913,     AUTHOR    = {Albert Einstein and Michele Besso},     TITLE     = {Motion of the perihelion of Mercury},     YEAR = {1913}     }     \end{filecontents}          \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[backend=biber,style=numeric-comp,defernumbers]{biblatex}     \addbibresource{CV_bib.bib}          \begin{document}     Some citations: \cite{Einstein1935}, \cite{Einstein1913}.          \textbf{Submitted for review}     \printbibliography[type=unpublished, heading=none]     \textbf{Journal Publications}     \printbibliography[type=article, heading=none]     \end{document}      In application.tex :               \documentclass[11pt]{article}     \usepackage{xcite}     \externalcitedocument{CV}          \title{Application}     \date{}          \begin{document}     \maketitle          As you can see in \cite{Einstein1913} we did....          \end{document}          As you can see I just want to get the correct citation number without printing the bibliography.


title: Glossaries not displaying list

text: \documentclass[a4paper,11pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[italian,english]{babel}     \usepackage[T1]{fontenc}     \usepackage[unicode,colorlinks=true]{hyperref}      \usepackage[acronym]{glossaries}      \usepackage{lipsum}               \newacronym{svm}{svm}{support vector machine}          \makeglossaries          \begin{document}          \gls{svm}               \printglossaries          \end{document}      It's the firs time I'm using `glossaries` and I manage to get it working but it does not print the list of acronyms. I'm using kile and if I compile using Makeindex it says that there is no .idx file. What am I doing wrong?


title: How to format xml?

text: Hi I use the following LaTeX to ouput xml format data, however, there is no space before each line.                \documentclass{minimal}      \usepackage{etex},      \begin{document}      \medskip      {\small\noindent      \fbox{\begin{minipage}{6cm}      <invoke operation="a3". . .>\\      \hspace{3mm}<Handler>\\      \ \ \ \ \ <operation="...." . . .>\\      \ \ <Handler>\\      </invoke>      \end{minipage}}      }      \medskip      \end{document}      The output is below: ![enter image description here](http://i.stack.imgur.com/pKWTj.png) However, I wish to output the format like this as there is some space align each line. ![enter image description here](http://i.stack.imgur.com/bVRfN.png) Can someone help me?


title: a wider \Downarrow

text: I want to write a wider `\Downarrow`, I couldn't find one in any package I know, so I tried with:               \documentclass[11pt,a4paper]{book}         \usepackage{amsmath}          \begin{document}     \begin{equation}     \Big\Downarrow     %\Large\Downarrow     \end{equation}     \end{document}      but it seems that it only gets longer, I want it wider: how can I do that? **Edit** : to be clearer I add an image: ![enter image description here](http://i.stack.imgur.com/UJaIq.jpg) on the left: what I have on the right: what I want.


title: How to use \usepackage{garamond} with Classic Thesis?

text: I've been working with `classicthesis` for a few weeks now for my thesis and I would like to use the following package instead of the Palatino font: `\usepackage{garamond}` You certainly know that, in order to use it, you have to write this piece of code before writing anything in the body, just after \begin{document}: `\garamond` It works with a simple test made with the article class (or even book), but it does not work with Classicthesis. Therefore, here is my question: Where do I have to put `\usepackage{garamond}` in the preamble? Do I have to change directly `classicthesis.sty`? This is the code of my preamble :               % book example for classicthesis.sty     \documentclass[11pt,a4paper,footinclude=true,headinclude=true]{scrbook} % KOMA-Script book     \usepackage[T1]{fontenc}        \usepackage[applemac]{inputenc}         \usepackage[frenchb]{babel}     \usepackage{setspace}      \usepackage{hyperref}      \usepackage[tight,french]{minitoc}     \usepackage{apacite}     \usepackage{lipsum}     \usepackage[parts,pdfspacing,dottedtoc,eulerchapternumbers]{../classicthesis} % ,manychapters     %\usepackage[osf]{libertine}     \usepackage{ebgaramond}     \FrenchFootnotes     \usepackage{amsthm}     \usepackage{lineno}     \setcounter{tocdepth}{3}     \setcounter{secnumdepth}{3}     \AtBeginDocument{\renewcommand{\thepart}{\Roman{part}}}     \frontmatter     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \def\ptctitle{Table}     \def\mtctitle{Table}     \def\stctitle{Table}     \setlength{\mtcindent}{0pt}     \renewcommand{\mtifont}{\normalsize\scshape\lsstyle}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          %%%%%%%%%%%%%%%%%%%%%%%modifie la taille des numéros de chapitres%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \ifthenelse{\boolean{@eulerchapternumbers}}% font for the chapter numbers         {\newcommand\mychapterNumber{\fontencoding{U}\fontfamily{eur}\fontseries{b}\fontsize{28}{29}\selectfont}}%         {\newcommand\mychapterNumber{\fontencoding{T1}\fontfamily{pplj}\fontsize{25}{26}\selectfont}}          \ifthenelse{\boolean{@linedheaders}}%         {%         \titleformat{\chapter}[block]%             {\relax}{\titlerule\vspace*{.9\baselineskip}\\\raggedleft{\color{halfgray}\mychapterNumber\thechapter}}{1.2em}%             {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%         }{%         \titleformat{\chapter}[block]%             {\relax}{{\color{halfgray}\mychapterNumber\thechapter}}{1.2em}%             {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%         }     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{document}          %   \pagestyle{scrheadings}     %   \manualmark     %   \markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}                                   \pagestyle{scrheadings}                         \tableofcontents


title: How to make LaTeX properly hyphenate a word followed or preceded by a triple dash?

text: I'm using memoir class to write a novel. As it is widely known, writer comments inside novel characters' dialogues are usually enclosed between long dashes which in turn are written as a triple dash in LaTeX. However I'm experiencing trouble when those long dashes (which always follow or precede a word with no space between) are near a linebreak: breaking word is not hyphenated most of the time and thus the line exceed the break margin. How can this be fixed?


title: Compilation error after texlive update

text: I used to make animated pictures using `pstricks` and the `beamer` overlay syntax (eg. using `\only<2>{<some pstricks code>}`) with the `standalone` class. Here a MWE which did the work:               \documentclass[beamer,pstricks,preview=true]{standalone}          \standaloneenv{{pspicture}}          \psset{unit=2cm}     \begin{document}     \begin{standaloneframe}       \begin{pspicture}[showgrid=bottom](-5,-5)(5,5)         \psdot(0,0)         \only<2>{\psdot(1,1)}       \end{pspicture}     \end{standaloneframe}     \end{document}      This MWE does compile with texlive2013 (iso-version) with `latex -> dvips -> ps2pdf`: a pdf with two pages and just the pspictures environment correctly croped. HOWEVER it does not compile with a fully updated texlive2013 distribution, the conversion from ps to pdf fails with the following message:               Error: /typecheck in --div--     Operand stack:             1   1   0.0   0.0   a   65781.8          Execution stack:             %interp_exit   .runexec2   --nostringval--   --nostringval--        --nostringval--   2   %stopped_push   --nostringval--   --nostringval--        --nostringval--   false   1   %stopped_push   1910   1   3   %oparray_pop        1909   1   3   %oparray_pop   1893   1   3   %oparray_pop   1787   1   3        %oparray_pop   --nostringval--   %errorexec_pop   .runexec2        --nostringval--   --nostringval--   --nostringval--   2   %stopped_push        --nostringval--   --nostringval--   --nostringval--   --nostringval--   4        --nostringval--   %repeat_continue   --nostringval--          Dictionary stack:             --dict:1168/1684(ro)(G)--   --dict:0/20(G)--   --dict:127/200(L)--        --dict:173/300(L)--          Current allocation mode is local          Last OS error: 2          Current file position is 101382          GPL Ghostscript 9.05: Unrecoverable error, exit code 1      This code does compile by removing the `preview` package but the result is not what is expected. I also tried to active `preview` with the option of the `standalone` package but this is also without effect. Does someone know how to resolve this problem, or how to modify the MWE so that it compiles and give the right output ?


title: Caption label font: will sc and bf conflict with each other?

text: I want both bold and small capital effect for my table caption label. Could anybody tell me what's wrong with my code? Why doesn't it work? Thanks               \documentclass{beamer}     \mode<presentation> {     \usetheme{CambridgeUS}     }          \usepackage[T1]{fontenc}     \usepackage{caption}     \captionsetup[table]{labelfont={scriptsize,bf,sc},textfont={it,scriptsize}}          \begin{document}          \begin{frame}[t]     \frametitle{Tables Testing}     \begin{table}[htdp]     \caption{default}     \begin{center}     \begin{tabular}{|cc|}     \hline     column A & column B \\ \hline     line1 & line2 \\ \hline     \end{tabular}     \end{center}     \label{default}     \end{table}%     \end{frame}          \end{document}


title: Help with alignat environment

text: \documentclass{article}     \usepackage{amsmath}     \begin{document}     \begin{alignat*}{3}         &\text{Case 1: } s^*\leq a&\quad &\hphantom{\leq} 2\beta \leq& 2a\alpha-4\lambda-\tau &\Rightarrow s^* = \frac{2\beta+4\lambda+\tau}{2\alpha}\\         &\text{Case 2: } a < s^* \leq b&\quad 2a\alpha-4\lambda+\tau &\leq 2\beta \leq& 2b\alpha-4\lambda+\tau &\Rightarrow s^*=\frac{2\beta+4\lambda-\tau}{2\alpha}\\         &\text{Case 3: } b < s^* \leq c&\quad 2b\alpha-2\lambda+\tau &\leq 2\beta \leq& 2c\alpha-2\lambda+\tau &\Rightarrow s^* = \frac{2\beta+2\lambda-\tau}{2\alpha}\\         &\text{Case 4: } c < s^* \leq d&\quad 2c\alpha+\tau &\leq 2\beta \leq& 2d\alpha+\tau &\Rightarrow s^* = \frac{2\beta-\tau}{2\alpha}\\         &\text{Case 5: } d < s^* \leq e&\quad 2d\alpha+2\lambda+\tau &\leq 2\beta \leq& 2e\alpha+2\lambda+\tau & \Rightarrow s^* = \frac{2\beta-2\lambda-\tau}{2\alpha}\\         &\text{Case 6: } e < s^*&\quad 2e\alpha+4\lambda+\tau &\leq 2\beta \hphantom{\leq}& &\Rightarrow s^* = \frac{2\beta-4\lambda-\tau}{2\alpha}     \end{alignat*}     \end{document}      The above code results in the PDF: ![PDF output](http://i.stack.imgur.com/F0gp8.png) Everything is right except the 4th line. Why is the `2d\alpha+\tau` aligning right? How can I get it to align immediately with `\leq`?


title: How to draw a bar (a filled rectangle of a very small height, just like a node of shape "line")?

text: My current picture of a Petri net is ![below](https://dl.dropboxusercontent.com/u/444947/posts/tall_rectangles_for_tex_stackexchange.png) The problem: the 'bars' (in grey) are too tall, although `minimum height=0.1mm` (seems doesn't have any effect). **Is it possible to make these grey rectangles even thinner?** * * * The code is (no need to read the whole, just look into two comments):               \documentclass[11pt]{article}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows,automata,positioning,calc,patterns,petri}          \begin{document}     \begin{tikzpicture}[node distance=1.3cm,>=stealth',bend angle=45,auto]          \tikzstyle{place}=[circle,thick,draw=blue!75,fill=blue!20,minimum size=6mm]     \tikzstyle{red place}=[place,draw=red!75,fill=red!20]     \tikzstyle{transition}=[rectangle,  % <------Can we make them thinner?               thick,                    draw=black!75,               fill=black!25,               minimum height=0.1mm,     %<------------------ this doesn't help               minimum width=8mm,               rounded corners]          \tikzstyle{every label}=[red]          \node [place,tokens=1] (start)                    {$start$};     \node [transition] (start_to_start_q0) [below left of=start] {};     \node [transition] (start_to_q0_ok) [below right of=start] {};          \node [place]          (q0)     [below of=start_to_start_q0]  {$q_0$};     \node [place]          (ok)     [below of=start_to_q0_ok]     {$ok$};          \node [place] (q) [below left of=q0]             {$q$};     \node [transition] (from_q_ok) [below right of=q] {};          \node [place] (qsa) [below left of=from_q_ok]           {$q_{a!!}$};     \node [place] (a) [right of=qsa]                    {$a$};     \node [transition] (from_qsa_a) [below right of=qsa] {};          \node [place] (p) [right of=a]                    {$p$};     \node [transition] (from_a_p) [below right of=a] {};          \node [place] (qend) [below of=from_qsa_a]             {$q'$};          \node [place] (pra) [below of=from_a_p]             {$p_{a??}$};     \node [transition] (from_ok_pra) [right of=pra] {};     \node [place] (pend) [right of=from_ok_pra]             {$p'$};          \path (start_to_start_q0)       edge [pre,bend right]                (start)       edge [post]                          (start)       edge [post]                          (q0);          \path (start_to_q0_ok)       edge [pre]                           (start)       edge [post]                          (q0)       edge [post]                          (ok);          \path (from_q_ok)       edge [pre]                          (q)       edge [pre]                          (ok)       edge [post]                         (qsa)       edge [post]                         (a);          \path (from_qsa_a)       edge [pre]                          (qsa)       edge [pre]                          (a)       edge [post]                         (qend)       edge [post]                         (ok);          \path (from_a_p)       edge [pre]                          (a)       edge [pre]                          (p)       edge [post]                         (pra)       edge [post]                         (a);          \path (from_ok_pra)       edge [pre]                          (ok)       edge [pre]                          (pra)       edge [post]                         (ok)       edge [post]                         (pend);              \end{tikzpicture}          \end{document}


title: How can I compute the distance between two coordinates in TikZ?

text: Given two points (defined, for instance using nodes), I want to compute the distance between them.   1. Is there some build in functionality in `tikz` to do this?   2. If not, how can it be done using the mathematical engine? The application I have in mind is to draw an circular arc centered at `(a)` and passing through some second point `(b)`, where only `(a)` and `(b)` are known.


title: Flexible rule length in titlesec

text: I'm trying to get a rule just after the `label` of a chapter. (i.e., between "chapter 1" and "This is the chapter 1 title"). So far, I've managed to do this:               \titleformat{\chapter}[display]%     {\normalfont\filcenter}%     {\scshape\Huge \chaptertitlename{} \thechapter{} \\[2.75pt] {\titlerule[1pt]} \vspace*{-1\baselineskip}}%     {15pt}%     {\LARGE\bfseries}      MWE:               \documentclass{report}          \usepackage{mathptmx} % For the drop cap     \usepackage[showframe]{geometry} %Just to show the frame     \usepackage{lettrine} %For the drop cap          %% Choose one option: titlesec or sectsty         \usepackage{titlesec}         \titleformat{\chapter}[display]%         {\normalfont\filcenter}%         {\scshape\Huge \chaptertitlename{} \thechapter{} \\[2.75pt] {\titlerule[1pt]} \vspace*{-1\baselineskip}}%         {15pt}%         {\LARGE\bfseries}              %\usepackage{sectsty}         %\chapternumberfont{\centering\sc\Huge\underline}         %\chaptertitlefont{\centering\LARGE}          \begin{document}          \chapter{Introduction}     \label{chap:Intro}               \lettrine[lines=3]{S}{ustained} bipedal locomotion is one of the main characteristics that separates the human being from other primates.  For millennia this has marked a difference not only in the way \textit{Homo Sapiens} moves, but also has played a fundamental part in the evolution and subsequent development of human beings.     \end{document}      ![enter image description here](http://i.stack.imgur.com/cs6qB.jpg) but what I want it to look like is this: ![enter image description here](http://i.stack.imgur.com/N23eG.jpg) I found a question somewhat related: Add small line in \section title, but it has a minor inconvenient: it has a fixed length. I want the rule to be set accordingly to the label width. I'm also aware that I could achieve Fig.1 results by using the `sectsty` package (that's how I got the picture in the first place), but I want to be able to edit the chapter title of my bibliography so I can set in the same format as the rest of the chapter labels in the document... and I think that is only possible with `titlesec` (`sectsty` does not deal with local definitions, only global... I think) There is also a possibility to use both packages (`sectsty` to set the global options and then just use `titesec` for the last bibliography part, but I'm not so sure about this one).


title: How to redefine \label command in align environment

text: I have a problem with the **redefinition of \label** inside of the **align environment**. The goal is to allow a different behavior of the label command inside of the align environment than outside of it (e.g. for figures and section). This example does not make much sense, but should show the unexpected behavior of the label command which seems to be overwriten by some internal commands of the align environment. I would expect, that the text _REPLACED LABEL: eq:three_ is printed after the formular and the reference below goes wrong (because of the missing 'real' label), but instead of this the label is handled as usual.               \documentclass{article}     \usepackage{amsmath}          %%% additional commands (for testing)     \newcommand{\mytext}{\textbf{MY TEXT}}     \newcommand{\replacedtext}{\textit{REPLACED TEXT}}     \newcommand{\replacedlabel}[1]{\textbf{REPLACED LABEL: #1}}          %%% replacement of align environment     \let\alignoriginal\align     \let\endalignoriginal\endalign     \renewenvironment{align}{       \begingroup       \let\mytext\replacedtext       \let\label\replacedlabel       \alignoriginal       }{       \endalignoriginal       \endgroup}          %%% document     \begin{document}          \section{Section 1}         \replacedlabel{sec:one}     Just for your information: this is \mytext          \begin{align}       \mytext \\ %%% just to show that mytext is replaced       f(x) &= x^2        \label{eq:three} \\ %%% this label should be replaced       g(x) &= x^3        \replacedlabel{eq:four} %%% this should be the behavior     \end{align}          Take a look at equation \ref{eq:three} and \ref{eq:four} and on \mytext.          \end{document}      I'd like to replace the **\label** command by the **\replacedlabel** command so that the first formular (2) has the same behavior as the second one (3). This seems to be a general problem of this command in combination with the align environment since other replacements work. I hope someone can help me (or even tell me that this is not possible). **UPDATE** Okay, thank you a lot. That was the missing puzzle piece. In fact, I want to print out the labels for debugging purposes in a specific way (e.g. as shown below).               \documentclass{article}     \usepackage{amsmath}     \usepackage{color}          \makeatletter          \let\labeloriginal\label     \renewcommand{\label}[1]{\labeloriginal{#1}\colorbox{red}{\scriptsize{\texttt{#1}}}\newline}     \newcommand{\eqlabel}[1]{\labeloriginal{#1}\intertext{\colorbox{red}{\scriptsize{\texttt{#1}}}}\nonumber}          \def\label@in@display#1{%           \ifx\df@label\@empty\else           \@amsmath@err{Multiple \string\label's:               label '\df@label' will be lost}\@eha           \fi           \eqlabel{#1}%%%\gdef\df@label{#1}%     }          \makeatother          %%% document     \begin{document}          \section{Section 1}     \label{sec:one}          Just for your information:          \begin{align}       f(x) &= x^2        \label{eq:three} \\       g(x) &= x^3        \label{eq:four}     \end{align}          Take a look at equation \ref{eq:three} and \ref{eq:four}.          \end{document}      Finally, the **\ref** of the equations goes wrong (it returns the section number) but this is no problem since I use this only for debugging and not for the final version. Thanks a lot, Daniel


title: beamer shrink note pages

text: `Beamer`s `shrink` is _evil_ , but I want to use it on my `notes`-pages. (As a reminder: `shrink` automatically reduces the font-size so that all text fits on a slide). I use `\note` as a separate command after each frame (I prefer that to inline notes). Sometimes there is too much text to fit on the `notes`-page. Is there a way to `shrink` the text on the notes-page?               \documentclass[12pt]{beamer}     \setbeameroption{show only notes}     \begin{document}     \begin{frame}{A frame}     With not so much text     \end{frame}          \note{\begin{itemize}     \item Instead,     \item I     \item Have     \item A     \item Lot     \item I     \item Want     \item To     \item Say     \item And     \item Explain     \end{itemize}     }     \end{document}      Related question:   * Split beamer notes across multiple notes pages has the same problem, but a different approach, and uses inline `\note`s. If there is no way to do this, plan B may be to reduce the font size for _all_ `\note`-pages. But not for the slides themselves!


title: How to center a typewriter (ttfamily) '+'

text: I would like to draw a circular TikZ node with `+` in its center, but `font=\ttfamily` moves it up. Why? How to solve it?               \documentclass[border=3mm]{standalone}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}[         or/.style = {circle,                 minimum size=4mm,               very thick,               draw,               font=\ttfamily,          },     ]     \node[or,font=\normalfont] (a) {+};     \draw[very thin,red] (a.west)--(a.east);          \node[or] (b) at (1,0) {+};     \draw[very thin,red] (b.west)--(b.east);          \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/2v3AP.png)


title: Does oberdiek bundle actually contain ifpdf package?

text: From the installation chapter of the `ifpdf` documentation, it sounds like having the `oberdiek` package means you have the `ifpdf` package. When I use the MiKTeX 2.9 package manager, `oberdiek` shows up as installed but `ifpdf` does not show up at all. The `ifpdf` package is not listed at the CTAN page for `oberdiek`, but it is listed at the MiKTeX package page for `oberdiek`. Obviously, I trust the latter more since I'm using MiKTeX, but it sure would be reassuring if `ifpdf` showed up explicitly. Is there a way to double check its presence? This message has been posted as the following threads. http://latex- community.org/forum/viewtopic.php?f=9&t=24134


title: Create a table with three columns above two columns

text: I'm making a document header (full width of page) for which I would like three columns on the first row and two in the second. The tricky part (I think) is that I would like the bottom two cells to take up half the width of the table each (i.e. not a split of 2 then 1 cells as I've got in the example.) I've got something close to what I want, but the extra padding is being added on the left of the cell contents, I would like it on the right. Then also have the bottom row as described.               \documentclass[a4paper,10pt]{article}     \begin{document}          \begin{center}     \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}|l|l|l|}       \hline       Date: 16/12/11&Ref:  Title&Rev: No.\\       \hline       \multicolumn{2}{|l|}{Author: Author Name} & \multicolumn{1}{l|}{Client:       Company Name}\\       \hline     \end{tabular*}     \end{center}          \end{document}


title: 'Apalike' bibliography style not responding correctly

text: I had written a M.Sc thesis using Latex. After my oral defence, I tried to effects some of the correction but to my surprise the reference listing in the bibliography changed. I did not alter the bibliographystyle I had initially used. My preamble and bibliography style are given below:               \documentclass[12pt,a4paper]{report}     \usepackage{t1enc}     \usepackage{subfigure}     \usepackage[numbers,sort&compress,authoryear]{natbib}     \usepackage{t1enc}     \usepackage{fancyhdr}     \pagestyle{plain}     \usepackage{longtable}     \usepackage{geometry}     \usepackage{amsmath,amssymb,amsthm}     \usepackage{indentfirst}     \usepackage[english]{babel}     \usepackage{enumerate}               \addcontentsline{toc}{subsection}{References}     \bibliographystyle{apalike}     %\bibliographystyle{astron}     %\bibliographystyle{harvard}     %\bibliographystyle{plain} %% plain.bst     %\bibliographystyle{unsrt}     %\bibliographystyle{apsrev}     %\bibliographystyle{bbs}     %\bibliographystyle{siam}     %\bibliographystyle{chicago}     \bibliography{references}      I want a listing that will look like this: > Ying, Q., M., Mysliwiec, and M. J. Kleeman, (2004) Source apportionment of > visibility impairment using a three-dimensional source-oriented air quality > model. Environmental Science &Technology, 38: 1089-1101. * * * > Ying, Q. and Kleeman, M.J. (2006) Source contributions to the regional > distribution of secondary particulate matter in California. Atmospheric > Environment, 40: 736-752. * * * > Yuanxun, Z., Yuanmao, Z., Yingsong, W., Delu, L., Aiguo, L., Yan, L., > Guilin, Z., Yifei, Z. and Zuci, S. (2006) PIXE Characterization of PM10 and > PM2.5 Particulate Matter Collected during the Winter Season in Shanghai > City. J. Radioanal. Nucl. Chem., 267: 497–499. But the lines after the first will be indented. I am stucked now, please assist. Do I need to install a package for apalike or what is really happening.


title: What analysis of Texlive's restricted permissions model exists?

text: TH. writes, in How should one use \write18 with BibTeX: > **Background**   >  Now that TeX Live 2010 has a restricted `\write18`, I figured it'd be > reasonable to update my cv which uses the `bibunits` package to run BibTeX > for each of the `.aux` files. I'm aware of a history of discussion about using limited priorities to sandbox Tex execution, but I hadn't seen anything saying that the difficulties doing this had been solved. Is there anything like a report, ideally something along the lines of a security audit, that gives a threat model and discussion of Texlive's ability to deal with it? ### Postscript Just to be clear, this question is about understanding what risks the use of Texlive 2010 places its users at. The main thing I'm worried about --but the question is not limited to this-- is a risk comprehension issue: it's easy to grasp that with '\write18' accessing the full privilege user shell, you are letting your Tex manuscript to do anything to your machine that you can do (hopefully, that is, without admin privileges). With restricted shell, the risk is more subtle: the restricted shell can only run permitted executables, which sounds safe, but a cleverly constructed Tex style file might be able to exploit a bug a "safe" executable so your machine joins the Storm botnet. The value of a security review is that it makes the risk clear, and anything like one is a good thing.


title: How to use If with on variables

text: I want to create my own documentclass and use some variables for creating titlepages etc with it. So what's the best way/package for doing this? the class file:               \ProvidesClass{myOwnClass}[v0.1]     \newcommand{\myTitlepage}{         \begin{titlepage}             \begin{flushright}             \textsf{                 \thisAutor\\                 E-Mail: \href{mailto:\thisEmail}{\thisEmail}\\[2ex]                 \ifdefined{Phone: \thisPhone}                 \today                 }             \end{flushright}         \end{titlepage}     }      the tex-File:               \documentclass{myOwnClass}          % BEGIN_FOLD     % Titel     \newcommand{\thisTitle}{Test}     \newcommand{\thisSubTitle}{a test for \LaTeX}          % Autor     \newcommand{\thisAutor}{Some Name}     \newcommand{\thisEmail}{somename@someprovider.com}     \newcommand{\thisPhone}{}     % END_FOLD          \begin{document}     \myTitlepage     \end{document}      You see, there is no phonenumber given. If it is so I don't want to print this row, but if there is a given phone number it want to print it. What's the best way to do this? Thanks!


title: algorithm2e Command \algorithm already defined

text: I want to draw vertical line by using `\SetAlgoLined`, but LaTeX told me `Undefined control sequence`. Then I add `\usepackage{algorithm2e}` to the end of my preamble. Then it said `Command`\algorithm`already defined`.               \usepackage{graphicx}       \usepackage{xthesis}       \usepackage{xtocinc}       \usepackage{mystyle}       \usepackage{url}       \usepackage{subfigure}       \usepackage{booktabs}       \usepackage{multirow}       \usepackage[printonlyused]{acronym}       \usepackage{algorithm}      \usepackage{algorithmic}       \usepackage{float}       \usepackage{epstopdf}       \usepackage{amssymb,amsmath}       \usepackage{graphicx,epsfig}       \usepackage{multicol}       \usepackage{ifthen}       \usepackage{algorithm2e}        I'm using Window 7 + TexWorks. I have another paper works perfect with `algorithm2e` and `\SetAlgoLined`:               \usepackage{cite}      \usepackage{url}       \usepackage{ifthen}      \usepackage{multicol}       \usepackage[utf8]{inputenc}      \usepackage{graphicx}     \usepackage{graphicx,epsfig}     \usepackage{amssymb,amsmath}     \usepackage{subfigure}     \usepackage{epstopdf}     \usepackage{float}     \usepackage{algorithm2e}     \usepackage{multirow}        Just had no idea why it happened? Please help.


title: Coloring digits with the listings package

text: I'm trying to typeset some python code, and I would like integer literals to be highlighted. I've come up, after about two hours of fighting with the documentation and various other questions here and on SO, with the following:               \lstset{ %         language=Python,         otherkeywords={1, 2, 3, 4, 5, 6, 7, 8, 9, 0},         morekeywords=[2]{1, 2, 3, 4, 5, 6, 7, 8, 9, 0},         keywordstyle=[2]{\color{orange}},         keywordstyle=\color{blue}\bfseries,         stringstyle=\color{red},     }      Unfortunately, _that doesn't work_. Numbers found in strings are also highlighted, which is rather annoying, and not only are they highlighted: they are highlighted in `blue`. Numerals in regular program text, on the other hand, are rightly highlighted in `red`. Help? EDIT: Thanks Peter Grill for your very nice solution. Is there a way to not break string colouring, though? When I use you code, the `stringstyle=\color{red}` doesn't seem to work anymore (strings are just plain black). Similarly, comments can be enclosed in triple quotes in python, and if I adapt your quote to detect `"""` blocks, then the corresponding comments are not highlighted anymore.


title: Numbers in math mode when using the iwona package

text: I am using the iwona font package with the options math, light and condensed. Now what happens is that in the math mode the package does not use the numbers it has (which are used in the text) but uses the CM version of the numbers. I want the numbers in the math mode be the same as the numbers in the text (and hence with the rest of the document). Is there a package option that fixes this? If not what is the work around?


title: Using listings and subfigure together

text: I am writing a document in which code listings and diagrams appear side-by- side frequently. I am using the `listings` package for the code and `\includegraphics` for the diagrams. I want to put them both on the same figure. I tried the `subfigure` package, but it does not allow verbatim environments inside the `\subfigure{}` argument. The `fancyvrb` package has a workaround for this limitation: Using `SaveVerbatim` and `\BUseVerbatim`. However, I prefer to use only the `listing` package to get uniform styling for my code listings. The `subfigure` manual includes some voodoo definition of a `subfloat` environment which can contain minipages with verbatim content. It is a clumsy solution. I also wonder why this solution was left out of the package itself. Does anyone know a simple way to make these packages work together? Alt., is there a sub-figures package that is more verbatim-friendly?


title: How to position a node in the corner of the (current) TikZ picture?

text: I'm drawing a flowchart as a standalone TikZ picture and want to position the legend in the lower right corner of the picture. How can I reference this position or find its coordinates?


title: Removing title from header in APA template

text: I am using this template to format a paper. I am trying to remove the short title from the header but it keeps showing, even when removing the \shorttitle{}, \rightheader{}, \leftheader{} elements. I even trying setting rightheader{""} but to no avail; the short title keeps showing up. Maybe I need to modify the apa.cls file, but I don't understand any of it. Any help, please?


title: Placing \section inside makebox

text: I would like to have an image on the same line as my section header. This is the code                \makebox[\textwidth][s]{%     \section{Header}     \hfill         \makebox[0pt][l]{\includegraphics[width=0.15\textwidth]{somefigure}}%         \hfill     }      If I just write some text rather than `\section{}` it works fine, but I'm apparently not allowed to call `\section` within a `\makebox`. I get the error "Package titlesec error: Entered in horizontal mode". Any way around this?


title: MacTeX.pkg installation problem

text: I'm trying to download the MacTeX.pkg onto a Mac OS X version 10.6.8. I want to be able to use LyX and I know this is needed prior to using LyX to get use much of the program. I downloaded it and it took 2 hours to download, but when I click on it to install, it doesn't install. Please advise.


title: Writing a sequence of maps properly

text: I wanna write the sequence `$L \underset{\beta_1} \leftrightarrows \overset{ \alpha_1} M \underset{\alpha_2} \leftrightarrows \overset{ \beta_2} N$` with the map `\alpha_1` above the arrows and `\beta_1` below the arrows, same goes for `\alpha_2` and `\beta_2`. Any help please?


title: How to bold all letters of volume number?

text: I used `h-physrev` for my bibliography, but the volume numbers of articles are not bold all letters, they are bold only for the first letters, for example > S. Ono and Y. Ando, Phys. Rev. B **6**7, 104512 (2003). Could you tell me how to make bold all letters of volume field? * * * Here's an MWE that illustrates the problem:               \documentclass[12pt, a4paper, twoside]{memoir}      \usepackage{filecontents}     \begin{filecontents*}{references.bib}     @article{Ono2003,        author  = "S. Ono and Y. Ando",        title   = "Evolution of the resistivity anisotropy",        journal = "Phys. Rev. B",       year    = "2003",       volume  = "67",        pages   = "104512"      }           @article{Sakai2013,        author  ="S. Sakai and S. Blanc and M. Civelli and Y. Gallais",        title   = "Raman-Scattering Measurements",        journal = "Phys. Rev. Lett.",        year    = "2013",        volume  = "111",        pages  = "107001--107005"      }     \end{filecontents*}     \usepackage{cite}      \begin{document}      This is one of my references. \cite{Ono2003}      It is bold only for the first digit of the volume number.      And here is another one. \cite{Sakai2013}      \bibliographystyle{h-physrev}      \bibliography{references}      \end{document}


title: "Bookmarks are not allowed. See EDAS FAQ." help

text: I have read all other questions with the same tags, and none of them solves my problem. I know this is a common problem, but I am not able to find the problem. Here is the preamble of my paper.               %\usepackage[bookmarks=false]{hyperref}     %\PassOptionsToPackage{bookmarks=false}{hyperref}     %\usepackage{hyperref}     %\hypersetup{bookmarks=false}     \usepackage{amssymb,amsmath}     \usepackage{tabularx}     \usepackage[dvips]{graphicx}     \usepackage{algorithm,algorithmic}     \newtheorem{theorem}{Theorem}     \newtheorem{definition}{Definition}     \newtheorem{notation}{Notation}     \newtheorem{lemma}{Lemma}     \newtheorem{property}{Property}     \usepackage{subfigure}     \usepackage{multirow}     \usepackage{footnote}     \usepackage{arydshln}     \DeclareMathOperator*{\argmax}{arg\,max} %Defines a new operation argmax with no space     \usepackage[skip=5pt]{caption}   % Unifies the distance between caption and float     \usepackage[para]{footmisc} % Puts the captions side by side     %\usepackage[options]{nohyperref}  % This makes hyperref commands do nothing without errors     %\usepackage{url}      The thing is that I only have a url in the "thebibliography" section. This website I used to display it without using the url package, just like that:               \bibitem{abc} authors, ``Name,'' Nov. 2002. [Online]. Available: http://www.abc.com/file$\_$name.pdf      Then, as I tried the solutions in other questions, when I load the hyperref with the "bookmarks=false" option, I loaded the url package and used it with the website, and still have the problem. I would like to add that this happened with another paper that has no url or anything that might be considered as a hyperref. Could it be the Adobe? Any suggestions?


title: Problem generating bibliography using Texshop

text: I'm having serious problems generating a bibliography using `TeXshop`, and I can't for the life of me figure out how to resolve the problem. I've followed all the helpful hints I could find, and nothing!! When I compile using `bibtex` (after doing latex first), I get an error stating that it can't find my `bib` file. My `.bib` file is located in `~Library/texmf/bibtex/bib`, and I'm attempting to call it with `\bibliography{Dissertation}`. Everything I've read says to put the `bib` file in that location, and they all seem to assume that doing so makes everything run fine. So, I haven't been able to find much in the way of advice!


title: Word-for-word center-aligning of parellel lines of text in LaTeX?

text: I'd like to prepare a LaTeX document using a common format of displaying both Chinese characters and the corresponding romanization (pinyin) above each word. For an example, please refer to this page from a book. Note that, in the example picture, the romanized text above is centered between the characters below. So, as in on the first line, it says "走读生" (one word, but 3 characters) and the corresponding pinyin text "\zou3\du2\sheng3" is centered above those 3 characters.


title: Proper spacing using minipages, dealing with margins and succeding text

text: So I have this user defined function below. This gives me near optimal results. The code is supposed to make numbered subsections. Where the rest of the text is aligned below. Since these subsections usually only span over 1-3 lines, this looks good.               \documentclass[10pt,a4paper]{article}     \usepackage[hmargin=3.5cm,vmargin=2cm]{geometry}     \usepackage{lipsum}     \newcounter{problem}     \setcounter{problem}{0}          \newcounter{navn}[problem]     \renewcommand{\thenavn}{\alph{navn}}     \newcommand{\navn}{  \stepcounter{navn} \hspace{ -0.12cm} \bfseries \thenavn) }     \setcounter{navn}{0}          \newcommand{\NR}[1]     { \vspace{5mm} \begin{minipage}[t]{0.051 \textwidth}      \navn \hspace{0pt}     \end{minipage}     \begin{minipage}[t]{0.949\textwidth}     #1      \end{minipage}     \vspace{-0.3cm}     \addcontentsline{toc}{subsubsection}{\textnormal{ \thenavn })}     }          \newcommand{\UR}[1]     { \begin{minipage}[t]{0.051 \textwidth}      \hspace{0pt}     \end{minipage}     \begin{minipage}[t]{0.949\textwidth}     #1     \end{minipage}\vspace*{-0.4cm}     }     \setlength{\parindent}{0in}     \begin{document}     \NR{\lipsum[1]}          {\lipsum[5]}          \UR{\lipsum[2]}          \NR{Hello}          \[ x^2 + 3x + 4 \]          \NR{Problems}          \NR{Problems}          \lipsum[3]     \end{document}          Now, after compiling this code. One can clearly see that the text beneath the `\NR` command is coming to close to the actual text. Of course this is caused by the negative spacing inside the command. However this code is needed otherwise the spacing between the `\NR` command, and following images are far to large. Also the spacing regarding functions increases too much. One can also see in the code, that the length of the command is set by default. The spacing in my MWE between c) and e) Is perfect. I know I can use `\\\` to increase the spacing, but this gets tedious and is against the spirit of Latex. My question now is how do I properly define the spacing? More specifically:   * How do I define that the minipages, should always start at the width of the page, with a default indent?   * How do I properly define the horizontal space before and after the command? (So that it is the same as in the MWE but also fixes the normal text problem)


title: Spacing captions in a subfigure environment

text: I'm trying to use the `subfigure` environment to generate side-by-side images with captions, however because the images are different heights the captions come out at different heights. Also, they come out with absolutely no space between them, which in my view makes them unreadable. Is there a straightforward way to fix this? ![Two really ugly captions](http://i.stack.imgur.com/0INgo.png) The code I'm using to generate these subfigures/captions is               \documentclass[a4paper,12pt,oneside]{report}     \usepackage[inline]{asymptote}     \usepackage{caption}     \usepackage{subcaption}          \makeatletter     \g@addto@macro\@floatboxreset\centering     \makeatother          \begin{document}     \begin{figure}[h!tb]         \begin{subfigure}{.5\textwidth}         \raggedright         \begin{asy}             picture pic;              path p1 = (-1, 0)--(-1, 1)--(-0.5, 1.5)--(0, 2)--(.5, .7)--(0, .7)--(.5, .5)--(.5, 0)--(-1, 0);             draw(pic, p1);              draw(pic, (-1, 0)--(-1, 2)--(0.5, 2)--(0.5, 0)--(-1, 0), red+dashed);                         path p2 = shift(1, -0.5)*((-1, 0.5)--(-0.5, 1)--(0.5, 1)--(1, 0.5)--(1, -0.5)--(0.5, -1)--(-0.5, -1)--(-1, -0.5)--(-1, 0.5));               draw(pic, p2);                draw(pic, shift(1, -0.5)*((-1, -1)--(-1, 1)--(1, 1)--(1, -1)--(-1, -1)), purple+dashed);                    add(scale(50)*pic);           \end{asy}           \caption{Two polygons that intersect, along with intersecting bounding           rectangles}       \end{subfigure}%       \begin{subfigure}{.5\textwidth}           \raggedleft           \begin{asy}               picture pic;                path p1 = (-1, 0)--(-1, 1)--(-0.5, 1.5)--(0, 2)--(.5, .7)--(0, .7)--(.5, .5)--(.5, 0)--(-1, 0);               draw(pic, shift(1)*p1);               draw(pic, shift(1)*((-1, 0)--(-1, 2)--(0.5, 2)--(0.5, 0)--(-1, 0)), blue+dashed);                    path p2 = shift(-0.8, 1.8)*((-1, 0.5)--(-0.5, 1)--(0.5, 1)--(1, 0.5)--(1, -0.5)--(0.5, -1)--(-0.5, -1)--(-1, -0.5)--(-1, 0.5));               draw(pic, p2);               draw(pic, shift(-0.8, 1.8)*((-1, -1)--(-1, 1)--(1, 1)--(1, -1)--(-1, -1)), green+dashed);                    add(scale(50)*pic);           \end{asy}           \caption{Two polygons that do not intersect but with intersecting           bounding rectangles}       \end{subfigure}       \caption{The representation of some polygons and their minimum bounding       rectangles.}     \end{figure}     \end{document}


title: Comma as decimal point leading to confusion

text: I'm writing a report in a language that uses decimal commas. In some cases that clashes with commas used for punctuation, causing hard to read text, e.g.: ![](http://i.stack.imgur.com/xepxN.png) for `$x_i \in [-1,5, 1,5]$`. Is there a way to make this more readable?


title: How to vertically and horizontally centre text and images in (different) table cells?

text: I have a table which contains images in one column. I would like the first column to have text centred vertically and horizontally. I would like the second column to have text left justified and centred vertically. I would like the third column to contain a small image centred vertically and horizontally. The final two columns should both be left justified and aligned at the top of the cell. The closest I have come to this is with the code below:               \documentclass[10pt]{article}          \usepackage{tikz}     \usepackage{array}     \usepackage{booktabs}          \newcommand*{\tabbox}[4][t]{%         \vspace{#3}\parbox[#1][3.7\baselineskip]{#2}{\strut#4\strut}}               \begin{document}          \begin{tabular}{c p{2cm} c p{3cm} p{3cm}}              \toprule                  \multicolumn{1}{c}{Header 1} &                  \multicolumn{1}{c}{Header 2} &                  \multicolumn{1}{c}{Header 3} &                  \multicolumn{1}{c}{Header 4} &                  \multicolumn{1}{c}{Header 5} \\          \midrule                 Short Text &                     Slightly Longer Text &                  \tabbox[t]{3cm}{0pt}{                     \begin{tikzpicture}                       % Draw beam and end lines                       \draw (-1.5,-0.75) rectangle (1.5,0.75) ;                   \end{tikzpicture}               }                &                Some text that extends onto more than one line as there's plenty of it. &                Some text that extends onto more than one line as there's plenty of it. Some text that extends onto more than one line as there's plenty of it. \\                 Short Text  &                  Slightly Longer Text &                  \tabbox[t]{3cm}{0pt}{                     \begin{tikzpicture}                       % Draw beam and end lines                       \draw (-1.5,-0.75) rectangle (1.5,0.75) ;                   \end{tikzpicture}               }  &                Short Text & \\                 Short Text & Slightly Longer Text & Short Text & Short Text & \\                 Short Text & Slightly Longer Text & Short Text & Short Text & \\         \bottomrule      \end{tabular}          \end{document}      This is partly based on the advice here. The 'm' column specifier doesn't seem to have any effect on the first column. Also the picture is not automatically accommodated by the table cell vertically. How can I achieve the effect I want? ## Edit Here is another attempt which almost works based on the advice in this question               \documentclass[10pt]{article}          \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{array}     \usepackage{booktabs}          \begin{document}          \begin{tabular}{c p{2cm} p{3cm} p{3cm} p{3cm}}              \toprule                  \multicolumn{1}{c}{Header 1} &                  \multicolumn{1}{c}{Header 2} &                  \multicolumn{1}{c}{Header 3} &                  \multicolumn{1}{c}{Header 4} &                  \multicolumn{1}{c}{Header 5} \\          \midrule                 Short Text &                     Slightly Longer Text &                      \begin{tikzpicture}[baseline={($(current bounding box.center)+(0,-0.5ex)$)}]                       % Draw beam and end lines                       \draw (-1.5,-0.75) rectangle (1.5,0.75) ;                       \useasboundingbox (current bounding box.north west) ++(0,1ex) (current bounding box.south east) ++(0,-1ex);                   \end{tikzpicture}               &                Some text that extends onto more than one line as there's plenty of it. &                Some text that extends onto more than one line as there's plenty of it. Some text that extends onto more than one line as there's plenty of it. \\                 Short Text  &                  Slightly Longer Text &                      \begin{tikzpicture}[baseline={($(current bounding box.center)+(0,-0.5ex)$)}]                       % Draw beam and end lines                       \draw (-1.5,-0.75) rectangle (1.5,0.75) ;                       \useasboundingbox (current bounding box.north west) ++(0,1ex) (current bounding box.south east) ++(0,-1ex);                   \end{tikzpicture}                &                Short Text & \\                 Short Text & Slightly Longer Text & Short Text & Short Text & \\                 Short Text & Slightly Longer Text & Short Text & Short Text & \\         \bottomrule      \end{tabular}          \end{document}


title: Footnotes with automatic final period

text: I'm tired to always add a period at the end of the `\footnote` command. Is there the possibility that LaTeX automatically does this at the end of every footnote?


title: Problem handling coordinates in tikzpictures

text: I'm trying to draw some points with TikZ. I'm using this code:               \begin{tikzpicture}[scale=0.5]     \draw (4.0,2.4492) -- (4.8984,-4.0);     \draw (4.0,2.4492) -- (-4.0,-7.347);     \draw (4.0,2.4492) -- (-9.796,4.0);     \draw (4.8984,-4.0) -- (-4.0,-7.347);     \draw (4.8984,-4.0) -- (-9.796,4.0);     \draw (-4.0,-7.347) -- (-9.796,4.0);     \end{tikzpicture}      I'm generated this code with a Python program using OpenGL. In my render all this are done perfectly: a perfect square with diagonals, but in latex with TikZ I'm getting the first point of the square not aligned (sorry i can't post images yet). Some helps? * * * Added an image for you (with grid and origin marked): ![rendered by pdfLaTeX](http://i.stack.imgur.com/3xDWo.png)


title: How to use latexmk in Windows with MikTex and Winedt

text: I am using Windows 7 x64 with MikTex and WinEdt. I just found latexmk has the function for continuous preview when we type latex document. I would like to know if this works if I type my latex document with WinEdt? I didn't read the manual carefully, but I don't know where I shoud add this command `latexmk -pvc -pdf foo`. Also, should I try to find a way for auto saving the changed document in order to make latexmk work?


title: makeindex page entries are all underlined

text: Set up an index for a book and everything works well, except the page numbers listed for the words in the Index are all underlined---EXCEPT when I add bold face, then they look fine. Any ideas what the problem is? Thanks! Okay, here it is:               \documentclass[final, leqno]{book}     \usepackage{natbib}     \usepackage{amsmath, amssymb, amsfonts}     \usepackage{epsfig}     \usepackage{graphics}      \usepackage{color}     \usepackage{hyperref}     \usepackage{rotating}     \usepackage{lscape}          \usepackage{latexsym}     \usepackage{CJK}     \usepackage{pinyin}     \usepackage{setspace}     \usepackage[outercaption]{sidecap}     \usepackage{ccaption}     \usepackage{verbatim}     \usepackage{fancyhdr}          \usepackage{makeidx}          \renewcommand{\figurename}{Fig.}          % Different font in captions     \newcommand{\captionfonts}{\small}          \makeatletter  % Allow the use of @ in command names     \long\def\@makecaption#1#2{%       \vskip\abovecaptionskip       \sbox\@tempboxa{{\captionfonts #1: #2}}%       \ifdim \wd\@tempboxa >\hsize         {\captionfonts #1: #2\par}       \else         \hbox to\hsize{\hfil\box\@tempboxa\hfil}%       \fi       \vskip\belowcaptionskip}     \makeatother   % Cancel the effect of \makeatletter          \renewcommand{\topfraction}{0.85}     \renewcommand{\textfraction}{0.1}     \renewcommand{\floatpagefraction}{0.75}          \oddsidemargin = 0.75 in \evensidemargin = 0.75 in                    \title{------------------------------  \\     -----------------}          \author{------ --------    \\     {\small\em \copyright \ Draft date \today}}          \date{}          \makeindex               \setcounter{secnumdepth}{-1}               \begin{document}     \begin{CJK}{GB}{gbsn}          \maketitle          \thispagestyle{empty}     \begin{center}     Copyright $\copyright$ 2005 by ------ --------     \end{center}     \newpage          \addcontentsline{toc}{chapter}{Contents}     \pagenumbering{roman}          \newpage          \tableofcontents          \include{Preface}          \pagestyle{headings} \pagenumbering{arabic}          \include{PartOne}     \include{PartTwo}     \include{PartThree}               \include{Glossary}          \include{Biblo}          \cleardoublepage \addcontentsline{toc}{chapter}{Index} \printindex     %\include{index}          %\cleardoublepage\addcontentsline{toc}{Chapter}{Index} \printindex          \end{CJK}     \end{document}      The page entries for the Index are underlined when I key `\index{text}` They are bold, not underlined and look fine when I use: `\index{text|bf}` I understand that I'm supposed to place: \index{Selected text} after my index word and it should then come out like: Selected text, 34 in the Index, but when I do this & compile, the number is boldly underlined in the Yap assemblage. There must be some very simple solution, right? This version of LaTeX is fairly old---maybe eight years or so. Apologies for not being equipped to discuss this properly---I obviously don't know anything about LaTeX (my wife set it up & convinced me to use it but she's too swamped to deal with it right now), but have been using it with little problem, finding quick solutions using GOOGLE searches. Surprised I've had no luck with this one, though. The Index is the last task of this 790 page book, which looks fantastic in all other respects---LaTeX really is the way to go. Thanks, everyone, for trying to help me out.