Tag Info

Hot answers tagged

20

This is a stripped-down version of the code in the parnotes package. NOTE to anyone wanting to "do x after every paragraph": The proper way to make long-term changes to \par is through \@setpar, or by modifying \@par along with \par. Many LaTeX environments reset \par to \@par at end; see source2e chapter ltpar.dtx. Here's a hack using ...


17

You can also stick with endnotes. Each time you use \theendnotes, all endnotes that were stored previously will be put there. So just write \theendnotes at the end of each chapter. \documentclass{report} \usepackage{endnotes} \begin{document} \chapter{First} Testing.\endnote{First test.} \theendnotes \setcounter{endnote}{0} \chapter{Next} ...


17

You can use the endnotes package: \documentclass{article} \usepackage{endnotes} \let\footnote=\endnote \begin{document} text\footnote{test footnote} \newpage \theendnotes \end{document} To add a horizontal rule below the "Notes" heading, you can redefine the \enoteheading command; for example, to obtain a rule of width equal to 0.5\textwidth you can ...


16

The pagenote package allows for endnotes ("pagenotes") at the end of each chapter. \documentclass{book} \usepackage{pagenote} \makepagenote \renewcommand*{\notedivision}{\section*{\notesname\ to chapter~\thechapter}} \renewcommand*{\pagenotesubhead}[2]{} \begin{document} \chapter{bla} \section{blubb} Some text.\pagenote{The first endnote.} ...


15

You may put each paragraph into a minipage, because minipages have their own footnotes: \documentclass{article} \usepackage[english]{babel} \usepackage{blindtext} \newenvironment{mpar}{\par\noindent\minipage{\linewidth}% \setlength{\parindent}{1em}% }{\endminipage\par\medskip} \begin{document} \section{Test} \blindtext \begin{mpar}First ...


12

Have you looked at the endnotes package? It does precisely what you want, with the option to collect both footnotes and endnotes into one. http://ctan.tug.org/tex-archive/help/Catalogue/entries/endnotes.html


11

You can redefine \enoteformat: \documentclass{article} \usepackage{endnotes} \usepackage{lipsum} \let\footnote=\endnote \renewcommand\enoteformat{\rightskip=0pt \leftskip=0pt \parindent=0em \leavevmode\makeenmark\raggedright} \begin{document} text\footnote{test footnote1} \lipsum[1] text\footnote{test footnote2 \lipsum[2]} \lipsum[1-7] \theendnotes ...


9

