* \defineenumeration
@ 2001-09-20 21:54 Johannes Huesing
2001-09-21 6:55 ` \defineenumeration Patrick Gundlach
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Huesing @ 2001-09-20 21:54 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 318 bytes --]
Sorry for keeping bugging you.
There is something I fail to understand though. I get an error
I cannot trace when processing the enclosed file.
I am using the ConTeXt version that came with TeXLive6.
--
Johannes Hüsing | Terrorism treats the ending of a
hannes@ruhrau.de | state as damage, and routes around it
[-- Attachment #2: longrun-minimal.tex --]
[-- Type: text/x-tex, Size: 1186 bytes --]
\setupoutput[pdftex]
\def\nwmargintag#1{\inmargin{\tfx #1}}
\def\nwprevnextdefs#1#2{\ifx\relax#1\else%
\goto{$\triangleleft$}[#1]~\fi\ifx\relax#2\else%
\goto{$\triangleright$}[#2]\fi}
\def\nwalsodefined#1{also defined in \at[#1]\crlf}
\appendtoks \resetnwcodechunkhead \to \aftereverypage
\defineframedtext[nwcodechunk][frame=off,
leftframe=on,
background=screen,
width=\textwidth]
\def\nwtagstyle{\it}
\defineframedtext[nwdeflinemarkup][frame=on,
background=none]
%\definehead[nwcodechunkhead][section]
\defineenumeration[nwcodechunkhead]
\definelist[nwcodechunkhead]
\setuptype[space=on]
\setupinteraction[state=start]
\starttext
\startnwcodechunk
\nwcodechunkhead[NWlont-*-1]
{*~{\nwtagstyle{}\at[NWlont-*-1].\in[NWlont-*-1]}}
\nwmargintag{{\nwtagstyle{}\at[NWlont-*-1].\in[NWlont-*-1]}}\crlf
\startnwdeflinemarkup\nwprevnextdefs{\relax}{NWlont-*-2}\stopnwdeflinemarkup
function calculating the probability of a subsequence of length k out of n~{\nwtagstyle{}\at[NWlont-fun1C-1].\in[NWlont-fun1C-1]}\type{}\crlf
\stopnwcodechunk{}
\stoptext
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \defineenumeration
2001-09-20 21:54 \defineenumeration Johannes Huesing
@ 2001-09-21 6:55 ` Patrick Gundlach
0 siblings, 0 replies; 4+ messages in thread
From: Patrick Gundlach @ 2001-09-21 6:55 UTC (permalink / raw)
Hallo Johannes,
Do you really intend to define a list and an enumeration with the same name?
\defineenumeration[nwcodechunkhead]
\definelist[nwcodechunkhead]
If you use the enumeration, you (according to the doc) should use either
\mwcodechunkhead ..... \par or
\startmwcodechunkhead ......... \stopmwcodechunkhead
BTW: what time shall we arrive at eurotex?
--
Viele Grüße,
Patrick Gundlach
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \defineenumeration
2003-09-20 9:19 \defineenumeration Willi Egger
@ 2003-09-23 22:10 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2003-09-23 22:10 UTC (permalink / raw)
At 11:19 20/09/2003 +0200, you wrote:
>Hi,
>
>Thanks Hans for the patch concerning enumerations. - Certain things now work
>as I thought they should, others don't . :-(
>
>In the meantime I downloaded and installed the latest (yesterdays) CONTeXT.
>
>1. Numbering starts at 2, and the following items get numberd 4,6,
oeps, i need to take care of that in the preroll; i'll upload a fresh archive
Hans
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* \defineenumeration
@ 2003-09-20 9:19 Willi Egger
2003-09-23 22:10 ` \defineenumeration Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Willi Egger @ 2003-09-20 9:19 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 583 bytes --]
Hi,
Thanks Hans for the patch concerning enumerations. - Certain things now work
as I thought they should, others don't . :-(
In the meantime I downloaded and installed the latest (yesterdays) CONTeXT.
1. Numbering starts at 2, and the following items get numberd 4,6,
2. I detected, that the option style=command, I used style=\em, does not
give the desired result. The first item would be slanted, the second would
be regular and the third again slanted. - Hoewer using style=slanted makes
all items slanted.
Please find attached a minimal test file (probe.tex)
Cheers Willi
[-- Attachment #2: probe.tex --]
[-- Type: application/octet-stream, Size: 1223 bytes --]
% Test file
% Problem: Enumeration: numbering sequence and reference to an element of the enumeration
% 20-09-2003
\setupoutput[pdftex]
\usemodule[units]
\usetypescript[palatino]
\definetypeface[Myfont] [rm] [serif] [palatino][default] [encoding=texnansi]
\definetypeface[Myfont] [ss] [sans] [helvetica][default] [encoding=texnansi]
\definetypeface[Myfont] [tt] [mono] [courier][default] [encoding=texnansi]
\switchtotypeface[Myfont]
\setupbodyfont[Myfont,rm,10pt]
\defineenumeration
[Literatur]
[location={left,serried},
style=slanted, %style=\em does not give the desired result, first item slanted, second item regular...
width=broad,
distance=12pt,
headstyle=\tf\em,
text=,
left={[},
right={]},
before={\blank[small]\em},
inbetween={\blank[small]},
after={\blank[small]}]
\starttext
See also \type{in [\in{}[Goddijn1994]]}: in [\in{}[Goddijn1994]]
\Literatur[Wiese1964] F. Wiese, Buchbinden, 1964.
\Literatur[Goddijn1994] P. Goddijn. Het restaureren van boeken. Koninklijke Bibliotheek, Den Haag.1994.
\Literatur[Willi2002] HBBBrevier, 2002.
See also (should state in 2): \in{in}[Wiese1964]
\stoptext
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-23 22:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-20 21:54 \defineenumeration Johannes Huesing
2001-09-21 6:55 ` \defineenumeration Patrick Gundlach
2003-09-20 9:19 \defineenumeration Willi Egger
2003-09-23 22:10 ` \defineenumeration 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).