Re: [NTG-context] XML and 'Table of Contents'

2006-04-11 Thread Hans Hagen
Johannes Graumann wrote:
 Hans Hagen wrote:
   
 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 ...
   
   
 either add multiple environment entries to a ctx file or say
 --environment=xmlbase,xmlmore (comma separated list)
 
 Thanks!

 Do you have any insight into why the page numbers for sections might be
 showing up in the margin when calling '\completecontent[criterium=text]'?
 The offset of the section-page numbers in relation to the chapter ones
 seems to be identical to the indentation of the section entries in relation
 to the chapter entries ... see attachment.
   
is this working ok in the latest release? 

Hans 

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML and 'Table of Contents'

2006-04-11 Thread Johannes Graumann
Hans Hagen wrote:
 is this working ok in the latest release?
Yes Sir - was my stupidity to begin with ... had indenting set
to '[medium]'.

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML and 'Table of Contents'

2006-03-29 Thread Hans Hagen
Johannes Graumann wrote:
 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 ...
   

either add multiple environment entries to a ctx file or say 
--environment=xmlbase,xmlmore (comma separated list)

Hans

 

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML and 'Table of Contents'

2006-03-29 Thread Johannes Graumann
Hans Hagen wrote:
 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 ...
   
 
 either add multiple environment entries to a ctx file or say
 --environment=xmlbase,xmlmore (comma separated list)
Thanks!

Do you have any insight into why the page numbers for sections might be
showing up in the margin when calling '\completecontent[criterium=text]'?
The offset of the section-page numbers in relation to the chapter ones
seems to be identical to the indentation of the section entries in relation
to the chapter entries ... see attachment.

Joh

PhD-Thesis.pdf
Description: Adobe PDF document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML and 'Table of Contents'

2006-03-28 Thread Hans Hagen
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:messagewhatever you like/ctx:message
ctx:preprocess/
ctx:process
ctx:resources
ctx:environmentxml.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
 pText./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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML and 'Table of Contents'

2006-03-28 Thread Johannes Graumann
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:messagewhatever you like/ctx:message
 ctx:preprocess/
 ctx:process
 ctx:resources
 ctx:environmentxml.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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML and 'Table of Contents'

2006-03-27 Thread Taco Hoekwater


Johannes Graumann wrote:
 Hello,
 
 I'm writing a XML style sheet for ConTeXt, which contains the following
 definitions:
 \defineXMLargument  [chapter] {\chapter{\XMLvar{chapter}{title}{}}}

I don't remember the correct syntax off-hand, but this would match:

 chapter title=Title

Cheers, taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML and 'Table of Contents'

2006-03-27 Thread Hans Hagen
Johannes Graumann wrote:
 Hello,

 I'm writing a XML style sheet for ConTeXt, which contains the following
 definitions:
 \defineXMLargument  [chapter] {\chapter{\XMLvar{chapter}{title}{}}}
 \defineXMLargument  [tableofcontents] {\completecontent}

 When reading a file like 
 document
   frontmatter
 titlepage
 ...
 /titlepage
 dedication
 ...
 /dedication
 aknowledgements
 ...
 /aknowledgements
 abstract
 ...
 /abstract
 tableofcontents/
   /frontmatter
   bodymatter
 chapter
 title
 Title
 /title
 pText./p
 /chapter
   /bodymatter
   appendices
 ...
   /appendices
 /document

 I get the 'Contents' title of the table of contents, but the Chapter does
 not show up ... any hints?
   
see taco's mail for the attribute solution, here is the element one: 


\defineXMLenvironment
[chapter]
{\defineXMLargument[title]{\chapter}
 \defineXMLprocess[content]}
{}

\defineXMLargument
[tableofcontents]
{\completecontent}

chapter
title
Title
/title
content
pText./p
/content
/chapter


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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML and 'Table of Contents'

2006-03-27 Thread Johannes Graumann
Hans Hagen wrote:
 \defineXMLenvironment
 [chapter]
 {\defineXMLargument[title]{\chapter}
  \defineXMLprocess[content]}
 {}
 
 \defineXMLargument
 [tableofcontents]
 {\completecontent}
 
 chapter
 title
 Title
 /title
 content
 pText./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


[NTG-context] XML and 'Table of Contents'

2006-03-24 Thread Johannes Graumann
Hello,

I'm writing a XML style sheet for ConTeXt, which contains the following
definitions:
\defineXMLargument  [chapter] {\chapter{\XMLvar{chapter}{title}{}}}
\defineXMLargument  [tableofcontents] {\completecontent}

When reading a file like 
document
  frontmatter
titlepage
...
/titlepage
dedication
...
/dedication
aknowledgements
...
/aknowledgements
abstract
...
/abstract
tableofcontents/
  /frontmatter
  bodymatter
chapter
title
Title
/title
pText./p
/chapter
  /bodymatter
  appendices
...
  /appendices
/document

I get the 'Contents' title of the table of contents, but the Chapter does
not show up ... any hints?

Thanks, Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context