title: How to additional personal information in moderncv banking classic modified

text: The result should be as shown here: ![this picture](http://i.stack.imgur.com/h0gPG.png)               \name{John}{Doe}     \title{Curriculum Vit\ae{}}       \birthdate{07 June 2014}  <============ adding this line.     \addresss{}{}      but my TeX code at the bottom doesn't produce this. Can anyone see the problem?               %% Edited preamble          \newcommand*{\birthdate}[1]{\@birthdate{#1}}          \makeatletter     \renewcommand*{\namefont}{\fontsize{34}{36}\mdseries\upshape}     \renewcommand*{\titlefont}{\LARGE\mdseries\slshape}     \renewcommand*{\addressfont}{\small\mdseries\slshape}     \renewcommand*{\quotefont}{\large\slshape}     \renewcommand*{\sectionfont}{\Large\mdseries\upshape}     \renewcommand*{\subsectionfont}{\large\mdseries\upshape}     \renewcommand*{\hintfont}{}          % styles     \renewcommand*{\namestyle}[1]{{\namefont\textcolor{color0}{#1}}}     \renewcommand*{\titlestyle}[1]{{\titlefont\textcolor{color2}{#1}}}     \renewcommand*{\addressstyle}[1]{{\addressfont\textcolor{color1}{#1}}}     \renewcommand*{\quotestyle}[1]{{\quotefont\textcolor{color1}{#1}}}     \renewcommand*{\sectionstyle}[1]{{\sectionfont\textcolor{color1}{#1}}}     \renewcommand*{\subsectionstyle}[1]{{\subsectionfont\textcolor{color1}{#1}}}     \renewcommand*{\hintstyle}[1]{{\hintfont\textcolor{color0}{#1}}}     % optional maketitle width to force a certain width (if set to 0pt, the width is calculated automatically)     \newlength{\makecvtitlenamewidth}     \setlength{\makecvtitlenamewidth}{0pt}% dummy value     \renewcommand*{\makecvtitle}{%       % recompute lengths (in case we are switching from letter to resume, or vice versa)       \recomputecvlengths%       % optional detailed information (pre-rendering)       \def\phonesdetails{}%       \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number         \protected@edef\phonesdetails{\phonesdetails\protect\makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%       \def\socialsdetails{}%       \collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link         \protected@edef\socialsdetails{\socialsdetails\protect\makenewline\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}%       \newbox{\makecvtitledetailsbox}%       \savebox{\makecvtitledetailsbox}{%         \addressfont\color{color2}%         \begin{tabular}[b]{@{}r@{}}%         \ifthenelse{\isundefined{\@birthdate}}{}{\makenewline{\@birthdate}}%           \ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet%             \ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}% if \addresstreet is defined, \addresscity and addresscountry will always be defined but could be empty             \ifthenelse{\equal{\@addresscountry}{}}{}{\makenewline\@addresscountry}}%           \phonesdetails% needs to be pre-rendered as loops and tabulars seem to conflict           \ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}%           \ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httplink{\@homepage}}%           \socialsdetails% needs to be pre-rendered as loops and tabulars seem to conflict           \ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}%         \end{tabular}       }%       % optional photo (pre-rendering)       \newbox{\makecvtitlepicturebox}%       \savebox{\makecvtitlepicturebox}{%         \ifthenelse{\isundefined{\@photo}}%         {}%         {%           \hspace*{\separatorcolumnwidth}%           \color{color1}%           \setlength{\fboxrule}{\@photoframewidth}%           \ifdim\@photoframewidth=0pt%             \setlength{\fboxsep}{0pt}\fi%           \framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%       % name and title       \newlength{\makecvtitledetailswidth}\settowidth{\makecvtitledetailswidth}{\usebox{\makecvtitledetailsbox}}%       \newlength{\makecvtitlepicturewidth}\settowidth{\makecvtitlepicturewidth}{\usebox{\makecvtitlepicturebox}}%       \ifthenelse{\lengthtest{\makecvtitlenamewidth=0pt}}% check for dummy value (equivalent to \ifdim\makecvtitlenamewidth=0pt)         {\setlength{\makecvtitlenamewidth}{\textwidth-\makecvtitledetailswidth-\makecvtitlepicturewidth}}%         {}%       \begin{minipage}[b]{\makecvtitlenamewidth}%         \namestyle{\@firstname\ \@lastname}%         \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%       \end{minipage}%       \hfill%       % optional detailed information (rendering)       \llap{\usebox{\makecvtitledetailsbox}}% \llap is used to suppress the width of the box, allowing overlap if the value of makecvtitlenamewidth is forced       % optional photo (rendering)       \usebox{\makecvtitlepicturebox}\\[2.5em]%       % optional quote       \ifthenelse{\isundefined{\@quote}}%         {}%         {{\centering\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}%       \par}% to avoid weird spacing bug at the first section if no blank line is left after \makecvtitle          \makeatother      the working tex document:               %% start of file `template.tex'.     %% Copyright 2006-2013 Xavier Danaux (xdanaux@gmail.com).     %     % This work may be distributed and/or modified under the     % conditions of the LaTeX Project Public License version 1.3c,     % available at http://www.latex-project.org/lppl/.               \documentclass[11pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')          % moderncv themes     \moderncvstyle{banking}                             % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'     \moderncvcolor{blue}                               % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'     %\renewcommand{\familydefault}{\sfdefault}         % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name     %\nopagenumbers{}                                  % uncomment to suppress automatic page numbering for CVs longer than one page          % character encoding     %\usepackage[utf8]{inputenc}                       % if you are not using xelatex ou lualatex, replace by the encoding you are using     %\usepackage{CJKutf8}                              % if you need to use CJK to typeset your resume in Chinese, Japanese or Korean          % adjust the page margins     \usepackage[scale=0.75]{geometry}     %\setlength{\hintscolumnwidth}{3cm}                % if you want to change the width of the column with the dates     %\setlength{\makecvtitlenamewidth}{10cm}           % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...          %% Edited premable          \newcommand*{\birthdate}[1]{\@birthdate{#1}}     %\newcommand*{\emailtwo}[1]{\def\@emailtwo{#1}}     \makeatletter     \renewcommand*{\namefont}{\fontsize{34}{36}\mdseries\upshape}     \renewcommand*{\titlefont}{\LARGE\mdseries\slshape}     \renewcommand*{\addressfont}{\small\mdseries\slshape}     \renewcommand*{\quotefont}{\large\slshape}     \renewcommand*{\sectionfont}{\Large\mdseries\upshape}     \renewcommand*{\subsectionfont}{\large\mdseries\upshape}     \renewcommand*{\hintfont}{}          % styles     \renewcommand*{\namestyle}[1]{{\namefont\textcolor{color0}{#1}}}     \renewcommand*{\titlestyle}[1]{{\titlefont\textcolor{color2}{#1}}}     \renewcommand*{\addressstyle}[1]{{\addressfont\textcolor{color1}{#1}}}     \renewcommand*{\quotestyle}[1]{{\quotefont\textcolor{color1}{#1}}}     \renewcommand*{\sectionstyle}[1]{{\sectionfont\textcolor{color1}{#1}}}     \renewcommand*{\subsectionstyle}[1]{{\subsectionfont\textcolor{color1}{#1}}}     \renewcommand*{\hintstyle}[1]{{\hintfont\textcolor{color0}{#1}}}     % optional maketitle width to force a certain width (if set to 0pt, the width is calculated automatically)     \newlength{\makecvtitlenamewidth}     \setlength{\makecvtitlenamewidth}{0pt}% dummy value     \renewcommand*{\makecvtitle}{%       % recompute lengths (in case we are switching from letter to resume, or vice versa)       \recomputecvlengths%       % optional detailed information (pre-rendering)       \def\phonesdetails{}%       \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number         \protected@edef\phonesdetails{\phonesdetails\protect\makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%       \def\socialsdetails{}%       \collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link         \protected@edef\socialsdetails{\socialsdetails\protect\makenewline\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}%       \newbox{\makecvtitledetailsbox}%       \savebox{\makecvtitledetailsbox}{%         \addressfont\color{color2}%         \begin{tabular}[b]{@{}r@{}}%         \ifthenelse{\isundefined{\@birthdate}}{}{\makenewline{\@birthdate}}%           \ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet%             \ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}% if \addresstreet is defined, \addresscity and addresscountry will always be defined but could be empty             \ifthenelse{\equal{\@addresscountry}{}}{}{\makenewline\@addresscountry}}%           \phonesdetails% needs to be pre-rendered as loops and tabulars seem to conflict           \ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}%           \ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httplink{\@homepage}}%           \socialsdetails% needs to be pre-rendered as loops and tabulars seem to conflict           \ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}%         \end{tabular}       }%       % optional photo (pre-rendering)       \newbox{\makecvtitlepicturebox}%       \savebox{\makecvtitlepicturebox}{%         \ifthenelse{\isundefined{\@photo}}%         {}%         {%           \hspace*{\separatorcolumnwidth}%           \color{color1}%           \setlength{\fboxrule}{\@photoframewidth}%           \ifdim\@photoframewidth=0pt%             \setlength{\fboxsep}{0pt}\fi%           \framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%       % name and title       \newlength{\makecvtitledetailswidth}\settowidth{\makecvtitledetailswidth}{\usebox{\makecvtitledetailsbox}}%       \newlength{\makecvtitlepicturewidth}\settowidth{\makecvtitlepicturewidth}{\usebox{\makecvtitlepicturebox}}%       \ifthenelse{\lengthtest{\makecvtitlenamewidth=0pt}}% check for dummy value (equivalent to \ifdim\makecvtitlenamewidth=0pt)         {\setlength{\makecvtitlenamewidth}{\textwidth-\makecvtitledetailswidth-\makecvtitlepicturewidth}}%         {}%       \begin{minipage}[b]{\makecvtitlenamewidth}%         \namestyle{\@firstname\ \@lastname}%         \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%       \end{minipage}%       \hfill%       % optional detailed information (rendering)       \llap{\usebox{\makecvtitledetailsbox}}% \llap is used to suppress the width of the box, allowing overlap if the value of makecvtitlenamewidth is forced       % optional photo (rendering)       \usebox{\makecvtitlepicturebox}\\[2.5em]%       % optional quote       \ifthenelse{\isundefined{\@quote}}%         {}%         {{\centering\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}%       \par}% to avoid weird spacing bug at the first section if no blank line is left after \makecvtitle          \makeatother          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          % personal data     \name{John}{\underline{Doe}}     \title{Curriculum Vit\ae{}}                               % optional, remove / comment the line if not wanted     %\birthdate{26 June 1989}     %\address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and "country" arguments can be omitted or provided empty          \phone[mobile]{+1~(234)~567~890}                   % optional, remove / comment the line if not wanted; the optional "type" of the phone can be "mobile" (default), "fixed" or "fax"     %\phone[fixed]{+2~(345)~678~901}     %\phone[fax]{+3~(456)~789~012}     \email{asdf@gmail.com}                               % optional, remove / comment the line if not wanted     %\homepage{www.johndoe.com}                         % optional, remove / comment the line if not wanted     %\social[linkedin]{john.doe}                        % optional, remove / comment the line if not wanted     %\social[twitter]{jdoe}                             % optional, remove / comment the line if not wanted     %\social[github]{jdoe}                              % optional, remove / comment the line if not wanted     \extrainfo{Class 3 Driving License}                 % optional, remove / comment the line if not wanted     \photo[70pt][0.1pt]{picture}                       % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file     \quote{To use my ability and knowledge to provide contributions that will lead to the growth and success of your company.}                                 % optional, remove / comment the line if not wanted          % to show numerical labels in the bibliography (default is to show no labels); only useful if you make citations in your resume     %\makeatletter     %\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}     %\makeatother     %\renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]}% CONSIDER REPLACING THE ABOVE BY THIS          % bibliography with mutiple entries     %\usepackage{multibib}     %\newcites{book,misc}{{Books},{Others}}     %----------------------------------------------------------------------------------     %            content     %----------------------------------------------------------------------------------     \begin{document}     %\begin{CJK*}{UTF8}{gbsn}                          % to typeset your resume in Chinese using CJK     %-----       resume       ---------------------------------------------------------     \makecvtitle          \section{Education}     \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}  % arguments 3 to 6 can be left empty     \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}          \section{Master thesis}     \cvitem{title}{\emph{Title}}     \cvitem{supervisors}{Supervisors}     \cvitem{description}{Short thesis abstract}          \section{Experience}     \subsection{Vocational}     \cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.\newline{}%     Detailed achievements:%     \begin{itemize}%     \item Achievement 1;     \item Achievement 2, with sub-achievements:       \begin{itemize}%       \item Sub-achievement (a);       \item Sub-achievement (b), with sub-sub-achievements (don't do this!);         \begin{itemize}         \item Sub-sub-achievement i;         \item Sub-sub-achievement ii;         \item Sub-sub-achievement iii;         \end{itemize}       \item Sub-achievement (c);       \end{itemize}     \item Achievement 3.     \end{itemize}}     \cventry{year--year}{Job title}{Employer}{City}{}{Description line 1\newline{}Description line 2}     \subsection{Miscellaneous}     \cventry{year--year}{Job title}{Employer}{City}{}{Description}          \section{Languages}     \cvitemwithcomment{Language 1}{Skill level}{Comment}     \cvitemwithcomment{Language 2}{Skill level}{Comment}     \cvitemwithcomment{Language 3}{Skill level}{Comment}          \section{Computer skills}     \cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}     \cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}     \cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}          \section{Interests}     \cvitem{hobby 1}{Description}     \cvitem{hobby 2}{Description}     \cvitem{hobby 3}{Description}          \section{Extra 1}     \cvlistitem{Item 1}     \cvlistitem{Item 2}     \cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}          \section{Extra 2}     \cvlistdoubleitem{Item 1}{Item 4}     \cvlistdoubleitem{Item 2}{Item 5\cite{book1}}     \cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}          \section{References}     \begin{cvcolumns}       \cvcolumn{Category 1}{\begin{itemize}\item Person 1\item Person 2\item Person 3\end{itemize}}       \cvcolumn{Category 2}{Amongst others:\begin{itemize}\item Person 1, and\item Person 2\end{itemize}(more upon request)}       \cvcolumn[0.5]{All the rest \& some more}{\textit{That} person, and \textbf{those} also (all available upon request).}     \end{cvcolumns}          % Publications from a BibTeX file without multibib     %  for numerical labels: \renewcommand{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}% CONSIDER MERGING WITH PREAMBLE PART     %  to redefine the heading string ("Publications"): \renewcommand{\refname}{Articles}     %\nocite{*}     %\bibliographystyle{plain}     %\bibliography{publications}                        % 'publications' is the name of a BibTeX file          % Publications from a BibTeX file using the multibib package     %\section{Publications}     %\nocitebook{book1,book2}     %\bibliographystylebook{plain}     %\bibliographybook{publications}                   % 'publications' is the name of a BibTeX file     %\nocitemisc{misc1,misc2,misc3}     %\bibliographystylemisc{plain}     %\bibliographymisc{publications}                   % 'publications' is the name of a BibTeX file          \clearpage     %-----       letter       ---------------------------------------------------------     % recipient data     \recipient{Company Recruitment team}{Company, Inc.\\123 somestreet\\some city}     \date{January 01, 1984}     \opening{Dear Sir or Madam,}     \closing{Yours faithfully,}     \enclosure[Attached]{curriculum vit\ae{}}          % use an optional argument to use a string other than "Enclosure", or redefine \enclname     \makelettertitle          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.          Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.          Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.          Albert Einstein discovered that $e=mc^2$ in 1905.          \[ e=\lim_{n \to \infty} \left(1+\frac{1}{n}\right)^n \]          \makeletterclosing          %\clearpage\end{CJK*}                              % if you are typesetting your resume in Chinese using CJK; the \clearpage is required for fancyhdr to work correctly with CJK, though it kills the page numbering by making \lastpage undefined     \end{document}               %% end of file `template.tex'.


title: Beginning document on a page number other than "1"

text: How do we create a new document starting on different pages? (Such as the first page of the document starts on 3 instead of 1.)


title: How to increase the page number counter by a fixed number in latex

text: > **Possible Duplicate:**   >  Change starting page number Good day all! I have two external pdf files I want to include as appendix in my report. The first file has 5 pages and the second has 7 pages. In order to make sure that my table of content reflect the appendices, I have include two appendices (Appendix A and B) in my latex file.               \begin{appendices}     \chapter{\label{app:appena}}     \section{Experiment 1}     \chapter{\label{app:appenb}}     \section{Experiment 2}     \end{appendices}      Now the last page of my work (without the appendices) is 32. Going by my method, Appendix A appears as page 33 and Appendix B appear as page 34 in table of content. How can I make the page number counter to increase by 5 so Appendix A appears as 33 and Appendix B appears as 38. Thanks in anticipation.


title: \nameref : how to get counter's label value instead of section name

text: Hi I build a customer list environment with a counter, and I'd like to be able to reference the name the label associated with the counter. The code below produces an output similar to this: **Requirements**   * REQ1 Requirement one   * REQ2 Requirement two **Another Section**   * We want read "Requirement One" here : _Requirements_.   * But instead we get the section name! Code:               \documentclass[a4paper,10pt]{article}     \usepackage[utf8x]{inputenc}     \usepackage[bookmarks, colorlinks=true, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}          \newcounter{reqcount}     \renewcommand{\thereqcount}{\textbf{REQ\arabic{reqcount}}}          \newenvironment{nfrequirements}       { \begin{list}{\textbf{\thereqcount}}{\usecounter{reqcount}} }       { \end{list} }          \newcommand{\requirement}[1]{       \item \textbf{#1}       \addcontentsline{toc}{subsection}{\thereqcount \quad #1}     }               \begin{document}     \tableofcontents          \section{Requirements Section}     \begin{requirements}       \requirement{Requirement one} \label{req_one} \\       description       \requirement{Requirement two} \label{req_two} \\       description     \end{requirements}          \section{Another Section}     We want read "Requirement One" here : \nameref{req_one}.     But instead we get the section name.          \end{document}


title: Package for changing font with each letter?

text: I want to write a text in which each letter uses a different font. It is rather short. I guess I could make it letter by letter, selecting the font I want for each of them. Are there easier ways?


title: Draw curved path inside circle

text: How to draw the curved line inside the red circle in this picture : ![enter image description here](http://i.stack.imgur.com/gO1LD.png) **MWE**               \documentclass[tikz]{standalone}     \usepackage[utf8]{inputenc}     \usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,backgrounds}          \begin{document}        \begin{tikzpicture}           \draw (-2,0) circle (.4cm) node[below=.5cm, align=center] {Client};           \draw[color=red] (0,0) circle (.4cm) node[below=.5cm, text width=1.5cm, color=black, align=center] {Homme du milieu};           \draw (2,0) circle (.4cm) node[below=.5cm, align=center, text width=1cm] {Serveur web};           \draw[color=blue] (-2, 0) -- (-.4,0);           \draw[color=blue] (.4, 0) -- (2,0);                \draw[-, color=red] (-.4,0) to[out=-30,in=100,looseness=2] (.4,0) ;        \end{tikzpicture}     \end{document}      How does function the `to[out=-30,in=100,looseness=2]` work?. I read an answer that suggested using it for making curved paths but I don't know how it works.


title: How can I throw a custom error from \newcommand

text: I'd like to write a command that checks the given arguments and throws an error if they are not in a range. I'm imagining this would look something like this:               \usepackage{xifthen}          \newcommand{\wb}[2][]{\ifthenelse{{#2} > 0 \AND {#2} < 7}         {\includegraphics[{#1}]{wong-baker/{#2}.eps}}}         {%throw error here}     }      How can I check parameters in newcommand?


title: Termcal prints the calculated days on the table border

text: The termcal package works fine for two or more `\calday` entries. However, if there are six `\skipday` entries, than the calculated days on the table border. Here is a snapshot of the problem: ![enter image description here](http://i.stack.imgur.com/2tnzA.png) This example was produced with the following code:               \documentclass[a4]{article}     \usepackage{termcal}          \newcommand{\TRClass}{%     \skipday % Tuesday     \skipday % Tuesday     \skipday % Wednesday (no class)     \calday[Thursday]{\classday} % Thursday     \skipday % Friday      \skipday\skipday % weekend (no class)     }          \newcommand{\Holiday}[2]{%     \options{#1}{\noclassday}     \caltext{#1}{#2}     }          \begin{document}     \paragraph*{Lab Tentative Schedule for Electric Circuit Analysis:}     \begin{center}     \begin{calendar}{8/18/2014}{2} % Semester starts on 1/11/2010 and last for 16                         % weeks, including finals week     \setlength{\calboxdepth}{.3in}     \TRClass     % schedule     \caltexton{1}{Lab briefing}     \caltextnext{2.2 Charge, Current, Voltage, and Power\\     2.3 Voltage and Current Sources\\     2.4 Ohm's Law}          \end{calendar}     \end{center}     \end{document}      Any help on this problem is more than welcome. Oliver Faust


title: General Formatting Problems

text: I have started to learn LaTeX on my own, but as you will see the general formatting has lots of mistakes. I have tried my best but would really appreciate some help, here is the text:               \documentclass[a4paper]{article}     \usepackage[german]{babel}     \usepackage{datetime}     \usepackage{amsmath}     \title{Lineare Algebra}     \author{Serie 1, Stefan G.}          \begin{document}          1.1 Gegeben sei A =           $$\begin{pmatrix}       5 & 3  \\       0 & -4 \\       \end{pmatrix}$$          Man soll A darstellen als Produkt zweier orthogonaler und einer diagonalen Matrix $\rightarrow$ Singul\"arwertzerlegung der Matrix A:          $$A = U \cdot \Sigma \cdot V^T = \begin{pmatrix} 5 & 3  \\  0 & -4 \\ \end{pmatrix} = \begin{pmatrix} \frac{2}{\sqrt{5}} & -\frac{1}{\sqrt{5}}  \\  -\frac{1}{\sqrt{5}} & -\frac{2}{\sqrt{5}} \\ \end{pmatrix} \cdot \begin{pmatrix} 2\sqrt{10} & 0 \\  0 & \sqrt{10} \\ \end{pmatrix} \cdot \begin{pmatrix} \frac{1}{\sqrt{2}} & -\frac{1}{\sqrt{2}}  \\  \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} \\ \end{pmatrix} $$          Weiter soll man die Operator 2-Norm, die Frobeniusnorm, sowie den Spektralradius von A und     $A^{-1}$ bestimmen.      Die Operator 2-Norm berechnet sich mit $\sqrt{\lambda_{max}A^H*A}$ wobei $\lambda_{max}$ der maximale Eigenwert der Matrix ist und "H" in der Potenz für hermitesch bzw. im reellen Fall transponierte Matrix steht.     \"Uber die Berechnung des charakteristischen Polynomes von $A^H*A$ =           $$\begin{pmatrix}       34 & -12  \\       -6 & 8 \\       \end{pmatrix}$$          erh\"alt man für die 2-Norm $\sqrt{40}$. Die Frobeniusnorm berechnet sich aus aus der Wurzel der Summe aller quadrierten Einträge der Matrix und betr\"agt hier $\sqrt{50}$.     Für die Spektralradien berechnet man die Absolutbeträge der grössten Eigenwerte.      Berechnung für A: Das charakteristische Polynom ist $\Chi(A) = (5-\lambda_1)(-4-\lambda_2)$ und damit     der grösste Betrag eines Eigenwertes und somit auch der Spektralradius = 5.          Die Inverse von A kann man mit dem Gauss-Algorithmus berechnen und erh\"alt $A^-1$ =           $$\begin{pmatrix}       5 & 3  \\       0 & -4 \\       \end{pmatrix}$$     Damit ist der Spektralradius von $A^-1 = \frac{1}{4}$.          Wo ist denn Proposition 0.50 im Skript? Nicht gesehen.          1.2. Gegeben seien  A = $\begin{pmatrix}       0.005 & 1  \\       1 & 1 \\       \end{pmatrix}$     und der Vektor b = $\begin{pmatrix} 0.5 \\1  \end{pmatrix} $          Berechnen soll man f\"ur Ax = b den L\"osungsvektor x i) mit dem Gaussalgorithmus ii) in F(10,3,-10,10) ohne Pivotisierung und  iii) in F(10,3,-10,10) mit Pivotisierung.          i) Mit dem Gaussalgorithmus erh\"alt man für den L\"osungsvektor Folgendes:          $$\begin {pmatrix} 0.005&1&0.5\\1&1&1 \end {pmatrix}\to \begin {pmatrix} 0.005&1&0.5\\0&-199&-99 \end {pmatrix}\to \begin {pmatrix} 1&200&100\\0&1&\frac{99}{199} \end {pmatrix} \to\begin {pmatrix} 1&0&100-200\cdot \frac {99}{199}\\0&1&\frac{99}{199} \end {pmatrix}=\begin {pmatrix} 1&0&\frac {100}{199}\\0&1&\frac{99}{199} \end {pmatrix}$$          ii) Ohne ausf\"uhrlich den Rechenweg nochmals aufzuschreiben, welcher gleich ist wie bei i) ausser dass man nach pr\"ziser Berechnung auf die festgelegte Pr\"zision rundet erhalte ich f\"ur $x_1 = 0.497 $ und f\"ur $x_2 = 0.6 $          iii) Mit Pivotisierung erhalte ich $x_1 = 0.497$ and $x_2 = 0.503$.     Wohl weil 0.005 nicht mehr in der Diagonalen ist (und Runden wohl i.A. nicht assoziativ ist).               1.3 Zu beweisen:          a) $ \|A\|_2 \leq \|A\|_F \leq \sqrt{\operatorname{rank}(A)}\|A\|_2 $          b) $ \frac{1}{\sqrt{n}}\|A\|_\infty \leq \|A\|_2 \leq \sqrt{m}\|A\|_\infty  $          c) $ \frac{1}{\sqrt{m}}\|A\|_1 \leq \|A\|_2 \leq \sqrt{n}\|A\|_1  $               Zu a):Beide Normen sind invariant wenn  $\mathbf A$ mit einer unit\"aren Matrix multipliziert wird. Man kann also die Singul\"arwertzerlegung berechnen, anschliessend die unit\"aren Matrizen streichen und die Diagonalmatrizen beibehalten. Für eine gegebene Spektralnorm, ist die kleinste Frobenius Norm wenn nur ein einzelner Singul\"arwert diesen Wert und alle anderen Null sind, und die gr\"osste Norm wird erreicht wenn  alle Singul\"arwerte diesen Wert haben; also          $$\|\mathbf A\|_2 \leq \|\mathbf A \|_{\mathrm F} \leq \sqrt d\,\|\mathbf A\|_2\;,$$          also, $A=1$ and $B=\sqrt d$.          F\"ur b) und c) kann man von den entsprechenden Vektornormen Gebrauch machen, insbesondere gilt . Zusammen mit der Definition der Normen ergeben sich dann die \"Aquivalenzen. Insbesondere gilt zum Beispiel dass $ \|x\|_\infty \leq \|x\|_2 \leq \sqrt{n}\|x\|_\infty  $. Zusammen mit $\|A\|_2 = max \|Ax\|_2$ und $\|A\|_\infty = \max \sum |a_{ij}|$               1.4 Nicht gel\"ost                1.5     Was soll man denn hier genau machen? Die analytische, i.e. geschlossene Form ist ja bereits gegeben mit der Rekursionsformel:          $$x^{n+1} = x^{n} - \frac{f(x^n)}{f'(x^{n})}$$          wobei man den angegebenen Startwert f\"ur x^0 einsetzen kann und die Ableitung der Funktion nat\"urlich     einfach x^4 - 2x^2 + 1 ist.          Einzige Nullstelle in $\mathbb R$ ist x = 0 wegen      $$\frac{1}{5} x^5 - \frac{2}{3} x^3 + x= x( \frac{1}{5} x^4 - \frac{2}{3} x^2 +1) $$.     Ein paar Werte ausgerechnet: es sieht aus als w\"urde die Funktion oszillieren mit $x_0,-x_0,x_0..$ wegen des speziellen Startwertes.               F\"ur den zweiten Teil siehe bitte Matlab-Skript.                         \end{document}


title: How to left justify equations in IEEEeqnarray environment?

text: I have an document that use both `IEEEeqnarray` and normal `equation` environment. The `equation` is set to be left justified with               \usepackage[fleqn]{amsmath}      However `IEEEeqnarray` is centered. How to make it left justified ?


title: More: Generalised: Accessing the logic values of a TikZ coordinate

text: This is a follow-up question to: Generalised: Accessing the logic values of a TikZ coordinate. In that question a PGFplot answer was suggested by jake. I took that answer and modified it to the following MWE:               \documentclass{article}     \usepackage{pgfplots}     \usetikzlibrary{intersections}           \newcommand\xcoord[2][center]{{%        \pgfpointanchor{#2}{#1}%        \pgfgetlastxy{\ix}{\iy}%        \pgfplotspointaxisorigin%        \pgfgetlastxy{\ox}{\oy}        \pgfmathparse{(\ix-\ox)/\pgfplotsunitxlength/1000}        \pgfmathprintnumber{\pgfmathresult}}     }          \begin{document}          \vspace{1cm}     \begin{tikzpicture}     \begin{axis}[       domain=1:8.2,       samples=150,       no markers,       axis lines=middle,       enlarge x limits=upper,       enlarge y limits=true,       x axis line style={{name path global=xaxis}}       ]     \addplot +[name path global=plot] {(x-2.07)*(x-4.09)*(x-5.72)*(x-8.04)};     \pgfplotsextra{      \fill [name intersections={of=xaxis and plot, name=i, total=\t}]        [red, every node/.style={black}]        (i-1) circle (2pt) node [pin={\xcoord{i-1}}] {}       (i-2) circle (2pt) node [pin={\xcoord{i-2}}] {};     }     \end{axis}     \end{tikzpicture}     \end{document}       This produces the following: ![The result](http://i.stack.imgur.com/CCADW.png) So the coordinates is off by a factor 10. How would one correct that and I was wondering how one would access them through a foreach loop in stead of specifically making a node for each of them.


title: Indentation after section title on a first item of "easylist" item

text: The code:               % XeLaTeX          \documentclass[12pt]{article}     \usepackage{geometry}     \geometry{letterpaper}     \usepackage{graphicx}     \usepackage{amssymb}     \usepackage[50, sharp]{easylist}     \usepackage{titlesec}               \usepackage{fontspec,xltxtra,xunicode}     \usepackage{multicol}     \usepackage{eurosym}     \usepackage{longtable}     \usepackage{enumitem}          \defaultfontfeatures{Mapping=tex-text}     \setromanfont[Mapping=tex-text]{Minion Pro:+onum}          \setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans}     \setmonofont[Scale=MatchLowercase]{Andale Mono}               \titleformat{\section}[block]{\normalfont\filcenter}{ARTICLE\ \thesection:\ }{0pt}{}          \begin{document}          % . . .          \section{SCOPE OF CONTRACT}     \begin{easylist}     \ListProperties(Start1*=\thesection, Mark={.}, FinalMark=, Hang=true, Margin=0in, Align=0.5in, Space=6pt, Space*=6pt)          ## The scope of the present Contract is to lay down the terms and conditions under which the SUPPLIER agrees to sell and deliver to the PURCHASER, and the PURCHASER agrees to purchase from the SUPPLIER the Equipment and Documentation at the terms and conditions as specified in this Contract and its Annexes.          ## The material list, attached as Annex 1, is an integral part of this Contract and is in accordance with the Technical Terms and Conditions. Notarized Copies of the respective certificates of compliance of the Ministry for Telecommunication and Information of the Russian Federation (Minsvjazi) for the Equipment supplied under this Contract shall be handed over by the SUPPLIER to the PURCHASER immediately after signature of this Contract.      \end{easylist}          % . . .          \end{document}      Makes result: ![enter image description here](http://i.stack.imgur.com/TvGI2.png) How to avoid indentation at 2.1?


title: TOC for book and preview

text: I am writing a book, which has a shorter version called "preview". How could I arrange (in LaTeX, xelatex) that the preview PDF remains as it is (shorter) but that it presents the TOC of the "complete" book? A nice bonus (but not necessary) would be if the missing references from the preview TOC to non-existing pages would not have a link to the corresponding pages (which, logically, are missing from the preview, as the preview is shorter).


title: What is the TeX equivalent for the following C# nested loop?

text: I need a nested loop to animate PSTricks diagrams. In C# or C or C++, I usually write as follows.               int N=6;     for(int x=0; x<N; x++)         for(int y=x+1; y<N; y++)             Console.WriteLine("({0}, {1})",x,y);      I have attempted to do it in TeX as follows, but it does not work. :-)               \documentclass{minimal}     \usepackage{multido}          \newcommand\N{6}     \newcommand\Init{}     \newcommand\Freq{}     \begin{document}     \multido{\ix=0+1}{\N}     {             \makeatletter                 \renewcommand\Init{\strip@pt\dimexpr\ix pt + 1pt\relax}                          \renewcommand\Freq{\strip@pt\dimexpr\N pt - \Init pt\relax}             \makeatother             \multido{\iy=\Init+1}{\Freq}             {                     (\ix, \iy)\par             }     }     \end{document}      How to fix it?


title: Is it always best practice to not include text punctuation in inline math mode?

text: It has been pointed out on this site, e.g. here by egreg, that text punctuation doesn't belong to the formula in inline math. I've been following this practice for a long time, so I write `for all $v\in V$, where ...` as opposed to `for all $v\in V,$ where ...`. However, the first version prevents kerning between `V` and the comma. Note that the comma is a lot closer to the `V` in the second version: ![output with V](http://i.stack.imgur.com/iUXIo.png)               \documentclass{article}     \begin{document}     $v\in V$, where \quad $v\in V,$ where      \end{document}      Note that there's no difference between the two versions if I replace `V` with `A`: ![output with A](http://i.stack.imgur.com/y9Ijs.png) Now I'm wondering: Should I start including punctuation in my formulas to enable proper kerning, at least as long as fonts are used where the text and math punctuation glyphs look the same? Or are there reasons why the kerning is not desirable anyway?


title: \def variables with xparse and other questions about variables

text: I'm writing a documentation for a REST API. So there's very much information that has to get repeated. So I'm trying to figure out a few things:   1. Consider the following code:              \newcommand\insertitem[1]{\item \texttt{#1}}          \NewDocumentCommand{\listfields}{ >{ \SplitList {,} } m }     {     \paragraph{General available fields:}     \begin{itemize}         \ProcessList{#1}{ \insertitem }     \end{itemize}     }          % works:     \listfields{a,b,c,d,e}          % doesn't work:     \def \fields {a,b,c,d,e}     \listfields{\fields}      It returns the whole set as a single string, so it's not iterating over it. Why? Or: How can I get it working?   2. To make the document more easy to maintain, I'd like to set 3 variables and use it in different ways. First the 3 variables:              % route     \def \route {/myRestRoute}          % fields     \def \fields {a,b,c,d,e}          % field descriptions     \def \fielddesc         {           description for a,           description for b,           description for c,           description for d,           description for e         }      Now (if problem **1.** gets solved), I'd like to do the following: Output tuples of `\field` and `\fielddesc`. I'd have to process two lists at once for that somehow. The result should then look like:              \texttt{a} - description for a     \texttt{b} - description for b     \texttt{c} - description for c     \texttt{d} - description for d     \texttt{e} - description for e        3. Last but not least, I need to take 2 values from the `\fields` variable and use it as parameter for a function. And I need somehow to specify which 2 values it should take. By default value 2 and 3 is fine, but maybe I have to use values 1 and 4 sometime (at the moment this exception doesn't exist, but it's always better to be prepared):              \newcommand{\arf}[2]         {           #1, #2         }          % and call it using something like this:     \arf{\fields[1]}{\fields[2]}     % where [1] and [2] should be indices of the comma separated fields array.


title: Overfull hbox in tabular

text: In the following (M)WE, the `tabular` version of the Contact information from a CV gives an overfull hbox warning when compiled with `pdfLatex`, but the `minipage` version does not. Why? I have not found a satisfactory explanation among the many questions that have been posed about overfull hboxes, but if you know the right place, please direct me there!               \documentclass[10pt,draft]{article}     \usepackage{calc}     \usepackage[paper=letterpaper,                 margin=1in,                 showframe]{geometry}     \setlength{\parindent}{0in}     \setlength\fboxsep{0pt}     \begin{document}          \newlength{\rcollength}\setlength{\rcollength}{2.1in}%     \newlength{\spacewidth}\setlength{\spacewidth}{50pt}%     \newlength{\lcollength}\setlength{\lcollength}{\textwidth-\rcollength-\spacewidth}     %     \begin{tabular}[t]{@{}p{\lcollength}@{}p{\spacewidth}@{}p{\rcollength}}%     \parbox{\lcollength}{%     Department of Mechanical Engineering\\%     University of Anywhere\\%     123 Road St.\\%     Normal, IL USA}%     &%     {\vrule width 0.5pt}     \parbox[m][4\baselineskip]{\spacewidth}{}%     &%     \parbox{\rcollength}{%     \textit{E-mail:}\\%     \textit{Work:} +1-123-456-7890 \\%     \textit{Cell:} +1-123-456-7890 \\%     \textit{Web:}%     }%     \end{tabular}%          \begin{minipage}{\lcollength}     Department of Mechanical Engineering\\%     University of Anywhere\\%     123 Road St.\\%     Normal, IL USA%     \end{minipage}%     \begin{minipage}{\spacewidth}     \rule{0.5pt}{4\baselineskip}     \end{minipage}%     \begin{minipage}{\rcollength}     \textit{E-mail:}\\%     \textit{Work:} +1-123-456-7890 \\%     \textit{Cell:} +1-123-456-7890 \\%     \textit{Web:}%     \end{minipage}          \end{document}


title: Change name of generated "myfile_contourtmp0.table"

text: In a PGF axis environment, I am using               \addplot3[contour gnuplot={number=20}]{30-0.1*(x*x)-0.05*(y*y)};      This command uses `gnuplot` to generate the file `myfile_contourtmp0.table`. My question is: How can I attribute another name for this file?


title: Epigraph in the end of the page

text: How could I position the epigraph in the end of the page, instead of at the beginning? I'm using this preamble:               \documentclass[pdftex,11pt,a4paper,openany]{memoir}     \usepackage[brazil]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{indentfirst}     \usepackage{latexsym}     \usepackage{amsmath,amssymb,amsfonts,wasysym}     \usepackage[pdftex]{graphicx}     \usepackage{wrapfig}     \usepackage[left=3cm,right=2cm,top=3cm,bottom=3cm]{geometry}     \usepackage{color}     \usepackage[dvipsnames]{xcolor}     \definecolor{darkgray}{gray}{0.3}     \setcounter{secnumdepth}{3}     \setcounter{tocdepth}{3}     \usepackage[pdftex, colorlinks=true, linkcolor=darkgray, citecolor=blue, urlcolor=blue]{hyperref}      and this commands on the page intended to the epigraph:               \thispagestyle{empty}     \epigraph{O problema dessas citações na internet é a dificuldade para saber se elas são realmente autênticas.}{Friedrich Nietzsche}      I already tried to use **\vspace{}** and **\vfill** , and they dont work.


title: Don't start next section until every image float is resolved

text: I've a chapter formed by two sections. The problem is, I have two images that should be in the first section but eventually end up in the second. I read a bit about approaches to the problem using options such as t, p and b, but they didn't quite work for me. I'd just want to know if you can start a section **only after** all images have been placed somewhere and the image buffer is empty. Thanks! @David, I'm using a standard regular book class. I already have the images placed correctly in chapters, the problem was with sections. I was sleepy when I posted this question so I put in chapters instead of sections. Thanks again. @everybody, I tried the `\usepackage[section]{placeins}` command and it worked perfectly for my needs. Thanks!


title: Writing a technical book, structuring first then layout later possible?

text: I want to write a Technical Book that eventually should go to Lulu.com for publishing, so I have to stick to certain strict rules about page sizes and layout. I'm currently looking for a way to focus on the Writing and do the layout later. Essentially, I want to do some basic formatting like "header", "paragraph", "code", "bold", "image", but don't worry about the concept of Pages just yet. When I'm done with the Content I want to layout the content by adding page breaks, auto-generated table of content, page layout (Margins, Gutter, Page Size,...). I also want a standard format that all books are following (the first few boilerplate pages in any book), so reusable templates would come in handy. Essentially something that's usually Microsoft Word's domain, except that Word isn't very trustworthy and loves to randomly break stuff. Also, I want a PDF output. I've never worked with TeX before, but it's layout capabilities are legendary, I just wonder if it's the right tool for my need? Take structured content, format it, make revisions to the content without having to do tons of re- layout, output a PDF (PDF 1.3 standard, embedded fonts)? Or am I better off with something like DocBook XML or -gulp- Microsoft Word?


title: Visual counter for LaTeX?

text: Does anyone know of a LaTeX package that implements a visual counter similar to the countdown counter of this context-module? It produces images like this: ![countdown counter in context](http://i.stack.imgur.com/fF8lU.png) However, I would like to stick to LaTeX and `beamer`, so if anyone has used/hacked together something similar, I would appreciate any reference. I am aware of the progress bar theme, but I would like to add such a circular progressbar to my own theme.


title: How to specify a position of node with regard to the one of another node in TikZ

text: I have already defined a node `l1`:               \node (l1) [ellipse, draw=black, fill=white!20, text=black, scale=0.8]{$l_1$};      And I would like to define another node `l2` and position it with regard to `l1`. I know that `below left=...cm of l1` exists, but what if I want to place `l2` 2cm below and 3cm left with regard to `l1`?


title: Draw a special arc from 1 node to another in TikZ

text: Even though I just learned how to draw an arc, I have difficulties in drawing the arcs in the figure. Especially the arc from the second circle to the first one. If I do: `\draw[bend left,->] (l2.south) to node [auto] (l1.north)` (where `l1` is the circle above, and `l2` is the circle below), the line will cross the circles and make the picture not pretty. So does anyone know how to draw the arc from `l2` to `l1`? Another thing is I would like this arc goes from the south of `l2`, and points to the north-west of `l1` (instead of north of `l1`) Could anyone help? Thank you very much! ![enter image description here](http://i.stack.imgur.com/hysCX.png)


title: Draw an arc between 2 nodes and label it in TikZ

text: I have already drawn two ellipses `l1` and `l2`, `l2` is on the left below `l1`:               \begin{tikzpicture}       \node (l1) [ellipse, draw=black, fill=white!20, text=black, scale=0.8, text centered]{         $l_1$};       \node (l2) [ellipse, draw=black, fill=white!20, text=black, scale=0.8, text centered, below left=1cm of l1]{         $l_2$};     \end{tikzpicture}      I would like to draw an arc from the south of `l1` to the north of `l2` with a `->`. The aim of drawing arc instead of a line is to make it prettier, so just a little radian will be fine, no need to be very accurate. Does anyone know how to do it? Also I would like to label the arc in its middle. The label, which is actually a word, will be ideally displayed horizontally.


title: Fix content to be displayed on specific page

text: How can I fix a content (textblock, minipage, etc.) to be on a specific page an let the main text flow from page no 1 directly to page no 3 (i.e. skip page no 2)? It is for the impressum of a magazine resp. newspaper. It should appear on page two, top, but text is already starting at page one and should directly continue at page three. (I guess the question is shamefully stupid).


title: Fine tuning natbib for agsm bibliography style, and adding links

text: Lovely day. I am quite new to LaTeX but picking things up fast. One area which is confusing me greatly is getting my bibliography to work just how I like it. I have settled on `natbib` with `agsm` style but there are still some issues.   * The journal titles have apostrophes around them. (red in pic) I want to get rid of the apostrophies.   * The volume number of a journal is set in bold. (blue in pic) I want it to just be plain (un-bolded). This image added highlights these problems. ![http://i.imgur.com/8lM01.png](http://i.stack.imgur.com/04gUM.png) Lastly, for the electronic copy, I would like it so the journal identifiers (DOI’s) are highlighted blue, so you can click on them and it takes you to the website of the journal article. (green in pic) Help on any / all of the above would be greatly appreciated. I have searched online for about 8 hours and finally need to ask the lords of TeX. Edit: This is my bibliography code so far I forgot to add:               \documentclass[11pt,a4paper]{report}     \usepackage[numbers]{natbib}     \renewcommand\harvardyearleft{\unskip, }     \renewcommand\harvardyearright[1]{.}      \bibliographystyle{agsm}     \usepackage{hyperref}     \begin{document}     \cite{ref1}     \bibliography{bibFile}     \end{document}      Note - that renew command I found from this forum, it gets rid of brackets around 2008 which I didn't want. Thanks


title: PSTricks: ugly pie chart

text: I use pstricks to draw pie chart but when I do               \documentclass{article}     \usepackage[pdf]{pstricks}     \usepackage{pstricks-add}     \begin{document}     \titlepage     \begin{pspicture}(-5,-5)(5,5)%square-mu-lattice     \psChart[chartColor=color]{0.722278,0.0893228,0.0788649}{}{0.5}     \end{pspicture}     \end{document}      the result is ugly: ![Here is the ugly pie chart i get](http://i.stack.imgur.com/2oCG9.png) I mean by that if you zoom in the center of the pie, you can see that the pieces are overlapping. How can I correct that?


title: Removing spaces before command

text: When using French guillemets with TeX4HT, the resulting symbols are not followed/preceded by non-breaking spaces like they should, resulting in wrong line-breaking in HTML. I tried resetting `\og` and `\fg` with a `babel.4ht` file, but I can't get anything working. The only solution I've found so far is the following: I defined new `\Og` and `\Fg` commands with:               \ifluatex       \newcommand{\Og}{\og}       \newcommand{\Fg}{\fg{}}     \else       \newcommand{\Og}{\HCode{« }}       \newcommand{\Fg}{\HCode{ »}}     \fi      together with a `sed` hack to remove the spaces before ` `:               sed -i "s@ *  *@\ @g" $HTML      I'd like to get rid of this and do it properly in a `.4ht` file. How could I do this? Edit: The `\Og`/`\Fg` hack is actually acceptable for me, but not the sed one, so I'm modifying the title of this question: How can I remove spaces before the command?


title: How to use "input" on Linux (Fedora 16)?

text: This seems like a trivial thing, but I can't figure out how to use `input` properly on Fedora. When I used Windows 7, I would put the following into my document `\input{D:/Dropbox/Code_Library/LaTeX/custom_headings_1.tex}` The file is now located at `/home/[user_name]/Home/Dropbox/Code_Library/LaTeX/custom_headings_1.tex` But when I try to use `input{/home/[user_name]/Home/Dropbox/Code_Library/LaTeX/custom_headings_1.tex}` I get a "file not found" error. In retrospect, since I still use Windows regularly, doing this is probably not a good idea because I won't be able to compile documents on both platforms. Can any one suggest a better file inclusion system than putting a "custom_headings_1.tex" file in every new document's folder?


title: Diagonal underbrace

text: For didactic purposes I would like to build a underbrace that is diagonal as in the drawing below. How could I do this? ![Diagonal Underbrace.](http://i.stack.imgur.com/UTZTm.jpg)


title: Unifying article and report

text: I'm formating my thesis. When writing drafts I used documentclass article and now I'm migrating to a template which uses documentclass report. I don't like to manualy change `\section` to `\chapter` and `\subsection` to `\section` and also a couter for theorems from `section` to `counter`. Is there an abstraction layer in LaTeX telling me what the toplevel sectioning environment is? Also in article, `\refname` is used for bibliography name but `\bibname` is used in report. Bibliography is added to the table of contents in report but not in article. Is there a way to unify the text of individual chapters and bibliography so it works consistently with both article and report?


title: Use hyperref without any link coloring, and with dotted TOC lines

text: Currently, my document is of the following form:               \documentclass[11pt,a4paper]{article}          \usepackage{hyperref}          \begin{document}          \tableofcontents          \section{Introduction to Problem}          There is the relation     \begin{equation}     R = k^2, \label{eq:myequation}     \end{equation}     which we have previously discussed.            \section{Potential Solution}          Using the relation in Equation~(\ref{eq:myequation}), we can ...          \end{document}      Given the way the above document looks when compiled with `pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)`, I wish to make only 2 changes:   1. No colored boxes surrounding any of the TOC, figure, equation, etc., links   2. Dotted lines connected the TOC entries to their corresponding page numbers on the right side of the page How can I make these changes?


title: Using \\[<dim>] in tabular environment

text: In a tabular environment what does `\\[<dim>]` do? Does that set the font size for the following line or for the current line? See example below?               \begin{tabular}{| c | c |}     words & more words \\[6pt]     stuff & other stuff \\     \end{tabular}


title: enumitem-shortlabels: How to change the counter of items?

text: I use the `enumitem` package with `shortlabels`.               \usepackage[shortlabels]{enumitem}      Now I've got               \begin{enumerate}[(L 1)]          \item blablabla          \item blablabla      \end{enumerate}      and it goes like (L 1), (L 2) etc. However I'd like it starts with 0. But the `setcounter{item}{-1}` doesn't work here. What to do?


title: What are good sites to find citations in BibTex format?

text: When working with **Bibtex** , manually transferring the **citation information** for articles, prooceedings, books, etc. can be a tedious work. Some web sites provide citations in Bibtex format. What are your favorite sites to get Bibtex citations of your used references?


title: Fence/delimiter stored inside in a macro

text: I'm wondering, say I have this definition               \newcommand\restrictedTo{\vert\sb}      to be used as `$f \restrictedTo A$`. This works fine, but               $f \big \restrictedTo A$      fails, whereas               $\left. f \right \restrictedTo A$      work just fine. Any suggestions for a better definition for `\restrictedTo`? Edit: here is a full MWE:               \documentclass[a4paper]{article}     \newcommand\restrictedTo{\vert\sb}     \begin{document}     \[       f \big\restrictedTo A     \]     \end{document}


title: Keep position of graphic in beamer

text: > **Possible Duplicate:**   >  Avoiding jumping frames in beamer how can I set a figure or a graphic to keep it's position across multiple slides in a presentation? I'm using the `\only` command to show only an excerpt of an explanation underneath a figure/graphic. Since these excerpts don't have the same height, the figure/graphic's position changes. But I want the figure/graphic to keep its position and I don't want to use `\uncover`. What do I need to do? Here is an example where a rectangle represents my figure/graphic which doesn't hold its position.               \documentclass[10pt]{beamer}          \usepackage[utf8]{inputenc}     \usepackage{tikz}          \begin{document}     \begin{frame}\frametitle{Test}     \begin{center}       \tikz\draw (0,0) rectangle (2,2);     \end{center}          Explanation:     \only<1-1>{       \begin{itemize}         \item[step 1]         \item step, step, step       \end{itemize}     }     \only<2-2>{       \begin{itemize}         \item[step 2]         \item step two         \item some more         \item and even more       \end{itemize}     }     \end{frame}     \end{document}


title: Change alertblock content in beamer in a new frame

text: I'm looking for a method to change the content of an `alertbox` in beamer when the user moves to the next frame. A solution is of course to generate two frames:               \documentclass{beamer}     \begin{document}     \begin{frame}     \begin{alertblock}{Foo}     Bar1     \end{alertblock}     \end{frame}     \begin{frame}     \begin{alertblock}{Foo}     This is a very long text that should be displayed on two or more lines, as a result, the alertblock will enlarge and thus cause the audience to focus more on the box than the content that is of course the important part of the presentation.     \end{alertblock}     \end{frame}     \end{document}      The problem with this approach is however that if `Bar2` has not the same vertical span width as `Bar1`, the box is repositioned resulting in an ugly visual effect. As a result in the first slide, an `alertblock` is displayed containing `Bar1` but already has the size to show `This is a very...`, in the second slide `This is a very...` is displayed starting at the top-left of the `alertblock`.


title: Beamer document jumping of alignment

text: I would like to make a frame, with a piece of text, then the appearance of a picture and after that another line of text appearing. I am using the code below, but if I click for the picture to appear, the first line of text jumps to a higher position in the slide. How to resolve this?               \subsection{}     \begin{frame}{Title}     \begin{itemize}     \item<1-> Text     \begin{figure}[h!]     \centering     \includegraphics<2->[]{file.pdf}     \end{figure}     \item<3-> Text     \small     \begin{eqnarray} \nonumber     *formula*     \end{eqnarray}     \end{itemize}     \end{frame}


title: Avoid height flickering in a block when hiding content with \only

text: When using a construction like the following, the height of the block changes between frames. This change distracts the audience from the content. How to fix the height of the block, so that it doesn't "flicker"?               \documentclass{beamer}     \title{MWE of flickering boxes}     \author{\textsc{Jon Doe}}     \begin{document}     \frame{\titlepage}     \section{Flickering boxheight}     \begin{frame}\frametitle{The upper box flickers}       \begin{block}{\only<1-2>{Examples:} \only<3>{Pausetext:}\only<4>{Examples again:}}<1-4>         \only<1-2,4>{\begin{itemize}           \item<1-2,4> Example 1           \item<2-,4> Example 2         \end{itemize}}         \only<3>{Oneliner}       \end{block}       \begin{block}{Another Box}<3->         Your Adverrtisement could be here       \end{block}       \end{frame}     \end{document}


title: Reserving space in beamer overlays

text: I use the beamer package. I want to achieve the following. Assume I have a slide of the following form (two elements): XXX YYY XXX should be shown on all slides and **always at the same position**! YYY should be =A on the 2nd slide and =B on the 3rd slide. The problem with the existing overlay specifications is that the position of XXX depends on how much space is used by YYY. And this is different for YYY=A (2nd slide) and for YYY=B (3rd slide).


title: Overlay in Beamer

text: I have 2 slides with the same plots on the top and with different equation on the bottom. The length of the equation are different, which results in different position of the same plot. When I get to the 2nd slides, there is a 'jump' of the plot. I tried to use the command \alt but failed. A simplified version of code is below.               \documentclass[british]{beamer}               \usepackage{pgf}     \usepackage{pgfplots}     \usepackage{tikz}          \usetikzlibrary{arrows}     \usetikzlibrary{arrows,external}          \newcommand{\dd}[2]{\frac{\partial #1}{\partial #2}}           \usepackage{babel}     \begin{document}          \begin{frame}     \noindent          %%%%%%%%%%%%plot%%%%%%%%%%%%%%%%%%%%%     \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.5cm,y=1.0cm]     \clip(-3.7,-1) rectangle (4.5,1.3);     \draw[color=green] (-3.5,-0.45) rectangle (4,0.45);     \end{tikzpicture}     %%%%%%%%%%%%plot%%%%%%%%%%%%%%%%%%%%%               \[U-h\dd{U}{x}\left(\frac{4a_{0}a_{2}+2a_{0}a_{1}+(6-12a_{0}/H)a_{1}a_{2}}{8a_{0}a_{1}a_{2}H}\right)=c,\]               \end{frame}                         \begin{frame}     %%%%%%%%%%%%plot%%%%%%%%%%%%%%%%%%%%%     \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.5cm,y=1.0cm]     \clip(-3.7,-1) rectangle (4.5,1.3);     \draw[color=green] (-3.5,-0.45) rectangle (4,0.45);     \end{tikzpicture}     %%%%%%%%%%%%plot%%%%%%%%%%%%%%%%%%%%%               \[H=aaaa\]     \end{frame}          \end{document}


title: How to make a series of step-by-step figures has a fixed position on every beamer frame?

text: Some frames have texts describing steps on the associated figure. I want to make the figures still fixed in position no matter there is a description text.               \documentclass{beamer}     \setbeamertemplate{navigation symbols}{}          \usepackage{pst-eucl}     \psset{PointName=none,PointSymbol=none}     \newpsstyle{helper}{linewidth=.5\pslinewidth,linecolor=red,arcsep=-1}          \begin{document}     \begin{frame}{Problem No. 2}     \only<1>{Draw the $x$ axis.}     \only<2>{Draw a line at angle $45^\circ$.}     \only<3>{Draw an arc of radius 2 intersecting both lines.}     \begin{pspicture}[showgrid=false](-5,-1)(7,5)         \pnodes(0,0){O}(5,0){X}(4;30){A'}         % x-axis         \only<1->         {             \psline(X)             \uput[-135](O){$O$}             \uput[-45](X){$X$}         }         % vector A         \only<2-4>{\psline[style=helper](A')}         \pstInterLC[Radius=\pstDistVal{2}]{O}{X}{O}{}{I1}{I2}         \pstInterLC[Radius=\pstDistVal{2}]{O}{A'}{O}{}{J1}{J2}         \only<3-4>{\pstArcOAB[style=helper]{O}{I2}{J2}}         \only<4-5>{\psline{->}(O)(J2)}         \only<5->{\uput[90](J2){$A$}}     \end{pspicture}     \end{frame}     \end{document}      As you can see from the following animation, the current result shows the figures move up and down. How to fix it? ![enter image description here](http://i.stack.imgur.com/9P6x3.gif)


title: beamer: \only with columns makes things move down

text: Consider the following:               \documentclass{beamer}     \begin{document}     \begin{frame}       \begin{columns}         \column{.5\textwidth}         \only<1->{Why does this move? :-(}         \column{.5\textwidth}         \only<2->{           \[\int\]\[\int\]\[\int\]\[\int\]\[\int\]\[\int\]         }       \end{columns}     \end{frame}     \end{document}      Why does the line of text move down from the first page to the second? What is the proper way to avoid this?


title: PSTricks and large numbers in graphics

text: I am trying to use PsTricks to plot large numbers. In Herbert Voss's `PSTricks: Graphics and PostScript for TeX and LaTeX` book (German edition, 2007, 4th edition), there is the code:               \usepackage{pstricks-add}     \readdata{\data}{data.dat} \psset{xunit=0.11mm,yunit=0.00015mm}     \begin{pspicture}(-80,-30000) (1000,310000)     \psaxes[axesstyle=frame,Dx=100,dx=100,Dy=50000,dy=50000](1000,300000)     \listplot [linewidth=1pt,linecolor=black!30] {\data} %aIle     \listplot [nStep=50,linewidth=2pt,plotstyle=dots] {\data}% jeder 50.     \end{pspicture}       Using the above, I have made a similar code:               \documentclass[12pt]{article}     \usepackage{pst-plot,pstricks-add}          \begin{document}      \readdata{\data}{data.dat} \psset{xunit=0.11mm,yunit=0.00015mm}     \begin{pspicture}(-80,-30000) (1000,310000)     \psaxes[axesstyle=frame,Dx=100,dx=100,Dy=50000,dy=50000](1000,300000)     \listplot [linewidth=1pt,linecolor=red] {\data}     \end{pspicture}     \end{document}      with the contents of `data.dat` as                0   0       100 10000       200 15000       300 20000     400 50000     500 80000     600 100000     700 150000     800 160000      On compiling I get the error message:               ! Dimension too large.     <to be read again>                     =     l.8 \listplot               [linewidth=1pt,linecolor=red] {\data}     ?           900 200000      What am I doing wrong? Thanks a lot... * * * Update The end of log file with Herbert's second code is:               (c:/texlive/2011/texmf-dist/tex/generic/multido/multido.tex     v1.42, 2010/05/14 <tvz>))     (c:/texlive/2011/texmf-dist/tex/generic/pst-plot/pst-plot.tex      v1.34, 2011/11/07 (tvz,hv)))     No file withpstri6.aux.     )     *


title: Problems with pgfplots, loops inside tikzpicture and reading from files

text: I was trying to implement this method (How to import ASCII coordinates to TikZ) to import coordinates and draw them, but I am having this problem               Undefined control sequence \end{tikzpicture}     Extra }, or forgotten \endgroup \end{tikzpicture}     Extra \endgroup \end{tikzpicture}     Extra \endgroup \end{tikzpicture}     Too many }'s \end{tikzpicture}     Extra \endgroup \end{tikzpicture}     \begin{document} ended by \end{tikzpicture}. \end{tikzpicture}     Extra \endgroup \end{tikzpicture}     Too many }'s \end{tikzpicture}     Extra \fi \end{tikzpicture}      My code is simply               \documentclass{book}     \usepackage{tikz}     %Defining loops for tikz     \def\myloop#1#2#3\repeat{\def\filenm{#2}\def\body{#1#2#3}\iterate}          \def\iterate{\body\ifeof\filenm\let\next\relax\else\let\next\iterate\fi\next}          \usepackage{pgfplots}     \usetikzlibrary{shapes,arrows, calc}     \usepgfplotslibrary{external}     \tikzexternalize[prefix=tikz/]     \pgfplotsset{compat=1.9}          \begin{document}          \newread\bar     \openin\bar=borrar.tex          \begin{tikzpicture}        \myloop\read\bar to\res\shade[ball color=blue]\res;\repeat        \end{tikzpicture}     \end{document}      It works whenever I do not include the package `pgfplots`, but I need this package for some plots. Is there any other way to make it work? Thanks in advance. Edit: sorry I forgot to include this. File borrar.tex is just the coordinates for two lines               (0.000000,0.000000) -- (0.000000,2.000000)      (0.000000,0.000000) -- (2.000000,2.000000)       Error in the logfile               \bar=\read2     ! Undefined control sequence.     \endtikzpicture ...r@layerlist@globally \endscope                                                    \let \pgf@baseline =\pgf@s...     l.17 \end{tikzpicture}


title: Why is synctex in TL 2011 so fussy about filenames?

text: The forward search script I had written for vim and mupdf is no longer working since installing TL 2011, and upon investigating why, it seems that synctex is now very fussy about filenames, at least for `synctex view`. Not only does it require the full path, but it requires a redundant `/./` at the end of the path. To duplicate. Let `scratch.tex` be:                \documentclass{article}      \begin{document}      Hello world      \end{document}      Now, look at the results of the following from the command line:               kck@kck-desktop ~/tmp $ pdflatex -synctex=1 scratch.tex &>/dev/null     kck@kck-desktop ~/tmp $ synctex view -i 3:1:scratch.tex -o scratch.pdf     This is SyncTeX command line utility, version 1.2     SyncTeX Warning: No tag for scratch.tex     kck@kck-desktop ~/tmp $ synctex view -i 3:1:/home/kck/tmp/scratch.tex -o scratch.pdf     This is SyncTeX command line utility, version 1.2     SyncTeX Warning: No tag for /home/kck/tmp/scratch.tex     kck@kck-desktop ~/tmp $ synctex view -i 3:1:/home/kck/tmp/./scratch.tex -o scratch.pdf     This is SyncTeX command line utility, version 1.2     SyncTeX result begin     Output:scratch.pdf     Page:1     x:171.128296     y:134.764618     h:133.768356     v:134.764618     W:343.711060     H:6.918498     before:     offset:0     middle:     after:     SyncTeX result end      Using this syntax for synctex is very counterintuitive, and I'm hesitant to fix my script to use these kinds of filenames for fear synctex's syntax will again be changed. This problem did not exist for me in TeXlive 2010. Is this change intentional, and will it last?


title: adjusting the line width of the header with geometry fanchyhdr

text: the line is longer than the width of the text, how do I adjust, knowing that the package needs fanchyhdr geometry?               \documentclass{book}     \usepackage[utf8]{inputenc}     \usepackage{preambulo}     %Configuracao de pagina     \geometry{paperwidth=18cm,paperheight=24cm,lmargin=3cm,rmargin=3cm,tmargin=3cm,bmargin=3cm}     \usepackage[a4,center,cam]{crop}     \usepackage{hyperref}     \hypersetup{pdfpagelayout=TwoPageLeft, %SinglePage       bookmarksopen=true,       colorlinks=true,       urlcolor=blue,       linkcolor=black,       pdftitle={titulo},       pdfauthor={R\'egis S. Santos}     }          \newcommand{\titulo}{Book}     \title{\titulo}     \author{R\'egis S. Santos}     \date{\the\year}          \makeindex     \begin{document}     \pagestyle{fancy}     \frontmatter   %book     \maketitle     \tableofcontents     \mainmatter    %book          %texto     \chapter{Book}     \label{chap_Book}          \lipsum[1-5]          \end{document}          and preambulo.sty          %Preambulo geral -2011     \usepackage[brazil]{babel}     \usepackage{amssymb,amsfonts,indentfirst}     \usepackage[centertags]{amsmath}     \usepackage[normalem]{ulem}     \usepackage{enumerate,multicol,subfigure,cancel,makeidx}     \usepackage{tikz}       \usetikzlibrary{calc,positioning}     \usepackage{wasysym,mathrsfs,stmaryrd}     \usepackage{geometry,lipsum}     %%força um \pagestyle{empty} em \part     \usepackage{etoolbox}       \patchcmd{\part}{plain}{empty}{}{}     %********************************************************************     \everymath{\displaystyle}     %********************************************************************     % Configuracao de ambiente de teorema     % a numeracao do teorema depende da classe de documento     \usepackage{theorem}          \newcommand*{\teorema}[1][chapter]{       \newtheorem{teo}{Teorema}[#1]       \theorembodyfont{\normalfont\upshape}       \newtheorem{ex}{Exemplo}[#1]       \newtheorem{exerc}{}[#1]       \newtheorem{cor}[teo]{Corol\'ario}       \newtheorem{lem}[teo]{Lema}       \newtheorem{prop}[teo]{Proposi\c{c}\~ao}       \newtheorem{axi}[teo]{Axioma}       \newtheorem{fato}[teo]{Fato}       \theorembodyfont{\normalfont\upshape}       \newtheorem{defn}[teo]{Defini\c{c}\~ao}     }     %********************************************************************     % Configuracao de cabecalho personalizado     \usepackage{fancyhdr}     \pagestyle{fancy}          \newcommand*{\BookHeader}[1]{%       %%teoremas       \teorema  %if book       %%cabecalho e rodape       \fancyhead{} % deleta a configuração atual para cabeçalho.       %redefine para que apareça apenas o nº do capitulo.       \renewcommand{\chaptermark}[1]{\markboth{\thechapter.\space##1}{}}       \renewcommand{\sectionmark}[1]{\markright{\thesection\space##1}}       %evenside - lado par       %oddside - lado impar       \fancyhead[LE]{\bfseries\leftmark}  %capitulo do lado esquerdo na pag. par.       \fancyhead[RO]{\bfseries\rightmark} %seção do lado direito na pag. impar.       \fancyfoot{} % deleta a configuração atual para rodapé.       \fancyfoot[LE,RO]{\bfseries\thepage}   %nº da pagina do lado direito e no rodapé.       \fancyfoot[C]{\scriptsize{\titulo}}       \fancyfoot[LO,RE]{R\'egis {\Large \smiley} \the\year}       \renewcommand{\headrulewidth}{0.5pt}       \renewcommand{\footrulewidth}{0.5pt}       \addtolength{\headheight}{12.5pt} % cria espaço para a linha       \fancypagestyle{plain}{%       \fancyhead{} % exibe o cabeçalho e o rodapé       \renewcommand{\headrulewidth}{0pt} % e a linha       }       \typeout{Using book class.}%     }%          \newcommand*{\ArticleHead}[1]{%       %%teoremas       \teorema[section] % if article       %%cabecalho e rodape       \fancyhead{}       \fancyfoot{}       \fancyfoot[R]{\bfseries\thepage}   %nº da pagina do lado direito       \fancyfoot[C]{\scriptsize{\titulo}}       \fancyfoot[L]{R\'egis {\Large \smiley} \the\year}       \renewcommand{\headrulewidth}{0pt}       \renewcommand{\footrulewidth}{0.5pt}       \addtolength{\headheight}{0.5pt}       \fancypagestyle{plain}{%       \fancyhead{}       \renewcommand{\headrulewidth}{0pt}       }       \typeout{Using article class.}%     }%          \newcommand*{\ReportHead}[1]{%       %%teoremas       \AfterPreamble{\teorema}  %if report       %%cabecalho e rodape       \fancyhead{}       \renewcommand{\chaptermark}[1]{\markboth{\thechapter.\space##1}{}}       \renewcommand{\sectionmark}[1]{\markright{\thesection\space##1}}       \fancyhead[L]{\bfseries\leftmark}  %capitulo do lado esquerdo       \fancyhead[R]{\bfseries\rightmark} %seção do lado direito       \fancyfoot{}       \fancyfoot[R]{\bfseries\thepage}   %nº da pagina do lado direito       \fancyfoot[C]{\scriptsize{\titulo}}       \fancyfoot[L]{R\'egis {\Large \smiley} \the\year}       \renewcommand{\headrulewidth}{0.5pt}       \renewcommand{\footrulewidth}{0.5pt}       \addtolength{\headheight}{12.5pt}       \fancypagestyle{plain}{%       \fancyhead{}       \renewcommand{\headrulewidth}{0pt}       }       \typeout{Using report class.}%     }%          \makeatletter%     \newcommand*{\SetHeaders}[1]{%         \@ifclassloaded{book}{\BookHeader{#1}%         }{\@ifclassloaded{article}{\ArticleHead{#1}%         }{\@ifclassloaded{report}{\ReportHead{#1}}{%           \typeout{Error: Unsupported class: 'article' or 'report' or 'book' are suported.}         }}}%     }%     \makeatother%          \SetHeaders{foo}%     %********************************************************************     % Ambiente para demonstração que coloca quadrado no final, usando \rule     % Nota: \rule{largura}{altura} produz um retagulo preto.     \newenvironment{dem}[1][Demonstração]{\textbf{#1:}\          }  {\hfill\rule{1ex}{1ex}}          % Ambiente para resolução de exercícios. Não juntar!     \newenvironment{sol}[1][Solução]{\uline{#1}:\          }  {\hfill $\Box$}  %O espaço provoca uma mudança de parágrafo no texto.


title: \vspace is not working between table caption and table

text: I want some vertical space between the table caption and the table, and I am using `\vspace{3mm}`, which have always worked before. In this document however, the command works for some tables, for others it doesn't make any difference, and for some it even "crashes" the run, saying `Undefined control sequence [...] \vspace`. An example of one of the table where the command makes no difference.               \documentclass[11pt,a4paper]{article}          \usepackage[T1]{fontenc}     \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage{amsfonts}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{tikz}     \usepackage{chemfig}     \usepackage{color}     \usepackage{upgreek}     \usepackage[hidelinks]{hyperref}     \usepackage[mediumspace,mediumqspace,squaren]{SIunits}     \usepackage{textgreek}     \usepackage{eso-pic}     \usepackage{tabularx}     \usepackage{rotating}     \usepackage{fixltx2e}      . . .               \begin{table}[h!]                 \centering                 \caption{\label{tab:enzyme}Absorbance values from \textit{Fixed-time $\beta$-glucosidase assays}}.                 \vspace{5mm}                 \begin{tabular}{c|c|c}                     C\textsubscript{substrate} (mM) & ABS (P\textsubscript{wt} 3x, 405 nm) & ABS (P\textsubscript{mut} 3x, 405 nm) \\ \hline                     10 & 0,959 & -0,312 \\                     5 & 1,023 & -0,268 \\                     1 & 0,913 & -0,234 \\                     0,1 & 0,304 & -0,231 \\                     0,01 & 0,042 & -0,237 \\                 \end{tabular}             \end{table}      Currently I have no table that fails the compilation. I had, but now it works without failing, however the command isn't making any difference.


title: Two column list with

text: How can I make a list of two columns with a border and a vertical line separating the two columns as an image? I've tried with tabular and mini page but nothing works properly! Can someone show me how to do this? Example: ![enter image description here](http://i.stack.imgur.com/TKlTP.png) Thank you!


title: Automating Adding Tables Fast to LateX from R?

text: > **Possible Duplicate:**   >  How can I use a table generated by R in LaTeX? I use a lot of tables from R, and I find it cumbersome and very slow to type the "&" and "\" etc. to get the tables translated into LaTeX. Is there some way to have a table like that below automatically formatted for LaTeX?                     Df Deviance Resid. Df Resid. Dev     NULL                      74    1233.55     inflat  1     4.13        73    1229.42     inc     1   907.24        72     322.18     Analysis of Deviance Table                 Df Deviance Resid. Df Resid. Dev     NULL                      59    1450.07     inflat  1    99.44        58    1350.63     inc     1   861.93        57     488.69     Analysis of Deviance Table                 Df Deviance Resid. Df Resid. Dev     NULL                     158    28963.3     inflat  1   3302.4       157    25660.9     inc     1  23996.2       156     1664.8


title: wxmaxima latex code gives me error when I use tcolorbox package

text: I copy the latex code that wxmaxima gives me and I obtain minipage error The code:                \documentclass[10pt,a4paper,oneside,spanish]{article}         \usepackage[spanish,es-nodecimaldot]{babel}         \setlength{\parskip}{\medskipamount}         \setlength{\parindent}{0pt}         \usepackage[T1]{fontenc}         \usepackage[utf8]{inputenc}         \usepackage{fancyhdr}         \pagestyle{fancy}         \setcounter{secnumdepth}{4}         \setcounter{tocdepth}{4}         \usepackage{units}         \usepackage{endnotes}         \usepackage{amsthm}         \usepackage{amsmath}         \usepackage{amssymb}         \usepackage{amsfonts}                   \usepackage{graphicx}         \usepackage{color,xcolor}                   \usepackage[total={15cm,21cm},left=2cm,top=2cm]{geometry}              \usepackage{tcolorbox}         \tcbuselibrary{breakable,skins}               \newcounter{exe}          \newcommand{\titulo}{        \node[fill=blue!20,           rounded corners,           draw=black,           text=black,           line width=1pt,           inner sep=4pt,           anchor=west,           xshift=12pt]        at (frame.north west){\bfseries Ejercicio \stepcounter{exe}\theexe.};     }          \newtcolorbox{ejercicio}{        enhanced,        overlay unbroken and first={\titulo},        colframe=orange,        boxrule=1pt,        arc=3mm,        breakable,        top=15pt,        before=\vskip18pt,     }                   \begin{document}         \begin{ejercicio}         A sample         \end{ejercicio}         \noindent         %%%%%%%%%%%%%%%         %%% INPUT:         \begin{minipage}[t]{8ex}{\color{red}\bf         \begin{verbatim}         (%i1)          \end{verbatim}}         \end{minipage}         \begin{minipage}[t]{\textwidth}{\color{blue}         \begin{verbatim}         divide(x^5-3*x^4+2*x^3-3*x^2+4*x+1,5*x^4-12*x^3+6*x^2-6*x+4,x);         \end{verbatim}}         \end{minipage}         %%% OUTPUT:         \definecolor{labelcolor}{RGB}{100,0,0}         \begin{math}\displaystyle         \parbox{8ex}{\color{labelcolor}\tt{($\!$\%o1)} }         [\frac{5\,x-3}{25},-\frac{16\,{x}^{3}+27\,{x}^{2}-62\,x-37}{25}]         \end{math}         %%%%%%%%%%%%%%%         \end{document}      The error message               Missing } inserted \end{minipage}      The error appears when I include tcolorbox package, i'm using a lot this package in my document. Thanks


title: pgfplots: Numbers along the x-axis

text: I'm trying to recreate some Chromatograms (have the tab-separated data) but I need to get numbers along the x-axis with some vertical separation (lines/boxes) as can be seen below ![enter image description here](http://i.stack.imgur.com/O1uNJ.png) The image was created with a software that ships with the chromatography system but produces rather ugly graphs/plots, I just need the numbers now. Thanks!


title: Emphasizing words within a string using the listings package in LaTeX

text: I'm using the listings-package for LaTeX to format source-codes within my document. I can emphasize keywords using the emph-option of the listings package:               \lstset{         emph={nerv},         emphstyle={\color{red}\textbf}     }          \begin{lstlisting}[         frame=trBL,         caption={R-Code (test).},         label={code:R_allee}     ]     # comment     square <- function(x) {         x^2     }          nerv = "Str ing "          x <- c(1:100)     y <- square(x)     \end{lstlisting}      This makes the "nerv" withing my source code bold and red. But, I want to highlight the "ing" withing the String "Str ing " using:               \lstset{         emph={ing},         emphstyle={\color{red}\textbf}     }      Unfortunately that does not work. I couldn't figure out what might solve the problem. Does anyone of you have an idea?


title: Using relative paths for \include commands

text: I have a top-level latex file: `/thesis.tex` And subfolders with chapters: `/chap1/ch1.tex` In `thesis.tex` I use `\include` commands like so:               \include{chap1/ch1}      And in `ch1.tex` I have more includes for the sections of the chapter:               \include{introduction}      The `ch1.tex` file and all its included sections use relative paths as above (this was a standalone document that is now a chapter of the larger thesis.tex doc). I realize I have to fix all the paths in the include statements for `ch1.tex` and its sections to respect the main document directory as the root:               \include{chap1/introduction}      Is there another way? Do I have to go through and change all the include and figure references in this way, or is there a way I can tell all such links to use relative paths within ch1?


title: Biblatex: Standard way to cite a volume of a series in a collection

text: Is there a standard way to cite a volume of a multi-volume series that appeared again in a multi-volume 'collected works' edition. Like, I wanna cite 'Volume 6 of Series 6 of the collected Works of G.W. Leibniz'. There are 53 volumes total, but for each series, the numbering starts again from 1. So, the Output should be sthg like that: Akademie Edition, Ser. III, Vol. IX, p256 I could solve it with using shorthands, I guess. my .bib file so far Looks like that: **EDIT: MWE**               \documentclass[12pt]{article}          \usepackage[     backend=biber,      style=verbose]{biblatex}          \begin{filecontents}{\jobname.bib}     @mvbook{A,     Author = {Leibniz, Gottfried Wilhelm},     Title = {S{\"a}mtliche Schriften und Briefe},     Volumes = {53},     Year = {1923-}}          @book{A:VI:vi,     Author = {Leibniz, Gottfried Wilhelm},     Maintitle = {S{\"a}mtliche Schriften und Werke},     Series = {Philosophische Schriften},     Number= {6},     Title = {Nouveaux Essais},     Volume = {6},     Year = {1962}}     }     \end{filecontents}     \addbibresource{\jobname.bib}     \begin{document}     \section{Title}          \cite[123]{A}          \cite[123]{A}     ***          \volcite[c.f.]{2}[123]{A}          ***          \cite[123]{A:VI:vi}          \cite[123]{A:VI:vi}          \printbibliography     \end{document}


title: How to add bullets to description lists?

text: I would like to add a bullet in front of every `\item[]`, i.e.               Hello,     \begin{description}      \item[bla] blubb     \end{description}      becomes > Hello,   >  **bla** blubb I quickly found how to remove them from itemize statements, but not the inverse. So, I would like to know how to prepend every description's item label with something.


title: Spellchecking highlighting problem in TexStudio when writing in Arabic

text: When I write a document in Arabic it behaves differently than in English when it comes to highlighting words misspelled. Consider the screenshot below:   1. Arabic comma _right_ after the target word, though _correctly spelled_ , was red underlined   2. Arabic comma one space after the target word, though output not accepted, was correct    3. English comma _right_ after the target word, was correct   4. When no comma, everything is fine   5. When the target word was misspelled, was red underlined as expected  Obviously, the first case is a bug that needs to be fixed, meaning that every occurrence followed by an Arabic comma would usually invoke a misspelling error and highlighting which is rather problematic.   It seems to be that the editor does not regard the Arabic comma `،`(pointing upwards usually) as an English comma`,` but as a part of the preceding word, which leads to all this mess. **Is there any fix for that?** **Note:**   TeXstudio 2.7.0 (hg 4307+:7e7903c73aac+) **Update**   A ticket was opened in TexStudio to fix this bug:   `#702 Spellchecking in Arabic does not regard the Arabic comma as a comma` **Copy & Paste**   `هنا كتابة النص باللغة العربية، للتأكد من الاملاء باللغة العربية` ![enter image description here](http://i.stack.imgur.com/plkki.png)


title: Upper limit on the number of pause commands in a frame

text: Is there any upper limit on the number of pause commands in a frame in beamer, when it is used along with the `\only<>{}` command ?. I have a simple beamer example with 14 pause commands, but the last four pauses do not generate extra slides at all ! They all appear in the same slide ! Can anyone please help. Here is the code:               \documentclass[blue,aspectratio=1610]{beamer}     \begin{document}     \begin{frame}{Decoding Stabilizer codes}     \only<1>{     1          \vspace{0.3cm}          }%     \pause     % 2 slide     \begin{columns}     \begin{column}{0.6\textwidth}     \only<2-10>{2-10 L}          \vspace{0.3cm}          \only<3-4>{3-4 L}     \only<5>{5 L}     \only<6>{6 L}     \only<7>{7 L}     \only<8>{8 L}     \only<9,10>{9-10 L}     \only<5-10>{5-10 L}     \end{column}     \begin{column}{0.45\textwidth}     \only<2-10>{     2-10 R 2     \vspace{0.3cm}          %     \pause     % 3 slide     2-10 R 3          \vspace{0.3cm}          %     \pause     % 4 slide     2-10 R 4          \vspace{0.3cm}          %     \pause     % 5 slide -- contents in the left column     %     \pause     % 6 slide     2-10 R 6          \vspace{0.3cm}          %     \pause     % 7 slide     2-10 R 7     %     \pause     % 8 slide     2-10 R 8     %     \pause     % 9 slide     2-10 R 9     }     \end{column}     \end{columns}          \vspace{0.5cm}          %     \pause     % 10 slide     \only<10>{     10          \vspace{0.3cm}          }%     \pause     % 11 slide     11          \vspace{0.3cm}          %     \pause     % 12 slide     12          \vspace{0.3cm}          %     \pause     % 13 slide     13          \vspace{0.3cm}          %     \pause     % 14 slide     14     \end{frame}     \end{document}


title: Customize bibliography style with natbib

text: Using the code below, my bibliography looks like this ![](http://i.stack.imgur.com/4d1vQ.png). How do I force LateX to:   1. Put the authors in alphabetical order by last name (eg. Basdevant and then Hall)    2. Put the last name of the first author first (eg. Basdevant, Oliver)              \documentclass{article}          \usepackage[round]{natbib}          \begin{document}          According to \citet{hall2003} ...               \bibliographystyle{plainnat}          \bibliography{/Users/joedangerstox/Documents/library}          \end{document}


title: Labelling (pinning) points in a plot automatically

text: I have a scatter plot that I am generating based on some data stored in comma- separated format. I need to add a label to each point: this information is available as part of the `.csv` file as it's used as the row labels. Currently, the approach I have is to plot the points automatically but to add the labels by hand:               \RequirePackage{filecontents}     \begin{filecontents*}{\jobname.csv}     Label,x,y,angle     a,1,1,0     b,2,2.5,0     c,3,2.9,0     d,4,4.1,-90     \end{filecontents*}     \documentclass{article}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \begin{document}     \begin{tikzpicture}       \begin{axis}         \addplot table           [col sep = comma, x = x, y = y] {\jobname.csv};         \node[pin = a] at (axis cs:1,1) {};         \node[pin = b] at (axis cs:2,2.5) {};         \node[pin = c] at (axis cs:3,2.9) {};         \node[pin = -90:d] at (axis cs:4,4.1) {};       \end{axis}     \end{tikzpicture}     \end{document}      Clearly this is not very efficient: ideally, I'd like to read the information from the stored table. This needs some form of mapping, but from the documentation for `pgfplots(table)` there seems to be a lack of a row-wise function to do that. Is it possible to write a (relatively simply) mapping which will add the nodes, picking up the _x_ and _y_ values plus the label and angle (or perhaps wider 'pin modification') from the `.csv` file? My table is not too long: maximum of about a dozen rows.


title: PDF preview on other monitor

text: Is there any way that allows me to have my pdf preview on a different monitor? I know that you can have Adobe open your pdf automatically instead of the built in previewer, but when I use this I always have to close the pdf before I can recompile. I work on windows 7, 64bit and use Texmaker


title: Customizing the navigation sidebar "per section"

text: I'm looking for a command to remove at will the first or the last X items of the TOC displayed in the sidebar. My problem appear when there is too many items in the sidebar. For example, the above picture shows a small sidebar. ![Small navigation sidebar](http://i.stack.imgur.com/82bZT.png) But, later in my presentation (see above), I will display so many subsections that the last TOC item disappear (and TeX issues an overfull vbox...) ![Overfull navigation sidebar](http://i.stack.imgur.com/S3Lpu.png) Ideally, I'm wanting some advice in order to write some macro that will remove the 1 or 2 first TOC items (here Sommaire and Objectifs pédagogiques) when I am in the problematic section (Méthode ...). I already check this question that is a little similar, but it does not solve my problem as there are always only 3 section displayed.


title: How to change the item separator in TikZ foreach command

text: I want to cycle over several sentences using a `foreach loop`. Now sentences will prpbably contain commas, which are used by `foreach` as item separators. So I would like to change the item separator to something that does not appear in my sentences, like e.g. `|` So instead of               \foreach \x in {sentenceA,sentenceB,sentenceC}      I would like to use               \foreach \x in {sentenceA|sentenceB|sentenceC}      Is this possible?


title: problem with change of pagenumbering with twoside

text: I am using scrartcl with the twopage option to get a two sided document. The result is as desired. If I change the pagenumbering after the first few pages (title page, list of contents, ...) from roman to arabic the pagecounter is resetted. This is desired as well. however, what I don't want is that the orientation of the page (left/right) is resetted as well. How can i avoid this? Here is a mimimal working example:               \documentclass[twoside]{scrartcl}     \usepackage{blindtext}          \begin{document}          \pagenumbering{Roman}     \section{right page, as it should be}     \blindtext \blindtext \blindtext      \newpage          \section{left page, as it should be}     \blindtext \blindtext \blindtext      \newpage          \section{right page, as it should be}     \blindtext \blindtext \blindtext      \newpage          \pagenumbering{arabic}          \section{right page again. this should be a left page}     \blindtext \blindtext \blindtext      \newpage          \end{document}      This question has also been asked here and there but hasn't been answered jet.


title: Make text in the margin selectable "columnwise" (marginpar, todonotes)

text: When including `marginpar` and/or `todonotes` marking text in a PDF viewer always selects the body of the text and the note together: ![enter image description here](http://i.stack.imgur.com/nsHoK.png) Some of us unfortunately have collaborateurs not using LaTeX and hence they prefer to copy & paste large chunks from the PDF to Word to edit the places. Hence my question: Is it possible to make text selectable per "column". I.e, either select the body OR select the note? ![enter image description here](http://i.stack.imgur.com/hwiBb.png) If that is not possible, one alternative would be to make the note completely inselectable using `accsupp` (although the other way would be preferable). But `accsupp` does not appear to work for `todonotes`, but it works for `marginpar`.               \documentclass{scrartcl}          \usepackage{todonotes,accsupp}          % Does not work     \newcommand{\mytodo}[1]{\todo{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}}               \begin{document}          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras in neque     felis.\todo{In viverra luctus metus id elementum. Class aptent taciti     sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.}     Pellentesque bibendum, nisi ac rhoncus tincidunt, tortor velit egestas     erat, nec cursus lectus lectus non leo. Suspendisse et leo eros, id     malesuada risus. Etiam commodo quam a magna pulvinar vehicula vestibulum     lacus blandit. Aliquam id tortor non tellus laoreet dictum. Aenean     eleifend, arcu a vestibulum vulputate, orci tellus sodales ante, nec     convallis orci lacus ac erat. Sed lacinia justo vitae ligula euismod     auctor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices     posuere cubilia Curae; In viverra luctus metus id elementum. Class aptent     taciti sociosqu ad litora torquent per conubia nostra, per inceptos     himenaeos.\marginpar{\BeginAccSupp{ActualText={}}In viverra luctus metus     id elementum. Class aptent taciti sociosqu ad litora torquent per conubia     nostra, per inceptos himenaeos.\EndAccSupp{}}          Sed convallis tincidunt justo sit amet fermentum. Vestibulum ante ipsum     primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nulla at     velit metus, ut blandit sapien. Maecenas lacinia congue sem, et pulvinar     arcu iaculis molestie. Lorem ipsum dolor sit amet, consectetur adipiscing     elit.               \end{document}


title: Babel warns of lack of hyphenation patterns for Hebrew

text: I use TeX Live including the Hebrew package. I've tried to produce a simple TeX file:               \documentclass{article}     \usepackage [english,hebrew]{babel}     \begin{document}     שלום     \end{document}      but I keep getting the infamous               Package babel Warning: No hyphenation patterns were loaded for the language `Hebrew'.      I've searched all over but can't find the solution.


title: PSTricks + pdfLaTeX resulting in fonts not embedding into eventual PDF

text: I want my eventual PDF to have all fonts embedded. Using special `psdots` in pstricks is causing this to fail. Here is a MWE of something which results in non-embedded fonts:               \documentclass[10pt]{article}          \usepackage{pstricks,epsfig,pst-node}     \usepackage{auto-pst-pdf}          \begin{document}          \begin{pspicture}(0,0)(3,3)     \psdots[dotstyle=asterisk](0,0)     \psdots[dotstyle=o](0,0)     \psdots[dotstyle=triangle*](0,0)     \psdots[dotstyle=diamond*](0,0)     \psdots[dotstyle=pentagon*](0,0)     \end{pspicture}          \end{document}      Here is output from `pdffonts`:               [mishchea@linty mwe]$ pdffonts mwe.pdf      name                                 type              encoding         emb sub uni object ID     ------------------------------------ ----------------- ---------------- --- --- --- ---------     SDXKYB+CMR10                         Type 1            Builtin          yes yes no       6  0     Times-Roman                          Type 1            Standard         no  no  no      13  0     [none]                               Type 3            Custom           yes no  no      14  0


title: Differences between .ist and .mst files in the index personalization

text: Are there some differences between `.ist` and `.mst` files in the index personalization? For example if I put an `.ist` file in the project folder and if I execute MakeIndex with this option:               makeindex -s istfilename      I have the personalization of the index, but also if I put an `.mst` file into the project folder I have that personalization but this time, without the previous options for MakeIndex, is there just this difference?


title: Macros for the subscript and spacing

text: I would like to define the command `A\!\!_B\!C` in a math mode as a macros, and I am using the following: `\newcommand{\cmp}[3]{#1\!\!_#2\!#3}` Unfortunately I get an error that there are `{}` missing. Any hint is appreciated.


title: Centering in tabularx columns

text: I am trying to do centering and text sizing in tabularx environment using the following definitions:               \newcolumntype{b}{>{\centering}X}     \newcolumntype{s}{>{\hsize=.25\hsize}X}      However, when I want to center "s" using the following command, I get an error:               \newcolumntype{s}{>{\centering}{{\hsize=.25\hsize}X}}      Any ideas what might work? Thanks.