title: How can I reference a formula with an on going numbering?

text: I work with LaTeX for long time and I used `eqnarry`. But that's obsolete so I gave `equation` and `aligned` a try. The problem is, that if I reference to my equation it shows the chapter numbering `(?)`, but it shows the incorrect numbering at the equations right side.               ...siehe Gleichung \ref{form:casteljau}.     \begin{equation}          \begin{aligned}         \mathbf{p}^{l}_{i,j,k} &= u\mathbf{p}^{l-1}_{i+1,j,k} + v\mathbf{p}^{l-1}_{i,j+1,k} + (1-u-v)\mathbf{p}^{l-1}_{i,j,k+1} \\         l &= 1...n, i+j+k = n-l         \end{aligned}         \label{form:casteljau}     \end{equation}      That looks something like:               siehe Gleichung 2.6.2.     "equation" ____________________________(2.12)     "equation"      So I tried `subequations` and `align`. Now I get the correct numbering (2.13) in the text, but the equation doesn't have a number at the right side, as it usually does.               ....siehe Gleichung \eqref{form:casteljau}.     \begin{subequations}          \begin{align*}             \mathbf{p}^{l}_{i,j,k} &= u\mathbf{p}^{l-1}_{i+1,j,k} + v\mathbf{p}^{l-1}_{i,j+1,k} + (1-u-v)\mathbf{p}^{l-1}_{i,j,k+1} \\             l &= 1...n, i+j+k = n-l         \end{align*}         \label{form:casteljau}     \end{subequations}      That looks something like:               siehe Gleichung 2.13.     "equation" ____________________________     "equation"      btw the underscore is not really there, but it deletes my spaces, so i used ___s Could anyone give me the correct combination? Because alot of blogs say that this should work, but it doesn't. Anything else I can post? here the compile master document:               \documentclass[12pt,a4paper,oneside]{scrbook}     %\usepackage{showframe}          % German stuff     \usepackage[latin1]{inputenc}   % so can use Umlaut chars     \usepackage[ngerman]{babel} % load babel *before* natbi [english]     \usepackage[normal,small,bf]{caption} % normal, hang, center, nooneline, Large          % mathematical Symboles     \usepackage{amsmath,amssymb,amsfonts,amstext,chemarr}     %\numberwithin{equation}{chapter}          \usepackage[bf,sf]{subfigure}     \renewcommand{\subfigtopskip}{0mm}     \renewcommand{\subfigcapmargin}{0mm}     \renewcommand{\chaptername}{}          \linespread{1.3}            % 1.5facher Zeilenabstand          \usepackage{setspace}      \onehalfspacing          \usepackage{comment}     \usepackage{listings}     \usepackage{ulem} %dashuline          \usepackage[nolist]{acronym}%nolist printonlyused printonlyused,withpage          \usepackage{wrapfig}          % citations     \usepackage[numbers,square]{natbib}           \usepackage{url}          \usepackage{latexsym}          \usepackage{longtable}          \usepackage{ifpdf}      % detect outputstyle          % Free Header and Footer     \usepackage{fancyhdr}     %first[]-> even pages; second [] -> odd pages     \lfoot[\fancyplain{}{}]{\fancyplain{}{}}     \rfoot[\fancyplain{}{}]{\fancyplain{}{}}     \cfoot[\fancyplain{}{\footnotesize\thepage}]{\fancyplain{}{\footnotesize\thepage}}     \lhead[\fancyplain{}{\footnotesize\nouppercase\sc\leftmark}]{\fancyplain{}{}}     \chead{}     \rhead[\fancyplain{}{}]{\fancyplain{}{\footnotesize\nouppercase\sc\leftmark}}                % Color in Document     \usepackage{color}     \usepackage{colortbl}       %define colored backgrounds for tables     \definecolor{listinggray}{gray}{0.9}     \definecolor{lbcolor}{rgb}{0.9,0.9,0.9}     \definecolor{orange}{rgb}{0.0,0.0,1.0}     \definecolor{yac}{rgb}{0.0,0.5,0.5}     \definecolor{middlegray}{rgb}{0.5,0.5,0.5}          \usepackage{array}          \ifpdf       \usepackage[pdftex]{graphicx}       \DeclareGraphicsExtensions{.pdf,.jpg,.png,.gif}       \pdfcompresslevel=9       \pdfpageheight=290mm       \pdfpagewidth=210mm       \usepackage[          % hyperref should be last package loaded         pdftex,         bookmarks,         bookmarksnumbered,         linktocpage,         pagebackref,         pdfview={Fit},         pdfstartview={Fit},         pdfpagemode=UseOutlines,    % open bookmarks in Acrobat       ]{hyperref}           % for Querverweise       \usepackage{bookmark}     \else                      % latex       \usepackage{graphicx}       \DeclareGraphicsExtensions{.ps}     \fi          \usepackage{epstopdf} %gordon: for displaying eps images          \lstset{      backgroundcolor=\color{lbcolor},      tabsize=4,      rulecolor=,      emph={a,b,c},      language=c++,      basicstyle=\scriptsize\ttfamily,      upquote=true, %compile with pdflatex      aboveskip={1.5\baselineskip},      columns=fixed,      showstringspaces=false,      extendedchars=true,      breaklines=true,      prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},      frame=tlrb,      numbers=left,      numberstyle=\tiny,      showtabs=false,      showspaces=false,      showstringspaces=false,      identifierstyle=\ttfamily,      keywordstyle=\bfseries\ttfamily\color{orange},       stringstyle=\color{middlegray}\ttfamily,       commentstyle=\color{yac}\ttfamily,     }          \setlength{\parskip}{3pt plus 1pt minus 0pt}       % vert. space before a paragraph          \setcounter{tocdepth}{2}        % lowest section level entered in ToC     \setcounter{secnumdepth}{3}     % lowest section level still numbered               % --- Start of Document ----------------------------------------     \begin{document}          \setcounter{page}{1}     \pagenumbering{roman}       %roemische ziffern     \pagestyle{plain}       % Initialize Header and Footer          \include{title}         % Title Page     \include{empty}         % Empty Page     \include{affidavit}     % affidavit     \include{abstracts}     % Englisch and German abstracts     \include{acknowl}       % Acknowledgements     \include{abbreviation}      % Abkuerzungen     \include{toc}           % Table of Contents          %--- Include your chapters here ----------     \setcounter{page}{1}     \pagenumbering{arabic}     \pagestyle{fancy}       % Initialize Header and Footer     \include{chapter1}      % Introduction     \include{chapter2}      % Background     \include{chapter4}      % Technische Umsetzung     \include{chapter6}          \pagenumbering{roman}       %roemische ziffern     \pagestyle{plain}       % Initialize Header and Footer     \appendix     \include{glossary}      % Glossary     \include{appendix}          % Appendix A          \end{document}


title: How to make labels of x-axis texts vertically for gnuplot

