[NTG-context] Project structure with nested subfolders and shared environments.

2022-12-15 Thread Pawel Urbanski via ntg-context
Dear Everyone,
I'm setting up a project structure that will possibly let me share styles
and layouts with lots of documents I need to create weekly.
Unfortunately my definitions in the environment file or files are ignored...

Here is the setup under the purposely created structure:
** The folder called: 'MainFolder' is the root of my document repository.
** The 'Metadata' folder inside the 'MainFolder' contains environment files.
** The 'SubFolder/SubSubFolder' inside the 'MainFolder' is the nestin
glevel I need with all the documents.
 Here are the files:
% /MainFolder/Meta.tex
\startproject *
\usepath [{ Metadata }]
\environment Environment.tex
\stopproject

% /MainFolder/Metadata/Environment.tex
\startenvironment *
% Test if setup is applied.
\setupbodyfont[ebgaramond]
\stopenvironment

% /MainFolder/SubFolder/SubSubFolder/Doc.tex
\startproduct *
\project Meta
\startcomponent *
\startchapter[title={ Nested }]
\input tufte
\stopchapter
\stopcomponent
\stopproduct

Unfortunately the default font is applied and EB Garamond is not picked up
from the environment.

The question is:
** How can I use such a structure to share styles and layouts kept i the
'Metadata' folder and use htem in products that are ment to be complete
documents kept in the 'SubSubFolders'?

All the very best and htank you in advance for any clarifications...

Pawel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 12:18:

Hi Wolfgang,
Pablo's solution works, but I tried yours without success. Here are 
the main lines of my project


 begin project
\startproject[terminale-environment]

\environment[terminale-style]
 ...
\stopproject
 end project


Do you need a project file?


 begin component
\project[terminale-environment]

\startcomponent[terminale_recurrence]
...
\endcomponent
 end component


You ignored the order for \startcomponent and \project. The environment 
(or project) file has to be loaded *after* \startcomponent, otherwise 
the *component mode is set after the style is already loaded.


Wolfgang

___
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] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Fabrice Couvreur via ntg-context
Hi Wolfgang,
Pablo's solution works, but I tried yours without success. Here are the
main lines of my project

 begin product
\startproduct[terminale-manual]

\project[terminale-environment]

\startdocument

\startfrontmatter
...
\stopfrontmatter

\startbodymatter
\component[terminale_recurrence]
...
\stopbodymatter

\stopdocument

\stopproduct
 end product

 begin project
\startproject[terminale-environment]

\environment[terminale-style]
 ...
\stopproject
 end project

 begin component
\project[terminale-environment]

\startcomponent[terminale_recurrence]
...
\endcomponent
 end component

 begin environment
\startenvironment[terminale-style]
...
\startsetups [section:chapter]

\setuphead
   [chapter]
   [align=flushright,
textcommand=\groupedcommand{\blank[medium]}{},
numbercolor=darkgray,
textstyle=ChapterTextStyle,
numberstyle=ChapterNumberStyle,
before=\startChapterFrame,
after=\stopChapterFrame,
header=high]

\stopsetups

\startsectionblockenvironment [bodypart]
 \directsetup{section:chapter}
\stopsectionblockenvironment

\doifmode{*component}{\directsetup{section:chapter}}

...
\endenvironment
 end environment

Le dim. 15 août 2021 à 19:03, Wolfgang Schuster via ntg-context <
ntg-context@ntg.nl> a écrit :

> Pablo Rodriguez via ntg-context schrieb am 15.08.2021 um 18:33:
> > On 8/15/21 6:02 PM, Fabrice Couvreur via ntg-context wrote:
> >> A small note : this method works if I compile the project but if I
> >> compile only one chapter, the header no longer appears.
> > Hi Fabrice,
> >
> > I have never used projects and chapters (or whatever the right name is).
> >
> > I’m not sure I get what you’re experiencing: with a single chapter, do
> > you have the fancy layout or not?
> >
> > It would make sense that the fancy chapter doesn’t appear only compiling
> > a chapter. I guess there is no \startbodymatter...\stopbodymatter
> > wrapping it.
> >
> > Another approach would be:
> >
> > [...]
>
> Setting values for \title is a way to avoid the chapter setup for the
> table of contents etc.
> but there is a way to set values which are used only when you process a
> component file.
>
> To make it work one has to load the environment file after
> \startcomponent because you
> can use the *component mode to check whether the parent file is a
> product or a component.
>
>  begin product
> \startproduct [*]
>
> \environment [...]
>
> \startfrontmatter
> ...
> \stopfrontmatter
>
> \startbodymatter
> \component [...]
> \stopbodymatter
>
> \stopproduct
>  end product
>
>  begin component
> \startcomponent [*]
>
> \environment [...]
>
> ...
>
> \stopcomponent
>  end component
>
>  begin environment
> \startenvironment [*]
>
> \startsetups [section:chapter]
>
>  \setuphead
>  [chapter]
>  [...]
>
> \stopsetups
>
> \startsectionblockenvironment [bodypart]
>  \directsetup{section:chapter}
> \stopsectionblockenvironment
>
> \doifmode{*component}{\directsetup{section:chapter}}
>
> \stopenvironment
>  end environment
>
> Wolfgang
>
>
> ___
> 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] Fwd: Re: LMTX 2021.03.02 | cross reference to an external file | \pagereference

2021-03-04 Thread Richard Mahoney
Wolfgang [and Hans ],

I'm attaching a minimal(ish) example of a project structure with
a call to \pagereference. One can see from the output of master000.tex
that the cross references to an external file all work, *apart* from
the call to \pagereference. (This is the same issue that I am having
with
my two volume proceedings.)

I'd be grateful for suggestions.


Best, Richard


% testproject.tex -- LMTX 2021.03.02

\startproject testproject

\product testproduct000

\product testproduct001

\stopproject



% master000.tex -- LMTX 2021.03.02

\startproduct testproduct000

\project testproject

\startbodymatter

\component boo.tex

\stopbodymatter

\stopproduct


% master001.tex -- LMTX 2021.03.02

\startproduct testproduct001

\project testproject

\startbodymatter

\component foo.tex

\stopbodymatter

\stopproduct



% boo.tex -- LMTX 2021.03.02

\startcomponent boo

\project testproject

\product testproduct000

\useexternaldocument[m001][master001][Test Product, Vol.~{\sc ii}]

\chapter[oeps]{oeps}

test \from[m001], \in{Ch.~}[m001::one], \at{page}[m001::one] {[}test
page one{]}

test \from[m001], \in{Ch.~}[m001::one], \at{page}[m001::page-
reference] {[}test {\bf pagereference}{]}

test \from[m001], \in{Ch.~}[m001::two], \at{page}[m001::two] {[}test
page two{]}

\stopcomponent




% foo.tex -- LMTX 2021.03.02

\startcomponent foo

\project testproject

\product testproduct001

\chapter[one]{one}

\pagereference[page-reference]foo

\chapter[two]{two}

foo

\stopcomponent







 Forwarded Message 
From: Richard Mahoney 
Reply-To: Richard Mahoney , mailing
list for ConTeXt users 
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] LMTX 2021.03.02 | cross reference to an
external file | \pagereference
Date: Fri, 05 Mar 2021 12:02:54 +1300
Mailer: Evolution 3.36.5 
Organization: Indica et Buddhica
X-Spam-Score: 0.0

Thanks Wolfgang,

Hans kindly sent me a simple minimal. I've adjusted it to include a
call
to \pagereference and it works. I'm currently trying to test my
project
to see why my own calls to \pagereference do not result in any output,
despite the fact that all the calls to the reference ids in chapters
work
as expected. I'm imagining at this point that it has something to do
with
using two master files --one for each volume-- with multiple includes
(\components) for each chapter  -- the \pagereference code appears
in a number of the components.

I'll try to set up a simple example replicating the file structure I'm
using
and then send it through.


Best, Richard



-- 
T +6433121699  M +64210640216  E rmaho...@indica-et-buddhica.org
IM https://t.me/rmahoney  W https://indica-et-buddhica.org/


Indica et Buddhica  Littledene  Bay Road  Oxford  NZ

-Original Message-
From: Wolfgang Schuster 
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users 
Subject: Re: [NTG-context] LMTX 2021.03.02 | cross reference to an
external file | \pagereference
Date: Thu, 4 Mar 2021 22:35:46 +0100
Mailer: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
 PostboxApp/7.0.47
X-Spam-Score: 0.0



Richard Mahoney schrieb am 04.03.2021 
um 09:04:

>   
>   Readers,
>   
> 
>   I'm working on a couple of volumes of papers set up and generated
>   separately (though within the same project). Some of the papers 
> in
>   the second volume make cross references to papers in the first.
>   Now this is working well so long as the reference is to the 
> details
>   associated with, say, a chapter, using \about, \in, and \at. Its 
> doesn't
>   seem to work though with \pagereference: no page number appears
>   in the PDF whatsoever. I have  been following the material here:
>   
> 
>   
> https://wiki.contextgarden.net/References#References_to_an_external_file
>   
> 
>   I'm wondering then ... do cross references to an external file 
> work
>   with \pagereference? 
> 
>   


Hi Richard,



I just tested \pagereference in a simple example and had no problem
to 
get

the page numbers from the other document. Without a minimal example

there is no way to tell what's missing in your document.



Wolfgang




__
_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
a

Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread Wolfgang Schuster

n...@scorecrow.com schrieb am 02.05.2020 um 17:14:

I'm having trouble with \definehead behaving differently depending upon whether 
I process a file that includes it via a \input statement versus a project 
structure that calls it via an environment file referenced from a component 
file.

Overall aim:

I currently produce a small circulation journal in Word that I'm hoping to 
switch to ConTeXt. Each article is written by a different author and I 
currently provide a Word template so they can see how their article will 
eventually look and how long it is, etc. I want to do the same for the ConTeXt 
version so I have created a template tex file they can simply \input at the top 
of their article. Processing the single article gives the desired output. So 
far so good.

When I receive the articles, I want to use the project/product/component 
structure to allow me to produce an entire issue of the journal in one go. (I 
would simply comment out the \input line and add \startproject \startcomponent 
etc lines as necessary from each received article.)

Problem:

I've created a custom chapter heading, but the font size changes depending on 
whether I'm processing the \input version of the article or the \component 
version and I don't know why. Obviously, I would like the heading to be the 
same in each case so that authors see what I see and vice versa.


Your simple version sets the bodyfont before \starttext

 begin example
\setupbodyfont[termes,14pt]

\starttext

{\bfc Cheesy double boxed title}

\stoptext
 end example

while your complexer version loads the bodyfont after \starttext 
(\startcomponent acts here as \starttext)


 begin example
\starttext

\setupbodyfont[termes,14pt]

{\bfc Cheesy double boxed title}

\stoptext
 end example

When you use a non standard font size (e.g. 14pt) size switches are 
sometimes ignored even with ConTeXt's fallback mechanism.


To get the correct size for the header you can either use a standard 
font size (14.4pt) or you add the following line before you set the 
global font for your document (ConTeXt does this by itself in most cases 
but it can fail).


\definebodyfontenvironment [14pt]

I attached a slightly modified version of your project structure to show 
a different way to organize documents. What I would change is to use a 
better section name for each article, e.g. \Article (or \startArticle) 
is better than \MyTitle as first level header in each article.


Wolfgang
<>
___
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] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread ntg
I'm having trouble with \definehead behaving differently depending upon whether 
I process a file that includes it via a \input statement versus a project 
structure that calls it via an environment file referenced from a component 
file.

Overall aim:

I currently produce a small circulation journal in Word that I'm hoping to 
switch to ConTeXt. Each article is written by a different author and I 
currently provide a Word template so they can see how their article will 
eventually look and how long it is, etc. I want to do the same for the ConTeXt 
version so I have created a template tex file they can simply \input at the top 
of their article. Processing the single article gives the desired output. So 
far so good.

When I receive the articles, I want to use the project/product/component 
structure to allow me to produce an entire issue of the journal in one go. (I 
would simply comment out the \input line and add \startproject \startcomponent 
etc lines as necessary from each received article.)

Problem:

I've created a custom chapter heading, but the font size changes depending on 
whether I'm processing the \input version of the article or the \component 
version and I don't know why. Obviously, I would like the heading to be the 
same in each case so that authors see what I see and vice versa.

I've attached a small zip file with a directory structure containing a minimal 
example. There are two directories: "input_version" and "project" version and 
the article.pdf files in each show the difference in the heading.

I'm using TeX Live 2020 on a Mac. The console reports: ConTeXt  ver: 2020.03.10 
14:44 MKIV beta  fmt: 2020.4.18  int: english/english

--
Bruce Horrocks
Hampshire, UK

___
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] Using Lua files in project structure

2020-04-05 Thread Aditya Mahajan

On Sun, 5 Apr 2020, Jairo A. del Rio wrote:


I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua
libraries and bindings (defining \ctxlua and the like). For instance, I
have the file foo.lua with some macros and I want to use them in my
project. Something like this:

\startproject project
%\component foo.lua %This does not work
%\environment foo.lua %This does not work
%\input foo.lua %This does not work
%\directlua{dofile("foo.lua")} %This does not work even when the project
file and foo.lua are in the same folder.
\stopproject


I have been \environment foo.lua for an old project (which 
has been running without significant changes for about 10 years now). I 
tested it again, and it is working on LMTX 2019.12.31.


Has something changed in the recent versions? (I should upgrade and check)

Aditya
___
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] Using Lua files in project structure

2020-04-05 Thread Jairo A. del Rio
None of them work. Maybe I'm doing something wrong.

I have my project file (say, "main.tex") in a folder (say, "Main") and
projects in a subfolder (say "Products").
I've written some Lua macros in a file (say, "foo.lua") and I need all the
products to be able to call those Lua functions, so I tried loading them in
the project file ("foo.lua" and "main.tex" are in the same folder, whereas
products are in the subfolder). \usepath works for finding other files,
such as images, so I don't know what is going on. I'm attaching a test
project.

El dom., 5 de abr. de 2020 a la(s) 09:28, Wolfgang Schuster (
wolfgang.schuster.li...@gmail.com) escribió:

> Jairo A. del Rio schrieb am 05.04.2020 um 15:00:
> > I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua
> > libraries and bindings (defining \ctxlua and the like). For instance, I
> > have the file foo.lua with some macros and I want to use them in my
> > project. Something like this:
> >
> > \startproject project
> > %\component foo.lua %This does not work
> > %\environment foo.lua %This does not work
> > %\input foo.lua %This does not work
> > %\directlua{dofile("foo.lua")} %This does not work even when the project
> > file and foo.lua are in the same folder.
> > \stopproject
> >
> > What should I do? Thank you in advance.
>
> 1. \luaenvironment 
>
> 2. \useluamodule []
>
> 3. \ctxloadluafile {}
>
> 4. \loadluafile [] or \loadluafileonce []
>
> Wolfgang
>
<>
___
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] Using Lua files in project structure

2020-04-05 Thread Wolfgang Schuster

Jairo A. del Rio schrieb am 05.04.2020 um 15:00:
I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua 
libraries and bindings (defining \ctxlua and the like). For instance, I 
have the file foo.lua with some macros and I want to use them in my 
project. Something like this:


\startproject project
%\component foo.lua %This does not work
%\environment foo.lua %This does not work
%\input foo.lua %This does not work
%\directlua{dofile("foo.lua")} %This does not work even when the project 
file and foo.lua are in the same folder.

\stopproject

What should I do? Thank you in advance.


1. \luaenvironment 

2. \useluamodule []

3. \ctxloadluafile {}

4. \loadluafile [] or \loadluafileonce []

Wolfgang
___
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] Using Lua files in project structure

2020-04-05 Thread Thomas A. Schmitz

On 05.04.20 15:00, Jairo A. del Rio wrote:
I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua 
libraries and bindings (defining \ctxlua and the like). For instance, I 
have the file foo.lua with some macros and I want to use them in my 
project. Something like this:


\startproject project
%\component foo.lua %This does not work
%\environment foo.lua %This does not work
%\input foo.lua %This does not work
%\directlua{dofile("foo.lua")} %This does not work even when the project 
file and foo.lua are in the same folder.

\stopproject

What should I do? Thank you in advance.


Have you tried

\registerctxluafile{foo}{} ?

That's the way context loads its lua files.

Thomas
___
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] Using Lua files in project structure

2020-04-05 Thread mf

Il 05/04/20 15:00, Jairo A. del Rio ha scritto:
I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua 
libraries and bindings (defining \ctxlua and the like). For instance, I 
have the file foo.lua with some macros and I want to use them in my 
project. Something like this:


\startproject project
%\component foo.lua %This does not work
%\environment foo.lua %This does not work
%\input foo.lua %This does not work
%\directlua{dofile("foo.lua")} %This does not work even when the project 


\directlua{require("foo")}

or

\startluacode
  require("foo")
\stopluacode


file and foo.lua are in the same folder.
\stopproject

What should I do? Thank you in advance.


Best wishes,
Massi
___
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] Using Lua files in project structure

2020-04-05 Thread Jairo A. del Rio
I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua
libraries and bindings (defining \ctxlua and the like). For instance, I
have the file foo.lua with some macros and I want to use them in my
project. Something like this:

\startproject project
%\component foo.lua %This does not work
%\environment foo.lua %This does not work
%\input foo.lua %This does not work
%\directlua{dofile("foo.lua")} %This does not work even when the project
file and foo.lua are in the same folder.
\stopproject

What should I do? Thank you in advance.
___
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] Questions regarding project structure

2019-05-15 Thread Denis Maier
Hi,

I am just testing out the project structure. Let's suppose I have these
files:

- test_env.tex
```
\startenvironment *

\setuphead
[section]
[textstyle=\bf]

\stopenvironment
```

- test_project
```
\startproject *
\environment test_env

\product test_prod

\stopproject
```

- test_prod.tex
```
\startproduct *
\project test

\startalignment[middle]
HEY
\stopalignment

\component test_comp

\stopproduct
```

- test_comp.tex
```
\startcomponent *
\product test_prod
% \project test_project % uncomment this to use the

\section{Test}
\input ward

\stopcomponent
```

>From the documentation [https://wiki.contextgarden.net/Project_structure] I
would assume two things
1. The environment should be used in the component via project=>product.
2. Everything in the product that is not in a component should be used in
the component as well.

Both assumptions seem not be correct. Any hints about this? Am I missing
something? Am I doing something wrong? Or is there a bug somewhere?
Documentation errors?

Best,
Denis
___
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] Need help with project: TeX capacity exceeded

2018-10-04 Thread Axel Kielhorn

> Am 04.10.2018 um 09:27 schrieb Taco Hoekwater :
> 
>> According to my understanding I should be able to
>> context c_01 to get one chapter
>> context prd_A to get one product
>> context project_ecm to get the whole book.
> 
> Any whole book should be a product, and the Parts should just be components. 
> The project level is only there to connect meta-info across a book series. 
> You are not supposed to run ‘context’ on the project file.

I see.
I’ll probably keep it as three books.
It’s easy to change later as long as the components have different names.
Right now that’s just a limitation of the word processor.

> That said, it is definitely not your installation or understanding of the
> wiki page that creates the circular inclusion. The same happens here. I 
> discovered it works OK if I move the \product to within the \startcomponent,
> and I assume that is how it supposed to work:
> 
>  \startcomponent
>  \product prd_1
>   … 
>  \stopcomponent

Works here as well, thank you.
What about the project?
Right now it is outside the \start{product|component} and it works.

Now it is inside the \start{product|component} and it works as well.

Next question:
Should the environment be inside \startproject \stopproject?

It seems to make no difference.

Thus having the whole file inside \start{project|product|component} \stop… 
would be a good idea and consistent.

> At a guess, I think the wiki page is wrong. But before editing that,
> I would like to have confirmation of the above assumption.

Thanks for the quick response, now I can tell pandoc to convert the book to 
context:-)

Greetings Axel

___
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] 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] cross-references between documents in a project (using \useexternaldocument)

2015-09-09 Thread Jens Bertram

On 09.09.2015 01:43, Hans Hagen wrote:

On 9/8/2015 9:04 PM, Wolfgang Schuster wrote:

Hans Hagen <mailto:pra...@wxs.nl>
11. August 2015 11:48


i have no clue what you're talking about

There is a bug in the reference mechanism between documents.


not so much a bug but the current mechanism assumes a project/component
struture



Hi,
I'm also struggeling with cross-referencing in a project/component 
layout. I attached a minimal example that resembles the layout I use.

If you compile xr-prod1 and xr-prod2 all cross-references are simply empty.

I looked at the lua code to see if I'm able to fix it myself and 
stumbled over the 'identify_inner(set,var,prefix,collected,derived)' 
function in strc-ref.lua (at around line 1396 in MKVI from 2015.09.04 
11:00). It look like identify_inner gets sometimes called with 'prefix' 
set to nil while 'derived' is also undefined (at 1493 and 1514). If I 
get the program flow right this looks suspicious, as it always retuns 
'false' from 'identify_inner'. If I add 'prefix = prefix or ""' to 
'identify_inner' I actually get references printed in the test case. 
However the links are not working and for the figure the section number 
is wrong.


Finally looking at the uncompressed PDF I can see that references are 
set not prefixed in xr-prod2.pdf (i.e. link to 'plain'), but are 
prefixed in xr-prod1.pdf (anchor is 'xr-comp1-1:plain').


Maybe these informations can help in resolving the issue. :)


i'll see if i can catch the non structured variant


When you produce a PDF from the attached documents you can use the
hyperlinks to jump to the chapter page in the other document but no
information is printed because the information with the section number,
page number or title isn’t loaded (can be seen in the tracker
information in the log).

Wolfgang



\enabletrackers[
	system.jobfiles,
	structures.referencing,
	structures.referencing.importing,
	structures.referencing.identifying]
\setupinteraction[state=start]
\useexternaldocument[xr1][xr-prod1][XR Product One]
\useexternaldocument[xr2][xr-prod2][XR Product Two]
\nopdfcompression

\startproject xr-proj
	\product xr-prod1
	\product xr-prod2
\stopproject

\startcomponent xr-comp2-1
	\starttext
		plain\\
		ABOUT: \about[xr1::plain]\\
		IN: \in[xr1::plain]\\
		AT: \at[xr1::plain]
		
		page2\\
		ABOUT: \about[xr1::pagetwo]\\
		IN: \in[xr1::pagetwo]\\
		AT: \at[xr1::pagetwo]
		
		figone\\
		ABOUT: \about[xr1::figone]\\
		IN: \in[xr1::figone]\\
		AT: \at[xr1::figone]
		
		figtwo\\
		ABOUT: \about[xr1::figtwo]\\
		IN: \in[xr1::figtwo]\\
		AT: \at[xr1::figtwo]
	\stoptext
\stopcomponent

