Re: [NTG-context] --silent switch seems not to work.

2006-08-14 Thread John R. Culleton
On Saturday 12 August 2006 13:52, Taco Hoekwater wrote:
  I am using texexec 5.4.3. I get warning messages telling me to
  use texmfstart instead but since that script is not functional on my

 What do you mean with 'not functional'? No ruby installed?

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

It simply does nothing. If ruby were not installed I would get
an error message of some sort. It just exits immediately 

In fact 
ruby --help gives me instructions for using ruby so it is
installed. 

BTW The trick you gave me with cont-sys.tex eliminates the font
messages after the first pass. Thanks!
-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com


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


[NTG-context] \mathematics

2006-08-14 Thread Boris Tschirschwitz
Hi.When writing math I like avoiding $ whenever possible by defining my math operators with \mathematics, e.g.\def\grp{\mathematics{G}}.So far I was using this like I use \EnsureMath in LaTeX, but now I'm running into problems in MPgraphics:
Texexec compiles the following file fine until I add the paragraph called Math in Math in MP. There it seems to somehowchoke on too many $ and \relax.Is there a better way to do such definitions?
Thanks,Boris.PS: There's already a problem in the second to last paragraph where the G is not set in math mode any more.The example file:\def\grp{\mathematics{G}}\starttextTest.
Running text:A group \grpMath:$\grp$$\grp_{\grp}$Text in MP:\startusableMPgraphic{groupone}label(textext(\grp),origin) ;\stopusableMPgraphic
\useMPgraphic{groupone}Math in MP:\startusableMPgraphic{grouptwo}label(textext(\mathematics{\grp}),origin) ;\stopusableMPgraphic\useMPgraphic{grouptwo}Math in Math in MP:
\startusableMPgraphic{groupthree}label(textext(\mathematics{\grp_{\grp}}),origin) ;\stopusableMPgraphic\useMPgraphic{groupthree}\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Snapping sectionhead

2006-08-14 Thread wwl
 Date: Sun, 13 Aug 2006 23:33:38 +0200
 From: Taco Hoekwater [EMAIL PROTECTED]
 Subject: Re: [NTG-context] Snapping sectionhead

  While I was reading 'In the Details' to learn more about grid-
  typesetting, I could not comprehend the examples with 
  grid={broad,...}. 
 
  Then in section 1.8 I read that grid=line should be a shortcut
 for
  grid={broad,high,depth}.
  Section 1.8 deals \exclusively with \externalfigure. Apparently
  the grid option for sectioning commands is handled differently.
  
  In my version of 'In the Details', dated 2002 chapter 1 deals with
  'Snapping section heads' and section 1.8 is titled 'Snapping
 around 
  (broad,high,depth).' 
  Is there a newer variant of that manual?
 
 Must be, I read mine online from
 
http://www.pragma-ade.com/general/manuals/details.pdf
 
 while I was keying in this answer.
 
 Greetings,
 Taco

I checked this.

But it is the same document!

Section 1.8 deals there with 'Snapping section heads' too.

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


Re: [NTG-context] Snapping sectionhead

2006-08-14 Thread taco hoekwater
[EMAIL PROTECTED] wrote:
 Must be, I read mine online from

http://www.pragma-ade.com/general/manuals/details.pdf

 while I was keying in this answer.

 Greetings,
 Taco
 
 I checked this.
 
 But it is the same document!
 
 Section 1.8 deals there with 'Snapping section heads' too.


Oops excuse me. I was reading _chapter 8_ . I'll try to
find the difference

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


Re: [NTG-context] \mathematics

2006-08-14 Thread taco hoekwater
Boris Tschirschwitz wrote:
 Hi.
 
 When writing math I like avoiding $ whenever possible by defining my 
 math operators with \mathematics, e.g.
 \def\grp{\mathematics{G}}.
 So far I was using this like I use \EnsureMath in LaTeX, but now I'm 
 running into problems in MPgraphics:
 Texexec compiles the following file fine until I add the paragraph 
 called Math in Math in MP. There it seems to somehow
 choke on too many $ and \relax.
 
 Is there a better way to do such definitions?

I've changed my local definition of \mathematics to:

   \unexpanded\long\def\mathematics#1%
 {\relax\ifmmode#1\else $#1$\fi}

And that works nicely.

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


Re: [NTG-context] \mathematics

2006-08-14 Thread Boris Tschirschwitz
Cool, it works nicely here, too.Thanks,Boris.On 8/14/06, taco hoekwater [EMAIL PROTECTED] wrote:
Boris Tschirschwitz wrote: Hi. When writing math I like avoiding $ whenever possible by defining my
 math operators with \mathematics, e.g. \def\grp{\mathematics{G}}. So far I was using this like I use \EnsureMath in LaTeX, but now I'm running into problems in MPgraphics: Texexec compiles the following file fine until I add the paragraph
 called Math in Math in MP. There it seems to somehow choke on too many $ and \relax. Is there a better way to do such definitions?I've changed my local definition of \mathematics to:
 \unexpanded\long\def\mathematics#1% {\relax\ifmmode#1\else $#1$\fi}And that works nicely.Cheers, Taco___ntg-context mailing list
ntg-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] Snapping sectionhead

2006-08-14 Thread taco hoekwater
taco hoekwater wrote:
 [EMAIL PROTECTED] wrote:
 Must be, I read mine online from

