title: Forcing numbered bibliography

text: I'm using the acmsmall.cls document class. My issue is in that my reference list is coming up unnumbered, yet my `\cite{}` tags are producing (correctly indexed) number based references. (e.g. `[1]`) How can I either force my reference list to be numbered, or automate my citations to contain author information, or something else which can be linked to my reference list, without the user needing to count along! (I'm not restricted in my reference formatting, but how it is now obviously doesn't work!) I'm currently formatting my bibliography like so.               \begin{thebibliography}{}          \bibitem{G}     Carretero, J., Isaila, F., Kermarrec, A. M., Taïani, F., \& Tirado, J. M.      (2012, June).      Geology: Modular georecommendation in gossip-based social networks.      In Distributed Computing Systems (ICDCS), 2012 IEEE 32nd International Conference on (pp. 637-646).      IEEE.          \end{thebibliography}      I've tried to make use of `\citeA{key}` and `\citeN{key}` suggested in the acmclass comments, but with no success - I don't know if these need a Bibtex file to work? I've also tried various `\begin{thebibliography}` with various second parameters, with no luck.


title: Date of file creation

text: When I write my notes, (I actually use lyx but that does not matter) I like to add a header with the name of file and the date the file was compiled. This I do using fancyhdr package and               \pagestyle{fancy}     \lhead{\texttt{\jobname}}     \rhead{\textsf{\today}}      (to tell the truth in lyx I have to use `\jobname.lyx`, but, again, this does not matter). The point is that it would be much more useful (at least for me) to be able to print the _date when the file was first created_. Is there a way in TeX/LaTeX to access the time information of a latex file? I can understand the answer might be OS dependent. I am actually using a linux distribution. I looked in many other forums/FAQ but could not find the answer so far.


title: Modify the header on tufte-handout

text: I am using the tufte-handout documentclass and the title of my document is 101 characters. Consequently the header on the pages following page one flow over to a second line in the header. If my title is, "This is the title of the paper: An inquiry into something interesting to talk about in order to finish" would it be possible to just have the first part of the title appear in the header (i.e. 'This is the title of the paper')? Here is my preamble:               \documentclass{tufte-handout}          %\geometry{showframe}% for debugging purposes -- displays the margins          \usepackage{amsmath}          % Set up the images/graphics package     \usepackage{graphicx}     \setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}     \graphicspath{{graphics/}}          \title{This is the title of the paper: An inquiry into something interesting to talk about in order to finish}     \author{John Doe}     \date{}  % if the \date{} command is left out, the current date will be used          % The following package makes prettier tables.  We're all about the bling!     \usepackage{booktabs}          % The units package provides nice, non-stacked fractions and better spacing     % for units.     \usepackage{units}          % The fancyvrb package lets us customize the formatting of verbatim     % environments.  We use a slightly smaller font.     \usepackage{fancyvrb}     \fvset{fontsize=\normalsize}          % Small sections of multiple columns     \usepackage{multicol}          % Provides paragraphs of dummy text     \usepackage{lipsum}          % These commands are used to pretty-print LaTeX commands     \newcommand{\doccmd}[1]{\texttt{\textbackslash#1}}% command name -- adds     backslash automatically     \newcommand{\docopt}[1]{\ensuremath{\langle}\textrm{\textit{#1}}\ensuremath{\rangle}}% optional command argument     \newcommand{\docarg}[1]{\textrm{\textit{#1}}}% (required) command argument     \newenvironment{docspec}{\begin{quote}\noindent}{\end{quote}}% command specification environment     \newcommand{\docenv}[1]{\textsf{#1}}% environment name     \newcommand{\docpkg}[1]{\texttt{#1}}% package name     \newcommand{\doccls}[1]{\texttt{#1}}% document class name     \newcommand{\docclsopt}[1]{\texttt{#1}}% document class option name     \titlespacing*{\chapter}{0pt}{5pt}{40pt}      \begin{document}


title: How can I specify text to be included in the pdflatex output log during compilation.

text: I would like to be able to have some kind of logging command that is able to log text to the default pdflatex logfile (`<input-base-filename>.log`). Is this possible, and if so, how? In particular, I'd like to be able to use this command inside the document (i.e. between `\begin{document}` and `\end{document}`).


title: How to correct this indention problem?

text: I use this makro to define a question:               \def\bigfreequestion#1\par{#1\par\nobreak         \begingroup\nobreak         \advance\leftskip by 1pc         \hrule width 0pt height 1.7\baselineskip\hrulefill         \hrule width 0pt height 1.7\baselineskip\hrulefill         \hrule width 0pt height 1.7\baselineskip\hrulefill         \hrule width 0pt height 1.7\baselineskip\hrulefill         \hrule width 0pt height 1.7\baselineskip\hrulefill         \par         \medskip         \endgroup         }      Then I use it like this:               \section{Remarks}     \bigfreequestion What did you like the most? \par \bigskip     \bigfreequestion What didn't you like? \par \bigskip     \bigfreequestion Please share your suggestions how to improve the prototype: \par \bigskip     \bigfreequestion Please share any other remarks: \par      But the problem is, the first question is indented correctly: ![enter image description here](http://i.stack.imgur.com/byklE.jpg) Any hints how to correct that?


title: how to draw circles inside circles

text: I'm learning how to use TikZ/PGF. I want to draw this picture : ![enter image description here](http://i.stack.imgur.com/2lncz.png) Here's how I began :               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[frenchb]{babel}       \usepackage{tikz}     \usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,}          \begin{document}         \begin{tikzpicture}             \node (sun) at (0,0) [circle, fill=yellow, radius=0.3cm]{};             \node (sunlabel) [above=0.08 of sun]{Sun};             \node (root) at (0,0) [draw, circle, radius=3cm]{};         \end{tikzpicture}     \end{document}      The problem is that the second circle is not drawn. I don't know what's the problem. This syntax work but I don't know how to give a name to the circles and how to fill a circle with a color.               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[frenchb]{babel}       \usepackage{tikz}     \usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,}          \begin{document}         \begin{tikzpicture}             \draw (0,0) circle [radius=.3cm, fill=yellow];             \draw (0,0) circle [radius=2cm];              \path[                 %rotate=-15.2,                 postaction={                     decoration={                         text along path,                         text={%                             OORT CLOUD                         },                         text align=center,                         reverse path                     },                     decorate                 }             ]              (-27:2.2cm) arc (-27:210:2.2cm);         \end{tikzpicture}     \end{document}


title: Add field "tome" to biblatex entries

text: I need to add a new field in the @book or @InProceedings entries: this field is "tome", for I have for instance the following title:               Francesco Bertolini, Società di trasmissione orale: mito e folclore, in Lo spazio letterario della Grecia antica, a cura di G. Cambiano, L. Canfora e D. Lanza, vol. I, tomo I, Salerno, Roma 1992, pp. 47--75. So the following code is not enough:               @InProceedings{ bertolini:1992,       author                   = "Francesco Bertolini",       title                    = "Società di trasmissione orale: mito e folclore",       booktitle                = "Lo spazio letterario della Grecia antica",       editor                   = "G. Cambiano and L. Canfora and D. Lanza",       publisher                = "Salerno",       location                 = "Roma",       year                     = "1992",       volume                   = "1,       pages                    = "47--75",     } Using othes codes, I was able only to produce the "tome" field, but with a general trouble about the other fields:               \DeclareSourcemap{       \maps[datatype=bibtex]{         \map{           \step[fieldsource=tome,fieldtarget=usera]         }       }     }     \DeclareFieldFormat{usera}{tomo\space{#1}}                   \DeclareBibliographyDriver{book}{%       \usebibmacro{author/editor}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{title}%       \newunit\newblock       \usebibmacro{journal+issuetitle}%       \setunit{\bibpagespunct}%       \printfield{pages}%       \newunit\newblock       \printfield{usera}%       \usebibmacro{finentry}}     \renewcommand*{\finentrypunct}{} (useful for articles, but not for my case). By real, I'm not able to understand which bibmascros I have to invocate... I tried to write a biblatex-tome.dbx:               \ProvidesFile{biblatex-tome.dbx}           \DeclareDatamodelFields[type=field,datatype=literal,skipout=false]{tome}           \DeclareDatamodelEntryfields{tome} Inside the main .tex file I put just this code:               \DeclareFieldFormat{tome}{\mkbibacro{tome}\addcolon\space #1}     \newcommand*{\patchmoretome}[1]{       \xpatchbibdriver{#1}%         {\printfield{tome}}         {\printfield{tome}%               \newunit\newblock          \printfield{tome}}%         {\typeout{patching #1 to include more tome succeded}}%         {\typeout{patching #1 to include more tome failed}}%     }     % patch all drivers     \patchmoretome{article}     \patchmoretome{book}     \patchmoretome{collection}     \patchmoretome{inbook}     \patchmoretome{incollection}     \patchmoretome{inproceedings}     \patchmoretome{manual}     \patchmoretome{periodical}     \patchmoretome{proceedings}     \patchmoretome{report}     \patchmoretome{thesis} but it doesn't print the field in bibliographic entry. So I'm very confused about a (re)writing of driver


title: indicate a right angle in 3d

text: The following MWE shows what appears to be a piece of paper folded. I want to indicate that the angle between the dashed lines is right angled by adding a simple square at M, such that the missing edges of the square are parallel to MD and MD2.               \documentclass{article}     \usepackage{tikz}          \begin{document}          \begin{tikzpicture}[z={(0,1)},y={(1,0.6)},x={(3,-1)}]         \coordinate (A) at (0,2);            \coordinate (B) at (3,2);            \coordinate (C) at (3,0);            \coordinate (M) at (0.92,1.38);         \coordinate (D) at (1.85,2.77);              \draw[fill=white] (A)node{A}--(B)node{B}--(C)node{C}--cycle;              \path (M) ++(0,0,2.3) coordinate (D2);         \draw[fill=white,opacity=0.8](A)--(D2)--(C);              \draw[dashed](D2)node{D2}--(M)node{M}--(D)node{D};              \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/vCAIX.png)


title: Using \show in nonstopmode causes TeXmaker to raise false alarms. Any fix?

