ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "C." <metan0r@gmx.de>
To: "Context-Mailinglist" <ntg-context@ntg.nl>
Subject: Composing a header/logo with layers, linebreak issues
Date: Sat, 5 Mar 2011 18:39:16 +0100	[thread overview]
Message-ID: <001c01cbdb5c$40140880$c03c1980$@gmx.de> (raw)


[-- 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
___________________________________________________________________________________

             reply	other threads:[~2011-03-05 17:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-05 17:39 C. [this message]
2011-03-05 17:45 ` Wolfgang Schuster
2011-03-05 19:08   ` C.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001c01cbdb5c$40140880$c03c1980$@gmx.de' \
    --to=metan0r@gmx.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).