* Re: TextBackground text area
2011-11-24 2:52 ` Aditya Mahajan
@ 2011-11-24 7:56 ` Kip Warner
2011-11-24 23:33 ` Kip Warner
` (3 subsequent siblings)
4 siblings, 0 replies; 13+ messages in thread
From: Kip Warner @ 2011-11-24 7:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 327 bytes --]
On Wed, 2011-11-23 at 21:52 -0500, Aditya Mahajan wrote:
> Why not just increase the value of leftoffset and rightoffset?
Because then the text is fine on the left side, but then goes past the
right frame border.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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] 13+ messages in thread
* Re: TextBackground text area
2011-11-24 2:52 ` Aditya Mahajan
2011-11-24 7:56 ` Kip Warner
@ 2011-11-24 23:33 ` Kip Warner
2011-11-28 2:52 ` Kip Warner
` (2 subsequent siblings)
4 siblings, 0 replies; 13+ messages in thread
From: Kip Warner @ 2011-11-24 23:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 411 bytes --]
On Wed, 2011-11-23 at 21:52 -0500, Aditya Mahajan wrote:
> Why not just increase the value of leftoffset and rightoffset?
This seems to work, but I find a problem is that if the text box spans
multiple pages, bottomoffset / topoffset are ignored at the points where
the page breaks. Suggestions?
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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] 13+ messages in thread
* Re: TextBackground text area
2011-11-24 2:52 ` Aditya Mahajan
2011-11-24 7:56 ` Kip Warner
2011-11-24 23:33 ` Kip Warner
@ 2011-11-28 2:52 ` Kip Warner
2011-12-26 6:31 ` TextBackground bottomoffset / topoffset Kip Warner
2012-01-31 4:18 ` Still Problems With " Kip Warner
4 siblings, 0 replies; 13+ messages in thread
From: Kip Warner @ 2011-11-28 2:52 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
[-- Attachment #1.1: Type: text/plain, Size: 413 bytes --]
On Wed, 2011-11-23 at 21:52 -0500, Aditya Mahajan wrote:
> Why not just increase the value of leftoffset and rightoffset?
This seems to work, but I find a problem is that if the text box spans
multiple pages, bottomoffset / topoffset are ignored at the points where
the page breaks. Suggestions?
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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] 13+ messages in thread
* TextBackground bottomoffset / topoffset
2011-11-24 2:52 ` Aditya Mahajan
` (2 preceding siblings ...)
2011-11-28 2:52 ` Kip Warner
@ 2011-12-26 6:31 ` Kip Warner
2012-01-31 4:18 ` Still Problems With " Kip Warner
4 siblings, 0 replies; 13+ messages in thread
From: Kip Warner @ 2011-12-26 6:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 849 bytes --]
Hey list,
I am using the following to typeset a text box containing text.
\definetextbackground[GeneralDocument][
location=paragraph,
color=color_text,
background=color,
backgroundcolor=colour_page,
framecolor=colour_text,
topoffset=1.0cm,
bottomoffset=1.0cm,
leftoffset=1.0cm,
rightoffset=1.0cm,
before={
\blank[2*big]
},
after={
\blank[2*big]
},
style=small,
corner=round,
frame=on]
This seems to work, but I find a problem is that if the text box spans
multiple pages, bottomoffset / topoffset are ignored at the points where
the page breaks. Suggestions?
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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] 13+ messages in thread
* Still Problems With TextBackground bottomoffset / topoffset
2011-11-24 2:52 ` Aditya Mahajan
` (3 preceding siblings ...)
2011-12-26 6:31 ` TextBackground bottomoffset / topoffset Kip Warner
@ 2012-01-31 4:18 ` Kip Warner
2012-01-31 7:24 ` luigi scarso
2012-02-01 0:25 ` Aditya Mahajan
4 siblings, 2 replies; 13+ messages in thread
From: Kip Warner @ 2012-01-31 4:18 UTC (permalink / raw)
To: Hans Hagen, Aditya Mahajan, Wolfgang Schuster
Cc: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1100 bytes --]
Hey Hans, Aditya, and Wolfgang,
You gentlemen seem to be very knowledgeable with ConTeXt, so I will run
a question by you that has been plaguing me for months. I am using the
following to typeset a text box containing text.
\definetextbackground[GeneralDocument][
location=paragraph,
color=color_text,
background=color,
backgroundcolor=colour_page,
framecolor=colour_text,
topoffset=1.0cm,
bottomoffset=1.0cm,
leftoffset=1.0cm,
rightoffset=1.0cm,
before={
\blank[2*big]
},
after={
\blank[2*big]
},
style=small,
corner=round,
frame=on]
This works fine, but I still have a problem if the text box spans
multiple pages because bottomoffset / topoffset seem to be ignored at
the points where the page breaks. The text just goes right to the edge
of the page top or bottom without any whitespace.
Any ideas?
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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] 13+ messages in thread
* Re: Still Problems With TextBackground bottomoffset / topoffset
2012-01-31 4:18 ` Still Problems With " Kip Warner
@ 2012-01-31 7:24 ` luigi scarso
2012-01-31 8:50 ` Hans Hagen
2012-02-01 0:25 ` Aditya Mahajan
1 sibling, 1 reply; 13+ messages in thread
From: luigi scarso @ 2012-01-31 7:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 243 bytes --]
On Tue, Jan 31, 2012 at 5:18 AM, Kip Warner <kip@thevertigo.com> wrote:
> Hey Hans, Aditya, and Wolfgang,
>
> You gentlemen seem to be very knowledgeable with ConTeXt,
Yes, at least Hans.
IIRC he is the *only* author of ConTeXt.
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 521 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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] 13+ messages in thread
* Re: Still Problems With TextBackground bottomoffset / topoffset
2012-01-31 7:24 ` luigi scarso
@ 2012-01-31 8:50 ` Hans Hagen
2012-01-31 23:55 ` Kip Warner
0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2012-01-31 8:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 31-1-2012 08:24, luigi scarso wrote:
> On Tue, Jan 31, 2012 at 5:18 AM, Kip Warner<kip@thevertigo.com> wrote:
>
>> Hey Hans, Aditya, and Wolfgang,
>>
>> You gentlemen seem to be very knowledgeable with ConTeXt,
>
> Yes, at least Hans.
> IIRC he is the *only* author of ConTeXt.
well but sometimes others beat me in knowledge about the internals -)
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 13+ messages in thread
* Re: Still Problems With TextBackground bottomoffset / topoffset
2012-01-31 4:18 ` Still Problems With " Kip Warner
2012-01-31 7:24 ` luigi scarso
@ 2012-02-01 0:25 ` Aditya Mahajan
2012-02-01 7:23 ` Kip Warner
1 sibling, 1 reply; 13+ messages in thread
From: Aditya Mahajan @ 2012-02-01 0:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 30 Jan 2012, Kip Warner wrote:
> Hey Hans, Aditya, and Wolfgang,
>
> You gentlemen seem to be very knowledgeable with ConTeXt, so I will run
> a question by you that has been plaguing me for months. I am using the
> following to typeset a text box containing text.
>
> \definetextbackground[GeneralDocument][
> location=paragraph,
> color=color_text,
> background=color,
> backgroundcolor=colour_page,
> framecolor=colour_text,
> topoffset=1.0cm,
> bottomoffset=1.0cm,
> leftoffset=1.0cm,
> rightoffset=1.0cm,
> before={
> \blank[2*big]
> },
> after={
> \blank[2*big]
> },
> style=small,
> corner=round,
> frame=on]
>
> This works fine, but I still have a problem if the text box spans
> multiple pages because bottomoffset / topoffset seem to be ignored at
> the points where the page breaks. The text just goes right to the edge
> of the page top or bottom without any whitespace.
Do you have to use textbackground (assuming, of course, that you are using
MkIV)? Regular backgrounds take care of top and bottom offsets:
\definebackground
[whatever]
[topoffset=1cm,
bottomoffset=1cm,
frame=on]
\starttext
\input ward
\startwhatever
\dorecurse{6}{\input knuth \endgraf}
\stopwhatever
\input ward
\stoptext
The main advantage of textbackground is that they adapt to pararagraph
shapes (if you use things like \startplacefigure[location=left] ...
\stopplacefigure), and can be nested.
Aditya
___________________________________________________________________________________
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] 13+ messages in thread
* Re: Still Problems With TextBackground bottomoffset / topoffset
2012-02-01 0:25 ` Aditya Mahajan
@ 2012-02-01 7:23 ` Kip Warner
0 siblings, 0 replies; 13+ messages in thread
From: Kip Warner @ 2012-02-01 7:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 691 bytes --]
On Tue, 2012-01-31 at 19:25 -0500, Aditya Mahajan wrote:
> Do you have to use textbackground (assuming, of course, that you are using
> MkIV)?
I think so. I can't remember why, but someone on the list probably made
a compelling argument for its use.
> The main advantage of textbackground is that they adapt to pararagraph
> shapes (if you use things like \startplacefigure[location=left] ...
> \stopplacefigure), and can be nested.
Yes, which I may require from time to time. Why doesn't the bottomoffset
and topoffset variables do anything in a textbackground?
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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] 13+ messages in thread