christopheradams / tufte-latex

Automatically exported from code.google.com/p/tufte-latex
0 stars 1 forks source link

How to start new footnote(=sidenote) counter with chapter? #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I noticed that footnotes do not restart from no. 1 when a new chapter starts. 
How to I change that to "default" Latex behavior?

Here's my preamble:

\documentclass[nols,xetex]{tufte-book}
\usepackage{fontspec}
\usepackage{xltxtra}
\usepackage{xunicode}%fontspec,xltxtra,
\defaultfontfeatures{Mapping=tex-text}
\setromanfont[Mapping=tex-text,Numbers=OldStyle]{SabonNext LT}
\setsansfont[Mapping=tex-text]{SabonNext LT}
\setmonofont[Scale=MatchLowercase]{Droid Sans}
\usepackage{polyglossia}
\setmainlanguage{brazil}
%\usepackage[tocgraduated]{tocstyle}
%\usetocstyle{nopagecolumn}
\usepackage{graphicx}
\usepackage{chngcntr}
\counterwithout{figure}{chapter}
%\setcounter{secnumdepth}{0}
\usepackage{eulervm}
\usepackage{xcolor}
\usepackage{hyperref}

 \renewcommand{\allcapsspacing}[1]{{\addfontfeature{LetterSpace=20.0}#1}}
      \renewcommand{\smallcapsspacing}[1]{{\addfontfeature{LetterSpace=5.0}#1}}
      \renewcommand{\textsc}[1]{\smallcapsspacing{\textsmallcaps{#1}}}
      \renewcommand{\smallcaps}[1]{\smallcapsspacing{\scshape\MakeTextLowercase{#1}}}

Original issue reported on code.google.com by yche...@gmail.com on 2 Dec 2011 at 7:35

GoogleCodeExporter commented 9 years ago
Try:

    \usepackage{chngcntr}
    \counterwithin*{footnote}{chapter}% reset the sidenote counter with each new chapter

Original comment by godbyk@gmail.com on 2 Dec 2011 at 7:56

GoogleCodeExporter commented 9 years ago
Thanks for the tip, but it didn't work. I guess it's easier to reset 
\setcounter{footnote}{0} after each new chapter...

Original comment by yche...@gmail.com on 3 Dec 2011 at 12:45

GoogleCodeExporter commented 9 years ago
Hi, thanks for the tip, but it didn't work. I guess it's easier to reset
\setcounter{footnote}{0} after each new chapter...

Original comment by yche...@gmail.com on 3 Dec 2011 at 12:45