ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Framed text split over multiple pages
@ 2019-03-13 22:58 Romain Diss
  2019-03-14  0:23 ` Aditya Mahajan
  0 siblings, 1 reply; 15+ messages in thread
From: Romain Diss @ 2019-03-13 22:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Is there a simple way to split a large \startframedtext environment over
multiple pages. It doesn't work out of the box and I didn't find any
option make it work in the wiki nor in the documentation I read.

Thanks.

-- 
Romain Diss
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Framed text split over multiple pages
  2019-03-13 22:58 Framed text split over multiple pages Romain Diss
@ 2019-03-14  0:23 ` Aditya Mahajan
  2019-03-18 15:03   ` Background under bibliography (like in mkiv-publications.pdf) Romain Diss
  0 siblings, 1 reply; 15+ messages in thread
From: Aditya Mahajan @ 2019-03-14  0:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> Is there a simple way to split a large \startframedtext environment over
> multiple pages. It doesn't work out of the box and I didn't find any
> option make it work in the wiki nor in the documentation I read.

Use backgrounds or textbackgrounds.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Background under bibliography (like in mkiv-publications.pdf)
  2019-03-14  0:23 ` Aditya Mahajan
@ 2019-03-18 15:03   ` Romain Diss
  2019-03-18 18:15     ` Aditya Mahajan
  0 siblings, 1 reply; 15+ messages in thread
From: Romain Diss @ 2019-03-18 15:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Le 13/03/2019, Aditya Mahajan a �crit
> > Is there a simple way to split a large \startframedtext environment over
> > multiple pages. It doesn't work out of the box and I didn't find any
> > option make it work in the wiki nor in the documentation I read.
> 
> Use backgrounds or textbackgrounds.
Thank you but I still can't achieve what I want to do whith this
command.

I try to make something similar to the frames in the
"mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for
examples).
I suppose Hans Hagen made use of metafun to do it but I encounter some
problems with 'textbackgrounds'.

In this minimal example, the frame doesn't appear (or if i set
[frame=on,leftframe=off] all the frame is rendered) and the left and
right offsets are not took into account.

% test-bcknd.tex
\usebtxdataset[biblio.bib]

\setupbtxrendering
    [before={\startbiblio},
    after={\stopbiblio}]

% Arri�re-plan biblio
\definetextbackground[biblio]
    [location=paragraph,
    background=color,
    backgroundcolor=green,
    %backgroundoffset=2em,
    leftoffset=1em,
    rightoffset=1em,
    topoffset=1.5em,
    bottomoffset=1em,
    frame=off,
    leftframe=on,
    rulethickness=.1em,
    framecolor=red]

\startdocument
    \startchapter[title=A chapter]
        \input knuth \cite[knuth]\blank
        \input ward \cite[ward]\blank
        \placelistofpublications[criterium=chapter]
    \stopchapter

\stopdocument
% end


% biblio.bib
@book{knuth,
    title = "Title",
    author = "Knuth",
    publisher = "Publisher",
    year = "2019",
}
@book{ward,
    title = "Title",
    author = "Ward",
    publisher = "Publisher",
    year = "2019",
}
% end

Any suggestions?

Thank you.


-- 
Romain Diss
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Background under bibliography (like in mkiv-publications.pdf)
  2019-03-18 15:03   ` Background under bibliography (like in mkiv-publications.pdf) Romain Diss
@ 2019-03-18 18:15     ` Aditya Mahajan
  2019-03-18 18:37       ` Alan Braslau
  2019-03-18 20:45       ` Romain Diss
  0 siblings, 2 replies; 15+ messages in thread
From: Aditya Mahajan @ 2019-03-18 18:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1359 bytes --]

On Mon, 18 Mar 2019, Romain Diss wrote:

> Le 13/03/2019, Aditya Mahajan a �crit
>> > Is there a simple way to split a large \startframedtext environment over
>> > multiple pages. It doesn't work out of the box and I didn't find any
>> > option make it work in the wiki nor in the documentation I read.
>> 
>> Use backgrounds or textbackgrounds.
> Thank you but I still can't achieve what I want to do whith this
> command.
>
> I try to make something similar to the frames in the
> "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for
> examples).
> I suppose Hans Hagen made use of metafun to do it but I encounter some
> problems with 'textbackgrounds'.
>
> In this minimal example, the frame doesn't appear (or if i set
> [frame=on,leftframe=off] all the frame is rendered) and the left and
> right offsets are not took into account.

textbackground uses metapost for ALL backgrounds and the default metapost 
code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) 
doesn't handle individual frames. So, you have to write your own metapost 
code to draw the side bar.

Another option for simple backgrounds is to use `\definebackground` 
instead of `definetextbackground`. The background mechanism doesn't have 
too many options, but does honor leftframe and rightframe by default.