text: I'm currently reading the TeXbook, and I use `\show` a lot to see how Knuth defined plain-TeX macros in terms of TeX primitives. For instance, to have access to the definition of `\centerline`, I would write `\show\centerline` in my input file. When I compile that file with `pdftex` in interactive mode from the command line (a Unix terminal, in my case), TeX generates an error message that shows me the definition of `\centerline` in the terminal and offers me a menu of options (as described in Chapter 6: _Running TeX_ in the TeXbook). I understand that design choice by Knuth of having TeX generate an error message for each instance of `\show`: he probably wanted to leave the user some time to read what `\show...` prints in the terminal before letting TeX resume execution, instead of having to open the log file only after the end of the compilation. However, instances of `\show...` in the input file have the undesirable side- effect of raising "errors" ( _false alarms_ , really) when `pdftex` is called from within an IDE such as TeXmaker with option `-interaction=nonstopmode`. For example,               \show\centerline     \bye      when compiled with `pdftex -interaction=nonstopmode` causes TeXmaker to report ![enter image description here](http://i.stack.imgur.com/EFeM5.png) Obviously, those false alarms prove really annoying when debugging. I always have to ask myself: _Wait... are those errors due to instances of`\show` in my input file, or are they bona fide errors?_ On the other hand, my understanding is that you _have to_ specify               -interaction=nonstopmode      if you want to call pdftex from within an IDE. Therefore, my question is: **Is there any way of preventing TeXmaker from reporting those "false alarms"?** Note: the problem I describe may be present in IDEs other than TeXmaker as well.


title: Bibtex-Natbib-Failure to change in-text citations from numerical style to "author-date" style

text: I am having a difficulty inserting my references in the text in the "author- date" format. I have read all possible blogs and documents and haven't figured it out yet. I am new to this software, so maybe I am missing a key command/feature in order to make it work. The following is my preamble:               \documentclass[preprint,12pt]{elsarticle}     \usepackage{natbib}      \biboptions{comma,round}     \begin{document}     [Manuscript text composed of different sections:Abstract, Introduction, Materials        and Methods, Results and Discussion, Conclusion and References; with in-text        citations in the following form: \cite{Menaa}]     \bibliographystyle{plainnat}     \bibliography{references-updated-send3}     \end{document}      If I write it in the following form: \usepackage[comma,round]{natbib} the latex document would not generate the PDF document With all these commands in place, when I use natbib specific commands such as `\citep` or `\citet`, the in-text citations still appear in the numerical style. I am not sure whether I should modify my bibtex style or something to appear in the latex document in the proper style. The one thing I know for sure, is that my bibtex is accessible because references are showing up within the text and in the references section, but those within the text are in the wrong format. I would greatly appreciate any feedback as it will help me tremendously advance on my manuscript. Thanks!


title: addplot3 [area plot] filling the wrong area

