ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Johannes Graumann <johannes_graumann@web.de>
Subject: Re: XML and 'Table of Contents'
Date: Tue, 28 Mar 2006 12:10:09 -0800	[thread overview]
Message-ID: <e0c59e$a65$1@sea.gmane.org> (raw)
In-Reply-To: <4428F00C.7000600@wxs.nl>

Hans Hagen wrote:

First: Thank you for your continued help! Works now, but there seems to be a
bug ... see below.

> texexec --env=xml.ctex --pdf xml.xml
I was wondering whether there is a possibility to use '(new)texexec' with
THREE input files: one describing the XML/ConTeXt mappings, one taking care
of document specific ConTeXt stuff (formating) and one for the XML itself?
Would make the 'mappings' file more portable ...

> \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)
Thank you very much for this - I have entries in my TOC now. However, the
page numbers for my sections show up in the margins ... is this a bug? How
would I fix that?

> 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
This sounds really great ... but Debian unstable doesn't contain this file
yet - 'texexec --version' gets me:
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005

               texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
               texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
                   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
               context : ver: 2005.01.31
               cont-en : ver: 2005.01.31  fmt: 2006.3.24  mes: english

        total run time : 1 seconds

I'm hesitant to leave debian for this at this point - need all the time a
can get for this document - will the 'newtexexec' script just work with any
ole' ConTeXt install?

Joh

  reply	other threads:[~2006-03-28 20:10 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
2006-03-28 20:10         ` Johannes Graumann [this message]
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='e0c59e$a65$1@sea.gmane.org' \
    --to=johannes_graumann@web.de \
    --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).