summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/endnotes-hy/examples
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-04-11 22:23:52 +0000
committerKarl Berry <karl@freefriends.org>2020-04-11 22:23:52 +0000
commit591b80b11e2ee3890ac7419d50582dc3f27180c7 (patch)
treeb9c16460733f156341c37016aa10f08176a25614 /Master/texmf-dist/doc/latex/endnotes-hy/examples
parent1fc41b1fba482cb23d6bf3636c69fe60cc193f5e (diff)
endnotes-hy (10apr20)
git-svn-id: svn://tug.org/texlive/trunk@54658 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/endnotes-hy/examples')
-rw-r--r--Master/texmf-dist/doc/latex/endnotes-hy/examples/exmpl-endnotes.pdfbin0 -> 88245 bytes
-rw-r--r--Master/texmf-dist/doc/latex/endnotes-hy/examples/exmpl-endnotes.tex81
2 files changed, 81 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/endnotes-hy/examples/exmpl-endnotes.pdf b/Master/texmf-dist/doc/latex/endnotes-hy/examples/exmpl-endnotes.pdf
new file mode 100644
index 00000000000..abfbb86dee5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/endnotes-hy/examples/exmpl-endnotes.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/endnotes-hy/examples/exmpl-endnotes.tex b/Master/texmf-dist/doc/latex/endnotes-hy/examples/exmpl-endnotes.tex
new file mode 100644
index 00000000000..ab523dfffe7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/endnotes-hy/examples/exmpl-endnotes.tex
@@ -0,0 +1,81 @@
+\documentclass{article}
+\usepackage{xcolor}
+\usepackage{endnotes-hy}
+
+\usepackage{hyperref}
+\hypersetup{colorlinks,linkcolor=red}
+
+\usepackage{fancyvrb}
+
+\def\cs#1{\texttt{\char`\\#1}}
+
+% used to create verbatim endnotes
+\newbox\enbox
+\setbox\enbox\hbox{\verb!%^$^&$%^&!}
+\edef\VertTxti{\unhbox\enbox}
+
+% Use to get indentation in multi-paragraph endnotes
+\def\enPAR{\par\hskip15pt}
+
+\makeatletter
+% the use of \everypar is to get proper alignment of the left margin
+% in multi-paragraph endnotes.
+\def\enoteformat{%
+ \rightskip\z@ \leftskip\z@ \parindent=1.8em
+ \everypar{\hangindent=\parindent \hangafter=1}%
+ \leavevmode\llap{\makeenmark}}
+\makeatother
+
+% Modify how the endnote mark looks at the end.
+\patchcmd{\theendnotes}
+ {\makeatletter}
+ {\makeatletter
+ \renewcommand\makeenmark{\textbf{\theenmark{}.} }}
+ {}{}
+
+\usepackage{lipsum}
+
+\begin{document}
+
+%\show\enoteformat
+
+\section{Making endnotes clickable}\label{MkClk}
+
+The new syntax for the \cs{endnote} command is,
+\begin{Verbatim}[xleftmargin=15pt]
+\endnote*[<num>]{<note-text>}\label{<name>}
+\end{Verbatim}
+The use of \texttt* causes the endnote mark not to appear. If \verb!\label{<name>}! appears,
+a hypertext links is created pointing to the placement of the endnote at the end of the document.
+
+\begin{itemize}
+
+\item Some beginning text.\endnote{My endnote text.}\label{judy}
+
+\item Refer to endnote.\endnote{Tom Terrific!}\label{tom}
+
+\item Another method is to use the \texttt*-form and use
+\verb~\autoref~\endnote*{Alex-tastic!}\label{alex} to display
+the reference to \autoref{alex}.
+
+\item Now make another endnote.\endnote{Kira's endnote is a very long one.
+ Kira's endnote is a very long one. Kira's endnote is a very long one.\enPAR
+ Kira's endnote is a very long one. Kira's endnote is a very long one.
+ Kira's endnote is a very long one.}\label{kira}
+
+\item This is an endnote with two paragraphs\endnote*{Don is good.\par Tom is better.}\label{multipar} in endnote~\ref{multipar}.
+
+\item Here, we try \verb!\Nameref!, \verb~\nameref~, \verb~\autoref~: \Nameref{tom}, \nameref{tom}, \autoref{tom}.
+
+\item This is a specially number endnote.{\def\theendnote{N\arabic{endnote}}\endnote[1]{A special end note, verbatim: \VertTxti.}\label{cusNum}}
+
+\item We reference endnote\endnote{Don's endnote is here!}\label{don} on page~\pageref{don}.
+
+\end{itemize}
+\lipsum[1]
+
+\newpage
+
+\theendnotes
+
+\end{document}