\setupinteraction[state=start]
\startcomponent xr-comp1-1
	\startchapter[reference=plain, title={Plain chapter}]
		Lorem ipsum dolor sit amet, consectetur adipiscing elit.
	\stopchapter
	\page
	\startchapter[reference=pagetwo, title={Plain chapter page two}]
		Lorem ipsum dolor sit amet, consectetur adipiscing elit.
		\startsection[reference=secwithpic, title={Section with image}]
			\startplacefigure[reference=figone, title={Figure 1}]
\externalfigure[cow.pdf]
			\stopplacefigure
		\stopsection
	\stopchapter

	\startchapter[reference=chaptwo, title={Plain chapter two}]
		Lorem ipsum dolor sit amet, consectetur adipiscing elit.
		\startsection[reference=sectwowithpic, title={Section chap2 with image}]
			\startplacefigure[reference=figtwo, title={Figure 2}]
\externalfigure[cow.pdf]
			\stopplacefigure
		\stopsection
	\stopchapter
\stopcomponent

\project xr-proj
\startproduct xr-prod1
	\component xr-comp1-1
\stopproduct

\project xr-proj
\startproduct xr-prod2
	\component xr-comp2-1
\stopproduct

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Output compilation

2015-08-12 Thread Fabrice Couvreur
Hi Wolfgang,
In fact, I had already tried what you propose without success. But I
just realized
that the contents of my file is :

\startcomponent activities

...

\stopcomponent

and I forgot *\project manual * that contains :

\environment my-fonts
\environment my-layout
\environment my-modules
\environment my-styles
\environment my-commands

\startproject manual

  \product lesson

\stopproject


Thank you.

2015-08-12 14:43 GMT+02:00 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Fabrice Couvreur fabrice1.couvr...@gmail.com
 12. August 2015 14:22
 Hi Hans,
 I think my initial request was unclear.
 In fact, I want to get output only content activities.tex file.

 context activites.tex

 Wolfgang


 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] cross-references between documents in a project (using \useexternaldocument)

2015-08-06 Thread tala...@fastmail.fm
Perhaps I might ask a more preliminary question: when using project structure, 
is cross-document referencing possible between two product files, or only 
between two component files within a single product file?

Kind regards,
Talal

 On 5 Aug 2015, at 13:15, tala...@fastmail.fm wrote:
 
 Dear all,
 
 I am trying to create cross references between two documents in my project. 
 Links between the two are successfully made, but the actual page numbers are 
 not being printed (which, for my purposes, are what I actually need, not 
 links). Am I doing something wrong, or is this a known bug (such that I 
 should cease my attempts)? Is \useexternaldocument the wrong command for this 
 purpose? Minimum example files below:
 
 % project
 \project project_xref
 \startproduct prd_xref
 \component xref1
 \component xref2
 \stopproduct
 
 % product
 \startproject project_xref
 \environment env_xref
 \product prd_xref
 \stopproject
 
 % environment
 \startenvironment env_xref
 \setupinteraction
  [state=start,
   style=,
   color=blue,
   contrastcolor=,
   menu=on,
   title=Cross referencing Test File,
   author=Gerard Verhaag]
 \stopenvironment
 
 % component1 [xref1]
 \project project_xref
 \startcomponent xref1
 \starttext
 \chapter[cross]{Cross referencing}
 \chapter[lorem]{Lorem}
 Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[lorem].
 \stoptext
 \stopcomponent
 
 % component2 [xref2]
 \project project_xref
 \startcomponent xref2
 \useexternaldocument[xrf][xref1]
 \starttext
 Lorem ipsum dolor sit amet, consectetur adipiscing elit 
 \in{Chapter}[xrf::lorem].
 \stoptext
 \stopcomponent
 
 All the best,
 Talal
 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] cross-references between documents in a project (using \useexternaldocument)

2015-08-05 Thread tala...@fastmail.fm
Dear all,

I am trying to create cross references between two documents in my project. 
Links between the two are successfully made, but the actual page numbers are 
not being printed (which, for my purposes, are what I actually need, not 
links). Am I doing something wrong, or is this a known bug (such that I should 
cease my attempts)? Is \useexternaldocument the wrong command for this purpose? 
Minimum example files below:

% project
\project project_xref
\startproduct prd_xref
\component xref1
\component xref2
\stopproduct

% product
\startproject project_xref
\environment env_xref
\product prd_xref
\stopproject

% environment
\startenvironment env_xref
\setupinteraction
  [state=start,
   style=,
   color=blue,
   contrastcolor=,
   menu=on,
   title=Cross referencing Test File,
   author=Gerard Verhaag]
\stopenvironment

% component1 [xref1]
\project project_xref
\startcomponent xref1
\starttext
\chapter[cross]{Cross referencing}
\chapter[lorem]{Lorem}
Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[lorem].
\stoptext
\stopcomponent

% component2 [xref2]
\project project_xref
\startcomponent xref2
\useexternaldocument[xrf][xref1]
\starttext
Lorem ipsum dolor sit amet, consectetur adipiscing elit 
\in{Chapter}[xrf::lorem].
\stoptext
\stopcomponent

All the best,
Talal
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] User-Defined Commands With Key-Value Options

2015-07-19 Thread Joas Yannick
Dear everyone,

I am currently typesetting the old (published in 1707) French Bible of
David Martin using
ConTeXt MkIV. The source code looks like this:

\startproduct martin1707
\startproject bibles % Page layout, fonts, language, etc.
\startbiblebook[number={1}, name={Genéſe}, abbreviation={Gen.},
title={Le premier livre de Moyſe dit la Genéſe}]
\startbiblechapter[number={1}]
\startbibleverse[number={1}]
Au commencement Dieu créa les cieux  la terre.
\stopbibleverse
\stopbiblechapter
\stopbiblebook
\startbiblebook[number={45}, name={Romains}, abbreviation={Rom.},
title={Epiſtre de ſaint Paul apoſtre aux romains}]
\startbiblechapter[number={12}]
\startbibleverse[number={1}]
Je vous exhorte donc, \bibleaddition{mes} fréres, par les
compaſſions de Dieu, que vous préſentiez vos corps en
ſacrifice
vivant, ſaint, agréable à Dieu, \bibleaddition{qui eſt}
vôtre
raiſonnable ſervice.
\stopbibleverse
\startbibleverse[number={2}]
Et ne vous conformez point à ce préſent ſiecle, mais ſoyez
transformez par le renouvellement de vôtre entendement,
afin que
vous éprouviez quelle eſt la volonté de Dieu, bonne, 
agréable,
 parfaite.
\stopbibleverse
\stopbiblechapter
\stopbiblebook
\stopproduct

As you may know, all the Bibles are divided into books, and each book into
chapters, and
each chapter into verses. The purpose of \startbiblebook,
\startbiblechapter, and \startbibleverse
is to control the formatting thereof respectively (as \startsection,
\startsubsection, etc., control
the formatting of sections, subsections, etc.)

Now, as you see. these commands are user-defined commands with key-value
options. My
goal is to define the way they do the formatting with Lua. But I do not
know how to do. I
know a bit about programming, so learning Lua is not a problem.

Thanking you in advance,
All the best,
Yours faithfully.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] User-Defined Commands With Key-Value Options

2015-07-19 Thread Hans Hagen

On 7/19/2015 1:24 PM, Joas Yannick wrote:

Dear everyone,

I am currently typesetting the old (published in 1707) French Bible of
David Martin using
ConTeXt MkIV. The source code looks like this:

\startproduct martin1707
 \startproject bibles % Page layout, fonts, language, etc.
 \startbiblebook[number={1}, name={Genéſe}, abbreviation={Gen.},
title={Le premier livre de Moyſe dit la Genéſe}]
 \startbiblechapter[number={1}]
 \startbibleverse[number={1}]
 Au commencement Dieu créa les cieux  la terre.
 \stopbibleverse
 \stopbiblechapter
 \stopbiblebook
 \startbiblebook[number={45}, name={Romains}, abbreviation={Rom.},
title={Epiſtre de ſaint Paul apoſtre aux romains}]
 \startbiblechapter[number={12}]
 \startbibleverse[number={1}]
 Je vous exhorte donc, \bibleaddition{mes} fréres, par les
 compaſſions de Dieu, que vous préſentiez vos corps en
ſacrifice
 vivant, ſaint, agréable à Dieu, \bibleaddition{qui eſt}
vôtre
 raiſonnable ſervice.
 \stopbibleverse
 \startbibleverse[number={2}]
 Et ne vous conformez point à ce préſent ſiecle, mais ſoyez
 transformez par le renouvellement de vôtre entendement,
afin que
 vous éprouviez quelle eſt la volonté de Dieu, bonne, 
agréable,
  parfaite.
 \stopbibleverse
 \stopbiblechapter
 \stopbiblebook
\stopproduct

As you may know, all the Bibles are divided into books, and each book
into chapters, and
each chapter into verses. The purpose of \startbiblebook,
\startbiblechapter, and \startbibleverse
is to control the formatting thereof respectively (as \startsection,
\startsubsection, etc., control
the formatting of sections, subsections, etc.)

Now, as you see. these commands are user-defined commands with key-value
options. My
goal is to define the way they do the formatting with Lua. But I do not
know how to do. I
know a bit about programming, so learning Lua is not a problem.


So how would you like to use lua? Is the data stored in lua?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Index items (additional question)

2015-04-19 Thread Robert Blackstone

