ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Composing a header/logo with layers, linebreak issues
@ 2011-03-05 17:39 C.
  2011-03-05 17:45 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: C. @ 2011-03-05 17:39 UTC (permalink / raw)
  To: Context-Mailinglist


[-- Attachment #1.1: Type: text/plain, Size: 162 bytes --]

Hello,

 

I guess this is an easy one.

How do I get the top lines to behave like the second example? Why is the
newline ignored in the top one?

 

-Christian


[-- Attachment #1.2: Type: text/html, Size: 2085 bytes --]

[-- Attachment #2: example.pdf --]
[-- Type: application/pdf, Size: 15033 bytes --]

[-- Attachment #3: example.tex --]
[-- Type: application/octet-stream, Size: 1217 bytes --]

\setuppapersize[A5,landscape][A5,landscape]
\setuplayout[
	topspace=3cm,
	header=0cm,
	backspace=2cm,
	leftmargin=1.5cm,
	leftmargindistance=0.2cm,
	rightmargin=1.5cm,
	rightmargindistance=0.2cm,
	width=fit]
\setuppagenumbering[state=stop]
\setupcolors[state=start]

\starttext
% \defineoverlay[logo][{\externalfigure[logo][width=2.5cm]}]
\definelayer	[mybg]	% name of the layer
		[x=35mm, y=10mm,	% from upper left corner of paper
		width=\textwidth, height=20mm] % let the layer cover the full paper
\setlayer	[mybg]	% name of the layer
		{
		\starthangaround{\externalfigure[cow][width=25mm]}
		{\ss Text in line 1\\ Text in line 2}
		\stophangaround
		}  % the actual contents of the layer

\setupbackgrounds[page][background=mybg]
Lorem ipsum tota option volutpat quo ne. Doming nusquam his ad, id ullum cotidieque suscipiantur sit, at
utamur dissentias referrentur vim. No prima probatus his. Ignota epicurei phaedrum ne ius, vel eu quaeque
sensibus. Mei te labitur numquam. Senserit referrentur no vis, erant propriae ex quo, mei in quando urbanitas.\blank
\starthangaround{\externalfigure[cow][width=25mm]}
		{\ss Text in line 1\\ Text in line 2}
\stophangaround

\stoptext

[-- Attachment #4: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Composing a header/logo with layers, linebreak issues
  2011-03-05 17:39 Composing a header/logo with layers, linebreak issues C.
@ 2011-03-05 17:45 ` Wolfgang Schuster
  2011-03-05 19:08   ` C.
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-03-05 17:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 357 bytes --]


Am 05.03.2011 um 18:39 schrieb C.:

> Hello,
>  
> I guess this is an easy one.
> How do I get the top lines to behave like the second example? Why is the newline ignored in the top one?

\setlayer use a \hbox for the argument but you can around this with \setlayerframed, e.g.

\setlayerframed[mybg][align=right,frame=off]{…}

Wolfgang




[-- Attachment #1.2: Type: text/html, Size: 2060 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Composing a header/logo with layers, linebreak issues
  2011-03-05 17:45 ` Wolfgang Schuster
@ 2011-03-05 19:08   ` C.
  0 siblings, 0 replies; 3+ messages in thread
From: C. @ 2011-03-05 19:08 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

> \setlayerframed[mybg][align=right,frame=off]{.}

That does the trick :)
Thank you for your quick reply.

-Christian

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-05 19:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-05 17:39 Composing a header/logo with layers, linebreak issues C.
2011-03-05 17:45 ` Wolfgang Schuster
2011-03-05 19:08   ` C.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).