ousia / from-pandoc-to-context

Environment to parse XHTML from pandoc with ConTeXt
http://www.from-pandoc-to-context.tk
GNU General Public License v2.0
13 stars 3 forks source link

starttableofcontents unknown #11

Closed juh2 closed 9 years ago

juh2 commented 9 years ago

Hi

with the newest version I get this error:

\starttableofcontents seems to be unknown.


juh@sokrates:~/Projekte/Literatur/soziale-plastik-allmende$ make context
pandoc 01.md 02.md 03.md 04.md test.md -S -s --section-divs --filter pandoc-citeproc --bibliography=sudelbuch.bib --csl=../styles/kritische-ausgabe.csl -t html -o tmp.xml && contextjit --purgeall --environment=env.tex --mode=trimsize,no-coverpage tmp.xml --result=build/Soziale-Plastik-Kunst-der-Allmende-8a2c3a8-ConTeXt.pdf

resolvers       | trees | analyzing 'home:texmf'
mtx-context     | run 1: luajittex --fmt="/home/juh/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luajittex/cont-en" --jobname="tmp" --lua="/home/juh/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luajittex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:engine="luajittex" --c:environment="env.tex" --c:fulljobname="./tmp.xml" --c:input="./tmp.xml" --c:kindofrun=1 --c:maxnofruns=9 --c:mode="trimsize,no-coverpage" --c:purgeall --c:result="build/Soziale-Plastik-Kunst-der-Allmende-8a2c3a8-ConTeXt.pdf" "cont-yes.mkiv"
This is LuajitTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238) 
 \write18 enabled.

resolvers       > trees > analyzing 'home:texmf'

system          > callbacks > not registering frozen 'find_format_file'
open source     > 1 > 1 > /home/juh/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.07.01 21:40 MKIV beta  fmt: 2015.7.7  int: english/english

system          > 'cont-new.mkiv' loaded
open source     > 2 > 2 > /home/juh/context/tex/texmf-context/tex/context/base/cont-new.mkiv
close source    > 2 > 2 > /home/juh/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > files > jobname 'tmp', input './tmp.xml', result 'build/Soziale-Plastik-Kunst-der-Allmende-8a2c3a8-ConTeXt.pdf'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > 2 > 3 > env.tex
open source     > 3 > 4 > ../context-environments/env-trimsize5-8.tex
fonts           > typescripts > unknown library 'mainface'
fonts           > preloading latin modern fonts (third stage)
fonts           > 'fallback modern-designsize rm 10pt' is loaded
close source    > 3 > 4 > ../context-environments/env-trimsize5-8.tex
open source     > 3 > 5 > ../context-environments/env-fonts.tex
close source    > 3 > 5 > ../context-environments/env-fonts.tex
open source     > 3 > 6 > ../context-environments/env-heading.tex
close source    > 3 > 6 > ../context-environments/env-heading.tex
open source     > 3 > 7 > ../context-environments/env-makeups.tex
close source    > 3 > 7 > ../context-environments/env-makeups.tex
open source     > 3 > 8 > ../context-environments/layout.tex
resolvers       > modules > 'layout' is loaded
open source     > 4 > 9 > /home/juh/context/tex/texmf-context/tex/context/base/m-layout.tex
close source    > 4 > 9 > /home/juh/context/tex/texmf-context/tex/context/base/m-layout.tex
close source    > 3 > 9 > ../context-environments/layout.tex
open source     > 3 > 10 > ../from-pandoc-to-context/pandoc-xhtml.tex
close source    > 3 > 10 > ../from-pandoc-to-context/pandoc-xhtml.tex
close source    > 2 > 10 > env.tex
sandbox         > call > processing as xml: ./tmp.xml
structures      > begin of sectionblock 'whatcomesfirst'
backend         > xmp > using file '/home/juh/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1
pages           > flushing realpage 2, userpage 2
pages           > flushing realpage 3, userpage 3
pages           > flushing realpage 4, userpage 4
pages           > flushing realpage 5, userpage 5
pages           > flushing realpage 6, userpage 6
structures      > end of sectionblock 'whatcomesfirst'
structures      > begin of sectionblock 'whatcomesfirst'

tex error       > error on line 40 in file /home/juh/context/tex/texmf-context/tex/context/base/cont-yes.mkiv: ! Undefined control sequence

<recently read> \starttableofcontents 

\14>:xml:frontmatter ...ter \starttableofcontents 
                                                  \title {\headtext {content...
l.40 }

\14>:xml:body #1->\xmlflush {#1}

l.37 }

\14>:xml:html ...\xmlatt {#1}{lang}]\xmlflush {#1}

...
l.97 \getvalue{clf_processjob}
                             % from cont-run.lua

30     %     local suffix    = environment.suffix
31     %     local filename  = environment.filename -- hm, not inputfilename !
32     %
33     %     if suffix == "xml" or arguments.forcexml then
34     %
35     %         -- Maybe we should move the preamble parsing here as it
36     %         -- can be part of (any) loaded (sub) file. The \starttext
37     %         -- wrapping might go away.
38     %
39     %         report("processing as xml: %s",filename)
40 >>  %
41     %         context.starttext()
42     %         context.xmlprocess("main",filename,"")
43     %         context.stoptext()
44     %
45     %     elseif suffix == "cld" or arguments.forcecld then
46     %
47     %         report("processing as cld: %s",filename)
48     %
49     %         context.runfile(filename)
ousia commented 9 years ago

The style file was also modified in commit e822798de9f4a7b9f7935e904f8840424760e9cf.

Let me know if I’m missing something else.

juh2 commented 9 years ago

Ah, I missed that.