On 19 Apr 2015, at 11:55 , Hans Hagen pra...@wxs.nl wrote
 
 On 4/19/2015 9:47 AM, Robert Blackstone wrote:
 
 On 16 Apr 2015, at 15:38 , Hans Hagen pra...@wxs.nl gave me the following:
 
 \startluacode
 
 document.indexentries = {
 [rule]  = [[Rule(s)]],
 [ruleimperfect] = [[+ \quote{imperfect to perfect, from}]],
 [galilei]   = [[Galilei, Vincenzo]],
 }
 
 function document.getindexentry(n)
 context(\\index[%s]{%s},n,document.indexentries[n] or ( ..
 n .. ))
 end
 
 \stopluacode
 
 \unexpanded\def\InEn[#1]%
   {\ctxlua{document.getindexentry(#1)}}
 
 \starttext
 That this rule
 \InEn[rule]
 \InEn[ruleimperfect] was not applied by everybody is for example shown
 in {\em Fronimo}%
 \InEn[galilei]
 
 etc etc
 
 
 This code works beautifully in this way, with only a few index entries  at 
 the top of the file, before \starttext.
 But how can I deal with the thousand or more index items in my project, 
 which I have collected in four separate dedicated files with indexentries, 
 like the three shown in the example-code.
 
 I have really no idea  what else should be in these files,  what sort of 
 name they should have, in particular extension,  and how and where I can 
 input them.
 I use TeXShop as my texteditor but that is probably not relevant here.
 
 Can you give me some guidance, please?
 
 \startluacode
 
 document.indexentries = {
 [rule]  = [[Rule(s)]],
 [ruleimperfect] = [[+ \quote{imperfect to perfect, from}]],
 [galilei]   = [[Galilei, Vincenzo]],
 }
 
 function document.loadindexentries(filename)
 local fullname = resolvers.findfile(filename)
 if fullname ~=  then
 local data = io.loaddata(fullname)
 for a, b  in string.gmatch(data,%s*(%S+)%s+([^\n\r]+)) do
 document.indexentries[a] = b
 end
 end
 end
 
 function document.getindexentry(n)
 local ie = document.indexentries[n]
 if not ie then
 logs.report(index,missing entry %a,n)
 end
 context(\\index[%s]{%s},n,ie or ( .. n .. ))
 end
 
 \stopluacode
 
 \unexpanded\def\LoadInEn[#1]{\ctxlua{document.loadindexentries(#1)}}
 \unexpanded\def\InEn[#1]{\ctxlua{document.getindexentry(#1)}}
 
 \LoadInEn[whatever.txt]
 
 \starttext
 That this rule
 \InEn[rule]
 \InEn[ruleimperfect] was not applied by everybody is for example shown 
 in {\em Fronimo}%
 \InEn[galilei]
 
 \InEn[unknown]
 
 etc etc
 
 \InEn[GalileiFronimo]
 \InEn[Cadence]
 \InEn[CadenceP]
 \InEn[PlagalCad]
 \index[Fronimo]{{\em Fronimo} (Galilei)} (1584), Vincenzo Galileo's 
 treatise on lute playing and the intabulation%
 \index[Intabulation]{intabulation}  of vocal music.
 \page
 
 whatever.txt:
 
 GalileiFronimo +{\em Fronimo}
 Cadencecadence(s)
 CadenceP   + plagal
 PlagalCad  plagal cadence
 
Hi Hans,

Thank you for your reply.
It took me a while to make your code operational in the way I need it.
For the new example you gave is still an integral file. My project, like most 
book-projects, I guess, is modular with a master file Project.tex, into which 
everything else, setups, .bbl's, front- and backmatter, the various chapters 
are input. Though strictly speaking it would not be impossible to add some 1000 
lines of index entries before \startproject, it would not be especially handy, 
and I cannot believe that it would be the proper ConTeXt-way to do it.

I found that when I split your code, transferred the top part to a new file, 
which I named IndexItems, and input that into the other half, the text 
proper, it works. But when I add another file with indexentries, for instance 
indexitemsnames, then only one of them, the one at the top is used. 
So it seems that the whole collection of index items must be in one file.
Is that the only possibility or are there ways to enable the use of several 
collections of index items?

Best regards, 
Robert
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \appendtoks and structuring commands

2015-03-25 Thread Hans Hagen

On 3/24/2015 8:48 PM, Sam Ḥilluc wrote:

Hi list,

I'm trying to leverage the structuring facilities of context. In my previous
setup I added a title page automatically by using:
 \appendtoks
 \placetitle
 \to \everystarttext

But now that I'm using environments and products, it doesn't seem to work.

Here is a minimal (not) working example:
 % env.tex
 \startenvironment env
 \setuppapersize[A5]
 \appendtoks
 Title page
 \to \everystarttext
 \stopenvironment


 % prj.tex
 \startproject prj
 \environment env
 \stopproject

 % prd.tex
 \startproduct prd
 \project prj

 \starttext
 Bla bla
 \stoptext
 \stopproduct

Note that when using \everystoptext rather than \everystarttext, it does work
(it adds the text to the last page)

So what am I doing wrong ?


\startsetups [document:titlepage]
  bla bla \documentvariable{title} bla bla
\stopsetups

\setupdocument
  [before=\directsetup{document:titlepage}]


\startdocument[title=Some title]

...

\stopdocument

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \appendtoks and structuring commands

2015-03-24 Thread Sam Ḥilluc
Hi list,

I'm trying to leverage the structuring facilities of context. In my previous
setup I added a title page automatically by using:
\appendtoks
\placetitle
\to \everystarttext

But now that I'm using environments and products, it doesn't seem to work.

Here is a minimal (not) working example:
% env.tex
\startenvironment env
\setuppapersize[A5]
\appendtoks
Title page
\to \everystarttext
\stopenvironment


% prj.tex
\startproject prj
\environment env
\stopproject

% prd.tex
\startproduct prd
\project prj

\starttext
Bla bla
\stoptext
\stopproduct

Note that when using \everystoptext rather than \everystarttext, it does work
(it adds the text to the last page)

So what am I doing wrong ?

-- 
H.-E.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] component not included

2015-03-12 Thread Wolfgang Werners-Lucchini
Hallo,

I am trying to start a new project with the following test files:

--env-medizin.tex---
\startenvironment env-medizin
\mainlanguage[deo]
\enableregime[utf]
\setupbodyfont[sans,11pt]
\setuplanguage[deo][leftquote=\guilsingleright,
rightquote=\guilsingleleft,
leftquotation=\rightguillemot,
rightquotation=\leftguillemot]

\setupwhitespace[medium]
\stopenvironment
--pj-medizin.tex---
\environment env-medizin
\startproject pj-medizin
\product pd-medizin
\stopproject
--pd-medizin.tex---
\project pj-medizin
\startproduct pd-medizin
\component test
\stopproduct
--test.tex---
\project pj-medizin
\product pd-medizin
\startcomponent test
test
\stopcomponent
-

I compile the product. But I get nothing. test.tex is not included. 
What I am doing wrong?

Here is the output:
-

mtx-context | run 1: luatex --fmt=E:/LuaTeX/tex/texmf-
cache/luatex-
cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-
en --jobname=pd-medizin --lua=E:/LuaTeX/tex/texmf-cache/luatex-
cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-
en.lui --no-parse-first-line --c:autopdf --c:currentrun=1 --
c:fulljobname=./pd-medizin.tex --c:input=./pd-medizin.tex --
c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5024)
 \write18 enabled.
(E:/LuaTeX/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.11.01 15:02 MKIV beta  fmt: 2014.6.29  int: 
english/english

system   'cont-new.mkiv' loaded
(E:/LuaTeX/tex/texmf-context/tex/context/base/cont-new.mkiv)
system   files  jobname 'pd-medizin', input './pd-medizin', 
result 'pd-medizin'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(//HP/ga/Medizin/pd-medizin.tex (pj-medizin.tex (env-medizin.tex
fontspreloading latin modern fonts (third stage)
fontstypescripts  unknown library 'loc'
{E:/LuaTeX/tex/texmf/fonts/map/dvips/lm/lm-
math.map}{E:/LuaTeX/tex/texmf/fonts/map/dvips/lm/lm-
rm.map}{E:/LuaTeX/tex/texmf-context/fonts/map/pdftex/context/mkiv-
base.map}
fonts'fallback modern ss 11pt' is loaded


mkiv lua stats   used config file: 
selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path: E:/LuaTeX/tex/texmf-cache/luatex-
cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats   resource resolver: loadtime 0.016 seconds, 0 scans 
with scantime 0.000 seconds, 0 shared scans, 15 found files, scanned 
paths: none
mkiv lua stats   stored bytecode data: 337 modules (0.312 sec), 69 
tables (0.000 sec), 406 chunks (0.312 sec)
mkiv lua stats   cleaned up reserved nodes: 39 nodes, 9 lists of 441
mkiv lua stats   node memory usage: 2 glue, 1 kern, 3 penalty, 9 
attribute, 20 glue_spec, 3 attribute_list
mkiv lua stats   node list callback tasks: 6 unique task lists, 2 
instances (re)created, 5 calls
mkiv lua stats   used backend: pdf (backend for directly generating 
pdf output)
mkiv lua stats   loaded patterns: deo:de:9 en::2, load time: 0.000
mkiv lua stats   jobdata time: 0.016 seconds saving, 0.000 seconds 
loading
mkiv lua stats   callbacks: 57 direct, 204 indirect, 261 total
mkiv lua stats   randomizer: resumed with value 0.70265816217536
mkiv lua stats   result saved in file: pd-medizin.pdf, compresslevel 
3, objectcompreslevel 3
mkiv lua stats   loaded fonts: 2 files: latinmodern-math.otf, 
lmsans10-regular.otf
mkiv lua stats   fonts load time: 0.344 seconds
mkiv lua stats   luatex banner: this is luatex, version beta-0.79.1 
(tex live 2014/w32tex) (rev 5024)
mkiv lua stats   control sequences: 38207 of 65536 + 10
mkiv lua stats   current memory usage: 32 MB (ctx: 32 MB)
mkiv lua stats   runtime: 1.016 seconds

mtx-context | pdfview methods: acrobat auto default fullacrobat 
okular pdfxcview sumatra, current method: sumatra 
(directives_pdfview_method)
system  | total runtime: 1.453Exit code: 0

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] component not included

2015-03-12 Thread Wolfgang Schuster

 Am 12.03.2015 um 13:35 schrieb Wolfgang Werners-Lucchini w...@musensturm.de:
 
 Hallo,
 
 I am trying to start a new project with the following test files:
 
 --env-medizin.tex---
 \startenvironment env-medizin
 \mainlanguage[deo]
 \enableregime[utf]
 \setupbodyfont[sans,11pt]
 \setuplanguage[deo][leftquote=\guilsingleright,
rightquote=\guilsingleleft,
leftquotation=\rightguillemot,
rightquotation=\leftguillemot]
 
 \setupwhitespace[medium]
 \stopenvironment
 --pj-medizin.tex---
 \environment env-medizin
 \startproject pj-medizin
 \product pd-medizin
 \stopproject
 --pd-medizin.tex---
 \project pj-medizin
 \startproduct pd-medizin
 \component test
 \stopproduct
 --test.tex---
 \project pj-medizin
 \product pd-medizin
 \startcomponent test
 test
 \stopcomponent
 -
 
 I compile the product. But I get nothing. test.tex is not included. 
 What I am doing wrong?

Ignore the project file and load the environment file instead at the begin of 
your product and component files.

Wolfgang

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] component not included

2015-03-12 Thread Norbert Melzer
According toll my observations, you need to reference the needed parts
inside of the \start... and \stop..., so your product would become:


```
\startproduct pd-medizin
\project pj-medizin
\component test
\stopproduct
```

You also have to restructure the other files, so that \start... is the
first and \stop... the last command in the files.


HTH
Norbert
Am 12.03.2015 13:43 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com
:


  Am 12.03.2015 um 13:35 schrieb Wolfgang Werners-Lucchini 
 w...@musensturm.de:
 
  Hallo,
 
  I am trying to start a new project with the following test files:
 
  --env-medizin.tex---
  \startenvironment env-medizin
  \mainlanguage[deo]
  \enableregime[utf]
  \setupbodyfont[sans,11pt]
  \setuplanguage[deo][leftquote=\guilsingleright,
 rightquote=\guilsingleleft,
 leftquotation=\rightguillemot,
 rightquotation=\leftguillemot]
 
  \setupwhitespace[medium]
  \stopenvironment
  --pj-medizin.tex---
  \environment env-medizin
  \startproject pj-medizin
  \product pd-medizin
  \stopproject
  --pd-medizin.tex---
  \project pj-medizin
  \startproduct pd-medizin
  \component test
  \stopproduct
  --test.tex---
  \project pj-medizin
  \product pd-medizin
  \startcomponent test
  test
  \stopcomponent
  -
 
  I compile the product. But I get nothing. test.tex is not included.
  What I am doing wrong?

 Ignore the project file and load the environment file instead at the begin
 of your product and component files.

 Wolfgang


 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] using environments with project structure (in MkIV)

2014-03-01 Thread Sanjoy Mahajan
I'm having trouble using project structure and font loading together in
MkIV.  Here's how the problem arises.

As Aditya and Wolfgang have pointed out, the recommended way to set up
fonts in MkIV is before \starttext or \startcomponent.  For a component,
the setups usually go in an environment file that is referenced by the
project file, and the project file is mentioned with a \project, e.g.

\startcomponent test
\project testproject
\input knuth
\stopcomponent

However, the \project line has to come *after* \startcomponent.  If it
comes before \startcomponent, then context doesn't process the component
file at all, and no PDF file is generated.  An example:

\project testproject
\startcomponent test
\input knuth
\stopcomponent

(with testproject.tex containing \startproject blah \stopproject)

A workaround is to replace the \project line with \environment env where
env is what testproject would have included anyway.  e.g.

\environment env
\startcomponent test
\input knuth
\stopcomponent

Here, env.tex has all the setups including the font setups (and one
would do the same in the product file, i.e. in the file that includes
the components, by putting \environment env before the \startproduct).

The first problem is that it seems some of the functionality of
products, projects, and components is lost.  But maybe that's a matter
of taste.

Another problem is that env.tex doesn't know that one is compiling a
product or component---thus, the system modes *product and *component
are not defined while reading env.tex.

Is there another way of doing project structure that I am missing?

My update to the wiki page on project structure (on putting \project
before \startcomponent) seems to be wrong, and I'll fix it once I
understand what to do!

-Sanjoy
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] bug/issue with components and preamble (Re: Euler with fallback)

2014-02-18 Thread Sanjoy Mahajan
Sanjoy Mahajan san...@olin.edu writes:

 The wiki page for Project Structure has always shown setups (via
 \project ... ) going after the \startcomponent or \startproduct.  I've
 edited the examples to have setups before the
 \start(product|component).  If I did it wrong, let me know.

My change doesn't work, because of how components handle project files
(which also turns out to explain why I was seeing the Euler font when
you didn't).  The problem is that context doesn't generate a pdf file if
the \project line comes before the \startcomponent.  Thus, I was seeing
a pdf file from a previous version of the test file (where the font
setup came after the \startcomponent).

Here are the two test files (testproject2.tex and test6.tex):

 testproject2.tex 
\startproject testproject
\stopproject
==

(If testproject2.tex is empty, then the problem does not occur.)

== test6.tex =
\project testproject2
\startcomponent test

\input knuth

\placeformula\startformula
a^2 + b^2 = c^2
\stopformula

\stopcomponent
==

Here is the log file.  It says 'result saved in test6.pdf' but no pdf
file is actually saved.

(/home/sanjoy/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.02.14 17:07 MKIV beta  fmt: 2014.2.15  int: english/english

system   'cont-new.mkiv' loaded
(/home/sanjoy/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system   files  jobname 'test6', input './test6', result 'test6'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(/home/sanjoy/sfse/test6.tex 
(testproject2.tex{/home/sanjoy/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
{/home/sanjoy/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/sanjoy/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts'fallback modern rm 12pt' is loaded
 ) ) )

system   structure  start used structure

used structure   text: test6
used structure project: testproject

system   structure  stop used structure


system   files  start used files

used file   1: filename=cont-yes.mkiv filetype=tex 
foundname=/home/sanjoy/context/tex/texmf-context/tex/context/base/cont-yes.mkiv 
usedmethod=otherwise
used file   2: filename=cont-new.mkiv filetype=tex 
foundname=/home/sanjoy/context/tex/texmf-context/tex/context/base/cont-new.mkiv 
usedmethod=otherwise
used file   3: filename=lang-us.lua filetype=scripts 
foundname=/home/sanjoy/context/tex/texmf-context/tex/context/patterns/lang-us.lua
 usedmethod=otherwise
used file   4: filename=/home/sanjoy/sfse/test6.tex 
foundname=/home/sanjoy/sfse/test6.tex usedmethod=direct
used file   5: filename=testproject2.tex foundname=testproject2.tex 
usedmethod=direct
used file   6: filename=mkiv-base.map filetype=map format=map 
foundname=/home/sanjoy/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map
 usedmethod=database
used file   7: filename=lm.lfg filetype=tex 
foundname=/home/sanjoy/context/tex/texmf-context/tex/context/fonts/lm.lfg 
usedmethod=otherwise
used file   8: filename=lm-math.lfg filetype=tex 
foundname=/home/sanjoy/context/tex/texmf-context/tex/context/fonts/lm-math.lfg 
usedmethod=otherwise
used file   9: filename=lm-math.map filetype=map format=map 
foundname=/home/sanjoy/context/tex/texmf/fonts/map/dvips/lm/lm-math.map 
usedmethod=database
used file  10: filename=lm-rm.map filetype=map format=map 
foundname=/home/sanjoy/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map 
usedmethod=database
used file  11: filename=lmroman12-regular filetype=otf format=otf 
foundname=/home/sanjoy/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
 usedmethod=database
used file  12: filename=latinmodern-math.otf filetype=opentypefonts 
foundname=/home/sanjoy/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf
 usedmethod=database
used file  13: filename=latinmodern-math.otf filetype=otf format=otf 
foundname=/home/sanjoy/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf
 usedmethod=database

system   files  stop used files


system   options  start commandline options

used option  currentrun=2
used option  fulljobname=./test6.tex
used option  input=./test6.tex
used option  kindofrun=2
used option  maxnofruns=8
used option  no-parse-first-line=true
used option  nonstopmode=true
used option  passon=-file-line-error -recorder -interaction nonstopmode

system   options  stop commandline options

system   options  start commandline files

used file   1: ./test6.tex

system   options  stop commandline files


publications start used btx commands


publications stop used btxcommands

Re: [NTG-context] [dev-context] palatino at 10.5pt bold not found when using project structure w/ MkIV

2013-07-08 Thread Sanjoy Mahajan
 The only things which are posted on the developer list nowadays are
 bug reports with possible fixes or extensions to the context
 programing language.

Thanks.  I am removing dev-context from the CC.

 Should the \project project_file
 line be placed before the \startcomponent?  Like this:
 
  \project project_file
  \startcomponent component_name
 
 If that's the recommended way, I can update
 http://wiki.contextgarden.net/Project_structure


 You can do this. It’s always better to make the setup of the document
 before \starttext, startcomponent etc. because some values are
 set/reset with \starttext.


Alas, this order seems to trigger bug, which is that if the \project
line comes first, then the component file is not compiled.  Minimal
example (mytest2.tex):

  \project testproject
  \startcomponent mytest2

  \input knuth

  \stopcomponent

testproject.tex is

  \startproject testproject
  \stopproject

Then context mytest2 doesn't ship any pdf pages.  Below is the log
file. (It works fine with the first two lines in mytest2.tex reversed.)

(/usr/share/texmf/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.05.28 00:36 MKIV current  fmt: 2013.7.4  int: english/english

system   'cont-new.mkiv' loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv)
system   files  jobname 'mytest2', input './mytest2', result 'mytest2'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(/home/sanjoy/sfse/test/mytest2.tex 
(testproject.tex{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown library 'loc'
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts'fallback modern rm 12pt' is loaded
 ) ) )

system   files  start used files

used files  1: filename=cont-yes.mkiv filetype=tex 
foundname=/usr/share/texmf/tex/context/base/cont-yes.mkiv usedmethod=otherwise
used files  2: filename=cont-new.mkiv filetype=tex 
foundname=/usr/share/texmf/tex/context/base/cont-new.mkiv usedmethod=otherwise
used files  3: filename=lang-us.lua filetype=lua 
foundname=/usr/share/texmf/tex/context/patterns/lang-us.lua usedmethod=otherwise
used files  4: filename=/home/sanjoy/sfse/test/mytest2 
foundname=/home/sanjoy/sfse/test/mytest2.tex usedmethod=qualified
used files  5: filename=testproject.tex foundname=testproject.tex 
usedmethod=direct
used files  6: filename=mkiv-base.map filetype=map format=map 
foundname=/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map 
usedmethod=database
used files  7: filename=lm.lfg filetype=tex 
foundname=/usr/share/texmf/tex/context/fonts/lm.lfg usedmethod=otherwise
used files  8: filename=lm-math.lfg filetype=tex 
foundname=/usr/share/texmf/tex/context/fonts/lm-math.lfg usedmethod=otherwise
used files  9: filename=lm-math.map filetype=map format=map 
foundname=/usr/share/texmf/fonts/map/dvips/lm/lm-math.map usedmethod=database
used files 10: filename=lm-rm.map filetype=map format=map 
foundname=/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map usedmethod=database
used files 11: filename=lmroman12-regular filetype=otf format=otf 
foundname=/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf 
usedmethod=database
used files 12: filename=latinmodern-math.otf filetype=opentypefonts 
foundname=/usr/share/texlive/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf
 usedmethod=database
used files 13: filename=latinmodern-math.otf filetype=otf format=otf 
foundname=/usr/share/texlive/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf
 usedmethod=database

system   files  stop used files


system   structure  start used structure

used structure   text: mytest2
used structure project: testproject

system   structure  stop used structure


system   files  start used files

used file   1: filename=cont-yes.mkiv filetype=tex 
foundname=/usr/share/texmf/tex/context/base/cont-yes.mkiv usedmethod=otherwise
used file   2: filename=cont-new.mkiv filetype=tex 
foundname=/usr/share/texmf/tex/context/base/cont-new.mkiv usedmethod=otherwise
used file   3: filename=lang-us.lua filetype=lua 
foundname=/usr/share/texmf/tex/context/patterns/lang-us.lua usedmethod=otherwise
used file   4: filename=/home/sanjoy/sfse/test/mytest2 
foundname=/home/sanjoy/sfse/test/mytest2.tex usedmethod=qualified
used file   5: filename=testproject.tex foundname=testproject.tex 
usedmethod=direct
used file   6: filename=mkiv-base.map filetype=map format=map 
foundname=/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map 
usedmethod=database
used file   7: filename=lm.lfg filetype=tex 
foundname=/usr/share/texmf/tex/context/fonts/lm.lfg usedmethod=otherwise
used file   8: filename

[NTG-context] Project structure and path evaluation

2013-04-25 Thread contact

Hello,

I am experimenting with the project structure
feature of ConTeXt and so far it seems that paths
used with \project, \product and \component are relative
to the current working directory of the context program.

What I am doing right now, I use paths relative to my
project file project.tex.

project.tex:
\startproject proj
   \product product1/product.tex
   \product product2/product.tex
\stopproject

product1/product.tex:
\startproduct prod1
   \component product1/components/component1.tex
   % I would like to use components/component1.tex
   % that is a path relative to the current file
\stopproduct

This is really annoying as it makes it difficult to organize
files into directories. I would like the path to be relative
to the file containing the command. I tried \usepath[{.}]
without success. So, is this possible in ConTeXt?

Also, at the end of the PDF on project structure there is
an example with \startdocument ... \stopdocument. But I don't
understand where I should use these commands. From the source,
it looks like \starttex ... \stoptext with the ability to register
a before and after command. I am under the impression that I have
to choose between using :
- the project structure (project, product and component)
- the \startdocument and \stopdocument commands
- the \starttex and \stoptext commands

But that I should not mix them together. Is this right?

Regards,

Thomas Corbière
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Problem with \product

2012-11-25 Thread Bernd Kosubek
Hallo,

I use:
ConTeXt  ver: 2012.11.23 17:35 MKIV  fmt: 2012.11.25  int: english/english

Problem:
\product do not work:

Main-file a.tex:

\startproject a
\environment e
1
\product b
3
\stopproject

Environment-file e.tex

\startenvironment e
\setupbodyfont[sans,12pt]
\stopenvironment

Sub-file b

\startproduct b
\project a
2
\stopproduct

gives as a ressult: 1 3

The environment-file works fine, but the sub-file seems to be ignored.

What is the matter?


Mit freundlichen Grüßen
Bernd Kosubek

--

DATENSCHUTZ geht alle an!
eMails sind wie Postkarten!
JEDER kann sie LESEN und ÄNDERN, daher:

Nur GPG-(PGP-)signierte eMails stammen von uns!
Unsere öffentlichen Schlüssel können von den
üblichen Schlüsselservern geladen werden.
Bitte teilen Sie uns mit, ob auch Sie einen
öffentlichen Schlüssel bereitstellen.
Nachrichten können dann verschlüsselt werden.

Besuchen Sie www.bsi.bund.de -- es lohnt sich!


signature.asc
Description: PGP signature
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with \product

2012-11-25 Thread Wolfgang Schuster

Am 25.11.2012 um 20:16 schrieb Bernd Kosubek kosu...@sksatz.com:

 Hallo,
 
 I use:
 ConTeXt  ver: 2012.11.23 17:35 MKIV  fmt: 2012.11.25  int: english/english
 
 Problem:
 \product do not work:
 
 Main-file a.tex:
 
 \startproject a
 \environment e
 1
 \product b
 3
 \stopproject
 
 Environment-file e.tex
 
 \startenvironment e
 \setupbodyfont[sans,12pt]
 \stopenvironment
 
 Sub-file b
 
 \startproduct b
 \project a
 2
 \stopproduct
 
 gives as a ressult: 1 3
 
 The environment-file works fine, but the sub-file seems to be ignored.
 
 What is the matter?

Use the product file as main file and put a sub files in components.

For more information read this: http://www.pragma-ade.com/show-mag-13.htm

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-11 Thread Andrew Dowell

On 10/11/12 13:43, Marco Patzer wrote:

2012-11-10 Marco Patzer:


2012-11-10 Hans Hagen:


On 11/10/2012 1:38 PM, Andrew Dowell wrote:

Chapter One

This is the Name of the First Chapter

I assume the OP was looking for a way to convert a counter to the
corresponding English word:

   \defineconversion
 [words]
 [One, Two, Three, Four, Five]

I forgot to add how to hook this into Hans' example:

\defineconversion
   [words]
   [One, Two, Three, Four, Five]

\setuphead
[chapter]
[header=high,
 command=\MyChapterTitle,
 style=\bfc,
 conversion=words,
 numberstyle=\bfb]

Thanks for your quick and helpful replies Marco and Hans.

I've not quite managed to get it working yet.

I also forgot to mention that I wanted it A5 2up on A4.  I thought I'd 
got that sorted using


\setuppapersize  [A5][A4]
\setuparranging  [2UP,rotated,doublesided]
\setuppagenumbering  [alternative=doublesided]
\setuplayout   [margin=0pt,width=fit]
\setupbodyfont  [lbr,12pt]

from the manual (page 55), but on closer inspection of the output seems 
to scramble the chapters.  My test setup has four chapters. The output 
labels the first chapter 'Chapter 1', the second chapter 'Chapter 4', 
the third chapter 'Chapter 2' and the forth chapter 'Chapter 3'.


Yes I did want the chapters to be numbered as words but I can't get 
Marco's modification to work.  It would be useful if there was a build 
in conversion without having to write out the words as Jamie's book has 
21 chapters!


I've tried various permutations including

  \incrementcounter [mycount]
  \convertedcounter [mycount]


in each chapter but none of the ones I tried work.

(I also tried including the dorecurse, but presume that was for testing)



I'm not sure if Han's example was supposed to be a stand alone or some 
sort of style file.  I tried running ConteXt on it but it stopped half 
way through.  I was using the the set up suggested in the manual of 
having a project file, and environment file, a product file and 
components.  That may be unnecessary complication but I thought I'd just 
follow the instructions till I understand it better.


I put your formatting suggestions into my environment file (attached).

Thanks for the suggestion of punknova Hans, it might come in sometime 
but Jamie wants it to look as much like a proper book as possible.


He's also telling me he wants the pages arranged as
sheet one
side one
page4 p1
side two
p2 p3

sheet two
side one
p8 p5
 side two
p6 p7

etc

so that the folded A4's bind next to each other, rather than in each 
other as the format I'm using at the moment gives.


I've also attached my product, project and test component files

Thanks again

Andrew



Marco

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


\startenvironment env2bookk

\setuppapersize  [A5][A4]
\setuparranging  [2UP,rotated,doublesided]
\setuppagenumbering  [alternative=doublesided]
\setuplayout   [margin=0pt,width=fit]
\setupbodyfont  [lbr,12pt]

\setupheadertexts
  [][chapter]
  [\getvariable{document}{title}][]

\setuppagenumbering
  [alternative=doublesided,
   location=footer]

\unexpanded\def\MyChapterTitle#1#2%
  {\framed
[offset=overlay,
 frame=off,
 width=\textwidth,
 align={middle,lohi}]
{#1\blank#2}}

\setuphead
  [chapter]
  [header=high,
   command=\MyChapterTitle,
   style=\bfc,
   numberstyle=\bfb]

\setuplabeltext
  [chapter=Chapter~]


\defineconversion
[words]
[One, Two, Three, Four, Five]

  \definecounter [mycount]
  \setupcounter  [mycount] [numberconversion=words]

\setuphead
   [chapter]
   [header=high,
command=\MyChapterTitle,
style=\bfc,
conversion=words,
numberstyle=\bfb]


\stopenvironment

\startproduct prds2
\project projbook

%\component pt1
\component test4
%\component c_article_by_me
% ...

\stopproduct

\startproject projbook
%\environment envbook % only mentioned here!
\environment envbookkk 
\product prds2
%\product prd_year2004-02
%\product prd_year2004-03
%\product prd_year2004-04

%\product tableofcontent

\stopproject
\startcomponent pt1
\product prds2 % but you can use it in other products anyway
\project projbook
%\title{Editorial}

%Jamie and Dad and the Teddy Train.
% Chapter One 


\startchapter[title=First]
	
	one
\dorecurse{10}{\input ward\par}

\stopchapter

\startchapter[title=Second]
	two
\dorecurse{10}{\input ward\par}

\stopchapter

	\startchapter[title=third]
	
	three
\dorecurse{10}{\input ward\par}

\stopchapter

Re: [NTG-context] Search path for .tex files (mkiv)

2012-10-30 Thread Marco Patzer
2012-10-30 John Devereux:

 What is the correct way to set or modify the search path for tex files?
 
 I want to make it mode-dependent. For example, for figures I have
 something like
 
 \doifmode{en} 
 {\def\FigDirLanguage{fig/lang_en}\def\DocumentSuffix{EN}\mainlanguage[en]}
 \doifmode{de} 
 {\def\FigDirLanguage{fig/lang_de}\def\DocumentSuffix{DE}\mainlanguage[de]}
 
 [...]
 
 \setupexternalfigures[directory={fig,{\FigDirLanguage},{../fig},{../\FigDirLanguage}}]
 
 
 I want to be able to do for example
 
 \input disclaimer

You can either trigger on the language or on the mode. The directory
structure looks like this

text/en/alpha.tex
text/en/beta.tex
text/de/alpha.tex
text/de/beta.tex
images/en
images/de

You can create the individual files as components and create a
product file:

\startproduct *

  \mainlanguage [de]
  \project [project]

  \component [a]
  \component [b]

\stopproduct

and a project file:

\startproject *

  \startmode [*en]
  \usepath
[text/en]
  \setupexternalfigures
[directory={images/en}]
  \stopmode

  \startmode [*de]
  \usepath
[text/de]
  \setupexternalfigures
[directory={images/de}]
  \stopmode

\stopproject

To trigger by language, you use *en, *de, etc. To trigger by mode,
you use the mode name, in that case you can move the \mainlanguage
call to the corresponding language setup.


Marco

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Search path for .tex files (mkiv)

2012-10-30 Thread John Devereux
Marco Patzer home...@lavabit.com writes:

 2012-10-30 John Devereux:

 What is the correct way to set or modify the search path for tex files?
 
 I want to make it mode-dependent. For example, for figures I have
 something like
 
 \doifmode{en} 
 {\def\FigDirLanguage{fig/lang_en}\def\DocumentSuffix{EN}\mainlanguage[en]}
 \doifmode{de} 
 {\def\FigDirLanguage{fig/lang_de}\def\DocumentSuffix{DE}\mainlanguage[de]}
 
 [...]
 
 \setupexternalfigures[directory={fig,{\FigDirLanguage},{../fig},{../\FigDirLanguage}}]
 
 
 I want to be able to do for example
 
 \input disclaimer

 You can either trigger on the language or on the mode. The directory
 structure looks like this

 text/en/alpha.tex
 text/en/beta.tex
 text/de/alpha.tex
 text/de/beta.tex
 images/en
 images/de

 You can create the individual files as components and create a
 product file:

 \startproduct *

   \mainlanguage [de]
   \project [project]

   \component [a]
   \component [b]

 \stopproduct

 and a project file:

 \startproject *

   \startmode [*en]
   \usepath
 [text/en]
   \setupexternalfigures
 [directory={images/en}]
   \stopmode

   \startmode [*de]
   \usepath
 [text/de]
   \setupexternalfigures
 [directory={images/de}]
   \stopmode

 \stopproject

 To trigger by language, you use *en, *de, etc. To trigger by mode,
 you use the mode name, in that case you can move the \mainlanguage
 call to the corresponding language setup.


 Marco

Hello Marco,

It looks like \usepath is the key to what I want, thank you. I don't
quite understand your overall structure. Is the * a literal * with
some special meaning, or are you using it as a placeholder for
something? Sorry if I am being dense.

I am not using the project/product/component system, perhaps I should
look into it again.

Hmmm, alpha.tex defines component a, beta.tex defines b, is that
right?


-- 

John Devereux
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Search path for .tex files (mkiv)

2012-10-30 Thread Wolfgang Schuster

Am 30.10.2012 um 17:24 schrieb John Devereux j...@devereux.me.uk:

 Marco Patzer home...@lavabit.com writes:
 
 2012-10-30 John Devereux:
 
 What is the correct way to set or modify the search path for tex files?
 
 I want to make it mode-dependent. For example, for figures I have
 something like
 
 \doifmode{en} 
 {\def\FigDirLanguage{fig/lang_en}\def\DocumentSuffix{EN}\mainlanguage[en]}
 \doifmode{de} 
 {\def\FigDirLanguage{fig/lang_de}\def\DocumentSuffix{DE}\mainlanguage[de]}
 
 [...]
 
 \setupexternalfigures[directory={fig,{\FigDirLanguage},{../fig},{../\FigDirLanguage}}]
 
 
 I want to be able to do for example
 
 \input disclaimer
 
 You can either trigger on the language or on the mode. The directory
 structure looks like this
 
text/en/alpha.tex
text/en/beta.tex
text/de/alpha.tex
text/de/beta.tex
images/en
images/de
 
 You can create the individual files as components and create a
 product file:
 
\startproduct *
 
  \mainlanguage [de]
  \project [project]
 
  \component [a]
  \component [b]
 
\stopproduct
 
 and a project file:
 
\startproject *
 
  \startmode [*en]
  \usepath
[text/en]
  \setupexternalfigures
[directory={images/en}]
  \stopmode
 
  \startmode [*de]
  \usepath
[text/de]
  \setupexternalfigures
[directory={images/de}]
  \stopmode
 
\stopproject
 
 To trigger by language, you use *en, *de, etc. To trigger by mode,
 you use the mode name, in that case you can move the \mainlanguage
 call to the corresponding language setup.
 
 
 Marco
 
 Hello Marco,
 
 It looks like \usepath is the key to what I want, thank you. I don't
 quite understand your overall structure. Is the * a literal * with
 some special meaning, or are you using it as a placeholder for
 something? Sorry if I am being dense.
 
 I am not using the project/product/component system, perhaps I should
 look into it again.

When you write a component file (assume it name is alpha.tex) you would begin 
the file with

  \startcomponent alpha

where \startcomponent takes the name of the current file as argument, the name 
of
the file is tired in the command \currentcomponent. In MkIV you can replace the 
name
with “*” and context would still print the correct name with \currentcomponent.


The asterisk in modes indicates that you use a system mode which created by 
system,
i.e. when you put \mainlanguage[en] in your document context enables the mode 
“*en”.

The opposite of this are user modes which are enable by the user itself with 
\enablemode[…].

 Hmmm, alpha.tex defines component a, beta.tex defines b, is that right?

No, that should be a typo because the command takes the name of the file as 
argument like \input but it doesn’t stop the processing when the file isn’t 
available.

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Problem with new version

2012-10-03 Thread pavel
Hello,

yesterday I upgraded my debian and I found out that my previsously prepared 
publication
cannot be compiled with the new version of ConTeXt.

The publication looks like:

   * main file ausgewaehlte.tex

   \startproject ausgewaehlte

   \environment ausgewaehlte_environment

   \startfrontmatter

   \setuppagenumbering[state=stop]
   \product titelpage

   \stopfrontmatter
   \startbodymatter
   \setuppagenumbering[state=start]
   \product first
   \product second
   ...
   \stopbodymatter

   \stopproject

   * environment file ausgewaehlte_environment.tex

   \startenvironment ausgewaehlte_environment

   \usemodule[typo-krn]
   \usemodule[letterspace]
   \setupoutput[pdftex]
   \enableregime[utf]
   \mainlanguage[cz]


   
\definefontfeature[hz][default][protrusion=punctuation,expansion=quality, 
mode=node]
   \definefontfeature[oldnumbers][language=DFLT,script=latn,onum=yes]
   \setupfonthandling [hz][min=20, max=20, step=5]
   \setupalign[hz,hanging]
   ...
   ...
   \stopenvironment

This publication I could compile without problem with context having these
debian packages:

   luatex0.70.1-1+b1
  next generation TeX engine
   texlive-luatex2009-15
  TeX Live: LuaTeX packages
   context   2011.05.18.20110627-1  
  powerful TeX format
   context-modules   20110701-1 
  additional ConTeXt modules

After upgrading debian to:

   luatex 0.70.1.20120524-3 
  amd64next generation TeX engine
   texlive-luatex 2012.20120611-4   
  all  TeX Live: LuaTeX packages
   context2012.05.30.20120611-1 
  all  powerful TeX format
   context-modules20120611-1
  all  additional ConTeXt modules

I get these error by compiling the above source:

This is LuaTeX, Version beta-0.70.2-2012070300 (TeX Live 2012/Debian)
 \write18 enabled.
(ausgewaehlte.tex
jobcontrol   version mismatch with jobfile: 1.14  1.19
 
ConTeXt  ver: 2012.05.30 11:26 MKIV  fmt: 2012.9.28  int: english/english
 
system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   ausgewaehlte.top loaded
(ausgewaehlte.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown: library 'loc'

{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
(ausgewaehlte_environment.tex
resolversmodules  loaded: 'typo-krn'
(/usr/share/texmf/tex/context/base/typo-krn.mkiv
loading  ConTeXt Typesetting Macros / Kerning
+ /usr/share/texmf/tex/context/base/typo-krn.lua
system   duplicate core namespace 'characterkerning'
 
\wait =

Could anyone explain me what happened? Why the new context version complains
about duplicate core namespace when the previous version worked without 
problems?

Any help will be appreciated.

Best regards

Pavel
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with new version

2012-10-03 Thread Wolfgang Schuster

Am 02.10.2012 um 19:43 schrieb pa...@hanak.name:

 Hello,
 
 yesterday I upgraded my debian and I found out that my previsously prepared 
 publication
 cannot be compiled with the new version of ConTeXt.
 
 The publication looks like:
 
   * main file ausgewaehlte.tex
 
   \startproject ausgewaehlte
 
   \environment ausgewaehlte_environment
 
   \startfrontmatter
 
   \setuppagenumbering[state=stop]
   \product titelpage
 
   \stopfrontmatter
   \startbodymatter
   \setuppagenumbering[state=start]
   \product first
   \product second
   ...
   \stopbodymatter
 
   \stopproject
 
   * environment file ausgewaehlte_environment.tex
 
   \startenvironment ausgewaehlte_environment
 
   \usemodule[typo-krn]
[…]
 
 Could anyone explain me what happened? Why the new context version complains
 about duplicate core namespace when the previous version worked without 
 problems?
 
 Any help will be appreciated.

You try to load the file typo-krn.mkiv in your document which is already loaded 
by context
when it generated the format and one of the commands in the file complains when 
it is
defined twice. Remove the line from your document and it should work.

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Strange behaviour by processing a project file

2012-10-03 Thread pavel
Hello,

I have the following file structure:

  * file my-project.tex contains:

 \environment my-environment

 \startproject my-project

 \product my-product1
 \product my-product2

 \stopproject

  * file my-environment.tex contains:

... font definitions, style definitions etc.

  * file my-product1.tex contains:

 \project my-project
 
 \startproduct my-product1
 ...
 \stopproduct

  * file my-product2.tex contains:
  
 \project my-project
 
 \startproduct my-product2
 ...
 \stopproduct

 
Now, when I process the product1 with context my-product1.tex I get the 
output in my-product1.pdf
as expected.
But when I try to process the whole project with context my-project.tex, the 
file is processed
but I get no pdf output, which surprise me, because in the reference manual 
contextref.pdf
I read:
 
   In principal a project file contains only a list of products and
environments. If you would process the project file all products
will be placed in one document. This is seldom wanted.

So I would expect to get one pdf outputfile with all products.

Could anyone explain me, why I don't get any pdf output?

Best regards

Pavel


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-09 Thread Sietse Brouwer
 On Thu, 09 Aug 2012 11:27:08 +0200, Hans Hagen pra...@wxs.nl wrote:
 in the current beta you can say

 \startcomponent *

 Hans

Wikified at http://wiki.contextgarden.net/Command/startcomponent. This
trick also works for startproject, startenvironment, and startproduct,
I assume?

And for the general case, what about
`\ctxlua{commands.processedfile}`? That looks like it should print the
current filename, as long as any inclusions use the ConTeXt commands
and not \input.

--Sietse

On Thu, Aug 9, 2012 at 1:24 PM, Procházka Lukáš Ing. - Pontex s. r. o.
l...@pontex.cz wrote:
 Great, thank you.

 Lukas


 On Thu, 09 Aug 2012 11:27:08 +0200, Hans Hagen pra...@wxs.nl wrote:

 in the current beta you can say

 \startcomponent *

 Hans



 --
 Ing. Lukáš Procházka [mailto:l...@pontex.cz]
 Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
 Bezová 1658
 147 14 Praha 4

 Tel: +420 244 062 238
 Fax: +420 244 461 038

 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-09 Thread Wolfgang Schuster

Am 09.08.2012 um 15:08 schrieb Sietse Brouwer sbbrou...@gmail.com:

 On Thu, 09 Aug 2012 11:27:08 +0200, Hans Hagen pra...@wxs.nl wrote:
 in the current beta you can say
 
 \startcomponent *
 
 Hans
 
 Wikified at http://wiki.contextgarden.net/Command/startcomponent. This
 trick also works for startproject, startenvironment, and startproduct,
 I assume?
 
 And for the general case, what about
 `\ctxlua{commands.processedfile}`? That looks like it should print the
 current filename, as long as any inclusions use the ConTeXt commands
 and not \input.

You can use \currentcomponent, \currentproduct and \currentproject to print the 
name of the file.

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \product tag

2012-08-08 Thread Sietse Brouwer
Hi John,

What Wolfgang said: `\product X` should be processed once inside
`\startproject` environments, and never otherwise. And you should
probably have products as your build targets, not projects.

@Hans: when I looked at the `processors` table in file-job.lua, I
found some discrepancies between the processing commands and the
reporting strings. Here is the table edited to show just the
discrepancies:

local processors = utilities.storage.allocate {
-- [we_are_inside_startthis] = {
-- [we_encounter_this] = { string_for_message,
processing_command }, -- comment
-- }
[v_text] = {
[v_project] = { none, context.processfileonce }, -- none
[v_product] = { none, context.processfileonce }, -- none
},
[v_project] = {
[v_product] = { once, context.processfilenone }, -- once
-- consistent, but strange comment
[v_component]   = { none, context.processfilenone }, -- many *
},
[v_product] = {
[v_product] = { none, context.processfilemany }, -- none
},
}

Is this all right? In general, the reporing strings are the ones
consistent with the table at the bottom of
http://wiki.contextgarden.net/Project_structure
which is taken from page 3 of
http://pragma-ade.com/general/magazines/mag-1101.pdf

Cheers,

Sietse


On Wed, Aug 8, 2012 at 2:29 AM, john Culleton j...@wexfordpress.com wrote:
 In a MKIV file using the approved method of structuring projects,
 does the \product tag do anything or is it just internal
 documentation for the source file? When I process a file called
 book.tex and containing the tag:
 \product foobar
 the result is a file called book.pdf, just as if the tag did not
 exist.

 --
 John Culleton
 Free list of books for self-publishers:
 http://wexfordpress.net/shortlist.html
 Police Procedural and Expose: Death Wore Black
 Create Book Covers with Scribus
 http://www.booklocker.com/books/4055.html
 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Project structure, (simple)font woes

2012-04-16 Thread Mari Voipio
Hello all,

I'm trying to teach myself to use the project structure. After a few
rounds of trial and error (...and stupid naming schemes...) I'm almost
there, but got stuck at my font setups.


If I do this as a single file, it works fine (Win7 and newest ConTeXt,
updated it this morning):

% FONT related setups
\usemodule[simplefonts] % to get access to Calibri  Cambria, win ttf fonts

\starttypescript[Manuals]
\definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
\definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
\stoptypescript

\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt,sans]

% end of font setups


\starttext
\input knuth
\stoptext




However, if I make a really simple project structure and try to put
the above in an environment file, compiling fails. What am I missing
here?


proj-test.tex:

\startproject proj-test
\environment env-fonts-simplefonts
\product prd-test1
\stopproject


prd-test1.tex:

\startproduct prd-test1
\project proj-test
\input knuth
\stopproduct



env-fonts-simplefonts:


\startenvironment env-fonts-simplefonts
% FONT related setups
\usemodule[simplefonts] % to get access to Calibri  Cambria, win ttf fonts

\starttypescript[Manuals]
\definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
\definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
\stoptypescript

\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt,sans]

% end of font setups


\stopenvironment



If I look at proj-test.log (the whole thing attached), I think the
problem is here:

loading  ConTeXt User Module / Simplefonts
+ 
C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua)
(C:/context/tex/texmf-context/tex/context/base/type-imp-cambria.mkiv)
(C:/context/tex/texmf-context/tex/context/base/type-imp-cleartype.mkiv)
fontsdefining  font with asked name
'LMMathRoman-Regular' is not found using lookup 'file'
fontsdefining  unknown font LMMathRoman-Regular, loading aborted
fontsdefining  unable to define LMMathRoman-Regular as
[Manuals-10pt-mm-mr--3]
fontsdefining  font with asked name
'LMMathRoman-Regular' is not found using lookup 'file'
fontsdefining  unknown font LMMathRoman-Regular, loading aborted
fontsdefining  unable to define LMMathRoman-Regular as
[Manuals-10pt-mm-mr--2]
fontsdefining  font with asked name
'LMMathRoman-Regular' is not found using lookup 'file'
fontsdefining  unknown font LMMathRoman-Regular, loading aborted
fontsdefining  unable to define LMMathRoman-Regular as
[Manuals-10pt-mm-mr--1]


But why? What is it I should do differently? ...I wouldn't even need
any math fonts...


Regards,

Mari


prd-test1.log
Description: Binary data


proj-test.log
Description: Binary data


prd-test1.tex
Description: TeX document


proj-test.tex
Description: TeX document


env-fonts-simplefonts.tex
Description: TeX document


test_simplefonts_Manuals.tex
Description: TeX document


test_simplefonts_Manuals.log
Description: Binary data
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Project structure and modes

2011-11-13 Thread Salil Sayed
Hi,

I get a similar error with a beta updated today. See below.


BR,

Salil




! Undefined control sequence.

system   tex  error on line 1 in file project_manuscript.tex: 
Undefined control sequence ...

1   \startproject project_manuscript
2 
3 \environment env_manuscript
4 
5 \product manuscript
6 
7 
8 \stopproject
9 


\stopcomponentindeed -\popsystemmode 
  \v!component \popreferenceprefix \stop...
l.1 \stopcomponentindeed
    
\ctxcommand ...\directlua \zerocount {commands.#1}
  
\stopcomponent -\ctxcommand {stopcomponent ()}
   \honorendofinput 
l.10 \stopcomponent
   
? 





From: Jaroslav Hajtmar hajt...@gyza.cz
To: Hans Hagen pra...@wxs.nl
Cc: mailing list for ConTeXt users ntg-context@ntg.nl
Sent: Sunday, November 13, 2011 12:06 PM
Subject: Re: [NTG-context] Project structure and modes

Hello Hans.
Is it possible that I'm still not working? I just updated and always ends the 
same compilation error.
My older projects do not compile. It can be a problem in anything else?
When I ignore the error message,  then finally generates a PDF file, but the 
first three rows in PDF file are listed keywords:

project
environment


Thanx Jaroslav


Here is error message:

ctx drakiada_201110

mtx-context     | run 1: luatex --fmt=C:/context/tex/texmf-cache/luatex-cache/c
ontext/2448223e6631addb83df348d74153606/formats/cont-en --lua=C:/context/tex/t
exmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en
.lui --backend=pdf ./drakiada_201110 \stoptext
This is LuaTeX, Version beta-0.70.1-200321 (rev 4277)
\write18 enabled.
(drakiada_201110.tex

ConTeXt  ver: 2011.11.12 12:34 MKIV  fmt: 2011.11.13  int: english/english

system  cont-new.mkiv loaded
(C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system  beware: some patches loaded from cont-new.mkiv
)
system  drakiada_201110.top loaded
(drakiada_201110.top)
fonts  latin modern fonts are not preloaded
languages  language en is active
{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts  preloading latin modern fonts (second stage)
(C:/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (C:/context/tex/te
xmf-context/tex/context/base/type-otf.mkiv)
files  readfile  asked name: 'loc', not found
{C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts
/map/dvips/lm/lm-rm.map}
fonts  virtual math  unable to resolve name mapsfromchar
fonts  fallback modern rm 12pt is loaded
(../obstastnik.tex (../t-obstastnik_env.mkiv
loading  ConTeXt User Module / Noviny
(C:/context/tex/texmf-context/tex/context/base/colo-imp-rgb.mkiv)
colors  system rgb is loaded
)
! Undefined control sequence.

system  tex  error on line 1 in file drakiada_201110.tex: Undefined c
ontrol sequence ...

1   \startcomponent drakiada_201110
2     \product obst_201110
3     \project obstastnik
4     \environment obstastnik_env % nahrazeno volanim knihovny
5     \environment setcolorsii_env
6     \setuplayout[normalpage] % \setuplayout[width=fit, height=fit,backspace=1
0mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,leftmarg
indistance=0mm,rightmargindistance=0mm\setuplayout[width=fit, height=fit,backspa
ce=10mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,left
margindistance=0mm,rightmargindistance=0mm] %,grid=yes] %,grid=yes
7
8     %\setupinitial[hesloinitial][location=text,n=2,color=red,before=\unblank]
%, distance=-1em, hoffset=1em, voffset=-3ex, before=\blank]
9
10     % \def\nadpisT{\hcolor\sst}
11     % \def\nadpisG{\hcolor\ssg}


\stopprojectindeed -\popsystemmode
                                    \v!project \stoptext \signalendofinput \...
l.1 \stopprojectindeed

\ctxcommand ...\directlua \zerocount {commands.#1}

\stopproject -\ctxcommand {stopproject ()}
                                           \honorendofinput
l.22 \stopproject

?
!^C EmergChcete ukončit dávkovou úlohu (A/N)? ency stop.

system  tex  error on line 1 in file drakiada_201110.tex: Emergency s
top ...

1   \startcomponent drakiada_201110
2     \product obst_201110
3     \project obstastnik
4     \environment obstastnik_env % nahrazeno volanim knihovny
5     \environment setcolorsii_env
6     \setuplayout[normalpage] % \setuplayout[width=fit, height=fit,backspace=1
0mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,leftmarg
indistance=0mm,rightmargindistance=0mm\setuplayout[width=fit, height=fit,backspa
ce=10mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,left
margindistance=0mm,rightmargindistance=0mm] %,grid=yes] %,grid=yes
7
8     %\setupinitial[hesloinitial][location=text,n=2,color=red,before=\unblank]
%, distance=-1em, hoffset=1em, voffset=-3ex, before=\blank]
9
10

Re: [NTG-context] Is there any change in processing of Projects, Product and Components?

2011-08-25 Thread Jaroslav Hajtmar

Hello Hans,
Thanks for the advice. Enough swap (change) \startproject ... 
\stopproject to \startproduct ... \stopproduct in the source file and 
everything runs just fine!


Thanx Jaroslav Hajtmar



Dne 26.8.2011 1:18, Hans Hagen napsal(a):

On 26-8-2011 00:46, Jaroslav Hajtmar wrote:

Hello ConTeXtsist ...

Has anything changed in the functioning of ConTeXt MkIV processing of
larger projects (containing more components)?
Some time (one or two months) ago I was using standalone to compiled an
extensive project and everything was OK, but now it looks as if the
component does not load at all!
It is necessary to explicitly specify the file extension?
Why components (in separate files) into all the main project file do not
load?


because a project just summarizes products and environments (projects 
are just there to help clever editors to identify products)


you can process products and components

this has always been the official policy although till recently the 
mechanism was a bit more tolerant (a side effect of not pushing / 
popping states, something that happens in the reimplementation)


(there's a new 'myway' document on this)

Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-



___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] rscale (only for integers?)

2011-04-01 Thread Steffen Wolfrum

Am 01.04.2011 um 11:36 schrieb Wolfgang Schuster:

 It does also work when you switch to the “times” typeface *before* \starttext 
 and change the size *after* \starttext:
 ...

 \setupbodyfont[times]
 ...
 \starttext
 ...
 \setupbodyfont[10.5pt]




An interesting distinction!

Only, where is the corresponding point in context's 
project(-product/component)- structure?
Probably not in included environment files.

Maybe in the project file? Like this:

\startproject MyProject

% Here ?

\product MyProduct

% Or here ?

\stopproject



Steffen
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] rscale (only for integers?)

2011-04-01 Thread Wolfgang Schuster

Am 01.04.2011 um 12:15 schrieb Steffen Wolfrum:

 
 Am 01.04.2011 um 11:36 schrieb Wolfgang Schuster:
 
 It does also work when you switch to the “times” typeface *before* 
 \starttext and change the size *after* \starttext:
 ...
 
 \setupbodyfont[times]
 ...
 \starttext
 ...
 \setupbodyfont[10.5pt]
 
 
 An interesting distinction!
 
 Only, where is the corresponding point in context's 
 project(-product/component)- structure?
 Probably not in included environment files.
 
 Maybe in the project file? Like this:
 
 \startproject MyProject
 
 % Here ?
 
 \product MyProduct
 
 % Or here ?
 
 \stopproject

As you process only the product or component the project file is wrong.

When you process the product \startproduct is your \starttext and when
you process only a single component \startcomponent is your \starttext.

Wolfgang

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] rscale (only for integers?)

2011-04-01 Thread Steffen Wolfrum

Am 01.04.2011 um 19:23 schrieb Wolfgang Schuster:

 
 Am 01.04.2011 um 12:15 schrieb Steffen Wolfrum:
 
 
 Am 01.04.2011 um 11:36 schrieb Wolfgang Schuster:
 
 It does also work when you switch to the “times” typeface *before* 
 \starttext and change the size *after* \starttext:
 ...
 
 \setupbodyfont[times]
 ...
 \starttext
 ...
 \setupbodyfont[10.5pt]
 
 
 An interesting distinction!
 
 Only, where is the corresponding point in context's 
 project(-product/component)- structure?
 Probably not in included environment files.
 
 Maybe in the project file? Like this:
 
 \startproject MyProject
 
 % Here ?
 
 \product MyProduct
 
 % Or here ?
 
 \stopproject
 
 As you process only the product or component the project file is wrong.
 
 When you process the product \startproduct is your \starttext and when
 you process only a single component \startcomponent is your \starttext.

My aim was to find one solution that fits in both cases (once running only a 
component, then running the entire product).
That's why I assumed the project file could serve for both.

If this is not true: do I have to write your distinction into the product AND 
in each componend file?!

Steffen
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] why this error?

2011-03-12 Thread Hans van der Meer
Not so long ago no problems with typesetting. 
OK in ConTeXt  ver: 2011.02.05 11:37 MKIV  fmt: 2011.2.5  int: english/english

Now in: ConTeXt  ver: 2011.02.25 22:03 MKIV  fmt: 2011.3.11  int: 
english/english
an error:

(.././literature.tex
resolversmodules  loaded: 'bib'
(/Users/hans/context/tex/texmf-context/tex/context/base/m-obsolete.tex
! Undefined control sequence.

system   tex  error on line 3 in file .././onderwijs.tex: Undefined 
control sequence ...

 1 %  $Revision: 43 $ $Date: 2011-02-15 14:31:42 +0100 (di, 15 feb 2011) $
 2 % Project file voor cryptografie onderwijsprodukties.
 3   
 4 \startproject onderwijs
 5 
 6 % environment setup for all products
 7 \environment mainsetup   % algemene macros
 8 \environment literature  % citation setup
 9 
10 % environment setup for specific products
11 \startlocalenvironment[college]
12  \writestring{THIS IS FOR THE PRESENTATIONS ONLY}
13  \enablemode[screen]

argument writestatus(\m!systems 
   ,\!!bs skipping obsolete module\!!es )
\ctxcommand #1-\directlua \zerocount {commands.#1
  }
l.3 ...estatus\m!systems{skipping obsolete module}
  
? 
Process aborted


Who can tell where this comes from and how it can be repaired?

Hans van der Meer

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Trouble with ConTeXt's project structure

2010-10-17 Thread Stefan Müller
Dear list,

I tried to set up a project of mine using the project structure propagated in 
the wiki [1]. Because I ran into some trouble I made the following small 
example (using MkIV, minimals 2010.10.14 13:14).

%% project_mymag.tex
\startproject project_mymag
\environment env_mymag
\product prd_year2004-01
\completecontent[criterium=all]
\stopproject
%% EOF

%% env_mymag.tex
\startenvironment env_mymag
\setupindenting[medium, yes] %some random setup
\stopenvironment
%% EOF

%% prd_year2004-01
\startproduct prd_year2004-01
\project project_mymag
\component c_editorial
\component c_article01
\stopproduct
%% EOF

%% c_editorial.tex
\startcomponent c_editorial
\product prd_year2004-01
\project project_mymag
\chapter{Editorial}
Dear reader...
\stopcomponent
%% EOF

%% c_article01.tex
\startcomponent c_article01
\product prd_year2004-01
\project project_mymag
\chapter{First Article}
This will be awesome...
\stopcomponent
%% EOF

When I translate the project file I get what I want, e.g. 3 pages: first page 
Editorial, second page First Article, third page Content.

When I translate the product file I don't get Editorial, First Article as 
expected, but Content, Editorial, First Article. It seems as if context 
first typesets the project file without going down inside the products again, 
before typesetting the originally called project.

When I translate one of the component files, lets say c_editorial.tex, I get 
Contents, Editorial instead of just one page Editorial. Again, it seems 
as if context first looks inside the project file (without going down) and only 
then typesets the component.

Another case, same problem. If I drop the product, i.e. I only have a 
project file including several components, the individual component files and 
an 
environment file, kind of the same problems appear. Translating the project 
file 
works well. Translating the component file c_editorial.tex results in a PDF 
with 4 pages (instead of one with Editorial): Editorial, First Article, 
Contents, Editorial. Context puts the whole project in the PDF and appends 
the component c_editorial...

All this seems very strange to me, especially since a friend told me project 
structure works pretty well in his projects. I tested on two different machines 
(Windows Vista and Linux). Am I doing something wrong? Is this a bug or a 
feature?

Thanks for your help in advance.
Best wishes,
Stefan.

[1] http://wiki.contextgarden.net/Project_structure
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] How to use local setups in selected components of a project only

2010-08-09 Thread Elias Oltmanns
Hi all,

it has been suggested on this list before, that people should use modes
instead of \localenvironment and friends. Unfortunately, I don't seem to
get either of them working as expected. Consider the following example:

% project.tex
\startproject project
\environment environ
\component compa
\component compb
\stopproject


% environ.tex
\startenvironment environ
% global setups
% ...
\startmode[compa]
\setuphead[section][number=no]
\stopmode
\stopenvironment


% localenv.tex
\startlocalenvironment [compa]
\setuphead[section][number=no]
\stoplocalenvironment


% compa.tex
\startcomponent compa
%\enablemode[compa]
\project project
\localenvironment localenv

\section{First section}
Some text

%\disablemode[compa]
\stopcomponent


% compb.tex
\startcomponent compb
\project project

\section{Second section}
More text
\stopcomponent


Compiling project.tex results in both sections being unnumbered.
Compiling just compb.tex yields the expected result. Apparently, the
setups of localenv stay in effect for all components processed
subsequently.

Commenting out \localenvironment and uncommenting \enablemode /
\disablemode in compa.tex, however, does not solve the problem either:
When I compile just compa.tex, everything works as expected. Compiling
preject.tex, however, results in all sections being numbered. Obviously,
the call to \enablemode comes too late.

What is the recommended approach to such a problem? Do I have to undo
local setups manually at the end of a component?

Thanks in advance for any advice,

Elias
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Strange Behaviour for toc

2009-10-12 Thread Martin Scholz
Hallo list,

I just started to work with conTeXt, now that I seted up an project 
environment as follows with the following content:

file project_oc.tex:


\startproject project_oc
\environment env_oc

\startfrontmatter
\setuppagenumbering[conversion=romannumerals]
\completecontent
\stopfrontmatter

\startbodymatter
\setuppagenumbering[conversion=]
\product prd_oc_0

\stopbodymatter

\startappendices

\stopappendices

\stopproject

file env_oc.tex:


\startenvironment env_oc

\enableregime [utf]
\setuplanguage [de]
[leftquote=\upperleftsinglesixquote,rightquote=
\upperrightsinglesixquote,leftquotation=\leftguillemot,rightquotation=
\rightguillemot]
\mainlanguage [de]

\setupbodyfontenvironment[default][em=italic]

\usemodule[greek]
\usemodule[units]

\setupcolors[state=start]
\setupcolor[rgb]
\definecolor[lightred][r=1,g=0.85,b=0.85]

\definefont[BigFontOne][Regular sa 3]
\definefont[BigFontTwo][RegularBold sa 2]
\definecolor[BigColorOne][r=.86,g=.850,b=.54]
\definecolor[BigColorTwo][r=.43,g=.425,b=.27]

\setuplayout[location=middle,
topspace=1.3cm,
width=middle,
cutspace=4.5cm,
rightmargindistance=0.4cm,
leftmargindistance=0.2cm,
backspace=1.2cm,
height=fit,
rightmargin=2.5cm,
leftmargin=1cm,
bottomspace=2cm,
footer=0.8cm,
setup=strict]

% \showgrid
 \showframe
% \showsetups
% \showlayout

\setuppagenumbering[alternative=doublesided,location=footer]
\setupheader[state=none]

\setuptolerance[tolerant, stretch]

\setupwhitespace[medium]

\setupfootnotes[way=bypage, conversion=set 2]

\definepagebreak[chapter][yes,footer,right]

\setuphead[chapter][textcommand=\MyChapterText,color=BigColorTwo,style=
\BigFontTwo]

\def\MyChapterText#1{\rlap{\BigFontOne\BigColorOne#1}\kern15pt#1}

\setuphead[section][numbercolor=red]

\setuphead[subsection][number=no,style=\ss]

\setuphead[subsubsection][style=slanted,number=no,before={\blank
[big]},before={\testpage[1]},after=\nowhitespace]

\setupfloats[spaceafter=3*medium]

\setuptables[bodyfont=small]
\setupcaption[table][style={\ssx\setupinterlinespace
[line=2.5ex]},align=left]

\setupfloat[table][criterium=0.5\textwidth,default=inner]

\setupcaption[figure][style={\ssx\setupinterlinespace
[line=2.5ex]},align=left]

\definefloat[Bigfigure][Bigfigures][figure]
\setupfloat[Bigfigure][location=inner]

\definefloat[Bigtable][Bigtables][table]
\setupfloat[Bigtable][location=inner]

\definefloat[vignette][figure]
\setupfloat[vignette][leftmargindistance=-
\outermargintotal,rightmargindistance=-\outermargintotal,default=
{outer,none,low}]
% \setup[vignette][number=no]

\definestartstop[Story][before={\setupbackground[style=
\tfx,background=color,backgroundcolor=white,frame=on,framecorner=rectangular,framecolor=black,rulethickness=0.5pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.25cm,rightoffset=0.25cm,before=
{\blank[big]}]\startbackground\switchtobodyfont[10pt]},after=
\stopbackground]

\definestartstop[MySummary][before={\setupbackground
[background=color,backgroundcolor=lightgray,backgroundcorner=rectangular,frame=off,topoffset=0.3cm,bottomoffset=0.3cm,leftoffset=0.5cm,rightoffset=0.5cm,before=
{\blank[big]}]\startbackground\Zus},after=\stopbackground]

\defineframedtext[Oddity][width=0.75
\textwidth,background=color,backgroundcolor=lightred,frame=off,framecorner=round,frameradius=0.5cm,backgroundcorner=round,style=
\tfx]

\setupinmargin[align=right,style=\ss\tfx\setupinterlinespace]

\setupitemize[align=right]

\startsectionblockenvironment[appendix]
\setuptabulate[align=right,split=yes]

\definepagebreak[chapter][yes,footer,right]
\setuphead[chapter][bodypartconversion=Character,page=chapter]
\setuphead[subsection][command=\SectionCommand,number=yes,numbercolor,red]
\setuphead[subsubsection][number=yes]
\definefloat[BigFramedFigure][BigFramedFigures][figure]
\setupfloat[BigFramedFigure][location=inner,frame=on,offset=2pt]
\definefloat[FramedFigure][FramedFigures][figure]
\setupfloat[FramedFigure][frame=on,offset=2pt]

\stopsectionblockenvironment

\setupregister[index][imp][pagestyle=bold]

\setupcombinedlist[content][level=2,alternative=c]
\setuplist[chapter][style=bold]

\stopenvironment

file prd_oc_0.tex:
--

\startproduct prd_oc_0
\project project_oc

\component c_oc0_1

\stopproduct

file c_oc0_1.tex:
-
\startcomponent c_oc0_1
\product prd_oc_0
\project project_oc

\starttext
\title{Titel}
\chapter[chap:ques]{Question}
\chapter[chap:answ]{Answer}
\chapter[chap:rema]{Remarque}
\stoptext

\stopcomponent

Now Im getting doubled entries in the \completecontent part, it lists 
everything as

1 Question  5
1 Question  5
2 Answer7
2 Answer7

so as this is not the wished behaviour, can someone help me to solve thsi 
problem. please be patient with me to get it done right, as I'm a newbe...

Greetings

Martin

Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Marcin Borkowski
Dnia Wed, Nov 05, 2008 at 12:00:30AM +0100, Wolfgang Schuster napisa#322;(a):
 
 Am 04.11.2008 um 23:47 schrieb Marcin Borkowski:
 
  Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster  
  napisa#322;(a):
 
  Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:
 
  Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster
  napisa#322;(a):
 
  Am 04.11.2008 um 22:01 schrieb Marcin Borkowski:
 
  Hi,
 
  yet another question from me;).
 
  I have a project divided into products divided into components.
  When I
  typeset a component, I want to get it's title (I keep it in a
  variable)
  in the footer.  If I typeset the wqhole project, I want to have  
  the
  pagenumber there instead.
 
  How do I do it?  (I mean what to put in the
  environment/product/component code?)
 
  \startmode[*product]
  ...
  \stopmode
 
  And: is there a corresponding \startmode[*project] ... \stopmode
  construct?
 
  Yes.
 
  Yes, that's right.  However, it won't work wrt. arranging.  If I put
  \setuppapersize[A5][A4]
  \setuparranging[2UP,rotated]
 
  within
  \startmode[*project]
  ...
  \stopmode
 
  I have still to repeat
  \setuparranging[normal]
 
  within
  \startmode[*product]
  ...
  \stopmode
 
  etc.
 
  Is it a bug or a feature?  (Seems a bug for me;).)
 
 I guess you missed something in your files, it works for me.

So here are my files:

env.tex:
==
\environment env

\startmode[*project]
  \setupheadertexts[Project]
  \setuppapersize[A5][A4]
  \setuparranging[2UP,rotated]
\stopmode

\startmode[*product]
  \setupheadertexts[Product]
\stopmode

\startmode[*component]
  \setupheadertexts[Component]
\stopmode
==

project.tex:
==
\startproject project

\environment env

\product product

\stopproject
==

product.tex:
==
\startproduct product

\project project

\component component

\stopproduct
==

component.tex:
==
\startcomponent component

\project project

Hello component!

\blank

\input tufte

\blank

\input knuth

\stopcomponent
==

So that only the whole project should be typest 2-up - but everything
gets arranged that way...

 
 Wolfgang

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Ty okryłeś śmierć wstydem!
Wtrąciłeś piekło w żałobę!
Uderzyłeś niegodziwość,
Niesprawiedliwość pozbawiłeś potomstwa!
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Wolfgang Schuster

Am 05.11.2008 um 01:00 schrieb Marcin Borkowski:

 Dnia Wed, Nov 05, 2008 at 12:00:30AM +0100, Wolfgang Schuster  
 napisa#322;(a):

 Am 04.11.2008 um 23:47 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster
 napisa#322;(a):

 Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster
 napisa#322;(a):

 Am 04.11.2008 um 22:01 schrieb Marcin Borkowski:

 Hi,

 yet another question from me;).

 I have a project divided into products divided into components.
 When I
 typeset a component, I want to get it's title (I keep it in a
 variable)
 in the footer.  If I typeset the wqhole project, I want to have
 the
 pagenumber there instead.

 How do I do it?  (I mean what to put in the
 environment/product/component code?)

 \startmode[*product]
 ...
 \stopmode

 And: is there a corresponding \startmode[*project] ... \stopmode
 construct?

 Yes.

 Yes, that's right.  However, it won't work wrt. arranging.  If I put
 \setuppapersize[A5][A4]
 \setuparranging[2UP,rotated]

 within
 \startmode[*project]
 ...
 \stopmode

 I have still to repeat
 \setuparranging[normal]

 within
 \startmode[*product]
 ...
 \stopmode

 etc.

 Is it a bug or a feature?  (Seems a bug for me;).)

 I guess you missed something in your files, it works for me.

 So here are my files:

 env.tex:
 ==
 \environment env

 \startmode[*project]
  \setupheadertexts[Project]
  \setuppapersize[A5][A4]
  \setuparranging[2UP,rotated]
 \stopmode

 \startmode[*product]
  \setupheadertexts[Product]
 \stopmode

 \startmode[*component]
  \setupheadertexts[Component]
 \stopmode
 ==

 project.tex:
 ==
 \startproject project

 \environment env

 \product product

 \stopproject
 ==

 product.tex:
 ==
 \startproduct product

 \project project

 \component component

 \stopproduct
 ==

 component.tex:
 ==
 \startcomponent component

 \project project

 Hello component!

 \blank

 \input tufte

 \blank

 \input knuth

 \stopcomponent
 ==

 So that only the whole project should be typest 2-up - but everything
 gets arranged that way...

The project file is loaded from the product and the component
and both enable then the project mode. See also Adityas mail
and use \startmode[*product] and \startnotmode[*product].

Wolfgang

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] project structure simplification ?

2008-10-23 Thread Steffen Wolfrum
Hi,

when there is only one product, only one environment-style (but lots  
of component) in a project,
is it necessary to start the files with these respective  lines ...

\startproject the_project

\startproduct the_product

\startenvironment the_style


... or is it sufficient for referencing
to call only the file the_project.tex, the_product, the_style ?


[asking for both, MkII and MkIV]

Steffen

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LuaTeX problems

2008-06-27 Thread Wolfgang Schuster
On Thu, Jun 26, 2008 at 8:57 AM, Tomi Lindberg [EMAIL PROTECTED] wrote:
 ConTeXt minimals is up and running but I have problems with LuaTeX.
 First the files I assume to be important:

 % Project
 \startproject atkmom

 \environment environ
 \product book

 \stopproject


 % Product
 \startproduct book

 \project atkmom

 \component images

 \startfrontmatter
\environment fmatter
\completecontent
 \stopfrontmatter

 \startbodymatter
\environment body
\component intro
\component osbasics
\component files
\component opera
 \stopbodymatter

 \startbackmatter
\completeindex[title=Hakemisto]
 \stopbackmatter

 \stopproduct


 With texexec my project results in proper .pdf file except the
 additional empty page at the end of it.

 With context the process ends after line \product book (I get a
 proper notice about the end of product book) in project file and i get
 the * prompt. It seems like LuaTeX can't see the \stopproject at
 all and thinks that the file has unexpectedly ended.

 Also with context I get messages that every \at, \in and \about that
 refers to something in component other than the one they're in is an
 unknown reference. They all work fine with texexec.

 Any idea what's wrong?

Both files work for me but I don't have your component or environment
files and there is a problem with the content in one of the files but as
long as you don't give us more information we can't help you.

Instead of sending us all other files you should make a minimal example
where we can reproduce the error.

Regards,
Wolfgang
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] LuaTeX problems

2008-06-26 Thread Tomi Lindberg
ConTeXt minimals is up and running but I have problems with LuaTeX.
First the files I assume to be important:

% Project
\startproject atkmom

\environment environ
\product book

\stopproject


% Product
\startproduct book

\project atkmom

\component images

\startfrontmatter
\environment fmatter
\completecontent
\stopfrontmatter

\startbodymatter
\environment body
\component intro
\component osbasics
\component files
\component opera
\stopbodymatter

\startbackmatter
\completeindex[title=Hakemisto]
\stopbackmatter

\stopproduct


With texexec my project results in proper .pdf file except the
additional empty page at the end of it.

With context the process ends after line \product book (I get a
proper notice about the end of product book) in project file and i get
the * prompt. It seems like LuaTeX can't see the \stopproject at
all and thinks that the file has unexpectedly ended.

Also with context I get messages that every \at, \in and \about that
refers to something in component other than the one they're in is an
unknown reference. They all work fine with texexec.

Any idea what's wrong?
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LuaTeX problems

2008-06-26 Thread Wolfgang Schuster
On Thu, Jun 26, 2008 at 8:57 AM, Tomi Lindberg [EMAIL PROTECTED] wrote:
 ConTeXt minimals is up and running but I have problems with LuaTeX.
 First the files I assume to be important:

 % Project
 \startproject atkmom

 \environment environ
 \product book

 \stopproject


 % Product
 \startproduct book

 \project atkmom

 \component images

 \startfrontmatter
\environment fmatter
\completecontent
 \stopfrontmatter

 \startbodymatter
\environment body
\component intro
\component osbasics
\component files
\component opera
 \stopbodymatter

 \startbackmatter
\completeindex[title=Hakemisto]
 \stopbackmatter

 \stopproduct


 With texexec my project results in proper .pdf file except the
 additional empty page at the end of it.

 With context the process ends after line \product book (I get a
 proper notice about the end of product book) in project file and i get
 the * prompt. It seems like LuaTeX can't see the \stopproject at
 all and thinks that the file has unexpectedly ended.

 Also with context I get messages that every \at, \in and \about that
 refers to something in component other than the one they're in is an
 unknown reference. They all work fine with texexec.

 Any idea what's wrong?

Do you call context book or context atkmom?

Regards
Wolfgang
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LuaTeX problems

2008-06-26 Thread Jean Magnan de Bornier
Le 26 juin à 08:57:09 Tomi Lindberg [EMAIL PROTECTED] écrit notamment:

| ConTeXt minimals is up and running but I have problems with LuaTeX.
| First the files I assume to be important:

| % Project
| \startproject atkmom

| \environment environ
| \product book

| \stopproject


| % Product
| \startproduct book

| \project atkmom

| \component images

| \startfrontmatter
| \environment fmatter
| \completecontent
| \stopfrontmatter

| \startbodymatter
| \environment body
| \component intro
| \component osbasics
| \component files
| \component opera
| \stopbodymatter

| \startbackmatter
| \completeindex[title=Hakemisto]
| \stopbackmatter

| \stopproduct


| With texexec my project results in proper .pdf file except the
| additional empty page at the end of it.

| With context the process ends after line \product book (I get a
| proper notice about the end of product book) in project file and i get
| the * prompt. It seems like LuaTeX can't see the \stopproject at
| all and thinks that the file has unexpectedly ended.

| Also with context I get messages that every \at, \in and \about that
| refers to something in component other than the one they're in is an
| unknown reference. They all work fine with texexec.

| Any idea what's wrong?
|
AFAIK not all commands are implemented in context; two weeks ago I asked
about the same question about why bibtex works with texexec and not with
context; the thread's name is:

context command and the bbl file

Regards
-- 
Jean
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
]
# \setuptextbackground
\setuptextposition[name][settings]
\setuptextrules[options]
\setuptexttexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setuptextvariable[name][options]
\setupthinrules[options]
\setuptolerance[options]
\setuptop[text|margin|edge][options]
\setuptoptexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setuptype[options]
\setuptyping[file|typing|name][options]
\setupunderbar[options]
\setupurl[options]
\setupversions[options]
\setupwhitespace[none|small|medium|big|line|fixed|fix|dimension]
# \setvalue
# \setvariables
# \setxvalue
# \setxvariables
# \showaccents
\showbodyfont[settings]
\showbodyfontenvironment[settings]
# \showcharacters
\showcolor[name]
\showcolorgroup[name][horizontal|vertical|name|value|number]
\showexternalfigures[alternative=a|b|c]
\showfields[names]
# \showfont
\showframe[text|margin|edge]
\showgrid
# \showgridboxes
# \showgridsnapping
\showlayout
# \showlayoutcomponents
\showmakeup
\showpalet[name][horizontal|vertical|name|value]
\showprint[typesetting papersize][printing papersize][settings]
\showsetups
\showstruts
# \showstruts
\showsymbolset[name]
# \snaptogrid
\someline[reference]
\somewhere{text}{text}[reference]
\sort[text]{text}
\space
\splitfloat[settings]{text}{text}
# \splitstring
# \SR
# \start \stop
# \start \stop
\startalignment[width|left|right|middle|inner|outer|wide|broad|height|bottom|line|reset|hanging|nothanging|hyphenated|nothyphenated]
 \stopalignment
# \startarabicpar \stoparabicpar
# \startarabictext \stoparabictext
# \startappendices \stopappendices
\startbackground \stopbackground
# \startbackmatter \stopbackmatter
# \startbaselinecorrection \stopbaselinecorrection
# \startblockquote \stopblockquote
# \startbodymatter \stopbodymatter
\startbuffer[name] \stopbuffer
\startcolor[name] \stopcolor
\startcolumns[settings] \stopcolumns
\startcombination[matrix] \stopcombination
\startcomment[name][settings] \stopcomment
\startcomponent file \stopcomponent
\startdescription{text} \stopdescription
\startdocument[name] \stopdocument
\startenumeration \stopenumeration
\startenvironment file \stopenvironment
\startfact\fact text \\ text \\ text \\\fact text \stopfact
\startfigure[name][file][factor=number][frame=on|off] \stopfigure
\startfloattext[left|right|high|middle|low|offset|tall][reference]{text}{text} 
\stopfloattext
# \startFLOWcell \stopFLOWcell
# \startFLOWchart \stopFLOWchart
\startformula \stopformula
# \startframedcontent \stopframedcontent
\startframedtext[left|right|middle|none][settings] \stopframedtext
# \startfrontmatter \stopfrontmatter
# \starthanging \stophanging
\starthiding \stophiding
\startinteractionmenu[name] \stopinteractionmenu
\startitemgroup[name][options][settings] \stopitemigroup
# \startitemize \stopitemize
# \startitemize \stopitemize
# \startJScode \stopJScode
# \startJSpreamble \stopJSpreamble
# \startJSscripts \stopJSscripts
\startlegend[two]\leg text \\ text \\ text \\\leg \stoplegend
\startline[reference] \stopline
\startlinecorrection \stoplinecorrection
\startlinenumbering[continue] \stoplinenumbering
\startlines \stoplines
\startlocal \stoplocal
\startlocalenvironment \stoplocalenvironment
\startlocalfootnotes \stoplocalfootnotes
# \startlocalsetups \stoplocalsetups
\startmakeup[name][settings] \stopmakeup
\startmarginblock \stopmarginblock
\startmarginrule[number] \stopmarginrule
# \startmode \stopmode
# \startMPpage \stopMPpage
\startnamemakeup \stopnamemakeup
\startnarrower[left|middle|right] \stopnarrower
# \startnointerference \stopnointerference
# \startnotmode \stopnotmode
\startopposite \stopopposite
\startoverlay{text}{text} \stopoverlay
\startoverview[names] \stopoverview
\startpacked[blank] \stoppacked
\startparagraph \stopparagraph
\startpositioning \stoppositioning
\startpostponing \stoppostponing
\startproduct file \stopproduct
\startprofile[names] \stopprofile
\startproject file \stopproject
\startquotation[left|middle|right] \stopquotation
\startregister[text]{text+text+text} \stopregister
# \startsetups \stopsetups
# \startstandardmakeup \stopstandardmakeup
\startsymbolset[name] \stopsymbolset
\startsynchronization \stopsynchronization
\starttable[text|name] \stoptable
\starttables[text|name] \stoptables
\starttabulate[text][settings] \stoptabulate
# \startTEXpage \stopTEXpage
# \starttext \stoptext
# \starttextbackground \stoptextbackground
# \starttextdata \stoptextdata
\starttextrule[top|bottom]{text} \stoptextrule
\starttyping \stoptyping
\startunpacked \stopunpacked
\startversion[numbers] \stopversion
# \startXMLdata \stopXMLdata
# \startXMLignore \stopXMLignore
# \startXMLmapping \stopXMLmapping
\stretched{text}
# \strut
# \strutdepth
# \strutheight
# \struttedbox
\sub[references]
\subject[references]{text}
\subsection[references]{text}
\subsubject[references]{text}
\subsubsection[references]{text}
\subsubsubject[references]{text}
\switchtobodyfont[font settings]
\switchtorawfont[name]
\sym{text}
\symbol[name][name

Re: [NTG-context] No header text on last page

2007-08-22 Thread luigi scarso
On 8/23/07, Jeff Smith [EMAIL PROTECTED] wrote:
 Hi,

 I merged the files too and, just as you said, they worked.

 Toying around a bit with my files, I found out what's the problem, but
 I can't understand it! It's in my product file:

 \startproduct test
 \environment env_these

 \startbodymatter
\component chap1
 \stopbodymatter

 \stopproduduct

 The culprit is \startbodymatter ... \stopbodymatter. If I remove the
 bodymatter command and compile, my header text appears on the last
 page.

 What's wrong, anyone?! I know that ConTeXt can compile at the product
 level, but is it because I specify no project at all? I'm going to
 investigate further in this direction.

I don't know very well project/product/component
following
http://wiki.contextgarden.net/Project_structure
these work ok.

%%% tprj.tex
\startproject tprj
\environment env_these
\product test
\stopproject

%%% test.tex
\startproduct test
\project tprj
\component chap1
\stopproduct

%%% chap1.tex
\startcomponent chap1
\project tprj
\product test
\Chapitre{Introduction générale}
\dorecurse{1}{\input tufte}
\dorecurse{2}{\input tufte}
\Sujet{Pourquoi l'épistémologie?}
\dorecurse{4}{\input knuth}
\Sujet{Linguistique et philosophie}
\dorecurse{2}{\input tufte}
\dorecurse{6}{\input knuth}
\Aspect{Épistémologie et philosophie des sciences}
\dorecurse{4}{\input knuth}
\Aspect{Histoire et philosophie des sciences}\dorecurse{2}{\input knuth}
\stopcomponent



-- 
luigi

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Weird frontmatter behaviour

2007-07-31 Thread Wolfgang Schuster
On Tue, 31 Jul 2007 00:18:28 -0400
Jeff Smith [EMAIL PROTECTED] wrote:

 Hi all!
 
 I have a well-defined project with its products, components and environment
 file. The structure works and all that, so my problem that I am going to
 describe below is not there.
 
 In my document structure, each product corresponds to one Part.
 
 My environment file defines no header whatsoever for the very first page of
 a Part section (header=high).
 
 When a Part is in the frontmatter, the header does not disappear. When the
 same part is in the bodymatter, it works -- the header is not there.
 
 Here is my main project file when I attempt to test exactly that, with only
 two parts (no need for more at the moment):
 
 \startproject These
 \environment env_these
 
 \startfrontmatter
 \product prod_liminaire
 \stopfrontmatter
 
 \startbodymatter
 \product prod_liminaire
 \product prod_p1
 \stopbodymatter
 
 \stopproject
 
 The product called prod_liminaire currently contains my title page only. I
 do know that doing exactly the above makes no sense, but like I said I did
 that only to test out the problem.
 
 So, when I compile this, prod_liminaire has a header in the frontmatter, but
 it has NO header in the bodymatter. It's the very same file to the very last
 byte, only in a different sectionblock. And it behaves differently.
 
 What's wrong? I'm really at loss over this. I obviously want no header in
 the frontmatter Parts, that's where my product prod_liminaire normally goes.
 
 Thanks in advance! Any help is appreciated, as always!
 Jeff Smith

Hi Jeff,

project are only meant to collect products with the same settings.

Your current project should be a product and your product should be a
component, you can also load components in components.

Wolfgang
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Weird frontmatter behaviour

2007-07-30 Thread Jeff Smith
Hi all!

I have a well-defined project with its products, components and environment
file. The structure works and all that, so my problem that I am going to
describe below is not there.

In my document structure, each product corresponds to one Part.

My environment file defines no header whatsoever for the very first page of
a Part section (header=high).

When a Part is in the frontmatter, the header does not disappear. When the
same part is in the bodymatter, it works -- the header is not there.

Here is my main project file when I attempt to test exactly that, with only
two parts (no need for more at the moment):

\startproject These
\environment env_these

\startfrontmatter
\product prod_liminaire
\stopfrontmatter

\startbodymatter
\product prod_liminaire
\product prod_p1
\stopbodymatter

\stopproject

The product called prod_liminaire currently contains my title page only. I
do know that doing exactly the above makes no sense, but like I said I did
that only to test out the problem.

So, when I compile this, prod_liminaire has a header in the frontmatter, but
it has NO header in the bodymatter. It's the very same file to the very last
byte, only in a different sectionblock. And it behaves differently.

What's wrong? I'm really at loss over this. I obviously want no header in
the frontmatter Parts, that's where my product prod_liminaire normally goes.

Thanks in advance! Any help is appreciated, as always!
Jeff Smith
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Several environments in a project?

2007-06-20 Thread Wolfgang Schuster
2007/6/18, nicola [EMAIL PROTECTED]:
 Hi,
 I have a project with a few products sharing the same layout, which is
 specified in a global environment file. Each product is in a separate
 subdirectory together with its components. Then, I want to put some
 setups and figure definitions in product-specific environments and I do
 it like this:

 \startproduct OneProduct
 \project MyProject
 \environment OneProductDir/LocalEnvironment
 ...

 The problem is that the local environment is not read when I typeset a
 particular component, but only when I typeset the whole product. How can
 I fix that?

 Nicola

Hi Nicola,

if you use the same layout for all your documents in a project you can use the
following structure.

% Project

\startproject projectname

\environment environment1
.. more environments

\product product1
.. more products

\stopproject

% Product

\startproduct product1

\project projectname

\component component1
... more components

\stopproduct

% Component

\startcomponent component1

\project projectname

Content

\stopcomponent

The important part is to use \project in your component and not \product,
if I understand the code in core-job correct product files are not read within
a component, only projects, environments and other components.

Greetings
Wolfgang
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] math: \usemathcollection and \enablemathcollection

2007-04-04 Thread Johannes Kuester
I'm quite lost with \usemathcollection and \enablemathcollection --
I checked the manual, the wiki, and the source browser, but without
success for my problems. I just don't get how math font switching works
for e.g. Lucida fonts, and why it does not for my fonts in my setup.

So:

What is the correct use of
  \usemathcollection
and
  \enablemathcollection
i.e. where should these appear (and where not)?
Do I need \enablemathcollection at all?

In my current setup (see below), I have two problems:

 Major problem: I would like to switch my math fonts globally.

Currently I have to apply \enablemathcollection e.g. after every
\startcolumns (and after other environments as well),
otherwise my math fonts are used, but not in the desired encoding,
which results in wrong symbols shown.

 Minor problem: I would like make sure that all math symbols do come
from my math fonts and aren't taken from CM or other fonts.
Is this possible?

E.g. could I get an error message (or some special black box or the like
in my pdf file) for each math control sequence which is not (yet)
defined in my current mathcollection?


My current setup:

-- an environment file env-signa.tex with
   (among many other definitions)

  \usetypescriptfile[type-opticals]
  \usetypescriptfile[type-minionpro]
  \usetypescriptfile[type-tymnmath]

  \usetypescript[MinionPro][ec]

  \setupbodyfont[MinionPro]
  \switchtobodyfont[MinionPro,9.6pt]


-- a type-minionpro.tex file with
  \starttypescript [serif] [MinionProSizes] [ec]
% (followed by many \definefontsynonym)
  \stoptypescript

  \starttypescript[MinionPro][ec]
\usetypescript[serif][Opticals][size]
\usetypescript[serif][MinionProSizes][ec]
\usetypescript[newmath][MinionMath] %[size]

\definebodyfontenvironment
  [9.6pt]
  [\s!text=9.6pt,\s!script=6.8pt,\s!scriptscript=4.9pt,
   \c!x=8.4pt,\c!xx=5.8pt,\c!big=11pt,\c!small=7.6pt]

% further \definebodyfontenvironment entries

\enablemathcollection[newmath]
\usemathcollection[newmath]
\quittypescriptscanning
  \stoptypescript


-- a math-newmath.tex file with
  math font synonyms, definitions and some blocks like
  \startmathcollection[newmath]
% (many \definemathsymbol entries)
  \stopmathcollection

  This is a general file for math fonts following
  TeX NewMath encodings
  (this should develop in a real ConTeXt module for general use)


-- a type-tymnmath.tex file, setting up my math fonts, with
  \starttypescript[newmath][MinionMath]
% (with
%  \definefontsynonym
% and
%  \definebodyfont [9.6pt] [mm]
%  [ ... ]
% entries)
  \stoptypescript


-- and of courese a main file with
  \startproject project_signa
  \environment env_signa
   and components (chapter files) with
   \startcomponent kap_01
   \project project_signa


Thanks for any help!

Johannes

-- 
Johannes Kuester
typoma

mailto:[EMAIL PROTECTED]
http://www.typoma.com
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Working with environments and projects

2007-01-16 Thread Jeff Smith
Hi all!

I'm trying to work with environements, projects, products and
components. I have the following setup, involving juste one component
at the moment:

The component file is named acoustique.tex:

\startcomponent acoustique
\product prd_articlesdemo
\project project_dhfq2

[some text]

\stopcomponent

Then, in the same folder, there's the product file:

\startproduct prd_articlesdemo
\project project_dhfq2
\component acoustique
\stopproduct

Then, in the same folder, there's the project file:

\startproject project_dhfq2
\environment env_dhfq2
\product prd_articlesdemo
\stopproject

Then, in a folder above my working folder, there's the environment file:

\startenvironment env_dhfq2

[too much stuff to paste here]

\stopenvironment

Now when I compile either the component or the product, I get:

TeXExec | no ctx file found
TeXExec | nothing to process

What I am doing wrong? Is it right not to use \starttext ... \stoptext here?

Thanks!
JFS
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Working with environments and projects

2007-01-16 Thread Taco Hoekwater
Jeff Smith wrote:
 Hi all!
 
 I'm trying to work with environements, projects, products and
 components. I have the following setup, involving juste one component
 at the moment:
 
 The component file is named acoustique.tex:
 
 \startcomponent acoustique
 \product prd_articlesdemo
 \project project_dhfq2
 
 [some text]
 
 \stopcomponent
 
 Then, in the same folder, there's the product file:
 
 \startproduct prd_articlesdemo
 \project project_dhfq2
 \component acoustique
 \stopproduct
 
 Then, in the same folder, there's the project file:
 
 \startproject project_dhfq2
 \environment env_dhfq2
 \product prd_articlesdemo
 \stopproject
 
 Then, in a folder above my working folder, there's the environment file:
 
 \startenvironment env_dhfq2
 
 [too much stuff to paste here]
 
 \stopenvironment
 
 Now when I compile either the component or the product, I get:
 
 TeXExec | no ctx file found
 TeXExec | nothing to process
 

TeXExec normally say this if there is not any file mentioned
on the command line, or if it cannot find any file based on the
name supplied on that commandline.

Quick recap (but you probably double checked all of this
a number of times by now):

1. your file is called prd_articlesdemo.tex
2. you (as a user) have file permissions to read the file
3. you are in the directory where that file is
4. your command is: texexec prd_articlesdemo

That really should do the trick.

I am clueless about what else could be wrong.

Best, Taco



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Question \completepublications

2006-12-21 Thread Guðmundur J. Kristjánsson
Hi all.

I think I am having the same (or at least a similar problem). I have
been using Context for a while now, always using references. This is the
first time experiencing this problem. I have tried:

1) \completepublications[criterium=all]
2) \completepublications[criterium=local]
3) \completepublications
4) \chapter[References]
   \placepublications
