Re: [NTG-context] t-bib: URL and '%'; spacing between number and text

2008-04-04 Thread Taco Hoekwater


Tobias Burnus wrote:
 
 OK. That works for my minimal example, though I have to postprocess the 
 *.bbl file as BibTeX converts longline into
 
 long%
 line

An afwul tool, that bibtex is. Imagine what having a long url in your
.bib file does ... tinyurl is almost a requirement.

 However, it fails with my big file (see attachment for a reduced 
 example). If I simply include the file without using \environment etc., 
 it works. Any idea?

This is because of the special processing that has to take place
within projects. The only solution for that (right now) is to
patch the definition of \dousepublications inside the bib module
itself.

I'll try to work out something that does not need to grab
all of its argument, so that this hack can be removed again.

 I have another tricky question related to t-bib: I want to use in the 
 text references of the type [1-2], [3] and at the end of each chapter I 
 do a \placepublication[criterium=chapter], however, at the very end I 
 want to have a full authorlist ordered by authoryears (with the page 
 numbers). Well, I failed to switch to authornames -- I always get a 
 numbered list at the end.

Completely switching styles with some command like

   \setuppublications[alternative=apa]

just before the final \completepublications should have succeeded
in creating a non-numbered list, but here again there could be a 
conflict with the project/product structure.

Best wishes,
Taco

___
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] Font question

2008-03-11 Thread Marcin Borkowski
Dnia Wed, Mar 05, 2008 at 10:17:33AM +0100, Taco Hoekwater napisa#322;(a):

Thanks for the answers; still, some things are not clear for me.

  2. What does exactly sa mean?  Do I get it right when I think that it's
  the factor by which the body font size - i.e., some constant dimen
  parameter defined for the whole document (or environment) - is
  multiplied?  Does the laziness of sa mean that the actual scaling will
  happen _after_ the definition of the body font size, which might be e.g.
  different for different components of a product within a project using a
  common environment?  And what is mo?
 
 sa stands for scaled at, mo stands for mapped on.
 
 One of them (I think sa) is a multiple of the value you specify at
\setupbodyfont[..] or \switchtobodyfont[..],
 the other is (I think) in relation to the actual current font size
 (so it is different whether \tfx or \tfa is in effect).

Still don't get it.  I tried the following example, just to see what
happens (sorry, I know it looks terrible):

\definefont [TitleFont] [Serif sa b]
\definefont [TitleFontTwo] [Serif mo b]
\starttext
Hello World!\par
{\TitleFont Hello world!\par}
{\TitleFontTwo Hello world!\par}
And with viii:
{\viii
Hello World!\par
{\TitleFont Hello world!\par}
{\TitleFontTwo Hello world!\par}}
And with switchtobodyfont:
{\switchtobodyfont[8pt]
Hello World!\par
{\TitleFont Hello world!\par}
{\TitleFontTwo Hello world!\par}}
\stoptext

No difference between sa and mo using this example...

(Right after looking at the results, I \show-ed \viii and noticed that
\viii and \switchtobodyfont[8pt] do essentially the same.  What's the
use of having them both?)

  4. What are the relations between \definefontsynonym, \definefont and
  \definebodyfont?
 
 things defined with \definefontsynonym can be used in the right hand
 side of assignments in arg #3 of \definebodyfont, and in the #2
 argument of \definefont.

So to be sure: I can use names defined by \definefontsynonym in place of
font filenames?

 
 \definefont has no real relation to font switching, it is just a
 low-level shortcut for a specific font, much like a bare \font
 command in plain TeX, except that it allows synonyms and sa/mo.

So it just _defines_ (what a surprise!) some command to be a
font-switching macro?

 
 \definebodyfont is used to build up font collections

Still, I have no idea about the relation between these three...

Here's what I seem to understand now:

\definebodyfont is a mystery to me;

\definefontsynonym defines #1 to mean the same as #2, where #2 may be
another synonym or a filename (and then you have - or may? - provide
encoding informaction in #3).  It doesn't support sa or mo, and that's
ok, because its use is just fiddling with _names_;

\definefont is similar to \definefontsynonym except that it allows
scaling and does not allow filenames (only synonyms).

How much of that is right?

  5. I can understand neither the paragraph right before the
  \definebodyfont example on page 4 of mfonts.pdf, nor the example itself.
 
 That paragraph is a bit confusing to me as well. Browsing through
 type-siz.tex may help (in tex/context/base).

I'll try that too soon...

 
 Best wishes,
 Taco

Thanks in advance

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

Nie wiesz nawet, jak cenny jesteś w Moich oczach!

Jezus
___
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] Font question

2008-03-04 Thread Marcin Borkowski
OK, so the first part of my questions about mfonts.pdf;)

Thank you in advance for the answers; I'd like to stress that I'm not in
a hurry, so please take your time!  Also, as I said, I have nothing
against being redirected to some other part of documentation in case
it is easier than to write a full answer here.

1. Do I get it right when I think that \definefontsynonym takes 2 or 3
arguments, and:

When given two, they mean: (1) the synonym being defined
and (2) an earlier defined synonym being a replacement text for (1);

When given three, (1) is as above, (2) is the filename of the font (tfm
I guess?) and (3) contains some low-level options like the encoding (are
there any other options available?)

2. What does exactly sa mean?  Do I get it right when I think that it's
the factor by which the body font size - i.e., some constant dimen
parameter defined for the whole document (or environment) - is
multiplied?  Does the laziness of sa mean that the actual scaling will
happen _after_ the definition of the body font size, which might be e.g.
different for different components of a product within a project using a
common environment?  And what is mo?

3. What are the arguments to \definebodyfont?

4. What are the relations between \definefontsynonym, \definefont and
\definebodyfont?

5. I can understand neither the paragraph right before the
\definebodyfont example on page 4 of mfonts.pdf, nor the example itself.
Any hints;)?

CU,

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

Struktury grzechu jak złośliwy rak wżarły się w nasze życie,
Wdarły się w ten świat.
Ale patrz, jaka armia zbiera się u stóp Syjonu - policzone są już dni Babilonu!
(Korzeń Z Kraju Melchizedeka)
___
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
# \processaction
# \processallactionsinset
\processblocks[names][names]
# \processcommacommand
# \processcommalist
# \processfirstactioninset
\processpage[names][yes|no]
# \processXMLbuffer
# \processXMLelement
# \processXMLfile
# \processXMLfilegrouped
# \product
\program[name]
# \project
# \protect
\publication[reference]
\quotation{text}
\quote{text}
\ran{text}
# \readfile
\ref[t|p|r|s|e][reference]
\reference[reference]{text}
\referral[options]
\referraldate
\register[text]{register+register+register}
\reservefloat[options][text][references]{text}
\reset[names]
# \resetlayer
\resetmarking[name]
\rightaligned{text}
\Romannumerals{text}
\romannumerals{text}
\rotate[settings]{text}
# \saveXMLasdata
# \saveXMLdata
# \saveXMLelement
# \sbox
\scale[options]{text}
# \scratchbox
# \scratchcounter
# \scratchdimen
# \scratchskip
\screen
\section[references]{text}
\seeregister[text]{text}{text+text+text}
\selectblocks[names][names][critererium]
\selectpaper[options]
\selectversion
# \setcollector
# \setevalue
# \setevariables
# \setflag
# \setfontstrut
# \setgvalue
# \setgvariables
# \setlayer
# \setlayerframed
# \setlocalhsize
# \setstrut
\settextvariable[name]{text}
\setupalign[options]
\setuparranging[options]
# \setupattachments
\setupbackground[options]
\setupbackgrounds[position][position][state][settings]
\setupblackrules[options]
\setupblank[options]
\setupblock[names][options]
\setupbodyfont[options]
\setupbodyfontenvironment[settings][settings]
\setupbottom[settings][settings]
\setupbottomtexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupbuffer[name][options]
\setupbuttons[state][settings]
\setupcapitals[title=yes|no][sc=yes|no]
\setupcaption[name][settings]
\setupcaptions[options]
\setupclipping[options]
\setupcolor[name]
\setupcolors[options]
\setupcolumns[options]
\setupcombinations[options]
\setupcombinedlist[name][levels and options]
\setupcomment[options]
\setupdescriptions[names][options]
# \setupencoding
\setupenumerations[names][settings]
\setupexternalfigures[options]
\setupfield[name][label|horizontal|vertical|frame][settings]
\setupfields[names][reset|label|horizontal|vertical|frame][options][settings][settings]
\setupfillinlines[options]
\setupfillinrules[options]
\setupfloat[name][options]
\setupfloats[options]
\setupfloatsplitting[options]
# \setupFLOWcharts
# \setupFLOWlines
# \setupFLOWshapes
# \setupfontsynonym
\setupfooter[text|margin|edge][options]
\setupfootertexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupfootnotedefinition[settings]
\setupfootnotes[options]
\setupforms[method=HTML|FDF]
\setupformulae[options]
\setupframed[options]
\setupframedtexts[options]
\setuphead[sections][options]
\setupheader[text|margin|edge][options]
\setupheadertexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupheadnumber[section][number|+number|-number]
\setupheads[options]
\setupheadtext[language code][name=text]
\setuphyphenmark[sign=-|--|---|( )|=|/]
\setupindentations[names][options]
\setupindenting[none|small|medium|big|next|first|normal|odd|even|dimension]
\setupinmargin[left|right|number][options]
\setupinteraction[options]
\setupinteractionbar[options]
\setupinteractionscreen[options]
\setupinterlinespace[reset|small|medium|auto|big|on|off][options]
\setupitemgroup[name][number|each][options][options]
\setupitems[options]
\setuplabeltext[language code][name=text]
\setuplanguage[language code][settings]
# \setuplayer
\setuplayout[options]
\setuplegend[options]
\setuplinenumbering[options]
\setuplines[options]
\setuplinewidth[dimension]
\setuplist[names][options]
\setupmakeup[name][options]
\setupmarginblocks[options]
\setupmarginrules[level=number|rulethickness=dimension]
\setupmarking[name][options]
\setupnarrower[options]
\setupnumbering[options]
\setupoppositeplacing[options]
\setupoutput[names]
\setuppagenumber[number][state=start|stop|keep]
\setuppagenumbering[options]
\setuppagetransitions[options]
\setuppalet[name]
\setuppaper[options]
\setuppapersize[typesetting papersize][printing papersize]
\setupparagraphnumbering[options]
\setupparagraphs[name][number|each][options]
\setuppositioning[options]
\setupprofiles[options]
\setupprograms[directory=text]
\setuppublications[options]
\setupquote[options]
\setupreferencelist[names][options]
\setupreferencing[options]
\setupregister[singular][name][options]
\setuprotate[options]
\setuprule[name][options]
# \setups
\setupscreens[options]
\setupsection[name][name][options]
\setupsectionblock[name][options]
\setupsorting[name][options]
\setupspacing[broad|packed]
\setupstrut[yes|no|cap|text]
\setupsubpagenumber[options]
\setupsymbolset[name]
\setupsynchronization[state=start|stop]
\setupsynchronizationbar[options]
\setupsynonyms[name][options]
\setupsystem[options]
\setuptab[options]
# \setupTABLE
\setuptables[options]
\setuptabulate[name][options]
\setuptext[text|margin|edge][options

Re: [NTG-context] Setting up a project

2007-12-21 Thread Hans Hagen
Joel C. Salomon wrote:

 Does a project with a single product really require the full hierarchy?
 Is there a dummy layout I can put into the environment file to test the 
 set-up?

no, you could stick to a product but maybe later on you want for 
instance a screen version which then can make another product

 \startenvironment env_firefly
 \definepapersize[sixbynine][width=6in,height=9in]
 \setuppapersize[sixbynine][sixbynine]
 \setuplayout[...
   ...]
 \stopenvironment
 
 Do I need to define  name the paper size, or is putting it in the
 \setuplayout sufficient?

looks ok to me; it depends on your papersize

also try:

\setuppapersize[sixbynine][oversized]
\setuplayout[marking=on]

 What are the offset  scale in the paper size?

special purpose, tweaking, seldom needed

 I want to have 6″×9″ trim, inner margin of 48pt, outer margin 96pt,
 top margin 72pt, bottom margin 144pt for starters.  Headers and
 footers, when they exist, are allocated 12 points height and are 12pt
 away from the text. (See the linked-to example.)
 
 I have read several of the manuals, I'm just having trouble putting it
 all together.  Also, I'm not looking for a recipe but guides on
 developing the layout myself so I can understand it.

use \showframe

stat with defining headers and footers and then set topspace and 
backspace dimensions

-
   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
-
___
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] Setting up a project

2007-12-21 Thread Wolfgang Schuster
On Thu, 20 Dec 2007 18:04:57 -0500
Joel C. Salomon [EMAIL PROTECTED] wrote:

 I'm trying a fairly ambitious project to teach myself practical
 ConTeXt -- typesetting a book I'm writing.  As per
 http://wiki.contextgarden.net/Project_structure, I've created files
 for the project, environment, product, and component.  The component
 file (preface.tex) is the only one with (dummy) content right now.

 Side questions:
 Does a project with a single product really require the full hierarchy?
 Is there a dummy layout I can put into the environment file to test the 
 set-up?

you can omit the project file, I use it myself only for documents where
I use the same layout for more than one product/Dokument.

 Now I want to set up the layout.  An example of what I'm trying to
 achieve is at http://typophile.com/files/Layout.pdf, currently done
 in OpenOffice.  I'm not yet asking about fonts; I just want to put the
 text in the correct places.  It doesn't seem that 6×9 (inches) is a
 built-in size, so my environment file (env_firefly.tex) needs to look
 something like:

How to use th Gentium fonts with ConTeXt have been asked not so long
ago, I could also send you a typescript file to use the DejaVo fonts
with XeTeX but I had a few problems to use them with LuaTeX in the last
time.

 \startenvironment env_firefly
 \definepapersize[sixbynine][
   width=6in,height=9in,
   offset=???,scale=???]
 \setuppapersize[sixbynine][sixbynine]
 \setuplayout[...
   ...]
 \stopenvironment

 Do I need to define  name the paper size, or is putting it in the
 \setuplayout sufficient?
 What are the offset  scale in the paper size?

You need \definepapersize to set the width and height of your page.

I never the used the offset and scale keys for \definepapersize but the
offset key sems to change the with and height of the papersize by the
given value, positive value means reduce the size by this dimension.

Don't know what the scale key is for, I tried to use it but got no
change in the output.

\setuplayout is meant to set the margin on your page.

You forgot \setuppagenumbering[location=doublesided] in your
environment to get a doublesided document.

 I want to have 6″×9″ trim, inner margin of 48pt, outer margin 96pt,
 top margin 72pt, bottom margin 144pt for starters.  Headers and
 footers, when they exist, are allocated 12 points height and are 12pt
 away from the text. (See the linked-to example.)

\setuplayout
  [backspace=48pt,
   cutspace=96pt,
   width=fit,
   height=fit,
   %topspace=72pt,
   topspace=60pt,
   header=12pt,
   headerdistance=12pt,
   %bottomspace=144pt,
   bottomspace=132pt,
   footer=12pt,
   footerdistance=12pt]

 I have read several of the manuals, I'm just having trouble putting it
 all together.  Also, I'm not looking for a recipe but guides on
 developing the layout myself so I can understand it.

You could try to read the example layouts on the wiki.

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] (mkii) language-specific options for \placeregister[index] ?

2007-12-21 Thread Wolfgang Schuster
On Wed, 19 Dec 2007 22:01:14 +0100
Steffen Wolfrum [EMAIL PROTECTED] wrote:

 Am 19.12.2007 um 14:45 schrieb Wolfgang Schuster:
 
  2007/12/19, Steffen Wolfrum [EMAIL PROTECTED]:
  Hi,
 
  the following (with mkii) is probably not the most pressuring topic
  to most of you  ... apologies!
 
  Although I have set \mainlanguage[de]   the register seems  
  to be
  unaffected. All my cultural heritage (i.e. the Umaut) is ignored!!!
 
  o(
 
  The problem is the sorting – keywords containing umlauts seem to be
  sorted after e:
 
  Bestimmung
  Bühler
  Bildung
 
  Are there language-specific arguments/options for
  \placeregister[index]?
 
  Thanks,
 
  Steffen
 
  Hi Steffen,
 
  Can you post a example where this did happen for you.

Hi Hans and all others,

I found the reason for the wrong index sorting in Steffens files.

The correct sorted file contains something like this.

\enableregime[utf]
\starttext
text\index{Bestimmung} text\index{Bühler} text\index{Bildung} text
\placeindex
\stoptext

The text is enclosed by the normal start/stoptext pair and the document
setup is written before the start of the document while the wrong file
contains this:

\starttext
\enableregime[utf]
text\index{Bestimmung} text\index{Bühler} text\index{Bildung} text
\placeindex
\stoptext

The files did not really contain start/stop but use ConTeXts document
structure and \everystarttext is executed by \startpoduct, the first
command in the product file.

The problem is now, ConTeXt write information for the index sorting
into the tui file and a few additional entries for every spcifiec file
encoding, in this utf-8.

This works quite well in the first example because \enableregime is
writte before \starttext while in the second example the sorting
information are written before ConTeXt knows the file encoding.

A workaround for the moment is to write \enableregime before
\startproduct in the main file but I hope this coule be fiyed in the
next release.

I still wonder why nobody noticed this untill now.

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] Setting up a project

2007-12-21 Thread Joel C. Salomon
On Dec 21, 2007 3:19 AM, Hans Hagen [EMAIL PROTECTED] wrote:
 \setuppapersize[sixbynine][oversized]
 \setuplayout[marking=on]

Cool!  Is there a way to center the 6″×9″ page on 8½″×11″ paper?  I've tried
\setuppapersize[sixbynine][letter]
but that puts the page in the upper-left corner.  Right now I'm using
\setuppapersize[sixbynine][sixbynine]
and having Acrobat Reader center this on the printed page.  (Which
might well be the best way to do this.)

 use \showframe

 stat with defining headers and footers and then set topspace and
 backspace dimensions

