title: Dot instead of bibentry

text: I'm having some trouble with BibTeX, in particular with this bib entry:               @Proceedings{un9,     title = {\donothing{i}}{Disarmament, demobilization and reintegration - Report of the Secretary-General},     year = {2006},     address = {New York},     organization = {UNGA [United Nations General Assembly]},     note = {U.N. Doc. A/60/705},     }      In .bbl file, it becomes:               \bibitem{un9}     {\em \donothing{i}}.      and I got only a dot in the final printing. That's the code I'm using, any suggestion?               \documentclass{thesis}          \usepackage{indentfirst}     \usepackage{fancyhdr}     \usepackage{graphicx}     \raggedbottom     \usepackage[a4paper,top=4cm,bottom=4cm,left=3cm,right=3cm]{geometry}     \pagestyle{empty}          \usepackage[english]{babel}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{textcomp}     \usepackage[utf8]{inputenc}     \usepackage{microtype}     \usepackage{enumitem}          \bibliographystyle{siam}     \usepackage[numbers]{natbib}     \usepackage{chapterbib}     \providecommand*{\donothing}[1]{}          \frenchspacing     \usepackage{setspace}     \onehalfspacing          \usepackage{url}     \urldef\myurl\url{http://www.peacekeepingbestpractices.unlb.org/Pbps/library/Handbook%20on%20UN%20PKOs.pdf}     \urldef\urlhazen\url{http://www.un.org/esa/socdev/sib/egm/paper/Jennifer%20Hazen.pdf}     \urldef\berlinplusurl\url{http://www.consilium.europa.eu/uedocs/cmsUpload/03-11-11%20Berlin%20Plus%20press%20note%20BL.pdf}     \urldef\urlecps\url{http://unrol.org/doc.aspx?d=2117}          \newcommand{\citation}[1]{``#1''}     \makeatletter     \renewcommand\@biblabel[1]{}     \makeatother          \begin{document}     \cleardoublepage     \nocite{*}     \renewcommand\bibsection{\subsection*{UN documents}}     \bibliography{un}     \bibliographystyle{siam}     \end{document}


