Re: [NTG-context] imposition with some rotated pages

2017-08-01 Thread Pablo Rodriguez
On 08/02/2017 07:11 AM, Rudolf Bahr wrote:
> On Sun, Jul 30, 2017 at 08:55:56PM +0200, Pablo Rodriguez wrote:
>>
>> The rotated pages in the source PDF document are a problem here.
>>
>> Is there any way to have rotation for some pages in the source document
>> to get the right imposition?
> 
> With "pdftk" you can rotate some or all pages of a pdf-document.
> But perhaps this isn't what you want.

Many thanks for your reply, Rudolf.

I would avoid using pdftk, because I need a Windows computer for that
(problems with Java).

Besides being an extra step, I think imposition should rotate already
rotated pages (only to enable the right imposition).

Many thanks for your advice,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] imposition with some rotated pages

2017-08-01 Thread Rudolf Bahr
On Sun, Jul 30, 2017 at 08:55:56PM +0200, Pablo Rodriguez wrote:
> 
> The rotated pages in the source PDF document are a problem here.
> 
> Is there any way to have rotation for some pages in the source document
> to get the right imposition?

With "pdftk" you can rotate some or all pages of a pdf-document.
But perhaps this isn't what you want.

Rudolf

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] (again) \typebufferinline for XML inline code

2017-08-01 Thread Pablo Rodriguez
On 08/01/2017 04:27 PM, Hans Hagen wrote:
> On 7/31/2017 7:16 PM, Pablo Rodriguez wrote:
>> [...]
>> Would it be possible to have a new \typebufferinline that behaves such
>> as \type above (and has the same options in \setuptype)?
>>
>> The most important part isn’t the suppression of line breaks inside, but
>> avoiding the addition of line breaks after and before the typed buffer.
>>
>> I have been reading buff-ver.mkiv, but I’m afraid I cannot contribute
>> such a patch.
>>
>> This is essential to have \xmlprettyprintinline and
>> \xmlprettyprintinlinetext in order to handle inline code in XML.
> 
> \startbuffer[foo]
> foo \bar{crap}
> \stopbuffer
> 
> \starttext
>  \typebuffer[foo]
> \stoptext

Many thanks for your reply, Hans.

I’m afraid this isn’t what I was looking for.

As shown in the following sample, I need \xmlprettyprinttext for code
inside a paragraph, not building its own paragraph.

\startbuffer[demo]

I can use colored code blocks:
\starttext
\ConTeXt\ is awesome!
\stoptext
But I’m afraid I cannot use \xmlprettyprinttext inline.

\stopbuffer

