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

Errors after upgrading context #13

Closed juh2 closed 8 years ago

juh2 commented 8 years ago

I am not sure whether this is an issue of pandoc-to-context or of context.

I upgraded context to the latest beta and get this error when compiling my book.

Any ideas what is going wrong?

juh@sokrates:~/Projekte/Literatur/soziale-plastik-allmende$ make context
pandoc 01.md 02.md 03.md 04.md -S -s --section-divs --filter pandoc-citeproc --bibliography=sozialeplastik.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-e3e4968-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-e3e4968-ConTeXt.pdf" "cont-yes.mkiv"
This is LuajitTeX, Version beta-0.81.0 (TeX Live 2016/dev) (rev 5350) 
 \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.10.09 21:28 MKIV beta  fmt: 2015.11.17  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-e3e4968-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-fonts.tex
close source    > 3 > 4 > ../context-environments/env-fonts.tex
open source     > 3 > 5 > ../context-environments/env-trimsize5-8.tex
close source    > 3 > 5 > ../context-environments/env-trimsize5-8.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'
error: .../context/tex/texmf-context/tex/context/base/lang-hyp.lua:1183: attempt to call global 'setdisc' (a nil value)

tex error       > tex error on line 8 in file /home/juh/context/tex/texmf-context/tex/context/base/cont-yes.mkiv: ?

\14>:xml:titlepage ...#1}{h1[@class='title']}\par 
                                                  }\blank [big]{\resetbreakp...
l.8 }

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

l.37 }

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

l.8 }

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

 1     %D \module
 2     %D   [       file=cont-yes,
 3     %D        version=2012.06.01,
 4     %D          title=\CONTEXT\ Miscellaneous Macros,
 5     %D       subtitle=Startup Stub,
 6     %D         author=Hans Hagen,
 7     %D           date=\currentdate,
 8 >>  %D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
 9     %C
10     %C This module is part of the \CONTEXT\ macro||package and is
11     %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12     %C details.
13     
14     % At some point I will reconsider the \starttext .. \stoptext
15     % wraping as we can assume proper styling. It's a left-over from
16     % mkii that we need to get rid of.
17     
18     % now moved to cont-run.lua
juh2 commented 8 years ago

I get an similar error when I compile the source in from-pandoc-to-context, but I am not sure whether I used every neccessary option. Please have a look. TIA

ousia commented 8 years ago

There are some issues with XML compilation and latest beta released.

If you don’t have the previous beta, I suggest waiting until next beta (to be released by this weekend, according to this message).

I have switched to previous beta myself to be able to compile documents using pandoc-xhtml.tex.

ousia commented 8 years ago

Update to latest beta if you are on Linux (2015.11.19 19:13).

I have just updated and it seems to work fine.

juh2 commented 8 years ago

Ah, yes. Now it works.

Unfortunately the font problem got back. :-(

It's EB Garamond again.

!LuaTeX error: cannot find OpenType font file for reading ()

Confusing because

mtxrunjit --script fonts --list --all

lists the font is the correct directory.

I have to investigate this and maybe I'll ask in the ml later.

ousia commented 8 years ago

I always delete the directory tex/texmf-cache/luatex-cache/ from my ConTeXt Suite installation.

After that I run mtxrunjit --generate (I guess this is required in Linux, at least) and recompile whatever I need.

This should solve your font problems. (Sorry for not having replied before.)