ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: ntg-context Digest, Vol 100, Issue 63
       [not found] <mailman.619.1351009277.2084.ntg-context@ntg.nl>
@ 2012-10-23 17:36 ` Shane Peelar
  2012-10-23 18:31   ` Some odd behaviour I noticed in MkIV with respect to enumerations Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Shane Peelar @ 2012-10-23 17:36 UTC (permalink / raw)
  To: ntg-context


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

Hi Wolfgang,

Thanks for the quick and helpful reply.  Is there also a way to change just
the number colour and style in the example you provided?

-Shane Peelar

On Tue, Oct 23, 2012 at 12:21 PM, <ntg-context-request@ntg.nl> wrote:

> Send ntg-context mailing list submissions to
>         ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://www.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>         ntg-context-request@ntg.nl
>
> You can reach the person managing the list at
>         ntg-context-owner@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>    1. Re: Lua in Ctx: "require()" fails? (Hans Hagen)
>    2. Re: using two columns on a poster (\setlayerframed) (Hans Hagen)
>    3. Re: Lua in Ctx: "require()" fails?
>       (Proch?zka Luk?? Ing. - Pontex s. r. o.)
>    4. Re: TABLE: header with a thick bottom line (Rogers, Michael K)
>    5. Re: Lua in Ctx: "require()" fails? (Hans Hagen)
>    6. Some odd behaviour I noticed in MkIV with respect to
>       enumerations (Shane Peelar)
>    7. Re: Some odd behaviour I noticed in MkIV with respect     to
>       enumerations (Wolfgang Schuster)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 23 Oct 2012 16:53:01 +0200
> From: Hans Hagen <pragma@wxs.nl>
> To: "Proch?zka Luk?? Ing. - Pontex s. r. o." <LPr@pontex.cz>
> Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] Lua in Ctx: "require()" fails?
> Message-ID: <5086AF4D.4000708@wxs.nl>
> Content-Type: text/plain; charset=ISO-8859-2; format=flowed
>
> On 23-10-2012 16:37, Proch?zka Luk?? Ing. - Pontex s. r. o. wrote:
>
> > resolvers       > libraries > ! checking for "Test.lua" using "lua" path
> > "d:/Lukas/Lua/?.lua"
> > "
> >
> > in the output log but "d:\Lukas\Lua\Test.lua" is not found here (?!).
> >
> > So - ?
>
> no clue ... maybe an error in test.lua
>
> ----------------------------------------------------------------
>                                            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
> -----------------------------------------------------------------
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 23 Oct 2012 16:54:13 +0200
> From: Hans Hagen <pragma@wxs.nl>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Cc: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
> Subject: Re: [NTG-context] using two columns on a poster
>         (\setlayerframed)
> Message-ID: <5086AF95.2080904@wxs.nl>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 23-10-2012 16:21, Mojca Miklavec wrote:
> > On Tue, Oct 23, 2012 at 4:05 PM, Aditya Mahajan wrote:
> >> Perhaps, \startsimplecolumns
> >
> > Ouch. It seems like I'm asking the same question over and over again,
> > and always get the same answer - to simplify things ;) This works in
> > MKIV, but I have some problems with math in MKIV. In MKII this fails
> > with
> >
> > ! Incomplete \iffalse; all text was ignored after line 49.
> > <inserted text>
> >                  \fi
> > <*> poster.tex
> >
> > ?
>
> so how does your code look
>
> -----------------------------------------------------------------
>                                            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
> -----------------------------------------------------------------
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 23 Oct 2012 16:58:57 +0200
> From: Proch?zka Luk?? Ing. - Pontex s. r. o.  <LPr@pontex.cz>
> To: "Hans Hagen" <pragma@wxs.nl>, ConTeXt <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] Lua in Ctx: "require()" fails?
> Message-ID: <op.wmmzwjd6tpjj8f@lpr>
> Content-Type: text/plain; charset=iso-8859-2; format=flowed; delsp=yes
>
> On Tue, 23 Oct 2012 16:53:01 +0200, Hans Hagen <pragma@wxs.nl> wrote:
>
> > On 23-10-2012 16:37, Proch?zka Luk?? Ing. - Pontex s. r. o. wrote:
> >
> >> resolvers       > libraries > ! checking for "Test.lua" using "lua" path
> >> "d:/Lukas/Lua/?.lua"
> >> "
> >>
> >> in the output log but "d:\Lukas\Lua\Test.lua" is not found here (?!).
> >>
> >> So - ?
> >
> > no clue ... maybe an error in test.lua
>
> ... Have you seen the content of "Test.lua"? It just prints some text...
>
> When I downgraded Ctx to the previous installed version, it works...
>
> Lukas
>
>
> --
> Ing. Luk?? Proch?zka [mailto:LPr@pontex.cz]
> Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
> Bezov? 1658
> 147 14 Praha 4
>
> Tel: +420 244 062 238
> Fax: +420 244 461 038
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 23 Oct 2012 15:13:10 +0000
> From: "Rogers, Michael K" <mroge02@emory.edu>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] TABLE: header with a thick bottom line
> Message-ID:
>         <
> 1E5A50C784A8AD44B420EF5A1E9B2806AFC33F0C@e14mbx20n.Enterprise.emory.net>
>
> Content-Type: text/plain; charset="iso-8859-2"
>
> One issue is that the overlay overlaps the text space (reduces whitespace
> or potentially overlaps letters).  One could use a blank row with a black
> background, but a row seems to have a minimum height of about 2mm.  I
> discovered the "boffset" key, which can be used with the overlay, but it's
> kludgy.
>
> Perhaps there is a better way...
>
> Michael
>
>
> \startuseMPgraphic{MP:thickBtm}
>  draw bottomboundary OverlayBox withpen pensquare scaled
> \frameddimension{bottomrulethickness};
>  clip currentpicture to OverlayBox;
>  setbounds currentpicture to OverlayBox;
> \stopuseMPgraphic
>
> \defineoverlay[OL:thickBtm][\useMPgraphic{MP:thickBtm}]
>
> \starttext
>  \bTABLE % Overlay method
>    \setupTABLE[align=middle]
>    % By eye, by trial: boffset = bottomrulethickness/2 - 0.2mm
>
>  \setupTABLE[header][background={OL:thickBtm},bottomrulethickness=3mm,boffset=1.3mm]
>    \setupTABLE[row][4][background={OL:thickBtm},bottomrulethickness=1.5mm,
> boffset=.55mm]
>    %
>    \bTABLEhead\bTR\dorecurse{3}{\bTH#1\eTH}\eTR\eTABLEhead
>
>  \bTABLEbody\dorecurse{6}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR}\eTABLEbody
>  \eTABLE
> \stoptext
>
>
> ________________________________
>
> This e-mail message (including any attachments) is for the sole use of
> the intended recipient(s) and may contain confidential and privileged
> information. If the reader of this message is not the intended
> recipient, you are hereby notified that any dissemination, distribution
> or copying of this message (including any attachments) is strictly
> prohibited.
>
> If you have received this message in error, please contact
> the sender by reply e-mail message and destroy all copies of the
> original message (including attachments).
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 23 Oct 2012 17:28:58 +0200
> From: Hans Hagen <pragma@wxs.nl>
> To: "Proch?zka Luk?? Ing. - Pontex s. r. o." <LPr@pontex.cz>
> Cc: ConTeXt <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] Lua in Ctx: "require()" fails?
> Message-ID: <5086B7BA.1090007@wxs.nl>
> Content-Type: text/plain; charset=ISO-8859-2; format=flowed
>
> On 23-10-2012 16:58, Proch?zka Luk?? Ing. - Pontex s. r. o. wrote:
> > On Tue, 23 Oct 2012 16:53:01 +0200, Hans Hagen <pragma@wxs.nl> wrote:
> >
> >> On 23-10-2012 16:37, Proch?zka Luk?? Ing. - Pontex s. r. o. wrote:
> >>
> >>> resolvers       > libraries > ! checking for "Test.lua" using "lua"
> path
> >>> "d:/Lukas/Lua/?.lua"
> >>> "
> >>>
> >>> in the output log but "d:\Lukas\Lua\Test.lua" is not found here (?!).
> >>>
> >>> So - ?
> >>
> >> no clue ... maybe an error in test.lua
> >
> > .... Have you seen the content of "Test.lua"? It just prints some text...
> >
> > When I downgraded Ctx to the previous installed version, it works...
>
> When I make
>
> e:\tmp\whatever.lua (current path)
> e:\tmp\whatever\something.lua
>
> And run
>
> \starttext
>
>      \enabletrackers[resolvers.libraries]
>
>      \startluacode
>          print("LUAINPUTS",os.getenv("LUAINPUTS"))
>
>          require("whatever") ;
>          require("something") ;
>      \stopluacode
>
> \stoptext
>
> i get
>
> LUAINPUTS       e:/tmp/whatever
> resolvers       > libraries > ! locating "whatever" as "whatever.lua"
> using formats "texlua"
> resolvers       > libraries > ! checking for "whatever.lua"' using
> format "tex"
> resolvers       > libraries > ! lib "whatever.lua" located on
> "whatever.lua"
> whatever
> resolvers       > libraries > ! locating "something" as "something.lua"
> using formats "texlua"
> resolvers       > libraries > ! checking for "something.lua"' using
> format "tex"
> resolvers       > libraries > ! checking for "something.lua"' using
> format "lua"
> resolvers       > libraries > ! lib "something.lua" located on
> "e:/tmp/whatever/something.lua"
> something
>
> so it must be something with your path spec
>
> -----------------------------------------------------------------
>                                            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
> -----------------------------------------------------------------
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 23 Oct 2012 11:58:05 -0400
> From: Shane Peelar <lookatyouhacker@gmail.com>
> To: ntg-context@ntg.nl
> Subject: [NTG-context] Some odd behaviour I noticed in MkIV with
>         respect to      enumerations
> Message-ID:
>         <CAEseUXkaFYJTGP=K=
> BGRL8kZTyzYxkEHvOhqGa-VHb7B0bLPng@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello everyone,
>
> I was going through a tutorial to learn how to set up theorem-like
> environments in ConTeXt:
> http://www.ntg.nl/maps/36/09.pdf
>
> and I noticed a few strange behaviours.  I recognize that this tutorial was
> written for MkII ConTeXt,
> but after consulting the documentation in the latest ConTeXt manual and the
> wiki, I have determined
> that these features should still work.  I'm looking at the "list"
> functionality of enumerations and descriptions.
> In MkII, you can do the following:
>
> \defineenumeration[blah][
> ...
> list=listname,
> listtext={Text goes here}]
>
> and every time the enumeration is used, it'll be placed in the list you
> specify.
> The tutorial referenced above uses this to place a list of theorems with
> proper naming and numbering,
> as well as lemmas and other math things.  In MkIV, I noticed that this
> functionality doesn't work, or at least not in the same way.  I was not
> able to do:
>
> \placelist[enumeration:listname]
>
> for example.  I was able to do \placelist[blah], however.  After scouring
> this mailing list and consulting the source code, I haven't been able to
> find anything that would give me this functionality in MkIV.  Was this
> intentional, or is there another way to get this functionality back?
>
> The other strangeness I noticed was the "separator" option in
> defineenumeration.
> Normally one could do:
> \defineenumeration[blah2][
> ...
> separator=--]
>
> and things would work as they should, however this doesn't seem to work in
> MkIV.  The last piece of functionality I noticed was not being able to set
> the number style in defineenumeration (which again works in MkII, tested
> this morning), like so:
>
> \defineenumeration[blah3][
> numberstyle=bold]
>
> The wiki shows that these options should all be there, and they appear to
> be at least referenced in the source code, but I'm not familiar enough with
> the codebase to really give a good judgment of that.  I noticed in one file
> "strc-des.mkiv" it says in a comment "lists and titles are experimental".
> Could anyone please help me out with these features?
>
> Thanks,
> Shane Peelar
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.ntg.nl/pipermail/ntg-context/attachments/20121023/aa97590f/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 7
> Date: Tue, 23 Oct 2012 18:21:09 +0200
> From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] Some odd behaviour I noticed in MkIV with
>         respect to enumerations
> Message-ID: <EAA672F0-522D-48F4-8DFB-E52F670ECCE3@gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Am 23.10.2012 um 17:58 schrieb Shane Peelar <lookatyouhacker@gmail.com>:
>
> > Hello everyone,
> >
> > I was going through a tutorial to learn how to set up theorem-like
> environments in ConTeXt:
> > http://www.ntg.nl/maps/36/09.pdf
> >
> > and I noticed a few strange behaviours.  I recognize that this tutorial
> was written for MkII ConTeXt,
> > but after consulting the documentation in the latest ConTeXt manual and
> the wiki, I have determined
> > that these features should still work.  I'm looking at the "list"
> functionality of enumerations and descriptions.
> > In MkII, you can do the following:
> >
> > \defineenumeration[blah][
> > ...
> > list=listname,
> > listtext={Text goes here}]
> >
> > and every time the enumeration is used, it'll be placed in the list you
> specify.
> > The tutorial referenced above uses this to place a list of theorems with
> proper naming and numbering,
> > as well as lemmas and other math things.  In MkIV, I noticed that this
> functionality doesn't work, or at least not in the same way.  I was not
> able to do:
> >
> > \placelist[enumeration:listname]
> >
> > for example.  I was able to do \placelist[blah], however.  After
> scouring this mailing list and consulting the source code, I haven't been
> able to find anything that would give me this functionality in MkIV.  Was
> this intentional, or is there another way to get this functionality back?
> >
> > The other strangeness I noticed was the "separator" option in
> defineenumeration.
> > Normally one could do:
> > \defineenumeration[blah2][
> > ...
> > separator=--]
> >
> > and things would work as they should, however this doesn't seem to work
> in MkIV.  The last piece of functionality I noticed was not being able to
> set the number style in defineenumeration (which again works in MkII,
> tested this morning), like so:
> >
> > \defineenumeration[blah3][
> > numberstyle=bold]
> >
> > The wiki shows that these options should all be there, and they appear
> to be at least referenced in the source code, but I'm not familiar enough
> with the codebase to really give a good judgment of that.  I noticed in one
> file "strc-des.mkiv" it says in a comment "lists and titles are
> experimental".  Could anyone please help me out with these features?
>
> \defineseparatorset[dash][][--]
>
> \defineenumeration
>   [test]
>   [text=Test,
>    headstyle=bolditalic,
>    numberseparatorset=dash]
>
> \starttext
>
> \placelist[test]
>
> \starttest[title={Knuth}]
> \input knuth
> \stoptest
>
> \startsubtest[title={Zapf}]
> \input zapf
> \stopsubtest
>
> \stoptext
>
> Wolfgang
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.ntg.nl/pipermail/ntg-context/attachments/20121023/acad7702/attachment.html
> >
>
> ------------------------------
>
>
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>
> End of ntg-context Digest, Vol 100, Issue 63
> ********************************************
>

