summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/poetrytex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-07-26 22:41:42 +0000
committerKarl Berry <karl@freefriends.org>2012-07-26 22:41:42 +0000
commit12a9c88c506d20248c694bab2edf0ad4c13c0e02 (patch)
treeea953ea88b6b104a14771a3cfe49071c1f803d08 /Master/texmf-dist/tex/latex/poetrytex
parent189cdee7beb21ea6634aa3e2844ca3d27bb2e3e1 (diff)
poetrytex (26jul12)
git-svn-id: svn://tug.org/texlive/trunk@27174 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/poetrytex')
-rw-r--r--Master/texmf-dist/tex/latex/poetrytex/poetrytex.sty27
1 files changed, 13 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/poetrytex/poetrytex.sty b/Master/texmf-dist/tex/latex/poetrytex/poetrytex.sty
index 43f6af20d17..33ccdcdce86 100644
--- a/Master/texmf-dist/tex/latex/poetrytex/poetrytex.sty
+++ b/Master/texmf-dist/tex/latex/poetrytex/poetrytex.sty
@@ -35,20 +35,20 @@
\newcommand*{\@ptpoemlabeltext}{poetrytexpoem:}
\newcounter{poemnum}
\newcounter{absolutepoemnum}
-\newcommand*{\ptdedication}{}
-\newcommand*{\makededication}[0]{%
+\newcommand*{\ptdedication}{Renew \textsf{\textbackslash ptdedication}}
+\newcommand*{\makededication}[1][flushright]{%
\thispagestyle{empty}
\vspace*{\fill}
- \begin{flushright}
+ \begin{#1}
\emph{\ptdedication}
- \end{flushright}
+ \end{#1}
\vspace*{\fill}
}
+\newcommand*{\toptitle}{List of Poems}
+\newcommand*{\topentrytype}{subsection}
\setcounter{secnumdepth}{-1}
\setcounter{tocdepth}{2}
-\newcommand*{\toptitle}{List of Poems}
\renewcommand*{\listtablename}{\toptitle}
-\newcommand*{\topentrytype}{subsection}
\newcommand*{\maketoc}{%
\tableofcontents
\pagestyle{plain}
@@ -147,10 +147,8 @@
\ExplSyntaxOn
\cs_new_eq:NN \@ptrepeat \prg_replicate:nn
\ExplSyntaxOff
-\newcommand*{\linktopoem}[2][false]{%
- \newcommand*{\@ptfirstarg}{#1}
- \newcommand*{\@ptfalse}{false}
- \ifx \@ptfirstarg \@ptfalse
+\newcommand*{\linktopoem}[2][ptnull]{%
+ \ifx{#1}{ptnull}
\hyperref[\@ptpoemlabeltext#2]{#2}\relax
\else
\hyperref[\@ptpoemlabeltext#1]{#2}\relax
@@ -197,14 +195,15 @@
\vspace*{\fill}
\clearpage
}
-\newenvironment{annotation}[1]{%
+\newenvironment{annotation}[2][flushleft]{%
+ \newcommand*{\@ptwrapenvironment}{#1}
\cleardoublepage
\poetryheadings
- \begin{flushleft}
- \subsection{#1}
+ \begin{\@ptwrapenvironment}
+ \subsection{#2}
}{%
- \end{flushleft}
+ \end{\@ptwrapenvironment}
\clearpage
}
%%