Thanks; now I can see what I'm doing.

On Dec 21, 2007 3:55 AM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 you can omit the project file, I use it myself only for documents where
 I use the same layout for more than one product/Dokument.

I assume that I'd replace every instance of \project
firefly_novelization_proj with \environment
firefly_novelization_env, correct?  But keeping the project file
isn't much hassle, and there might be two volumes, so...

 How to use th Gentium fonts with ConTeXt have been asked

My use of Gentium is a temporary thing for the OpenOffice mockup; I'm
asking for type suggestions on Typophile.  For the nonce I'l be
satisfied with the Latin Modern fonts.

 You forgot \setuppagenumbering[location=doublesided] in your
 environment to get a doublesided document.

Thanks; that was not obvious from any sample document I've seen.

 \setuplayout
   [backspace=48pt,
snip
footerdistance=12pt]

I'm using
\setuplayout
[marking=on
%backspace=48pt, cutspace=96pt,
backspace=36pt, cutspace=84pt,
width=fit, height=fit,
%topspace=72pt,
topspace=48pt, header=12pt, headerdistance=12pt,
%bottomspace=144pt,
bottomspace=120pt, footer=12pt, footerdistance=12pt]
right now.  Notice the backspace  cutspace values; the values you
gave me defined some sort of left and right marginal areas with a
separation between them and the main text area, and I wanted the text
area to be 6″×9″.  Now I'm thinking there must be a clearer way to
express it, something like:
width=288pt, height=432pt,
header=12pt, headerdistance=12pt,
footer=12pt, footerdistance=12pt,
left**=48pt, right**=96pt, top**=72pt, bottom**=144pt,
something to define an outer marginal area; I don't intend to put
anything in the inner margin]
where the left** c. define the distance between the paper's edge and
the edge of the text area.  Is this what the edgedistance values are?

 You could try to read the example layouts on the wiki.

I'm using those for ideas too; I'm still missing some important things though.

--Joel
___
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] Setting up a project

2007-12-20 Thread Joel C. Salomon
I'm trying a fairly ambitious project to teach myself practical
ConTeXt -- typesetting a book I'm writing.  As per
http://wiki.contextgarden.net/Project_structure, I've created files
for the project, environment, product, and component.  The component
file (preface.tex) is the only one with (dummy) content right now.

Side questions:
Does a project with a single product really require the full hierarchy?
Is there a dummy layout I can put into the environment file to test the set-up?

Now I want to set up the layout.  An example of what I'm trying to
achieve is at http://typophile.com/files/Layout.pdf, currently done
in OpenOffice.  I'm not yet asking about fonts; I just want to put the
text in the correct places.  It doesn't seem that 6×9 (inches) is a
built-in size, so my environment file (env_firefly.tex) needs to look
something like:

\startenvironment env_firefly
\definepapersize[sixbynine][
width=6in,height=9in,
offset=???,scale=???]
\setuppapersize[sixbynine][sixbynine]
\setuplayout[...
...]
\stopenvironment

Do I need to define  name the paper size, or is putting it in the
\setuplayout sufficient?
What are the offset  scale in the paper size?

I want to have 6″×9″ trim, inner margin of 48pt, outer margin 96pt,
top margin 72pt, bottom margin 144pt for starters.  Headers and
footers, when they exist, are allocated 12 points height and are 12pt
away from the text. (See the linked-to example.)

I have read several of the manuals, I'm just having trouble putting it
all together.  Also, I'm not looking for a recipe but guides on
developing the layout myself so I can understand it.

Thanks,
--Joel
___
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 and dissertations

2007-11-01 Thread Jesse Alama
I'm unsure about an aspect of The ConTeXt Way and its application to my
current situation: typesetting a dissertation, namely: how can I take
advantage of project sttructure?

It seems natural to regard the dissertation as a project and the
chapters as products (which sounds strange to my mind, in this case).
But then I have no idea what would correspond to components; it seems
like excessive, unnecessary structuring to regard sections of chapters
as components.  And if sections aren't components, I don't know what
they would be.

Earlier messages on this mailing list suggest that projects aren't
supposed to be compiled; only components and products are supposed to be
compiled.  This suggests that the whole dissertation not be a project;
clearly I would want to compile the whole dissertation.

Another approach would be to skip projects and stick with just products
and components.  In this case, the whole dissertation would be a product
(which sounds right to me), and chapters would be components.

But then, if I follow that route, how would the logical structure
interact with the typographical structure (what is called
meta-structure in the ConTeXt manual)?  I want to say something like

  \startfrontmatter
\chapter{Preface}
  \stopfrontmatter

  \startbodymatter
\chapter{Introduction}
  \stopbodymatter

  \startappendices
\chapter{Complex Proof that was Skipped}
  \stopappendices

  \startbackmatter
\chapter{Colofon}
  \stopbackmatter

in dissertation.tex, to indicate the typographical/meta structure.  But then
where would the \component commands go?  Would it look something like
this:

  \startproductproduct dissertation

  \startfrontmatter
\chapter{Preface}
\component{Preface}
  \stopbodymatter

  ...

  or would I somehow be able to refer to the whole text of the
  preface and do something like

  \startproduct dissertation
  \component preface
\chapter{Preface}
\getbuffer{buf:preface}
  \startfrontmatter

  ...

with the whole text of the preface in a buffer?

I would appreciate any advice!

Thanks,

Jesse  

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] project structure and dissertations

2007-11-01 Thread Peter Münster
On Thu, 1 Nov 2007, Jesse Alama wrote:

 It seems natural to regard the dissertation as a project and the
 chapters as products (which sounds strange to my mind, in this case).
 But then I have no idea what would correspond to components; it seems
 like excessive, unnecessary structuring to regard sections of chapters
 as components.  And if sections aren't components, I don't know what
 they would be.

You can have just one product (your dissertation) in a project. And if you
put your chapters into components, then you can compile each chapter
individually.
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
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

2007-10-25 Thread John Culleton
On Thursday 25 October 2007 12:10:24 pm Hans Hagen wrote:
 John Culleton wrote:
  On Tuesday 23 October 2007 10:49:44 am Hans Hagen wrote:
  Thomas A. Schmitz wrote:
  Hi,
 
  at the risk of sounding rude or impatient: I'd love to know when new
  releases of luatex and ConTeXt mkiv can be expected. The latest
  luatex trunk has some problems (no ligatures, hyphenation flaky) and
  doesn't work with some of my fonts. Latest ConTeXt beta only works
  with trunk of luatex. Hans mentioned some fundamental changes in
  luatex, so I was just wondering.
 
  later this week there will be a new beta
 
  Hans
 
  What will a luatex based Context do for us that the current stable
  Context doesn't?

 open type to start with, robustly grouped features, better and more
 robust spacing some day soon, more efficient and flexible xml, a new
 sectioning implementation, instant metapost processing (next year), and
 much more; eventually fundamental new features will only be written for
 luatex and pdftex (traditional tex) will be frozen.

 Hans

In my further exploration I came across another product, toally unrelated, 
dealing with spreadsheets.  with the name of luatex.   Is the name luatex a 
trademark?  Lua is apparently. 

See:
www.luatex.com
-- 
John Culleton
Want to know what I really think?
http://apps.wexfordpress.net/blog/
And my must-read (free) short list:
http://wexfordpress.com/tex/shortlist.pdf
___
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

2007-10-25 Thread Arthur Reutenauer
 In my further exploration I came across another product, toally unrelated, 
 dealing with spreadsheets.  with the name of luatex.

  Yes, this was mentioned at the ConTeXt meeting last spring.  It's a
bit frustrating, sure, but ...

  Interestingly enough, this other luatex is to be parsed Lua / t / eX
because the last two letters stand for Excel.  And the normative
spelling is LuateX with an uppercase X :-)

Is the name luatex a 
 trademark?

  Not that I know of.  I don't think there would be any benefit to it,
though.  Recall that the name TEX itself---all uppercase---was a
trademark since a couple of years by the time TeX was created.  Who
remembers this typesetting system by the Honeywell company today?

Arthur
___
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] No header text on last page

2007-08-22 Thread Jeff Smith
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.

Thanks!
Jeff
___
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] 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-07-21 Thread Sanjoy Mahajan
I had the same question and came to the following solution.  The
component files begin as follows:

  \startcomponent extreme-cases
  \product book
  \project project

  \startnotmode[*product]
  \environment env_book
  \stopnotmode
  ...

Here, env_book.tex is the product-specific environment file, which is
called at the beginning of the product file book.tex.  If only a
component is being run, the \startnotmode[*product] will ensure that
env_book is read in anyway.

Let me know if that does what you want (CC me as well as the list,
since I'm highly irregular in reading list email these days, due to
having a baby, and might miss your response otherwise).

-Sanjoy

Creativity can be a social contribution, but only in so
 far as society is free to use the results. --Richard Stallman
___
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-07-21 Thread Aditya Mahajan
On Sat, 21 Jul 2007, Sanjoy Mahajan wrote:

 I had the same question and came to the following solution.  The
 component files begin as follows:

  \startcomponent extreme-cases
  \product book
  \project project

  \startnotmode[*product]
  \environment env_book
  \stopnotmode
  ...

 Here, env_book.tex is the product-specific environment file, which is
 called at the beginning of the product file book.tex.  If only a
 component is being run, the \startnotmode[*product] will ensure that
 env_book is read in anyway.

I think that \startnotmode is not needed. \environment is smart enough 
to read the file only once. So, if the file has been read in the 
product, it will not be read again when the component is processed.

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


Re: [NTG-context] We have a problem --- Old file no longer compiles

2007-07-04 Thread David Arnold
Yes, it is getting loaded:

system  : module newmat loaded

Turns out it's not in our style files, but in the exercise file that  
I am compiling:

\startcomponent NumberSystemsExercises

\project book
\product Preliminaries/PreliminariesChapter

\usemodule[newmat]
\usemodule[math-ext]
\usemodule[fig-base]
\usefigurebase[figures/figlibNumberSystemsExercises]


On Jul 4, 2007, at 10:02 PM, Aditya Mahajan wrote:

 On Wed, 4 Jul 2007, David Arnold wrote:

 On Jul 4, 2007, at 2:57 PM, Aditya Mahajan wrote:

 On Wed, 4 Jul 2007, David Arnold wrote:

 Here is another example, this time not within a block, but  
 within an
 enumeration again:

 The newmat module seems to be the culprit. After loading newmat add

 \unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}
 {#2}}}

 and it should work fine. I do not really understand why this is
 failing.

 Aditya,

 Thanks for the reply. As far as I know, we don't explicitly import
 newmat in our environment files:

 trunk $ grep usemodule *
 bookenv-clean1-base.tex:\usemodule[math-ext]
 bookenv-clean1-colors.tex:\usemodule[colors]

 As  you can see, we do use the module math-ext

 Firstly, you do not use to explicitly use math-ext. AFAIU, it is
 included automatically. Secondly, something in your setup is including
 newmat, because \dogenfrac is defined in newmat. Look into the log
 file or the tui file for newmat. If newmat is not being loaded, then
 something strange is happening.

 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://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
___


[NTG-context] Powerit Holdings, Inc., The Leader in Energy-Demand Management Systems, Completes Series A Financing Round - Joe Merlo

2007-07-03 Thread paul.kholer paul.kholer

Joe Merlo


Powerit Holdings, Inc. the leading provider of intelligent, automated demand
control  demand response systems for industrial and commercial buildings,
today announced the successful completion of the company's Series A round
of venture financing.

Led by @Ventures with a $3.0 million investment, the $7.1 million round also
included co-investor Expansion Capital Partners with $3.0 million and the
balance from existing investors including Stellar Holdings and Company
management.

This funding from @Ventures and Expansion Capital Partners, two recognized
leaders in clean technology venture capital, will allow us to accelerate our
growth and product offerings to meet the demands of a growing number of
industrial and utility customers who need proven demand response and demand
control energy management solutions to better control rising energy costs,
said Claes Olsson, CEO of Powerit Holdings.

Powerit Solutions is especially well-poised to support the growth of demand
response services to the electric utility industry. Their primary product
solution, the Energy Director, is based on the principal that the best,
cleanest and most cost-efficient way to obtain needed power during times of
peak usage is to leverage the hidden inefficiencies that cause high peak
demand. The Energy Director system automatically predicts, regulates, and
reduces demand by carefully lowering the consumption from selected loads
with precisely-timed curtailment actions and manages these actions in a way
that it limits any impact to productivity or building comfort. As such, it
is a system that is distinctively tailored to enable industrial  commercial
users to meet challenging power savings goals and has been approved for
demand response (DR) incentive programs by public utilities which have
strong interest in finding reliable cost-saving and demand-savvy solutions
for those challenging sectors.

According to Olsson, sixty percent of all energy in the domestic U.S. market
is consumed by commercial and industrial buildings. Powerit systems reduce
demand charges on an ongoing basis between 10- and 40-percent and can allow
those previously savings-challenged industrial manufacturing companies to
participate in demand response programs, he said. Do the math. The
financial benefits, measured by dramatically reduced demand charges and the
opportunity to participate in DR programs, are substantial, often creating a
project payback in the range of 1 to 18 months, - not to mention the
benefits to local energy utilities struggling to keep power to their
customers during peak usage periods.

As part of the financing, Marc Poirier, Managing Director, @Ventures and
Bernardo Llovera, General Partner, Expansion Capital Partners will take
seats on Powerit's Board of Directors.

Powerit's technologies are uniquely-suited to meet the demanding needs of
large industrial electricity users, said Marc Poirier. By deploying
fully-automated intelligent systems to help companies reduce their energy
bills without hindering productivity, Powerit delivers strong economic value
to its customers. And by helping utilities manage their peak-demand periods
without increasing internal capacity, Powerit helps address the increasing
demand for electricity while minimizing carbon emissions and other
environmental impacts associated with power generation, added Poirier.

The combination of Powerit's exceptional energy management and demand
response solutions, and its proven leadership in high technology innovation,
are strong indicators that the company will continue to excel, said
Bernardo Llovera. We are impressed with Claes Olsson's track record of
driving growth in companies like Powerit.

Evolution Capital Advisors, a boutique investment bank serving
entrepreneurial stage companies in energy, information, communications, and
media technology markets, served as advisor to Powerit on the transaction.

About Powerit Holdings, Inc.
Powerit Holdings, Inc. (Powerit) is a global leader in intelligent,
energy-demand management. Through its wholly owned companies, Powerit
Solutions in the U.S. and Diana Control in Europe, Powerit helps
organizations manage and reduce peak energy demand - saving money and
conserving energy without compromising production and processing operations
or building comfort factors. The company has hundreds of installed systems
globally, many in industrial sectors that have high-energy demand, including
mechanical fabrication and manufacturing, agriculture and food products,
petroleum and petrochemicals, forest products, and primary metals
fabrication, as well as in commercial and recreational facilities.


About Expansion Capital Partners, LLC:
Founded in 2002, Expansion Capital invests venture capital exclusively into
expansion-stage, Clean Technology enterprises. The firm targets companies
that offer dramatic improvements in resource efficiency and productivity,
while creating more economic value with less energy and materials, or less

Re: [NTG-context] Powerit Holdings, Inc., The Leader in Energy-Demand Management Systems, Completes Series A Financing Round - Joe Merlo

2007-07-03 Thread Hamid Kamrani
What does this have to do with ConTeXt? Is this Spam mail?

On 7/3/07, paul.kholer paul.kholer [EMAIL PROTECTED] wrote:

 Joe Merlo



 Powerit Holdings, Inc. the leading provider of intelligent, automated demand
 control  demand response systems for industrial and commercial buildings,
 today announced the successful completion of the company's Series A round
 of venture financing.

 Led by @Ventures with a $3.0 million investment, the $7.1 million round also
 included co-investor Expansion Capital Partners with $3.0 million and the
 balance from existing investors including Stellar Holdings and Company
 management.

 This funding from @Ventures and Expansion Capital Partners, two recognized
 leaders in clean technology venture capital, will allow us to accelerate our
 growth and product offerings to meet the demands of a growing number of
 industrial and utility customers who need proven demand response and demand
 control energy management solutions to better control rising energy costs,
 said Claes Olsson, CEO of Powerit Holdings.

 Powerit Solutions is especially well-poised to support the growth of demand
 response services to the electric utility industry. Their primary product
 solution, the Energy Director, is based on the principal that the best,
 cleanest and most cost-efficient way to obtain needed power during times of
 peak usage is to leverage the hidden inefficiencies that cause high peak
 demand. The Energy Director system automatically predicts, regulates, and
 reduces demand by carefully lowering the consumption from selected loads
 with precisely-timed curtailment actions and manages these actions in a way
 that it limits any impact to productivity or building comfort. As such, it
 is a system that is distinctively tailored to enable industrial  commercial
 users to meet challenging power savings goals and has been approved for
 demand response (DR) incentive programs by public utilities which have
 strong interest in finding reliable cost-saving and demand-savvy solutions
 for those challenging sectors.

 According to Olsson, sixty percent of all energy in the domestic U.S. market
 is consumed by commercial and industrial buildings. Powerit systems reduce
 demand charges on an ongoing basis between 10- and 40-percent and can allow
 those previously savings-challenged industrial manufacturing companies to
 participate in demand response programs, he said. Do the math. The
 financial benefits, measured by dramatically reduced demand charges and the
 opportunity to participate in DR programs, are substantial, often creating a
 project payback in the range of 1 to 18 months, - not to mention the
 benefits to local energy utilities struggling to keep power to their
 customers during peak usage periods.

 As part of the financing, Marc Poirier, Managing Director, @Ventures and
 Bernardo Llovera, General Partner, Expansion Capital Partners will take
 seats on Powerit's Board of Directors.

 Powerit's technologies are uniquely-suited to meet the demanding needs of
 large industrial electricity users, said Marc Poirier. By deploying
 fully-automated intelligent systems to help companies reduce their energy
 bills without hindering productivity, Powerit delivers strong economic value
 to its customers. And by helping utilities manage their peak-demand periods
 without increasing internal capacity, Powerit helps address the increasing
 demand for electricity while minimizing carbon emissions and other
 environmental impacts associated with power generation, added Poirier.

 The combination of Powerit's exceptional energy management and demand
 response solutions, and its proven leadership in high technology innovation,
 are strong indicators that the company will continue to excel, said
 Bernardo Llovera. We are impressed with Claes Olsson's track record of
 driving growth in companies like Powerit.

 Evolution Capital Advisors, a boutique investment bank serving
 entrepreneurial stage companies in energy, information, communications, and
 media technology markets, served as advisor to Powerit on the transaction.

 About Powerit Holdings, Inc.
 Powerit Holdings, Inc. (Powerit) is a global leader in intelligent,
 energy-demand management. Through its wholly owned companies, Powerit
 Solutions in the U.S. and Diana Control in Europe, Powerit helps
 organizations manage and reduce peak energy demand - saving money and
 conserving energy without compromising production and processing operations
 or building comfort factors. The company has hundreds of installed systems
 globally, many in industrial sectors that have high-energy demand, including
 mechanical fabrication and manufacturing, agriculture and food products,
 petroleum and petrochemicals, forest products, and primary metals
 fabrication, as well as in commercial and recreational facilities.


 About Expansion Capital Partners, LLC:
 Founded in 2002, Expansion Capital invests venture capital exclusively into
 expansion-stage, Clean

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
___


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

2007-06-19 Thread Aditya Mahajan
On Mon, 18 Jun 2007, fiëé visuëlle wrote:

 Am 2007-06-18 um 12:50 schrieb nicola:

 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?

 Put your product specific settings in the product file.

AFAIU, they will not be executed. There is really no clean way of 
doing this without adding extra markup. Suppose I have a product file 
which says

\startproduct product \environemnt env1 \environemnt env2
  Title Text
\component one
\component two
\stopproduct

and a component

\startcomponent one
\product product
text
\stopcomponent

How can TeX parse the product file without typesetting title text?  It 
would have been simple if title text was surronded by some markup, but 
it is not. This is one of the reasons projects are not supposed to 
have any matertial that will be typeset.

So, the short answer is just add \environment commands in your 
components. Another way is to use localenvironments in your 
environment file, but I have never used them myself.

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


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

2007-06-19 Thread Henning Hraban Ramm
Am 2007-06-19 um 08:45 schrieb Aditya Mahajan:

 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?
 Put your product specific settings in the product file.
 AFAIU, they will not be executed. There is really no clean way of
 doing this without adding extra markup.

Sorry, I overlooked that it should be executed while typesetting a  
component.
I never managed to do that, too. (Normally I use a copy of the  
product file with only one component to test this component).

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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-19 Thread nicola
In article [EMAIL PROTECTED],
 Aditya Mahajan [EMAIL PROTECTED] wrote:

 On Mon, 18 Jun 2007, fiëé visuëlle wrote:
 
  Am 2007-06-18 um 12:50 schrieb nicola:
 
  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?
 
  Put your product specific settings in the product file.
 
 AFAIU, they will not be executed. There is really no clean way of 
 doing this without adding extra markup. Suppose I have a product file 
 which says
 
 \startproduct product \environemnt env1 \environemnt env2
   Title Text
 \component one
 \component two
 \stopproduct
 
 and a component
 
 \startcomponent one
 \product product
 text
 \stopcomponent
 
 How can TeX parse the product file without typesetting title text?  It 
 would have been simple if title text was surronded by some markup, but 
 it is not. This is one of the reasons projects are not supposed to 
 have any matertial that will be typeset.
 
 So, the short answer is just add \environment commands in your 
 components.

Ok, I had thought about it: it just doesn't feel the right way to me 
(logically, as the enviroment is common to all components, it should be 
put at a level that is common to all components...)

 Another way is to use localenvironments in your 
 environment file, but I have never used them myself.

I have read about \localenvironment and tried it a bit, but without much 
success: I must say that I find the documentation about it a bit 
cryptic. I would gladly see a usage example by someone more 
knowledgeable than myself...

Nicola

___
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] Several environments in a project?

