title: \pause functionality changed in texlive2012 compared with texlive2011?

text: I recently upgraded from texlive2011 to texlive2012. The transition was relatively smooth, but today, I found one problem. In my beamer slides, under texlive2011 distribution, the following construct with `\pause` to display two figures sequentially in two pages worked. In other words, under texlive2011, the first page showed only the first figure and the shaded subtitle "(b) Error" of the second figure, but not the second figure itself, and the the second page showed both figures. But under the new texlive2012 distribution, when the first page shows both figures, and only the subtitle "(b) Error" is shown with the specified transparency. Then, the second page shows the darkened subtitle. I am wondering why the behavior of `\pause` changed. Any suggestions would be highly appreciated. Here is the actual latex construct I used (`png` files provided by `mwe` package):               \documentclass{beamer}     \usepackage{color,graphicx,subfigure}     \usepackage{mwe}          \mode<presentation>     {     \usetheme{Madrid} % this is the best so far.     }     \setbeamercovered{transparent=10}          \begin{document}     \begin{frame}     \frametitle{Pause Test}     \begin{figure}     \centering     \renewcommand{\thesubfigure}{(a)}     \subfigure[Original]{\includegraphics[width=0.45\textwidth]{example-image-a.png}}     \pause     \renewcommand{\thesubfigure}{(b)}     \subfigure[Error]{\includegraphics[width=0.45\textwidth]{example-image-b.png}}     \end{figure}     \end{frame}          \end{document}


title: Giving a `matrix` node an `alias`

text: This TeX.sx question asks if is it possible to use a TikZ matrix along a chain. The error that occurs when one tries to do so is `Package pgf Error: No shape named chain-3 is known.`, and a way to circumvent it is to manually give the matrix node that name. If the node is already used with a name it was given before making it a matrix, it can be tempting to give it an alias, like below:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{positioning,chains,matrix}     \begin{document}     \begin{tikzpicture}[start chain]       \node [on chain] {XYZ};       \node [on chain,alias=Foo] {123};       \node [on chain,matrix of nodes,alias=Bar]  (chain-3) {    A \\    B \\    C \\  };       \node [on chain] {$\alpha\beta\gamma$};       \fill (Foo) circle (2pt);       \fill (Bar) circle (2pt);     \end{tikzpicture}     \end{document}      Alas, this doesn't work, as it seems matrix nodes simply ignore the alias option -- which probably explains why they don't get the `chain-i` name when used in a chain. Is there a way to give a `matrix` `node` an `alias`? _Note: I'm using PGF version 2.10, which is rather up-to-date. If this behaviour is fixed in a later release, please let me know._ **MWE:**               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{matrix}     \begin{document}     \begin{tikzpicture}       \node [alias=Foo] (regularnode) {123};       \node [matrix of nodes,alias=Bar] (matrixnode) {A\\B\\C\\};       \fill (Foo) circle (2pt);       \fill (Bar) circle (2pt);     \end{tikzpicture}     \end{document}      This works perfectly for `Foo` (the regular node), but the last `\fill` command gives `ERROR: Package pgf Error: No shape named Bar is known.`


title: \onehalfspacing destroys tikz in listing

text: _It's a never-ending story I have to tell. I want to make some code annotations. Finally, I got my macro, but now..._ The tikz drawings in listings break in certain circumstances (near page break):                   \documentclass{article}              \usepackage{blindtext}         \usepackage{relsize}         \usepackage{setspace}         \usepackage{tikz}         \usepackage{listings}         \usetikzlibrary{decorations.pathreplacing,calc,arrows}         \newcommand*\circled[1]{\tikz[baseline=(char.base)]{%                     \node[shape=circle,draw,inner sep=2pt] (char) {#1};}}         \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};}         \newcommand*{\AddNote}[5]{%         \begin{tikzpicture}[overlay, remember picture]         \coordinate (x) at (#2,0);         \coordinate (a) at ($(x)!(#1.north)!($(x)+(0,1)$)$);         \coordinate (b) at ($(a)+(0.8,0)$);         \coordinate (c) at ($(b)+(0,#3)$);         \draw [open triangle 45-] (a) -- (b) -- (c);         \node[#5] at (c) {\bf\sffamily\smaller#4};         \end{tikzpicture}%         }              \begin{document}              \blindtext         \blindtext              \onehalfspacing         \begin{lstlisting}[escapechar=+, caption=Muh, label=lst:oop, language=c]         +\linespread{2}+         .. Core members+\tikzmark{core0}+         .. Log stream+\tikzmark{log0}+         .. +\color{black}{Lock object}\tikzmark{lock0}+              public void Method (object[] args)         {           .. Check arguments+\tikzmark{valid}+           .. Ensure authorization+\tikzmark{auth}+           .. Lock +\color{black}{object for}+ thread safety+\tikzmark{lock1}+           .. Start transaction+\tikzmark{trans1}+           .. Log start of operation+\tikzmark{log1}+           .. Perform core operation+\tikzmark{core1}+           .. Log completion of operation+\tikzmark{log2}+           .. Commit or rollback transaction+\tikzmark{trans2}+           .. Unlock +\color{black}{object}\tikzmark{lock2}+         }         \end{lstlisting}         \AddNote{valid}{8}{0}{Validation}{right}%              \AddNote{auth}{8}{0}{Authorization}{right}%              \AddNote{log0}{13.8}{-1}{Logging}{left}%         \AddNote{log1}{13.8}{3}{}{}%         \AddNote{log2}{13.8}{4}{}{}%              \AddNote{lock0}{12}{-1}{Threading}{left}%         \AddNote{lock1}{12}{2}{}{}%         \AddNote{lock2}{12}{3}{}{}%              \AddNote{trans1}{10.2}{-1}{Transaction}{above left}%         \AddNote{trans2}{10.2}{1}{}{}%         \singlespacing              \blindtext              \end{document}


title: Referencing unnumbered theorems

