ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: XML and 'Table of Contents'
Date: Tue, 28 Mar 2006 10:13:00 +0200	[thread overview]
Message-ID: <4428F00C.7000600@wxs.nl> (raw)
In-Reply-To: <e09po9$v5c$1@sea.gmane.org>

Johannes Graumann wrote:
> Aaarghh ... attachments here ... 
>   

texexec --env=xml.ctex --pdf xml.xml

with

\defineXMLargument  [tableofcontents] {\completecontent[criterium=text]}
\defineXMLargument  [listoffigures]   
{\completelistoffigures[criterium=text]}
\defineXMLargument  [listoftables]    
{\completelistoftables[criterium=text]}

(by default tocs are local (i.e. if you ask for one in a chapter, you 
get one with sections)

btw, if you use newtexexec, you can make a

xml.ctx file that says:

<?xml version='1.0' standalone='yes'?>

<ctx:job>
    <ctx:message>whatever you like</ctx:message>
    <ctx:preprocess/>
    <ctx:process>
        <ctx:resources>
            <ctx:environment>xml.ctex</ctx:environment>
        </ctx:resources>
    </ctx:process>
    <ctx:postprocess/>
</ctx:job>

and directly run:

newtexexec xml.xml

> Johannes Graumann wrote:
>
>   
>> Hans Hagen wrote:
>>     
>>> \defineXMLenvironment
>>>     [chapter]
>>>     {\defineXMLargument[title]{\chapter}
>>>      \defineXMLprocess[content]}
>>>     {}
>>>
>>> \defineXMLargument
>>>     [tableofcontents]
>>>     {\completecontent}
>>>
>>>     <chapter>
>>>         <title>
>>>                 Title
>>>         </title>
>>> <content>
>>>         <p>Text.</p>
>>> </content>
>>>     </chapter>
>>>       
>> Hans, thank you so much for your patience with this ambitious newbie ...
>> who still can't get this to work. With your help (see above) the chapter
>> is now showing up as intended - but still missing from the table of
>> contents (which I already had defined as you propose).
>>
>> I attach my xml and the ConTeXt file embedding it, as well as the pdf
>> output and would greatly appreciate if you (or some other kind soul) could
>> enlighten me as to what I am doing wrong.
>>
>> Thanks for all the help!
>>
>> Deadlined, Joh
>>     
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> ntg-context mailing list
>> ntg-context@ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>     


-- 

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

  reply	other threads:[~2006-03-28  8:13 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-25  1:17 Johannes Graumann
2006-03-27  9:07 ` Taco Hoekwater
2006-03-27 21:56   ` Johannes Graumann
2006-03-27 11:52 ` Hans Hagen
2006-03-27 22:35   ` Johannes Graumann
2006-03-27 22:41     ` Johannes Graumann
2006-03-28  8:13       ` Hans Hagen [this message]
2006-03-28 20:10         ` Johannes Graumann
2006-03-29 10:51           ` Hans Hagen
2006-03-29 17:57             ` Johannes Graumann
2006-04-11 21:35               ` Hans Hagen
2006-04-11 23:58                 ` Johannes Graumann
2006-04-02 15:07         ` ! I can't find file `ec-lmr12'. Again! Jilani Khaldi
2006-04-02 16:06           ` Taco Hoekwater
2006-04-02 20:34             ` Jilani Khaldi
2006-04-03  7:46               ` Taco Hoekwater
2006-04-03 12:20                 ` Jilani Khaldi
2006-04-03 12:25                   ` Taco Hoekwater
2006-04-03 13:30                     ` Jilani Khaldi
2006-04-03  9:57               ` frantisek holop
2006-04-03 12:53                 ` Jilani Khaldi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4428F00C.7000600@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).