Re: [NTG-context] strange (?) exporting from pdf

2005-11-03 Thread Christopher Creutzig
andrea valle wrote:

 3.2 translate in ConTeXt via a regular expression based python script

 I've been there and done that and I won't do it again.  Use a real xml
parser; regular expression engines are a wonderful thing, but not really
usable for parsing nested structures.  I'm sure there are many, many xml
parsers for python to choose from.


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


Re: [NTG-context] (Re)installing mswintex

2005-11-03 Thread Sytse Knypstra

Dear Context users,

Willi, thank you for your reaction. I redid the whole process in which I 
inserted your instructions. In detail:


1. Rename the old directory C:\tex into C:\old_tex
2. Download mswintex.zip from Pragma
3. Unzip into C:\  (all files and directories are now under C:\tex)
4. Download cont-lmt.zip from Pragma
5. Unzip into C:\
6. Start a CMD shell and run the commands:
cd c:\tex
setuptex.bat
mktexlsr
texexec --make --alone nl en metafun

Then I tried a minimal example (\starttekst  Test \stoptekst)

and again this gave the following output:
...
systems : begin file test at line 1
(c:\tex\texmf-local/tex/context/base/pdfr-ec.tex)
fonts   : needs map file: original-base
fonts   : needs map file: ec-public-lm
fonts   : needs map file: ec-base
[1.1
Warning: pdfetex.exe (file pdftex.map): cannot open font map file
]
systems : end file test at line 5
 )
...
Warning: pdfetex.exe (file ec-lmr12): Font ec-lmr12 at 72 not found
Output written on test.pdf (1 page, 2019 bytes).

Still puzzled.

Sytse Knypstra


Willi Egger wrote:

Hi Sytse,

You made a complete new installation of  the minimal ConTexT. - What you 
also should do is update the lm-fonts with the zip you can find at the 
Pragma-site.
I believe that this can solve your problem. At least in my case I 
updated the cont-tmf.zip and cont-lmt.zip into an existing minimal 
ConTeXt (an instllation which is about 2 months old) and it worked out 
of the box.


Kind regards

Willi

Sytse Knypstra wrote:


Dear ConTeXt users,

Yesterday I reinstalled the minimal ConTeXt under Windows XP.
I carried out the following steps:

1. Rename the old directory C:\tex into C:\old_tex
2. Download mswintex.zip from Pragma
3. Unzip into C:\  (all files and directories are now under C:\tex)
4. Start a CMD shell and run the commands:
cd c:\tex
setuptex.bat
mktexlsr
texexec --make --alone nl en metafun

Then I tried a minimal example and it gave me the following warnings:

[1.1
Warning: pdfetex.exe (file pdftex.map): cannot open font map file
]
and, in the end:

Warning: pdfetex.exe (file ec-lmr12): Font ec-lmr12 at 72 not found

What did I do wrong?

Sytse Knypstra




___
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 mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] adding value to key

2005-11-03 Thread Taco Hoekwater


Hi Peter,

I am attaching t-valext.tex, a quicky module I wrote this morning
that allows the use of \currentvalue in (I believe) all assignments,
like so:

  \setupexternalfigures[directory={\currentvalue,another/dir}]

Run texexec --module t-valext  if you want to read the embedded
documentation.

Cheers, Taco

Peter Münster wrote:

Hello,

again a feature request: sometimes it's useful to add a value to key,
without replacing it.
Example:
\setupexternalfigures[directory={\figurepathlist,another/dir}]
- \setupexternalfigures[adddirectory=another/dir]

Or, if there is already some background (from an environment-file for
example), and you want to add another:
\setupbackgrounds[page][addbackground=Draft]

Cheers, Peter



t-valext.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] (Re)installing mswintex

2005-11-03 Thread Taco Hoekwater



Sytse Knypstra wrote:

Warning: pdfetex.exe (file ec-lmr12): Font ec-lmr12 at 72 not found
Output written on test.pdf (1 page, 2019 bytes).

Still puzzled.

Sytse Knypstra


Looks like your ConTeXt is not loading the map file pdftex needs
to find the lmr12.pfb. If I run this:

   Hello world! \bye

I get this output:

  fonts   : resetting map file list
  fonts   : using map file: original-base
  fonts   : using map file: ec-public-lm
  fonts   : using map file: ec-base
  fonts   : using map file: original-ams-base
  fonts   : using map file: original-public-lm