5) \chapter[References]
   \placepublications[criterium=all]
6) Putting \placepublications in the component file.
7) Putting \completepublications in the appendix section.

...and I just can't get the list of the references in my project. All
the citations work, btw. Any idea what I am missing (knowing me, its
probably something really stupid :) )?

The product file for my current project:

\startproduct prd_NPD_FinalTermProject
\project prj_NPD
\usemodule[bib]
\usepublications[NPD_FinalTermProjectBibliography]

\startfrontmatter
% Front Page
% Front page text here.
\page

% Cover page
% Cover page text here
\startabstract
% Abstract text here.
\stopabstract
\page

% Contents
\completecontent

% List of figures
\completelistoffigures

% List of tables
\completelistoftables

% List of equations
%\placelist[formula][criterium=text,alternative=c]
%\section{Formulas}
%\placelist[formula][criterium=text]
\stopfrontmatter

\startbodymatter
\component cmp_NPD_Dell
\component cmp_NPD_Facebook
\stopbodymatter

\startbackmatter
\completepublications[criterium=all]
\stopbackmatter

\startappendices
\stopappendices

\stopproject

Best regards / Kær kveðja,
Gudmundur J. Kristjansson / Guðmundur J. Kristjánsson
[EMAIL PROTECTED] | [EMAIL PROTECTED] |
Tel. +347-596-2554.