I once uncovered the following code on comp.text.tex, credited to Ulrich Dirr: %%% hyperendnotes.sty \makeatletter \newif\ifenotelinks \newcounter{Hendnote} % Redefining portions of endnotes-package: \let\savedhref\href \let\savedurl\url \def\endnotemark{% \@ifnextchar[\@xendnotemark{% \stepcounter{endnote}% \protected@xdef\@theenmark{\theendnote}% ...


8

The header of the endnotes are saved in the the command \enoteheading. Here the original definition. \def\enoteheading{\section*{\notesname \@mkboth{\MakeUppercase{\notesname}}{\MakeUppercase{\notesname}}}% \mbox{}\par\vskip-\baselineskip} To setup the rule you can use: \def\enoteheading{\par\kern2\baselineskip% \footnoterule% ...


8

Here's an automatic version: \documentclass{book} \usepackage{endnotes,chngcntr} \usepackage[perpage,symbol*]{footmisc} \counterwithin*{endnote}{part} % Reset endnote numbering every new part \counterwithin*{endnote}{chapter} % Reset endnote numbering every new chapter \makeatletter \renewcommand\enoteheading{% \setcounter{secnumdepth}{-2} ...


8

As you noticed, the # confuses TeX, because the endnotes are eventually read in as a macro replacement text. Use \urldef for the problematic entry: \documentclass[12pt, a4paper, twoside]{article} \usepackage[T1]{fontenc} \usepackage{endnotes} \usepackage{url} \urldef\rossetti\url|http://www.rossettiarchive.org/docs/nb0005.duke.rad.html#0.1.19| ...


7

I'm not so sure it's wise to have three different kinds of notes. This seems to be predestined to confuse readers. Having them all numbered with the same counter seems even more confusing to me: why is number 1 in the margin, number 2 in the footer and number 3 at the end of the section? Is there some pattern to it? If really all three note types are ...


7

You can patch the command that formats the endnote to add \RaggedRight to it. The easiest way to do this is with the etoolbox package, using the \appto macro, which appends code to an existing macro. \usepackage{etoolbox} \appto{\enoteformat}{\RaggedRight} Here's your sample document: \documentclass[endnotes]{apa6e} \usepackage{etoolbox} \title{} ...


7

OK, after grepping the sty file I found this: % JK Introduced \notesname in the spirit of international \LaTeX. % JK \notesname is set per default to be {Notes}, but can easily % JK be redifined, e.g. for german language % JK \renewcommand{\notesname}{Anmerkungen} Nothing to add, I suppose;) (My previous answer, with ...


7

\begin{filecontents*}{parnotes.sty} \ProvidesPackage{parnotes}[2011/12/10 v0.0.1 Paragraph notes (Ahmed Musa)] \NeedsTeXFormat{LaTeX2e}[2011/06/27] \RequirePackage{combokeys} \let\parnotesnosep\medbreak \declarecombokeys[keyprefix=KVA,keyfamily=parnotes,macroprefix=pnt@]{% cmd/notecolor/black; cmd/noteformat/\@firstofone; cmd/notefont/\footnotesize; ...


6

The parindent for endnotes is set by the macro \enoteformat: instead of restating its (modified) definition, it's simpler to patch it. \documentclass{book} \usepackage{endnotes} \let\footnote=\endnote \usepackage{etoolbox} \patchcmd{\enoteformat}{1.8em}{0pt}{}{} \begin{document} Some text. Some text. Some text. Some text.\footnote{Some text. } ...


6

Here is a solution using the \pretocmd provided by the etoolbox package. \documentclass{book} \usepackage{etoolbox} \usepackage{pagenote} \makepagenote \begin{document} \chapter{Chap 1} \pretocmd{\chapter}{\printnotes*}{}{} \chapter{Chap 2} \chapter{Chap 3} \chapter{Chap 4} \printnotes* \end{document} As you can see the command may be used after the ...


6

The endnotes package uses \makeenmark for typesetting the footnote mark both in the text and in the endnotes. We can take advantage of the fact that the endnotes are printed in a group to redefine the command locally: \documentclass{article} \usepackage{endnotes,etoolbox} \renewcommand{\notesname}{References} % end note marker = superscripted number in ...


6

Here is a first attempt at inserting the information manually. I'm sure it can be automated, but that would require making sure that you have end notes in each of the parts/chapters that you use so as to avoid outputting sectional headings without any end notes in them: \documentclass{book} \usepackage{endnotes}% http://ctan.org/pkg/endnotes ...


5

Reading your comment I think you want it like this: It can be obtained with: \def\enoteformat{\rightskip=0pt \leftskip=21pt \parindent=-11pt \leavevmode\llap{\makeenmark}\hspace*{11pt}} Complete code: \documentclass{article} % endnotes \usepackage{endnotes} \let\footnote=\endnote % bibliography \usepackage[super, longnamesfirst, ...


5

Edit in reaction to comments for using the same endnotemark more than once: With endnotes: Use \endnotemark[number] and \endnotetext[number]: \documentclass{scrartcl} \usepackage{endnotes} \title{Concepts} \author{Lala\endnotemark[1], Lilo\endnotemark[2], Lolita\endnotemark[1], Lulu\endnotemark[3]} \begin{document} \maketitle ...


5

There is a bug in the style file endheads. It contains these lines: \@ifclassloaded{memoir}{ \makepagestyle{endnotesstyle} \makeevenhead{endnotesstyle}{{\small\textrm{\thepage}}}{{\small{\em \the\notesheadername~\mymarks}}}{} \makeoddhead{endnotesstyle}{}{{\small{\em \the\notesheadername~\mymarks}}}{{\small\textrm{\thepage}}} \makeevenfoot{}{}{} ...


5

Use \footnote instead of \endnote for the inner note level. To avoid mixing up end- and footnotes, consider also to use symbols for footnotes (and make the footnote "numbering" per-page). \documentclass{article} \usepackage{endnotes} \usepackage{perpage} \MakePerPage{footnote} \renewcommand*{\thefootnote}{\fnsymbol{footnote}} \begin{document} \null\vfill% ...


5

You may use the pagenote package: \documentclass{report} \usepackage{pagenote} \makepagenote \renewcommand*{\notedivision}{\chapter*{\notesname}} \let\footnote\pagenote \begin{document} \chapter{First} Some text.\footnote{A footnote.} \begin{thebibliography}{9} \bibitem{A01} A bibitem. \end{thebibliography} \printnotes \end{document}


5

To avoid repetitive typing of \parnotes, something like the following is possible, but I haven't time now to look at the behavior of multicols in this case. \def\beginparnotes{% \let\@saved@par\par \def\par{% \@saved@par \vspace{\parnotevskip}% \parskip\z@ \ifx\PN@text\@empty\else \expandafter\parnotes \fi }% } ...


4

If you only have a single \footnotemarks inside \footnotes, then the following should work: \documentclass{article} \usepackage{endnotes}% http://ctan.org/pkg/endnotes \let\footnote\endnote \def\footnotetext{\endnotetext[\number\numexpr\value{endnote}+1]} \let\footnotemark\endnotemark \begin{document} Here is a footnote% \footnote{That contains a nested ...


4

After a lot of trial and error, I'v come up with what seems to be a solution. I suspect that my approach is rather long-winded and offers room for improvement. Rummaging through endnotes.sty and pagenote.sty, I noticed that endnotes provided for writing more data in the .ent file (an auxiliary file that contains the text of endnotes). Basically, parts of ...


4

You have to run bibtex in order for the footnotes to appear, so in particular, you can't use \begin{thebibliography}{99}...\end{thebibliography} but rather \bibliography{mybib}, which RevTeX4.1 will rewrite as though it says \bibliography{mybib,mypaperNotes} and create a file mypaperNotes.bib with the endnotes in it.


4

You can redefine \pagenotesubhead, for numbered chapters, as \renewcommand*{\pagenotesubhead}[3]{\section*{#1 #2\ -\ #3}} and \pagenotesubheadstarred, for unnumbered chapters, as \renewcommand*{\pagenotesubheadstarred}[3]{\section*{#3}} A complete example: \documentclass{memoir} \usepackage{endnotes} \let\pagenote=\endnote \makeatletter ...


4

I don't see why using an environment. My best shot would be using a command. \documentclass{article} \usepackage{endnotes} \makeatletter % p for `perhaps' \newcommand{\pfootnote}{\csname aad@footnote@\aad@footnotekind\endcsname} \newcommand{\footnotekind}[1]{\def\aad@footnotekind{#1}} \let\aad@footnote@footnote\footnote \let\aad@footnote@endnote\endnote ...



Only top voted, non community-wiki answers of a minimum length are eligible