Text Formattingendnotes with asterisk

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
thymonia
Posts: 2
Joined: Mon Feb 22, 2010 10:28 pm

endnotes with asterisk

Post by thymonia »

Hi I am writing an article for a journal that requires endnotes and acknowledgments as the first endnote marked with an asterisk (at the end of the title). I cannot do this. The code I am using is

\documentclass[12pt]{article}
\usepackage{gb4e}
\usepackage[tone]{tipa}
\usepackage{natbib}
\usepackage[ibycus, english]{babel}
\usepackage{amssymb}
\usepackage{endnotes}
\usepackage[none]{hyphenat}
\usepackage{pslatex}

\title{TITLE\endnote[*]{Acknoweledment}}
\author{author}

\begin{document}
\raggedright
\maketitle

\section{Introduction}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer a pretium odio. Pellentesque et dolor nisi. Donec a nisi odio, vel hendrerit turpis. Donec sapien dui, molestie eleifend lacinia sed, lobortis vel purus\endnote{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer a pretium odio.}. In hac habitasse platea dictumst. Proin sem lectus, pretium sed vehicula eget, ullamcorper a lectus. Vestibulum enim neque, auctor eu gravida quis, mattis a ligula. Sed ornare mi non sem convallis a tempus lectus volutpat. Aenean neque enim, rutrum vitae lacinia et, porttitor et leo. Etiam nec sem sit amet lectus ultrices tempus nec ac dolor. Nulla id magna nec lacus mattis pretium. Duis porta ligula eget nulla vulputate ultrices. Donec vel leo et mi tincidunt viverra.

\makeatletter
\def\enoteformat{\rightskip\z@ \leftskip1em \parindent=0em
\leavevmode\llap{\hbox{\@theenmark.~}}}
\makeatother
\theendnotes



\end{document}


What I get is Title*0 and the first note starts with 0 not *.

If you can help with this, can you also tell me how to reset the counter so the first actual note starts with 1 and not 2?

thank you

PS I have found several hints online but none of them work. For example I tried using the command for footnotes plus the following code

\renewcommand{\thefootnote}{\fnsymbol{footnote}}
Here's is one\footnote{starred note} and here is a
second.\footnote{Daggered footnote}

\renewcommand{\thefootnote}
\setcounter{footnote}{0}

and then tried converting footnotes to endnotes with \let\footnote=\endnote but it did not work.

I also tried $^*$\footnotetext{$^*$ Here is the
footnote}. This almost worked: in the Endnote section I still get 0.<acknowledgments>
Last edited by thymonia on Thu Feb 17, 2011 3:14 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

endnotes with asterisk

Post by localghost »

You have to provide a complete but minimal example (as always). Otherwise we only can do random shots. And these won't help but only cause a long discussion.


Thorsten
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

endnotes with asterisk

Post by meho_r »

The example you provided isn't a real MWE. Please do as localghost suggested.

In the meantime, here's a guess. If it's only that single endnote, bound to the title of the document, a simple manual approach might be appropriate. Here's an example:

Code: Select all

\documentclass{article}

\usepackage{endnotes}

\let\footnote=\endnote

\newcommand{\firstendnote}[1]% The first starred endnote
	{\mbox{\textsuperscript{*}}%
	\addtoendnotes{\hspace{-.42em}\textsuperscript{*}#1}
	}

\title{TITLE\firstendnote{Acknowledgement}}

\author{author}

\begin{document}

\maketitle

\section{Introduction}

Some text.\footnote{A footnote which should be converted to an endnote automatically.}

\theendnotes

\end{document}
If the alignment isn't correct, just enlarge or reduce \hspace command in the code. I put -.42em as an example. Change as you like.
Post Reply