title: Why does LaTeX tell me that a { is missing?

text: Whenever I compile my document including the following code, it produces satisfactory output on the pdf, but gives me an error:               43     Missing { inserted.     <to be read again>                         \gdef      l.43 \item $\mu_\hat{p}                            $ = mean of all possible values of $\hat{p} = \pi$. \\      * * *               \begin{itemize}     \item $\mu_\hat{p}$ = mean of all possible values of $\hat{p} = \pi$. \\     \item $\sigma_\hat{p}$ = standard deviation of all possible values of \^p =     $\sqrt{\frac{\pi(1-\pi)}{n}}$ \\     \item CLT (for \^p): If $n\pi \geq 10$ \underline{AND} $n(1-\pi) \geq to$, then the histogram of all possible values of \^p will be approximately normal. \\     \end{itemize}      What did I do wrong?


title: Triple underlining

text: I am quoting passages from ms. letters and need to underline a few words with three lines. Does a command exist for doing so? I've consulted Melchior Franz's `soul` package documentation from 2003 and Donald Arseneau's `ulem` package documentation from 2011.


title: \mediabutton --- ! Undefined control sequence

text: The following simple source file incurs "! Undefined control sequence" error.               \documentclass[]{article}     \usepackage{media9}      \usepackage[english]{babel}     \begin{document}     \includemedia[     label=vp,     width=0.6\linewidth,height=0.45\linewidth,       activate=pageopen     ]{}{VPlayer.swf}     \mediabutton[mediacommand=vp:play]{\fbox{\strut Play}}       \end{document}      The Error Information is as follows:               ! Undefined control sequence.     l.10 \mediabutton                      [mediacommand=vp:play]{\fbox{\strut Play}}     ?       Process has been terminated ...


title: Error from equation

text: Below is a MWE. While the pdf output seems ok, TeXniccenter displays error in the equation line. Not able to understand what's wrong. Happens even when I put in the code to close the curly brackets.               \documentclass{article}%          \usepackage{amsmath}%     \usepackage{amsfonts}%     \usepackage{amssymb}%     \usepackage{graphicx}     \usepackage{comment}          \begin{document}     $\mu(S_{QX})=N$ where $S_{QX}=\left\{c\in N \lvert $U_{c}(X) > U_{c}(Q)$\} $      \end{document}


title: Why and when we need to renew rm/ss/tt default font

text: I am a new latexer, I found some example renew these three font at the preamble part like this               \renewcommand{\rmdefault}{somefont}      Can anyone tell me how this command effect, When we need to do that? I also found a tricky example.               \SetSymbolFont{operators}   {normal}{OT1}{cmr} {m}{n}     \SetSymbolFont{letters}     {normal}{OML}{cmm} {m}{it}     \SetSymbolFont{symbols}     {normal}{OMS}{cmsy}{m}{n}     \SetSymbolFont{largesymbols}{normal}{OMX}{cmex}{m}{n}     \SetSymbolFont{operators}   {bold}  {OT1}{cmr} {bx}{n}     \SetSymbolFont{letters}     {bold}  {OML}{cmm} {b}{it}     \SetSymbolFont{symbols}     {bold}  {OMS}{cmsy}{b}{n}     \SetSymbolFont{largesymbols}{bold}  {OMX}{cmex}{m}{n}     \SetMathAlphabet{\mathbf}{normal}{OT1}{cmr}{bx}{n}     \SetMathAlphabet{\mathsf}{normal}{OT1}{cmss}{m}{n}     \SetMathAlphabet{\mathit}{normal}{OT1}{cmr}{m}{it}     \SetMathAlphabet{\mathtt}{normal}{OT1}{cmtt}{m}{n}     \SetMathAlphabet{\mathbf}{bold}  {OT1}{cmr}{bx}{n}     \SetMathAlphabet{\mathsf}{bold}  {OT1}{cmss}{bx}{n}     \SetMathAlphabet{\mathit}{bold}  {OT1}{cmr}{bx}{it}     \SetMathAlphabet{\mathtt}{bold}  {OT1}{cmtt}{m}{n}      Should I define all this font if I want to get high quality typesetting. Is there some other fonts(rm,ss,tt,symbol,alphabet) I don't list here.


title: Is there a class to print less pages?

text: I detect a lot of mistakes **only** when I read the paper printed. For some mysterious reason, I do not see these errors on my screen. So I used to print a lot, and only to type-check. I use double-sided printing of course but there are still plenty of space wasted ; with `LaTeX` big margins (among other things), I have to print more pages than necessary. I am wondering if there is a document class designed to save paper by optimizing the space. Perhaps a class which will set the text in several columns, put some minimal margins, reduces space between titles, ... Of course, the result will be ugly but it is just to type-check, not to publish. I know I could set myself settings in order to achieve exactly what I want. But the idea is to have to change _only_ the document class from article or book to this saving paper class when you are at the type-check stage. Do someone know such class?


title: Correctly scaling a tikzpicture

text: I was wondering which is the correct way to scale a tikzpicture. I tried with               \begin{tikzpicture}[scale=0.50]      but what I obtain is that distances between elements are scaled but not their sizes or text size too. It's like if the picture collapses on itself, without correctly scaling (as I would imagine, like having a zoom factor) Am I missing something? Should I use a different command or what?


title: How to make \cite command cite 'author-pages' via biblatex?

text: How to create a biblatex cite style 'author-pages' (just like 'author-year' style) with hyperlink? e.g. **(Ben, 41)** \---single citation, **(Ben, 41; 43-45)** \---multiple citations I think the command should be able to grab info from the .bib so there is no need to manually input something like this: `\cite[pages]{key}` After browsing the manual, I got the following workaround:               \newcommand{\acite}[1]{(\citeauthor{#1},   \citefield{#1}{pages})}     \newcommand{\bcite}[1]{\citeauthor{#1}, \citefield{#1}{pages}}          \DeclareCiteCommand{\citeauthor}     {\boolfalse{citetracker}%         \boolfalse{pagetracker}%             \usebibmacro{prenote}}     {\ifciteindex         {\indexnames{labelname}}         {}%         \printtext[bibhyperref]{\printnames{labelname}}}     {\multicitedelim}     {\usebibmacro{postnote}}      However, that workaround won't generate hyperlink for 'pages'. Also, it becomes quite untidy if I want to cite multiple sources. So, I want to have a solution that is more similar to the built-in `\cite` command.


title: Page placement using blowup package

text: I am trying to rescale a book which has the dimensions 152x229 mm set with the geometry package into 165x242mm using the blowup package. After some messing around I have managed to get it to rescale by giving the paramater noscale. (what's up with that btw, without noscale it doesn't rescale at all and if I give noscale it does rescale -- I really expected the opposite behavior...) However I can only get either my right hand side or my left hand side pages to be correctly placed. If I use this command:               \blowUp{paper={165mm,242mm}, noscale, pos={left, inside, top}}      my right hand side pages look good, and if I give this command:               \blowUp{paper={165mm,242mm}, noscale, pos={left, outside, top}}      my left hand side pages look good. In both situations the page not looking good is set about half a page to far to the left. I have come up with this solution by trial and error. If I don't give any pos at all the pages are set with just one little corner inside the printed area. Does someone know how this can be fixed and if not then perhaps at least someone knows what these paramaters actually mean. Especially the inside and outside ones feels a bit like magic to me. The documentation only says they exist but not really what they do... :(


title: How to make the title of paragraph bold and uppercase at the same time?

text: I cannot make tim bold and uppercase at the same time, if I do this:               \titleformat{\paragraph}[runin]     {\normalfont\scshape\bfseries}{\theparagraph}{1em}{}      they are bold but not uppercase if I do               \titleformat{\paragraph}[runin]     {\normalfont\scshape}{\theparagraph}{1em}{}      then they are uppercase but not bold. How could I solve it? Thanks!


title: Renew \ref command doesn't work

text: I'm trying renew \ref command to auto detect equation and figure. All my labels of equations start with "eq:" and all labels of figures with "fig:". So I try this way, but it isn't works for me:               \documentclass[a4paper, 12pt]{article}     \usepackage{graphicx}     \usepackage[colorlinks=true]{hyperref}          \makeatletter     % Is it equation? => add brackets     \newcommand\myref[1]{\in@{eq:}{#1} \ifin@ (\ref{#1}) \else \ref{#1} \fi }     \makeatother          %\let\ref\myref     \renewcommand{\ref}[1]{\myref{#1}}     \renewcommand{\cite}[1]{\myref{#1}}          \begin{document}     Cite to eq: \cite{eq:test}, cite to fig: \cite{fig:test} % WORK FINE, add brackets     Ref to eq: \ref{eq:test}, ref to fig: \ref{fig:test}     % DOESN'T WORK :-(          \begin{figure}      \includegraphics[width=13cm]{img/test.png}      \caption{test}      \label{fig:test}     \end{figure}          \begin{equation}      a = b      \label{eq:test}     \end{equation}          \end{document}      The output is, that \cite behave as I want (add brackets, if label starts with "eq"), but \ref doesn't. It is ignoring me:-( (I inspired in thread http://tex.stackexchange.com/questions/1920/renewcommand-cite-does-not-work ; so I tried command \let too) I know about \eqref, but I have in many documents \ref and now I want to highlight equations with brackets. Some idea? Thanks.


title: How to change the position of the page number in the first page of every chapter of a book?

text: I am using the book.cls and I want that the page number of the first page (only the first page) of every chapter be at the bottom and on the right. And page numbering of the other pages remain intact. Here is my .tex file:                \documentclass[11pt,a4paper,twoside]{book}     \usepackage{lipsum}     \usepackage{fancybox,fancyhdr}     \pagestyle{fancy}     \renewcommand{\chaptermark}[1]{%             \markboth{#1}{}}     \renewcommand{\sectionmark}[1]{%             \markright{\thesection\ #1}}     \fancyhf{}      \fancyhead[LE]{\small\leftmark}     \fancyhead[RO]{\small\rightmark}     \fancyhead[RE,LO]{\textbf{\thepage}}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\chaptermark}[1]{%     \markboth{\thechapter\ #1}{}}     \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}     \begin{document}     \chapter{Chapter one}     \section{Section one}     \lipsum[1-10]     \end{document}      How can I do this?


title: biblatex: "Warning: Value out of range at entry..."

text: I have the latest version of latexmk (4.26) installed on Mac OS X 10.7.1. I often get the following message (basically, for all references in the text) on compiling via `latexmk -pvc -pdf`:               Package biblatex Warning: Value out of range     (biblatex)                at entry 'foo' on input      line bar.      Has anyone seen this before and knows what goes wrong? A similar question was posted here https://groups.google.com/group/comp.text.tex/browse_thread/thread/5a2a0d7ab113a151?hl=de (see last post), but was not answered yet. The key "foo" is related to a valid entry in the .bib file and the .bib file is also found (so these two sources of errors are ruled out). * _EDIT: Here is a minimal example *_               % (1) Compile with latexmk minimal.tex     % (2) I had the latest version: Latexmk, John Collins, 9 August 2011. Version 4.26     % (3) My latex distribution is: TeXLive-2011 v. 2.0 (Build 150) installed via the latest MacTeX distribution.      % (4) I work on Mac OS X 10.7.2     % Note: I used latexmk and biblatex on 10.6 with TeXLive-2010 for quite some time (also with DeclareFieldFormat{labelyear}) without flaws           \documentclass{scrartcl}          \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage[american]{babel}     \usepackage[     style=authoryear,     uniquename=false,     hyperref=true,     maxnames=2,     date=short     ]{biblatex}          \DeclareFieldFormat{labelyear}{\mknumalph{#1}} % => comment this out and it works!          \usepackage{filecontents}     \begin{filecontents}{mybib.bib}     @article{mykey,     author={TeX, L.},     journal={Journal of LaTeX questions},     pages={1--10},     title={{Minimal title}},     volume={1},     number={1},     year={2011}}     \end{filecontents}          \bibliography{mybib}          \begin{document}      Some text     \par\bigskip     \textcite{mykey}     \par\bigskip     Some more text     \printbibliography      \end{document}


title: Should points in geometry be italic?

text: Variables should be italic, that's where we all agree (I think). So, a length of a segment could be marked with _a_. What about using |AB| for length of line segment? What about notation for a triangle? Should it be _ABC_ or ABC?


title: Reusing parts of TikZ animation in beamer

text: I'd like to reuse part of an animated TikZ figure in `beamer`. Before switching to TikZ, I built PDF animations with IPE, and could select specific `page`s in the `\includegraphics{}` command. To do the same in TikZ, my approach would be to generate standalone tikz figures in PDFs and do the same as before. I'm wondering whether there is a more intelligent way that avoids the need for multiple files. Note that the `\againframe{}` command won't help, since I want to have other content on the slide with the repeated animation as well. Here is a minimal example:               \documentclass{beamer}     \usepackage{tikz}     \tikzset{         invisible/.style={opacity=0},         visible on/.style={alt={#1{}{invisible}}},         alt/.code args={<#1>#2#3}{%             \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} % \pgfkeysalso doesn't change the path         }}     \begin{document}         \begin{frame}{test}             This is the first frame, which contains an animation:             \begin{tikzpicture}                 \node[rectangle](a){A};                  \node[rectangle,visible on=<2>] (b) at (0, 2) {B};                 \draw[->,visible on=<2>] (a) -- (b);             \end{tikzpicture}         \end{frame}         \begin{frame}{test2}             This is the second frame, which should include the figure from the 1st,              but only the final, i.e. second part of the animation.                  % ....?         \end{frame}     \end{document}


title: Using an expanded macro for optional environment argument

text: I'd like to open an environment, passing the content of a macro to the optional arguments. Up to now I tried different approaches using \expandafter, however I could not get the expected behaviour.               \RequirePackage{graphicx}     \RequirePackage{xkeyval}          % In my original code I've got some key definition     % for [myStyle]{floating} at this place, I guess the real     % definition does not matter but would distract.          % Place an image within a floating environment and add caption     % and label automatically     \newcommand{\img}[2][]{         \setkeys*{Gin}{#1}         \setkeys[myStyle]{floating}{\XKV@rm}              \begin{figure}[\XKV@myStyle@floating@placement@value]             \includegraphics{#2}             \caption{\XKV@myStyle@floating@caption@value}             \label{fig:\XKV@myStyle@floating@label@value}         \end{figure}     }      Now, when I'll try to use that \img command like:               \img[caption = A picture, label = TheLabel, placement = h!]{mm-01-01}      The picture get's inserted, it has the label and the caption, but the placement option seems to be ignored. Why? And how do I solve this without defining a new environment? Below you'll find the complete code:               \documentclass[          paper = a4,          fontsize = 11pt,          index = totoc,          listof = totoc,          parskip     ]{scrartcl}                    \usepackage{xkeyval}     \usepackage{graphicx}     \usepackage{lipsum}                    \makeatletter     % \parameter caption The caption of the item within the floating environment.     % If caption is empty, no caption will be placed.     \define@key[myStyle]{floating}{caption}[]{         \PackageInfo{myStyle}{Setting caption to "#1"}     }          % \parameter label The label of the item within the floating environment.     % If label is empty, no label will be placed.     \define@key[myStyle]{floating}{label}[]{          \PackageInfo{myStyle}{Setting label to "#1"}     }          % \parameter placement Can be used in the same way as the optional placement     % argumants of floating environments     \define@key[myStyle]{floating}{placement}[]{         \PackageInfo{myStyle}{Setting placement to "#1"}     }          % Setting default values.     \savekeys[myStyle]{floating}{caption,label,placement}     \presetkeys[myStyle]{floating}{caption, label, placement=htbp}{}                    \newcommand{\img}[2][]{          \setkeys*{Gin}{#1}          \setrmkeys[myStyle]{floating}          \begin{figure}              \centering              \includegraphics{#2}              \caption{\XKV@myStyle@floating@caption@value}              \label{fig:\XKV@myStyle@floating@label@value}          \end{figure}     }     \makeatother                    \begin{document}     \lipsum[2]          The picture \ref{fig:APicture} shall be located exactly after this line,     however it goes on the top of the page     \img[         label = APicture,         caption = Witwe Bolte,         placement = h!,         width = 0.3\textwidth     ]{mm-01-01}          \lipsum[3]     \end{document}


title: How to get a vertical bar which is longer than \mid ?

text: sometimes when writing mathematical expression with partial derivatives, one needs to write a vertical bar afterwards and write the value at the which the partial derivatives are being computed as subscripts. See for example the bottom post here: http://www.physicsforums.com/showthread.php?t=63809 However, the \mid symbol doesn't produce a tall bar that corresponds to the size of the partial derivatives term. Is there a way to have a taller bar? PS: Some other posts here mention \middle| but this doesn't compile on my computer. Thanks in advance....


title: Changing subfig \subfref format

text: I'd like to know how to hack `subfig` in order to change the format of `\subref`. The current format, when `subfig` is initialized with `listofformat=parens` yields output like 4.5(b) . I'd like to add a space between the 4.5 and (b). I know the documentation of `subfig` says that new formats can be defined with `\DeclareSubrefFormat{hkeyword valuei}{hcodei}` but I haven't managed to actually get hat to work. Does anyone have an example of how the format can be changed?


title: How do I get rid of this line spacing after multicols?

text: How do I get rid of the extra spacing after `multicols`?               \documentclass{article}     \usepackage{amsmath}     \usepackage{anysize}     \usepackage{lipsum}     \usepackage{multicol}     \begin{document}         \begin{multicols}{2}             \noindent    \[ a = b \]             \columnbreak \[ a = b \]         \end{multicols}         \noindent \lipsum     \end{document}      Result: ![](http://i.stack.imgur.com/BZVeR.png)


title: Create a keyword using the newalg package and algkey

text: I'm using the newalg package to typeset some algorithms, and I'd like to be able to typeset a keyword using the algkey macro. the problem is that I can't get it to work. Here's what I'm trying to do:               \begin{algorithm}{PromoteServer}{x}     servers \= \CALL{GetMeshServers}(x) \\     \begin{FOR}{\EACH M_n \IN servers}         \begin{IF}{n \eq \algkey{sizeof}(servers)}         \ELSE         \end{IF}         \CALL{AssignCachePartner}(M_{n+1})     \end{FOR}     \end{algorithm}      Where am I going wrong? The documentation for the package doesn't give any examples....


title: Define and iterate a list of items

text: I'd like to have a dynamic list of items that I define at one point in my document and that I use in a table elsewhere by iterating through the items. To clarify what I mean, here you go with a minimal solution:               \documentclass{scrartcl}          \usepackage{ltxtable}     \usepackage{booktabs}          \usepackage{fltpoint}     \usepackage{numprint}          %\newitem{nameoflist,     %  date = {2011-11-03},     %  description = {Item A},     %  amount = {29}     %  price = {19}     %}     %\newitem{nameoflist,     %  date = {2011-11-27},     %  description = {Item B},     %  amount = {32}     %  price = {22}     %}          \begin{document}          \newcommand*{\initsubtotal}{\global\def\subtotal{0}}     \newcommand*{\addsubtotal}[1]{\fpAdd{\subtotal}{\subtotal}{#1}\global\let\subtotal\subtotal}     \newcommand*{\calclinetotal}[2]{\fpMul{\linetotal}{#1}{#2}}          \initsubtotal          \begin{longtable}{cclcrr}         \textbf{Pos.} &         \textbf{Date} &         \textbf{Description} &         \textbf{Amount} &         \textbf{Price} &         \textbf{Total} \\         \midrule       \endfirsthead         \textbf{Pos.} &         \textbf{Date} &         \textbf{Description} &         \textbf{Amount} &         \textbf{Price} &         \textbf{Total} \\         \midrule       \endhead         \multicolumn{5}{r}{Sum} & \numprint{\subtotal} \\       \endfoot         \midrule         \multicolumn{5}{r}{Sum} & \numprint{\subtotal} \\       \endlastfoot            %\foreachitem{nameoflist}{index}{       %  \itemindex &       %  \itemdate &       %  \itemdescription &       %  \itemamount &       %  \numprint{\itemprice} &       %  \calclinetotal{\itemamount}{\itemprice}       %  \addsubtotal{\linetotal}       %  \numprint{\linetotal} \\       %}          \end{longtable}          \end{document}      I've commented out the definition and usage of the items because these points in code are only exemplary solutions of how I'd like to have it. I already tried packages like `arrayjob`, `forloop`, `forarray`, and other similar packages but them packages and/or their usage turned out to be absolutely uncomfortable provided that it did work at all (a complete, working solution I couldn't figure out so far regardless of being comfortable or not). As you can see, the definition of the items I've inspired by the common style of BibTeX entries. The usage is just a straightforward idea of how it would be absolutely comfortable (at least for the given purpose).


title: Why does XeLaTex mess up my em-dashes and quotation marks?

text: > **Possible Duplicate:**   >  fontspec with Helvetica breaks quotes I'm using `XeLaTeX` with the `fontspec` package and `Adobe Garamond Premier Pro`. This works great, except that my `em-dashes` and quotation marks get all messed up. For example, entering `---` (i.e., three consecutive hyphens) in the input file, I get three hyphens in the output file. Ordinary `LaTeX` converted the three hyphens into an `em-dash` in the output file, as it should. Same for quotation marks: simply typing 'Text quoted' doesn't give me those nice curly quotation marks anymore. I'm guessing it has something to do with font encodings, but being a total noob, I don't know what to do about it. Thanks for reading!


title: biblatex authoryear-comp and name aliases

text: Using the `authoryear-comp` style I often cite different authors having the same last name. The `biblatex` package options               backend=biber,style=authoryear-comp,firstinits=true,uniquename=init      eliminate ambiguities by adding author initials to these citations. Problem is that I also cite some prolific authors who don't consistently use their middle name or hyphenate their first and middle names. For example in the document below I get the citation: > J.-P. Doe 2005; J. Doe 2006; J. P. Doe 2007; J. P. Doe and Jones 2008; J.-P. > Doe and M. Smith 2009; M. Smith and Jones 2011; A. Smith and J. Smith 2011 but there is really only one Doe here. Name inconsistencies for Doe in the reference list are fine as they accurately reflect the bibliographic data. But I'd rather have the citation be: > Doe 2005, 2006, 2007; Doe and Jones 2008; Doe and M. Smith 2009; M. Smith > and Jones 2011; A. Smith and J. Smith 2011 Is there an easy way to define author/editor name aliases? The `shortauthor` field offers one approach, but ideally I'd like to avoid ongoing edits to the `bib` file.               \documentclass{article}     \usepackage[american]{babel}     \usepackage{csquotes}     \usepackage[backend=biber,style=authoryear-comp,firstinits=true,uniquename=init,sorting=none]{biblatex}          \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @Book{hyphen,       author = {Doe, John-Paul},       title = {A book by John-Paul Doe},       publisher = {Publisher},       year = {2005}}     @Book{nomiddle,       author = {Doe, John},       title = {Another book by John-Paul Doe},       publisher = {Publisher},       year = {2006}}     @Book{nohyphen,       author = {Doe, John Paul},       title = {Yet another book by John-Paul Doe},       publisher = {Publisher},       year = {2007}}     @Article{initials,       author = {Doe, J. P. and Jones, J.},       title = {An article coauthored by John-Paul Doe},       journal = {Journal title},       year = {2008}}     @Article{hypheninitials,       author = {Doe, J.-P. and Smith, M.},       title = {Another article coauthored by John-Paul Doe},       journal = {Journal title},       year = {2009}}     @Article{smithm,       author = {Smith, Mary and Jones, Jane},       title = {Article title},       journal = {Journal title},       year = {2011}}     @Article{smitha,       author = {Smith, Anne and Smith, Joe},       title = {Article title},       journal = {Journal title},       year = {2011}}     \end{filecontents}     \addbibresource{\jobname.bib}          \begin{document}     \cite{hyphen,nomiddle,nohyphen,initials,hypheninitials,smithm,smitha}     \printbibliography     \end{document}


title: Beamer: How to remove shadow under the title on a given frame?

text: On one particular frame I would like to remove the shadow that the theme I am using inserts under the title. The reason is that with a black background (which I use _only_ on this frame), it looks quite ugly. Do you have any idea how I can do that? I've managed to remove the shadow under a block environment, thanks to:               \setbeamertemplate{blocks}[rounded]% [shadow=false]      but I could not find a similar thing for \titleframe (except one that you can only put in your preamble - which would not help, in my case). Thank you very much for your help.


title: How to write a LaTeX package that bundles not only .sty and .cls files but also some logos in .pdf or .eps formats?

text: I would like to make a LaTeX package with the following subdirs:   * `tex/latex/common` (a common `.tex` file shared among `beamer` and letter)   * `tex/latex/resources` (lots of pdf and eps files with graphical resources)   * `tex/latex/mybeamer` (a custom beamer theme with 5 `.sty` files)   * `tex/latex/myletter` (a `.cls` file for a letter template) I would like to package these files into a single LaTeX package that users could install in an easy way. I read about the `.ins` and `.dtx` files and I can see how to pack the .sty and `.cls` files but what about the extra graphics - the resources folder which contains several PDF and `.eps` files?


title: how do I remove "Listing 1" from my lstlistings code?

text: This is my latex code:               \documentclass[12pt]{article}     \usepackage{listings}          \begin{document}     \begin{lstlisting}[caption=Figure 3]           Source |       SS       df       MS              Number of obs =     198     -------------+------------------------------           F(  3,   194) =    0.62            Model |  2.71676158     3  .905587193           Prob > F      =  0.6030         Residual |  283.499771   194  1.46133902           R-squared     =  0.0095     -------------+------------------------------           Adj R-squared = -0.0058            Total |  286.216532   197   1.4528758           Root MSE      =  1.2089          ------------------------------------------------------------------------------     squared_re~s |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]     -------------+----------------------------------------------------------------          locati  |   .0029432   .0148768     0.20   0.843    -.0263978    .0322841     density      |  -.0731895   .1233527    -0.59   0.554    -.3164739    .1700949     strike_price |  -.0157999   .0161732    -0.98   0.330    -.0476978     .016098            _cons |   1.742112   .7439907     2.34   0.020     .2747632    3.209461     ------------------------------------------------------------------------------     \end{lstlisting}          \end{document}      It displays "Listing 1: Figure 3" when I compile this. How can I remove this? If this is a rudimentary question, I apologize, but it's quite urgent. Thank you.


title: Specifying path correctly for .bib file

text: Given the directory structure:               B-Galactosidase Report\LaTeX\Min ex\      My .tex file is inside "Min ex" directory. My .bib file is inside the "B-Galactosidase Report" directory two levels above that. Then what is the path I should specify for bib.bib in my .tex file? I think the syntax is tripping me up here... I have tried               \bibliography{"../../B-Galactosidase Report/bib"}{}      which triggers the error                Non-existent destination files:           'citing with manual.bbl'     Latexmk: I WON'T RUN 'bibtex citing with manual' because I don't find the following files:       'bib.bib'


title: Getting the current page in plain TeX

text: What was the control sequence to get the current page in plain TeX? I thought it was `\thepage`, and this works in LaTeX, but it returns a undefined- control-sequence error in plain TeX.


title: Specifying a different font for polytonic Greek in pdfTeX with Babel

text: I am writing my master’s thesis with the `ulthese` class, which is now part of MiKTeX and TeX Live. This class is based on memoir and is fairly flexible, but assumes the use of pdfTeX and sets the font encoding to `T1`. Furthermore, the University requires the use of Computer Modern/Latin Modern or a standard PostScript font (e.g. Times or Palatino). My thesis is primarily in French, with citations in English and polytonic Greek. With `inputenc`’s `utf8` option, the `babel` package, and the `textalpha` package from the `lgrx` bundle my bases seem to be covered. I have decided to use Palatino as the main text font (with the `mathpazo` package) and, because this font family does not cover extended greek, the CB Greek fonts are automatically used instead in `babel`’s `\textgreek` commands and `{otherlanguage}{polutonikogreek}` environments. I have no problem with CB Greek in itself, but it does not blend optimally with Palatino and I would like to use another font’s extended Greek characters. I know that the Type 1 version of Libertine has polytonic Greek (I have checked the `.pfb` files in FontForge), but I do not know how to use Libertine’s glyphs in the appropriate environments. In fact, I have made a test in which I only used Libertine throughout the document instead of Palatino/Mathpazo, but still Libertine’s Greek was not used and the CB fonts were substituted. My question is: how can I automatically switch to another font inside `babel`’s commands and environments on a per-language basis? I am looking for something similar to `polyglossia`’s `\newfontfamily\greekfont[Script=Greek,⟨...⟩]{⟨font⟩}`. I know that the `lgrx` bundle offers a `substitutefont` package, but I am not sure whether that is what I need, as I do not yet understand what the package does exactly. If there is no “high-level” solution, will I have to use LaTeX’s font-related commands? If there is no readily available method to use Libertine’s extended Greek, I could be content with Kerkis, which is already set up for automatic use and has many niceties, but I would be very happy if I could use Libertine. What is more, even if I were to use Kerkis for Greek text I would still need to (and _want_ to) use Palatino for the main text, so the switch to Kerkis would have to be confined to Greek environments and commands. Here follows a minimal working example compiled with a fully updated MacTeX 2012 on OS X 10.8, with pdfTeX. Some commands and options in the preamble are specific to `ulthese` and I include them to show the complete use case (for example, I use `ulthese`’s specific `hypperef` color setup and I use `hyperref`’s `unicode` option in order to get polytonic Greek text to display correctly in PDF bookmarks).               \documentclass[12pt,nonatbib,english,polutonikogreek,francais]{ulthese}       \usepackage[utf8]{inputenc}       \usepackage{textalpha}       \usepackage[osf]{mathpazo}       \usepackage{microtype}       \chapterstyle{southall}       \setsecheadstyle{\Large\mdseries}       \setsubsecheadstyle{\large\mdseries}       \setsubsubsecheadstyle{\mdseries\scshape}       \usepackage[unicode]{hyperref}       \hypersetup{colorlinks,allcolors=ULlinkcolor}       \frenchbsetup{%         CompactItemize=false,         ThinSpaceInFrenchNumbers=true       }       \titre{Un mémoire sur la philosophie grecque}       \auteur{Un étudiant en philosophie}       \programme{Maîtrise en Philosophie}       \annee{9999}       \MA     \begin{document}          \chapter{Introduction à la \textgreek{φύσις} et autres}          Pour les Grecs, la \textgreek{φύσις} a plusieurs sens.     D’ailleurs, c’est le cas de plusieurs mots.          \begin{otherlanguage}{polutonikogreek}     σύμψηφός σοί εἰμι, ἔφη, τούτου τοῦ νόμου, καί μοι ἀρέσκει.     \end{otherlanguage}          \end{document}


title: My custom style doesn't work

text: It is my first experience with LaTeX. This may be some sort of dummy question. But anyway. I've spend a day with TeXLive on Fedora. And here is the problem. I have some file 1:               \documentclass{book}     \usepackage{vit} % it's my own vit.sty file      \usepackage[utf8]{inputenc}          \usepackage{vmargin}     \setpapersize{A4}     \setmarginsrb{2cm}{1.5cm}{1cm}{1.5cm}{0pt}{0mm}{0pt}{13mm}     \usepackage{indentfirst}     \sloppy          \begin{document}          \chapter{AutoSDK}          blabla          \end{document}      and a second file which is my "own" style `vit.sty`:               \NeedsTeXFormat{LaTeX2e}     \RequirePackage[loadonly]{titlesec}     \RequirePackage{color}     \definecolor{vit_black100}{cmyk}{0.0, 0.0, 0.0, 1}     \definecolor{vit_gray90}{cmyk}{0.0, 0.0, 0.0, 0.90} %can be used as background color     \definecolor{vit_gray70}{cmyk}{0.0, 0.0, 0.0, 0.70} %can be used as background color     \definecolor{vit_gray5}{cmyk}{0.0, 0.0, 0.0, 0.05} %can be used as background color     \definecolor{vit_snow}{cmyk}{0.0, 0.0, 0.0, 0.0} %can be used as background color     \definecolor{vit_whiteshadow}{cmyk}{0.50, 0.0, 0.0, 0.33}     \definecolor{vit_whitecolor}{cmyk}{0.25, 0.0, 0.0, 0.10}     \definecolor{vit_yolkshadow}{cmyk}{0.0, 0.60, 1, 0.10}     \definecolor{vit_yolkcolor}{cmyk}{0.0, 0.10, 1, 0}          \titleformat{\chapter}          {\Large\slshape\bfseries\sffamily\textcolor{vit_whiteshadow}}          {\textsc{\MakeTextLowercase{\thesection}}}%         {1em}         {\spacedlowsmallcaps}         [{\color{vit_whitecolor}\titlerule[2.5pt]} 123]      and LaTeX returns the following error:               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)      restricted \write18 enabled.     entering extended mode     (./AutoSDK.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge     rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek, ibycus, arabi     c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis     h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis     h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h     ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma     rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,      kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,      polish, portuguese, romanian, romansh, russian, sanskrit, serbian, serbianc, s     lovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian,      welsh, loaded.     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/book.cls     Document Class: book 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/bk10.clo)) (./vit.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/titlesec/titlesec.sty)     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/color.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/color.cfg)     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/dvips.def)     (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/dvipsnam.def)))     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/inputenc.sty     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/utf8.def     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/t1enc.dfu)     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/ot1enc.dfu)     (/usr/local/texlive/2012/texmf-dist/tex/latex/base/omsenc.dfu)))     (/usr/local/texlive/2012/texmf-dist/tex/latex/vmargin/vmargin.sty     Package: vmargin 2004/07/15 V2.5 set document margins (VK)     ) (/usr/local/texlive/2012/texmf-dist/tex/latex/tools/indentfirst.sty)     (./AutoSDK.aux)     ! Undefined control sequence.     \reserved@c ...abelfalse \fi \ifnum \ttll@chapter                                                        >\c@secnumdepth \ttl@label...     l.13 \chapter{                   AutoSDK}     ?


