From: Romain Diss <romain.diss@yahoo.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Background under bibliography (like in mkiv-publications.pdf)
Date: Mon, 18 Mar 2019 16:03:28 +0100 [thread overview]
Message-ID: <20190318150328.GB27546@nereid.neptune> (raw)
In-Reply-To: <nycvar.YAK.7.76.44.1903132023070.8331@nqv-guvaxcnq>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2019-03-18 15:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Romain Diss [this message]
2019-03-18 18:15 ` Background under bibliography (like in mkiv-publications.pdf) Aditya Mahajan
2019-03-18 18:37 ` Alan Braslau
2019-03-18 20:41 ` Romain Diss
2019-03-18 20:45 ` Romain Diss
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=20190318150328.GB27546@nereid.neptune \
--to=romain.diss@yahoo.fr \
--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).