Re: [NTG-context] Typesetting all documents in a project

2017-06-11 Thread Henri Menke
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
___

[NTG-context] Typesetting all documents in a project

2017-06-11 Thread Mike O'Connor
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
___

Re: [NTG-context] problem loading attachments (important for my work)

2017-06-11 Thread Pablo Rodriguez
On 06/09/2017 06:20 AM, Pablo Rodriguez wrote:
> On 06/09/2017 12:36 AM, Hans Hagen wrote:
>> [...]
>> When I test with
>>
>>  \attachment[file={t:/sources/cow.pdf}]
>>
>> it gets embedded in the file
>>
>> (you can check with \nopdfcompression)
> 
> Many thanks for your replies, Akira and Hans.
> 
> Well, I must be doing something (stupid and) wrong with the path. I will
> report later, after I check it in Windows.

I was pointing to a non-existing file. (I probably copied the file and
somebody renamed it before I tested the method to include attachments).

Sorry for the noise,

Pablo
-- 
http://www.ousia.tk
___
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
___