http://www.pragma-ade.com/general/manuals/details.pdf

 while I was keying in this answer.

 Greetings,
 Taco
 I checked this.

 But it is the same document!

 Section 1.8 deals there with 'Snapping section heads' too.
 
 Oops excuse me. I was reading _chapter 8_ . I'll try to
 find the difference

Ok: yes they are definately different, but at the moment I don't
know why. I predict that it is the manual that needs fixing,
though.

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


Re: [NTG-context] Floats Method

2006-08-14 Thread Hans Hagen
Taco Hoekwater wrote:
 [EMAIL PROTECTED] wrote:
   
 Hallo!

 In \setupfloats[] what exactly is the difference between textmethod 
 and sidemethod?
 

 textmethod is used for floats inside the text flow, sidemethod for
 sidefloats.

   
 Compared with the gridsize, why does a 1 point window (method=2) help 
 when typesetting on grids?
 

 I assume it corrects for the \lineskip glue.

   
 Isn't 1% (method=1) much more in the most cases than 1 point?
 

 Yes it would be. Perhaps that one is because of \maxdepth,
 but I am only guessing. The fact that there are two methods
 could be simply a trial-and-error left over.
   
kind of; depending on the way a document is set up, rounding errors play a 
role, so the 1pt is taking care if that, while the .99 is th eold method; 
tricky stuff anyway 

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] 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] where is this wikified stuff?

2006-08-14 Thread Aditya Mahajan
On Sun, 13 Aug 2006, [EMAIL PROTECTED] wrote:

 Date: Tue, 1 Aug 2006 09:12:34 -0700
 From: David Arnold [EMAIL PROTECTED]
 Subject: Re: [NTG-context] Figure number off one time
 ...
 it's david's turn to wikify this

 Hallo!

 I can not find the place where this and other solutions are saved.
 I searched in contextgarden, but with no success.

I added a summary of this thread at 
http://wiki.contextgarden.net/Floating_Objects

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


Re: [NTG-context] the closing bracket (structuring syntax)

2006-08-14 Thread Aditya Mahajan
 And what would be the opposite?

 For example \startquote ... \stopquote
 to something like {\MyQuote ... }

AFAIK, there is no easy way to do this.

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


[NTG-context] figure directory is sort of searched

2006-08-14 Thread Sanjoy Mahajan
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:

\starttext
\setupexternalfigures[directory={1}]
\placefigure[here][ch1fig]{should be 1/fig-1.pdf}{\externalfigure[fig-1.pdf]}
\setupexternalfigures[directory={2}]
\placefigure[here][ch2fig1]{should be 2/fig-1.pdf}{\externalfigure[fig-1.pdf]}
\placefigure[here][ch2fig2]{should be 2/fig-2.pdf}{\externalfigure[fig-2.pdf]}
\stoptext

Probably it's a silly idea to use \setupexternalfigures within the body,
but the same problem happens when using components (where each
component's preamble has a similar line), where it makes more sense.

Here is the directory structure, and all the files are attached as a
small (15KB) .tgz:

min.tex
1/fig-1.pdf
2/fig-1.pdf
2/fig-2.pdf

The final (third) figure is correctly found as 2/fig-2.pdf.  But the
second figure is reused from 1/fig-1.pdf because another fig-1.pdf has
already been found: as 1/fig-1.pdf.  Here is the relevant bit from the
texexec output:

   ./1/fig-1.pdf
  figures : dimensions of 1/fig-1.pdf loaded from figurefile itself
  (./min.tuo) (/home/sanjoy/texmf/tex/context/base/pdfr-ec.tex)
  floatblocks : 1 placed
  figures : figureobject fig-1.pdf is reused
  floatblocks : 2 placed
   ./2/fig-2.pdf
  figures : dimensions of 2/fig-2.pdf loaded from figurefile itself
  floatblocks : 3 placed

One part of ConTeXt does know the right figure path.  A
\getfiguredimensions[fig-1.pdf] after the second \placefigure will
trigger a kpathsea search for 2/fig-1.pdf, which it finds.  But it still
loads 1/fig-1.pdf, which is why I've said 'sort of searched' in the
subject line.

It seems that the decision about whether a figure is already loaded is
made in core-fig.tex, in

\def\calculateexternalfigure[#1][#2][#3][#4][#5][#6]%
...
   \ifcase\figurestatus
 \let\@@efframe\v!on
 \let\@@efobject\v!no
 \showmessage\m!figures1\@@effilename
   \or
 \showmessage\m!figures2\@@effullname
   \or
 \showmessage\m!figures3{\@@effullname,\@@eflenttype}%
   \or
 \showmessage\m!figures4\@@effullname
   \or
 \showmessage\m!figures5{\@@effullname,\@@efloadname}%
   \or % no message
 \doifnot\@@efsymbol\v!yes{\showmessage\m!figures8\@@effullname}%
   \fi
...

The no message comment suggests that when \figurestatus isn't set,
the message shown is figures8, which is

 8: figureobject -- is reused

But I couldn't figure out who sets \figurestatus and where the judgement
of 'already loaded' is made.  The comment at the beginning of the above
\def (this whole mess needs a clean up anyway) scared me off :-)

-Sanjoy

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



searching.tgz
Description: example files
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context