Re: [NTG-context] American-style letters with t-letter?

2008-05-16 Thread Wolfgang Schuster
On Thu, May 15, 2008 at 11:02 PM, David Rogers
[EMAIL PROTECTED] wrote:
 Hi all (but especially Wolfgang Schuster):

 I'd like to use Wolfgang's t-letter module to set up a very basic
 American-style letter. I see (by looking into t-letter.tex) that there
 are at least plans for this to be possible. Is there a little example
 anywhere of how to get started?

 (Really, for my purposes, the basic DIN example as given in lm.pdf is
 pretty good - just wondering what the other possibility looks like.)

Hi David,

I planned to provide a few american letter styles and you saw my
comments in t-letter but I'm interested to know if want the element
structure like normal block, semiblock etc. [1] formats where the
position from every element depends on the last element or if it is
acceptable to write styles where the positions for the insideaddress,
the date and all other elements is fixed [2,page 4] like in my current
styles and only the body text, the subject etc. depends on the page
layout.

This is important to know for me both if have to use two different
systems for both solutions and the first requires more work because
I have to take care to allow you to switch between all styles.

Greetings
Wolfgang

[1] http://www.kcitraining.com/styleguide/letform.html
[2] 
http://www.vericon.de/download/pdf_leseprobe/VK51-Englische_Geschaeftsbriefe-Leseprobe.pdf
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure not found box (mkiv)

2008-05-16 Thread Taco Hoekwater


Peter Rolf wrote:
 Hi,
 
 one problem fixed, the next one is knocking on the door. This must be 
 the definition of a lucky man ;)
 
 Can anybody try the following code? Mhh, no problems on 'context live' 
 (luatex 0.25.2).

This bug (and the stability problem with TRUNK) should be fixed now.

Best wishes,
Taco
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-16 Thread Wolfgang Schuster
On Thu, May 15, 2008 at 9:54 PM, Jelle Huisman [EMAIL PROTECTED] wrote:

 Yes, I know that the xhtml is not very nice (if only I could write my
 own xml...) The situation is that I get this file from a customer and I
 want to avoid having to reformat it (for compatibility reasons). That's
 why I try to make it work, but it seems I'm out of luck here... :-(

 It's not impossible but a pain to achive with MkII,

 It is a pain indeed, I'll try and see if I can reformat the file a bit.
 Thanks for your comments, they were helpful,

You should be switch to MkIV if possible, it is easier to select
the elements and you don't need different commands for normal
div elements as environments or as commands.

Wolfgang
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure not found box (mkiv)

2008-05-16 Thread Peter Rolf
Taco Hoekwater schrieb:
 
 Peter Rolf wrote:
 Hi,

 one problem fixed, the next one is knocking on the door. This must be 
 the definition of a lucky man ;)

 Can anybody try the following code? Mhh, no problems on 'context live' 
 (luatex 0.25.2).
 
 This bug (and the stability problem with TRUNK) should be fixed now.
 
this was fast. thank you taco!
if possible i'll switch back to the trunk version tommorrow (22:00 jst) 
when i get my hands on akira's new windows binaries. :)

best wishes, peter

 Best wishes,
 Taco
 ___
 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://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] missing btex ..etex in mp figure

2008-05-16 Thread Taco Hoekwater


luigi scarso wrote:
 In
 
 \starttext
 \startTEXpage
 \startlua
 metapost.process(metafun,{beginfig(1);,
 a=.7in; b=0.5in;,
 z0=(0,0); z1=(a,0); z2=(0,b);,
 z0=.5[z1,z3]=.5[z2,z4];,
 draw z1..z2..z3..z4..cycle;,
 drawarrow z0..z1;,
 drawarrow z0..z2;,
 label.top(btex $a$ etex, .5[z0,z1]);,
 label.lft(btex $b$ etex, .5[z0,z2]);,
 endfig;})
 \stoplua
 \stopTEXpage
 \stoptext
 
 there are no labels, but I believe that it's wrong.

The MPlib library embedded in luatex does not actually
support btex .. etex blocks.

It is planned to intercept such blocks in the mkiv lua
code, but for now, just use textext().

