Re: [NTG-context] Problems in latest beta

2009-06-03 Thread Kevin D. Robbins
Great! The appendices now increment A, B, C by default. And, all the lists
(contents, figures, tables, acronyms) are now working. Thanks!

Kevin

On Wed, Jun 3, 2009 at 3:06 AM, Hans Hagen  wrote:

> Kevin D. Robbins wrote:
>
>> Great, thanks a lot Hans!
>>
>> In my current test case below everything now works except for
>> \placecontent
>> or \completecontent, which still don't produce anything. Also, I had to
>> add
>> the second argument \placelist[table,widetable][criterium=all] in order to
>> get output. Without [criterium=all] I did not get anything.
>>
>> And, I still haven't figured out the conversion sets for getting
>> appendices
>> labeled A, B, C.
>>
>
> should happen by default
>
> also, look at defs in strc-def.tex (don't use these c! and v! in your
> style, just the words)
>
> lists fixed in next beta (still somewhat tricky as the default settings are
> kind of adaptive)
>
>
>
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -
>
> ___
> 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
>
> ___
>
___
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
___


Re: [NTG-context] Problems in latest beta

2009-06-03 Thread Hans Hagen

Kevin D. Robbins wrote:

Great, thanks a lot Hans!

In my current test case below everything now works except for \placecontent
or \completecontent, which still don't produce anything. Also, I had to add
the second argument \placelist[table,widetable][criterium=all] in order to
get output. Without [criterium=all] I did not get anything.

And, I still haven't figured out the conversion sets for getting appendices
labeled A, B, C.


should happen by default

also, look at defs in strc-def.tex (don't use these c! and v! in your 
style, just the words)


lists fixed in next beta (still somewhat tricky as the default settings 
are kind of adaptive)



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Problems in latest beta

2009-06-02 Thread Kevin D. Robbins
Great, thanks a lot Hans!

In my current test case below everything now works except for \placecontent
or \completecontent, which still don't produce anything. Also, I had to add
the second argument \placelist[table,widetable][criterium=all] in order to
get output. Without [criterium=all] I did not get anything.

And, I still haven't figured out the conversion sets for getting appendices
labeled A, B, C.

=
\definesynonyms[acronym][acronyms][\infull]
\setupcapitals[sc=yes]
\setupsynonyms[acronym][textstyle=small,width=1.25in]

