Tufte-handout 类和缩进

Tufte-handout 类和缩进

我正在使用tufte-handout类。我想避免侧注中的缩进差异。特别是,我希望侧注中每行的开头(默认情况下)缩进相同。但是,到目前为止,我只有这个:

    \documentclass{tufte-handout}

    \geometry{lmargin=72pt,tmargin=72pt,textwidth=350pt,marginparwidth=144pt}    
    \usepackage[english]{babel}        
    \usepackage{graphicx} % allow embedded images
       \setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
       \graphicspath{{graphics/}} % set of paths to search for images
    \usepackage{amsmath}  % extended mathematics
    \usepackage{booktabs} % book-quality tables
    \usepackage{units}    % non-stacked fractions and better unit spacing
    \usepackage{multicol} % multiple column layout facilities
    \usepackage{lipsum}   % filler text
    \usepackage{enumitem}
    \usepackage{upgreek}
    \usepackage{mathtools}
    \usepackage{marvosym}

    \newcommand\blfootnote[1]{\begingroup
         \renewcommand\thefootnote{}\footnote{#1}%
         \addtocounter{footnote}{-1}%
         \endgroup
          }

    \usepackage{fancyvrb} % extended verbatim environments
        \fvset{fontsize=\normalsize}% default font size for fancy-verbatim environments

    \newcommand{\doccmd}[1]{\texttt{\textbackslash#1}}
    \newcommand{\docopt}[1]   {\ensuremath{\langle}\textrm{\textit{#1}}\ensuremath{\rangle}}% optional command argument
    \newcommand{\docarg}[1]{\textrm{\textit{#1}}}% (required) command argument
    \newcommand{\docenv}[1]{\textsf{#1}}% environment name
    \newcommand{\docpkg}[1]{\texttt{#1}}% package name
    \newcommand{\doccls}[1]{\texttt{#1}}% document class name
    \newcommand{\docclsopt}[1]{\texttt{#1}}% document class option name
    \newenvironment{docspec}{\begin{quote}\noindent}{\end{quote}}% command specification environment

    \newcounter{savedenumi}
    \newenvironment{moreenum}{%
      \setcounter{savedenumi}{\value{enumi}}%
       \begin{enumerate}\setcounter{enumi}{\value{savedenumi}}%
        }{%
       \end{enumerate}%
     }

    \title{Title}

    \author[Author]{Author}


    \begin{document}
    \section{Section}\label{sec:Section}
       \begin{itemize} 
         \item Item1\blfootnote{This is a side note,\\and this is a side note;\\this is a side note, too.}
         \item Item2
         \item Item3
         \end{itemize}
    \end{document}

答案1

您将其重新定义\thefootnote为空 → \renewcommand\thefootnote{}。因此,脚注编号(通常)占用的空间变为空闲,并且句子提前开始。

您可以将脚注中的第一个句子向后推移相当于脚注编号所占用的空间的量\phantom{\thefootnote}

\newcommand\blfootnote[1]{\begingroup
         \renewcommand\thefootnote{}\footnote{\phantom{\thefootnote} #1}%
         \addtocounter{footnote}{-1}%
         \endgroup
          }

完整代码:

  \documentclass{tufte-handout}

    \geometry{lmargin=72pt,tmargin=72pt,textwidth=350pt,marginparwidth=144pt}
    \usepackage[english]{babel}
    \usepackage{graphicx} % allow embedded images
       \setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
       \graphicspath{{graphics/}} % set of paths to search for images
    \usepackage{amsmath}  % extended mathematics
    \usepackage{booktabs} % book-quality tables
    \usepackage{units}    % non-stacked fractions and better unit spacing
    \usepackage{multicol} % multiple column layout facilities
    \usepackage{lipsum}   % filler text
    \usepackage{enumitem}
    \usepackage{upgreek}
    \usepackage{mathtools}
    \usepackage{marvosym}

    \newcommand\blfootnote[1]{\begingroup
         \renewcommand\thefootnote{}\footnote{\phantom{\thefootnote} #1}%
         \addtocounter{footnote}{-1}%
         \endgroup
          }

    \usepackage{fancyvrb} % extended verbatim environments
        \fvset{fontsize=\normalsize}% default font size for fancy-verbatim environments

    \newcommand{\doccmd}[1]{\texttt{\textbackslash#1}}
    \newcommand{\docopt}[1]   {\ensuremath{\langle}\textrm{\textit{#1}}\ensuremath{\rangle}}% optional command argument
    \newcommand{\docarg}[1]{\textrm{\textit{#1}}}% (required) command argument
    \newcommand{\docenv}[1]{\textsf{#1}}% environment name
    \newcommand{\docpkg}[1]{\texttt{#1}}% package name
    \newcommand{\doccls}[1]{\texttt{#1}}% document class name
    \newcommand{\docclsopt}[1]{\texttt{#1}}% document class option name
    \newenvironment{docspec}{\begin{quote}\noindent}{\end{quote}}% command specification environment

    \newcounter{savedenumi}
    \newenvironment{moreenum}{%
      \setcounter{savedenumi}{\value{enumi}}%
       \begin{enumerate}\setcounter{enumi}{\value{savedenumi}}%
        }{%
       \end{enumerate}%
     }

    \title{Title}

    \author[Author]{Author}


    \begin{document}
    \section{Section}\label{sec:Section}
       \begin{itemize}
         \item Item1\blfootnote{This is a side note,\\and this is a side note;\\this is a side note, too.}
         \item Item2
         \item Item3
         \end{itemize}
    \end{document}

在此处输入图片描述

相关内容