From 2f129be30d68dbd9f380bdee127b42eb060b9630 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 30 Oct 2018 20:33:13 +0000 Subject: typed-checklist (30oct18) git-svn-id: svn://tug.org/texlive/trunk@49029 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/typed-checklist/typed-checklist.sty | 24 +++++++++++++--------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'Master/texmf-dist/tex/latex/typed-checklist') 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 +%% Copyright (C) 2013-2018 by Richard Grewe %% %% 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 %% -- cgit v1.2.3