\acronym{ABC}{A Better Compiler}
\acronym{DEF}{Don't Ever Fail}

\definefloat[widefigure][widefigures][figure]
\setupfloat[widefigure]
  [location=inner]

\definefloat[widetable][widetables][table]
\setupfloat[widetable]
  [location=inner]

\starttext

\title{Contents}\placecontent\page
\title{Figures}\placelist[figure,widefigure][criterium=all]\page
\title{Tables}\placelist[table,widetable][criterium=all]\page
\title{Acronyms}\placelistofacronyms\page

\section{\ABC\ Section}
\infull{ABC} (\ABC)

\placewidetable{Bar}{xxx}
\placewidetable{Bar}{xxx}
\placetable{Bar}{yyy}
\placetable{Bar}{yyy}
\placewidetable{Bar}{xxx}

\page

\section{\DEF\ Section}
\infull{DEF} (\DEF)

\placewidefigure{Bar}{xxx}
\placewidefigure{Bar}{xxx}
\placefigure{Bar}{yyy}
\placefigure{Bar}{yyy}
\placewidefigure{Bar}{xxx}

\stoptext
=

Kevin

On Tue, Jun 2, 2009 at 2:17 PM, Hans Hagen  wrote:

> Kevin D. Robbins wrote:
>
>  I have a few remaining problems, that I've discovered so far, that I'd
>> appreciate any help you can give me.
>>
>
> fixed
>
> \placelist[table,widetable]
>
> \placewidetable{Bar}{xxx}
> \placewidetable{Bar}{xxx}
> \placetable{Bar}{yyy}
> \placetable{Bar}{yyy}
> \placewidetable{Bar}{xxx}
>
>
>
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -
>
> ___
> 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
>
> ___
>
___
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
___


Re: [NTG-context] Problems in latest beta

2009-06-02 Thread Hans Hagen

Kevin D. Robbins wrote:


I have a few remaining problems, that I've discovered so far, that I'd
appreciate any help you can give me.


fixed

\placelist[table,widetable]

\placewidetable{Bar}{xxx}
\placewidetable{Bar}{xxx}
\placetable{Bar}{yyy}
\placetable{Bar}{yyy}
\placewidetable{Bar}{xxx}


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Problems in latest beta

2009-06-02 Thread Kevin D. Robbins
Thanks. I updated to:

MTXrun | main context file:
/opt/context/beta/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2009.06.02 20:25

and now \completelistofacronyms does indeed work.

However, \completecontent no longer produces any output (it produced proper
output before). In my real document, the one wide table I have now gets a
number, but \completelistoffigures now produces no output (it produced
proper output before).

I have made a test case that includes acronyms, figures and tables, wide
figures and tables, and lists of contents, figures, tables, and acronyms.
Right now, with this test case, I don't get anything for the list of
contents, figures, or tables, and the wide figure and table do not get
numbers in their captions. But, the list of acronyms works.

=
\definesynonyms[acronym][acronyms][\infull]
\setupcapitals[sc=yes]
\setupsynonyms[acronym][textstyle=small,width=1.25in]

\acronym{ABC}{A Better Compiler}
\acronym{DEF}{Don't Ever Fail}

\definefloat[widefigure][widefigures][figure]
\setupfloat[widefigure]
  [location=inner]

\definefloat[widetable][widetables][table]
\setupfloat[widetable]
  [location=inner]

\starttext

\completecontent\page
\completelistoffigures\page
\completelistoftables\page
\completelistofacronyms\page

\section{\ABC\ Section}
\infull{ABC} (\ABC)

\placewidefigure{Cow}
{\externalfigure[cow][width=\textwidth]}

\section{\DEF\ Section}
\infull{DEF} (\DEF)

\placewidetable[here,force][tab:foo]{Bar}
{\starttable
   [s1
|lp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)|]
  \HL[5]
  \NC Foo \NC \Use4[c]{Bar} \AR
  \NC
  \NC Baz
  \NC Boo
  \NC Blah
  \NC Flub \NC \AR
  \HL[5]
  \NC Bop \NC 3 \NC 1 \NC 0   \NC 2   \NC \AR
  \NC Bap \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Bip \NC 1 \NC 2 \NC 3   \NC 0   \NC \AR
  \NC Nip \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Nup \NC 2 \NC 2 \NC 0   \NC 0   \NC \AR
  \HL[5]
 \stoptable}

\placefigure{Cow}
{\externalfigure[cow][width=\textwidth]}

\placetable[here,force][tab:foo]{Bar}
{\starttable
   [s1
|lp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)|]
  \HL[5]
  \NC Foo \NC \Use4[c]{Bar} \AR
  \NC
  \NC Baz
  \NC Boo
  \NC Blah
  \NC Flub \NC \AR
  \HL[5]
  \NC Bop \NC 3 \NC 1 \NC 0   \NC 2   \NC \AR
  \NC Bap \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Bip \NC 1 \NC 2 \NC 3   \NC 0   \NC \AR
  \NC Nip \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Nup \NC 2 \NC 2 \NC 0   \NC 0   \NC \AR
  \HL[5]
 \stoptable}

\stoptext
=

Kevin

On Tue, Jun 2, 2009 at 12:52 PM, Hans Hagen  wrote:

> Kevin D. Robbins wrote:
>
>  
>> l.10 \completelistofacronyms
>> =
>>
>
> fixed
>
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -
>
> ___
> 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
>
> ___
>
___
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
___


Re: [NTG-context] Problems in latest beta

2009-06-02 Thread Hans Hagen

Kevin D. Robbins wrote:



l.10 \completelistofacronyms
=


fixed

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] Problems in latest beta

2009-06-02 Thread Kevin D. Robbins
In the latest beta, I nearly have everything working for a set of documents
that haven't built cleanly in MkIV since Hans started merging the new
structure code. Thanks, Hans and others, for the steady progress! I've
started reading the new structure code, and I have to say I find it much
easier to understand.

I have a few remaining problems, that I've discovered so far, that I'd
appreciate any help you can give me.

First, I still haven't been able to use \placelistofacronyms or
\completelistofacronyms to produce a list of acronyms used in my document.

Here is my test case:
=
\definesynonyms[acronym][acronyms][\infull]
\setupcapitals[sc=yes]
\setupsynonyms[acronym][textstyle=small,width=1.25in]

\acronym{ABC}{A Better Compiler}
\acronym{DEF}{Don't Ever Fail}

\starttext

\completelistofacronyms

% \title{Acronyms}\placelistofacronyms

\section{\ABC\ Section}
\infull{ABC} (\ABC)

\section{\DEF\ Section}
\infull{DEF} (\DEF)

\stoptext
=

Here is the error:
=
structure   : chapter @ level 2 : 0.1 -> \headtext {acronyms}
! Undefined control sequence.
\dosetsynonymattributes ...def \fontattributehash
  {\synonymparameterhash
#1}...
\@@ddsyndeftitle ...tes \c!textstyle \c!textcolor
  ABC
\doif #1#2->\edef \!!stringa {#1
}\edef \!!stringb {#2}\ifx \!!stringa
\!!str...
\dododescriptioncomponent ...er \c!title }\v!none
  {\global
\nodescriptioncap...
\@@makedescription ...itle ={#2},\c!bookmark =,][]

\@@dostartdescriptionindeed
\dodowithpar ...tes \c!textstyle \c!textcolor ABC}
  #1\@@stopdescription
...
l.10 \completelistofacronyms
=

Second, I use the following float definitions for wide figures and tables.
The floats are placed as I expect, but neither the wide figures nor the wide
tables are given numbers in the caption...I just see "Figure  Foo, bar, baz"
instead of "Figure 1  Foo, bar, baz". However, the other figures and tables
are numbered correctly, so it looks like the counters are incremented, just
not used in the captions for wide figures and tables.

\definefloat[widefigure][widefigures][figure]
\setupfloat[widefigure]
  [location=inner]

\definefloat[widetable][widetables][table]
\setupfloat[widetable]
  [location=inner]

Here is a test case:
=
\definefloat[widetable][widetables][table]
\setupfloat[widetable]
  [location=inner]

\starttext

\completelistoftables
\page[yes]

\placewidetable[here,force][tab:foo]{Bar}
{\starttable
   [s1
|lp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)|]
  \HL[5]
  \NC Foo \NC \Use4[c]{Bar} \AR
  \NC
  \NC Baz
  \NC Boo
  \NC Blah
  \NC Flub \NC \AR
  \HL[5]
  \NC Bop \NC 3 \NC 1 \NC 0   \NC 2   \NC \AR
  \NC Bap \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Bip \NC 1 \NC 2 \NC 3   \NC 0   \NC \AR
  \NC Nip \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Nup \NC 2 \NC 2 \NC 0   \NC 0   \NC \AR
  \HL[5]
 \stoptable}

\placetable[here,force][tab:foo]{Bar}
{\starttable
   [s1
|lp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)|]
  \HL[5]
  \NC Foo \NC \Use4[c]{Bar} \AR
  \NC
  \NC Baz
  \NC Boo
  \NC Blah
  \NC Flub \NC \AR
  \HL[5]
  \NC Bop \NC 3 \NC 1 \NC 0   \NC 2   \NC \AR
  \NC Bap \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Bip \NC 1 \NC 2 \NC 3   \NC 0   \NC \AR
  \NC Nip \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Nup \NC 2 \NC 2 \NC 0   \NC 0   \NC \AR
  \HL[5]
 \stoptable}

\stoptext
=

Third, I can't get my appendices to count in letters A, B, C, etc. Following
Hans' suggestion, I read
strc-def.mkivre:
conversion sets. I tried adding these lines to my document:

\definestructureseparatorset  [appendix] [] [.]
\definestructureconversionset [appendix] [Romannumerals,Characters] [numbers]
\definestructureresetset  [appendix] [] [0]
\setupstructureblock[appendix][sectionconversionset=appendix]
\setupstructurehead[chapter][sectionconversionset=\structureblockparameter\c!sectionconversionset]

But, I still see the appendices counting 1, 2, 3, etc. Where am I going wrong?

I built all these examples using ConTeXt Minimals Versions:

MTXrun | main context file:
/opt/context/beta/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2009.06.02 09:30

This is LuaTeX, Version beta-0.40.1-2009050920 (Web2C 7.5.7) luatex.web >=
v2376

Thanks,

Kevin
___
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/contex