title: Right aligned first column in a cases environment

text: Is there a simple way to obtain a right aligned first column in the `cases` environment. As far as I can see, `mathtools` does not add such an option. (This question might be read as a request for enhancement on mathtools... :) )


title: Curly lower case 'k'

text: I want a symbol that it is to `$k$` as `$\ell$` is to `$l$`. I looked at Scott Pakin's comprehensive Symbol's list and used detexify but I have not found it. EDIT: I found a solution but it is a commercial font: http://www.pctex.com/mtpro2.html#Features_of_MTPro2 the cript fonts look really nice :(


title: Using pause without increasing page number

text: Beamer displays page number of the form: page number/ total page at the end of the slide. This page number increases every time I use the `pause` command. Is there a way to make all the pages creating by `pause` from a single frame to have the same page number. I just don't want to discourage the listeners with too many slides. Thanks. ======== Update =======   Thanks for the comment, here is a minimal working example, I would like to have 2 pages with the same numbering 1/1 instead of 1/2 and 2/2:               \documentclass{beamer}     \usetheme{Warsaw}     \setbeamertemplate{navigation symbols}{}              \begin{document}          \setbeamertemplate{footline}[page number]{}          \begin{frame}\frametitle{My frame}     First question?     \begin{itemize}       \item first item       \item second item     \end{itemize} \pause          Second question?     \begin{itemize}       \item first item       \item second item     \end{itemize}     \end{frame}          \end{document}


