Should \endnotes obey \if@filesw?

Create issue
Issue #13 resolved
Former user created an issue

Related to https://tex.stackexchange.com/q/436712/35864.

I'm wondering if enotez should obey \if@filesw. Consider the following MWE with and without the modification.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{enotez}
\renewcommand*\enotezwritemark[1]{\textsuperscript{(#1)}}

\usepackage{csquotes}

\makeatletter
\ExplSyntaxOn
\cs_set_protected:Npn \enotez_save_note:nnnnnnn #1#2#3#4#5#6#7
  { \if@filesw\iow_now:Nn \@auxout { \enotez@note {#1} {#2} {#3} {#4} {#5} {#6} {#7} }\fi }
\ExplSyntaxOff
\makeatother

\usepackage{lipsum}
\begin{document}
endnote\endnote{End note one.} and 
footnotes\footnote{Regular footnote one.}.

Here comes some dummy text with an endnote:
\blockquote{%
Footnote\footnote{Single footnote} endnote\endnote{Double endnote}
\lipsum[75]}

Fn\footnote{Footnote two}
En\endnote{Endnote three}

\printendnotes
\end{document}

Comments (3)

  1. Log in to comment