diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/register')
-rw-r--r-- | Master/texmf-dist/tex/latex/register/register.sty | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/register/register.sty b/Master/texmf-dist/tex/latex/register/register.sty index 7e3d63a5e50..2f8440af2ec 100644 --- a/Master/texmf-dist/tex/latex/register/register.sty +++ b/Master/texmf-dist/tex/latex/register/register.sty @@ -22,7 +22,7 @@ -\ProvidesPackage{register} [2018/08/18 v1.7 Register macros with +\ProvidesPackage{register} [2018/11/10 v1.8 Register macros with hyperref/LyX support] \RequirePackage{ifthen}[1997/11/02] @@ -144,6 +144,25 @@ hyperref/LyX support] \setlength{\regdescsep}{\oldregdescsep}% \setboolean{RegisterContext}{false}% \end{Regfloat}} +\newenvironment{register*}[3] +{\begin{Regfloat}[#1]% + \setlength{\leftskip}{0pt}% + \setlength{\oldregdescsep}{\regdescsep}% + \setlength{\regdescsep}{0.5\baselineskip}% + \setlength{\partopsep}{0pt}% + \setlength{\topsep}{0pt}% + \setboolean{RegisterContext}{true}% + \ifthenelse{\equal{#3}{}}% + {\centering\textsc{#2}\\}% else + {\centering\textsc{#2} ({#3})\\}% + \centering} +{% restore lengths + \leftskip\z@% + \rightskip\z@% + \parfillskip=\z@ plus 1fil% + \setlength{\regdescsep}{\oldregdescsep}% + \setboolean{RegisterContext}{false}% + \end{Regfloat}} \def\regUnderScore{_}% \def\regFiller#1{\def\regInner{#1}% \ifx\regInner\regUnderScore% |