Aditya

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Background under bibliography (like in mkiv-publications.pdf)
  2019-03-18 18:15     ` Aditya Mahajan
@ 2019-03-18 18:37       ` Alan Braslau
  2019-03-18 20:41         ` Romain Diss
  2019-03-18 20:45       ` Romain Diss
  1 sibling, 1 reply; 15+ messages in thread
From: Alan Braslau @ 2019-03-18 18:37 UTC (permalink / raw)
  To: Aditya Mahajan; +Cc: mailing list for ConTeXt users

On Mon, 18 Mar 2019 14:15:10 -0400 (EDT)
Aditya Mahajan <adityam@umich.edu> wrote:

> On Mon, 18 Mar 2019, Romain Diss wrote:
> 
> > Le 13/03/2019, Aditya Mahajan a �crit  
> >> > Is there a simple way to split a large \startframedtext environment over
> >> > multiple pages. It doesn't work out of the box and I didn't find any
> >> > option make it work in the wiki nor in the documentation I read.  
> >> 
> >> Use backgrounds or textbackgrounds.  
> > Thank you but I still can't achieve what I want to do whith this
> > command.
> >
> > I try to make something similar to the frames in the
> > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for
> > examples).
> > I suppose Hans Hagen made use of metafun to do it but I encounter some
> > problems with 'textbackgrounds'.
> >
> > In this minimal example, the frame doesn't appear (or if i set
> > [frame=on,leftframe=off] all the frame is rendered) and the left and
> > right offsets are not took into account.  
> 
> textbackground uses metapost for ALL backgrounds and the default metapost 
> code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) 
> doesn't handle individual frames. So, you have to write your own metapost 
> code to draw the side bar.
> 
> Another option for simple backgrounds is to use `\definebackground` 
> instead of `definetextbackground`. The background mechanism doesn't have 
> too many options, but does honor leftframe and rightframe by default.
> 
> Aditya

You can look under
doc/context/sources/general/manuals/publications/publications-style.tex
to see how it is done.

Alan
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Background under bibliography (like in mkiv-publications.pdf)
  2019-03-18 18:37       ` Alan Braslau
@ 2019-03-18 20:41         ` Romain Diss
  0 siblings, 0 replies; 15+ messages in thread
From: Romain Diss @ 2019-03-18 20:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Le 18/03/2019, Alan Braslau a �crit
> On Mon, 18 Mar 2019 14:15:10 -0400 (EDT)
> Aditya Mahajan <adityam@umich.edu> wrote:
> 
> > On Mon, 18 Mar 2019, Romain Diss wrote:
> > 
> > > Le 13/03/2019, Aditya Mahajan a �crit  
> > >> > Is there a simple way to split a large \startframedtext environment over
> > >> > multiple pages. It doesn't work out of the box and I didn't find any
> > >> > option make it work in the wiki nor in the documentation I read.  
> > >> 
> > >> Use backgrounds or textbackgrounds.  
> > > Thank you but I still can't achieve what I want to do whith this
> > > command.
> > >
> > > I try to make something similar to the frames in the
> > > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for
> > > examples).
> > > I suppose Hans Hagen made use of metafun to do it but I encounter some
> > > problems with 'textbackgrounds'.
> > >
> > > In this minimal example, the frame doesn't appear (or if i set
> > > [frame=on,leftframe=off] all the frame is rendered) and the left and
> > > right offsets are not took into account.  
> > 
> > textbackground uses metapost for ALL backgrounds and the default metapost 
> > code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) 
> > doesn't handle individual frames. So, you have to write your own metapost 
> > code to draw the side bar.
> > 
> > Another option for simple backgrounds is to use `\definebackground` 
> > instead of `definetextbackground`. The background mechanism doesn't have 
> > too many options, but does honor leftframe and rightframe by default.
> > 
> > Aditya
> 
> You can look under
> doc/context/sources/general/manuals/publications/publications-style.tex
> to see how it is done.
All these source files where here, next to me, all this time and I didn't
know... Thank you very much!

-- 
Romain Diss
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Background under bibliography (like in mkiv-publications.pdf)
  2019-03-18 18:15     ` Aditya Mahajan
  2019-03-18 18:37       ` Alan Braslau
