texlive[42374] Master/texmf-dist: semantic-markup (28oct16)

commits+karl at tug.org commits+karl at tug.org
Fri Oct 28 22:58:07 CEST 2016


Revision: 42374
          http://tug.org/svn/texlive?view=revision&revision=42374
Author:   karl
Date:     2016-10-28 22:58:07 +0200 (Fri, 28 Oct 2016)
Log Message:
-----------
semantic-markup (28oct16)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/semantic-markup/README
    trunk/Master/texmf-dist/doc/latex/semantic-markup/semantic-markup.pdf
    trunk/Master/texmf-dist/doc/latex/semantic-markup/semantic-markup.tex
    trunk/Master/texmf-dist/tex/latex/semantic-markup/semantic-markup.sty

Modified: trunk/Master/texmf-dist/doc/latex/semantic-markup/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/semantic-markup/README	2016-10-28 20:57:55 UTC (rev 42373)
+++ trunk/Master/texmf-dist/doc/latex/semantic-markup/README	2016-10-28 20:58:07 UTC (rev 42374)
@@ -9,5 +9,5 @@
 All the commands can be easily redefined as needed.
 
 This material is subject to the current version of the LaTeX Project Public License.
-The author and maintainer is Andrew A. Cashner, cashner at usc.edu.
+The author and maintainer is Andrew A. Cashner, andrewacashner at gmail.com.
 

Modified: trunk/Master/texmf-dist/doc/latex/semantic-markup/semantic-markup.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/semantic-markup/semantic-markup.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/semantic-markup/semantic-markup.tex	2016-10-28 20:57:55 UTC (rev 42373)
+++ trunk/Master/texmf-dist/doc/latex/semantic-markup/semantic-markup.tex	2016-10-28 20:58:07 UTC (rev 42374)
@@ -8,7 +8,7 @@
 \usepackage{semantic-markup}
 \frenchspacing
 \usepackage
-  [pdftitle={The semantics Package for Meaningful Markup},
+  [pdftitle={The semantic-markup Package for Meaningful Markup},
    pdfauthor={Andrew A. Cashner},
    pdfsubject={LaTeX package},
    pdfkeywords={LaTeX, semantic markup, TEI, humanities}]{hyperref}
@@ -16,7 +16,7 @@
 
 \title{The \texttt{semantic-markup} Package for Meaningful Markup}
 \author{Andrew A. Cashner%
-  \thanks{Assistant professor of musicology, University of Southern California, \href{mailto:cashner at usc.edu}{\nolinkurl{cashner at usc.edu}}}%
+  \thanks{\href{mailto:andrewacashner at gmail.com}{\nolinkurl{andrewacashner at gmail.com}}}%
 }
 
 \begin{document}
@@ -31,9 +31,15 @@
 
 \section{Package Options}
 
+\subsection{\texttt{defaultquotes}}
+
 The package configures \texttt{csquotes} to place end punctuation inside quotation marks, according to United States usage. 
 Use the \texttt{defaultquotes} package option to restore the default behavior of \texttt{csquotes}.
 
+\subsection{\texttt{endnotes}}
+
+The \texttt{endnotes} option converts footnotes to endnotes, including footnotes created with this package's \texttt{Footnote} environment.
+
 \section{Semantic Commands Defined Without Arguments}
 
 The following commands are defined (using \texttt{xparse}) as aliases to standard \LaTeX{} commands or \verb|\textquote| from the \texttt{csquotes} package.
@@ -47,7 +53,7 @@
 \begin{center}
 \begin{tabularx}{\linewidth}{llX}
 \toprule
-Command & Alias & Use\\
+Package Command & Alias & Use\\
 \midrule
 \verb|\quoted| & \verb|\textquote| & Quoted material, taking care of end punctuation: instead of \verb|``word,''| write \verb|\quoted{word},|\\
 \verb|\soCalled| & \verb|\textquote| & Scare quotes\\

Modified: trunk/Master/texmf-dist/tex/latex/semantic-markup/semantic-markup.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/semantic-markup/semantic-markup.sty	2016-10-28 20:57:55 UTC (rev 42373)
+++ trunk/Master/texmf-dist/tex/latex/semantic-markup/semantic-markup.sty	2016-10-28 20:58:07 UTC (rev 42374)
@@ -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 at usc.edu
+% Copyright 2016 Andrew A. Cashner, andrewacashner at 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
 



More information about the tex-live-commits mailing list