diff options
author | Karl Berry <karl@freefriends.org> | 2016-05-17 21:26:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-05-17 21:26:14 +0000 |
commit | 089e7e2b5f7b92b6dfc6c6bf0c73b582c503eaaf (patch) | |
tree | 6151809a662d36591ae995e12cd6a8d7240dca71 /Master/texmf-dist/tex/context/modules/mkiv | |
parent | 0c7ddd509036cc608279b743a5ca46a5003b0251 (diff) |
context, from current (17may16)
git-svn-id: svn://tug.org/texlive/trunk@41222 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/modules/mkiv')
-rw-r--r-- | Master/texmf-dist/tex/context/modules/mkiv/x-setups-basics.mkiv | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/modules/mkiv/x-setups-basics.mkiv b/Master/texmf-dist/tex/context/modules/mkiv/x-setups-basics.mkiv index fd6998013c5..02376deea26 100644 --- a/Master/texmf-dist/tex/context/modules/mkiv/x-setups-basics.mkiv +++ b/Master/texmf-dist/tex/context/modules/mkiv/x-setups-basics.mkiv @@ -350,7 +350,7 @@ \startxmlsetups xml:setups:typeset:nop \blank - \type {MISSING SETUP} + {\tttf MISSING SETUP} \blank \stopxmlsetups @@ -896,4 +896,32 @@ \let\cmdshortsetup\shortsetup \let\cmdfullsetup \showsetup +% bonus + +\definefloat + [definition] + +\setupcaption + [definition] + [align=flushright] + +\unexpanded\def\showdefinition#1% + {\placedefinition[here][definition:#1]{\tex{#1}}{\showsetup{#1}}} + +\unexpanded\def\definition[#1]% + {\begingroup + \getcommalistsize[#1]% + \scratchcounter\zerocount + \def\dodefinition##1% + {\advance\scratchcounter\plusone + \ifnum\scratchcounter=\commalistsize + \in{and}[definition:##1]% + \else\ifnum\scratchcounter=\plusone + \in{definition}[definition:##1]\space + \else + \in{, }[definition:##1]\space + \fi\fi}% + \processcommalist[#1]\dodefinition + \endgroup} + \protect \endinput |