[NTG-context] How to set paths for input files (again)

2003-09-16 Thread Pawel Jackowski na Onet
Hi all!

Some days ago I asked a question about setting paths to inputed files. Now I
see the question may be
missunderstood. Sorry for that. I'll try to repeat in some other way.

I need to set directories for included files. For some reason I don't want
to say

\input  ./my-dir/my-file

I'd rather setup directory ./my-dir in the begining of the project and than
make it possible to
say just

\input my-file

or

\type my-file

or even

\processXMLfile{my-file} % most important for me

There is a commmand \setupexternalfigures[directory={./my-dir}] which allow
to do that for external figures.
Is it also possible to set directory for included TeXt-files? There is also
\setupsystem command; is it a good trace (I didn't find any example of
usage)?

Give me some hints, please.


Thanks, Pawe/l


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


Re: [NTG-context] Re: height and width of a figure

2003-09-16 Thread Pawel Jackowski na Onet
Hello!


> Hi Patrick and all the others
>
> thanks for your answer. I  think I asked my question a little bit
unclearly.
> I wanted to know if i can get the width of a figure, or the overlaywidth
of
> this figure as a numeric. I want to make a frame like this:
> \framed[width=, height= \externalfigure[fig]>]{blabla}.

> I don't know if such a thing is possible, I didn't find such a thing in a
> manual.

Why dont You just put the figure into a box? You can always say:

\newdimen\W
\newdimen\H
\setbox0\hbox{\externalfigure[your_figure]}
\W=\wd0\relax
\H=\ht0
\advance\H by \dp0\relax
\the\W
\the\H
\end

Such row TeX code always work:)

Regards, Pawe/l


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


Re: [NTG-context] Re: height and width of a figure

2003-09-16 Thread Severin Obertüfer
Hi Patrick and all the others

thanks for your answer. I  think I asked my question a little bit unclearly.
I wanted to know if i can get the width of a figure, or the overlaywidth of
this figure as a numeric. I want to make a frame like this:
\framed[width=, height=]{blabla}.

I don't know if such a thing is possible, I didn't find such a thing in a
manual.

Severin
- Original Message -
From: "Patrick Gundlach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 16, 2003 3:41 PM
Subject: [NTG-context] Re: height and width of a figure


> Hello,
> >
> > i included an external figure in a document with \useexernalfigure[fig]
> > how can i get the width and the height of this picture so that i can
make a
> > frame that has exactly the same size as the externalfigure[fig].
>
> See the reference manual, especially frame=on. You can also define a
> metapost overlay and get the dimension in OverlayBox.
>
>
> \externalfigure[...][...,...=...,...]
>
>
> [...]
> [...,...=...,...]  see \useexternalfigure (1)
>
> \useexternalfigure[...][...][...,...=...,...]
>
>
> [...]
> [...]
> scale
> factormax fit broad
> wfactor max broad fit
> hfactor max broad fit
> width
> height
> frameon off
> presetyes no
> display
> previewyes no
> repeatyes no
> objectyes no
> typeeps mps pdf tif png jpg mov 
> methodeps mps pdf tif png jpg mov 
>
>
>
> Patrick
> --
> Silent is the goldfish in its bowl
> ___
> ntg-context mailing list
> [EMAIL PROTECTED]
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>


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


[NTG-context] Re: problems with embedded spaces in file paths (Win32)

2003-09-16 Thread George N. White III
On Mon, 15 Sep 2003, Fabrice Popineau wrote:

> > 1.  on Win32, kpsewhich often fails to find texexec.ini.  I created a
>
> I have applied a couple of patches to texexec and texutil. They are
> attached.

This morning, on Win98, texexec.exe reliably failed to find texexec.ini.
I see that the full path of texexec.exe is passed into the backticks:

 my $IniPath = `$own_quote$kpsewhich$own_quote --format="other text files"
-progname=context texexec.$suffix` ;