2007-06-18 Thread nicola
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

___
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-18 Thread fiëé visuëlle
Am 2007-06-18 um 12:50 schrieb nicola:

 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?

Put your product specific settings in the product file.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] differences of perl/ruby texexec

2007-05-04 Thread Henning Hraban Ramm
Am 2007-05-04 um 21:50 schrieb Henning Hraban Ramm:

 
 \global\advance\lily!figures\plusone
 \edef\lily!filename{\bufferprefix lilypond-\the\lily!figures}
 ...
 \edef\LP{texmfstart --ifchanged=\lily!filename.tmp --exec
 bin:lilypond -b eps -dno-gs-load-fonts -dinclude-eps-fonts \lily!
 filename.tmp}
 

 I still don't understand a lot of TeX programming, so I've no clue.

 \edef expands its argument at the time of the definition. So
 \lily!filename is always *-1.tmp. Try changing the \edefs to \def.

BTW: Why did that change between the two versions?

But anyway: It doesn't reckognize that the buffer has changed, if  
it's from a different component.

Example:
My songbook is a product. Every song is a component.
If I change the order of the components in the product, ConTeXt  
(texmfstart, texexec, whoever) doesn't reckognize that, so I get the  
scores in the old order, i.e. with the wrong title  lyrics!
Similar with my test product that only imports one component (for  
debugging the notes): If I change the component to import, I always  
get the last score that I checked.

And remember: It works with Perl texexec!

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] differences of perl/ruby texexec

2007-05-04 Thread Aditya Mahajan
On Fri, 4 May 2007, Henning Hraban Ramm wrote:

 Am 2007-05-04 um 21:50 schrieb Henning Hraban Ramm:

 
 \global\advance\lily!figures\plusone
 \edef\lily!filename{\bufferprefix lilypond-\the\lily!figures}
 ...
 \edef\LP{texmfstart --ifchanged=\lily!filename.tmp --exec
 bin:lilypond -b eps -dno-gs-load-fonts -dinclude-eps-fonts \lily!
 filename.tmp}
 

 I still don't understand a lot of TeX programming, so I've no clue.

 \edef expands its argument at the time of the definition. So
 \lily!filename is always *-1.tmp. Try changing the \edefs to \def.

 BTW: Why did that change between the two versions?

 But anyway: It doesn't reckognize that the buffer has changed, if
 it's from a different component.

 Example:
 My songbook is a product. Every song is a component.
 If I change the order of the components in the product, ConTeXt
 (texmfstart, texexec, whoever) doesn't reckognize that, so I get the
 scores in the old order, i.e. with the wrong title  lyrics!
 Similar with my test product that only imports one component (for
 debugging the notes): If I change the component to import, I always
 get the last score that I checked.

It has been a while since I looked at the lilypond module. This is how 
I understand what is happening. The pdfs are not generated again in 
the second run. So, you get the old versions. Try deleting the 
lilypond pdfs, change the order of components, and you should get 
missing images.

 And remember: It works with Perl texexec!

Maybe --ifchanged in not honored at all and lilypond is run every 
time, irrespective of whether the snippet has changed or not.

BTW, how slow if lilypond, if you ask it just to create small music 
snippets and not do the page layout etc. If it runs reasonably fast, 
then there may be no need to do all this --ifchanged stuff. Just as 
metapost graphics are included.

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


Re: [NTG-context] differences of perl/ruby texexec

2007-05-04 Thread Henning Hraban Ramm

Am 2007-05-04 um 23:03 schrieb Aditya Mahajan:


Example:
My songbook is a product. Every song is a component.
If I change the order of the components in the product, ConTeXt
(texmfstart, texexec, whoever) doesn't reckognize that, so I get the
scores in the old order, i.e. with the wrong title  lyrics!
Similar with my test product that only imports one component (for
debugging the notes): If I change the component to import, I always
get the last score that I checked.


It has been a while since I looked at the lilypond module. This is how
I understand what is happening. The pdfs are not generated again in
the second run. So, you get the old versions. Try deleting the
lilypond pdfs, change the order of components, and you should get
missing images.


True - I get missing images (placeholders).
If I delete all the temporary files (about 9 for every song!) I  
sometimes get nothing at all (only placeholders), while normally also  
the Ruby script does create something...



And remember: It works with Perl texexec!


Maybe --ifchanged in not honored at all and lilypond is run every
time, irrespective of whether the snippet has changed or not.


No, it works completely correct, as far as I can tell.
But I don't get references and TOC, so I need a final Ruby run.


BTW, how slow if lilypond, if you ask it just to create small music
snippets and not do the page layout etc. If it runs reasonably fast,
then there may be no need to do all this --ifchanged stuff. Just as
metapost graphics are included.


I use only small snippets - simple folksongs need seldom more than 3  
lines - but a lot of them...


LilyPond is fast enough, but the startup needs a while (typical for  
Python programs, but it also reads in fonts etc.), so it's really  
important to run only as needed.


I attached the recent version of t-lilypond, perhaps you can find an  
obvious error.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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


Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Aditya Mahajan
On Sat, 28 Apr 2007, Chris Rawnsley wrote:

 Hello All,
  I am writing a project report for a PHP project I have completed and
 I need to include the code I have written. I would like to have code
 that is highlighted similar to the editor I use (it's Notepad2 but I'm
 sure most of you know what I mean), has line numbers and is in a
 monospaced font.

  Now I know that ConTeXt itself doesn't have support for PHP
 highlighting but I have found something in the third party modules
 that is able to use ViM to do what I want. Unfortuantely, I can't get
 it to work, hence why I am here!

  I'm on Windows XP and I am using the standalone ConTeXt distribution
 from the 22nd March 2007. When I came to install the module, I found
 that it was already included in the distribution. I have installed the
 distribution under C:\ConTeXt\ along with Perl (C:\perl\) and Ruby
 (C:\ruby\). What is non-standard in my setup is my own custom built
 batch file:

 I'll put that in the directory of the .tex file I want to run it on.
 In this case it is c_Implementation.tex. My implementation file
 looks like this:

 \startcomponent c_Implementation
 \product ../prd_TennisClubBookingSystem
 \project ../../prj_School

You do not need to mention ../ and ../../. ConTeXt automatically 
searches for product and project files in one higher directory.

 %
 % Setup Figures %
 %
 \setupexternalfigures[directory={Implementation/Figures,Figures}]

 %%%
 % Content %
 %%%
 \chapter[cha:Implementation]{Implementation}

 \setupcolors[state=start]

 \definevimtyping [RUBY] [syntax=ruby]
 \startRUBY
 #! /usr/bin/ruby
 # This is my first ruby program
 puts Hello World
 \stopRUBY

 And when I run my batch file on it, TeXexec returns the error:
 ! Undefined control sequence.
 l.36 \definevimtyping
  [RUBY] [syntax=ruby]


Do you have \usemodule[vim] somewhere in the setup? Does the log file 
say something like module:ViM Syntax Highliting

What does texmfstart --locate 't-vim.tex' give?

 I think where I am falling down is that ViM doesn't seem integrated to
 me. I have it placed under C:\Programs\ViM\ and I used the installer
 which has all the different types GUI and command line version as
 well. Do I need the set something up in the module to make it know
 where ViM is or do I need to somehow directly use ViM itself?

You need vim.exe to be in your PATH.

Does texmfstart bin:vim start vim?

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


Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
On 28/04/07, Aditya Mahajan [EMAIL PROTECTED] wrote:
 You do not need to mention ../ and ../../. ConTeXt automatically
 searches for product and project files in one higher directory.
Ah thanks for the tip. I can certainly see that becoming useful in the future.

 What does texmfstart --locate 't-vim.tex' give?

C:/ConTeXt/usr/local/context/tex/texmf-local/tex/context/third/vim/t-vim.tex

 You need vim.exe to be in your PATH.

 Does texmfstart bin:vim start vim?
No it didn't. I had it in my path previously but I moved ViM from
Program Files to Programs and I didn't update PATH. I need to reset,
so back in a tick!

Thanks alot for your help!

--
Chris
___
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] Microsoft Word - Context

2007-04-03 Thread Mari Voipio
 existing environment/layout 
definitions, implementing that takes about 10 secs.

For example about now I have to start writing a product manual where 
some parts of text come from an old Word file. I'll probably just cut 
and paste what I need from the pdf file, but it's still faster than 
fighting with Word over original the 9 MB (!) doc - and consistency can 
be guaranteed, unlike if I used Word, because the old file is done with 
Word95 and 97 and we now use Word 2003 where the list functions and 
styles work slightly differently and don't open quite as they used to be.


These are very large files even optimized, but if you are very curious, 
you can compare the following public documents that are in my domain:

Doc with Word original (attachments done in ConTeXt): 
http://www.kpatents.com/pdf/downloads/pr-01-s.pdf

Doc that was converted from Word original to ConTeXt (this was my 
practice piece): http://www.kpatents.com/pdf/downloads/pr-03.pdf

Similar doc with ConTeXt from the start: 
http://www.kpatents.com/pdf/downloads/pr-23.pdf


I didn't originally make the first one (it predates my employment at the 
company), but I cleaned it up, and any changes are now made by me. When 
I started converting number 2 into ConTeXt, the instruction was that the 
manuals have to look alike. I did make some layout changes partly for 
legibility (wider margins) and some for practicality (couldn't get small 
caps out of my ConTeXt, so footer is normal text, not small caps), but 
they are still fairly alike. Oh and the first one has fixed graphic 
numbering (no captions), the others have the 'real thing'. And index 
only turned up with ConTeXt, because indexing is much easier/more 
transparent in it.

NB. Cover pages are still all Word docs, I pdf them and insert into my 
ConTeXt file. One day I'll bother to learn enough that I can make the 
covers happen in ConTeXt, would make changing them a lot faster (usually 
the only change is in the version number).



I don't know if this really helps, but at least that gives you some info 
on how others do things and what kind of experiences there are round 
this particular problem.



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


Re: [NTG-context] Microsoft Word - Context

2007-04-03 Thread Henning Hraban Ramm
Am 2007-04-03 um 09:20 schrieb Mari Voipio:

 Note! If your files  contain graphics, for ConTeXt you have to ask
 people to send them in separately as pdf, png or jpg (instead of  
 putting
 them inline in the Word file). I have found *this* hard to achieve  
 once
 in a while and I still often spend substantial time chasing down
 originals of graphics I get in Word files.

A good way is to save the docs as OpenOffice docs, unzip them and  
collect the images from their folder.
But pictures in Word documents are crap anyway, most of the time.

For my main project at work (a city magazine, typeset with InDesign)  
I got everything as Word Docs until some issues before. After  
struggling with useless text formatting (hyperlinks! blech!) we  
copypasted only plain text and did the formatting again manually.
Now I wrote a editorial system as web application, where the authors  
have to fill fixed text boxes (title, intro, text, infos, author  
etc.). If everything's ready, I pull the whole stuff from the  
database and apply formatting (InDesign tagged text, but could be  
anything) to ease the layout work.
Event timetable data works similar, but via XML. (Why? InDesign can  
place images with XML, but not with TaggedText, and we need some  
icons in the calendar. We could use XML for everything, but InDesign  
is much faster with TaggedText.)

Of course that's no solution for most Word-to-ConTeXt cases, only as  
a side note...
And BTW: I really like InDesign as a layout app, but it's text  
handling (regarding XML or TaggedText import) is horrible! (Crappy  
coded - doesn't understand different line endings or different text  
encodings, only incomplete UTF-16 without BOM and predeclared Win or  
Mac line endings... XML is always whitespace sensible...)
Enough OT.

 [I've found that generally my fellow office workers don't want to deal
 with *anything* like this, but professional translators have no  
 problems
 with ConTeXt code; and anybody with html-by-hand experience usually  
 gets
 the drift very fast.]

Unfortunately even my HTML coding colleagues fear the command line.
And providing GUIs for my nice automation scripts (e.g. CD cover  
generator with ConTeXt) is tedious...

 For example about now I have to start writing a product manual where
 some parts of text come from an old Word file. I'll probably just cut
 and paste what I need from the pdf file, but it's still faster than
 fighting with Word over original the 9 MB (!) doc - and consistency  
 can
 be guaranteed, unlike if I used Word, because the old file is done  
 with
 Word95 and 97 and we now use Word 2003 where the list functions and
 styles work slightly differently and don't open quite as they used  
 to be.

Yup, I get a lot of crashes if the Word versions don't fit. I use  
TextEdit.app then to extract the text, but then (like with most other  
Word converters) you have to clean up the hyperlink and versions crap.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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


Re: [NTG-context] ctags and ConTeXt

2007-02-26 Thread Aditya Mahajan

Hi

Here is my first attempt (see attachment). It works correctly in the 
little testing that I have done (on Windows). Just add 
\usemodule[ctags] somewhere in your environment file, and run context. 
I file called context.tags will be generated which contains the 
labels, filename, and line-number where the label occurs (line number 
can sometimes be off).


I modify a few core macros, so this can possibly break existing stuff 
(It should not, but then ...)


I found no reliable way to know the current file name. So this works 
correctly only if registerfileinfo is called. So one will have the 
correct filename when using a project structure, but not when using 
\input. I do not want to redefine \input, since almost everything 
relies on \input working correctly.



I will also post the module on the garden once I am more comfortable 
with it. This one is too dangerous to go to the core.


Aditya%M \logo [CTAGS] {CTAGS}

%D \module
%D   [   file=t-ctags,
%Dversion=2007-02-26,
%D  title=\CONTEXT\ tags(\CTAGS),
%D   subtitle=\CTAGS\ support in \CONTEXT,
%D author={Aditya Mahajan},
%D   date=\currentdate]
%D