\startxmlsetups xml:initialize
 \xmlsetsetup{#1}{doc|p|code}{xml:*}
 \xmlsetsetup{#1}{pre/code}{xml:pre:code}
\stopxmlsetups

\xmlregistersetup{xml:initialize}

\startxmlsetups xml:doc
 \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:p
 \startpar\xmlflush{#1}\stoppar
\stopxmlsetups

\startxmlsetups xml:pre:code
 \xmlprettyprinttext{#1}{tex}
\stopxmlsetups

\startxmlsetups xml:code
\begingroup\xmlprettyprinttext{#1}{tex}\endgroup
\stopxmlsetups

\starttext

\subject{Dealing with XML}

 \xmlprocessbuffer{main}{demo}{}

\subject{In standard \ConTeXt}

\setuptyping[option=TEX]
\setuptype[option=TEX]

I can use colored code blocks:

\starttyping
\starttext
\ConTeXt\ is awesome!
\stoptext
\stoptyping

But I'm afraid I cannot use \type{\xmlprettyprinttext} inline.
\stoptext

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] hvdm-plc module

2017-08-01 Thread Procházka Lukáš Ing .

Hello,

just to check: is


https://www.google.cz/search?q=hvdm-plc+context=utf-8=utf-8=firefox-b-ab_rd=cr=4o-AWfa3Fa6E8QeZmYH4Bw

available for download?

I'd like to test/use the hvdm-plc module (probably here: 
hvdmeer.myqnapcloud.com/pubs),
which is mentioned in one of the MAPS magazine;
but I need to download the module (and the manual) first...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] (again) \typebufferinline for XML inline code

2017-08-01 Thread Hans Hagen

On 7/31/2017 7:16 PM, Pablo Rodriguez wrote:

Hans,

sorry for asking for this again, but I really need it to write some
documents about ConTeXt.

I have the following sample:

 \startTEXpage[offset=1em]
 only \type{a

 b

 c} one line
 \stopTEXpage
 \stoptext

\type

Would it be possible to have a new \typebufferinline that behaves such
as \type above (and has the same options in \setuptype)?

The most important part isn’t the suppression of line breaks inside, but
avoiding the addition of line breaks after and before the typed buffer.

I have been reading buff-ver.mkiv, but I’m afraid I cannot contribute
such a patch.

This is essential to have \xmlprettyprintinline and
\xmlprettyprintinlinetext in order to handle inline code in XML.


\startbuffer[foo]
foo \bar{crap}
\stopbuffer

\starttext
\typebuffer[foo]
\stoptext


--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-01 Thread Hans Hagen

On 7/31/2017 9:28 PM, Gerion Entrup wrote:

Am Montag, 31. Juli 2017, 04:23:16 CEST schrieb Gerion Entrup:

Hi,

I need your help again. I've a bibliography and some entries references to
websites. Unfortunately the URL is not always rendered and the name ist always
parsed as name of a person, not from an organisation etc.

What I want to achieve is to use the standard aps style, but with additionally
the following two rules:
1. The name is always rendered without abbrevations (I guess, this is
authorconversion=normal).
2. If an URL is given, it is always rendered.

My input is a bib-file. Here is a minimal example:

input.bib
```
@misc{objective-c,
 author = "Apple Inc.",
 note = "Online; accessed at 31-July-2017",
 title = "About Objective-C",
 url = 
"https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html;,
 year = "2014"
}
```

test.tex
```
\usebtxdataset[default][input.bib]
\usebtxdefinitions[aps]
\setupbtx[default:cite][alternative=num]
\setupbtx[default:list][authorconversion=normal]

\starttext
According to Apple Inc., Objective-C is the main programming language, when 
writing software for MacOS~\cite[objective-c].

\placelistofpublications
\stoptext
```

I've tried to understand the manual, yout can see some of my attempts in the
minimal example. But I don't get really far.

Can you give me a hint?


I have "fixed" this with directly modifying the publ-imp-aps.mkvi. I guess,
this is the worst way to achive this thing, but I don't know a better one.

Here is the patch, if someone is interested.

Gerion

--- publ-imp-aps.mkvi.original  2017-07-31 21:23:14.736856430 +0200
+++ publ-imp-aps.mkvi   2017-07-31 21:24:46.860462851 +0200
@@ -58,7 +58,7 @@
  \definebtx
[aps:\s!list]
[aps]
-  [\c!authorconversion=normalshort]
+  [\c!authorconversion=normal]
  
  \definebtx

[aps:\s!list:author]
@@ -1117,6 +1117,12 @@
  
  \startsetups btx:aps:list:misc

  \fastsetup{btx:aps:list:electronic}
+\btxdoif {url} {
+\btxspace
+\btxleftparenthesis
+\goto{\hyphenatedurl{\btxflush{url}}}[url(\btxflush{url})]
+\btxrightparenthesis
+}
  % Note that organization is an "ignored" field.
  \stopsetups


just load the aps style and then in your own style put the overloads 
(you can then use \setupbtx)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread r . ermers
Thanks Wolfgang and Thomas,

The solutions of both of you function!

Thank you!

Robert


> Op 1 aug. 2017, om 13:17 heeft Schmitz Thomas A.  
> het volgende geschreven:
> 
> 
>> On 1. Aug 2017, at 12:15, r.erm...@hccnet.nl wrote:
>> 
>> While understanding what it means, I guess this might imply that it is 
>> difficult (?) or impossible (?) to correctly process files such as the knuth 
>> text and for that matter any other letter text that contains regular Context 
>> commands.
>> 
>> Nevertheless, for the moment this problem remains unsolved.
>> 
>> What would you advise as the next step?
>> 
>> Should the letter be somehow set-up outside xml setups rather than inside?
>> Should the letter texts (and a specific knuth sample text) be reformatted as 
>> xml?
> 
> So: you want to import the letter texts from an external file. Easiest 
> solution: instead of simply \input knuth, try this:
> 
> {\pushcatcodetable
> \catcodetable\ctxcatcodes\input knuth
> \popcatcodetable}
> 
> As you can see, changing the catcode regime processes the file correctly. 
> “Expansion” means something different in TeX speak.
> 
> Other possibilities: write your letter body in xml, or write the letters in 
> buffers and use \processTEXbuffer.
> 
> Thomas
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread Schmitz Thomas A.

> On 1. Aug 2017, at 12:15, r.erm...@hccnet.nl wrote:
> 
> While understanding what it means, I guess this might imply that it is 
> difficult (?) or impossible (?) to correctly process files such as the knuth 
> text and for that matter any other letter text that contains regular Context 
> commands.
> 
> Nevertheless, for the moment this problem remains unsolved.
> 
> What would you advise as the next step?
> 
> Should the letter be somehow set-up outside xml setups rather than inside?
> Should the letter texts (and a specific knuth sample text) be reformatted as 
> xml?

So: you want to import the letter texts from an external file. Easiest 
solution: instead of simply \input knuth, try this:

{\pushcatcodetable
 \catcodetable\ctxcatcodes\input knuth
 \popcatcodetable}

As you can see, changing the catcode regime processes the file correctly. 
“Expansion” means something different in TeX speak.

Other possibilities: write your letter body in xml, or write the letters in 
buffers and use \processTEXbuffer.

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] About \setupbackgrounds

2017-08-01 Thread Fabrice Couvreur
Hi Aditya,
Neither command responds to what I'm trying to do. I will try to be clearer. If
we look at the letter J, it touches the bottom line of the frame. I would
like the space to be bigger between the header and the bottom line.
Thank you
Fabrice

2017-07-31 21:30 GMT+02:00 Aditya Mahajan :

> On Mon, 31 Jul 2017, Fabrice Couvreur wrote:
>
> https://tex.stackexchange.com/questions/84425/fancyhdr-equiv
>> alent-in-context
>>
>> Hello,
>> I considered the solution proposed by Aditya. How to have a larger space
>> between the title and the bottomframe ?
>>
>
> What do you mean by "title"? If you mean the space between the bottom rule
> of the header and where the text starts in the page, you can change that
> using
>
> \setuplayout
>[
>  ...,
>  headerdistance=...,
>  
>]
>
> If you mean the space between the header and the bottom frame of the
> header, you can play around with
>
> \defineframed
> [headerframed]
> [
>   ...,
>   bottomoffset=...,
>   ...,
> ]
>
>
> Aditya
> 
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread r . ermers
Your suggestion with foregroundstyle and foregroundcolor works. Thank you!

\setlayer[AddressBg]
  {\framed[width=55mm,height=30mm,
  align=right,background=color,
  backgroundcolor=lightgray,
foregroundcolor=red,foregroundstyle=\ss\tfa]{\xmlall{#1}{/address}}}


My question (my ’need’) was quite simple: how I can have a workflow in which I 
can produce serial letters based upon contextmkiv (as I did in mkii).

I encountered a number of difficulties (in steps):

1. I first noticed that I could not add a letter text, either in the file 
itself, or by means of \input.

At that point the sample knuth file was not processed, nor were my own external 
letter files.

I did write that I use external letter files, but perhaps failed to mention 
that my texts contain to my mind regular Context commands (like {\bf bold} and 
\startitemize … \stopitemize). I use these commands to improve the look of my 
letter.

2. The import problem itself was caused by a wrongful position of the 
\starttext … \stoptext commands. This problem was solved with help of Thomas, 
Wolfgang and Pablo.

3. A second problem I signalled was to have the addres moved to the desired 
place. I could solve this problem by reference to the contextgarden website. 
Thomas helped me finetune the style instruction.

4. Only when the input files were processed, it became obvious that these files 
(including the knuth file) in a general sense are not rendered correctly.

The knuth sample document (\input knuth) contains only one single command 
(\TeX\), which is not expanded. For this reason, my sample letters, which 
contain regular codes, are not processed correctly either. Pablo Rodriguez 
suggested that the problem was that for some reason there is only one 
‘expansion’ level.

Thomas, in his last mail, now writes that according to him within the xml 
setups the ‘catcodes' are changed, and, as a result, the backslash is 
interpreted as a normal character rather than as introducing a command.

While understanding what it means, I guess this might imply that it is 
difficult (?) or impossible (?) to correctly process files such as the knuth 
text and for that matter any other letter text that contains regular Context 
commands.

Nevertheless, for the moment this problem remains unsolved.

What would you advise as the next step?

Should the letter be somehow set-up outside xml setups rather than inside?
Should the letter texts (and a specific knuth sample text) be reformatted as 
xml?

So in sum, I sincerely do not think I kept anyone guessing about my needs. The 
technical problems presented themselves one by one, step by step. Yet if I did, 
I apologize.

Kind regards,

Robert


> Op 1 aug. 2017, om 10:46 heeft Schmitz Thomas A.  
> het volgende geschreven:
> 
>> However, the color and style instructions (\ss\tfa) have no effect. I tried 
>> to solve that, as a first step, by putting \ss before the \xmlall 
>> instruction:
>> 
>> \startxmlsetups xlm:contact
>> \setlayer[AddressBg]  {\framed[width=55mm,height=30mm,  
>> align=right,background=color,
>> backgroundcolor=lightgray]{\ss\xmlall{#1}{/address}}}
>> \strut
>> ...
>> \stopxmlsetups
>> 
>> This works (see pdf), but there are probably other and better ways.
>> 
> Have a look at the framed/setupframed command; they have foregroundstyle and 
> foregroundcolor keys; that would be the most idiomatic way to set the style.
> 
> 
> 
>> Another persisting problem is that the commands are still not ‘expanded’ 
>> (see Pablo’s remarks). According to Pablo for some reason there is only one 
>> expansion level.
>> 
>> This means that after an \input command, all other commands are not expanded 
>> (see pdf).
>> 
>> This also applies to your suggestions (see pdf brieven2mkiv5.pdf): in the 
>> Knuth sample text the only command \TeX\, is not expanded either.
> 
> You’re working within xml setups, which means that the catcodes are not the 
> same as in TeX, which means that the backslash is just a normal character. 
> The question is: why would you need TeX commands from an external file? Is 
> this where your letter text comes from? You keep us guessing and are not 
> describing what your needs are.
> 
> Thomas
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : 

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread Schmitz Thomas A.
> However, the color and style instructions (\ss\tfa) have no effect. I tried 
> to solve that, as a first step, by putting \ss before the \xmlall instruction:
> 
> \startxmlsetups xlm:contact
> \setlayer[AddressBg]  {\framed[width=55mm,height=30mm,  
> align=right,background=color,
>  backgroundcolor=lightgray]{\ss\xmlall{#1}{/address}}}
> \strut
> ...
> \stopxmlsetups
> 
> This works (see pdf), but there are probably other and better ways.
> 
Have a look at the framed/setupframed command; they have foregroundstyle and 
foregroundcolor keys; that would be the most idiomatic way to set the style.



> Another persisting problem is that the commands are still not ‘expanded’ (see 
> Pablo’s remarks). According to Pablo for some reason there is only one 
> expansion level.
> 
> This means that after an \input command, all other commands are not expanded 
> (see pdf).
> 
> This also applies to your suggestions (see pdf brieven2mkiv5.pdf): in the 
> Knuth sample text the only command \TeX\, is not expanded either.

You’re working within xml setups, which means that the catcodes are not the 
same as in TeX, which means that the backslash is just a normal character. The 
question is: why would you need TeX commands from an external file? Is this 
where your letter text comes from? You keep us guessing and are not describing 
what your needs are.

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread r . ermers
Hi Thomas,

Thanks for your new suggestions.

As a matter of fact, I yesterday found the following suggestion 
(http://wiki.contextgarden.net/Layers):

\definelayer[AddressBg] [location={right,top},   y=6cm,  x=12cm,  color=red,   
style=\ss\tfa].

I used this in the sample suggested by you yesterday. The address actually 
moves to the desired place!

However, the color and style instructions (\ss\tfa) have no effect. I tried to 
solve that, as a first step, by putting \ss before the \xmlall instruction:

\startxmlsetups xlm:contact
\setlayer[AddressBg]  {\framed[width=55mm,height=30mm,  
align=right,background=color,
  backgroundcolor=lightgray]{\ss\xmlall{#1}{/address}}}
\strut
...
\stopxmlsetups

This works (see pdf), but there are probably other and better ways.



brieven2mkiv.pdf
Description: Adobe PDF document


Another persisting problem is that the commands are still not ‘expanded’ (see 
Pablo’s remarks). According to Pablo for some reason there is only one 
expansion level.

This means that after an \input command, all other commands are not expanded 
(see pdf).

This also applies to your suggestions (see pdf brieven2mkiv5.pdf): in the Knuth 
sample text the only command \TeX\, is not expanded either.



brieven2mkiv5.pdf
Description: Adobe PDF document


Regards,

Robert


\startxmlsetups xml:setups
\xmlsetsetup{#1}{contacts|contact|p}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:setups}

\startxmlsetups xml:contacts
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:p
  \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:contact
  
\setlayer[address][x=20mm,y=40mm]{\framed[width=74mm,height=35mm,frame=on,offset=2mm,align=right]{\ignorespaces\xmltext{#1}{/address}}}
  \strut
  \blank [35mm]
  Subject: your life in \xmltext{#1}{/city}
  \blank [2*line]
  Dear \xmltext{#1}{/prefix} \xmltext{#1}{/formalname},
  \blank [line]
%  \input knuth \relax

  This is a {\bf bold} test. \TeX\
  \startitemize
  \item item
  \item item
  \stopitemize

\input brieftekst-test.tex \relax
\par
%this \par is needed, for the last word of the file merges with Kind regards.

  Kind regards
  \blank [line]
  X
  \page
\stopxmlsetups

\setuppagenumbering [state=stop]

\definelayer[address][width=\paperwidth,height=\paperheight]

\setupbackgrounds [page][background={address}]

\starttext
\xmlprocessbuffer{main}{participants}{}

\stoptext




brieftekst-test.tex
Description: Binary data





> Op 31 jul. 2017, om 23:57 heeft Schmitz Thomas A. 
>  het volgende geschreven:
> 
> 
>> On 31. Jul 2017, at 18:58, r.erm...@hccnet.nl wrote:
>> 
>> Would it be wise to perhaps follow the path set out by Thomas? In that case 
>> there should be a way to shift the address.
> 
> What efforts have you made to “shift the address”? Here is one way:
> 
> \startbuffer[participants]
> 
>  
>Hendriks
>Karel
>mr.
>K.
>Arnhem
>
>  Mr. K. Hendriks
>  Grotestraat 5
>  1234 BB Arnhem
>
>1234bb5
>  
>  
>Janssen
>Piet
>P.
>mr.
>Nijmegen
>
> Mr. P. Janssen
> Kortestraat 8
> 1234 AA Nijmegen
>
>1234aa8
>  
> 
> \stopbuffer
> 
> \startxmlsetups xml:setups
> \xmlsetsetup{#1}{contacts|contact|p}{xml:*}
> \stopxmlsetups
> 
> \xmlregistersetup{xml:setups}
> 
> \startxmlsetups xml:contacts
>   \xmlflush{#1}
> \stopxmlsetups
> 
> \startxmlsetups xml:p
>   \xmlflush{#1}\par
> \stopxmlsetups
> 
> \startxmlsetups xml:contact
>   
> \setlayer[address][x=20mm,y=40mm]{\framed[width=74mm,height=35mm,frame=on,offset=2mm,align=right]{\ignorespaces\xmltext{#1}{/address}}}
>   \strut
>   \blank [35mm]
>   Subject: your life in \xmltext{#1}{/city}
>   \blank [2*line]
>   Dear \xmltext{#1}{/prefix} \xmltext{#1}{/formalname},
>   \blank [line]
>   \input knuth \relax
> 
>   Kind regards
>   \blank [line]
>   X
>   \page
> \stopxmlsetups
> 
> \setuppagenumbering [state=stop]
> 
> \definelayer[address][width=\paperwidth,height=\paperheight]
> 
> \setupbackgrounds [page][background={address}]
> 
> \starttext
> \xmlprocessbuffer{main}{participants}{}
> 
> \stoptext
> 
> I still don’t see you trying to learn a new language one step at a time. 
> 
> Thomas
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context