title: Thesis font, math symbols etc change after each compile

text: I have a strange problem when writing my thesis. I'm using the template available on: http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/ All document classes etc have been provided in there.. I haven't modified anything. The template had been working like a charm until I tried using a *.bst file I downloaded for making the bibliography. I wanted to use ieeetr style bibliography & even since I compiled it for the first time, all font changes randomly at each compile. It must all be in Times New Roman. It also changes the equations & symbols & makes them look garbled & weird!! I even tried completely wiping the texlive install on the os x & reinstalling.. I tried both 2014 & 2013 releases & it does the same. Infact many of the older reports & newly downloaded templates off the net etc also behave in the same weird way now!! Really desperate for some help.. Any advice on a proper comprehensive clean up of tex install & re-install will be GREATLY appreciated.. I cleared the mactex using these insructions: http://www.tug.org/mactex/uninstalling.html Thanks!!


title: List Structures

text: I am interested to create a list like the below one, which starts with `\noindent` but then is pushing the text to the left **but without the text in the item returning again to`\noindent` when there is a newline** (see the picture). I couldn't achieve the desired results. ![](http://i.stack.imgur.com/zzgrr.png)


title: Overfull/Underfull \hbox warnings when compiling the document

text: I have bunch of pgfplots (plots and bar charts in my document) and when I compile I get errors like:               Overfull \hbox (1.17287pt too wide) in paragraph at lines 2121--2122      [][]      [35]      Sometimes it also tell `underfull` as well. What does these mean ? Any general pointers on how to solve them ? Do they mean anything bad ?


title: What is wrong with this TeX macro

text: Still soldiering on with trying to learn these macros. Can someone tell me why this isn't working? The macro `\mycline{n-n}` is supposed to expand to `\cmidrule{1-1} ... \cmidrule{n-n}`, but in my code below I get multiple errors..               \documentclass{article}     \usepackage{pgfplotstable}     \usepackage{booktabs}          \def\mycline(#1-#2){       \xdef\MC{}%       \foreach \a in {#1,...,#2}{%       \toks0=\expandafter{\MC}%       \def\temp{\cmidrule\expandafter{\a\expandafter-\a}}%       \xdef\MC{\the\toks0 \temp}%       }       \MC     }          \begin{document}     \begin{tabular}{llll}     1&2&3&4\\ \mycline{1-3}     5&6&7&8\\     \end{tabular}     \end{document}


title: Position some yticks to the right, and some others, to the left

text: I am trying to position the yticks to the left and right of the axis, depending on a comparaion to a reference value. Say in the following plot, I want to position the positive ylabels to the left, and the negatives ones to the right of the axis. ![enter image description here](http://i.stack.imgur.com/lWuYR.png) The code is as follows (and it is token from a previous poste)               \documentclass{article}     \usepackage{tikz,pgfplots}     \pagestyle{empty}     \begin{document}          \begin{tikzpicture}[>=latex]     \begin{axis}[       axis x line=center,       axis y line=center,       xtick={-5,-4,...,5},       ytick={-5,-4,...,5},       xlabel={$x$},       ylabel={$y$},       xlabel style={below right},       ylabel style={above left},       xmin=-5.5,       xmax=5.5,       ymin=-5.5,       ymax=5.5]          \end{axis}     \end{tikzpicture}     \end{document}


title: environment with local \newunicodechar{ä}{ae} or similar -- is it possible?

text: I'm using xelatex with utf8-input. I'm trying to write a LaTeX environment inside of which every source code `ä` is printed as ae, every `ö` as oe etc. I found a number of ways that don't work, but so far none that does. I put the error messages under the respective lines of code:               <!-- language: lang-latex -->     \documentclass{minimal}     \XeTeXinputencoding{utf8}     \usepackage{xltxtra}     \usepackage[ngerman]{babel}     \usepackage{newunicodechar}     %------------------------------------------------------------     \newenvironment{noumlauts}{%     % Neither of these works:     %   \newunicodechar{ä}{ae}           %   ! LaTeX Error: Can be used only in preamble.     %     %   \DeclareUnicodeCharacter{00E4}{ae}           %   ! Undefined control sequence. (\DeclareUnicodeCharacter)     %     %   \catcode`ä=\active\def ä{ae}%           %  ! Missing control sequence inserted.           %  <inserted text>            %                  \inaccessible     %     %   \makeatletter\@namedef{u8:\detokenize{ä}}{ae}\makeatother            %     ! You can't use `\spacefactor' in vertical mode.           %     \@ ->\spacefactor            %                      \@m {}     }{}     %------------------------------------------------------------     \begin{document}        \begin{noumlauts}           \noindent Bräsige Mägen\\           \emph{should look exactly like}\\           Braesige Maegen        \end{noumlauts}     \end{document}


title: How to update TeX Live distribution manually (without using the frozen TeX Live Manager)?

text: As an illustration, let consider that I want to update the installed `tcolorbox` package to the new one from the CTAN.   1. I have downloaded the newest `tcolorbox.zip` package from `ctan.org/pkg/tcolorbox`. I extracted it and its contents are shown as follows. ![enter image description here](http://i.stack.imgur.com/NxYI4.png)   2. I noticed there are two folders related to the installed (old) `tcolorbox` as shown in the following figure. ![enter image description here](http://i.stack.imgur.com/zdQTp.png) ## Questions:   1. How do I know which files in the extracted folder should be copied to `...\doc\latex` and `...\tex\latex`?   2. Is there a more convenient way to do it?   3. Do I need to invoke `texhash` at the end?   4. Should the package authors separate the main files from the document files with two subfolders in their zipped packages to ease manual update?


title: re-define \ref and \label to include source filename?

text: I have a set of documents each with references that look like:               \ref{figure1}      and so on. This is no problem when building each document separately,but creates many duplicate references when using `\include{}` to create a composite document. Is is possible to redefine the `\ref` and `\label` commands to automatically include the source filename in the reference and label. Otherwise, I would have to hand-edit all my source files with new references to solve the duplicate references problem in the composite document. For example, document1.tex would have references like               \ref{figure1_document1}      and document2.tex would likewise have the following:               \ref{figure1_document2}      But I would like this to happen _automatically_ by re-defining the commands instead of having to hand-edit each of the source files. Any tips appreciated!


title: Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath

text: I'm trying to automatically format numbers in a way that doesn't convert say .8 to 0.8 while at the same time scientific notation is converted to exponent- free notation. `siunitx` seems to be able to do both but I don't get it to work together.               \documentclass{article}     \usepackage{siunitx}     \newcommand{\myround}[1]{\num[zero-decimal-to-integer,scientific-notation=fixed,fixed-exponent=0,round-mode=places,round-precision=2,add-integer-zero=false]{#1}}     %\newcommand{\myround}[1]{\num[zero-decimal-to-integer,round-mode=places,round-precision=2,add-integer-zero=false]{#1}}     \pagestyle{empty}     \begin{document}     \myround{.8}     \myround{1}     \myround{4.00000000001}     \myround{-.1151}     \myround{4.44089209850063E-16}          .80     1     4     -.12     0     \end{document}      The first `\newcommand` in this MWE IMHO _should_ produce the right result because it got all the right options. However, the zeros before the decimal point are added back in: ![zeros still there](http://i.stack.imgur.com/nUScO.png) Using the second macro definition (that is commented out) yields this result, proving that in principle it should work but of course the scientific notation isn't converted and not rounded properly either (rounding to two decimal places, 4.44×10-16 should be 0.00×100 if anything). ![scientific notation still there](http://i.stack.imgur.com/OjkiE.png) I also added the `pgfmath` tag because `\pgfmathprintnumber` seems to have much of the same options as `\num` from `siunitx` and I don't know if one uses the other internally and I also wouldn't mind to use that other if it does what I need.


title: How to write a math closure with subscript in LaTeX?

text: Currently I'm writing closures with a bar, e.g. `\bar{\Omega}`. Maybe there's a better way, but it looks more or less OK. The problems start when I want to define e.g.:               \newcommand{\cellFluid}{Y}     \newcommand{\cellSolid}{\cellFluid_0}      Now `\bar{\cellSolid}` looks very ugly, and I have to use `\bar{\cellFluid}_0` which defeats the point of defining `\cellSolid` and makes the code hard to read. How can I solve this problem?


title: Double bookmark in pdf file

text: I got a small problem with my LaTeX document. I generate a list of listings like this:               \renewcommand\lstlistlistingname{Quellenverzeichnis}     \lstlistoflistings     \addcontentsline{toc}{chapter}{Quellenverzeichnis}      This generates the correct page and adds a correct link to the toc. However in the pdfs bookmarks there are two links to `Quellenverzeichnis`, one pointing to the page before it and one pointing to the actual page. I already tried to use `\renewcommand*` without any difference. PS: I am using MiKTeX through TeXnicCenter.


title: newtxmath, libertine, cm figures

text: Newtxmath with `libertine` and `otf` is an attractive combination for beautiful mathematics text. But it is inconsistent in that for figures 0,1,2,...,9 within math mode it uses the CM font, not the Libertine font. I understand that there may be size issues, but could not the Libertine figures scaled up for the math mode?


title: Why doesn't \mathord work to turn an Acc atom into Ord?

text: Writing `${\dot X^a}^b$` produces a very cryptic "double superscript" error: this has been explained here on this forum: the reason is that `{\dot X}^a` generates an Acc atom and that, for a reason that only Knuth must know, putting braces around a single Acc atom does not work to turn it into an Ord nucleus like it does for _any other_ math list (see page 291, ¶5, of the TeXbook, quoted in the aforementioned thread). What I'd like to know, now, is why `$\mathord{\dot X^a}^b$` (or, for that matter, `${\mathord{\dot X}^a}^b$`) doesn't work any better: unlike simple grouping, `\mathord` is not supposed to have any weird exception for single Acc atoms, at least if I believe the TeXbook (just two paragraphs below). It's simple enough to work around (`$\mathord{{}\dot X^a}^b$` works, or simply `${{}\dot X^a}^b$`), and of course one shouldn't be writing this sort of thing anyway, but what I'd like to know is: does this count as a bug in TeX? Do I win a $327.68 check from Knuth ;-), or is there some fine print somewhere in the TeXbook or elsewhere that explains how `\mathord` is supposed to work?


title: structured overview of installed fonts suitable for font comparison

text: How to get a "reasonably structured" overview of the fonts installed on a computer that are usable by (La)TeX or alternatively by LuaTeX / XeTeX? By "reasonably structured" overview I imagine a document with a list of fonts (names, basic information, font samples of a user defined template) where fonts are grouped by certain criteria. The desired properties of the font overview are:   1. the groups are not too large (more or less balanced in size),   2. the overview can be created on the own computer (using only fonts available for traditional TeX or LuaTeX / XeTeX), and   3. the overview has the possibility to use own sample text (and own font size if the fonts allow). Here is an "example" of what I am looking for:                   Classification of fonts by *Vox-ATypI*                -=  Table of Contents  =-     1 Classicals         1.1 Humanist               Centaur, Cloister, ...         1.2 Garalde               Bembo, Garamond, ...         1.3 Transitional               Baskerville, Times Roman, ...     2 Moderns     ...          1 Classicals     ============          1.1 Humanist     ------------     Centaur                ABCDEFGHIJKLMNOPQRSTUVWXYZ, abcdefghijklmnopqrstuv     B. Rogers, 1914        wxyz, 1234567890     aka. Metropolitan      sample text using font Centaur          Cloister               ABCDEFGHIJKLMNOPQRSTUVWXYZ,  abcdefghijklmnopq     font info              rstuvwxyz, 1234567890     extra info             sample text using font Cloister          ...      * * * For creating such an overview on the own computer, I know of the following two related topics:   1. long **lists of (almost) all fonts** installed on a computer which do _not_ show the font characteristics     * for LaTeX, see Stefan Kottwitz's answer to the question "Is there a list available for all TeX fonts?" using ".map" files; and Will Robertson's answer to "What fonts are installed on my box?" using ".fd" files and just showing "short hands";     * for LuaTeX / XeTeX (especially OpenType, TrueType), see this description, part "Finding the name of the font" simply listing the files of certain font directories;   2. showing all **glyphs of one font** , which is very detailed and a comparison between fonts seems hard at first sight     * for (La)TeX, one can display the 256 glyphs of a font by `tex testfont` (see http://tug.org/fonts/fontinstall.html),     * for LuaTeX, XeTeX, one can use an approach of "Generating a table of glyphs with XeTeX",     * external programs like FontForge (which can do much more than just viewing a font); In general for grouping, I have seen different **classifications of fonts** : Styles of Typefaces, Vox-ATypI classification / "Typeface Classifications British Standards 2961", German Typeface Classification (in German), Aldo Novarese's "Classificazione Novarese" (in Italian or in German), Electronic Publishing by Wolfgang Beinert (in German), or an overview "How to Classify all of these Thousands of Faces?". * * * The following **examples** come close to what I am looking for. All these lists are not restrictable nor expandable to fonts on the own computer.   1. Samples of serif typefaces and other Typeface samples `(-)` fonts available for LaTeX: unknown / possibly not; `(+)` comparison of fonts: good, reasonable long samples; `(O)` subclassification is stated, but sorting by that not available;   2. LaTeX Font Catalogue is using a classification similar to Styles of Typefaces `(+)` fonts available for LaTeX: yes; `(-)` comparison of fonts: not so easy since font samples in overview are short (e.g., no numbers); `(-)` the _large_ classes of serif and sans serif fonts are missing subclassification like this for serif or this for sans serif;   3. entries under "Font samplers" at http://tug.org/fonts/ `(+)` fonts available for LaTeX: yes; `(O)` comparison of fonts: sometimes possible with good samples and additional information; `(O)` overview often restricted to certain fonts; Is there something similar that also _satisfies my desired properties_? Otherwise, is there a list or database (similar to this list of typefaces) with which one can easily create such a document?


title: Don't want headers on ToC, Lists, Bibliography and Appendices

text: I'm using the fancy headers, but I dont want any headers on ToC, Lists, Bibliography and Appendices. If I put this `\thispagestyle{plain}`, it works on the last page, but when it has for example the ToC 3 pages the second page gets an header anyway.


title: Expand package option, to make contained character math-active

text: In an answer to another question of mine, egreg posted code, which activates a character in math mode and gives it the function of `\operatorname`. Now I want to put this into a package and set the character, that should be activated, in the package options. Just replacing the backtick with `\shortoperator@char`, it starts like this:               \NeedsTeXFormat{LaTeX2e}     \ProvidesPackage{shortoperator}[2014/02/09]          \RequirePackage{kvoptions}     \DeclareStringOption[`]{char}     \ProcessKeyvalOptions*          \RequirePackage{xparse,amsmath}          \ExplSyntaxOn     \tl_new:N \l__shortoperator_name_tl          \cs_new_protected:Npn \shortoperator_bq_mathop:      {       % clear the container       \tl_clear:N \l__shortoperator_name_tl       % start the recursion       \shortoperator_absorb:      }          \cs_new_protected:Npn \shortoperator_absorb:      {       \peek_catcode:NTF a        {% if the next token is a letter absorb it         \__shortoperator_absorb_next:n        }        {% otherwise produce the operator name         \__shortoperator_deliver:        }      }          \cs_new_protected:Npn \__shortoperator_absorb_next:n #1      {       % add the next letter to the container       \tl_put_right:Nn \l__shortoperator_name_tl { #1 }       % restart the recursion       \shortoperator_absorb:      }          \cs_new_protected:Npn \__shortoperator_deliver:      {       % produce the operator name       \operatorname{\l__shortoperator_name_tl}      }      and continuous with:               % define the active back quote     \group_begin:     \char_set_catcode_active:N \shortoperator@char     \cs_gset_eq:NN \shortoperator@char \shortoperator_bq_mathop:     \group_end:          \ExplSyntaxOff          \AtBeginDocument{\mathcode`\shortoperator@char=\string"8000 }      where the option is used. But of course that won’t work, because `\shortoperator@char` needs to be expanded. I tried to to use `\expandafter` to do that, but couldn’t get it to work. How can it be done? An usage example (with _XeLaTeX_ ) would be:               \documentclass{article}     \usepackage[char=¡]{shortoperator}     \begin{document}         \[e^{ix} = ¡cos x + i¡sin x\]     \end{document}


