diff options
author | Marius <mariausol@gmail.com> | 2012-07-21 18:00:12 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-07-21 18:00:12 +0300 |
commit | a2b160d4a0730ede825a2cad70013cbd4c872c7d (patch) | |
tree | 455906bb801bb58b0c117ca25ab258c2a37ce730 /tex/context/base/strc-lnt.mkvi | |
parent | cb16d6d90d5e38a54287e31fcf37d9bb362d179d (diff) | |
download | context-a2b160d4a0730ede825a2cad70013cbd4c872c7d.tar.gz |
beta 2012.07.21 16:50
Diffstat (limited to 'tex/context/base/strc-lnt.mkvi')
-rw-r--r-- | tex/context/base/strc-lnt.mkvi | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/tex/context/base/strc-lnt.mkvi b/tex/context/base/strc-lnt.mkvi index 1366e6cdc..9b93ba07f 100644 --- a/tex/context/base/strc-lnt.mkvi +++ b/tex/context/base/strc-lnt.mkvi @@ -27,11 +27,20 @@ {\dotripleempty\strc_linenotes_define} \def\strc_linenotes_define[#1][#2][#3]% - {\definenote[#1][#2][#3]% - \expandafter\let\csname\??linenote#1\expandafter\endcsname\csname#1\endcsname % use copy command - \setuevalue {#1}{\strc_linenotes_direct{#1}}% - \setuevalue{\e!start#1}{\strc_linenotes_start {#1}}% - \setuevalue{\e!stop #1}{\strc_linenotes_stop }} + {\ifcsname\??linenote#1\endcsname + % there might be files that define the default 'linenote' + \ifthirdargument + \setupnote[#1][#3]% + \else\ifsecondargument + \setupnote[#1][#2]% + \fi\fi + \else + \definenote[#1][#2][#3]% + \expandafter\let\csname\??linenote#1\expandafter\endcsname\csname#1\endcsname % use copy command + \setuevalue {#1}{\strc_linenotes_direct{#1}}% + \setuevalue{\e!start#1}{\strc_linenotes_start {#1}}% + \setuevalue{\e!stop #1}{\strc_linenotes_stop }% + \fi} \unexpanded\def\strc_linenotes_direct#1#2% {\global\advance\c_strc_linenotes\plusone |