title: Increase TeX capacity, as non-root

text: I have a LaTeX document that uses many long pgf paths, and thus compiles only if one increases the TeX "capacity" by setting `save_size=50000` in `texmf.cnf`. Unfortunately I cannot change the system-wide `texmf.cnf` directly as I have no root access on my work machine (OpenSuSE 11.3). Is there a way to use a user-defined `texmf.cnf` that overrides the limits?


title: Bottom margins for two title pages are not equal

text: For thesis it is needed two title pages but in my code page layouts are not equal. Problem is in the bottom of the page. the part of the code is: It is the cls file. Update: the problem is with the `\newenvironment` command. When I left only 1 page it is fine. When I try to make 2 or more pages the first page is fine but the rest of pages are not. The top margin is good but the bottom is not(               \NeedsTeXFormat{LaTeX2e}     \ProvidesClass{minimovka}[2000/07/21 v1.0 final disser class]     \LoadClass[a4paper]{report}     \RequirePackage{ifthen}     %\RequirePackage{fancy}     %\input{defs.tex}     %\pagestyle{fancy}     %\LoadClass{caption2}     \renewcommand{\normalsize}{\fontsize{12}{18}\selectfont}     \setlength{\topmargin}{-0.62in}     \setlength{\oddsidemargin}{0.38in}     \setlength{\evensidemargin}{0.38in}          \setlength{\headheight}{0.4in}     \setlength{\headsep}{0.2in}     \setlength{\footskip}{0.4in}     \setlength{\textwidth}{5.98in} \setlength{\textheight}{9.37in}               \setlength{\parindent}{0.4in}     \newcommand{\affiliation}[2]{\newcommand{\@affiliation}     {\fontsize{16}{19}\begin{center}\bf #1\\ \bf #2\end{center}}}     %\newcommand{\UDK}[1]{\newcommand{\@UDK}{UDK #1}}     %\newcommand{\CODESPEC}[2]{\newcommand{\@CODESPEC}{#1\,-\,#2}}     \newcommand{\Distitle}[1]{\newcommand{\@Distitle}     {\fontsize{14}{14}\begin{center}\bf #1 \end{center}}}     \newcommand{\Subdistitle}[1]{\newcommand{\@Subdistitle}     {\fontsize{12}{12}\begin{center} #1 \end{center}}}     %{\fontsize{14}{28}\begin{center}\bf #1\end{center}}}     \newcommand{\Year}[1]{\newcommand{\@Year}     {\fontsize{12}{12} \bf #1}}     \newcommand{\Disauthor}[1]{\newcommand{\@Disauthor}     {\fontsize{12}{12} \bf #1}}     \newcommand{\Studprogram}[1]{\newcommand{\@Studprogram}     { #1}}     \newcommand{\Studspec}[1]{\newcommand{\@Studspec}     { #1}}     \newcommand{\Chair}[1]{\newcommand{\@Chair}     { #1}}     \newcommand{\Supervisor}[1]{\newcommand{\@Supervisor}     { #1}}     \newcommand{\Consulter}[1]{\newcommand{\@Consulter}     { #1}}     \newcommand{\City}[1]{\newcommand{\@City}     {\fontsize{12}{12} \bf #1}}     \newenvironment{front}     {\pagestyle{fancy}\fancyhf{}     \renewcommand{\headrulewidth}{0.0pt}     \renewcommand{\footrulewidth}{0.0pt}     \setlength{\topmargin}{-0.21in}     \setlength\evensidemargin{-0.21in}     \setlength\oddsidemargin{-0.21in}     \setlength{\textheight}{10.68in}     \setlength{\textwidth}{6.8in}          \setlength{\headheight}{0.0in}     \setlength{\headsep}{0.0in}     \setlength{\topskip}{0.0in}     \setlength{\footskip}{0.0in}     \setlength{\parskip}{0.0in}     }          %defines title page layout     \renewcommand{\maketitle}     {%         \begin{front}         %\normalsize         \@affiliation         \vspace{2in}         \@Distitle         \vspace{1in}         \@Subdistitle         \vfill         \begin{flushleft}         \@Year\\ \@Disauthor         \end{flushleft}              %second page         \newpage         \@affiliation         \vspace{1.5in}         \@Distitle         \vspace{1in}         {\bf \@Subdistitle}         \vspace{1in}         {\fontsize {11}{17}         \begin{flushleft}         \begin{tabular}{l l}         Studied program: & \@Studprogram\\         Studied specialization: & \@Studspec\\         Chair: & \@Chair\\         Scientific supervisor: & \@Supervisor\\         Consulter: & \@Consulter\\         \end{tabular}         \end{flushleft}         }         \vfill         \begin{flushleft}         \@City, \@Year\\ \@Disauthor         \end{flushleft}         \pagebreak         \end{front}}      ![enter image description here](http://i.stack.imgur.com/8StkN.jpg)


title: Align numbers and separated uncertainties in tables with S columns

text: If I have a table like this               \documentclass{article}          \usepackage{booktabs}     \usepackage[separate-uncertainty=true]{siunitx}          \begin{document}     \begin{table}       \centering         \begin{tabular}{                       l                          S[table-format=1.1(2)]                       S[table-format=-1.1(2)]                       S[table-format=2.1(3)]                       %S[table-figures-uncertainty=2,                       %  table-number-alignment=center]                       }            \toprule         Station   & {GHI}     & {DIF}      & {DHI}       \\           \midrule         BS        & 2.4 +-3.7 & -5.3 +-1.6 & 11.6 +- 7.9 \\         HB        & 3.0 +-4.3 & -3.2 +-3.3 & 10.0 +- 9.0 \\         PD        & 2.4 +-2.8 & -3.1 +-1.3 &  8.4 +- 6.3 \\         TR        & 1.3 +-4.8 & -4.5 +-2.8 &  7.5 +-10.6 \\         WB        & 0.3 +-2.7 & -3.8 +-1.9 &  4.8 +- 6.4 \\[0.5em]         Mean      & 1.6 +-3.0 & -3.9 +-1.3 &  7.6 +- 6.5 \\         \bottomrule         \end{tabular}     \end{table}     \end{document}      The numbers are aligned on the decimal sign, but the uncertainties are not. What I would like to have is that in the last column space for two numbers for the uncertainty is reserved, so that it is formatted as given in the code (uncertainties aligned on the right and a space before for instance the 7.9 in the first row of the last column). How can I achieve this with siunitx?


title: How to change encoding in TeXnicCenter 2.0?

text: It is not a duplicate of How do I change the encoding of my files? or How to change the text encoding of a TeXnicCenter project?. I haven't found an answer there. Is there any possibility of changing the input encoding in TeXnicCenter 2.0? The logic of this editor was always strange for me, but now I am completely lost.


title: How can I refer to the bibliography chapter generated by biblatex using cleveref?

text: I am using biblatex to generate my bibliography using `printbibliography`. I want to reference the bibliography from another chapter, using cleveref like this:               \Cref{chap:bibliography} lists the referenced material in IEEE format.      I tried using the answers from this question:               \AtBeginBibliography{\label{chap:bibliography}}     \printbibliography[heading=bibintoc]      But all I got was an undefined reference and questions mark in place of the reference


title: nested comments for equation

text: I would like to know how to make a nested comments (see figure) for a equation. Kind Regards S.L. ![nested comments](http://i.stack.imgur.com/ZbHj4.jpg)


title: Autocompletion in Texstudio

text: I am using Texstudio 2.6. I enabled autocompletion of `schemabloc` package in the Texstudio Options. When I am typing in the document, autocompletion for package commands is not working? Can somebody resolve this one?.


title: form field alignment with a table cell

text: Is there any way to horizontally centre the checkboxes in the following MWE? Also is there any way to adjust the size of the checkboxes so that (i) they do not touch the cell border, and (ii) they are vertically centred in the cell?               \documentclass{report}     \usepackage[british]{babel}     \usepackage{tabularx}     \usepackage{hyperref}     \begin{document}     \begin{Form}     \begin{tabularx}{\textwidth}{|l|X|c|}\hline       1. & Floor Clear -- no trips & \CheckBox[print,name=1, width=1em, height=1em]{}\\\hline        2. & Stairways -- no trips & \CheckBox[print,name=2, width=1em, height=1em]{}\\\hline     \end{tabularx}     \end{Form}     \end{document}


title: Adding an brace at the right of equation numbering

text: I use the following:               \documentclass{article}     \usepackage{amsmath}     \begin{document}     \begin{equation} \label{eq:solve}     x^2 - 5 x + 6 = 0     \end{equation}          \begin{equation}     x_1 = \frac{5 + \sqrt{25 - 4 \times 6}}{2} = 3     \end{equation}          \begin{equation}     x_2 = \frac{5 - \sqrt{25 - 4 \times 6}}{2} = 2     \end{equation}     \end{document}      to display: ![enter image description here](http://i.stack.imgur.com/kcHbs.png) How can I add an brace with a text on the right of the equation numbering? Like the following: ![enter image description here](http://i.stack.imgur.com/pqXh3.png)


title: How to center a lstlisting

text: I have the following problem. I want to center a listing, I tried this approach: How to center a listing? It works but when I try to set frame or numbers specifically for each listing I get errors. Here´s the M(Not)WE:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{listings}     \begin{document}          \begin{figure}[thp]      \begin{tabular}{c}       \begin{lstlisting}[numbers=left] % Here lies the problem without the numbers=left it works        My Code       \end{lstlisting}      \end{tabular}      \centering      \caption{Bla}     \end{figure}          \end{document}      Is there another way to center the listings **and** captions or how could I fix this approach?


title: Minus signs on coordinates not visible enough with TikZ

text: I want to draw a system of coordinates with TikZ. At the moment I use the following code (which I copied from somewhere). Now I would like to make the minus signs on the negative y-coordinates more visible, e.g. by moving the label slightly below. How would I achieve that?               \begin{tikzpicture}[scale=1.7]     \draw[step=.5cm,help lines,dashed] (-2.4,-2.4) grid (2.4,2.4);      \draw (0.1, 0) node[anchor=north] {$0$};      \draw[thick, ->] (-2.5,0) -- (2.5,0) node[below] {x}; \draw[thick, ->] (0,-2.5) -- (0,2.5) node [left] {y};      \foreach \x/\xtext in {-4,-3,-2,-1,1, 2,3,4}        \draw (0.5 * \x cm,1pt) -- (0.5 * \x cm,-1pt) node[anchor=north] {$\xtext$};     \foreach \y/\ytext in {-4,-3, -2, -1, 1, 2, 3,4}        \draw (1pt,\y*0.5 cm) -- (-1pt,\y*0.5 cm) node[anchor=north]{$\ytext$};     \end{tikzpicture}


title: multitoc prevents adding lines for tocloft custom lists

text: `\addcontentsline{ext}{level}{content}` doesn't seem to work correctly for nonstandard `ext` when `multitoc` is being used. In particular, the `.ext` file (`.thn` in the example below) doesn't seem to be generated at all (or touched, if it already exists). Commenting out the `multitoc` import causes the custom list to get populated correctly. Commenting it back in causes the custom list to be blank again, even if the `.thn` file persists from a previous run. `\addcontentsline{toc}...` works correctly in both cases.               \documentclass{article}          \usepackage[toc]{multitoc} % <-- Doesn't seem to matter where this line goes     \usepackage{tocloft}          \newlistof{things}{thn}{List of Things}     \newcommand{\thing}[1]{#1 -- #1\addcontentsline{thn}{things}{#1}}          \begin{document}          \tableofcontents          \listofthings          \section{Things}          \thing{Foo}     \thing{Flang}     \thing{Bar}          \addcontentsline{toc}{section}{Fake section}     \addcontentsline{thn}{things}{Fake Thing}          \end{document}


title: Can someone Fix this monster

text: \begin{pmatrix}      m_{1+}\hat{p}_{1H}\hat{q}_{1H} & \multicolumn{2}{c}{\text{\kern0.5em\smash{\raisebox{-1ex}{\Large 0}}}} & \multicolumn{1}{|c}{m_{12}\hat{p}_{1H}\hat{q}_{1H}}  \\         & \ddots &  &\multicolumn{1}{|c}{\vdots}\\      \multicolumn{2}{c}{\text{\kern-0.5em\smash{\raisebox{0.75ex}{\Large 0}}}} & m_{I+}\hat{p}_{IH}\hat{q}_{IH} & \multicolumn{1}{|c}{m_{I2}\hat{p}_{IH}\hat{q}_{IH}} \\      \cline{1-5} \\ m_{12}\hat{p}_{1H}\hat{q}_{1H} & \hdots & m_{I2}\hat{p}_{IH}\hat{q}_{IH} & \multicolumn{1}{|c}{\sum_{i=1}^I m_{i2}\hat{p}_{iH}\hat{q}_{iH}}     \end{pmatrix}      I want this: ![enter image description here](http://i.stack.imgur.com/49MZV.jpg) I have this: ![enter image description here](http://i.stack.imgur.com/er69P.jpg)


title: Retrieving text from a "database text" file

text: I refer to my question and the solutions in String comparison in \ifthenelse I hope I can make my question clear enough, I am not a technician. I use a kind of database file (simple text file) with root stanzas of a translation from which I can retrieve individual stanzes into different publications. In the above linked question there are two solutions to parse the database and retrieve the stanzas. One (A) is based on LaTeX2 and one (B) on LaTeX3 (xparse). Both do the job to a certain extend and with both I have different limitations, as I will try to explain. Maybe you could help to fix one of the two to fit my needs. Please look at the MWE. In my "database", each entry consists of one line of text. When a certain key is found, the command 'mystanza' formats and prints the value (the stanza) and also the characters between the two §§, just look at the output please. The problem that I have is that in solution A the database text must not contain any LaTeX-command. That means I cannot format the text (emphasize, for example, or put a paragraph command in it). **(A) LaTeX2**               \documentclass[a4paper,12pt]{article}          \usepackage{filecontents}     \begin{filecontents*}{stanzas.dat}          +1§1§||{This is stanza one from chapter one.}          +2§2§||{This is stanza two from chapter two.}          +3§3§||{This is stanza three from chapter three.}          +4§4§||{This is stanza four from chapter four. But there is problem with \emph{formatting} text.}          \end{filecontents*}          \usepackage{fontspec}     \defaultfontfeatures{Mapping=tex-text} %      \usepackage{polyglossia}      \setdefaultlanguage[spelling=new, babelshorthands=true]{german}          \usepackage{xstring}     \usepackage{xifthen}     \usepackage{stringstrings}          \newcommand*{\isinxp}[2]{\expandafter\isinxpp\expandafter{#2}{#1}}     \newcommand*{\isinxpp}[2]{\isin {#2}{#1}}          \newread\dbroot          \newcommand{\mystanza}[1]{%     \openin\dbroot=stanzas.dat     {\loop        \endlinechar=-1         \read\dbroot to \dbline         \unless\ifeof\dbroot         \ifthenelse{\isinxp{#1}{\dbline}}         {\StrCut{\dbline}{||}{\colA}{\colB}%         (\StrBetween[1,2]{\colA}{§}{§})~{\colB}}%         {}%     \repeat}%     \closein\dbroot     }          \begin{document}          \mystanza{+1§1§}           \mystanza{+2§2§}          \mystanza{+3§3§}          % \mystanza{+4§4§} % <-- problematic          \end{document}      **(B) LaTeX3 (xparse)** Solution B was written for another format of the key of my database file: `§2§~{text}` is now `+1§2§||{}`. With the altered key, it generates errors (one is due to my changeing `~` to `||` in the key). It does have no problems with LaTeX-code in the database text, though.               \documentclass[a4paper,12pt]{article}          \usepackage{filecontents}     \begin{filecontents*}{morestanzas.dat}          §1§~{This is stanza one from \emph{chapter} one.}          §2§||{This is stanza two from chapter two.}          +3§3§||{This is stanza three from \emph{chapter} three.}          \end{filecontents*}               \usepackage{xparse}          \ExplSyntaxOn     % generic command     \NewDocumentCommand{\printdata}{ mm }      {% #1 is the file name, #2 is the key to test       \christof_printdata:nn { #1 } { #2 }      }     % with fixed file name     \NewDocumentCommand{\mystanza}{ m }      {       \printdata{morestanzas.dat} { #1 } % <---  file name      }          \ior_new:N \g_christof_data_stream     \seq_new:N \l__christof_entry_seq          \cs_new_protected:Npn \christof_printdata:nn #1 #2      {       \ior_open:Nn \g_christof_data_stream { #1 }       \ior_map_inline:Nn \g_christof_data_stream        {         \tl_if_in:nnT { ##1 } { #2 }          {           \__christof_process_line:ww ##1 \q_stop          }        }      }          \group_begin:     \char_set_catcode_active:N \^^A     \char_set_lccode:nn { `\^^A } { `\~ }     \tl_to_lowercase:n       {       \group_end:       \cs_new_protected:Npn \__christof_process_line:ww §#1§ ^^A #2 \q_stop      }      {% #1 is the key, #2 is the value       (#1) \nobreakspace \tl_trim_spaces:n { #2 }      }     \ExplSyntaxOff               \begin{document}          \mystanza{§1§}           % \mystanza{§2§} <--- problem 1          % \mystanza{§3§} <--- problem 2          \end{document}


title: Beautiful Ph.D thesis themes

text: Do you know beautiful customizable Ph.D class files or "themes"? I am really eager to find a nice "base" eye-candy Ph.D class that I could customize myself. I began my Ph.D BUT I don't want to waste too much time later so I want to choose now the structure and format/tex file type to some degree, so I am searching something like this: 1) Flexibility and some degree of customization. 2) Beauty. 3) Manual with the class type. 4) Maintenance. I don't want thesis .tex that are not supported. I found some issues in some older files with the TEX upgrade, so, I would prefer some .tex that don't use too specific "weird" packages. I need something "in the bottom" to add later the mathematical packages (maybe some typographic and/or language packages as well) in the top. I was browsing the web but I could not find something that fit me. Suggestions?


title: How to create new commands with multiple arguments?

text: I'd like to create a new command `\add` that accepts 2 arguments, called _entity_ and _title_. In other words, the command should look like this: `\add{entity}{title}`. The output should have the following form: `\textit{entity} '{title}'`. So if I for example type `\add{article}{LaTeX}` the result should be _article_ 'LaTeX'. How can I do this? I hope that I was clear enough about what I want to achieve. * * * **Edit:** Is it also possible to give 'names' to the arguments? What I mean is: when one uses the command, the interface displays `\add{arg1}{arg2}` with @shyamupa's answer. Can this be changed into `\add{entity}{title}` in order to make it easier for users to understand what they're supposed to enter?


title: How can I change the @ symbol in e-mail addresses?

text: I use               \documentclass{article}     \usepackage{hyperref}     \begin{document}     \href{mailto:e.xmaple@example.com}{e.xmaple@example.com}     \end{document}      This way I can write an email address, but I don't like the shape of the @ symbol inserted by LaTeX: ![Computer Modern @](http://i.stack.imgur.com/eYY99.png) How can I get it to look like ![Word @](http://i.stack.imgur.com/Jkmsm.png)?


title: Legend position control within rotated polar axis

text: How can I shift (control) the position of the legend within rotated polar axis environment? (e.g. shift into the south-east corner?)               \documentclass{article}     \usepackage{pgfplots}     \usepgfplotslibrary{polar}     \usetikzlibrary{shapes.geometric}     \begin{document}     \begin{tikzpicture}     \definecolor{lgray}{rgb}{0.7,0.7,0.7}     \definecolor{dgray}{rgb}{0.3,0.3,0.3}     \makeatletter     \def\pgftransform@angle{0}     \pgfplotsset{         xticklabel style={             inner xsep=1pt,             ellipse,             anchor=\tick-(180-\pgftransform@angle)         },         yticklabel style={             anchor=90 + \pgftransform@angle         }     }     \makeatother     \begin{polaraxis}[       rotate=-90,       xmin=00,       xmax=90,       %xtick={0,30,60,90}       xticklabel=$\pgfmathprintnumber{\tick}^\circ$,       xtick={0,15,...,90},       ]       \addplot[red,no markers,smooth] table{        0 1        30 2        60 3        90 2         };         \addlegendentry{Text1}     \addplot[no markers,smooth] table{        0 2        30 3        60 1        90 1         };     \addlegendentry{Text2}     \end{polaraxis}     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/uEUF9.png)


title: How to get long \texttt sections to break

text: I often format path names with \texttt which can be very long. Usually Tex will not break this text. The line will just create a hbox overflow. It looks like this:               ................     ...C:\documents and settings     ................     ................     ................     ................     ................     ................     ................      How do I get Tex to create a line break?


title: Help for reproducing this page with TikZ

text: I am not new to LaTex/XeLaTeX, but, I am new to the TikZ world, I want to put the number page and the name of the book (or what ever) as this example: http://www.insecurityinsight.org/files/humanitarianexchange047.pdf, the number of the book is inside a red square, and the title of the book is in the side and both of them are in the edge of the open pages (remember is a book). Could you help me? Thank you in advance


title: How can I reduce top margin in scrlttr2?

text: i'm having problems searching for the solution. I'm writing a simple letter and I see that top margin is too large. I tried               \setlength\topmargin{-50pt}      recommended in this answer, but nothing happened. I also tried               \@setplength{refvpos}{5cm}      recommended in but it seems to make the body of the letter go up, instead of making the whole letter (including address and subject). Thanks!


title: Question about the underbrace in combination with the array

text: I'm trying to use the `\underbrace` option, and I kind of managed to make it work with the following code:               \begin{equation}     \begin{array}{rcl}     \left(\Lambda_1 \Lambda_2\right)^T G \left(\Lambda_1 \Lambda_2\right) =   &  \Lambda_2^T \underbrace{\Lambda_1^T G \Lambda_1} \Lambda_2 & = \Lambda_2^T G \Lambda_2 = G \\       & = G & {}     \end{array}      \end{equation}      However, I'm not really happy about the spacing between the different signs of the cells, because it is not how my other "normal" equations look like: ![enter image description here](http://i.stack.imgur.com/pQJAp.png) Does anybody know how I can make this look better?


title: Errors in authorinfo in ACM template

text: In a submission to a ACM conference with double blind review process, I'm getting errors while compiling my tex file. The error says "No authors were specified for this paper" if I try to comment out the authorinfo part. Else if I just mention                \authorinfo{} Name1                 {} %Affiliation1}                 {} %Email1}      I get this error "File ended while scanning use of authorinfo". How do I hide author names for this template for this paper to be ready for a double blind review process?


title: 'Moderncv classic 1.5.1' lualatex compilation fails when using \itshape and awesome icons and sans font with MacTeX2013

text: When compiling this tex code on SnowLeopard, MacTeX2013 with `lualatex test.tex`:               \documentclass[11pt,a4paper,sans]{moderncv} % moderncv 1.5.1 version     \moderncvstyle{classic}     \moderncvicons{awesome}          \name{john}{doe}     \begin{document}     \itshape hello, world     \end{document}      I get the following error:               [...]     ! Font \EU2/lmss/m/sl/10.95=/Library/Fonts/Latin not loadable: metric data not found or bad.     <to be read again>      M     l.7 \itshape                hello, world     ?       It compiles if I remove the `\itshape` command. It compiles if I remove the `\moderncvicons{awesome}` command. It compiles if I use `roman` instead of `sans`. It compiles when using `xelatex` (but I don't want to regenerate the fontawesome font to get around the UPM bug). It compiles on ubuntu 12.10, TexLive2012. It looks like to me that using `sans`,`\itshape` and `fontawesome` with `MacTex2013` is the combination that prevents lualatex from compiling and `\itshape` is the deciding factor. Regarding the error message: could it be than somehow a bad Latin font got installed ?


title: LaTeX tikz-timing - adjust fontsize independently for each row label

text: I would like to be able to make the label below (which I have made red) have text size equivalent to `\tiny` but I can not figure out how to do it? I have not been able to find anyone else trying to change the label text size with `tikz-timing`; is it a PGF or tikz problem? What is the syntax? I fear this is going to be an obvious misunderstanding of LaTeX, PGF, TikZ, and `tikz-timing`. I am a little confused which syntax to use when setting the style of the label. I don't want to apply the changes to all labels as discussed in the following question: How can I change the font family in pgfplots? # Here is what I am starting with:               \begin{tikztimingtable}       Clock 128\,MHz 0\degr    & H   12{2C} G \\ % ends with edge       \color{red} Clock 128\,MHz 90\degr   & [C] 12{2C} C \\ % starts with edge       Clock 128\,MHz 180\degr  & C   12{2C} G \\ % ends with edge       Clock 128\,MHz 270\degr  &     12{2C} C \\     \end{tikztimingtable}      # Attempted variations that do not work                 \color{red} Clock 128\,MHz 90\degr   & [C] 12{2C} C       \color{red} \tiny Clock 128\,MHz 90\degr   & [C] 12{2C} C       \color{red} \tiny{Clock 128\,MHz 90\degr}   & [C] 12{2C} C       \tikzset{every axis label/.append style={font=\sffamily\footnotesize}}           \color{red} Clock 128\,MHz 90\degr}   & [C] 12{2C} C       \color{red} [font=\sffamily\footnotesize}] Clock 128\,MHz 90\degr}   & [C] 12{2C} C        \tikzset{every node/.append style={scale=0.3}}           \color{red} Clock 128\,MHz 90\degr}   & [C] 12{2C} C      # Edit The following code is what breaks, I am trying to make it a standalone document class; type article works as you observed.               \documentclass[class=minimal,border=10pt]{standalone} %breaks on \tiny       % Error|line 15|!Undefined sequence.<argument> \tinyClock\tiny Clock & [C] 12{2C} C\\     %\documentclass{article} % works with \tiny     %     \usepackage{tikz-timing}     %      %     \begin{document}     %     \begin{tikztimingtable}       Clock & H   12{2C} G \\       \tiny Clock  & [C] 12{2C} C \\       Clock & C   12{2C} G \\       Clock &     12{2C} C \\     \end{tikztimingtable}     %     \end{document}


title: BibDesk: Preview with your favourite biblatex-style

text: I use BibDesk to organise my library and implement quotations through `biblatex` in my documents. BibDesk has this feature of allowing the user to see a BiBTeX-preview (not `biblatex`!) of the currently selected publication at the bottom or the sidebar. You can choose between different styles (like `ieeetr`, `alpha`, `abrvnat` etc.). Until now I never thought about using this preview, because (1) I did not find a style I like and (2) it does not render my `biblatex` commands and types properly. So, instead I used the following .`tex` file (which I found somewhere on the net and modified):               % !TEX TS-program = lualatexmk     \documentclass[a4paper, 11pt, DIV=13]{scrartcl}     \usepackage{fontspec}     \setmainfont[   Numbers=OldStyle,                 Ligatures=TeX]{Times New Roman}     \usepackage[british]{babel}     \usepackage{csquotes}     \usepackage[    style=reading,                 abstract=false,                 abbreviate=false,                 backend=biber                     ]{biblatex}          \addbibresource{BibLaTeX.bib}          \usepackage{hyperref}          \begin{document}     \nocite{*}     \printbibliography     \end{document}      This `.tex` file creates a PDF listing all the publications I have in my `.bib` file. With this PDF I could easily check and see whether references are properly set. However, creating this PDF file takes rather long, as my library is growing... And anyway it is rather a detour, to be honest, given that there actually **is** a preview feature implemented into BibDesk. My question now is: Is it possible to preview my `biblatex` references with BibDesk's preview-feature using the style I used in the `.tex` file shown above? What do I have to change in the settings of BibDesk in order to generate a `biblatex` output?


title: TeX commands and LaTeX commands- what's the difference? Good Introductory manual/guide to using MathJax, LaTeX or TeX on forums?

text: **Update 1:** I have just learnt from the answers below that it is more correct to say that MathJax is the format for writing maths on the Mathematics Stack Exchange, that it is essentially made from the maths part of LaTeX, and that LaTeX is written in TeX. So that resolves my first query. I have found one guide: _TEX Commands available in MathJax_ : http://www.onemathematicalcat.org/MathJaxDocumentation/TeXSyntax.htm#cases which is good, but I have to do a lot of scrolling to find anything! Are there any more resources out there like this? Also, any advice on how to write TeX in TeXworks, would be much appreciated. A simply written pdf on the topic would be handy, for example. (I don't seem to be having much luck finding one via google) At present, I seem to be getting nothing but errors! **Update 2:** Are there any advantages to using TeX over LaTeX in an editor such as TeXworks (i.e. if say I want to create a pdf document?) I have read that LaTeX is more refined, and produces better quality results?


title: How to include a tex file with own formatting options

text: I have two tex files, `tex1` and `tex2`. I want to include `tex1` into `tex2`. I know `\include` and `\input` but those won't allow to include tex files with own formatting. `tex1` has a header for example but `tex2` doesn't, `documentclass` and used packages are also different. When I simply copy the content of `tex1` into `tex2` it will format with my formatting options but I want to keep those of `tex1`. Is there an environment that will let me change formatting options inside but won't affect anything that is outside?


title: Can't get symbol list to work

text: I am using an finished template at my school for writing my thesis in LaTeX. I am using TeXShop. My problem is that I can't get the symbol list to appear. It is no problem to get my abbreviations to appear. In the abbreviations I am using e.g.               \newacronym{ARMA}{ARMA}{auto regressive moving average}      For my symbol list I am using e.g               \newglossaryentry{symb:N}{sort={3},     name={$\mathbb N$},     first={first $\mathbb N$},     text={additional $\mathbb N$},     description={Set of natural numbers},     type=symbolslist}      In my main file I am typing:               \printglossary[type=\acronymtype,style=long ,title=Abbreviations, toctitle=Abbreviations]     \printglossary[type=symbolslist,style=long ,title=Symbols]      Settings:               \usepackage{makeidx}     \usepackage[nonumberlist,toc,acronym]{glossaries}     \newglossary[slg]{symbolslist}{syi}{syg}{Symbols}     \makeglossaries     \include{Abbr} % all abbreviations     \include{Symbols} % all symbols      I am compiling it with: latex - pdflatexmk - latex


title: Parsing various types of page ranges with a single command

text: Having to treat a considerable amount of page ranges, I'd like to have a robust and simple command that would parse and print them correctly.   1. The most simple case is e.g. > 264,15-26 which means: > page 264, lines 15 to 26   2. Then we have things like > 264,15-266,26 which translates to > page 264 line 15 to page 266 line 26   3. More tricky, we'd have something like > 264,15-266,26+277,13-14+312,14-316,23 which means we actually have three sequences here: > from page 264 line 15 to page 266 line 26 and page 277 lines 13-14 and from > page 312 line 14 to page 316 line 23 That's to say, the command should work whatever the amount of "type 1" or "type 2" sequences is provided to it. I'd like to put whatever the page range is (type 1 or 2 or 3) in a single command and have every one of them printed in the readable and accurate way... Pretty tricky for poor old humanities student like me!


title: Fix the height of a column

text: I have several similar slides in `beamer`. Each slide has 2 parts side by side. On the left hand, there is a `tikzpicture` in a `minipage`, it is same for all the slides; On the right hand, there are several `blocks`, some slides have more blocks, some have less. What I notice is, due to the different length of the blocks of the different slides, the position of the left hand changes - This is not what I want. I would like the height of the left hand to remain for all the slides, which is independent of the length and height of the right hand. Does anyone know how to do it? Here are 2 typical slides, one could notice that the position of the left rectangle is not same between the 2 slides...               \documentclass{beamer}     \usetheme{Boadilla}     \usepackage{color}     \usepackage{tikz}     \usepackage{framed}     \usepackage{multicol}     \usepackage{xifthen}% http://ctan.org/pkg/xifthen     \begin{document}          \begin{frame}       \begin{columns}         \begin{column}{0.32\textwidth}           \resizebox{0.66\textwidth}{!}{%               \begin{minipage}[t][10cm][t]{\linewidth-2\fboxsep-2\fboxrule}% Remove fbox rule/sep width               \hspace*{-1em}{\begin{tikzpicture}[thick, scale=0.4]                   \filldraw[fill=white!20] (2,2) rectangle (6,12);                 \end{tikzpicture}}             \end{minipage}}         \end{column}         \begin{column}{0.64\textwidth}           \begin{alertblock}             a \vspace{2cm} b           \end{alertblock}         \end{column}       \end{columns}     \end{frame}          \begin{frame}       \begin{columns}         \begin{column}{0.32\textwidth}           \resizebox{0.66\textwidth}{!}{%               \begin{minipage}[t][10cm][t]{\linewidth-2\fboxsep-2\fboxrule}% Remove fbox rule/sep width               \hspace*{-1em}{\begin{tikzpicture}[thick, scale=0.4]                   \filldraw[fill=white!20] (2,2) rectangle (6,12);                 \end{tikzpicture}}             \end{minipage}}         \end{column}          \begin{column}{0.64\textwidth}           \begin{alertblock}             a \vspace{7cm} b           \end{alertblock}         \end{column}       \end{columns}     \end{frame}     \end{document}


title: hyperref pdf table of contents messed up (probably bookmarks problem)

text: I have trouble with my thesis document. The sidebar table of contents (when opening in a pdf viewer) has a wrong ordering. Even though chapter 1 and chapter 2 are on the same hierarchical plane in the sidebar pdf toc chapter 2 is under chapter 1 (and chapter 3 and all other chapters are under chapter 2). The normal table of contents in the document is fine. I think it has something with bookmarks (which I'm not 100% sure what they are). After I fix a mistake in my latex document and latex doesn't compile fully. The next compile ends with the error: ` Runaway argument? {\376\377\0002\000.\0005\000.\0001\000\040\000R\000o\000t\000a\000t\0\ETC. ./thesis.tex:293 (which is \begin{document}: File ended while scanning use of \@@BOOKMARK. ` trashing the aux file clears that and the next compile is fine again (the ordering of the pdf toc is still messed up). How do I debug that? I can't really disable packages as they are tightly integrated. Any suggestions are welcome.


title: How to create simple graph in latex

text: How to create simple graph in latex. x,y axis with straight line drawn at (0,0) at 45 degress through the x,y axis. The graphs here are excellent but just too complicated for newcommers. * * * here is the link ![enter image description here](http://i.stack.imgur.com/h5pcq.png)


title: \newcommand resulting in Illegal unit of measure (pt inserted)

text: I am defining macros for width and height to be used by several plots in my document, as follows:               \newcommand{\tikzwidth}{.4\columnwidth}     \newcommand{\tikzheight}{.8\tikzwidth}      I think `pdflatex` just replaces the whole sequence of commands for `\tikzheight`, resulting in `.8.4\columnwidth`. Is there a way to tell `pdflatex` to process `\tikzwidth` before "shrinking" it again?


title: Suppress link (or just the color) of a specific \nameref

text: The links that I'm creating with the `hyperref` package (e.g., references to other sections/chapter) are all coming out with a color that I've defined. That's as intended and it's working fine. But I need to suppress the color of a specific reference. One that was created with `\nameref`. I just need the text of the referred section to be included. I don't want it to be colored differently. Any way to achieve this? If, instead, there's a way to turn the named reference into ordinary text (i.e., also remove the link) it would be ok too.


title: tikz - There's an auto node distance, but is there auto arrow distance?

text: I'm working with a bunch of short exact sequences, and I think they look best when the arrows are about 1cm long. It allows just enough room to throw labels on the arrows if needed, but not too much that it looks totally empty if I choose not to. When the nodes have simple labels, setting the node distances works just fine               \begin{tikzpicture}[node distance = 1.25cm, auto]       \node (01) {$0$};       \node (A) [right of=01] {$A$};       \node (B) [right of=A] {$B$};       \node (C) [right of=B] {$C$};       \node (02) [right of=C] {$0$};       \draw[->] (01) to node {} (A);       \draw[->] (A) to node {$\alpha$} (B);       \draw[->] (B) to node {$\beta$} (C);       \draw[->] (C) to node {} (02);     \end{tikzpicture}      But when the node labels become more complex, it starts to get cluttered and kind of awkward.               \begin{tikzpicture}[node distance = 1.25cm, auto]       \node (01) {$0$};       \node (AM) [right of=01] {$A \oplus M$};       \node (BM) [right of=AM] {$B \oplus M$};       \node (C) [right of=BM] {$C$};       \node (02) [right of=C] {$0$};       \draw[->] (01) to node {} (AM);       \draw[->] (AM) to node {$\alpha'$} (BM);       \draw[->] (BM) to node {$\beta'$} (C);       \draw[->] (C) to node {} (02);     \end{tikzpicture}      (Sorry, I couldn't figure out how to get the TeX to compile and actually appear in this post) So, is there a way to set a standard arrow length, or have the node distance measured by the space between nodes and not center-to-center?


title: Disable hyperlinks in some entries for glossaries

text: I am using the **glossaries** package a lot in my thesis. There are some entries which appear very frequently throughout the whole document. I would like to disable hyperlinking for these entries but keep it for all other entries. I have tried putting `\glsdisablehyper` just before the frequent entries to no avail.


title: How to export a pdf from a word file which is not one page long but smaller according to the drawing size?

text: > **Possible Duplicate:**   >  How can I crop included PDF documents? I have a drawing from a word file. I export it in a pdf format and i import to my tex file as a figure for a paper. The problem is that the pdf file has the size of a A4 paper while the drawing is only the 1/4 of the A4 and it is placed at the top of the pdf. As such there is a big blank area in my paper. How can i export this from Word in a smaller pdf file?


title: Insert a piece of PDF file as image

text: Recently I learned how to include just one page of a PDF file as image using `\includegraphics`, but now I need to include just part of the page and _not_ the entire page. How can I include just 50% or 65% of a PDF page as image in a document?


title: want pdf picture to be smaller than one page

text: > **Possible Duplicate:**   >  How can I crop included PDF documents? I created a `pdf` file using `PSTricks`. It appears to occupy an entire page. When I included it in my LaTeX file using `\includegraphics`, the image occupies an entire page and the figure number is missing. How can I create a `.pdf` file smaller than one page and include it in my LaTeX file?


title: Typesetting temperature, should I write the number inside dollars?

text: Are there any advice which one is more preferable:               The temperature is $5$ degrees Celsius.      or               The temperature is 5 degrees Celsius.      Here, I don't want to use siunitx or anything similar to typeset the degree symbol.


title: How to get aligned equations to have particular color and not equation numbers

text: I need to have fews equations aligned by =. These equations are to be displayed in particular color but not the equation numbers.               a = {1,2},            (1)     b = {4,8},            (2)      The two equations above appear in particular color (say red) but the equation numbers in paranthesis are to appear in default color. I tried the following code:               \textcolor{red}{     \begin{align}      a \; & = \; \left\{1,2\right\}, \\      b \; & = \; \left\{4,8\right\},     \end{align}     }      But this makes equation numbers also appear in red. And, when I use `\textcolor` inside `align` block, it generates error. Can anyone suggest how can I get the desired formatting.


title: Leaflet margins to compensate printer margins

text: **Leaflet** provides a convenient way to build flyers in LaTeX. However, I've run into a problem where I could not figure out how to adjust the page margins in order to compensate for the printer margins. Leaflet produces 6 narrow pages, so that combining 3 of them next to each other would form a single A4 page (filled edge to edge). Thus, combining these 6 pages 3x2 produces two A4 pages. Document style options `combine` and `nocombine` control this process. The documentation points out to the `\setmargins` macro as a way to control page margins. However, this macro controls margins for each of 6 pages individually. In order to compensate for the printer margins it is necessary to adjust margins of the combined A4 page. The **geometry** package options also effects each narrow page individually, thus not achieving the required effect. What is the proper way to adjust margins of the combined A4 page when using leaflet? Is there any other than page margins modification way to compensate for the printer margins?


title: How to decorate a path with arrows at certain coordinates?

text: Next example (taken from TiKZ manual) shows how to find intersection points between two paths. Once you know intersection points it's easy to decorate them with any marking. But if I want to use an arrow following the path I need to convert coordinate to `position` (percentage of total length) over the path. Do you know how to do it? To draw the example I've used a trial and error method to place arrows. I would like to use `(i-\s)` coordinates.               \documentclass[border=2mm,tikz]{standalone}     \usetikzlibrary{intersections,decorations.markings}          \begin{document}     \begin{tikzpicture}[]     \clip (-2,-2) rectangle (2,2);     \draw [name path=curve 1] (-2,-1) .. controls (8,-1) and (-8,1) .. (2,1);     \draw [name path=curve 2] (-1,-2) .. controls (-1,8) and (1,-8) .. (1,2);     \fill [name intersections={of=curve 1 and curve 2, name=i, total=\t}]     [red, opacity=0.5, every node/.style={above left, black, opacity=1}]     \foreach \s in {1,...,\t}{(i-\s) circle (1pt) node {\footnotesize\s}};     \draw[decorate,decoration={           markings,%           mark=at position .72  with {\arrow[red,line width=1pt]{>}},%          mark=at position .595  with {\arrow[blue,line width=1pt]{>}},%          mark=at position .225  with {\arrow[green,line width=1pt]{>}}}]%           (-2,-1) .. controls (8,-1) and (-8,1) .. (2,1);     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/gp4R7.png) _EDIT_ : I will try to explain it better. In my example I've used `mark=at position .72` where `.72` was decided after several drawings. I would like to use something like `mark=at position corresponding to (i-4)`. where `(i-4)` is one of the intersection point or any other specific point over the path but with an unknown `position`. This way would be possible to decorate a path with an arrow from, for example, (i-4) to (i-9) or would be possible to provide an exact answer to Decorate path with arrows at nodes. Provided answers also position the arrow with some approximation and not with the precision that TiKZ shows us all around.


title: Cross reference formatting options

text: I have got a quick question; I am writing a document with lots of sections and figures. Cross referencing works fine. So far so good. However, I would prefer when I reference something to have the figures and the sections in different formats. For instance if I reference a section (provided tha appropriate labels are in place) I would like the output to be: `Section 4.3` and when I reference a figure to have: `Figure 4-3`. How should I go about it? Thank you in advance


title: How to deal with it/sl/bold in lmtt?

text: I just stumbled upon the fact that the font `lmtt` (latin modern typewriter) seems to exist in   * italic   * slanted   * bold   * bold slanted but not   * bold italic At least the file `t1lmtt.fd` contains the lines               \DeclareFontShape{T1}{lmtt}{m}{it}          {<-> ec-lmtti10}{}     \DeclareFontShape{T1}{lmtt}{m}{sl}          {<-> ec-lmtto10}{}     \DeclareFontShape{T1}{lmtt}{b}{sl}     {<-> ec-lmtko10}{}     \DeclareFontShape{T1}{lmtt}{b}{it}          {<->sub*lmtt/b/sl}{}      which, upon naïve use, leads to the rather unpleasant result ![sl vs it](http://i.stack.imgur.com/DBR6G.png) At the moment, my clumsy fix for this is               \input{t1lmtt.fd}     \DeclareFontShape{T1}{lmtt}{m}{it}          {<-> sub*lmtt/m/sl}{}      which means I get slanted typewriter (instead of italic) everywhere. What would be a better alternative? Mind you, I'm not complaining the bold italic font seems to be missing. AFAICS the family `cmtt` doesn't really have any bold fonts anyway, so another obvious alternative would be to map _bold italic_ to _medium italic_ also for `lmtt`.


title: How to make \rowfont (from tabu package) overlay specification-aware (in beamer package)?

text: I have tables in a beamer presentation, and I would like to highlight table rows sequentially (not necessarily in row order) using overlay specifications. So I would like to be able to write code similar to the following:               \begin{tabular}         \color<1>{red}         Row 1  & Row 1 \\         \color<2>{red}         Row 2  & Row 2     \end{tabular}      with the effect that Row 1 is highlighted in red in the first slide and Row 2 is highlighted in the second slide. I am using a `tabu` environment with `dcolumn` type columns. Here are some additional details about the findings I've made so far:   1. In another post I found code to define a command `dcolcolor` to be able to colour `dcolumn` text.   2. In order to colour the whole row's text without specifying each cell individually, I use `\rowfont` from `tabu`.   3. In order to make `\rowfont{\dcolcolor{...}}` overlay specification-aware, I try to follow the directions in section 9.6.1 of the beamer user guide. However, I could not get it to work. So I tried using `only` on `\rowfont{...}` without trying to define a new, overlay specification-aware command, and I got an error. Here is a MWE:               \documentclass{beamer}          \usepackage{dcolumn}     \usepackage{tabu}          \newcolumntype{d}[1]{D{.}{.}{#1}}     \makeatletter     \def\DC@endright{$\hfil\egroup\@dcolcolor\box\z@\box\tw@\dcolreset}     \def\dcolcolor#1{\gdef\@dcolcolor{\color{#1}}}     \def\dcolreset{\dcolcolor{black}}     \dcolcolor{black}     \makeatother          \begin{document}          \begin{frame}          \begin{tabu}{ld{2}d{2}}     % All of row 1 should be red on all slides     \rowfont{\color{red}\dcolcolor{red}}     Row 1 & 1.234 & 1.234 \\          % All of row 2 should be red on second slide only     \only<2>{\rowfont{\color{red}\dcolcolor{red}}}     Row 2 & 2.345 & 2.345 \\     \end{tabu}          \end{frame}     \end{document}      When I compile, I get a couple of errors like               ! Misplaced \noalign.     \rowfont ->\ifdim \baselineskip =\z@ \noalign                                                 \fi {\ifnum 0=`}\fi \tabu@row@...     l.28     \end{frame}      The output has two pages. The first page is correct, first row is highlighted (although the first column doesn't appear to be left-aligned). On the second page, the first row is highlighted as expected, but the second row only highlights the numbers, not the first column. Here is a screenshot: ![Screenshot of output](http://i.stack.imgur.com/xOxud.png)


title: biber tries to treat CJK in .bib as ASCII, despite the file being saved in Unicode -> error in biblatex-chicago references

text: I'm trying to use a .bib that contains CJK characters for my document which uses biblatex-chicago and biber. However, biber writes out the bibliography in ascii when I run               biber <filename>.bcf      This prevents pdflatex to process the bibliography properly, and the references are garbled. My document is:               \documentclass{article}     \usepackage[american]{babel}     \usepackage[babel]{csquotes}     \usepackage[notes,isbn=false,backend=biber,bibencoding=utf8]{biblatex-chicago}       \addbibresource{try.bib}     \begin{document}          Test\autocite{Xunisha2012}          \end{document}      and my .bib is:               @book{Xunisha2012,     Author = {{Xu Nisha}},     nameaddon = {徐倪莎},     Publisher = {Payot},     Title = {Yi jiu qi qi nianjie de gaokao},     titleaddon = {一九七七年届的高考},     usere = {The 1977 session of the university entry examinations},     Year = {2013}}      Thank you for your help! **Update** When I run biber with unicode:               biber -u -U try.bcf      I get nothing in the CJK fields instead of the garbled text from before; still no CJK output.


title: STIX fonts & TL2013 packaging

text: Based on the discussion here Is it already possible to use the STIX fonts? it appears that the STIX project (release 1.1) supports LaTeX; I'm eager to get started with them! TL2013 does have a current `stix` package, which is based on release 1.0 and does not provide LaTeX support. **Question.** Is there a reason that TL hasn't upgraded to version 1.1, or is this just a matter of time (and patience)? If there is a significant obstacle, could someone explain? (I am aware that one could--in principle--install STIX v1.1 (or, of course, 1.2) by hand, but I am not exactly sure how to do that.)


title: How to suppress vertical space between proof environment heads and itemize environments?

text: The user 'egreg' recently helped me to suppress vertical space between theorem heads and `enumitem` environments (such as `itemize`; see the link below). I now have a similar problem: When a `proof` environment starts with an `itemize`, there is too much vertical space. How can the `proof` environment be redefined such that this space is (at least party) suppressed? Ideally, it should be a "clean" solution, so that one can type `\begin{proof}` followed by `\begin{itemize}` and no complicated commands in-between. By redefining the `proof` environment as a theorem, one could circumvent the problem, but how can the q.e.d. symbol be nicely placed? Not sure if that's a good approach.               \documentclass{scrartcl}          \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage[american]{babel}     \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{etoolbox}     \usepackage{enumitem}          % theorems     \newif\ifstarttheorem     \newtheoremstyle{mythmstyle}%     {0.5em}%     {0.5em}%     {}%      {}%      {\sffamily\bfseries\global\starttheoremtrue}%      {}%      {\newline}%      {\thmname{#1}\ \thmnumber{#2}\ \thmnote{(#3)}}%      \theoremstyle{mythmstyle}%           % proofs     \renewcommand*\proofname{Proof}     \makeatletter% q.e.d. adjustment (posted by ???)     \renewenvironment{proof}[1][\proofname]{\par       \pushQED{\qed}%       \normalfont\topsep2\p@\@plus2\p@\relax       \trivlist     \item[\hskip\labelsep       \sffamily\bfseries #1]\mbox{}\hfill\\*\ignorespaces     }{%       \popQED\endtrivlist\@endpefalse     }     \makeatother          % suppress vertical spacing (for itemize) when newtheorems start with an environment     % see http://tex.stackexchange.com/questions/60001/nested-enumerate-enumitem-interferes-with-suppressing-vertical-space-after-the     \makeatletter     \preto\itemize{%       \if@inlabel         \ifstarttheorem           \mbox{}\par\nobreak\vskip\glueexpr-\parskip-\baselineskip+0.3em\relax\hrule\@height\z@           \global\starttheoremfalse         \fi       \fi}     \preto\enditemize{\global\starttheoremfalse}     \makeatother          % document     \begin{document}     Let's prove something:     \begin{proof}       \begin{align*}         x=y,\quad y=z\quad\Rightarrow\quad x=z.       \end{align*}     \end{proof}     Here a nicer vertical spacing:     \begin{proof}       Just some text:       \begin{align*}         x=y,\quad y=z\quad\Rightarrow\quad x=z.       \end{align*}     \end{proof}     Here a version with itemize:     \begin{proof}       \begin{itemize}         \item $x=y,\quad y=z\quad\Rightarrow\quad x=z.$       \end{itemize}     \end{proof}     \end{document}


title: How to put table caption on top without using float or floatrow package

text: I have got some very simple table; something of the sort:               \begin{table}     \centering     \begin{tabular}{|c|c|c|}         \hline          1 & 2 \\ \hline         3 & 4 \\ \hline     \end{tabular}     \caption{This is a table description that should be on top of the table.}     \end{table}      I am trying to produce a table with the caption on top, but I have one handicap: the style sheet does not allow the use of the `float` or `floatrow` package. This proves quite complicated, cause I can't use the solutions provided here and here. But apparently it can be done, as I've seen publications that manage it. What's their secret?


title: Is there a group/organization/network of people who create TeX/LaTeX-based versions of old or public domain texts?

text: Simply put, is there a Project Gutenberg for TeX and Friends?


title: pgfplot xbar legend ordering

text: when I am drawing a xbar chart, I have troubles with the legend entries. They appear to have the opposite ordering as I suppose they should have.               \begin{tikzpicture}     \begin{axis}[xbar]       \addplot  coordinates {(2.659244418,1)};       \addlegendentry{A}       \addplot  coordinates {(18.95781994,1)};       \addlegendentry{B}     \end{axis}     \end{tikzpicture}      ![Example plot](http://i.stack.imgur.com/XE6Ig.png) Either the bar position should switch or the legend label position. Somethings seems to be wrong here. Maybe anyone has an idea?