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> <p>Text.</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
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
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> <p>Text.</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> <p>Text.</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 -----------------------------------------------------------------
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
Aaarghh ... attachments here ... 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
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:preprocess/ ctx:process ctx:resources ctx:environmentxml.ctex ctx:postprocess/ 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 -----------------------------------------------------------------
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:preprocess/ ctx:process ctx:resources ctx:environmentxml.ctex ctx:postprocess/
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
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 -----------------------------------------------------------------
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
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 -----------------------------------------------------------------
Hi All, I have installed tetex-3.0 from source on a linux box and LaTeX and ConTeXt worked fine. I have tried to update the ConTeXt pack following step by step the hints from (Install the latest ConTeXt) http://wiki.contextgarden.net/TeTeX_3.0_installation, but I ended up with: kpathsea: Running mktexmf ec-lmr12 ! I can't find file `ec-lmr12'. <*> ...ljfour; mag:=1; nonstopmode; input ec-lmr12 I found with google that is a classical problem, but I can't find any solution to it. Any hint? Thanks! jk -- Jilani KHALDI http://jkhaldi.oltrelinux.com
Jilani Khaldi wrote:
Hi All, I have installed tetex-3.0 from source on a linux box and LaTeX and ConTeXt worked fine. I have tried to update the ConTeXt pack following step by step the hints from (Install the latest ConTeXt) http://wiki.contextgarden.net/TeTeX_3.0_installation, but I ended up with:
You skipped section 5: Install a Latin Modern font update Cheers, Taco
You skipped section 5: Install a Latin Modern font update
I downloaded "lm.zip" and I followed the the indication in the "readme" file, but the error persists. Any new hint? Thanks. jk -- Jilani KHALDI http://jkhaldi.oltrelinux.com
Jilani Khaldi wrote:
You skipped section 5: Install a Latin Modern font update
I downloaded "lm.zip" and I followed the the indication in the "readme" file, but the error persists. Any new hint?
Can you (do a search on your harddisk and) tell us the exact location of the file ec-lmr10.tfm ? Greetings, Taco
Can you (do a search on your harddisk and) tell us the exact location of the file ec-lmr10.tfm ?
Well, I have reinstalled teTeX again from source and it wroks (LaTeX speeking). I have downloaded cont-tmf.zip unzipped it into /usr/local/teTeX/texmf-local and did "texexec --make -all" (1). No problem. ConTeXt does not work and asked for "ec-lmr*.tfm". Now the questions are: 1. is "lm.zip" is the correct font package to install, and where to install (unzip) it? 2. what is the next step(s)? Many thanks! jk (1): is there a particulary directory where to run "texexec --make -all"? -- Jilani KHALDI http://jkhaldi.oltrelinux.com
Jilani Khaldi wrote:
Well, I have reinstalled teTeX again from source and it wroks (LaTeX speeking). I have downloaded cont-tmf.zip unzipped it into /usr/local/teTeX/texmf-local and did "texexec --make -all" (1). No problem. ConTeXt does not work and asked for "ec-lmr*.tfm". Now the questions are: 1. is "lm.zip" is the correct font package to install, and where to install (unzip) it?
Yes, it is the right file. Like the Wiki page says, the installation instructions are "in the faq": http://www.tex.ac.uk/cgi-bin/texfaq2html?label=uselmfonts
2. what is the next step(s)?
There is no next step after installation.
(1): is there a particulary directory where to run "texexec --make -all"?
no, any place is fine. Cheers, Taco
no, any place is fine.
That's ok. The context installation struggle is finally over. Waiting for the next ones... Thank you very much for your help. jk -- Jilani KHALDI http://jkhaldi.oltrelinux.com
hmm, on Sun, Apr 02, 2006 at 10:34:44PM +0200, Jilani Khaldi said that
You skipped section 5: Install a Latin Modern font update
I downloaded "lm.zip" and I followed the the indication in the "readme" file, but the error persists. Any new hint?
did you do a texhash after? many file names were changed in lm, i think it's better to clear the lm directories before copying the new files so they don't mix. also make sure you have a new context installed, the one which comes with tetex 3.0 has problems with some lm fontmaps/files -f -- he who fights & runs away will live to fight another day.
also make sure you have a new context installed, the one which comes with tetex 3.0 has problems with some lm fontmaps/files
How to install tetex-3.0 without context support, or better, what are the directories/files to remove and where to unzip cont-tmf.zip? Thanks! jk -- Jilani KHALDI http://jkhaldi.oltrelinux.com
participants (5)
-
frantisek holop
-
Hans Hagen
-
Jilani Khaldi
-
Johannes Graumann
-
Taco Hoekwater