From c03e542206826da731fa004bd32d6045ff36bb74 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 5 Apr 2010 23:24:04 +0000 Subject: context-letter update (5apr10) git-svn-id: svn://tug.org/texlive/trunk@17723 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/context/third/letter/correspondence.pdf | Bin 407704 -> 406777 bytes .../letter/doc/correspondence-environment.tex | 19 +++-- .../letter/doc/correspondence-letter-beginner.tex | 45 ++++-------- .../letter/doc/correspondence-letter-layout.tex | 17 +++++ .../third/letter/base/t-correspondence.mkii | 12 +++- .../third/letter/base/t-correspondence.mkiv | 38 +++++----- .../context/third/letter/base/t-correspondence.tex | 2 +- .../tex/context/third/letter/interface/default.nli | 79 ++++++++++++--------- 8 files changed, 111 insertions(+), 101 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/context/third/letter/correspondence.pdf b/Master/texmf-dist/doc/context/third/letter/correspondence.pdf index 8b68182ac16..b52d9b658c4 100644 Binary files a/Master/texmf-dist/doc/context/third/letter/correspondence.pdf and b/Master/texmf-dist/doc/context/third/letter/correspondence.pdf differ diff --git a/Master/texmf-dist/source/context/third/letter/doc/correspondence-environment.tex b/Master/texmf-dist/source/context/third/letter/doc/correspondence-environment.tex index fb9d0dc656d..1b6650875d2 100644 --- a/Master/texmf-dist/source/context/third/letter/doc/correspondence-environment.tex +++ b/Master/texmf-dist/source/context/third/letter/doc/correspondence-environment.tex @@ -94,7 +94,7 @@ %%%% Layout -%% Einnstellungen für die Musterbriefe +%% Einstellungen für die Musterbriefe \setupletterstyle [option] @@ -196,23 +196,24 @@ \defineoverlay[coverfigure][\overlayfigure{980559_60280625}] \def\TitlePage - {%\setupbackgrounds[page][background={coverfigure,color},backgroundcolor=twhite]% später + {\bgroup \setupbackgrounds[page][background=color,backgroundcolor=lettercolor] \startstandardmakeup[align=middle] \vfill - \definedfont[SansBold sa 4]\setupinterlinespace\getvariable{correspondence}{title}\par - \blank[2*medium] - \definedfont[Sans sa 2]\setupinterlinespace Version: \getvariable{correspondence}{version}\par + {\definedfont[SansBold sa 4]\setupinterlinespace\getvariable{correspondence}{title}\par} + \blank[2*line] + {\definedfont[Sans sa 2]\setupinterlinespace Version: \getvariable{correspondence}{version}\par} \vfill\vfill\vfill \stopstandardmakeup - \setupbackgrounds[page][background=]} + \egroup} \def\LastPage {\page[yes,left] + \bgroup \setupbackgrounds[page][background=color,backgroundcolor=lettercolor] \startstandardmakeup % warum nicht \stopstandardmakeup % \page[empty]? - \setupbackgrounds[page][background=]} + \egroup} \def\CommandList {\chapter{Command definitions} @@ -254,9 +255,5 @@ \fi -%% Parameter-Check - -% \idefined\enablecheckparameters \enablecheckparameters \fi - \stopenvironment diff --git a/Master/texmf-dist/source/context/third/letter/doc/correspondence-letter-beginner.tex b/Master/texmf-dist/source/context/third/letter/doc/correspondence-letter-beginner.tex index d4f8f27a9d1..6854591f16d 100644 --- a/Master/texmf-dist/source/context/third/letter/doc/correspondence-letter-beginner.tex +++ b/Master/texmf-dist/source/context/third/letter/doc/correspondence-letter-beginner.tex @@ -4,8 +4,6 @@ \chapter{Beginners guide} -%This chapter will help you to write your own letter without studying first the complete manual, only the most important information are given to get a result with the default styles. - The most important in the module for the users is the interface to write the letter text and to set the values for one or more letters. You will learn how to write a letter with the module step by step, beginning with just a few lines of text, following with opening and closing sentences and at the end after you know how to set every kind of information you will finally learn how to change the position of the reference line and how to change the texts for the labels and to customise their style and color. @@ -40,11 +38,11 @@ Thus, I came to the conclusion ... \stoptext \stoptyping -As you could see from the first line the letter module has to be loaded before it could used because it is none of the functions \CONTEXT\ provides by default, to make the examples in the following sections a little bit shorter I will no longer add \type {\usemodule}, \type {\starttext} and \type {\stoptext} but you shouldn't forgot to add all of them in your files. +As you could see from the first line the letter module has to be loaded before it could used because it is none of the functions \CONTEXT\ provides by default, to make the examples in the following sections a little bit shorter I will no longer add \type{\usemodule}, \type{\starttext} and \type{\stoptext} but you shouldn't forgot to add all of them in your files. The content for your letter is written between the letter environment, it doesn't matter if you use blank lines before and after the letter text. -If you take a closer look at the result on the left side you could see the paragraphs are separated by blank lines, this could be changed with the \type {\setupletterstyle} command but let us keep this for later. +If you take a closer look at the result on the left side you could see the paragraphs are separated by blank lines, this could be changed with the \type{\setupletterstyle} command but let us keep this for later. You're not restricted to only one letter in file, it is possible to write as many as you like in a file and you could use this to write serial letters but a easier method to do this is described later in the manual. @@ -70,9 +68,9 @@ You're not restricted to only one letter in file, it is possible to write as man You saw in the last example how to write a simple text but shouldn't it be possible to give a few opening and also closing words for the letter, because the reader should know for whom the content is. -To achieve this the module provides the two variables {\em opening} and {\em closing}. To feed them with text you could either use the optional argument for \type {\startletter} as done in the current or you could set them before the content of the letter with the two commands \type {\setupletter} and \type {\setlettervalue}. +To achieve this the module provides the two variables {\em opening} and {\em closing}. To feed them with text you could either use the optional arguments for \type{\startletter} as done in the current example or you could set them before the start of the letter with the two commands \type{\setupletter} and \type{\setlettervalue}. -Let us begin with first alternative and set them as argument with \type {\startletter}: +Let us begin with first alternative and set them as argument with \type{\startletter}: \starttyping \startletter @@ -82,7 +80,7 @@ Thus, I came to the conclusion ... \stopletter \stoptyping -If you don't like this method you could set the two value before the letter environment with the \type {\setupletter} command, the text in your file should now look like: +If you don't like this method you could set the two value before the letter environment with the \type{\setupletter} command, the text in your file should now look like: \starttyping \setupletter @@ -94,19 +92,7 @@ Thus, I came to the conclusion ... \stopletter \stoptyping -\startframedtext[width=\textwidth,framecolor=red,align=flushleft,corner=00]\index{\tex{setlettervalue}} -The definition of the \type{\setuplettervalue} has changed in the module version from 2009.07.03, -only braces are allowed to set values, brackets are optional and used to set the labeltext for -the value in the current mainlanguage, the setup for both variants is: - -\starttyping -\setlettervalue{key}{value} -\setlettervalue{key}[labeltext]{value} -\stoptyping -\stopframedtext - -If you are more interested in a KOMA-Script like solution to set with every command only one value their is as last alternative the \type {\setlettervalue} command, it comes in two different versions where the keyword is either written in braces or in bracket but the content itself is written between braces. - +If you are more interested in a KOMA-Script like solution to set with every command only one value there is as last alternative the \type{\setlettervalue} command, both keyword and content are written between braces. The first version with braces for two values has the following look. \starttyping @@ -114,18 +100,11 @@ The first version with braces for two values has the following look. \setlettervalue{closing}{Greetings from the Author} \stoptyping -The nearly no difference to the second version and both give the same result and you could the one which you prefer. - -\starttyping -\setlettervalue[opening]{Dear Reader,} -\setlettervalue[closing]{Greetings from the Author} -\stoptyping - The values itself had to be given before the letter environment because values in the letter text are ignored and will never be shown in the output. -You have also to be careful with the content for the values because commas are interpreted as end of the value if you write it as argument for \type {\startletter} or with \type {\setupletter} and the text has to be protected with braces in this case but you don't need them is their is no comma in you text. +You have also to be careful with the content for the values because commas are interpreted as end of the value if you write it as argument for \type{\startletter} or with \type{\setupletter} and the text has to be protected with braces in this case but you don't need them when there is no comma in the argument. -This could not happen if you set the values with the \type {\setlettervalue} command because the content is delimited by the braces and commas are just normal text. +This could not happen if you set the values with the \type{\setlettervalue} command because the content is delimited by the braces and commas are just normal text. \page[left] @@ -161,7 +140,7 @@ Thus, I came to the conclusion ... \stopletter \stoptyping -The text for the subject is written as argument for {\em subject} as argument for \type {\startletter}, as you already guess you could have set it also with \type {\setupletter} or \type {\setlettervalue} and this is also possible and true for the values in the following sections. +The text for the subject is written as argument for {\em subject} as argument for \type{\startletter}, as you already guess you could have set it also with \type{\setupletter} or \type{\setlettervalue} and this is also possible and true for the values in the following sections. Besides the {\em subject} you have also the option to set a {\em title} for the letter, the is no big difference between them but the title is normally written before the subject and has and use a slightly bigger size or is emphasized in another way. @@ -202,7 +181,7 @@ Thus, I came to the conclusion ... \stopletter \stoptyping -The author prefer to set the values for the addressee not with \type {\startletter} but with \type {\setupletter} but this is just a matter of style and you could select what fits best to your own working style. +The author prefer to set the values for the addressee not with \type{\startletter} but with \type{\setupletter} but this is just a matter of style and you could select what fits best to your own working style. \startbuffer[interface:sender] @@ -224,7 +203,7 @@ The author prefer to set the values for the addressee not with \type {\startlett It is not often enough to have just the addressee information on the letter, you're looking also for way to put the {\em name} and {\em address} for the sender into the header. -If you have wondered why the author hasn't just used {\em name} and {\em address} as keys for the addressee values you will now find the solution. To make the system consistent to set the values for addressee and the sender both needed key names to prevent confusions which value should use the the simpler and which one a more verbose one both got e prefix to the key to differentiate them, so got addressee information the prefix {\em to} and sender information the prefix {\em from}.%\footnote{The real answer is the author took the names for the new user interface from KOMA-Script and this is where most of the commands have their name from.} +If you have wondered why the author hasn't just used {\em name} and {\em address} as keys for the addressee values you will now find the solution. To make the system consistent to set the values for addressee and the sender both needed key names to prevent confusions which value should use the the simpler and which one a more verbose one both got e prefix to the key to differentiate them, so got addressee information the prefix {\em to} and sender information the prefix {\em from}. The additional input for the example on the left page to the one from the previous examples is: @@ -273,7 +252,7 @@ Our old example from the last section was now extended by a reference line betwe [list={name,phone,fax,date}] \stoptyping -The first \type {\setupletter} set the content for the four fields {\em name}, {\em phone}, {\em fax} and {\em date}. Although the values are set none of them will appear in the output but we have to declare the fields for the reference line first, this is done in the second \type {\setupletter} command with the key {\em list}, the entries will appear in the in the same order as you write them in the list, if one or more of the keys in the list have no values they will still appear in the output but no content is shown. +The first \type{\setupletter} set the content for the four fields {\em name}, {\em phone}, {\em fax} and {\em date}. Although the values are set none of them will appear in the output but we have to declare the fields for the reference line first, this is done in the second \type{\setupletter} command with the key {\em list}, the entries will appear in the in the same order as you write them in the list, if one or more of the keys in the list have no values they will still appear in the output but no content is shown. If you change the content for the {\em list} key in your file the module will show by default the date of the current date at the right side of the reference line, this will normally always happen and you could say the result in the examples of the two preceding sections. diff --git a/Master/texmf-dist/source/context/third/letter/doc/correspondence-letter-layout.tex b/Master/texmf-dist/source/context/third/letter/doc/correspondence-letter-layout.tex index d7c8b668623..e71a1a3d807 100644 --- a/Master/texmf-dist/source/context/third/letter/doc/correspondence-letter-layout.tex +++ b/Master/texmf-dist/source/context/third/letter/doc/correspondence-letter-layout.tex @@ -94,6 +94,23 @@ The position and layout of the layers can be changed with the \type {\setuplette \setup[setupletterlayer:option] +\subsubject{State value} + +\starttabulate +\HL +\NC start \NC show layer on the first page \NC\NR +\NC stop \NC disable layer \NC\NR +\NC first \NC see \mono{start} \NC\NR +\NC next \NC show layer on the second and following pages \NC\NR +\NC left \NC show layer on left pages \NC\NR +\NC right \NC show layer on right pages \NC\NR +\NC leftpage \NC see \mono{left} \NC\NR +\NC rightpage \NC see \mono{right} \NC\NR +\NC page \NC use global pagenumbering for left/right pages \NC\NR +\NC subpage \NC use local pagenumbering for left/right pages \NC\NR +\HL +\stoptabulate + \start \definecolor[fakerulecolor][darkgray] diff --git a/Master/texmf-dist/tex/context/third/letter/base/t-correspondence.mkii b/Master/texmf-dist/tex/context/third/letter/base/t-correspondence.mkii index 2613e848d47..05e999bb1f9 100644 --- a/Master/texmf-dist/tex/context/third/letter/base/t-correspondence.mkii +++ b/Master/texmf-dist/tex/context/third/letter/base/t-correspondence.mkii @@ -1,6 +1,6 @@ %D \module %D [ file=t-correspondence, -%D version=2010.02.28, +%D version=2010.04.04, %D title=\CONTEXT\ User Module, %D subtitle=Correspondence, %D author=Wolfgang Schuster, @@ -432,12 +432,18 @@ \def\definecorrespondenceelement{\dotripleargument\dodefinecorrespondenceelement } \def\resetcorrespondenceelement {\dotripleargument\doresetcorrespondenceelement } -\def\copycorrespondenceelement {\doquadrupleargument\docopycorrespondenceelement} +\def\copycorrespondenceelement {\doquintupleempty\docopycorrespondenceelement } \def\correspondenceelement {\dotripleargument\docorrespondenceelement } \def\dodefinecorrespondenceelement[#1][#2][#3]#4{\setvalue{#1:#2:#3}{#4}} \def\doresetcorrespondenceelement [#1][#2][#3]{\resetvalue{#1:#2:#3}} -\def\docopycorrespondenceelement[#1][#2][#3][#4]{\copycsname#1:#2:#3\endcsname\csname#1:#2:#4\endcsname} + +\def\docopycorrespondenceelement[#1][#2][#3][#4][#5]% + {\iffifthargument + \copycsname#1:#2:#3\endcsname\csname#1:#4:#5\endcsname + \else + \copycsname#1:#2:#3\endcsname\csname#1:#2:#4\endcsname + \fi} \def\docorrespondenceelement[#1][#2][#3]% {\edef\currentcorrespondenceelement{#2}% diff --git a/Master/texmf-dist/tex/context/third/letter/base/t-correspondence.mkiv b/Master/texmf-dist/tex/context/third/letter/base/t-correspondence.mkiv index 14d86734f2e..a228b5088ca 100644 --- a/Master/texmf-dist/tex/context/third/letter/base/t-correspondence.mkiv +++ b/Master/texmf-dist/tex/context/third/letter/base/t-correspondence.mkiv @@ -1,6 +1,6 @@ %D \module %D [ file=t-correspondence, -%D version=2010.02.28, +%D version=2010.04.04, %D title=\CONTEXT\ User Module, %D subtitle=Correspondence, %D author=Wolfgang Schuster, @@ -37,16 +37,6 @@ %D Check ConTeXt version -\ifx\forcequitjob\undefined % copied from core-job, needed for older installations - - \def\forcequitjob#1% - {\writestatus\m!systems{forcing quit: #1}% - \batchmode - \dorecurse\textlevel{\stoptext} - \normalend} - -\fi - \doifolderversionelse\contextversion{\currentmoduleparameter\c!contextversion} {\showmessage\m!correspondence{5}{\currentmoduleparameter\c!contextversion}\forcequitjob\v!correspondence} \donothing @@ -475,15 +465,21 @@ \def\definecorrespondenceelement{\dotripleargument\dodefinecorrespondenceelement } \def\resetcorrespondenceelement {\dotripleargument\doresetcorrespondenceelement } -\def\copycorrespondenceelement {\doquadrupleargument\docopycorrespondenceelement} +\def\copycorrespondenceelement {\doquintupleempty\docopycorrespondenceelement } \def\correspondenceelement {\dotripleargument\docorrespondenceelement } \def\dodefinecorrespondenceelement[#1][#2][#3]#4{\setvalue{#1:#2:#3}{#4}} \def\doresetcorrespondenceelement [#1][#2][#3]{\resetvalue{#1:#2:#3}} -\def\docopycorrespondenceelement[#1][#2][#3][#4]{\copycsname#1:#2:#3\endcsname\csname#1:#2:#4\endcsname} + +\def\docopycorrespondenceelement[#1][#2][#3][#4][#5]% + {\iffifthargument + \copycsname#1:#2:#3\endcsname\csname#1:#4:#5\endcsname + \else + \copycsname#1:#2:#3\endcsname\csname#1:#2:#4\endcsname + \fi} \def\docorrespondenceelement[#1][#2][#3]% - {\edef\currentcorrespondenceelement{#2}% + {\ifdefined\currentcorrespondenceelement\else\edef\currentcorrespondenceelement{#2}\fi \csname#1:#2:#3\endcsname} \def\registercorrespondencefile#1% @@ -505,7 +501,7 @@ correspondence.files = { name = "t-correspondence.tex", path = "tex/context/third/letter/base/", type = "base", - version = "2010.02.28", + version = "2010.04.04", description = "Core module" } , { @@ -527,7 +523,7 @@ correspondence.files = { name = "default.nli", path = "tex/context/third/letter/interface/", type = "interface", - version = "2010.02.28", + version = "2010.04.04", description = "Default letter interface" } , @@ -598,14 +594,14 @@ correspondence.files = { name = "dina.nls", path = "tex/context/third/letter/style/", type = "style", - version = "2007.02.11", + version = "2010.03.02", description = "German style DIN 676 A" } , { name = "dinb.nls", path = "tex/context/third/letter/style/", type = "style", - version = "2009.10.07", + version = "2010.03.02", description = "German style DIN 676 B" } , { @@ -647,7 +643,7 @@ correspondence.files = { name = "default.nls", path = "tex/context/third/letter/style/", type = "style", - version = "2010.02.28", + version = "2010.03.02", description = "Basic style" } , { @@ -724,14 +720,14 @@ correspondence.files = { name = "classic.nrs", path = "tex/context/third/letter/style/", type = "style", - version = "2009.03.31", + version = "2010.03.02", description = "modercv classic style" } , { name = "casual.nrs", path = "tex/context/third/letter/style/", type = "style", - version = "2009.03.31", + version = "2010.03.02", description = "modercv casual style" } , { diff --git a/Master/texmf-dist/tex/context/third/letter/base/t-correspondence.tex b/Master/texmf-dist/tex/context/third/letter/base/t-correspondence.tex index 0bfa3c891bf..a8036179235 100644 --- a/Master/texmf-dist/tex/context/third/letter/base/t-correspondence.tex +++ b/Master/texmf-dist/tex/context/third/letter/base/t-correspondence.tex @@ -1,6 +1,6 @@ %D \module %D [ file=t-correspondence, -%D version=2010.02.28, +%D version=2010.04.04, %D title=\CONTEXT\ User Module, %D subtitle=Correspondence, %D author=Wolfgang Schuster, diff --git a/Master/texmf-dist/tex/context/third/letter/interface/default.nli b/Master/texmf-dist/tex/context/third/letter/interface/default.nli index f514df5f93c..2b3e7639982 100644 --- a/Master/texmf-dist/tex/context/third/letter/interface/default.nli +++ b/Master/texmf-dist/tex/context/third/letter/interface/default.nli @@ -1,6 +1,6 @@ %D \module %D [ file=default, -%D version=2010.02.28, +%D version=2010.04.04, %D title=\CONTEXT\ Letter Interface, %D subtitle=Default Interface, %D author=Wolfgang Schuster, @@ -189,7 +189,7 @@ \stopsetups -%D Alternative e, nearly the same as a but you could control the width of the +%D Alternative e, nearly the same as a but you can control the width of the %D fields with the width key for \tex{setupletter}. \long\def\doformatreferenceliste#1% @@ -249,6 +249,7 @@ %D \tex{setupletter}. \newtoks\letter!local!commands +\newtoks\letter!local!setups \chardef\letterenvironmentmode\zerocount @@ -262,12 +263,14 @@ \long\def\dostartcontentletter[#1][#2]#3\stopletter {\ifsecondargument \getparameters[\????ld][#1]% + \letter!local!setups{#1}% \doifundefinedelse{\????ld\????ld#2} {\setvalue{\????ld\c!toaddress}{#2}} {\setvalue{\????ld\c!toaddress}{\getvalue{\????ld\????ld#2}}}% \else\iffirstargument \doifassignmentelse{#1} - {\getparameters[\????ld][#1]} + {\getparameters[\????ld][#1]% + \letter!local!setups{#1}} {\doifundefinedelse{\????ld\????ld#1} {\setvalue{\????ld\c!toaddress}{#1}} {\setvalue{\????ld\c!toaddress}{\getvalue{\????ld\????ld#1}}}}% @@ -284,18 +287,29 @@ \endgroup} \ifsecondargument \getparameters[\????ld][#1]% + \letter!local!setups{#1}% \doifundefinedelse{\????ld\????ld#2} {\setvalue{\????ld\c!toaddress}{#2}} {\setvalue{\????ld\c!toaddress}{\getvalue{\????ld\????ld#2}}}% \else\iffirstargument \doifassignmentelse{#1} - {\getparameters[\????ld][#1]} + {\getparameters[\????ld][#1]% + \letter!local!setups{#1}} {\doifundefinedelse{\????ld\????ld#1} {\setvalue{\????ld\c!toaddress}{#1}} {\setvalue{\????ld\c!toaddress}{\getvalue{\????ld\????ld#1}}}}% \fi\fi \dostartbuffer[lettercontent][startletter][stopletter]} +\def\processlettersetups#1#2% + {\ifcsname\????ld:#1:\v!setups\endcsname + \appendtocommalist{#1}\letter!list!descriptions + \fi} + +\letvalueempty{\????ld:\c!postscript:\v!setups} +\letvalueempty{\????ld:\c!copy :\v!setups} +\letvalueempty{\????ld:\c!enclosure :\v!setups} + \def\processlettervalues {\globalletempty\letter!list!descriptions \global\letter!local!commands\emptytoks @@ -305,6 +319,7 @@ \def\cc ##1{\doglobal\appendtoks\setvalue{\????ld\c!copy }{##1}\to\letter!local!commands\doglobal\appendtocommalist\c!copy \letter!list!descriptions}% \def\encl ##1{\doglobal\appendtoks\setvalue{\????ld\c!enclosure }{##1}\to\letter!local!commands\doglobal\appendtocommalist\c!enclosure \letter!list!descriptions}% \setbox\scratchbox\vbox{\getbuffer[lettercontent]}% + \doifmode{mkiv}{\processassignmentcommand[\dotoks\letter!local!setups]\processlettersetups}% only available in mkiv \flushtoks\letter!local!commands} \def\gobblelettervalues @@ -362,9 +377,9 @@ \scratchdimen\dimexpr\letterstylevalue\v!head\c!rulewidth-\wd\scratchbox\relax} {\scratchdimen\letterstylevalue\v!head\c!rulewidth}% \vskip-.5\lineheight\blackrule - [width=\scratchdimen, - height=\letterstylevalue\v!head\c!rulethickness, - color=\letterstylevalue\v!head\c!rulecolor]% + [\c!width=\scratchdimen, + \c!height=\letterstylevalue\v!head\c!rulethickness, + \c!color=\letterstylevalue\v!head\c!rulecolor]% \fi \dostopattributes \\ @@ -381,9 +396,9 @@ \scratchdimen\letterstylevalue\v!head\c!rulewidth \fi \vskip-.5\lineheight\blackrule - [width=\scratchdimen, - height=\letterstylevalue\v!head\c!rulethickness, - color=\letterstylevalue\v!head\c!rulecolor]% + [\c!width=\scratchdimen, + \c!height=\letterstylevalue\v!head\c!rulethickness, + \c!color=\letterstylevalue\v!head\c!rulecolor]% \fi \dostopattributes}% \doiflettervalue\c!fromlogo{\llap{\lettervalue\c!fromlogo}}}}% @@ -401,9 +416,9 @@ \scratchdimen\letterstylevalue\v!head\c!rulewidth \fi \vskip-.5\lineheight\blackrule - [width=\scratchdimen, - height=\letterstylevalue\v!head\c!rulethickness, - color=\letterstylevalue\v!head\c!rulecolor]% + [\c!width=\scratchdimen, + \c!height=\letterstylevalue\v!head\c!rulethickness, + \c!color=\letterstylevalue\v!head\c!rulecolor]% \fi \dostopattributes \\ @@ -420,9 +435,9 @@ \scratchdimen\letterstylevalue\v!head\c!rulewidth \fi \vskip-.5\lineheight\blackrule - [width=\scratchdimen, - height=\letterstylevalue\v!head\c!rulethickness, - color=\letterstylevalue\v!head\c!rulecolor]% + [\c!width=\scratchdimen, + \c!height=\letterstylevalue\v!head\c!rulethickness, + \c!color=\letterstylevalue\v!head\c!rulecolor]% \fi \dostopattributes}}} @@ -443,9 +458,9 @@ {\scratchdimen\letterstylevalue\v!head\c!rulewidth}% \fi \vskip-.5\lineheight\blackrule - [width=\scratchdimen, - height=\letterstylevalue\v!head\c!rulethickness, - color=\letterstylevalue\v!head\c!rulecolor]% + [\c!width=\scratchdimen, + \c!height=\letterstylevalue\v!head\c!rulethickness, + \c!color=\letterstylevalue\v!head\c!rulecolor]% \fi \dostopattributes \\ @@ -462,15 +477,15 @@ \scratchdimen\letterstylevalue\v!head\c!rulewidth \fi \vskip-.5\lineheight\blackrule - [width=\scratchdimen, - height=\letterstylevalue\v!head\c!rulethickness, - color=\letterstylevalue\v!head\c!rulecolor]% + [\c!width=\scratchdimen, + \c!height=\letterstylevalue\v!head\c!rulethickness, + \c!color=\letterstylevalue\v!head\c!rulecolor]% \fi \dostopattributes}}} \startsetups[\v!letter:\v!head] \def\\{\letterstylevalue\v!head\c!separator} -\executeifdefined{\v!letter:\v!head:\@@@@lsheadalternative}{\letterelement[\v!head][\v!a]} +\executeifdefined{\v!letter:\v!head:\@@@@lsheadalternative}{\getvalue{\v!letter:\v!head:\v!a}} \stopsetups \startsetups[\v!letter:\v!foot] @@ -525,14 +540,14 @@ %D If you hace problem to put all information in the limited space you could %D try to reduce the font size or reduce the interlinespace in the field. -\presetlocalframed[\????ls\v!dispatch] +\presetlocalframed[\????ls\v!dispatch ] \presetlocalframed[\????ls\v!addressee] \startsetups[\v!letter:\v!place:\v!dispatch] \localframed [\????ls\v!dispatch] - {\doadaptleftskip {\letterstylevalue\v!dispatch\c!leftmargin}% + {\doadaptleftskip {\letterstylevalue\v!dispatch\c!leftmargin }% \doadaptrightskip{\letterstylevalue\v!dispatch\c!rightmargin}% \doattributes{\????ls\v!dispatch}\c!style\c!color{\directsetup{\v!letter:\v!address:\v!dispatch}}} @@ -542,7 +557,7 @@ \localframed [\????ls\v!addressee] - {\doadaptleftskip {\letterstylevalue\v!addressee\c!leftmargin}% + {\doadaptleftskip {\letterstylevalue\v!addressee\c!leftmargin }% \doadaptrightskip{\letterstylevalue\v!addressee\c!rightmargin}% \doattributes{\????ls\v!addressee}\c!style\c!color{\directsetup{\v!letter:\v!address:\v!content}}} @@ -554,7 +569,7 @@ \startsetups[\v!letter:\v!address] \offinterlineskip\endgraf -\executeifdefined{\v!letter:\v!address:\@@@@lsaddressalternative}{\letterelement[\v!address][\v!a]}% +\executeifdefined{\v!letter:\v!address:\@@@@lsaddressalternative}{\getvalue{\v!letter:\v!address:\v!a}} \stopsetups \startsetups[\v!letter:\v!address:\v!dispatch] @@ -575,7 +590,7 @@ %D a not defined alternative the definition a is choosen. \startsetups[\v!letter:\v!reference] -\executeifdefined{\v!letter:\v!reference:\@@@@lsreferencealternative}{\letterelement[\v!reference][\v!a]} +\executeifdefined{\v!letter:\v!reference:\@@@@lsreferencealternative}{\getvalue{\v!letter:\v!reference:\v!a}} \stopsetups \resetletterelement[\v!location][\v!a] @@ -586,7 +601,7 @@ \lettervalue\c!date} \startsetups[\v!letter:\v!location] -\executeifdefined{\v!letter:\v!location:\@@@@lslocationalternative}{\letterelement[\v!location][\v!a]} +\executeifdefined{\v!letter:\v!location:\@@@@lslocationalternative}{\getvalue{\v!letter:\v!location:\v!a}} \stopsetups \startsetups[\v!letter:\v!title] @@ -613,7 +628,7 @@ \letterelement[\v!opening][\v!a]} \startsetups[\v!letter:\v!opening] -\executeifdefined{\v!letter:\v!opening:\@@@@lsopeningalternative}{\letterelement[\v!opening][\v!a]} +\executeifdefined{\v!letter:\v!opening:\@@@@lsopeningalternative}{\getvalue{\v!letter:\v!opening:\v!a}} \stopsetups \startsetups[\v!letter:\v!content] @@ -647,7 +662,7 @@ \startsetups[\v!letter:\v!closing] \def\\{\letterstylevalue\v!closing\c!separator} -\executeifdefined{\v!letter:\v!closing:\@@@@lsclosingalternative}{\letterelement[\v!closing][\v!a]} +\executeifdefined{\v!letter:\v!closing:\@@@@lsclosingalternative}{\getvalue{\v!letter:\v!closing:\v!a}} \stopsetups \startsetups[\v!letter:\v!appendices] @@ -689,7 +704,7 @@ \startsetups[\v!letter:\v!backaddress] \def\\{\letterstylevalue\c!backaddress\c!separator} -\executeifdefined{\v!letter:\v!backaddress:\@@@@lsbackaddressalternative}{\letterelement[\v!backaddress][\v!no]} +\executeifdefined{\v!letter:\v!backaddress:\@@@@lsbackaddressalternative}{\getvalue{\v!letter:\v!backaddress:\v!no}} \stopsetups %D To prevent a pagebreak between the last line of the text and -- cgit v1.2.3