text: using some saved data, i use (The data file cane be download from pX.txt where the first column is the x and at each iteration, I plot the other columns with respect to the first column)                   \documentclass{article}     \usepackage{pgfplots,pgfplotstable}          \pgfplotstableread{pX.txt}\datatablePX%                    \begin{document}               \begin{tikzpicture}     \begin{axis}[         zmin=10^5,         area plot/.style={             fill opacity=0.75,             draw=black!50!black,             fill=blue!50,             mark=none,         },         xlabel={$x[m]$},ylabel={Time},zlabel={p[bar]}     ]          \pgfplotsinvokeforeach{120,119,...,1}{       \addplot3 [area plot]  table [x index=0, y expr=#1, z index=#1] {\datatablePX};     }               \end{axis}     \end{tikzpicture}          \end{document}      to plot some data in 3d, where I want the area under the curves to be filled. However, the wrong area is being filled as one can notice in the following plot. ![enter image description here](http://i.stack.imgur.com/MZO5s.png) It is filling the area to a line plot between the start and the end values. Why doesn't it simply fill with respect to the x-axis?


title: Why doesn't latex recognize my figure

text: I've got a figure, which is displayed fine:                   \begin{figure}[htbp]         \centering             \begin{subfigure}[b]{0.48\textwidth}                     \includegraphics[width=\textwidth]{xp_potato.eps}                     \caption{X and P in the complex plane}                     %\label{fig:xp_potato}             \end{subfigure}%             \begin{subfigure}[b]{0.48\textwidth}                     \includegraphics[width=\textwidth]{xp_amp.eps}                     \caption{Phase modulated amplitdue}                     %\label{fig:xp_amp}             \end{subfigure}              \label{fig:xp}       \caption{\textbf{Quadrature balancing problem.} ...}     \end{figure}      and now I would like to reference it (after the figure):               \hyperref[fig:xp]{Figure ~\ref{fig:xp}}      But I get this result: "Figure ??" However when I click on it, my viewer jumps to the right figure. This scheme works fine through out my whole thesis. How can I fix this reference?


title: Latin Modern Roman Unslanted licensing

text: I downloaded a family of Latin Modern font from latex website some time ago. It's licensed under LPPL license, but I still don't understand if that means that I can use it on a public website, somewhat dedicated to profit. Anyone?


title: Biblatex: Quotes in author names

text: How can I put a nickname for an author in quotation marks (using biblatex)? The following example puts an erroneous period after "Doe":               \documentclass{article}     \usepackage[american]{babel}     \usepackage[strict]{csquotes}     \usepackage[backend=biber, style=alphabetic, firstinits=true]{biblatex}          \begin{filecontents}{test.bib}     @Article{Morgan,       Title   = {Article title},       Author  = {Hyde, Allan and Morgan, John {\enquote{Doe}} and Jekyll, Martin},       Journal = {Journal title},       Year    = {2014}     }     \end{filecontents}          \bibliography{test}          \begin{document}       \nocite{*}       \printbibliography     \end{document}      ![enter image description here](http://i.stack.imgur.com/jK1cs.png) And is there a smarter/more concise way to specify the quoted text in the bib file than `{\enquote{nickname}}` ?


title: ADC in tikz (circuitikz)

text: How it is possible to draw an ADC (analog to digital converter) with tikz library ? Some Simple ADC like this ? ![enter image description here](http://i.stack.imgur.com/YiM2J.png) What is the right way to place nodes on such rectangle so that i can use it further with specifying nodes the same way we do when using some circuitikz figures               \draw      (1.5,-2) node[op amp] (opamp) {}     ;      and then use it's nodes:                (opamp.-) to [short, -o] ++(-2.5, 0) node[left] {$V_1$}


title: convert a \newcommand to \newenvironment

text: I have defined a command as follows               \newsavebox{\textsix}          \newcommand{\bottomr}[1]{\sbox{\textsix}{\parbox{11cm}{\begin{flushright} #1     \end{flushright}}}}      which save the parameter (text) of the command `\bottomr` to a `\sbox`, That can be used with `\usebox{\textsix}` I would like to convert it to an environment like               \newsavebox{\textsix}     \newenvironment{bottomr}{ }{ }      which capture the text inside `bottomr` environment and save it to a `\sbox` Approximate like this               \documentclass[a4paper{article}     \usepackage{lipsum}          \begin{document}     \newsavebox{\textsix}     \newenvironment{bottomr}{?}{?}     \begin{bottomr}     \lipsum[1]     \end{bottomr}          \usebox{\textsix}     \end{document}


title: Controlling Theorem tags in Beamer

text: I am writing slides which follow a textbook, and it is obviously desirable for the theorem and equation numbering to coincide with that in the text. I have no problem `\tag`-ing equations and linking to them with `\eqref` \-- the references use the correct numbering. But when I label a theorem and link to it, the numbering does not follow that in the textbook. E.g.,               \begin{frame}       \begin{theorem}[3.12]         \label{thm:3.12}         $A \rightarrow B$       \end{theorem}      \end{frame}          \begin{frame}       As was shown in Theorem \ref{thm:3.12}, \ldots      \end{frame}      In that example the reference shows up as "1" instead of "3.12". But I cannot `\tag` the theorem environment. > How do I control the numbering/text inside `\ref`?


title: create a stacked histogram with tikz

text: I try to create a stacked histogram. Like this: ![enter image description here](http://i.stack.imgur.com/tfteU.png) My data consists of classes (0-4) and a float value for each class. I already have a histogram for all mean values. But I would like to color the bars according to the amount of classes in each bar. What I have: ![enter image description here](http://i.stack.imgur.com/JsDSW.png) Code:               \documentclass{article}     \usepackage{filecontents}     \usepackage{pgfplots, pgfplotstable}     % first number is a class (0-4), second float number is the mean of the data     \begin{filecontents*}{data.csv}                     1,0.177597344546                     1,0.18105947348                     1,0.177429493018                     2,0.244377481246                     4,0.185496836789                     0,0.180714004683                     4,0.187928321127                     3,0.188037364067                     4,0.187302774169                     3,0.188172520266     \end{filecontents*}     \begin{document}     \begin{tikzpicture}         \begin{axis}[                 ybar stacked,                 ymin=0,             ]             \addplot +[                 hist={                     bins=20,                 }                ] table [x, y, col sep=comma] {data.csv};         \end{axis}     \end{tikzpicture}     \end{document}


title: Why wasn't \fbox defined to enclose its contents based on the most left, right, bottom, top parts of its contents?

text: ## Case 1: `\fbox` cannot enclose characters tightly Why don't `\fbox` and PSTricks `\psframebox` enclose its contents accurately? In my opinion, every edge should exactly touch the outer part of its contents. Does changing font solve this issue?               \documentclass{article}     \usepackage[english]{babel}     \usepackage{pstricks}          \fboxsep=0pt     \fboxrule=0.001pt          \begin{document}     \color{red}\fbox{\color{black}3}     \end{document}      ![enter image description here](http://i.stack.imgur.com/KZGwh.png) This funny feature might be the source of problem where pdfcrop accidently trims grid labels. ## Case 2: `\fbox` cannot enclose PSTricks grid labels It is another example where `\fbox` and `\psframebox` cannot accurately enclose their contents.               \documentclass{article}     \usepackage[english]{babel}     \usepackage{pstricks}          \fboxsep=0pt     \fboxrule=0.001pt          \begin{document}          \color{red}     \fbox{\color{black}%     \pspicture[showgrid](3,3)     \endpspicture     }          \vspace{1cm}          \psframebox[framesep=0pt,linewidth=0.001pt,linecolor=red]{%     \pspicture[showgrid](3,3)     \endpspicture     }     \end{document}      Should the frames enclose the grid labels? In my mental model, they should. ![enter image description here](http://i.stack.imgur.com/QB3oA.png) ## Questions In my mental model, `\fbox` should enclose its contents tightly when `\fboxsep=0pt` without allowing any part of its contents to reside outside its frame. If `\fbox` allows any part of its contents to live outside its frame, what is `\fbox` actually for? _Why wasn't`\fbox` defined to enclose its contents based on the most left, right, bottom, top parts? I think it is more useful, right?_


title: pgfplots - How can I deactivate a global option locally, i.e., for one plot?

text: The code below works as intended and contains a solution to have zero lines (as provided by percusse here). It produces the following picture although the MWE produces an error. How can I "disable"/deactivate the code in the preamble for this instance? Is that even possible? ## Picture ![enter image description here](http://i.stack.imgur.com/eHQVm.png) ## MWE               \documentclass[     11pt,     a4paper     ]     {scrreprt}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{lmodern}          \usepackage{         tikz,         pgfplots,         pgfplotstable     }          \pgfplotsset{     execute at begin axis={         \draw[very thin] (axis cs:\pgfkeysvalueof{/pgfplots/xmin},0) -- (axis cs:\pgfkeysvalueof{/pgfplots/xmax},0);         \draw[very thin] (axis cs:0,\pgfkeysvalueof{/pgfplots/ymin}) -- (axis cs:0,\pgfkeysvalueof{/pgfplots/ymax});     },     }          \begin{filecontents}{data.csv}     year;word     2009;2.448     2010;2.773     2011;3.373     2012;3.952     2013;4.792     \end{filecontents}          \listfiles          \begin{document}     \begin{center}     \begin{tikzpicture}[font=\small]     \begin{axis}[     height=6cm,     %width=14cm,     %     ymin=0,     ymax=12,     %     x tick label style={         /pgf/number format/1000 sep={},     },     %     xlabel={year},     ylabel={Value in mio. EUR},     ]     \addplot+ table [col sep=semicolon, x=year, y=word] {data.csv};     \addlegendentry{\textsc{\large{bmw}}}     \end{axis}     \end{tikzpicture}     \end{center}     \end{document}


title: PSTricks and documentclass

text: I have a problem using PSTricks for `elsevier` journal. As you may know, preprints and review versions of papers usually use a different `documentclass` in LaTeX than the one used for the final version of the paper. The problem is that I wrote my paper and all figures are done with PSTricks, but when I change the `documentclass` of the final version to generate the `pdf`, all pictures change size and the elements of each `pspicture` is messed up. How can I solve this issue??


title: Arrow labelling

text: How would I label the arrows in the following:               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{positioning}     \usetikzlibrary{petri}     \tikzset{state/.style={circle,draw=gray,inner sep=0pt,minimum size=7mm,label=center:$#1$,name=#1},     redarrow/.style={->, red, fill=none,>=stealth},bluearrow/.style={->, blue, fill=none,>=stealth},       redline/.style={-,red,fill=none},blueline/.style={-,blue,fill=none}}          \begin{document}          \begin{tikzpicture}     \node[state=a^{-1}]{};     \node[state=1,right=of a{-1}]{};     \node[state=b,above=of 1]{};     \node[state=a,right=of 1]{};     \node[state=ab^{-1},above=of a]{};     \node[state=aa,right=of a]{};     \node[state=ac,below=of a]{};     \node[state=acc,right=of ac]{};     \node[state=aca,below =of ac]{};     \draw[redarrow](a^{-1})--(1);     \draw[redarrow](1)--(b);     \draw[redarrow](1)--(a);     \draw[redarrow](ab^{-1})--(a);     \draw[redarrow](a)--(aa);     \draw[redarrow](a)--(ac);     \draw[redarrow](ac)--(acc);     \draw[redarrow](ac)--(aca);     \end{tikzpicture}          \end{document}


title: TeXworks: How to store spell checker settings?

text: I'm using TeXworks to write my documents. TeXworks provides the ability to spell check the document, chosing a specific language (english, german or french in my case). But I noticed that every time i restart TeXworks the spell checker is switched off and I have to enable it again and also chose the language again. How can I store that?


title: make index started with mathcal mode in the right order

text: I want to make index something like: `$\mathcal{P}$-vector\index{$\mathcal{p}$-vector}` but when indexed it comes before words started with 'A' instead of being after 'O' words.


title: Help with a custom-command: Space should not be inserted

text: I have a problem with a command i make for a specific glossary:               \newcommand{\term}[4]{\glslink{term:#1}{#2}}     \makeatletter     \def\term#1{\def\tempa{#1}\futurelet\next\term@i}% Save first argument     \def\term@i{\ifx\next\bgroup\expandafter\term@ii\else\expandafter\term@end\fi}%Check brace     \def\term@ii#1{\glslink{term:\tempa}{#1}}%Two args     \def\term@end{\glslink{term:\tempa}{\tempa}}%Single args     \makeatother      It should work like this:               '\term{BAR}' -> '\glslink{term:BAR}{BAR}'     '\term{BAR}{FOO}' -> '\glslink{term:BAR}{FOO}'      It works fine except of the space that is entered before the Result. It seems to work like that               '\term{BAR}' -> '\xspace\glslink{term:BAR}{BAR}'     '\term{BAR}{FOO}' -> '\xspace\glslink{term:BAR}{FOO}'


title: Best practice to peer-review a LaTeX document?

text: I'm currently writing a big document in LaTeX. The language is English and since I'm not a native English speaker, I've found a friend who will review and correct the document for me as soon as I have finished it. Now I'm thinking about how this can be done. I don't want him to change the original version of my documents, since maybe I don't want to include all the modifications. So how can I best compare two different versions of LaTeX documents to see what he has changed?


title: Is there a way to automatically generate \bibitem entries from a bibtex file?

text: I have a LaTeX document with bibliography done using bibtex (so I have a .bib file). However, looks like my current collaborator is not familiar with bibtex and doesn't want to get familiar (as he is considerably more senior I can't really force him to anything). Is there an automated way to generate `\bibitem` entries from my bibtex file, so that I could just copy these into the version I will send to my collaborator?


title: Removing number from bibliography title

text: I am using the following commands to rename the title of the bibliography, and I declare the bibliography in this style:               \documentclass[11pt,a4paper,twoside,openright]{article}     \usepackage[magyar]{babel}     \usepackage[nottoc,numbib]{tocbibind}     \usepackage[toc,page]{appendix}     \usepackage{titlesec}          \AtBeginDocument{\renewcommand{\refname}{Irodalomjegyzék}}     \AtBeginDocument{\renewcommand{\bibname}{Irodalomjegyzék}}          \begin{document}          \tableofcontents          % ...          \begin{thebibliography}{1}         % bibitems     \end{thebibliography}          \end{document}      Unfortunately, LaTeX prints a number before the title "Irodalomjegyzék", in the document and also in the ToC. ![Bibliography title with trailing quad](http://i.stack.imgur.com/tlI4q.png) How can I remove the number from the title?


title: Breaking long lines using latex with minted and pygments

text: Since Acrobat obviously isn't able to convert XML to PDF from command line, I'm trying to achieve it using LaTeX. I found the `minted` package doing a quite good (and simple) job since it uses pygments to do the formatting and then puts back the formatted text into my document. The package is working fine except when it comes to long lines in the input XML document that I'm trying to convert to PDF: the generated XML content in the PDF exceeds the right border of the document: ![screenshot](http://i.stack.imgur.com/c0jsO.png) Finally, to put in a question:   _Is there any way that I can tell pygments which page width to use for the output (and possibly keep a nice indent when it has to break a line, just like the Internet Explorer does when displaying XML files)?_ Yes, I _could_ use the `listings` package instead, but with that one, AFAIK I have to define the keywords to get a reasonable highlighting for the XML content, right?


title: \animategraphics is not animating the provided images

text: \begin{figure}            \animategraphics[autoplay,loop]{10}{anim-}{0}{11}       \end{figure}      I have anim-0.png to anim-11.png images. And I have included               \usepackage{animate}     \usepackage{graphics}      Still I am getting still image on previewing.               \documentclass[compress]{beamer}          \usepackage[utf8x]{inputenc}     \usepackage[english]{babel}     \usepackage{default}     \usepackage[toc,page]{appendix}     \usepackage{enumerate}     \usepackage{amssymb,amsmath,graphicx,tikz,movie15}     \usepackage{hyperref}     \usetheme{Ilmenau}     \usecolortheme{dolphin}     \usepackage{caption}     \usepackage{subcaption}     \usepackage{animate}     \usepackage{graphics}     \title{Data\\}          \begin{document}          \begin{frame}     \titlepage     \end{frame}     \section{Introduction}     \begin{frame}        \frametitle{2D Animation}        \begin{figure}             \animategraphics[autoplay,loop]{10}{anim-}{0}{11}          \end{figure}     \end{frame}     \end{document}


title: How to wrap text around a TikZ image?

text: I'm trying to wrap text around a TikZ image using the `wrapfigure` package, but it doesn't seem to be working--the document compiles, but the image is pushed down with new text. The error I get on the log is that `wrapfigure` is being used in a conflicting environment. I'm not quite sure how to resolve this and I would appreciate any help. Here's my code:               \documentclass[a4paper,12pt]{article}          \usepackage{outlines}     \usepackage{tensor}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{wasysym}     \usepackage[top=2cm, bottom=1.3cm, left=3cm, right=2.0cm]{geometry}     \usepackage{tikz}     \usepackage{graphicx}     \usepackage{wrapfig}     \pagestyle{empty}          \begin{document}     \section*{Chapter 3 Problems}     \begin{outline}[enumerate]       \1 A car is driven 215 km west and then 85 km southwest. What is the displacement of the car from the point of origin (magnitude and direction)? Draw a diagram.       \begin{wrapfigure}{l}{0.5cm}       \begin{tikzpicture}         \draw[<->,thick] (-3,0) -- (1,0);         \draw[<->,thick] (0,-2) -- (0,1);         \draw[step=0.25cm,gray,very thin] (-3,-2) grid (1,1);         \draw[red,very thick,<-] (-2,0) -- (0,0);         \draw (-1,0.15) node [font=\tiny] {215 km};         \draw[blue,very thick,->] (-2,0) -- (-2.5591,-1);         \draw (-2.1,-0.5) node [rotate=57,font=\tiny] {85 km};         \draw (-2.22,0) arc (180:225:0.3);         \draw[black,thick,->] (0,0) -- (-2.5591,-1);         \draw (-1,0) arc (180:225:0.5);         \draw[orange,very thick,dashed] (-2.5591,0) -- (-2.5591,-1);         \draw[green,very thick,dashed] (-2,0) -- (-2.5591,0);       \end{tikzpicture}       \end{wrapfigure}         \2 [] Displacement in the \textit{y}:           \3 [] \textit{D}$_y$       \end{outline}          \end{document}      Thanks in advance!


title: Tikz fit library: fitting only one dimension and accumulating calls

text: The `fit` library is very useful for adjusting the size of a node to fit other nodes inside it. It is also useful in conjunction with `shift` to make a node span to the width/height of other nodes but saty beside them. I feel this is a common enough situation to justify dedicated keys. From the code defining the `fit` key, all four anchors `north`, `south`, `west` and `east` are always considered for fitting. This does make sense for genereal fitting but in some cases it would be useful to fit only in one dimension. This could be easily achieved by defining something like a `fit width` key considering only `east` and `west` anchors in its calculations. Here's the question: is it possible to emulate this without duplicating the `fit` definition and with minimal hassle? Additionally: if you use `fit` twice in a row, the second overrides the first; it would be great to provide an `also fit` key setting the max of the current size and the one fitting the given nodes. This question is related but the answers avoid the use of the fit library.


title: How do I make a Theorem n followed by a Theorem n' ?

text: I am writing a paper where I have a stated a theorem, and then a short time later I state another theorem which is equivalent to the first. Is it possible to number them so that the second is a primed version of the first? In other words, if the first gets numbered as Theorem 7, I would like its equivalent version to be numbered as Theorem 7'. Ideas? Thanks.


title: Latex Beamer Madrid theme - how to get smoothbars in the footer not header?

text: How do I create a custom `beamer` style where my header contains only the title of the slide, and my footer - the smoothbars "dots" style of how far the presentation has progressed, i.e. > (((TITLE))) > > Frame content > > (((what you get above the title if you use > `\useoutertheme[subsection=false]{smoothbars}`, but I want it in the > footer))) I'm using `Madrid` as my basis style at the moment, but I'm happy to use another style if it can't be customized.


title: How can I affect my table formatting from the preamble?

text: I'd like to change my LaTeX table formatting slightly, but due to the way the documents are generated, I can't do so by changing the actual LaTeX code, but can change what will appear in the preamble. The change I'd like to make is to have the 1st column width fitted to the text. I know this can be achieved from the LaTeX code from changing first the `|L|` to `|l|` (i.e making the `l` lower case)               \begin{tabulary}{\linewidth}{|L|L|}     table stuff     \end{tabulary}      But is there any way that this can be made the default case by changing something in the preamble? Also, a second question, though less important, is about if it's possible to have a very long string (longer than column width) wrapped around to the next line. Because at the moment I have a hyperlink in a column which ignores the column boundary and just juts out. If anyone can help with wither or both of these I'd be grateful.


title: How to create a new command with variable numbers of arguments

text: I am creating one command to define a functional requirement and many non functional requeriment in a table. I wrote the following code:                 \newcounter{Number}       \newcommand{\Item}{\stepcounter{Number}\theNumber}       \newcounter{NumberReqF}       \newcommand{\ReqF}{F\stepcounter{NumberReqF}\theNumberReqF ~- }       \newcounter{NumberReqNF}[NumberReqF]       \newcommand{\ReqNF}{NF \stepcounter{NumberReqNF}\theNumberReqF .\theNumberReqNF ~- }            \usepackage{tabularx,calc}       \newcolumntype{Y}[1]{>{\setlength\hsize{#1\hsize}%                        \raggedright\arraybackslash}X}       \newcolumntype{F}{|p{\columnwidth-2\tabcolsep-2\arrayrulewidth}|}       \setlength\extrarowheight{2pt}            \newcommand{\TabelaRequisito}[8]{     \setcounter{NumberReqNF}{0}     \begin{table}[h]         \noindent\begin{tabularx}{\columnwidth}{|Y{0.5}|Y{0.25}|Y{0.25}|c|c|}             \hline             \multicolumn{3}{|l|}{\ReqF #1} & \multicolumn{2}{l|}{Hidden (#2)}\tabularnewline             \hline             \multicolumn{5}{F}{#3}\tabularnewline             \hline             \multicolumn{5}{|c|}{Non-Functional Requirements}\tabularnewline             \hline             Name & Restriction & Category & Desirable & Permanent\tabularnewline             \hline             \ReqNF #4 & #5 & #6 & (#7) & (#8)\tabularnewline             \hline             \ReqNF New Non-Functional Requirement Name &  &  &  &\tabularnewline             \hline             % more and more requirements here...         \end{tabularx}     \end{table}       }      So I would reuse this table format all the time with the command                \TabelaRequisito{Functional Requirement Name}{X}{             Functional Requirement description             }{Name}{}{Security}{X}      ![enter image description here](http://i.stack.imgur.com/kES3i.png) But I am limited to add just one non-functional requirement, I would like to know a solution that I could add as many as non-functional requirement I want. One, two, three, four,...


title: Page Numbers and Margins

text: I am sure this is a very simple question, but here it goes. I am writing a document (using the `report` document class) that requires one inch margins on the top and bottom of the page. I used the `geometry` package to set the margins as follows:               \usepackage[paperwidth=8.5in,left=1.5in,right=1.0in,top=1.0in,bottom=1.0in,       paperheight=11.0in]{geometry}      I want the page numbers to also appear 1 inch from the bottom of the page (in the center). By default they appear within the margin and are less than 1 inch from the bottom of the page. How can I fix this?


title: pgfplots using strings *from data table* as x axis labels in bar chart

text: I've seen some of the other threads on using strings as x axis labels, but nothing that fits my situation. I'm trying to create a bar chart from a CSV file. I can do it so long as everything in the data is numeric. However, in my actual data table, the first row is multi-word string descriptions. I need these descriptions to be the x axis labels for each bar. I've tried `symbolic x coords`, but I get the "could not parse input as a floating point number" error. I've also tried adding an ID column and using that as the x values, and assigning `xtick labels` as the string descriptors. I get the same issue that way. Here's an attempt at an MWE:               \documentclass{article}          \usepackage{lmodern}     \usepackage{tikz}     \usepackage{pgfplots}     \usepackage{pgfplotstable}          \begin{document}          \pgfplotstabletypeset[columns/category/.style={string type},col sep=comma]{Book3.csv}     \vspace{1cm}          \begin{tikzpicture}     \begin{axis}[     ybar,     xlabel=Xstuff,     ylabel=Value,     symbolic x coords={cat a,cat b,cat c,cat d,cat e,cat f,cat g},     %xtick labels={cat a,cat b,cat c,cat d,cat e,cat f,cat g},% this is from when i tried the xtick label method     xtick=data,     nodes near coords,     nodes near coords align={vertical}]     \addplot table[x=category,y=value]{Book3.csv};     %\addplot table[x=category,y=value]{Book3.csv};& again, from trying the xtick label method          \end{axis}          \end{tikzpicture}     \end{document}      Since I suspect this might get answered quickly by you chart gurus, I have a follow-up question: I have to do a bunch of these charts, and I would like to automate the `symbolic x coords` process. Is there a way to populate the dictionary of accepted x coords by reading a column of the data? (something like `symbolic x coords={columns/category/{Book3.csv}}` )? Book3.csv looks like this (ignore the ID column if using the `xtick label` method):               ID, category, value, value 2     1,  cat a,    1,     7     2,  cat b,    2,     6     3,  cat c,    3,     5     4,  cat d,    4,     4     5,  cat e,    5,     3     6,  cat f,    6,     2     7,  cat g,    7,     1


title: Create a list of lists in LaTeX?

text: I'm creating a problem bank and each problem is named using a list (e.g., \item Parametric particle trajectory). I'd like to auto-generate a list of problem names from this list and I;d like that list to appear at the beginning of the document. Is there anyway to get LaTeX to do this? I could create a new environment if that's necessary; I'm just not sure how to proceed.


title: LaTeX TeXt Placement movements

text: I have looking for TeXT Placement movememnt in the class file. Requirement is store the value and print in another places. My LaTeX code is:               \documentclass{threecolumn}     \usepackage{ifthen}     \begin{document}     \jnl{5}     \end{document}      and my class file is               \def\jnl#1{\protected@edef\@jnl{#1}}     \def\@jnl#1{%     \ifthenelse{\equal{#1}{1}}{Sample 1}{}%     \ifthenelse{\equal{#1}{2}}{Sample 2}{}%     \ifthenelse{\equal{#1}{3}}{Sample 3}{}     \ifthenelse{\equal{#1}{4}}{Sample 4}{}     \ifthenelse{\equal{#1}{5}}{Sample 5}{}     }      If `\jnl{2}` is found need to change the `\jnl{Sample 2}` and like to place in after `\maketitle`. How do achieve this in class file?


title: 3D TikZ lines on the perimeter of a circle

text: I'm just learning TikZ, I've done a few 2D images and I wanted to make a 3D wire frame of the Hubble telescope. The body of the telescope is basically a pair of tubes, the front one slightly narrower than the other. I had thought to draw a series of circles and then put lines along them to create a cylinder. The problem is, my lines don't fall on the perimeter of the circles. I the circle command to draw the circles on the `(y,z)` plane while `x` varies along the length of the telescope. I had thought to calculate end points for the lines use the equations `y = radius * cos(\theta)` and `z = radius * sin(\theta)` but the lines turn out to be slightly off the surface of the cylinder. I've tried a bunch of different things. One really strange thing ( to me) is that if I specify the radius in centimetres for the line calculations the lines are _Way_ off the cylinder. Even though the radius is specified in `cm` for the circles.               \tikzset{         MyPersp/.style={scale=1.8,x={(-0.8cm,-0.4cm)},y={(0.8cm,-0.4cm)},z={(0cm,1cm)}}     }          \newcommand{\hubble}[0] {%         \foreach \x in {0,0.25,...,1.0} {             \draw[very thick] (\x,0,0) circle (0.75cm);         }         \draw[very thick] (1.25,0,0) circle ({1.25cm / 2});         \foreach \x in {1.5,1.75,...,2.25} {             \draw[very thick] (\x,0,0) circle (0.5cm);         }              \foreach \r/\x/\xx in {0.75/0/1,0.5/1.5/2.25}{             \foreach \theta in {0,30,...,360}{                 \def\y{{\r*cos(\theta)}}                 \def\z{{\r*sin(\theta)}}                 \draw[very thick](\x,\y,\z) -- (\xx,\y,\z);             }         }     }          \begin{tikzpicture}[MyPersp]          \hubble          \end{tikzpicture}      ![Resulting Image](http://i.stack.imgur.com/iyzgd.png)


How do I make figure captions span multiple pages? I have a very long caption for a figure and would like it to carry on to the next page. EDIT: I would like this to work in both one sided and two sided modes


title: table - text centering

text: I made a table in my thesis with this code:               \begin{table}[htbp]       \centering       \caption{Add caption}         \begin{tabularx}{\hsize}{cc}         \toprule         & Folhosas \\         \midrule         Celulose & 5 \\         Hemicelulose & 2 \\         Extrac & 6 \\         Lenhinha & 9 \\         \bottomrule         \end{tabularx}       \label{tab:addlabel}     \end{table}      But, I want the text in the middle of table. Can you help me?


title: print B5 on A4 then crop

text: I printing my thesis and I have written it in B5 format by               \usepackage[b5paper,left=3.5cm,right=2cm,bottom=2cm,top=3cm,twoside]{geometry}     \special{papersize=176mm,250mm}      I want to print it on A4 then cut to B5 using crop guidelines can any one help me please


title: How can I add a prefix to *only* a particular section-level's numbering

text: I would like to (preferably without additional packages) be able to add a prefix before all section numbers, but not to subsection or subsubsection numbers. In other words, I want the section numbering to look like: "Prefix 1", "1.1", "1.2", "Prefix 2", "2.1", "2.2", etc. It would be a nice bonus if I don't need to respecify all of the default settings for the section, and can just specify the prefix text.


title: How to change language in the Bibliography?

text: My header is as follows:               \documentclass[11pt,a4paper,sans]{moderncv}     \usepackage[latin1]{inputenc}     \usepackage[ngerman]{babel}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{amsmath, amssymb}     \usepackage{enumerate}     \usepackage{dsfont}     \usepackage{bibgerm}          \moderncvtheme[red]{classic}     \usepackage[left=25mm,right=25mm, top=30mm, bottom=30mm]{geometry}     \renewcommand{\baselinestretch}{1.25}          \AtBeginDocument{\recomputelengths}          \nopagenumbers{}                                      \begin{document}          \makecvtitle          \nocite{*}     \newpage     \section{Literatur}          \small{\makeatletter     \renewcommand*\bibliographyitemlabel{\@biblabel{\arabic{enumiv}}}     \makeatother          \bibliographystyle{plain}     \bibliography{xy}}          \end{document}      I want to include a Bibliography:               \makeatletter     \renewcommand*\bibliographyitemlabel{\@biblabel{\arabic{enumiv}}}     \makeatother          \bibliographystyle{plain}     \bibliography{xy}      But now, this bibliography is in English and I want to have it in German. The authors are separated by `and`, but it should be German (`und`). So how to change the language in the Bibliography? Even if I put `\bibliographystyle{gerplain}` I get `und` instead of `and`, but then the first and surname are switched. I tried the example below. Didn't work. So I try to put up an example of an entry in my bibfile:               @book{...,     author="... and ...",     title={{title}},     language="English",     publisher="{}",     year=""     }     @article{...,     author="... and ...",     title={{xyz.}},     language="English",     journal="...",     volume="",     number="",     pages="",     year=""     }      I just don't know what to do anymore. Tried all I could find while searching on google and other platforms.


title: \marginpar border with grey background and round black edges

text: I often use `\marginpar{}` which is boring to me. Is there a way to add grey background and round black edges so it would look like this: ![Wanted marginpar](http://i.stack.imgur.com/Og3wW.png)


title: Fixing fonts with LuaTeX feature files

text: Bringhurst urges us in Chapter 10 of The Elements of Typographic Style: Version 4.0 to fix the font files if needed. See below a summary of the chapter using the section titles. Bringhurst suggests to modify the font file so the fixes are done forever. But I think that for some fixes we can use feature files in LuaTeX. This can make easier to transfer projects from computers with fonts installed system-wide. I ask for help to identify what can be corrected using feature files and show an example file. (Would it be better to make this question a comunity wiki?) **List of possible issues to be fixed**   1. **Letterform** Sometimes the glyphs are completely wrong. Usually due to missing glyphs taken from other fonts. In this case the only possibility is to use a font editor. Not possible with feature files.   2. **Hinting** Hinting is not an easy process and sometimes is wrong or missing Altogether. In this case the only possibility is to use a font editor. Not possible with feature files.   3. **Vertical position** Some characters' vertical position (specially +, -, dashes, ...) could be improved. Is it posible to fix it with feature files?   4. **Sidebering** This is the blank space at the right and left of the outline of the glyph insie the box. Bringhurst says that he has to fix these values usually to fix the space between letters and puntuation symbols (He describes his style in this regards as a halfway between british and french typographic traditions). Can/Should it be done with feature files? (The `microtype` package can do the french typeseting style. Does it use kerning correction for that?)   5. **Character substitution** Some characters could be in an inappropriate encoding position. I guess this can be fix with a GSUB rule.   6. **Kerning** What to say about _bad kerning_ , that the audience of this forum doesn't already know! This is an easy one; I can even answer myself :-) **Summary of Chapter 10** 10 Grooming the font 10.1 Legal considerations 10.1 Check the license before tuning a digital font 10.2 Ethical & aesthetic considerations !0.2.1 If ain't broken... 10.2.2 If the font is out of tune, fix it once and for all 10.2.3 Respect the font first of all, the letterform second, the type designer third, the foundry fourth 10.2.4 Keep on fixing 10.3 Honing the character set 10.3.1 If there are defective glyphs, meal them 10.3.2 If text figures, ligatures or other glyphs you need on a regular basis don't reside on the base font, install them there 10.3.3 if glyphs you need are missing altogether, make them 10.3.4 Check and correct the sidebering 10.3.5 Refine the kerning table 10.3.6 Check the kerning of the word space 10.4 Hinting 10.4.1 If the font looks poor at low resolutions, check the hinting 10.5 Naming convention


title: pgfplotstableread fails to read the input file

text: I am trying to typeset two different tables in a moderately large document. The data for the tables are written as comma-separated values in two different .csv files. I am including the different sections of the document into a main file using `\include{section-n}`. In each file to be included, I read the the table data with `\pgfplotstableread{table-n}{\data-n}` and then typeset it as in the `MWE`. I am able to typeset the first table without problems, but once it tries to read the second table it fails, entering into an infinite loop. Once I break the process it spits out the following error: > ERROR: Use of \pgfplotstableread@checkspecial@line@@ doesn't match its > definition. > > \--- TeX said --- \pgfplotstable@LINE ->$S igma$,15,,,,1057 l.315 > \pgfplotstableread{predevCN2.csv}{\CNPre2} ^^M > > \--- HELP --- It's probably one of the picture-drawing commands, and you > have used the wrong syntax for specifying an argument. If it's \@array that > doesn't match its definition, then there is something wrong in an > @-expression in the argument of an array or tabular environment---perhaps a > fragile command that is not \protect'ed. Now, what is going on? Here's my best attempt at a `MWE` which captures my intentions, yet it fails in a completely different way than my main file. I'm also not sure about why it fails, but it seems to be related.               \documentclass{article}          \usepackage{lipsum}     \usepackage{filecontents}     \usepackage{booktabs}     \usepackage{array}      \usepackage{pgfplots}      \pgfplotsset{compat=1.7}     \usepackage{pgfplotstable}     \pgfplotstableset{       col sep=comma,       every head row/.style={%         before row=\toprule,%         after row=\midrule},%       every last row/.style={%         after row=\bottomrule}%     }          \begin{filecontents}{firstTable.csv}     A,B,C,D,E     1,2,3,4,5     $\Sigma$i,ii,iii,iv,v     \end{filecontents}          \begin{filecontents}{secondTable.csv}     a,b,c,d,e     1,2,3,4,5     I,II,III,IV,V     \end{filecontents}          \begin{filecontents}{section1.tex}       Here's a nice table:            \pgfplotstableread{firstTable.csv}{\loadeddata1}            \begin{table}         \centering         \pgfplotstabletypeset[%            columns={A,B,C,D,E}%            ]{\loadeddata1}         \caption{Simple caption for a simpler table.}         \label{tab:table1}       \end{table}     \end{filecontents}               \begin{document}     \section{Here goes section 1}     \lipsum[1]     \include{section1}               \section{Section 2}     And here we put another table.      \pgfplotstableread{secondTable.csv}{\loadeddata2}           \begin{table}        \centering        \pgfplotstabletypeset[%          columns={a,b,c,d,e}%          ]{\loadeddata2}          \caption{Fancy caption for a simple table.}          \label{tab:table2}      \end{table}                    \end{document}               %%%% Local Variables:      %%%% mode: latex     %%%% TeX-engine: xetex     %%%% End:


title: Reference author year website in LNCS

text: How do I write a website reference in author year format in LNCS style?


title: Auto-break Cell in longtable Enviroment

text: I try to build a document with a question-and-answer form using the `longtable` environment with two tabulars. The first one is for questions, the second one for answers. If my cell contains more data than free space to the bottom margin of the page, it automatically generates a new page and inserts my content. What I exactly need: Content inserted to the current page should be as much as possible, and the rest of the information should automatically continue on the next page like in an 'image' environment. The issue breaks down to `longtable` creating a table over many pages without regulating auto- breaks. Any ideas? ![Result as I need](http://i.stack.imgur.com/DwSYj.jpg) ![Result as I have](http://i.stack.imgur.com/kIVbl.jpg)


title: Prevent multiple equation numbers when using \allowdisplaybreak with align

text: I have a very long equation of the following format               \begingroup     \allowdisplaybreaks     \begin{align}     a &= very long expression here\\       + & another long expression here\\       + & another long expression here     \end{align}     \endgroup      Now this equation is labelled thrice, once for each line. How do i make sure that the equation gets labelled only once?


title: Amsart Section title and figure in appendix

text: OK Now I have two problems: first the MWE               \documentclass[12pt,reqno]{amsart}     %     \usepackage{graphicx}     %for Abc format title and author list     \makeatletter     \g@addto@macro{\endabstract}{\@setabstract}     \newcommand{\authorfootnotes}{\renewcommand\thefootnote{\@fnsymbol\c@footnote}}%     \makeatother     %for multi-line footnote format     \makeatletter     \renewcommand\@makefntext[1]{\leftskip=2em\hskip-2em\@makefnmark#1}     \makeatother     %for left flushed section titles     \makeatletter     \def\specialsection{\@startsection{section}{3}%       \z@{\linespacing\@plus\linespacing}{.5\linespacing}%     %  {\normalfont\centering}}% DELETED       {\normalfont}}% NEW     \def\section{\@startsection{section}{1}%       \z@{.7\linespacing\@plus\linespacing}{.5\linespacing}%     %  {\normalfont\scshape\centering}}% DELETED       {\normalfont\scshape}}% NEW     \makeatother     %for formating subsection titles     \usepackage[parfill]{parskip}       \makeatletter     \def\subsubsection{\@startsection{subsubsection}{3}%       \z@{.5\linespacing\@plus.7\linespacing}{.1\linespacing}%       {\normalfont\itshape}}     \makeatother     \begin{document}          \section{Maya Devi Temple, Lumbini}\label{k}          \begin{figure}     \begin{tabular}{cc}       \includegraphics[width=.4\textwidth]{1} &       \includegraphics[width=.4\textwidth]{2}\\       \includegraphics[width=.4\textwidth]{3} &       \includegraphics[width=.4\textwidth]{4}     \end{tabular}     \caption{Maya Devi Temple is an ancient Buddhist temple situated at the UNESCO World Heritage Site of Lumbini, Nepal. It is the main temple at Lumbini, a site traditionally considered the birthplace of Gautama Buddha. The temple stands adjacent to a sacred pool (known as Puskarni) and a sacred garden. The archaeological remains at the site were previously dated to the third-century BCE brick buildings constructed by Ashoka the Great.[1] A sixth-century BCE timber shrine was discovered in 2013.[2]}     \end{figure}          \end{document}       ![The output of above](http://i.stack.imgur.com/fm0cp.png) Now the first problem is that the apendix heading is coming below the figure itself which looks stupid. Also the Section title is in caps (all of them) and I want it to be in Abc form, i.e. Not MAYA DEVI TEMPLE but "Maya devi temple" Help!!! :s i tried the following but no help:               \makeatletter     \def\specialsection{\@startsection{section}{3}%       \z@{\linespacing\@plus\linespacing}{.5\linespacing}%     %  {\normalfont\centering}}% DELETED       {\normalfont}}% NEW     \def\section{\@startsection{section}{1}%       \z@{.7\linespacing\@plus\linespacing}{.5\linespacing}%     %  {\normalfont\scshape\centering}}% DELETED       {\normalfont\scshape}}% NEW     \makeatother


title: How to calculate the number of cells per line

text: Assume I have a table with a dynamic number of rows and columns, and I want to fill the table with n elements. Assume an element has the constant length x, and I want to say make floor(linewitdth/x) columns per row so that the maximal number of elements is in a row. How would I write that in LaTeX?


title: Installing TeX Live on a Synology NAS

text: Has anyone tried to install TeX Live on a Synology NAS? TeX Live 2012 runs smoothly on my Raspberry Pi but I can think of a scenario where having it run on my NAS could make some sense.


title: How to set ConTeXt in WinEdt 6.0?

text: I'm very interesting ConTeXt but I don't know setting ConTeXt at WinEdt 6.0. ![ConTeXt](http://i.stack.imgur.com/asVqI.png) You can see the screenshot, there is ConTeXt and “ **How to setting ConteXt at WinEdt 6.0 ?** ”


title: Proper spacing in each equation in a system of linear equations

text: In the following code, I have LaTeX display a system of m linear equations in n variables. I have the proper alignments, but it is not displayed properly in two aspects. The vertical dots are not quite centered in the columns, and in each equation, there is an unseemly wide space about the "+" and the "=". I would like LaTeX to have these dots centered, and I would like to have the proper space about the binary operator of addition and the binary relation of equating.               \documentclass[10pt]{amsart}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{amsthm}     \usepackage{mathtools}               \begin{document}          \begin{align*}     \left\{     \begin{array}{ccccccccccc}     a_{1,1}x_{1} & + & a_{1,2}x_{2} & + & \cdots & + & a_{1,n}x_{n} & = & b_{1} \\     a_{2,1}x_{1} & + & a_{2,2}x_{2} & + & \cdots & + & a_{2,n}x_{n} & = & b_{2} \\     \vdots & & \vdots & & \ddots & &  \vdots & &  \vdots \\     a_{m,1}x_{1} & + & a_{m,2}x_{2} & + & \cdots & + & a_{m,n}x_{n} & = & b_{m} \\     \end{array}     \right.     \end{align*}          \end{document}


title: How to display current section title in the header when a new chapter begins just on an odd page

text: I am using package **fancyhdr** to help me construct the headers of my book. The Editor want to me to add the chapter title to the header if the new chapter begins on a page whose number is even, and to add the section title to the header if the new chapter begins on a page whose number is odd. Then I modified the page-style "plain" as follows (just a test file):                \documentclass[openany]{book}      \usepackage{fancyhdr}      \renewcommand{\headwidth}{\textwidth}            \pagestyle{fancy}                              \renewcommand{\headrulewidth}{0.5pt}      \fancyhf{}                                                       \fancyhead[LE,RO]{\thepage}                             \fancyhead[RE]{\leftmark}                                      \fancyhead[LO]{\rightmark}            \fancypagestyle{plain}{     \fancyhf{}                                     \renewcommand{\headrulewidth}{0.5pt}                                    \fancyhead[LE,RO]{\thepage}                               \fancyhead[RE]{\leftmark}                                     \fancyhead[LO]{\rightmark}       }           \begin{document}      \chapter{Test-1}           \section{test-section-1}      \newpage      \section{test-section-2}      \newpage      \section{test-section-3}      \newpage      \chapter{Test-2}      \section{test-section-4}      \end{document}      But I can only realize partially the specifications. If the new chapter begins on an even page, all the codes are OK, but if the new chapter begins on _odd_ page, then it could not display the section title, but only the page number. Here is the screen-shoots:   1. New chapter page with ODD page number, need section title ![odd page-without section title-new chapter](http://i.stack.imgur.com/O3xqi.png)   2. even page, all things are OK ![even page-with chapter title](http://i.stack.imgur.com/CxFpr.png)   3. odd page, all things are OK ![odd page-with section title](http://i.stack.imgur.com/FEMyY.png)   4. new chapter page with Even page number, all things are OK ![even page-with chapter title-new chapter](http://i.stack.imgur.com/ipAjR.png) Then I tried many methods. But at last I figured out a method, which is very complex, but it did work. I just only defined a new command, which is as follows:                 \newcommand{\headodd}[2]{\fancypagestyle{myplain}{%           \fancyhf{} %            \pagestyle{fancy}                                        \renewcommand{\headrulewidth}{0.5pt}                                              \fancyhead[LE,RO]{\thepage}                                  \fancyhead[RE]{\leftmark}           %\hypersetup{              %  colorlinks=false,          %   pdfborder={0 0 0},         %}                                      \fancyhead[LO]{ \ref{#1} #2}           }        \thispagestyle{myplain}     }      Then I modified the main body into :                    \chapter{Test-1}          \headodd{s-1}{test-section-1}          \section{test-section-1}\label{s-1}      Thus I get the following result: ![What I want to get](http://i.stack.imgur.com/cHcOA.png) My question is: (1) Is there any other method to satisfy all the editor's specifications? (2) How to simplify my codes?


title: How to keep the horizontal overlay area space constant while the contents are updated?

text: I have the following problem with overlays in LaTeX beamer. On the first slide I want to display ![enter image description here](http://i.stack.imgur.com/5coJQ.jpg) while the second slide should show ![enter image description here](http://i.stack.imgur.com/H5TuV.jpg) The difficulty is to achieve that the amount of space occupied by _3+4+5_ is also reserved on the first slide even though _12_ would actually need less space. The MWE below does NOT solve this problem. Is there any solution?               \documentclass{beamer}     \begin{document}     \frame{     \uncover<1-2>{}     1+2+\alt<1>{12}{3+4+5}+6+7=28     }     \end{document}


title: How to remove xdata entries using biber --tool_resolve --tool (after resolution)

text: Consider the file `myrefs.bib` containing the following biblatex entries:               @XDATA{pom,       EVENTDATE  = {1999-12-31/2000-01-01},       EVENTTITLE = {Party},       VENUE      = {Somewhere},     }          @PROCEEDINGS{pomp,       XDATA  = {pom},       DATE   = {2000},       EDITOR = {Me, Myself and I},       TITLE  = {Party-report},     }      I would like to convert this using               biber --tool_resolve -g mybiber.conf --tool myrefs.bib      to get               @PROCEEDINGS{pomp,       EVENTDATE  = {1999-12-31/2000-01-01},       EVENTTITLE = {Party},       DATE       = {2000},       EDITOR     = {Me, Myself and I},       TITLE      = {Party-report},       VENUE      = {Somewhere},     }      Can this be done? What would the corresponding map in `mybiber.conf` look like? (I know that fields can be removed using `map_null="1"`, but I haven't found such an option for entries.)


title: How to make transition animation on part of the slide in beamer?

text: I would like to have text popping in itemize               \begin{itemize}       \item<1->First item.       \only<3->{\text{Some text.}}       \item<2-> Second item.           \end{itemize}      I would like to insert text (or picture) between two items continually, transiting first item upwards and lower one downwards, while bringing text in between with some entrance and exit effects (sliding from the left, from the centre...) It seems possible to do this, judging from this question- Animate movement/transition of sections on a slide in Beamer? However, I don't see clear answer there, could somebody make MWE for this?


title: How to put special character between two columns in Latex table

text: I want put right headed double arrow between first two columns of the table ![](http://i.stack.imgur.com/jEpOt.png) My code:               \documentclass[12pt,a4paper]{article}     \usepackage{algorithmic,algorithm,amsmath} %for mathematics %     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{booktabs}     \usepackage{array}     \usepackage{paralist}     \usepackage{bigstrut}     \usepackage{multirow}     \usepackage{dcolumn}     \begin{document}          \newcolumntype{d}[1]{D{.}{.}{#1}}     {\setlength{\extrarowheight}{1.5pt}     \setlength{\tabcolsep}{1pt}     \begin{table}[htbp]       \centering       \caption{The Results of Granger and MWALD tests}         \begin{tabular}{llccccc}         \toprule          \multirow{2}[4]{*}{Null Hypothesis} & \multicolumn{2}{c}{Grangers’ test (Short run)} &       & \multicolumn{2}{c}{MWALD test (Long run)} \\             \cmidrule(r){3-4} \cmidrule(r){6-7}             \multicolumn{1}{l}{} & \multicolumn{1}{l}{} &\multicolumn{1}{c}{F-Statistics}  &\multicolumn{1}{c}{p-values}  &       &\multicolumn{1}{c}{$\chi^{2}$-Statistics} & \multicolumn{1}{c}{p-values} \\                 \midrule             \multicolumn{1}{l}{LTC} & \multicolumn{1}{l}{LGDP} & 7.736** & 0.021 &       & 0.169 & 0.919 \\         \multicolumn{1}{l}{LGDP} & \multicolumn{1}{l}{LTC} & 0.504 & 0.777 &       & 1.763 & 0.414 \\         \multicolumn{1}{l}{LCO2} & \multicolumn{1}{l}{LGDP} & 10.829* & 0.005 &       & .324 &       & 6.490 & 0.039 \\         \multicolumn{1}{l}{LCO2} & \multicolumn{1}{l}{LCC} & 10.673* & 0.014 &       & 7.378** & 0.025 \\         \bottomrule         \end{tabular}%       \label{tab:addlabel}%     \end{table}%          \end{document}


title: Author-year citation in LaTeX

text: How can I do this style of citation in LaTeX `(Shannon 1948)` what package I need? I have used               \usepackage[authoryear]{natbib}     \bibliographystyle{plain}      and the output was `[1]` and I need to to be for example `(Shannon 1948)`


title: How to write LaTeX comments in Visual Studio 2012

text: I want to write comments in Visual Studio (2012) that contain LaTeX syntax. There is some plug-in to add to Visual Studio that will enable me to write comment in LaTeX and then see it as LaTeX (e.g. pop up window when I'm pressing some key shortcut or moving over the comment with the mouse)? I found that someone asked it before at: Latex plugin for visual studio 2010 But this didn't help me. I also found this: http://visualstudiogallery.msdn.microsoft.com/e216ec81-730b-4022-8305-25c39eb1f820 But this didn't help me either (I got a message of "This extension is not installable on any currently installed products") (I installed jmath before).


title: How to get autobreaking with sequential tables

text: So it appears that `\hspace` is not breakable, but is if it is followed by `\allowbreak`. Alternatively you can use `\hskip1.0em` as that is breakable. So, if my understanding is correct, then why do the tables in red not show up on the left hand side? ![enter image description here](http://i.stack.imgur.com/PHjfo.png) ## Question:   * How do I handle this situation where I have a bunch of tables in a row and want them to go next to each other (if they fit on the remainder of the current line), or go the next line. ## Notes:   * The `\hspace` macro seems to fix the case for the first set of table, but not for the second set.   * This is for an internal document, so not too concerned how good it looks. Well at least not yet. :-) ## References:   * How to insert a non-stretching but line-breaking thin space? ## Code:               \documentclass{article}     \usepackage{showframe}          \newcommand*{\Space}{\hskip1.0em}%     %\newcommand*{\Space}{\hspace*{1.0em}\allowbreak}%  `\allowbreak`.     \newcommand*{\MyTabularA}{%         \begin{tabular}{ccc}%             Column 1 & Column 2 & Column 3 \\             1 & 2 & A\\%             3 & 4 & B\\%             5 & 6 & C\\%         \end{tabular}%     }%          \newcommand*{\MyTabularB}{%         \begin{tabular}{ccc}%             1 & 2 & 3 \\             1 & 2 & A\\%             3 & 4 & B\\%             5 & 6 & C\\%         \end{tabular}%     }%          \begin{document}\noindent     \MyTabularA\Space%     \MyTabularA\Space%     \color{red}\MyTabularA\Space%     \color{blue}\MyTabularA\Space%     \MyTabularA\Space%               \bigskip\color{black}\noindent     \MyTabularB\Space%     \MyTabularB\Space%     \MyTabularB\Space%     \MyTabularB\Space%     \MyTabularB\Space%     \color{red}\MyTabularB\Space%     \color{blue}\MyTabularB\Space%     \end{document}


title: Automatically cite all author names instead of "et al." on first occurrence?

text: I am using BibTeX and Natbib (author-year) for citing references in my document. Whenever there are three authors or more for a given paper, the citation will be "First author et al. (year)". This is the way I would like it to be in general. However, when the paper is cited for the first time in a document, I would like all the names to appear, ie "First author, second author, and third author (year)". I know I can achieve this manually by `\cite*`. But is there also a way to have this done automatically on the first occurrence?


title: LaTex article to Prezi-style zooming dia -presention?

text: Prezi is a proprietary software here. I found `beamer`, `powerdot`, `HA -prosper`, `prosper`, `slides` and `seminar`. Which one or something similar should I use to create something like Prezi-style zooming dia -presentation?


title: Beamer: How to format both frametitle and framesubtitle

text: I wish to customize the appearance of both my `frametitle` and `framesubtitle`. However when I try to do so, only the `frametitle` is rendered. This is a sample code:               \documentclass[20pt, aspectratio=169]{beamer}     \usetheme{default}     \setbeamertemplate{navigation symbols}{}     \usefonttheme{serif}     \setbeamertemplate{frametitle}{\color{white}\textbf{\tiny\insertframetitle}}     \setbeamertemplate{framesubtitle}{\color{white}\tiny\insertframesubtitle}     \setbeamercolor{background canvas}{bg=black}     \setbeamercolor{normal text}{fg=white}     \usepackage[utf8]{inputenc}     \usepackage[norsk]{babel}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \begin{document}          \begin{frame}{Hello world}{Hello world subtitle}     \begin{equation*}     h_\alpha = \left\| \partial_\alpha \vec{r} \right\|     \end{equation*}     \end{frame}          \end{document}      Notice that the only the title is rendered. Why is that?


title: Using a macro as value of addtotoc in \includepdf

text: I would like to include pages from an external PDF file into my document, using the `pdfpages` package. The following works for me:               \documentclass{article}     \usepackage{pdfpages}          \begin{document}     \tableofcontents\clearpage          This is my document, and an included file starts on the next page.          \includepdf[pages=-,addtotoc={1,section,1,{A Title},sec.1},3,subsection,2,{A subsection},{s.1.1}]{LF426-2up.pdf}          \end{document}      But if the toc entry list was given passed as a macro instead, I get an error:               \newcommand{\mylist}{1,section,1,{A Title},s.1,3,subsection,2,{A subsection},{s.1.1}}     \includepdf[pages=-,addtotoc={\mylist}]{otherfile.pdf}      > >     Runaway argument? >     \END \fi \whiledo {\AM@page =\AM@toc@page }{\ifx \AM@toclist \empty > \else \ETC. >     ! Paragraph ended before >     \AM@parse@toclisti was complete. >     <to be read again> >                         \par >     l.12 >   >     ? >   How (if possible) can I pass `\mylist` correctly to the `addtotoc` option of `\includepdf`?


title: Margin notes in a multicolumn environment

text: I have been typesetting a two-columned book where I sometimes need to put a mark in the margin to say, that particular line might need special attention. (The book is actually a psalter - for chanting.) Because it isn't possible to use `\marginpar` in the `multicol` environment, I use `\marginnote` from the package `marginnote` instead. The problem is, that all the margin notes appear in the outer margin of the page. I need each to appear next to the column, where it occurs - some in the inner margin, some in the outer margin - to match the problematic lines closely. Is there any way to achieve this? I searched the internet thoroughly and haven't found anything relevant...               \documentclass{article}          \usepackage{multicol}     \usepackage{marginnote}          \begin{document}     \begin{multicols}{2}          Some text, a very long one.          And somewhere in the middle of it I need a (very small) margin note, like this:          Text text text\marginnote{\textbf{!}} and more text...          \end{multicols}     \end{document}


title: biblatex footcite and footnote

text: In a document, I am using               \usepackage[style=mla,babel=hyphen,backend=biber]{biblatex}      together with the `\footcite` command, and everything is perfect. There is a difficulty when I want to include a reference within a longer footnote containing extra text. I tried something like               \footnote{extra text extra text \cite{key} extra text}      but the output format of the `\cite` command will not be the same as the format of the `\footcite` command. There must be a work around somewhere but I cannot figure out which one.


title: use Times new roman font in TOC when using \usepackage{tocstyle} \usetocstyle{allwithdot}

text: I need my TOC all in Times New Roman but my section titles are changed when using `\usepackage{tocstyle}` and `\usetocstyle{allwithdot}` I had to try to use `tocstyle` because my section titles are long and they mess up the alignment in the TOC (they are centered causing many problems). Any suggestions?               \documentclass[12pt,times]{article}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{multirow}     \usepackage{stdclsdv}     \usepackage{tocloft}     \usepackage{verbatim}     \usepackage{color}     \usepackage{rotating}          \usepackage{tocstyle}     \usetocstyle{allwithdot}      Below is how I add to the contents, the requirement is that the section title in the TOC be exactly the same as the title in the body. How can I make the font Times New Roman,               \begin{center}     \section*{Statistical Estimation of Pharmacokinetic Models with Non-identifiable Parameters}     \end{center}     \addcontentsline{toc}{section}{Statistical Estimation of Pharmacokinetic Models with Non-identifiable Parameters}


title: Fix image in top column

text: I made a text with 4 columns. I am trying insert the image in the top of second column, independently of the length text. I see: Placing figures inside a two-column document but there is plenty of white space below the image and i would like define height of column. My actual code is:               \begin{minipage}[t]{170mm}     \setlength{\parindent}{5pt} \begingroup \fontsize{8pt}{1em}\selectfont      \begin{multicols}{4}     \fontsize{8}{1em} \selectfont \baselineskip = 8.5pt \xspaceskip= -1pt \frenchspacing     \TextA     \includegraphics[width = 40mm, height = 33.3mm]{\ImagA}     \TextB     \par     \end{multicols}\endgroup     \end{minipage}      I would like :               \TextA\TextB     \inserimagetopsecondcolumn      Thanks


title: Cross-referencing an equation

text: So far I've always used non-labeled alignments with `align*`, but I think it's time for a small change. How do I refer to an alignment after creating it? I tried searching similar topics but I didn't find them here. I am using `article` document class. Also, does equation behave and work similarly to `align`? And how would you refer to an equation number (same situation as with `align`)?


title: How to fix missing or incorrect mappings from glyphtounicode.tex

text: `glyphtounicode.tex` has been described as the best solution for generating copy-and-pasteable symbols. However, I find that various symbols that I need to use do not paste as the appropriate Unicode codepoints/characters. **How can I fix this?** This is how my macros _should_ be pasting:   * `\nSubset`: ⋐̸ (U+22D0 U+0338)   * `\cong`: ≅ (U+2245)   * `\ncong`: ≇ (U+2247)   * `\bigcup`: ⋃ (U+22C3)   * `\notin`: ∉ (U+2209)   * `\neq`: ≠ (U+2260)   * `\llbracket`: ⟦ (U+27E6); `\rrbracket`: ⟧ (U+27E7)   * `\llparenthesis`: (|; `\rrparenthesis`: |)      * **Update:** Unicode offers the symbol pairs ⦇ ⦈ (U+2987/U+2988) and ⦅ ⦆ (U+2985/U+2986), which many might consider a better choice for these macros.   * `\coloneqq`: ≔ (U+2254)   * `\models`: ⊧ (U+22A7) [currently |=]   * `\Rsh`: ↱ (U+21B1)   * `\textlengthmark`: ː (U+02D0) [currently :]   * `\blackdiamond`: ⬩ (U+2B29)   * `\sqbullet`: ▪ (U+25AA)   * `\square`: ▫ (U+25AB) _(Note: Earlier I erroneously stated that`\neg` pastes incorrectly as ￢ (U+FFE2) instead of ¬ (U+00AC). This is not correct: `\neg` pastes correctly; it's Word that replaces this by the other symbol, just as I noticed that Word doesn't copy all accented letters correctly from pdf-files (whereas they paste exactly right into Notepad). I actually don't know whether this is truly a Word issue (if so, it's likely a legacy encoding/font hack) or has to do with `pdflatex` or maybe the Unicode/non-Unicode clipboard distinction in Windows. Anyone feel free to add (non-ranty) insight into this.)_ This is how they currently paste:               >; ; ;     S     ; <; ,; J; K; L; M;B; |=;é; :; ˛; ‚; ˝      (The linebreaks before and after `\bigcup` ("S") are probably caused by it being a big operator, so they're nothing to worry about.) Here is minimal example code:               \documentclass{article}     \input glyphtounicode % I am using the updated version from http://www.lcdf.org/type/ (lcdf-typetools-2.94.tar.gz).       \pdfgentounicode=1     \usepackage[T3,T1]{fontenc} % The T3-encoding is required by the tipa-package.     \usepackage[noenc,safe]{tipa} % \textlengthmark     \usepackage{txfonts}     \usepackage[only,llbracket,rrbracket,llparenthesis,rrparenthesis]{stmaryrd}     \usepackage[mathb]{mathabx}          \begin{document}          \noindent \( \nSubset; \cong; \ncong; \bigcup; \notin; \neq; \llbracket; \rrbracket; \llparenthesis; \rrparenthesis; \coloneqq; \models; \Rsh; \mbox{\textlengthmark}; \blackdiamond; \sqbullet; \square\) \\          \noindent \( \nexists \)          \end{document}      The symbol ∄ (`\nexists`) at the end has been included to demonstrate that `glyphtounicode.tex` is compatible with my code, because it pastes correctly (and in fact requires a _recent_ version of `glyphtounicode.tex`, see the comment in my code).


title: Remove page number from the first page of bibliography

text: I'm writing a thesis and I want to remove the page number of the first page of bibliography. I tried               \thispagestyle{empty}       \pagestyle{plain}      but it seems not work. I am using               \usepackage[style=ieee, sorting=none]{biblatex}     \addbibresource{ref}      Furthermore, I want to remove the page number corresponding to Bibliography in Table of Contents but I can't. Can anyone help me? Thank you.


title: XeLaTeX Fontspec: restore original fonts

text: I'm trying to use a TTF font for my code excerpts, but want to use the standard latex fonts for the rest of the document. I'm using the following code, as recommended by this question.               \usepackage{fontspec}     \newfontfamily\codefont{Andale Mono}     \usepackage[OT1]{fontenc}          \renewcommand\rmdefault{lmr}     \renewcommand\sfdefault{lmss}     \renewcommand\ttdefault{lmtt}      This approach of putting the fonts back to normal to work okay, as the rendered fonts are all correct, but the document has lost all bold and italic formatting. How do I restore these? Many thanks.


title: LuaLaTeX + fontspec: cannot compare documents with Acrobat

text: I use the option "compare documents" in Adobe Acrobat Pro a lot to highlight changes between revisions. What I just noticed is, if I compile a simple document such as the one below with LuaLaTeX + fontspec, Acrobat is unable to perform the comparison, giving a unspecific error message ("cannot compare document..."). Compiling the same document without fontspec allows the comparison, as does XeLaTeX + fontspec. I tried with TeX Live 2012 and the current MikTeX, without success. So the issue is some interaction of LuaLaTeX and fontspec. Does anyone know what is going on and of a possible fix?               \documentclass{article}     \usepackage{fontspec}     \usepackage{lipsum}          \begin{document}          \lipsum          \end{document}      ![enter image description here](http://i.stack.imgur.com/PLwRt.png)


title: “Double use” of a4paper (geometry/KOMA)?

text: In my preamble, should I give the `a4paper` option just once or twice, i. e. once for the KOMA-script document class (`scrartcl`) and once for `geometry`? Is this redundant or does `scrartcl` need the option for the calculation of the type area (or something else)?               \documentclass[12pt,a4paper]{scrartcl}     \usepackage[a4paper]{geometry}      Lately, I have just used               \documentclass[12pt]{scrartcl}     \usepackage[a4paper]{geometry}      and I haven’t had any adverse effects. Still, it seems a little strange to me not to pass any “size options” to the document class. But is this the “right way” to go? By the way, I am using XeLaTeX to typeset.


title: Setting table width with pgfplotstable

text: I am using pgfplotstable to create a table for the following data:               Species         Moles (1)    Moles (2)    Moles (3)     Ca++            1.8887e-4    1.9476e-4    3.4462e-2     CaCl+           3.7537e-5    3.8262e-5    6.7001e-3     CaCl2(aq)       7.2626e-6    7.3202e-6    1.2881e-3     CaCO3(aq)       6.6707e-6    2.1461e-11   6.5734e-6     Cl-             1.9999e+0    1.9999e+0    1.9904e+0     CO2(aq)         9.8315e-8    7.5467e-1    7.4064e-1     H+              4.6749e-10   8.7625e-4    1.7078e-5     H2O(l)          5.5508e+1    5.5434e+1    5.5391e+1     HCO3-           4.2763e-4    1.7492e-3    8.8265e-2     Mg++            1.6018e-4    1.6223e-4    1.3874e-3     MgCl+           3.3875e-5    3.3911e-5    2.8623e-4     MgCO3(aq)       2.0802e-6    1.0114e-11   9.8367e-8     Na+             2.0000e+0    2.0000e+0    2.0000e+0     OH-             4.2783e-4    2.3555e-10   1.1323e-8      However, I can't figure out how to specify that the **table width** should be the **text width**.


title: should I be torn between Keynote and beamer?

text: I have experience with both keynote and beamer (and as a matter of fact, powerpoint as well). I think they both have a very different set of features, which depending on how you look at them, can either pose an advantage or disadvantage. For example, keynote is a WYSIWYG editor, so that it is highly customizable in a rather easy way. On the other hand, beamer is latex based, which means that it is relatively easy to write (or even "code") elegant presentations in it, but to get to a high degree of customizability you need to be an expert in latex. So, really, I am wondering about a few things.   1. First, is there any way to enjoy the best of both worlds? Meaning, relatively easy graphical editing which is highly customizable in a flexible latex environment.   2. How hard is it to create my own style file for beamer? I have some ideas about spacing, colors, fonts (though using fonts in latex has been hell for me, but I won't get to that...) that I want to set up, but I am not sure where to start. I wish there was some tutorial that does not describe how to use beamer, but instead describes how to write a style file for beamer.   3. Still, even if I choose beamer, I will have easy time with any structured text - but what about things such as diagrams? Or simple things such as drawing arrows between various sections of text? All of these things become complicated because of the positioning in latex which is done almost automatically. I wish I had some idea how to resolve this "conflict" - should I opt for beamer or for keynote? As an avid programmer, I tend to like beamer more, but WYSIWYG capabilities are sometimes very very useful. Any opinions will be gladly accepted!


title: How to scale y axis and position labels in xbar plot

text: I have the following xbar plot. I have two problems: 1) to see all the bars I have to do "enlarge y limits = X", where X is found by trial and error. This seems to result in the bars not being positioned correctly in relation to the values on the y axis. What is going on? 2) I want to label the bars and have set "nodes nears coords align=horizontal" as suggested in the manual and in this question but it doesn't seem to work. Any ideas why?               %% LyX 2.0.3 created this file.  For more info, see http://www.lyx.org/.     %% Do not edit unless you really know what you are doing.     \documentclass[english]{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}          \makeatletter     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.     \usepackage{pgfplots}          \makeatother          \usepackage{babel}     \begin{document}     \begin{tikzpicture}[]     \begin{axis}[xbar,     width=10cm,     height=8cm,     enlarge y limits=0.5,     bar width=7pt,     nodes near coords,     nodes near coords align=horizontal,     point meta=explicit symbolic,]     \addplot+ coordinates {(1,1) [label1]};     \addplot+ coordinates {(3,2) [label2]};     \addplot+ coordinates {(5,3) [label3]};     \addplot+ coordinates {(6,4) [label4]};     \addplot+ coordinates {(4,5) [label5]};     \addplot+ coordinates {(16,6) [label6]};     \addplot+ coordinates {(6,7) [label7]};          \end{axis}     \end{tikzpicture}     \end{document}