text: I tried                plot [][1:3] 'word-based.txt' using 1:xtic(2) with line          it draws the required graph but with horizontal direction of x-axis labels which is texts as shown in picture. How to make its direction vertically so i can be read more easily. i used windows terminal .![fig](http://i.stack.imgur.com/qAGro.png) Edit: Data used               2.02            economic     2.04            education     1.94            sports     2.01            culture     2.07            artandmusic     1.93            political     1.94            articles     1.83            press     1.86            novel1     1.86            novel2     1.85            novel3     1.85            shortstories     1.76            literature     1.60            history     1.81            bookcollection1     1.77            bookcollection2


title: I want to indent the next line by an exactly specified position

text: I am typesetting an entire math lecture script, where readability often requires me to indent just a line or two for a certain amount, which is ALWAYS different. I would like to have some way of controlling the indent of the next line by an & like in tables, or any other control character. I do not want to use tables though, I want it to look like normal text. It obviously has to work inside and outside of math environments, since they appear in text quite often for this project. It should look something like this:               This is the first line.          One more line.                   And another.      With the control charcters being in front of "is" and "line". Is there an easy-to-use solution? I don't care if it is complicated to configure once, as long as the use is simple every time.


title: How to get a tangent coordinate system for the decoration of a path?

text: I want to draw some lines in a tangent coordinate system of the decoration of a path. Especially I want to draw a tangent segment at the end of the decoration with full controll, i.e. with having the start end end points of the segment as coordinates. I tried the following (adapted from an answer to How to draw tangent line of an arbitrary point on a path in TikZ):               \documentclass[tikz]{standalone}     \usetikzlibrary{decorations.markings,decorations.pathmorphing}     \begin{document}     \begin{tikzpicture}[tangent/.style={             decoration={                 markings,% switch on markings                 mark=                     at position #1                     with                     {                         \coordinate (tangent point-\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}) at (0pt,0pt);                         \coordinate (tangent unit vector-\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}) at (1,0pt);                         \coordinate (tangent orthogonal unit vector-\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}) at (0pt,1);                     }             },             postaction=decorate         },         use tangent/.style={             shift=(tangent point-#1),             x=(tangent unit vector-#1),             y=(tangent orthogonal unit vector-#1)         },         use tangent/.default=1]                        \draw[decorate,tangent=0,decoration={coil,amplitude=20,segment length=20,post length=0}] (0,0) coordinate (X) -- ++(5,5);           \node[below] at (X) {$x$};      %want a tangent line at (X) with start end end coordinates       \draw[use tangent] (0,0) -- ++(1,0);                    \end{tikzpicture}     \end{document}      However I get an error: `ERROR: Package pgf Error: No shape named tangent unit vector-1 is known.` Output of the imcomplete picture: ![output](http://i.stack.imgur.com/L7rOJ.png) Any idea how to make this work? I guess that there should be a more easy way to do it.


title: How to do these lines within a matrix?

text: i try to do this: ![\]](http://i.stack.imgur.com/ev5O5.jpg)(http://www7.pic- upload.de/19.12.13/547iej1463a4.jpg) How to do that? Can you help me? Here is my code for the matrix without the lines:               \left [     \begin{matrix}         r_{11} & r_{12} & \dots & r_{1i} & r_{1,i+1} & \dots & r_{1n} & c_1\\         \lambda_{21} & r_{22} & \dots & r_{2i} & r_{2,i+1} & \dots & r_{2n} & c_2\\         \lambda_{31} & \lambda_{32} & & r_{3i} & r_{3,i+1} & \dots & r_{3n} & c_3\\         \vdots & \vdots & \ddots & \vdots & \vdots & & \vdots & \vdots \\         \lambda_{i1} & \lambda_{i2} & & r_{ii} & r_{i,i+1} & \dots & r_{in} & c_i\\         \lambda_{i+1,1} & \lambda_{1+2,2} & & \lambda_{i+1,i} & a_{i+1,i+1}^{(i)} & \dots & a_{i+1,n}^{(i)} & b_{i+1}^{(i)}\\         \vdots & \vdots & & \vdots & \vdots & & \vdots & \vdots \\         \lambda_{n,1} & \lambda_{n,2} & \dots & \lambda_{n,i} & a_{n,i+1}^{(i)} & \dots & a_{n,n}^{(i)} & b_n^{(i)}\\     \end{matrix}     \right ]      Thank you so much.


title: Loading a font via package or fontspec

text: In Xe(La)TeX, what is the difference between loading a font via its package, i. e. `\usepackage{tgpagella}`, and loading it through `fontspec` (`\fontspec{TeX Gyre Pagella}`). When loaded with the package, are the OTF fonts being used? As the TFMs are included in the package, I wondered whether `fontspec` might or might not use them, or does `fontspec` build its own ones? Are there any downsides to using `fontspec` where a package is available? It seems to me that the package contains TeX-specific information, which might be lost (?) if I just load it through `fontspec`.


Is there a program equivalent to lint for LaTeX? (lint checks C code for syntax errors and possible mistakes.)


title: Help with a booktabs table

text: I'm a relatively new user to Latex, and this is the first time I am attempting to construct a table for my thesis. I would like the table to look like this: ![enter image description here](http://i.stack.imgur.com/6ijJW.png) Following some research on the internet, I came up with the following code (ignore the differences in the column headings between the Latex code and the word document)               \begin{table}[htbp]     \caption{Minimum Requirements for Automatic Readmission into the Commerce Faculty}     \centering     \begin{tabular}{lrrrr}     \toprule     \multicolumn{2}{c}{{BCom} &     \multicolumn{2}{c}{B.Bus.Sci} \\     \cmidrule{2-3} \cmidrule{4-5} &     Number of courses required to pass & Cumulative Total of Courses && Number of courses &         Cumulative Total of Courses     \midrule     First year & 4 & 8 & 4 & 18 \\     \bottomrule     \end{tabular}     \label{table:mr}     \end{table}      it is not working at all!


title: Applying a postaction to every path in TikZ

text: Sometime, for example in a solution to a recent question, one wants to apply a `postaction` (like a decoration) to a group of paths. A naive solution is to use `every path/.style={}`. Unfortunately this also this then applies the postaction to every path drawn in the postaction, leading to an infinite regress. Is there any way to avoid this? A somewhat stupid minimal example of the problem:               \begin{tikzpicture}[every path/.style={postaction={draw}}]         \draw (0,0)--(1,0);     \end{tikzpicture}      with error message               ! TeX capacity exceeded, sorry [grouping levels=255].     \pgfutil@g@addto@macro #1#2->\begingroup                                               \toks@ \expandafter {#1#2}\xdef #1{...     l.12     \draw (0,0)--(1,0);


title: biblatex: Undefined control sequence. \lbx@lfromlang ->\iffieldundef

text: I'm a bit stuck here. While trying to change my document from plain bibtex to biblatex (for some various reason of cite handling) I'm stuck at this error message:               Undefined control sequence.     \lbx@lfromlang ->\iffieldundef                                 {origlanguage} {} {\bibstring {from\thefield ...     l.131 \begin{document}      As far as I understand that, this is part of the biblatex *.lbx files. For that I tried some other languages with the babel packages and voilà it is working. Next step. Make a minimal example with the same bibfile, trying to reproduce the error:               \documentclass{scrbook}     \usepackage[english,ngerman]{babel}     \usepackage{biblatex}     \addbibresource{00a_thesis.bib}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \begin{document}      Text with cite \cite{novikova:2011}\\           \printbibliography          \end{document}      This is working perfectly. Can any one help me figuring out what is causing this strange behavior? To rule out a bug in biblatex I also tried without any luck the 2.8 development branch. EDIT: The Bibtex entry for novikova:2011               @report{novikova:2011,          author = "Novikova, Aleksandra and Amecke, Hermann and Neuhoff, Karsten and Stelmakh, Kateryna and Kiss, Bernadett and Rohde, Clemans and Dunkelberg, Elisa and Matschoss, Kaisa and Darby, Sarah",          title = "Information tools for energy demand reduction in existing residential buildings",          institution = " Climate Policy Initiative (CPI)",          year = 2011,          month = "27~" # jun,          type = "Study",          url = "http://enef-haus.de"     }


title: Numbering in Devanāgarī while using XeTeX

text: I have been using XeTeX for typsetting Devanāgarī documents and it is going great. But I have encountered one issue, that whenever i use commands like \section, \begin{enumerate},\footnote or any command that generates numbering the numbering appears in the roman. Like 1,2,3 but I want to it in Devanāgarī like १, २, ३ ,४ .... Any possible way/best practices to make this happen ? PS: Once fixed, this could be used for other Indic Scripts too.


title: Rounded black box on each page in Beamer

text: I'm working on a very simple beamer theme for my presentations based on the default beamer template. I would like to make it a bit like a transparent handout with the white background and a bold rounded box (of the constant size) around the text contained within the frame (which would define the margins for the inner text and have some distance from the page borders). I understand I should put this probably into the _background_ or _background canvas_ template but I'm quite stuck on how to actually define that frame (using which package for example). Could somebody point me to such a package or give a tip for the solution? Thanks in advance. P.S.: I would like to avoid creating an external image file and including it on each page.


title: Using pgfmath declared function in pgfplots/tikz commands

text: The commented rows of the following code give me errors. It seems that functions declared with `\pgfmathdeclarefunction` do not work with `tikz` commands...               \documentclass{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}          \pgfmathdeclarefunction{myfunct}{3}{\pgfmathparse{#1+#2*#3}}          \begin{document}     \begin{tikzpicture}     \begin{axis}         \addplot {myfunct(1,2,x)};     %   \node at (axis cs:2,{myfunct(1,2,2)}) {aaa};     %   \draw (axis cs:2,{myfunct(1,2,2)}) -- (axis cs:0,5);     \end{axis}     \end{tikzpicture}     \end{document}       A way to fix this would be to define a macro like:               \pgfmathsetmacro\mymacro{myfunct(1,2,2)}      and use `\mymacro` instead of `myfunct(1,2,2)` but I would like to know if there is a way for using directly `myfunct(1,2,2)` avoiding the macro definition.


title: Replacing ? with citation key and/or making list of unresolved references in natbib?

text: I have a question about unresolved references (I'm using _natbib_ and pdflatex/bibtex) and the default behavior to print a `(?)`. What I would like is the following:   1. The `(?)` replaced with `(citation-key)` (only for missing references), and   2. A list of the missing citation keys to be printed somewhere in the resulting pdf (e.g., at the beginning of the reference list). I've read this question about using the _showkeys_ package, but the result is not really what I'm looking for because (1) it doesn't replace the `(?)` but just prints the citation key over the top, (2) it seems to do this for all references, and I just want the missing ones, and (3) it doesn't produce the list of missing references. Here's a minimum example (though I suspect it may not necessary for this question).               \documentclass{article}     \usepackage{natbib}     %\usepackage{showkeys} % not what I'm looking for     \bibpunct{(}{)}{;}{a}{}{,}          \title{Example}         \author{Me}          \begin{document}         \maketitle          Lorem ipsum dolor sit amet, consectetur adipiscing elit.     Mauris vel sem id nulla cursus vulputate at et erat \citep{Author2001}.     Nunc rutrum nibh lorem, eget posuere nibh sollicitudin vitae \citep{Author1993}.          \bibliography{Example}         \end{document}      I'm completely open to new packages, as well as ways of parsing the `example.log` file to extract the lines, like:               Package natbib Warning: Citation `Author2001' on page 1 undefined on input line     14.


title: Strange centering

text: `\centering` command, that I use in my document gives strange output - values aren't centered equally image below should let you understand (elements in red frame and two not framed "value" strings in table, are not centered) ![enter image description here](http://i.stack.imgur.com/V2Mod.jpg) code for this page/document:               \documentclass[twoside,titlepage]{article}     \usepackage[polish]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[a4paper,inner=3.5cm,outer=2.0cm,top=2.0cm,bottom=2.0cm]{geometry}     \usepackage{multicol}     \usepackage[titletoc,title]{appendix}     \usepackage[table]{xcolor}     \usepackage{multirow}     \usepackage{mathtools}     \newcommand{\appendixtitle}[2]{\begin{center}(#1)\\ ~ \\ {\Large #2}\end{center}}     \newcolumntype{z}[1]{%         >{\centering\hspace{0pt}}m{#1}}%     \newcommand{\tnl}{\tabularnewline}     \usepackage{lipsum}     \begin{document}         \begin{appendices}             \section[~]{\centering}             \appendixtitle{type}{appendix title}             \newlength{\celllen}             \setlength{\celllen}{\textwidth/5}             \lipsum[1]             \begin{table}[!htb]                 \caption{multirowed}                 \centering                 \begin{tabular}{|*{4}{z{\celllen}|}}                     \hline                     \multirow{2}{\celllen}{\centering                         very very very long cell \newline symbol \newline unit                     } & \multicolumn{3}{c|}{ \textbf{   Description } } \tnl                     & value & value & value \tnl \hline                 \end{tabular}             \end{table}                  \begin{table}[!htb]                 \caption{final}                 \centering                 \begin{tabular}{|*{4}{z{\celllen}|}}                     \hline                     \multirow{5}{\celllen}{\centering                         very very very long cell \newline symbol \newline unit                     } & \multicolumn{3}{c|}{ \textbf{   Description } } \tnl                     & value & value & value \tnl \cline{2-4}                     & \multicolumn{3}{c|}{ \textbf{ Description }, symbol, unit } \tnl                     & value & value & value \tnl \cline{2-4}                     & \multicolumn{3}{c|}{ \textbf{ Description }, symbol, unit } \tnl \hline                     value \newline (comment) & value & value & value \tnl \hline                     value \newline (comment) & value & value & value \tnl \hline                 \end{tabular}             \end{table}         \end{appendices}     \end{document}      How can I make all those red-framed-texts (and "value" strings I forgot to frame) centered, just like other strings P.S. help with first table (text overflow) is greatly appreciated ;)


title: Extra space before labeled theorem body with thmbox or thmtools+thmbox

text: Package `thmbox` seems to add an extra space at the beginning of the body of the labeled theorems. See example below. Package `thmtools` with the `thmbox` option does the same. Latex original, package `amsthm` and package `ntheorem` do not add the extra space. I can solve the problem that occurs with `thmbox` by placing a `%` just after the label. However, I do not want to do that because I should edit each already written theorem. Problem _is_ solved by including `\ignorespaces` in option `bodystyle` of `thmbox`. However, then the body is indented. If `bodystyle` is defined using `\noindent\ignorespaces` then the body is not indented, but the extra space shows up again.               \documentclass{report}          % ----- no extra space          %\newtheorem{theorem}{Theorem}          %\usepackage{amsthm}     %\newtheorem{theorem}{Theorem}          %\usepackage{ntheorem}     %\newtheorem{theorem}{Theorem}          % ----- extra space          \usepackage{thmbox}     \newtheorem{theorem}{Theorem}          %\usepackage{thmtools}     %\declaretheorem[thmbox=M]{theorem}          \begin{document}          \begin{theorem}\label{L1}     With label.     \end{theorem}     \begin{theorem}     Without label.     \end{theorem}     \begin{theorem}     \label{L2}%          With label, but solved, even having space characters here and there.     \end{theorem}          \end{document}


title: What does the hyperref option hypertexnames do?

text: The Manual of `hyperref` states that `hypertexnames`: _use guessable names for links_. What does this mean? What are the consequences of using this option?


title: Why is my table displayed at the top of the page?

text: I figure this must be a common issue but I could not find a solution. Here is my code:               \documentclass{article}     \begin{document}              Text: This text should be above the table, but it is not.         \begin{table}             Table: This table should be below the text, but it is not.           \end{table}           \end{document}      Why is the table at the top? Thanks!


title: New float environment in tufte-book with alternate caption placement for full width figures

text: I am trying to define a new environment for photographic plates in a tufte- book.cls book. The environment should:   1. Work just as the existing figure / table environments do for non-starred uses, and   2. Place the caption inside the main body region, below the graphic, for starred (full width) uses. Each page will have a single image. Portrait images are dealt with by the non- starred environment. Landscape images are dealt with by the starred. I have (1) working by defining a 'plate' environment with its own counter etc. following Caption placement for new float in tufte-book class. See the MWE below. However, I am stuck on (2). change caption in tufte class full-page figure comes close - but you lose the short caption / list of figures / hyperef functionality. I think I need to redefine the \@caption command for starred use - following something like How do I change the label separator for marginfigure in Tufte Book/Handout? or How can I have figure labels without captions in tufte-book? One messy solution could be to use \newgeometry{} on each page a plate* appears and define the marginpar to equal (or almost equal) the page width. This is needed for landscape floats (starred) with long captions as they disappear off the bottom of the page in the standard tufte-book implementation. This is not a problem with non-starred use as you have the marginpar to use. ![Full width float and long caption.](http://i.stack.imgur.com/hEDeb.png): My MWE is:               \documentclass[a4paper,justified,twoside,openright]{tufte-book}          \geometry{landscape,top=1in,bottom=0.75in,textheight=7in,textwidth=6in,marginparsep=0.5in,marginparwidth=3in}          \usepackage{tikz}          %% Plate environment %%%%%%%%%%%%%%% from http://tex.stackexchange.com/questions/113631/caption-placement-for-new-float-in-tufte-book-class     \newcounter{plate}     \newcommand\platename{Plate}     \newcommand\listplatename{List of Plates}     \makeatletter     \newcommand\listofplates{%       \ifthenelse{\equal{\@tufte@class}{book}}%         {\chapter*{\listplatename}}%         {\section*{\listplatename}}%     %  \begin{fullwidth}%         \@starttoc{lop}%     %  \end{fullwidth}%     }     \renewcommand\theplate     %     {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@plate}          {\@arabic\c@plate} % alter numbering to be continuous     \def\fps@plate{tbp}     \def\ftype@plate{1}     \def\ext@plate{lop}     \def\fnum@plate{\platename\nobreakspace\theplate}          \newenvironment{plate}[1][htbp]       {\begin{@tufte@float}[#1]{plate}{}}       {\end{@tufte@float}}          \newenvironment{plate*}[1][htbp]%       {\begin{@tufte@float}[#1]{plate}{star}}       {\end{@tufte@float}}          \newcommand{\@tufte@lop@line}[2]{%       % #1 is the figure/table number and its caption text       % #2 is the page number on which the figure/table appears       \leftskip 0.0em       \rightskip 0em       \parfillskip 0em plus 1fil       \parindent 0.0em       \@afterindenttrue       \interlinepenalty\@M       \leavevmode       \@tempdima 2.0em       \advance\leftskip\@tempdima       \null\nobreak\hskip -\leftskip       {#1}\nobreak\qquad\nobreak#2%       \par%     }          \let\l@plate\l@figure          \makeatother          %% End plate environment %%%%%%%%%%%          \begin{document}          \listofplates          \chapter{Plate Environment}          \begin{plate}     \tikz{\path[draw=red,fill=blue] (0,0) rectangle (\textwidth-1cm,\textheight-1cm);}     \caption{Non-starred}     \label{plate:1}     \end{plate}          \begin{plate}     \tikz{\path[draw=red,fill=blue] (0,0) rectangle (\textwidth-1cm,\textheight-1cm);}     \caption[Non-starred - long caption.]{Non-starred - long caption. Lorem ipsum, lorem ipsum,Lorem ipsum, lorem ipsum,Lorem ipsum. Lorem ipsum, lorem ipsum,Lorem ipsum, lorem ipsum,Lorem ipsum. Lorem ipsum, lorem ipsum,Lorem ipsum, lorem ipsum,Lorem ipsum. Lorem ipsum, lorem ipsum,Lorem ipsum, lorem ipsum,Lorem ipsum. Lorem ipsum, lorem ipsum,Lorem ipsum, lorem ipsum,Lorem ipsum.}     \label{plate:2}     \end{plate}          \begin{plate*}     \tikz{\path[draw=red,fill=blue] (0,0) rectangle (\textwidth-1cm,\textheight-1cm);}     \caption{Starred}     \label{plate:3}     \end{plate*}          \begin{plate*}     \tikz{\path[draw=red,fill=blue] (0,0) rectangle (\textwidth-1cm,\textheight-1cm);}     \caption[Starred - long caption.]{Starred - long caption. Lorem ipsum, lorem ipsum,Lorem ipsum, lorem ipsum,Lorem ipsum. Lorem ipsum, lorem ipsum,Lorem ipsum, lorem ipsum,Lorem ipsum. Lorem ipsum, lorem ipsum,Lorem ipsum, lorem ipsum,Lorem ipsum. Lorem ipsum, lorem ipsum,Lorem ipsum, lorem ipsum,Lorem ipsum. Lorem ipsum, lorem ipsum,Lorem ipsum, lorem ipsum,Lorem ipsum.}     \label{plate:4}     \end{plate*}          \end{document}


title: how to change format for numbering statements so that number comes first

text: I was wondering how the format for numbering statements can be changed so that the statement number precedes the word "Theorem" or "Definition". For example, I use the following code:               \newtheorem{Theorem}[Lemma]{Theorem}     \begin{Theorem} \label{thmOnSomething}      Here is the theorem statement.     \end{Theorem}      The output looks like this: **Theorem 1.2.27** _Here is the theorem statement._ How can I change the code so that the output is as follows: **1.2.27. Theorem:** _Here is the theorem statement._


title: Decorating a PGFPlots bar graph with Tikz decorations

text: Update :- This appears to be a problem in which nodes near coords are handled by PGFPlots and incompatibility with Tikz decorations and fading library. I simply commented the nodes near coords line and I got squiggly lines in the top graph and no errors. However, I would still like to know in future, how to use nodes near coords while using decorations. I am still not sure if this constitutes a bug report though. Original Problem:- I would like to decorate a bar graph in PGFPlots using Tikz decorations library. I find that when I try to decorate it with say zigzag or snake or random steps, it throws an error. This seems specific to bar graphs though. I went to my original data and I tried to decorate a similar data in Histogram plot (Histogram distribution itself is calculated in PGFPlots from raw data), wherein I took the original dataset, used PGFPlots to draw the histogram plot and used Tikz to decorate. To my amazement if I used PGFPlots to calculate the histogram, the options seem to be different than when I use a bar graph on preprocessed data. I would like to decorate the bar graph shown in top figure similar to line edges shown in bottom figure. I have attached the code that generates both. How could I do that?               \documentclass[12pt]{article}     \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}     \usepackage[margin=1cm]{geometry}     \usepackage{pgfplots}     \usetikzlibrary{patterns,fadings}          \begin{filecontents*}{Total_Histogram.dat}      0.00000000e+00 2.00000000e+00      5.00000000e-01 0.00000000e+00      1.00000000e+00 3.00000000e+00      1.50000000e+00 3.00000000e+00      2.00000000e+00 4.00000000e+00      2.50000000e+00 1.00000000e+00      3.00000000e+00 2.00000000e+00      3.50000000e+00 1.00000000e+00      4.00000000e+00 2.00000000e+00      4.50000000e+00 2.00000000e+00      5.00000000e+00 3.00000000e+00      5.50000000e+00 5.00000000e+00      6.00000000e+00 3.00000000e+00      6.50000000e+00 4.00000000e+00      7.00000000e+00 7.00000000e+00      7.50000000e+00 5.00000000e+00      8.00000000e+00 4.00000000e+00      8.50000000e+00 0.00000000e+00      9.00000000e+00 2.00000000e+00      9.50000000e+00 2.00000000e+00      1.00000000e+01 1.00000000e+00      1.05000000e+01 0.00000000e+00      1.10000000e+01 3.00000000e+00      1.15000000e+01 2.00000000e+00      1.20000000e+01 0.00000000e+00      1.25000000e+01 0.00000000e+00      1.30000000e+01 1.00000000e+00      1.35000000e+01 0.00000000e+00      1.40000000e+01 0.00000000e+00      1.45000000e+01 0.00000000e+00      1.50000000e+01 0.00000000e+00     \end{filecontents*}          \begin{filecontents*}{Quiz1_Data_EE1100_Spring2014.txt}     0   1   1   0   3   4   9     0   0   0   0.5 1.5 2.5 4.5     1   1   0   0   1.5 2.5 6     0   0   0   0   1.5 4   5.5     1   1   1   1   3   4   11     1   1   0   0   0   1   3     1   0.5 0   0   3   0   4.5     1   0.5 0   0   0   0   1.5     1   1   1   0   3   4   10     1   0   1   1   0   4   7     1   1   0   0   1.5 6   9.5     1   0   0   0.5 1.5 4   7     1   0   0   0   1.5 4.5 7     0   0   1   0.5 1.5 2   5     1   0   0   0.5 3   1.5 6     1   1   1   1   3   6   13     1   1   0   0   0   6   8     0   0   0   0   0   0   0     0   1   1   1   1.5 1   5.5     0   1   0   0.5 3   7   11.5     1   1   1   0.5 3   1   7.5     1   1   0   0   1.5 2   5.5     1   0   0   0.5 1.5 1   4     1   1   1   1   2   1   7     1   0   1   0   1.5 2   5.5     1   0   1   0   3   3   8     1   0   0   0   0   1   2     1   1   0   0.5 1.5 3   7     1   1   1   0.5 3   1   7.5     0   1   1   0.5 3   2   7.5     1   1   0   0   1.5 8   11.5     1   0   0   0   0   0   1     0   0   1   0   3   1   5     1   1   0   0.5 3   2   7.5     0   1   0   0   1.5 0   2.5     1   1   0   0.5 3   1   6.5     1   1   1   1   3   4   11     1   1   1   0   1.5 5   9.5     1   1   1   0.5 1.5 3   8     1   0   0   0.5 0   2   3.5     1   0   1   0   1.5 3   6.5     0   1   1   1   3   3   9     1   0   0   0   0   1   2     1   0   1   0   1.5 3   6.5     1   1   0   0.5 0   1.5 4     1   1   1   0   0   4   7     0   0   0   0   1.5 0   1.5     1   1   1   0.5 1.5 6   11     1   1   1   0.5 1.5 3   8     0   0   0   0   0   0   0     1   1   0   0.5 3   1   6.5     1   1   1   0   0   4   7     0   1   0   0   0   0   1     1   0   1   0   0   0   2     1   0   0   0   0   4   5     0   1   0   0.5 1.5 0   3     0   1   0   0   0   0   1     1   0   0   0   0   1   2     1   0   1   0   1.5 2   5.5     1   0   1   0   0   4   6     1   1   1   0   1.5 3   7.5     0   0   0   0.5 0   1   1.5     \end{filecontents*}               \begin{document}     \pagestyle{empty}          \begin{tikzpicture}         \centering         \begin{axis}         [         width=\textwidth,         ybar,         ymin=0,         xtick=data,         xticklabel style={rotate=45},         legend columns=-1,         nodes near coords,         every node near coord/.append style={         rotate=30,         xshift=1mm,         inner sep=1pt,         color=gray         },         ytick={0,1,2,3,4,5,6,7},         ymajorgrids,         major grid style={thick,white},         axis on top,         tick pos=left,         xlabel=Total Points in Quiz-1,         ylabel=Number of Students,         x label style={at={(axis description cs:0.5,-0.05)},anchor=north},         title={\bf Performance of students in Quiz-1}         ]                  \addplot+[color=red!30,draw=black,forget plot] table [y index=1,x index=0,skip coords between index={5}{31}]{Total_Histogram.dat};             \addplot+[color=yellow!30,draw=black,forget plot] table [y index=1,x index=0,skip coords between index={0}{5},skip coords between index={11}{31}]{Total_Histogram.dat};             \addplot+[color=blue!30,draw=black,forget plot] table [y index=1,x index=0,skip coords between index={0}{11},skip coords between index={17}{31}]{Total_Histogram.dat};             \addplot+[color=green!30,draw=black] table [y index=1,x index=0,skip coords between index={0}{17}]{Total_Histogram.dat};                  \node [fill=red!30,,decoration={random steps,segment length=6pt,amplitude=2pt},decorate] at (axis cs:0.65,3.75) {Attention};             \node [fill=yellow!30] at (axis cs:3.5,3.75) {C,D grades};             \node [fill=blue!30] at (axis cs:7,7.35) {B grade};             \node [fill=green!30] at (axis cs:11,3.75) {A,S grades};             \draw [->,blue,ultra thick] (axis cs:5.9,0) -- (axis cs:5.9,6.5) node [anchor=north east,draw=gray,xshift=-1.5mm]{Average=5.9};             \draw [<->,gray,ultra thick]    (axis cs:-0.1,5.4) -- (axis cs:5.8,5.4) node [anchor=north,midway]{28 Students};             \draw [<->,gray,ultra thick]    (axis cs:6.0,5.4) -- (axis cs:15,5.4) node [anchor=north,midway]{34 Students};         \end{axis}          \end{tikzpicture}          \tikzfading[name=middle,             top color=transparent!20,             bottom color=transparent!20,             middle color=transparent!50]          \begin{tikzpicture}[path fading=middle]         \begin{axis}[         width=\textwidth,         ymin=0,         title=Quiz-1 Total Points,         xtick=data,         x tick label style = {rotate=45},         ybar interval,         xtick align=outside,         xmajorgrids=false,         enlarge x limits=false,         ymajorgrids=true,         xlabel=Total points obtained,         ylabel=Number of Students,ytick=data,         x label style={at={(axis description cs:0.5,-0.05)},anchor=north},         thick         ]              \addplot+[hist={bins=3,data min=0,data max=1.5},decorate,draw=black,path fading,fill=green!20,decoration={random steps,segment length=6pt,amplitude=1pt}] table [y index=1] {Quiz1_Data_EE1100_Spring2014.txt};         \addplot+[hist={bins=3,data min=0,data max=1.5},decorate,draw=black,path fading,decoration={random steps,segment length=6pt,amplitude=1pt}] table [y index=2] {Quiz1_Data_EE1100_Spring2014.txt};         \addplot+[hist={bins=3,data min=0,data max=1.5},decorate,draw=black,path fading,decoration={random steps,segment length=6pt,amplitude=1pt}] table [y index=3] {Quiz1_Data_EE1100_Spring2014.txt};         \addplot+[hist={bins=3,data min=0,data max=1.5},decorate,draw=black,path fading,decoration={random steps,segment length=6pt,amplitude=1pt}] table [y index=4] {Quiz1_Data_EE1100_Spring2014.txt};         \end{axis}          \end{tikzpicture}          \end{document}      ![Bar graph to be decorated](http://i.stack.imgur.com/9iK7f.png) ![Histogram decorated by PGFPlots](http://i.stack.imgur.com/2PrQH.png) By Commenting Nodes near coords and adding decorations, I get the following image:- ![Squiggly lines](http://i.stack.imgur.com/fY7Ux.png) However, now I cannot use nodes near coords any more.


title: reference a glossaries text in an acronym, sanitization and fragile commands

text: First post so be nice. This doesn't appear to be a duplicate but maybe I am not putting in the right keywords. I am trying to have an acronym description just be the text of a glossary item (using the `glossaries` package). This way I only have to keep the acronym expansion in one place. The problem is that the use of `\glstext` in `\newacronym` only works with `\gls` or if it isn't the first use. See below for a minimum working example:               \documentclass[12pt]{article}          % Load hyperref before glossaries     \usepackage[colorlinks]{hyperref}          %%% Glossary support     \usepackage[xindy,         acronym]{glossaries}          \newglossaryentry{inMyOpinion}{name={in my opinion (IMO)},     text={in my opinion},     description={This is my opinion     }}          \newacronym[]{imo}{IMO}{\protect\glstext{inMyOpinion}}               \makeglossaries          %%% BEGIN DOCUMENT     \begin{document}          % Uncomment for this to fail     %\Gls{imo}, I am right.          This is \gls{imo}!           \Gls{imo}, I am right.          \printglossary[type=\acronymtype,title={List of Acronyms}]          %%% Start Glossary     \printglossary[type=main,,style=altlist]               \end{document}      Gives me: ![enter image description here](http://i.stack.imgur.com/fOvyo.png) If the first `\Gls{imo}` line is uncommented, then there is a error. It appears to me that the machinery that tries to capitalize the first word trips up over a fragile command because the second use works fine. I have tried turning off sanitization and applying every permutation of `\protect` I can think of with no luck. Any assistance would be greatly appreciated on how to achieve the behavior I am after. Thanks in advance!


title: ConTeXt equivalent of AMSmath's \substack

text: The Plain TeX               $$ \sum_{i \in S \atop j \in T} i $$      seems to be usually typeset mathematically in LaTeX using the `\substack` macro from the AMS maths macros (accessed using `\usepackage{amsmath}`)               \[ \sum_{\substack{i \in S\\ j \in T}} i \]      which gives slightly different results, most importantly in that the subscripts are scriptsized in the latter, but scriptscriptsized in the former. Results like these can be obtained in ConTeXt using matrices, e.g.:               \def\scriptsize{\switchtobodyfont[7pt]}     \startformula     \sum_{\startmathmatrix         \NC \scriptsize i \in S \NR         \NC  \scriptsize i \in T \NR         \stopmathmatrix}       i     \stopformula      But this is clunky (not to mention my code above giving ugly spacing) and defining a macro to do this risks being ad hoc. Is there an attractive and idiomatic way to do this in ConTeXt? I'd be most interested in a reasonably well-established way of translating AMS maths into ConTeXt.


title: Is there a way to reference the line number in algorithm 2e?

text: Say I have algorithm appear as followed ![enter image description here](http://i.stack.imgur.com/ybeY6.gif) Is it possible to reference the line number using ~\ref or any other possiblities?


title: Title picture misplaced in Beamer when using 'show notes on second screen' and absolute 'pgf' positioning

text: When I try to do something like the following, everything works fine and dandy; The title graphic (here represented by the LaTeX logo with the reddish background) is shown just fine.               \documentclass{beamer}     \usepackage{pgfpages,tikz}     %\setbeameroption{show notes on second screen=right}     \author{Euclid}     \title{There Is No Largest Prime Number}     \titlegraphic{%       \begin{tikzpicture}[inner sep=0, remember picture, overlay]         \node[anchor=south west, inner sep=0, shift={(5mm,5mm)}]         at (current page.south west)         [fill=red!20,rounded corners, above right]         {\Huge\LaTeX};       \end{tikzpicture}%     }     \begin{document}     \maketitle     \end{document}      ![Working titlegraphic](http://i.stack.imgur.com/66bmU.png) If, however, I try to produce output that includes the notes in a separate logical page by enabling the commented line in above code, it seems that the pgf node `current page` is completely off and the title graphic ends up outside of the logical page. That this is the case can be seen from the small preview in the top-right corner of the notes page, where the title graphic is far to the south west of the preview. ![Misplaced titlegraphic when enabling the notes page](http://i.stack.imgur.com/RRtyE.png) If I remove the `at (current page.south west)` stanza, the title graphic ends up inside the frame again, but then positioning it correctly is almost impossible. Anybody got an idea of what is going on and how I can fix this?


title: How long does it take to format a book in LaTeX?

text: I am new to this website and I hope this is not considered off topic but how long does it take to format a book in LaTeX? I understand this is a subjective question but maybe the "specs" of the book can make it less subjective. I do not have a lot of experience with LaTeX other than formatting posts over at math.se. Currently the book is in a .doc format and I am currently using a createspace template. The book is a non- fiction book. 160 Pages   Size: 5 x 8   Chapters 8   Contains few diagrams (maybe 5) Contains very little Math   The book does not have any footnotes If you need anymore information, I would be more than happy to provide it. Thanks a lot for your time!


title: Is it sensible to use the apa6 class for a thesis (with chapters)?

text: I want to use LaTeX/XeLaTeX (I'm a newbie) for my psychology PhD thesis, and my trial document currently uses `apa6` for the document layout (and `biblatex-apa`/biber for referencing). It seems that `apa6` does not allow for `\chapter{}`, and while there are two related posts on this (1, 2), I can't actually tell if it is sensible or not to use `apa6` for a thesis in the first place! What I would _like_ to be able to have is:   1. My document structured and formatted in APA 6th style (provided by `apa6`).   2. Citations and reference list in APA 6th style (provided `biblatex-apa`).   3. Allow for chapters (missing from `apa6`).   4. Introduce some customised styling (e.g. for quoting chunks of transcribed interviews). Is there a relatively pain-free way to achieve goals 1 to 4? I have also considered that it might be easier to use something like `memoir` in combination with `biblatex-apa`, and give up on strict adherence to APA style (i.e. everything from `apa6`).


title: How can I change the font size of the body of my letter to a bigger font?

text: I am new to LaTeX, This question might have been answered somewhere but I have hard time to find the answer. How can I change the font size of my letter's body to a bigger font. The default font is too small and hard to read.               \documentclass{letter}     \usepackage{scalefnt}          \signature{A GM}     \address{685 NE Fancy Rd\\Apt 303\\Fabulous city}          \begin {document}     \begin{letter}{Name\\Address\\PO Box 123450\\city}          \opening {Dear Sir, Madam:}     I am new to latex.          \closing{Yours Sincerely,}     \end{letter}     \end{document}


title: No indentation at the beginning of environment

text: I am using the common approach of having indentations for new paragraphs and no indentation directly after a headline. I have an environment for 'information boxes' defined like this:               \newenvironment{sectionbox}[2][]{\begin{shaded}\refstepcounter{sectionbox}\par\medski\noindent%     \textbf{Box~\thesectionbox #1: #2     \vspace{0.1cm} \hrule \vspace{0.1cm}}\rmfamily}     {\medskip \end{shaded}}      The problem is that I don't want indentation at the beginning of these boxes -- they have a headline and hence they shouldn't have an indentation... I have tried with `\noindent` but that isn't the right way since it only works when placed directly before the text which is to not be indented and the user of the environment might start with an empty line... Google brought me to this page but their suggestion "`\@afterindentfalse`" is apparantly not something I can use since I am in the wrong mode as LaTeX pointed out to me: `You can't use `\spacefactor' in internal vertical mode.` So, what can I use (that fixes this)?


title: Combine class and Biblatex citations

text: I have 3 articles that use biblatex citations and all of them have a reference-list in the end. Now I'd like to combine all three articles in a main document using the combine-class. However, how can that be done with the biblatex citations so so that each part of the main document has its own reference list based on seperate .bib-files. The main document should also come with an overall introduction (like published conference proceedings). So what do I have to write into the preamble of the main document (combine class)? I need to load the biblatex package but was else needs to be specified? And do I need to modify my single articles?


title: Combining biber with BibLaTeX

text: I'm trying to use BibLaTeX, is there any other solution instead of using biber to display bibliography ? if it is, does it allow the edition of biblographies refenrences to this format `[first_author_name, last_two_number_of_year]` ? Thanks a lot!


title: Combine Tikz pictures

text: Is it possible to combine two tikz pictures that were created using separate environments? Basically I have a macro create a backdrop that I will use often but I would like to create a layer on top of it which will change each time I use it so               \backdrop     \begin{tikzpicture}          \end {tikzpicture}      but have the tikzpicture use the same coordinate axis, scale, etc and location as the one created in the backdrop (Backdrop is just another tikz pictures as mentioned in the title) or can I nest pictures?               \begin{tikzpicture}     \backdrop     \end {tikzpicture}      (I haven't tried this to see if it works)


title: How to typeset mathematical expressions in Facebook posts?

text: Could anyone kindly explain to me how to use MathJax to typeset mathematical expressions in Facebook posts? This YouTube video shows that it can be done, but it does not contain any explanation. Thank you very much for your help! I appreciate it.


title: Consistent font size in EPS image that are scaled?

text: Assume that at creation time (of an EPS image) the final 'size' of the image is not known. However, this one EPS is used multiple times in different sizes within different documents. But the font size of text (e.g., axes labels) should be consistent. Example: In one `.tex` use               \includegraphics[width=0.5\textwidth]{my_plotted_function.eps}      and in another use               \includegraphics[width=0.3\textwidth]{my_plotted_function.eps}      but ensure, that the axes labels are shown with `12pt` in both figures. Is there another way/vector graphics format to reach this functionality? (`pstricks`, `tikz` is not a solution, since it's not a supported export format.)


title: How to keep material on one double page?

text: I have two side document(so I use `twoside` option) in LaTeX. I need to keep some material (text, pictures...) on one double page. In another words I want to allow page break from odd to even page but I want to prohibit breaks from even to odd page. I tried to write macro:               \newcommand{\nl}{     \\ \ifodd\c@page     \relax     \else     \nopagebreak     \fi}      and use it instead of `\\\` (I don't use any other line breaks commands in my document) but it does not work. Thanks for all answers. EDIT: Thanks but Steves environment does not quite work for me. I tried to put my material into it but it does not cause it to fit on 2 pages, instead it says `Overflow in twopage environment`. I will try to formulate exactly what I need to do:   * Preferable an environment or a macro.    * If the current page is even it must prevent LaTeX from breaking the page(it may break if it is absolutely impossible to keep the material on even page, but I need it to try hard). This may by done by setting penalty to 20000 or by anything else - please suggest as dirty tricks as you can make up.   * If the current page is odd then the page break is allowed but not necessary.   * The code that will make use of this environment or macro will be generated by java program so there is no point in generating errors if the material just can't fit into page or double page. Java have no way to know about LaTeX error. Thanks for all ideas


title: How to compute the remaining space on the current page

text: Is there a way to compute the remaining space on the current page and issue an optional command?


title: Missing $ Inserted After Index

text: I am typing some notes. I ran "makeindex" on my two indices. I PDFLaTeX'd the notes and all was well. Then I added the hyperref package. I then ran "makeindex" to generate my indices by doing "makeindex index.idx" and "makeindex notation.idx" Now when I PDFLaTeX it gives me an error of "missing $ inserted". The notes are separated into sections, each section with its own TeX file. The error says it occurs on line 5, which in my main file is \usepackage{setspace}. What might be causing this? EDIT: Here are some things from my .log file. I have omitted errors that I feel are not needed. The line the error from [4] references is a section title that use $'s to achieve math mode.               [4]     ("C:\Users\jjohnson\Dropbox\Jolie\Joe Teaching\Linear Algebra\Spring 2014\Notes     \section12.tex"          Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                removing `math shift' on input line 1.               Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                removing `superscript' on input line 1.               Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                removing `math shift' on input line 1.                         [22]     ("C:\Users\jjohnson\Dropbox\Jolie\Joe Teaching\Linear Algebra\Spring 2014\Notes     \notation.ind"     ! Missing $ inserted.     <inserted text>                  $     l.5           I've inserted a begin-math/end-math symbol since I think     you left one out. Proceed, with fingers crossed.


title: How do I set up appendices?

text: I used the following command for setting up an appendix section:               \setcounter{section}{0}     \renewcommand{\theequation}{\Alph{section}.\arabic{equation}}     \renewcommand{\thesection}{\Alph{section}}      (I don't want to use `\appendix`) Equations work fine, they have A.1, A.2, etc. Yet, whenever I refer to an appendix in the text using `~\ref{appendix:name_of_appendix}`, I get a consecutive number from the sections (a numeral) instead of a reorder appendix section name (A, B, C, etc.). Any ideas what's wrong? (I re-ran pdflatex several times.) I use it as follows:               We see in Appendix~\ref{appendix:a} that ...          [...]          \setcounter{section}{0}     \renewcommand{\theequation}{\Alph{section}.\arabic{equation}}     \renewcommand{\thesection}{\Alph{section}}               \section*{Appendix A: xxx}     \label{appendix:a}


title: Even horizontal distribution of choices in exam document class

text: I want to display the options for multiple choice questions horizontally within the exam document class. The `oneparchoices` environment displays the options horizontally, but the choices remain left-justified. I attempted the following fix: `\renewcommand{\choiceshook}{\setlength{\itemsep}{1in}}`, but of course that doesn't affect the oneparchoices environment and apparently `\oneparchoiceshook` is not defined. After much lost time, I switched to the `\choices` environment, added the `multicol` package and added a `multicols` environment to each question (see below). Although this achieves the desired effect, besides being tiresomely repetitive, I can't change the `\columnsep` for the choices, globally (I know this must be easy, I just don't know how); and the `multicols` environment inside the `choices` environment seems to add an indent (compare the same approach in a `parts` environment, below); not to mention the spacing issues that might arise using `\columnsep` if different questions had different numbers of choices …               `\documentclass[11pt]{exam}      \RequirePackage{amssymb, amsfonts, amsmath, latexsym, verbatim, xspace, setspace}      \usepackage[margin=1in]{geometry}      \usepackage{multicol}           \begin{document}           \begin{choices}      \setlength{\columnsep}{30pt}        \begin{multicols}{5}           \choice First.           \choice Second.           \choice Third.           \choice Fourth.           \choice Fifth.         \end{multicols}      \end{choices}           % Compare multicols within a parts environment - no additional indent:           \begin{parts}      \setlength{\columnsep}{30pt}         \begin{multicols}{5}            \part A.            \part B.             \part C.             \part D.             \part E.         \end{multicols}      \end{parts}     \end{document}      **Is there a simple solution to this problem within the exam document class?** I don't know much about the use of different classes and am wondering to what extent it is desirable to stick to one class and make changes internally (there are some posts about this issue for the article class).


title: how to write a limit and how to use large absolute value?

text: How can I denote a limit in LaTeX, such as `$f(n) \rightarrow_{n \rightarrow \infty} 0$` ? And when I have a fraction and so on and I want to use an absolute value `$| \frac{x}{y}|$`, how can I make the `$|$` signs much bigger (similarly to `\left(` and `\right)`) ?


title: How can I combine shorthands of bibliographical entries with acronyms in text?

text: I would like to make \printshorthands for the code below and to put put acronyms used in text in the same list with bibliographical shorthands. Could somebody help?               \documentclass[12pt]{report}           \usepackage{fontspec}     \usepackage[hidelinks]{hyperref}          \usepackage{xunicode}     \usepackage[no-sscript]{xltxtra}     \usepackage{csquotes}     \usepackage{polyglossia}     \setdefaultlanguage{french}     \setotherlanguages{german,english,greek,polish,russian}          \setmainfont[Mapping=tex-text]{CMU Serif}          \usepackage{setspace}     \usepackage{acronym}     \usepackage{tocloft}                    \newfontfamily\greekfont[Script=Greek,Mapping=tex-text]{CMU Serif}     \newfontfamily\russianfont[Script=Cyrillic,Mapping=tex-text]{CMU Serif}                    \renewcommand\cftchappresnum{\chaptername\space}     \setlength{\cftchapnumwidth}{3.5cm}               \renewcommand{\thechapter}{}     \renewcommand{\thesection}{\Roman{section}.}                    \usepackage[backend=biber,style=verbose-ibid,citepages=suppress,sorting=nty,babel=other]{biblatex}          \renewcommand\mkbibnamelast[1]{\textsc{#1}}               \DefineBibliographyStrings{french}{%       pages = {pp\adddot},     }          \newbibmacro*{cite:xref}{%         \ifciteseen             {\iffieldundef{shorthand}                 {\usebibmacro{cite:short}}                 {\usebibmacro{cite:shorthand}}}             {\ifentrytype{periodical}                 {\usebibmacro{cite:short}\usebibmacro{shorthandintro}}                 {\usebibmacro{cite:full}}}}          \DeclareCiteCommand{\xrefcite}         {}         {\usebibmacro{cite:xref}}         {}         {}          \renewbibmacro*{journal}{%         \iffieldundef{xref}             {\iffieldundef{journaltitle}                 {}                 {\printtext[journaltitle]{%                     \printfield[titlecase]{journaltitle}%                     \setunit{\subtitlepunct}%                     \printfield[titlecase]{journalsubtitle}}}}             {\entrydata{\thefield{xref}}{%                 \ifboolexpr{                     test {\iffieldundef{title}}                     and                     test {\iffieldundef{subtitle}}                 }                 {}                 {\printtext[title]{\printfield[titlecase]{title}%                     \setunit{\subtitlepunct}%                     \printfield[titlecase]{subtitle}}}}}}          \DeclareBibliographyDriver{article}{%         \usebibmacro{bibindex}%         \usebibmacro{begentry}%         \usebibmacro{author/translator+others}%         \setunit{\labelnamepunct}\newblock         \usebibmacro{title}%         \newunit         \printlist{language}%         \newunit\newblock         \usebibmacro{byauthor}%         \newunit\newblock         \usebibmacro{bytranslator+others}%         \newunit\newblock         \printfield{version}%         \newunit\newblock         \usebibmacro{in:}%         \ifthenelse{\ifbibliography\OR\iffieldundef{xref}}             {\usebibmacro{journal+issuetitle}%                 \newunit                 \usebibmacro{byeditor+others}%                 \newunit                 \usebibmacro{note+pages}%                 \newunit\newblock                 \iftoggle{bbx:isbn}{\printfield{issn}}{}%                 \newunit\newblock                 \usebibmacro{doi+eprint+url}%                 \newunit\newblock                 \usebibmacro{addendum+pubstate}%                 \newunit\newblock                 \setunit{\bibpagerefpunct}\newblock                 \usebibmacro{pageref}%                 \usebibmacro{finentry}}%             {\xrefcite{\thefield{xref}}%                 \ifciteseen{}{%                     \setunit{\addspace}%                     \usebibmacro{volume+number+eid}%                     \setunit{\addspace}%                     \usebibmacro{issue+date}}}}          \newbibmacro*{in:collection}{%         \usebibmacro{byeditor+others}%         \newunit\newblock         \printfield{edition}%         \newunit         \iffieldundef{maintitle}{\printfield{volume}\printfield{part}}{}%         \newunit         \printfield{volumes}%         \newunit\newblock         \usebibmacro{series+number}%         \newunit\newblock         \usebibmacro{publisher+location+date}%         \newunit\newblock         \iftoggle{bbx:isbn}{\printfield{isbn}}{}}          \DeclareBibliographyDriver{incollection}{%         \usebibmacro{bibindex}%         \usebibmacro{begentry}%         \usebibmacro{author/translator+others}%         \setunit{\labelnamepunct}\newblock         \usebibmacro{title}%         \newunit         \printlist{language}%         \newunit\newblock         \usebibmacro{byauthor}%         \newunit\newblock         \usebibmacro{in:}%         \iffieldundef{xref}             {\usebibmacro{maintitle+booktitle}%                 \newunit\newblock                 \usebibmacro{in:collection}}%             {\ifcitation                 {\xrefcite{\thefield{xref}}}                 {\entrydata{\thefield{xref}}{%                     \usebibmacro{title}%                     \newunit\newblock                     \usebibmacro{in:collection}}}}%         \newunit\newblock         \usebibmacro{chapter+pages}%         \newunit\newblock         \printfield{note}%         \newunit\newblock         \usebibmacro{doi+eprint+url}%         \newunit\newblock         \usebibmacro{addendum+pubstate}%         \setunit{\bibpagerefpunct}\newblock         \usebibmacro{pageref}%         \usebibmacro{finentry}}          \newbibmacro*{in:proceedings}{%         \usebibmacro{event+venue+date}%         \newunit\newblock         \usebibmacro{byeditor+others}%         \newunit\newblock         \iffieldundef{maintitle}{\printfield{volume}\printfield{part}}{}%         \newunit         \printfield{volumes}%         \newunit\newblock         \usebibmacro{series+number}%         \newunit\newblock         \printlist{organization}%         \newunit         \usebibmacro{publisher+location+date}%         \newunit\newblock         \iftoggle{bbx:isbn}{\printfield{isbn}}{}}          \DeclareBibliographyDriver{inproceedings}{%         \usebibmacro{bibindex}%         \usebibmacro{begentry}%         \usebibmacro{author/translator+others}%         \setunit{\labelnamepunct}\newblock         \usebibmacro{title}%         \newunit         \printlist{language}%         \newunit\newblock         \usebibmacro{byauthor}%         \newunit\newblock         \usebibmacro{in:}%         \iffieldundef{xref}             {\usebibmacro{maintitle+booktitle}%                 \newunit\newblock                 \usebibmacro{in:proceedings}}%             {\ifcitation                 {\xrefcite{\thefield{xref}}}                 {\entrydata{\thefield{xref}}{%                     \usebibmacro{title}%                     \newunit\newblock                     \usebibmacro{in:proceedings}}}}%         \newunit\newblock         \usebibmacro{chapter+pages}%         \newunit\newblock         \printfield{note}%         \newunit\newblock         \usebibmacro{doi+eprint+url}%         \newunit\newblock         \usebibmacro{addendum+pubstate}%         \setunit{\bibpagerefpunct}\newblock         \usebibmacro{pageref}         \usebibmacro{finentry}}               \bibliography{test}     \frenchspacing               \begin{filecontents}{\jobname.bib}          @Inproceedings{Science:Environment2000,     title = {Environmental Science and Management in Developing versus Developed Countries: education and research perspectives},     xref = {Environment2000},     author = {John Doe},     pages = {23--45},     keywords = {primary}     }          @Inproceedings{health:Environment2000,     title = {Public health: implications from a compromised environment},     xref = {Environment2000},     author = {Ho Chi Minh},     pages = {330--335},     keywords = {primary}     }          @Proceedings{Environment2000,     title = {International Conference on Environmental Pollution, Restoration, and Management},     shorthand = {ICEP},     date = {2000},     keywords = {primary}}          @InCollection{westfahl:space,     xref = {westfahl:frontier},     author = {Westfahl, Gary},     title = {The True Frontier},     subtitle = {Confronting and Avoiding the Realities of Space in American Science Fiction Films},     pages = {55--65},     keywords = {secondaire}}          @Collection{westfahl:frontier,     editor = {Westfahl, Gary},     shorthand = {FTSF},     title = {Space and Beyond},     subtitle = {The Frontier Theme in Science Fiction},     publisher = {Greenwood},     location = {Westport, Conn. and London},     date = {2000},     keywords = {secondaire}}          @Article{Episkepsis1970:1,     title = {Decide ne plus refuser},     xref = {Episkepsis},     date = {1970},     number = {1},     pages = {6--7},     keywords = {primary}}          @Article{Episkepsis1972:62,     title = {La jeunesse et la preparation},     xref = {Episkepsis},     date = {1972},     number = {62},     pages = {5--7},     keywords = {primary}}          @Article{Episkepsis2009:701,     title = {Reunion a Chambesy de la IV\textsuperscript{e} Conference},     xref = {Episkepsis},     date = {2009},     number = {701},     pages = {8--21},     keywords = {secondaire}}          @periodical{Episkepsis,     options = {skipbib=true},     title = {Episkepsis},     shorthand = {EP},     date = {1970/},     publisher = {Ceneter OPO},     address = {Chambesy--Geneve},     keywords = {primary}}          \end{filecontents}          \addbibresource{\jobname.bib}               \begin{document}          \doublespacing          \tableofcontents          \printshorthands                    \renewcommand{\chaptername}{Préface}     \addtocontents{toc}{\protect\renewcommand\protect\chaptername{Préface}}     \chapter{Le choix du thème}     Balah blah blah L'Organisation des Nations unies (ONU)      \footcite[cf.][332]{health:Environment2000}     \footcite{Science:Environment2000}               \renewcommand{\chaptername}{Introduction}     \addtocontents{toc}{\protect\renewcommand\protect\chaptername{Introduction}}     \chapter{Initiatives du PO}     \section{Les lettres du PO 1904}     Balah blah blah (ONU)      \footcite[331]{health:Environment2000}     \footcite{westfahl:space}                    \renewcommand{\thechapter}{\arabic{chapter}}     \renewcommand{\thesection}{\thechapter.\arabic{section}}     \setcounter{chapter}{0}     \setcounter{section}{0}     \renewcommand{\chaptername}{Chapitre}     \addtocontents{toc}{\protect\renewcommand\protect\chaptername{Chapitre}}     \chapter{Les décisions des CP}     \section{Les décisions des CP de Rhodes 1964}          \footcite{westfahl:frontier}     \footcite[cf.][6]{Episkepsis1972:62}                    \chapter{L'ouvre de la CIP}     \section{Les décisions de la I\textsuperscript{re} CPP}     \footcite{Episkepsis2009:701}     \footcite[7]{Episkepsis1972:62}               \chapter{Évaluation de l'œuvre accomplie et perspectives}     \section{Évaluation de l'œuvre accomplie}          \footcite{Episkepsis2009:701}     \footcite[7]{Episkepsis1972:62}          \renewcommand{\thechapter}{}     \renewcommand{\chaptername}{Conclusion}     \addtocontents{toc}{\protect\renewcommand\protect\chaptername{Conclusion}}     \chapter{}                         \printbibheading[heading=bibintoc]     \printbibliography[keyword=primary,heading=subbibliography,title={Les sources principaux}]     \printbibliography[keyword=secondaire,heading=subbibliography,title={Les sources secondaires}]          \end{document}      **After correction:** to have the list like this > Sigles > > EP Episkepsis (1970–). > > FTSF Gary W, éd. Space and Beyond.The Frontier Theme in Science > Fiction. Westport, Conn. et London : Greenwood, 2000. > > GSM Groupe Spécial Mobile > > ICEP International Conference on Environmental Pollution, Restoration, and > Management. 2000. > > ONU L'Organisation des Nations unies I have no idea which package to use for it and how. `acronym` or `glossaries` or other one it's not in principle for me. Thanks


title: Descriptions is written overtop the text

text: Its the first time to use description but there the description overlay the text as shown here![enter image description here](http://i.stack.imgur.com/yc5NK.png) this is the script I'm using:               \documentclass[conference]{IEEEtran}          \usepackage{cite}     \usepackage{tabularx,booktabs}     \usepackage{graphicx}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{caption}     \usepackage{epstopdf}     %\usepackage{subcaption}     \usepackage{longtable}     \usepackage{comment}     \usepackage{tabularx}     \usepackage[table]{xcolor}     \usepackage{graphicx}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{caption}     %\usepackage{subcaption}     \usepackage{longtable}     \usepackage{comment}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage{gensymb}     \usepackage{adjustbox}     \usepackage{subfig}     \usepackage{tikz}     \usepackage{enumerate}          \usepackage{algorithm}     \usepackage{algorithmic}          \ifCLASSINFOpdf               \else               \fi               \bibliographystyle{IEEEtran}                    \begin{document}               \title{A}               \author{\IEEEauthorblockN{}}               \maketitle               \IEEEpeerreviewmaketitle                         \begin{description}       \item[Experiment 1 :] In this experiment, aaaa       \item[Experiment 2 :]   This experiment is the same as Experiment 1, but       \item[Experiment 3 :] This experiment is the same as Experiment 1, but the     \end{description}          \bibliography{../refhJ}          \end{document}


How to layout figures/tables close to each other from the top. Here is the test code:               \documentclass[12pt]{article}          \begin{document}          \begin{figure}     \caption{A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!}     \end{figure}          \begin{table}     \caption{A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!}     \end{table}          \begin{figure}     \caption{A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!A very long caption!}     \end{figure}          \end{document}      Now I get: ![enter image description here](http://i.stack.imgur.com/LvSxJ.png) I want: ![enter image description here](http://i.stack.imgur.com/Z0ez8.png)


title: Specify starting row number for \rowcolors from colortbl package

text: In the following application of `\rowcolors` from the `colortbl` package, how can I specify the option to start the alternating color pattern from the 3rd row onwards? The first two rows in this case are part of the table heading, so I don't want the alternating background color to begin until the 3rd row down. If you can, please refer to any relevant sections in the package manual - if it's there I couldn't seem to find it.               \documentclass[12pt]{article}     \usepackage{booktabs}     \usepackage[x11names,dvipsnames,table]{xcolor} %for use in color links     \usepackage{colortbl}          \begin{document}     \rowcolors{1}{white}{Wheat1}     \begin{tabular}{l l l l l l}     \toprule             &   \multicolumn{4}{l}{Training data set}   &   Test data set\\     \cmidrule(l r){2-5} \cmidrule(l){6-6}     Method  &   MSE &   Var(Z)  &   $R^2$   &   RMSE    &   RMSE\\     \cmidrule(r){1 - 1} \cmidrule(l r){2-2} \cmidrule(l r){3-3} \cmidrule(l r){4-4} \cmidrule(l r){5-5} \cmidrule(l){6-6}     Global polynomial, order 1 & 1 & 2 & 3 & 4 & 5 \\     Global polynomial, order 3 & 6 & 7 & 8 & 9 & 10 \\     Global polynomial, order 5 & 11 & 12 & 13 & 14 & 15 \\     \bottomrule     \end{tabular}     \end{document}      ![enter image description here](http://i.stack.imgur.com/N9nnK.png)


title: filter coordinates for specific \addplot

text: I want to use `\addplot` twice and I want to filter the x values in one of them. However, `x filter/.code={...}` goes into the `axis` options and thus is applied to all `\addplot`s. How can I select a specific `\addplot`?               \documentclass{article}     \usepackage{pgfplots}     \pgfplotsset{width=7cm,compat=1.9}     \begin{document}     \begin{tikzpicture}     \begin{axis}[x filter/.code={\pgfmathadd{#1}{0.5}}]     \addplot coordinates { %use `x filter' only here,     (4,0)     (6,1)     };     \addplot coordinates {%but not here !!     (6.5,0)     (4.4,1)     };     \end{axis}     \end{tikzpicture}     \end{document}


title: Changing the distance between a label and a math symbol (an arrow for example)

text: How does one change the distance between the text label and an arrow (for example), by default the labels are way too high and way too low, it looks better if they are flush with the arrow (they seem to interfere less with the rows above and below for that matter). I found a partial solution, where I can bring the labels a little bit closer to the arrow shaft, but that was it, I cannot bring them closer. ![enter image description here](http://i.stack.imgur.com/1ruGN.png)               \documentclass{article}     \usepackage{extarrows}          \begin{document}     $\xlongleftrightarrow[\quad \text{\scriptsize{below}} \quad]{\text{\scriptsize{above}}}$ \quad     $\xlongleftrightarrow[\quad \raisebox{+3.5ex}{\text{\scriptsize{below}}} \quad]{\raisebox{-2.5ex}{\text{\scriptsize{above}}}}$ \quad      $\xlongleftrightarrow[\quad below \quad]{above}$     \end{document}      Also, how can one change the size of the label font in a more elegant way (if there is one)?


title: How to combine biber and bibentry?

text: I want to use biber/biblatex to produce my reference list, and I also want to use the bibentry package, to print individual citations in the text. However, it seems that I can't do both. In the example below, the `\bibentry` just produces empty output                \documentclass{article}          \begin{filecontents}{ref.bib}       @Book{abramowitz+stegun,         author    = "Milton {Abramowitz} and Irene A. {Stegun}",         title     = "Handbook of Mathematical Functions with         Formulas, Graphs, and Mathematical Tables",         publisher = "Dover",         year      =  1964,         address   = "New York",         edition   = "ninth Dover printing, tenth GPO printing"       }     \end{filecontents}          \usepackage{bibentry}     \usepackage[backend=biber]{biblatex}     \addbibresource{ref.bib}          \begin{document}          Here's a citation     \bibentry{abramowitz+stegun}          \nocite{*}     \printbibliography               \end{document}


title: glossaries error with *4col styles

text: I wanted to print out a nomenclature with symbols (i.e. VARIABLE - DEFINITION - SYMBOL form). Below is the MWE               \documentclass[11pt,onecolumn,draft,a4paper]{book}      \usepackage{longtable}     \usepackage{makeidx}     \usepackage[acronym, toc, section, shortcuts, nopostdot, nogroupskip]{glossaries}      \usepackage{glossary-long}     \newglossary[slg]{symbols}{syi}{syg}{Nomenclature}     \newglossary[ilg]{indices}{iyi}{iyg}{List of indices}     \makeglossaries          \newacronym{ECD}{ECD}{equivalent circuit diagram}     \newacronym{RES}{RES}{renewable energy source}     \newglossaryentry{Rx1}     {       name={\ensuremath{R_{x1}}},       description={Equivalent series resistance},       symbol={\ensuremath{\Ohm}},       sort=Rx1, type=symbols     }     \newglossaryentry{ref}     {       name={*},       description={Indicates reference value},       sort=ref, type=indices     }          \begin{document}     \glsaddall             \printglossary[type=\acronymtype, style=long, title=List of Abbreviations and Acronyms]     \vspace{40pt}       \printglossary[type=symbols, style=long4col, title=Nomenclature]     \vspace{40pt}       \printglossary[type=indices, style=long, title=List of indices]     \end{document}      The error is:               ! Undefined control sequence.     <argument> \Ohm     l.5 ...etentrycounter[]{page}\glsnumberformat{1}}}     %     The control sequence at the end of the top line     of your error message was never \def'ed... BLA-BLA-BLA      It occurs only with 4cols styles one of which I need for printing out the symbols column. I also totally don't understand the error. Btw, it doen't occur with *3col styles.


title: Control the alignment of each "cell" in amsmath's aligned environment

text: In `amsmath`'s `aligned` environment, the alignment of each "cell", or each "column" is predetermined, and seems to work in the following way: the first "column" is aligned to the right, the second to the left, the third to the right again, and so forth. My question is, is there any way to adjust the alignment of each "cell" (left, center, or right)? As an example, I was trying to create a diagram with `aligned`:                 \[                                                                                \begin{aligned}                                                                        \sigma  & \colon & F(\alpha) & \overset{\sim}{\to} & F'(\beta)\\                                  &        & |         &                     & |\\                                  \varphi & \colon & F         & \overset{\sim}{\to} & F'                                 \end{aligned}                                                                        \]      The desired behavior is pretty obvious, but the actual output is ![disaster](http://i.stack.imgur.com/xQlmG.png)


title: Passing commands as environment-arguments

text: I'm trying to realize two versions of an environment `numberedlist`:   * if **no argument** is passed to it, it should begin the environment `enumerate` and pass **default values** as its argument,   * if **one argument** (or a list of) is passed to it, it should begin the environment `enumerate` and pass **default values + the passed argument** as its argument. My MWE doesn't work properly. It prints out the arguments instead of using them.               \documentclass{article}     \usepackage{ifthen}     \usepackage{enumitem}          \newenvironment{numberedlist}[1][]{%     \let\tempstring{topsep=0.3cm,noitemsep,itemindent=0.5cm,labelsep=0.5cm}%default value     \ifthenelse{\equal{#1}{}}{}{%         \let\tempstring{\tempstring{}#1}%add further params     }%     \begin{enumerate}[\tempstring]%     }{\end{enumerate}}               \begin{document}          \begin{numberedlist}     \item item 1     \item item 2     \item item 3     \end{numberedlist}          \begin{numberedlist}[resume]     \item continue the list with 4th item!     \item item 5     \item item 6     \end {numberedlist}          \end{document}


title: Compile with emacs and update the view in docview

text: I'm using Emacs with AUCTeX under Ubuntu 14.04. My frame is splitted into two windows like this:                ------------------------------     |                |             |     |                |             |     |       1        |       2     |     |                |             |     |                |             |      ------------------------------      Currently, `C-c C-c` only compiles the TeX file which is in window 1 and display errors (if any) in window 2. I would like this command to automatically load the compiled pdf in window 2 if there isn't any error with the "docview". By the way, I currently have to press "Enter" after invoking `C-c C-c` (in order to validate the fact I want to use my default compiler), is it possible to remove this validation part ? I know I should modify my `.emacs` file, but I'm very uncomfortable with these configuration files...


title: use my selected \sffamily fonts for \mathfs

text: I would like to use my selected sans serif font in place of my mathfs fonts. I know that there are so called mathversions which define different types of characters (letters, symbols, etc). I would be satisfied if I could set the basic Latin alphabetical math sans serif characters the same as my default text sans serif font. Is it possible, how?