On Mon, 2017-06-12 at 07:55 +0800, Mike O'Connor wrote:
Hello all,
I'm setting up a new project structure, and having trouble when I typeset the project file in TeXShop with engine ConTeXt (LuaTeX).
The console report includes... close source > level 2, order 7, name '/Users/mhoc/Documents/projects/histories/history- earlyMidWest/proj-git/context/project_guide.tex' system > invalid \starttext ... \stoptext structure
and further down... mkiv lua stats > result saved in file: project_guide.pdf, compresslevel 3, objectcompresslevel 3
The claimed output “project_guide.pdf” does not materialise (nor should it). Instead I hoped typesetting "project_guide.tex" would create a PDF of each product mentioned i.e. "prd_guide" in this case ; a way of generating in one action all outputs for a project.
The project file is not intended to be processed directly. It serves only as a collection of environment files which are sourced by products belonging to this particular project. http://wiki.contextgarden.net/Command/project The files you process using the context executable are the products, which is somewhat intuitive, because they _produce_ PDF files.
I saw the same result in the TexLive 2017 version, but the above messages are from the latest beta: My ConTeXt ver: 2017.05.15 21:48 MKIV beta fmt: 2017.6.10
Grateful for any hints about where I'm going wrong.
Mike
----- project_guide.tex ----- \startproject project_guide \environment env_guide
\product prd_guide
\stopproject
----- prd_guide.tex ----- \startproduct prd_guide \project project_guide \environment env_guide2
\startfrontmatter \stopfrontmatter
\startbodymatter \component c_guide.tex \stopbodymatter
\startbackmatter \stopbackmatter
\stopproduct
----- c_guide.tex -----
\startcomponent c_guide \project project_guide
\starttext
\startchapter[title={Chapter 1}] Chapter 1 begins here. \stopchapter
\stoptext
\stopcomponent
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________