@ 2019-03-18 20:45       ` Romain Diss
  1 sibling, 0 replies; 15+ messages in thread
From: Romain Diss @ 2019-03-18 20:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Le 18/03/2019, Aditya Mahajan a �crit
> On Mon, 18 Mar 2019, Romain Diss wrote:
> 
> > Le 13/03/2019, Aditya Mahajan a �crit
> > > > Is there a simple way to split a large \startframedtext environment over
> > > > multiple pages. It doesn't work out of the box and I didn't find any
> > > > option make it work in the wiki nor in the documentation I read.
> > > 
> > > Use backgrounds or textbackgrounds.
> > Thank you but I still can't achieve what I want to do whith this
> > command.
> > 
> > I try to make something similar to the frames in the
> > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for
> > examples).
> > I suppose Hans Hagen made use of metafun to do it but I encounter some
> > problems with 'textbackgrounds'.
> > 
> > In this minimal example, the frame doesn't appear (or if i set
> > [frame=on,leftframe=off] all the frame is rendered) and the left and
> > right offsets are not took into account.
> 
> textbackground uses metapost for ALL backgrounds and the default metapost
> code to draw the background (draw_multi_pars, defined in mp-abck.mkiv)
> doesn't handle individual frames. So, you have to write your own metapost
> code to draw the side bar.
> 
> Another option for simple backgrounds is to use `\definebackground` instead
> of `definetextbackground`. The background mechanism doesn't have too many
> options, but does honor leftframe and rightframe by default.

It will take some time to understand everything in "mp-abck.mpiv" but it
will sure be very interesting.

Thank you.

-- 
Romain Diss
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Framed Text Split Over Multiple Pages
  2011-10-05 22:30         ` Aditya Mahajan
@ 2011-10-05 22:35           ` Kip Warner
  0 siblings, 0 replies; 15+ messages in thread
From: Kip Warner @ 2011-10-05 22:35 UTC (permalink / raw)
  To: Aditya Mahajan; +Cc: mailing list for ConTeXt users, Hans Hagen


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

On Wed, 2011-10-05 at 18:30 -0400, Aditya Mahajan wrote:
> Are you using MkII or MkIV? Is metapost working?
> 
> \starttext
> \startMPcode
> draw fullcircle scaled 3cm ;
> \stopMPcode
> \stoptext

$ context --version
...
mtx-context     | current version: 2011.06.27 23:49

It errors with that code you gave me. I can't seem to find the specific
error message as ConTeXt dumps tonnes and tonnes of pages of console
output that it's probably buried somewhere in.

-- 
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] 15+ messages in thread

* Re: Framed Text Split Over Multiple Pages
  2011-10-05 22:06       ` Kip Warner
@ 2011-10-05 22:30         ` Aditya Mahajan
  2011-10-05 22:35           ` Kip Warner
  0 siblings, 1 reply; 15+ messages in thread
From: Aditya Mahajan @ 2011-10-05 22:30 UTC (permalink / raw)
  To: Kip Warner; +Cc: mailing list for ConTeXt users, Hans Hagen

On Wed, 5 Oct 2011, Kip Warner wrote:

> On Wed, 2011-10-05 at 23:58 +0200, Hans Hagen wrote:
>> http://wiki.contextgarden.net/TextBackground
>
> Thanks Hans. I saw it already, but I couldn't get the frame to appear
> around the text.
>
> Can you show me the textbackground equivalent that has page breaks to
> the following that I have been using?

Are you using MkII or MkIV? Is metapost working?

\starttext
\startMPcode
draw fullcircle scaled 3cm ;
\stopMPcode
\stoptext

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] 15+ messages in thread

* Re: Framed Text Split Over Multiple Pages
  2011-10-05 21:58     ` Hans Hagen
@ 2011-10-05 22:06       ` Kip Warner
  2011-10-05 22:30         ` Aditya Mahajan
  0 siblings, 1 reply; 15+ messages in thread
From: Kip Warner @ 2011-10-05 22:06 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users


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

On Wed, 2011-10-05 at 23:58 +0200, Hans Hagen wrote:
> http://wiki.contextgarden.net/TextBackground

Thanks Hans. I saw it already, but I couldn't get the frame to appear
around the text.

Can you show me the textbackground equivalent that has page breaks to
the following that I have been using?

\definestartstop
    [SomeFramedText]
    [before={
        \crlf
        \setupbackground[frame=on,
                         before=\blank,
                         after=\blank,
                         corner=round,
                         topoffset=0.5cm,
                         leftoffset=0.5cm,
                         rightoffset=0.5cm,
                         bottomoffset=0.5cm]
        \startbackground
            },
     after={
        \stopbackground
        \crlf
           },
     commands={\setupalign[yes]},
     style=italic]

-- 
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] 15+ messages in thread

* Re: Framed Text Split Over Multiple Pages
  2011-10-05 21:52   ` Kip Warner
@ 2011-10-05 21:58     ` Hans Hagen
  2011-10-05 22:06       ` Kip Warner
  0 siblings, 1 reply; 15+ messages in thread
From: Hans Hagen @ 2011-10-05 21:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Kip Warner

