title: Same parenthesis for nameprefix and first initial

text: I would like to have in the same parenthesis, the first initial of the author and its prefix. For example : Chazelles (Cl.-A. de) etc. but for the moment I have : Chazelles (Cl.-A.) (de) ... with this code               \renewcommand{\mkbibnamefirst}[1]{\parentext{#1}}                        \renewcommand{\mkbibnameprefix}[1]{\parentext{#1}}          @INPROCEEDINGS{chazellesroux10,       author = {{\relax Cl}aire-Anne de Chazelles and Jean-{\relax Cl}aude Roux},       title = {La construction en terre crue en France méditerranéenne},       booktitle = {Archéologie des rivages méditerranéens: 50 ans de recherche},       pages = {343-349},     }      Do you have any idea? I don't know if is possible. And thank you very much in advance! **EDIT :** Oh wonderful ! It's almost perfect but now, for inbook, inproceedings etc. the firstname is not in parenthesis. I guess, we need to change another macro like byeditor, but how ? My MWE is particularly long but there is a lot of change because of the recommendations of my director.                \documentclass[12pt]{report}                                                       %type de document+ police     \usepackage{fontspec}     \usepackage{xunicode}     \setmainfont[Mapping=tex-text,Numbers=OldStyle]{Linux Libertine O}          \usepackage{polyglossia}     \setdefaultlanguage{french}     \setmonofont[Scale=0.75]{DejaVu Sans Mono}     \setotherlanguage[variant=ancient]{greek}     \setotherlanguage{english}                         \usepackage{microtype}  %gère la microtypo     \usepackage{csquotes}     \usepackage{shorttoc}          %%% MARGES ET INTERLIGNES     \usepackage{geometry}         \geometry{a4paper}         \geometry{top=2cm, bottom=2cm, left=2cm , right=2cm}                                              %gestion interligne                                                          \usepackage{setspace}     \onehalfspacing                                                                                % interligne 1.5     \let\oldquotation\quotation                                                                     %Rédéfinit l'environnement quotation pour avoir un interligne de 1     \let\endoldquotation\endquotation     \renewenvironment{quotation}     {\begin{oldquotation}\singlespace}      {\end{oldquotation}}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %     %%%%%%%%%%%%%%%%%% %BILIOGRAPHIE       %     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               \usepackage[                                                                                %BILIOGRAPHIE       backend=bibtex,       language=french,       style=authoryear,       firstinits,       mergedate=false,       style=authoryear-ibid,       maxcitenames=2,        maxbibnames=999     ]{biblatex}           \renewcommand*{\revsdnamepunct}{}     \renewcommand*{\finalnamedelim}{\multinamedelim}     \renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}     \DeclareNameAlias{sortname}{last-first}     \renewcommand*{\labelnamepunct}{\space\textendash\space}                %tiret après le label     \renewbibmacro*{date+extrayear}{}%                                          rajoute date          %enlève guillement article et in     \DeclareFieldFormat       [article,inbook,incollection,inproceedings,patent,thesis,unpublished]       {title}{#1}        \renewbibmacro{in:}{%                                                                        \ifentrytype{article}         {}         {\printtext{\bibstring{in}\intitlepunct}}}              \renewbibmacro*{issue+date}{%       \printfield{issue}%       \setunit{\addcomma\space}%       \printdate%       \newunit}          \renewbibmacro*{publisher+location+date}{%       \printlist{location}%       \setunit*{\addcomma\space}%       \printlist{publisher}%       \setunit*{\addcomma\space}%       \usebibmacro{date}%       \newunit}          \renewbibmacro*{begentry}{\printtext[bold]{\usebibmacro{cite}\addspace\addcolon\space}}            %Met les abréviations des revues     \renewbibmacro*{journal}{%       \iffieldundef{shortjournal}         {%           \iffieldundef{journaltitle}             {}             {%               \printtext[journaltitle]                 {%                   \printfield[titlecase]{journaltitle}%                   \setunit{\subtitlepunct}%                   \printfield[titlecase]{journalsubtitle}%                  }%              }%         }         {\printtext[journaltitle]{\printfield[titlecase]{shortjournal}}}%     }               %Enlever le tiret lorsqu'il y a une récurrence des auteurs     %     \makeatletter     \AtEveryBibitem{%       \global\undef\bbx@lasthash%       \clearfield{extraalpha}}     \makeatother                    % "Et al." en ITALIQUE          \renewbibmacro*{name:andothers}{% Based on name:andothers from biblatex.def       \ifboolexpr{         test {\ifnumequal{\value{listcount}}{\value{liststop}}}         and         test \ifmorenames       }         {\ifnumgreater{\value{liststop}}{1}            {\finalandcomma}            {}%          \andothersdelim\bibstring[\emph]{andothers}}         {}}           %%% Histoire des noms    et al...     \makeatletter     \renewbibmacro*{begentry}{%       \renewcommand*{\mkbibnamelast}[1]{##1}%       \defcounter{maxnames}{\blx@maxcitenames}%       \printtext[bold]{\usebibmacro{cite}\addspace:\space}%       \defcounter{maxnames}{\blx@maxbibnames}       \renewcommand*{\mkbibnamelast}[1]{\textsc{\textnohyphenation{##1}}}}     \makeatother         %minuscule citation     \AtBeginDocument{\renewcommand*{\mkbibnamelast}[1]{#1}}                      %Enlève parenthèse colloque     \renewbibmacro*{event+venue+date}{                               \iffieldundef{eventtitle}         {}         {%           \bibstring{presentedat}%           \printfield{eventtitle}%         }%       \ifboolexpr{         test {\iffieldundef{venue}}         and         test {\iffieldundef{eventyear}}       }         {}         {\setunit*{\addspace}%          \printtext{%            \printfield{venue}%            \setunit*{\addcomma\space}%            \printeventdate}}%       \newunit     }              %modification des chaines de langues         \DefineBibliographyStrings{french}{%      byeditor = \iffieldequalstr{keywords}{source}%                               {Établit\space par}%     {dir\adddotspace\smartof},      in = {\textit{in}},%      editor           = {dir\adddotspace},%      editors          = {dir\adddotspace},%      opcit = \iffieldequalstr{entrytype}{article}{art\adddotspace cit\adddot}{\emph{op\adddotspace cit}\adddot},%     idem = {\emph{idem}},%     ibidem = {\emph{ibid\adddot}},%     %pagetotal = {p\adddot},%      %pages            = {pp\adddot},%     }          %modifie les pages des articles ... par pp. au lieu de p.     \DeclareFieldFormat[article,inbook,inproceedings,incollection]{pages}{pp\adddotspace #1}%               %enlève la virugule avant dir.     \makeatletter     \renewbibmacro*{bbx:editor}[1]{%       \ifboolexpr{         test \ifuseeditor         and         not test {\ifnameundef{editor}}       }         {\usebibmacro{bbx:dashcheck}            {\bibnamedash}            {\printnames{editor}%     %   \setunit{\addcomma\space}% DELETED         \setunit{\addspace}% ADDED         \usebibmacro{bbx:savehash}}%     %     \usebibmacro{#1}% DELETED          \printtext{\usebibmacro{#1}}% ADDED          \clearname{editor}}         {\global\undef\bbx@lasthash}}     \makeatother                %modifié book pour virgule      \DeclareBibliographyDriver{book}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/editor+others/translator+others}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{maintitle+title}%       \newunit       \printlist{language}%       \newunit\newblock       \usebibmacro{byauthor}%       \newunit\newblock       \usebibmacro{byeditor+others}%       \newunit\newblock       \printfield{edition}%       \newunit       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\addcomma         % ajout de la virgule       \printfield{pagetotal}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \iftoggle{bbx:related}         {\usebibmacro{related:init}%          \usebibmacro{related}}         {}%       \usebibmacro{finentry}}            %Change ordre des entrées pour les in quelquechoses :        \DeclareBibliographyDriver{incollection}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/editor+others}%       \setunit{\space\textendash\space}\newblock       \usebibmacro{maintitle+title}%       \newunit\newblock          \usebibmacro{in:}%      \usebibmacro{bybookauthor}%     \newunit\newblock       \usebibmacro{byeditor+others}%       \newunit\newblock       \usebibmacro{maintitle+booktitle}%       \newunit\newblock       \printfield{edition}%       \newunit       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \iftoggle{bbx:related}         {\usebibmacro{related:init}%          \usebibmacro{related}}         {}%       \usebibmacro{finentry}}          \DeclareBibliographyDriver{inproceedings}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/editor+others}%       \setunit{\space\textendash\space}\newblock       \usebibmacro{maintitle+title}%       \newunit\newblock        \usebibmacro{in:}%       \usebibmacro{byeditor+others}%       \newunit\newblock       \usebibmacro{maintitle+booktitle}%       \newunit\newblock       \usebibmacro{event+venue+date}%       \newunit\newblock       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \printlist{organization}%       \newunit       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \iftoggle{bbx:related}         {\usebibmacro{related:init}%          \usebibmacro{related}}         {}%       \usebibmacro{finentry}}          \DeclareBibliographyDriver{inbook}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/editor+others}%       \setunit{\space\textendash\space}\newblock       \usebibmacro{maintitle+title}%       \newunit\newblock        \usebibmacro{in:}%       \usebibmacro{byeditor+others}%       \newunit\newblock       \usebibmacro{maintitle+booktitle}%       \usebibmacro{bybookauthor}%       \newunit\newblock       \usebibmacro{maintitle+booktitle}%       \newunit\newblock       \printfield{edition}%       \newunit       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \iftoggle{bbx:related}         {\usebibmacro{related:init}%          \usebibmacro{related}}         {}%       \usebibmacro{finentry}}          \DeclareBibliographyDriver{proceedings}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{editor+others}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{maintitle+title}%       \newunit       \printlist{language}%       \newunit\newblock       \usebibmacro{event+venue+date}%       \newunit\newblock       \usebibmacro{byeditor+others}%       \newunit\newblock       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \printlist{organization}%       \newunit       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\addcomma% ajout de la virgule       \printfield{pagetotal}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \iftoggle{bbx:related}         {\usebibmacro{related:init}%          \usebibmacro{related}}         {}%       \usebibmacro{finentry}}               %% Pour avoir collaboration après l'auteur pour namea     \makeatletter     \renewbibmacro*{author}{%       \ifboolexpr{         test \ifuseauthor         and         not test {\ifnameundef{author}}       }         {\usebibmacro{bbx:dashcheck}            {\bibnamedash}            {\printnames{author}%             \setunit{\addcomma\space}%             \usebibmacro{bbx:savehash}%             \usebibmacro{authorstrg}%             \ifnameundef{namea}              {}              {\setunit{\addcomma\space}%               \global\undef\bbx@lasthash%               \usebibmacro{authorstrg}%               \setunit{\addspace}%               \usebibmacro{bynameastrg}%               \setunit{\addspace}%               \printnames{namea}}}}         {\global\undef\bbx@lasthash}}     \newbibmacro*{bynameastrg}{%       \iffieldundef{nameatype}         {}         {\usebibmacro{bytypestrg}{namea}{editor}}}     \makeatother            %gère les parenthèses pour les particules     \renewcommand*{\revsdnamepunct}{\addspace}          \renewbibmacro*{name:last-first}[4]{%       \ifuseprefix         {\usebibmacro{name:delim}{#3#1}%          \usebibmacro{name:hook}{#3#1}%          \ifblank{#3}{}{%            \ifcapital              {\mkbibnameprefix{\MakeCapital{#3}}\isdot}              {\mkbibnameprefix{#3}\isdot}%            \ifpunctmark{'}{}{\bibnamedelimc}}%          \mkbibnamelast{#1}\isdot          \ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}%          \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibparens{\mkbibnamefirst{#2}}\isdot}}% added \mkbibparens         {\usebibmacro{name:delim}{#1}%          \usebibmacro{name:hook}{#1}%          \mkbibnamelast{#1}\isdot          \ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}%          \ifblank{#2#3}{}{\revsdnamepunct}%          \ifblank{#2}{}{\bibnamedelimd\bibopenparen\mkbibnamefirst{#2}\isdot}% added \bibopenparen          \ifblank{#3}{}{\bibnamedelimd\ifblank{#2}{\bibopenparen}{}\mkbibnameprefix{#3}\isdot}% added \ifblank{#2}{\bibopenparen}{}          \ifblank{#2#3}{}{\bibcloseparen}}}% this line is new                    %%%%%%%%%%%%%%%%%% FICHIER BIBLIO     \addbibresource{master01,alire}                %%%%%%%%%%%%%%%%%% Présentation biblio %%%%%%%%%%               \begin{document}                \nocite{*}          \begin{spacing}{1}               \printbibliography[keyword=source,title=Les sources primaires]          \printbibliography[notkeyword=source]           \end{spacing}                    \end{document}      ![enter image description here](http://i.stack.imgur.com/KhwTl.png) I can not integrate my bibliography with filecontent. Sorry. And I would like in : dir de DELESTRE (X), MERCHESI (H) like author. I also have another problem with it but I think I'll make a new topic as ideally I wish have: in : DELESTRE (X), MERCHESI (H) dir. ...


title: Add horizontal lines for selected shaded cells

text: I was trying to add a thicker horizontal line for columns 2-13 (above columns A, B, and C in the following example). My code did not not work for shaded columns. Any suggestions? Thanks in advance.               \documentclass[11pt]{article}     \usepackage[letterpaper, margin=1in]{geometry}     \usepackage{array}     \usepackage{float}     \restylefloat{table}     \usepackage{multirow}     \usepackage{makecell}     \usepackage{colortbl}     \usepackage{fancyhdr}     \pagestyle{fancy}     \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \definecolor{Grey1}{RGB}{243,243,243}     \definecolor{Grey2}{RGB}{191,191,191}     \definecolor{Grey3}{RGB}{163,163,163}     \newcolumntype{A}[1]{>{\raggedleft\arraybackslash\columncolor{Grey1}}m{#1}}     \newcolumntype{B}[1]{>{\raggedleft\arraybackslash\columncolor{Grey2}}m{#1}}     \newcolumntype{C}[1]{>{\raggedleft\arraybackslash\columncolor{Grey3}}m{#1}}          \begin{document}          {\renewcommand{\arraystretch}{1.38}     \begin{table}[!h]     \large     \textbf{Table 1} \\     \vspace{-.35cm}          \textit {\textbf {Summary}}           \begin{tabular}{!{\vrule width 1.5pt} L{6cm} !{\vrule width 1.5pt} A{0.45cm} | B{0.45cm} | C{0.45cm} !{\vrule width 1.5pt} A{0.45cm} | B{0.45cm} | C{0.45cm} !{\vrule width 1.5pt} A{0.45cm} | B{0.45cm} | C{0.45cm} !{\vrule width 1.5pt} A{0.45cm} | B{0.45cm} | C{0.45cm} !{\vrule width 1.5pt}}     \noalign{\hrule height 1.5pt}     \multicolumn{1}{!{\vrule width 1.5pt} c !{\vrule width 1.5pt}}{Percent} & \multicolumn{3}{c !{\vrule width 1.5pt}}{\underline {2009}} & \multicolumn{3}{c !{\vrule width 1.5pt}}{2010} & \multicolumn{3}{c !{\vrule width 1.5pt}}{2011} & \multicolumn{3}{c !{\vrule width 1.5pt}}{2012}       \\ [-0.9ex]      \cline {2-13}     \multicolumn{1}{!{\vrule width 1.5pt} c !{\vrule width 1.5pt}}{(\%)} & A & B & C & A & B & C & A & B & C & A & B & C  \\ [-0.9ex]     \noalign{\hrule height 1.5pt}     Row 1 & 30 & 58 & 12 & 30 & 56 & 14 & 34 & 52 & 14 & 26 & 55 & 19 \\     \arrayrulecolor{black}\hline     Row 2 & 20 & 8 & 22 & 40 & 36 & 54 & 3 & 52 & 14 & 26 & 55 & 19 \\     \arrayrulecolor{black}\hline     Row 3 & 20 & 8 & 22 & 40 & 36 & 54 & 3 & 52 & 14 & 26 & 55 & 19 \\     \arrayrulecolor{black}\hline     Row 4 & 20 & 8 & 22 & 40 & 36 & 54 & 3 & 52 & 14 & 26 & 55 & 19 \\     \arrayrulecolor{black}\hline     Row 5 & 20 & 8 & 22 & 40 & 36 & 54 & 3 & 52 & 14 & 26 & 55 & 19 \\     \arrayrulecolor{black}\hline     Row 6 & 20 & 8 & 22 & 40 & 36 & 54 & 3 & 52 & 14 & 26 & 55 & 19 \\     \noalign{\hrule height 1.5pt}     \end{tabular}     \end{table}          \end{document}


title: How do I remove hyperlinks from \tableofcontents in beamer?

text: I am designing a presentation in `beamer` and would like to use `\tableofcontents` to generate an outline frame. However, by default, `beamer` includes hyperlinks on the section names in the table of contents. Here is a minimal example of this:               \documentclass{beamer}          \begin{document}          \begin{frame}       \tableofcontents     \end{frame}          \section{First}     \begin{frame}       \frametitle{Who's on first?}     \end{frame}          \section{Second}     \begin{frame}       \frametitle{What's on second?}     \end{frame}          \end{document}      I have found that it is much too easy to accidentally click on one of these hyperlinks while speaking and derail the presentation. Aside from manually writing a contents frame, how can I remove these hyperlinks?


title: How can I change the distance between abstract and section 1?

text: My LaTeX format is as follows: > Abstract: Abstract goes here. > > Section 1: It should be noted that my abstract is one column and sections are two-column. Abstract and Section 1 are very close together. I want some space between abstract and Section 1. I tried `\hfill` but it only affects on one column but at the beginning of the second column the Abstract and Section 1 are close together. How can I fix it?               \documentclass[a4paper,twocolumn]{article}     \usepackage{graphicx}     \usepackage[cmex10]{amsmath}     \usepackage{mathtools}     \usepackage[usenames]{color}     \usepackage[table]{xcolor}     \usepackage{lipsum}     \usepackage{multicol}          \renewenvironment{abstract}{%       \noindent\bfseries\abstractname:\normalfont}{}     \begin{document}     \title{     \textbf{Title}     }          \setlength{\columnsep}{0.8cm}          \begin{abstract}     Abstract is here      \end{abstract}          \section{Introduction}     \section{circuit}     Circuit is here     \subsection{Noise analysis}     Noise analysis is here     \section{Circuit Design}     Circuit Design is here     \section{Simulation Results}     Simulation Results is here     \section{Conclusion}     Conclusion is here.     \begin{thebibliography}{1}     \bibitem{}Friis, H. T.:      \end{thebibliography}     \end{document}      This is my first experience with Latex and it's a real pain...


title: math.SE-compatible LaTeX for diagrams with non-horizontal "decorated" arrows?

text: I'm looking for LaTeX directives that I can use in posts to math.SE to make category-theory-style diagrams that use non-horizontal ( _vertical_ , _slanted_ , _curved_ ) arrows, both "plain" (i.e. the non-horizontal analogues of `$\rightarrow$` and `$\leftarrow$`) and "decorated" (i.e. the non- horizontal analogues of, e.g., `$\hookrightarrow$`, `$\twoheadrightarrow$`, `$\rightarrowtail$`, dashed arrows, etc.). Therefore, I need not only the codes for the various types of arrows, but also the details of the LaTeX environment for specifying the whole diagram. P.S. By way of illustration of what I'm looking for, below is an example of the best I know how to do (mostly cribbed from a post by another math.SE contributor):               \begin{matrix}     & & A_i & & \newline     & {\scriptstyle v_i} \swarrow & \downarrow {\scriptstyle t_i} & \searrow {\scriptstyle s_i} & \newline      K & \xrightarrow{k} & \cup A_i & \xrightarrow{u} & A & \rightrightarrows & B     \end{matrix}      This diagram falls short in several respects. Most seriously, the names of the two morphisms associated with the paired arrow are missing. In addition, all the other arrows should be hooked (`$\hookrightarrow$`, to indicate that they are inclusions). Furthermore, the arrow labeled `$v_i$` should be not only hooked, but also dashed, to indicate that it is unique. Lastly, all the arrows should be longer, and the angles of the slanted ones wrt the horizontal should be shallower, so that the lines going through them pass through the symbols for the domain and codomain objects, as they are supposed to. Editors: this post would be easier to read if the LaTeX in it were rendered, instead of appearing as source code. I was not able to find how to turn on LaTeX rendering, but if this is possible to do, please go ahead. I'll do better next time.


title: Setting the column gap in a twocolumn (or multicol) document

text: I have a document that uses `twocolumn` with `scrbook`. How can I set the width of the space between the two columns?


title: Producing isolated accents

text: Is it possible to produce isolated accents, with no letters under it? I'm looking for these characters in specific: ` ~ ^ ´ ˆ ˜ ¨


title: How to remove page numbering for particular pages of your document in LaTeX?

text: `\thispagestyle{empty}` is not working...


title: ignoring vertical space due to overbraces in cases environment

text: In the following formula, I would like to change the rendering such that the lower end of the "cases" brace looks as if there were no underbraces. Is that possible? I already tried `\smash` and negative `\vspace`s to no avail.               \documentclass{article}     \usepackage{amsmath}     \begin{document}     \newcommand\terma{\left( 1\!-\!e^{\frac{-\lambda_2^2}{2\alpha^2\lambda_3^2}}\right)}     \newcommand\termb{e^{\frac{-\lambda_1^2}{2\beta^2|\lambda_2\lambda_3|}}}     \newcommand\termc{\left( 1-e^{\frac{-\sum_i\lambda_i^2}{2c^2}}\right)}          \[     \mathcal V(\sigma)=      \begin{cases}          0    & \text{if $\lambda_2>0$ or $\lambda_3>0$,}\\          \underbrace{\terma}_{A}          \underbrace{\termb\vphantom{\terma}}_{B}          \underbrace{\termc\vphantom{\terma}}_{C}          &\text{else}.      \end{cases}     \]     \end{document}


Want to add the different icons in Friggeri Resume like email, phone, mobile, skype etc.               \documentclass[]{myfriggeri-cv}     \addbibresource{bibliography.bib}          \begin{document}     \header{friggeri}{friggeri}        {social network analyst}               % In the aside, each new line forces a line break     \begin{aside}     \section{about}      Street      City      Country      ~     \href{mailto:friggeri@gmail.com}{friggeri@gmail.com}     \href{http://friggeri.net}{http://friggeri.net}     \href{http://facebook.com/friggeri}{fb://friggeri}     \section{languages}      english      Germans  \& French     \section{programming}      {\color{red} $\varheartsuit$} \LaTeX      (MATLAB)       C, C++      %CSS3 \& HTML5     \end{aside}          \section{objective}          \section{interests}          complex networks, social networks, community detection, community structure,     overlapping communities, information diffusion, viral marketing, social     inference, recommendation, data mining          \section{education}          \begin{entrylist}     \entry     {since 2009}     {Ph.D. {\normalfont candidate in Computer Science}}     {DNET/INRIA, LIP/Ã‰NS de Lyon}     {\emph{A Quantified Theory of Social Cohesion.}}     \entry     {2007-2008}     {Master in  Scientific Computing}     {DNET/INRIA, LIP/Ã‰NS de Lyon}     {Majoring in complex networks\\     Specialization in data mining}     \entry     {2003â€“2006}     {Classes PrÃ©paratoires aux Grandes Ã‰coles}     {LycÃ©e FÃ©nelon, LycÃ©e Louis le Grand, Paris}     {Preparation for national competitive entrance exams to leading French ``grandes   Ã©coles'', specializing in mathematics and physics.}     \entry     {2003}     {French BaccalaurÃ©at S. with honors}     {LycÃ©e Louis le Grand, Paris}     {Specialization in mathematics and physics}     \end{entrylist}          \section{experience}          \begin{entrylist}     \entry     {02â€“07 2009}     {LIP6/CNRS, Paris}     {Research Internship.}     {\emph{Visualization of complex networks.}}     \entry     {06â€“08 2008}     {ISCPIF/CNRS, Paris}     {Research Internship.}     {\emph{Diffusion in the Blogosphere. Happy Flu.}}     \entry     {06â€“08 2007}     {LIP6/CNRS, Paris}     {Research Internship.}     {\emph{Kernels in real world networks.}}     \entry     {07â€“08 2005}     {\href{http://www.kelkoo.com}{Kelkoo.com}}     {Summer job.}     {\emph{Creation of a keyword generator for Google Adwords.}}     \entry     {07â€“08 2004}     {\href{http://www.monsieurprix.com}{MonsieurPrix.com}}     {Summer job.}     {\emph{Development of an e-commerce product indexation spider.}}     \end{entrylist}          \section{applications}          \begin{entrylist}     \entry     {2012}     {Who did I forget ?}     {\href{http://whodidiforget.com}{whodidiforget.com}}     {Guest list recommendation for Facebook events based on friends already attending the event.}     \entry     {2011}     {Fellows}     {\href{http://fellows-exp.com}{fellows-exp.com}}     {Automatic community detection among Facebook Friends in order to validate the     \emph{cohesion} measure, creation of friend lists.}     \entry     {2008}     {Happy Flu}     {\href{http://happyflu.com}{happyflu.com}}     {Experiment aimed to measure viral spreading of content across the blogosphere.}     \end{entrylist}          \section{publications}     \section{hobbies}     \section{reference}     \section{information}          \printbibsection{article}{article in peer-reviewed journal}     \begin{refsection}     \nocite{*}     \printbibliography[sorting=chronological, type=inproceedings, title={international peer-reviewed conferences/proceedings}, notkeyword={france}, heading=subbibliography]     \end{refsection}     \begin{refsection}     \nocite{*}     \printbibliography[sorting=chronological, type=inproceedings, title={local peer-reviewed conferences/proceedings}, keyword={france}, heading=subbibliography]     \end{refsection}     \printbibsection{misc}{other publications}     \printbibsection{report}{research reports}          \end{document}


title: Oversized parentheses around xymatrix

text: This must have been asked somewhere here before, but I cannot seem to find it. I am using `\left(` and `\right)` around an xymatrix, but the parenthesis are far too big; ![enter image description here](http://i.stack.imgur.com/aJ3xD.png) with the following code;                \begin{equation*}                 \left(\xymatrix{ A \ar[r] \ar[d]    & B  \ar[d] \\                           X     \ar[r]_f    &   Y}\right)             \end{equation*}


title: Referencing a table vs. a figure in LyX, format

text: Currently, when I reference things using labels I have setup LyX simply inserts the table number. I would like it to insert `Table N` where `N` is the table number. Similarly, I would like it to insert `Figure N` for figures. Is this possible or is there no way for LyX to know that my label refers to a figure or table?


title: Alter saturation or brightness of a color

text: I'm using xcolor.sty's nifty wheel function to define a color scheme based on a single base color. So, for example:               \definecolor{base}{HTML}{AADD96}     \colorlet{complement}{base>wheel,1,3}      makes `base` a pale green color, and `complement` a similarly pale blue (1/4 of the way round the color wheel). Is there a way to similarly define colors by changing the _saturation_ or _brightness_ of an existing color?


title: Properly sort index containing utf8 characters?

text: If my input file is utf8 encoded, how to I create an index where the entries are properly sorted? Minimal example               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{makeidx}     \makeindex     \begin{document}     Hello World\index{Gödel}\index{Galois}     \printindex     \end{document}      After compiling with `pdflatex` and `makeindex`, the entries show up with “Gödel” before “Galois”, which is wrong. In another somewhat related question it is suggested to compile with `xelatex` instead; however I'm trying to do this in a large-ish project already written by someone else, and trying to switch to xelatex is proving a bit problematic. So, is there a way to make it work with `pdflatex`?


title: How do I generate a logarithmic x-axis without a y-axis?

text: I would like to plot the following image using TikZ: ![enter image description here](http://i.stack.imgur.com/pPnib.jpg) How do I generate an X-axis with logarithmic scaling using TikZ? For linear scaling I use this code:               \usetikzlibrary{plotmarks}     %axis     \draw (3,0) -- coordinate (x axis mid) (21,0);              %ticks         \foreach \x in {3,...,21}             \draw (\x,0pt) -- (\x,-3pt)             node[anchor=north] {\x};          %labels           \node[below=0.8cm] at (x axis mid) {Physical dose [Gy]};


title: How to print in algorithmic package for some If condition or For loop in one line?

text: How to print               \FOR{$j:=0,\ldots,i-1$}               \STATE{$\C_{ij}:=\C_{ii}\cdot\C_{ij}$};              \ENDFOR      in one line instead of two line?


title: After a series of nested \includegraphics, some PDF viewers fail to display the image

text: I'll admit this is a convoluted example, but I like drawing with TikZ and LaTeX and this particular issue has come up for me more than once. The minimal working example takes a few files, but in a nutshell - a PDF is produced at each compile with the current filesize in it. After a set number of includes some viewers (`evince`,`okular`,`acroread*`) fail to display the deeply nested images, while others segfault (`xpdf`) and only one (`gs`) shows the full image correctly. *Note that `acroread` won't fail on the example below, but will if you keep cranking up the iterations. # first.tex               \documentclass{standalone}\begin{document}start\end{document}      # next.tex               \documentclass{standalone}     \usepackage{graphicx}     \IfFileExists{\jobname.pdf}       {\edef\Size{\pdffilesize{\jobname.pdf}}}       {\def\Size{0}}          \renewcommand{\arraystretch}{0}     \setlength\fboxsep{1pt}     \newcommand{\X}{\includegraphics{first.pdf}}     \begin{document}%     \begin{tabular}{@{}l@{}}%     \framebox{\Size} \\ \X     \end{tabular}     \end{document}      # Makefile               all:         make first         make block         make block         make block              evince next.pdf         gs next.pdf          first:         pdflatex first.tex          next:         pdflatex next.tex         cp next.pdf first.pdf          block:         make next         make next         make next         make next         make next         make next         make next         make next         make next         make next      # Examples (`gs` vs `evince`) ![enter image description here](http://i.stack.imgur.com/kc604.png) ![enter image description here](http://i.stack.imgur.com/kDeg1.png) **Questions:**   1. Why can't the viewers display the deeply nested images?    2. By running `pdf2ps -> ps2pdf` the problem is fixed, but is there any risk for more complicated images being mangled (i.e. using TikZ or fonts with ConTeX)?


title: How to temporarily remove the formatting in a definition environment?

text: I have a definition, written as follows:               \begin{definition}     This is a definition, in which I would like to have a few normal words.     \end{definition}      Ordinarily, the entire definition is rendered in _italics_. But I would like to remove the formatting from "normal," making it appear without the _italics_. Is there a quick way to achieve this?


title: LyX bibliography problems

text: I am using LyX 2.0.0.3. I am tyring to insert bibliography. I am using `plain` in the bibliography style and `article` as a document style. When I convert the document in the pdf, it shows heading "References" and then displays nothing. How can I fix this?


title: Spacing between lines differs when using tabbing and parbox

text: I'm writing a budget report for personal use to help me keep track of how much I'm spending in various categories and where exactly I'm spending it. I'm trying to get these reports to take less space on the page so I can get one page for each month. Also, I'm generating this automatically so as you'll see, generating extra code for each line isn't a big deal, though if there is a better way altogether, I'm open to it. I'm currently using the tabbing environment to line up the monthly and YTD (year to date) numbers for each category (sample code and output below), and an indented parbox below to hold where exactly I spent the money in that category. I'm using a parbox so that the text doesn't go below the numbers, which would make the numbers hard to read. **My issue:** When I have less space between the lines when there's only one line in the parbox than when there's more than one. In the example below, you can see that the lines below "Groceries" are tighter than the line below "Out To Eat". I'd like to tighten this up so it is more likely to fit on one page. Also, my eye is distracted by the different spacing, and so I spend time thinking about how to fix it instead of about how I'm spending my money. I've tried `lineskip=0pt` as suggested here in this answer: http://tex.stackexchange.com/a/44497/2823 but it had no visual effect that I could see, and adding `\strut` as suggested in this answer: http://tex.stackexchange.com/a/45044/2823, though the `\strut` seemed to be for adding space for descenders, which it did (but isn't what I need.) I've also tried adding `\par`'s at every place I can think of as I know that the linespacing for lines of differing sizes depends on what the size is when the paragraph starts or ends, but that has had no effect either. Here's what I have; any suggestions about this specific issue, or better ways to do this altogether, are very welcome.               \documentclass{article}     \begin{document}     \begin{tabbing}     \hspace*{2.5in} \= \hspace{0.75in} \=.\kill     Groceries\>579.60\'\>1756.34\' \\      \hspace{10pt}\parbox{2in}{\scriptsize\raggedright Trader~Joe's,~216.71; Cub,~216.34; Whole~Foods,~101.40; Wuollet,~7.95} \\      Out To Eat\>36.30\'\>129.22\' \\      \hspace{10pt}\parbox{2in}{\scriptsize\raggedright Davanni's,~36.30} \\      Car\>7.00\'\>21.00\'\\     \hspace{10pt}\parbox{2in}{\raggedright\scriptsize Wash,~7.00}     \end{tabbing}     \end{document}      ![enter image description here](http://i.stack.imgur.com/xu3y4.png)


title: Center table and align caption over table

text: I have a small table that I want to center in a document. I can do this but the caption then is left justified rather than aligning with the centered table. I'd like to center the table and make the caption align with the centered table. How can I achieve this? Minimal example (I left in any package information in case this is useful):               \documentclass{scrartcl}     \usepackage[american]{babel}     \usepackage{csquotes}     \usepackage{scrextend}     \usepackage[style=apa, backend=biber]{biblatex}     \DeclareLanguageMapping{american}{american-apa}     \usepackage{amsmath}     \usepackage[sc]{mathpazo}     \usepackage{geometry}     \geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm}     \setcounter{secnumdepth}{2}     \setcounter{tocdepth}{2}     \usepackage{url}     \usepackage[unicode=true,pdfusetitle,      bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=2,      breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]      {hyperref}     \hypersetup{pdfstartview={XYZ null null 1}}     \usepackage{enumerate}     \usepackage{booktabs}     \usepackage{siunitx}     \usepackage[justification=justified,singlelinecheck=false]{caption}     \usepackage{hyperref}     \usepackage{here}          \newenvironment{my_enumerate}{     \begin{enumerate}       \setlength{\itemsep}{1pt}       \setlength{\parskip}{0pt}       \setlength{\parsep}{0pt}}{\end{enumerate}     }          \begin{document}     \begin{table}[ht]     \centering     \caption{Descriptive Statistics. \label{desc}}     \begin{tabular}{lccccc}     \toprule      &  & \multicolumn{2}{c}{pre} & \multicolumn{2}{c}{post} \\ \cmidrule(lr){3-4}\cmidrule(lr){5-6}     approach  & n & mean & sd & mean & sd \\      \midrule     1  & $12$ & $24.2$ & $\phantom{0}8.3$ & $54.3$ & $11.0$ \\     2  & $12$ & $25.5$ & $\phantom{0}9.4$ & $65.2$ & $16.3$ \\     3  & $12$ & $26.3$ & $\phantom{0}9.1$ & $63.2$ & $12.5$ \\     All  & $36$ & $25.3$ & $\phantom{0}8.8$ & $60.9$ & $13.9$ \\     \bottomrule      \end{tabular}     \end{table}     \end{document}


title: SyncTeX wrongly placed when XeTeX called with -aux-directory

text: I am using MikTeX 2.9 and compiling "hello.tex" containing:               \documentclass{minimal}          \begin{document}     text     \end{document}      with:               xelatex --synctex=1 --aux-directory=auxdir hello.tex      produces a `E:\something.synctex.gz` instead of `hello.synctex.gz` in the same directory with the source `hello.tex`. In particular, "something" is the same length as "hellow.tex", indicating that SyncTeX is fed with the wrong path. This problem does not arise if pdflatex is called instead. I have been using this command for a long time without any problems, but after updating my distribution the previous problem arose. Any help will be much appreciated. If it turns out to be a bug, please tell me to which bug list I should report it.


title: MiKTeX 2.9 (for x86), Win 7 (x64): biber not running as if not installed

text: I installed biber through MiKTeX's package manager but when trying to compile my references, nothing happens, as if biber was not installed when, in fact, its .exe is present under `C:\Program Files (x86)\MiKTeX 2.9\miktex\bin` and this path is included in the system variables. Bibtex works just fine. I tried to delete the `par-4e69636f6c6173` folder under `C:\Users\Nicolas\AppData\Local\Temp` created each time I try to run biber through the command prompt, but to no avail. Typing `biber test` systematically creates 4 files in my `Temp` folder: `biber.exe`, `libgcc_s_sjlj-1.dll`, `libstdc++-6.dll` and `perl516.dll`. I also tried to run "Refresh FNDB" in MiKTeX settings. Any insights ? Here is a MWE               \documentclass{article}     \usepackage{fontspec}     \usepackage{filecontents}     \usepackage{csquotes}     \usepackage[style=apa]{biblatex}     \addbibresource{refs.bib}          \begin{filecontents}{refs.bib}     @article{alamargot2001,     title = {What makes a skilled writer? {W}orking memory and audience awareness during text composition},     volume = {21},     shorttitle = {What makes a skilled writer?},     number = {5},     urldate = {2013-03-02},     journal = {Learning and Individual Differences},     author = {Alamargot, Denis and Caporossi, Gilles and Chesnet, David and Ros, Christine},     year = {2001},     keywords = {Audience awareness, Expertise, Eye Movements, Individual differences, Online     measures, Procedural text, Written production},     pages = {505--516},     }     \end{filecontents}          \begin{document}     Some text \autocite{alamargot2001}\ldots     \printbibliography     \end{document}      Commands executed: `xelatex test` produces test.log/aux/bcf/pdf, refs.bib and test.run.xml. `biber test` or `biber test.bcf` produces nothing: ![biber command](http://i.stack.imgur.com/kcg9R.png)


title: How can I reduce table row height?

text: I use the following code to render a table in LaTeX. But the problem is that the default row height is too big for me. I want to be able to specify the row height. How can i do it?               \begin{tabular}{|p{5cm}|p{2.5cm}|}       \hline       File  & size \\ \hline            hello_world & 1mb\\  \hline            helloworld2 kB & 64kb \\       \hline     \end{tabular}      Can someone please help.


title: What is the difference between Latin Modern and Linux Libertine?

text: There is good discussion of what is the difference between Latin Modern and cm-super? **Can someone summarise what is the differences and similarities between Latin Modern, Linux Libertine and Computer Modern Unicode fonts?** All these families originate from Knuth's CM metafont fonts. All are availabe as Open Type fonts. The major difference, from my point of view, is absence of Cyrillic letters in LM. But my main interest here is typesetting quality from professional point of view: outlines, kerning, protrusion etc., i.e. those features which are not visible for unexperienced user. I understand that there are many similar questions in TeX.sx, so what I'd like to get is some sort of summary or FAQ. Important point is which of these fonts are frozen and which is actively supported.


title: How to pass definitions to \AtBeginDocument?

text: I need to delay execution of a chuk of code to the time when other packages are loaded so I wrap it into `\AtBeginDocument`:               \AtBeginDocument{%       \def\reserved@a#1#2{%         \edef\reserved@b{#1}%         \edef\reserved@c{#2}%         \ifx\reserved@b\reserved@c           \let\cyrillicencoding\reserved@c         \fi}       \def\cdp@elt#1#2#3#4{%         \reserved@a{#1}{OT2}%         \reserved@a{#1}{LCY}%         \reserved@a{#1}{X2}%         \reserved@a{#1}{T2C}%         \reserved@a{#1}{T2B}%         \reserved@a{#1}{T2A}%         \if@uni@code           \reserved@a{#1}{EU1}%           \reserved@a{#1}{EU2}%         \fi}       \cdp@list     }      This code looks at the list of loaded font encodings (saved in `\cdp@list`), compare it with predefined list of desired Cyrillic encodings ordered from least preferable to the most preferable (OT2, LCY... EU2) and save the name of selected encoding to the macro `\cyrillicencoding`. Boolean macro `\if@uni@code` is evaluated to true if either LuaTeX or XeTeX is running:               \newif\if@uni@code     \ifdefined\luatexversion \@uni@codetrue \else     \ifdefined\XeTeXrevision \@uni@codetrue \fi\fi      It works fine. However it fails if I move some portion of preparatory definitions out of the box. For example,               \def\reserved@a#1#2{%       \edef\reserved@b{#1}%       . . .     \fi}     \AtBeginDocument{\cdp@list}      I guess that macros within moving argument of `\AtBeginDocument` should be somehow `protect`ed or `expendafter`. **Can someone elucidate where my troubles come from**? And second question: **Is it good practice to delay big chunks of code to at the begin document time?** **UPDATE:** here is minimal example:               \documentclass{minimal}     \usepackage{mytest}     \usepackage[T2B]{fontenc}     \begin{document}     \verb|cyrillicencoding|={\csname cyrillicencoding\endcsname}     \end{document}      and `mytest.sty`               \def\reserved@a#1#2{%         \edef\reserved@b{#1}%         \edef\reserved@c{#2}%         \ifx\reserved@b\reserved@c           \let\cyrillicencoding\reserved@c         \fi}     \def\cdp@elt#1#2#3#4{%         \reserved@a{#1}{T2C}%         \reserved@a{#1}{T2B}%         \reserved@a{#1}{T2A}%     }     \AtBeginDocument{\cdp@list}      If the entire content of `mytest.sty` would be wrapped into `\AtBeginDocument`, output will be `\cyrillicencoding=T2B`.


title: Figures overlapping text above it

text: I am writing a two column technical paper and have a number of figures. The figures are included in the following way:               \begin{figure}       \includegraphics[bb=0 0 160 160,scale=0.5]{figures/chap6_conflictpercentage_5000.jpg}       \caption{Percentage Of Transactions Conflicting In Each Set Of Workload}       \label{graph1}     \end{figure}      I am using `Miktex` and `Winedit` for editing the tex file. In the output the figures overlap the text above it. How do I prevent that?


title: LaTeX cannot embed images located inside a folder

text: I have a few JPEG images inside a folder. I use the following code to embed images               \begin{figurehere}            \centering         \includegraphics[width=0.5\textwidth]{folder\test.jpg}         \caption{Example \cite{visbin}}          \end{figurehere}      But LaTeX doesn't allow me to compile it. It says `Undefined control sequence <argument> folder\test` Can somebody please help me?


title: A line in the lstlisting environment cannot start with "\end{frame}" in a beamer presentation

text: I'm making a presentation about LaTeX using the beamer package (v3.10). I'm using the listings (v1.4) package to print pieces of latex source code and highlight the keywords. It seems that the following minimal example can't compile :               \documentclass{beamer}     \usepackage[english,french]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{listings}     \lstset{language=[LaTeX]tex}          \begin{document}          \begin{frame}[fragile]     \begin{lstlisting}     \begin{frame}     \titlepage     \end{frame}     \end{lstlisting}     \end{frame}          \end{document}      Using latexmk with the latexila editor, I got this error :               Missing } inserted      Whereas, using pdftex with the latexila editor, I got a more verbose output :               \begin{lstlisting} on input line 1 ended by \end{beamer@framepauses}.     Extra }, or forgotten \endgroup     \begin{lstlisting} on input line 1 ended by \end{beamer@frameslide}.     Undefined control sequence     Package Listings Error: Extra \endlstlisting     \begin{beamer@framepauses} on input line 17 ended by \end{lstlisting}.     Extra }, or forgotten \endgroup     \begin{beamer@framepauses} on input line 17 ended by \end{document}.     You can't use `\end' in internal vertical mode     \begin{beamer@framepauses} on input line 17 ended by \end{document}.      After some research, It seems that even with the `[fragile]` option passed on to `\frame`, there is a problem with the last line of the quoted code : `\end{frame}`. One workaround is to indent from at least one space this line :               \begin{lstlisting}     \begin{frame}     \titlepage      \end{frame}     \end{lstlisting}      My conclusion is : a line in the `lstlisting` environment cannot start with `\end{frame}`. Did I do something wrong ?


title: how to center align a word with bold and underline

text: I need to center align a word with bold and underlines. I've tried with `\textbf` and `\centerline` in all possible combinations but no use. I am using `\documentclass[12pt]{report}` for my report doc.


title: Package to typeset Poems

text: Is there any package in LaTeX available to typeset poems. I referred this link Typesetting poems but it didn't help me out!!!!


title: \flushbottom vs. fixing position of chapter heading in book class

text: Consider this MWE:               \documentclass[12pt%,oneside%     ]{book}     \usepackage{setspace}     \setstretch{1.2}     \usepackage{lipsum}     \begin{document}     %\raggedbottom     \chapter{ABC}     See how this chapter heading is not in the same place as the following one? Try the oneside option of the book class, and the problem disappears!     \chapter{ABC}     \lipsum[1-3]     \end{document}      You'll note the positions of the first and second chapter headings are different. This is quite annoying when switching from one doublepage to another after a very short chapter. How can I fix this without using `\raggedbottom` or `oneside`?


title: Italic index entries have no link in PDF

text: I have a problem when adding index entries. When I use just the vanilla `\index{...}`, the generated PDF contains links on the page numbers in the index. But when using `\index{...|textit}` to mark index entries as primary entries, these links disappear. The same happens when I use `textbf` instead of `textit`. I looked through the documentation of `makeidx` and `hyperref`, but didn't find any reference to that problem there. Here is a minimal example. I used `latexmk -pdf`:               \documentclass{article}      \usepackage{hyperref}      \usepackage{makeidx}     \makeindex     \begin{document}     Text. \index{normal} \index{bold|textbf} \index{italic|textit}     \printindex     \end{document}      This is my TeX version:               This is pdfTeX, Version 3.1415926-1.40.10      (TeX Live 2009/Debian) (format=pdflatex 2011.5.25)


title: Spacing numbers in two equations equally

text: I have this weird requirement, to align two sets of numbers, one under another, in groups of three. Here is how it should look: ![desiredResult](http://i.stack.imgur.com/s8AdZ.png) I tried the following:               \begin{align*}     x_F &= 1.368 &808 & 107 & 853 & 223 &5… \text{ — Approximate answer;}\\     x_T &= 1.368 &808 & 107 & 821 & 372 &6… \text{ — true (correct) value.}     \end{align*}      but all I get is this: ![myResult](http://i.stack.imgur.com/FUC57.png) As you can see for some reason `808107` does not want to separate! P.S.: _Bonus_ points if you give me a hint on how to align that text on the right too!


title: What is the correct syntax to do arithmetic for length and dimensionless macros?

text: I want to set papersize based on PSTricks settings. The PSTricks settings may be a value without dimension and/or a value with dimension. Honestly I have not read the TeXBook because of my laziness. I just read some examples from others but I don't know the hidden theory. For short, I have two questions as follows.   1. why does the following calculation not work? How should I do arithmetic for values with dimension and without dimension.   2. what is the best practice to reduce the rounding error for complicated length and dimensionless value calculation?               \documentclass{minimal}     \usepackage{pstricks}     \psset     {         xunit=2cm,         yunit=1cm     }          \newcommand\Left{-4}     \newcommand\Right{4}     \newcommand\Bottom{-4}     \newcommand\Top{4}     \newcommand\Padding{0}               \topmargin=-72.27pt     \oddsidemargin=-72.27pt     \parindent=0pt     \paperwidth=\dimexpr\Right\psxunit-\Left\psxunit+2\Padding\psxunit\relax     \paperheight=\dimexpr\Top\psyunit-\Bottom\psyunit+2\Padding\psyunit\relax     \special{papersize=\the\paperwidth,\the\paperheight}          \begin{document}     \begin{pspicture}(\Left,\Bottom)(\Right,\Top)     \psframe(\Left,\Bottom)(\Right,\Top)     \end{pspicture}     \end{document}


title: Using KOMA-Script packages with other classes

text: When speaking of KOMA-Script most people will refer to its classes `scrbook`, `scrreprt`, `scrartcl` and perhaps `scrlttr2`. But not everyone will know, that part of the bundle are also some packages, that _can be used with other classes_ than the KOMA-Script ones. Let us give here an overview of these packages. Please one answer per package (except for packages with very similar functions) containing beside the name …   * if it’s meant rather for package respective document class writers or for users dealing with documents (or both).   * where documentation is to be found, i.e. in main KOMA-Script doc `scrgiuen.pdf` (English)/`scrguide.pdf` (German) or separate.   * overview of package features.   * a short example if possible.   * perhaps links to some existant answers on TeX.SE using this package.


title: How to correct for a xshift in the pgfplot legend?

text: Using the following example code:               \documentclass{article}          \usepackage{pgfplots}     \pgfplotsset{compat=newest}          \begin{document}     \begin{tikzpicture}             \begin{axis}[                     xlabel=$x$,                     ylabel={$f(x) = x^2 - x +4$}             ]             % use TeX as calculator:             \addplot {x^2 - x +4};             \addlegendentry{First plot}             \addplot [xshift=1cm]{x^2 - x +4};             \addlegendentry{Second plot}             \end{axis}     \end{tikzpicture}     \end{document}      Creates this chart with the strange legend: ![Broken legend](http://i.stack.imgur.com/RQ3rd.png) I guess this is due to the xshift property for the plot, but how can I revert this?


title: Word spacing in LaTeX

text: How to implement word spacing in LaTeX? For websites this is done with CSS:               word-spacing: 0.5em;      * * * This is for reference about other tags   * paper: custom   * layout:    * layoutoffset:(h,v)=(0.0pt,0.0pt)   * modes:    * h-part:(L,W,R)=(0.0pt, 72.26999pt, 0.0pt)   * v-part:(T,H,B)=(0.0pt, 72.26999pt, 0.0pt)   * `\paperwidth`=72.26999pt   * `\paperheight`=72.26999pt   * `\textwidth`=72.26999pt   * `\textheight`=72.26999pt   * `\oddsidemargin`=-72.26999pt   * `\evensidemargin`=-72.26999pt   * `\topmargin`=-109.26999pt


title: xelatex error paragraph ended before \@tempa was complete

text: Hi I ve got this error message               Runaway argument?     \x@protect \[\protect \[  \@nil  \@ifpackageloaded {amstex}{\def \@tempa \ETC.     Paragraph ended before \@tempa was complete.     <to be read again> \par       l.435 \newenvironment{proof}[1][\proofname]{\par      while compiling this in XeLaTex               \documentclass[12pt]{book}%thesis          \usepackage{polyglossia}     \setmainlanguage{english}          \usepackage[numbers]{natbib}     \usepackage{amsfonts}     \usepackage{amsthm}     \usepackage{amsmath}      \usepackage{amssymb}      \usepackage{makeidx}     \usepackage{graphicx}     \usepackage{epigraph}     \usepackage{pdfpages}     \usepackage{url}      \usepackage{breqn}     \usepackage{setspace}     \usepackage{dsfont}     \usepackage{eurosym}     \usepackage{epstopdf}     \usepackage{color}     \usepackage{setspace}     \usepackage{titling}               \begin{document}     bla     \end{document}       What seems to be the pbm?


title: matlab2tikz/pgfplots adding colorbar afterwards

text: I am currently using both `matlab2tikz` and `pgfplots` with external graphics since I am not completely convinced by either yet. Is it possible to add a colorbar with any of the two afterwards (meaning the original MATLAB figure is not open anymore, and therefore I can not check for the minimum and maximum values anymore)? If I run `matlab2tikz` on a MATLAB figure with the colorbar open, `matlab2tikz` will place the correct colorbar automatically, if added afterwards it will always only give a scale from 0-1 as `point meta min` and `point meta max` are of course not specified. Is it possible to modify `matlab2tikz` such that `point meta min` and `point meta max` are always saved to the .tikz file? If i use `pgfplots` with external graphics, I will always have to assign `point meta min` and `point meta max` manually. Is there any way around this when using pgfplots? P.S. I am aware that it is possible to export the entire dataset from MATLAB and import it to `pgfplots`. However I would like to avoid this as the datasets are rather big (including quite some meshes) and the total amount of pictures in the final report will be >100.


title: How to make lualatex select the correct OpenType features in math mode?

text: After fiddling around with egreg's answer to my previous question, I finally discovered that `lualatex` is not selecting the `tnum` OpenType features, that is it uses the default numerals instead of the monospaced lining, whereas `xelatex` does select the correct numerals. # The Goal To use the Calluna font, with OldStyle figures in the main text, and Lining figures in mathmode, using code that's preferably compilable using `lualatex`. # The Problem Calluna has OldStyle figures by default, so the named character `one` returns a LowerCase 1. The code supplied by egreg is supposed to select the character `one.tnum` in math mode (or `pnum` as it stands in his original answer, but that only influences horizontal spacing). His code works fine using `xelatex`, but `lualatex` produces the character `one` instead, which for most fonts is actually a lining, proportional, figure, so exactly what egreg expected, but for Calluna this is an oldstyle, proportional numeral. Since Calluna is not freely available I changed the code to use EB Garamond which produces the same result. ## Edit ~~The problem really is in the combination of`lualatex` and egreg's code, since the normal `\setmainfont` options are respected perfectly fine by `lualatex`, if I set these to Lining I get Lining figures in the main text, but still not in the math text. See my original question as well for the reasons to use this code instead of `mathspec` for example.~~ After filing an issue at the `luaotfload` GitHub, it appears the problem was that fontspec uses the `Renderer=Full`/`mode=node` option by default, while in math mode `mode=base`/`Renderer=Basic` should be used. However, now the font features are applied inconsistently, randomly changing between compilations. # The Question How can I change the code, such that `lualatex` **consistently** uses the Lining, Monospaced numerals (OpenType feature `tnum`) in math mode, while using `eulervm` for all other characters in mathmode? # The Code               \documentclass[landscape]{scrartcl}          \usepackage{amsfonts}     \usepackage{eulervm}     \usepackage{siunitx}     \usepackage{ifluatex}          \usepackage[no-math]{fontspec}     \setmainfont[         Ligatures={Common,TeX},         Numbers={OldStyle,Proportional},         ]{EBGaramond12-Regular.otf}     %  ]{Calluna}     \setsansfont[         Ligatures={Common,TeX},         Numbers={Lining,Proportional},         ]{TeX Gyre Heros}     \setmonofont[         Ligatures={NoRequired,NoCommon,NoContextual},         Numbers={Lining,Monospaced},         ]{TeX Gyre Cursor}          % LuaTeX uses the full renderer by default, this does not work in math mode, so negate manually     \ifluatex         \newfontfamily{\liningmain}[             Ligatures={Common,TeX},             Numbers={Lining,Monospaced},             Renderer=Basic,             ]{EBGaramond12-Regular.otf}     %        ]{Calluna}     \else         \newfontfamily{\liningmain}[             Ligatures={Common,TeX},             Numbers={Lining,Monospaced},             ]{EBGaramond12-Regular.otf}     %        ]{Calluna}     \fi          % A trick for extracting the family information     % which works independently of the chosen font     \begingroup       \def\getfamily#1#2#3#4#5{#4}       \edef\x{\endgroup       \def\noexpand\liningdefault{\expandafter\expandafter\expandafter         \getfamily\csname liningmain \endcsname}}\x          \DeclareSymbolFont{liningmath}{\encodingdefault}{\liningdefault}{m}{n}     \DeclareSymbolFontAlphabet{\mathlining}{liningmath}     \Umathcode`0="7 \symliningmath `0     \Umathcode`1="7 \symliningmath `1     \Umathcode`2="7 \symliningmath `2     \Umathcode`3="7 \symliningmath `3     \Umathcode`4="7 \symliningmath `4     \Umathcode`5="7 \symliningmath `5     \Umathcode`6="7 \symliningmath `6     \Umathcode`7="7 \symliningmath `7     \Umathcode`8="7 \symliningmath `8     \Umathcode`9="7 \symliningmath `9          \sisetup{             math-rm = \mathlining,     }          \usepackage{polyglossia}     \setmainlanguage[variant=british]{english}          \usepackage{blindtext}     \begin{document}     \section{testing}          \begin{tabular}{p{.15\textwidth}p{.85\textwidth}}     \hline     Mode & Result\\     \hline     Normal font & \fontname\font\\     Lining font & {\liningmain\fontname\font}\\     Text mode & 1234567890\\     Math mode & \(1234567890\)\\     \verb|\SI| text mode & \SI{1042358769}{\metre}\\     \verb|\SI| math mode & \(\SI{1234567890}{\metre}\)\\     \verb|\num| text mode & \num{1234567890}\\     \verb|\num| math mode & \(\num{1234567890}\)\\     verbatim & \verb|1234567890|\\     \hline          \end{tabular}     \end{document}


title: Odd spacing of two column tables & lists

text: I have an issue with the spacing of the first multiple choice question in my `MWE`. I have NO idea what is going on. I have run into issues of this sort before, but it was because of improper line breaks. However, those issues are not present here. What is happening? I am definitely interested in a detailed explanation as well if possible. The issue is displayed in the image: ![enter image description here](http://i.stack.imgur.com/p9AFZ.png)               \documentclass{memoir}     \usepackage{multicol,tabularx,enumitem}          \setlist[enumerate]{itemsep=0pt}     \setenumerate[1]{label={(\Alph*)}}     \setlength{\columnseprule}{0.5pt}     \setlength{\columnsep}{15pt}     \newlist{choicelist}{enumerate}{2}     \setlist[choicelist]{label=(\Alph*),leftmargin=5mm}               \begin{document}               \begin{multicols}{2}     \begin{tabularx}{0.9\linewidth}{cX}     1.  &       MICROBE: \\     &   \begin{choicelist}             \item       large marine animal             \item       in order of time             \item       tiny creature             \item       no government         \end{choicelist}     \end{tabularx}     %------------------------------------------------------------     \begin{tabularx}{\linewidth}{cX}     2.  &       INSCRIBE: \\     &   \begin{choicelist}             \item   someone who tells stories             \item       to write on something             \item       indiscriminate             \item       delete         \end{choicelist}     \end{tabularx}     %------------------------------------------------------------     \begin{tabularx}{\linewidth}{cX}     3.  &       GEODE: \\     &   \begin{choicelist}             \item   rock with a crystal inside             \item       study of life             \item       across nations             \item       reptilian         \end{choicelist}     \end{tabularx}     %------------------------------------------------------------     \begin{tabularx}{\linewidth}{cX}     \columnbreak     4.  &       PROPEL: \\     &   \begin{choicelist}             \item       to push forward             \item       to agree with something             \item       proper             \item       overly enthusiastic         \end{choicelist}     \end{tabularx}     %------------------------------------------------------------     \begin{tabularx}{\linewidth}{cX}     5.  &       AUTONOMY: \\     &   \begin{choicelist}             \item       charitable act             \item       book written by more than one person             \item       government that rules itself             \item       recurring         \end{choicelist}     \end{tabularx}     %------------------------------------------------------------     \begin{tabularx}{\linewidth}{cX}     6.  &       TRANSGRESS: \\     &   \begin{choicelist}             \item       disagree             \item       cross line of property             \item       eliminate             \item       cause an accident         \end{choicelist}     \end{tabularx}     %------------------------------------------------------------     \begin{tabularx}{\linewidth}{cX}     \columnbreak     7.  &       AMORAL: \\     &   \begin{choicelist}             \item       unable to decide             \item       uncomfortable             \item       a vague amount             \item       having no morals         \end{choicelist}     \end{tabularx}     %------------------------------------------------------------     \begin{tabularx}{\linewidth}{cX}     8.  &       COMINGLE: \\     &   \begin{choicelist}             \item       direct             \item       incorrect             \item       repeating action             \item       mix together         \end{choicelist}     \end{tabularx}     %------------------------------------------------------------     \begin{tabularx}{\linewidth}{cX}     9.  &       ANARCHY: \\     &   \begin{choicelist}             \item       a government that rules itself             \item       a book written about yourself             \item       no government             \item       a type of bridge         \end{choicelist}     \end{tabularx}          \end{multicols}     \end{document}


title: Calculating the ink coverage of a page

text: Is it possible for LaTeX or any of its derivates to calculate, how much of a page is covered in ink? I came to this question via a link to ecofont posted on TeXhax, ecofont sells carved out versions of standard fonts. I know there are also light/condensed versions of for instance the Iwona, I also found an outline of Computer Modern (Computer Modern Outline) and would like to calculate the percentage of ink by switching from the standard one.


title: Changing the font size in a table

text: What's the recommend way of changing the font size in a particular table? Is there a better way than enclosing all values with, for example, the `\tiny` function.


title: Hyperref not jumping to the appropriate location

text: > **Possible Duplicate:**   >  href to an image label - how to jump to the image instead of the caption > below the image? It appears that the links to the figures take the cursor to the figure label, where the label is at the top of the page. This makes the reader have to scroll up to see the figure. Also, the footnotes take me either to the previous page or sometimes it keeps me on the same page but takes the PDF to a full page view of the same page. What am I doing wrong? MWE code:               \documentclass[12pt]{article}          \usepackage{float}     \usepackage{verbatim}     \usepackage[margin=1in]{geometry}      \usepackage{graphicx}                 \usepackage{amsmath}                   \usepackage{amsfonts}                   \usepackage{amsthm}                     \usepackage{harvard}     \usepackage{setspace}     \usepackage{fullpage}     \usepackage{threeparttable}     \usepackage{amssymb}     \usepackage{booktabs}     \usepackage{longtable}     \usepackage{hyperref}     \usepackage[titletoc,toc,page]{appendix}     \newtheorem{thm}{Theorem}[section]     \newtheorem{lem}[thm]{Lemma}     \newtheorem{prop}[thm]{Proposition}     \newtheorem{cor}[thm]{Corollary}     \newtheorem{conj}[thm]{Conjecture}                    \begin{document}     \nocite{*}          \title{Hpperref not working}          \author{N00b}          \maketitle     \newpage     \section{Main}          It appears that the links to the figures, like here for Figure ~\ref{fig:mweref}, take   the cursor to the figure label, where the Label is at the top of the page. This makes the reader have to scroll up to see the figure. Also, the footnotes, like this one \footnote{containing really useful stuff}, takes me either to the previous page or when I remove the newpage command after my title, it takes me  to the pdf with the full page view of the same page. What am I doing wrong? Thanks.      \begin{figure}[H]     \centering     \includegraphics[scale=0.55]{mweref}     \caption{mweref}\label{fig:mweref}     \end{figure}     \end{document}      This PDF file is output that my TeXnicCenter is producing.


title: How to refer to a figure or table and have its number printed instead of the section number?

text: In a LaTeX document I have several figures and tables and I need to reference some of them. I tried putting the label in different positions and figured out that it worked when I put the label next to the caption. However, when the hyperlink is clicked it goes to the caption and the next table is in view which might confuse the readers of the document. Furthermore, when I put the label code after the table environment, the number displayed in the pdf is the section number (and subsection if available). How can I make the references point to the actual graphics and have their number? EDIT: I have solved the problem by using the package "hypcap" and using the command /capstart at the point I want the "hyperref" to anchor.


title: Formula out of margin

text: I got some issues while writing a formula in LaTeX. I have to print this in my document:               \textit{P3ACM}: $ \left \langle \left \langle ( 09.00, 18.00 ) , \{ Monday, Tuesday, Wednesday, Thursady, Friday \} \right \rangle , \left \langle NOW,  24/12/11:23.59 \right \rangle \right \rangle $      but once I compile it, the formula gets off the margins used in the whole document. I just started using LaTeX so I'm not so good, would you please suggest me how to get over this problem?


title: AMSsymb in ConTeXt

text: Where can I find some of the functionality, namely the symbols, from the LaTeX package AMSSymb in ConTeXt? For example, how do I place a `\blacksquare`? Is there an equivalent in ConTeXt? I didn't find what I am looking for at contextgarden.


title: Tabulary = bad vertical alignment?

text: I am trying to make a table and I am using the tabulary package to have nice column widths. But here the 2nd and 3rd column values are top aligned while I would want them to be vertically centered. How can I do that ? My current code is :               \PassOptionsToPackage{setpagesize=false}{hyperref}      \documentclass[a4paper,11pt,twoside]{article}     \usepackage{amsmath,amssymb}     \usepackage[frenchb]{babel}     \usepackage[utf8x]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{amsfonts}     \usepackage[left=1.5in,right=1.3in,top=1.1in,bottom=1.1in,includefoot,includehead,headheight=26pt]{geometry}     \renewcommand{\baselinestretch}{1.05}     \usepackage{tabulary}          \begin{document}          \begin{table}     \noindent     \begin{tabulary}{\textwidth}{ | L | C | C | }     \hline     \centering A long title that is wrapped on several lines & A long title that is wrapped on several lines & A long title that is wrapped on several lines \\     \hline      A random text & 2 & 0.025 \\     \hline     A quite long random text (wrapped on 2 lines) : $\varepsilon=0.25$ & 2 & ? \\     \hline     A quite long random text (wrapped on 2 lines) : $\varepsilon=0.5$ & 2 & 1 \\     \hline     A quite long random text (wrapped on 2 lines) : $\varepsilon=0.75$ & 2 & A \\     \hline     A very very very very very very very very very very very very very long random text : $\varepsilon=0.75$ & 2 & A \\     \hline     \end{tabulary}     \caption{A random caption.}     \end{table}     \end{document}      Thanks ! EDIT : complete code


title: How can I produce the title, the author name and the abstract?

text: ... in IEEE conference Latex template? Is it possible to do that?


title: Change make contact graphic in TikZ circuit lib and add closed option

text: Is it possible to change the appearance of the `var make contact` symbol from the `TikZ circuit library` as follows (i.e. add the second circle) and add a "closed" option as shown in the following (handmade) picture: ![Make contact graphics](http://i.stack.imgur.com/X7cmh.png)


title: How to cite Wolfram Web Resources in Bibtex?

text: Wolfram offers very helpful web resources for mathematical terminology. Every article has a short note at the end, e.g. in Tree it says: > CITE THIS AS: > > Weisstein, Eric W. "Tree." From MathWorld--A Wolfram Web Resource. > http://mathworld.wolfram.com/Tree.html What is the correct way to produce a BibTex entry with this information? Where to put "From MathWorld--A Wolfram Web Resource"? How to clarify that the date refers to the date of retrieval? I suggest something like:               @electronic{weisensteinTree,         author = {Weisstein, E. W.},         title = {Tree}         ...         ?     }


title: Writing a thesis in Lyx using a Latex Template - What am I doing wrong?

text: I'm looking to write my thesis in Lyx as I'm impressed with all the document handling features. I have found, what is called, a Latex template for my university's thesis here: http://www.cs.columbia.edu/mice/c/d.php?d=109 The template contains a set of .tex, .bst. and .sty files as well as a simple Makefile. Running `make` does produce a nice pdf that looks exactly like a bare bones thesis would. Now how can I get Lyx to play nice with all of this? For one, I don't see anything for dealing with Makefiles. Am I shooting for the moon?


title: What am I doing wrong with PSTricks 3D?

text: I'm starting doing graphs with PSTricks in 3D, but I can't reach a first good result. What am I doing wrong?               \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pst-node}     \usepackage{pst-plot}     \usepackage[utf8]{inputenc}     \usepackage{eurosym}     % -------- Paquetes de pst-all \usepackage{pst-all}   paquete pstricks para             \usepackage{pst-plot}     \usepackage{pst-node}     \usepackage{pst-tree}     \usepackage{pst-grad}     \usepackage{pst-coil}     \usepackage{pst-text}     \usepackage{pst-3d}     \usepackage{pst-eps}     \usepackage[tiling]{pst-fill}     \usepackage{pstricks-add}     \usepackage{multido}     % ---- Fin Paquetes de pst-all          \begin{document}     \psset{unit=1.5, Alpha=45, Beta=30}     \begin{pspicture}(-3,-1.5)(3,4)     \pstThreeDCoor[xMin=-4,xMax=4,yMin=-4,     yMax=4,zMax=3, arrows=<->]     \psplotThreeD[plotstyle=line,linecolor=blue,     yPlotpoints=40,xPlotpoints=30, linewidth=0.5pt,     hiddenLine=true](-2,2)(-2,2)     {     x 100 mul cos y 100 mul sin sub     }     \rput[tl](-2,3.5){$f(x,y)=\cos (100x) - \sin (100y) $ }     \end{pspicture}          \end{document}


title: Double anudatta marking using devanagari

text: ![enter image description here](http://i.stack.imgur.com/YQvdI.png) Can anyone tell me as to how I will produce the above text using the "devanagari" package. My input is the following:               {\dn\dnveda tat \|{sa}\_{vi}tur-vare.nya.m |}      but I don't get the double `||` mark over the "re" line. How can i produce it?               \documentclass{revtex4}     \usepackage{devanagari}     \usepackage[width=4.5in, height=7.0in, top=0.3in, papersize={5.5in,8.5in}]{geometry}               \begin{document}     \title{{\dn \huge || sandhyaa-vandanam ||}}     \author{{\dn \large puurvabhaaga.h}}     \maketitle          \section*{{\dn\dnnum \Large aacamanam || 1 ||}}          \begin{flushleft}     \begin{itemize}     \item{{\dn acyutaaya nama.h |}}     \item{{\dn anantaaya nama.h |}}     \item{{\dn govindaaya nama.h ||}}     \end{itemize}     \vspace*{0.4cm}          {\dn ke"sava| naaraaya.na| maadhava| govinda| vi.s.no| madhusuudana| trivikrama| vaamana| "sriidhara| h.r.siike"sa| padmanaabha| daamodara||}          \section*{{\dn\dnnum \Large ga.napati-dhyaanam || 2 ||}}          \begin{verse}     {\dn "suklaambaradhara.m vi.s.nu.m "sa"sivar.na.m caturbhujam | \\ prasannavadana.m dhyaayet sarva-vighnopa"saantaye||}     \end{verse}          \section*{{\dn\dnnum \Large praa.naayaama.h || 3 ||}}     \begin{verse}     {\dn\dnveda\dnsamaveda o.m bhu.h| o.m bhuva.h| o\@suva.h| o.m maha.h| o.m jana.h| o.m tapa.h| o\@\_{sa}tyam|| \\ o.m tat \|{sa}\_{vi}tu\|{rvare.nya}.m bha\|{rgo} \_{de}va\|{sya} dhimahi| \\ dhi\_{yo} yo \|{na}.h pra\_{co}da\|{yaa}t|| \\ omaa\_{po}-jyo\_{ti}-ra\_{so}.am.r\_{ta.m}-bra\_{hma} bhurbhu\_{va}ssu\_{va}rom||}     \end{verse}     \end{document}      This is how i typeset using the devanagari package in LaTeX. then i save this as abc.dn file and then run the devnagari preprocessor to get the output.


title: begin{align} behaving oddly - Lines after (10) show up as exponents

text: I'll let the picture speak for itself. ![enter image description here](http://i.stack.imgur.com/E99mx.png) Full res here: http://i.imgur.com/YyXBPv1.png It's probably a silly mistake but I have been awake for the past 20 or so hours and in my current state I can't, for the life of me, find the mistake that causes this. Any pointers for a dumbfounded Greek?


title: Putting \citep and \citep* together

text: I'm using BibTeX and natbib and trying to make a single `\citep` block where two entries are expanded (i.e. I would cite them individually with `\citep*`) and one entry is not. That is, the desired effect is > (Marigo et al. 2001; Siess, Livio & Lattanzio 2002) If I use `\citep{marigo+01,siess02}`, I'd get > (Marigo et al. 2001; Siess et al. 2002) and if I use `\citep*{marigo+01,siess02}` > (Marigo, Girardi, Chiosi & Wood 2001; Siess, Livio & Lattanzio 2002). If you're wondering why I don't just modify the bibliography style, it's because I'm following the MNRAS style which requires three-author papers are cited in full the first time and as et al. thereafter. For argument's sake, just imagine that the first paper is (Marigo, Girardi & Wood 2001) and I still want to mix the two modes. I'm not sure if the search function (or Google) really picked up on my use of `\citep*` rather than `\citep` so I apologize if this is a duplicate.


title: Display \chaptername in table of contents

text: I'm looking for something to resolve the problem that has been metioned at How do I get \chaptername to appear in the table of contents?  and Table of Contents with “Chapter” and per-chapter “Appendix” threads. Those is exactly what I'm looking for. But I've got error when as soon as using               \usepackage{tocloft}      And here is the error messenge: > ! LaTeX Error: Command \c@lofdepth already defined. Or name \end... illegal, > see p.192 of the manual. > > See the LaTeX manual or LaTeX Companion for explanation. Type H for > immediate help.   >  l.597 \newcounter{lofdepth} \setcounter{lofdepth}{1} Please tell me what is that error! And how to fix? My .cls file contain:               \renewcommand\tableofcontents{     \btypeout{Contents}     \addtotoc{Contents}     \begin{spacing}{1}{     \setlength{\parskip}{1pt}        \if@twocolumn          \@restonecoltrue\onecolumn        \else          \@restonecolfalse        \fi        \chapter*{\contentsname         \@mkboth{            \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}        \@starttoc{toc}        \if@restonecol\twocolumn\fi        \cleardoublepage       }\end{spacing}     }      And because there is error occured when I've tried using the tocloft package. So I have used the following code block:               \makeatletter     \let\@@l@chapter\l@chapter     \def\l@chapter#1{\@@l@chapter{\chaptername\ #1}}     \makeatother      But the result is not as well as my wish. It's look like this: > Chapter List of tables   >  .....   >  Chapter List of figures   >  Chapter 1 Introduction   >  The chapter 1 contents table.   >  ....   >  Chapter A Examples But what I wanna is something like this: > List of tables   >  List of figures > > Chapter 1 Introduction   >  ...   >  Chapter 2 And so on...   >  Appendix A Anyone can give me some suggestion? Thanks avandce!


title: Using align in beamer with overlays

text: How can I get the align environment to play nicely with `beamer` overlays? As a simple example I would like               \begin{align*}           a = \frac{bc}{c}       \end{align*}      on the first overlay and then               \begin{align*}           a = b       \end{align*}      on the second, but I want the equal signs to line up for both. Using `beamer`'s `\overprint` environment, for example, the equal sign shifts between the two lines I guess because they are of different length.


title: Xetex not running in Hebrew Lyx

text: I am trying to use Polyglossia package through Lyx. When compiling with XeLaTeX, I get undefined control sequence error and the file won't compile. Working with Windows 7, Lyx 2.03 and MiKTeX 2.9. BTW: I have set the fonts to Arial because I know it's a fixed width font. It doesn't work with any kind of font. MWE (Lyx source):               \documentclass{article}               \usepackage{theorem}     \usepackage{xunicode}     \usepackage{polyglossia}     \setdefaultlanguage{hebrew}     \setotherlanguage{english}     \setmainfont[Mapping=tex-text]{Arial}     \setsansfont[Mapping=tex-text]{Arial}     \setmonofont{Arial}     \theorembodyfont{\upshape}     \newtheorem{theorem}{משפט}[section]     \begin{document}     \begin{english}%     hello          \end{english}%     שלום     \end{document}      And this is XeLaTeX's error message (I've cut the first few lines):               LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'     (Font)                  OT1/cmr/bx/it --> EU1/Arial(0)/bx/it on input line 24.     LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'     (Font)                  OT1/cmss/bx/n --> EU1/Arial(0)/bx/n on input line 24.     LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'     (Font)                  OT1/cmtt/m/n --> EU1/Arial(1)/bx/n on input line 24.     ! Undefined control sequence.     \@begindocumenthook ...aybe_setup_maths: \make@lr                                                        \thetheorem \xpg@initial@s...     l.24 \begin{document}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spel


title: Add photo to moderncv style banking with modifications

text: How to add a photo to moderncv style banking follow up question from the above. how is the modification of the code create the photo only on the resume page but not to the letter page? and also with choice photo on the top of the title or at the side in line with the title? Thank in advance!


title: \reflectbox within \caption

text: I would like to insert a copyleft sign inside a `\caption`. The following command, given here, works outside `\caption`:               \reflectbox{\sffamily{\copyright}}      and does what I would like. But this:               \caption{A caption \reflectbox{\sffamily{\copyright}}}      leads to an error. What surprises me most is that               \documentclass{article}     \usepackage{graphicx}     \newcommand{\copyleft}{\reflectbox{\sffamily{\copyright}}}          \begin{document}          \begin{figure}        \caption{A simple caption \copyleft}     \end{figure}     \end{document}      yields the error:               Undefined control sequence.     \Gscale@box #1[#2]#3->\leavevmode \def \Gscale@x     {#1}\def \Gscale@y {#2}\set...     l.9 \caption{A simple caption \copyleft}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.     [...]      but this one works !               \documentclass{article}     \usepackage{graphicx}     \newcommand{\copyleft}{\reflectbox{\sffamily{\copyright}}}               \begin{document}          \copyleft          \begin{figure}         \caption{A simple caption \copyleft}     \end{figure}     \end{document}      Any ideas or suggestions? I just want to include a copyleft sign in a caption, using latex.


title: Why is  only one of these two options passed to pdflatex seen?

text: Consider the file `define.tex`.               \documentclass{article}     \RequirePackage{changes}     \makeatletter     \@namedef{Changes@AuthorColor}{red}     \colorlet{Changes@Color}{red}     \makeatother     \begin{document}     \ifdefined\submit     submit macro is defined     \else     submit macro is not defined     \fi     \added{if these words are highlighted, this corresponds to draft       option. not highlighted corresponds to final option}     \end{document}      Inspired by Will's answer to "Passing command-line arguments to LaTeX document", and Martin's answer to "Passing parameters to a document" I tried               pdflatex        '\PassOptionsToPackage{final}{changes}\input{define}\def\submit{}\input{define}'         define.tex      and also               pdflatex     '\def\submit{}\input{define}\PassOptionsToPackage{final}{changes}\input{define}'        define.tex      In both of these cases, only the first option is seen, as one can check. One would expect the result for both to be "submit macro is defined" with highlighting below, but in fact in one case we get "submit macro is defined" + highlighting (\def first) and the other "submit macro is not defined" + no highlighting (\PassOptionsToPackage first) This seems like unexpected behavior to me. If I use two similar \defs, there is no problem. I.e. something like               '\def\foo{}\input{define}\def\bar{}\input{define}'      works as expected with the following file.               \documentclass{article}     \begin{document}     \ifdefined\foo     foo macro is defined     \else     foo macro is not defined     \fi     \ifdefined\bar     bar macro is defined     \else     bar macro is not defined     \fi     \end{document}      Ie. the file has               foo macro is defined bar macro is defined      EDIT Aug 21st 2011: I was mistaken about foo and bar. Since `\bar` was already defined, it was a bad choice. Thanks to T.H. for the clarification and for answering the main question. It seems that if I have a set of options passed to `pdflatex` like so               pdflatex 'somestuff' 'somemorestuff\input{define}' 'yetmorestuff' [...]      then the 'yetmorestuff' option is not seen by `pdflatex`. If this is correct, then I don't understand this behavior. T.H. said "The first time you use \input{define}, TeX parses to the end of the file, sees \end{document} and then stops." However, this is not how option passing normally works. Can someone give me some background on the mechanisms involved here? Thanks.


title: Terminus with fontspec in XeTeX

text: When using `\setmonofont` with fontspec in XeTeX, I wonder what fonts (or type faces) I can use. `fc-list` yields among others:               Terminus:style=Bold     Terminus:style=Regular      So I tried this:               \usepackage{fontspec}     \setmonofont[Mapping=tex-text]{Terminus}     [...]     \testtt{monospace text}      I get the error:               !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     !     ! fontspec error: "font-not-found"     !      ! The font "Terminus" cannot be found.     !      ! See the fontspec documentation for further information.     !      ! For immediate help type H <return>.     !...............................................        Now, which fonts _can_ I use? Is there a way to list them, or something? Incidentally, is there a way how I could use Terminus in XeTeX for monospaced text?


title: Tikz picture flowchart with labels inside blocks and referencing them in the main text

text: I need a way of putting labels inside the blocks of a flowchart, have them numbered or enumerated in some way and then reference the blocks in the main text. I need the hyperlink to go directly to that node when clicked in the PDF. I already have a solution that almost does what I want. I'm not an expert at *TeX so I've hacked the following posts together: custom counter and cross-referencing TikZ Document Navigation (\label and \ref commands)               \documentclass{article}     \usepackage{hyperref}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows,positioning}          \newcounter{BlockCounter}          \begin{document}          \newcommand{\labelBlock}[1]{%     \refstepcounter{BlockCounter}%     \hypertarget{#1}{}(\theBlockCounter\label{#1})%     }          \newcommand{\refBlock}[1]{%     \hyperref[#1]{Block~\ref*{#1}}% (see p. 18 of the hyperref manual)     }          \begin{figure}[tbp]         \centering         \tikzstyle{block} = [draw, fill=black!20, rectangle, minimum height=2em, minimum width=6em]         \begin{tikzpicture}[auto, node distance=2cm,>=latex']             \node [block] (aaa) {\labelBlock{blockA} Step one};             \node [block, below left=of aaa] (bbb) {\labelBlock{blockB} Step two-left};             \node [block, below right=of aaa] (ccc) {\labelBlock{blockC} Step two-right};             \draw [draw,->] (aaa) -- node {left} (bbb);             \draw [draw,->] (aaa) -- node {right} (ccc);         \end{tikzpicture}         \caption{Caption here.}     \end{figure}          Reference to \refBlock{blockA}. Reference to \refBlock{blockB}. Reference to \refBlock{blockC}.          \end{document}      Which produces the following result ![enter image description here](http://i.stack.imgur.com/rP5VT.png) Questions:   1. How can I control the exact position of the hypertarget? I tried using a raisebox but this had no effect. I need it to go a little above the block.   2. How do I change the enumeration to A,B,C, instead of 1,2,3?


title: Why doesn't lineno number a paragraph when it is followed by an indented equation?

text: While searching for the source of missing line numbers, I realized that paragraphs followed immediately by an equation have no line number, but this is fixed when a space is included, e.g. the following document has no line numbers:               \documentclass[12pt]{article}     \usepackage{amsmath}     \usepackage{lineno}     \linenumbers     \begin{document}     Lorem ipsum dolor sit amet, consectetur adipiscing elit:      $$1+1=2$$      \end{document}      But this one does:               \documentclass[12pt]{article}     \usepackage{amsmath}     \usepackage{lineno}     \linenumbers     \begin{document}     Lorem ipsum dolor sit amet, consectetur adipiscing elit:           $$1+1=2$$      \end{document}      The only difference is the space above the equation.   * Why is this the case (and is there a simple workaround)?    * Is it incorrect to include an indented equation in a paragraph, or is this just a 'feature' of `lineno`?


title: Number-Alignment with siunitx in tables

text: Update... after a update to recent version of siunitx, everything is fine now. Thanks a lot @daleif and @crissov :-)               \documentclass[ngerman,a4paper]{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{booktabs}     \usepackage[     decimalsymbol=comma,     range-units = single,alsoload=synchem,separate-uncertainty     ]{siunitx}          \begin{document}     \begin{table}[htbp]         \centering         \caption{Some table}         \begin{tabular}{l         S[table-format = 1.3(4),table-number-alignment=left]}         \toprule         Hello world & {some numbers}\\         \midrule         Hello world & 1,234\pm 5,678\\         Hello world & 1,234\\     Hello world & 1,234\pm 5,678\\         \bottomrule         \end{tabular}     \end{table}     \end{document}      Results in some bad alignment for the line without uncertainty - see picture: ![bad alignment](http://i.imgur.com/oXVDOht.png) I've tried to get a left-aligned result with the `table-number-alignment=left` argument, but it didn't work out so far. Is there an option for aligning lines with numbers without uncertainity like numbers with, so the result is like 1,234 +/- 5,678 1,234 1,234 +/- 5,678 (decimalsymbols are vertical aligned)? Thanks for your help!


title: texstudio: show line numbers in editor

text: How do I show line numbers in the editor? According to the picture in the doc (e.g. about bookmarks) there should appear by default. I'm using Texstudio version 2.7, win8.1.


title: Roman numeral page numbering

text: I am writing a thesis that contains an abstract and acknowledgements page, but need to number the page numbers using Roman numerals. How would I do this? I don't want to include the title page but would like to start the abstract with roman numeral ii.


title: Currency symbol: Turkish Lira

text: I have two questions.   1. Is there a single currency package containing the most common currency symbols, such as dollar, euro, frank, pound (sterling), yen, peso, etc.    2. I couldn't find the currency symbol of Turkey in LaTeX. How can we make a Turkish Lira symbol for LaTeX? This is what the Turkish Lira symbol looks like ![enter image description here](http://i.stack.imgur.com/hW6eJ.png) and its technical details are here. In addition, its unicode encoding is U+20BA . I will be very happy if some one construct this sign as a LaTeX code without using external graphics, or explains me how to construct it.


title: How to make a fancy exam at LaTeX?

text: I'm very interested make a fancy exam at LaTeX? , You can see this example like this : ![fancy equation](http://i.stack.imgur.com/DhI1L.jpg) But, i don't know How to start it ? Can you explain **How to make it ?** or **What is the package at LaTeX** ?


title: How can I connect centers of nodes defined using let in a foreach loop?

text: I want to create a star polygon using a `\foreach` loop to make nodes for the vertices and another `\foreach` loop connecting, say, every 4th node.               \documentclass[12pt]{amsart}          \usepackage{tikz}     \usetikzlibrary{calc}     \usetikzlibrary{shapes.symbols}     \usetikzlibrary{positioning}     \usetikzlibrary{decorations.shapes}          \begin{document}          \begin{tikzpicture}     \foreach \i in {0,1,2,...,9}     {     \node[draw, circle, fill=red, inner sep = 20 pt] (a\i) at (360*\i/10:4) {};     \draw[fill=black] (a\i.center) circle (.5 mm);     }     \foreach \j in {0,1,...,9}     {     \draw[blue, align=center] let \n1={mod(\j+4,10)} in (a\n1)--(a\j.center);     }     \end{tikzpicture}          \end{document}      When I do this, the connections to the nodes `(a\n1)` are not to the center of the node. If I try `(a\n1.center)` it gives me a PGF math error. But using `({a\n1}.center)` says no shape named a4.0 is known. What's the secret escape thing that needs to happen to make this work? Is there a better way? (Everything's fine if I use `coordinate` instead of `node`, but then I have to run a final loop on top of the coordinate just to draw the nodes, which is sort of annoying.)


title: Tikz: Drawing lines with \draw[opacity = 0] produces .dvi files in which the lines are visible

text: Here's my MWE:               \documentclass[11pt]{article}     \usepackage{pgf,tikz}          \begin{document}     \begin{figure}        \begin{tikzpicture}            % Bounding box coordinates            \coordinate (q) at (1,  0);            \coordinate (t) at (1,  8);            \coordinate (r) at (12, 8);            \coordinate (s) at (12, 0);                 % Draw the (invisible) bounding box            \draw[opacity = 0] (q) -- (t) -- (r) -- (s) -- (q);        \end{tikzpicture}     \end{figure}     \end{document}      The above MWE compiles using `pdflatex` to produce an empty page, but if I compile to .dvi using `latex`, then the resultant dvi file has the rectangle displayed! How can i fix this? (I need an invisible bounding box in order to draw a 4-part figure, in some of which the box is visible, hence I don't really have an option to remove the box completely. Also, for reason not technical, I need the .dvi file to be rendered correctly as well!)


title: Nested subfigures alignment

text: I'm having trouble creating a 2x2 grid of subfigures. With this tex below, I get a 1x4 grid instead. I'm probably not understanding how the 0.5/textwidth worked, I presumed it used the parent's textwidth?               \begin{figure}[h!]         \centering         \begin{subfigure}[b]{0.5\textwidth}               \centering               \begin{subfigure}[b]{0.5\textwidth}                       \centering                       \includegraphics[width=\textwidth]{phone0018-A-crop.jpg}                       \caption{Left cropped}               \end{subfigure}               ~               \begin{subfigure}[b]{0.5\textwidth}                       \centering                       \includegraphics[width=\textwidth]{phone0018-A-shift.jpg}                       \caption{Right shifted}               \end{subfigure}         \end{subfigure}         ~         \begin{subfigure}[b]{0.5\textwidth}               \centering               \begin{subfigure}[b]{0.5\textwidth}                       \centering                       \includegraphics[width=\textwidth]{phone0018-A-stereo.jpg}                       \caption{Anaglypah of Stereo Pair}               \end{subfigure}               ~               \begin{subfigure}[b]{0.5\textwidth}                       \centering                       \includegraphics[width=\textwidth]{phone0018-A-diff.jpg}                       \caption{Difference of Stereo Pair}               \end{subfigure}         \end{subfigure}         \caption{\texttt{phone0018.pgm} with $D_h = 10$}\label{fig:contrast}     \end{figure}