summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/postnotes/postnotes.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/postnotes/postnotes.dtx')
-rw-r--r--macros/latex/contrib/postnotes/postnotes.dtx49
1 files changed, 39 insertions, 10 deletions
diff --git a/macros/latex/contrib/postnotes/postnotes.dtx b/macros/latex/contrib/postnotes/postnotes.dtx
index d817519754..703466554b 100644
--- a/macros/latex/contrib/postnotes/postnotes.dtx
+++ b/macros/latex/contrib/postnotes/postnotes.dtx
@@ -147,7 +147,7 @@
%
%
% \begin{macrocode}
-\ProvidesExplPackage {postnotes} {2022-04-21} {0.1.1}
+\ProvidesExplPackage {postnotes} {2022-04-27} {0.1.2}
{Endnotes for LaTeX}
% \end{macrocode}
%
@@ -1064,14 +1064,21 @@
%
% \section{\cs{postnotesection}}
%
-% \begin{macro}[int]{\postnotesection}
-% Provide \cs{postnotesection}.
+% \begin{macro}[int]
+% {
+% \postnotesection ,
+% \postnotesectionx ,
+% }
+% Provide \cs{postnotesection} and \cs{postnotesectionx}.
% \begin{syntax}
% \cs{postnotesection}\oarg{options}\marg{section content}
+% \cs{postnotesectionx}\oarg{options}\marg{section content}
% \end{syntax}
% \begin{macrocode}
\NewDocumentCommand \postnotesection { O { } +m }
{ \@@_section:nn {#1} {#2} }
+\NewDocumentCommand \postnotesectionx { O { } +m }
+ { \@@_section:nx {#1} {#2} }
% \end{macrocode}
% \end{macro}
%
@@ -1093,6 +1100,7 @@
\@@_store_section:nn { \l_@@_note_id_tl } {#2}
\group_end:
}
+\cs_generate_variant:Nn \@@_section:nn { nx }
% \end{macrocode}
% \end{macro}
%
@@ -1458,9 +1466,9 @@
% must have been stored with the \cs{l_@@_maybe_multi_bool} set to
% \texttt{true}, which is then saved in the \texttt{multibool} property. One
% implication of this procedure is that, if there are any new notes marked as
-% \texttt{multibool}, (at least) three rounds of compilation will be needed,
-% since the labels of the printed notes will be written only on the second run
-% and the document will thus require a third one to stabilize.
+% \texttt{multibool}, three rounds of compilation will be needed, since the
+% labels of the printed notes will be written only on the second run and the
+% document will thus require a third one to stabilize.
%
% \begin{macro}{\@@_verify_multipass:N}
% \begin{syntax}
@@ -1940,10 +1948,10 @@
% From the user's perspective, one-line captions will just work. For two-line
% captions, there are two alternatives: i) decrement the counter by 1
% \texttt{\textbackslash{}addtocounter\{postnote\}\{-1\}} before the caption,
-% then call \cs{postnote} inside the caption; or ii) call
-% \texttt{\textbackslash{}postnote[nomark]\{\textbackslash{}label\{mynote\}...\}}
-% right before the caption, then use
-% \texttt{\textbackslash{}postnoteref\{mynote\}} inside the caption.
+% then call \cs{postnote} inside the caption; or ii) right before the caption,
+% call
+% \texttt{\textbackslash{}postnote[nomark]\{\textbackslash{}label\{mynote\}...\}},
+% then use \texttt{\textbackslash{}postnoteref\{mynote\}} inside the caption.
%
% \begin{macrocode}
\AddToHook { postnotes/note/begin } [ postnotes ]
@@ -2577,6 +2585,27 @@
% \end{macrocode}
%
%
+% \subsection*{French}
+%
+% French localization validated by \texttt{Pika78} at \githubissue{1}.
+%
+% \begin{macrocode}
+\@@_define_language:nn { french }
+ {
+ \tl_set:Nn \pntitle { Notes }
+ \tl_set:Nn \pnhdnotes { Notes }
+ \tl_set:Nn \pnhdtopage { de~la~page }
+ \tl_set:Nn \pnhdtopages { des~pages }
+ }
+\@@_set_babel_language:nn { french } { french }
+\@@_set_babel_language:nn { acadian } { french }
+\@@_set_babel_language:nn { canadien } { french }
+\@@_set_babel_language:nn { francais } { french }
+\@@_set_babel_language:nn { frenchb } { french }
+\@@_set_polyglossia_language:nn { french } { french }
+% \end{macrocode}
+%
+%
% \begin{macrocode}
%</package>
% \end{macrocode}