replacing "$kpsewhich" with "kpsewhich" got things working.  I wonder
if this is some Win98 command buffer length issue.  Is it necessary
to pass the full path (e.g., C:\PROGRA~1\TEXLIVE\BIN\WIN32\KPSEWHICH.EXE)?

> > 2.  ConTeXt texexec uses $ENV{"HOME"} to set a value in filename.tmp,
> > e.g., on unix:
>
> I tried your example and this is what I get :
>
> C:\tmp>cat try.tmp
> % try.top
> \unprotect
> \setupoutput[pdftex]
> \setupsystem[\c!gebied={C:/Documents and Settings/popineau/My Documents/}]
> \setupsystem[\c!n=2]
> \setupsystem[inputfile=try.tex]
> \protect
>
> Which seems correct, isn't it?

My guess is that when kpathsea is failing, you are supposed to get a
message in "$HOME/cont-err", but instead you end up with text on an
extra page, something like:

and Settings/popineau/My Documents//cont-err

which suggests the error is likely written to C:/Documents.

I didn't have a chance to test your patch today.

Currently, texexec.pl tries a brute force search if kpathsea fails to find
texexec.ini or texexec.rme. On the Win98 PC I'm using, this search takes
much longer than I'm willing to wait.  Would it be better to exit with a
suggestion that the user investigate the problem with kpathsea?

-- 
George N. White III  <[EMAIL PROTECTED]>

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


[NTG-context] Alternate/Swash Font in ConTeXt, how?

2003-09-16 Thread Steffen Wolfrum
Does any of you cracks has experience in
how to use the AGaramondAlternate Font in ConTeXt?
I have no problems with the other Expert fonts
but this one stays empty.
As I am starting with a Mac font I am not sure
which encoding to choose for generating the pfb file.
Someone already did this journey?

Steffen
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Footnotes

2003-09-16 Thread Pawel Jackowski na Onet
Hi Willi

> Thanks for your suggestions. In my case this does not seem to be the
> solution.
> I fiddled with the different options. The conclusion is, that the
footnotes
> do not readily follow the
> bodyfont settings.
> I provided Hans a test file and he will look into it.

Let me know when You solve the problem.

Regards, Pawe/l


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


Re: [NTG-context] [NTG-context]

2003-09-16 Thread ^Nitram^
Hi,

> layers, see details.pdf

Thanks, but I tried examples from there and only
\hskip\layoutcolumnoffset{2}{\red Text positioned in column 2!}
works fine...

Other examples does nothing - there is no errors on \setlayer but
I didn't see any effect - no text is visible ;(

PS. Sorry for empty subject of first post.

-- 
Best regards
Martin

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


Re: [NTG-context] newbie tabulate question

2003-09-16 Thread Hans Hagen
At 09:16 15/09/2003 +0200, you wrote:
Hans,

thanks for your reply. I works with your minimal example, but not with my 
file. When I try this

\setuptabulate[|w(.3\textwidth)|p|]
this setup command expects key/value pairs, and since the = is missing, tex 
sees a \textwidth (being a dimension register) and therefore expects some 
assignment

Hans

-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-
   information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Footnotes

2003-09-16 Thread Hans Hagen
At 20:00 15/09/2003 +0200, you wrote:
Hi Pawel

Sorry for the misspelling of your name.
Thanks, I see that my question is almost the same as yours was.
However, when I use
\setupfootnotes[bodyfont={\switchtobodyfont[8pt]},offset=-1cm]
should be

\setupfootnotes[bodyfont=8pt,offset=-1cm]
\setupbodyfont as argument to \setupbodyfont is not that good an idea -)

Hans

-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-
   information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Does Bill McClain's TOC work?

2003-09-16 Thread Bill McClain
On Tue, 16 Sep 2003 10:15:14 -0500
Bill McClain <[EMAIL PROTECTED]> wrote:

> > (the unnumbered headings *are* numbered)
> 
> You're right, there is something wrong with the example. The technique
> works properly in my original (very large) document, but not in the
> reduced file. I'll try to discover why.

