title: Using extended theorem names with \hyperref

text: I've a question about the usepackage `hyperref`. I just link to the different theorems, lemmas etc. in my paper, writing `Theorem \ref{text}` I get a red or green (depends if it is a literature reference or not) box around the accordant number of the Theorem. Suppose there are Theorems, named after a Person. Is it possible to get this red box around the name? For example, suppose I stated the Einsteins Theorem on page 2, `\label{einstein}`. On page 10 I refer to this Theorem. I would like to write, "by Einsteins Theorem" an get a red box around Einstein. How can I do this? Edit: Here is my preamble (a part of it):               \documentclass[10pt,twoside,openright]{thesis}     \usepackage{graphicx}   % if you want to include graphics files     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{amsfonts}     \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage{enumerate}     \usepackage[pdftex,citecolor=green,linkcolor=red]{hyperref}     \usepackage{aliascnt}           \theoremstyle{plain}           \newtheorem{theorem}{Theorem}[section]           \newtheorem{lemma}[theorem]{Lemma}           \newtheorem{corollary}[theorem]{Corollary}           \newtheorem*{claim}{Claim}           \theoremstyle{definition}           \newtheorem{definition}[theorem]{Definition}                \theoremstyle{remark}           \newtheorem{remark}[theorem]{Remark}                \makeatletter           \newcommand\settheoremtochp{%         \@removefromreset{theorem}{chapter}% just in case ... (no harm done)         \@removefromreset{theorem}{section}%         \@addtoreset{theorem}{chapter}%         \renewcommand\thetheorem{\thechapter.\arabic{theorem}}}       \newcommand\settheoremtosec{%         \@removefromreset{theorem}{chapter}%         \@removefromreset{theorem}{section}% just in case ... (no harm done)         \@addtoreset{theorem}{section}%         \renewcommand\thetheorem{\thesection.\arabic{theorem}}}       \makeatother                  % The preamble is also a good place to define new commands and macros.        % This part of the preamble is strictly optional according to your taste.                \newcommand{\R}{{\mathbb R}}           \newcommand{\nil}{\varnothing}           \newcommand{\N}{{\mathbb N}}           \newcommand{\A}{{\marhcal A}}


title: Adding vertical noise to a path

text: For a presentation I want to make a figure showing a graph of a signal with noise. I draw the signal as curved path               \begin{tikzpicture}       \draw [thick,blue] (0,0) .. controls +(50:3) and +(160:2) .. +(3,0);     \end{tikzpicture}      To add noise I tried to use the `random steps` decorator. Unfortunately, this decorator randomizes the path in x and y direction. Is there a way to prevent this and only have randomization in the y direction?


title: Changing \@itemdepth value to control indentation