(./valtest.tuo)[1.1{/home/taco/texmf/fonts/map/pdftex/context/original-empty.ma
p}{/home/taco/texmf/fonts/map/pdftex/context/original-base.map}{/home/taco/tex
mf/fonts/map/pdftex/context/ec-public-lm.map}{/home/taco/texmf/fonts/map/pdftex
/context/ec-base.map}{/home/taco/texmf/fonts/map/pdftex/context/original-ams-ba
se.map}{/home/taco/texmf/fonts/map/pdftex/context/original-public-lm.map}]

And that is triggered by my cont-sys.tex, which contains:

  \autoloadmapfilestrue
  \resetmapfiles
  \loadmapfile[original-base.map]

  etc.

So perhaps you cont-sys.tex is broken or missing?

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


Re: [NTG-context] (Re)installing mswintex

2005-11-03 Thread Sytse Knypstra



Taco Hoekwater wrote:

 Looks like your ConTeXt is not loading the map file pdftex needs
 to find the lmr12.pfb. If I run this:

Hello world! \bye

 I get this output:

   fonts   : resetting map file list
   fonts   : using map file: original-base
   fonts   : using map file: ec-public-lm
   fonts   : using map file: ec-base
   fonts   : using map file: original-ams-base
   fonts   : using map file: original-public-lm
 
(./valtest.tuo)[1.1{/home/taco/texmf/fonts/map/pdftex/context/original-empty.ma 



 
p}{/home/taco/texmf/fonts/map/pdftex/context/original-base.map}{/home/taco/tex 



 
mf/fonts/map/pdftex/context/ec-public-lm.map}{/home/taco/texmf/fonts/map/pdftex 



 
/context/ec-base.map}{/home/taco/texmf/fonts/map/pdftex/context/original-ams-ba 



 
se.map}{/home/taco/texmf/fonts/map/pdftex/context/original-public-lm.map}]


 And that is triggered by my cont-sys.tex, which contains:

   \autoloadmapfilestrue
   \resetmapfiles
   \loadmapfile[original-base.map]

   etc.

 So perhaps you cont-sys.tex is broken or missing?

 Cheers,
 Taco

My cont-sys.tex is present in c:\tex\texmf-local\tex\context\user
I didn't modify it after unzipping, so the uncommented lines are:

\unprotect
\setupencoding [\s!default=texnansi]
\autoloadmapfilestrue
\resetmapfiles

\donefalse \ifx\pdftexversion\undefined \else 
\ifnum\number\pdftexversion119

  \donetrue
\fi \fi \ifdone

  \loadmapfile[original-base.map]
  \loadmapfile[original-ams-base.map]
  \loadmapfile[original-public-lm.map]

\else

  \loadmapfile[original-base.map]
  \loadmapfile[texnansi-base.map]
  \loadmapfile[ec-base.map]
  \loadmapfile[qx-base.map]
  \loadmapfile[t5-base.map]
  \loadmapfile[8r-base.map]

  \loadmapfile[original-ams-base.map]
  \loadmapfile[original-ams-euler.map]

  \loadmapfile[original-public-lm.map]
  \loadmapfile[texnansi-public-lm.map]
  \loadmapfile[ec-public-lm.map]
  \loadmapfile[qx-public-lm.map]
  \loadmapfile[t5-public-lm.map]

\fi
\usetypescriptfile[type-buy]
\runMPgraphicstrue
\runMPTEXgraphicstrue
\useMETAFUNformattrue
\protectbufferstrue

\protect \endinput


Sytse Knypstra

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


Re: [NTG-context] (Re)installing mswintex

2005-11-03 Thread Taco Hoekwater



Sytse Knypstra wrote:


My cont-sys.tex is present in c:\tex\texmf-local\tex\context\user
I didn't modify it after unzipping, so the uncommented lines are:


[snip]

Yours looks precisely like mine. I'm baffled (no Windows here,
so cannot investigate further)

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


Re: [NTG-context] adding value to key

2005-11-03 Thread Hans Hagen

Taco Hoekwater wrote:



Hi Peter,

I am attaching t-valext.tex, a quicky module I wrote this morning
that allows the use of \currentvalue in (I believe) all assignments,
like so:

  \setupexternalfigures[directory={\currentvalue,another/dir}]


interesting, may make it into the kernel -)

i wonder if this is faster:


[EMAIL PROTECTED]@EA\currentvalue\csname\ifcsname\csname#2#3\endcsname#2#3\else\s!empty\fi\endcsname