[-- Attachment #1.2: Type: text/html, Size: 21889 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] 4+ messages in thread

* Re: Some odd behaviour I noticed in MkIV with respect to enumerations
  2012-10-23 17:36 ` ntg-context Digest, Vol 100, Issue 63 Shane Peelar
@ 2012-10-23 18:31   ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2012-10-23 18:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 23.10.2012 um 19:36 schrieb Shane Peelar <lookatyouhacker@gmail.com>:

> Hi Wolfgang,
> 
> Thanks for the quick and helpful reply.  Is there also a way to change just the number colour and style in the example you provided?

\defineseparatorset [testseparator] [][–]

\defineprocessor[teststyle][style=bolditalic]
\defineconversionset[testconversion][][teststyle->number]

%\defineprocessor[one][style=italic,color=red]
%\defineprocessor[two][style=normal,color=blue]
%\defineconversionset[testconversion][one->number,two->number][teststyle->number]

\defineenumeration
  [test]
  [text=Test,
   headstyle=bold,
   numberconversionset=testconversion,
   numberseparatorset=testseparator]

\starttext

\placelist[test]

\starttest[title={Knuth}]
\input knuth
\stoptest

\startsubtest[title={Zapf}]
\input zapf
\stopsubtest

\stoptext

Wolfgang
___________________________________________________________________________________
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] 4+ messages in thread

* Re: Some odd behaviour I noticed in MkIV with respect to enumerations
  2012-10-23 15:58 Shane Peelar
@ 2012-10-23 16:21 ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2012-10-23 16:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


Am 23.10.2012 um 17:58 schrieb Shane Peelar <lookatyouhacker@gmail.com>:

> Hello everyone,
> 
> I was going through a tutorial to learn how to set up theorem-like environments in ConTeXt:
> http://www.ntg.nl/maps/36/09.pdf
> 
> and I noticed a few strange behaviours.  I recognize that this tutorial was written for MkII ConTeXt,
> but after consulting the documentation in the latest ConTeXt manual and the wiki, I have determined
> that these features should still work.  I'm looking at the "list" functionality of enumerations and descriptions.
> In MkII, you can do the following:
> 
> \defineenumeration[blah][
> ...
> list=listname,
> listtext={Text goes here}]
> 
> and every time the enumeration is used, it'll be placed in the list you specify.
> The tutorial referenced above uses this to place a list of theorems with proper naming and numbering,
> as well as lemmas and other math things.  In MkIV, I noticed that this functionality doesn't work, or at least not in the same way.  I was not able to do:
> 
> \placelist[enumeration:listname]
> 
> for example.  I was able to do \placelist[blah], however.  After scouring this mailing list and consulting the source code, I haven't been able to find anything that would give me this functionality in MkIV.  Was this intentional, or is there another way to get this functionality back?
> 
> The other strangeness I noticed was the "separator" option in defineenumeration.
> Normally one could do:
> \defineenumeration[blah2][
> ...
> separator=--]
> 
> and things would work as they should, however this doesn't seem to work in MkIV.  The last piece of functionality I noticed was not being able to set the number style in defineenumeration (which again works in MkII, tested this morning), like so:
> 
> \defineenumeration[blah3][
> numberstyle=bold]
> 
> The wiki shows that these options should all be there, and they appear to be at least referenced in the source code, but I'm not familiar enough with the codebase to really give a good judgment of that.  I noticed in one file "strc-des.mkiv" it says in a comment "lists and titles are experimental".  Could anyone please help me out with these features?

\defineseparatorset[dash][][--]

\defineenumeration
  [test]
  [text=Test,
   headstyle=bolditalic,
   numberseparatorset=dash]

\starttext

\placelist[test]

\starttest[title={Knuth}]
\input knuth
\stoptest

\startsubtest[title={Zapf}]
\input zapf
\stopsubtest

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 3258 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] 4+ messages in thread

* Some odd behaviour I noticed in MkIV with respect to enumerations
@ 2012-10-23 15:58 Shane Peelar
  2012-10-23 16:21 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Shane Peelar @ 2012-10-23 15:58 UTC (permalink / raw)
  To: ntg-context


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

Hello everyone,

I was going through a tutorial to learn how to set up theorem-like
environments in ConTeXt:
http://www.ntg.nl/maps/36/09.pdf

and I noticed a few strange behaviours.  I recognize that this tutorial was
written for MkII ConTeXt,
but after consulting the documentation in the latest ConTeXt manual and the
wiki, I have determined
that these features should still work.  I'm looking at the "list"
functionality of enumerations and descriptions.
In MkII, you can do the following:

\defineenumeration[blah][
...
list=listname,
listtext={Text goes here}]

and every time the enumeration is used, it'll be placed in the list you
specify.
The tutorial referenced above uses this to place a list of theorems with
proper naming and numbering,
as well as lemmas and other math things.  In MkIV, I noticed that this
functionality doesn't work, or at least not in the same way.  I was not
able to do:

\placelist[enumeration:listname]

for example.  I was able to do \placelist[blah], however.  After scouring
this mailing list and consulting the source code, I haven't been able to
find anything that would give me this functionality in MkIV.  Was this
intentional, or is there another way to get this functionality back?

The other strangeness I noticed was the "separator" option in
defineenumeration.
Normally one could do:
\defineenumeration[blah2][
...
separator=--]

and things would work as they should, however this doesn't seem to work in
MkIV.  The last piece of functionality I noticed was not being able to set
the number style in defineenumeration (which again works in MkII, tested
this morning), like so:

\defineenumeration[blah3][
numberstyle=bold]

The wiki shows that these options should all be there, and they appear to
be at least referenced in the source code, but I'm not familiar enough with
the codebase to really give a good judgment of that.  I noticed in one file
"strc-des.mkiv" it says in a comment "lists and titles are experimental".
Could anyone please help me out with these features?

Thanks,
Shane Peelar

[-- Attachment #1.2: Type: text/html, Size: 2288 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] 4+ messages in thread

end of thread, other threads:[~2012-10-23 18:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.619.1351009277.2084.ntg-context@ntg.nl>
2012-10-23 17:36 ` ntg-context Digest, Vol 100, Issue 63 Shane Peelar
2012-10-23 18:31   ` Some odd behaviour I noticed in MkIV with respect to enumerations Wolfgang Schuster
2012-10-23 15:58 Shane Peelar
2012-10-23 16:21 ` Wolfgang Schuster

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