%M \setuphead [section] [page=]
%M \useURL[ctags][http://ctags.sourceforge.net/]
%M \useURL[vim]  [http://www.vim.org]
%M \logo  [VIM] {VIM}
%M \logo  [EMACS] {EMACS}


%D \section Introduction
%D 
%D \CTAGS\ is a program that generates an index of language objects
%D found in a file that allows these objects to be easily located by a
%D text editor. They are tightly integrated with \VIM\ and \EMACS. For
%D large \TEX\ files, \CTAGS\ is very useful to find reference labels.
%D Suppose you are writing a long book or paper, and you want to add
%D reference to an equation. Also suppose all your equation labels start
%D with \type{eq:}. Then in \VIM\ you can type \type{eq:} and press
%D \type{^X^]} and \VIM\ will present you with a pop-up menu showing the
%D different labels that start with \type{eq:}. For long files this can
%D save you a lot of time.
%D
%D Traditionally tags are generated from an external program. However,
%D \CONTEXT's syntax is almost impossible to parse from an external
%D program. Consider the following two cases
%D \starttyping
%D \defineenumeration[problem]
%D \startproblem[tag]
%D blah blah
%D \stopproblem
%D \stoptyping
%D and
%D \starttyping
%D \defineitemgroup[problem]
%D \startproblem[intro]
%D \item blah blah
%D \stopproblem
%D \stoptyping
%D
%D For an external program to correctly parse this, it must be able to
%D understand \TEX. The only program that can understand \TEX\ is \TEX.
%D So, I decided to write \CTAGS\ support for \CONTEXT\ in \CONTEXT. It
%D turned out to be much simpler than expected. So now, one can read
%D \CTAGS\ as \CONTEXT\ tags \mono{:-)}.
%D
%D \section User Guide
%D
%D To use the module simply add 
%D \starttyping
%D \usemodule[ctags]
%D \stoptyping
%D on the top of the file\footnote{This must be done before
%D \type{\everystarttext} is executed. That is either in the environment
%D file or before \type{\starttext} in a file.}. Unfortunately, right
%D now (that is with \PDFTEX), it is not possible to create a file
%D without extension. So, the tags are written to a file
%D \filename{context.tags}. To use this in \VIM, you have to add
%D \starttyping
%D set tags=./tags,tags,context.tags
%D \stoptyping
%D in your \filename{.vimrc} (\filename{_vimrc} on Windows). I do not
%D know how to do something similar in \EMACS. If someone knows, please
%D let me know.
%D
%D This file modifies a core \CONTEXT\ macro, so be careful while using
%D it. It may (although it should not) break in some cases. You have
%D been warned.
%D
%D The rest of the file is self explanatory.


\writestatus  {loading}   {Context CTAGS support Module}

\startmodule[vim]

\unprotect

\newwrite\ctagsfile

\newtoks\everyopenctags
\newtoks\everyclosectags

%D TODO: Find out if we are running \LUATEX, and if we are write to
%D \filename{tags}.

\appendtoks
  \immediate\openout\ctagsfile context.tags
  \immediate\write\ctagsfile{!_TAG_FILE_FORMAT\rawcharacter{9}1}
  \immediate\write\ctagsfile{!_TAG_FILE_SORTED\rawcharacter{9}0}
  \immediate\write\ctagsfile{!_TAG_PROGRAM_AUTHOR\rawcharacter{9}Aditya Mahajan}
  \immediate\write\ctagsfile{!_TAG_PROGRAM_NAME\rawcharacter{9}ConTeXt t-ctags 
module}
\to \everyopenctags

\appendtoks
  \immediate\closeout\ctagsfile
\to \everyclosectags

\let\normalwriterefernce\writereference

\def\writereference#1% #2#3#4
  {\doifsomething{#1}
   {\immediate\write\ctagsfile{#1\rawcharacter{9}\currentctagsfile 
\rawcharacter{9}\the\inputlineno}}
   \normalwriterefernce{#1}}% #2#3#4

%D \type{\everystarttext} is executed at \type{\startcomponent}. If we
%D have a typical structure
%D \starttyping
%D \startcomponent file
%D \product  file
%D \enviromnent file
%D \stoptyping
%D then \type{\everystarttext} is executed before ctags module is
%D loaded. So, we open the tags as soon as the module is loaded. This
%D can cause

Re: [NTG-context] Columns and components

2007-01-23 Thread Hans Hagen
Jeff Smith wrote:
 Hi!

 I'm toying with a complex document environment involving multiple
 components, both in order to learn in general and to accomplish
 particular objectives.

 So I want a 2-column layout for all the document, which is made up of
 a bunch of components appended one after the other in a continuous
 fashion.

 The way I thought to acheive that is, instinctively, to use
 \startcolumns in my product file, before declaring the various
 components.

 However, when I do this, the use of \stopcolumns at the end doesn't
 work. The document does compile (with columns) when I don't use the
 stop command, but when I do, there is an error:

 ! Extra }, or forgotten \endgroup.
 \stopcolumns ...idecolumnsfalse \endgroup \egroup

 l.12 \stopcolumns

 What is the proper way of doing this? The thing is, I need to balance
 my columns, and balancing doesn't work with no \stopcolumns.

   
looks like some grouping problem, make sure that you nest start/stop commands 
properly

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-context] Columns and components

2007-01-22 Thread Jeff Smith
Hi!

I'm toying with a complex document environment involving multiple
components, both in order to learn in general and to accomplish
particular objectives.

So I want a 2-column layout for all the document, which is made up of
a bunch of components appended one after the other in a continuous
fashion.

The way I thought to acheive that is, instinctively, to use
\startcolumns in my product file, before declaring the various
components.

However, when I do this, the use of \stopcolumns at the end doesn't
work. The document does compile (with columns) when I don't use the
stop command, but when I do, there is an error:

! Extra }, or forgotten \endgroup.
\stopcolumns ...idecolumnsfalse \endgroup \egroup

l.12 \stopcolumns

What is the proper way of doing this? The thing is, I need to balance
my columns, and balancing doesn't work with no \stopcolumns.

Thanks!
Jeff
___
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-17 Thread Sanjoy Mahajan
Jeff Smith [EMAIL PROTECTED] wrote:
 What I am doing wrong? 

The setup looks okay to me too.  I use a similar setup with no
problems.  I just posted its source code http://web.mit.edu/18.098/.
You might compare the product/project/env files there with what you
have.

But if you send me off-list a .tar.gz of your source tree (or post it
if it's public and send me the url), I'll try it here and see what
goes wrong.  That will give data on whether, for one, the problem is
something peculiar to your context setup or it's a more general issue
(e.g. either a misnamed source file or a ConTeXt bug).

-Sanjoy

`Not all those who wander are lost.' (J.R.R. Tolkien)
___
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


[NTG-context] ConTeXt ver: 2007.01.12 15:56 and including PDFs

2007-01-13 Thread Alan Bowen
While running the latest ConTeXt, I get the following warning:

[6.6] [7.7] ./Figure1a.pdf
Error: PDF version 1.6 -- xpdf supports version 1.5 (continuing anyway)

Warning: pdftex (file ./Figure1a.pdf): pdf inclusion: found pdf version
1.6, but at most version 1.5 allowed
./Figure1a.pdf

It does not seem to have any observable impact on the typeset product  
however.

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


Re: [NTG-context] ConTeXt ver: 2007.01.12 15:56 and including PDFs

2007-01-13 Thread Martin Schröder
2007/1/13, Alan Bowen [EMAIL PROTECTED]:
 It does not seem to have any observable impact on the typeset product
 however.

I think it can be safely ignored. All the features in PDF 1.6  1.7
should be handled by pdftex's pdf inclusion.

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


Re: [NTG-context] ConTeXt ver: 2007.01.12 15:56 and including PDFs

2007-01-13 Thread Alan Bowen

On Jan 13, 2007, at 9:05 AM, Martin Schröder wrote:

 2007/1/13, Alan Bowen [EMAIL PROTECTED]:
 It does not seem to have any observable impact on the typeset product
 however.

 I think it can be safely ignored. All the features in PDF 1.6  1.7
 should be handled by pdftex's pdf inclusion.

 Best
Martin

Thanks, Martin. I suspected as much.

Best, Alan

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


[NTG-context] Header problem in project

2007-01-07 Thread David Arnold
Hans et all,

We have a project call book.tex, a product in that called  
chapter1.tex, and a component in that called section1exercises.tex.

We have blocks that we save and then place at the end of  
section1exercises.tex with a macro defined in our environment file:

\def\placeanswers{%
   \bgroup
   \doifmodeelse{short}
   {
  \keepblocks[shortsubanswer,longsubanswer]
   \answers{Answers}\vskip 1em\startcolumnset[answers]
   \selectblocks[shortanswer][criterium=section]
   \stopcolumnset
   }
   {
  \def\headermarkleft{{\sc Chapter \headnumber[chapter]}}
  \def\headermarkright{{\sc{}Section \headnumber[section]}}
  \setupheadertexts[][\headermarkright][\headermarkleft][]
   \keepblocks[shortsubanswer,longsubanswer]
   \answers{Solutions}\vskip 1em
   \selectblocks[longanswer][criterium=section]
   }
   \egroup
}

The else part of the do above is an attempt to define a different  
header when we compile with --mode=long, but just for the pages on  
which we use \placeanswers. The other pages have a different header  
defined in the environment file. Those headers have page numbers as  
well with:

\def\headermarkleft{\bold{\pagenumber}\headerskip{\sc\headerskip  
Chapter \headnumber[chapter]\headerskip\getmarking[chapter][current]}}

\def\headermarkright{{\sc{}Section \headnumber[section]\headerskip 
\getmarking[section][current]}\headerskip\bold{\pagenumber}}


The file section1exercises ends like this:

%%% ENDTESTBANK
%%%
\stopquestions

\placeanswers\kern0pt

\stopcomponent

When we compile section1exercises.tex with texmfstart texexec -- 
mode=long section1exercises, all is well until the last page, where  
the former header is used instead of the header defined in the  
\placeanswers macro. But we want to finish out the document from the  
point we put the \placeanswers with the second header.

Any suggestions?

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


Re: [NTG-context] new debian context 2006.12.21-0.1

2006-12-26 Thread Hans Hagen
Hans van der Meer wrote:
 On Dec 24, 2006, at 0:21, Sanjoy Mahajan wrote:

   
  ConText is developed rapidly, ... and illustrates the free- 
 software philosophy of release
 often,  sometimes twice a day!  ( my emphasis here, hvdm)
 

 I wouldn't stress that fact in this manner. And at the least advice  
 to rephrase this. From the formulation used here, people could get  
 the impression that ConTeXt is an extremely instable product and for  
 that reason refrain from using it. That would be a pity.
   
the reason for updating current instead of beta has a few reasons (1) it's 
easier for me to update servers using ctxtools --update and (2) we near the tex 
live code freeze, after that we will probably go beta again, which (3) will 
also update frequently because taco and i are actively working on luatex (mkiv) 
code which demands mkii/mkiv code splitting 

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] new debian context 2006.12.21-0.1

2006-12-24 Thread Hans van der Meer

On Dec 24, 2006, at 0:21, Sanjoy Mahajan wrote:

  ConText is developed rapidly, ... and illustrates the free- 
 software philosophy of release
 often,  sometimes twice a day!  ( my emphasis here, hvdm)

I wouldn't stress that fact in this manner. And at the least advice  
to rephrase this. From the formulation used here, people could get  
the impression that ConTeXt is an extremely instable product and for  
that reason refrain from using it. That would be a pity.

Hans van der Meer


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


Re: [NTG-context] new debian context 2006.12.21-0.1

2006-12-24 Thread Douglas Philips
On 2006 Dec 24, at 4:40 AM, Hans van der Meer indited:
 On Dec 24, 2006, at 0:21, Sanjoy Mahajan wrote:
  ConText is developed rapidly, ... and illustrates the free-
 software philosophy of release
 often,  sometimes twice a day!  ( my emphasis here, hvdm)
 I wouldn't stress that fact in this manner. And at the least advice
 to rephrase this. From the formulation used here, people could get
 the impression that ConTeXt is an extremely instable product and for
 that reason refrain from using it. That would be a pity.

That was definitely the impression I had...
I've just recently joined this list as part of a low-key I wonder if  
I'd be happier using ConTeXt rather than fighting LaTeX evaluation.  
That Gerben Wierda's i-Installer automatically processes ConTeXt  
updates doesn't hurt either. :-)

Thanks for the clarification!

--D'gou

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


Re: [NTG-context] new debian context 2006.12.21-0.1

2006-12-24 Thread Sanjoy Mahajan
 From the formulation used here, people could get the impression that
 ConTeXt is an extremely instable product and for that reason refrain
 from using it.

Good point.  How about simply:

  ConText is developed rapidly, often in response to requests from the
  friendly user community.

-Sanjoy

`Not all those who wander are lost.' (J.R.R. Tolkien)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new debian context 2006.12.21-0.1

2006-12-22 Thread Norbert Preining
Hi all!

On Fre, 22 Dez 2006, Aditya Mahajan wrote:
 What are the differences between ConTeXt and LaTeX? 
 http://wiki.contextgarden.net/FAQ#What_are_the_differences_between_ConTeXt_and_LaTeX.3F

Thanks I included some text from it into the control file, ie
description:
Description: powerful TeX format.
 ConTeXt is a typographical engine written in the typographical computer 
 language TeX. ConTeXt provides you with a convenient way to encode documents 
 in a structured way and to typeset these documents in various ways on paper, 
 computer screen or web site.
 .
 The main difference between ConTeXt and LaTeX lies in the fact that LaTeX
 was created with the idea of separating content and presentation to such 
 an extent that the typical author would write their content and then use 
 a style file created by someone else to provide the visual presentation.
 .
 ConTeXt, on the other hand, retained the idea of separating content and
 presentation, but was created with the idea of being used for books, where
 each book tends to have a different layout, and so the expected end user is
 the person doing all the layout. Thus, it's designed to provide a vast amount
 of flexibility for layout in a way that can be fairly easily defined without
 needing to write a package
 .
 This package also contains MetaFun. MetaFun (a superset of well known 
 MetaPost) is a powerful system for vector graphics that is fully integrated
 into ConTeXt, but also usable as a stand alone product. 
 .
 MetaFun is not for interactive drawing applications and not for free hand 
 drawings. Its strength lies in the ability to enhance the document layout
 with highly accurate graphic elements.

If someone wants to improve it ...

Best wishes

Norbert

---
Dr. Norbert Preining [EMAIL PROTECTED]Università di Siena
Debian Developer [EMAIL PROTECTED] Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
KALAMI (n.)
The ancient Eastern art of being able to fold road-maps properly.
--- Douglas Adams, The Meaning of Liff
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new debian context 2006.12.21-0.1

2006-12-22 Thread Aditya Mahajan
On Fri, 22 Dec 2006, Sanjoy Mahajan wrote:

  Latexstualists may disagree but I think the essence is that Context
  gives more control and makes it easier to create new layouts.
 
 Also the ConTeXt parts are more integrated than the LaTeX packages are
 -- think of the discussions/comments about what order LaTeX packages
 must be loaded.  For example, the hyperref manual says to load it last
 to give it a fighting chance of not being over-written, since its job
 is to redefine many LaTeX commands.
 
 And ConText is also an example of the free-software philosophy of
 release often, sometimes twice a day!

Here is my attempt to integrate everything said here with the UK TeX 
FAQ entry and the wikipedia entry of ConTeXt, without pointing out all 
the bad things about LaTeX. Everything said and done, LaTeX is much 
better than Word Processors ;)


ConTeXt is a document preparation system based on the TeX typesetting 
system. It was designed with the same general-purpose aims as LaTeX, 
but being younger reflects much more recent thinking about the 
structure of the markup, is more modular in its conception, and more 
monolithic in its building. ConTeXt gives more control to the end 
user and makes it easier to create new layout without learning TeX 
macro language. ConTeXt is consistent in its design, and does not 
suffer from the package clashes in LaTeX.

ConTeXt also integrates MetaFun which is a superset of MetaPost and a 
powerful system for vector graphics. Metafun can be used as a stand 
alone product, but its strength lies in the ability to enhance the 
document layout with highly accurate graphic elements.

ConTeXt allows the users to use markup in different languages. Markup 
in English, Dutch, German, French and Italian is supported at present. 
ConTeXt allows the user to use different engines (pdftex, XeTeX, 
aleph?, luatex?) without changing the user interface. ConText is 
developed at a fast pace and is also an example of the free-software 
philosophy of release often, sometimes twice a day!


Aditya
___
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] Figure library -- figures not found but they are there

2006-12-18 Thread David Arnold

Hans et al,

Running:

figures $ texmfstart texexec --version
TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

I have a figure library figlibLogic.xml, the first few lines of which  
are:


?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
productPreliminaries/product
commentFigures for Logic Section/comment
/description

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

In attempting to compile this file with texmfstart texexec  
figlibLogic.xml, the log reports that it cannot find the figures. For  
example,


figures : figure LogicFigs-mpgraph.3 can not be found
[3.1]
figures : figure LogicFigs-mpgraph.4 can not be found
[4.1]
figures : figure LogicFigs-mpgraph.5 can not be found


However, they are there:

figures $ ls LogicFigs-mpgraph.*
LogicFigs-mpgraph.1 LogicFigs-mpgraph.26
LogicFigs-mpgraph.10LogicFigs-mpgraph.27
LogicFigs-mpgraph.11LogicFigs-mpgraph.28
LogicFigs-mpgraph.12LogicFigs-mpgraph.29
LogicFigs-mpgraph.13LogicFigs-mpgraph.3
LogicFigs-mpgraph.14LogicFigs-mpgraph.30
LogicFigs-mpgraph.15LogicFigs-mpgraph.4
LogicFigs-mpgraph.16LogicFigs-mpgraph.5
LogicFigs-mpgraph.17LogicFigs-mpgraph.6
LogicFigs-mpgraph.18LogicFigs-mpgraph.7
LogicFigs-mpgraph.19LogicFigs-mpgraph.8
LogicFigs-mpgraph.2 LogicFigs-mpgraph.9
LogicFigs-mpgraph.20LogicFigs-mpgraph.log
LogicFigs-mpgraph.21LogicFigs-mpgraph.mp
LogicFigs-mpgraph.22LogicFigs-mpgraph.mp.keep
LogicFigs-mpgraph.23LogicFigs-mpgraph.mpb
LogicFigs-mpgraph.24LogicFigs-mpgraph.mpo
LogicFigs-mpgraph.25LogicFigs-mpgraph.mpx