(it sometimes is faster to have everything inside the \csname)

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


Re: [NTG-context] (Re)installing mswintex

2005-11-03 Thread Sytse Knypstra

Sorry for the noise.
Mswintex works if I run texexec from the command line (in the CMD shell).

It does not work (any more) if I run the following command from my 
editor TeXnicCenter:

c:\tex\setuptex.bat  texexec.exe
with the arguments:
--bat --nonstop --pdf  %bm

That's still puzzling me, but I don't want to bother you with that problem.

Thank you for your help,

Sytse Knypstra

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


Re: [NTG-context] TeX chemistry (was: alignment of figures)

2005-11-03 Thread Mojca Miklavec
 I'm playing a bit with drawing formulas in metafun, but my question
 is: are there any guidelines about how a nice formula should look like?
 (Yes, I have problems to decide how thick the lines have to be, how to draw
 a triple or a steric bond properly, which size of letters to use). Knuth did
 a marvellous job with drawing math formulae in TeX, there are many books
 about typography, but I've never seen anything about chemistry and I haven't
 found anyone who could answer me this question.

Keith McKay wrote:

 A quick search on Google found this.
 Keith

 http://www.rsc.org/Publishing/ReSourCe/AuthorGuidelines/Illustrations/sect1.
 asp
 http://pubs.acs.org/books/artwork.shtml

(Although a bit late:) thank you very much for the two links above.
The rules don't cover everything, but they represent an important
part. (I didn't have any such list before and data like space between
bonds has to be 18% of bond length are pretty useful and exactly part
of those rules that I was looking for.)

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


Re: [NTG-context] (Re)installing mswintex

2005-11-03 Thread Jilani Khaldi

Sytse Knypstra wrote:


Sorry for the noise.
Mswintex works if I run texexec from the command line (in the CMD shell).

It does not work (any more) if I run the following command from my 
editor TeXnicCenter:

c:\tex\setuptex.bat  texexec.exe
with the arguments:
--bat --nonstop --pdf  %bm

That's still puzzling me, but I don't want to bother you with that 
problem.


I don't use TeXnicCenter editor, but Context editor (don't confuse it 
with ConTeXt system)  and I use

C:\tex\texmf-mswin\bin\texmfstart.exe // for the executable
and
texexec.pl --pdf %f // for the parameters

Same settings with SciTE and both works fine.

jk

--
// Jilani KHALDI
http://jkhaldi.oltrelinux.com



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


Re: [NTG-context] (Re)installing mswintex

2005-11-03 Thread Sytse Knypstra

Thanks to all of you who gave attention to my problem.

It was caused by something very stupid: a copy of some cont-sys.tex file 
was left about in same directory as my test file. After removing it, 
everything went fine.


A suggestion for Hans:
wouldn't it be a good idea to insert the following lines into the 
readme.txt file of mswintex.zip? It informs the user that cont-lmt.zip 
should also be downloaded and unzipped into the proper subdirectory.
Or even better, can't you include the cont-lmt files into mswintex.zip 
in order to make points 3 and 4 superfluous?


Installation of the minimal ConTeXt distribution for Windows:
1. Download mswintex.zip from Pragma
2. Unzip into C:\  (all files and directories are now under C:\tex)
3. Download cont-lmt.zip from Pragma
4. Unzip into C:\tex\texmf-fonts
5. Start a CMD shell and run the commands:
cd c:\tex
setuptex.bat
mktexlsr
texexec --make --alone nl en metafun
C:\ can be replaced by any other (sub)directory name


Sytse Knypstra

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


Re: [NTG-context] (Re)installing mswintex

2005-11-03 Thread Hans Hagen

Sytse Knypstra wrote:


Thanks to all of you who gave attention to my problem.

It was caused by something very stupid: a copy of some cont-sys.tex 
file was left about in same directory as my test file. After removing 
it, everything went fine.


A suggestion for Hans:
wouldn't it be a good idea to insert the following lines into the 
readme.txt file of mswintex.zip? It informs the user that cont-lmt.zip 
should also be downloaded and unzipped into the proper subdirectory.
Or even better, can't you include the cont-lmt files into mswintex.zip 
in order to make points 3 and 4 superfluous?


dat zijn ze, echter er zijn de laatste aand wat drastische wijzigingen 
in de lm distributie geweest (lastig voor context gebruikers, omdat die 
als proefkonijn voor lm dienen)



