0

I'm working with tufte-handout, but my working example lists every page number as 0. How can I fix this?

\documentclass{tufte-handout}
\usepackage{xeCJK}

\usepackage{amsmath} \usepackage{amssymb} \usepackage{marvosym} \usepackage{stmaryrd}\usepackage{gb4e}

\makeatletter \renewcommand@footnotetext[2][0pt]{% @noftnotefalse\setcounter{fnx}{0}% added by gb4e \marginpar{% \hbox{}\vspace{#1}% \def\baselinestretch {\setspace@singlespace}% \reset@font\footnotesize% @tufte@margin@par% use parindent and parskip settings for marginal text \vspace{-1\baselineskip}\noindent% \protected@edef@currentlabel{% \csname p@footnote\endcsname@thefnmark% }% \color@begingroup% @makefntext{% \ignorespaces#2% }% \color@endgroup% }% @noftnotetrue% added by g4be }% \makeatother

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

\title{Title}

\author[Author Authors]{Author Authors} \date{}

\begin{document}

\maketitle

\section{Introduction}

\pagebreak \section{First Section}

\pagebreak

\section{Second Section}

\end{document}

bozidarka
  • 960

1 Answers1

1

This code uses egreg`s answer to add the missing code needed to use XeLaTeX's letter-spacing options, when using XeLaTeX.

a

% !TeX TS-program = xelatex

\documentclass{tufte-handout} \usepackage{xeCJK}

\usepackage{amsmath} \usepackage{amssymb} \usepackage{marvosym} \usepackage{stmaryrd} \usepackage{gb4e}

\makeatletter \renewcommand@footnotetext[2][0pt]{% @noftnotefalse\setcounter{fnx}{0}% added by gb4e \marginpar{% \hbox{}\vspace{#1}% \def\baselinestretch {\setspace@singlespace}% \reset@font\footnotesize% @tufte@margin@par% use parindent and parskip settings for marginal text \vspace{-1\baselineskip}\noindent% \protected@edef@currentlabel{% \csname p@footnote\endcsname@thefnmark% }% \color@begingroup% @makefntext{% \ignorespaces#2% }% \color@endgroup% }% @noftnotetrue% added by g4be }% \makeatother

\usepackage{kantlipsum}% ONLY dummy text <<<<<<<<<<<<<<<<

%************************************** added <<<<<<<<< %From https://tex.stackexchange.com/a/200725/161015 \ifxetex% <<<<<<<<<<<<<<<<<< \newcommand{\textls}[2][5]{% \begingroup\addfontfeatures{LetterSpace=#1}#2\endgroup } \renewcommand{\allcapsspacing}[1]{\textls[15]{#1}} \renewcommand{\smallcapsspacing}[1]{\textls[10]{#1}} \renewcommand{\allcaps}[1]{\textls[15]{\MakeTextUppercase{#1}}} \renewcommand{\smallcaps}[1]{\smallcapsspacing{\scshape\MakeTextLowercase{#1}}} \renewcommand{\textsc}[1]{\smallcapsspacing{\textsmallcaps{#1}}} \fi %**************************************

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

\title{Title}

\author[Author Authors]{Author Authors} \date{}

\begin{document}

\maketitle
\clearpage  

\section{Introduction}  
\kant[1-4]  
\pagebreak

\section{First Section}
\kant[1-4]  
\pagebreak

\section{Second Section}    
\kant[1-4]

\end{document}

Simon Dispa
  • 39,141