summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/semantic-markup/semantic-markup.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/semantic-markup/semantic-markup.sty')
-rw-r--r--Master/texmf-dist/tex/latex/semantic-markup/semantic-markup.sty29
1 files changed, 26 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/semantic-markup/semantic-markup.sty b/Master/texmf-dist/tex/latex/semantic-markup/semantic-markup.sty
index f4e7f3ffbf9..c6d24f5cb55 100644
--- a/Master/texmf-dist/tex/latex/semantic-markup/semantic-markup.sty
+++ b/Master/texmf-dist/tex/latex/semantic-markup/semantic-markup.sty
@@ -1,7 +1,7 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{semantic-markup}[2016/09/01
+\ProvidesPackage{semantic-markup}[2016/10/28
Macros for TEI-like semantic markup]
-% Copyright 2016 Andrew A. Cashner, cashner@usc.edu
+% Copyright 2016 Andrew A. Cashner, andrewacashner@gmail.com
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -17,11 +17,24 @@
% This work consists of the package file semantic-markup.sty
% and the documentation file semantic-markup.tex.
+% CHANGE LOG
+% 2016-09-22 `endnotes' option added
+% 2016-09-01 First version on CTAN
+
+% Option to use csquotes default behavior instead of the
+% US localized punctuation used in this package
\newif\ifdefaultquotes
-% Use custom configuration instead of csquotes default
\defaultquotesfalse
\DeclareOption{defaultquotes}{\defaultquotestrue}
+
+% Option to convert footnotes to endnotes, include
+% Footnote environment
+\newif\ifendnotes
+\endnotesfalse
+\DeclareOption{endnotes}{\endnotestrue}
+
\ProcessOptions\relax
+%**************************
\RequirePackage{xparse}
@@ -82,6 +95,16 @@
\RequirePackage{environ}
\NewEnviron{Footnote}{\footnote{\BODY}}[]
+%******************
+% Endnotes, if desired
+% Footnote environment adjusted to fix expansion problem
+\ifendnotes
+ \RequirePackage{endnotes}
+ \RenewEnviron{Footnote}{\expandafter\footnote\expandafter{\BODY}}[]
+ \let\footnote=\endnote
+ \AtEndDocument{\theendnotes}
+\fi
+
%****************************************
% MUSIC SYMBOLS