Hi everybody, While trying to setup a simple literature reference list I encounter the following problem: I have defined an enumeration. After typesetting the enumerated list I get on the first line the enumeration text and lost and alone in front of the second line the enumeration number. Is this something I do in a wrong way or is there a bug? Please try the minimal example below Kind regards Willi \setupoutput[pdftex] \defineenumeration [Literatur] [location={left,serried}, style=\em, width=broad, distance=12pt, headstyle=\tfx, text=\em, left={[}, right={]}, inbetween={\blank[small]}, after={\blank[small]}] \starttext \Literatur[Wiese1964] F. Wiese. Buchbinden. 1964. \Literatur[Goddijn1994] P.Goddijn. Het restaureren van boeken. Koninglijke Bibliotheek, Den Haag.1994. \stoptext
Beste Willi, Attached PDF shows my version context does it right. Karel.
Hi everybody,
While trying to setup a simple literature reference list I encounter the following problem:
I have defined an enumeration. After typesetting the enumerated list I get on the first line the enumeration text and lost and alone in front of the second line the enumeration number.
Is this something I do in a wrong way or is there a bug?
Please try the minimal example below
Kind regards Willi
\setupoutput[pdftex] \defineenumeration [Literatur] [location={left,serried}, style=\em, width=broad, distance=12pt, headstyle=\tfx, text=\em, left={[}, right={]}, inbetween={\blank[small]}, after={\blank[small]}]
\starttext
\Literatur[Wiese1964] F. Wiese. Buchbinden. 1964.
\Literatur[Goddijn1994] P.Goddijn. Het restaureren van boeken. Koninglijke Bibliotheek, Den Haag.1994.
\stoptext
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: egger.pdf Date: 19 Sep 2003, 8:40 Size: 20848 bytes. Type: Unknown
Hoi Karel,
Thanks, I see in your version it works.
I have to say, that I copied this definition from an other project, where it
used to work as in your file!
On the other hand I use the latest beta version, may be that there were
changes ....
Nederlands blijft een moelijke taal om te schrijven. De buitenlander heeft
er steeds last van. Bedankt voor de correctie!
Kind regards Willi
----- Original Message -----
From: "K.H. Wesseling"
Beste Willi,
Attached PDF shows my version context does it right.
Karel.
Hi everybody,
While trying to setup a simple literature reference list I encounter the following problem:
I have defined an enumeration. After typesetting the enumerated list I get on the first line the enumeration text and lost and alone in front of the second line the enumeration number.
Is this something I do in a wrong way or is there a bug?
Please try the minimal example below
Kind regards Willi
\setupoutput[pdftex] \defineenumeration [Literatur] [location={left,serried}, style=\em, width=broad, distance=12pt, headstyle=\tfx, text=\em, left={[}, right={]}, inbetween={\blank[small]}, after={\blank[small]}]
\starttext
\Literatur[Wiese1964] F. Wiese. Buchbinden. 1964.
\Literatur[Goddijn1994] P.Goddijn. Het restaureren van boeken. Koninglijke Bibliotheek, Den Haag.1994.
\stoptext
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
---------------------------------------------------------------------------- ----
The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance.
---- File information ----------- File: egger.pdf Date: 19 Sep 2003, 8:40 Size: 20848 bytes. Type: Unknown
At 20:13 18/09/2003 +0200, you wrote:
I have defined an enumeration. After typesetting the enumerated list I get on the first line the enumeration text and lost and alone in front of the second line the enumeration number.
Is this something I do in a wrong way or is there a bug?
hm, this is due to the fact that the [ ] are not taken into the width calculations. This problem was introduced some time ago when i made a slightly more advanced width multiline calculator. In your case it's also triggered by text=\em which should be textstyle=\em (now an extra space is added between the text and number) The next alternative fixes the width calculation. \def\@@dostartdefinitie#1[#2]#3% {\getvalue{\??dd#1\c!voor}% \begingroup \doadaptleftskip{\getvalue{\??dd#1\c!marge}}% \showcomposition \!!widthb\getvalue{\??dd#1\c!afstand}\relax \ifdim\!!widthb=\zeropoint\relax \doifvalue{\??dd#1\c!breedte}\v!ruim{\!!widthb=1em}% \fi % temp hack, we need to avoid this kind of preprocessing \setbox\@@definitiebox\hbox % preroll {\forgetall \trialtypesettingtrue \mindermeldingen \def\\{\crcr}% \@@definitiewoord{#1}[#2]{#3}% {\begstrut\getvalue{\??dd#1\c!tekst}\ignorespaces#3\endstrut}}% % so far \assignwidth {\!!widtha} {\getvalue{\??dd#1\c!breedte}} {\doifelsevaluenothing{\??dd#1\c!monster} {% preroll can move here (test first) \ifhbox\@@definitiebox\unhcopy\else\copy\fi \@@definitiebox} {\@@definitiewoord{#1}[#2]{#3}% {\getvalue{\??dd#1\c!tekst}\getvalue{\??dd#1\c!monster}}}} {\!!widthb}% \setbox\@@definitiebox\hbox {\forgetall \mindermeldingen \let\\\endgraf \doifelsevalue{\??dd#1\c!plaats}\v!aanelkaar {\@@definitiewoord{#1}[#2]{#3}% {\begstrut\getvalue{\??dd#1\c!tekst}#3\endstrut}} {\@@definitiewoord{#1}[#2]{#3}% {\vtop{\hsize\!!widtha\advance\hsize-\!!widthb \begstrut\getvalue{\??dd#1\c!tekst}\ignorespaces#3\endstrut}}}}% \doifelsevalue{\??dd#1\c!titeluitlijnen}\v!nee {\edef\@@leftdefinitieskip {\the\leftskip }% \edef\@@rightdefinitieskip{\the\rightskip}} {\ifcase\insidedefinition \edef\@@leftdefinitieskip {\the\leftskip }% \edef\@@rightdefinitieskip{\the\rightskip}% \fi}% \expanded{\inspringen[\getvalue{\??dd#1\c!inspringen}]}% \ifcase\insidedefinition % better a system mode \chardef\insidedefinition\plusone \or \chardef\insidedefinition\plustwo \fi} % now happens elsewhere : \noindent\ignorespaces ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
"Willi Egger"
Is this something I do in a wrong way or is there a bug?
I did not look into it yet, but I can confirm that I get the same error with the latest ConTeXt version. So I think that there must be some bug. Patrick -- Silent is the goldfish in its bowl
participants (4)
-
Hans Hagen
-
K.H. Wesseling
-
Patrick Gundlach
-
Willi Egger