[NTG-context] Paragraphs in Layers

2009-04-09 Thread Design Department
Why does the following produce a single line when the layer content produces four lines in normal flow? How are paragraphs and new lines produced in layers? I've tried \par, \endgraf, \crlf and \\ without success. \definelayer[TicketSummary] [x=\backspace, y=\topspace width=4in,

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Wolfgang Schuster
Am 09.04.2009 um 21:40 schrieb Design Department: Why does the following produce a single line when the layer content produces four lines in normal flow? How are paragraphs and new lines produced in layers? Use \setlayerframed. Wolfgang

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Design Department
Just tried the following snippet on the live.contextgarden.net with no joy: The layer content appears on a single line, whether I use \par, \\, \endgraf, \crlf or no line ending at all. \definelayer[TicketSummary] [x=\backspace, y=\topspace width=4in, height=4in, repeat=no]

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Wolfgang Schuster
Am 09.04.2009 um 22:14 schrieb Design Department: Just tried the following snippet on the live.contextgarden.net with no joy: The layer content appears on a single line, whether I use \par, \\, \endgraf, \crlf or no line ending at all. To help you I will explain why your setup did not

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Willi Egger
I do not know what you precisely want to achieve. You need to give dimensions to the framed part of the \setlayerframed. Position the layer with the layer definition. Preset the layer to lefttop and move it with the x and y keys. \definelayer[TicketSummary] [x=\backspace, y=2\topspace,

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Design Department
Thks. I was incorrectly assuming that the dimension properties, especially width, should be set in \definelayer. I'm not clear on the purpose of a separate \definelayer command, unless it's to allow the abstraction of layer offsets from topspace and backspace value, the way I have in this example.

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Wolfgang Schuster
Am 09.04.2009 um 22:54 schrieb Design Department: Thks. I was incorrectly assuming that the dimension properties, especially width, should be set in \definelayer. I'm not clear on the purpose of a separate \definelayer command, unless it's to allow the abstraction of layer offsets from

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread luigi scarso
I have modify this sample \newdimen\currentlayerheight \newdimen\currentlayerwidth \newbox\Content \definelayer[TicketSummary] [x=\backspace, y=\topspace, width=4in, height=4in, repeat=no] \setlayer[TicketSummary][hoffset=.5\backspace, voffset=2.5in]{% \unprotect%

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Wolfgang Schuster
Am 09.04.2009 um 23:44 schrieb luigi scarso: \unprotect% \currentlayerheight=\dimexpr\csname @@llTicketSummaryheight\endcsname \relax% \currentlayerwidth=\dimexpr\csname @@llTicketSummarywidth\endcsname \relax% \protect% why unprotect/protect and why so many '%'?

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread luigi scarso
On Fri, Apr 10, 2009 at 12:04 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 09.04.2009 um 23:44 schrieb luigi scarso: \unprotect% \currentlayerheight=\dimexpr\csname @@llTicketSummaryheight\endcsname\relax% \currentlayerwidth=\dimexpr\csname

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Wolfgang Schuster
Am 10.04.2009 um 00:53 schrieb luigi scarso: and why so many '%'? prevent spurios spaces after \relax? \newdimen checks for the existence of a control sequence the point is that on minimals-beta there is an error, on minimals no , but xpdf says Error: ExtGState 'Tr0' is unknown Error: