diff options
author | Karl Berry <karl@freefriends.org> | 2017-11-13 23:48:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-11-13 23:48:29 +0000 |
commit | f899f7310045611eaac2d7a69fdf55abb36250c6 (patch) | |
tree | 2fd99cd6106a30119b6ba50a105d4cdd77194617 /Master/texmf-dist/tex/context | |
parent | f9144aa25c4d0565329116ae497fdc14d282f264 (diff) |
context-title (13nov17)
git-svn-id: svn://tug.org/texlive/trunk@45778 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context')
-rw-r--r-- | Master/texmf-dist/tex/context/interface/third/t-title.xml | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/context/third/title/t-title.mkvi | 32 |
2 files changed, 22 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/context/interface/third/t-title.xml b/Master/texmf-dist/tex/context/interface/third/t-title.xml index 462aba4309a..1a061726328 100644 --- a/Master/texmf-dist/tex/context/interface/third/t-title.xml +++ b/Master/texmf-dist/tex/context/interface/third/t-title.xml @@ -2,7 +2,7 @@ <cd:interface xmlns:cd="http://www.pragma-ade.com/commands" name="context" language="en" version="2011.10.04"> -<cd:command name="placetitle" file=t-tile.mkvi"> +<cd:command name="placetitle" file="t-tile.mkvi"> <cd:sequence> <cd:string value="placetitle"/> </cd:sequence> diff --git a/Master/texmf-dist/tex/context/third/title/t-title.mkvi b/Master/texmf-dist/tex/context/third/title/t-title.mkvi index 3b85379e571..b7d72f01204 100644 --- a/Master/texmf-dist/tex/context/third/title/t-title.mkvi +++ b/Master/texmf-dist/tex/context/third/title/t-title.mkvi @@ -1,6 +1,6 @@ %D \module %D [ file=t-title, -%D version=2012.04.11, +%D version=2013.02.05, %D title=\CONTEXT\ User Module, %D subtitle=Document titles, %D author=Wolfgang Schuster, @@ -13,7 +13,7 @@ %C This program is free software: you can redistribute it and/or modify %C it under the terms of the GNU General Public License as published by %C the Free Software Foundation, either version 3 of the License, or -%C any later version. +%C (at your option) any later version. %C %C This program is distributed in the hope that it will be useful, %C but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -33,20 +33,28 @@ \unprotect -\installnamespace {title} -\installcommandhandler \????title {title} \????title +\installnamespace {title} +\installnamespace {titlealternative} +\installnamespace {titlerenderings} + +\installsimplecommandhandler \????title {title} \????title +\installcommandhandler \????titlealternative {titlealternative} \????titlealternative \unexpanded\def\title_place {\begingroup \dostarttagged\t!division\v!title - \dosingleempty\title_arguments} + \dosingleempty\title_place_indeed} -\def\title_arguments[#parameters]% +\def\title_place_indeed[#parameters]% {\let\currenttitle\empty - \iffirstargument\setupcurrenttitle[#parameters]\fi - \autosetups{\roottitleparameter\c!setups}% + \iffirstargument + \setupcurrenttitle[#parameters]% + \fi + \edef\currenttitlealternative{\roottitleparameter\c!alternative}% + \edef\p_renderingsetup{\titlealternativeparameter\c!renderingsetup}% + \autosetups\p_renderingsetup \dostoptagged - \doif{\roottitleparameter\c!pagestate}\v!stop{\aftergroup\noheaderandfooterlines}% + \doif{\roottitleparameter\c!pagestate}\v!stop{\aftergroup\noheaderandfooterlines}% why here and not after \endgroup? \endgroup} \def\title_parameter#element% @@ -61,7 +69,9 @@ \let\placetitle \title_place \let\titleelement\title_parameter -\startsetups title:default +\definetitlealternative[\s!default][\c!renderingsetup=\????titlerenderings:\s!default] + +\startsetups[\????titlerenderings:\s!default] \blank[\roottitleparameter\c!spacebefore] @@ -89,7 +99,7 @@ \c!spaceafter={1.5em}, \c!align=\v!middle, \c!pagestate=\v!stop, - \c!setups=title:default] + \c!alternative=\s!default] \setuptitle [\c!title] |