Best wishes,
Taco

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-16 Thread Jelle Huisman
Wolfgang Schuster wrote:
 You should be switch to MkIV if possible, it is easier to select
 the elements and you don't need different commands for normal
 div elements as environments or as commands.
Problem is that I have to use XeTeX for some special fonts, so I have to 
stay with MkII for this project. (Unless there is a way to mix MkII and 
MkIV that would allow me to use the MkIV xml handling together with the 
MkII/XeTeX back end. I guess that would involve using MkIV (at least for 
the xml bit) but shipping the pages to XeTeX rather then to luaTeX. 
Which is not possible, as far as I know...)

Jelle
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Removing inbreakable whitespace at pagebreaks

2008-05-16 Thread Taco Hoekwater


Wolfgang Schuster wrote:
 Hi,
 
 I try to take care in my letter module to keep at least the last sentence
 in the text the signature together on the same page, this did work but
 I introduced another problem.

Why don't you just put the \blank inside of the macro that typesets
the signature ? Removing stuff is much harder than not outputting it
in the first place.

Best wishes,
Taco
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Keeping a block of text together, without breaking footnotes, etc.

2008-05-16 Thread Taco Hoekwater


Daniel Pittman wrote:
 G'day.
 
 As part of a document I am laying out I have a number of blocks of text
 that I want to keep together on a single page -- either all before a
 page break or all after it.
 
 I can achieve this using a \vbox, but that has the fairly undesirable
 property of also preventing footnotes and, presumably, other ConTeXt
 layout from working as expected.
 
 What is the most effective way to achieve this?

\startframedtext[...]
\stopframedtext

Best wishes,
Taco
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Removing inbreakable whitespace at pagebreaks

2008-05-16 Thread Wolfgang Schuster
On Fri, May 16, 2008 at 12:03 PM, Taco Hoekwater [EMAIL PROTECTED] wrote:


 Wolfgang Schuster wrote:
 Hi,

 I try to take care in my letter module to keep at least the last sentence
 in the text the signature together on the same page, this did work but
 I introduced another problem.

 Why don't you just put the \blank inside of the macro that typesets
 the signature ? Removing stuff is much harder than not outputting it
 in the first place.

I realized this by myself but I'm looking for a solution independant from
the interface and twopassdata eitheir with two runs or analyzing the content
seems to be the only solution.

I could look for if a signature is set but this works on a different point
where I want it to be happen.

Wolfgang
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] some minor problems (mkiv)

2008-05-16 Thread Peter Rolf
hi,

i'm still trying to make my code run with mkiv. here are two minor 
problems. the first one is easy to deal with, but the second one 
currently breaks my testbed.


% engine=luatex
\setupcolors[state=start]

\starttext

\startMPcode
label(no color,origin) withcolor red; % always black
\stopMPcode

\string{\{}

\stoptext


greetings, peter
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-16 Thread Jelle Huisman
Wolfgang Schuster wrote:
 What special fonts or features do you use with XeTeX which are not
 possible with LuaTeX.
I need to support Graphite enabled fonts for the rendering of complex 
non-roman scripts [1], Graphite can currently only be used with XeTeX. 
Anyway, I'll reformat my source file to something more readable in MkII. 
In the meantime I'm still interested in ways to mix MkIV xml-support 
into MkII usage or to output from MkIV to XeTeX.

Jelle

[1] http://scripts.sil.org/RenderingGraphite
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] some minor problems (mkiv)

2008-05-16 Thread Taco Hoekwater


Peter Rolf wrote:
 hi,
 
 i'm still trying to make my code run with mkiv. here are two minor 
 problems. the first one is easy to deal with, but the second one 
 currently breaks my testbed.
 
 
 % engine=luatex
 \setupcolors[state=start]
 
 \starttext
 
 \startMPcode
 label(no color,origin) withcolor red; % always black
 \stopMPcode

Interesting problem, that one. The lack of color is easily explained
because there is an implied textext() around the string., but it is
not that easily solved, I suspect.

 \string{\{}

Side note wrt. the example: don't you want \string\{ instead?

Anyway, the underlying problem is something for Aditya to look at,
maybe. Too many commands are now 'math mode only' because of changes
in char-def.lua.

Best wishes,
Taco
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] some minor problems (mkiv)