Any ideas?





David Arnold
College of the Redwoods
Mathematics Department
Eureka, CA 95501
(707) 476-4222
http://online.redwoods.edu/instruct/darnold/


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


[NTG-context] project structure cannot find file problem

2006-12-01 Thread Fabian Kloosterman

Hello,

I just started playing with ConTeXt and setting up project/product/component
structures. I made the following directory structure:

/project
/project/project.tex
/project/environment.tex
/project/product
/project/product/product.tex
/project/product/component
/project/product/component/component.tex
/project/product/component/subcomponent.tex

The component.tex file inserts the subcomponent.tex file using the \input
command.

Creating a pdf from component.tex (by running texexec from within
/project/product/component) work fine.
But when I try to run texexec in the product folder to create the product
pdf, it complains that it cannot find the subcomponent.tex

What do I have to do for texexec to be able to find the subcomponent.texfile?


Thanks,

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


[NTG-context] French spacing and pdfTeX-1.40

2006-11-14 Thread Peter Münster
Hello,
(it's a repost, in case my previous email got lost...)
my attempt to get correct French spacing before punctuation does no more
work with the latest ConTeXt-beta.
Is there now a new method with pdfTeX-1.40 to get automatically the good
spacing (as announced some months ago)?

Today I try it like this (without success):

%%% module t-french.tex %%%

\def\activateSomeCharacters{%
  \defineactivecharacter « {\leftguillemot\,}%% does not work
  \defineactivecharacter » {\,\rightguillemot}%   % with utf-encoding
%
%  \defineactivecharacter ; {\,\lettersemicolon}% % does not work
%
  \defineactivecharacter ? {\,\letterquestionmark}%   % does not work with
  \defineactivecharacter : {\,\lettercolon}%  % project/product
  \defineactivecharacter ! {\,\letterexclamationmark}}% structure

\startlanguagespecifics[fr]
  \activateSomeCharacters
  \setupitemize[symbol=2]
  \lccode`\'=`\'
\stoplanguagespecifics

\mainlanguage[fr]

\appendtoks\activateSomeCharacters\to\everystarttext


Greetings, Peter

-- 
http://pmrb.free.fr/contact/

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


[NTG-context] French spacing with pdfTeX-1.40 and ConTeXt-beta

2006-11-08 Thread Peter Münster
Hello,

my attempt to get correct French spacing before punctuation does no more
work with the latest ConTeXt-beta.
Is there now a new method with pdfTeX-1.40 to get automatically the good
spacing?

Today I try it like this (without success):

%%% module t-french.tex %%%

\def\activateSomeCharacters{%
  \defineactivecharacter « {\leftguillemot\,}%  does not work
  \defineactivecharacter » {\,\rightguillemot}% with utf-encoding
%
%  \defineactivecharacter ; {\,\lettersemicolon}%   does not work
%
  \defineactivecharacter ? {\,\letterquestionmark}%does not work with
  \defineactivecharacter : {\,\lettercolon}% project/product
  \defineactivecharacter ! {\,\letterexclamationmark}}%structure

\startlanguagespecifics[fr]
  \activateSomeCharacters
  \setupitemize[symbol=2]
  \lccode`\'=`\'
\stoplanguagespecifics

\mainlanguage[fr]

\appendtoks\activateSomeCharacters\to\everystarttext


Greetings, 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] bookmarks using linebreaks in chapter titles

2006-11-03 Thread Wolfgang Schuster
On Fri, 3 Nov 2006 01:08:46 -0500 (EST)
Aditya Mahajan [EMAIL PROTECTED] wrote:

 On Thu, 2 Nov 2006, Sanjoy Mahajan wrote:
 
  I was trying out line breaks for long titles (at least, long when set in
  36 or 48pt text), as well as have pdf bookmarks, so I defined a \1
  shorthand local to the chapter heading:
 
 Maybe I am missing something here, but why not just use \\. Inside 
 titles it is defined as \crlf\ignorespaces
 
 
  ==
  \setupinteraction[state=start]
  \placebookmarks[chapter]
  \setupinteractionscreen[option=bookmark]
 
  \setuphead[chapter][before={\bgroup\def\1{\hfil\break}}, after={\egroup}]
 
  \starttext
  \chapter{Long\1 title}
  hello
 
  \stoptext
  ==
 
 
  If I inline the \1, as in \chapter{Long\hfil\break title}, then it's
  mostly fine except that the bookmark has hfil penalty ...  Is there's
  another way to avoid that problem?  Perhaps a magic option that says
  what the bookmark should be, the way one can tell \index what to typeset
  in the index when it is different from the inline text.
 
 Usual way is
 
 \appendtoks\def\1{}\to\simplifiedcommands
 
 but something seems to be broken. It seems that you can not use any 
 macro inside a chapter title, while using bookmarks. Here is a simple 
 test file.
 
 \setupinteraction[state=start]
 \placebookmarks[chapter]
 \setupinteractionscreen[option=bookmark]
 
 \def\macro{long word}
 
 \starttext
 \chapter{Long\macro title}
 \stoptext
 

You can also make a extra bookmarkentry by hand.

\starttext
\chapter{A rather long title}
\bookmark{Short title}
\stoptext

 I get same error as you (ConTeXt ver: 2006.11.01 09:59 MK II)
 
  One solution is to forbid hyphens during the \chapter (with before= and
  after= definitions) and also shrink the \hsize enough so that tex line
 
 You do not require before...after for this. Something like
 
 \setuphead[chapter][align={nothyphenated,stretch,tolerant}]
 
 should work.
 
  breaks where I want, but that method requires unintuitive,
  fontsize-dependent dimension guessing for each chapter.  Putting in line
  breaks by hand is not too bad.  Plus one might want to break the lines
  according to meaning, which does not always produce the same results as
  where breaks would go according to line length.
 
 I agree, for headings, it is better to do linebreak by hand.
 
  But meanwhile trying the hack method above, I get this error
 
  (./q.tuo) (./q.tuo)
  ! Undefined control sequence.
  argument Long\1
 title
  \sanitizePDFdocencoding ...docencoding \edef #2{#1
 }
  \doPDFinsertbookmark ...oding #3\to \bookmarktext
 \stripstring \bookmarktext..
 
  \doplacebookmarks ...okmarkelement \flushbookmark
 \egroup \else \expanded {\..
  to be read again
  \setupinteractionscreen
  l.3 \setupinteractionscreen
  [option=bookmark]
 
  It's from this line in q.tuo
 
   \listentry{chapter}{1}{1}{Long\1 title}{2--0-1-0-0-0-0-0--1}{1}
 
  and the \1 is not defined during \listentry, only during the \chapter.
 
  I didn't have a problem when the same code was part of a product (each
  component being chapter in a book, with the \setuphead in an environment
  file) -- only had it when I compiled one component, which is how I got
  to the test case above.
 
  [All with ConTeXt  ver: 2006.10.24 13:47 MK II  fmt: 2006.10.24]
 
  -Sanjoy
 ___
 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] bookmarks using linebreaks in chapter titles

2006-11-02 Thread Sanjoy Mahajan
I was trying out line breaks for long titles (at least, long when set in
36 or 48pt text), as well as have pdf bookmarks, so I defined a \1
shorthand local to the chapter heading:

==
\setupinteraction[state=start]
\placebookmarks[chapter]
\setupinteractionscreen[option=bookmark]

\setuphead[chapter][before={\bgroup\def\1{\hfil\break}}, after={\egroup}]

\starttext
\chapter{Long\1 title}
hello

\stoptext
==

If I inline the \1, as in \chapter{Long\hfil\break title}, then it's
mostly fine except that the bookmark has hfil penalty ...  Is there's
another way to avoid that problem?  Perhaps a magic option that says
what the bookmark should be, the way one can tell \index what to typeset
in the index when it is different from the inline text.

One solution is to forbid hyphens during the \chapter (with before= and
after= definitions) and also shrink the \hsize enough so that tex line
breaks where I want, but that method requires unintuitive,
fontsize-dependent dimension guessing for each chapter.  Putting in line
breaks by hand is not too bad.  Plus one might want to break the lines
according to meaning, which does not always produce the same results as
where breaks would go according to line length.

But meanwhile trying the hack method above, I get this error

 (./q.tuo) (./q.tuo)
 ! Undefined control sequence.
 argument Long\1
   title
 \sanitizePDFdocencoding ...docencoding \edef #2{#1
   }
 \doPDFinsertbookmark ...oding #3\to \bookmarktext 
   \stripstring \bookmarktext..

 \doplacebookmarks ...okmarkelement \flushbookmark 
   \egroup \else \expanded {\..
 to be read again 
\setupinteractionscreen 
 l.3 \setupinteractionscreen
[option=bookmark]

It's from this line in q.tuo

  \listentry{chapter}{1}{1}{Long\1 title}{2--0-1-0-0-0-0-0--1}{1}

and the \1 is not defined during \listentry, only during the \chapter.

I didn't have a problem when the same code was part of a product (each
component being chapter in a book, with the \setuphead in an environment
file) -- only had it when I compiled one component, which is how I got
to the test case above.

[All with ConTeXt  ver: 2006.10.24 13:47 MK II  fmt: 2006.10.24]

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


Re: [NTG-context] bookmarks using linebreaks in chapter titles

2006-11-02 Thread Aditya Mahajan
On Thu, 2 Nov 2006, Sanjoy Mahajan wrote:

 I was trying out line breaks for long titles (at least, long when set in
 36 or 48pt text), as well as have pdf bookmarks, so I defined a \1
 shorthand local to the chapter heading:

Maybe I am missing something here, but why not just use \\. Inside 
titles it is defined as \crlf\ignorespaces


 ==
 \setupinteraction[state=start]
 \placebookmarks[chapter]
 \setupinteractionscreen[option=bookmark]

 \setuphead[chapter][before={\bgroup\def\1{\hfil\break}}, after={\egroup}]

 \starttext
 \chapter{Long\1 title}
 hello

 \stoptext
 ==


 If I inline the \1, as in \chapter{Long\hfil\break title}, then it's
 mostly fine except that the bookmark has hfil penalty ...  Is there's
 another way to avoid that problem?  Perhaps a magic option that says
 what the bookmark should be, the way one can tell \index what to typeset
 in the index when it is different from the inline text.

Usual way is

\appendtoks\def\1{}\to\simplifiedcommands

but something seems to be broken. It seems that you can not use any 
macro inside a chapter title, while using bookmarks. Here is a simple 
test file.

\setupinteraction[state=start]
\placebookmarks[chapter]
\setupinteractionscreen[option=bookmark]

\def\macro{long word}

\starttext
\chapter{Long\macro title}
\stoptext

I get same error as you (ConTeXt ver: 2006.11.01 09:59 MK II)

 One solution is to forbid hyphens during the \chapter (with before= and
 after= definitions) and also shrink the \hsize enough so that tex line

You do not require before...after for this. Something like

\setuphead[chapter][align={nothyphenated,stretch,tolerant}]

should work.

 breaks where I want, but that method requires unintuitive,
 fontsize-dependent dimension guessing for each chapter.  Putting in line
 breaks by hand is not too bad.  Plus one might want to break the lines
 according to meaning, which does not always produce the same results as
 where breaks would go according to line length.

I agree, for headings, it is better to do linebreak by hand.

 But meanwhile trying the hack method above, I get this error

 (./q.tuo) (./q.tuo)
 ! Undefined control sequence.
 argument Long\1
  title
 \sanitizePDFdocencoding ...docencoding \edef #2{#1
  }
 \doPDFinsertbookmark ...oding #3\to \bookmarktext
  \stripstring \bookmarktext..

 \doplacebookmarks ...okmarkelement \flushbookmark
  \egroup \else \expanded {\..
 to be read again
   \setupinteractionscreen
 l.3 \setupinteractionscreen
   [option=bookmark]

 It's from this line in q.tuo

  \listentry{chapter}{1}{1}{Long\1 title}{2--0-1-0-0-0-0-0--1}{1}

 and the \1 is not defined during \listentry, only during the \chapter.

 I didn't have a problem when the same code was part of a product (each
 component being chapter in a book, with the \setuphead in an environment
 file) -- only had it when I compiled one component, which is how I got
 to the test case above.

 [All with ConTeXt  ver: 2006.10.24 13:47 MK II  fmt: 2006.10.24]

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


Re: [NTG-context] how to define a new math symbol

2006-10-25 Thread M.J. Kallen
Taco,

I'm not sure I understand your question. I'm using TexLive on a linux system. I 
do not use any other fonts other than CM. 

The file prodint.afm has the following contents:

StartFontMetrics 4.0
Comment This is prodint.afm created from prodint.pfb by t1lib V. 1.0.0.
Comment File creation date: Thu Mar  8 00:02:51 2001
Comment t1lib is copyright (c) Rainer Menzner, 1996, 1997, 1998.
Comment t1lib is distributed under the GNU General Public Library License (LGPL)
FontName prodint
FullName prodint
FamilyName prodint
Weight Plain
ItalicAngle 0
IsFixedPitch false
FontBBox 0 -53 2581 2298
UnderlinePosition 0
UnderlineThickness 0
Version 000.001
Notice 2001, JC Loredo-Osti. Based in R. Gill's `pi.ps'. Right to use, copy, 
distribute and modify this file is granted.
EncodingScheme FontSpecific
StdHW 47
StdVW 47
StartCharMetrics 7
C  80 ; WX  785 ; N prodinttext  ; B 0 0   713   999 ;
C  82 ; WX 1255 ; N prodintdisplay   ; B 0 0  1141  1599 ;
C  84 ; WX 1804 ; N prodintbig   ; B 0 0  1640  2298 ;
C 120 ; WX 1205 ; N oldpitext; B13   -33  1237   966 ;
C 122 ; WX 1928 ; N oldpidisplay ; B23   -53  1982  1547 ;
C 160 ; WX 1637 ; N ancientpitext; B50   -27  1611   974 ;
C 162 ; WX 2619 ; N ancientpidisplay ; B81   -40  2581  1561 ;
EndCharMetrics
EndFontMetrics

End of file prodint.afm

So based on some of the symb-xxx.tex files, I tried

\loadmapfile[prodint.map]
\definefontsynonym [Prodint] [prodint]
\def\ProdintSymbol#1{\getglyph{Prodint}{\char#1}}

\startsymbolset
\definesymbol[prodi] [\ProdintSymbol{80}]
\definesymbol[Prodi] [\ProdintSymbol{82}]
\definesymbol[PRODI] [\ProdintSymbol{84}]
\stopsymbolset

but texexec stops when mktexfm cannot find the file 'prodint' or it says the 
TFM file is missing. Another problem with this approach is the fact that this 
does not define a MATH symbol, which is really what I would want. Based on the 
LaTeX style file prodint.sty, I'm guessing I'll at least need a command like:

\definemathsymbol [prodi] [op] [prodint] [xx]

but I can't figure out the usage of this command. I also suspect that I can not 
used the prodint.tfm file, supplied with the LaTeX package, but need to run 
Texfont to create one for ConTeXt. Can you confirm this?

I greatly appreciate any help!

Maarten-Jan

- Original Message 
From: Taco Hoekwater [EMAIL PROTECTED]
To: mailing list for ConTeXt users ntg-context@ntg.nl
Sent: Tuesday, October 24, 2006 5:31:10 PM
Subject: Re: [NTG-context] how to define a new math symbol


MJK wrote:
 Hi,
 
 I would like to use of the product integral (a curly \prod-like
 symbol which is to \prod what \int is to \sum) in Context. There is a
 LaTeX package (not official) available from Richard Gill's website
 (http://www.math.uu.nl/people/gill/, all the way at the bottom),
 which supplies a .sty file with the following contents:

What font setup do you use in ConTeXt?

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] ConTeXt installtion and Debian

2006-10-25 Thread Hans Hagen
Norbert Preining wrote:
 Debian currently has:
 TEXFONTMAPS = .;$TEXMF/{fonts/,}map//;$TEXMF/dvips//

 What about this? I am not completely convinced about it since with
 updmap we generate input file for all the different programs.
   
TEXFONTMAPS =.;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//

this should be ok for todays situation 

is better since it permits installation of fonts without the need for updmap 
magic (and side effects); maybe at some point in the future there will be a 
common map syntax (side product of pdftex project) which will make live easier

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-context] how to define a new math symbol

2006-10-24 Thread MJK
Hi,