Installation of the minimal ConTeXt distribution for Windows:
1. Download mswintex.zip from Pragma
2. Unzip into C:\  (all files and directories are now under C:\tex)
3. Download cont-lmt.zip from Pragma
4. Unzip into C:\tex\texmf-fonts
5. Start a CMD shell and run the commands:
cd c:\tex
setuptex.bat
mktexlsr
texexec --make --alone nl en metafun


texexec --make --all

is genoeg (alone is vervallen omdat ik de aanroep van fmtutil niet meer 
ondersteun, dit ivm met gebrek aan engine pad support)



C:\ can be replaced by any other (sub)directory name


overigens, de laatste texmfstart heeft de volgende feature:

texmfstart --tree=c:/tex texexec ..

maw, je kunt een tree opgeven. In die tree moet dan een bestand staan 
(setuptex.tmf) dat env vars specificeert; in principe moet dat het 
runnen van een willekeurige tree vergemakkelijken


(nog wat experimenteel; maar er zitten nog wat meer run features in de pen)

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


[NTG-context] extra page in presentation styles

2005-11-03 Thread Hans van der Meer

Context presentation style problem:

I didn't use the (green-)presentation style for quite some time.
Now I suddenly get an EXTRA PAGE before the first \TitlePage.
See below for a minimal example and the output produced.
Does somebody happen to what is wrong or where I am wrong?
By the way, the upgrade of 27-10-2005 context did not change this.

I do not include the pdf-output, because it makes this posting too  
big to post without special moderator approval.
But in my system it gives a blank first page and then the TitlePage  
as sheet numbered 2.


Thanks.


Hans van der Meer


% === %
%This example shows an extra blank page before the first real one.
\usemodule[pre-green]
% === %
\starttext
% === %
\TitlePage{\vfill\vfill\bf
Titlepage\blank
\color[red]{Is SECOND instead of\crlf FIRST page!}\blank
\tfxx\tfx
This is pdfeTeX, Version 3.141592-1.30.0-2.2 (Web2C 7.5.5)
\blank
ConTeXt  ver: 2005.08.31  fmt: 2005.10.19
\vfill\vfill\vfill\bfxx
\color[blue]{\currentdate}\hfill\null}
% === %
\Subject{First subject}
\vfill
This is the first subject page.
\vfill
% === %
\stoptext
% === %

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


Re: [NTG-context] How to use layers or other methods for precise positioning of items

2005-11-03 Thread Mojca Miklavec
Kári Hreinsson wrote:
 Hello,

 I have been trying to use ConTeXt for setting up a book with a list of
 students in my school, with pictures of them, phone numbers, emails
 and such.

 I thought I could use ConTeXt for the job since LaTeX gave me much
 trouble in trying to alter the layout and look of the page.

 I found the layer feature in ConTeXt which I found very interesting
 and thought I could use it to position items (such as text info,
 images and the layout) within these layers since they offer very
 precise positioning with a x-y grid like system.

 When I was trying to use this feature for multipage document it cut of
 all of the pages except the first.  I found out that the layers
 weren't thought to be part of the content of the file but more like a
 background and I can't figure out how to use them on many pages
 without placing something like a dot on every page.  Is there any way
 to do this?

If a dot is the source of all your problems, you can easily solve
this by placing a \strut instead of a dot at the top of the page.
(Perhaps even \null would do.) \strut is an empty box with width zero
and height of one line (generally speaking).

I was confused for a long time since there are at least five different
ways to achieve the desired results, each one with its advantages and
drawbacks, so you may have to be even more specific about the layout.

You can do the whole page with layers if you are sure that you want to
provite all the coordinates by hand. If you use an alternative way (if
you place a figure at the left or right side of text for example),
space will be reserved and text will flow around the figure. If you
place a figure in a layer, you'll have to manually adjust text
width/height/hole, so that it won't overlap with the figure.

Some alternatives to layers that come to my mind in the first moment are:
1. tables (http://wiki.contextgarden.net/Tables_Overview)
with \bTABLE ... \eTABLE you can manully specify widths and heights of
table cells and put photos in the left cell with specified width. The
rest of data can go to the remaining cells on the right with
automatically determined widths and heights.

2. grid typesetting
http://pragma-ade.nl/general/manuals/details.pdf
you can position the stuff on the grid (still precise, but in other
units than centimeters)

3. http://wiki.contextgarden.net/Chromatograms uses \startpositioning
... \stoppositioning, which is probably something similar to layers. I
never used it, but perhaps you can take a look if you find it useful.

4. many other ways for sure (depending on your needs), in worst case
even plain TeX ;)

 I discovered that the layers were inserted into the document via
 \setupbackgrounds[page] so I understand why it acts like this but I
 am asking if there is some way of getting layers working like I want?

