From 989f4a04f17e36b925fab1f02e359bb91c81ecac Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 28 Oct 2016 20:58:07 +0000 Subject: semantic-markup (28oct16) git-svn-id: svn://tug.org/texlive/trunk@42374 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/semantic-markup/semantic-markup.sty | 29 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex') 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 -- cgit v1.2.3