I would like to use of the product integral (a curly \prod-like symbol which is 
to \prod what \int is to \sum) in Context. There is a LaTeX package (not 
official) available from Richard Gill's website 
(http://www.math.uu.nl/people/gill/, all the way at the bottom), which supplies 
a .sty file with the following contents:

\ProvidesPackage{prodint}
\DeclareFontFamily{U}{ProdInt}{}
\DeclareFontShape{U}{ProdInt}{m}{n}{- prodint}{}
\DeclareSymbolFont{Prodint}{U}{ProdInt}{m}{n}
\DeclareMathSymbol{\prodi}{\mathop}{Prodint}{80}%80 prodinttext
\DeclareMathSymbol{\Prodi}{\mathop}{Prodint}{82}%82 prodintdisplay
\DeclareMathSymbol{\PRODI}{\mathop}{Prodint}{84}%84 prodintbig
\endinput

It also supplies a bunch of fontfiles, i.e. prodint.{afm,pfa,pfb,tfm}, and a 
map file prodint.map. As you can see, the package supplies three commands: 
\prodi, \Prodi and \PRODI, corresponding to three sizes.

My question(s): how can I define similar commands (I'm guessing 
\definemathsymbol would be required) to use this symbol in Context? Is it 
possible to use the fontfiles supplied in the LaTeX package or should Texfont 
be used to enable the symbol in Context?

Thanks,

Maarten-Jan


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


Re: [NTG-context] how to define a new math symbol

2006-10-24 Thread Taco Hoekwater


MJK wrote:
 Hi,
 
 I would like to use of the product integral (a curly \prod-like
 symbol which is to \prod what \int is to \sum) in Context. There is a
 LaTeX package (not official) available from Richard Gill's website
 (http://www.math.uu.nl/people/gill/, all the way at the bottom),
 which supplies a .sty file with the following contents:

What font setup do you use in ConTeXt?

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


Re: [NTG-context] BibTex module with AMS formatting

2006-08-22 Thread Pepe Barbe
On 8/22/06, Taco Hoekwater [EMAIL PROTECTED] wrote:

 Can you create (and post) a minimal input file with the problem?

 The bits you posted cannot be your whole input, sicne that would
 not create numbers in the publication list, and my crystal ball
 is not translucent enough to deduce the rest of your code.

Sorry for assuming the omniscience of your crystal ball. :-)

I created a simple file to illustrate my problem and, oh joys, it worked fine.

Going back to my product file, I decided to make a few changes and it
worked. Basically I had the following:

\startbackmatter
  \completepublications
\stopbackmatter

and it didn't work. If I moved \completepublications to

\startbodymatter
  \component chapter1
  \component chapter2
  \completepublications
\stopbodymatter

Then it will show the reference number in the body correctly. I
thought it made sense to put the References in the end.

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


Re: [NTG-context] figure directory is sort of searched

2006-08-16 Thread Mojca Miklavec
On 8/15/06, Taco Hoekwater wrote:

 Hi,

 Sanjoy Mahajan wrote:
  I still can't figure this problem one out, from a few months ago, and it
  happens with a recent ConTeXt (2006.08.08 21:51).  The figure searching
  code gets confused if a file of the same basename (but in a different
  directory) has already been loaded.  Here is a minimal min.tex to show
  what I mean:

 I remember I ran into that as well (more than a year ago) and I ended
 up renaming my figures to figure1-1.pdf etc. It actually turned out
 to be easier for me, because that way I could use the figure filename
 as the reference.

While reading Taco's response something else came to my mind: here's
what I did in one of the presentations:

\startsetups award:gold
\useexternalfigure[medal][medal_gold][height=7.5cm]
\stopsetups

\startsetups award:silver
\useexternalfigure[medal][medal_silver][height=7.5cm]
\stopsetups

\startsetups award:bronze
\useexternalfigure[medal][medal_bronze][height=7.5cm]
\stopsetups

After that I just issued \setups{award:gold} at the top of product
file for gold medallists while using the same page layout for all the
medallists (with a simple \externalfigure[medal] which was good for
any medallist).

I guess that you could also do something like

\startsetups chapter:1
\useexternalfigure[fig-1][1/fig-1.pdf]
\useexternalfigure[fig-2][1/fig-2.pdf]
\stopsetups

\startsetups chapter:2
\useexternalfigure[fig-1][2/fig-1.pdf]
...
\stopsetups

\starttext
\setups{chapter:1}
\externalfigure[fig-1]
\externalfigure[fig-2]
\setups{chapter:2}
\externalfigure[fig-1]
\stoptext


Just out of curiosity I tried the following:

\startsetups chapter:1

\dorecurse{10}{\useexternalfigure[fig-\recurselevel][1/fig-\recurselevel.pdf]}
\stopsetups

\startsetups chapter:2

\dorecurse{10}{\useexternalfigure[fig-\recurselevel][2/fig-\recurselevel.pdf]}
\stopsetups

But you should ask someone else where to expand stuff to make it work.

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


Re: [NTG-context] compiling project files

2006-08-15 Thread Boris Tschirschwitz
Let's say I have the following project structureproject.tex env.tex product1.tex component1.tex component2.tex product2.texHere, really, the whole project generates a single pdf at the end.
Now, when working on component1, I would run $ texmfstart texexec project.texShould I rather run texexec on product1.tex or component1.tex? Or maybe use texmfstart in some other way?I am wondering about this because
1. Perter says  Only components and products should be compiled.2. When compiling projects that include MPgraphics, I have to run that texmfstart line above twice to see changes to MPgraphics in my pdf. I thought that one idea behind
 texexec is that it takes care of all incantations, like make in programming.Cheers,Boris.On 8/14/06, Peter Münster
 [EMAIL PROTECTED] wrote:On Sat, 12 Aug 2006, Derek Schmidt wrote:
 The .tuo file for the _product_ file shows the files being loaded. Compiling the _project_ file yields no .tuo. My product file does indeed look like what you wrote.Hello Derek,it's not intended to compile the project file. It should contain only
common setups for all products.Only components and products should be compiled.Cheers, Peter--http://pmrb.free.fr/contact/___
ntg-context mailing listntg-context@ntg.nlhttp://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] compiling project files

2006-08-15 Thread Aditya Mahajan
On Tue, 15 Aug 2006, Boris Tschirschwitz wrote:

 Let's say I have the following project structure

 project.tex
 env.tex
 product1.tex
  component1.tex
  component2.tex
 product2.tex

 Here, really, the whole project generates a single pdf at the end.

 Now, when working on component1, I would run
 $ texmfstart texexec project.tex

 Should I rather run texexec on product1.tex or component1.tex? Or maybe use
 texmfstart in some other way?

You should run texexec on prouct or component (not on the project)

 I am wondering about this because
 1. Perter says
Only components and products should be compiled.

Suppose you are typesetting a collection of books. Then project.tex 
should have common setup for all the books. product1.tex can be first 
book, product2.tex can be second book etc. component1.tex can be first 
chapter of the first book, etc. So, you are not supposed to compile 
the complete project.


 2. When compiling projects that include MPgraphics, I have to run that
 texmfstart line
   above twice to see changes to MPgraphics in my pdf. I thought 
that one
 idea behind
   texexec is that it takes care of all incantations, like make in
 programming.



This should not happen.

Aditya


 On 8/14/06, Peter Münster [EMAIL PROTECTED] wrote:
 
 On Sat, 12 Aug 2006, Derek Schmidt wrote:
 
  The .tuo file for the _product_ file shows the files being loaded.
  Compiling the _project_ file yields no .tuo. My product file does
  indeed look like what you wrote.
 
 Hello Derek,
 it's not intended to compile the project file. It should contain only
 common setups for all products.
 Only components and products should be compiled.
 Cheers, Peter
 
 --
 http://pmrb.free.fr/contact/
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 


-- 
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] compiling project files

2006-08-14 Thread Peter Münster
On Sat, 12 Aug 2006, Derek Schmidt wrote:

 The .tuo file for the _product_ file shows the files being loaded.
 Compiling the _project_ file yields no .tuo. My product file does
 indeed look like what you wrote.

Hello Derek,
it's not intended to compile the project file. It should contain only
common setups for all products.
Only components and products should be compiled.
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] compiling project files

2006-08-13 Thread Mojca Miklavec
On 8/13/06, Derek Schmidt wrote:
 Aditya,

 Sorry it took so long to get back to you. I've only just had a chance
 to try this now.

 The .tuo file for the _product_ file shows the files being loaded.
 Compiling the _project_ file yields no .tuo. My product file does
 indeed look like what you wrote.

 Shall I jump out the window or not? :)

It depends on which floor you live in ;)

It might help if you create a *minimal* example first (just a few
files with no more than the structure itself and a couple of
words/sections in it), write the commands that you use and attach a
zip with those files and probably logs.

Mojca

PS: try to update ConTeXt to the latest version if you intend to send
log files and try to use the ruby version of texexec (texmfstart
texexec) if possible. None should be necessary (it should work with
the ancient version as well), but it often helps, esp. because tetex
still uses the 2002 version of ConTeXt for example.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] compiling project files

2006-08-12 Thread Derek Schmidt
Aditya,

Sorry it took so long to get back to you. I've only just had a chance
to try this now.

The .tuo file for the _product_ file shows the files being loaded.
Compiling the _project_ file yields no .tuo. My product file does
indeed look like what you wrote.

Shall I jump out the window or not? :)

--Derek

On 8/9/06, Aditya Mahajan [EMAIL PROTECTED] wrote:
 On Wed, 9 Aug 2006, Derek Schmidt wrote:

  Hi there,
 
  I'm a complete ConTeXt newbie, so please be patient with me. :)
 
  I'm putting together a book and I'm trying to use the project
  structure that Context likes so much. My components come out
  beautifully--they are chapters in the book.
 
  The product file is the actual book. I don't have the code in front of
  me, but it looks very much like the examples given in the manuals and
  at ContextGarden. When I texexec it, it runs but only produces and
  empty table of contents with the word Contents at the top. It won't
  list the chapters, forget about actually printing their content.

 I do not understand this. Do you mean that the components are not in
 the output?


  Any ideas on what I'm doing wrong? I'm guessing this might not be
  enough info for you to help. I'll try to answer any questions as best
  I can.

 It is pretty hard to guess. Does your product file look like this

 \startproduct product-name

 \environment env-name

 \component component-1
 \component component-2
 

 \stopproduct


 Maybe the components are not getting loaded. To actually see which
 files are being loaded, look at product.tui file. The enteries
 starting with f tell you which files are being read. What does the
 output of

 grep ^f product.tui

 look like?

 Aditya
 ___
 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] compiling project files

2006-08-09 Thread Derek Schmidt
Hi there,

I'm a complete ConTeXt newbie, so please be patient with me. :)

I'm putting together a book and I'm trying to use the project
structure that Context likes so much. My components come out
beautifully--they are chapters in the book.

The product file is the actual book. I don't have the code in front of
me, but it looks very much like the examples given in the manuals and
at ContextGarden. When I texexec it, it runs but only produces and
empty table of contents with the word Contents at the top. It won't
list the chapters, forget about actually printing their content.

Any ideas on what I'm doing wrong? I'm guessing this might not be
enough info for you to help. I'll try to answer any questions as best
I can.

Thanks and

all best,
Derek
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] compiling project files

2006-08-09 Thread Aditya Mahajan
On Wed, 9 Aug 2006, Derek Schmidt wrote:

 Hi there,

 I'm a complete ConTeXt newbie, so please be patient with me. :)

 I'm putting together a book and I'm trying to use the project
 structure that Context likes so much. My components come out
 beautifully--they are chapters in the book.

 The product file is the actual book. I don't have the code in front of
 me, but it looks very much like the examples given in the manuals and
 at ContextGarden. When I texexec it, it runs but only produces and
 empty table of contents with the word Contents at the top. It won't
 list the chapters, forget about actually printing their content.

I do not understand this. Do you mean that the components are not in 
the output?


 Any ideas on what I'm doing wrong? I'm guessing this might not be
 enough info for you to help. I'll try to answer any questions as best
 I can.

It is pretty hard to guess. Does your product file look like this

\startproduct product-name

\environment env-name

\component component-1
\component component-2


\stopproduct


Maybe the components are not getting loaded. To actually see which 
files are being loaded, look at product.tui file. The enteries 
starting with f tell you which files are being read. What does the 
output of

grep ^f product.tui

look like?

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


Re: [NTG-context] texfont: installed font only works with pdftex

2006-08-07 Thread Andreas Schneider

On Mon, 7 Aug 2006, Taco Hoekwater wrote:

Andreas Schneider wrote:

but xdvi gives error messages like [...]


My guess is that you have to copy the final ec.enc file you used
to the folder where dvips (and xdvi, which looks in the same
place normally) looks for encoding files.


I created a symlink in my private texmf tree (ec.enc - lm-ec.enc) and ran 
texhash, and after that it was all the same. Anyway, this would not 
explain why I have the same symptom with the texnansi encoding, too.


Maybe it helps debugging that dvips gives different error messages:

This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2006.08.07:1402' - schrift.ps
tex.pro8r.enctexps.pro. bgjb.pfbbgjri.pfbbgjr.pfb
Warning: module writet1 of dvips (file bgjr.pfb): glyph `pi' undefined

Warning: module writet1 of dvips (file bgjr.pfb): glyph `product' undefined

Warning: module writet1 of dvips (file bgjr.pfb): glyph `ffl' undefined

Warning: module writet1 of dvips (file bgjr.pfb): glyph `ffi' undefined

Warning: module writet1 of dvips (file bgjr.pfb): glyph `ff' undefined

Warning: module writet1 of dvips (file bgjr.pfb): glyph `dotlessj' undefined
[1]

Also I get a slightly different result: With gv I can see some umlauts in 
the postscript file (ä, ö, ü work, but ß does not). Instead of the 
ligatures there are only spaces.


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


Re: [NTG-context] document structure

2006-07-22 Thread Hans van der Meer

On Jul 22, 2006, at 10:19, Taco Hoekwater wrote:

 Hans van der Meer wrote:

 Sorry, but I think I do not yet understand and I do not get it right.
 Next is in a nutshell my setup of the environments, the relevant
 projects are syllabus-s and syllabus-p

 My unsterstanding is that you do it like  this:

% syllabys-s.tex
\project syllabus
\localenvironment syllabus-local-setup
\starttext
\stoptext

% syllabys-p.tex
\project syllabus
\localenvironment syllabus-local-setup
\starttext
\stoptext

% syllabus.tex:
\environment syllabus-setup

% syllabus-setup.tex
 \writestring{global env settings}

% syllabus-local-setup.tex
\startlocalenvironment[syllabus-s]
  \writestring{this is only for the screen version}
\stoplocalenvironment
\startlocalenvironment[syllabus-p]
  \writestring{this is only for the print version}
\stoplocalenvironment

 (Untested)


No, I must be my fault, but even with the above help I cannot get it  
working.
As far as I can figure out the value of \currentproduct seems NOT to  
guard entry to the body of \startlocalenvironment[syllabus-s].  
Although the manual here explicitely mentions component or product,  
I cannot see that happen. Also \localenvironment seems to accept any  
file for reading instead of rejecting everything except the current  
product/component.

In the code of core-job.tex I read:

% more or less replaced by modes
\setvalue{\e!start\v!localenvironment}[#1]%


Must I conclude from this that localenvironments are more or less  
passe? So that I can better avoid them and use modes (after  
\enablemode) as discriminating criterium?

Hans van der Meer


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


Re: [NTG-context] document structure (small bug)

2006-07-22 Thread Taco Hoekwater
Hi Hans-es,

Hans van der Meer wrote:
 
 
 No, I must be my fault, but even with the above help I cannot get it  
 working.
 As far as I can figure out the value of \currentproduct seems NOT to  
 guard entry to the body of \startlocalenvironment[syllabus-s].  

This took a bit of digging, it appears to be a bug in core-job.tex.
The definition of \setvalue{\e!start\v!localenvironment} ends with:

  {\grabuntil{\e!stop\v!localenvironment}\relax}}

but that should be:

  {\grabuntil{\e!stop\v!localenvironment}\gobbleoneargument}}


 Also \localenvironment seems to accept any  
 file for reading instead of rejecting everything except the current  
 product/component.

Yes, it only guards against loading the environment file twice. The
name is irrelevant.

 In the code of core-job.tex I read:
 
 % more or less replaced by modes
 \setvalue{\e!start\v!localenvironment}[#1]%
 
 
 Must I conclude from this that localenvironments are more or less  
 passe? So that I can better avoid them and use modes (after
 \enablemode) as discriminating criterium?

There are probably system modes predefined for the products
name etc. I'll leave the question to be answered by Hans.

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


Re: [NTG-context] document structure (small bug)

2006-07-22 Thread Hans van der Meer
On Jul 22, 2006, at 14:19, Taco Hoekwater wrote:

 Hans van der Meer wrote:


 No, I must be my fault, but even with the above help I cannot get it
 working.
 As far as I can figure out the value of \currentproduct seems NOT to
 guard entry to the body of \startlocalenvironment[syllabus-s].

 This took a bit of digging, it appears to be a bug in core-job.tex.
 The definition of \setvalue{\e!start\v!localenvironment} ends with:

   {\grabuntil{\e!stop\v!localenvironment}\relax}}

 but that should be:

   {\grabuntil{\e!stop\v!localenvironment}\gobbleoneargument}}


This patch repairs it. Now \startlocalenvironment[syllabus-s] is  
properly entered when the argument matches the product. One more bug  
has been ironed out. But the fact that it took so long before it  
surfaced is telling, obviously not many people have used this  
mechanism since the manual came out!
Thanks for acting so fast.

Hans van der Meer



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


[NTG-context] Setting to help with overflow in Metapost

2006-07-22 Thread dwarnold45
All,

This code is causing an overflow. Isn't there a setting that will allow bigger 
numbers? 

I am not looking for more code and/or rescaling code, but a setting that I know 
is there that will allow larger numbers.
%mode=short

\startcomponent section1exercises

\project book
\product chapter5/chapter5

\usemodule[newmat]
\usemodule[math=ext]
\usemodule[fig-base]
\usefigurebase[figures/figlibSection1]

\setupheadnumber[chapter][6]
\setupheadnumber[section][1]

\def\qor{\quad\text{or}\quad}
\def\qqor{\qquad\text{or}\qquad}
\def\qand{\quad\text{and}\quad}
\def\qqand{\qquad\text{and}\qquad}

\setupcolors[state=start]

\definecolor[gridlines][s=0.7]

\startMPinclusions

color mygridcolor; mygridcolor=\MPcolor{gridlines};
color gridlines; gridlines:=\MPcolor{gridlines};

def vtick(expr pos)=
 draw ((0,-3)--(0,3)) shifted pos;
enddef;

def htick(expr pos)=
 draw ((-3,0)--(3,0)) shifted pos;
enddef;

def opendot(expr pos)=
 fill fullcircle scaled 4pt shifted pos withcolor white;
 draw fullcircle scaled 4pt shifted pos withcolor red;
enddef;

