From 591b80b11e2ee3890ac7419d50582dc3f27180c7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 11 Apr 2020 22:23:52 +0000 Subject: endnotes-hy (10apr20) git-svn-id: svn://tug.org/texlive/trunk@54658 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/endnotes-hy/examples/exmpl-endnotes.pdf | Bin 0 -> 88245 bytes .../latex/endnotes-hy/examples/exmpl-endnotes.tex | 81 +++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/endnotes-hy/examples/exmpl-endnotes.pdf create mode 100644 Master/texmf-dist/doc/latex/endnotes-hy/examples/exmpl-endnotes.tex (limited to 'Master/texmf-dist/doc/latex/endnotes-hy/examples') 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 Binary files /dev/null and b/Master/texmf-dist/doc/latex/endnotes-hy/examples/exmpl-endnotes.pdf 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*[]{}\label{} +\end{Verbatim} +The use of \texttt* causes the endnote mark not to appear. If \verb!\label{}! 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} -- cgit v1.2.3