title: Design and implementation of an elegant Tufte-inspired two column presentation template?

text: I am interested in finding or creating a `beamer` template with the following characteristics:   1. left: a square (ish) figure, about 2/3 of the width   2. right: two or three statements, zero to four small figures, per slide on the right I would like for the template to:   * simplify the process of creating a presentation    * be effective at conveying information How can I accomplish these goals? (I am interested in `Sweave` (or `org-mode`) integration, but I do not want that to distract the answers since I can implement this) * * * ## Examples Something with a `tufte-notes` style, as found in "An Example of the Usage of the Tufte-Handout Style", and seen below, would be very nice, but it is not clear how I can most effectively translate this style to `beamer`. ![enter image description here](http://i.stack.imgur.com/jJ426.png) I am not a designer, but here is a mock-up (images from NASA) ![enter image description here](http://i.stack.imgur.com/Fd2Zh.jpg)


title: Brackets around matrices in TikZ

text: I'm writing a custom package for labeled matrices using TikZ. I noticed an inconsistency in TikZ. This is best illustrated with the following MWE:               \documentclass{standalone}          \usepackage{tikz}     \usetikzlibrary{matrix}          \begin{document}     \begin{tikzpicture}[baseline=(m.west)]     \matrix (m) [draw=white!80!black,               left delimiter=[,right delimiter={]}, matrix of math nodes]               { 1 & 1 \\ };     \end{tikzpicture}      \begin{tikzpicture}[baseline=(m.west)]     \matrix (m) [draw=white!80!black,              left delimiter=[,right delimiter={]}, matrix of math nodes]               { 1 & 1 \\ 2 & 2 \\ };     \end{tikzpicture}      \begin{tikzpicture}[baseline=(m.west)]     \matrix (m) [draw=white!80!black,               left delimiter=[,right delimiter={]}, matrix of math nodes]               { 1 & 1 \\ 2 & 2 \\ 3 & 3 \\ };     \end{tikzpicture}          \end{document}      Surprisingly (to me at least), this is rendered as follows: ![enter image description here](http://i.stack.imgur.com/qNcJr.png) Clearly, the braces for the single-line matrix are aligned differently from the multi-line matrix. I'd expect the braces to be slightly smaller than the grey box in all cases. Why is this and, more importantly, how do I remedy this? **UPDATE 1** : Following @percusse's comment below, the remedy seems to be to add `outer sep=0pt` to the options of each matrix. Now I run into the next problem: I want to control the amount of space between rows. When adding `row sep=0.1em` to each matrix (in addition to `outer sep=0pt`), this is, again surprisingly, rendered as: ![enter image description here](http://i.stack.imgur.com/dRB3v.png)


title: C-c C-r to see the effect of a change in equation

text: I am recently experimenting with Auctex and preview-latex, I read the quick- start part of Auctex documentation. I have a question on C-c C-r, I created a simple test document and therein I am changing a symbol in an align environment and running C-c C-r on this selected align region(which is the equation), however after successful compilation, this change is not reflected on the output dvi, I have to run C-c C-c once more to see the change on the dvi output, where am I mistaken about C-c C-r? I am trying to interactively see the changes on the other screen over the dvi output with C-c C-r, is this reasoning wrong?


title: How can I change the aspect ratio in beamer without passing the aspectratio option?

text: I started to create a custom theme for beamer slides, and I want to change the default aspect ratio for this theme. Of course I can use `\documentclass[aspectratio=169]{beamer}` in every document, but I'd like to keep everything in *.sty files. In `beamer.cls` I found definitions of `\beamer@paperwidth` and `\beamer@paperheight`, but setting these lengths in `bemerthemeMYTHEME.sty` as follows has no effect on the result.               \mode<presentation>     \setlength\beamer@paperwidth{16.00cm}     \setlength\beamer@paperheight{10.00cm}      What would be a proper way to change the default aspect ratio in *.sty? Shell I use `beamerouterthemeMYTHEME.sty` or `bemerthemeMYTHEME.sty` for this?


title: Paragraph ended before \pst@@@picture was complete, what is wrong?