How is that? You can place layers in other ways than on the whole page
(you can say that a layer has to be two centimeters from the bottom
and three centimeters from the left edge or that it has to be 1cm
wider than the text area of the page), you can put them in the
backgrond or on the top of text, but you can't prevent them from being
invisible to the rest of the page content (you can't place a layer and
expect a text portion to flow around that layer).

 Maybe I am going in completely wrong way?  Is there any other good way
 to do this, that is positioning items with x-y coordinates or
 something totally different that I am missing?

see above (tables, grid, ...)

 Another thing I was wondering about is how to make items like images
 bleed (that is to go over the edge of the paper, to avoid white lines
 at the margin).  Can I use negative values for positioning to achive
 that?

You have a couple of examples in the official documentation (page 32
of details.pdf for example). google.com: bleeding
site:pragma-ade.com
If you position using frames, you can use negative values, yes. (See
the example below.)

 All help is greatly appreciated since I am not understanding this and
 I haven't found much help on the internet regarding this subject
 (contextgarden had only one example page that had layers).

Patrick already mentioned the new search engine ;) through articles.
I often use google.com and layers site:contextgarden.net for
example. You can find a lot in old mailing list archives.






\setuppapersize
  [A4][A4]
\definelayer
[page]
[width=\paperwidth,
 height=\paperheight]
\setupbackgrounds
[page]
[background=page]
\setupexternalfigures
[location={local,global,default}]
\setupframed
[align=middle,
 frame=on]

\starttext
\startstandardmakeup
\setlayerframed
[page]
[voffset=1cm,
 hoffset=-2cm,
 preset=lefttop]
%[width=xxx]
{\externalfigure[cow]}
\setlayerframed
[page]
[voffset=10cm,
 preset=lefttop,

Re: [NTG-context] extra page in presentation styles

2005-11-03 Thread Otared Kavian

Hi Hans,

On my machine with
ConTeXt  ver: 2005.09.14  fmt: 2005.10.21  int: english  mes: english
everything is fine with the sample file you sent.
Probably you should update your installation of ConTeXt.

Best regards: OK

On 3 nov. 2005, at 17:36, Hans van der Meer wrote:


Context presentation style problem:

I didn't use the (green-)presentation style for quite some time.
Now I suddenly get an EXTRA PAGE before the first \TitlePage.
See below for a minimal example and the output produced.
Does somebody happen to what is wrong or where I am wrong?
By the way, the upgrade of 27-10-2005 context did not change this.

I do not include the pdf-output, because it makes this posting too  
big to post without special moderator approval.
But in my system it gives a blank first page and then the TitlePage  
as sheet numbered 2.


Thanks.


Hans van der Meer


% === %
%This example shows an extra blank page before the first real one.
\usemodule[pre-green]
% === %
\starttext
% === %
\TitlePage{\vfill\vfill\bf
Titlepage\blank
\color[red]{Is SECOND instead of\crlf FIRST page!}\blank
\tfxx\tfx
This is pdfeTeX, Version 3.141592-1.30.0-2.2 (Web2C 7.5.5)
\blank
ConTeXt  ver: 2005.08.31  fmt: 2005.10.19
\vfill\vfill\vfill\bfxx
\color[blue]{\currentdate}\hfill\null}
% === %
\Subject{First subject}
\vfill
This is the first subject page.
\vfill
% === %
\stoptext
% === %

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


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


Re: [NTG-context] adding value to key

2005-11-03 Thread Peter Münster
On Thu, 3 Nov 2005, Taco Hoekwater wrote:

 I am attaching t-valext.tex, a quicky module I wrote this morning
 that allows the use of \currentvalue in (I believe) all assignments,
 like so:
 
\setupexternalfigures[directory={\currentvalue,another/dir}]

Hello Taco,

really great!!

Thank you!
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] How to use layers or other methods for precise positioning of items

2005-11-03 Thread Kári Hreinsson
Thank you for your replies.  This reading material you pointed me to
should answer all my questions, else, I might drop a question here
again later :).

Thanks again, this was really helpful!

- Kári Hreinsson

