ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Typesetting all documents in a project
@ 2017-06-11 23:55 Mike O'Connor
  2017-06-12  5:05 ` Henri Menke
  0 siblings, 1 reply; 3+ messages in thread
From: Mike O'Connor @ 2017-06-11 23:55 UTC (permalink / raw)
  To: ntg-context

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. 

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Typesetting all documents in a project
  2017-06-11 23:55 Typesetting all documents in a project Mike O'Connor
@ 2017-06-12  5:05 ` Henri Menke
  0 siblings, 0 replies; 3+ messages in thread
From: Henri Menke @ 2017-06-12  5:05 UTC (permalink / raw)
  To: ntg-context

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Typesetting all documents in a project
@ 2017-06-13 15:14 Mike O'Connor
  0 siblings, 0 replies; 3+ messages in thread
From: Mike O'Connor @ 2017-06-13 15:14 UTC (permalink / raw)
  To: ntg-context

Thanks for the explanation and wiki.contextgarden.net link.

Should ConTeXt simply refuse to process the project file, instead of the message that it is producing a project PDF?

In some cases might it be helpful to regenerate in one pass the complete set of products for a project. I guess that is a job for a shell script rather than TeXShop.

Thanks again Henri,

Mike




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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-13 15:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-11 23:55 Typesetting all documents in a project Mike O'Connor
2017-06-12  5:05 ` Henri Menke
2017-06-13 15:14 Mike O'Connor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).