text: ![enter image description here](http://i.stack.imgur.com/MJ5lh.png) Paragraph ended before `\pst@@@picture` was complete, what is wrong?               \documentclass[pstricks,border=12pt]{standalone}     \usepackage[nomessages]{fp}               \makeatletter     % Removing a trailing space in the original fp.sty.     % I think this problem should be fixed directly to the fp.sty     % to make this package more compact.     \def\FP@pow#1#2#3{%         % #1 macro, which gets the result         % #2 base         % #3 exponent         %         \FP@beginmessage{POW}%         %         {\def\FP@beginmessage##1{}%          \def\FP@endmessage##1{}%          %          \FPifzero{#2}%             \FP@pow@zero{#3}%          \else%             \FPln\FP@tmpd{#2}%             \FPmul\FP@tmpd\FP@tmpd{#3}%             \FPexp\FP@tmp\FP@tmpd%          \fi%          %          \global\let\FP@tmp\FP@tmp%         }%         %         \FP@endmessage{}%         %         \let#1\FP@tmp%     }               \def\filter#1,#2#3\relax#4{%         \if t#1%             trunc(#4:#2)%         \else   \if r#1%             round(#4:#2)%         \else   \if c#1%             clip(#4)%         \else             \ERRORHERE         \fi\fi\fi}          % \pstVerb concatenator     \def\LoadConstants{}          % Constant declarator invoked in the preamble     \newcommand\const[3][]{%         \if\relax\detokenize{#1}\relax             \edef\temporary{#3}%         \else             \edef\temporary{\filter#1,any\relax{#3}}%         \fi         \expandafter\FPeval\csname#2\expandafter\endcsname             \expandafter{\expandafter{\temporary}}%         \toks0=\expandafter{\LoadConstants\pstVerb}         \edef\LoadConstants{\the\toks0 {/#2 \csname#2\endcsname\space def}}}               \def\pst@@picture@i[#1]#2(#3,#4){%     % BEGIN - redefine \const for invocation inside pspicture         \renewcommand\const[3][]{%         \if\relax\detokenize{##1}\relax             \edef\temporary{##3}%         \else             \edef\temporary{\filter##1,any\relax{##3}}%         \fi         \expandafter\FPeval\csname##2\expandafter\endcsname             \expandafter{\expandafter{\temporary}}%             \pstVerb{/##2 \csname##2\endcsname\space def}\ignorespaces}%     % END - redefine \const for invocation inside pspicture         \@ifnextchar(% ignore anything between [] and ()     % BEGIN - inject \LoadConstants into pspicture         {\pst@@@picture[#1](#3,#4)\LoadConstants}%         {\pst@@@picture[#1](0,0)(#3,#4)\LoadConstants}%     % END - inject \LoadConstants into pspicture         }          \makeatother     \const{side}{2}     \begin{document}     \begin{pspicture}[showgrid](-\side,-\side)(\side,\side)          \end{pspicture}     \end{document}


title: Use just a specific range of a colormap or shading in tikz

text: I'd like to create an image with tikz that uses just a part of a predefined colormap or shading. More precisley, if I have e.g. the jet-colormap ![Full range of colorbar](http://i.stack.imgur.com/gFadY.png) I like to create several rectangles that use the jet colormap, but not the full range but rather some part: ![bars with using just a part of the range](http://i.stack.imgur.com/os2Qh.png) I tried different approaches with a colormap, e.g. directly via colorbars (example 1) and with shadings (exmaple 2). But i didn't came up with a solution. example 1               \documentclass[]{standalone}     \usepackage{pgfplots}     \begin{document}          \begin{tikzpicture}     \pgfplotsset{ticks=none}     \begin{axis}[       hide axis,       scale only axis,       height=0pt,       width=0pt,       colormap/jet,       colorbar horizontal,       colorbar style={         width=10cm,       }]     \addplot [draw=none] coordinates {(0,0)};     \end{axis}     \end{tikzpicture}     \end{document}      example 2               \documentclass[]{standalone}     \usepackage{pgfplots}     \begin{document}          \begin{tikzpicture}     \definecolor{C1}{RGB}{19,128,67}     \definecolor{C2}{RGB}{255,255,255}     \definecolor{C3}{RGB}{154,0,79}     \pgfdeclareverticalshading{someShading}{50bp}{     color(0bp)=(C1);     color(25bp)=(C2);     color(50bp)=(C3)     }      \shade [shading=someShading](1,4) +(-.5,-3.5) rectangle ++(.5,3.5);     \end{tikzpicture}          \end{document}      I'd like to avoid creating data for the individual rectangles to control the range of the colormap. The 'best case' would be to be able to adress an actual interval, e.g. choose a value between [0,1] or to adress an percentage interval like [0%,100%]. Thanks a lot for any help, M


title: Change the nomenclature from Chapter to Section

text: How can I change Nomenclature from a chapter to section in a report I am using               \section*{Nomenclature}     \addcontentsline{toc}{section}{Nomenclature}     \renewcommand{\nomname}{}     \printnomenclature      However I have a Chapter with no name in my contents.


title: Legend in caption

text: It may be a bit difficult sometimes to deal with the legend of a figure in a LaTeX document. Depending on the context, you may have to place the legend over the existing curves because of a lack of space. You may also have to place it on the side making the centering of the main content difficult. Some people choose to put the legend in the caption thus discarding the above mentioned difficulties. Below is a solution with pstricks:               \documentclass[dvips,11pt,fleqn]{article}     \usepackage{lmodern}     \usepackage{xcolor}     \usepackage{graphicx}     \usepackage{pstricks-add}     \usepackage[top=2cm,bottom=2cm,left=2cm,right=2cm,a4paper]{geometry}          \newbox{\LegendeA}     \savebox{\LegendeA}{         (\begin{pspicture}(0,0)(0.6,0)         \psline[linewidth=0.04,linecolor=red](0,0.1)(0.6,0.1)         \end{pspicture})}     \newbox{\LegendeB}         \savebox{\LegendeB}{         (\begin{pspicture}(0,0)(0.6,0)         \psline[linestyle=dashed,dash=1pt 2pt,linewidth=0.04,linecolor=blue](0,0.1)(0.6,0.1)         \end{pspicture})}          \begin{document}     \begin{figure}[h]         \centering         \begin{pspicture*}[showgrid=true](0,-2.5)(7,2.5)             \psframe[fillstyle=solid,fillcolor=gray!10](-1,-3)(8,3)             \psplot[linewidth=1.5pt,algebraic=true,linecolor=red]                 {0}{7}{sqrt(x)*cos(x)*sin(x)}             \psplot[linewidth=1.5pt,algebraic=true,linecolor=blue,linestyle=dashed,dash=1pt 2pt]                 {0}{7}{sqrt(x)*cos(x)}         \end{pspicture*}         \caption{Vibrations of the structure; wheel~\usebox{\LegendeA} and             piston~\usebox{\LegendeB}}     \end{figure}     \end{document}      ![example](http://i.stack.imgur.com/jpaYe.png) What are your strategies?


title: biblatex numeric style with author last name?

text: I am currently usign the `numeric` style in biblatex. This gives me the obvious result of `[22]` when I call `\cite{Someone}`. I would like to stick to the `numeric` style but also include the last name in the citation, for example something along the lines of: `[(Someone)22]` or `(Someone)[22]`. My question is two fold:   1. Is this citation style in any way common? I would probably distance myself from it if it is too far from current standards.   2. How would I implement this? I assume the trick lies somewhere in `\DeclareCiteCommand`, but I don't know where to start.


title: SPIE using BibTex to generate reference list

text: I am following SPIE conference Latex format, to generate a PDF paper. However, at reference part I have problems. First, here is their website http://kmh-lanl.hansonhub.com/spie/, in the **_Reference list formatting_** part they described how to create reference list. Here is the latex file they provided               %  List Bibliography      %  creates reference list using BibTeX and named style file          \documentclass[11pt,letterpaper]{article}             \oddsidemargin -.02in       \textwidth 6.5in       \topmargin -0.42in       \textheight 9in       \parskip 1ex          \def\bstfile{spiebib}  % name of bib style file to be used          \def\refname{ \vspace{-10ex}\rule{0mm}{1mm} \\ Reference list formatting -- \bstfile.bst     }           \begin{document}            \vspace{-10ex}\rule{0mm}{1mm}             \bibliographystyle{\bstfile}      \nocite{*}      \bibliography{biblist}          @article{Kaczmarz37,     author = "S. Kaczmarz",     title = "Angen{\"{a}}hrte {A}ufl{\"{o}}sung von {S}ystemen     linearer {G}leichungen",     journal= "Bull. Acad. Polon. Sci. Lett.",     volume = "A35",     pages = "355-357",     year = "1937" }                \end{document}      where               @article{Kaczmarz37,     author = "S. Kaczmarz",     title = "Angen{\"{a}}hrte {A}ufl{\"{o}}sung von {S}ystemen     linearer {G}leichungen",     journal= "Bull. Acad. Polon. Sci. Lett.",     volume = "A35",     pages = "355-357",     year = "1937" }      is the sample where you can insert your own bibliography. However, when I compile the tex file, it looks like this: ![enter image description here](http://i.stack.imgur.com/MkNba.png) but according to their website, it should look like this: ![enter image description here](http://i.stack.imgur.com/hGpSZ.png) I am wondering how I can change to their style. I am following their instruction, but get very different results. Confused.


title: How to use \psaxes with trigonometric labels of even multiples of π/3?

text: ## Constraints   * I only want to use `\psaxes` rather than multiple calls of `\psxTick`, `\rput`, `\uput`.   * I want to have trigonometric labels with even multiple of `π/3`. ## My attempts As usual, we can have trigonometric labels of multiple of `π/3` without any problem.               \begin{pspicture}(-\psPiTwo,-1)(\psPiTwo,1)          \psaxes[dx=\PiOverThree](0,0)(-\psPiTwo,-1)(\psPiTwo,1)     \end{pspicture}      In order to get even multiple of `π/3`, I changed `dx=\TwoPiOverThree` as follows.               \begin{pspicture}(-\psPiTwo,-1)(\psPiTwo,1)          \psaxes[dx=\TwoPiOverThree](0,0)(-\psPiTwo,-1)(\psPiTwo,1)     \end{pspicture}      However, this change should be followed by setting `Dx=\TwoPiOverThree`. Unfortunately, setting `Dx` produces errors (that you can see by compiling my MWE below). ## Minimal Working Example               \documentclass[preview,border=12pt,12pt,dvipsnames]{standalone}     \usepackage{pst-plot}          \def\PiOverThree{1.047197}     \def\TwoPiOverThree{2.094395}          \psset     {            xtrigLabels,         trigLabelBase=3,         xunit=\PiOverThree,     }               \begin{document}     \section*{With $\pi/3$ step (completed)}          \begin{pspicture}(-\psPiTwo,-1)(\psPiTwo,1)          \psaxes[dx=\PiOverThree](0,0)(-\psPiTwo,-1)(\psPiTwo,1)     \end{pspicture}          \section*{With $2\pi/3$ step (uncompleted)}          \begin{pspicture}(-\psPiTwo,-1)(\psPiTwo,1)          \psaxes[dx=\TwoPiOverThree](0,0)(-\psPiTwo,-1)(\psPiTwo,1)     \end{pspicture}               % does not compile     %\begin{pspicture}(-\psPiTwo,-1)(\psPiTwo,1)             %\psaxes[dx=\TwoPiOverThree,Dx=\TwoPiOverThree](0,0)(-\psPiTwo,-1)(\psPiTwo,1)     %\end{pspicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/lWozS.png) ## Bonus Questions How to set different `trigLabelBase` for `x`-axis and `y`-axis? I cannot find `xtrigLabelBase` and `ytrigLabelBase` in the `pst-plot` documentation. They might not be implemented yet.


title: citelist with institution

text: I use biblatex with `maxcitenames = 2`. Now I would like to reference the list `institution` (consists of 3 institutions separated with `and`). The command `citelist{key}{institution}` gives me the first institution and then an "et al.", as it does for authors. Is there a way to get the entire entry when using `citelist{key}{institution}`? Best Christian


title: Typesetting arc over the letter upside down

text: How can I, using standard tools and packages, draw a "smile" over a letter? For example, I can typeset `\wideparen{x}` using `yhmath` package, but I need that arc to be upside down. Of course I want it to be extandable as `\wideparen` did. Which standard command should I use?


title: Bode plot : any good alternative to bodegraph

text: I'm wondering if there is any alternative to "bodegraph" for plotting bode graph with latex. Especially I would ideally be looking for something easy to run (avoid external computation like with gnuplot for example). I could use matfig2pgf and export from Matlab but there are some misterious errors coming from this type of plots.


title: Trying to understand the renewbibmacro and DeclareFieldFormat construct

text: I have migrated recently to `biblatex` and am trying to understand the many possibilities to tune and tweak the appearance of references in the bibliography. For example, for a work in a collection with a certain `volume` entry, I want to change the appearance of this `volume` in the bibliography. I came along the `renewbibmacro` construction. Hence I added in the preamble of my document               \renewbibmacro*{volume}{%         \printtext{VOLUMEMACRO}\space\printfield{volume}%     }%      This didn't result in anything, whereas using the `DeclareFieldFormat` did work:               \DeclareFieldFormat{volume}{\printtext{VOLUMEDECLARE} #1}      However, it didn't apply to the `volume` field in the `article`. When I used the `renewbibmacro` for `author`, it did work for an `article`:               \renewbibmacro*{author}{%         \printtext{anon}%     }      I have searched this forum, as well as the `biblatex` manual, but could not find a concise overview on how to use these `renewbibmacro` and `DeclareFieldFormat` functions. Hence I am posting this myself. So I am interested to learn about the usage of this constructions, and what fields can and cannot be changed this way. A `MWE` that shows that the `DeclareFieldFormat` for `volume` applies to the `collection` only, and that the `renewbibmacro` for `author` works:               \documentclass[10pt, english]{report}     \usepackage[british]{babel}     \usepackage{csquotes}     \usepackage[backend=biber,style=authoryear]{biblatex}          \begin{filecontents}{abib.bib}     @article{some:article:1964,         author   = "Mister Smart",         title    = {A very difficult narrative of sub-atomic particles in the diary of Louis XIV},         journal  = {Journal for Advanced Thinking},         volume   = "41",         number   = "3",         year     = "1964",         pages    = "307--323"     }         @collection{collection:mass:histroical:vol1,         options      = useeditor,         title     = {Collections of the Massachusetts Historical Society},         volume    = {i},         series    = {third series},         address   = {Boston},         year      = 1896,         sorttitle = {Collections of the Massachusetts Historical Society},         shorthand = {Collections MHS Vol.~1},         publisher = {Massachusetts Historical Society}     }     \end{filecontents}          \addbibresource{./abib.bib}          \DeclareFieldFormat{volume}{\printtext{VOLUMEDECLARE} #1}          %\newbibmacro*{volume}{%     %  \printtext{VOLUMEMACRO}\space\printfield{volume}%     %}%          \renewbibmacro*{author}{%       \printtext{anon}%     }          \begin{document}     Test ~\textcite{some:article:1964} and~\textcite{collection:mass:histroical:vol1}.     \printbibliography     \end{document}


title: Which font am I using

text: I am creating many figures for my LaTeX document using matplotlib with `'text.usetex': True`. My full preamble looks like this:               rc('font', **{'family':'serif', 'serif':['Computer Modern Roman']})     params = {'backend': 'pdf',               'axes.labelsize': 12,               'text.fontsize': 12,               'legend.fontsize': 12,               'xtick.labelsize': 10,               'ytick.labelsize': 10,               'text.usetex': True,               'figure.figsize': fig_size,               'axes.unicode_minus': True}     matplotlib.rcParams.update(params)      In the plot I also use `\texttt{}`, which should match the formatting in the latex document. However it doesnt (compare legend and caption, both 12pt). ![Matplotlib figure and caption. Typewriter text is rendered differently.](http://i.stack.imgur.com/EILWO.png) I assume I have to add something like `'family':'typewriter', 'typewriter':['Some font']`. So my questions:   * how can I find out which font and weight is used in the LaTeX document for `\texttt`   * How to tell matplotlib to use the exact same font


title: Problem with \index in align enviroment

text: Please compile the following MWE. As you will then see, the typesetting of `$\mu^{\otimes\downarrow n}$` in the index is strange!               \documentclass{article}     \usepackage{amsmath}     \usepackage{imakeidx}     \makeindex     \begin{document}     \begin{align}\index{$\mu^{\otimes\downarrow n}$}     x     \end{align}     \printindex     \end{document}      NB: No problem for `equation` instead of `align` or if `$\index{$\mu^{\otimes\downarrow n}$}$` is placed before `\begin{align}`. What's wrong here?


is there any way to make the following two horizontal lines on the background of a cell? **Cell should contain either a blue or green horizontal line in the middle. Or the third option is both.** Here below is a simplified tabular that I would like it applied, but somehow I do not know how to ..               \documentclass[landscape,11pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[czech, english]{babel}     %How to make background in tabular cell (vertical lines)?          %USEPACKAGE     \usepackage{tikz}     \usepackage{tcolorbox}     \usepackage{color}     \usepackage{multicol}     \usepackage{multirow}     \usepackage{hhline}          %--------------------     \usepackage{geometry}     \geometry{         a4paper,         total={210mm,297mm},         left=10mm,         right=10mm,         top=6mm,         bottom=2mm,         bindingoffset=0mm     }          \begin{document}     \pagestyle{empty}     \thispagestyle{empty}     \shorthandoff{-}          \begin{tabular}{|c|c|c|c|}     \hline     \multicolumn{4}{|c|}{Tabular XY} \\     \hline\hline          \multirow{2}{*}{1} & \parbox[c][1cm][c]{2cm}{\centering \scriptsize Lorem ipsum dolor sit amet} & \parbox[c][1cm][c]{1cm}{\centering \scriptsize Lorem ipsum} & Y \\          \hhline{*{1}{|~}*{2}{|-}|-|}          & \parbox[c][1cm][c]{2cm}{\centering \scriptsize Lorem ipsum dolor sit amet} & \parbox[c][1cm][c]{1cm}{\centering \scriptsize Lorem ipsum} & X \\          \hline     \end{tabular}          \end{document}      ![enter image description here](http://i.stack.imgur.com/IvWcN.png)


title: Curly brackets around a table

text: I would like to have braces on the left side of a table (either that or on the right side) and bellow the same table. What I have got is               $     m-Mal      \underbrace{       \left\{\begin{tabular}{|l|l|l|l|}\hline        1+1 & 1+2 & ... & 1+n \\ \hline        2+1 & 2+2 & ... & 2+n \\ \hline        ... & ... & ... & ... \\ \hline        m+1 & m+2 & ... & m+n \\ \hline        \end{tabular}        }_{n-Mal}     $      But the problem is that the underbrace goes too much to the left: ![image](http://i.stack.imgur.com/64uaW.png) Ideally, the `\underbrace` would end where the first column starts.


title: How I can apply margin to a verse?

text: I want to create a book of poems and I want to place every poem at the middle of the page. I think that calculating the max width of the poem and placing it at the middle might be tricky so I decided to just apply manually some padding on every verse. I include my code so far               \documentclass[a5paper,pagesize,10pt,bibtotoc,pointlessnumbers,     normalheadings,DIV=9,twoside=false]{scrbook}          % twoside, openright     \KOMAoptions{DIV=last}          \usepackage{trajan}               \usepackage[georgian]{babel}     \usepackage{fontspec}                    \linespread{1.05}           \usepackage{verbatim} % for comments     \usepackage{listings} % for comments          \usepackage{calc}     \usepackage{verse}          \usepackage{blindtext}          \setmainfont{DejaVu Serif}          \newcommand{\q}[1]{>>\textit{#1}<<}          \title{A book title}        \author{Author Name}      \date{\today}           \begin{document}                                 \centering{                 {\fontsize{22}{25}\selectfont              უშენობა}             }\\                  \vspace{10mm}               \begin{verse}     გავაღებ  კარს,\\     შევხედავ  ცას.\\     ოდესმე  ჩავწვდებით,\\     ცხოვრების  აზრს.\\     გაუფრთხილდეთ  მას,\\     რაც  დღეს  გვაქვს.\\          \end{verse}               \end{document}


title: How to set the position of a figure in latex

text: i am using the following code to put three figures in a row but it puts them in a column. how can i fix it?                \documentclass[a4paper,12pt]{report}      \usepackage{graphicx}            \usepackage{subcaption}           \begin{figure}[h]           \centering           \begin{subfigure}[h]{0.3\textwidth}      \includegraphics[width=\textwidth]{a}              \end{subfigure}%             \begin{subfigure}[h]{0.3\textwidth}         \includegraphics[width=\textwidth]{b} \end{subfigure}             \begin{subfigure}[h]{0.35\textwidth}           \includegraphics[width=\textwidth]{c} \end{subfigure}        \end{figure}          \end{document}


title: Fonts specific to a country?

text: I am working on a multilingual book about some European Union countries. The selected are: Poland, Greece, Spain, Italy, Romania, Czech Republic, Austria, Turkey, Estonia. I wish to write chapter about a country using a font in some way specific for it. The Polish (free) fonts are, e.g., Antykwa Toruńska or Antykwa Półtawskiego. I would be grateful for any suggestion concerning the remaining countries.


title: How to make a full equation with tikz?

text: I am using this solution here to make long dashes within a matrix, and it is working well. The code is:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{matrix}          % possible to customize here the dash aspect     \newcommand{\mydash}{     \draw(0.3,0.5ex)--(-0.3,0.5ex);     }          \begin{document}     \[P=     \begin{tikzpicture}[baseline=-0.5ex]     \matrix(m)[matrix of math nodes,left delimiter=(,right delimiter=),ampersand replacement=\&]     {     \mydash \&   y_1 \&   \mydash   \\     \mydash \&   y_2+z_2 \&  \mydash    \\     \mydash \&   y_3 \&   \mydash \\     };     \end{tikzpicture}     \]          \end{document}      However, I am now sure how to start writing full blown equations with it. I have not had much luck. The above makes a nice matrix with lines along the rows. 1) What I want is something like P = X Y Z, where X, Y , and Z, are all shown with the lines along its rows as in the prior example given. I cannot seem to concatenate them for whatever reason though... 2) I would like the matrix brackets to also be square, and not curvy.


title: pgfplots: unable to affect cycle list name while using \pgfplotsinvokeforeach

text: I am unable to use custom colors from `cycle list name` with `pgfplotsinvokeforeach`. Some pointers could be gauged from this post, which discusses execution of various steps in a plot function. In the MWE below, I am trying to segregate the bar chart into two categories where the numeric values are greater than median and other as less than the median value. I use the `x` value range as input for `pgfplotsinvokeforeach` and `restrict x to domain` to `#1` values > From page 88, section 4.6.6 of pgfplots manual > > `/pgfplots/cycle list name={<macro>}` > > ...the currently active cycle list will be used if you write either > `\addplot+[<keys>]` ...; or if you **_don't_** use square brackets as in > >`\addplot[<explicit plot specication>]` The `cycle list name` functionality does not function possibly because I am specifying `restrict x to domain` parameter explicitly to `\addplot` function. **Code:**               \listfiles     \documentclass{article}     \usepackage{tikz}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \usepackage{xcolor}          \pgfplotsset{xticklabel={\tick},scaled x ticks=false}     \pgfplotsset{plot coordinates/math parser=false}               \definecolor{darkblue}{RGB}{0,34,68}     \definecolor{ochre}{RGB}{255,161,0}          \pgfplotscreateplotcyclelist{customcol}{%     {fill=darkblue, draw=black},     {fill=ochre, draw=black}     }                    \begin{document}     \begin{center}     \pgfplotstableread[col sep=comma,header=true]{     number,label     0.031,A     0.038,B     0.043,C     0.046,D     0.056,E     0.063,F     }\data          \begin{tikzpicture}     \begin{axis}         [           cycle list name=customcol,           width=5in,           symbolic y  coords={A,B,C,D,E,F},           tick label style={font=\footnotesize},           label style={font=\footnotesize},           axis x line*=bottom,           axis y line*=left,           yticklabel style={text width=3cm, align=right,inner sep=0pt, outer sep=0pt},           xbar=5pt,           bar width=4pt,           point meta=x*100,           xlabel=number,           ylabel=label,           y tick label style={text width=0.5cm,align=center},           xticklabel=\pgfmathparse{100*\tick}\pgfmathprintnumber{\pgfmathresult}\,\%,           xticklabel style={/pgf/number format/.cd,fixed,precision=2},           nodes near coords={\pgfmathprintnumber[fixed zerofill,precision=1]{\pgfplotspointmeta}$\%$},           every node near coord/.append style={                     font=\footnotesize,                     /pgf/number format/precision=3,                     anchor=180                     }         ]     \pgfplotsinvokeforeach{0:0.041,0.041:0.0693}{         \addplot +[restrict x to domain=#1] table {\data};         }     \end{axis}     \end{tikzpicture}     \end{center}     \end{document}      **Possible Solutions** The syntax below is not 100% correct but wanted to illustrate the thought process: Is there a way to create a list such as `{[partition1,color1],[partition2,color2]}` which is input to `\pgfplotsinvokeforeach` and `#1` to be resolved as `\addplot [color1] +[restrict x to domain=[partition1] table {\data};` **Output:** ![bar plot](http://i.imgur.com/OQdowVJ.png) **Addendum** 1)The node labels are of same color as that of individual bar, this could be unreadable with certain colors. Is there a way to enforce a common color to all node labels, say black. 2) The y tick label alignment is a bit off, for category 1 the tick labels are **below** the bars and for category 2 the tick labels are **above** the bars Thanks a lot!


title: \csname not working as expected

text: The following code prints ==atname==               \def\atname{atname}     \def\xxx{name}     \def\at{at}     ==\csname\at\xxx\endcsname==     \bye      but this does not:               \def\@name{atname}     \def\xxx{name}     \def\at{@}     ==\csname\at\xxx\endcsname==     \bye      Why, and how can I make this work?


title: tikzpicture fails when externalization is enabled

text: In a document of mine I'm trying to use the `external` library. For the record, I downloaded the CVS version of `TikZ`, since I want the better update checks. Anyway, I have a figure in my code which compiles perfectly as long as I have `\tikzset{external/export next=false}` in front of it; that is, the figure's code is correct. However, once I change the value to `true`, then I get the following error (I hope this is indeed the relevant part):                (./figures/region-bounded-by-hyperbolas.tex     Runaway argument?     { \clip (-3,-2) rectangle (4,3); \draw [thick,gray,->] (-2.5,0) -- (3\ETC.     ./figures/region-bounded-by-hyperbolas.tex:83: Paragraph ended before \tikzexternal@externalizefig@systemcall@uptodatecheck was complete.     <to be read again>                         \par      l.83 \end{tikzpicture}          ./figures/region-bounded-by-hyperbolas.tex:83:  ==> Fatal error occurred, no output PDF file produced!      When using the 2.10 version this seems to work fine for both boolean values - unfortunately then the update method is poor. _Is this a bug? Am I doing something wrong? How can I debug/troubleshoot this?_ * * * _**Edit 1_** : I just installed an even newer version of TikZ, 4.8.2012 (following the suggestion here), and everything seems to work as expected. Thus, it seems like the issue I experienced was a bug. In case no further insights are provided, then I'll flag to close this questions


title: How to illustrate a drawing with text and two decorations

text: How can I create a drawing like this: ![enter image description here](http://i.stack.imgur.com/ZCSDR.png) The stuff in red are only explications (with "middle" I meant middle of the drawing representing the spiral) and should not be drawn. Tikz would be best, since I know a tiny little amount of it (which is more than other programs - of which I know nothing) and want to replace the spirals with some of my own decorations. The text may seem large here, but actually I plan to use the standard font. Here is a minimal working example (stripped with the LaTeX preambel, since I use LyX):               \begin{tikzpicture}           \node[align=center]{text text text text \\ text text text text};     % To do: Place a picture here, whose middle is at equal distance between the top line of text and the bottom line and that has a "good-looking" distance from the text     % To do: Place the same picture with same distance requirements here; would be nice if it were mirrored, so I don't have to mirror it externally in a different program.     \end{tikzpicture}       EDIT (since this was too big for a comment): Ok, modifying answer gives like this               \documentclass{article}     \usepackage{graphicx}          \newlength\decorwidth     \setlength\decorwidth{1cm}          \newcommand\TextDecor[2]{%       \par\smallskip\noindent%       \parbox[c]{\decorwidth}{\includegraphics[width=.5\decorwidth]{#1}\hfill}%       \parbox[c]{\dimexpr\textwidth-2\decorwidth\relax}{#2}%       \parbox[c]{\decorwidth}{\hfill\includegraphics[width=.5\decorwidth]{#1}}\par\smallskip%     }          \begin{document}               \TextDecor{ornament1}{ \begin{center}text  text text  text\\ text text text  text\end{center}}          \end{document}      it now looks like this. In red is explained on thing I didn't manage to do: ![enter image description here](http://i.stack.imgur.com/RGfP8.png)


title: Acronyms & Glossaries not being output in the PDF

text: I've used glossaries in the past running latest MikTex and Texniccenter on Windows 8.1 and now after 2 year I started to write a new paper using my old template and I got stuck using the glossaries. My `glossaries.tex`-file looks like this:               \usepackage[     acronym,nonumberlist]{glossaries}     \makeglossaries          % Display an arrow in front of the usage of an glossary entry     \newcommand{\glsgl}[1]{$\rightarrow$\,\gls{#1}}     \newcommand{\glsplgl}[1]{$\rightarrow$\,\glspl{#1}}               %%%%%%%%%%%%%%%%%%%%%%%%%     % ACRONYMS     \newglossaryentry{CPU}{type=\acronymtype, name={CPU}, description={Central Processing Unit}, first={\glstext*{CPU}}}               %%%%%%%%%%%%%%%%%%%%%%%%%     % GLOSSAR     \newglossaryentry{SDK_gl}{name={SDK},         description={Enthalten i.d.R. Werkzeuge und Dokumentationen zur Software, um dem Programmierer den Einstieg zu erleichtern}}          % reset the acronyms used in the glossary-entries     \glsresetall               \usepackage{glossary-longragged}      \newglossarystyle{super3colleft}{%       \renewenvironment{theglossary}%         {\tablehead{}\tabletail{}%          \begin{supertabular}{@{}>{\bfseries}lp{1.5\glsdescwidth}p{\glspagelistwidth}}}%         {\end{supertabular}}%       \renewcommand*{\glossaryheader}{}%       \renewcommand*{\glsgroupheading}[1]{}%       \renewcommand*{\glossaryentryfield}[5]{%         \glsentryitem{##1}\glstarget{##1}{##2} & ##3 & ##5\\[-1px]}%       \renewcommand*{\glossarysubentryfield}[6]{%          &          \glssubentryitem{##2}%          \glstarget{##2}{\strut}##4 & ##6\\}%         \renewcommand*{\glsgroupskip}{ & &\\[-1.3ex]}%     }               \newlength{\acronymlabelwidth}     \setlength{\acronymlabelwidth}{0.25\textwidth}     \newglossarystyle{listwithwidth}{%       \renewenvironment{theglossary}%         {\begin{description}}{\end{description}}%       \renewcommand*{\glossaryheader}{}%       \renewcommand*{\glsgroupheading}[1]{}%       \renewcommand*{\glossaryentryfield}[5]{%         \item[\parbox{\acronymlabelwidth}{\glsentryitem{##1}\glstarget{##1}{##2}}]            ##3\glspostdescription\space ##5}%       \renewcommand*{\glossarysubentryfield}[6]{%         \glssubentryitem{##2}%         \glstarget{##2}{\strut}##4\glspostdescription\space ##6.}%       \renewcommand*{\glsgroupskip}{\indexspace}%     }      And then just after the TOC I want to display the Acronyms on a cleared double page and the glossary entries on the following:               \tableofcontents          %%% Show all entries (even if not used):     \glsaddall     \printglossary[type=\acronymtype,style=super3colleft] % acronyme     \addcontentsline{toc}{section}{Akronyme}     \cleardoublepage          \glsresetall     \printglossary[type=main] % glossary     \addcontentsline{toc}{section}{Glossar}     \cleardoublepage      I get an entry in the TOC but both pages are empty. What could cause those problems? I'm compiling using `texify` (tried it using `pdflatex` as well but didnt work either) and with syncronisation with sumatra, my profiles look like the following: ![enter image description here](http://i.stack.imgur.com/Rhuc7.png)![enter image description here](http://i.stack.imgur.com/TbmPr.png) ![enter image description here](http://i.stack.imgur.com/TRjeb.png)![enter image description here](http://i.stack.imgur.com/WPjwY.png) Is there maybe something missing as pre- or postprocessing which would collect all the entries and build the corresponding glossary-index-file!? **EDIT** : I surely tried to fix it myself and I searched the internet. I found this quite interesting post: http://en.wikibooks.org/wiki/LaTeX/Glossary and there's something mentioned about the need to have Perl installed. As I said, the last usage of my template is 2 years ago so I can't remember what I did exactly to make it work or which software I had installed on my computer back then. My directory does contain a `glo`, `acn` and `ist`-file after compilation which is, as far as I can see, necessary containing the glossary entries. The files look like: **`ist`-file:**               % makeindex style file created by the glossaries package     % for document 'Hauptdatei' on 2014-1-10     actual '?'     encap '|'     level '!'     quote '"'     keyword "\\glossaryentry"     preamble "\\glossarysection[\\glossarytoctitle]{\\glossarytitle}\\glossarypreamble\n\\begin{theglossary}\\glossaryheader\n"     postamble "\%\n\\end{theglossary}\\glossarypostamble\n"     group_skip "\\glsgroupskip\n"     item_0 "\%\n"     item_1 "\%\n"     item_2 "\%\n"     item_01 "\%\n"     item_x1 "\\relax \\glsresetentrylist\n"     item_12 "\%\n"     item_x2 "\\relax \\glsresetentrylist\n"     delim_0 "\{\\glossaryentrynumbers\{\\relax "     delim_1 "\{\\glossaryentrynumbers\{\\relax "     delim_2 "\{\\glossaryentrynumbers\{\\relax "     delim_t "\}\}"     delim_n "\\delimN "     delim_r "\\delimR "     headings_flag 1     heading_prefix "\\glsgroupheading\{"     heading_suffix "\}\\relax \\glsresetentrylist "     symhead_positive "glssymbols"     numhead_positive "glsnumbers"     page_compositor "."     suffix_2p ""     suffix_3p ""      **`acn`-file**:               \glossaryentry{CPU?\glossaryentryfield{CPU}{\glsnamefont{CPU}}{Central Processing Unit}{\relax }|setentrycounter[]{page}\glsnumberformat}{vii}      **`glo`-file**:               \glossaryentry{SDK?\glossaryentryfield{SDK_gl}{\glsnamefont{SDK}}{Enthalten i.d.R. Werkzeuge und Dokumentationen zur Software, um dem Programmierer den Einstieg zu erleichtern}{\relax }|setentrycounter[]{page}\glsnumberformat}{vii}      I've even tried a MINIMAL working example of a german forum like this:               \documentclass{article}     \usepackage[ngerman]{babel}     %Laden des Paketes     \usepackage{glossaries}     \newglossary[svl]{symbols}{svi}{svo}{Symbolverzeichnis}     \makeglossaries          %Unser Testeintrag     \newglossaryentry{wbrot}{name=Wurstbrot,     description={Lecker gebackener Hefeteig mit verwurstetem Tier}}          %Unser Testeintrag Symbolverzeichnis     \newglossaryentry{Dichte}{type=symbols,name={$\rho$},     sort=rho,description={Dichte von irgendwas}}          \begin{document}     %den Begriff im Text verwenden     \gls{wbrot}, \gls{Dichte}          %Ausgabe des Verzeicnisses     \printglossary[title=Unser Testglossar]     \printglossary[title=Unser Testsymbolverzeichnis,type=symbols]          \end{document}      I don't see the glossary in this minimal example, so it's probably nothing got to do with my full template but rather with the global settings of texniccenter to compile the glossaries somehow..


title: Using Linux Libertine in math mode with unicode-math (XeLaTeX)

text: I'm trying to use the Linux Libertine font for my thesis. Libertine in fact does have mathematical symbols, but I didn't manage to use them properly in unicode-math. The following example sums up my attempts to progressively add symbols from the font, and highlights the failures. I'm aware that some of the issues could not be solved because the OTF font does not fully support math, but maybe some of the issues could be solved using advanced TeX trickery. The two main problems are the accents and brackets; I can tolerate other symbols being taken from another font.               \documentclass{article}     \usepackage{amsmath}     \usepackage{xcolor}     \setlength{\parindent}{0pt}     \usepackage{fontspec}     \usepackage[partial=upright,nabla=upright]{unicode-math}          \newcommand{\sample}{\[ \underbrace{\frac{\partial y}{\partial x}R(x)^2}_{\text{Foo}} = \left[ \sum_{i=0}^\infty \tilde{f}_i \arcsin\left( \alpha_i^3 x \right) \right]^{-1} \sqrt[6]{\int \nabla y\times\mathbf{\theta}(y) \mathrm{d}\phi} \geq \mathring{\Omega}_\ell [d]\]}          \begin{document}     \sample     This is a correct rendering using Latin Modern. Let's try to add some Libertine\ldots          \setmainfont[Mapping=tex-text]{Linux Libertine O}     \setmathfont[range=\mathit/{latin,Latin,num,Greek,greek}]{Linux Libertine O Italic}     \setmathfont[range=\mathup/{latin,Latin,num,Greek,greek}]{Linux Libertine O}     \setmathfont[range=\mathbfup/{latin,Latin,num,Greek,greek}]{Linux Libertine O Bold}     \setmathfont[range=\mathbfit/{latin,Latin,num,Greek,greek}]{Linux Libertine O Bold Italic}     \setmathfont[range={"0300-"036F}]{Linux Libertine O}% Accents - won't compile correctly without this line     \setmathfont[range={"003D,"00D7,"2202,"2207,"2212,"221E,"2265}]{Linux Libertine O} % some more symbols, they work properly     % U+003D    Equal sign     % U+00D7    Cross     % U+2202    Partial     % U+2207    Nabla     % U+2212    Minus     % U+221E    Infinity     % U+2265    Greater or equal          \sample          \textcolor{red}{Problem 1:} accents are off (ugly hack: use \texttt{\backslash skew})\\     \textcolor{red}{Problem 2:} brackets are still in LM; at least the normal sized brackets must match the text, so let's add parentheses \& square brackets:          \setmathfont[range={"0028,"0029,"005B,"005D}]{Linux Libertine O}          \sample          \textcolor{red}{Problem 3:} only the right parenthesis extends\\     \textcolor{red}{Problem 4:} the underbrace became gibberish\\     Possible fix to 3 \& 4: include the extending brackets from  `Miscellaneous Technical' unicode block (\texttt{U+239B}--\texttt{U+23AA}); unfortunately it doesn't change anything.     \medskip          Libertine has a summation and integral symbol, let's try to use them:          \setmathfont[range={"2211,"222B}]{Linux Libertine O}          \sample          \textcolor{red}{Problem 5:} the summation symbol is too small; Note that the integral symbol was broken to an top and bottom parts (both exist in the font), but there are no top and bottom parts of the summation symbol in this font.     \end{document}      ![Trying to render a complex mathematical formula using Linux Libertine](http://i.stack.imgur.com/NPFia.png)


title: Interconnected graphs in pgfplots

text: Is it possible to create interconnected graphs in pgfplots (e.g. common grids), like the picture below? And, related to the question above, if you have one tikzpicture environment with two axis environments, is it possible to ensure, that both will have exactly the same measure on both _x_ and _y_ axis? ![enter image description here](http://i.stack.imgur.com/aHwf0.png) Edit: I tried to write x axis grid manually, but I had problems using foreach. E.g. example below simply does not work (bunch of endcsname errors).               \documentclass{minimal}     \usepackage{tikz,pgfplots}          \begin{document}     \begin{tikzpicture}     \begin{axis}[samples=505,domain=0:630]     \addplot {cos(x)};     \foreach \i in {180,360,540} {\node (a\i) at (axis cs:\i,0) {};}          \end{axis}     \end{tikzpicture}     \end{document}


title: footnotesize not working with longtable and landscape

text: I can get `\footnotesize` to work when I'm using `landscape` & `longtable`. However, my table is `landscape` with `table-->longtable` in the environment, and when I do this I can't get the `\footnotesize` to work. The following is my table. I can get the caption to be in `footnotesize` but not the `longtable`.                \documentclass[12pt]{article}           \usepackage{rotating}      \usepackage{longtable}      \usepackage{lscape}      \usepackage{caption}      \usepackage[margin=1in]{geometry}      \usepackage{setspace}      \setstretch{1}      \usepackage{booktabs}                \begin{document}           \begin{landscape}      \begin{table}[h]       \caption{STATISTICS}           \footnotesize             \vspace{-2mm}           THIS IS SOME TEXT THAT I NEED TO BE HERE.            \vspace{-4mm}           \end{table}      \begin{footnotesize}      \begin{longtable}{@{} l @{\extracolsep{\fill}} *{7}{c} @{}}       \toprule      & \multicolumn{1}{c}{Text 1111111}      & \multicolumn{1}{c}{Text 1111111}      & \multicolumn{1}{c}{Text 1111111}      & \multicolumn{1}{c}{Text 1111111}      & \multicolumn{1}{c}{Text 1111111}      & \multicolumn{1}{c}{Text 1111111}      & \multicolumn{1}{c}{Text 1111111} \\      \midrule      \endfirsthead      \multicolumn{5}{@{}l}{\emph{(continued)}} \\      \toprule      & \multicolumn{1}{c}{Text 1111111}      & \multicolumn{1}{c}{Text 1111111}      & \multicolumn{1}{c}{Text 1111111}      & \multicolumn{1}{c}{Text 1111111}      & \multicolumn{1}{c}{Text 1111111}      & \multicolumn{1}{c}{Text 1111111}      & \multicolumn{1}{c}{Text 1111111} \\      \midrule      \endhead      \midrule[\heavyrulewidth]      \multicolumn{8}{r@{}}{\emph{(continued)}}      \endfoot      \bottomrule      \endlastfoot           \multicolumn{4}{@{}l}{\underline{Unconditioning}} \\      Constant                           & 0.073, 0.072 & 0.060, 0.068 & 0.117, 0.082           & 0.034, 0.055 & 0.059, -0.005 & -0.130, -0.025 & -0.116, -0.114 \\                                         & (45) & (51) & (40)                                   & (28) & (32) & (43) & (16) \\      Dummy\textsuperscript{a}           & -0.087, -0.051 & -0.219, -0.161 & -0.358, -0.333     & -1.803, -1.594 & -2.131, -0.899 & -1.030, -0.829 & -1.451, -1.193 \\                                         & (14) & (10) & (117)                                  & (19) & (53) & (50) & (88) \\      R-squared\textsuperscript{b}       & 0.002 & 0.003 & 0.004                                & 0.022 & 0.017 & 0.011 & 0.009 \\      \\           \multicolumn{4}{@{}l}{\underline{UNCOND}} \\      Constant                         & 0.041, 0.042 & 0.028, 0.037 & 0.076, 0.046          & -0.007, 0.021 & 0.041, -0.012 & -0.125, -0.021 & -0.117, -0.114 \\                                       & (31) & (32) & (23)                                  & (23) & (27) & (44) & (16) \\      Dummy\textsuperscript{c} & 0.536, 0.465 & 0.755, 0.732 & 0.797, 0.761          & 0.910, 0.811 & 0.567, 0.395 & 0.628, 0.494 & 0.044, 0.054 \\                                       & (245) & (287) & (403)                               & (303) & (258) & (281) & (32) \\      Dummy                             & -0.032, -0.019 & -0.155, -0.098 & -0.197, -0.179    & -0.353, -0.282 & -1.341, -0.482 & -0.372, -0.217 & -1.451, -1.194 \\                                        & (12) & (13) & (55)                                  & (18) & (58) & (51) & (88) \\      R-squared                         & 0.065 & 0.119 & 0.15                                & 0.179 & 0.057 & 0.054 & 0.012 \\      \\           \multicolumn{4}{@{}l}{\underline{Unconditioning}} \\       Constant                           & 0.040, 0.047 & 0.016, 0.034 & -0.025, -0.024   & 0.004, 0.021 & -0.007, -0.024 & -0.127, -0.024 & -0.146, -0.132 \\                                         & (42) & (32) & (21)                              & (27) & (19) & (45) & (26) \\      Dummy Dummy                     & 0.534, 0.472 & 0.636, 0.602 & 0.802, 0.764      & 0.706, 0.682 & 0.610, 0.401 & 0.600, 0.474 & 0.040, 0.056 \\                                         & (241) & (280) & (404)                           & (280) & (268) & (268) & (31) \\      Dummy\textsuperscript{d}   & 0.013, 0.013 & 0.008, 0.010 & -0.018, -0.013    & 0.011, 0.009 & 0.007, 0.001 & 0.024, 0.000 & 0.059, 0.066 \\                                         & (18) & (29) & (19)                              & (24) & (21) & (33) & (39) \\      Dummyyyyyyyyy*Dummy                & -0.003, -0.008 & 0.128, 0.071 & 0.020, 0.007    & 0.194, 0.100 & -0.108, -0.057 & 0.294, 0.144 & -0.155, -0.162 \\                                         & (19) & (85) & (27)                              & (124) & (34) & (173) & (47) \\      R-squared                          & 0.068 & 0.133 & 0.153                           & 0.206 & 0.058 & 0.062 & 0.014 \\      \\                \end{longtable}      \end{footnotesize}      \end{landscape}           \vspace{1cm}                \end{document}


title: How to avoid exceeding TeX capacity when using multi-page tables?

text: I'm using `longtable` package (together with `xcolor` for alternating row colors and `booktabs` for elegant table headers) to generate a huge table. And by huge, I mean it has more than 900 lines and takes up more than 29 pages. However, I'm getting this error:               TeX capacity exceeded, sorry [main memory size=3000000].      My code is similar to this one:               \newcolumntype{D}{>{\raggedright\arraybackslash}m{54mm}}     % Plus a few other new column types          % Alternating colors starting on 3rd row     \definecolor{tabular-odd-color}{gray}{0.90}     \definecolor{tabular-even-color}{gray}{0.97}     \rowcolors{3}{tabular-odd-color}{tabular-even-color}          \begin{longtable}{DTCNAHHHHHH}          \toprule     col1 & col2 & col3 & col4 & col5 & col6 & col7 & col8 & col9 & col10 & col11 \\     \midrule     \endhead          % LOTS of rows here. I mean, maybe a few thousand, taking up 30, 40 or more pages.          \bottomrule          \end{longtable}      How can I avoid exceeding the TeX capacity? (by the way, I'm using `pdflatex` from `texlive`) (I've already read this page, but my rows already have blank lines between them, thus that solution does not apply to me.)


title: Equation cross references problem

text: I'm using the code below to get my equations numbered as (1a), (1b), (1c), (1d) and (1e).               \begin{subequations}       \begin{align}         a+b=c\label{eq1a}\\         b+c=d\label{eq1b}\\         c+d=e\label{eq1c}\\         d+e=f\label{eq1d}\\         e+f=g\label{eq1e}       \end{align}     \end{subequations}      If I use the `\ref{}` command, I'm getting the output as 1a–1e But, I need to get the final output as mentioned below 1a–e I have tried many ways, but I can't get the required output. Any suggestion?


title: Loops in dot2tex. Or easely draw complex graphs

text: **My original question :** Is it possible to use loops in dot2tex? I would like to type something like:               \documentclass[]{article}     \usepackage{tikz}     \usetikzlibrary{arrows,shapes,snakes,automata,backgrounds,fit}     \usepackage[pgf]{dot2texi}          \begin{document}          \begin{dot2tex}[tikz,options=-t math]     digraph G {     \foreach \x / \y in {0/1,1/2,2/3}     a\x -> a\y [label = "b_{\x,\y}"]          }     \end{dot2tex}               \end{document}      Instead of:               \documentclass[]{article}     \usepackage{tikz}     \usetikzlibrary{arrows,shapes,snakes,automata,backgrounds,fit}     \usepackage[pgf]{dot2texi}          \begin{document}          \begin{dot2tex}[tikz,options=-t math]     digraph G {     a0 -> a1 [label = "b_{0,1}"]     a1 -> a2 [label = "b_{1,2}"]     a2 -> a3 [label = "b_{2,3}"]          }     \end{dot2tex}               \end{document}      Thank you. Note that this is a toy example, I have several (complicated) cases where I could use loops. **EDIT** What I get from the comment it's that it is impossible. What I'm actually looking for is something that allow me to draw complex graph (I don't want to manage positioning of nodes as in tikz) and to use loops to define the graph (there are some regularity and it could save me a lot of typing). If you know such tool/packages please tell me. Thanks a lot.


title: Is there an easy way to hide comma (,) from the end of the indexed words?

text: I use               \usepackage{makeidx}     \makeindex      and then I index a word as `\index{word}`. After `\printindex` in the Index it is appear as > word, 1 and I want it to appear as > word 1 But I don't know how to make it.


title: A5-paper document with 55 letter on one line

text: Is it possible to write a document for A5-paper such that I can configure its margin widths and letter spacing such that a line contains at most roughly 55 letters?


title: How do I typeset arbitrary fractions like the standard symbol for .5 = ½?

text: I know I've seen somewhere how to typeset 1/2 as ½, but with arbitrary fractions (that is, a macro that takes two arguments and makes the first denominator and the second numerator...). Now I can't seem to find it. **How do I typeset an arbitrary fraction the same way as ½?**


title: How to prevent paragraph breaks after theorem environments?

text: By default, the list environments (such as `itemize`) have the nice property that if you add a blank line after it, it starts a new paragraph, and if you don't, the paragraph continues. So               The following objects     \begin{itemize}     \item car     \item tree     \item pupil     \end{itemize}     are countable.      will produce one paragraph, while               Here's a list of uncountable objects:     \begin{itemize}     \item hair     \item rice     \end{itemize}          And now for something completely different      gives two paragraphs. For the theorem type environments (I use the theorems from `amsart` class), no matter what I do after `\end{<theorem type>}`, the paragraph breaks. Is there a way to make them behave like `itemize` (so that page breaking depends on whether I insert a blank line after the environment)? **Edit** Since both of the answers so far enquires to why I want this behaviour, rather than the default, let me clarify a bit. I agree that it looks weird to state a theorem in the middle of a paragraph. But I actually want to use the behaviour for (short) definitions or setting of notations. For example, I may write               For the purposes of this monograph, all functions are infinitely differentiable.      That is, we usually work in the space     \begin{definition}     $C^\infty(\Real^k) \eqdef$ the space of complex-valued smooth functions.     \end{definition}     Often, however, we wish to ignore complications ``from infinity'', i.e.~from      the non-compactness of $\Real^k$. In these situations we want to use     \begin{definition}     $\mathcal{D} = C^\infty_c(\Real^k) \eqdef$ the space of complex-valued      smooth functions with compact support.     \end{definition}     Since one of our main tools will be the Fourier transform, the above definition      is not always satisfactory: the Fourier transform of a function in      $C^\infty_c(\Real^k)$ will necessarily not be in the same space by the      uncertainty principle. So a better space is     \begin{definition}     $\mathcal{S}\eqdef$ the space of complex-valued smooth functions with rapid      decay. That is, all functions $f$ such that $x^\alpha D^\beta f$ remain      bounded for all multi-indices $\alpha,\beta$.      \end{definition}     For convenience, we will also introduce the notations     \begin{definition}     $\mathcal{D}' \eqdef$ the space of distributions, or continuous linear maps      from $\mathcal{D}$ to $\Complex$; and similarly $\mathcal{S}' \eqdef$ the      space of \emph{tempered} distributions.      \end{definition}      I find the jagged edge caused by the indentation unpleasant. So no, this is not just an idle question.


title: Sorted bibliography not displayed

text: I have a tex file that was working perfectly with several bibliography parts with different sorting options. It is no longer working! Some bibliography parts are not displayed. My OS is Windows 7 Pro on a 64 bit platform. I am using: - TexnicCenter v2.02 stable 64 bit - Miktex 2.9 (with biblatex updated to v2.9a) - Biber v1.9 for biblatex v2.9 Here is a minimal example:               \documentclass[a4paper]{article}            \usepackage{filecontents}            \begin{filecontents}{refs1.bib}       @book{bbb,       title      = {bbb},       publisher  = {bbb},       author     = {BBB, Bbb},       year       = {2012}       }       @book{ccc,       title      = {ccc},       publisher  = {ccc},       author     = {CCC, Ccc},       year       = {2014}       }       \end{filecontents}            \begin{filecontents}{refs2.bib}       @book{aaa,       title      = {aaa},       publisher  = {aaa},       author     = {AAA, Aaa},       year       = {2013}       }       \end{filecontents}            \usepackage[       style=authoryear,       firstinits=true,       backend=biber]{biblatex}            \addbibresource{refs1.bib}       \addbibresource{refs2.bib}            \DeclareBibliographyCategory{ref1_cat}       \DeclareBibliographyCategory{ref2_cat}            \addtocategory{ref1_cat}{bbb,ccc}       \addtocategory{ref2_cat}{aaa}            \begin{document}            Main text. See refs \parencite{ccc,aaa,bbb}.            \printbibliography[title={Bibliography},sorting=nyt,heading=bibintoc]       \nocite{*}            \appendix            \printbibliography[title={Only ref 1 (nyt)},category=ref1_cat,sorting=nyt,heading=bibnumbered]       \nocite{*}            \printbibliography[title={Only ref 1 (ydnt)},category=ref1_cat,sorting=ydnt,heading=bibnumbered]       \nocite{*}            \end{document}        The output is the following: ![enter image description here](http://i.stack.imgur.com/BWgeg.png) The bibliography with `ydnt` sorting scheme is not displayed. Since such kind of examples was working fine before, I am suspecting an incompatibility between biber v1.9 for windows and biblatex which I has recently updated to v2.9a (I guess the previous version was v2.9). When I compile the tex code, I have the following warning:               Package biblatex Warning: File 'error_biber1.9_bilatex2.9a.bbl' is wrong format version - expected 2.4.      The format of the generated bbl file is v2.3. Is there any solution to this problem? I wanted to get back to the previous version (prior to v2.9a) of the biblatex package under Miktex but could not find how to do that (this is probably not the solution ...). I have no other option than to use biber v1.9 released for Windows and it is expected to work with biblatex v2.9, not v2.9a! Thanks in advance for your reply.


title: ntheorem with the [amsthm] option ignores styling of a theorem environment

text: I'm using `ntheorem` with the `amsthm` option, to define a theorem-like environment for stating notes. I should be getting an environment beginning with the word 'Note' in italic font, followed by the contents in normal roman font. Instead, I get 'Note' in boldface roman and the body in italic:               \documentclass{article}     \usepackage[amsthm]{ntheorem}     \theoremstyle{plain}     \theoremheaderfont{\normalfont\itshape}     \theorembodyfont{\normalfont}     \newtheorem*{myenv}{Note}          \begin{document}     \begin{myenv}     The quick brown fox jumps over the lazy dog.     \end{myenv}     \end{document}      Trying to define a new theoremstyle doesn't seem to work either:               \newtheoremstyle{nonumberabc}%       {\item[\normalfont\itshape \hskip\labelsep ##1\theorem@separator]\normalfont}%       {\item[{\normalfont\itshape \hskip \labelsep ##3}\theorem@separator]\normalfont}     \theoremstyle{abc}     \newtheorem*{myenv}{Note}      this gives the same results with the above document. What am I doing wrong? The problem does not occur if I drop the `amsthm` option - but then I don't get some nice amsthm definitions I'm expecting... (it was psychologically hard enough to drop amsthm for ntheorem after years or use!) Most importantly, I like the `amsthm` proof environment. So, for those suggesting that I just drop `amsthm` - how can I reproduce proof with the exact same behavior (including the QED box size etc.) with `ntheorem`? I can't just lift code out of `ntheorem`, because it doesn't seem to use its own theoremstyle commands to get the proof environment. Rather, it does something else.


title: How to rotate hyperlink with text

text: How can I rotate the link of a text in a node. Here is my MWE:               \documentclass{article}     \usepackage{tikz}     \usepackage{hyperref}          \begin{document}          \begin{tikzpicture}     \node (rect) [rectangle, fill=blue, rotate=90] {\hyperlink{rec}{Damn it!}};     \end{tikzpicture}          \end{document}      I can get rid of the box surrounding the text obviously but this does not solve my problem. Additionally, any way that I can link the node itself, that is the shape such as a rectangle, circle, etc? * * * Thanks all for the answers but I think my MWE was to minimal. To answer the answers below:   * with `\rotatebox` the shape changes,   * and I cannot hyperlink the whole environment because I have other nodes. So here is the new MWE: I would like the shape as in "shape ok" but the link as in "link ok" box; and just rotate and link one of the nodes.               \documentclass{beamer}     \usepackage{tikz}     \usetikzlibrary{positioning}     \tikzstyle{block} =[fill=red!20, rectangle, minimum height=1cm, minimum width=2cm]          \begin{document}          \begin{frame}     \makebox[\textwidth][c]{%     \begin{tikzpicture}%     \node (rect1) [block, rotate=90] {\hyperlink{link}{shape ok}};     \node (rect2) [block, above=2cm of rect1] {\rotatebox{90}{\hyperlink{link}{link ok}}};     \end{tikzpicture}}%     \end{frame}          \end{document}


title: Style inheritance in TikZ trees

text: As I read the rule for style inheritance in a tree (pgfmanual 18.4, page 215), the naked [rect] below should mean that the node labeled "empty" be rectangular. But it's not. What am I doing wrong? Thanks.               \begin{tikzpicture}[->,sibling distance=7mm, level distance=5mm,     rect/.style={inner sep=0pt,minimum size=2mm,draw,rectangle},     alive/.style={fill=orange,draw},     emph/.style={thick,yellow}]     \node[rect] (MRCA) at (2.5,4) {}         [rect]         child {node[alive](high){}             child {node {empty}             }         }     ;     \end{tikzpicture}


title: Citing author or year only without natbib

text: I have to submit this article, in which I need to cite               Smith [2012]      as opposed to               [Smith, 2012]      Easy. With `natbib` I just use `\citet`. Except that I just realised the publisher doesn't want `natbib` in my LaTeX file. Is there an alternative, other than manually writing "Smith [2012]"?


title: How do you get a scriptscriptstyle-sized prime?

text: As you go from `\displaystyle` to `\scriptstyle` to `\scriptscriptstyle`, letters and numbers, for instance, shrink. Weirdly, to my mind, the prime symbol (') shrinks from `\displaystyle` to `\scriptstyle`, but then is again the same size in `\scripstscriptstyle`. For example:               \[     a {\scriptstyle a} {\scriptscriptstyle a} \quad     ' {\scriptstyle '} {\scriptscriptstyle '} \quad     a' {\scriptstyle a'} {\scriptscriptstyle a'}     \]      ![Various prime sizes](http://i.stack.imgur.com/9YthS.png) The effect of this is that sometimes (eg in certain sub or superscripts or labels), primes look much too large relative to the surrounding symbols. **How should one produce a properly scriptscriptstyle-sized prime symbol?**


title: Upper case chapter titles in the table of contents?

text: How to write the chapter titles in Upper Case in the table of contents ?


title: Compilation taking too long when including svg

text: This is a general question. I have been very happy when using `inkscape` for my LaTeX files. Now I am preparing a presentation using `beamer` and I am trying to include `svg` files into my presentation using TeXmaker. I am having two problems. The first is that the compilation takes a long time to complete and the other is that scrolling in the `pdf` file is slow. If I want to find a replacement to the `svg` files in which format should I save my drawings?


title: Make the glossary title upper case in header

text: I'm using the `report` class with twoside parameter. I'm using `fancyhdr` to configure the headers/footer. I'm using the `glossaries` package to generate a glossary. The glossary is the only chapter in my document for which the title does not appear in upper case in the header. Here is how I print the glossary:               \clearpage     \phantomsection     \addcontentsline{toc}{chapter}{Glossary}          \printglossary      I'm using exactly the same code for the index and the title just works great. Is there a way I can force the title to upper case in the header ? EDIT: I created a MWE:               \documentclass{report}          \usepackage{fancyhdr}          \pagestyle{fancy}     \fancyhead{}     \fancyhead[LE,RO]{\slshape \nouppercase{\rightmark}}     \fancyhead[LO,RE]{\slshape \leftmark}          \fancypagestyle{plain}{         \fancyhead{}         \fancyhead[LE,RO]{\slshape \rightmark}         \fancyhead[LO,RE]{\slshape \leftmark}     }          \usepackage{glossaries}     \makeglossaries          \newglossaryentry{test}{       name=test,       description={test}     }          \begin{document}          \chapter{Introduction}     Ceci est un \gls{test}.           \printglossary          \end{document}


title: verbatim and CJK

text: I'm not familiar with chinese characters and fonts. But I have to type some characters into a document. `XeLaTeX` may be an option, but I'm looking for a solution with `pdflatex`. Here is my MWE, which I created with the help of other questions and answers:               \documentclass{article}     \usepackage{CJKutf8}     \begin{document}     \begin{CJK*}{UTF8}{gbsn}     中華人民共和國          ABC-1234     \begin{verbatim}     中華人民共和國     ABC-1234     \end{verbatim}     \end{CJK*}     \end{document}      I have two questions:   1. Is there a monospace font for chinese characters available for using in `verbatim` environments with same size than latin characters (I'm using MacTeX/TeXLive 2012)?   2. Why are not all 7 chinese symbols in the resulted pdf? ![result of pdflatex](http://i.stack.imgur.com/CylkR.png)


title: \newline not working with booktabs?

text: A while ago I had a question about having multi-line strings in a table cell ( http://tex.stackexchange.com/questions/3748/in-cell-newlines-in-tabular- environments). I remember seeing it working but I've just tried to use it again and ... \newline did nothing. A test LaTeX source is below, which, despite the \newline commands, it did not split the cells on multiple lines: ![alt text](http://i.stack.imgur.com/Laj7s.png)               \documentclass[12pt,titlepage]{article}     \RequirePackage[l2tabu,orthodox]{nag}     \usepackage[english]{babel}     \usepackage{pslatex}     \usepackage{setspace}     \setstretch{1.6}     \usepackage{booktabs}     \usepackage[final,babel]{microtype}     \usepackage[detect-all]{siunitx}     \setlist{nolistsep}     \frenchspacing          \begin{table}[htp]         \centering         \begin{tabular}{@{}l l l l@{}}               \toprule                & \textbf{Foo} & {\textbf{Bar}} & \textbf{Baz} \\               \midrule                 \textbf{Single line} & foo1 foo2 & bar1 bar2 & baz1 baz2 \\                 \textbf{Multiline} & foo1 \newline foo2 & bar1 \newline bar2 & baz1 \newline baz2 \\               \bottomrule         \end{tabular}         \caption {\small{bla bla}}\label{my-label}     \vspace*{-3mm}     \end{table}      Thanks in advance.


title: How can I get a date object in LaTeX?

text: I want a date object I can just sprinkle throughout my document at any moment. For example, I might type "Today (\date) happens to be quite nice."


title: Cleaning up TeXmacs LaTeX export

text: I recently found TeXmacs, and I find it excellent for quick note taking (for me, typing LaTeX is much too slow and messy for that). One of the reasons why I'm hoping TeXmacs will be useful for this is that it seems to have pretty decent LaTeX export. But it's not perfect. This question is about how to clean up the LaTeX exported by TeXmacs to make it suitable for sending to collaborators and submitting to journals. There are really two main difficulties I found:   1. In math mode, instead of `$f(x)$`, TeXmacs loves to produce `$f ( x)$`. This example is trivial, but with complex formulae all those extra spaces around the first bracket make things unreadable enough that I can't send the document like this to collaborators. Take for example something like `\frac{d^2}{d x^2} \ln f ( x) = \frac{f'' ( x)}{f ( x)} - \frac{f' ( x)^2}{f ( x)^2}`   2. Instead of the usual `\textbf`, `\emph`, etc., TeXmacs produces `\tmtextbf`, `\tmtexit`, etc. with definitions such as `\newcommand{\tmtextbf}[1]{{\bfseries{#1}}}`. This can be good, as it's customizable, but in a simple document that doesn't use much more formatting than this it'd be better to have just the standard `\textbf`, etc. Is there a way to easily expand these?   3. Where I'd write `i.e.\ something` in LaTeX, I get `{\tmabbr{i.e.}} something`. Again, is there an easy way to fix this? Does anyone here use TeXmacs to produce LaTeX? If yes, do you post-process the output? How? Is it possible to (easily) configure TeXmacs to produce LaTeX that's more suitable for my needs? Or are there tools for post processing TeXmacs output?


title: Using Bibtex within an article

text: I like using bibtex for generating my bibliography since it takes care of all the formatting for me. I'm wondering if/how it is possible to easily insert bibliographic information into other parts of an article or document. For instance, if I wanted to easily update the publication list in my CV, or for listing my publications in a grant proposal. Is there an easy way to do this?


title: Spliting a page in half horizontally

text: I am trying to fix two half-paged documents on one document, one on top of the other. The method below works pretty well so far, but I'm having trouble using `0.5\textheight` for the height of the second minipage. When I change `0.49` to `0.5`, the second page breaks onto another page. What am I doing wrong? Is there a better way to achieve what I'm looking for?               \documentclass{article}     \usepackage[vmargin=0.4in]{geometry}     \pagestyle{empty}     \parindent = 0.0in          \begin{document}         \begin{minipage}[t][0.5\textheight][t]{\textwidth}             Page 1         \end{minipage} \\         \begin{minipage}[b][0.49\textheight][t]{\textwidth}             \vspace{0.4in}             Page 2         \end{minipage}     \end{document}


title: Automatically convert `<=` to `\leq`

text: Is there a way to automatically convert instances of `<=` and `>=` to `\leq` and `\geq` ? I keep typing `<=` and `>=` by mistake.


Another way of going about my problem with a non-LaTeX collaberator, Is there a way to dump out the text of a LaTeX document? As in, instead of making a nice PDF, just give me the raw text output, sans fancy formatting? So if I had something like:               \documentclass{article}     \begin{document}     Foo \emph{bar} baz     \end{document}      It would give me a .txt with just "foo bar baz" in it (I could always try and copy and past out of the PDF I guess....)


title: What are these warnings for minitoc package?

text: I'm using a `scrreprt` document class to write my lecture notes in a condensed form for easy reviewing later. I organized the `main.tex` in a modular file and I downloaded, installed and loaded the `minitoc` package because I wanted to have a mini-TOC at the beginning of each chapter. However, when I compile with pdfLaTeX I get 8 warnings: some are not that important (`Italian not defined, using English instead`), others are perplexing:               Package minitoc(hints) Warning: W0030     (minitoc(hints))                --- The \part command is altered      (minitoc(hints))                after minitoc.          Package minitoc(hints) Warning: W0023     (minitoc(hints))                --- It may be the consequence      (minitoc(hints))                of loading the ``hyperref'' package.          Package minitoc(hints) Warning: W0028     (minitoc(hints))                --- The \chapter command is altered      (minitoc(hints))                after minitoc.      Are these serious warnings? Do I _need_ to get them fixed? It's not impeding me to obtain a final *.pdf file, but I wonder if it is signaling a much serious underlying problem that I'm missing. After all, it's the first time I'm using `minitoc` package. I've also noticed there is a *.mtc0, *.mtc1, *.mtc2, *.mtc3 etc that are created after compilation. If I erase them, next time there'll be *.mtc4 and so forth.   * I'm on a Debian 7.3 (KDE desktop) machine, with    * TeX Live 2013 installed "manually" (ie with a dummy *.deb package, not via repository) and    * Kile editor 2.1.0. Here's a minimal working example: 1) `main.tex`               \documentclass[a4paper,10pt]{scrreprt}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[italian]{babel}          \usepackage{amssymb, amsmath, amsfonts}           \usepackage[math,bible]{blindtext}     %\usepackage{titlesec}     \usepackage{hyperref}     \hypersetup{pdfstartview=FitH}      \usepackage[italian]{cleveref}      \usepackage[italian]{minitoc}               %opening     \title{M.T.N.}     \author{Myself}     \date{}          \begin{document}          \maketitle     \thispagestyle{empty}     \clearpage     \mbox{}     \cleardoublepage          \dominitoc     \tableofcontents     \clearpage     \input{Err_w1}     \end{document}      2) `Err_w1`               \chapter{Topic One}          \minitoc     \clearpage     \section{First Topic}     \blindmathpaper          \section{Second Topic}     \blindtext          \subsection{Second Topic, first subsection}     \blindtext


title: Maximise vertical space between subfigures with \subcaption

text: I have 2 subfigures vertically arranged using the subcaption package. I can set the vertical space between the 2 to something specific (using `\bigskip` or `\vspace`), but I would like to put as much space as possible between the 2 instead, so that the first subfigure is at the top of the page, and the second one at the bottom (with the caption for the whole figure beneath it) - something like `\vfill`. Minimal working example:               \documentclass[10pt,a4paper]{article}     \usepackage{graphicx}     \usepackage{subcaption}          \begin{document}     \begin{figure}         \begin{subfigure}{\textwidth}             \centering \rule{4cm}{4cm} % 1st subfigure: \includegraphics{fig}...         \end{subfigure}         \par\bigskip % maximise vertical space here instead         \begin{subfigure}{\textwidth}             \centering \rule{4cm}{4cm} % 2nd subfigure: \includegraphics{fig}...         \end{subfigure}     \caption{Some caption}     \end{figure}     \end{document}


title: Sections in appendices are moved to table of contents under references instead of loa

text: I am very new to LaTex. I started by using a template in Lyx. In this template, chapters,sections etc are written in table of contents and only chapter names for the appendices are written to list of appendices (page 3 and 6 approximately). The LaTex code that causes this is as follows:               \bibliographystyle{unsrt}     \bibliography{aliThesisBibliography}          \part*{APPENDICES\thispagestyle{empty}}     \renewcommand*{\chapterheadendvskip}{\vspace{2cm}}      \renewcommand*{\chapterheadstartvskip}{\vspace{1cm}}          \makeatletter     \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne     \if@mainmatter     \refstepcounter{chapter}%     \typeout{\@chapapp\space\thechapter.}%     \addcontentsline{loa}{chapter}%     {\protect\numberline{\thechapter}#1}%     \else     \addcontentsline{loa}{chapter}{#1}%     \fi     \else     \addcontentsline{loa}{chapter}{#1}%     \fi     \chaptermark{#1}%     \addtocontents{lot}{\protect\addvspace{10\p@}}%     \addtocontents{lof}{\protect\addvspace{10\p@}}%     \if@twocolumn     \@topnewpage[\@makechapterhead{#2}]%     \else     \@makechapterhead{#2}%     \@afterheading     \fi}     \makeatother          \addtocontents{toc}{\protect\setcounter{tocdepth}{0}}      I think this last line is set to exclude sections. If I remove the code and macro above, everything will be shown in toc and my loa page will be empty. If I change the number in braces in the last line above, (I tried many numbers) the Appendices chapter names will be written to list of appendices but their corresponding sections will be shown as sections of "References" in the table of contents. How can I change the code above so that both chapters and sections in the appendices part are shown only in the list of appendices page?


title: Drawing multiple arrows at arbitrary angles in a common direction, with overlap

text: I am trying to draw a diagram with `tikz` that has multiple arrows (here I have 4) between nodes, where the nodes are placed arbitrarily in a diagram. My best (that is, shortest and easiest to understand) solution has been to use the `draw` option `double`, but this creates unwanted overlap of the arrows, as in I cannot see the arrows below other arrows, and I would like to see all of them. My current situation has the below code:               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{calc}     \tikzset{state/.style={circle,draw=black, very thick,minimum size=8ex,fill=white}}          \begin{document}          \begin{tikzpicture}          \node (x) at (0,0) {};     \coordinate (1) at ($(x) + (125:2)$) ;     \coordinate (2) at ($(x) + (55:2)$) ;     \coordinate (3) at ($(x) + (350:2)$);     \coordinate (t1) at ($(x) + (190:2)$);     \foreach \i\j in {1/2,2/3,1/t1,2/t1,1/3,3/t1} {         \draw[draw=black,double distance=15pt] (\i) to (\j);         \draw[draw=black,double distance=5pt] (\i) to (\j);}     \node[state] (1a) at (1) {1};     \node[state] (2a) at (2) {2};     \node[state] (3a) at (3) {3};     \node[state] (t1a) at (t1) {3};     \draw[loosely dotted,ultra thick] ($(x)+(290:1.8)$) to [bend left=30] ($(x)+(250:1.8)$);          \end{tikzpicture}          \end{document}      Yielding the following result: ![enter image description here](http://i.stack.imgur.com/1FQZs.jpg) I want to see all the arrow lines, not just the ones drawn last. This situation happens because with the `double` option two lines are actually drawn, one thinner than the other, the inside one being colored white. Looking at some similar questions here, the solutions were either case-specific or used `nodename.west` or similar directions along with a `\foreach` loop and some `\yshift` commands. However, since my arrows do not all go either horizontally or vertically, and I would like the normal distance between two adjacent arrows to be the same throughout, and since I am not a `tikz` whiz, I could not adjust those solutions to my needs. Any help on this issue is much appreciated.