diff options
author | Karl Berry <karl@freefriends.org> | 2014-09-12 22:36:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-09-12 22:36:56 +0000 |
commit | 892d45439f1e0dc5132527cf616984b1f640643f (patch) | |
tree | 4e83588a8e74b995d9e5c2905e8c4cb57566b7b5 /Master/texmf-dist/source/latex/eledmac/eledmac.dtx | |
parent | 36889e093f11a778300205a25efea334b6942c7b (diff) |
eledmac (12sep14)
git-svn-id: svn://tug.org/texlive/trunk@35158 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/eledmac/eledmac.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/eledmac/eledmac.dtx | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/eledmac/eledmac.dtx b/Master/texmf-dist/source/latex/eledmac/eledmac.dtx index e96595199b0..6ebb4ad6c22 100644 --- a/Master/texmf-dist/source/latex/eledmac/eledmac.dtx +++ b/Master/texmf-dist/source/latex/eledmac/eledmac.dtx @@ -51,7 +51,7 @@ % % \fi % -% \CheckSum{10105} +% \CheckSum{10117} % % \makeatletter % \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters @@ -1176,12 +1176,13 @@ % say something you find more meaningful, like \cs{variant}. We % recommend that you create a series of such aliases and use them % instead of the names chosen here; all you have to do is put commands -% of this form at the start of your file: +% of this form at the start of your file% +%\footnote{We use \cs{newcommand} and \cs{newcommandx} instead of classical \cs{let} command because the edtabular environments have to modify the notes definition, and we need to use the newest definition of notes. Read the handbook of \Lpack{xargs} to know more about \cs{newcommandx}.}: % \begin{verbatim} -% \let\variant=\Afootnote -% \let\explanatory=\Bfootnote -% \let\trivial=\Aendnote -% \let\testimonia=\Cfootnote +% \newcommandx{\variant}[2][1,usedefault]{\Afootnote[#1]{#2}} +% \newcommandx{\explanatory}[2][1,usedefault]{\Bfootnote[#1]{#2}} +% \newcommand{\trivial}[1]{\Aendnote{#1}} +% \newcommandx{\testimonia}[2][1,usedefault]{\Cfootnote[#1]{#2}} % \end{verbatim} % % @@ -2843,7 +2844,7 @@ % \begin{macrocode} %<*code> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{eledmac}[2014/09/07 v1.12.7 LaTeX port of EDMAC]% +\ProvidesPackage{eledmac}[2014/09/12 v1.12.8 LaTeX port of EDMAC]% % \end{macrocode} % % Generally, these are the modifications to the original. @@ -4934,43 +4935,45 @@ % \end{macrocode} % \end{macro} -% +% \begin{macro}{\if@noneed@Footnote} % \begin{macro}{\flag@start} % \begin{macro}{\flag@end} % \changes{v1.12.3}{2014/08/15}{\cs{flag@start} and \cs{flag@end} are now defined only one time for eledmac and eledpar} % \changes{v1.12.3}{2014/08/15}{\cs{flag@start} send a error message when a \cs{edtext} is done without insert (note)} +% \changes{v1.12.8}{2014/09/12}{\cs{flag@start} don't send a error message when a \cs{edtext} is done without insert (note) but have a endnote} % We enclose a lemma marked by \cs{edtext} in % \cs{flag@start} and \cs{flag@end}: these send the \cs{@ref} % command to the line-list file. \cs{edtext} is responsible for % setting the value of \cs{insert@count} appropriately; it % actually gets done by the various footnote macros. % \begin{macrocode} +\newif\if@noneed@Footnote%Bool to check if we have to print a error message + \newcommand*{\flag@start}{% \ifledRcol% \edef\next{\write\linenum@outR{% \string\@ref[\the\insert@countR][}}% \next% \ifnum\insert@countR<1% - \led@err@EdtextWithoutFootnote% + \if@noneed@Footnote\else% + \led@err@EdtextWithoutFootnote% + \fi% \fi% \else% \edef\next{\write\linenum@out{% \string\@ref[\the\insert@count][}}% \next% \ifnum\insert@count<1% - \led@err@EdtextWithoutFootnote% + \if@noneed@Footnote\else% + \led@err@EdtextWithoutFootnote% + \fi% \fi% \fi}% -\newcommand*{\flag@end}{% - \ifledRcol% - \write\linenum@outR{]}% - \else% - \write\linenum@out{]}% - \fi}% % \end{macrocode} % \end{macro} % \end{macro} +% \end{macro} % % \begin{macro}{\page@start} % Originally the commentary was: \cs{page@start} writes a command to the line-list @@ -5479,8 +5482,16 @@ \flag@end}% {\if@RTL\flag@start\else\flag@end\fi% With polyglossia, you must track whether the language reads left to right (English) or right to left (Arabic). }% + \global\@noneed@Footnotefalse% } +\newcommand*{\flag@end}{% + \ifledRcol% + \write\linenum@outR{]}% + \else% + \write\linenum@out{]}% + \fi}% + % \end{macrocode} % \end{macro} % @@ -9251,6 +9262,7 @@ % \begin{macrocode} \global\expandafter\newcommand\csname #1endnote\endcsname[2]{{\newlinechar='40 + \global\@noneed@Footnotetrue% \newcommand{\content}{##1}% \immediate\write\l@d@end{\expandafter\string\csname #1end\endcsname% {\ifnumberedpar@\l@d@nums\fi}% |