text: I would like to reference named (but unnumbered theorems) with a hyperlink. I have a solution which I consider at least a semi-hack:               \documentclass{amsart}     \usepackage[colorlinks=true]{hyperref}     \usepackage{amsthm}          \theoremstyle{plain}     \newtheorem*{Zorn}{Zorn's lemma}          \begin{document}     \begin{Zorn}     \hypertarget{lem:Zorn}{}     This is Zorn's lemma     \end{Zorn}          That was \hyperlink{lem:Zorn}{Zorn's lemma}.     \end{document}      However I wonder if there is a neater solution (possibly using `thmtools` or `cleveref`) that would reference back to a `\label` for the unnumbered theorem?


title: Automatically reference a set of equations in align

text: Is there a way to automatically refer to a set of equations in an `align` environment? E.G. I would like this to read "From Eqs.(1-3), we can clearly see..."               \documentclass{article}     \usepackage{amsmath}     \begin{document}\thispagestyle{empty}       \begin{align}\label{eqn:myeqs}         x =& y\\         y = \sqrt{x-q}\\         z =& y-20l       \end{align}            \begin{equation}\label{eqn:somethingelse}         E = \hbar \omega       \end{equation}            From Eqs. \ref{eqn:myeqs}, we can clearly see...     \end{document}      I've seen a way to do this manually, but I'm curious to see if there's a simple, automated way to handle this.


title: Package trackchanges : option "margins" buggy?

text: According to the documentation of trackchanges, the option "margins" should allow to write the comments in the margins :               \documentclass[12pt]{article}     \usepackage[margins]{trackchanges}     \begin{document}       Before-Text  \annote{text}{comment}     \end{document}      but it won't compile. With the option "inline" instead of "margins" it works. Did someone else encounters the problem ?


title: Indenting in enumerate (TeX/LaTeX)

text: I'm making a numbered list with the `enumerate` environment. Through the `enumitem` package I've changed the label to `[label=Caso \arabic*)]`. I have set `itemindent` to 10.5pt to align the label start with the start of the lines above. Trouble is, as in the picture below, the lines of an item besides the first one are not aligned with the first one but indented slightly to the left. How do I correct that? P.S. adding `leftmargin=0em` or any other length just moves the whole thing to the left, not solving the problem at all. ![Example of my problem](http://i.stack.imgur.com/2P9qo.png)               \ben[label=Caso \arabic*)]     \setlength{\itemindent}{10.5pt}     \item Supponiamo $F=]x,y]$ e $\dsum_{n=1}^\8\lg(F_n)<+\8$, perché se non è vero non ho niente     da dimostrare, perché devo dimostrare $\lg(F)\leq\dsum\lg(F_n)$; io so che $]x,y]$ è ricoperto     dagli $F_n$, il guaio è l'infinità, perché sto ricoprendo con intervalli non aperti un intervallo     non chiuso, ma poco male: ingrasso ogni intervallino in modo da renderlo aperto e chiudo $[x,y]$,     così ho un compatto ricoperto da aperti; per ogni $n$ dico che posso trovare $F_n^\1$ unione     finita di intervallini semiaperti tali che $F_n\sbs\pint F_n^\1$ e     $\lg(F_n^\1)\leq\lg(F_n)+\fr{\meg}{2^n}$; se:      NB preamble at https://gist.github.com/anonymous/9853413, it probably wouldn't fit due to its length.


title: centered margin text (with KOMA Script and Tikz)

text: The following MWE sets some boxed texts on the margin:               \documentclass{scrartcl}     \usepackage{tikz}     \usepackage{blindtext}     \begin{document}     \marginline{\tikz[baseline=(n.base)]\node[rounded corners,draw] (n) {200};}     \blindtext     \marginline{\tikz[baseline=(n.base)]\node[rounded corners,draw] (n) {demo};}     \blindtext     \marginline{\tikz[baseline=(n.base)]\node[rounded corners,draw] (n) {$(a,b)*(c,d)$};}     \end{document}      The margin texts are aligned to the left side. However, I would like to have the margin text centered and I'm looking for a solution.


title: Custom quote formatting

text: I have a `.cls` in which I have quite a bit of formatting... I'm trying to make a way of making my own "quote" formatting. I need to format my quotes centered, with a limited width for each line, and underlined (like a quote box). Should I do this with a custom `\begin{}` type? How do I do this?


title: Formatting multiple references containing the same author

text: I'm using natbib with a custom bibliography style and so would rather not change away from natbib if I can help it. I have one author with two citations and I just want the References section to list both citations properly under the one author. I cannot figure out how to do this as currently the output treats each citation as belonging to a different author (as a different entry). I have not provided a MWE as it does not seem necessary in this case but I can if need be.               \documentclass{article}     \usepackage{natbib}     \bibliographystyle{plainnat}      \begin{document}     Here is text \citep[p.1]{authorA}.  And then more from same author \citep[p.1]{authorB}     \clearpage     \bibliography{bib}{}     \end{document}      And the bib file:               @book{authorA,     author={Smith, John},     title={Book},     }     @book{authorB,     author={Smith, John},     title={Other Book},     }      I would like the "References" section at the end of the article to look something like this:               Smith, John. Book     ------Other Book      Instead of like this:               Smith, John. Book          Smith, John. Other Book


title: Linux Libertine: Change Numeral Set

text: I am using the Linux Libertine font for my document. The font provides different numeral sets, "normal" numbers which are all the same height, and medieval/minuscle numbers with varying height. ![enter image description here](http://i.stack.imgur.com/d5S9n.png) By default, LaTeX uses the normal numbers but I prefer the look of the medieval numbers. How can I tell LaTeX which numeral set to use? P.S.: I am using LuaLaTeX


How can I change the font size of the number in minted environment? The font can be modified with `fontsize` parameter, but the number on the left side is not affected with it. ![enter image description here](http://i.stack.imgur.com/CYT8b.png) ![enter image description here](http://i.stack.imgur.com/9X689.png) This is the code:               \documentclass[11pt,article,oneside]{memoir}          \usepackage{listings}     \usepackage{xcolor}     \usepackage{textcomp}     \usepackage[T1]{fontenc}     \usepackage{minted}          \counterwithout{section}{chapter}          \begin{document}          \begin{minted}[mathescape,                    linenos,                    numbersep=5pt,                    gobble=2,                    frame=lines,                    framesep=2mm,                    fontsize=\tiny]{csharp}       string title = "This is a Unicode π in the sky"       /*       Defined as $\pi=\lim_{n\to\infty}\frac{P_n}{d}$ where $P$ is the perimeter       of an $n$-sided regular polygon circumscribing a       circle of diameter $d$.       */       const double pi = 3.1415926535     \end{minted}          \end{document}


title: What's the best/right way to test an argument to a macro?

text: This is essentially asking how to do a `case` switch in LaTeX. I want to define a macro so that if the argument passed is one thing, then something happens, and if not then something else happens. I know ways to hack this, but they do feel very hacky. What I currently use is something like:               \newcommand{\my@testcase}{world}     \newcommand{\hello}[1]{%      \edef\my@temp{#1}%      \ifx\my@temp\my@testcase       Greetings%      \else       Hello%      \fi     }      It's a pain to nest (though I suppose one could be clever with loops) and it seems a bit overkill to have to define two macros in order to test if they expand to the same thing. So: what's the cleanest way to do this (for preference in LaTeX2e, though as I'm starting to use a bit of `expl3` then I'd be happy to learn about that too, and of course answers explaining how easy this is in other variants are equally welcome)? (Edit in response to Joseph's comment, part of the problem is that I don't know what all those words mean!): Here's my "real world" example. Using the `unicode-math` package, I've colour coded lots of letters so that the colour (and style) links to what it is. That's fine, except that sometimes a letter or number plays more than one role. So I have a command that can do a one-time switch. The problem is that these one-time switches appear to be very expensive (my document compilation time went up to about 20minutes on a new machine). So for the most common ones, I've found a way around the one-time switch - the best example being that `0` is sometimes a real number, sometimes a vector, and sometimes a function. But as far as the _document_ is concerned, it's _still_ a one-time switch: that is `\vect{0}` and `\vect{x}` both say "Do a one-time switch to typeset `0` (or `x`) as a vector", but `\vect{0}` implements the "way round" whilst `\vect{x}` does the expensive switch. So all I'm passing to the macro are characters, but I'd like it to be robust enough that if a passed it something longer then it Did The Right Thing without complaining. (Is that clearer?) Oh, and I'm using TeXLive 2010.


title: How to merge two files : djvu and PDF?

text: I have two files one f1.pdf and other is f2.djvu. I want to join them and the output file will be pdf. Already I have tried to do this by the following command. But these are not working. Is there any way to do so ?               \documentclass{article}     \usepackage{pdfpages}     \begin{document}          \includepdfmerge{f1.pdf,1}     \includepdfmerge{f2.djvu,1-553}          \end{document}


title: Making “C♯” on my resume searchable

text: As discussed on How to make the correct hash-symbol in C Sharp, I chose to render the name of the C# language on my resume as `C$^\sharp$` ![enter image description here](http://i.stack.imgur.com/e8dyX.png) I'd like to keep that typographical touch. But I'm afraid that will make it impossible for automated tools to spot “C#” in my resume. Is there a way to print C# with a sharp(♯) but have it behave as a hash(#) as far as the find and copy-paste features of a PDF reader are concerned? I'm using LuaLaTeX.


title: Looking for a template which reference paper has a title

text: I guess this question has been asked several times but still I did not find a solution :( I used the template for physical review A, `\bibliographystyle{spphys}`, which the reference paper only has author name, journal title, volume, page e.g. > XXX, Phys. Rev. Lett. XX, XX (XXXX) I need a template that could display the title of the quoted paper. e.g. > XXX, title, Phys. Rev. Lett. XX, XX (XXXX) Where can I find such a template? and/or `bst` file?


title: Inline underset spilling over to next line

text: The underset of my "xdim" command is touching characters in the line underneath. How to correct?               \documentclass[12pt]{minimal}     \usepackage{amsmath}          \newcommand{\xdim}[1]{\underset{\textrm{vec}}{\textrm{dim}}\left(#1\right)}          \begin{document}     $\xdim{f}$ consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna al ali qua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.     \end{document}      ![enter image description here](http://i.stack.imgur.com/6x7Nj.jpg)


title: Extendible \cong congruence sign

text: This question is very similar to Extendible equals sign but the solutions given there do not apply immediately. At times I woud like to clarify the nature of a mathematical congruence. So I have defined in my preamble               \newcommand*\morph[1]{\underset{\mbox{\tiny #1}}{\cong}}      So I can write things like `\morph{diff}` and `\morph{hom}` to differentiate between different congruences. But even with the `\mbox` content set to `\tiny`, the text is still wider than the congruence sign. Any ideas?


title: Testing for "emptiness" (theoretical consideration)

text: Consider the following theoretical problem: Sometimes, in LaTeX one wants to do the simple test if a macro is empty, e.g.               \def\foo{%     This is...     \ifx\baz\@empty       Sparta!     \else       a pony farm.     \fi     }      I am interested in how the definition of `\baz` is to be made in order to get optain the desired results. A few thaughts make evident that all of the three definitions               \def\baz{}     \edef\baz{\@empty}     \let\baz=\@empty      will lead to the true case. Now i would like to know from you, what you think is the best practice, or if there aren't any differences (as far as `\def\@empty{}`), or if there are cases in which one is to favor, (obviously) depending on what one is doing? (Examples would be really nice.)


title: Options and suggestions for hyperref font?

text: ## Background I am interested in finding and implementing a more aesthetically pleasing style for the hyperlinks in my document. I have read through the documentation, but I find both the colored text and the colored boxes to be distracting, particularly when there are many in a page. The "french style" monospace is not distinct enough from the `\verb+font+` that I use frequently. ## Questions   1. How can I make `hyperref` links in a specific font or font style?    2. What is a pleasing way to indicate references in a document without using too many colors?


title: How to use margins in calculations?

text: I'd like to have a rule that has for example the width of `\paperwidth-\leftmargin-\rightmargin`. I tried to use `\dimexpr`, but apparently I do something wrong, because it does not work.               \documentclass[t]{beamer}          \usepackage{geometry}     \geometry{paperwidth=250mm,paperheight=190.5mm,left=0mm,right=0mm,top=0mm,bottom=0mm}      \setbeamersize{text margin left=10mm,text margin right=60mm}            \begin{document}         \begin{frame}             \rule{\dimexpr\paperwidth-\leftmargin-\rightmargin\relax}{50mm}% 180mm = 250mm - 10mm - 60mm         \end{frame}       \end{document}      ![enter image description here](http://i.stack.imgur.com/t1RgC.png)


title: In align environment, put word at left margin and still align equations with &?

text: In an `align` environment, how can I put a word such as "Now" or "And" at the left margin and still align equations on that line and subsequent lines with `&`?


title: MathTime Pro 2 fonts with beamer - Error: Command `\lll' already defined

text: MathTime Professional 2 doesn't work with Beamer. Did anyone encounter the same problem? Below short example:               \documentclass[10pt, xcolor=dvipsnames]{beamer}     \usepackage[utf8]{inputenc}     \usepackage{polski}     \usepackage[polish]{babel}     \usepackage[T1]{fontenc}          \usepackage{graphicx}     \usepackage{amsmath}               \usefonttheme{professionalfonts}     \usepackage[subscriptcorrection]{mtpro2}     \renewcommand{\rmdefault}{ptm}               \begin{document}          \begin{frame}{Title}     Short $x+Y$       \end{frame}          \end{document}      I get an error message               ! LaTeX Error: Command `\lll' already defined.     See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.1422 ...bol{\lll}          {\mathrel}{AMSa}{"6E}      The problem disappears when switching to the other fonts. Does anybody have a suggestion how to fix it?   It might be important to add that for `\documentclass{article}` MathTime Pro 2 works with minor modification the preamble.


title: Why the LyX getting reset toolbars layout every time it starts?

text: Every time I open Lyx it doesn't restore already opened toolbars (e.g. _version control_ , _table of contents_ ), but instead shows only the default toolbars. How to fix it (make toolbars layout **permanent** )?


title: How to draw a curly bracket?

text: I'm using this code to draw curly brackets               \documentclass[]{scrartcl}     \usepackage{tikz}     \usetikzlibrary{fit,calc,positioning,decorations.pathreplacing,matrix}     \begin{document}        \begin{tikzpicture}[decoration={brace}][scale=2]         \node [draw] (A) {A};         \node [fit=(A)] (fit) {};                     \draw [decorate,line width=1pt] (fit.south west) -- (fit.north west);     \end{tikzpicture}          \end{document}       How can I make this brace span the entire height of the "A" character ?


title: How to put a regular expression ending with a dollar sign into a formula?

text: i have a simple question. I have a regular expression that i want to put into my thesis like a math formula. This is the regular expression:               ^var c[12]+Arr = new Array(.*);$      This worked doing it this way:               \[\hat{ }var c[12]+Arr = new Array(.*);\$\]      Now i wanted to change the style from "it" to "sc", because it's not really a formula, trying this:               \[\textsc{\hat{ }var c[12]+Arr = new Array(.*);\$}\]      But now i'm getting this error:               ! Missing $ inserted.      How can i solve this little problem? Thx in advance :)


title: Is there a command to ignore the following character?

text: Is there a command that ignores the following character, in the same way that `\^` puts a hat over the following character?


title: pgfplots + animate + foreach: Starting with one plot

text: I want to generate an animation where the number of lines increases one by one. It works very well but the start image always has **two** lines.               \documentclass{article}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}          \usepackage{animate}          \begin{document}          \begin{animateinline}[controls]{10}       \multiframe{5}{iIndex=0+1}{         \begin{tikzpicture}           \begin{axis}[           ymin=0,            ymax=100,            xmin=0,            xmax=10,           ]           \foreach \i in {0,1,...,\iIndex} {             \addplot[             mark=none,             domain=0:10,             ] {3*x+\i+5};             }           \end{axis}         \end{tikzpicture}       }     \end{animateinline}          \end{document}      I want that it starts with one line and not two as shown in the picture: ![enter image description here](http://i.stack.imgur.com/hqa9g.png) The **animated PDF** can be found here for a couple of days: https://dl.dropboxusercontent.com/u/1833443/lala.pdf


title: how to automatically open pdf file after dvi2ps2pdf in emacs

text: i want to let emacs automatically open pdf file after i type `C-c C-c dvi2ps2pdf RET`, so i add the following code in my `.emacs` file               ;;dvi2ps2pdf     (add-to-list 'TeX-command-list      (list "dvi2ps2pdf" " dvips %s.dvi | ps2pdf %s.ps %s.pdf | SumatraPDF %o"      'TeX-run-command nil t))      it works fine, well, until i find that it fails if the tex file, say, `foo.tex`, has `\usepackage{psfrag}` in it as follows,               % foo.tex     \documentclass{article}     \usepackage{psfrag}     \begin{document}     \[ e^x=\sum_{n=0}^{\infty}\frac{x^n}{n!}\]     \end{document}      SumatraPDF would open `foo.dvi` instead of `foo.pdf`. if i type `C-c C-n` and start all over, it works fine again, as long as i do not compile and produce a new `foo.div`. after compiling and `foo.div` is created, if i replace `%o` with `%f`, `SumatraPDF` would open `foo.ps` if i replace `%o` with `%s.pdf`, `SumatraPDF` would open two broken files `foo` and `.pdf` if i replace `SumatraPDF %o` with `start \"\" %s.pdf`, `Adobe Reader` will correctly open `foo.pdf` this is frustrating. how can i edit the code to let SumatraPDF take over everything? and how to use those substitution `%o` `%f` `%s` properly? excuse me that i'm really inexperienced, but it seems that they belong to different conventions? thanks very much! ## UPDATE * * * with @giordano's help, i tend to believe that this is a inherent problem of `SumatraPDF` (`Adobe Reader` too, i think). i think there's no problem on linux or mac. on windows, however, in `DOS` commands, i find that the following are the same, say,   * `copy foo.pdf bar.pdf`   * `copy "foo".pdf bar.pdf`   * `copy "foo.pdf" bar.pdf`   * ... other external commands such as `dvips` and `ps2pdf` do not distinguish the cases, either. SumatraPDF, however, treats `foo.pdf` or `"foo.pdf"` as one same file, and `"foo".pdf` as two separate files `foo` and `.pdf` and even opens them. i think that's why `SumatraPDF` always fails to open `%s.pdf`. it is a file name parsing flaw， if i'm right, `SumatraPDF` is not intend to open files like `.pdf` on windows system, and it should be able to detect that automatically. p.s. i also tried to manipulate the string `%s.pdf`(="foo".pdf) and tried to strip the double quotes in ways of `lisp` or `DOS` command. the quotes won't go away and i failed miserably due to inexperience. do you guys have any ideas? thanks! ## UPDATE * * * thanks to @giordano, i gave a shot on `cygwin`. (i had `cygwin` install for doc view anyway, no trouble at all.) it turns out that `SumatraPDF` works completely fine on cygwin, i.e., it accepts file names such as `"foo".pdf`. so i decided to redirect all command line calls to cygwin. i added the following to `.emacs` file (see emacswiki),                ;; Sets your shell to use cygwin's bash, if Emacs finds it's running       ;; under Windows and c:\cygwin exists. Assumes that C:\cygwin\bin is       ;; not already in your Windows Path (it generally should not be).       ;;       (let* ((cygwin-root "c:/cygwin")              (cygwin-bin (concat cygwin-root "/bin")))         (when (and (eq 'windows-nt system-type)              (file-readable-p cygwin-root))                (setq exec-path (cons cygwin-bin exec-path))           (setenv "PATH" (concat cygwin-bin ";" (getenv "PATH")))                ;; By default use the Windows HOME.           ;; Otherwise, uncomment below to set a HOME           ;;      (setenv "HOME" (concat cygwin-root "/home/eric"))                ;; NT-emacs assumes a Windows shell. Change to bash.           (setq shell-file-name "bash")           (setenv "SHELL" shell-file-name)            (setq explicit-shell-file-name shell-file-name)))      after that, `SumatraPDF` recognizes `%s.pdf` just fine. there is one problem, though. `dvi2ps` runs differntly on cygwin and cannot proceed, i put the question somewhere else. p.s. code of `SumatraPDF` has been improved to accomodate cases like `"foo".pdf`. hopefully we'll see how it work very soon.


title: why different results in (tikz graph) output while compiling same code?

text: I am trying to replicate the first basic example on graphs in the Tikz- Pgfplots manual (pg no. 258) ![enter image description here](http://i.stack.imgur.com/KaSQW.png) However, try to compile the two MWE's below one by one. In one, the pdf fails to compile (with 30 errors!) (mostly to do with some csname)               \documentclass{article}     \usepackage{comment}     \usepackage{tikz}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \usepackage{mathtools}     \newcommand{\verteq}{\rotatebox{90}{$\,\neq$}}     \newcommand{\equalto}[2]{\underset{\scriptstyle\overset{\mkern4mu\verteq}{#2}}{#1}}     \usepackage{amsmath}     \usetikzlibrary{graphs}          \begin{document}                    \tikz \graph { a -> {b, c} -> d };          \end{document}       In the MWE below, I have a strange output               \documentclass[10pt]{article}     \usepackage{tikz}     \usetikzlibrary{graphs}     \begin{document}          \tikz \graph { a -> {b, c} -> d };          \end{document}      With the following output: ![Output of example 2](http://i.stack.imgur.com/O6tOG.png) Why am I not getting the desired output in both cases. It seems that some other package is interfering in the first example. How should one go about in finding out the error in such cases?


title: LuaTeX: tex-text at 10 pt not loadable

text: I am trying to use LuaTeX with Linux Biolinum. It works fine with XeLaTeX, but when I'm running LuaLaTex, it gives me the following error: > ! Font \EU1/lmr/m/n/10=[lmroman10-regular]:mapping=tex-text at 10pt not > loadable: metric data not found or bad. This error is found in the fontenc.sty on line 100. I am using Texlive 2011 on Ubuntu 10.04, this is my example:               \documentclass[a5paper,ngerman]{article}     \usepackage[lutf8x]{luainputenc}     \usepackage{fontspec}     \setmainfont{Linux Biolinum}     \begin{document}       Text     \end{document}


title: TeXLive: meaning of sys_bin, sys_man and sys_info when using --portable

text: I'm trying to understand what the `sys_bin`, `sys_man` and `sys_info` options for TeXLive should point to. At the moment, I'm installing everything on a pen drive using the `--portable` installer option, and would like to leave nothing in the "host" computer, even when updating my installation. I'm just guessing here, but shouldn't `sys_bin` point to something along the lines of `/media/disk/bin/i386-linux`? any ideas as to how to make this less "mountpoint-dependent"? The TeXLive documentation is moot on the matter and I've had no luck searching the "normal" channels. **PS:** I understand this may well be off-topic here, I tried to tag it as much as possible, but found nothing more "uninviting" than `{texlive}` and `{installing}`... please do close if off-topic nonetheless.


title: mdframed theorems within beamerarticle script

text: I need to use framed theorem environments the way they are made in Make an Example and shaded box like in the book.   The realization with `\usepackage[framemethod=TikZ]{mdframed}` is working fine. But now, I have to implement this in a ready written script being made with `\documentclass{article}` and `\usepackage{beamerarticle}`.   The predefined theorem environments in german language `Satz`, `Beispiel` and so on are used. I already tried using `\setbeamertemplate{theorem begin}{...}` and `\setbeamertemplate{theorem end}{...}` for inserting those boxing commands for example with               \setbeamertemplate{theorem begin}{\begin{mdframed}%     [linecolor=yellow,outerlinewidth=3pt,backgroundcolor=red!10,roundcorner=15pt,%     skipabove=\baselineskip,skipbelow=\baselineskip]}%     \setbeamertemplate{theorem end}{\end{mdframed}}      but it is not working.   Are there other ways, as I do not want to rename all used environment and make new ones? I found a solution               \usepackage{etoolbox}     \BeforeBeginEnvironment{Satz}{\begin{mdframed}[linecolor=yellow,outerlinewidth=3pt,backgroundcolor=red!10,roundcorner=15pt,%     skipabove=\baselineskip,skipbelow=\baselineskip]\vspace{-0.5cm}}     \AfterEndEnvironment{Satz}{\end{mdframed}}      but others are still welcome.


title: Plotting an implicit function using pgfplots

text: What is the correct way to plot an implicit function using `pgfplots`? Consider the following example:               \documentclass{standalone}     \usepackage{pgfplots}          \pgfplotsset{compat=newest}          \begin{document}          \begin{tikzpicture}       \begin{axis}         \addplot+[mark=none] function[raw gnuplot] {           set contour base;           set cntrparam levels discrete 0.0;           unset surface;           set view map;           set isosamples 500;           splot exp(x)*cos(y)-1-x;         };       \end{axis}     \end{tikzpicture}          \end{document}      This is what the function looks like in `gnuplot`: ![expected result](http://i.stack.imgur.com/Iobkz.png) `pgfplots`, however, connects function's segments, which is unexpected: ![incorrect pgfplots result](http://i.stack.imgur.com/3YT20.png)


title: Koma Script header-footer on chapter start page

text: The `scrbook` class omits the header footer on the page where a new chapter starts. How to add them on those pages?


title: How to add acknowledgments in the title (first slide) in a beamer presentation?

text: I am making a beamer presentation, and want to include text for acknowledgments. I use the tags for the title author institute, but now I want to add more text. Is there a tage for the acknowledgements? Is there a nice way to do so? Below is my code which does not compile due to the acknowledgment text.               \documentclass{beamer}     \usetheme{Warsaw}      \setbeamertemplate{footline}[page number]     \setbeamercovered{invisible}     \setbeamertemplate{navigation symbols}{}      \usepackage{graphicx}     \logo{\includegraphics[height=1.2cm]{strathLOGO}}     \title[Short title of the talk]{Understanding Dynamic Interactions}     \author{Alexander V. Mantzaris and Desmond J. Higham}     \institute[]     {     University of Strathclyde, Glasgow. UK\\     \medskip     {\emph{alexander.mantzaris@strath.ac.uk}}     }     \date{\today}     Acknowledgement: This work was performed within the     Mathematics of Large Technological Evolving Networks     (MOLTEN) project, which is supported by the Engineering     and Physical Sciences Research Council and the Research     Councils UK Digital Economy programme, with grant ref.     EPI0160581.     \begin{document}     \begin{frame}        \titlepage        \end{frame}      Without the text for the acknowledgments, the presentation compiles. What options are available?


title: Several job titles for the same employer in moderncv

text: I was wondering how can I tweak `moderncv` to create entries for multiple job titles with the same employer. I am basically interested in mimicking approach 2 that is explained here using the classic theme if possible. Any help is appreciated. Edit: I have been experimenting, and the following is a MWE example as suggested:               \documentclass[11pt,a4paper]{moderncv}          \moderncvtheme[blue]{classic}                  \firstname{FirstName}     \familyname{LastName}          \begin{document}     \maketitle          \section{Recent Experience}          \cventry{Jan 2010 -- Current}             {Company}             {City}             {Country}             {}             {}          \cventry{Jan 2011 -- Current}         {Senior Position}         {}         {}         {}         {           Roles and responsibilities         }          \cventry{Jan 2010 -- Jan 2011}         {Associate Position}         {}         {}         {}         {           Roles and responsibilities         }     \end{document}      Please note that it requires aesthetic improvements.


title: Matrix of nodes column style inconsistency

text: For the following code:               \begin{tikzpicture}     \matrix [matrix of nodes, column 2/.style={red}]     {     8 & 1 & 6 \\     3 & 5 & 7 \\     4 & 9 & 2 \\     };     \end{tikzpicture}      This picture is created: ![TikZ matrix](http://i.stack.imgur.com/RI9fY.png) I also tried with:               \begin{tikzpicture}     \matrix [matrix of nodes, column 2/.style={rectangle,draw=black,fill=gray,minimum width=8em}]     {     8 & 1 & 6 \\     3 & 5 & 7 \\     4 & 9 & 2 \\     };     \end{tikzpicture}      The result is shown below: ![TikZ matrix, 2](http://i.stack.imgur.com/cvUuR.png) It seems that some styles like `red` and `minimum width` are applied. Why are `rectangle`, `fill` and `draw` ignored? How can I use them in `matrix of nodes`?


title: Bibliography won't be built after '-aux-directory='-command

text: I've found a solution to move some of the auxiliary files to another folder: http://docs.miktex.org/manual/texfeatures.html#auxdirectory Unfortunately, if I add that line to my PdfLaTeX line in TexStudio, the bibliography won't be created. http://texstudio.sourceforge.net/manual/current/usermanual_en.html#SECTION02 I also tried to add the line to BibTeX without any improvement. Any suggestions? Thanks so much! // The *.synctex.gz-file still remains in the original folder, can I move it to the other folder too? // I also want the bib files to be moved to that other folder


title: "Cannot find file" error when running biber

text: I'm commuting to using the new biber/biblatex system of referencing. Previously I have been using bibtex as a backend and have tried converting to biber. I'm using MikTeX 2.9 under windows xp sp3. I compiled my thesis: project name: `Thesis_1`; `backend=biber` is set in the options for `biblatex`. This runs with the expected reference and shortcut warnings. Then I run `biber Thesis_1` and get:               INFO - This is Biber 0.9.6     INFO - Logfile is 'Thesis_1.blg'     INFO - Reading 'Thesis_1.bcf'     INFO - Found 0 citekeys in bib section 0     INFO - Found 3 citekeys in bib section 1     INFO - Found 132 citekeys in bib section 0     INFO - Processing bib section 0     INFO - Looking for bibtex format file 'References/References1' for section 0     ERROR - Cannot find file 'References/References1'!     INFO - ERRORS: 1      You can see that I have my bibliography file inside a folder called `References` within the project folder and that the bib file is called `References1.bib`. The file is there of course. One possible cause may be a bug related to cross-platform compatibility. The file has been called `References/References1`, but a backslash should have been used instead for a windows path. Maybe it's not this at all, but it would be nice to have a fix.


title: MathJax - how to render equations in “title” atribute?

text: Is it possible to force MathJax to render equations that are in title attribute of img or other element ? e.g.               <img src="xx.png title =" $$ \frac {3}{4}} $$ ">      now it don't work. Page return only plain text.


title: Inkscape and XeLaTeX and pdf_tex/pdf+tex graphics

text: How XeLaTeX can be used to include pdf_tex graphics files produced from svg files including amstex code and exported with Inkscape (v48.2) with the PADF+LaTeX option? (the problem occurs independently of the pdf_tex file chosen). I use TeXShop v2.47 and MacTeX and TeX-Live 2013. A MWE:               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % !TEX TS-program = XeLaTeX        % !TEX encoding = MacOSRoman         %%%%%%%%%%%%% PREAMBLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%        \documentclass[aps,pra,12pt]{revtex4-1}        \usepackage[no-sscript]{xltxtra}         \usepackage{amssymb,amsmath,amscd,stmaryrd}     \usepackage{amsthm}     \usepackage[applemac]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern,textcomp,url}     \usepackage{color}     \usepackage{graphicx}           %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{document}     \section{Introduction}          See Figure.           \begin{figure}[ht]      \centering      \def\svgwidth{\columnwidth}      \input{figure.pdf_tex}     \end{figure}     \end{document}      I obtain the following indications when compiling the tex file:               ................     (/usr/local/texlive/2013/texmf-dist/tex/latex/stmaryrd/Ustmry.fd))     No file test.bbl.     [1]     ./test.tex:35: Missing number, treated as zero.     <to be read again>                         \aftergroup      l.35 \end{document}      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @DavidCarlisle Here is again the tex file: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               % !TEX encoding = UTF-8 Unicode     % !TEX TS-program = XeLaTeX     \documentclass[aps,pra,12pt]{revtex4-1}      \usepackage[frenchb]{babel}      %\usepackage{xltxtra}      %\usepackage{polyglossia}      %\setmainlanguage{english}      %\setotherlanguage{french}      \usepackage{amsmath,amssymb,amsmath,amscd}      \usepackage{lmodern,textcomp,url}      \usepackage{color}      \usepackage{graphicx}           %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \begin{document}     \section{Introduction}     See Figure.      \begin{figure}[ht]      \centering      \def\svgwidth{.75\columnwidth}      \input{Figure.pdf_tex}     \end{figure}     \end{document}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      It works fine. But during the compilation the following message is given (the content of the input line 26 is the \begin{document} command):               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          Package frenchb.ldf Warning: Add \usepackage{xltxtra} to the     (frenchb.ldf)                preamble of your document, on input line 26.          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      But, then, if I try to include this package in the tex file, there is a clash with the following indication:               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%           (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsb.fd))      No file test.bbl.     [1]         ./test.tex:37: Missing number, treated as zero.         <to be read again>                        \aftergroup         l.37 \end{document}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      Using the package polyglossia alone (without xltxtra and babel as well) does not work. So?


title: pgfplots: Explicitly Setting 'Line and Mark Intersection' In Plot

text: Is there a way to specify where a line intersects a 'mark' on a pgfplot? **MWE:**               \documentclass{article}      \usepackage{tikz}     \usepackage{pgfplots}     \begin{document}      \begin{figure}\begin{tikzpicture}      \begin{axis}[ enlarge x limits=0.25, enlarge y limits=0.25 ]      \addplot[mark=-, mark size={15pt}] table  {     1.00  1.0     5.00  2.0 };      \end{axis}      \end{tikzpicture} \end{figure}      \end{document}      **This produces** ![Line intersecting the center of the mark](http://i.stack.imgur.com/FH1dN.png) **What I'd Like** ![Line intersecting right and left of mark](http://i.stack.imgur.com/zbopB.png) So, in summary, is there a way to explicitly specify where a line which connects two marks on a pgfplot intersects with the mark other than at the 'center'? I'm more interested in right/left hand side intersections but any additional insight into top/bottom intersections as well as 'anywhere in between' is welcomed. **Real world application (by request):** Many examples of reaction pathway or reaction coordinate plots exist in the sciences. These usually involve plotting points on an energy graph (y-axis) vs. some pre-defined reaction coordinate (x-axis). Sometimes it is beneficial to use line marks (rather than circles or squares etc.) because text can be readily added above and/or below the lines to denote certain things like the name of the structure at that point on the graph. Lines are used to indicate the _connectivity_ of various points on the graph in a physical sense. That is, two structures (i.e. points) are indeed connected on a potential energy surface as determined via some intrinsic reaction coordinate analysis. The problem with my current working example lies with the fact that the line intersects with the 'line marks' at the center. This causes problems when inserting text above and/or below these lines. By offsetting this 'intersection' (as seen in the second figure), the problem ceases to exist while retaining the benefit of illustrating 'connectivity' between two points.


title: Tranferring Texmaker settings from Windows to Linux

text: In principle, this could turn out to be a _very_ stupid question. But, let me ask this right away: I am very happy with Windows that I am planning to shift to a Linux distribution later today. So, my beloved editor is Texmaker (no sarcasm intended, as it will soon become obvious). I have added a lot of custom completions to Texmaker. Is there anyway I can carry these things over to the Linux distribution? **Source** : Windows 7 **Target** : A Linux Distribution I'd be more specific about the distribution, if that is needed. Please feel free to ask me other relevant things in this regard.


title: newline in title on first page but not on subsequent pages

text: My title had only one word on the second line and it looked weird so I fixed it by adding `\\` in the appropriate place. Now on the odd-numbered pages where the title is at the top, it has a really long space where the newline is. How do I keep the title the way it is on the title page but change it on subsequent pages?               \documentclass[11pt]{amsart}     \title{this title had one lonely word \\but I fixed it with newline}     \author{emily}     \begin{document}     \maketitle     \newpage     \section{content goes here}     \newpage     \section{but now I have a problem on odd-numbered pages}     \end{document}


title: “Extra }, or forgotten \endgroup” error with natbib package and plos2009 bibliography style

text: I'm preparing a manuscript for PLoS one Computer and information sciences Journal, which requires me to use their own special bibliography style (`plos2009.bst`[1]) This style is generating the following error with the `natbib` package (which I need for getting author citations like "Alwan et. al. 2009 [1]")               (./test.bbl     ! Extra }, or forgotten \endgroup.     \par ...m \@noitemerr {\@@par }\fi \else {\@@par }                                                       \fi      l.22           ?      )      This is an example to test:               \documentclass[10pt]{article}     \usepackage[square,numbers,sort]{natbib} % to include \citeauthor styles     \bibliographystyle{plos2009}     \begin{document}     \section*{Introduction}     Testing a normal citation: \cite{Alwan2006}     Testing an author citation: \citet{Alwan2006}     \bibliography{test}     \end{document}      With this content on `test.bib`:               @inproceedings{Alwan2006,         Author = {Alwan, Majd and Rajendran, PJ and Kell, S and Mack, D. and Dalal, S. and Wolfe, M. and Felder, R.},         Booktitle = {ICTTA'06},         Doi = {10.1109/ICTTA.2006.1684511},         Isbn = {0-7803-9521-2},         Publisher = {IEEE},         Title = {{A Smart and Passive Floor-Vibration Based Fall Detector for Elderly}},         Year = {2006}     }      **Edit** (from comment by OP): This is what I actually am expecting "Alwan et. al. [1]" or "Alwan et. al. 2009 [1]". I need both author-style and numeric-style citations.


title: Change in the header for the handout

text: I am running into a weird problem. When I run my code in beamer mode, the logo that I use in each slide (in the right top corner) stays there and does not move. When I try to make handouts, the logo changes its position and goes to a weird place. Any thought? Help? Here is my MWE:               \documentclass [11 pt, xcolor=pdftex,x11names,table]{beamer}      %\documentclass[11 pt, handout,xcolor=pdftex,x11names,table]{beamer}     \usepackage{pgf, pgfpages, pgfplots}     \usepackage[latin1]{inputenc}     \usepackage[english]{babel}     \usepackage{color}     \usepackage{pdfpages}     \usepackage[absolute,overlay]{textpos}     \mode<presentation>     {         \usetheme{Madrid}         \usecolortheme{orchid}         \usecolortheme{whale}     }     \title[]{Hi}     \author {\Large{\emph{Me}}}     \date[\today]{\today \\ $ $ \\     \includegraphics[height=1.5cm]{logo.eps}}     \makeatletter     \def\strokeifnotempty{%     \expandafter\ifvoid\csname pgfpages@box@\the\pgf@cpn\endcsname     \let\@next=\relax     \else     \let\@next=\pgfstroke     \fi     \@next%     }     \makeatother     \mode<handout>     {       \usepackage{pgf}       \usepackage{pgfpages}     \pgfpagesdeclarelayout{2 on 1 boxed}     {       \edef\pgfpageoptionheight{\the\paperheight}        \edef\pgfpageoptionwidth{\the\paperwidth}       \edef\pgfpageoptionborder{10pt}     }     {       \pgfpagesphysicalpageoptions       {%         logical pages=2,%         physical height=\pgfpageoptionheight,%         physical width=\pgfpageoptionwidth%       }       \pgfpageslogicalpageoptions{2}       {%         border code=\pgfsetlinewidth{2pt}\strokeifnotempty,%         border shrink=\pgfpageoptionborder,%         resized width=0.85\pgfphysicalwidth,%         resized height=.5\pgfphysicalheight,%         center=\pgfpoint{0.5\pgfphysicalwidth}{.25\pgfphysicalheight}%       }%       \pgfpageslogicalpageoptions{1}       {%         border code=\pgfsetlinewidth{2pt}\strokeifnotempty,%         border shrink=\pgfpageoptionborder,%         resized width=0.85\pgfphysicalwidth,%         resized height=.5\pgfphysicalheight,%         center=\pgfpoint{.5\pgfphysicalwidth}{.75\pgfphysicalheight}%       }%       }     \IfFileExists{\jobname.aux}{       \pgfpagesuselayout{2 on 1 boxed}[letterpaper, border shrink=5mm]       \nofiles      }{}     }     \begin{document}     {     \begin{frame}     \titlepage     \end{frame}     }     \addtobeamertemplate{frametitle}{}{     \begin{textblock*}{100mm}(0.84\textwidth,0.07cm)         \includegraphics[height=0.8cm]{logo.eps}      \end{textblock*}     }     \begin{frame}         \frametitle{Hi}     HEY     \end{frame}     \begin{frame}         \frametitle{Material?}     My book                                  \end{frame}     \begin{frame}         \frametitle{Course Website}     Nothing     \end{frame}     \end{document}       I also tried to include the logo file; but .eps format is not accepted and I could not upload it... I need to add that, if you want to run it in handout mode, please make the first line comment and uncomment the second line.


title: How to align table and caption when table is centered on page

text: I haven't been able to figure out the best way to set up my tables. These are the features that they are supposed to have:   1. Should be centered on page   2. Caption should be "justified" and aligned with left border of the table. If caption spans over two line, then line should break at right border of the table.   3. Additional comments should stand between caption and top border of table, and should as well be "justified" and aligned with left border of the table. If the additional comments contain a second line, it should break at the right border of the table. To clarify I included two examples in the following code. The first is exactly what my tables are supposed to look like. It works only, because the table is so wide, that there are no other possibilities for alignments and line breaks. The second table just does not follow rule #2 and #3 as stated above. Does anyone have an idea how to solve these two problems? Thanks a lot.               \documentclass[captions=tableheading]{scrbook}          \usepackage{siunitx}     \usepackage{booktabs}     \usepackage[figuresright]{rotating}      \usepackage[format=hang,justification=justified,singlelinecheck=false]{caption}[2004/07/16]     \usepackage{blindtext}     \usepackage{pdflscape}     \newcommand{\commenttable}[1]{\par{\itshape #1\par}\vskip 2mm}          \begin{document}          \begin{landscape}     \begin{table}     \caption{A table caption with a really fancy and ridiculously long description of what could and also should be said in just a few words}     \commenttable{Hello. \blindtext.}     \centering     \begin{tabular}{SSSSSSSSSSSSS}     \toprule     {column}&{column}&{column}&{column}&{column}&{column}&{column}&{column}&{column}&{column}&{column}&{column}&{column}\\     \midrule     12.34   &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34&12.34&12.34  \\     12.34   &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34&12.34&12.34  \\     \bottomrule     \end{tabular}     \end{table}     \end{landscape}          \begin{landscape}     \begin{table}     \caption{A table caption with a really fancy and ridiculously long description of what could and also should be said in just a few words}     \commenttable{Hello. \blindtext.}     \centering     \begin{tabular}{SSSSSSSSSS}     \toprule     {column}&{column}&{column}&{column}&{column}&{column}&{column}&{column}&{column}&{column}\\     \midrule     12.34   &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  \\     12.34   &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  &12.34  \\     \bottomrule     \end{tabular}     \end{table}     \end{landscape}          \end{document}


title: Texmaker generated pdf file not showing the position of cursor

text: I am compiling LaTeX files with Texmaker on Ubuntu 12.04 system. When I run pdflatex and then view the pdf file (internal), it does not show me the exact place where I am editing on Texmaker i.e. the generated pdf file does not show me the position of the cursor. But some days before it was working fine. I don't know what causes this problem. I already tried uninstalling and then reinstalling, I did update and upgrade too. But the problem still persists.


title: TikZ External and tikzscale: Figure is regenerated every time

text: I am using `tikzscale` with `tikz external` library in the `list and make` mode. Before using `tikzscale`, if I issued `make -f main.makefile` command, only the figures that were not present would be generated. But since I have started using `tikzscale`, all the figures are regenerated even if they exist already. This takes a lot of time for compilation of a long document. Please go through the MWE and let me know if I have set up everything correctly. The testing sequence on a `linux` machine is:               pdflatex main.tex     make -f main.makefile     ls -l main-figure0.pdf     make -f main.makefile     ls -l main-figure0.pdf      One can see that the figure is generated again from the timestamp. **MWE**               \documentclass{report}     \usepackage[showframe=true]{geometry}     \usepackage{filecontents,tikz}     \usetikzlibrary{external}     \tikzexternalize[mode=list and make]     %Comment out to external work properly without tikzscale     \usepackage{tikzscale}          \begin{filecontents}{fig.tikz}        \begin{tikzpicture}           \draw (0,0) rectangle (1,1);        \end{tikzpicture}     \end{filecontents}          \begin{document}       \begin{figure}         \includegraphics[width=\textwidth]{fig.tikz}         %Uncomment to see externalize work properly without tikzscale         %\input{fig.tikz}         \caption{Test figure}       \end{figure}     \end{document}


title: Correct way of test blank element in array

text: I'm trying to test whether an element in a defined list (array) is "empty." I tried using the `\empty` macro, or putting white spaces inside the quote, but nothing seems to work. I'm testing the emptiness of each element using the `etoolbox` `\ifboolexpr` construct with `test` (also, I tested `\notblank` with the same results), although I'm not sure if the fault lies in the conditional evaluation or in the `\pgfmathparse` that retrieves the element from the array. Thus, what is the correct way of checking if the element is empty and branching into the `else` part of the conditional.               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{etoolbox}          \pagestyle{empty}          \begin{document}     \begin{tikzpicture}     \def\n{5}     \def\weights{{"1","2","3","4","","n"}}     \foreach \i [count=\c] in {0,...,\n}{       \pgfmathparse{\weights[\i]} \let\label\pgfmathresult       \ifboolexpr{ not test{\ifstrempty{\label}} }{%         \node at (0,\c) {$l_{\label}$};       }{ %         \node at (0,\c) {empty};       }     }     \end{tikzpicture}     \end{document}


title: Legal concerns in using/modifying/releasing codes

text: In order to meet my needs, I copied 2+62 lines from a `.sty` file available from the Internet, and removed 10 lines, and added 12+18 lines of codes, resulting in a total of 84 lines in a new `.sty` file. My question is: What are the legal concerns in the following cases?   1. I only use these codes for my use. I use them to produce study notes and I plan make it free (freedom) so that everyone get the notes. No one will get those 84 lines.   2. I release those 84 lines in some way. (According to the author of the original `.sty` file, I may use and modify the code, if I do not make a profit.) I wrote another small file. It is completely written by me. If I want to release it somewhere in the Internet, how can I do it? I do not understand the meaning of licensing methods. I would be glad if anyone could provide me with some relevant information.


title: Change font used by moderncv

text: Using **moderncv** , is it possible to change the font? I tried to load the Palatino font with:               \usepackage{mathpazo}      with no avail. I'm using Tex Live 2011, and I compile the tex file with `pdflatex`.


title: center image when's bigger than textwidth

text: I have an image that is larger than the line width and I want to center it and I also want to have a colored frame around. I can get this two things done one at the time, but don't know how to achieve both! for the colored square I use this:               \newcommand{\mybox}[2]{{\color{#1}\fbox{\normalcolor#2}}} %in the preamble          \mybox{grigio}{\includegraphics[scale=0.43]{life.jpg}} %in the document      I manage to center the image with this code:               \begin{figure}     \centering     \makebox[\columnwidth]{\includegraphics[...]{...}}     \end{figure}      Note that I don't want the image's width to be = to the text width. I want it bigger, but still centered. Thanks ;)


title: Cross referencing between chapters of a thesis

text: Hi I am new to the forum and fairly new to Tex, if I miss anything out please let me know and I will be glad to post it. I am writing up my PhD thesis using Texmaker on a windows system. I have my document organised with a main file and a sub-directory containing chapter 1 to 5. I want to be able to use the labels I created in chapter two for example in the appendix and vice versa. Is there an easy way to do this? I have tried following the advice of various posts of including the commands `\usepackage{xr}` and `\externaldocument{Chapters/Chapter_2}` in the individual chapters but this leads to an error when compiling. My Preamble is as follows:               \documentclass[12pt,hidelinks,twoside]{report}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[greek,spanish,english]{babel}     \usepackage{textgreek}     \usepackage[version=3]{mhchem}     \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry}     \usepackage{amsmath, amsfonts, pifont, float, color, url}     \usepackage[pdftex]{graphicx}     \usepackage[style=numeric,backend=biber,sorting=none]{biblatex}     \addbibresource{references.bib}     \usepackage[pdftex, plainpages=false, pdfpagelabels, bookmarks=true]{hyperref}     \usepackage{fancyhdr}     \usepackage[center,font={it,small}]{caption}      I then have a section such as this in the main document:               \begin{document}     %%... Title page ...     \chapter{Theory and Methods}     \label{chap:Theory and Methods}     \include{Chapters/chapter_2}     %%... Other chapters ....     \end{document}      In Chapter 2 I have for example a label for a diagram which I may want to reference in other chapters:               \begin{figure}[H]     \centering     \includegraphics[height=10cm,width=\textwidth]{RF_colour_hi_res.pdf}     \caption{Random Forest}     \label{fig:2.1 Random Forest}     \end{figure}      How can I have this label show up in other chapters after I type \ref ? Many thanks in advance. If any other information is required please let me know. This has been answered in the comments although the references do not appear in the auto complete if they are copied and pasted in they still work.


title: Why is PDF paper size A4 although KOMASCRIPT option a6paper is used?

text: I created a PDF with a4paper settings using KOMAscript's scrbook class many times. Everything looks good in PDF and on paper, when I print the file double sided. Trying to create an A6 layout things are going weird. I've been compiling this minimal example with pdflatex:               \documentclass[a6paper]{scrbook}     \usepackage{blindtext}     \begin{document}     \Blindtext     \end{document}      The result as shown in the picture below is an apparently correct page layout for A6 paper, which is positioned on the lower left corner in an A4 sized PDF. Is there any possibility to get a PDF file which can be printed as usual, i.e. double-sided in a way that according pages lay on the same position of the paper? I hope I could make this quite clear. ![A6 layout on A4 pages](http://i.stack.imgur.com/7lwQ3.jpg).


title: Problem displaying en-dash in imported bibliography items!

text: I am importing a large bibliography from a citation manager and it seems that the character `–` is not displayed correctly in latex. It is supposed to be an en-dash though. I wouldn't want to change the characters one-by-one to -- . Where this problem come from? and as a workaround how to defined this character `–` in latex to replace it with an en-dash?               \documentclass{article}           %with or without the following line, the en-dash is not displayed     \usepackage[T1]{fontenc}          \begin{document}     This is a test \cite{hwang_utility_2013}          \begin{thebibliography}{10}     \bibitem{hwang_utility_2013}     Eun~Jung Hwang and Richard~A. Andersen.     \newblock The utility of multichannel local field potentials for       brain–machine interfaces.     \newblock {\em Journal of Neural Engineering}, 10(4):046005, August 2013.     \end{thebibliography}     \end{document}       ![enter image description here](http://i.stack.imgur.com/QgCoN.png)


title: modify beamer footer portions

text: I have a small problem because I have quite a long title of my presentation so it is overflowing in footline... Is there any way how to change portion of these 3 parts in footline? I think that 1/3 just for page number is too much in my case... Thanks... also I am aware of that solution:Modify footer of slides but it is slightly different. Without navigation symbols: ![](http://oi59.tinypic.com/ou8gmg.jpg) with navigation symbols: ![](http://oi61.tinypic.com/8xsb39.jpg) There is amissing color change if I will not use the navigation symbols.


title: In BibTeX say: One or more errors occured! please check the options!, what can I do?

text: When I try to run Bibtex a window error is open that say One or more errors occured!   please check the options! I do not understand!, What can I do? Thanks Mario


title: Typography and style for acknowledgments written in different languages

text: My thesis is written in English, but for the acknowledgment page I think I will write a first paragraph in English, one in Italian and one in French. I was wondering if I have to do something particular with `babel` or if there are any typographic / style recommendation about such a page. **Edit:** Of course to use `babel` correctly I have to change the current language with `\selectlanguage{french}`. But maybe there are others things to do.


title: How can I influence in which margin the output of \marginnote gets printed?

text: Is there a way to specify the side of the margin note in a double-sided paper according to where `\marginnote` is called? The following figure explains what I mean: ![enter image description here](http://i.stack.imgur.com/94IL4.png) Here is my test code:               %% PNAStwoS.tex     %% Sample file to use for PNAS articles prepared in LaTeX     %% For two column PNAS articles     %% Version: Apr 15, 2008                %% BASIC CLASS FILE     \documentclass{pnastwo}          \usepackage{caption}     \usepackage{subcaption}     \usepackage[usenames,dvipsnames]{xcolor}          \usepackage{ragged2e}     \usepackage[cmex10]{amsmath}     \usepackage{float}          %% ADDITIONAL OPTIONAL STYLE FILES     \usepackage[dvips]{graphicx}     \usepackage{pnastwoF}     \usepackage{amssymb,amsfonts,amsmath}          \usepackage{marginnote}          \setlength{\marginparwidth}{1.5cm}     \setlength{\marginparsep}{0.1cm}          %% OPTIONAL MACRO DEFINITIONS     \def\s{\sigma}               %%%%%%%%%%%%     %% For PNAS Only:     \url{www.pnas.org/cgi/doi/10.1073/pnas.0709640104}     \copyrightyear{2008}     \issuedate{Issue Date}     \volume{Volume}     \issuenumber{Issue Number}     %\setcounter{page}{2687} %Set page number here if desired     %%%%%%%%%%%%          \begin{document}          \title{Almost sharp fronts for the surface geostrophic equation}          \author{xxxx\affil{1}{xxxx},     xxx\affil{2}{xxxn},     \and     xxx\affil{2}{}}          \contributor{xxx}          \maketitle          \begin{article}     \begin{abstract}     \marginnote{Note on the left} xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx          \end{abstract}          \keywords{monolayer | structure | x-ray reflectivity | molecular electronics}          \abbreviations{SAM, self-assembled monolayer; OTS,     octadecyltrichlorosilane}          \dropcap{I}n this article we study the evolution of ``almost-sharp'' fronts     for the surface quasi-geostrophic equation. This 2-D active scalar     equation reads for the surface quasi-geostrophic equation.           \marginnote{Note on the right} end.          \end{article}          \end{document}      The result of such code is: ![enter image description here](http://i.stack.imgur.com/r8NWq.png) All notes are on the right. I need one of them to be on the left. I have upload a smallest test and its required class files to: https://dl.dropboxusercontent.com/u/45318932/mariginnotetest.zip


title: pgfplots: How to add the origin to the axis in a robust way?

text: ## Question I add the origin to my graph with               after end axis/.code={\path (axis cs:0,0) node [anchor=north west,yshift=-0.075cm] {0} node [anchor=south east,xshift=-0.075cm] {0};}      (code found here). This works fine is the origin is on my axis. But, there are problems if `0` is not in the values taken by `y` (see the pictures below). > Is there a way to fix this issue? > > By this, I mean an option that would display the origin only when needed. ## Pictures ### first picture ![enter image description here](http://i.stack.imgur.com/aZdQ5.png) ### second picture I cannot put it here, but it prints two pages!!! ![enter image description here](http://i.stack.imgur.com/Uebaw.png) ## Code ### first code               \documentclass{article}     \usepackage[x11names]{xcolor}     \usepackage{tikz}     \usepackage{pgfplots}     \begin{document}          \begin{tikzpicture}     \begin{axis}     [grid = major,      clip = true,      clip mode=individual,      axis x line = middle,      axis y line = middle,      xlabel={$x$},      xlabel style={at=(current axis.right of origin), anchor=west},      ylabel={$y$},      ylabel style={at=(current axis.above origin), anchor=south},      domain = 2:5,      xmin = 2,      xmax = 5,      enlarge y limits={rel=0.13},      enlarge x limits={rel=0.07},      restrict y to domain=1:2,     ymin = 1,      ymax = 2,      after end axis/.code={\path (axis cs:0,0) node [anchor=north west,yshift=-0.075cm] {0} node [anchor=south east,xshift=-0.075cm] {0};}]          \addplot[color=Gold3, samples=1000, smooth, ultra thick, unbounded coords=jump, no markers] gnuplot{atan(x)-1/2};          \end{axis}     \end{tikzpicture}          \end{document}      ### second code               \documentclass{article}     \usepackage[x11names]{xcolor}     \usepackage{tikz}     \usepackage{pgfplots}     \begin{document}          \begin{tikzpicture}     \begin{axis}     [grid = major,      clip = true,      clip mode=individual,      axis x line = middle,      axis y line = middle,      xlabel={$x$},      xlabel style={at=(current axis.right of origin), anchor=west},      ylabel={$y$},      ylabel style={at=(current axis.above origin), anchor=south},      domain = 2:5,      xmin = 2,      xmax = 5,      enlarge y limits={rel=0.13},      enlarge x limits={rel=0.07},      %restrict y to domain=1:2,     %ymin = 1,      %ymax = 2,      after end axis/.code={\path (axis cs:0,0) node [anchor=north west,yshift=-0.075cm] {0} node [anchor=south east,xshift=-0.075cm] {0};}]          \addplot[color=Gold3, samples=1000, smooth, ultra thick, unbounded coords=jump, no markers] gnuplot{atan(x)-1/2};          \end{axis}     \end{tikzpicture}          \end{document}


title: Chapters and Formatting Headers

text: When I am composing a large document in LaTeX, I often compose the chapters in separate documents. When I do this I have to copy and paste a large block of header text to the chapter I am editing so I can make sure the formatting is correct while I am writing it. How can I import a header file of formatting information with a single line?


title: ctex package and indentation

text: It seems that `ctex` package by default indents the first paragraphs. The issue can be solved with `\noindent`, but I would like to restore the default settings for which after a heading no indentation occurs. Here is a MWE:               % !TEX encoding = UTF-8     % !TEX program = xelatex     \documentclass[12pt,english,openright,twoside,a4paper]{book}%     \usepackage[UTF8]{ctex}     \begin{document}     \chapter{First chapter}     I wonder why this paragraph is indented.     \end{document}      ![enter image description here](http://i.stack.imgur.com/mWpxI.png) The issue occurs both compiling with `pdflatex` and `xelatex`. I found on the web that someone had a similar problem with `xeCJK` and solved it by loading `polyglossia` with some options, but in my document `polygloxia` clashes with other packages. The question is, if I load `ctex` package how can I avoid the indentation of the first paragraphs?


title: flexisym incompatible with AMS classes since last expl3 update

text: It seems that since the last `expl3` update (March 14, 2013), the `flexisym` package (used by `breqn`) is no longer compatible with the AMS document classes. Here is a minimal failing example:               \documentclass{amsart}     \usepackage{flexisym}     \begin{document}     \end{document}      This gives two `Undefined control sequence` errors at `\begin{document}`. Anyone have any idea what's going on?


title: How to right-align signatures on newlfm

text: I'm trying to use the newlfm class to write a letter, but I've run into this problem. It's customary in some places to have the signature aligned on the right side, as on stdletter, but everything before that _including the closing line_ on the left. So far it has been impossible to do that with newlfm.               \documentclass[stdletter]{newlfm}     \closeline{This should be left-aligned}     \namefrom{This should be right-aligned}     \begin{document}     \begin{newlfm}     \end{newlfm}     \end{document}      Is there any way to achieve that on this class?


title: icon size in texstudio

text: I am new. I have a question about the icons in the texstudio IDE for tex: the icons in both the tool bar and in the left panel are pretty small. Is there a way to enlarge them a little bit? Thanks very much.


title: Customize how the reference numbers appear in the bibliography when using biblatex?

text: I wish to customize the font for when printing the reference numbers (the to the left of all references, commonly surrounded by brackets) in the `biblatex` package. I hope that there is some command that you can simply renew, but I'm unable to find it.


title: How to pass a node abscissa as an argument to a macro?

text: How to make the following macros                   %\pstInterFF{\m(N-A.x,N-B.x)}{\fp(x)}{4}{tc}% failed              %\pstInterFF{\psGetNodeCenter{A}\psGetNodeCenter{B}\m(A.x,B.x)}{\fp(x)}{4}{tc}% failed              %\pstInterFF{\N(A)(B)}{\fp(x)}{4}{tc}   % failed              %\pstInterFF{\psGetNodeCenter{A}\psGetNodeCenter{B}\n(A)(B)}{\fp(x)}{4}{tc}% failed              %\pstInterFF{\psGetNodeCenter{A}\psGetNodeCenter{B}((\f(B.x)-\f(A.x))/(B.x-A.x))}{\fp(x)}{4}{tc}% failed              %\pstInterFF{(\f(N-B.x)-\f(N-A.x))/(N-B.x-N-A.x)}{\fp(x)}{4}{tc}% failed      work? ## Minimal Working Example               \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pst-eucl,pstricks-add}          \def\f(#1){((#1)*(#1-5)*(#1-6)/4+1.5*(#1)-5)}          \def\m(#1,#2){((\f(#2)-\f(#1))/(#2-#1))}     \def\N(#1)(#2){((\f(N-#2.x)-\f(N-#1.x))/(N-#2.x-N-#1.x))}     \def\n(#1)(#2){((\f(#2.x)-\f(#1.x))/(#2.x-#1.x))}          \def\fp(#1){Derive(1,\f(#1))}% f'(x)           \begin{document}          \begin{pspicture}[algebraic,saveNodeCoors](-1,-1)(8,8)         \psaxes[labels=none,ticks=none]{->}(0,0)(-.5,-.5)(7.5,7.5)[$x$,0][$y$,90]         \pstGeonode(*1 {\f(x)}){A}(*6.5 {\f(x)}){B}         \psplot[linecolor=blue]{N-A.x}{N-B.x}{\f(x)}         \bgroup         \psset{PointSymbol=none,PointName=none}              %\pstInterFF{\m(N-A.x,N-B.x)}{\fp(x)}{4}{tc}% failed              %\pstInterFF{\psGetNodeCenter{A}\psGetNodeCenter{B}\m(A.x,B.x)}{\fp(x)}{4}{tc}% failed              %\pstInterFF{\N(A)(B)}{\fp(x)}{4}{tc}   % failed              %\pstInterFF{\psGetNodeCenter{A}\psGetNodeCenter{B}\n(A)(B)}{\fp(x)}{4}{tc}% failed              %\pstInterFF{\psGetNodeCenter{A}\psGetNodeCenter{B}((\f(B.x)-\f(A.x))/(B.x-A.x))}{\fp(x)}{4}{tc}% failed              %\pstInterFF{(\f(N-B.x)-\f(N-A.x))/(N-B.x-N-A.x)}{\fp(x)}{4}{tc}% failed              \pstInterFF{(\f(6.5)-\f(1))/(6.5-1)}{\fp(x)}{4}{tc}% succeeded              \egroup         \pstGeonode(*N-tc.x {\f(x)}){C}         \pcline[nodesep=-1,linecolor=green](A)(B)         \psxline[linecolor=red](C){.1(A)-.1(B)}{.1(B)-.1(A)}         \psset{linecolor=gray,linestyle=dashed}         \psCoordinates(A)\psCoordinates(B)\psCoordinates(C)     \end{pspicture}          \end{document}


title: Using math mode in a label

text: How can one use something like `$\mathbb{R}^k$` in a label? I.e. `\label{three equivalent properties of $\mathbb{R}^k$}`. Currently when I try this I get an error. Here's a MWE:               \documentclass[a4 paper,11pt]{article}     \usepackage{amsmath, amssymb, amsthm, parskip}          \begin{document}          \newtheorem{thm}{Theorem}          The letter $\mathbb{R}$ prints fine on its own. \\          \begin{thm}     And this theorem causes no issues.     \end{thm}     But putting math in the label is an issue:          \begin{thm}     \label{Putting an $\mathbb{R}$ here is an issue.}     This one can't be printed.     \end{thm}          \end{document}      The error message: ![enter image description here](http://i.stack.imgur.com/JGkTc.png)


title: Beamer: positioning background image in beamer

text: I have been trying for a while to fix the image to the center for the frame, but it is attached to the top. I use the following code:               \documentclass[bigger]{beamer}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{graphicx}     \begin{document}     {\usebackgroundtemplate{\centering \includegraphics[width=\paperwidth]{./Figures/Planck_CMB.jpg}}%     \begin{frame}               \end{frame}     }     \end{document}      ![enter image description here](http://i.stack.imgur.com/JnkQb.jpg) Someone can help me with it?


title: Replace (change) "Chapter 1" to "Chapter ONE"

text: I am writing a lab report, and select `report` class provided by LyX. I use LyX 2.0.3 and MiKTeX 2.9. My question is, how to change the chapter number to display as text? eg: CHAPTER ONE not CHAPTER 1; Also the same to be appear in the TOC eg.:               CHAPTER ONE      1.1...............        1.1.1.........................


title: using bibunits with eclipse

text: I am trying to create a publications list (sorted by patents, journal papers, & book chapters) for my CV and seems that bibunits is useful for this. However, I can't get it work. Below is the latex code I am using in eclipse editor & viewing the pdf file. Help me please with simple explanation (I am new to LaTeX & don't know much about computer languages).               \documentclass{article}     \usepackage{bibunits}          \begin{document}     \begin{bibunit}[plain]         some text \cite{p1} more text more citations !         \putbib[texlit]     \end{bibunit}         \end{document}


title: How to put the chapter number above the chapter heading?

text: The default looks something like this: ### Chapter 1 ## Chapter Title I want it to look like this (but centered): ### 1 ## Chapter Title In addition:   1. The chapter number should be bold, Large   2. The chapter title should be normal text, Large, uppercase.   3. I'd like to be able to control the spacing between the chapter number and the top of the page, the chapter number and the chapter title, and the chapter title and the body text. Thanks! EDIT. Here are some MWEs: This one is the default. It doesn't do what I want at all:               \documentclass[]{report}     \begin{document}     \chapter{Vector Spaces}     \end{document}      This one is closer, but doesn't have the chapter number above the chapter title:               \documentclass{report}     \makeatletter     \def\@makechapterhead#1{%         \vspace*{-5em}%         {\parindent \z@  \normalfont         \interlinepenalty\@M         \Large\centering \thechapter \quad #1\par\nobreak         \vskip 2.5em     }}     \makeatother          \begin{document}     \chapter{VECTOR SPACES}     \end{document}      This one also doesn't have uppercase font built into it. I had to capitalize the letters myself, which isn't a big problem but I'd still like it fixed.


title: Citations rendered as 'Bloggs et al. (1999,1999)', not 'Bloggs et al. (1999a,b)'

text: I have two multi-author references that have the same senior author, but differ in the junior authors; BibTeX renders this citation in the text as 'Bloggs et al. (1999,1999)'. It should of course display 'Bloggs et al. (1999a,b)'. How can I force it to append letter suffixes to the date when I have multiple 'Bloggs et. al.' references published in the same year?


title: Place footnotes in a separate page

text: I have searched around a lot but have not been able to find a answer. How do I put all the footnotes into a separate page in LaTeX/Lyx? I need to place them after references page.


title: Included PDF line width

text: I've an image I made with Inkscape and exported to PDF that I want to include in my document. However, there is one annoying thing: The line width (e.g. the border width of a rectangle) depends on the scaling of the PDF. For example, when I include it two times like this               \includegraphics[width=1.00\textwidth]{Example.pdf}     \includegraphics[width=0.50\textwidth]{Example.pdf}      the lines in the upper image are thicker than in the lower. Can I override the line width somehow such that it is always, say, 1mm, regardless of the scaling or (re)define the base that is used to calculate the actucal width?


title: Expanded StrSubstitute

text: I am trying to use `\StrSubstitute`, but what I want is to expand it all the way to get the result string.               \StrSubstitute{Řepa}{Ř}{Rzzz}      then i use it with               % somehow define \a as the result string of the above macro     % \def\b{Strom}          \pdf@strcmp{\a}{\b}      I want to use it to bypass the fact that czech characters are after A-Z which does not reflect how czech people order the characters in their alphabet


title: TikZ scalebox without translation

text: Below are two TikZ pictures. In the second one, I've added a `\scalebox` to scale the nodes ABC and the distance between them. I want the A to remain in the same position, but unfortunately the coordinates are scaled with respect to origin. How can I rescale that part of the figure without translating it? ![enter image description here](http://i.stack.imgur.com/k1WYm.png) MWE for the picture with a scalebox:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{positioning}     \begin{document}     \begin{tikzpicture}          \node at (0,0) {0,0};     \node at (4,4) {4,4};     \node at (0,4) {0,4};     \node at (4,0) {4,0};          \scalebox{0.67}{         \node at (2,2) (A) {A};         \node [right=of A] {B};         \node [below=of A] {C};     }     \end{tikzpicture}     \end{document}      To be clear: I do want the distances between A, B and C to scale, I just don't want the entire scalebox to move towards origin. In my actual document, the contents of the scalebox are more complicated.


title: Eliminating URL in bbl file, and makebst

text: I compiled my own bst file using the 'latex makebst' command. This is a brilliant way of amending the style of references. However, makebst creates a very ugly 'URL' prefix for web-pages. It just looks awful in a reference list. How can I get rid of this ugly prefix? Thus far I amended the bbl file (I think it is line 5), but there must be a way of eliminating URL forever.


title: How to make a minted code listing centered on a page?

text: So, I am writing a report with Prolog code listings in it. I have been using _lstlisting_ to make my listings and I made my code centered on the page, such as this:               \renewcommand{\figurename}{Listing}     \begin{figure}[thp]      \centering      \begin{tabular}{c}       \begin{lstlisting}[language=Prolog]     somePredicate(A, B) :-         arbitraryPredicate(A),         anotherPredicate(B).       \end{lstlisting}      \end{tabular}      \caption{My Prolog Predicate}      \label{lst:firstListing}     \end{figure}      Generated output: ![First Listing](http://i.stack.imgur.com/v5Ysc.jpg) It works very well. This is based on the following answer on stackexchange: http://tex.stackexchange.com/a/5822/46424 However, I want to switch to the _minted-package_ to represent my code snippets, as it shows the code with nice colors. _This is where it goes wrong._ I got minted to work, but I cannot get my listing centered anymore. After searching on the web I found only one question about aligning minted code: LaTeX align minted code fragments So, just as it shows there in the answers of that question, I tried to use a minipage. This, however, did not work as expected. The code is simply aligned left instead of centered if I write the following:               \renewcommand{\figurename}{Listing}     \begin{figure}[thp]      \begin{minipage}[t]{\textwidth}       \centering       \begin{minted}{prolog}     somePredicate(A, B) :-         arbitraryPredicate(A),         anotherPredicate(B).       \end{minted}       \caption{My Prolog Predicate}       \label{lst:firstListing}      \end{minipage}     \end{figure}      Generated output: ![enter image description here](http://i.stack.imgur.com/vmWMF.jpg) I have also tried to combine tabular with minted, but then pdflatex gets an error and no pdf-file gets generated. So, my question is: _how do I make my code listings, that are represented by the minted-package, centered on my page?_ Thanks in advance!


title: Beamer blocks and itemize

text: I am using the `beamerposter` package and I have adjusted the beamerblock so that the columns line up and have correct spacing. However itemize now runs from the very edge of the block on the left to very edge on the right. I can solve the left margin with:               \addtolength{\leftmargini}{2.5em}       but cannot seem to do anything about the right margin. Any suggestions? My block is set as:               \setbeamertemplate{block begin}{       \vskip.75ex       \begin{beamercolorbox}[leftskip=1cm,sep=.75ex]{block title}%         \usebeamerfont*{block title}\insertblocktitle       \end{beamercolorbox}%       {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%       \usebeamerfont{block body}%       \begin{beamercolorbox}[sep=.75ex,vmode]{block body}%         \ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%       }       \setbeamertemplate{block end}{       \end{beamercolorbox}     }


title: Changing the image path of html-documents created using the htlatex command

text: So I've created a .tex document using TeXShop for os X, and I've specified an absolute graphicspath for all the images. Now I'm supposed to render a .html file from the .tex and I've done so using the "htlatex" command in the terminal. But when I open the new html file, all of my pictures are gone and replaced with a tile that wants to fetch an image from the folder that the .html document is in. In the .tex document, I have all the images pathed to another location, just because keeping all the files in one folder would be to much to handle. Can I change the folder from which the .html document fetches images? This is what I write in the .tex document to path to the images:               \documentclass[11pt]{paper}          \usepackage{hyperref, color, graphicx, textcomp}          \graphicspath{{/Users/Rikardny/Documents/LaTeX-labs/Linux_Introduction/Images/}}      Because I am new to this kind of thing, an easy and newbie-friendly explanation would be nice ;) Thank you in advance!


title: Is there a way to manually add entries to the list of figures?

text: I'm writing my thesis and one section is going to be made of an already existing article. I'm including it with `\usepackage{pdfpages}` and`\includepdf[fitpaper=true, pages=-]{Impactpaper.pdf}`. I'd like to add information about the figures contained in that paper to my list of figures (I have `\listoffigures` in the `frontmatter` of thesis).               % TableofContents     \tableofcontents     \listoffigures     \listoftables      Is there a way to do add data in `\listoffigures` manually? And also, is there a way to manually add data in the bibliography (citations)?


title: Insert a skak symbol

text: I'm trying to enter a chess symbols of _skak_ package, and output it at **pdflatex** but it didn't compile...(at Lyx). What can I do? I enter it at math mode. (there is no other way). (Idon't know what is xskak and if it would help...) Here is the error code:               !pdfTeX error: pdflatex (file SkakNew-Figurine): Font SkakNew-Figurine at 600 n      Here is the code:               % Preview source code          %% LyX 2.0.5.1 created this file.  For more info, see http://www.lyx.org/.     %% Do not edit unless you really know what you are doing.     \documentclass[twocolumn,english,hebrew]{article}     \renewcommand{\familydefault}{\rmdefault}     \usepackage[T1]{fontenc}     \usepackage[cp1255]{inputenc}     \setlength{\parindent}{0bp}          \makeatletter          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.     \def\@outputdblcol{%       \if@firstcolumn         \global \@firstcolumnfalse         \global \setbox\@leftcolumn \box\@outputbox       \else         \global \@firstcolumntrue         \setbox\@outputbox \vbox {%           \hb@xt@\textwidth {%           \kern\textwidth \kern-\columnwidth %**           \hb@xt@\columnwidth {%              \box\@leftcolumn \hss}%           \kern-\textwidth %**           \hfil           {\normalcolor\vrule \@width\columnseprule}%           \hfil           \kern-\textwidth  %**           \hb@xt@\columnwidth {%              \box\@outputbox \hss}%           \kern-\columnwidth \kern\textwidth %**         }%       }%       \@combinedblfloats       \@outputpage       \begingroup       \@dblfloatplacement       \@startdblcolumn       \@whilesw\if@fcolmade \fi       {\@outputpage         \@startdblcolumn}%       \endgroup       \fi     }     \@mparswitchtrue          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.     \usepackage{theorem}     \theorembodyfont{\upshape}     \newtheorem{theorem}{\R{משפט}}[section]     \AtBeginDocument{\make@lr\thetheorem}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.     \usepackage{skak}          \makeatother          \usepackage{babel}     \begin{document}     \L{$\Omega=\left\{ \symking,\sympawn\right\} $}          שלום!     \end{document}      Hope it's OK and this is what you mean...(you can edit if you want).


title: Hyphenation in list of figures

text: I am trying to remove hyphenated words from my list of figures and tables and I've no real idea how to do it. I just don't like the look of the same words broken at different points. For example Temper-ature and Temp-erature Is there a quick and east way to do this? Cheers


title: \Rightarrow vs. \implies, and "does not imply" symbol

text: Is it better to use `\Rightarrow` or `\implies` to symbolize logical implications? Why? Also, if I write `\not \Rightarrow`, I get a symbol that means "does not imply." But if I type `\not \implies`, it doesn't look right. How do I get the corresponding "does not imply" symbol?


title: Placeholder for variable as in f(x, .)

text: What is the best/the usual way to typeset a placeholder for a variable in an equation? Specifically, I want to do something like g = f(x, .) (which of course means that g is defined by g(y) = f(x,y)). I tried `\cdot`, but it somehow does not look right (and the spacing needs to be adjusted either). On the other hand, a `\bullet` seems to be too fat. Any other suggestions?


title: Custom hyphenation for different languages in XeTeX

text: When I define custom hyphenation with `\hyphenation` in XeTeX, it seems to only work for the main body of the text, but not for the bits inside `\text<language>` (as in `\textgerman`) environments. I know I can use `\-` but I would rather have a global solution. A minimal example:               \documentclass[draft]{article}     \usepackage{xltxtra}     \usepackage{polyglossia}     \setmainlanguage[variant=british]{english}     \setotherlanguage{german}          \begin{document}          \hyphenation{bb-bbb}          aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbb          aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \textgerman{bbbbb}          \end{document}      yields this: ![\\hyphenation failing with \\textgerman](http://i.stack.imgur.com/25Vgn.png)


title: troubleshoot needed for LaTeX Error: Command \item invalid in math mode

text: Can someone please troubleshoot this? It gives me an > `\item` invalid in math mode although I use a very similar casing on a previous frame.               \documentclass[mathserif]{beamer}     \usepackage{beamerthemesplit}     \usepackage{amsmath}     \usepackage{amsfonts}     \begin{document}     \begin{frame}[shrink=20]     Requiring the partition function to be modular invariant, gives some properties to $\epsilon(\alpha,\beta)$.     \begin{itemize}     \item Under $\tau \rightarrow \tau+1$      $$     \{\alpha,\beta\} \rightarrow e^{-i\pi n(\alpha)/8}\{\alpha,\bar \alpha \beta\}.     $$     This will require $\epsilon(\alpha,\beta)=\varepsilon_\alpha\epsilon(\alpha,\bar \alpha \beta\)$.     \item Under $\tau \rightarrow -\frac{1}{\tau}$      $$     \{\alpha,\beta\} \rightarrow e^{i\pi n(\alpha \cap \beta)/4}\{\beta, \alpha\}.     $$     This will require $\epsilon(\alpha,\beta)=\delta_\alpha\delta_\beta\epsilon(\beta, \alpha)\varepsilon_{\alpha \cap \beta}^{-2}$.     \end{itemize}     In the equations above $\varepsilon_\alpha=e^{-i\pi n(\alpha)/8}$.     \end{frame}     \end{document}


title: In LyX, how do I stop a figure float appearing inside a enumerate list

text: I have a enumerate list which splits over into the next page. My issue is a figure float from earlier in the text appears at the top of the new page and breaks up the enumerated list, which is unpleasant to look at. How can I block together or protect the {list} so that it does not get spliced by a figure float. I don't mind how the figure appears there I would rather the list appear either side of it.


title: How to get all the possible sizes of delimiters with Cambria Math

text: After this question, Cambria Math \bigg command doesn't work as expected, I discovered that Cambria has so many sizes of delimiters. I think the next logical step is to come up with a way of having all the possible sizes without requiring the extensible one. If I'm not wrong, those are different glyphs… or are they re-scaled ones? I'm looking for an easy way of having all the posible sizes at hand, instead of only four of them (`\big`, `\Big`, `\bigg`, `\Bigg`). My idea (which may be is not the correct one) is to find a command with a number as optional (or mandatory) argument, e.g., `\ldelim[3]( \rdelim[7]\rbrace`. What the number means? I don't know, may be the number of glyph you want to use, or may be the size which should be covered… And, could it work with every delimiter? Like braces, angles, brackets, etc. Here is an example of many sizes I found of the parenthesis.               \documentclass{scrartcl}          \usepackage{mathtools}     \usepackage{unicode-math}     \setmathfont{Cambria Math}     \begin{document}          \[         \left(             {\delimitershortfall=-19pt\Biggl( \biggl( \Bigl( \bigl(                 {\delimitershortfall=-2pt\biggl( \Bigl( \bigl(                     {\delimitershortfall=5pt\bigl( ( \mu }                 }             }^2         \right)     \]          \end{document}      ![enter image description here](http://i.stack.imgur.com/fIbkv.png) PS: In case they (at least some of them) are re-scaled of one glyph, it's such a nice work! It would be great to have a command which re-scales it at wish, without relying on the extensible ones.


title: Conflict between MathTime Pro 2 and refcheck

text: The following MWE shows the problem:               \documentclass{article}     \usepackage{amsmath}     \usepackage[lite]{mtpro2}     \usepackage{refcheck}          \begin{document}     \begin{align}       a & \leq b     \end{align}     \end{document}      And I get a `! Missing $ inserted.`. The problem disappears when `refcheck` is not used, or when `mtpro2` is not used. Does anyone sees a way to use both packages simultaneously?


title: Using pstool with beamer

text: I would like to use `pstool` with `beamer` to create a presentation in `pdflatex` with figures processed by `psfrag`. However, as the simple example below shows, the figures are processed using the `beamer` documentclass, so that they each have a full `beamer` "frame" around them. Is there a way around this?               \documentclass{beamer}          \usepackage{lmodern}     \usepackage{graphicx}     \usepackage[process=all,crop=pdfcrop]{pstool}          \begin{document}     \begin{frame}         \frametitle{Circle}         \begin{figure}             \psfragfig[width=0.3\textwidth]{figures/circle}             {                 \psfrag{1}{\(s\)}             }         \end{figure}     \end{frame}     \end{document}      ![Example](http://i.stack.imgur.com/QBn1b.png) I suspect that if it's possible to override the documentclass used by `pstool` to process the figures, that would be a solution, but I haven't found how to do this. Thanks.


title: smashoperator overlaps big parentheses with limits

text: `\smashoperator` pulls big parentheses too close causing them to overlap with the limits. Is there any workaround? Edit: An ad-hoc solution is to force an appropriate amount of empty space to the right/left of the left/right parentheses using `\,` `\quad` etc. But these "tricks" obviously defeat the whole point of using LaTeX. Example:               \documentclass[american]{article}     \usepackage{amsmath,amssymb,amsthm,mathtools}     \usepackage{babel}          \begin{document}          $\lambda\left(\smashoperator{\bigcup_{x=lowerlimit}^{upperlimit}} f(x) \right)$          \end{document}


title: Align edges with anchor other than center

text: It seems that, when drawing an edge between two nodes, TikZ defaults to aligning the edge with the 'center' anchors of the two nodes. More precisely, the edge points from the center of one node to the center of the other node, and the endpoints of the edge sit on the boundary of the nodes. An example is the black arrow in the following diagram.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{matrix}          \begin{document}          \begin{tikzpicture}       \matrix (m) [matrix of math nodes,row sep={4em,between origins},column sep={5em,between origins},nodes={anchor=mid}]{         A^B & A_B \\             & E   \\};       \draw[->] (m-1-1) -- (m-1-2);       \draw[->,red] (m-1-1.mid) -- (m-2-2.mid);     \end{tikzpicture}          \end{document}      ![result picture](http://imgur.com/GQ84Q.png) On the other hand, the red arrow joins the 'mid' anchors of two nodes. I would like to shorten the red arrow to make it start and end at the boundaries of the nodes (like the black arrow does). Nevertheless, I want the desired shortened arrow to stay on the same line as the above red arrow, and to still have an arrowhead (so simply clipping does not seem to do the trick). Is there a simple way to shorten the red arrow as requested? Does anyone know how TikZ does it for the black arrow?