On 5-10-2011 23:52, Kip Warner wrote:
> On Tue, 2011-10-04 at 20:54 -0400, Aditya Mahajan wrote:
>> Can you explain what you mean by inline pagebreak?
>>
>> Aditya
>
> Hey Aditya. I mean that I would like framed text to be split over
> multiple pages whenever possible.

http://wiki.contextgarden.net/TextBackground

-----------------------------------------------------------------
                                           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] 15+ messages in thread

* Re: Framed Text Split Over Multiple Pages
  2011-10-05  0:54 ` Aditya Mahajan
@ 2011-10-05 21:52   ` Kip Warner
  2011-10-05 21:58     ` Hans Hagen
  0 siblings, 1 reply; 15+ messages in thread
From: Kip Warner @ 2011-10-05 21:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On Tue, 2011-10-04 at 20:54 -0400, Aditya Mahajan wrote:
> Can you explain what you mean by inline pagebreak?
> 
> Aditya

Hey Aditya. I mean that I would like framed text to be split over
multiple pages whenever possible.

-- 
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] 15+ messages in thread

* Re: Framed Text Split Over Multiple Pages
  2011-10-05  0:20 Framed Text Split Over Multiple Pages Kip Warner
  2011-10-05  0:54 ` Aditya Mahajan
@ 2011-10-05  7:32 ` Hans Hagen
  1 sibling, 0 replies; 15+ messages in thread
From: Hans Hagen @ 2011-10-05  7:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Kip Warner

On 5-10-2011 02:20, Kip Warner wrote:
> Hey list,
>
> I'd like my framed text to be split over multiple pages rather than
> leaving a big empty page before it starts so that it can fill its own
> whole page when large enough.

you can search for 'textbackground' (which is another mechanism)

-----------------------------------------------------------------
                                           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] 15+ messages in thread

* Re: Framed Text Split Over Multiple Pages
  2011-10-05  0:20 Framed Text Split Over Multiple Pages Kip Warner
@ 2011-10-05  0:54 ` Aditya Mahajan
  2011-10-05 21:52   ` Kip Warner
  2011-10-05  7:32 ` Hans Hagen
  1 sibling, 1 reply; 15+ messages in thread
From: Aditya Mahajan @ 2011-10-05  0:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 4 Oct 2011, Kip Warner wrote:

> Hey list,
>
> I'd like my framed text to be split over multiple pages rather than
> leaving a big empty page before it starts so that it can fill its own
> whole page when large enough.
>
> This is what I am using and works fine, with the exception of no inline
> page breaks:

Can you explain what you mean by inline pagebreak?

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] 15+ messages in thread

* Framed Text Split Over Multiple Pages
@ 2011-10-05  0:20 Kip Warner
  2011-10-05  0:54 ` Aditya Mahajan
  2011-10-05  7:32 ` Hans Hagen
  0 siblings, 2 replies; 15+ messages in thread
From: Kip Warner @ 2011-10-05  0:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hey list,

I'd like my framed text to be split over multiple pages rather than
leaving a big empty page before it starts so that it can fill its own
whole page when large enough.

This is what I am using and works fine, with the exception of no inline
page breaks:

\definestartstop
    [SubDocument]
    [before={
        \crlf
        \setupbackground[frame=on,
                         before=\blank,
                         after=\blank,
                         corner=round,
                         topoffset=0.5cm,
                         leftoffset=0.5cm,
                         rightoffset=0.5cm,
                         bottomoffset=0.5cm]
        \startbackground
            },
     after={
        \stopbackground
        \crlf
           },
     commands={\setupalign[yes]},
     style=italic]

Then used as such:

\startSubDocument
...
\stopSubDocument

-- 
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] 15+ messages in thread

end of thread, other threads:[~2019-03-18 20:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-13 22:58 Framed text split over multiple pages Romain Diss
2019-03-14  0:23 ` Aditya Mahajan
2019-03-18 15:03   ` Background under bibliography (like in mkiv-publications.pdf) Romain Diss
2019-03-18 18:15     ` Aditya Mahajan
2019-03-18 18:37       ` Alan Braslau
2019-03-18 20:41         ` Romain Diss
2019-03-18 20:45       ` Romain Diss
  -- strict thread matches above, loose matches on Subject: below --
2011-10-05  0:20 Framed Text Split Over Multiple Pages Kip Warner
2011-10-05  0:54 ` Aditya Mahajan
2011-10-05 21:52   ` Kip Warner
2011-10-05 21:58     ` Hans Hagen
2011-10-05 22:06       ` Kip Warner
2011-10-05 22:30         ` Aditya Mahajan
2011-10-05 22:35           ` Kip Warner
2011-10-05  7:32 ` Hans Hagen

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).