Ok, I'm not sure why, but the techninque shown on my page works only
when the body of the text is surrounded by \startbodymatter ...
\stopbodymatter. The example should read:

\startbodymatter
\chapter{The Windows of Absolute Night}
...etc...
\stopbodymatter

I also use \startfrontmatter ... \stopfrontmatter to delimit the
Contents, Preface, Introduction, etc, and \startbackmatter ...
\stopbackmatter around the Index and colophon. But the behavior you
found is controlled by the example above.

I'll correct the page.

-Bill
-- 
Sattre PressCuriosities of the Sky
http://sattre-press.com/by Garrett Serviss
[EMAIL PROTECTED]http://csky.sattre-press.com/ 
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] newbie tabulate question

2003-09-16 Thread Thomas A . Schmitz
Willi,

thanks, you made me discover MAPS, which I had not known before! Seems 
to be a lot of interesting stuff in there, and thank god I was born in 
Aachen, so Dutch isn't too difficult for me... But alas, the module 
must have changed since 1999--not even the minimal examples from the 
article you mentioned work. \setuptabulate[inner={\blank[big]}] gives a 
blank line before my first row, but not between rows. Mmmh - maybe a 
bug in core-tbl.tex? Probably Hans is the only one to know...
Best

Thomas

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


Re: [NTG-context] Does Bill McClain's TOC work?

2003-09-16 Thread Bill McClain
On Tue, 16 Sep 2003 16:05:03 +0200
Steffen Wolfrum <[EMAIL PROTECTED]> wrote:

> (the unnumbered headings *are* numbered)

You're right, there is something wrong with the example. The technique
works properly in my original (very large) document, but not in the
reduced file. I'll try to discover why.

-Bill
-- 
Sattre PressCuriosities of the Sky
http://sattre-press.com/by Garrett Serviss
[EMAIL PROTECTED]http://csky.sattre-press.com/ 
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Does Bill McClain's TOC work?

2003-09-16 Thread Steffen Wolfrum
Working on my first TOC I was looking at Bill McClain's
"ConTeXt and pdfTeX Beginners Help Page", and its example on TOCs 
with different entries.

I copied and pasted his example, but what should be like this:


  Contents

 Introduction to the Annotated Edition * 5

 Preface * 12

 1 * The Windows of Absolute Night * 15


is in fact:


  Contents

 Introduction to the Annotated Edition * 5

 Preface * 12

 3 * The Windows of Absolute Night * 15 <- "3" !
(the unnumbered headings *are* numbered)



So I tried something different:

\definehead[LevelOneEmpty][chapter]
\setuphead[LevelOneEmpty][number=no]
\definehead[LevelOne[chapter]
\setuphead[LevelOne][number=yes]
\definehead[LevelTwo][section]

\definehead[LevelThree][subsection]

\starttext

\definecombinedlist
[content]
[LevelOneEmpty,LevelOne,LevelTwo, LevelThree]
\setupcombinedlist
[content][alternative=b,aligntitle=no,width=2.5em]
\completecontent[way=bytext]

\LevelOneEmpty{Introduction}
...
\LevelOne{First real Chapter}
But the result is the same:

  Contents

 Introduction...

 2 First real Chapter


A last try with the following changed:

\definehead[LevelOneEmpty][title]

was even worse: "Introduction" doesn't appear at all in the TOC.

So what is the right way?

I'd be happy for any hint.

Steffen



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


[NTG-context] Re: height and width of a figure

2003-09-16 Thread Patrick Gundlach
Hello,
>
> i included an external figure in a document with \useexernalfigure[fig]
> how can i get the width and the height of this picture so that i can make a
> frame that has exactly the same size as the externalfigure[fig].

See the reference manual, especially frame=on. You can also define a
metapost overlay and get the dimension in OverlayBox.


\externalfigure[...][...,...=...,...]


[...]  
[...,...=...,...]  see \useexternalfigure (1)

\useexternalfigure[...][...][...,...=...,...]


[...]  
[...]  
scale  
factor max fit broad
wfactor max broad fit
hfactor max broad fit
width  
height 
frame  on off
preset yes no
display
previewyes no
repeat yes no
object yes no
type   eps mps pdf tif png jpg mov 
method eps mps pdf tif png jpg mov 



Patrick
-- 
Silent is the goldfish in its bowl
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] height and width of a figure