Taco Hoekwater wrote:
 Hi Wim,
 
 Wim Neimeijer wrote:
 However when I move the \complepublications to the \start..\stopappendices
 like this

 \usemodule[bib]
 \startproject cart
 \mainlanguage[nl]

 \input cartbiblio % contains \start..\stoppublication

 \startbodymatter
 \component cart8 % contains main text
 \stopbodymatter
 \startappendices
 *\completepublications % this does not work*
 
 try:
 
\completepublications[criterium=all]
 
 Best, Taco
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Question \completepublications

2006-12-14 Thread Wim Neimeijer
Hello All,

My project looks like this and all looks well.

\usemodule[bib]
\startproject cart
\mainlanguage[nl]

\input cartbiblio % contains \start..\stoppublication

\startbodymatter
\component cart8 % contains main text
*\completepublications % this works*
\stopbodymatter
\startappendices
\completeindex
\stopappendices
\stopproject

However when I move the \complepublications to the \start..\stopappendices
like this

\usemodule[bib]
\startproject cart
\mainlanguage[nl]

\input cartbiblio % contains \start..\stoppublication

\startbodymatter
\component cart8 % contains main text
\stopbodymatter
\startappendices
*\completepublications % this does not work*
\completeindex
\stopappendices
\stopproject
*
*all the references made by \cite are empty ? The log of this run
indicates that cart.bbl is not found but in the working example
it does not need a cart.bbl file ?

