summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-10-28 20:58:07 +0000
committerKarl Berry <karl@freefriends.org>2016-10-28 20:58:07 +0000
commit989f4a04f17e36b925fab1f02e359bb91c81ecac (patch)
tree00881096146dba77949e1090253e09830a4fd1b6 /Master/texmf-dist/tex/latex
parent2a6a7fba1491d434954a174b8a7fe2e07d6c104a (diff)
semantic-markup (28oct16)
git-svn-id: svn://tug.org/texlive/trunk@42374 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-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