On 11/3/05, Mojca Miklavec [EMAIL PROTECTED] wrote:
 Kári Hreinsson wrote:
  Hello,
 
  I have been trying to use ConTeXt for setting up a book with a list of
  students in my school, with pictures of them, phone numbers, emails
  and such.
 
  I thought I could use ConTeXt for the job since LaTeX gave me much
  trouble in trying to alter the layout and look of the page.
 
  I found the layer feature in ConTeXt which I found very interesting
  and thought I could use it to position items (such as text info,
  images and the layout) within these layers since they offer very
  precise positioning with a x-y grid like system.
 
  When I was trying to use this feature for multipage document it cut of
  all of the pages except the first.  I found out that the layers
  weren't thought to be part of the content of the file but more like a
  background and I can't figure out how to use them on many pages
  without placing something like a dot on every page.  Is there any way
  to do this?

 If a dot is the source of all your problems, you can easily solve
 this by placing a \strut instead of a dot at the top of the page.
 (Perhaps even \null would do.) \strut is an empty box with width zero
 and height of one line (generally speaking).

 I was confused for a long time since there are at least five different
 ways to achieve the desired results, each one with its advantages and
 drawbacks, so you may have to be even more specific about the layout.

 You can do the whole page with layers if you are sure that you want to
 provite all the coordinates by hand. If you use an alternative way (if
 you place a figure at the left or right side of text for example),
 space will be reserved and text will flow around the figure. If you
 place a figure in a layer, you'll have to manually adjust text
 width/height/hole, so that it won't overlap with the figure.

 Some alternatives to layers that come to my mind in the first moment are:
 1. tables (http://wiki.contextgarden.net/Tables_Overview)
 with \bTABLE ... \eTABLE you can manully specify widths and heights of
 table cells and put photos in the left cell with specified width. The
 rest of data can go to the remaining cells on the right with
 automatically determined widths and heights.

 2. grid typesetting
 http://pragma-ade.nl/general/manuals/details.pdf
 you can position the stuff on the grid (still precise, but in other
 units than centimeters)

 3. http://wiki.contextgarden.net/Chromatograms uses \startpositioning
 ... \stoppositioning, which is probably something similar to layers. I
 never used it, but perhaps you can take a look if you find it useful.

 4. many other ways for sure (depending on your needs), in worst case
 even plain TeX ;)

  I discovered that the layers were inserted into the document via
  \setupbackgrounds[page] so I understand why it acts like this but I
  am asking if there is some way of getting layers working like I want?

 How is that? You can place layers in other ways than on the whole page
 (you can say that a layer has to be two centimeters from the bottom
 and three centimeters from the left edge or that it has to be 1cm
 wider than the text area of the page), you can put them in the
 backgrond or on the top of text, but you can't prevent them from being
 invisible to the rest of the page content (you can't place a layer and
 expect a text portion to flow around that layer).

  Maybe I am going in completely wrong way?  Is there any other good way
  to do this, that is positioning items with x-y coordinates or
  something totally different that I am missing?

 see above (tables, grid, ...)

  Another thing I was wondering about is how to make items like images
  bleed (that is to go over the edge of the paper, to avoid white lines
  at the margin).  Can I use negative values for positioning to achive
  that?

 You have a couple of examples in the official documentation (page 32
 of details.pdf for example). google.com: bleeding
 site:pragma-ade.com
 If you position using frames, you can use negative values, yes. (See
 the example below.)

  All help is greatly appreciated since I am not understanding this and
  I haven't found much help on the internet regarding this subject
  (contextgarden had only one example page that had layers).

 Patrick already mentioned the new search engine ;) through articles.
 I often use google.com and layers site:contextgarden.net for
 example. You can find a lot in old mailing list archives.






 \setuppapersize
   [A4][A4]
 \definelayer
 [page]
 [width=\paperwidth,
  height=\paperheight]
 \setupbackgrounds
 [page]
 [background=page]
 \setupexternalfigures
 [location={local,global,default}]
 \setupframed
 [align=middle,
  frame=on]

 

Re: [NTG-context] extra page in presentation styles

2005-11-03 Thread Hans Hagen

Otared Kavian wrote:


Hi Hans,

On my machine with
ConTeXt  ver: 2005.09.14  fmt: 2005.10.21  int: english  mes: english
everything is fine with the sample file you sent.
Probably you should update your installation of ConTeXt.


no problems here either;  maybe some  spurious  character  that  has 
ended up in a file 


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