2008-05-16 Thread Wolfgang Schuster
On Fri, May 16, 2008 at 1:12 PM, Peter Rolf [EMAIL PROTECTED] wrote:
 hi,

 i'm still trying to make my code run with mkiv. here are two minor
 problems. the first one is easy to deal with, but the second one
 currently breaks my testbed.


 % engine=luatex
 \setupcolors[state=start]

 \starttext

 \startMPcode
 label(no color,origin) withcolor red; % always black
 \stopMPcode

 \string{\{}

\string{

\char`{

\letterleftbrace

\char123

\char7B

 \stoptext


 greetings, peter

Wolfgang
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] some minor problems (mkiv)

2008-05-16 Thread Peter Rolf
Taco Hoekwater schrieb:
 
 Peter Rolf wrote:
 hi,

 i'm still trying to make my code run with mkiv. here are two minor 
 problems. the first one is easy to deal with, but the second one 
 currently breaks my testbed.


 % engine=luatex
 \setupcolors[state=start]

 \starttext

 \startMPcode
 label(no color,origin) withcolor red; % always black
 \stopMPcode
 
 Interesting problem, that one. The lack of color is easily explained
 because there is an implied textext() around the string., but it is
 not that easily solved, I suspect.

i currently use sometxt() instead (was label because of much better 
runtime in mkii). i guess it's one of the last places where i use text 
inside mp, so it doesn't hurt that much. mh, maybe i should extract the 
outlines (it's only one char) instead.

 \string{\{}
 
 Side note wrt. the example: don't you want \string\{ instead?
 
nope. the argument is a formal macro description with parameters in 
braces and brackets. it's part of the testbed for my graphic macros.

 Anyway, the underlying problem is something for Aditya to look at,
 maybe. Too many commands are now 'math mode only' because of changes
 in char-def.lua.

thanks for the detailed answer.

best wishes, peter


 Best wishes,
 Taco
 ___
 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://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] some minor problems (mkiv)

2008-05-16 Thread Peter Rolf
Wolfgang Schuster schrieb:
 On Fri, May 16, 2008 at 1:12 PM, Peter Rolf [EMAIL PROTECTED] wrote:
 hi,

 i'm still trying to make my code run with mkiv. here are two minor
 problems. the first one is easy to deal with, but the second one
 currently breaks my testbed.


 % engine=luatex
 \setupcolors[state=start]

 \starttext

 \startMPcode
 label(no color,origin) withcolor red; % always black
 \stopMPcode

 \string{\{}
 
 \string{
 
 \char`{
 
 \letterleftbrace
 
 \char123
 
 \char7B

thanks wolfgang! but sadly it's not the only argument of \string (my 
example was bad).

best wishes, peter


 \stoptext


 greetings, peter
 
 Wolfgang
 ___
 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://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] American-style letters with t-letter?

2008-05-16 Thread David Rogers
On Fri, May 16, 2008 at 12:12 AM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 On Thu, May 15, 2008 at 11:02 PM, David Rogers
 [EMAIL PROTECTED] wrote:
 Hi all (but especially Wolfgang Schuster):

 I'd like to use Wolfgang's t-letter module to set up a very basic
 American-style letter. I see (by looking into t-letter.tex) that there
 are at least plans for this to be possible. Is there a little example
 anywhere of how to get started?

 (Really, for my purposes, the basic DIN example as given in lm.pdf is
 pretty good - just wondering what the other possibility looks like.)

 Hi David,

 I planned to provide a few american letter styles and you saw my
 comments in t-letter but I'm interested to know if want the element
 structure like normal block, semiblock etc. [1] formats where the
 position from every element depends on the last element or if it is
 acceptable to write styles where the positions for the insideaddress,
 the date and all other elements is fixed [2,page 4] like in my current
 styles and only the body text, the subject etc. depends on the page
 layout.

 This is important to know for me both if have to use two different
 systems for both solutions and the first requires more work because
 I have to take care to allow you to switch between all styles.

Thanks Wolfgang. I don't know the correct answer to this, so I'll wait
for someone who does.

David
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___