diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/typed-checklist/typed-checklist.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/typed-checklist/typed-checklist.sty | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/typed-checklist/typed-checklist.sty b/Master/texmf-dist/tex/latex/typed-checklist/typed-checklist.sty index 1e93d10acb4..fd203185a53 100644 --- a/Master/texmf-dist/tex/latex/typed-checklist/typed-checklist.sty +++ b/Master/texmf-dist/tex/latex/typed-checklist/typed-checklist.sty @@ -6,7 +6,7 @@ %% %% typed-checklist.dtx (with options: `package') %% -%% Copyright (C) 2013-2016 by Richard Gay <gay@mais.informatik.tu-darmstadt.de> +%% Copyright (C) 2013-2018 by Richard Grewe <r-g+tex@posteo.net> %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.2 of this license @@ -20,7 +20,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{typed-checklist} - [2016/03/30 v1.4 A package for layouting checklists] + [2018/10/29 v1.5 A package for layouting checklists] \RequirePackage{xkeyval} \define@boolkey{typed-checklist.sty}[tchklst@]{withAsciilist}{} \ProcessOptionsX @@ -80,8 +80,8 @@ \PackageError{typed-checklist}{% #4-checklist state `#1' already defined}{}}{} \listcsadd{tchklst@ChecklistStates@#4}{#1}% -\expandafter\def\csname tchklst@isclosed@#4@#1\endcsname{#2}% -\expandafter\def\csname tchklst@sym@#4@#1\endcsname{#3}} + \expandafter\def\csname tchklst@isclosed@#4@#1\endcsname{#2}% + \expandafter\def\csname tchklst@sym@#4@#1\endcsname{#3}} \newcommand*\tchklst@CheckTypeStatus[2]{% \ifinlistcs{#2}{tchklst@ChecklistStates@#1}{}{% \PackageError{typed-checklist}% @@ -207,20 +207,22 @@ \RequirePackage{marginnote} \CheckListDeclareLayout{list}{status,label,description,who,deadline,END}% {\bgroup\topsep=\medskipamount\itemsep=0pt\description - \advance\itemindent by 0.5em}% + \advance\labelsep by-0.5em}% {\enddescription\egroup} \CheckListDefineFieldFormat{list}{status}% {\item[{\normalfont\tchklst@getsymbol{#1}}]} \CheckListDefineFieldFormat{list}{label}{% \ifstrempty{#1}{}{\ifbool{inner}% - {{\small(\ref{#1}) }}% + {\mbox{\small(\ref{#1})}% + \nobreak\hskip 0pt plus50pt\allowbreak + \ \hskip 0pt plus-50pt\relax}% {\leavevmode\reversemarginpar\marginpar{% \textcolor{gray}{\underbar{\hbox to \hsize{% \normalfont\textcolor{black}{\ref{#1}}\hfil}}}}}}} \CheckListDefineFieldFormat{list}{description}{% \ignorespaces #1\relax} \CheckListDefineFieldFormat{list}{who}{% - \ifstrempty{#1}{\hfill\null}{% + \ifstrempty{#1}{\nobreak\hfill\null}{% \tchklst@signed{\textit{(#1)}}}} \CheckListDefineFieldFormat{list}{deadline}{% \ifstrempty{#1}{}{{\normalmarginpar\marginnote{% @@ -248,7 +250,9 @@ {\endlongtabu} \CheckListDefineFieldFormat{table}{status}{\tchklst@getsymbol{#1}} \CheckListDefineFieldFormat{table}{label}% - {\ifstrempty{#1}{}{{\small(\ref{#1}) }}} + {\ifstrempty{#1}{}{\mbox{\small(\ref{#1})}% + \nobreak\hskip 0pt plus50pt\allowbreak + \ \hskip 0pt plus-50pt\relax}} \CheckListDefineFieldFormat{table}{description}{\ignorespaces #1} \CheckListDefineFieldFormat{table}{deadline}{#1} \CheckListDefineFieldFormat{table}{who}{#1} @@ -256,10 +260,10 @@ \CheckListDefineFieldFormat{table}{endline}{\\\hline} \iftchklst@withAsciilist \newcommand*\tchklst@ChkListEntry[2]{% -\tchklst@ChkListEntry@i{#1}#2\@undefined} + \tchklst@ChkListEntry@i{#1}#2\@undefined} \def\tchklst@ChkListEntry@ii#1#2#3[#4]#5\@undefined{#1[#4]{#3}{#2}} \def\tchklst@ChkListEntry@i#1#2:#3\@undefined{% -\tchklst@ChkListEntry@ii{#1}{#3}#2[]\@undefined} + \tchklst@ChkListEntry@ii{#1}{#3}#2[]\@undefined} \fi \endinput %% |