Kind regards

Wim

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Question \completepublications

2006-12-14 Thread Taco Hoekwater
Hi Wim,

Wim Neimeijer wrote:
 
 However when I move the \complepublications to the \start..\stopappendices
 like this
 
 \usemodule[bib]
 \startproject cart
 \mainlanguage[nl]
 
 \input cartbiblio % contains \start..\stoppublication
 
 \startbodymatter
 \component cart8 % contains main text
 \stopbodymatter
 \startappendices
 *\completepublications % this does not work*

try:

   \completepublications[criterium=all]

Best, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Empty last page, broken markings ??

2006-08-24 Thread WN




[EMAIL PROTECTED] wrote:

  Hi,

WN wrote:
  
  
Hello,

The last page in my documents is always empty. The document is setup as 
singlesided via

  
  
Always, always (as in: it generates an empty page even if that results
in an uneven number of pages)?
  

Correct, always an empty page. I have documents which have an uneven
number of pages, and
even number of pages.

  
Or does it fill out to an even number of generated pages?

Or does it always create an odd number of pages (I've heard that happen
with some conflicting settings between the use of sectionblocks and
\setuppagenumbering)?
  

I used the sectionblock option as described on http://wiki.contextgarden.net/Empty_page_at_the_end
just 2 days ago
to eliminate the empty page at the end of the document, which it does.
I did not use the sectionblock construct before.
Since then the markings as explained in my original email don't work
for the last couple of pages.

  
  
  
I use a couple of environment files which all define several things, title page, Table of contents,
Table of Figures, page layout, page numbering, headers/footers etc. I could attach all of them,
but I think the above settings are the one's that matter. I am not sure how to proceed to provide
the correct but minimal information. I tried to put everything in a test file, but I was not successful.

  
  
What is the overall structure of your document? The setups look ok, so
it is more likely something relating to your use (or not..) of section
blocks. For example, it could be that your headings do not work inside
appendices or backmatter?
  

I don't use appendices or a backmatter (yet), the overall structure of
all my documents look like this

\startproject chn
\mainlanguage[nl]
\enablemode[withsections,font-normal]

\input ../global

\startbodymatter
\input chn-chapter1
\input chn-chapter2
\input chn-chapter3
\input chn-chapter4
\input chn-chapter5
\input chn-chapter6
\input chn-chapter7
\stopbodymatter
\stopproject chn


  
  
  
I tried to attach the last three pages of my document, which demostrates the problem
but I exceeded the 40 KB. Is there another way of uploading documents 
which are more than 40 KB in size ?

  
  
Putting them on the wiki temporarily is an option.
  

I will try to do that

Thanks so far
Wim

  
Good luck,
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
  




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] components and figure search paths

2006-05-10 Thread David Arnold
Hans and Sanjoy,

I am doing something similar, so I am following this discussion closely.

On my machine, the main directory is ~/Documents/IntAlgText/trunk.  
The main directory contains my environment files and book.tex (the  
project).

Then I have these directories.

~/Documents/IntAlgText/trunk/chapter0
~/Documents/IntAlgText/trunk/chapter1
...
~/Documents/IntAlgText/trunk/chapter8

Each of these directories contains a chapter and sections for that  
chapter. So, for example, I have:

~/Documents/IntAlgText/trunk/chapter0/chapter0.tex
~/Documents/IntAlgText/trunk/chapter0/section1.tex
~/Documents/IntAlgText/trunk/chapter0/section2.tex

Each of these directories contains a figure directory. So, I have:

~/Documents/IntAlgText/trunk/chapter0/figures
~/Documents/IntAlgText/trunk/chapter1/figures
...
~/Documents/IntAlgText/trunk/chapter8/figures

Each of these figure directories contain all of the figures for the  
chapter (the product). There are two files for each section of  
chapter that generate the figures.

~/Documents/IntAlgText/trunk/chapter0/figures/section1figs.tex
~/Documents/IntAlgText/trunk/chapter0/figures/figlibSection1.xml
~/Documents/IntAlgText/trunk/chapter0/figures/section2figs.tex
~/Documents/IntAlgText/trunk/chapter0/figures/figlibSection2.xml


My project (book.tex) looks like this:

\startproject book
%\environment bookenv
\doifnotmode{clean1-screen}{\environment bookenv-clean1-print}
\doifmode{clean1-screen}{\environment bookenv-clean1-screen}
\product chapter1/chapter0
\product chapter1/chapter1
\product chapter2/chapter2
\product chapter3/chapter3
\product chapter4/chapter4
\product chapter5/chapter5
\product chapter6/chapter6
\product chapter7/chapter7
\product chapter8/chapter8
\stopproject

chapter0.tex looks like this:

\startproduct chapter0
\project book
\startbodymatter
\setupheadnumber[chapter][-1]
\chapter[chap:0]{Preliminaries}
\component chapter0/section1  %Number Systems
\component chapter0/section2   %Logic
\stopbodymatter
\stopproduct

And the beginning lines in section1.tex look like this:

\startcomponent section1
\project book
\product chapter0/chapter0
\usemodule[newmat]
\usemodule[fig-base]
\usefigurebase[figures/figlibSection1]
\section[section:numbers]{Number systems}

The beginning lines in section2,tex look like this:

\startcomponent section1
\project book
\product chapter0/chapter0
\usemodule[newmat]
\usemodule[fig-base]
\usefigurebase[figures/figlibSection1]
\section[section:numbers]{Number systems}

The files section1figs.tex and section2figs.tex contain Metapost code in

\startMPpage
...
\stopMPpage

pairs. The figure libraries figlibSection1.xml and figlibSection2.xml  
look like this:

?xml version='1.0'?
?context-directive job module fig-make ?
?context-directive job mode letter ?
figurelibrary language=en

description
organizationCollege of the Redwoods Mathematics Department/ 
organization
projectIntermediate Algebra Text/project
productChapter 0/product
commentFigures for Section 1/comment
/description

figure
filesection1figs-mpgraph.1/file
labelsec1onea/label
copyrightCollege of the Redwoods Mathematics Department/copyright
comment/comment
/figure

/figurelibrary

This figure library also contains other graphics such as screen  
captures of my graphing calculator.

It all seems to work. I have compiled individual sections, like  
section1.tex and I've compiled chapters, like chapter0.tex. I haven't  
tried to compile book.tex (too big), so I don't know if that works.

Hope this helps.

On May 10, 2006, at 7:38 AM, Hans Hagen wrote:

 Sanjoy Mahajan wrote:
 Is the idea to use \currentcomponentpath in the directory= 
 {...}?  I put


 indeed


 I've just tried the version below, but abc-1.eps cannot be found (I
 also tried \noexpand\currentcomponentpath):

 % file: chap/1/c_ch1.tex
 \startcomponent c_ch1
 \product onebook
 \project project_books
 \setupexternalfigures[directory={\currentcomponentpath}]
 % but, just as a sanity check, this way works:
 %  \setupexternalfigures[directory={chap/1}]
 \title{One}
 Hi
 \useexternalfigure[ff][abc-1.eps]
 \placefigure[here][ff]{Some caption}{\externalfigure[ff]}
 \stopcomponent

 so how is this component, when run on itself, supposed to locate  
 itself,

 - how does the dir structure look
 - where did you put the file
 - where did you run it

 (there is also the option to say: \usesubpath[1,2,3,4,5,6])

 Hans


 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg

