diff options
author | Karl Berry <karl@freefriends.org> | 2022-04-27 19:39:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-04-27 19:39:01 +0000 |
commit | 51d2ed3f72df7d1a0db22453af2fda5d318eae6f (patch) | |
tree | efe8ab4cbc13cae7cd03edd6569a770256e874fb /Master/texmf-dist/source | |
parent | a1ed5651a5e3f5c5f92b9c4c21baea8538dfa77b (diff) |
postnotes (27apr22)
git-svn-id: svn://tug.org/texlive/trunk@63160 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/postnotes/postnotes.dtx | 49 |
1 files changed, 39 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/latex/postnotes/postnotes.dtx b/Master/texmf-dist/source/latex/postnotes/postnotes.dtx index d8175197546..703466554b8 100644 --- a/Master/texmf-dist/source/latex/postnotes/postnotes.dtx +++ b/Master/texmf-dist/source/latex/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} |