Am 17.04.2009 um 19:30 schrieb Hans Hagen:
Wolfgang Schuster wrote:
Am 17.04.2009 um 19:05 schrieb Hans Hagen:
Wolfgang Schuster wrote:
Am 17.04.2009 um 12:08 schrieb Hans Hagen:
i'll look into it, but then need a zip with a minimal set of files that i can use for testing With the filecontents environment you need only one file: http://wiki.contextgarden.net/Filecontents
is this related to bibliographies? No but you don't need multiple files for a example.
runs ok here
that's not what I mean, here is a example, the bib entry comes from a external file but you need only one file for the example because the filecontents environment creates the bib file at compile time. % defintion of the filecontents environment \unprotect \definemessageconstant {filecontents} \startmessages all library: filecontents title: filecontents 1: Overwriting file -- 2: Writing file -- \stopmessages \def\startfilecontents {\begingroup \protectbuffersfalse \dostartfilecontents} \def\dostartfilecontents[#1]% {\doiffileexistselse{#1} {\showmessage\m!filecontents{1}{#1}} {\showmessage\m!filecontents{2}{#1}}% \beforesplitstring#1\at.\to\filename \aftersplitstring #1\at.\to\extension \let\f!temporaryextension\extension \dostartbuffer[\filename][startfilecontents][stopfilecontents]} \def\stopfilecontents {\doifmode{mkiv}{\savebuffer[\filename]\ctxlua{file.copy("\jobname- \filename.tmp","\filename.\f!temporaryextension")}}% \endgroup} \protect % start of the real document \startfilecontents[example.bib] @manual{me, author = "Taco Hoekwater", title = "\CONTEXT\ Publication Module, The user documententation", year = 2006, note = "In case you didn't know: it's the document you are reading now", pages = 14 } \stopfilecontents \usemodule[bib] \setupbibtex[database=example] \starttext \cite[me] \placepublications \stoptext Wolfgang