[NTG-context] Global and per product TOC

2006-05-09 Thread nico
Hello,

I would like to be able to have a set of books in a single document, and  
think the project/product model could be used.

In the big manual it is said that one can have a completecontent per  
product. I would like a global TOC, and for each product a TOC per product  
(in this case per book). Currently each book have the whole project TOC.   
How to achieve this? Thanks for any hint.

The structure I've tried:

\startproject proj

% global TOC
\completecontent
\product book1
\product book2

\stopproject
--
\startproduct book1

\project proj

% well, to put in an environment file...
\startsectionblockenvironment[frontpart]
   \setuppagenumber[number=1]
   \setuppagenumbering[conversion=romannumerals]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
   \setuppagenumber[number=1]
\stopsectionblockenvironment

\starttext
\startfrontmatter
% Local book TOC?
\completecontent[criterium=local]
\chapter{A}
a
\chapter{B}
a
\stopfrontmatter
\startbodymatter
\chapter{A}
a
\chapter{B}
a
\stopbodymatter
\startappendices
\chapter{A}
a
\chapter{B}
a
\stopappendices
\stoptext

\stopproduct
-
(The same for book2)


Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] finding project files in parent dirs automatically

2006-04-08 Thread Sanjoy Mahajan
I'm learning how to use projects/products/components, and have got
reasonably far.  However, I'm confused about far upwards context
searches for the configuration files (product/project/environment
files).

Here's a directory structure that worked fine:

double/chap/1/c_ch1.tex
double/prd_oom.tex
double/project_books.tex
double/env_books.tex

It's called 'double' to signify that the components are two levels below
the main project file.  I cd to double/chap/1/ and then 'texexec c_ch1',
and c_ch1.log tells me:

  systems : begin file c_ch1 at line 1
  systems : begin file project_books at line 3
  (../../project_books.tex
  systems : begin file env_books at line 3
  (../../env_books.tex)
  systems : end file env_books at line 3
  )
  systems : end file project_books at line 3

So the project and environment files got read in.  By the way, why isn't
the product file loaded?  Is it not needed when making just one
component?  But it could modify the environment.

Leaving that question aside, here is the chap/1/c_ch1.tex file (all the
.tex files and the log files are in the small attached .tgz archive):

  \startcomponent c_ch1
  \product prd_oom
  \project project_books
  \title{chapter 1}
  \input tufte
  \par
  \stopcomponent

The prd_oom.tex:

  \startproduct prd_oom
  \project project_books
  \component chap/1/c_ch1
  \stopproduct

And project_books.tex:

  % output=pdf interface=en
  \startproject project_books
  \environment env_books
  \product prd_oom
  \stopproject

So the \project project_books in c_ch1.tex is sufficient for context
to find ../../project_books.tex

But I really want each product to live in its own directory.  In this
minimal example, the only product is 'oom', for Order of Magnitude
physics.  So I tried this directory structure:

triple/oom/chap/1/c_ch1.tex
triple/oom/chap/1/c_ch1.log
triple/oom/prd_oom.tex
triple/project_books.tex
triple/env_books.tex

Now the project_books.tex file is three levels up from the component,
and project_books.tex has \product oom/prd_oom instead of \product
prd_oom.  Now project_books.tex isn't found when compiling c_ch1.tex.
From c_ch1.log:

systems : begin file project_books at line 3
systems : end file project_books at line 3

Is there a hardcoded limit on how far up context searches?

$ texexec --version

 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

   texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006
   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
   context : ver: 2006.03.25 13:21
   cont-en : ver: 2006.03.25 13:21  fmt: 2006.4.6  mes: english

-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   - Bertrand de Jouvenal



minimal.tgz
Description: minimal tex and log files
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Metafun - Metapost capacity exceeded

2006-04-05 Thread Thomas Engel
 (5.2u,18u);
 draw unitsquare xscaled 1u yscaled 1u shifted (5.45u,18.3u);
 draw unitsquare xscaled 0.1u yscaled 0.1u shifted (5.5u,18.1u);
 draw unitsquare xscaled 0.1u yscaled 0.1u shifted (5.7u,18.1u);
 draw unitsquare xscaled 0.1u yscaled 0.1u shifted (5.9u,18.1u);
 draw unitsquare xscaled 0.1u yscaled 0.1u shifted (6.1u,18.1u);



 %Dach
 draw unitsquare xscaled 0.2u yscaled 2u shifted z14;
 draw unitsquare xscaled -0.2u yscaled 2u shifted z15;
 draw unitsquare xscaled 10u yscaled 0.2u shifted z16;

\stopuseMPgraphic

\startuseMPgraphic{leer600}
  path s[],k ;
  u:=5mm;
  z0 = origin;
  z1 = (6u,0);
  z2 = (6u,22u);
  z3 = (0,22u);

  s1 := z0--z1--z2--z3--cycle;
  s2 := (0.1u,0.7u)--(5.9u,0.7u)--(5.9u,21.7u)--(0.1u,21.7u)--cycle;

 %Schrank Rahmen außen
 draw s1;
 draw s2;
% draw (4.1u,0.7u)--(7.9u,0.7u)--(7.9u,21.7u)--(4.1u,21.7u)--cycle;
\stopuseMPgraphic



\startuseMPgraphic{leer800}
  path s[],k ;
  u:=5mm;
  z0 = origin;
  z1 = (8u,0);
  z2 = (8u,22u);
  z3 = (0,22u);

  s1 := z0--z1--z2--z3--cycle;
  s2 := (0.1u,0.7u)--(3.9u,0.7u)--(3.9u,21.7u)--(0.1u,21.7u)--cycle;

 %Schrank Rahmen außen
 draw s1;
 draw s2;
 draw (4.1u,0.7u)--(7.9u,0.7u)--(7.9u,21.7u)--(4.1u,21.7u)--cycle;
\stopuseMPgraphic


\startuseMPgraphic{leer900}
  path s[],k ;
  u:=5mm;
  z0 = origin;
  z1 = (9u,0);
  z2 = (9u,22u);
  z3 = (0,22u);

  s1 := z0--z1--z2--z3--cycle;
  s2 := (0.1u,0.7u)--(4.4u,0.7u)--(4.4u,21.7u)--(0.1u,21.7u)--cycle;

 %Schrank Rahmen außen
 draw s1;
 draw s2;
 draw (4.6u,0.7u)--(8.9u,0.7u)--(8.9u,21.7u)--(4.6u,21.7u)--cycle;
\stopuseMPgraphic

\startuseMPgraphic{leer1000}
  path s[],k ;
  u:=5mm;
  z0 = origin;
  z1 = (10u,0);
  z2 = (10u,22u);
  z3 = (0,22u);

  s1 := z0--z1--z2--z3--cycle;
  s2 := (0.1u,0.7u)--(4.9u,0.7u)--(4.9u,21.7u)--(0.1u,21.7u)--cycle;

 %Schrank Rahmen außen
 draw s1;
 draw s2;
 draw (5.1u,0.7u)--(9.9u,0.7u)--(9.9u,21.7u)--(5.1u,21.7u)--cycle;
\stopuseMPgraphic





\stopproduct

%%% Local Variables:
%%% mode: context
%%% TeX-master: t
%%% End:
\startproject pro_mcc_a3
\setupoutput[pdftex]
\enableregime [il1]
\setuppapersize[A3, landscape][A3, landscape]
\setuplayout[leftmargin=0cm,textwidth=37cm]
\mainlanguage [en]
\setupcolors[state=start]
\setuppagenumbering[location=, alternate=singlesided]
\usetypescript[sans][12pt]
\setupbodyfont[helvetica,ss,12pt]

\definelayer[s1]
\defineoverlay[s1][\composedlayer{s1}]
\setupbackgrounds[page][background=s1]

\def\OCustomer{Test Customer}
\def\OProject{KM4 - MCC}
\def\ODate{2006-04-04}
\def\ONr{O-10009723}



\starttext
\product prd_mcc_a3
\startuseMPgraphic{vruler}
u:=5mm;
draw(0,0)--(0,24u)--(0,0);
defaultfont:=cmr5;

draw (0,0)--(-0.5u,0);
label(decimal 0,(-1u+4,0));
for n=1 upto 24:
   draw (0,1u*n)--(-0.5u,1u*n);
endfor
for n=1 upto 24 :
   defaultfont:=cmr5;
   label(decimal (n*100),(-1.2u,1u*n));
endfor
\stopuseMPgraphic
\startbuffer[rahmen]
\setlayer[s1]{\useMPgraphic{fra}}
\setlayer[s1][x=1cm,y=14.5cm]{\useMPgraphic{vruler}}
\setlayer[s1]{\useMPgraphic{bottomlinie}}
\setlayer[s1][x=1.2cm,y=28cm]{Copyright \copyright \quad
  Thomas Engel 2006.  \quad Project: \OProject \quad
Customer: \OCustomer \quad Offer-No.: \ONr \quad Date: \ODate \qquad   Page: \pagenumber/\lastpage }
\setlayer[s1][x=1.95cm,y=27cm]{\useMPgraphic{ruler}}

\strut
\stopbuffer

\getbuffer[rahmen]
\setlayer[s1][x=3cm,y=5cm]{Layout MCC   OCC6}
\setlayer[s1][x=2cm,y=15.6cm]{\useMPgraphic{lcm800}}


\setMPvariables[mcc1000][e1=4,e2=0,e3=0,e4=0,e5=2,e6=0,e7=1,e8=1,e9=1]
\setlayer[s1][x=6cm,y=15.6cm]{\useMPgraphic{mcc1000}}


\setMPvariables[mcc1000][e1=4,e2=0,e3=0,e4=0,e5=2,e6=0,e7=1,e8=1,e9=1]
\setlayer[s1][x=11cm,y=15.6cm]{\useMPgraphic{mcc1000}}


\setMPvariables[mcc1000][e1=3,e2=0,e3=0,e4=2,e5=0,e6=2,e7=1,e8=0,e9=0]
\setlayer[s1][x=16cm,y=15.6cm]{\useMPgraphic{mcc1000}}


\setMPvariables[mcc1000][e1=3,e2=0,e3=0,e4=11,e5=11,e6=11,e7=11,e8=11,e9=11]
\setlayer[s1][x=21cm,y=15.6cm]{\useMPgraphic{mcc1000}}


\setMPvariables[mcc1000][e1=3,e2=0,e3=0,e4=11,e5=11,e6=11,e7=11,e8=0,e9=0]
\setlayer[s1][x=26cm,y=15.6cm]{\useMPgraphic{mcc1000}}


\setMPvariables[mcc1000][e1=11,e2=11,e3=11,e4=11,e5=11,e6=11,e7=11,e8=11,e9=10]
\setlayer[s1][x=31cm,y=15.6cm]{\useMPgraphic{mcc1000}}



\stoptext
\stopproject

%%% Local Variables:
%%% mode: context
%%% TeX-master: t
%%% End:
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Different pagebreaks for component and whole document

2006-04-05 Thread Aditya Mahajan
On Mon, 3 Apr 2006, Taco Hoekwater wrote:



 Aditya Mahajan wrote:

 Each component starts with \title which does a page break. There are
 no local setups in any component. I expected that each component will
 be typed out in the same manner, whether I compile the a component,
 a product or the entire project.

 The fact that the page breaks are different indicates an
 imperfection somewhere in the internal macro definitions
 for \startproject c.s., and is definately not related to
 the length of your document.

 But, since you are not really supposed to compile the project
 file in the first place, fixing this will be very low on the
 list of to-be-fixed problems, I wager. The manual is not as
 clear on that as it could be (I suppose), but you are definately
 not expected to be compiling project definition files.

Thanks. I will only compile the products and join then using 
--pdfcombine. Each product has separate pagenumbering, so this will 
work for my project as of now.

Hans, I will try to make a minimum example to illustrate the problem.

Thanks,
Aditya


-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Metafun - Metapost capacity exceeded

2006-04-05 Thread Hans Hagen
Thomas Engel wrote:
 Hello Hans,


 this is the message I got after running texexec pro_mcc_a3.tex.
 As you can see I have increased the memory size for mp.
 I have attached the two tex-files.
 Maybe there is a mistake in the mp-code. A pdf-file will be produced,
 but if you check the output you will see, that one cubicle is missing!
   
i run out of tex memory (8 meg) while converting the big last one 

btw: 

\definelayer[s1]
\defineoverlay[s1][\composedlayer{s1}]
\setupbackgrounds[page][background=s1]

you can omit the second lin ethere (automatically done) 

\definelayer[s1]
\setupbackgrounds[page][background=s1]

also, there is no need for \starttext .. \stoptext inside a \startproject .. 
\stopproject 

Hans 




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Different pagebreaks for component and whole document

2006-04-03 Thread Taco Hoekwater


Aditya Mahajan wrote:
 
 Each component starts with \title which does a page break. There are 
 no local setups in any component. I expected that each component will 
 be typed out in the same manner, whether I compile the a component, 
 a product or the entire project.

The fact that the page breaks are different indicates an
imperfection somewhere in the internal macro definitions
for \startproject c.s., and is definately not related to
the length of your document.

But, since you are not really supposed to compile the project
file in the first place, fixing this will be very low on the
list of to-be-fixed problems, I wager. The manual is not as
clear on that as it could be (I suppose), but you are definately
not expected to be compiling project definition files.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Legal Project Structure

2005-12-18 Thread Vit Zyka

David Arnold wrote:

All,

I have files:

~/IntermediateAlgebraText/book.tex
~/IntermediateAlgebraText/bookenv.tex
~/IntermediateAlgebraText/chapter1/chapter1.tex
...
~/IntermediateAlgebraText/chapter8/chapter8.tex

I also have:

~/IntermediateAlgebraText/chapter1/section1.tex
~/IntermediateAlgebraText/chapter1/section2.tex
~/IntermediateAlgebraText/chapter1/section3.tex

And similar files for each of the eight chapters. Here is my project  
file: ~/IntermediateAlgebraText/book.tex


%output=pdftex

\startproject book

\environment bookenv

\product chapter1/chapter1

\product chapter2/chapter2

\product chapter3/chapter3

\product chapter4/chapter4

\product chapter5/chapter5

\product chapter6/chapter6

\product chapter7/chapter7

\product chapter8/chapter8

\stopproject

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

Here, for example, is my ~/IntermediateAlgebraText/chapter1/chapter1.tex

\startproduct chapter1

\project book

\startbodymatter

\chapter[chap:1]{Functions}

\input zapf

\component section1

\component section2

\component section3

\stopbodymatter

\stopproduct

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

As an example of a section, consider ~/IntermediateAlgebraText/ 
chapter1/section1.tex


%output=pdf

\startcomponent section1

\project book
\product chapter1

\section[sec:1]{The Function Concept}

\input knuth

\stopcomponent

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

This look OK to folks? Will I get in trouble with this plan?


Do not think so.

Project is not intended to translate as a whole. It is only some unique 
environment, say for your textbooks. A single textbook (the 
IntermediateAlgebraText) is a product. Each chapters are components.

So, move the structure down.

Vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Legal Project Structure

2005-12-18 Thread Willi Egger

Hi David,

your setup looks o.k. to me. Still I have suggestions:

- setup the output in the environment file \setupoutput[pdftex]
- move the startbodymatter - stopbodymatter up into the project file.
- reverse the \product and the \projec tline in the component file (I do 
not know whether this is important though)


Kind regards Willi

David Arnold wrote:


All,

I have files:

~/IntermediateAlgebraText/book.tex
~/IntermediateAlgebraText/bookenv.tex
~/IntermediateAlgebraText/chapter1/chapter1.tex
...
~/IntermediateAlgebraText/chapter8/chapter8.tex

I also have:

~/IntermediateAlgebraText/chapter1/section1.tex
~/IntermediateAlgebraText/chapter1/section2.tex
~/IntermediateAlgebraText/chapter1/section3.tex

And similar files for each of the eight chapters. Here is my project  
file: ~/IntermediateAlgebraText/book.tex


%output=pdftex

\startproject book

\environment bookenv

\product chapter1/chapter1

\product chapter2/chapter2

\product chapter3/chapter3

\product chapter4/chapter4

\product chapter5/chapter5

\product chapter6/chapter6

\product chapter7/chapter7

\product chapter8/chapter8

\stopproject

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

Here, for example, is my ~/IntermediateAlgebraText/chapter1/chapter1.tex

\startproduct chapter1

\project book

\startbodymatter

\chapter[chap:1]{Functions}

\input zapf

\component section1

\component section2

\component section3

\stopbodymatter

\stopproduct

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

As an example of a section, consider ~/IntermediateAlgebraText/ 
chapter1/section1.tex


%output=pdf

\startcomponent section1

\project book
\product chapter1

\section[sec:1]{The Function Concept}

\input knuth

\stopcomponent

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

This look OK to folks? Will I get in trouble with this plan?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Legal Project Structure

2005-12-17 Thread David Arnold

All,

I have files:

~/IntermediateAlgebraText/book.tex
~/IntermediateAlgebraText/bookenv.tex
~/IntermediateAlgebraText/chapter1/chapter1.tex
...
~/IntermediateAlgebraText/chapter8/chapter8.tex

I also have:

~/IntermediateAlgebraText/chapter1/section1.tex
~/IntermediateAlgebraText/chapter1/section2.tex
~/IntermediateAlgebraText/chapter1/section3.tex

And similar files for each of the eight chapters. Here is my project  
file: ~/IntermediateAlgebraText/book.tex


%output=pdftex

\startproject book

\environment bookenv

\product chapter1/chapter1

\product chapter2/chapter2

\product chapter3/chapter3

\product chapter4/chapter4

\product chapter5/chapter5

\product chapter6/chapter6

\product chapter7/chapter7

\product chapter8/chapter8

\stopproject

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

Here, for example, is my ~/IntermediateAlgebraText/chapter1/chapter1.tex

\startproduct chapter1

\project book

\startbodymatter

\chapter[chap:1]{Functions}

\input zapf

\component section1

\component section2

\component section3

\stopbodymatter

\stopproduct

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

As an example of a section, consider ~/IntermediateAlgebraText/ 
chapter1/section1.tex


%output=pdf

\startcomponent section1

\project book
\product chapter1

\section[sec:1]{The Function Concept}

\input knuth

\stopcomponent

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

This look OK to folks? Will I get in trouble with this plan?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Need to compile individual components with proper numbering, etc.

2005-12-17 Thread David Arnold

All,

With the structure (posted below for completeness), I will need to  
compile the individual components (small chunks to post online for  
students with modems). I know this is possible, with say texexec  
section1. However, if that is section1.tex of chapter8.tex, then I  
will need the run to produce all of the correct numbering of  
examples, equations, definitions, etc. I am hoping this is possible  
with this structure. Comments?


All,

I have files:

~/IntermediateAlgebraText/book.tex
~/IntermediateAlgebraText/bookenv.tex
~/IntermediateAlgebraText/chapter1/chapter1.tex
...
~/IntermediateAlgebraText/chapter8/chapter8.tex

I also have:

~/IntermediateAlgebraText/chapter1/section1.tex
~/IntermediateAlgebraText/chapter1/section2.tex
~/IntermediateAlgebraText/chapter1/section3.tex

And similar files for each of the eight chapters. Here is my project  
file: ~/IntermediateAlgebraText/book.tex


%output=pdftex

\startproject book

\environment bookenv

\product chapter1/chapter1

\product chapter2/chapter2

\product chapter3/chapter3

\product chapter4/chapter4

\product chapter5/chapter5

\product chapter6/chapter6

\product chapter7/chapter7

\product chapter8/chapter8

\stopproject

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

Here, for example, is my ~/IntermediateAlgebraText/chapter1/chapter1.tex

\startproduct chapter1

\project book

\startbodymatter

\chapter[chap:1]{Functions}

\input zapf

\component section1

\component section2

\component section3

\stopbodymatter

\stopproduct

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

As an example of a section, consider ~/IntermediateAlgebraText/ 
chapter1/section1.tex


%output=pdf

\startcomponent section1

\project book
\product chapter1

\section[sec:1]{The Function Concept}

\input knuth

\stopcomponent

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

This look OK to folks? Will I get in trouble with this plan?

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] indentation + YandY Lucida on TeXlive2005+debian

2005-11-28 Thread Renaud AUBIN




First of all, thanks for Lucida tips...
It work now with my debian install of texlive 2005.

I'm working now on the layout and structure of my phd thesis. Due to
the fact that my thesis is in french I need to setup indentation of the
first paragraph and I've got a problem with \setupindenting \indenting

I have followed the structure given in cont-eni.pdf :

__phd.tex_begin
%% Set output to pdf
\setupoutput[pdftex]
%% Activate txt in METAPOST
\useMPlibrary[txt]
%% Activate colors
\setupcolors[state=start]

% fr settings
\setuppapersize[A4][A4]
\enableregime[il9]
\useencoding[ffr]
\mainlanguage[fr]

% Fonts
\usetypescriptfile[type-buy]
\loadmapfile[ec-bh-lucida.map]
\usetypescript[lucida][ec]
\setupbodyfont[lucida]

\startproject phd

\environment phdenv
\product phdprod

\stopproject
__phd.tex_end


__phdend.tex_begin
\startenvironment phdenv

\setupwhitespace[big]
\setupindenting[first,medium]
\indenting[first,always]
\setupfootertexts[part][chapter]

\stopenvironment
__phdend.tex_end


__phdprod.tex_begin
\startproduct phdprod

\project phd

\startfrontmatter
\completecontent
\stopfrontmatter

\startbodymatter
\component first
\component second
\stopbodymatter

\startbackmatter
\completecontent
\stopbackmatter

\stopproduct
__phdprod.tex_end


__first.tex_begin
\startcomponent first

\part{One}
\completecontent
\chapter{First}

\section{Section1}
This is a cut-down version of the below Unicode Symbols package,
designed to be simple and usable with any pdfTeX-centric \ConTeXt\
installation. Little installation, minimal usage effort, and you gain
over a hundred symbols for use in ConTeXt. The PDF file documents how
to use the PDF native ZapfDingbats font along with a catalogue of the
available symbols, and the zip file includes all that's necessary for
an installation, including a modified encoding, a tfm file, and a
ConTeXt support file. No Unicode knowledge necessary.

This is a cut-down version of the below Unicode Symbols package,
designed to be simple and usable with any pdfTeX-centric \ConTeXt\
installation. Little installation, minimal usage effort, and you gain
over a hundred symbols for use in ConTeXt. The PDF file documents how
to use the PDF native ZapfDingbats font along with a catalogue of the
available symbols, and the zip file includes all that's necessary for
an installation, including a modified encoding, a tfm file, and a
ConTeXt support file. No Unicode knowledge necessary.

\chapter{Second}
Another test text.

\completeindex

\stopcomponent
__first.tex_end


As you can see I use \setupindenting[first,medium]
and \indenting[first,always] in my phdenv environment but the first
paragraph in my output file isn't indented. I have tried local
invocation of \setupindenting or \indenting as \par but nothing works...

What's wrong ?

I suspect that I need to improve my ConTeXt practice...

I have got my ConTeXt working with YY Lucida on GNU Linux Debian +
TeXlive2005, I can send my installation trace if it can help for
contextgarden wiki...

Best regards,




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Structures

2005-11-25 Thread Peter Münster
On Thu, 24 Nov 2005, David Arnold wrote:

 I have book.tex.
 
 \startproject book
 
 \environment bookenv
 
 \product chapter1
 
 \stopproject
 
 1. When I compile:
 
 texexec book

Hello David,

it's considered, that the project-file contains only setup-commands and a
list of products, but no commands, that generate directly output.

This has nothing to do with your questions, but perhaps you will get problems
later on when writing further chapters.

Consider just, that one product is one document, and a component is a kind
of sub-document for example a chapter. And the project-file is just a
list of documents, that should inherit some common setups.

I hope, this helps.
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Structures

2005-11-24 Thread David Arnold

All,

I have book.tex.

%output=pdftex

\startproject book

\environment bookenv

\product chapter1

\stopproject

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:


I have bookenv.tex.

\startenvironment bookenv

\setupwhitespace[medium]
\setupindenting[medium]

\stopenvironment

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

I have chapter1.tex:

\startproduct chapter1

\project book

\startbodymatter

\chapter{Quadratic Functions}

\component section1

\component section2

\component section3


\stopbodymatter

\stopproduct


%%% Local Variables:
%%% mode: conTeXt-en
%%% TeX-master: t
%%% End:

I have section1.tex:

\startcomponent section1

\project book
\product chapter1

\section{Trinomials}

\input knuth

\stopcomponent

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

I have section 2.tex:

\startcomponent section2

\project book
\product chapter1

\section{Special Forms}

\input knuth

\stopcomponent

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

I have section3.tex:

\startcomponent section3

\project book
\product chapter1

\section{Completing the Square}

\input knuth

\stopcomponent

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

A couple of questions:

1. When I compile:

texexec book

I do not get medium indenting. What am I doing wrong?

2. When I compile:

texexec --pdf section2

I don't get indenting medium and the section is numbered 1. I was  
expecting 1.2. Am I missing something here?


I was hoping that if you compiled a component like this that it would  
search the project structure and determine an appropriate adjustment  
in number labels and, hopefully, references.











David


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Can't compile the whole project

2005-09-13 Thread Roman Schechtel
Hello from a new ConTeXt user!

I've read the wiki-page on how to separate input files into
a project structure (http://wiki.contextgarden.net/Project_structure)
and now I have the problem that:

 - I can compile an individual component (resulting in a PDF)
 - I also can compile a product
 - But I can't compile the whole __project__!

Everytime I try to compile the project, I get the No pages of
output message in the log. My setup is the following:

File: /environment.tex-
\startenvironment environment
\stopenvironment

File: /project.tex-
\startproject project
\environment environment
\product ./product/product
\stopproject

File: /product/product.tex-
\startproduct product
\project project
\component ./component/component
\stopproduct

File: /product/component/component.tex-
\startcomponent component
\product product
\project project
\dorecurse{10}{Component 1}
\stopcomponent

%
%I've put up those files in http://schechtel.de/pub/context/proj.zip

Now.. I get a PDF when I compile component.tex individually, the same
with product.tex -- but the PDF is not build when I compile
project.tex

The Logfile http://schechtel.de/pub/context/project.log.html
...shows something very interesting (marked red, scroll down).

What am I doing wrong?
Thanks for your help,

Roman Schechtel

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] problems with project

2005-06-15 Thread Wolfgang Zillig

Hello Peter,

thank you very much! That helped. It wasn't clear for me that no direct 
textput is allowed in the project file.


Cheers

Wolfgang


Peter Münster wrote:


On Tue, 14 Jun 2005, Wolfgang Zillig wrote:

 


I have following files and structure (simplyfied)

project: wooddoc.tex:

   \startproject wooddoc

   \environment environment

   \startfrontmatter
   \completecontent
   \product intro
   \stopfrontmatter
[...]
   



Hello Wolfgang,

it's considered, that the project-file contains only setup-commands and a
list of products, but no commands, that generate directly output.

When you compile a product, the referenced project-file gets included in
some manner, so every product of the project will inherit the same setups.
Compiling the project-file is seldom useful. It will generate all products
in one file.

Consider just, that one product is one document, and a component is a kind
of sub-document for example a chapter. And the project-file is just a
list of documents, that should inherit some common setups.

I hope, this helps.
Cheers, Peter

 



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] problems with project

2005-06-14 Thread Wolfgang Zillig

Hello,

I'm setting up a structure for a project. Everything works fine when I 
compile the project file. When I compile one of the products I get 
output as well,  but it includes automatically the content and all 
lists. The list of abbreviations and the index are included before the 
main text of this component starts. Why does this happen? I expected 
that only the environment file is loaded and nothing else.


Any suggestion?

Thanks a lot

Wolfgang



I have following files and structure (simplyfied)

project: wooddoc.tex:

   \startproject wooddoc

   \environment environment

   \startfrontmatter
   \completecontent
   \product intro
   \stopfrontmatter

   \startbodymatter
   \product wood_anatomy
   \product wood_model
   \product wood_description_of_species
   \stopbodymatter

   \startbackmatter
   \completelistofabbreviations
   \completeindex[n=3]
   \stopbackmatter

   \stopproject


product: wood_description_of_species.tex

   \startproduct wood_description_of_species
   \project wooddoc

   \chapter{Description of selected wood species}
   some text here

   \component wood_description_of_species/douglas_fir
  %and there are some more components

   \stopproduct


component wood_description_of_species/douglas_fir.tex % is in a subfolder

   \startcomponent douglas_fir
   \project wooddoc
   \product wood_description_of_species

   \section{Douglas fir {(\it Pseudotsuga menziesii)}}
  here some text

   \stopcomponent

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] problems with project

2005-06-14 Thread Peter Münster
On Tue, 14 Jun 2005, Wolfgang Zillig wrote:

 I have following files and structure (simplyfied)
 
 project: wooddoc.tex:
 
 \startproject wooddoc
 
 \environment environment
 
 \startfrontmatter
 \completecontent
 \product intro
 \stopfrontmatter
 [...]

Hello Wolfgang,

it's considered, that the project-file contains only setup-commands and a
list of products, but no commands, that generate directly output.

When you compile a product, the referenced project-file gets included in
some manner, so every product of the project will inherit the same setups.
Compiling the project-file is seldom useful. It will generate all products
in one file.

Consider just, that one product is one document, and a component is a kind
of sub-document for example a chapter. And the project-file is just a
list of documents, that should inherit some common setups.

I hope, this helps.
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Learning ConTeXt, typical hurdle

2005-03-13 Thread Willi Egger
Hi Gerben,
Due to a mistaken handling you roriginal mail I lost it :-(
In that mail in the last part, I believe it was an example \component I 
saw, that you said \starttext ... \stoptext. You do not need this pair, 
The handling of starting and stopping is done by the \startproject ... 
\stopproject commands.

In the product section I saw that you did not use the \startbodymatter 
... \stopobodymatter. I think this is important, because in the 
frontmatter sectionheading handling is different, as is in the backmatter.

here you go with an example I prepared:
\startproject HBBbrev
\enablemode[A-vier]
\environment layout
\product voorpag%Titlepage for the book
\product beginmat   %Frontmatter: Woord vooraf, Koppermaandag,
%Boekbinderslied
\startbodymatter
\environment lo-3
\product gekart  %Gekartonneerd in drie varianten
\product bdz-rech%Bandzetter rechte rug
...
\product technik %Werkwijzen en technieken
\product appendix%Appendices:
\stopbodymatter
\product backmat %Backmatter: Impressum
\nomorefiles
\stopproject
In my case many of the product-files contain a number of \components.
I do hope, that this helps.
Kind regards Willi
Patrick Gundlach wrote:
Hey Gerben,

Now what turns out to solve this? Empty lines before \description and
\stopdescriptions

Things that were defined using \definedescription rely on \par as a
delimiter.

Though I like ConTeXt if I look at certain design aspects, behaviour that
depends on whitespace before a command frightens me.

Just the way it works :-) Nothing to worry about.
Patrick
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Some extra empty pages, why? And how to get an initial blank page with page number 0?

2005-03-13 Thread Willi Egger
Hi Gerben,
I puzzeled with your project code.
First you  are not allowed to use \starttext \stoptext in a definition.
Your definitione interferes with the chapter mechnism. So more knowledge 
is necessary which I do not have at the moment.
in the before option you say \page=right, seems to create a problem.
If you want to start a page with blank lines you nee to insert a \strut

Please see the attached file
KR
Willi
Gerben Wierda wrote:
Fro my environment:
%\setuppapersize[B5][B4,landscape]
\setuppapersize[B5][B5]
\setupindenting[small]
\setuplayout[location=doublesided]
%\setuparranging[2SIDE]
\setuppagenumbering[alternative=doublesided]
%
\usemodule[lettri]
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\newcommand{\ChQuoteFormat}[1]{\starttext%
%\raggedright%
\startalignment[left]%
\startnarrower[4*left] \noindent{\em #1}%
\stopnarrower\stopalignment\stoptext\blank}
\setuphead[chapter]
[page=left,
before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\page[right]\blank[2*big]},
after={\ClearChapterQuote\blank[3*big]}%
\noheaderandfooterlines]

Without \setuppagenumbering[alternative=doublesided], I get single sided 
layout (even if I have the \setuplayout statement, very confusing). If I 
do add \setuppagenumbering[alternative=doublesided], I get the following:

1. Title page
2. Empty
3. Page with only a page numer 1 at the top
4. empty
5. Page with Contents 'chapter'
6. Page with quote
7. First page of chapter
Except for pages 3 and 4 that is how I want it. Why are these pages 
there? They are not there if 
\setuppagenumbering[alternative=doublesided] is left out.

My product file looks like this:
\startproduct prd_book
\project project_teoada
\starttext
\start
\startstandardmakeup \ss
\hairline \start
\switchtobodyfont[20pt]\bf
\leftaligned{TEOADA}%
\stop \hairline \blank[line]\rightaligned{Gerben Wierda}%
\blank[10cm]\start\leftskip=10cm\hairline\stop
\rightaligned{2005}%
\stopstandardmakeup
\stop
\startfrontmatter
\completecontent
\component c_guide
\stopfrontmatter
\component c_ch1
\component c_ch2
\component c_ch3
\startappendices
   \component c_app1
\stopappendices
\stoptext
\stopproduct

I have been trying a lot of permutations but so far without luck.
Secondly, when I turn on 2xB5 on one B4 landscape and 2SIDE arrangement, 
I would like to have an initial blank page (with page number 0) so I can 
have my 2SIDE look just like a book would look. I have tried to get one 
with the \page command in various places and with various setups, but so 
far without *any* effect.

I have been using the manual, the wiki and any documentation I have been 
able to find. So far no luck.

Thanks,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
 % Project Gerben Wierda
% COntext file
% filename: project_teoada.tex

 %\setuppapersize[B5][B4,landscape]
 \setuppapersize[B5][B5]
 \setupindenting[small]
%  \setuplayout[location=doublesided]
 %\setuparranging[2SIDE]
 \setuppagenumbering[alternative=doublesided]
 %
\usemodule[lettri,bib]
\def\ChapterQuote{}
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
 \newcommand{\ChQuoteFormat}[1]{%\starttext%
 %\raggedright%
 \startalignment[left]%
 \startnarrower[4*left] \noindent{\em #1}%
 \stopnarrower\stopalignment
 %\stoptext
 \blank}
 \setuphead[chapter]
 [page=left,
 before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\strut\blank[2*big]}, % \page[right]
 after={\ClearChapterQuote\blank[3*big]%
 \noheaderandfooterlines}]

\startproject project_teoada

\product prd_book

\nomorefiles
\stopproject

In a second file:

Project Gerben Wierda
COntext file
filename: prd_book.tex

\startproduct prd_book
\project project_teoada

\starttext
\start
\startstandardmakeup \ss
\hairline \start
\switchtobodyfont[20pt]\bf
\leftaligned{TEOADA}%
\stop \hairline \blank[line]\rightaligned{Gerben Wierda}%
\blank[10cm]\start\leftskip=10cm\hairline\stop
\rightaligned{2005}%
\stopstandardmakeup
\stop

\startfrontmatter
\completecontent[level=section]
\page
   \component c_guide
\stopfrontmatter
\startbodymatter
\ChapterQuote{Here comes a chapter quote}
\chapter{the first Chapter}

\section{All components listed}
\startitemize[n]
\item \type{\component c_ch1}
\item \type{\component c_ch2}
\item \type{\component c_ch3}
\stopitemize
\stopbodymatter
\startappendices
\chapter{Appendix-chapter}
\section{The appendix component}
\startitemize[n]
\item \type{\component c_app1}
\stopitemize
\stopappendices

\stoptext

\stopproduct

Re: [NTG-context] Moving to ConTeXt

2005-03-10 Thread Gerben Wierda
 Gerben Wierda wrote:
 I am (again) considering moving to ConTeXt. A few years ago I
 investigated
 the move because I have apositive impression of the quality of the
 ConTeXt
 project and because I find the standard LaTeX layouts ugly. At that time
 I
 decided against it because the first thing I tried (a list within a
 list)
 did not work and because I was under the impression that I would have to
 do alot of layout myself (and I have TeX for that, right?). I am
 thinking
 of using LaTeX and the memoir class. Anyway, I am still tempted.

 So I am investigating again. I would like to know if (and how) I can do
 the following in ConTeXt. I did read the manual before writing this:
 - Project structure for a book, chapters to be in separate files.
 Chapters
 to be processed individually when required, or better: chapter +
 index/toc/appendices, etc. How do you do that? I do not understand the
 manual here entirely and my test from a few years ago failed.

 you can use something

 === thisbook.tex

 \startproject book

\environment mystyle.tex


 \stopproject

 === book.tex

 \startproduct book

 \project thisbook

 \component whatever
 \component onemore

 \stopproduct

 === whatever.tex

 \startcomponent whatever

 \project thisbook



 \stopcomponent

 you can then run product and component files independently

What I do not understand is how these components end up in a directory
hierarchy.

What would be very nice is some sort of downloadable archive with some
sample basic project structures.

Reading the stuff above I still have no idea how to build a directory
hierarchy for my project such that it can do all that the project
management part of ConTeXt promises.

G

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Learning ConTeXt, typical hurdle

2005-03-10 Thread Gerben Wierda
Maybe I should start a blog somewhere...

Anyway, I have started my conversion to ConTeXT project.

So, I used the fiee perl script to set up my project. Then I started to
fill things in. Everything is still in one directory (I do not understand
directory searching in ConTeXt yet and I haven't seen a example for a book
project).

So, I have a project file:

===
% output=pdf interface=en
\usemodule[bib]
\startproject project_teoada
\environment env_teoada

%  \showlayout
%  \showgrid
%  \showbodyfontenvironment

\product prd_book
\stopproject
===

A product file:

===
\startproduct prd_book
\project project_teoada

\startfrontmatter
\component c_introduction
\stopfrontmatter
\component c_chapter1
\component c_chapter2
\component c_chapter3
\component c_chapter4
\component c_chapter5
\component c_chapter6
\component c_chapter7
\startbackmatter
\component c_appendixa
\component c_appendixb
\stopbackmatter
\stopproduct
===

I defined a description environment to replace LaTeX's description. In the
environment file:
===
\startenvironment env_teoada
\project project_teoada

\definedescription [description]
[location=hanging, margin=standard, headstyle=bold]
\definestartstop [descriptions] [before=\blank\startpacked,
after=\stoppacked\blank]

\stopenvironment
===

And I put some info in c_introduction.tex. There I used the description
thingy:

===
\startcomponent c_introduction
\product prd_book
\project project_teoada

\starttext
\chapter[h:guide]{Guide}

\startdescriptions
\description{Chapter \in[h:ch1]} Bla bla
\description{Chapter \in[h:ch2]} Bla bla
\stopdescriptions

\stoptext

\stopcomponent
===

Now, this fails. Why? I was completely stumped. I get an error message I
do not understand:

references  : unknown reference [][h:ch2]
! Extra }, or forgotten \endgroup.
\stopdescriptions -\dostopattributes \egroup
  \getvalue {\??be
descriptions\...
argument Bla bla \stopdescriptions
 \@@stopdescription
{description}\stoptext

\dodowithpar ...cription}[]{Chapter \in [h:ch2]}#1
  \@@stopdescription
{descri...
l.14

? x

Now what turns out to solve this? Empty lines before \description and
\stopdescriptions

Though I like ConTeXt if I look at certain design aspects, behaviour that
depends on whitespace before a command frightens me.

G

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Unexpected changes with pdfeTeX 1.20 (?)

2005-03-03 Thread Albrecht Kauffmann
Hi Steffen, hi all,

I've got the same problem too with TOC (and other lists). Additionally
are tables unintentionally indented when they contain local footnotes.
Could this be connected with the indentation of TOC etc.?

Greetings
Albrecht

On Tue, 1 Mar 2005, Steffen Wolfrum wrote:

 Hi,

 while looking closer at the result of typesetting an older (Nov.
 2004) document with todays pdfeTeX and context stuff I noticed that
 the layout of my TOC changed:

 Normally I write all setups in a SetupEnvironment file that is loaded
 at the beginning of a project structure.
 Like this:

 \startproject WLTHR_1
 \environment SetupEnvironment_WLTHR
 \startfrontmatter
 \component Kapitel/Titelei
 \component Kapitel/Vorwort
 \completecontent
 \stopfrontmatter
 \startbodymatter
 \component Kapitel/Kap_1
 \component Kapitel/Kap_2
 \component Kapitel/Kap_3
 \component Kapitel/Kap_4
 \component Kapitel/Kap_5
 \stopbodymatter
 \startbackmatter
 \component Kapitel/Katalog
 \component Kapitel/Literatur
 \stopbackmatter
 \stopproject

 But as in SetupEnvironment also \setupindenting is set, now the TOC
 gets this indenting too!
 Once (2004, before pdfeTeX 1.20 ?) this didn't affect the generated
 \completecontent - only the real \component files.

 Is this change known? Are there more differences like this, so one
 knows what to look for when typesetting older documents with new TeX
 (ConTeXt?) files?

 Steffen



 A minimal test looks like this:

 \starttext
 \showframe
 \showgrid
 \definecombinedlist[content]
 [chapter,section][level=section]
 \setupindenting[30pt]% 
 \completecontent% ---
 %\setupindenting[30pt]% 
 \chapter{Kapitel}
 text
 \section{Unterkapitel}
 text
 \section{Unterkapitel}
 text
 \stoptext
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: [OS X TeX] TeX run : 8

2005-03-02 Thread Steffen Wolfrum
Hans Hagen [EMAIL PROTECTED] wrote:
...
 just post to the context list what you want to achieve with that 
and i will look
 into it (minimal example and such)

 so, nothing for gerben to worry about since it's not related to the mac, but
 more to trickery -)
 Hans

After playing a bit with minimal examples I think the bug has to do 
with the project structure. Here comes a very minimal example that 
*still* runs 8 times under Mac (2 times under Win)! Why?

Given a main TEST.tex file and besides that a PARTS folder containing 
the files ONE.tex and TWO.tex :

TEST.tex
\startproject TEST
\startfrontmatter
\component PARTS/ONE.tex
\component PARTS/TWO.tex
\stopfrontmatter
\stopproject
ONE.tex
\startcomponent ONE
text
\stopcomponent
TWO.tex
\startcomponent TWO
text
\stopcomponent

The Mac output (plus the Win output) were unfortunately bounced back -
Message body is too big: 59628 bytes with a limit of 40 KB.
But if someone is interested I can send it privately.
Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: [OS X TeX] TeX run : 8

2005-03-02 Thread Hans Hagen
Steffen Wolfrum wrote:
Hans Hagen [EMAIL PROTECTED] wrote:
...
 just post to the context list what you want to achieve with that and 
i will look
 into it (minimal example and such)

 so, nothing for gerben to worry about since it's not related to the 
mac, but
 more to trickery -)

 Hans


After playing a bit with minimal examples I think the bug has to do 
with the project structure. Here comes a very minimal example that 
*still* runs 8 times under Mac (2 times under Win)! Why?

Given a main TEST.tex file and besides that a PARTS folder containing 
the files ONE.tex and TWO.tex :

TEST.tex
\startproject TEST
\startfrontmatter
\component PARTS/ONE.tex
\component PARTS/TWO.tex
\stopfrontmatter
\stopproject
ONE.tex
\startcomponent ONE
text
\stopcomponent
TWO.tex
\startcomponent TWO
text
\stopcomponent
this runs normal here; (but your big zip didn't as mentioned in a previous 
mail)
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: [OS X TeX] TeX run : 8

2005-03-02 Thread Hans Hagen
Steffen Wolfrum wrote:
TEST.tex
\startproject TEST
\startfrontmatter
\component PARTS/ONE.tex
\component PARTS/TWO.tex
\stopfrontmatter
\stopproject
ONE.tex
\startcomponent ONE
text
\stopcomponent
TWO.tex
\startcomponent TWO
text
\stopcomponent

The Mac output (plus the Win output) were unfortunately bounced back -
Message body is too big: 59628 bytes with a limit of 40 KB.
texexec test --pdf --runs=1
copy test.tui 1.tui
texexec test --pdf --runs=2
copy test.tui 2.tui
texexec test --pdf --runs=3
copy test.tui 3.tui
texexec test --pdf
copy test.tui n.tui
where do the tui's difer?
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: [OS X TeX] TeX run : 8

2005-03-02 Thread Steffen Wolfrum
Hans Hagen [EMAIL PROTECTED] wrote:
 Steffen Wolfrum wrote:
  After playing a bit with minimal examples I think the bug has to do
  with the project structure. Here comes a very minimal example that
  *still* runs 8 times under Mac (2 times under Win)! Why?
 
  Given a main TEST.tex file and besides that a PARTS folder containing
  the files ONE.tex and TWO.tex :
 
 
  TEST.tex
  \startproject TEST
  \startfrontmatter
  \component PARTS/ONE.tex
  \component PARTS/TWO.tex
  \stopfrontmatter
  \stopproject
 
 
  ONE.tex
  \startcomponent ONE
  text
  \stopcomponent
 
  TWO.tex
  \startcomponent TWO
  text
  \stopcomponent
 this runs normal here; (but your big zip didn't as mentioned in a 
previous mail)

 Hans

How many runs do you have under Mac OS X?
And what is your setup for Mac: Gerben's tex.ii2 plus your recent cont-tmf.zip?
Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  1   2   >