2003-09-16 Thread Severin Obertuefer
hi all

i included an external figure in a document with \useexernalfigure[fig]
how can i get the width and the height of this picture so that i can make a
frame that has exactly the same size as the externalfigure[fig].

thanks a lot for help

greetings

severin

-- 
+++ GMX - die erste Adresse für Mail, Message, More! +++

Getestet von Stiftung Warentest: GMX FreeMail (GUT), GMX ProMail (GUT)
(Heft 9/03 - 23 e-mail-Tarife: 6 gut, 12 befriedigend, 5 ausreichend)

Jetzt selbst kostenlos testen: http://www.gmx.net

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


Re: [NTG-context] Footnotes

2003-09-16 Thread Willi Egger
Hi Pawel

Thanks for your suggestions. In my case this does not seem to be the
solution.
I fiddled with the different options. The conclusion is, that the footnotes
do not readily follow the
bodyfont settings. Still it is possible to switch from rm to ss by means of
\setupfootnotes[bodyfont={small,ss}] but the texts are typeset in CMSS
then...

I provided Hans a test file and he will look into it.

Cheers Willi

- Original Message - 
From: "Pawel Jackowski na Onet" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 16, 2003 7:55 AM
Subject: Re: [NTG-context] Footnotes


> Hi!
>
> > However, when I use
> > \setupfootnotes[bodyfont={\switchtobodyfont[8pt]},offset=-1cm]
> > I get an error.
> >[...]
> > If I am using \setupfootnotes[bodyfont=5pt,offset=-1cm] then I  get  the
> > footnote typeset in 5pt but still cmr and the error in the log-file is
> still
>
> Try
>
> \definefontsynonym[myFont][your_font]
> \definebodyfont[10pt,9pt,8pt,7pt][ss]
>  [tf=myFont sa 1]
>
> \setupbodyfontenvironment
>  [10pt]
>  [xx=9pt] % footnote reference number
>
> \setupbodyfontenvironment
>  [8pt]
>  [x=7pt] % footnote number
>
> % ALL 10, 9, 8, 7pt fonts MUST be defined in \definebodyfont
>
> \setupbodyfont[10pt,ss]
> \setupfootnotes[bodyfont=8pt]
>
> There is somt text\footnote{and there is a footnote}
> \end
>
> Doesn't it work?
>
>
>
> ___
> ntg-context mailing list
> [EMAIL PROTECTED]
> http://www.ntg.nl/mailman/listinfo/ntg-context
>

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


[NTG-context] parsetrees

2003-09-16 Thread Matthew Huggett
//Ed Cashin wrote:

I'm making some notes on English grammar for some students and I want
to analyze a few sentences using parse trees.  Is there a way to do
trees in ConTeXt?  I guess I'd need to use Metapost.  Any pointers
would be appreciated.

Please let us know if you find anything.  I was in a linguistics class
and would have tackled this myself if there had been more time.

I don't think it would be too bad in MetaPost.  I haven't quite gotten
the hang of ConTeXt's MetaPost integration to the degree where I'd
know how to make use of both their features in a practical way.
I found the following manual but haven't had a chance to try anything out.

	www.cis.upenn.edu/~dchiang/software/trees-manual.pdf

Matt





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


[NTG-context] tables within tabulate environment

2003-09-16 Thread Frank
Hi,

I am working on some documents which are based on a table which is part 
of the text flow and may break between pages. So I use the tabulate 
environment. However now I need to include a table inside a tabulate 
cell, but this does not seem to work.

How can I get around this?

Best regards

Frank

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