def filleddot(expr pos)=
 fill fullcircle scaled 4pt shifted pos withcolor red;
 draw fullcircle scaled 4pt shifted pos withcolor red;
enddef;
\stopMPinclusions

\startuseMPgraphic{55_grid}
  for k=-5u step 1u until 5u:
   draw (k,-5u)--(k,5u) withcolor gridlines;
   draw (-5u,k)--(5u,k) withcolor gridlines;
  endfor;
\stopuseMPgraphic

\startuseMPgraphic{55_xy_axes}
 drawdblarrow (-5u,0)--(5u,0);
 label.rt(btex $\tfx x$ etex, (5u,0));
 label.bot(btex $\tfx 5$ etex, (5u,0));
 drawdblarrow (0,-5u)--(0,5u);
 label.top (btex $\tfx y$ etex, (0,5u));
 label.lft(btex $\tfx 5$ etex, (0,5u));
\stopuseMPgraphic

\startuseMPgraphic{1010_grid}
  for k=-10u step 1u until 10u:
   draw (k,-10u)--(k,10u) withcolor gridlines;
   draw (-10u,k)--(10u,k) withcolor gridlines;
  endfor;
\stopuseMPgraphic

\startuseMPgraphic{1010_xy_axes}
 drawdblarrow (-10u,0)--(10u,0);
 label.rt(btex $\tfx x$ etex, (10u,0));
 label.bot(btex $\tfx 10$ etex, (10u,0));
 drawdblarrow (0,-10u)--(0,10u);
 label.top (btex $\tfx y$ etex, (0,10u));
 label.lft(btex $\tfx 10$ etex, (0,10u));
\stopuseMPgraphic

\startuseMPgraphic{1010_xy_axes_ti}
 drawdblarrow (-10u,0)--(10u,0);
 label.rt(btex $\tfx x$ etex, (10u,0));
 label.bot(btex $\tfx 10$ etex, (10u,0));
 label.bot(btex $\tfx -10$ etex, (-10u,0));
 drawdblarrow (0,-10u)--(0,10u);
 label.top (btex $\tfx y$ etex, (0,10u));
 label.lft(btex $\tfx 10$ etex, (0,10u));
 label.lft(btex $\tfx -10$ etex, (0,-10u));
\stopuseMPgraphic

\startuseMPgraphic{05_grid}
  for k=0 step 1u until 5u:
   draw (k,0)--(k,5u) withcolor gridlines;
   draw (0,k)--(5u,k) withcolor gridlines;
  endfor;
\stopuseMPgraphic

\startuseMPgraphic{05_xy_axes}
 drawarrow (0,0)--(5u,0);
 label.rt(btex $\tfx x$ etex, (5u,0));
 label.bot(btex $\tfx 5$ etex, (5u,0));
 drawarrow (0,0)--(0,5u);
 label.top (btex $\tfx y$ etex, (0,5u));
 label.lft(btex $\tfx 5$ etex, (0,5u));
\stopuseMPgraphic


\startquestions

% Exercise #29
\beginquestion
\startquestion[ex:secqu.29]
  $p(x)=-x^6-4x^5+27x^4+78x^3+4x^2+376x-480$
\stopquestion
\endquestion

\beginlonganswer
\startanswer
%\startlinecorrection[blank]
%\midaligned{\externalfigure[q25v][width=0.4\textwidth]}
%\midaligned{\externalfigure[q25][width=0.4\textwidth]}
%\stoplinecorrection
\stopanswer
\endlonganswer

\beginshortanswer
\startanswer
Note that the leading term $-x^6$ (dashed) has the same end-behavior as the 
polynomial $p$.

\startbuffer

  %initialize scale and draw axes
  numeric u; 20ux=2in; 1uy=2in;
  drawdblarrow (-10ux,0)--(10ux,0);
  label.rt(btex $\tfx x$ etex, (10ux,0));
  label.bot(btex $\tfx -10$ etex, (-10ux,0));
  label.bot(btex $\tfx 10$ etex, (10ux,0));
  drawdblarrow (0,-5000uy)--(0,5000uy);
  label.top(btex $\tfx y$ etex, (0,5000uy));
  label.lft(btex $\tfx -5000$ etex, (0,-5000uy));
  label.lft(btex $\tfx 15$ etex, (0,5000uy));


  %leading term
  vardef lead(expr x)=
   -1*x*x*x*x*x*x
  enddef;

  %polynomial
  vardef p(expr x)=
   -1*x**6-4*x**5+27*x**4+78*x**3+4*x**2+376*x-480
  enddef;

  %path p_lead
  path p_lead;
  p_lead:=(-4.1352,lead(-4.1352));
  for x=-4.1352 step .1 until 4.1252:
   p_lead:=p_lead--(x,lead(x));
  endfor;
  p_lead:=p_lead--(4.1252,lead(4.1252));
  p_lead:=p_lead xyscaled(ux,uy);
  draw p_lead dashed evenly withcolor red;

  %path p_p
  path p_p;
  p_p:=(-6.5009,p(-6.5009));
  for x=-6.5009 step .1 until 5.3356 :
   p_p:=p_p--(x,p(x));
  endfor;
  p_p:=p_p--( 5.3356 ,p(5.3356));
  p_p:=p_p xyscaled(ux,uy);
  drawdblarrow p_p withcolor blue;
  label.rt(btex $\tfx p(x)=-x^6-4x^5+27x^4+78x^3+4x^2+376x-480$ etex, (5.3356 
,p(5.3356 )) xyscaled(ux,uy));
\stopbuffer

\startlinecorrection[blank]
  \midaligned{\processMPbuffer}
\stoplinecorrection

\stopanswer
\endshortanswer


% Exercise #30
\beginquestion
\startquestion[ex:secqu.30]
  $p(x)=2x^4-3x^3+x-10$
\stopquestion
\endquestion

\beginlonganswer[-]
\startanswer
\stopanswer
\endlonganswer

\beginshortanswer[-]
\startanswer
\stopanswer
\endshortanswer

Re: [NTG-context] document structure

2006-07-21 Thread Taco Hoekwater


Hans van der Meer wrote:
 Must I understand that \startlocalenvironment[abc] within an 
 environment file means that this codeblock is used only for typesetting 
 product/component abc and excluded automatically when another 
 product/component is typeset?

I believe so.

 How does this relate to the above question about setup-file structure?

\localenvironment is sort of an alias of  \environment.

Differences: there is a but less bookkeeping done, and the file
is loaded only once in a run, never repeatedly (so that the command
can safely be used in a number of components). The files' name
(== the argument) is unimportant.

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


Re: [NTG-context] document structure

2006-07-21 Thread Hans van der Meer

On Jul 21, 2006, at 14:58, Taco Hoekwater wrote:



 Hans van der Meer wrote:
 Must I understand that \startlocalenvironment[abc] within an
 environment file means that this codeblock is used only for  
 typesetting
 product/component abc and excluded automatically when another
 product/component is typeset?

 I believe so.

 How does this relate to the above question about setup-file  
 structure?

 \localenvironment is sort of an alias of  \environment.

 Differences: there is a but less bookkeeping done, and the file
 is loaded only once in a run, never repeatedly (so that the command
 can safely be used in a number of components). The files' name
 (== the argument) is unimportant.


Sorry, but I think I do not yet understand and I do not get it right.
Next is in a nutshell my setup of the environments, the relevant  
projects are syllabus-s and syllabus-p

% calls up the product, file syllabus-s.tex
\startproduct syllabus-s
\project onderwijs
\environment syllabus-setup
...
\stopproduct

% common initializations, file syllabus-setup.tex
\startenvironment syllabus-setup
\writestring{LOADED ENVIRONMENT SYLLABUS-SETUP}\writeline
\startlocalenvironment[syllabus-s]
\localenvironment syllabus-s-setup
\stoplocalenvironment   
\startlocalenvironment[syllabus-p]
\localenvironment syllabus-p-setup
\stoplocalenvironment   

% setups local to p-version, file syllabus-p-setup.tex
\startlocalenvironment[syllabus-p-setup]
\writestring{LOADED ENVIRONMENT SYLLABUS-P-SETUP}\writeline
\stoplocalenvironment

% setups local to s-version, file syllabus-s-setup.tex
\startlocalenvironment[syllabus-s-setup]
\writestring{LOADED ENVIRONMENT SYLLABUS-S-SETUP}\writeline
\stoplocalenvironment

Running from product syllabus-s.tex I get this in the log:
systems : begin file syllabus-setup at line 10
(./syllabus-setup.tex
LOADED ENVIRONMENT SYLLABUS-SETUP

systems : begin file syllabus-s-setup at line 6
(./syllabus-s-setup.tex
LOADED ENVIRONMENT SYLLABUS-S-SETUP

)
systems : end file syllabus-s-setup at line 6
systems : begin file syllabus-p-setup at line 10
(./syllabus-p-setup.tex
LOADED ENVIRONMENT SYLLABUS-P-SETUP

)
systems : end file syllabus-p-setup at line 10

And this shows that running the product syllabus-s still loads both  
localenvironments and goes inside both \startlocalenvironments!
What I am doing wrong here?


Hans van der Meer



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


Re: [NTG-context] eating up

2006-07-14 Thread Hans van der Meer

On Jul 14, 2006, at 15:57, Taco Hoekwater wrote:



 Hans van der Meer wrote:

 Therefore I conclude to the following: on inspecting the next
 character with \doifnextcharelse[% the character which is compared
 is the .

 It is more technically correct to say that the \doifnextcharelse
 compares the first token of the expansion of '' with the second
 token of the expansion of ''. Down this road awaits madness.

Indeed, that is certainly more correct.


 In general, you can not intermix optional arguments and active
 characters, you need to have at least one non-active non-space
 token to break off the search in a reliable manner.

 Simply adding a \relax statement sounds like the simplest solution.

Yes, I found that out already, even something like {} does the trick.  
But stubborn as I sometimes may be, I first tried to find a solution  
within the macro definition, that does not depend on the data processed.

 Being not equal to [ it is given back but -- if I remember
 well -- there can be a catcode problem. I guess  still functions as
 separator in the \halign template but no longer functions as a macro,
 as it should in my code.

 There might be no solution for this within TeX's limitations. But
 maybe you can confirm cq. deny that from your knowledge of TeX (which
 certainly is greater than mine).

 There is a chance that there is a hackish way around this
 limitiation for some very specific cases, but i cannot
 tell without the actual code you use.

I will privately mail a copy of my file. It is fairly extensively  
commented. But not yet a finished product though. However, very  
hackish doesn't foretells much good. I certainly am able to  
acknowdledge defeat if it faces me so strongly as is the case here.

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

Hans van der Meer



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


Re: [NTG-context] texmfstart with figure library

2006-06-29 Thread Hans Hagen
David Arnold wrote:
 All,

 I have a file figlibSection3.xml which starts 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 1/product
 commentFigures for Section 3/comment
 /description

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

 ...

 When I used to run texexec figlibSection3.xml, I would get my  
 figures, then the gui screens with figure embedded. Now, with  
 texmfstart texexec figlibSection3.xml, I get my figures, the gui  
 screens, then duplicates of all the figures after that. Thus, two  
 copies of every figure is embedded in the figure library.

 Is this new behavior correct?
   
no, an dit only fails with the processing instruction; i'll fix it

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-context] texmfstart with figure library

2006-06-28 Thread David Arnold
All,

I have a file figlibSection3.xml which starts 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 1/product
commentFigures for Section 3/comment
/description

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

...

When I used to run texexec figlibSection3.xml, I would get my  
figures, then the gui screens with figure embedded. Now, with  
texmfstart texexec figlibSection3.xml, I get my figures, the gui  
screens, then duplicates of all the figures after that. Thus, two  
copies of every figure is embedded in the figure library.

Is this new behavior correct?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Bad Split TABLEs

2006-06-12 Thread Johannes Graumann
Hello,

LONG tables form a significant part of my thesis. I put the thesis together
entirely in XML and have a stylesheet matching that XML into ConTeXt.
While ConTeXt is doing a great job with the rest, split TABLEs are not
working - despite Hans' repeatedly answering my pleas with patches. I
concluded that I might have a problem of my XML-to-ConTeXt matching rather
than ConTeXt itself at hand and pulled a part of my thesis flanking and
including the most unwieldy multipage table into ConTeXt proper (see
attachment). The problems persist and I'd like to poll the accumulated
ConTeXtitians on hints towards a solution of them, specifically:
- split tables without body content
- textbody text and tables overflowing the pages.
- multiple splits per page

I'd be very happy about any hints on how to remedy this document-spoiler ...

Thanks, Joh

% Papersize is 'letter'
\setuppapersize[letter][letter]

% CIT thesis regulations: 1 in margins, 1.5 in on the binding side
% Johannes: no footer
\setuplayout[
  backspace=1.5in,
  cutspace=1in,
  width=fit,
  topspace=1in,
  bottomspace=1in,
  height=fit,
  footer=0in
]
%\showlayout
%\showframe

% Setup micro-typesetting/character protrusion
% ConTeXt preloads Latin-Modern, this needs to be taken care of here and 
followed by the 'reset' below
\usetypescript[serif,sans,mono][hanging][normal]
\setupalign[hanging]

% Setup font usage: modern-base/textansi enables things like non-cursive 'mu'
\usetypescript[modern-base][texnansi]
\setupbodyfont[reset]
\setupbodyfont[12pt,modern]

% CIT thesis regulations: double spacing required! (BR!))
\setupinterlinespace[line=2\bodyfontsize]

% CIT thesis regulations: All pages except the title page to be numbered at 
least 3/4 from the top of the page - so globally I fix this to 'no' and 
revisit it in 'frontmatter', 'bodymatter', ...
\setuppagenumbering[location=]

% Setup paragraph indentation according to CIT proofreader's recommendation
\setupindenting[next,medium,yes]

% Setup footnotes to reset the counter by chapter according to CIT 
proofreader's recommendation:
\setupfootnotes[way=bychapter]

% URLs are supposed to be typeset in typewriter type fonts but sadly this does 
not work ... 
\setupurl[style=tt]

% Take care of title formating:
% a) title numbers are to be typeset in the margin
\setupheads[alternative=inmargin]
% b) all titles are to be typeset sans serifs and with decending font size
\setuphead[chapter][style=ssd]
\setuphead[section][style=ssb]
\setuphead[subsection][style=ssa]

% Formatting captions
% All captions: font smaller than body text, standard line spacing, as wide as 
the body
\setupcaptions[style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]},width=\textwidth]
% Table captions only: caption precedes the table
\setupcaption[table][location=top]

% Extra hyphenation  patterns:
\hyphenation{a-ce-to-ni-trile u-bi-qui-tin gu-th-rie}



\defineselector[caption][max=2,n=2]
\start
  \setupselector[caption][n=1]
  %\completelistoftables[criterium=text]
  \writetolist[chapter]{}{Tables}{}
\stop
\starttext
  Remarkably, our comparative analysis of Gcn5p purifications yielded strong 
candidates for six new Gcn5p interactors. YCR082W, a nonessential gene product 
(Winzeler et al. 1999; Giavert et al. 2002) with unknown function, was found in 
all five Gcn5p purifications but was not recovered with any of the other baits 
that we analyzed. YCR082W exhibits a two--hybrid interaction with Ahc1p (Uetz 
et al. 2000; Ito et al. 2001), which together with Gcn5p is a member of the ADA 
histone acetyltransferase complex (Eberharter et al. 1999). Another candidate 
is Msn4p, a nonessential (Estruch et al. 1993; Winzeler et al. 1999) major 
transcriptional regulator of stress responses (Treger et al. 1998). Msn4p was 
recovered in four of the five Gcn5p pull down experiments but was not recovered 
with any of the other baits. This finding is interesting in the light of 
evidence that promoters activated by Msn4p and its partner Msn2p show increased 
histone H4 acetylation (Deckert et al. 2001). Other p
 otential interaction partners include YPL047W (present in two of the HPM 
purifications and the TAP purification), histones Hta1p/Hta2p and Imd4p (in 
TAP, modified TAP and one HPM pulldown). Other gene products recovered in more 
than two of the experiments are mostly ribosomal proteins that are likely 
contaminants. Finally, the interaction observed between Gcn5p and Swi1p in the 
TAP tag experiment was previously proposed only on the basis of their 
synthetically lethal genetic interaction (Pollard et al 1997).\par
  \subsection{Screening for Interactions}
Having established the relative reproducibility of TAP--MudPIT and the 
comparability of the HPM tag to other available bipartite affinity tags, we set 
out to address three issues. First, we wished to determine what fraction of 
TAP--MudPIT experiments yield usable results. Second, we hoped to determine 
whether the parallel application of MudPIT

Re: [NTG-context] Learning

2006-05-30 Thread Willi Egger
Hi Johan,

Johan Blixt-Dackhammar wrote:
 Hi,

 I'm trying to learn ConTeXt and has so far read parts of the manuals
 available on the website (http://www.pragma-ade.com). However, I feel
 that these manuals only give me a quite limited knowledge.

 Therefore I wonder if there are any chance that the source code for
 some advanced documents are available on the internet. Some of the
 really well designed manuals (eg. XML in ConTeXt, Charts in
 ConTeXt and ConTeXt - an excursion) or other documents with a high
 level of design.

   
As Mojca mentioned ...
 On to another subject, I'm having trouble using the chart module. I
 get no errors while typesetting, but the flowcharts doesn't show up.
 The only command that showed anything among the ones I tried was
 \FLOWchart[grid]. Has the commands changed since the chart
 manual(Charts uncovered) was written?

   
In order to get the grid, you need to set the option test and tell how 
the grid should look like:

\usemodule[chart]


\starttext
\setupFLOWcharts
[option=test,
nx=4,
ny=4,
dx=2\bodyfontsize,
dy=2\bodyfontsize,
width=12\bodyfontsize,
height=7\bodyfontsize,
maxwidth=\textwidth]

\startFLOWchart[grid]
\startFLOWcell
\name{1}
\location{1,1}
\shape{product}
\text{NONE}
\stopFLOWcell
\stopFLOWchart
\FLOWchart[grid]
\stoptext

Kindr regards

Willi

 -Johan
 ___
 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] [OT] Is Indesign CS 2 better than ConTeXt ?

