summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-01-02 22:57:27 +0000
committerKarl Berry <karl@freefriends.org>2013-01-02 22:57:27 +0000
commita9750df19ac98599ff8ce11306ef74a459710251 (patch)
tree5f1aa0fdffabcf696bd017af76714fdf789700eb /Master/texmf-dist/tex/latex
parent38aff79d1a1f807457e1e2e152f55f8c41189a76 (diff)
enotez (2jan13)
git-svn-id: svn://tug.org/texlive/trunk@28702 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/enotez/enotez.sty32
1 files changed, 23 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/enotez/enotez.sty b/Master/texmf-dist/tex/latex/enotez/enotez.sty
index 4436a0ba41f..10ea9a1bc5b 100644
--- a/Master/texmf-dist/tex/latex/enotez/enotez.sty
+++ b/Master/texmf-dist/tex/latex/enotez/enotez.sty
@@ -31,8 +31,8 @@
\RequirePackage{ expl3 , xparse , l3keys2e , xtemplate }
\ProvidesExplPackage
{enotez}
- {2012/07/24}
- {0.3a}
+ {2012/12/30}
+ {0.4}
{Endnotes for LaTeX2e}
% --------------------------------------------------------------------------
@@ -87,6 +87,10 @@
\cs_set_eq:Nc \enotez_counter_format:n { int_to_ \l_keys_choice_tl :n } ,
counter-format .generate_choices:n =
{ arabic , alph , Alph , roman , Roman } ,
+ mark-format .code:n =
+ \cs_set:Npn \enmarkstyle { #1 } ,
+ mark-cs .code:n =
+ \cs_set:Npn \enotezwritemark { #1 } ,
totoc .choice_code:n =
\tl_if_eq:VnTF \l_keys_choice_tl { false }
{ \bool_set_false:N \l_enotez_totoc_bool }
@@ -117,8 +121,8 @@
\cs_new:Npn \enotez_write_mark:nn #1#2
{
\bool_if:NTF \l_enotez_hyperfootnotes_bool
- { \textsuperscript { \hyperlink { enz.#1 } { #2 } } }
- { \textsuperscript { #2 } }
+ { \enotezwritemark { \hyperlink { enz.#1 } { \enmarkstyle #2 } } }
+ { \enotezwritemark { \enmarkstyle #2 } }
}
% the internal endnote:
@@ -132,7 +136,8 @@
{ \int_use:N \g_enotez_endnote_id_int }
{ \enotez_counter_format:V \g_enotez_endnote_mark_int }
\tl_set:Nn \l_tmpa_tl { chapter }
- \bool_if:nTF { \l_enotez_split_bool && \tl_if_eq_p:NN \l_enotez_split_tl \l_tmpa_tl }
+ \bool_if:nTF
+ { \l_enotez_split_bool && \tl_if_eq_p:NN \l_enotez_split_tl \l_tmpa_tl }
{
\enotez_save_note:xxxxnn
{ \int_use:N \g_enotez_endnote_id_int }
@@ -155,7 +160,8 @@
{
\enotez_write_mark:nn { \int_use:N \g_enotez_endnote_id_int } { #1 }
\tl_set:Nn \l_tmpa_tl { chapter }
- \bool_if:nTF { \l_enotez_split_bool && \tl_if_eq_p:NN \l_enotez_split_tl \l_tmpa_tl }
+ \bool_if:nTF
+ { \l_enotez_split_bool && \tl_if_eq_p:NN \l_enotez_split_tl \l_tmpa_tl }
{
\enotez_save_note:xnxxnn
{ \int_use:N \g_enotez_endnote_id_int }
@@ -183,7 +189,7 @@
\cs_new:Npn \enotez_caption_endnote:nn #1#2
{
- \IfNoValueTF { #1 }
+ \quark_if_no_value:nTF { #1 }
{
\enotez_write_mark:nn
{ \int_use:N \g_enotez_endnote_id_int }
@@ -517,8 +523,12 @@
\prop_get:NnN \g_enotez_endnote_split_prop { #1 } \l_enotez_tmpb_tl
}
-% the mark in the list:
-\cs_new:Npn \enmark #1 { #1 . }
+% the marks in the list:
+\cs_new:Npn \enmark #1 { #1 . }
+
+% the marks in the text:
+\cs_new:Npn \enmarkstyle { }
+\cs_new_eq:NN \enotezwritemark \textsuperscript
% internal printendnotes:
\cs_new:Npn \enotez_print_endnotes:nn #1#2
@@ -600,6 +610,10 @@
2012/07/07 v0.3 - list-building rewritten due to a design flaw
2012/07/24 v0.3a - adapted to deprecated functions in l3kernel and l3packages,
removed debugging leftover
+2012/12/14 v0.3b - bug fix: works again when used with a KOMA class and an
+ endnote is used inside a caption
+2012/12/30 v0.4 - new options `mark-cs' and `mark-format', redefinable
+ commands \enmarkstyle and \enotezwritemark
% --------------------------------------------------------------------------
% TODO: