ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problems in latest beta
@ 2009-06-02 16:52 Kevin D. Robbins
  2009-06-02 18:52 ` Hans Hagen
  2009-06-02 20:17 ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Kevin D. Robbins @ 2009-06-02 16:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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.mkiv<http://source.contextgarden.net/tex/context/base/strc-def.mkiv?search=conversionset>re:
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

[-- Attachment #1.2: Type: text/html, Size: 5644 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-06-03 16:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-02 16:52 Problems in latest beta Kevin D. Robbins
2009-06-02 18:52 ` Hans Hagen
2009-06-02 19:44   ` Kevin D. Robbins
2009-06-02 20:17 ` Hans Hagen
2009-06-02 21:54   ` Kevin D. Robbins
2009-06-03  9:06     ` Hans Hagen
2009-06-03 16:50       ` Kevin D. Robbins

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