From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Paragraphs in Layers
Date: Thu, 9 Apr 2009 22:27:27 +0200 [thread overview]
Message-ID: <59344B1B-B15A-429A-93A5-F646DD2EECA8@gmail.com> (raw)
In-Reply-To: <6e2989c20904091314p427a8cc7v4217f06fabba4d89@mail.gmail.com>
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 work.
TeX use boxes to place text, two different types are available
and they are horizontal (\hbox) and vertical (\vbox) boxes.
Text in a horizontal box is placed in a single line and \par \vskip ...
is ignored, if your text is too long it runs over the right margin, only
text in a vertical box is placed in multiple lines.
The pure \setlayer command use a horizontal box for the content
and did therefore not work for you, \setlayerframed is (simplified)
a combination of \setlayer and \frame, the definition looks like
\setlayer[name][setup]{\framed{text}}.
The \framed command itself can act as horizontal or vertical box
dependent on the setup, by default it acts like a horizontal box,
to let it act as vertical box two setup need to be done
(1) the alignment (format) of the text needs to be set with
'align=left|normal|...' and (2) it needs either a width or
a height with is done with 'width=...' or 'height=...' or
'lines=...'.
Your layer command should now look like:
\setlayerframed
[TicketSummary]
[hoffset=.5\backspace,
voffset=2.5in,
width=3cm,
align=right]
{\bold{Client Name:}\\
Acme Corporation\\
\bold{Location of Work:}
Main warehouse}
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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-04-09 20:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-09 19:40 Design Department
2009-04-09 19:45 ` Wolfgang Schuster
2009-04-09 20:14 ` Design Department
2009-04-09 20:27 ` Wolfgang Schuster [this message]
2009-04-09 20:54 ` Design Department
2009-04-09 21:24 ` Wolfgang Schuster
2009-04-09 21:44 ` luigi scarso
2009-04-09 22:04 ` Wolfgang Schuster
2009-04-09 22:53 ` luigi scarso
2009-04-09 23:06 ` Wolfgang Schuster
2009-04-09 23:36 ` luigi scarso
2009-04-09 20:33 ` Willi Egger
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=59344B1B-B15A-429A-93A5-F646DD2EECA8@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--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).