2006-05-26 Thread Hans Hagen
Henning Hraban Ramm wrote:
 Am 2006-05-25 um 13:52 schrieb luigi scarso:

   
 OK, it is a big OFF TOPIC.
 Some notes
 * the Elements of Typographic Style was made with Indesign (true or
 false?) and the only
 words about TeX is an url (true or false ?)
 * indesign eat xml
 * there is an indesign server; maybe actually too much complex, but in
 the future?
 * I don't know if IDCS2 has some programming capabilities like ConTeXt
 Ofcourse :
 *IDCS2 come from Adobe, so it has the feature of latest pdf spec.;
 *IDCS2 is WYSIWYG
 * (...possibly many others...)

 But there is one important point:
 Can IDCS2 be view as candidate for automatic typesetting (xml- 
 
 IDCS2-pdf)  ?
   

 At my former employer, a regional daily newspaper, we used IDCS2 in  
 an automated workflow for simple ads, not even via XML, but  
 controlling ID on a WinXP machine via VB/COM, because we needed a  
 *completely* automated solution.
 I can't tell you much about our application, because my colleague did  
 most of that job (I only delivered the data from another process).

 At my actual employer I use ID's XML cpabilities to typeset an event  
 calendar in a city magazine from a database. With a set of well  
 designed style templates the whole thing needs nearly no manual  
 tweaking (only with some ID bugs).

 But at the moment I'm planning a simple automated CD cover maker for  
 our backup CDs - using ConTeXt behind a Python GUI...
   
i always tend to say ... the problem does not change, so, if figuring out 
some clever tricks to get something done, then using id or tex makes no 
difference: one has to figure out the best way

what you use depends on taste; we've had (potential) customers who prefered 3b2 
(argument: there's a big company behind it, but in the meantime they were sole 
twice, and the number of people who can program in (i think their special kind 
of javascript) interface is also limited; apart from pricing ... 

concerning id ... it's non free, never sure what happens in ten years (adobe 
dropped pagemaker, (i'm told) messed up frame, so ...) and in order to process 
older docs will run into compatibility problems some day; supporting pdf 
trickery is not a real argument, since my experience is that tex is always 
first in supporting new features; however, adobe is the typesetter company 
favorite, if only because they use more adobe things (and also because they can 
keep changing per page which is more proffitable than change for a simple 
stylesheet once); and ... publishers don't really care about costs anyway so 
...) 

(occassionally we hear stories of failed tryout with 3b2, id, quark, etc while 
tex base solutions did the job (end kept doing it) for years already; i think 
that one has to decide for each situation anew) 

tex will always be a niche product 

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] [OT] Is Indesign CS 2 better than ConTeXt ?

2006-05-26 Thread luigi scarso
 i always tend to say ... the problem does not change, so, if figuring out 
 some clever tricks to get something done, then using id or tex makes no 
 difference: one has to figure out the best way
There are a (big) difference: a (my) solution in context costs 100€, a
solutions with IDCS2 cost 10€ , because there are more IDCS2
programmers than TeX programmers.

 concerning id ...
Does IDCS2 offers a better ways to break a paragraph into lines ?
pdfetex has space between words, and hz; it does not consider space
between letters of a word
IDCS2 has 'buttons' (my employer ask me yesterday 'Can you put buttons
on context?''
maybe exa is a way to 'put buttons' on context)

 (occassionally we hear stories of failed tryout with 3b2, id, quark, etc 
 while tex base solutions did the job (end kept doing it) for years already; i 
 think that one has to decide for each situation anew)
Another story: I'm using context from 2002 in a production env. for
automatic pricelist and labels. Every job with 'from XML/TXT to PDF'
that I have uses context.
(also: dreams come true)
Why ? Because it's a quick way for us to make a pdf from xml/txt
ready for digital printing.


 tex will always be a niche product
Why ?

But none say a word about Elements of Typographic Style
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] project files searched for using TEXINPUTS

2006-05-15 Thread Hans Hagen
Sanjoy Mahajan wrote:
 In experimenting with projects, products, and components, I was tracing
 file searches (using Linux, teTeX 3.0 and kpathsea).

 From the cont-eni.pdf manual (p. 26 of the PDF file), explaining more
 about components and project structure:

   
 Many TEX implementations look for a file in all directories and
 subdirectories when a requested file is not in the current
 directory. This is not only time--consuming but may lead to errors when
 the wrong file (a file with the same name) is loaded.
 

   
 For this reason ConTEXt works somewhat differently. A file that is not
 available on the working directory is searched for on the parent
 directories.
 

 I agree with this reasoning.  But as implemented, if the current and
 parent directories fail, ConTeXT will look in the TEXINPUTS search path.
 Is that the intended behavior when looking for project files?  Probably
 not ideal for the project file, though maybe it is useful for the
 resulting environment file?

 For finding figures, the behavior is clear: look in the local (.) and
 then the global directories, and that's it.

 For finding files specified by \input, the behavior is also clear (use
 TEXINPUTS).

 So I wondered whether the intention for finding project files was also
 equally clear: look in . and in (grand)parent directories (I've
 increased the number of levels to three).

 Here's the test.tex file I used:

 \startcomponent blah
 \product null
 \project abcd
 \stopcomponent

 $ texexec -passon=-kpathsea-debug 32 --once test  log
 $ grep abcd log | grep kpse_find
 kdebug:kpse_find_file: searching for ./abcd of type tex (from TEXINPUTS 
 environment variable)
 kdebug:kpse_find_file: searching for ../abcd of type tex (from TEXINPUTS 
 environment variable)
 kdebug:kpse_find_file: searching for ../../abcd of type tex (from TEXINPUTS 
 environment variable)
 kdebug:kpse_find_file: searching for ../../../abcd of type tex (from 
 TEXINPUTS environment variable)
 kdebug:kpse_find_file: searching for ./abcd of type tex (from TEXINPUTS 
 environment variable)
 kdebug:kpse_find_file: searching for ../abcd of type tex (from TEXINPUTS 
 environment variable)
 kdebug:kpse_find_file: searching for ../../abcd of type tex (from TEXINPUTS 
 environment variable)
 kdebug:kpse_find_file: searching for ../../../abcd of type tex (from 
 TEXINPUTS environment variable)
 kdebug:kpse_find_file: searching for abcd of type tex (from TEXINPUTS 
 environment variable)

 The last search, for 'abcd', runs through the entire TEXINPUTS path.
 The other searches have directories specified, so they will look only in
 those directories.
   
the reason for the global search is that environments can be in your local tree 
(tex/context/user) 

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-context] project files searched for using TEXINPUTS

2006-05-14 Thread Sanjoy Mahajan
In experimenting with projects, products, and components, I was tracing
file searches (using Linux, teTeX 3.0 and kpathsea).

From the cont-eni.pdf manual (p. 26 of the PDF file), explaining more
about components and project structure:

 Many TEX implementations look for a file in all directories and
 subdirectories when a requested file is not in the current
 directory. This is not only time--consuming but may lead to errors when
 the wrong file (a file with the same name) is loaded.

 For this reason ConTEXt works somewhat differently. A file that is not
 available on the working directory is searched for on the parent
 directories.

I agree with this reasoning.  But as implemented, if the current and
parent directories fail, ConTeXT will look in the TEXINPUTS search path.
Is that the intended behavior when looking for project files?  Probably
not ideal for the project file, though maybe it is useful for the
resulting environment file?

For finding figures, the behavior is clear: look in the local (.) and
then the global directories, and that's it.

For finding files specified by \input, the behavior is also clear (use
TEXINPUTS).

So I wondered whether the intention for finding project files was also
equally clear: look in . and in (grand)parent directories (I've
increased the number of levels to three).

Here's the test.tex file I used:

\startcomponent blah
\product null
\project abcd
\stopcomponent

$ texexec -passon=-kpathsea-debug 32 --once test  log
$ grep abcd log | grep kpse_find
kdebug:kpse_find_file: searching for ./abcd of type tex (from TEXINPUTS 
environment variable)
kdebug:kpse_find_file: searching for ../abcd of type tex (from TEXINPUTS 
environment variable)
kdebug:kpse_find_file: searching for ../../abcd of type tex (from TEXINPUTS 
environment variable)
kdebug:kpse_find_file: searching for ../../../abcd of type tex (from TEXINPUTS 
environment variable)
kdebug:kpse_find_file: searching for ./abcd of type tex (from TEXINPUTS 
environment variable)
kdebug:kpse_find_file: searching for ../abcd of type tex (from TEXINPUTS 
environment variable)
kdebug:kpse_find_file: searching for ../../abcd of type tex (from TEXINPUTS 
environment variable)
kdebug:kpse_find_file: searching for ../../../abcd of type tex (from TEXINPUTS 
environment variable)
kdebug:kpse_find_file: searching for abcd of type tex (from TEXINPUTS 
environment variable)

The last search, for 'abcd', runs through the entire TEXINPUTS path.
The other searches have directories specified, so they will look only in
those directories.

-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   - Bertrand de Jouvenal
___
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 Hans Hagen
Sanjoy Mahajan wrote:
 Using components (e.g. book chapters), with each component in its own
 directory, say I have

 \startproduct onebook
 \project manybooks
 \component 1/chap
 \component 2/chap
 \stopproduct

 with this 1/chap.tex:

 \startcomponent 1/chap
 \product onebook
 \project manybooks
 \title{One}
 An essential chapter.
 \useexternalfigure[ff][abc.1]
 \placefigure[here][ff]{Some caption}{\externalfigure[ff]}
 \stopcomponent

 I'd like to keep the figures and source for a chapter together,
 e.g. abc.mp and abc.1 in 1/chap/ since each chapter has many figures,
 and I edit and test one chapter at a time.
   
untested extension: \currentcomponentpath

\def\currentcomponentpath{.}

\def\donextlevel#1#2#3#4#5#6#7\\%
  {\pushmacro\currentcomponent
   \pushmacro\currentcomponentpath
   \let\currentcomponent#1%
   \setsystemmode\currentcomponent
   \splitfilename{#1}%
   \ifx\splitoffpath\empty
 \def\currentcomponentpath{.}%
   \else
 \let\currentcomponentpath\splitoffpath
   \fi
   \beforesplitstring#7\at.\to#2\relax % can become path + base
   \ifcase\filelevel\relax
 \starttext
 \def\project ##1 {#3{##1}}%
 \def\environment ##1 {#4{##1}}%
 \def\product ##1 {#5{##1}}%
 \def\component   ##1 {#6{##1}}%
   \fi
   \increment\filelevel\relax
   \fullexpandoneargafter\addtocommalist{#1}\loadedfiles}

\def\doprevlevel
  {\popmacro\currentcomponentpath
   \popmacro\currentcomponent
   \setsystemmode\currentcomponent
   \ifnum\filelevel=\plusone
 \expandafter\stoptext
   \else
 \decrement\filelevel\relax
 \expandafter\endinput
   \fi}


-
  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] components and figure search paths

2006-05-10 Thread Sanjoy Mahajan
  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
___
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 Hans Hagen
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


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

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

2006-05-10 Thread Sanjoy Mahajan
 And the beginning lines in section1.tex look like this:

 \startcomponent section1
 \project book
 \product chapter0/chapter0

Does it matter what you put after the \startcomponent?  I'm always
trying to figure out whether to use the full relative path or just the
last piece of it.

Would 
  \product chapter0
also work?  I'm pretty sure it would: I think the \product line is
ignored and only the \project file is read.  When I compile a
component that begins with

  \startcomponent c_ch1
  \product onebook
  \project project_books

I get:

  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

 \usefigurebase[figures/figlibSection1]

Ah, that must be the equivalent of
\setupexternalfigures{directory=figures/figlibSection1}

 I haven't tried to compile book.tex (too big), so I don't know if
 that works.

It might work, though I remember reading on the list sometime that one
isn't supposed to compile the project file -- only the components or
the products.  Which brings me back to what I don't understand about
the project structuring (the purpose of the \product command).

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
 --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
___
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 Aditya Mahajan
On Thu, 11 May 2006, Sanjoy Mahajan wrote:

 I haven't tried to compile book.tex (too big), so I don't know if
 that works.

 It might work, though I remember reading on the list sometime that one
 isn't supposed to compile the project file -- only the components or
 the products.

I had experienced that problem. If you compile a project, it compiles, 
but there are difference in page breaks for project and product. The 
product and component have the same page break. Hans had asked for an 
example to show the problem, and I could not get time to produce the 
problem in a small example. My example where the problem occurs was 
big. I will try again to come up with a minimal example.

 Which brings me back to what I don't understand about
 the project structuring (the purpose of the \product command).

Is there any functionality of \project that is not covered in 
\product?

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


[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] Problem with a french document

2006-05-09 Thread Renaud AUBIN




Hi all,

I use a "complex" structure for my document (project, product,
environment and components).

The project is allmost empty except for the environment and the product
declarations.
The environment contains all my \usemodule, \setupstuff and fonts
settings (I use texnansi because I can't have correct horizontal spaces
in MetaUML with the EC encoding... and don't want bitmap fonts :) ).
The product obviously contains the project declaration, the
\start-\stoptext and my components.

My question is: What's the best place to put french settings ?
For the moment, I have:

 \useregime[il9]
 \enableencoding[ffr]
 \mainlanguage[fr]

in my product but I have some VERY STRANGE problems with accentuated
characters (I have tried before and after \startproduct...):

1.I have a custom title page defined in a t-title.tex module - a 
results in ' while  and  are right (maybe a problem with texnansi
but I don't think so)

2.
\setupheadertexts[][{\sl \getmarking[chapter]}]
 
 \startfrontmatter
 \setuppagenumbering[conversion=romannumerals]
 \setuppagenumber[number=1]
 \chapter{Table des matires}

\placecontent[alternative=c,criterium=all,interaction=all,partnumber=no]
\stopfrontmatter

results in: Tables des Mati'res in the header, the toc element and the
chapter title... while other toc elements is ok (with accentuated
characters)

3. same problems with \chapter within backmatter start/stop pair...


I must precise that I have the following error:
TeXUtil | fatal error in plugin processor MySynonyms (wrong argument
type nil (expected Regexp))



I'm going nuts...  :-! 

Cheers,

Renaud





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


[NTG-context] components and figure search paths

2006-05-09 Thread Sanjoy Mahajan
Using components (e.g. book chapters), with each component in its own
directory, say I have

\startproduct onebook
\project manybooks
\component 1/chap
\component 2/chap
\stopproduct

with this 1/chap.tex:

\startcomponent 1/chap
\product onebook
\project manybooks
\title{One}
An essential chapter.
\useexternalfigure[ff][abc.1]
\placefigure[here][ff]{Some caption}{\externalfigure[ff]}
\stopcomponent

I'd like to keep the figures and source for a chapter together,
e.g. abc.mp and abc.1 in 1/chap/ since each chapter has many figures,
and I edit and test one chapter at a time.

That arrangement works fine if I build the component:
  cd 1  texexec chap.tex
but not if I build the product:
  texexec book.tex
(it doesn't find abc.1 since it's not in the same dir as book.tex)

The details.pdf manual says that figures are searched for in the local
path (current directory) and the global one, with the global one set by
the directory keyword:

\setupexternalfigures[directory={c:/fig/eps,c:/fig/pdf}]

Is there a way to specify current directory relative to this
component, or a way to add that setting to the default 'local' path
(even before '.')?

I could add it manually in the preamble of the 1/chap.tex but it would
mean hardwiring the pathname into it, which seems hacky. E.g. it fails
if I export the whole source tree to /tmp/tmp.2773ab/ to test rebuilding
all the pdf's from scratch.

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


Re: [NTG-context] separating layout from content: section blocks?

2006-05-03 Thread Willi Egger
Hi Andrew,

Humble, what I do is using the project structure and load layout files 
at the moment I need the new layout-features. - Indeed I separate the 
layout, the setups from the content.
Loading such files can best be done with \environment respectivefile.

Kind regards
Willi

Andrew D. Crouse wrote:

To whom it may concern,

I have a large document with several distinct pieces.  Each piece has  
different layout requirements.  I can setup the layout before each  
piece, but I would prefer to separate the layout from content.   
Currently what is the best way to do this?

I have tried defining section blocks and then specifying the layout  
for the section blocks between \startsectionblockenvironment 
[mySectionBlock] and \stopsectionblockenvironment commands.  I have  
also tried the project, product, component, environment structure  
from the manuals.  I have not had success with either method.

I would be very interested to know the approach taken by more  
experienced users.

Thank you for your help.

Sincerely,

Andrew Crouse
___
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] separating layout from content: section blocks?

2006-05-02 Thread Andrew D. Crouse
To whom it may concern,

I have a large document with several distinct pieces.  Each piece has  
different layout requirements.  I can setup the layout before each  
piece, but I would prefer to separate the layout from content.   
Currently what is the best way to do this?

I have tried defining section blocks and then specifying the layout  
for the section blocks between \startsectionblockenvironment 
[mySectionBlock] and \stopsectionblockenvironment commands.  I have  
also tried the project, product, component, environment structure  
from the manuals.  I have not had success with either method.

I would be very interested to know the approach taken by more  
experienced users.

Thank you for your help.

Sincerely,

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


Re: [NTG-context] Conforming xml

2006-04-30 Thread Hans Hagen
David Arnold wrote:
 All, does this look right? Seems like I ought to have some closing  
 stuff, but it compiles with texexec just nicely.

 ?xml version='1.0'?

 ?context-directive job module fig-make ?

 figurelibrary language=en

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

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

 /figurelibrary
   
no closing stuff needed, texexec will wrap it into a 

\starttext 
\processXMLfilegrouped{...}
\stoptext 

fo ryou 

-
  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


<    2   3   4   5   6   7   8   9   >