text: I would like to be able to control the nesting level of an item (so that I can align the text with text that is at a deeper level of nesting.) I have been able to read the value of `\@itemdepth` counter. I was not able to change it. Is it possible to change the value of `\@itemdepth` from my file and if so, how would I do it? Or is there a better way to do what I want to do? Thanks for any help you can provide. A sample of the code I would like to get working. I am new to LaTeX and the code likely has several errors in it. Any help would be appreciated.               \documentclass{article}     \usepackage{amssymb, amsmath}      \usepackage{ifthen}           \makeatletter   % needed to access \@itemdepth     \newcounter{hangparsindentedlevel}          \newenvironment{hangpars}[1][0]{%        \begin{list}{}{%           \setcounter {hangparsindentedlevel}{\@itemdepth}%           \ifthenelse {#1 > 0} { %              \setcounter {\@itemdepth}{#1}%              }%              {%              \relax%              }%           \setlength{\itemindent}{-\leftmargin}%           \setlength{\listparindent}{-\leftmargin}%           \setlength{\partopsep}{0in} \setlength{\parskip}{0in} \setlength{\topsep}{0in}%           }%           \item{}%        }%        {\end{list}}%     \makeatother          \begin{document}          \begin{hangpars}[0]     test text 1.  test text 1. test text 1.  test text 1. test text 1.  test text 1. test text 1.  test text 1. test text 1.  test text 1.           \begin{hangpars}[2]     test text 2.  test text 2. test text 2.  test text 2. test text 2.  test text 2. test text 2.  test text 2. test text 2.  test text 2.      \end{hangpars}          test text 3.  test text 3. test text 3.  test text 3. test text 3.  test text 3. test text 3.  test text 3. test text 3.  test text 3.           \end{hangpars}          \end{document}      The output I was hoping for would have the firt line of the paragraph with test text 1 starting at the left most edge and all subsequent lines of the paragraph would be indented one level.   The first line of the paragraph with test text 2 (with the hangpars[2]) would start indented two levels from the left edge and all subsequent lines of the paragraph would be indented three levels. The last paragraph would be formated as the first paragraph was.               test text 1.  test text 1. test text 1.  test text 1. test text 1.             test text 1. test text 1.  test text 1. test text 1.           test text 1.                 test text 2.  test text 2. test text 2.  test text 2.                        test text 2.  test text 2. test text 2.  test                        text 2. test text 2.     test text 3.  test text 3. test text 3.  test text 3. test text 3.           test text 3. test text 3.  test text 3. test text 3.           test text 3.


title: Bold and Italic texts styles are too big

text: I have a problem with my \textbf and \textit commands, it makes my texts bigger than when no styles are applied. An example is shown here: ![enter image description here](http://i.stack.imgur.com/zquq1.png) I also put an URL inside the bold command (`\textbf{http://www.stackoverflow.com/}`) and it doesn't go back to the new line, so i have to manually put a space between words... This is basically my header:               % Packages      \documentclass[a4paper,10pt]{article}     \usepackage{graphicx}     \usepackage{array,multirow,makecell}     \usepackage{fix-cm}     \usepackage[utf8]{inputenc}     \usepackage{indentfirst}     \usepackage{amsmath}     \usepackage{eso-pic}     \usepackage{fancyhdr}     \usepackage{color}     \usepackage{hyperref}          \fontsize{12}{12}     pagenumbering{arabic}          \section{Section}         \subsection{Subsection}             \subsubsection {Origin}             \par             Lorem ipsum \textbf{sit dolor amet}


title: the new template doesn't work well

text: I was going crazy with the LyX and MikTeX configuration for a new class,I think I have done it matching the step! but None I get here what i've done: > Get a copy of the class file, and copy it into a folder with the same name > into `C:\Users\AppData\Roaming\MiKTeX\2.8\tex\latex.` So, for > `ociamthesis.cls`, you should have a folder called `ociamthesis` within > `C:\Users\\\AppData\Roaming\MiKTeX\2.8\tex\latex`. This is Windows Vista / > Windows 7 specific, you will soon see why… Create a new file and paste the > following into it:               % Do not delete the line below; configure depends on this      \DeclareLaTeXClass[xxx]{article (xxx)}      Input general definitions      > Input `stdclass.inc` replacing xxx with the class name (without the .cls > extension). In my case, xxx is `eethesis`, and the code above becomes:               % Do not delete the line below; configure depends on this      \DeclareLaTeXClass[ociamthesis]{report (ociamthesis)}      Input general definitions      Input stdclass.inc      Thanks goes out to Adding a new class in LyX for this. > Save this file to `C:\Program Files\LyX16\Resources\layouts`, naming it > `ociamthesis.layout`. In a command prompt (type cmd in start menu), type > texhash. What you will now see it doing is iterating through several folders > for new classes, one of which (`C:\Users\AppData\Roaming\MiKTeX\2.8\`) is > where we copied the ociamthesis.cls class file into. Within Lyx, hit Tools > > Reconfigure, then restart Lyx. but when I try to run, I get this error message : LaTeX Error :               File 'ociamthesis.sty' not found      Can anyone help me?


title: change pdf standard background color

text: How is it possible to change the acrobat's background color when someone opens my pdf? My pdf is produced by XeTeX (using `hyperref` package). Take a look of the following picture of two different pdfs. The one on the right (with the "abstract") uses a non-standard background color, while the one on the left doesn't. **EDIT: My question is NOT about changing the background color of pages. It is about changing the standard background color of acrobat reader when someone opens my document (compare grey on the left to light blue on the right)** ![enter image description here](http://i.stack.imgur.com/JBWlO.png)


title: Managing collections of shortcut-macros in collaboration projects

text: I write a lot of very similar documents, and thus make heavy use of shorthands such as               % Partial derivative     \newcommand{\pder}[2]{     \frac{\partial #1}{\partial #2}     }      As of now, I have a single file that contains each and every command I ever used, and i `\include` this file into almost every document. There are some catches though:   1. If i decide to change or generalize my shortcut, old compilations will break. Thus every project has its own copy of the file and if i do something in one file that i wish to use in another file, i have to make a copy. Explicit versioning files could possibly be a solution.   2. If I collaborate on a project, all hell breaks loose. Its just easier to make a new shortcut for that one use rather than to get used to an exisiting and possibly dynamic structure.   3. the same might affect some functions within matlab and python which generate dynamic parts, but that could be mitigated by requiring those to be 'standard latx'. Earlier, I did use one single file which was within the Miktex path, but that becomes very cumbersome to manage. Of course we use git and employ "unit tests", which only check if the file compiles. Is there a better way of organizing and embedding shortcuts like this? I could imagine software engineers know this kind of problems... I appreciate your input! Addendum: Any ideas on how where to keep that file if its shared among users? As an individual project perhaps?


title: Indexing does not work with index package

text: I am trying to do indexing with the following code:               \documentclass[a4paper]{article}     \usepackage{index}     \makeindex     \newindex{aut}{adx}{and}{Name Index}     \begin{document}     Hellow \index[aut]{FiRST}     \printindex[aut]     \end{document}      Acccording to documention of the `index` package it should work. But makeindex creates empty `.idx` and `.ind`. If I run code like this:               \documentclass[a4paper]{article}     \usepackage{index}     \makeindex     \begin{document}      Hellow \index{FiRST}     \printindex     \end{document}      It runs. But I need to have user-defined index. Please help me with it. I've searched for several hours on internet, but without success.


title: newcommand containing tikz node

text: I am using tikz-qtree to draw a binary tree. As I need to have them labeled I wanted to ues the following macro which work in ordinary tikz:               \newcommand{\A}[1]{\node(a#1){Activity #1};}      However, this does not work; the error is that node is an undefined control sequence. Of course this macro is used inside a `tikzpicture`, so basically I just want to dump `\node(a1){Activity 1};` if `\A{1}` is called. I am pretty sure it has to do with my TeXnic. . . Maybe expansion? Note, the tikz-qtree manual states that > `\Tree` specifically watches out for the token `\node`; do not use `\path > node` or other equivalents. Here is a minimal example:               \documentclass{minimal}     \usepackage{tikz,tikz-qtree}     \newcommand{\A}[1]{\node(a#1){Activity #1};}     \begin{document}     Works:\     \tikz\A{1};     \hfill     Works:     \Tree [.\node(a1){A1}; 1 2 ]     \hfill     Doesn't Work:     % \begin{tikzpicture}     %   \Tree [.\A{1} b c ]     % \end{tikzpicture}     \end{document}      Thanks,


title: customs margins of my paper

text: > **Possible Duplicate:**   >  Latex margins, need specific advice for publishing specifications I'm trying to set the margins of my paper using `geometry`. I would set the margin of binding `3.5cm` instead the others `3.0cm`. The geometry package is hard to use.How can I resolve?


title: Automatic background coloring in listings using tikzmark

text: I am authoring Beamer presentations that feature numerous code listings, and I am required to highlight portions of code with semi-transparent balloons. Yet I've come up with a solution that uses a variant of tikzmark. Inside listings, I am placing anchors manually, stretching a balloon over them afterwards.               \documentclass{beamer}          \usepackage{listings}     \usepackage{tikz}          \usetikzlibrary{fit,calc,shadows}          % Define styles for balloons and lines     \tikzstyle{line} =    [draw, rounded corners=3pt, -latex]     \tikzstyle{balloon} = [draw, fill=blue!20, opacity=0.4, inner sep=4pt, rounded corners=2pt]     \tikzstyle{comment} = [draw, fill=blue!70, text=white, text width=3cm, minimum height=1cm, rounded corners, drop shadow, align=left, font=\scriptsize]          % Command to place a TikZ anchor at the current position     \newcommand{\tikzmark}[1]{%       \tikz[overlay,remember picture,baseline] \coordinate (#1) at (0,0) {};}          % Command to draw a balloon over two anchors     \newcommand<>{\balloon}[3][balloon]{%       \coordinate (c) at ($(#2)+(0,1ex)$);       \node#4 (#1) [balloon, fit=(#3) (c)] {};}          \begin{document}          \begin{frame}[fragile]{Foo!}     \begin{lstlisting}[language=c,escapechar=\$]     $\tikzmark{sw1}$#include <stdio.h>$\tikzmark{ne1}$          int main(void)     {         printf("hello, world\n");$\tikzmark{ne2}$         $\tikzmark{sw2}$return 0;     }     \end{lstlisting}          \pause          \begin{tikzpicture}[overlay,remember picture]            \balloon<2>{ne1}{sw1};       \balloon<3>{ne2}{sw2};            \node (comment) [comment] at (\textwidth-1.5cm, .5\textheight+1cm) {%     \only<2>{Include headers}%     \only<3>{Do stuff}%       };            \draw<2-3> [line] (comment.south) |- (balloon.east);          \end{tikzpicture}          \end{frame}          \end{document}      ![Frame 1](http://i.stack.imgur.com/LjNNr.png) ![Frame 2](http://i.stack.imgur.com/JyPpJ.png) As you see, this approach requires a lot of redundant work. I have dozens of presentations to do, many of them containing similar code samples, and placing tikzmarks manually all over the code seems to be an overkill. Additionally, this approach fails if we need to highlight a block of code that contains long lines inside (for example, the whole "main" function in the example above). In fact, the two line numbers is the only necessary input for this case. It would be good if I could write some macro that would accept two numbers (beginning line and ending line) and the comment text, and do the rest automatically. Could this be done with somehow intercepting lstlisting's output and, for each line, remembering coordinates of the first non-whitespace character and line ending? After that, we would have an array of coordinates that could be, for instance, fed to tikz "fit" facility. It would be also good if the macro worked not only with inline listings, but with external code too. We are relying on system TTF fonts, that's why we target XeTeX and luaTex (with latter being even preferred). As I'm relatively new to TeX, I would also appreciate any comments and suggestions on the example above. Thanks!


title: BibLaTeX not settling down when using multiple styles

text: I use BibLaTeX with two different bibliography styles, one with author-year style (for publications) and the other one with simple numeric style for online references, but pdfLaTeX never really settles down. The issue is that because of the `defernumbers`/`omitnumbers` options I have to run pdflatex/biber/pdflatex/pdflatex to get the numbers right for the numeric ones (basically the references which are in the authoryear style are first not ignored in the numbering, so you need to run pdflatex twice to let BibLaTeX recompute the correct ones), but this last pdflatex run is going to change the width of the text size of the references, and thus might change the page breaks and move other references to other pages, thus requiring a rerun of pdflatex. Which would be perfectly fine if BibLaTeX (using version 2.4 + biber 1.4, but I think I have the same issue with 2.5/1.5 on another computer) hadn't a cycling behavior : one more run of pdfLaTeX changes the numbers back to the wrong ones, and you have to rerun one more time to get the right numbers... which changes the page breaks again, and you're stuck. The following almost-MWE (I had to include the alternative environment & citation command for @online entries to demonstrate the issue, not sure how to shrink it down) exhibits the cycling behavior of the defernumbers/omitnumbers options, which is (I think) the root cause of my issue :               \documentclass{article}          \usepackage[style=authoryear,backend=biber,labelnumber,defernumbers]{biblatex}          \DeclareCiteCommand{\citeonline}[\mkbibbrackets]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \printtext[bibhyperref]{%          \printfield{prefixnumber}%          \printfield{labelnumber}}}       {\multicitedelim}       {\usebibmacro{postnote}}          \defbibenvironment{online}       {\list          {\printtext[labelnumberwidth]{%       \iffieldundef{shorthand}         {\printfield{prefixnumber}%          \printfield{labelnumber}}         {\printfield{shorthand}}}}          {\setlength{\labelwidth}{\labelnumberwidth}%           \setlength{\leftmargin}{\labelwidth}%           \setlength{\labelsep}{\biblabelsep}%           \addtolength{\leftmargin}{\labelsep}%           \setlength{\itemsep}{\bibitemsep}%           \setlength{\parsep}{\bibparsep}}%           \renewcommand*{\makelabel}[1]{\hss##1}}       {\endlist}       {\item}          \begin{filecontents*}{test.bib}     @article{TehAuthor2013,       author = "TehAuthor",       year = 2013,       journal = "Random Thoughts about science",       title = "Blablabla",     }     @online{TSE2011,       author = "TSE",       year = 2011,       url = "http://tex.stackexchange.com/blabla",     }     \end{filecontents*}     \bibliography{test.bib}          \title{}     \begin{document}          \parencite{TehAuthor2013} \\     \parencite{TSE2011}          \printbibliography[heading=subbibliography,title={In print},nottype=online,omitnumbers]     \printbibliography[heading=subbibliography,title={Online},sorting=none,type=online,env=online]          \end{document}      Is this a bug worth reporting, or am I doing something very wrong ? (I know the whole alternative environment/subbibliography thing is not very beautiful, but it seems to do the work and I haven't found another way to do it)


title: Inserting non-indented text in enumerate/outline

text: I'm trying to insert non-indented chunks of text/image/graphs into an outline. I would like to avoid nested `enumerate` environments. Anyone have a simple solution using something similar to what I have below? Thanks!               \documentclass{article}     \usepackage{outlines}     \usepackage{enumitem}     \setenumerate[1]{label=\Roman*.}     \setenumerate[2]{label=\Alph*.}     \setenumerate[3]{label=\roman*.}     \setenumerate[4]{label=\alph*.}          \begin{document}     \begin{outline}[enumerate]         \1 Some text             \2 Other Text                  \3 Other other text     WANTED: to be able to insert text and graph here that is NOT indented                 \3 More other other text             \2 More other text     \end{outline}     \end{document}


title: Box that behaves like vbox but its width is that of its content?

text: I need a box that fulfils these conditions:   1. It can contain multiple lines (and paragraphs) of text (unlike `\hbox`)   2. A line that is longer then `\textwidth` is split to the next line (like `\parbox`, `\vbox` and unlike `\hbox`, `\mbox`)   3. The content of the box is surrounded closely. That is width of the box is automatically set to width of content (like `\hbox`, unlike `\vbox` and `\parbox`). Because of 3. width of box should actually be minimum of `\textwidth` and width of box content. Height is height of box content. How can I get such a behaviour?


title: How to export vector images from TeXworks

text: I use TeXworks to write pseudo-codes. How can I export the codes into a vector image such as in .emf? The image should have a size fit for the codes. For example, if the codes only takes half page, the image should be half-page large instead of a whole page with half page blank space.


title: Iterative method to solve nonlinear equations

text: I am trying to solve the following equation (coming from fluid dynamics) using TeX.               1/sqrt(lambda) = 2 * log(Re * sqrt(lambda)) - 0.8      where `lambda` is the unknown, `sqrt` means "square root", the `log` is decimal logarithm, and `Re` is a given number. This can't be solved directly... It cannot be written as `lambda = ...`. **How can I improve the code or the approach below to find the zero faster?** I have written code in the `fp` package and with Bruno Le Floch help a version with is programmed in the LaTeX3 equivalent `l3fp`. The approach is to start from `lambda` small, and increase it until the difference between left- and right- side becomes (close to) zero. The problem is that there is a constant step, so I need to do many steps to find `lambda`. But I would like the amount of steps to be a minimum. Here the MWE               \documentclass{article}     \usepackage{expl3}     % Start     \ExplSyntaxOn     \fp_new:N \lambdaa     \fp_new:N \epsa     \fp_new:N \schrittweite     \fp_new:N \zelem     \fp_new:N \hstep     \fp_new:N \RE     \int_new:N \stepsa     \int_new:N \stepsb     % This would end up in the definition of a command if you wish.     \fp_set:Nn \lambdaa { 1e-12 }     \fp_set:Nn \schrittweite { 1e-04 }     \fp_set:Nn \epsa { 0 }     \fp_set:Nn \zelem { 0 }     \fp_set:Nn \hstep { 0.00001 }     \fp_set:Nn \RE { 35800 }     \int_zero:N \stepsa     \int_zero:N \stepsb     %     \fp_set:Nn \differe       {         \lambdaa ** -0.5         - ( 2 * ln(\lambdaa ** 0.5 * \RE) / ln(10) - 0.8 )       }     \bool_while_do:nn % also \bool_do_while:nn may be useful       { \fp_compare_p:n { \differe > \zelem } }       {         \fp_set:Nn \lambdab { \lambdaa }         \fp_add:Nn \lambdaa { \hstep } % \lambdaa = \lambdaa + \hstep         \int_incr:N \stepsb         \fp_set:Nn \differe           {             \lambdaa ** -0.5             - ( 2 * ln(\lambdaa ** 0.5 * \RE) / ln(10) - 0.8 )           }         \typeout{Lambda~zu~klein~[...]~\int_use:N\stepsb,~           \fp_use:N\lambdab,~\fp_use:N\lambdaa}         \typeout{diff~=~\fp_use:N\differe} % Note: "~" gives a space.       }     \bool_while_do:nn       { \fp_compare_p:n { \differe < \epsa }}       {         \int_incr:N \stepsa         \fp_sub:Nn \lambdaa { \schrittweite }         \fp_set:Nn \differe           {             \lambdaa ** -0.5             - ( ln(\lambdaa ** 0.5 * \RE)/ln(10) * 2 - 0.8 )           }         \typeout{differe~ \fp_use:N\differe}         \typeout{stepsa~ \int_use:N\stepsa}         \typeout{lambdaa~ \fp_use:N\lambdaa}       }     \cs_set_eq:NN \fpeval \fp_eval:n     \ExplSyntaxOff          \begin{document}          \begin{equation}     \label{equ:z6}         \frac{1}{\sqrt{\lambda}} = 2 * log (Re * \sqrt{\lambda}) -0,8     \end{equation}     \begin{equation}     \label{equ:z7}         \frac{1}{\sqrt{\fpeval{\lambdaa}}} = 2 * log (\fpeval{\RE} *     \sqrt{\fpeval{\lambdaa}}) -0,8     \end{equation}          \end{document}      It would be even nicer to write a function which solves equations like this in general...


title: can't create \footnote because of math

text: I have this piece in the document:               Affymetrix-anotation-file\footnote{HG-U133_Plus_2.na32.annot.csv}      now I get an error because of the "Plus" in the footnote. Obviously Latex thinks, this is an math command. How can I solve this type of error? thx for help


title: multiline label for node

text: Is there way of producing multiline label for node:               \node[label=below:{unit\\cell}]  (one){\tikz{\draw (0,0)rectangle (1,1);}};      The example produces "wrong" label output: _untitcell_ However, following code:               \node (one){\tikz{\draw (0,0)rectangle (1,1);}};     \path (one) node [below,align=center] {unit\\cell};      produces correct doble-line label, but alas wrong positioning...


title: how to put the text in the box

text: I want to put a long text in the box using LaTeX, thus, would someone tell me how to put the text in the box? Using `\makebox?` however, it doesn't work, I use `\makebox[10cm]{text in the box}`, there is no box in the file.


title: How to find the intersection point between line and plane in tikz-3dplot?

text: It is interesting that there is no question in this site about the intersection between line and plane. In 3-space, a line is passing through a plane. Finding intersection in 3-space is a very important problem but seems to be difficult in tikz-3dplot. I have two questions: 1) how to find the intersecting point and 2) how to hide the line behind the plane?               \tdplotsetmaincoords{45}{10}     \begin{tikzpicture}[scale=1,tdplot_main_coords,>=stealth',font=\scriptsize]          %plane     \draw[fill=gray!40,opacity=.8] (.5,-1.5,0) -- (4,-1.5,0) -- (4,1.5,0) -- (.5,1.5,0) -- cycle;          %points     \coordinate (or) at (2,1.5,-4);     \tdplotsetcoord{p}{5}{10}{0};     \tdplotsetcoord{oo}{0}{0}{0};          %line     \draw (or) -- (p);          %axis     \draw[->] (oo) -- +(.5,0,0) node[right]{$x$};     \draw[->] (oo) -- +(0,.5,0) node[right]{$y$};     \draw[->] (oo) -- +(0,0,.5) node[left]{$z$};     \end{tikzpicture}


title: How to use makebox in LaTeX

text: I try to use `\makebox` around the word, however, all text in the same line, why? Here is my code, would someone help me?               \fbox{\makebox[10cm]{$(t_{SS}{+}t_{MS}{\leq}t_{FS}){\land}(t_{FS}{\leq}t_{BS}){\land}(t_{SS}{+}t_{MS}{+}t_{FS}{+}t_{BS}{\leq}3)$\         $(t_{SS}{+}t_{MS}{\leq}t_{BS}){\land}(t_{BS}{\leq}t_{FS}){\land}(t_{SS}{+}t_{MS}{+}t_{FS}{+} t_{BS}{\leq}3)$\    }


title: Adjust row size and division operands in pseudo code

text: I've just starting using **LaTeX** (today), because I wanted a professional way to format some pseudocodes, needed for a paper. So this might be a lame question, but can't find anything relevant. My problem is that when using the **`\frac`** command with **algorithmicx** package, the constant height of the row makes the fraction small, hard to read. Here is an example: ![](http://i.stack.imgur.com/XNmw1.png) Is there a way to enlarge the row height and those parts which got shrunk? I also noticed, that other writer use the / operator instead of **`\fract`** , but I would rather not, I have pretty long formulas, and this would make them harder to read, and not because of the font size. I don't need constant row height, but a readable code.


title: how to change color at line chart?

text: I have the following code.               \begin{figure}[p]         \centering \begin{tikzpicture}         \begin{axis}[         use units,             width=15cm, height=8cm,     % size of the image             grid = major,             grid style={dashed, gray!30},             %xmode=log,log basis x=10,             %ymode=log,log basis y=10,             xmin=0,     % start the diagram at this x-coordinate             ymin=0,     % start the diagram at this y-coordinate             %/pgfplots/xtick={0,5,...,60}, % make steps of length 5             %extra x ticks={23},             %extra y ticks={0.507297},             axis background/.style={fill=white},             ylabel=Time,             xlabel=Number of Datapoints (n),             y unit=s,y unit prefix=m,             tick align=outside]                % import the correct data from a CSV file           \addplot table [col sep=comma,trim cells=true,y=user] {datasets/mergesort.csv};              \end{axis}  \end{tikzpicture}         \caption{Mergesort Run Time for Sorting Random Data}         \label{fig:merge_sort_from_csv} \end{figure}      What I get is a chart in which each point is represented with a blue dot and a blue line that connects those points. If I change the line               \addplot table [col sep=comma,trim cells=true,y=user] {datasets/mergesort.csv};      to               \addplot[red] table [col sep=comma,trim cells=true,y=user] {datasets/mergesort.csv};      What I get is a straight red line without the points. How I can get the same as before (both line and points) but in a red color?


title: How to insert citation in Elsevier template Latex?

text: I am new to Latex and I am trying to write in an Elsevier template, following the instructions though placed on the template does not give me the desired outcome. I am using a .bib (name of file is george.bib) library with my references which was produced by mendeley (give a BiBtex file), and placed the file in the folder i have the latex components.               %% If you have bibdatabase file and want bibtex to generate the     %% bibitems, please use     %% \bibliographystyle{elsarticle-harv}      %%  \bibliography{<your bibdatabase>}          \bibliographystyle{elsarticle-harv}      \bibliography{george}          %% else use the following coding to input the bibitems directly in the     %% TeX file.          \begin{thebibliography}{00}     %% \bibitem[Author(year)]{label}     %% Text of bibliographic item          %\bibitem[ ()]{}     \bibitem[ ()]{}          \end{thebibliography}      I also did a small test with the `\bibitem` command and it was giving me the in text citation although I would like to use my .bib saved library instead of having to insert all citation manually. So far when i use `\citet{}` and the citation's name i get a `?` when i compile the document. How can i insert the .bib and then use the key words with `\citet` to create citation within text and a bibliography at the end? thank you


title: How to obtain Sweave(l) listings with rounded corners?

text: I downloaded the Sweavel.sty-File from here: http://biostat.mc.vanderbilt.edu/wiki/pub/Main/SweaveTemplate/Sweavel.sty Now, for a modern look, I would like to produce rounded corners in the R code listings, like so: Background overflows when using rounded corners for listings (package: `listings`) How can I change the Sweavel.sty or Sweave.sty files to obtain the desired output? I hope my question is clear. If not, please tell so. Any direct help or linkage to other websites/posts is greatly appreciated. Thanks for your time.


title: math equation with underline has different heights

text: I struggle with some equations in my research paper. I want to underline some variable, because they are complex, but if I use \underline the line is not at the same level in my example:               \documentclass{article}     \usepackage{amsmath}     \usepackage[normalem]{ulem}     \begin{document}          %underline example     \begin{align}     m = -\dfrac{3}{2} z_\mathrm{p} \operatorname{Im}\{\underline{\psi}_1^{\angle k} \underline{i}_1^{\angle k *} \}     \end{align}          %ulem package example     \begin{align}     m = -\dfrac{3}{2} z_\mathrm{p} \operatorname{Im}\{\uline{\psi}_1^{\angle k}\uline{i}_1^{\angle k *} \}     \end{align}     \end{document}      I hope you can read the example. I also wanted to use the ulem packages or soul package, but it didn't work with the \align environment. I would be really happy if anybody could help me! Thx Max Edit: I also added the example with ulem but still the same problem


title: Commands that could include another command

text: I am writing a novel using TeX. I need to indent lines of dialogue by 0.25in from the left margin and by 1in from the right margin. I have thought of using a `minipage` to accomplish this as the dialogue would need to extend over a number of lines of text. The alternative is to use the command `\quotation`. However, I need to use this command frequently and, I am looking for an easy way to accomplish this. Could the minipage command be placed inside a global command? Or `\quotation` for that matter? It would be nice to be able to write something like `\d` in the code instead of having to write out a lengthy command structure each time I need to include dialogue. I would appreciate any help/advice! Mike


title: Using microtype letterspacing with LuaTeX, Version beta-0.70.2-2012062812

text: Does the letterspacing (and tracking) options of microtype not work with the latest version of LuaTeX? When I try:               \documentclass{article}     \usepackage[no-math]{fontspec}     \fontspec[SmallCapsFont={LinLibertineCapitalsO},               SmallCapsFeatures={Letters=SmallCaps}]{Linux Libertine O}     \usepackage[tracking,letterspace=500]{microtype}     \begin{document}\parindent0em          stealing sheap          \textsc{Stealing Sheep}          \textls[800]{\scshape Stealing Sheep}          \end{document}      I get error messages in my .log:               This is LuaTeX, Version beta-0.70.2-2012062812 (TeX Live 2012) (format=lualatex 2012.7.13)  10 AUG 2012 09:14     .....     ! Package microtype Error: The `tracking' feature doesn't currently work     (microtype)                with luatex.     ......     ! Package microtype Error: Letterspacing currently doesn't work with luatex.          See the microtype package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.18 \textls[800]{\scshape Stealing Sheep}          Run pdftex, or use the `soul' package instead.


title: How can the margin around externalized pgfplots crossrefs be set?

text: When using `\usepgfplotslibrary{external}` to externalize `ref`s to `label`s in a pgfplot, the resulting .pdf looks cropped when the linewidth used for the line corresponding to the `label` is thick (or semithick). The effect is similar to that in TikZ External: Figure gets cropped, except because it is a reference to a label, I have no access to the `tikzpicture` to change its bounding box in order to remove the cropping effect. How can I change the bounding box so that the resulting .pdf does not appear cropped?


title: Cell lines of table not aligned cleanly

text: I'm trying to make a small table, but where only certain cell lines are drawn. I followed a general code outline I found elsewhere (the "Spanning in both directions simultaneously" part of this document: http://en.wikibooks.org/wiki/LaTeX/Tables), but when I compile, the ends of the lines defining the cells "overhang" - they don't match cleanly. (Disclaimer: I'm not sure this is the best way to draw this table, but it's what I've come up with.) Here is the code:               \documentclass{beamer}     \usepackage{multirow}     \begin{document}      \centering     \begin{tabular}{ccc|c|}     & & \multicolumn{2}{c}{$Y$} \\      \cline{3-4}     & & \multicolumn{1}{|c|}{1} & 2  \\     \cline{2-4}     \multicolumn{1}{c}{\multirow{2}{*}{$T$}} &     \multicolumn{1}{|c|}{1} & $q_{11}$ & $q_{12}$ \\     \cline{2-4}     \multicolumn{1}{c}{} &     \multicolumn{1}{|c|}{2} & $q_{21}$ & $q_{22}$ \\      \cline{2-4}     \end{tabular}     \end{document}      ![enter image description here](http://i.stack.imgur.com/fO8hr.png) It happens whether I compile with TeXnicCenter on a Windows PC or TeXShop on a Mac. The table doesn't look good whether I view the PDF after compiling within the program, or if I open it separately with Adobe.


title: Libertine (biolinum) font internal name

text: My document used the libertine package. My chapter titles are formatted to sans serif with `\sffamily` and the titlesec package. I'm assuming this means it uses biolinum font for my chapters. Now I want to change my document to lmodern but keep the biolinum chapter formatting. Since I am changing the `sffamily` to the lmodern variant (whatever it may be called) I need to use the `\fontfamily{<internalname>}\selectfont` command. After browsing the libertine documentation and the libertine type1 .sty files I can not find the internal name for biolinum. I have tried `LinuxBiolinumO- LF` and this seems to work but gives a warning when combined with `\bfseries`, so I can not reproduce the bold formatting I had when I used sffamily under the libertine package. Any ideas on how to fix? I do not want to change the sfdefault. Im using texlive 2012 with pdflatex. Thanks.


title: Normalize curves in a plot by the area under the curves

text: In the MWE below, there are two tables, with one (common) column of x values and two columns of y values (A and B) in each table. They are plotted in the same plot, after normalization to the maximum value of column B for each table (there is also an offset added). How can I replace the normalization to the maximum value of column B for each table with the area between column B and column A? In other words: I would like to normalize to the area between B and A for each set of two curves. How can that be achieved? Although numerically not very complicated, I do not know how to implement it in pgfplots (which would eliminate the need to throw the data in and out of Matlab or Octave each time I do this plot). MWE: ![enter image description here](http://i.stack.imgur.com/zFFFp.png)               \documentclass{article}     \usepackage[tightpage,active]{preview}     \usepackage{pgfplotstable}          \newcommand{\offset}{1}          \newcommand{\findmax}[3]{         \pgfplotstablesort[sort key={#2},sort cmp={float >}]{\sorted}{#1}%         \pgfplotstablegetelem{0}{#2}\of{\sorted}%         \pgfmathsetmacro#3{\pgfplotsretval}     }          \pgfplotstableread{     X A B     0 1 5     1 1 7     2 2 7     3 2 5     4 2 3     }\tableone     \findmax{\tableone}{B}{\Bmaxone}          \pgfplotstableread{     X A B     0 10 24     1 13 45     2 24 66     3 26 33     4 26 27     }\tabletwo     \findmax{\tabletwo}{B}{\Bmaxtwo}          \begin{document}     \begin{preview}     \begin{tikzpicture}     \begin{axis}          \addplot [black]     table[x=X,y expr=\thisrow{A}/\Bmaxone] {\tableone};     \addplot [black]      table[x=X,y expr=\thisrow{B}/\Bmaxone] {\tableone};          \addplot [black]     table[x=X,y expr=\thisrow{A}/\Bmaxtwo+\offset] {\tabletwo};     \addplot [black]      table[x=X,y expr=\thisrow{B}/\Bmaxtwo+\offset] {\tabletwo};          \end{axis}     \end{tikzpicture}     \end{preview}     \end{document}


title: How do I reset my theorem count (using mdtheorem)?

text: %   define environments with counters     \mdtheorem[style=mpdframe,  style=wide      ,%                             style=greyfr    ,%                             style=wideln    ]   {discuss}{Discuss Topic}         \mdtheorem[style=mpdframe,  style=wide      ,%                             style=greyfr    ,%                             style=sqzblw    ,%                             style=wideln    ]   {disc}{Discussion}        I want to reset my mdtheorem counter `{disc}` for each chapter. Can someone advise how and where — i.e. in preamble or in document? Thank you.


title: Set longtable to fit the page-width

text: I would like to set a longtable to fit correctly the page-witdh. From now, I've this situation: ![longtable-width-error](http://i.stack.imgur.com/BZnsE.png) and the related tex code is:               \usepackage{array}     \usepackage{multirow}     \usepackage{longtable}     \usepackage[tableposition=below]{caption}      [...]               We now present a table that summarises the possible scenarios that can happen in the overlap zone.     {\small \begin{center}     \begin{longtable}{|c|c|c|}          \hline \textbf{Type of movement in the overlap zone} & \textbf{State of the object in camera 1} & \textbf{State of the object in camera 2}  \\ \hline     \endfirsthead          \hline \textbf{Type of movement in the overlap zone} & \textbf{State of the object in camera 1} & \textbf{State of the object in camera 2}  \\ \hline     \endhead          \hline     \caption{Table title.}     \endfoot          \caption{Table title.}     \endlastfoot          Object moving from camera 1 to camera 2 & Object will eventually be in the \emph{exiting} state and the be \emph{deleted} & Object will be recognised as a \emph{new} object, then become \emph{to be classified} and eventually \emph{classified} \\ \hline     \end{longtable}       \end{center}     }      How can I fix the error?


title: Error caused by TikZ/PGF trigonometric functions

text: I'm a bit confused about a failure I'm seeing with an inline `\cos` call. In the code below there I perform contortions with `\let`, `\pgfmathparse`, and `\pgfmathresult` However, the commented line should, in my understanding, do the exact same thing. Instead it fails with an error. I seem to be missing something and I still don't have a good handle on doing math with pgf.               \documentclass{article}     \usepackage{tikz}     \usepackage{tikz-3dplot}     \usepackage{pgfplots}          \begin{document}          \tdplotsetmaincoords{60}{155}          \begin{tikzpicture}[scale=5,tdplot_main_coords]     \tikzstyle{grid}=[thin,color=red]          \draw[thick,->] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$};     \draw[thick,->] (0,0,0) -- (-1,0,0);     \draw[thick,->] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$};     \draw[thick,->] (0,0,0) -- (0,0,1) node[anchor=south]{$z$};          \foreach \a in {0, 15, 30, 45, 60, 75, 90}{         \pgfmathparse{cos(\a)};         \let\c=\pgfmathresult;         \tdplotdrawarc[grid]{(0,0,{sin(\a)})}{\c}{0}{180}{}{};          % When this line is uncommented it fails.     %   \tdplotdrawarc[grid]{(0,0,{sin(\a)})}{{cos(\a)}}{0}{180}{}{};     }          \foreach \rot in {-90, -60, -30, 0, 30, 60, 90} {         \tdplotsetrotatedcoords{\rot}{90}{0};         \tdplotdrawarc[grid,tdplot_rotated_coords]{(0,0,0)}{1}{90}{180}{}{};     }          \end{tikzpicture}     \end{document}


title: `helvet` and `moveleft` in resume

text: ![enter image description here](http://i.stack.imgur.com/C0LGD.jpg) ![enter image description here](http://i.stack.imgur.com/k7zVH.jpg) I have several questions about the following code:               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         % Medium Length Graduate Curriculum Vitae         % LaTeX Template         % Version 1.1 (9/12/12)         %         % This template has been downloaded from:         % http://www.LaTeXTemplates.com         %         % Original author:         % Rensselaer Polytechnic Institute (http://www.rpi.edu/dept/arc/training/latex/resumes/)     %     % Important note:     % This template requires the res.cls file to be in the same directory as the     % .tex file. The res.cls file provides the resume style used for structuring the     % document.     %     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          %----------------------------------------------------------------------------------------     %   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS     %----------------------------------------------------------------------------------------          \documentclass[margin, 10pt]{res} % Use the res.cls style, the font size can be changed to 11pt or 12pt here          \usepackage{helvet} % Default font is the helvetica postscript font     %\usepackage{newcent} % To change the default font to the new century schoolbook postscript font uncomment this line and comment the one above          \setlength{\textwidth}{5.1in} % Text width of the document          \begin{document}          %----------------------------------------------------------------------------------------     %   NAME AND ADDRESS SECTION     %----------------------------------------------------------------------------------------          \moveleft.5\hoffset\centerline{\large\bf John Smith} % Your name at the top          \moveleft\hoffset\vbox{\hrule width\resumewidth height 1pt}\smallskip % Horizontal line after name; adjust line thickness by changing the '1pt'          \moveleft.5\hoffset\centerline{123 Broadway} % Your address     \moveleft.5\hoffset\centerline{City, State 12345}     \moveleft.5\hoffset\centerline{(000) 111-1111 or (111) 111-1112}          %----------------------------------------------------------------------------------------          \begin{resume}          %----------------------------------------------------------------------------------------     %   OBJECTIVE SECTIONk     %----------------------------------------------------------------------------------------          \section{OBJECTIVE}            A position in the field of computers with special interests in business applications programming, information processing, and management systems.           %----------------------------------------------------------------------------------------     %   EDUCATION SECTION     %----------------------------------------------------------------------------------------          \section{EDUCATION}          {\sl Bachelor of Science,} Interdisciplinary Science \\     Rensselaer Polytechnic Institute, Troy, NY, expected December 1990 \\     Concentration: Computer Science \\     Minor: Management           %----------------------------------------------------------------------------------------     %   COMPUTER SKILLS SECTION     %----------------------------------------------------------------------------------------          \section{COMPUTER \\ SKILLS}           {\sl Languages \& Software:}      COBOL, IFPS, Focus, Megacalc, Pascal, Modula2, C, APL, SNOBOL, FORTRAN, LISP, SPIRES, BASIC, VSPC Autotab, IBM 370 Assembler, Lotus 1-2-3. \\     {\sl Operating Systems:} MTS, TSO, Unix.           %----------------------------------------------------------------------------------------     %   PROFESSIONAL EXPERIENCE SECTION     %----------------------------------------------------------------------------------------          \section{EXPERIENCE}          {\sl Business Applications Programmer} \hfill Fall 1990 \\     Allied-Signal Bendix Friction Materials Division, Financial Planning Department, Latham, NY           \begin{itemize} \itemsep -2pt % Reduce space between items     \item Developed four ``user friendly" forecasting systems each of which produces 18 to 139 individual reports.      \item Developed or improved almost all IFPS programs used for financial reports.      \end{itemize}          {\sl Research Programmer} \hfill Summer 1990 \\     Psychology Department, Rensselaer Polytechnic Institute      \begin{itemize}      \item Performed computer aided statistical analysis of data.      \end{itemize}           {\sl Assistant Manager} \hfill Summers 1988-89 \\     Thunder Restaurant, Canton, CT     \begin{itemize}     \item Recognized need for, developed, and wrote employee training manual. Performed various duties including cooking, employee training, ordering, and inventory control.      \end{itemize}           %----------------------------------------------------------------------------------------     %   COMMUNITY SERVICE SECTION     %----------------------------------------------------------------------------------------           \section{COMMUNITY \\ SERVICE}          Organized and directed the 1988 and 1989 Grand Marshall Week \\     ``Basketball Marathon.'' A 24 hour charity event to benefit the Troy Boys Club. Over 250 people participated each year.           %----------------------------------------------------------------------------------------     %   EXTRA-CURRICULAR ACTIVITIES SECTION     %----------------------------------------------------------------------------------------          \section{EXTRA-CURRICULAR \\ ACTIVITIES}           Elected {\it House Manager}, Rho Phi Sorority \\     Elected {\it Sports Chairman} \\     Attended Krannet Leadership Conference \\     Headed delegation to Rho Phi Congress \\     Junior varsity basketball team \\     Participant, seven intramural athletic teams           %----------------------------------------------------------------------------------------          \end{resume}     \end{document}        1. What does `\moveleft.5\hoffset` mean here? Why there is `.5` right after `\moveleft` and why there is no argument after `hoffset`?   2. For `\moveleft.5\hoffset\centerline{\large\bf John Smith}`, you already `centerline` the name, but why you still want to move it to the left? You want the name to appear in the center, right?


I am trying to compile a template that I have received but I am having problems :               \documentclass[a4paper]{article}     \usepackage{mstyle}     \selectlanguage{english}          \usepackage{tabularx}          \begin{document}          \tableofcontents     \listoffigures     \listoftables     \onehalfspace          \input{tex/introduction_chapter}          \bibliographystyle{plain}     \bibliography{mybib}     \end{document}      Compiling this gives me               Errors:          ./x.tex:3: LaTeX Error: File `mstyle.sty' not found. [\selectlanguage]      I am using `texlive` (2013.20140215-1) on Ubuntu 14.04.


title: Highlighting text through stacked colored underlines

text: I have sentences in which characters have been "marked" by some people and not by others. I'd like to present the markings simultaneously. Stacked colored underlining (in which a line represents each person's marks) seems like the best solution. However, I'm struggling to make that happen. How can I present multiple markings simultaneously? ## Goal ![overlapping_highlights](http://i.stack.imgur.com/uVcQF.png) ## Code That Fails Because `}` closes the most recent `{`, the following code only works for a subset of examples (it fails on the goal example):               \documentclass{article}     \usepackage{xcolor}     \newcommand{\rul}[1]{\textcolor{red}{\underline{\textcolor{black}{#1}}}}     \newcommand{\bul}[1]{\textcolor{blue}{\underline{\textcolor{black}{#1}}}}          \begin{document}     \rul{sample \bul{with blue embedded} and continuing red}     \end{document}      I've experimented a bit with `\lefteqn` and `\phantom`. Using these commands resolves the bracket mismatching, but it has two other problems: it's text in math mode, and there isn't a vertical gap between the two underlining colors:               \[\lefteqn{\rul{\phantom{overlapping high}}}overlapping \bul{highlighting}\]      ## Other Considerations I need to make many pages of this sort of text. For readability, the solution should have the following properties:   * Underlining automatically wraps across lines.    * Underlining of a single color stays on the same horizontal level throughout the document (e.g., blue is always _n_ units below baseline).   * Scales up to ~10 stacked underlines in a document section. Because of the amount of this text, a readable/maintainable solution would be aces.


title: What does "circle through" do with its argument?

text: The tikz library `through` can be used to draw a circle from a center coordinate A through another coordinate B like so: `\node [draw] at (A) [circle through=(B)] {};` When attempting to specify the coordinate to go through directly, i.e. without a named through coordinate `\node [draw] at (A) [circle through=(2,2)] {};` and compiling my document with pdflatex not only does that not work it also doesn't return and so gives no error message. **What does`circle through` do with its argument and is there a way to prevent endless compiling and come to some error message without rewriting a tikz library?** The way that works is to specify the coordinate in curly brackets `\node [draw] at (A) [circle through={(2,2)}] {};` I'm guessing `through` wasn't able to correctly retrieve its argument the other way. Note that the pgfmanual 2.10 doesn't speak to that issue. The call is described as `/tikz/circle through=<coordinate>` (p. 474) and whenever it is used in examples named nodes are used. I'm using TeXstudio 2.3 which runs `pdflatex -synctex=1 -interaction=nonstopmode "test-tikzcirclethrough".tex` Here is a test document:               \documentclass[10pt,a4paper]{article}     \usepackage{tikz}     \usetikzlibrary{through}     \begin{document}     \begin{tikzpicture}     \coordinate (A) at (1,2);     \coordinate (B) at (2,2);     % Works     \node [draw] at (A) [circle through={(B)}] {};     \node [draw] at (A) [circle through=(B)] {};     \node [draw] at (A) [circle through={(2,2)}] {};     % Doesn't work     \node [draw] at (A) [circle through=(2,2)] {};     \end{tikzpicture}     \end{document}


title: Debugging LaTeX Errors: how to isolate the problem

text: Using TeXWorks and TeXLive, usually errors display the relevant text, and I can go find the problem. Of course, it would be nice if there were a button I could click to go there, but it's not crippling. However, I now have a large document, and suddenly, I get the following error, with no clue about where in the document it is failing:               (c:/bin/texlive/2013/texmf-dist/tex/latex/hyperref/hyperref.sty     (c:/bin/texlive/2013/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     (c:/bin/texlive/2013/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))     (c:/bin/texlive/2013/texmf-dist/tex/latex/oberdiek/auxhook.sty)     (c:/bin/texlive/2013/texmf-dist/tex/latex/hyperref/pd1enc.def)     (c:/bin/texlive/2013/texmf-dist/tex/latex/latexconfig/hyperref.cfg)     (c:/bin/texlive/2013/texmf-dist/tex/latex/url/url.sty))          Package hyperref Message: Driver (autodetected): hpdftex.          (c:/bin/texlive/2013/texmf-dist/tex/latex/hyperref/hpdftex.def     (c:/bin/texlive/2013/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     (c:/bin/texlive/2013/texmf-dist/tex/latex/geometry/geometry.sty)     (c:/bin/texlive/2013/texmf-dist/tex/latex/listings/lstlang1.sty)          (./QuickFlippedLessons2.aux     ! Undefined control sequence.     l.75 \@writefil          ?       I don't have a previous version saved, so finding this could be an extremely tedious process of deleting sections until I find the relevant one. Is there anything I can do?


title: No spacing between citations

text: I'm trying to eliminate the space between the numbers in multiple citations, and I've tried using the `\usepackage[compress]{natbib}` and `\usepackage[nospace]{cite}` packages and commands to do it, but I get this error:               ! Package biblatex Error: Incompatible package 'natbib'. See the     biblatex package documentation for explanation. Type H <return> for     immediate help.          ... l.69 \begin          {document} The 'natbib' package and biblatex are incompatible.      I'm using `\documentclass[spanish,11pt,a4paper]{report}` and `\usepackage[spanish]{babel}`. How can I work this out?


title: Help on dealing with items divided with slash

text: I am using a number of items in text that are divided with a slash. For example dates in different calendars or names of locations, such as **585/1190~CE** (the first number is the year in Islamic lunar calendar, the second is according to the Common Era calendar), or **Mosul/al-Mawsil** (the first is a common English spelling, the second is the transliteration of the original name). The problem I am running into is that Latex cannot split such items when they are at the end of a line---and such item ends up sticking through the margins. Adding spaces around the slash helps, but it looks ugly and this is not how it is supposed to be in academic writing. I wonder if there is a workaround to solve this issue. Namely, I do not want to use spaces around "/", but I would like Latex to break an item after a slash when necessary.


title: How can I adjust the number of figures latex will display on a page

text: Try as I might, I can't get latex to put more than six Figures on a page. Naturally, I've tried reducing the size of each figure, still no go. Any more than six and the extras go on the next page, with enough room at the bottom of the first page (with the six figures) for text. What I would like is eight figures per page. BTW I'm fairly new at LaTeX.


title: circuitikz: labels, component size, and documentation

text: I'm trying to pick up `circuitikz` tonight to draw a few circuits. I ran into a few problems. **Problem 1: Positioning Labels** Here's my problem. When I use this code:               \documentclass{article}     \usepackage{circuitikz}     \usepackage{siunitx}          \begin{document}              \begin{circuitikz}             \draw[scale=0.8, transform shape]                      (5,0) --                      (5,-2) to[battery, l=$1.5\ V$, i=$\SI{3}{A}$]                      (0,-2) --                      (0,0) to[resistor,  l= $R_2$ ] (5,0);             \draw[scale=0.8, transform shape]                  (3.5,1.5) to[resistor, l=$R_3$]                  (1.5,1.5)--                  (1.5,-1.1) to[resistor, l= $R_1$ ]                  (3.5,-1.1) -- (3.5,1.5);         \end{circuitikz}          \end{document}      I get this: ![circuit](http://i.stack.imgur.com/Zoj32.png) I can't figure out how to get the R_3 label above the resistor. **Problem 2: Scaling components** I've been using the `scale` and `transform shape` options, but is there a better way to change the size of each component and label? Related, is there a way to get thicker lines? **Problem 3: Documentation** I've only been able to find this document for documentation, and I don't think it's very comprehensive. Is there a better resource? If not, can you please explain a better way of drawing my circuit than the way I've done it. Mine feels really amateurish...


title: Replace a few math symbols in the newtxmath font

text: I use the `\newtxmath` as the math font in my document and `\newtxtext` for the text. This seems to work fine, but I need to replace some math symbols which seem to me not as nice as their default Latin Modern Math counterpart. The symbols I need to replace, e.g., are:   * `\int` and `\sum`: they look so high and big,    * `\infty`: looks too small, and    * `\partial` and `\pi`: looks strange too. I have searched for similar or near question like this one (Replace several letters in math font), but I haven't been very successful in reusing the answer therein in my case. My MWE is:               \documentclass{scrartcl}     \usepackage{amsmath,amssymb}     \usepackage{newtxtext,newtxmath}     \begin{document}          \noindent     ABCDEFGHIJKLMNOPQRSTUVWXYZ \\     abcdefghijklmnopqrstuvwxyz \\     $abcdefghijklmnopqrstuvwxyz$ \\     $ABCDEFGHIJKLMNOPQRSTUVWXYZ$ \\     $a\alpha\beta\gamma\delta\epsilon\varepsilon\zeta\eta\theta\vartheta\iota\kappa\varkappa\lambda\mu\nu\xi o\pi\varpi\rho\varrho\sigma\varsigma\tau\upsilon\phi\varphi\chi\psi\omega$ \\     $\Gamma\Delta\Theta\Lambda\Xi\Pi\Sigma\Upsilon\Phi\Psi\Omega$ \\     $\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$     \[       \frac{1}{2\pi i}\int_\gamma f(x) = \sum_{k=1}^m n(\gamma;a_k) \cdot \text{Res}(f;a_k).     \]     \[     G(\omega)=\int_{-\infty}^{\infty}g(t)e^{-j\omega t} dt     \]     And this is nonmath text.          \end{document}      I appreciate your help.


title: Blurry Show Background

text: I am trying to create a frame for each of my figures. Something's like this - a plain white rounded rectangle with a blurry shadow. ![Shadow](http://i.stack.imgur.com/FbIiv.png) Could this be done in latex? Could you show me how?


title: How to make AUCTeX ignore syntax highlighting within environment

text: I have a problem with syntax highlighting in the Emacs editor using AUCTeX. The problem occurs in particular with the `Verbatim` environment from the `fancyvrb` package. Consider the following code:               \documentclass{article}     \usepackage{fancyvrb}     \begin{document}     \begin{Verbatim}       $USER      }     \end{Verbatim}     \end{document}      This produces the following screenshot: ![enter image description here](http://i.stack.imgur.com/4gGZt.png) The problem seems to be the `$` sign in the `Verbatim` environment, and AUCTeX believes that I have entered some math code that I have not yet terminated with an ending `$` sign.. Is there a way to tell AUCTeX to ignore syntax highlighting within a particular environment?


title: res.cls hfill addresses

text: I'm trying to have my phone number float to the right margin, but hfill doesn't seem to work within an address in res.cls.               \address{email@email.com (555) 555-5555}      So I try to change that to:               \address{email@email.com \hfill (555) 555-5555}      but it doesn't work. hfill has no effect here, any ideas on how to get this to work? I've poked around res.cls but don't see any obvious fixes... well at least for me, I'm a latex noob. Thanks for your help.


title: How to create a Labeled Hierarchy using Tikz?

text: how would I create something like this? Is this tikz? ![enter image description here](http://i.stack.imgur.com/s8MzO.png) What is the most user-friendly tutorial to starting tikz?


title: How do I get lining figures when using Latin modern with the cfr-lm package?

text: When using the `cfr-lm` package with the Latin modern font (`lmodern` package) I get text figures as standard. This is good, but sometimes I want to explicitly use lining figures. How can this be achieved?               % !tex program = pdflatex     \documentclass{minimal}     \usepackage{lmodern}     \usepackage{cfr-lm}          \begin{document}          123 % (Produces text figures)          \end{document}


title: What is the scheme of fonts naming in PDFs generated by LaTeX and other software?

text: Most of PDF viewing software allows one to see documents properties, in particular, fonts used in them. Some viewers (e.g. Okular of KDE) even allow to extract such fonts to TTF files. I always wondered why names of fonts are often so weird - they contain prefixes. This holds for PDFs produced by PDFLaTeX, XeLateX, MS Word etc. Googling this subject reveals only information about font embedding, which is irrelevant to font naming. Actually, two related questions arise from this:   1. Is there any standard that a PDF producing application follows when it chooses font names?   2. Is there any method to affect naming of fonts generated by LaTeX? Below is a screenshot of a document properties window of Foxit Reader. Note that "EAPEGA+", "EAPHMM+" etc prefixes that some fonts have. ![PDF document properties, font view](http://i.zlowiki.ru/140129_022300e6.png) _EDIT_ : this thread partly answers to my second question: one can try to uncompress a PDF, then use find-and-replace to substitute font name string, and repack everything back to PDF.


title: scrbook twoside=off but alternating headings like with twoside=on?

text: I use `scrbook` for a large document and decided to print it out one sided only. So I added `twoside=off` to the `scrbook` class options. However, that's not quite what I wanted to achieve. There is only a non- altenating header now and header and pagenumbers are centered. How do I get alternating headers (chapter title on even, section title on odd pages) and headers and footers aligned to the right?


title: Subscript in beamer class using frames and equations

text: \documentclass{beamer}     \usepackage[latin1]{inputenc}     \usepackage{textpos}     \usetheme{CambridgeUS}     \usepackage[british,UKenglish,USenglish,english,american]{babel}     \begin{document}      \begin{frame}       \begin{equation}         Energy Factor_A_big/small        \end{equation}      \end{frame}     \end{document}      What I am trying to achieve there is to get a space in between `Energy` and `Factor`, secondly. I want `A` to be a subscript of `Energy Factor` and `big/small` to be a subscript of `A`. What is the mistake I'm doing?


title: cls file - multiple files

text: I am writing a .cls file so that I can maintain consistency across many documents. The cls file is soooo long, and I would like to split it up into parts, in a similar fashion that one does when writing a document. Can I do this, the `\input{...}` command doesn't seem to recognize a sub-folder of the parent .cls file in my TEXMFHOME tree structure.


title: naive dictionary datastructure using \csname ... \endcsname; problem with nesting

text: With the following I tried to implement a naive dictionary data structure. All works fine, except when trying to nest two such dictionaries. In the last line in the following code the result is "key2", when "val2" is expected. I'm obviously missing something in how "\returnvalue.get" is expanded. Any thoughts will be appreciated.               \def\newdict #1{            \expandafter\edef\csname #1 \endcsname{#1}                  \expandafter\def\csname #1.set \endcsname##1##2{         \expandafter\def\csname #1.##1\endcsname{##2}       }                 \expandafter\def\csname #1.get \endcsname##1{         \csname #1.##1\endcsname       }               }          \newdict{dict1}     \newdict{dict2}          \csname dict1.set \endcsname{key1}{val1}     \csname dict1.get \endcsname{key1}        %prints 'val1'          \csname dict2.set \endcsname{key2}{val2}     \csname dict2.get \endcsname{key2}        %prints 'val2'          \csname dict1.set \endcsname{key3}{dict2}     \csname dict1.get \endcsname{key3}        %prints 'dict2'          \def\proxyname{dict2}     \csname \proxyname.set \endcsname{key4}{val4}     \csname dict2.get \endcsname{key4}              %prints 'val4'     \csname \proxyname.get \endcsname{key2}         %prints 'val2'          \edef\returnvalue{\csname dict1.get \endcsname{key3}}     \returnvalue                              %prints 'dict2'          \csname \returnvalue.get \endcsname{key2} %prints 'key2'


title: How do I make text to appear in multiple columns as in newspapers on Texworks?

text: How do I make text to appear in multiple columns as in newspapers on Texworks instead of rows?


title: How do I jump from line in Skim to the same line in my text editor?

text: I set my text editor (Aquamacs) to produce the .synctex.gz file. But still I don't understand how to jump from Skim back into the text editor. Is there a specific command?


title: Log color bar/meta data in PGFPLOT

text: I'm trying to create a 2D plot with a color map using pgfplots. I've managed to get the overall behaviour that I want, but I would like the color map to be logarithmic, rather than linear. The best I have managed is to use the meta expr key, but then the color bar shows 1-4 instead of 10^1 through 10^4. Below is my working example.               \begin{tikzpicture}     \begin{semilogyaxis}[colorbar,     xlabel = create energy (keV),     ylabel = deposit energy (kev),     ]     \pgfplotstableread{../endep_log_au_30_0_0.csv}\mytable %     \addplot+[scatter, only marks, scatter src=explicit, mark=square]      table[x=createEn,y=depEn,meta expr=ln(\thisrow{tot})/ln(10)] {\mytable};     \end{semilogyaxis}     \end{tikzpicture}      Is there a way to modify how the labels appear on the colorbar or set it to be logarithmic? Is there a different way I should be approaching this problem? (Unfortunately I cannot post an image as a new user)


title: How to put bullets in the margin?

text: I'm no typography expert, but I heard that the bullets and numbers in itemize/enumerate environments are better placed outside of the main body of text, i.e. in the margin. How can I do that in LaTeX? And a bonus question, how can I do that in ConTeXt? :) **EDIT** : One use is in this thesis: http://www.duo.uio.no/sok/work.html?WORKID=81971&lang=en but I did not find any nested list there. Another case is this eBook: http://designingfortheweb.co.uk/book/part3/part3_chapter13.php


How to create a triangle of dots in TikZ using the foreach command? I need this. ![enter image description here](http://i.stack.imgur.com/G9dcR.png)


title: Baskerville font selection

text: > **Possible Duplicate:**   >  Font: Is British Baskerville typeface available in TeXLive 2010 I'd like to use the font baskerville with latex to make a long document but have come across some confusion. After a couple of google searches I have found a way to install the font with latex but it looks confusing. Before I go down the wrong path I thought I'd check here to find the best way.


title: TikZ: adding a node to a plot

text: \documentclass[convert = false, tikz, usenames, dvipsnames]{standalone}     \usetikzlibrary{backgrounds}     \tikzset{       partial circle/.style args = {#1:#2:#3}{         insert path = {+ (#1:#3) arc (#1:#2:#3)}       }     }     \begin{document}     \begin{tikzpicture}[       every label/.append style = {font = \small},       dot/.style = {outer sep = 0pt, inner sep = 0pt,         shape = circle, label = {#1}},       dot/.default =,       small dot/.style = {minimum size = .05cm, dot = {#1}},       small dot/.default =,       big dot/.style = {minimum size = .15cm, dot = {#1}},       big dot/.default =       ]       \def\angle{60}       \def\dom{5}       \def\circradius{.3}            \coordinate (O) at (0, 0);            \draw (O) circle[radius = \circradius];       \draw[-latex] (.4, 0) -- (1, 0);       \draw[dashed] (-5, 0) -- (.2, 0);       \draw[thick, gray] (O) [partial circle = -210:-150:4cm];            \begin{pgfonlayer}{background}         \begin{scope}           \begin{pgfinterruptboundingbox}             \clip (O) circle[radius = 4cm];                  \foreach \a/\circ/\col in             {1/.3/orange, 1.05/.42/blue, 1.1/.52/green, 1.15/.62/red,               1.2/.72/Goldenrod}{               \pgfmathsetmacro{\b}{\a / tan(\angle)}               \begin{scope}[rotate = {180 - \angle}, shift = {(0, -\a - \circ)}]                 \draw[\col] plot[domain = 0:\dom, samples = 100]                 ({\x}, {\a * sqrt(1 + (\x / \b)^2)})                 node[fill = \col, draw = \col, small dot = { }, pos = 0] {};               \end{scope}         }           \end{pgfinterruptboundingbox}         \end{scope}       \end{pgfonlayer}     \end{tikzpicture}     \end{document}      I would like to put the small dot at the 0th position of the curve. However, I can't get the small dot to appear at any position. How can I add this nodal dot? So the code in question is               \foreach \a/\circ/\col in     {1/.3/orange, 1.05/.42/blue, 1.1/.52/green, 1.15/.62/red,       1.2/.72/Goldenrod}{       \pgfmathsetmacro{\b}{\a / tan(\angle)}       \begin{scope}[rotate = {180 - \angle}, shift = {(0, -\a - \circ)}]         \draw[\col] plot[domain = 0:\dom, samples = 100]         ({\x}, {\a * sqrt(1 + (\x / \b)^2)})         node[fill = \col, draw = \col, small dot = { }, pos = 0] {};       \end{scope}      So I increased the dot size to `1cm` to see if they were appearing. They are being pushed way off screen. How could that register as `pos = 0`? ![enter image description here](http://i.stack.imgur.com/ulL4T.png)


title: Nice looking invoices

text: Do you know of any nice looking **invoice** LaTeX template/class. I would like to create a web invoice engine (maybe on top of the scribtex engine) that compiles for me an invoice using the LaTeX engine (pdfLaTeX) and some data filled by a web form. Before to begin the development I'm searching for an elegant or at least nice template for invoices. Do you have any suggestion?


title: Is there any way to make two pages per sheet (landscape) and the page numbering appears as if each column was a page?

text: I want to make a landscape sheet with two pages (like two columns) and I want that the page numbering to be a number per page (a number per column) instead of a number per sheet. I use `\usepackage[landscape, twocolumn]{geometry}` but I want the page number to appear as if each column was a page. Is there any way to do that? And is there any form to make the space between the columns wider?


title: How can I make the curve's arrow pointing the right direction

text: ![enter image description here](http://i.stack.imgur.com/SeNdx.png) As figure. I hope the final arrow can point the right direction. `\draw [-latex,thin] plot [smooth] coordinates {(-4.98,1.95/2+0.1) (1,0.716) (1.1,-1.19) (-2.6,-1.2)};` The MWE:               \documentclass{standalone}     \usepackage{tikz}     %     \begin{document}     %     \begin{tikzpicture}         \draw [-latex,thin] plot [smooth] coordinates {(-4.98,1.95/2+0.1) (1,0.716)                     (1.1,-1.19) (-2.6,-1.2)};     \end{tikzpicture}     %     \end{document}


title: New apacite package (2012-Feb-14) problem?

text: A new version of the `apacite` package was introduced on 2012-Feb-14, with three added options to select different citation commands: `apaciteclassic`, `natbibapa`, and `nocitation`. I installed the package on MiKTeX 2.9 and tried to use it. The `apaciteclassic` option works without any issues. However, when I try `natbibapa` I get this error (I paste part of the log):               ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\natbib\natbib.sty"     Package: natbib 2010/09/13 8.31b (PWD, AO)     \bibhang=\skip48     \bibsep=\skip49     LaTeX Info: Redefining \cite on input line 694.     \c@NAT@ctr=\count89     )     LaTeX Info: Redefining \BBA on input line 3.     ! Undefined control sequence.     \apacite.sty-h@@k ...elist {\orig@mb@citenamelist                                                        ,citeauthort,citeauthorp,c...     l.3     ?     ! Emergency stop.     \apacite.sty-h@@k ...elist {\orig@mb@citenamelist       ,citeauthort,citeauthorp,c...     l.3      End of file on the terminal!      Here is a minimal working example (that produces the error):               \documentclass[12pt]{report}     \usepackage[natbibapa]{apacite}          \begin{document}          Lorem ipsum dolor sit amet. \citet{shermis1999comparison} consectetur adipiscing elit.          \bibliographystyle{apacite}     \bibliography{myrefs}     \end{document}      And here is the bib entry:               @ARTICLE{shermis1999comparison,     author = {Shermis, M.D. and Lombard, D.},     title = {A comparison of survey data collected by regular mail and electronic   mail questionnaires},      journal = {Journal of Business and Psychology},     year = {1999},     volume = {14},     pages = {341--354},     number = {2},     publisher = {Springer}     }        Can someone install the new package and see whether he/she gets the same error while utilizing the `natbibapa` option? Is there something I am doing wrong? I appreciate any help.


title: LaTeX document error: too many }'s

text: I have a latex document, which works fine but when ever I try to add in an image with a figure caption it gives me an error saying there are to many }'s.               \begin{figure}[h!]       \caption{A picture of a gull.}            \includegraphics[width=0.5\textwidth]{uml-usecase/overview.png}     \end{figure}      My current packages are:               \usepackage{amsfonts}     \usepackage{amssymb,amsmath}     \usepackage{amsthm}          \usepackage{newlfont}     %\usepackage{graphicx}     \usepackage{tabularx}     \usepackage{longtable}     \usepackage{lscape}     \usepackage{rotating}          \usepackage{latexsym}     \usepackage{natbib}     \usepackage{geometry}     \usepackage{fancyhdr}     \usepackage{xthesis}     \usepackage{xtocinc} %Include Table of Contents as the first entry in TOC     \usepackage{subfigure}     \usepackage{times}          \usepackage{hyperref}     \usepackage{xcolor}     \usepackage[dvips]{graphicx}     \bibpunct[, ]{(}{)}{;}{a}{,}{,}      As far as I can see it's right, can anyone figure out where I am going wrong?


title: How to get a line break in a title on the page head?

text: I am writing a document using the `amsart` and the title is just very long. Now I wonder, how I could get a linebreak such that it would not overfill the heade of each page. I tried `\protect\\\\\` but this did not work. Here is a minimal example:               \documentclass[11pt]{amsart}     \usepackage{lipsum}          \begin{document}          \title[An annoyingly long title that almost makes me \protect\\ cry and I do not see how to fit it into the head so the question is what I can do?]{An annoyingly long title that almost makes me cry and I do not see how to fit it into the head so the question is what I can do?}     {\maketitle}     \lipsum     \lipsum[3-56]     \end{document}


title: Output a document containing a single vertical-infinite page

text: > **Possible Duplicate:**   >  Automate Fixed Width Page, length > some minimum length, but only as long > as needed Is there a way to output a document containing a SINGLE page (that contains the entire text which would normally break through let's say 10 A4 pages). I want the document width to be A4's width and the document height to be minimum height so that the document has a single page. The motivation is: I don't really need pages (the document is not supposed to be printed) and my document contains lots of framed boxes that don't break across pages; so, there are large pieces of blank text when the next box doesn't fit the current page. > EDIT: I know I can use \paperheight and \textheight but I don't wanna have > to guess the value every time


title: Dynamic LaTeX typing and compiling

text: Is there a program or application that lets me type in the LaTeX language, and on another part of the screen have the compiled output appear? Of course this would be for simple LaTeX code, obviously no index's, hyperlinks etc., but for simple article documents. I found http://www.codecogs.com/latex/eqneditor.php, but I am looking for something that let's me write text and specify my own math enviroments.


title: Is there a way to use just any random font installed on your system in TeX?

text: I'm very interested in the concept of TeX, specifically the use of mark-up language to organize the content of documents. I'm also very interested in typography and I am under the impression (I forget how) that TeX handles OpenType fonts and their multitude of fancy features very well. Today I downloaded TeX Live for Windows and it seems alright. What I'm very disappointed about is how complicated it seems to be to use different fonts. I've been browsing the internet about this and what I gather is that fonts need to be in some specific format with other supporting files and all of it packaged then imported in the LaTeX document. So about my question; have I missed something obvious? Is there some kind of command where you specify the font file's path and that's all you need to be able to use it in the document?


title: LaTeX class for europass cv (2013 template)

text: Does anyone know if there is a LaTeX class which implements the new (2013) europass cv? I could not find anything on the web and I am thinking to start writing it myself but I want to make sure that there is nothing like that around. This question was already asked in Europass 2013 Curriculum Vitae and apparently no such class existed up to 4 October.


title: \twocolumn with nested \includegraphics

text: When typesetting this:               \documentclass{article}     \usepackage{graphicx}     \begin{document}     \twocolumn[         \includegraphics[width=12cm]{foo.png}     ]     \end{document}      I get:               ! Argument of \Gin@ii has an extra }.     <inserted text>                     \par     l.5    \includegraphics[width=12cm]                                        {foo.png}      It works if I omit the `[width=12cm]`. What's a `\Gin@ii`, why does it have an extra `}`, and how do I fix this?


title: Not centered title page

text: I'm using this template of title page for my book from here named TMB. However, it is not centered, just like the default title page using \maketitle. Is there any way I can center my title page?               \documentclass[a4,11pt,twoside]{book}               \newcommand*{\titleTMB}{\begingroup% Three Men in a Boat     \newlength{\drop}     \setlength{\drop}{0.1\textheight}     \centering     \settowidth{\unitlength}{\LARGE THE BOOK OF CONUNDRUMS}     \vspace*{\baselineskip}     {\large\scshape Many names}\\[\baselineskip]     \rule{\unitlength}{1.6pt}\vspace*{-\baselineskip}\vspace*{2pt}     \rule{\unitlength}{0.4pt}\\[\baselineskip]     {\LARGE My book's title}\\[\baselineskip]          \rule{\unitlength}{0.4pt}\vspace*{-\baselineskip}\vspace{3.2pt}     \rule{\unitlength}{1.6pt}\\[\baselineskip]          \vfill          {\small\scshape 11 March 2014}\par     \vspace*{\drop}     \endgroup}               \begin{document}               \begin{titlepage}     \titleTMB     \end{titlepage}               \end{document}      Thank you!


title: Why can't I get annotations in the bibliography here?

text: Funny, I feel like I had it going before. I can't seem to figure out what's wrong. MWE:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[danish]{babel}     \usepackage[notes,backend=biber,isbn=false]{biblatex-chicago}     \usepackage{filecontents}     \usepackage{csquotes}     \begin{filecontents}{jobname.bib}     @Book{test1,       author    = {Bar, Foo},       title     = {Foo},       publisher = {Addison-Wesley},       location  = {Reading, Mass.},       year      = {1994},       annote    = {My annotation}     }     \end{filecontents}     \bibliography{jobname.bib}     \begin{document}     Foo\footcite{test1}     \printbibliography      \nocite{*}      \end{document}      What I want is the "annote" field at the end of the bibliography entry. No idea why it's not working. You can compile with:               latexmk -pdf mwe      If you want to.


title: Help with Lyx type problem

text: I am new to LaTeX and Lyx. I was typing my text when I changed something in Lyx and now, for example, I need to type two times dot (`.`) to show up at the display. If I type `dot + space`, it shows one of these points between " " (" ̇ ̇ ̇ ̇ "); if I type `? + space`, it shows this: " ° " . In the code appears `\\.{ }` in the first case and `\r{ }` in the second one. How can I disable this automatic substitution of the code?


title: How to disable automatic indent?

text: I know there are some similar questions here, but I haven't found the perfect answer for my problem. I don't like that TeX indents he first line of each paragraph and I'm too lazy to write `\noindent` to the beginning of the paragraphs, so I use this: `\setlength{\parindent}{0cm}` (I also tried the parskip package) The only problem is that when I try to indent a line inside a paragraph with `\indent`, nothing happens. I also tried unbreakable spaces (`~~~~~~~`) but they didn't work. Any idea how to solve this problem?


title: Theorem Name/Numbering in Margin

text: I have seen the previous discussion on this same issue before (see Theorem name and number in margin, note in text), however this did not resolve anything as clearly as I had hoped. Basically, I would like to have a visible margin (i.e:- a vertical line) on the left hand side of the page. Within the margin, I would like the section numbers (but not the name), equations numbers, theorem names and their respective numbers, but I am a bit a newbie in LaTeX and am I unsure how to go about doing this. An example with the symbol "|" denoting the position of the margin would be:                               3.1. | Continuous Groups                          |           Definition 3.1 | Lie Group:.....                  (3.1.1.)| [SOME EQUATION HERE]           Definition 3.2 | Lie Algebra:....      Thank you in advance. Just some points of clarification (updated, based on the comments) 1. The document is one-sided, so only the left-hand side margin is of relevance. 2. Any suggestions on which theorem packages will be more suitable are welcome.


title: Linebreak in makeatletter command

text: For some reason I get a linebreak when using my `\textlabel` command in the table cell. It seems to work fine for everything else.               \documentclass[a4paper]{scrartcl}     \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[table]{xcolor}     \usepackage[pdftex,bookmarks=true,bookmarksnumbered,colorlinks=true]{hyperref} % http://ctan.org/pkg/hyperref     \usepackage{nameref}          \begin{document}          \makeatletter         \newcommand*{\textlabel}[2]{%             \edef\@currentlabel{#1}% Set target label             \phantomsection% Correct hyper reference link             #1\label{#2}% Print and store label         }       \makeatother          \section{Section}     \paragraph*{\textlabel{Paragraph}{paragraph}}     \paragraph*{}     \begin{tabular}{lp{10cm}}         \hline         \textbf{Col 1} & \textbf{Col 2} \\ \hline         Bla1 & \textlabel{Blubb1}{reference1} \\         & Description1 \\          Bla2 & \textlabel{Blubb2}{reference2} \\         & Description2 \\ \hline     \end{tabular}     \end{document}


title: Adjusting vertical and horizonal spacing in \stackrel

text: I have several `\stackrel`'s in my document. See the e.g.:               \documentclass{article}     \usepackage{stackrel}     \begin{document}         $\stackrel[\textrm{sand}]{\textrm{A}}{\textrm{B}}$         $\stackrel[\textrm{wiches.}]{\textrm{C}}{\textrm{D}}$         $\stackrel[\textrm{E}]{\textrm{rain}}{\textrm{F}}$         $\stackrel[\textrm{G}]{\textrm{cloud}}{\textrm{H}}$         $\stackrel[\textrm{I}]{\textrm{J}}{\textrm{snow}}$         $\stackrel[\textrm{K}]{\textrm{L}}{\textrm{shoe}}$     \end{document}        * How can I adjust the horizontal spaces between each `\stackrel` such that the longest items from each stackrel are spaced as if they are from the same word (i.e. "sand wich" will appear exactly the same as a typeset "sandwich")?   * How can I adjust the vertical spaces between each layer of the `\stackrel`'s line up (i.e. A, C, rain, cloud, J, and L all appear on the same line)? Updates:   * (With the above) how can I ensure that lower-case letters with descenders, "q", "y", "p", and "j" still descend properly?


title: A better \pm symbol

text: I am looking for an alternate to the `\pm` symbol, and wondering if I am the only one bothered by it as I see that this has not been asked yet. I have attempted to define one using my standard overkill solution using `tikz`. The one on the left is the standard `\pm`, and the one on the right is my version where there is a slight separation between the minus and the plus: ![enter image description here](http://i.stack.imgur.com/OncF9.png) So, is there a better solution than that one I have. Or is there some typesetting standard that states that those two symbols are supposed to touch? ## References:   * A centered plus-minus symbol defines a slightly different symbol. ## Code:               \documentclass{article}     \usepackage{tikz}          \newcommand{\Mypm}{\mathbin{\tikz [x=1.4ex,y=1.4ex,line width=.1ex] \draw (0.0,0) -- (1.0,0) (0.5,0.08) -- (0.5,0.92) (0.0,0.5) -- (1.0,0.5);}}%          \begin{document}     \[       x \pm f \Mypm y     \]     \end{document}


title: Numbering of subsubsections: "A." in number, "1.1.1.A" in references

text: I'm quite new to Latex and I'd like to achieve the following thing. I want my document to have the following numbering structure:               1. chapter      1.1 section     1.1.1 subsection      A. subsubsection.      (In the TOC I only want the chapters, sections and subsections to be listed.) I achieved this by adding the following extra lines in the beginning of my LaTex document:               % set section numbering depth     \setcounter{secnumdepth}{3} % 3 => section, subsection, subsubsection     \setcounter{tocdepth}{2}    % 2 => section, subsection     % replace subsubsection numbering by single letter     \renewcommand{\thesubsubsection}{\Alph{subsubsection}}       Problem: when I make a reference to this subsubsection, I get something like this:               A       I want this to be formatted like this:               1.1.1.A


title: Center wide figure w.r.t. page instead of margins

text: I've seen similar threads with centering problems, but could not find the right solution to mine. I'm using the `report` class (onesided). I have a float figure (object `width=1.3\textwidth` here, may change for other figures). By default it is flushed left and spills into the right margin. I want it to grow into both margins. The problem is my left margin is smaller than my right margin, so when I center it using e.g. `\makebox` the left margin is filled too much.   I want the figure to expand unevenly, e.g. 2cm right for every 1cm left. First I used `\hspace{-0.1\textwidth}` to pull it into the left margin. My current solution is to adjust the margins (make them equal) with a `changemargins` environment I found in another thread. Then the `\makebox` or `\centerfloat` solutions work fine. But I'm not happy I have to hardcode numbers. So I thought if I could center it with respect to the page (A4) instead of the uneven margins, it would spill into the margins properly. Anyone know how to do this? EDIT: Added MWE, see below               \documentclass[10pt,a4paper]{report}     \usepackage{blindtext}     \usepackage[demo]{graphicx}          \usepackage[bottom=1in,left=1.22in,right=1.63in]{geometry}          \begin{document}     \blindtext          %before     \begin{figure}[bht]     \includegraphics[width=1.4\textwidth,height=4cm]{myPictureName.png}     \end{figure}          %after margin centering     \begin{figure}[bht]     \noindent\makebox[\textwidth]{%     \includegraphics[width=1.4\textwidth,height=4cm]{myPictureName.png}     }%     \end{figure}          %desired output: equal whitespace both sides     \begin{figure}[bht]     \hspace{-0.2\textwidth}\hspace{0.2in}     \includegraphics[width=1.4\textwidth,height=4cm]{myPictureName.png}     \end{figure}          \end{document}


title: Can't replace non-ascii characters with biblatex

text: This is a follow-up to my question Translate content in fields in bibliography entries (biblatex), which revealed a problem when trying to replace content in a `.bib` file when that content contain non-ascii characters like `æøå`. Compiling the following MWE works fine. In this case, the string `def` is replaced by `abc`:               \documentclass{article}     \usepackage[style = authoryear-comp]{biblatex}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @BOOK{lennon1968,         AUTHOR = "John Lennon",         TITLE = "def",         YEAR = "1968"}     \end{filecontents}     \DeclareSourcemap{       \maps[datatype = bibtex]{         \map{            \step[fieldsource = title,               match = {def},                replace = {abc}]         }       }     }     \addbibresource{\jobname.bib}     \begin{document}     \nocite{*}     \printbibliography     \end{document}      ![enter image description here](http://i.stack.imgur.com/QBXpe.png) But when the string contains non-ascii characters like `æøå`, no output is produced with `LaTeX`:               \documentclass{article}     \usepackage[style = authoryear-comp]{biblatex}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @BOOK{lennon1968,         AUTHOR = "John Lennon",         TITLE = "æøå",         YEAR = "1968"}     \end{filecontents}     \DeclareSourcemap{       \maps[datatype = bibtex]{         \map{            \step[fieldsource = title,               match = {æøå},                replace = {abc}]         }       }     }     \addbibresource{\jobname.bib}     \begin{document}     \nocite{*}     \printbibliography     \end{document}      The console produces this output (`biblatextest64.tex` being the name of the document) :               Failure to make 'biblatextest64.pdf'     Collected error summary (may duplicate other messages):       biber biblatextest64: Command for 'biber biblatextest64' gave return code 256     Latexmk: Use the -f option to force complete processing,      unless error was exceeding maximum runs of latex/pdflatex.     Latexmk: Errors, so I did not complete making targets     C:\texlive2013\bin\win32\runscript.tlu:650: command failed with exit code 12:     perl.exe c:/texlive2013/texmf-dist/scripts/latexmk/latexmk.pl -pdf biblatextest64.tex      A pdf is produced when compiling with `XeLaTeX`, but no substitution has taken place:               \documentclass{article}     \usepackage[style = authoryear-comp]{biblatex}     \usepackage{fontspec}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @BOOK{lennon1968,         AUTHOR = "John Lennon",         TITLE = "æøå",         YEAR = "1968"}     \end{filecontents}     \DeclareSourcemap{       \maps[datatype = bibtex]{         \map{            \step[fieldsource = title,               match = {æøå},                replace = {abc}]         }       }     }     \addbibresource{\jobname.bib}     \begin{document}     \nocite{*}     \printbibliography     \end{document}      ![enter image description here](http://i.stack.imgur.com/caJIF.png)


title: How to go to the previously viewed page in various PDF viewers, e.g TexWorks'?

text: Suppose my PDF document is produced by `pdflatex` and while viewing the document I follow a link and go from _A_ to _B_ within the document. How do I go back from _B_ to _A_? In other words where is the browser-back button of the viewer? Adobe Reader has several choices: `Alt`+`←` or actual buttons. But the behavior is not standard. For example how does TeXWorks viewer do the same?


title: Getting errors when using the grammar environment before \chapter{} and \begin{description}

text: I hope you can help me. I am using an empty `grammar` environment, included in the `syntax` package, within a file called `appendix_c.tex`, whose contents are as follows:               \chapter{Modified version of the grammar of VHDL}\label{short-vhdl-grammar}          \begin{grammar}     \end{grammar}      Then, in a file called `acronyms.tex` I inserted the following code:               \chapter{List of acronyms}          \begin{description}     \item[ASIC] Application-Specific Integrated Circuit          \item[CORBA] Common Object Request Broker Architecture          \item[DCS] Digital Communications System     \item[DSML] Domain-Specific Modeling Language     ...     \end{description}      I was using `acronym` instead of `description`, but got the same problem. I get the following error every time I process the main file `thesis.tex`:               ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.11 \begin{description}      And the contents of `thesis.tex` are roughly like this:               \documentclass[letterpaper, 12pt]{report}          \usepackage{acronym}     \usepackage{amssymb}     \usepackage{captcont}     \usepackage{graphicx}     \usepackage[hang]{subfigure}     \usepackage{rotating}     \usepackage[T1]{fontenc}     \usepackage[nounderscore]{syntax}          \setcounter{secnumdepth}{3}     \setcounter{tocdepth}{3}          \linespread{1.3}          % Top margin     \setlength{\voffset}{0pt}     \setlength{\topmargin}{0pt}     % Heading space     \setlength{\headheight}{13pt}     \setlength{\headsep}{30pt}     % Left side margin     \setlength{\hoffset}{0pt}     \setlength{\oddsidemargin}{0.25in}     % Text dimensions     \setlength{\textheight}{596pt}     \setlength{\textwidth}{6in}     % Page number space     \setlength{\footskip}{27.10125pt}     % Margin notes     \setlength{\marginparsep}{0pt}     \setlength{\marginparwidth}{0pt}          \pagestyle{headings}          ...          \begin{document}          \maketitle          \pagenumbering{roman}          \begin{abstract}     \end{abstract}          \renewcommand{\abstractname}{Resumen}          \begin{abstract}     \end{abstract}          \renewcommand{\abstractname}{Acknowledgments}          \begin{abstract}     \end{abstract}          \tableofcontents     \listoffigures     \listoftables          \newpage     \pagenumbering{arabic}          \include{./chapter_1/chapter_1}     \include{./chapter_2/chapter_2}     \include{./chapter_3/chapter_3}     \include{./chapter_4/chapter_4}     \include{./chapter_5/chapter_5}     \include{./chapter_6/chapter_6}     \include{./chapter_7/chapter_7}          \appendix          \include{./appendix_a/appendix_a}     \include{./appendix_b/appendix_b}     \include{./appendix_c/appendix_c}     \include{./acronyms/acronyms}          \bibliographystyle{abbrv}     \bibliography{bibliography}{}          \end{document}      The problem seems to be located in the transition from `appendix_c.tex` and `acronyms.tex`. Does anybody know what is going on? I cannot even start to type any grammar because of this problem. And I tried getting rid of the `acronym` environment but the issue is still present.