title: Adding half points/marks to question counter

text: I would like to be able to add half marks to my questions, but I don't know how to handle these with`\stepcounter`. Below is part of my style file, please could you help? I essentially want to say `\mrks{0.5}`, and have to those added to the total total marks printed at the top of the question define by my `\question{}` command.                  \typeout{ exam paper style -- Version 06/06/14}          %========================================================================     %  \ifnull  --- checks if parameter is null (spaces are NOT null)     %  \ifblank --- checks if parameter is blank (i.e. null or spaces)     %  \ifgiven --- checks if parameter is not blank: like \ifblank\else     %     use \ifgiven{#1}\then   ...  \else  ...  \fi   etc     \let\then\iftrue     {\catcode`\!=8 % funny catcode so ! will be a delimiter     \long\gdef\ifgiven#1\then{\Ifbl@nk#1@@@\empty!}% negative of \ifblank     \long\gdef\ifblank#1\then{\Ifbl@nk#1@@..!}% if null or spaces     \long\gdef\Ifbl@nk#1#2@#3#4!{\ifx#3#4}     \long\gdef\ifnull#1\then{\IfN@LL#1* {#1}!}% if null     \long\gdef\IfN@LL#1 #2!{\ifblank{#2}\then}     }     \setcounter{tocdepth}{0}     %\setlength{\parskip}{\medskipamount}  % a little space before a \par     \setlength{\parindent}{0pt}       % don't indent first lines of paragraphs     \renewcommand{\arraystretch}{1.2}     %     \newenvironment{paper}[1]{\ifgiven{#1}\then\papernum{#1}\fi\maketitle}%     {\label{last@quest}%     \@recordmarks{\arabic{question}}{\arabic{qmarkcnt}}\gentoctable}     %     \long\def\instructions#1{\long\def\@instructions{#1}}\def\@instructions{}     \def\papernum#1{\def\@papernum{#1}}\def\@papernum{}     \def\course#1{\def\@course{#1}}\def\@course{}     \def\totalmarks#1{\def\@totalmarks{#1}}\def\@totalmarks{}     \def\totaltime#1{\def\@totaltime{#1}}\def\@totaltime{}     \def\nocalculator{\def\@calcu{NOT }}\def\@calcu{}     %     \def\maketitle{\par     \begingroup     \global\@topnum\z@ \@maketitle      \endgroup     \let\maketitle\relax     \let\@maketitle\relax     \gdef\@title{}\gdef\@course{}\gdef\@papernum{}\gdef\@instructions{}     \gdef\@totalmarks{}\gdef\@totaltime{}\gdef\@calcu{}     % \let\thanks\relax     }     %     \def\@maketitle{\newpage     \null     \begin{center}\Large       Uni       \bigskip       CS \@course\\[\baselineskip]       {\bf \@title}       \ifx\@empty\@papernum       \else         \\[.5\baselineskip]{\bf Paper \@papernum}        \fi\\     \end{center}     \rule{\textwidth}{1pt}     \@instructions\par     \begin{minipage}[t]{.5\textwidth}     \begin{tabbing}     {\bf Marks:}x \= \kill     {\bf Marks:}\>\@totalmarks \\[\baselineskip]     {\bf Time:} \>\@totaltime     \end{tabbing}     \end{minipage}     \hfill     \begin{minipage}[t]{.5\textwidth}\raggedleft     \begin{itemize} \itemsep 0pt     \item Approximate marks per question are shown in brackets     \item The use of calculators is \@calcu permitted     \end{itemize}     \end{minipage}     \rule{\textwidth}{1pt}     }          \def\section{\par            % New paragraph     \ifnum \c@section >\z@ \addvspace{3ex}\hrule height1pt \fi       \addvspace{4ex}           % Adds vertical space above title.       \@afterindentfalse        % Suppresses indent in first paragraph.  Change       \secdef\@section\@ssection}     % to \@afterindenttrue to have indent.          \def\@section[#1]#2{\ifnum \c@secnumdepth >\m@ne    % IF secnumdepth -1         \refstepcounter{section}                    %  THEN step section counter         \fi       { \parindent \z@ \centering         \large \bf Section           % Print 'Part'           \ifnum \c@secnumdepth >\m@ne   % IF secnumdepth -1           \thesection\@.                 %   THEN  print number           \fi                            % FI         #2\markboth{}{}\par }          % Print title and set heading marks null.         \nobreak                       % TeX penalty to prevent page break.         \vskip 2ex                     % Space between title and text.       \@afterheading                  % Routine called after part and         }                              %     section heading.     %     % Heading for \section* command     \def\@ssection#1{{\parindent \z@ \centering         \large\bf Section: #1 \par}              % Title.         \nobreak                        % TeX penalty to prevent page break.         \vskip 2ex                      % Space between title and text.         \@afterheading                  % Routine called after part and       }                                 %     section heading.     \newcounter{question}     \newcounter{qmarkcnt}[question]     \def\questionmark#1{}  % we don't need header marks     %\def\thequestion{Question \arabic{question}}     %\def\question{\@startsection{question}{2}{\z@}{-3.25ex plus -1ex minus     % -.2ex}{1.5ex plus .2ex}{\bf}}     \def\question{\par             % New paragraph       \addvspace{3.25ex plus 1ex minus .2ex}  % Adds vertical space before       \@recordmarks{\arabic{question}}{\arabic{qmarkcnt}}       \@afterindentfalse          % Suppresses indent in first paragraph.       \secdef\@question\@squestion}     \def\@question[#1]#2{\@@quest{#2}}     % Heading for \question* command     \def\@squestion#1{\@@quest{#1}}     \def\@@quest#1{%       \refstepcounter{question}         % step question counter       {\bf Question \thequestion. #1    % Print 'Question n.' and title         \hspace{2em}                     % Print total marks...         [\qmarks{\arabic{question}} marks]         \markboth{}{}\par}               % set heading marks null.         \nobreak                       % TeX penalty to prevent page break.         \vskip 1.5ex plus .2ex         % Space between title and text.       \@afterheading                  % Routine called after part and     }                                  %     section heading.     %     \def\qmarks#1{\@ifundefined{q@#1}{??\@warning       {Total marks for Question `#1' on page \thepage \space         undefined}}{\edef\@tempa{\@nameuse{q@#1}}\@tempa}}     %     \def\@recordmarks#1#2{\@bsphack\ifnum #1 >\z@\if@filesw {%     \def\protect{\noexpand\noexpand\noexpand}%     \xdef\@gtempa{\write\@auxout{\string\newqmarks{#1}{#2}}}}\@gtempa     %\ifnum #1 >\lastquestion\lastquestion=#1\fi     \fi\fi\@esphack}     %      % #1 = question number; #2 = total marks     \def\newqmarks#1#2{\@ifundefined{q@#1}{}{\@warning       {Question `#1' total marks multiply defined}}\global\@namedef{q@#1}{#2}}     %          \leftmargini  2em     \leftmarginii \leftmarginiii     \leftmarginiii \leftmarginiv          \def\labelenumi{\alph{enumi})}     \def\theenumi{(\alph{enumi})}          \def\labelenumii{\theenumii)}     \def\theenumii{\roman{enumii}}     \def\p@enumii{\theenumi}          \def\labelenumiii{\theenumiii.}     \def\theenumiii{\Alph{enumiii}}     \def\p@enumiii{\theenumi\theenumii.}          \def\labelenumiv{\theenumiv.}     \def\theenumiv{\arabic{enumi}}     \def\p@enumiv{\p@enumiii\theenumiii.}     \newcount\lincnt          \newcommand{\mrks}[1]{\mbox{}\nobreak\hfill\nobreak[#1]%     \addtocounter{qmarkcnt}{#1}}     \newcommand{\linemarks}[1]{\mbox{}\nobreak\hrulefill\ \nobreak[#1]%     \addtocounter{qmarkcnt}{#1}}     \newcommand{\lines}[1]{\par\mbox{}\hrulefill\mbox{}\lincnt=1     \loop\ifnum\lincnt<#1 \advance\lincnt by 1     \\[.5\baselineskip]\mbox{}\hrulefill\mbox{}\repeat\\\mbox{}}     \newcommand{\forcemarks}[1]{\setcounter{qmarkcnt}{#1}}          \def\tableofcontents{%\begin{center}     % {\bf NAME: \fbox{\rule[-.2ex]{0pt}{2ex}\hspace*{9cm}}\hfill STUDENTNO:     %\framebox[3cm]{\rule[-.2ex]{0pt}{2ex}}}\\[.5\baselineskip]     %     {\bf NAME:} \raisebox{2.8ex}{\makebox[0pt][l]{Surname}}%     \fbox{\rule[-.2ex]{0pt}{2ex}\hspace*{9cm}}%     \raisebox{2.8ex}{\makebox[0pt][r]{Initials}}\\[.5ex]     {\bf STUDENT NO:} \framebox[3.5cm]{\rule[-.2ex]{0pt}{2ex}} \hfill     {\bf COURSE CODE:} \framebox[2.5cm][l]{CSC\rule[-.2ex]{0pt}{2ex}}\\[.5\baselineskip]     This paper consists of \ref{last@quest} questions and      \pageref{last@quest} pages (including this cover page).     %   \\[1ex]     \begin{center}     \@starttoc{toc}\addtocontents{toc}{     \protect\begin{tabular}{|rr|l|l||rr|l|l|}     \protect\hline\protect\multicolumn{8}{|c|}{\bf Mark Allocation}\protect\\     \protect\hline\protect\hline     Quest & Marks & Internal & External &     Quest & Marks & Internal & External \protect\\\protect\hline}     \end{center}\clearpage}          \def\gentoctable{\@ifundefined{tf@toc}{}{%     \@tempcnta=\c@question\advance\@tempcnta by 1\divide\@tempcnta by 2     \@tempcntb=\c@question \divide\@tempcntb by 2 \lincnt=0%     \loop\ifnum\lincnt <\@tempcntb%     \advance\lincnt by 1\advance \@tempcnta by 1     \addtocontents{toc}{\number\lincnt &      \protect\@ifundefined{q@\number\lincnt}{[??]}%     {[\protect\@nameuse{q@\number\lincnt}]} & & &      \number\@tempcnta &      \protect\@ifundefined{q@\number\@tempcnta}{}%     {[\protect\@nameuse{q@\number\@tempcnta}]}     & & \protect\\\protect\hline}%     \repeat%     \@tempcnta=\c@question\advance\@tempcnta by 1\divide\@tempcnta by 2     \ifnum\lincnt <\@tempcnta%     \addtocontents{toc}{     \number\@tempcnta &      \protect\@ifundefined{q@\number\@tempcnta}{[??]}%     {[\protect\@nameuse{q@\number\@tempcnta}]} &&& &&&     \protect\\\protect\hline}%     \fi%     \addtocontents{toc}{     \protect\multicolumn{2}{|r|}{\bf Total}& & &     \protect\multicolumn{2}{r|}{\bf Total} & & \protect\\\protect\hline     \protect\multicolumn{6}{r|}{\bf Grand Total} &     \protect\rule{0pt}{4ex} &\protect\\\protect\cline{7-8}     \protect\multicolumn{6}{r|}{\bf Final Mark} &      \protect\multicolumn{2}{|r|}{\protect\rule{0pt}{4ex}}     \protect\\\protect\cline{7-8}\protect\hline     \protect\multicolumn{4}{|l||}{\bf Internal Examiner:\protect\rule{0pt}{4ex}}&      \protect\multicolumn{4}{l|}{\bf External Examiner:}     \protect\\\protect\hline     \protect\end{tabular}}%     }}%     %     % Change \enddocument so it checks the \q@i values for changes similar to     % what is done with references.     %     \def\enddocument{%     \@checkend{document}\clearpage\begingroup%     \if@filesw \immediate\closeout\@mainaux%     \def\global\@namedef##1##2{}\def\newlabel{\@testdef r}%     \def\newqmarks{\@testdef q}% <------- the only change (addition) we made     \def\bibcite{\@testdef b}\@tempswafalse \makeatletter\input \jobname.aux     \if@tempswa \@warning{Label(s) may have changed.  Rerun to get     cross-references right}\fi\fi\endgroup\deadcycles\z@\@@end}      mwe:                   \documentclass[A4paper,test,11pt]{article}     \usepackage{test}          \begin{document}     \title{test}          \begin{paper}{}          \question{}     \begin{enumerate}     \item A question  \lines{3} \mrks{4}          \item Another question \lines{3} \mrks{4.5} % try 4          \item Another question \lines{3} \mrks{4.5} % try 4          \end{enumerate}               \end{paper}     \end{document}      _Edit_ In all honesty I did not write the style file I posted. This was written by someone else years ago whom we cannot contact. I'd really like to implement David's suggestions, but this goes beyond my understanding and experience of latex. I would be keen to learn about lower level latex coding but since I am time constrained I cannot afford this. Any suggestions more specific to the style file I have submitted would be greatly welcome.


title: BibTex: Handling manuscripts

text: I have created bibliography project with books about dancing history: https://github.com/georgthegreat/dancebooks-bibtex It is a good practice (for manuscript entries) to add library, where this manuscript is being stored. I failed to find field for this purpose. So, how do I add the library to the bibliography?


title: Kiviat diagram with axis labeled and different sizes

text: I am trying to use the package tkz-kiviat to draw a kiviat. The following example produces the image below:               \documentclass[]{scrartcl}     \usepackage[utf8]{inputenc}      \usepackage[T1]{fontenc}     \usepackage[upright]{fourier}      \usepackage[usenames,dvipsnames]{xcolor}     \usepackage{tkz-kiviat,numprint,fullpage}      \usetikzlibrary{arrows}     \thispagestyle{empty}          \begin{document}      \begin{tikzpicture}     \tkzKiviatDiagram[scale=1.25,label distance=.5cm,             radial  = 5,             gap     = 1,               lattice = 5]{McCabe,LOC,Live Variables,Halstead N,Variablenspanne}     \tkzKiviatLine[thick,color=blue,mark=none,                    fill=blue!20,opacity=.5](3,3.5,3,3.5,3)     \tkzKiviatLine[thick,color=darkgray,                    fill=green!20,opacity=.5](0.5,1,0.5,0.75,1)      \tkzKiviatLine[ultra thick,mark=ball,                      mark size=4pt,color =Maroon](2,3.75,1,1.5,2)         \tkzKiviatGrad[prefix=,unity=100,suffix=\ \texteuro](1)       \end{tikzpicture}          \end{document}      ![Kiviat produced with the code above](http://i.stack.imgur.com/JQ7vl.png) My questions are:   1. Is it possible to have axes with different sizes? In the previous example, all the axes go from 0 to 5. I would like to have one axis from 0 to 3, other from 0 to 2, and so on.   2. Is it possible to label the axes with enumerated values? In the previous example, instead of having 100€, 200€, etc. I would like to have Axis1: Active, Passive. Axis2: Earth, Venus, Sun, ... Is this possible with this pacakge? Do I need to use another one?


title: Using proprietary fonts

text: I'm considering purchasing a font from Hoefler & Frere-Jones for my thesis (the font is called Requiem). Does anybody have any experience with H&FJ fonts? In particular:   * Are there any issues that I should expect to encounter? How did you resolve them?   * I'm assuming that the font I'm looking at doesn't have all the characters I use, including Greek and math characters. Can LaTeX default to Computer Modern whenever the a character is not found in Requiem? Would that look good?   * Are certain flavours of LaTeX better for this task? I currently use pdfLaTeX, but would I get better results with XeLaTeX or LuaLaTeX?


title: Braces on either side of a list

text: I want to create this: ![A table with brackets on either side of text](http://i.stack.imgur.com/CdbxB.png) The following code does this, but produces a number of overfull hbox and vbox statements in the log -- how can I get rid of those? On the other hand, if there is a better way, I'd like to know that, too.               \documentclass[12pt]{article}          \usepackage{array,multirow}          \renewcommand{\arraystretch}{1}          \newlength{\tblboxvsize}          %% Adjust for a redefined \arraystretch     \makeatletter     \def\getcellvsize{%          \setlength{\tblboxvsize}{\ht\@arstrutbox}%         \addtolength{\tblboxvsize}{\dp\@arstrutbox}%     }     \makeatother          \newcommand{\bracenote}[4][8em]{%[width of \vcenter]; l/r; n-rows; text         \getcellvsize         \multirow{#3}{#1}{%             \(                 \ifx#2l%                     \vcenter{%                         \hsize#1%                         \raggedright                         \noindent                         #4                     }%                     \left\{                 \else                     \left.                 \fi                 \vcenter to #3\tblboxvsize{}%                 \ifx#2r%                     \right\}%                     \vcenter{%                         \hsize#1%                         \raggedright                         \noindent                         #4%                     }%                 \else                     \right.                 \fi             \)         }%     }          \parindent0pt%          \begin{document}          \begin{tabular}{@{}ll@{}ll@{}}     \bracenote[6em]{l}{6}{Some text about all six}& First&\bracenote{r}{4}{Some text about the first four}\\     & Second is rather long& \\     & Third& \\     & Fourth&&\bracenote[10em]{r}{3}{Something about the last three}\\     & Fifth& \\     & Sixth&      \end{tabular}          \end{document}


title: How can I force expansion within this optional argument?

text: Oh look, a real question! In trying to actually complete something, I came across the following limitation of this lambda macro creator: it apparently does not work in the use case it was intended for. It's certainly a problem with expansion control, but I don't know where to really start.               \documentclass{article}          % (David Carlisle / @Manuel)'s much simpler version     \newcommand\LambdaFunction[2][0]{%       \let\tmp\relax       \newcommand\tmp[#1]{#2}\tmp}          \usepackage{empheq}          \begin{document}     \begin{empheq}[       box={\LambdaFunction{%           \colorbox           {myblue}%           {\hspace{1em}#1\hspace{1em}}%         }%       }       ]{align*}       a   &= b   \\       a^2 &= b^2     \end{empheq}     \end{document}


title: long abstract not continuing to next page in ERDC style

text: I am trying out a report format with the ERDC style, but using pdflatex, the abstract is limited to 1 page - the text just disappears off the bottom of the page and won't continue. I've looked through the documentation but can't find a way to resolve this. Even using their sample file does the same thing if I add more than 1 page of text. Any suggestions would be most welcome.               \documentclass{erdc}     \usepackage{lipsum,url}     \begin{document}          \frontmatter          %\laboratory{Cold Regions Research and\\ Engineering Laboratory}          \reportnum{ERDC/CRREL SR-05-78}          \program{Military Engineering Technology}          \title{Donec Felis       Erat, Congue Non, Volutpat At, Tincidunt Tristique, Libero}          \subtitle{Nam feugiat lacus vel est, Version~1.0}          \date{March 2009\\Revised November 2010}          \author{A.U.~Thor \and C.O.R.~Respondent \and C.O.~Author}          \affiliation{Construction Engineering Research Laboratory\\       U.S. Army Engineer Research and Development Center\\       2902 Newmark Drive\\       Champaign, IL 61826-9005}          \author{John~M.~Smith}          \affiliation{Coastal and Hydraulics Laboratory\\       U.S. Army Engineer Research and Development Center\\       3909 Halls Ferry Road\\       Vicksburg, MS 39180-6199}          \coverart{nola}          \reporttype{Final Report}          % \distribution{Distribution authorized to U.S. Government Agencies     % only; Test and Evaluation; November 2005.  Other requests should be     % referred to U.S. Army Engineer Research and Development Center}          \additionalinfo{Supersedes ERDC/CREL AF-01-23}          \begin{abstract}       \lipsum[12-19]     \end{abstract}          %\disclaimer{Some other disclaimer}          %\preparedfor{U.S. Army Engineer Research and Development Center\\     % 3909 Halls Ferry Road, Vicksburg, MS 39180-6199}           \contractnum{Work Unit 33143}          \monitoredby{U.S. Army Engineer Research and Development Center\\       3909 Halls Ferry Road, Vicksburg, MS 39180-6199}          %\preparedfor{}          \maketitle          \tableofcontents          \listoffiguresandtables          \chapter{Preface}     \lipsum[1-5]          \chapter{Unit Conversion Factors}          {\footnotesize\sffamily\centering       \begin{longtable}{||l|l|l||}         \hline\hline         \bfseries Multiply & \bfseries By & \bfseries To Obtain\\         \hline\hline         \endhead         \hline\hline         \endfoot         acres & 4,046.873 & square meters\\         \hline         acre-feet & 1,233.5 & cubic meters\\         \hline         angstroms & 0.1 & nanometers\\         \hline         atmosphere (standard) & 101.325 & kilopascals\\         \hline         bars & 100 & kilopascals\\         \hline         British thermal units (International Table) & 1,055.056 & joules\\         \hline         centipoises & 0.001 & pascal seconds\\         \hline         centistokes & 1.0E-06 & square meters per second\\         \hline         cubic feet & 0.02831685 & cubic meters\\         \hline         cubic inches & 1.6387064E-05 & cubic meters\\         \hline         cubic yards & 0.7645549 & cubic meters\\         \hline         degrees (angle) & 0.01745329 & radians\\         \hline         degrees Fahrenheit & (F-32)/1.8 & degrees Celsius\\         \hline         fathoms & 1.8288 & meters\\         \hline         feet & 0.3048 & meters\\         \hline         foot-pounds force & 1.355818 & joules\\         \hline         gallons (U.S. liquid) & 3.785412E-03 & cubic meters\\         \hline         hectares & 1.0E+04 & square meters\\         \hline         horsepower (550 foot-pounds force per second) & 745.6999 & watts\\         \hline         inches & 0.0254 & meters\\         \hline         inch-pounds (force) & 0.1129848 & newton meters\\         \hline         kilotons (nuclear equivalent of TNT) & 4.184 & terajoules\\         \hline         knots & 0.5144444 & meters per second\\         \hline         microinches & 0.0254 & micrometers\\         \hline         microns & 1.0E-06 & meters\\         \hline         miles (nautical) & 1,852 & meters\\         \hline         miles (U.S. statute) & 1,609.347 & meters\\         \hline         miles per hour & 0.44704 & meters per second\\         \hline         mils & 0.0254 & millimeters\\         \hline         ounces (mass) & 0.02834952 & kilograms\\         \hline         ounces (U.S. fluid) & 2.957353E-05 & cubic meters\\         \hline         pints (U.S. liquid) & 4.73176E-04 & cubic meters\\         \hline         pints (U.S. liquid) & 0.473176 & liters\\         \hline         pounds (force) & 4.448222 & newtons\\         \hline         pounds (force) per foot & 14.59390 & newtons per meter\\         \hline         pounds (force) per inch & 175.1268 & newtons per meter\\         \hline         pounds (force) per square foot & 47.88026 & pascals\\         \hline         pounds (force) per square inch & 6.894757 & kilopascals\\         \hline         pounds (mass) & 0.45359237 & kilograms\\         \hline         pounds (mass) per cubic foot & 16.01846 & kilograms per cubic meter\\         \hline         pounds (mass) per cubic inch & 2.757990E+04 & kilograms per cubic meter\\         \hline         pounds (mass) per square foot & 4.882428 & kilograms per square meter\\         \hline         pounds (mass) per square yard & 0.542492 & kilograms per square meter\\         \hline         quarts (U.S. liquid) & 9.463529E-04 & cubic meters\\         \hline         slugs & 14.59390 & kilograms\\         \hline         square feet & 0.09290304 & square meters\\         \hline         square inches & 6.4516E-04 & square meters\\         \hline         square miles & 2.589998E+06 & square meters\\         \hline         square yards & 0.8361274 & square meters\\         \hline         tons (force) & 8,896.443 & newtons\\         \hline         tons (force) per square foot & 95.76052 & kilopascals\\         \hline         tons (long) per cubic yard & 1,328.939 & kilograms per cubic meter\\         \hline         tons (nuclear equivalent of TNT) & 4.184E+09 & joules\\         \hline         tons (2,000 pounds, mass) & 907.1847 & kilograms\\         \hline         tons (2,000 pounds, mass) per square foot & 9,764.856 & kilograms per square meter\\     \hline     yards & 0.9144 & meters\\     \hline     \end{longtable}}          \mainmatter          \chapter{Duis ante felis, dignissim id, blandit in, suscipit vel,       dolor}     \section{Duis ante felis: duis sagittis massa, dignissim id, blandit       in, suscipit vel, dolor, nunc non magna}     \subsection{Nunc non magna: duis ante felis: duis sagittis massa,       dignissim id, blandit in, vel dolor}     \lipsum[6]          \begin{equation}       \label{eq:eq}       2\times2=4     \end{equation}          \subsection{Duis sagittis massa}          \lipsum[7-9]          \section{Suscipit vel}          \lipsum[23]          \begin{enumerate}     \item Pellentesque laoreet velit nec justo.     \item Fusce consectetuer. Proin tellus est, luctus vitae,       molestie a, mattis et, mauris. Donec tempor. Pellentesque habitant       morbi tristique senectus et netus et malesuada fames ac turpis       egestas. Duis ante felis, dignissim id, blandit in, suscipit vel,       dolor. Pellentesque tincidunt cursus felis.     \item Proin rhoncus semper       nulla. Ut et est. Vivamus ipsum erat, gravida in, venenatis ac,       fringilla in, quam. Nunc ac augue. Fusce pede erat, ultrices non,       consequat et, semper sit amet, urna.     \end{enumerate}          \lipsum[17-18]          \begin{table}       \centering       \caption{Yearly Dividens}       \label{tab:dividends}       \footnotesize\sffamily       \begin{tabular}{||l|D{.}{.}{2.2}||}         \hline\hline         \textbf{Year}  &  \multicolumn{1}{|c||}{\textbf{Dividends, \%}}\\         \hline\hline         $1880$  & 2.50  \\         \hline         $1881$  & 12.1  \\         \hline         $1882$  & 2.6  \\         \hline\hline       \end{tabular}     \end{table}          \subsection{Sagittis massa}          \lipsum[24]          \begin{figure}       \centering       \fbox{\includegraphics[width=2in]{red_corps_castle2}}       \caption{Castle}       \label{fig:castle}     \end{figure}          \lipsum[9]          \chapter{Duis sagittis massa in tellus}          \lipsum[11]          \begin{equation}       \label{eq:B}       \int P\,dx =1     \end{equation}          \begin{itemize}     \item Fusce adipiscing justo nec ante. Nullam in enim.       Pellentesque felis orci, sagittis ac, malesuada et, facilisis in,       ligula. Nunc non magna sit amet mi aliquam dictum. In mi.     \item Curabitur       sollicitudin justo sed quam. Aenean imperdiet. Vestibulum ante ipsum       primis in faucibus orci luctus et ultrices posuere cubilia Curae;       Donec lacinia nonummy lectus. Proin vel urna. Fusce sit amet orci ac       magna iaculis pharetra. Duis sagittis massa in tellus.     \end{itemize}          \section{Fusce consectetuer}          \lipsum[10]          \begin{figure}       \centering       \fbox{\includegraphics[width=4in]{nola}}       \caption{A Picture From US Army Corps Of Engineers Site}       \label{fig:nola}     \end{figure}          \section{Aenean imperdiet}          \lipsum[11]          \nocite{*}          \bibliographystyle{unsrt}     \bibliography{erdc}          \appendix          \chapter{Aenean imperdiet}          \lipsum[12-16]          \begin{equation}       \label{eq:C}       \frac{\partial H}{\partial x} = -X     \end{equation}          \begin{figure}       \centering       \fbox{\includegraphics[width=2in]{red_corps_castle2}}       \caption{Another Castle, Now In Appendix}       \label{fig:castle1}     \end{figure}          \lipsum[26]     \lipsum[32]          \begin{equation}       \label{eq:D}       e^{i\pi} + 1 = 0     \end{equation}          \begin{table}       \centering       \caption{Dam on Table Rock Lake}       \label{tab:Dam}       \footnotesize\sffamily       \begin{tabular}{|l|r|}         \hline         Length of dam, feet &6,423\\         \hline         Concrete section, feet &1,602\\         \hline         Earth embankment feet &4,821\\         \hline         Maximum height of dam above streambed, feet &252\\         \hline         Concrete in dam, cubic yards &1,230,000\\         \hline         Earth in embankment, cubic yards &3,320,000\\         \hline         Length of spillway, gross feet &531\\         \hline         Spillway crest gates (10), size in feet &45x37\\         \hline         Outlet conduits (4), size in feet &4x9\\         \hline         Elevations, feet above mean sea level & \\         \hspace{20pt}Top of dam & 947\\         \hspace{20pt}Spillway crest & 896\\         \hline       \end{tabular}     \end{table}          \lipsum[27]          \chapter{Pellentesque habitant       morbi tristique senectus et netus et malesuada fames ac turpis       egestas}          \lipsum[16-22]     \begin{equation}       \label{eq:U}       S = -kT\ln\Xi     \end{equation}     See equation~(\ref{eq:C}) and equation~\eqref{eq:D}.          \begin{figure}       \centering       \fbox{\includegraphics[width=2in]{red_corps_castle2}}       \caption{Yet Another Castle In Appendix}       \label{fig:castle2}     \end{figure}               \end{document}


title: Strange lack of scaling/resizing of an embedded swf-animation

text: I am a noob in adding animations. I'm making progress, but new problems apparently show up all the time. Hardly a surprise actually. Anyway. System: WinEdt 7.0, MikTeX 2.9, Windows 7               \documentclass{powerdot}          \usepackage{lmodern}     \usepackage[utf8]{inputenc}     %\usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[finnish]{babel}          \usepackage{amsmath,amssymb}     %\usepackage{psfrag}     \usepackage{media9}          \begin{document}     \begin{slide}{Esimerkki D1}     Sykloidiksi kutsuttu käyrä on $x$-akselia pitkin sutimatta vierivän yksikköympyrän kehältä     kiinnitetyn yhden pisteen ympyrän pyöriessä piirtämä käyrä.     \includemedia[           width=200pt,           height=70pt,           activate=pageopen,         ]{}{sykloidi.swf}     \end{slide}     \end{document}      The file _sykloidi.swf_ is a video of a cycloid being drawn (generated by Mathematica, but that is probably irrelevant). The above compiles all right via the DVI->PS->PDF route. The resulting PDF slide set looks good otherwise, but when I started zooming in Adobe Reader (going to full screen mode is enough) I was very surprised to notice that the size of the animated area remained the same, and the gap created by zooming is filled in with black. This is IMHO bizarre. ~~I do realize at some level that video may have a built-in unscalable resolution, but SWF is vector graphics, and it is supposed to scale, right?~~ I tried to insert a _scale_ variable (giving it a modest value like 1.2), but that only made the surrounding box bigger (it overflowed outside the slide eventually). So how does the syntax of scaling work in media9? I tried to find it in this document, but unfortunately couldn't make head or tails out of that. Is there something like "media9 for dummies" somewhere that you would recommend? Googling gave some hits, but the documents referred to external programs in Mac OS or seemed to depend on TikZ or... Edit1: I know nothing about the internal structure of various video formats. But still images (irrespective of whether they were originally .png, .eps) scale with the rest of the document when viewed in Adobe Reader, why is video different? I realize that the problem may be elsewhere, in which case I should ask, whether anyone can diagnose the problem. Edit2: It is possible that the technically correct term I need is _resizable_ as opposed to _scalable_. As I said, I'm ignorant about such differences.


title: Reference list from separate documents in the order of appearance

text: I'm facing a complex problem. I have 2 separate documents, a main text and a table, both with several citations. I would like to have a bibliography section at the end of the main document containing citations from both the main text and the table. Furthermore the order of references should be in the order of appearance in the two documents in the following manner: First, citations in the main text until the table. When I refer to the table in the main text (eg saying "Table shows") references should come from citations in the table, and when the table is finished, the references should come again from the main text from the point where the main text was left previously (that is from after "Table shows"). Is this feasible using latex and bibtex? Here is a MWE. The main document's code:               \documentclass{article}     \begin{document}     Some text. \cite{Lamport1994} See table 1 citation. More text. \cite{Goossens1994}     \bibliographystyle{unsrt}     \bibliography{sample}     \end{document}      Table document code:               \documentclass{article}     \begin{document}     \begin{tabular}{|c|c|}     \hline      Table text. \cite{Knuth1984} & \\     \hline      \end{tabular}     \end{document}      And an example bib file:               @BOOK{Knuth1984,       title = {The \TeX book},       publisher = {Addison-Wesley},       year = {1984},       address = {London},       author = {Knuth, Donald E},     }          @BOOK{Lamport1994,       title = {\LaTeXe , the Macro Package for \TeX },       publisher = {Addison-Wesley},       year = {1994},       address = {London},       author = {Lamport, Leslie},     }          @BOOK{Goossens1994,       title = {The \LaTeX{} Companion},       publisher = {Addison-Wesley},       year = {1994},       address = {London},       author = {Goossens, Michel and Mittelbach, Frank and Samarin, Alexander},     }      Of course, the table file won't compile as there is no \bibliography defined in it. What I would like to get: the main document with citations and references formatted and in the order: Lamport1994 Knuth1984 Goossens1994 I hope I made it clear. Submitting separate main document, table and figure files is a requirement for many journals.


title: problem with installing l3regex

text: I have a problem. When I start pdfLatex using the package media9, there comes this error: **The required file tex\latex\l3experimental\l3str\l3regex.sty is missing.** So, I have downloaded the package l3experimental, but there is no path like this: l3experimental\l3str\l3regex.sty and l3regex.sty doesn't exist (only l3regex.dtx). So, I have adjusted accordingly the path and renamed the file format into sty, but the error doesn't disappear. Can You help me, please?


title: Document does not render with table

text: \begin{table}[htbp]     \centering     \caption{Zusammensetzung der Proben}         \begin{tabular}{cccc}             \toprule         \multirow{2}{*}{Probe} &  [TRA-Puffer 2.5$\frac{\text{mg}}{\text{ml}}$ Lipase] & [Gummi-Arabicum-Lösung] & [Speiseöl]\\         & = \si{\ml} & = \si{\ml} & = \si{\ml} \\     \midrule     1 & 5 & 20 & 0.03 \\       \bottomrule     \end{tabular}%       \label{tab:Zusammensetzung}%     \end{table}%      this renders just fine               \begin{table}[htbp]     \centering     \caption{Zusammensetzung der Proben}     \begin{tabular}{ccc}             \toprule     [TRA-Puffer 2.5$\frac{\text{mg}}{\text{ml}}$ Lipase] & [Gummi-Arabicum-Lösung] & [Speiseöl]\\          = \si{\ml} & = \si{\ml} & = \si{\ml} \\     \midrule      5 & 20 & 0.03 \\       \bottomrule     \end{tabular}%       \label{tab:Zusammensetzung}%     \end{table}%      with this code I'm stuck at rendering the .tex that contains this table. Any ideas why?


title: Highlighting in tabular environment

text: I am trying highlight a row of matrices in a tabular environment. However, the left brackets of the matrices are gone. And I don't know how to fix this. In addition, how can I highlight 2 elements within a matrix, i.e. highlight "... & \vec{v}_n" ? How can this be done ? ![picture](http://i.stack.imgur.com/hQUCJ.png)               \documentclass{article}          \usepackage{amsmath, colortbl}          \begin{document}     \begin{center}     \setlength{\tabcolsep}{0pt}     \begin{tabular}{c c c c c}     \rowcolor{yellow}     $A$     &     $\begin{bmatrix}     &&&&\\     \vec{v}_1 &\cdots &\vec{v}_r & \cdots & \vec{v}_n\\     &&&&     \end{bmatrix}     $     &     $=$     &     $\begin{bmatrix}     &&&&\\     \vec{u}_1 &\cdots & \vec{u}_r & \cdots& \vec{u}_m\\     &&     \end{bmatrix}$     &     $     \begin{bmatrix}     \sigma_1 &&&\\     &\ddots&&\\     && \sigma_r&\\     &&&     \end{bmatrix}     $\\     $(m \times n)$     &     $(n \times n)$     &     &     $(m \times n)$     &     $(m \times n)$     \end{tabular}     \end{center}     \end{document}


title: add a fake item in itemize as a placeholder

text: How to make phantom item in `itemize` environment? I want to 'animate' items in my beamer slides, so when I go from one slide to another new item pop up in a right place. I have workaround for one item but it does not work for two items:               \documentclass[10pt]{beamer}     \usetheme{Warsaw}      \usecolortheme{whale}     \usepackage{tikz}          \tikzset{sequencestyle/.style={minimum size=0.5cm, draw=gray, line width=1pt, inner sep = 2pt}}{}     \begin{document}          \begin{frame}{first slide}     \begin{itemize}         \item This is first item.                                                            \item[]         \item[]     \end{itemize}     \begin{tikzpicture}     \node [sequencestyle, fill=red, anchor=west, xshift=-\pgflinewidth] (node1) {A};     \node [sequencestyle, fill=blue, anchor=west, xshift=-\pgflinewidth] at (node1.east) (node1) {B};     \end{tikzpicture}     \end{frame}          \begin{frame}{second slide}     \begin{itemize}         \item This is first item.         \item This is second item.         \item[]     \end{itemize}     \begin{tikzpicture}     \node [sequencestyle, fill=red, anchor=west, xshift=-\pgflinewidth] (node1) {A};     \node [sequencestyle, fill=blue, anchor=west, xshift=-\pgflinewidth] at (node1.east) (node1) {C};     \end{tikzpicture}     \end{frame}          \end{document}      I bet this question is answered somewhere, but I could not find. EDIT: I updated the code. Besides of adding bullets I update some graphics elements. I added few things as an example.


title: list environment on glossary definition doesn’t work

text: I try to put an `inparaenum` environment on a glossary definition like this :               \newglossaryentry{polymo}%     {%       name={Lorem},         description={Lorem ipsum dolor         \begin{inparaenum}[i)]           \item sit amet           \item et adiqui         \end{inparaenum}     },     plural={polymorphisms}     }      But it give me this output: ![this](http://pix.toile-libre.org/upload/original/1409678912.png) So, this is my AWE:               \documentclass[a4paper,12pt,oneside,french]{article}     \usepackage{xltxtra}     \usepackage{ucs}     \usepackage{fontenc}     \usepackage[frenchb,french,francais]{babel}     \usepackage[nonumberlist,nopostdot,toc]{glossaries}     \makeglossaries          \longnewglossaryentry{lorem}%     {%       name={Lorem}     }%     {%     consectetur adipiscing elit. Sed non risus. Suspendisse%         \begin{itemize}%           \item lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum u           \item Aenean ut orci vel massa suscipit pulvinar. Nulla sollicitudin. Fusce varius.         \end{itemize}%     }          \author{Me}     \title{Lorem ipsum dolor}     \date{This day}          \begin{document}       \maketitle            Ut velit mauris, egestas sed, gravida nec, ornare ut, mi.       \begin{itemize}         \item Aenean ut orci vel massa suscipit pulvinar.         \item Nulla sollicitudin.         \item Fusce varius, ligula non tempus aliquam, nunc turpis ullamcorper nibh       \end{itemize}                 \glsaddall       \glossarystyle{index}       \printglossary[title=Glossaire,toctitle=Glossaire]          \end{document}      I compile it with `xelatex main.tex; makeglossaries main ; xelatex main.tex` and I get the following result: ![IMG](https://lut.im/ejArxiK7/PR6M4hes) As you see, I you `itemize` environment out of glossary definition and it work correctly. There is a way to force a correct output of `inparaenum` in glossary? Edit: I find it isn’t only the case with `inparaenum` but the glossary definition general not work with list environment.


title: Is there a BibTeX package for referencing other records within the BibTeX file? Displaying this?

text: I want to understand the relationships between a set of papers in a bibtex file, with regards to who authored what, and which references which, within the file. Suppose the paper `\cite{A}` references `\cite{B}`, and both of them reference `\cite{C}`. I want a BibTeX file that has this information, say like this:               @incollection{A,         Author = {Mr A},         Booktitle = {A Book},         Title = {Title of A},         Year = {2010},         Internalrefs = {B,C}     }          @incollection{B,         Author = {Mr B},         Booktitle = {B Book},         Title = {Title of B},         Year = {2009},         Internalrefs = {C}     }          @incollection{C,         Author = {Mr C},         Booktitle = {C Book},         Title = {Title of C},         Year = {1910},         Internalrefs = {}     }      With that entry I could, for example, draw a directed graph of entries within the BibTeX file. I suppose I can do this with a custom field, but I wondered if it has been done, or if there is a better way. I'd like to display for example               Metadata for paper A.  [B,C]     Metadata for paper B. [C]     Metadata for paper C.      Or alternatively just a graph with directed edges (A,B), (A,C), and possibly nodes for authors too, pointing to the papers they have published, and other authors they published with.


title: Memoir class: turn off section numbering but still have header

text: Trying to get rid of auto display of section numbers within text (section title only), but still have a header that gives the section title (also sans number). Can't seem to find this in memoir docs. In other words, I want some of the behavior of \section and some of \section*


title: I'm not getting the commas in the Bibliography!

text: I'm managing my references with JabRef. These are the references I'm referring to:               @ARTICLE{Deryugina1998,       author = {Deryugina E. I., Bourdon M. A., Reisfeld R. A. \&Strongin A.},       title = {Remodeling of collagen matrix by human tumor cells requires activation         and cell surface association of matrix metalloproteinase-2.},       journal = {Cancer Res.},       year = {1998},       volume = {58},       pages = {3743–3750},       owner = {Giovanni},       timestamp = {2013.06.21}     }          @ARTICLE{Fey2002,       author = {Fey P., Stephens S., Titus M. A. \& Chisholm R. L. Sad A.},       title = {A novel adhesion receptor in Dictyostelium.},       journal = {J. Cell Biol.},       year = {2002},       volume = {159},       pages = {1109–1119},       owner = {Giovanni},       timestamp = {2013.06.21}     }      The Tex file is as follows:               \documentclass[11pt]{book}     \usepackage{cite}     \bibliographystyle{unsrt}          \begin{document}          Here is an example \cite{Deryugina1998} \\     What about this one \cite{Fey2002}          \bibliography{paht_to_bib-file/bibfile}          \end{document}      Instead of a comma, I get an space on the authors' names in the Bibliography. What should I change? Thank you in advanced for your replies!


title: alignment of multicolumn cell

text: Consider this table               \begin{tabular}{lr@{}l}       Bla & \multicolumn{2}{c}{A $\to$ B} \\       \hline       X   & 23.1&* \\       Y   & 7.5&       \end{tabular}      which produces ![2-by-2 table with headings](http://i.stack.imgur.com/XitOb.png) The second column heading appears to be left-aligned. What do I have to do to make it centred?


title: Transforming "rel axis cs" to absolute coordinates?

text: I've got two plots arranged vertically using `\matrix`. I'd like to draw a vertical line, that spans over **both** plots with a margin of 1cm at the top and at the bottom. The starting point of the line should be expressed in the "plot coordinates", that is in the axis units. I know that `(rel axis cs:1,1)` gives me a reference to such a point, but this seams only to work from within the `\begin{axis}` and `\end{axis}` block. I tried to define a coordinate: `\coordinate (somePoint) at (axis cs:1,1); ` but when i call it from outside the axis environment, it gives me the wrong coordinates(namely the same numerical values as from within the axis environment. Is there some way to map those `rel axis cs` coordinates back to the global absolute coordinate frame of reference? That's what it looks right now:               \begin{tikzpicture}     \matrix{     \begin{axis}[     width=10cm,     height=2cm,     scale only axis,     xmin=0, xmax=40,     xlabel={},     ymin=0, ymax=3,     ylabel={Due},     title={}]     \addplot [     color=red,     solid     ]     coordinates{      (0,0)(0.2,0)(0.4,0)(0.6,0)(0.8,0)(0.999999999999993,0)(1,0)(1.00000000000001,2.01683462742295e-28)(1.14649554253811,0.0213589663789572)(1.29299108507621,0.0846022573641427)(1.43948662761431,0.187268256107688)(1.58598217015241,0.32528040626792)(1.72771701757709,0.487486503111306)(1.86945186500177,0.672263692138235)(2.01118671242645,0.873452331776075)(2.15292155985113,1.08467979233251)(2.31543104724529,1.33100985856566)(2.47794053463946,1.57234477636291)(2.64045002203363,1.79967676805324)(2.8029595094278,2.00551257147503)(2.98053021234866,2.19876151854678)(3.15810091526952,2.35244141897818)(3.33567161819038,2.46238739403315)(3.51324232111124,2.52760440278721)(3.68276033542686,2.54936421904797)(3.85227834974248,2.53395924312724)(4.0217963640581,2.48547075104593)(4.19131437837372,2.40939424477928)(4.36144250477258,2.31169263223231)(4.53157063117143,2.19954333533971)(4.70169875757028,2.08008163360487)(4.87182688396914,1.96004827223993)(5.07182688396914,1.82640088403678)(5.27182688396914,1.70979582906575)(5.47182688396914,1.617641255691)(5.67182688396914,1.55422821545046)(5.87182688396914,1.52140637481918)(6.07182688396914,1.51973030678785)(6.27182688396914,1.54742116712065)(6.47182688396914,1.60031420101171)(6.65584182087078,1.66647705176111)(6.83985675777243,1.74458910354999)(7.02387169467407,1.82945895191515)(7.20788663157572,1.91599278757709)(7.40788663157572,2.00643755970277)(7.60788663157572,2.08745942980826)(7.80788663157572,2.15434119261216)(8.00788663157572,2.20415598987417)(8.20788663157572,2.23541366658473)(8.40788663157572,2.24739040647259)(8.60788663157572,2.24078939178001)(8.80788663157572,2.21783083420832)(9.00788663157572,2.18162684312606)(9.20788663157572,2.13567933429455)(9.40788663157572,2.08393835162223)(9.60788663157572,2.03036373971575)(9.80788663157572,1.97864834179063)(10.0078866315757,1.93226909781905)(10.2078866315757,1.89406920512591)(10.4078866315757,1.86582500378213)(10.6078866315757,1.84845514086576)(10.8078866315757,1.84241900489823)(11.0078866315757,1.847323647113)(11.2078866315757,1.86186910799404)(11.4078866315757,1.88422069366918)(11.6078866315757,1.91230861115138)(11.8078866315757,1.94379273865212)(12.0078866315757,1.97632328033215)(12.2078866315757,2.00770648772674)(12.4078866315757,2.03587509712973)(12.6078866315757,2.05913715379371)(12.8078866315757,2.07643452896072)(13.0078866315757,2.0872190157743)(13.2078866315757,2.09121520153385)(13.4078866315757,2.08865532190129)(13.6078866315757,2.08031268413037)(13.8078866315757,2.0672798453753)(14.0078866315757,2.05078959741403)(14.2078866315757,2.03223686676426)(14.4078866315757,2.01302386478946)(14.6078866315757,1.99446079289273)(14.8078866315757,1.97778280166389)(15.0078866315757,1.96400221255129)(15.2078866315757,1.95375431056398)(15.4078866315757,1.9473706876799)(15.6078866315757,1.94502028574849)(15.8078866315757,1.94656933049034)(16.0078866315757,1.95156097193769)(16.2078866315757,1.95934742341858)(16.4078866315757,1.96919685943856)(16.6078866315757,1.98027998419899)(16.8078866315757,1.99176206079332)(17.0078866315757,2.00286238227422)(17.2078866315757,2.01284452454694)(17.4078866315757,2.02110421167421)(17.6078866315757,2.02726132441398)(17.8078866315757,2.03111647485838)(18.0078866315757,2.03256709492489)(18.2078866315757,2.03169103390014)(18.4078866315757,2.02875896942978)(18.6078866315757,2.02415568506227)(18.8078866315757,2.01831622468402)(19.0078866315757,2.01173416380239)(19.2078866315757,2.00490692603852)(19.4078866315757,1.9983001599852)(19.6078866315757,1.99235332531059)(19.8078866315757,1.98742747670345)(20.0078866315757,1.98375037334477)(20.2078866315757,1.9814421856748)(20.4078866315757,1.98056541140936)(20.6078866315757,1.9810749978163)(20.8078866315757,1.9828107839024)(21.0078866315757,1.98554439707405)(21.2078866315757,1.98901738137615)(21.4078866315757,1.99293611965805)(21.6078866315757,1.99700432820979)(21.8078866315757,2.00094439283236)(22.0078866315757,2.0044941703592)(22.2078866315757,2.00743802526637)(22.4078866315757,2.00963957743918)(22.6078866315757,2.01102648435241)(22.8078866315757,2.01156074684303)(23.0078866315757,2.01126847195621)(23.2078866315757,2.01024447415014)(23.4078866315757,2.00862433772467)(23.6078866315757,2.00656164635699)(23.8078866315757,2.00423110032442)(24.0078866315757,2.00180920816223)(24.2078866315757,1.99946150782)(24.4078866315757,1.99734439445886)(24.6078866315757,1.99558667463292)(24.8078866315757,1.99427002957375)(25.0078866315757,1.99343802309594)(25.2078866315757,1.99311376562469)(25.4078866315757,1.9932821555175)(25.6078866315757,1.993887079401)(25.8078866315757,1.99484805499117)(26.0078866315757,1.9960738293381)(26.2078866315757,1.99746046754702)(26.4078866315757,1.99890282575726)(26.6078866315757,2.0003022044146)(26.8078866315757,2.00156530553347)(27.0078866315757,2.00261519573034)(27.2078866315757,2.00340296141983)(27.4078866315757,2.00390237698767)(27.6078866315757,2.00409939715391)(27.8078866315757,2.00400275321987)(28.0078866315757,2.00364565586901)(28.2078866315757,2.0030758808723)(28.4078866315757,2.00234764845986)(28.6078866315757,2.00152279441603)(28.8078866315757,2.00066395302578)(29.0078866315757,1.99982997366688)(29.2078866315757,1.99907651446531)(29.4078866315757,1.99844952678017)(29.6078866315757,1.99797830207229)(29.8078866315757,1.99767862765334)(30.0078866315757,1.99755903715777)(30.2078866315757,1.99761448812748)(30.4078866315757,1.99782532679854)(30.6078866315757,1.99816319407035)(30.8078866315757,1.99859587490569)(31.0078866315757,1.99908658136522)(31.2078866315757,1.99959800312156)(31.4078866315757,2.00009505227201)(31.6078866315757,2.00054452608333)(31.8078866315757,2.00091897923118)(32.0078866315757,2.00120087177769)(32.2078866315757,2.00138070147857)(32.4078866315757,2.00145328573334)(32.6078866315757,2.00142153392016)(32.8078866315757,2.00129707649766)(33.0078866315757,2.00109674684236)(33.2078866315757,2.00083968537347)(33.4078866315757,2.00054777818341)(33.6078866315757,2.00024325037696)(33.8078866315757,1.99994702237613)(34.0078866315757,1.99967890105399)(34.2078866315757,1.9994552784696)(34.4078866315757,1.99928665737334)(34.6078866315757,1.99917875651556)(34.8078866315757,1.99913472227029)(35.0078866315757,1.99915287786672)(35.2078866315757,1.99922634123379)(35.4078866315757,1.99934512073163)(35.6078866315757,1.99949784442769)(35.8078866315757,1.99967149193678)(36.0078866315757,1.99985282434052)(36.2078866315757,2.00002936845614)(36.4078866315757,2.00018930880064)(36.6078866315757,2.00032285520595)(36.8078866315757,2.00042371897143)(37.0078866315757,2.00048845877475)(37.2078866315757,2.00051516514019)(37.4078866315757,2.00050480334607)(37.6078866315757,2.00046144548201)(37.8078866315757,2.00039102205832)(38.0078866315757,2.00030028938265)(38.2078866315757,2.0001969933946)(38.4078866315757,2.0000890200944)(38.6078866315757,1.99998380616944)(38.8078866315757,1.99988839988057)(39.0078866315757,1.99980864831923)(39.2078866315757,1.99974831682427)(39.4059149736818,1.99970975513462)(39.6039433157879,1.99969339913281)(39.8019716578939,1.99969872439116)(40,1.99972342906517)      };          \end{axis}     \\     \begin{axis}  [%     %view={0}{90},     width=10cm,     height=2cm,     scale only axis,     xmin=0, xmax=40,     xlabel={},     ymin=0, ymax=3,     ylabel={Uno},     title={}]     \addplot [     color=blue,     solid     ]     coordinates{      (0,0)(0.2,0)(0.4,0)(0.6,0)(0.8,0)(0.999999999999993,0)(1,0)(1.00000000000001,2.01683462742295e-28)(1.14649554253811,0.0213589663789572)(1.29299108507621,0.0846022573641427)(1.43948662761431,0.187268256107688)(1.58598217015241,0.32528040626792)(1.72771701757709,0.487486503111306)(1.86945186500177,0.672263692138235)(2.01118671242645,0.873452331776075)(2.15292155985113,1.08467979233251)(2.31543104724529,1.33100985856566)(2.47794053463946,1.57234477636291)(2.64045002203363,1.79967676805324)(2.8029595094278,2.00551257147503)(2.98053021234866,2.19876151854678)(3.15810091526952,2.35244141897818)(3.33567161819038,2.46238739403315)(3.51324232111124,2.52760440278721)(3.68276033542686,2.54936421904797)(3.85227834974248,2.53395924312724)(4.0217963640581,2.48547075104593)(4.19131437837372,2.40939424477928)(4.36144250477258,2.31169263223231)(4.53157063117143,2.19954333533971)(4.70169875757028,2.08008163360487)(4.87182688396914,1.96004827223993)(5.07182688396914,1.82640088403678)(5.27182688396914,1.70979582906575)(5.47182688396914,1.617641255691)(5.67182688396914,1.55422821545046)(5.87182688396914,1.52140637481918)(6.07182688396914,1.51973030678785)(6.27182688396914,1.54742116712065)(6.47182688396914,1.60031420101171)(6.65584182087078,1.66647705176111)(6.83985675777243,1.74458910354999)(7.02387169467407,1.82945895191515)(7.20788663157572,1.91599278757709)(7.40788663157572,2.00643755970277)(7.60788663157572,2.08745942980826)(7.80788663157572,2.15434119261216)(8.00788663157572,2.20415598987417)(8.20788663157572,2.23541366658473)(8.40788663157572,2.24739040647259)(8.60788663157572,2.24078939178001)(8.80788663157572,2.21783083420832)(9.00788663157572,2.18162684312606)(9.20788663157572,2.13567933429455)(9.40788663157572,2.08393835162223)(9.60788663157572,2.03036373971575)(9.80788663157572,1.97864834179063)(10.0078866315757,1.93226909781905)(10.2078866315757,1.89406920512591)(10.4078866315757,1.86582500378213)(10.6078866315757,1.84845514086576)(10.8078866315757,1.84241900489823)(11.0078866315757,1.847323647113)(11.2078866315757,1.86186910799404)(11.4078866315757,1.88422069366918)(11.6078866315757,1.91230861115138)(11.8078866315757,1.94379273865212)(12.0078866315757,1.97632328033215)(12.2078866315757,2.00770648772674)(12.4078866315757,2.03587509712973)(12.6078866315757,2.05913715379371)(12.8078866315757,2.07643452896072)(13.0078866315757,2.0872190157743)(13.2078866315757,2.09121520153385)(13.4078866315757,2.08865532190129)(13.6078866315757,2.08031268413037)(13.8078866315757,2.0672798453753)(14.0078866315757,2.05078959741403)(14.2078866315757,2.03223686676426)(14.4078866315757,2.01302386478946)(14.6078866315757,1.99446079289273)(14.8078866315757,1.97778280166389)(15.0078866315757,1.96400221255129)(15.2078866315757,1.95375431056398)(15.4078866315757,1.9473706876799)(15.6078866315757,1.94502028574849)(15.8078866315757,1.94656933049034)(16.0078866315757,1.95156097193769)(16.2078866315757,1.95934742341858)(16.4078866315757,1.96919685943856)(16.6078866315757,1.98027998419899)(16.8078866315757,1.99176206079332)(17.0078866315757,2.00286238227422)(17.2078866315757,2.01284452454694)(17.4078866315757,2.02110421167421)(17.6078866315757,2.02726132441398)(17.8078866315757,2.03111647485838)(18.0078866315757,2.03256709492489)(18.2078866315757,2.03169103390014)(18.4078866315757,2.02875896942978)(18.6078866315757,2.02415568506227)(18.8078866315757,2.01831622468402)(19.0078866315757,2.01173416380239)(19.2078866315757,2.00490692603852)(19.4078866315757,1.9983001599852)(19.6078866315757,1.99235332531059)(19.8078866315757,1.98742747670345)(20.0078866315757,1.98375037334477)(20.2078866315757,1.9814421856748)(20.4078866315757,1.98056541140936)(20.6078866315757,1.9810749978163)(20.8078866315757,1.9828107839024)(21.0078866315757,1.98554439707405)(21.2078866315757,1.98901738137615)(21.4078866315757,1.99293611965805)(21.6078866315757,1.99700432820979)(21.8078866315757,2.00094439283236)(22.0078866315757,2.0044941703592)(22.2078866315757,2.00743802526637)(22.4078866315757,2.00963957743918)(22.6078866315757,2.01102648435241)(22.8078866315757,2.01156074684303)(23.0078866315757,2.01126847195621)(23.2078866315757,2.01024447415014)(23.4078866315757,2.00862433772467)(23.6078866315757,2.00656164635699)(23.8078866315757,2.00423110032442)(24.0078866315757,2.00180920816223)(24.2078866315757,1.99946150782)(24.4078866315757,1.99734439445886)(24.6078866315757,1.99558667463292)(24.8078866315757,1.99427002957375)(25.0078866315757,1.99343802309594)(25.2078866315757,1.99311376562469)(25.4078866315757,1.9932821555175)(25.6078866315757,1.993887079401)(25.8078866315757,1.99484805499117)(26.0078866315757,1.9960738293381)(26.2078866315757,1.99746046754702)(26.4078866315757,1.99890282575726)(26.6078866315757,2.0003022044146)(26.8078866315757,2.00156530553347)(27.0078866315757,2.00261519573034)(27.2078866315757,2.00340296141983)(27.4078866315757,2.00390237698767)(27.6078866315757,2.00409939715391)(27.8078866315757,2.00400275321987)(28.0078866315757,2.00364565586901)(28.2078866315757,2.0030758808723)(28.4078866315757,2.00234764845986)(28.6078866315757,2.00152279441603)(28.8078866315757,2.00066395302578)(29.0078866315757,1.99982997366688)(29.2078866315757,1.99907651446531)(29.4078866315757,1.99844952678017)(29.6078866315757,1.99797830207229)(29.8078866315757,1.99767862765334)(30.0078866315757,1.99755903715777)(30.2078866315757,1.99761448812748)(30.4078866315757,1.99782532679854)(30.6078866315757,1.99816319407035)(30.8078866315757,1.99859587490569)(31.0078866315757,1.99908658136522)(31.2078866315757,1.99959800312156)(31.4078866315757,2.00009505227201)(31.6078866315757,2.00054452608333)(31.8078866315757,2.00091897923118)(32.0078866315757,2.00120087177769)(32.2078866315757,2.00138070147857)(32.4078866315757,2.00145328573334)(32.6078866315757,2.00142153392016)(32.8078866315757,2.00129707649766)(33.0078866315757,2.00109674684236)(33.2078866315757,2.00083968537347)(33.4078866315757,2.00054777818341)(33.6078866315757,2.00024325037696)(33.8078866315757,1.99994702237613)(34.0078866315757,1.99967890105399)(34.2078866315757,1.9994552784696)(34.4078866315757,1.99928665737334)(34.6078866315757,1.99917875651556)(34.8078866315757,1.99913472227029)(35.0078866315757,1.99915287786672)(35.2078866315757,1.99922634123379)(35.4078866315757,1.99934512073163)(35.6078866315757,1.99949784442769)(35.8078866315757,1.99967149193678)(36.0078866315757,1.99985282434052)(36.2078866315757,2.00002936845614)(36.4078866315757,2.00018930880064)(36.6078866315757,2.00032285520595)(36.8078866315757,2.00042371897143)(37.0078866315757,2.00048845877475)(37.2078866315757,2.00051516514019)(37.4078866315757,2.00050480334607)(37.6078866315757,2.00046144548201)(37.8078866315757,2.00039102205832)(38.0078866315757,2.00030028938265)(38.2078866315757,2.0001969933946)(38.4078866315757,2.0000890200944)(38.6078866315757,1.99998380616944)(38.8078866315757,1.99988839988057)(39.0078866315757,1.99980864831923)(39.2078866315757,1.99974831682427)(39.4059149736818,1.99970975513462)(39.6039433157879,1.99969339913281)(39.8019716578939,1.99969872439116)(40,1.99972342906517)      };          \end{axis}     \\};          \end{tikzpicture}


title: Replace bullet in *itemize* \item, but don't replace number in *enumerate* \item

text: I'm keeping a document of notes in LaTeX, so I would like todo lists as part of the document (not margin notes, or notes of what to do to the document). I would quite like to define a set of new commands that work nicely in an numbered list with `\enumerate` or a simple list with `\itemize`, but at the moment I need 2 versions. Here's what I have so far:               \documentclass{article}          \usepackage{wasysym}          \newcommand{\todoitem}{\item[\Square]~}     \newcommand{\doneitem}{\item[\CheckedBox]~}     \newcommand{\notdoneitem}{\item[\XBox]~}     \newcommand{\todoItem}{\item \Square~}     \newcommand{\doneItem}{\item \CheckedBox~}          \begin{document}          Using \texttt{\textbackslash doneItem} (nice) and \texttt{\textbackslash todoitem} (not nice) in a \texttt{\textbackslash itemize}.     \begin{itemize}         \doneItem Code the input for the new variables         \todoitem Code the $y$-mapping         \item Code the averaging     \end{itemize}          Using \texttt{\textbackslash doneitem} (nice) and \texttt{\textbackslash todoItem} (not nice) in a \texttt{\textbackslash enumerate}.     \begin{enumerate}         \doneitem Code the input for the new variables         \todoItem Code the $y$-mapping         \item Code the averaging     \end{enumerate}          \end{document}      which produces: ![enter image description here](http://i.stack.imgur.com/Uxd6p.png) Is there a way to do the equivalent of my `\todoitem` inside an `itemize` environment, but my `\todoItem` inside an `\enumerate`? Can/should I test what environment I'm in?


title: texlipse builder script configuration

text: I need to compile my file in the following way:               pdflatex file.tex     bibtex book     bibtex journals     bibtex conferences     pdflatex file.tex     pdflatex file.tex      Of course, I can build it manually from command line, however, is there any way, how to setup TeXlipse to build it automatically in this way? * * * well, I know, how to create the script for compilation, the question is, how to force TeXlipse to use my script?


title: Optimising for on-screen viewing

text: I have found some examples where a document, which is _not a presentation_ , was nevertheless typeset with a papersize fitting screen aspect ratio:   * A ConTeXt manual   * Another ConTeXt manual   * The pdfscreen package manual These documents also have a corresponding "print version", with traditional papersize and design, probably created from the same source file with different preambles. The article mode of the `beamer` class also seems to encourage this idea. I'm interested in   * examples where this approach was used; was it successful, and why/why not?   * is this idea more prevalent in ConTeXt? is it easier to do this in ConTeXt than in LaTeX?   * other ways to do this in (La)TeX; documentclasses/packages I don't know about   * maybe other software more suitable for this than TeX systems. After all TeX is generally oriented towards printed material... or not? * * * **Some background:** At my university they almost never distribute printed lecture notes. Instead, the material is always available online (in fact I heard that this is required from all lecturers). In some cases the online material is in A4 form, written with Word or LaTeX; and in other cases the material is the lecture slides, created with LaTeX or PowerPoint. Some students prefer on-screen viewing and studying, and others print out everything. Now I've read somewhere that the A4 scrolling format is not really pleasant for on-screen viewing. On the other hand printing a set of slides on A4 paper is not really economical. The above documents give me the (purely theoretical) idea that teachers could (were they all using TeX) create screen and print versions of their material so that everyone can learn comfortably.


title: Symbolic coordinates with commas

text: How can I use `symbolic x coords={}` with commas as decimal separators? For example, I need to use `symbolic x coords={0,1.5,1.3}`, which gives full stops as decimal separators. Using `use comma` does not have an effect (logically, so I have nothing against that). Minimal working example:               \documentclass[border=2pt]{standalone}     \usepackage[utf8]{inputenc}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}     \begin{axis}[         symbolic x coords={0,1.5,1.3},         xtick=data,         /pgf/number format/.cd,         use comma,     ]         \addplot coordinates {             (0, 1)             (1.5, 2)             (1.3, 1)         };     \end{axis}     \end{tikzpicture}     \end{document}


title: One column headings in twocolumn environment

text: In a `twocolumn` document, I would like chapter headings that span on two columns but don't introduce a page break:   * `section` doesn't introduce a page break, but it doesn't span on two columns;   * `chapter` spans on two columns but introduces a page break (even double page break);   * I can't use `multicols` because I'm using floats in my columns.


title: Bad page break with \newenvironment, \refstepcounter and hyperref

text: I tried to define some environment but came across bad page breaks sometimes. The minimal working example is as follows:               \documentclass[b5paper]{article}     \usepackage{hyperref} % page break is correct when removing this line          \newcounter{question}     \newenvironment{question}{\par\refstepcounter{question}\thequestion. }{}     % page break is correct when changing \refstepcounter to \stepcounter          \begin{document}          \fontsize{40pt}{50pt}\selectfont          \begin{question}111\end{question}     \begin{question}111\end{question}     \begin{question}111\end{question}          \begin{question}     If ... Then ... ( ).\par     (A) 11; (B) 22; (C) 33; (D) 44.     \end{question}          \begin{question}111\end{question}     \begin{question}111\end{question}     \begin{question}111\end{question}     \begin{question}111\end{question}     \begin{question}111\end{question}          \end{document}      The page break is correct when removing hyperref package, or changing \refstepcounter to \stepcounter. What is the problem with this example?


title: pandoc converting tex to docx with references - not enclosed in parentheses / brackets

text: I am trying to convert a pretty basic latex file to docx format using pandoc and am having a slight issue with the in-text citation not being enclosed in parentheses `()` tex doc minimal example               \documentclass{article}     \usepackage[margin=1in]{geometry}     \usepackage{apacite}          \begin{document}     \section{Introduction}          \cite{hendrickson_resource_2000}          \end{document}      And the bib file looks like:               @article{hendrickson_resource_2000,         title = {Resource use and environmental emissions of {US} construction sectors},         volume = {126},         issn = {0733-9364},         number = {1},         journal = {Journal of Construction Engineering and Management},         author = {Hendrickson, Chris and Horvath, Arpad},         year = {2000},         pages = {38--44}     },      Using an APA citation style, such as: https://github.com/citation-style- language/styles/blob/master/apa-5th-edition.csl I would expect that the in- text citation would be:               (Hendrickson & Horvath, 2000)      ...but instead it is:               Hendrickson & Horvath (2000)      I have tried multiple conversion paths, styles and command line options and am not getting any change in the in-text citation despite changes in the overall reference list / bibliography. My current attempt is:               pandoc -o test.docx test.tex --bibliography References.bibtex --csl apa5.csl      How do I get the intended enclosed in-text citation?


title: shift title text up with line

text: I have been inspired by this link; Shift title and author text up? but when I use the tips on my own group (not using title). I still get that the text starts farther down on the page. I think this is a default with report- documentclass....does anybody have suggestion on how to push the text farther up on the page? or alter the report class somehow to achieve the same?   here is my current document state;               \documentclass[12pt,a4paper,onecolumn]{report}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}          \begin{document}     \begingroup       \centering     \LARGE "title"\\[0.1em]     \large "subtitle"\par     \endgroup


title: vertical dotfill

text: **How can I make vertical dotfill?** In other words, I need vertical (dashed) line which will fill all available vertical space. (I tried to make it via rules, but not successfully.)


title: Example from PSTricks manual not rendering

text: Can you set me straight in the very first attempt to use PSTricks drawing features please? The ultimate goal is to draw a triangle with the vertices angles marked on the inside with `\alpha`, `\beta`, and `\gamma` and sides marked with `a`, `b`, and `c` on the outside. I've started by copying a sample from PSTricks user manual page 70 and wrapping it in a `\pspicture`:               \documentclass[10pt,letterpaper]{beamer}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage{pstricks}     \begin{document}          \pspicture(0,0)(5,5)     \pspolygon(0,0)(4,3)(4,0)     \pcline[offset=12pt]{|-|}(0,0)(4,3)     \ncput*[nrot=:U]{Length}     \endpspicture          \end{document}      Doing this in Texmaker, I fcompile using `latex` --> `dvips` --> `ps2pdf`. `latex`-build ends with the errors:               Line 13 ! ! Undefined control sequence.<recently read> \pcline \pcline     Line 14 ! Undefined control sequence. 3 \ncput      The rendered file displays a triangle drawn correctly, but overlaid along the adjucent cathetus with the following text:               12 [offset=12pt]—-—(0,0)(4,3) 3 *[nrot=:U]Length


title: pgfplotstable: use of /.add{}{}

text: I would like to build tables using `pgfplotstable`. Everything works fine so far -- except for one small thing: Although having read the corresponding section in the manual, I experience problems using the add-macro. This is a MWE that works fine:               \documentclass{scrartcl}          \usepackage[ansinew]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{pgfplotstable}     \usepackage{booktabs}          \pgfplotstableset{         naftext/.style={             string type,             column type={l},             empty cells with={--}             },           header=false,         every head row/.style={before row=\toprule},         every first row/.style={before row=\midrule},         every last row/.style={after row=\bottomrule},         }          \begin{document}              This is my table.              \pgfplotstableread{ %some fictional data                 Martin  lemon       strawberry                 Lucy        cake        dessert                      }\loadedtable         \pgfplotstabletypeset[                                 columns={0,1,2},                                 columns/0/.style={naftext, column name=label column},                                 columns/1/.style={naftext, column name=column 1},                                 columns/2/.style={naftext, column name=column 2},                                 ]\loadedtable          \end{document}}      I now would like to add a vertical line between label column and column 1 without changing by global style definition. I tried               columns/0/.style={naftext, column name=label column, column type/.add{}{|}}      which (I thought) would add me a `|` after the `l` -- but unfortunately `pgfplotstable` reports an error when doing this: > Package pgfkeys Error: I do not know the key '/pfgplots/table/column > type/.add{}{|}' and I am going to ingore it. Perhaps you misspelled it. Any ideas?


title: Polymer structure in PPCHTEX - how to make big brackets?

text: I'm trying to draw polymer structure using PPCHTEX under ConTeXt packages, my current code is               \starttext     \startformula     \setupchemical[scale=small,width=fit]     \startchemical     \chemical[ONE,SB3,SB7,SB5,SB1,Z0,Z3,Z7,Z5][C,CH_3,CH_3,O]     \chemical[MOV1,ONE,Z0][O]     \chemical[MOV1,ONE,SB3,SB7,SB5,SB1,Z0,Z3,Z7,Z1][C,CH_3,CH_3,CH_3]     \chemical[MOV5,MOV5,MOV5,MOV5,ONE,SB3,SB7,SB5,SB1,Z0,Z3,Z7,Z5][C,CH_3,CH_3,CH_3]     \chemical[MOV1,3OFF1,3OFF1,OPENCOMPLEX]     \chemical[MOV1,MOV1,CLOSECOMPLEX]     \stopchemical     \stopformula     \stoptext      the problem is, that brackets produced by `OPENCOMPLEX` and `CLOSECOMPLEX` are too small, I have also tried using `\Bigg\lbrace` and `\Bigg\rbrace` instead, but it also produces too small brackets Is there any way, how to make correct, big brackets?


title: (longtable threeparttablex) table notes font size

text: What I need is the font size of table notes being 8pt. Reading the package documentations and the questions here, I as a beginner tried:               \usepackage{threeparttablex}     \setTableNoteFont{\fontsize{8}{9.6}}      or `\setTableNoteFont{\scriptsize}` as this would give me an 8pt when using 12pt in my document class. Another try was working with `etoolbox` like in that answer without success. Well, changing the table note size to `\scriptsize` manually in the specific table notes of a table worked with `\scriptsize\textit{Anmerkungen.} \lipsum`, but not the setting in the preamble. MWE:               \documentclass[man,12pt,a4paper,noextraspace,donotrepeattitle]{apa6}           \usepackage[latin1]{inputenc}           \usepackage[english,ngerman]{babel}          \usepackage[T1]{fontenc}                \usepackage{lmodern}                   \usepackage{lipsum}                \setlipsumdefault{8}                    \usepackage{etoolbox}          \usepackage{longtable}     \setlength{\LTleft}{0pt}                \usepackage{booktabs}          \usepackage{threeparttable}          \usepackage{environ}          \usepackage{anyfontsize}          \usepackage{threeparttablex}     \setTableNoteFont{\scriptsize}               \begin{document}               \begin{ThreePartTable}               \begin{longtable}{l r r @{\hskip 0.5in} l r r}                \toprule          \multicolumn{3}{c}{Liste 1} & \multicolumn{3}{c}{Liste 2} \\   \midrule          krankheitsassoziiert & \% & WL & neutral & \% & WL \\[0.5ex]   \midrule          Wort 1        &  5.53   &  12   &   Wort 2  &   7.30    &   12      \\     Wort 3        &  0.25   &   9   &   Wort 4  &   0.21    &   10  \\     Wort 5        &  0.07   &  13   &   Wort 6  &   0.07    &   13  \\ [1ex]           \bottomrule          \end{longtable}               \begin{tablenotes}              \textit{Anmerkungen.} \lipsum              \end{tablenotes}               \end{ThreePartTable}     \end{document}      Thanks for helping a latex beginner!


title: What is good practice when preparing a package for CTAN?

text: I'm thinking of submitting a package to CTAN, and would like some hints which will help keep the path as smooth as possible for me, the CTAN administators, and the final users. Please tell me what I should take care with in doing this. In particular, the doubts I have are:   1. I'm not a top-drawer TeXnician, so I don't really understand .dtx and .ins files. Can I get by without them, and is it OK just to submit a zip file containing a flat folder?   2. I'll be preparing the package user documentation (by hand) as a PDF. Should I use a specific document class, or can I, for example, use `memoir`?   3. How important is it to provide the source LaTeX code for the documentation?   4. If I _do_ provide the documentation source, should I "declare" the prerequisite packages for _formatting the manual_ (as opposed to the prereqs for _using the package_ ) as prereqs for the package?


title: Step numbering in algorithms

text: Is there an algorithm package that allows one to achieve the style of the algorithms in the book Combinatorial Optimization by Korte and Vygen? I am interested specifically in the numbering of the steps by encircled numbers.


title: TeXlipse, bibunits, and multiple bibliographies

text: I am using Eclipse 4.2 with TeXlipse 1.5 (the version bundled with StatET 3.2) and MixTeX 2.9. I have no problem using TeXlipse, bibtex, and `natbib` to produce bibliographies. But I often want to include multiple bibliographies (i.e., lists of references) in the same document. `natbib` isn't up to this task. In these cases, I turn to the `bibunits` package. The problem is that Texlipse doesn't work well with `bibunits`. When latex (or pdflatex, etc.) is run on a document that includes \usepackage{bibunits}, it generates an .aux file for each bibliography that is to be created: bu1.aux, bu2.aux, and so on. If the bibliographies are to be produced, bibtex needs to process each of these .aux files:               bibtex bu1.aux     bibtex bu2.aux      and so on. But Texlipse doesn't seem to know this. So it doesn't, by default, direct bibtex to process those .aux files. The result is that the bibliographies don't display as they should. Here is a complete example of a document that the command-line tools (pdflatex, bibtex) handle fine but that gives Texlipse a lot of trouble. Although it uses `bibunits`, it has only one bibliography (to keep things simple):               \documentclass{article}     \usepackage{bibunits}       \defaultbibliography{references}       \defaultbibliographystyle{plainnat}     \usepackage{natbib}     \begin{document}       \begin{bibunit}         Lorem ipsum dolor \citep{Smith_Lorem_1980}.         \putbib       \end{bibunit}     \end{document}      where `references.bib` is               @BOOK{Smith_Lorem_1980,       AUTHOR    = {John Smith},       TITLE     = {Sit Amet},       YEAR      = {1980},       PUBLISHER = {Knopf},     }      (The example requires a separate .bib file: TeXlipse doesn't support `\thebibliography` commands.) Is there a way to change the Texlipse configuration so that it can handle the .aux file that is generated when files like the example file are processed? Right now, I have rigged up a workaround (configuring BibTeX as an "external tool" to process the .aux files), but it is clunky.


title: Bibliography with subbibliographies with biblatex

text: What is the best way to make bibliography with multiple levels in biblatex? Concretely, someone wanted to have bibliography of his own papers, where under each of them is the list of papers that cited him. It should look that way: >   1. Author, Article 1,Journal.   >  Cited by >     1. Another author, Article >     2. Another author 2, Article bla bla >   2. Author, Article 2, Journal   >  Cited by >     1. Another author 3,... > I came with solution which uses custom field `usera` in author's records. There is a list of comma separated citekeys of citing works and in bibliography I use fullcite for their printing. There is my code:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[czech]{babel}     \usepackage[]{tgschola}     \usepackage[          style=numeric         ,backend=bibtex         ,defernumbers=true     ]{biblatex}          \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @article{Sh:1,     author = {Shelah, Saharon},     ams-subject = {(02.50)},     journal = {Israel Journal of Mathematics},     review = {MR 40-7102},     pages = {187--202},     title = {Stable theories},     volume = {7},     year = {1969},     keywords={own},     usera={Sh:4, Sh:5, Sh:6}     },          @article{Sh:2,     author = {Shelah, Saharon},     ams-subject = {(05.04)},     journal = {Journal of Combinatorial Theory},     review = {MR 39-2652},     pages = {298--300},     title = {Note on a min-max problem of Leo Moser},     volume = {6},     year = {1969},     keywords={own}     },          @article{Sh:3,     author = {Shelah, Saharon},     ams-subject = {(02.50)},     journal = {Annals of Mathematical Logic},     review = {MR 44-2593},     pages = {69--118},     title = {Finite diagrams stable in power},     volume = {2},     year = {1970},     keywords={own},     usera={Sh:7, Sh:8, Sh:9}     },          @article{Sh:4,     author = {Shelah, Saharon},     ams-subject = {(02.50)},     journal = {Journal of Symbolic Logic},     review = {MR 44-52},     pages = {73--82},     title = {On theories $T$ categorical in $|T|$},     volume = {35},     year = {1970},     },          @article{Sh:5,     author = {Shelah, Saharon},     ams-subject = {(02.35)},     journal = {Israel Journal of Mathematics},     review = {MR 41-6674},     pages = {75--79},     title = {On languages with non-homogeneous strings of quantifiers},     volume = {8},     year = {1970},     },          @article{Sh:6,     author = {Shelah, Saharon},     ams-subject = {(02.50)},     journal = {Pacific Journal of Mathematics},     review = {MR 42-2932},     pages = {541--545},     title = {A note on Hanf numbers},     volume = {34},     year = {1970},     },          @article{Sh:7,     author = {Shelah, Saharon},     ams-subject = {(02H13)},     journal = {Journal of Symbolic Logic},     review = {MR 48:3735},     pages = {83--84},     title = {On the cardinality of ultraproduct of finite sets},     volume = {35},     year = {1970},     },          @article{Sh:8,     author = {Shelah, Saharon},     ams-subject = {(02H05)},     journal = {Israel Journal of Mathematics},     review = {MR 46:1581},     pages = {193--198},     title = {Two cardinal compactness},     volume = {9},     year = {1971},     },          @article{Sh:9,     author = {Shelah, Saharon},     ams-subject = {(02.52)},     journal = {Annals of Mathematical Logic},     review = {MR 44-56},     pages = {441--447},     title = {Remark to ``local definability theory'' of Reyes},     volume = {2},     year = {1970},     },          \end{filecontents}     \addbibresource{\jobname.bib}          \defbibfilter{own}{keyword=own} % Authors publications must have set keyword to "own"               \DeclareFieldFormat{usera}{%      \fullcite{#1}\addperiod     }          \renewbibmacro*{finentry}{%       \finentry       \ifbibliography         {\usebibmacro{entrytail}}         {}%       }          \newbibmacro*{entrytail}{%      \newunit\newblock     \iffieldundef{usera}{}{%     \begingroup     \par Cited by:\par     \renewcommand\multicitedelim{\addperiod\item\nopunct}      \begin{enumerate} %      \item%     \printfield{usera}      \end{enumerate}     \endgroup     }     }     \begin{document}     \nocite{*}     \printbibliography[filter=own]     \end{document}      Author's records must have set keywords to "own" and they are printed in bibliography using               \defbibfilter{own}{keyword=own}     ...     \printbibliography[filter=own]      I redefined macro `finentry` to end entry, print text cited by and to use fullcite with content of the field `usera`. Fullcite by default print fields delimited with semicolon, so I redefined `multicitedelim` to               \renewcommand\multicitedelim{\addperiod\item\nopunct}      Result looked something like this: ![Note dot before last entry](http://i.stack.imgur.com/olPOW.png) Now I have two questions:   1. Doesn't exist some better or cleaner way to achieve what I want? For example using entrysets?   2. I have problems with dots, I use `\nopunct` to avoid them, but this prints unwanted spaces. And how to portably avoid them at beginning of entries? This must be some issue with punctuation tracker, but I can't see from where they are comming.


title: How to add an APA-style citation with no author in ConTeXt?

text: I need to cite some articles which were created by some professional organizations, so no authors or editors are listed:               @Article{noname2012,         author = {},         title = {This is the title},         publisher = {This is the publisher},         year = {2012},         address = {Miami}     }      I am using the APA style in ConTeXT, setup as follows:               \setupbibtex[database={Bibliography}, sort=author]     \setuppublications[alternative=apa]      Whenever I place a citation, `\cite{noname2012}` it displays like this:               (noname2012, 2012)      How can I the bibliography display the title instead of the name, when the name and editor fields are empty?


title: Section symbol in table of contents

text: I'd like sections in the table of contents to have not only the number, but also the symbol § before them. How can I make it?


title: Why does `! Missing $ inserted.` occur when using \verb in beamer?

text: When I use `\verb+...+` within `beamer` I get               ! Missing $ inserted.     <inserted text>                      $     l.6 \end{frame}          ?       What is going wrong and how do I fix this problem? A minimal example is               \documentclass{beamer}          \begin{document}     \begin{frame}{Title}     Some text \verb+\int+     \end{frame}     \end{document}


title: Enabling c_t and longs_t without enabling s_t ligatures

text: I'm using the `Hoefler Text` font in `xelatex` with long s:               \usepackage{fontspec}     \setmainfont[Contextuals=Inner]{Hoefler Text}      ![enter image description here](http://i.stack.imgur.com/e9meM.jpg) But I want to use the `ct` ligature (it's from the `Rare` set):               \usepackage{fontspec}     \setmainfont[Contextuals=Inner, Ligatures={Rare}]{Hoefler Text}      ![enter image description here](http://i.stack.imgur.com/YyJVb.jpg) Oh no! `fontspec` has also replaced all of Hoefler's longst ligatures with st ligatures when loading ct ligatures from the `Rare` ligature set. Is there a way to enable the (`Rare`) ct ligature from `Hoefler Text` without also enabling the (`Rare`) st ligature? I tried to use the `selnolig` package to selective disable the st ligature (`\nolig{st}{s|t}`) but that also stops the longst ligature from being used. I'm trying to produce text how people of the early 19th century were able to:   * Example #1: Encyclopædia Britannia (5th edition), 1817. ![enter image description here](http://i.stack.imgur.com/hnhQw.jpg)   * Example #2: The Minion Pro font correctly uses the longst and ct ligatures. ![enter image description here](http://i.stack.imgur.com/IFBkb.png) Note: People of the early 19th century didn't buy Minion Pro for US $199 (which is like us paying US $4.1 million), so I'd also rather not =)


title: Best approach to detect whether hierarchy of sectioning commands is respected?

text: Is there a package that checks whether each subsection lies in a parent section, each subsubsection lies in a parent subsection, etc. and issues a warning or error otherwise? Not to my knowledge, but that would be a very handy feature for documents in which consistency of the document structure is paramount. How would you detect that hierarchy of sectioning commands is not respected, e.g. that a subsection has no parent section? My current approach would be to redefine all sectioning commands (but the top one) to check that the value of the counter associated with the sectioning command one level up is nonzero, as illustrated by the following MWE:               \documentclass{article}          \makeatletter     \long\def\subsection{%     \ifnum\value{section}=0\@latex@warning{subsection outside section}\else\fi     \@startsection {subsection}{2}{\z@ }{-3.25ex\@plus -1ex \@minus -.2ex}{1.5ex      \@plus .2ex}{\normalfont \large \bfseries }     }     \makeatother          \begin{document}     %\section{foo}     \subsection{bar}     \end{document}      However, this approach would not be effective if numbering of the sectioning command one level up (section, in the case of my MWE) was modified to start at 0. Can you think of a more robust approach? **Edit** : `hyperref` does issue a warning if hierarchy is not respected (see Gonzalo's comment). However, users may choose to ignore them. How would issue errors rather than warnings?


title: How to define the numbering of specific sections in a report

text: I am writing lecture notes referring to specific chapters and sections in the textbook chapters and sections. I use multiple textbooks, so Chapters 1 and 2 of my lecture notes may be from Textbook X, but Chapter 3 of the lecture notes is Chapter 5 in Textbook Y. Similarly for sections. I simply want the section numbering in my lectures to reflect the true section numbers of the respective parts in the textbooks. I put a note at the beginning of every chapter/section to identify the current textbook. So my question is: how can I re-number specific chapters/sections in a report personally?


title: inserting two column image in desired place

text: I am creating an IJCA article.I have a situation where I have to insert a two column image at some place.After that normal text follow.I used the package **float**.I am attaching the code below.               \begin{figure*}[h!]     \centering     \includegraphics[scale=0.5]{result}     \caption{result of process}     \label{fig:result}     \end{figure*}      But now the image is displayed in the next page center rather than the position where I wanted.How to make it display it where I wanted??


title: Pgfplots linear regression (mean square error)

text: Pgfplots offers the possibility to compute a linear regression, as in the following post Linear regression - trend line with pgfplots . However, is it possible to compute the mean square error ? My first idea would be to create a new column with the square error and then compute the mean. But is it possible to do it inside pgfplots ?


title: What exactly are the semantics of noun case?

text: I'm a LaTeX and LyX beginner. One thing that's making me scratch my head is LyX's _Toggle noun_ button. According to the manual, I should use noun case for people's names, and the default rendering style is small caps. Fine. But I'd like some more detail. If I was writing an article about, say, the life of Joe Bloggs, should I set his name in noun case? Even in the title? If I list Jane Bloggs in my acknowledgements, should I set her name in noun case? Where else should I use noun case? * * * **ADDENDUM:** Just to be clear, I fully understand the principle of separating semantics from presentation. My question is: what **are** the semantics? For example:   * Should I use noun case for citations, to show that the author being cited is human, not an organisation?   * What about when the author of **this** document is human? Should I set my own name in noun case in the _author_ field?   * Is noun case just for citing or acknowledging, or is it used **whenever** a human is referenced by name?


title: How to use "latex -> dvips -> ps2pdf" to get pdf output?

text: I am using **pdflatex** to produce a `.pdf` file. But, it is not working when `.eps` files are compiled. I have tried it with **XeLatex** but, it is hanging out sometimes. Now I want to produce a `.pdf` file using two steps : `latex -> dvips -> ps2pdf`. I don't know how to use it. The location of my `.tex` file (i.e., `Myfile.tex`) is on the desktop and the system is **Ubuntu11.04**.   As for example :               \documentclass{book}     \usepackage{graphicx,epstopdf}            \begin{document}     Here some text       \begin{figure}[ht]     \begin{center}     \includegraphics[height=3.5cm,width=3cm,angle=0]{fig1}     \caption{First figure}     \end{center}     \end{figure}       Here some text     \end{document}      How can I do so?


title: How to change hyperlinks color {Lyx}

text: I am using Lyx and i would like to change the color of hyperlinks on my bibliography. The default color is pink (at least on report layout , which i am using) Is it possible to change it, to blue ? Thanks in advance :-)


title: How do I make the \min and max bold?

text: Refering to this question How to make the table fit into the column? How should I make the `\min` and `\max` bold?


title: Distance of the labels from the axis

text: I am a beginner with the package TikZ. I am using pgfplots to produce a very simple plot. The code I am using has been copied from an example found on the web, but my output is different from the example I saw. This is the code:               \pgfplotsset{   width=0.45\linewidth,                  xmin=0,xmax=100,                  ymin=0,ymax=1,                  grid=major                 }     \begin{tikzpicture}     \begin{axis}[         xlabel=Percentage,         ylabel=Accuracy]         \addplot[smooth,mark=*,blue] plot coordinates {         (11,0.6)     (15,    0.71)     (19,    0.7)     (25,    0.74)     (32,    0.73)     (40,    0.78)     (50,    0.81)     (51,    0.79)     (55,    0.79)     (56,    0.79)     (58,    0.77)     (61,    0.77)     (69,    0.77)     };     \addlegendentry{legend}     [...]      In the output the labels of the axis ticks are too close to the line. Is there any way to move the farther away? [I cannot post an image because my reputation is too low] I have read the manual and checked other questions, but I cannot find the option/command I need to use. Could you please help me? * * * While writing the minimal example as requested in the comments, I discovered that I see that problem only when the document class is `baposter`. With the `article` class it works ok. The minimal working example with class `baposter` follows:               \documentclass[a0paper,portrait]{baposter}          \usepackage{graphicx}          \usepackage{tikz}     \usepackage{pgfplots}          \begin{document}            \begin{poster}{         grid=false,          colspacing=0.7em,         eyecatcher=false,          bgColorOne=white,         background=plain,        } %poster        % eyecatcher        {             }        % title        {         TITLE        }        %Authors        {         AUTHORS        }        % Logo        {             }            \headerbox{header}{name=header,column=0,row=0,span=4}{          \pgfplotsset{width=0.45\linewidth,                  xmin=0,xmax=100,                  ymin=0,ymax=1,                  grid=major                 }         \begin{tikzpicture}           \begin{axis}[             xlabel=p,             ylabel=a]             \addplot[smooth,mark=*,blue] plot coordinates {                 (11, 0.6)                 (15, 0.71)                 (19, 0.7)                 (25, 0.74)                  };             \addlegendentry{legend}           \end{axis}         \end{tikzpicture}     } % headerbox          \end{poster}          \end{document}


title: Altering fontsize in equations globally

text: I am trying to typeset all formulas in an article using `\small` font. If I use `\DeclareMathSizes{9}{8}{6}{4}`, then the size of in-line math in regular text is also changed. However, I want to redefine the font size only for multi-line equations wrapped in an `align` environment. I also tried to redefine the align command in the following way:               \let\oldalign=\align     \renewcommand{\align}{\small\oldalign}      This results in some text paragraphs after `align` environments now being typeset in `\small` font, although well outside the `align` environment. Sorry, I don't have a minimal example right now. It might have to do with the `cls` template I'm using (`sig-alt-full`). I tried adding a `\normalsize` as a fix, without success:               \let\oldalign=\align     \renewcommand{\align}{\small\oldalign\normalsize}      I then proceeded to defining my own `align` environment, as follows:               \newenvironment{myalign}     {% begin code     \begin{small}     \begin{align}     }     {% end code     \end{align}     \end{small} }      This one fails because, according to LaTeX, `\begin{small}` is ended by `\end{document}`.


title: Filter rows from a table

text: I have a large table that contains results for many instances, and I want to make separate tables and plots grouped by one (or more) field. In this minimal working example, I want to make a table and a plot for all 20 houses instances, and another table and plot for all 200 houses instances. The best thing would be to obtain two subtables from the original one, keeping only the rows with houses=20, or houses=200 (as I would get if I could separate data in table file). I would prefer to avoid to explicitly filter each time I typeset a table or a plot, or at least it should take minimal code to do so (perhaps defining a custom style?).               \documentclass{article}          \usepackage{pgfplots}     \pgfplotsset{compat=newest}          \usepackage{pgfplotstable}          \begin{document}          \pgfplotstableread{houses  instance    value     20      1           8919     20      2           8965     20      3           8901     20      4           8816     20      5           8875     20      6           9027     20      7           8915     20      8           8907     20      9           8832     20      10          8934     200     1           84714     200     3           85630     200     4           84748     200     5           84565     200     6           85109     200     7           84588     200     8           84638     200     9           84673     200     10          85170     }{\fulltable}               Table for all instances          \pgfplotstabletypeset{\fulltable}          \begin{tikzpicture}       \begin{axis}[           title={Values for all instances},           xlabel={Instance},           ylabel={Value}]         \addplot+[scatter, only marks] table[x=instance, y=value]           {\fulltable};       \end{axis}     \end{tikzpicture}          \newpage          Table for 20 houses instances          ???          Plot for 20 houses instances          ???          \end{document}      * * * ## Edit By looking at similar questions, I came up with this partial solution:               %\filtertable{table}{field}{value}{#1}     \newcommand{\filtertable}[4]{     \pgfplotstablegetelem{#4}{#2}\of{#1}     \ifnum\pgfplotsretval=#3\relax     \else\pgfplotstableuserowfalse\fi     }          %\filtertableplot{table}{field}{value}     \newcommand{\filtertableplot}[3]{     \pgfplotstablegetelem{\coordindex}{#2}\of{#1}     \ifnum\pgfplotsretval=#3     \else     \def\pgfmathresult{}     \fi     }          Table for 200 houses instances          \pgfplotstabletypeset[         columns={instance,value},         row predicate/.code={\filtertable{\fulltable}{houses}{200}{#1}}       ]       {\fulltable}          \begin{tikzpicture}       \begin{axis}[           title={Values for 200 houses instances},           xlabel={Instance},           ylabel={Value},           x filter/.code={\filtertableplot{\fulltable}{houses}{200}{#1}}]         \addplot+[scatter, only marks] table[x=instance, y=value]           {\fulltable};       \end{axis}     \end{tikzpicture}      Is there a way to avoid repeating the table name, to avoid explicitly using `#1`, and to wrap the `x filter=...` and `row predicate=...` in styles?