[NTG-context] Step repeat pdf in overlay

2005-04-26 Thread Randall Skelton
Hi all,

I've created a small (15x15 mm) tile image (actually a vector PDF)
that I'd like repeat on a cover page but I'm at a bit of a loss as to
how to step repeat* the image.  Here is what I have:

\useexternalfigure[cover][background]
\defineoverlay[cover][{\externalfigure[cover][repeat=yes]}]
\starttext
\setupbackgrounds[page][background=cover]
\startstandardmakeup
My title goes here
\stopstandardmakeup
\stoptext

As one might expect, I get a tiny tile in the centre of the page.  Any ideas?

Cheers,
Randall

* By 'step repeat' I mean something like:
  http://www.excourse.com/steps/
  http://www.adobe.com/education/pdf/id_tutorials/suzanne/step_and_repeat.pdf
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \inmargin, \setupindenting, and overfull boxes

2005-04-26 Thread Idris Samawi Hamid
Dear cartel,
Here is one for you-) If you uncomment the \setupindenting you will get an 
overfull hbox; a real nuisance when you have dozens of \inmargin's...

Awaiting advice:-)

Best
Idris

==
\setupoutput[pdftex]%

%\setupindenting[medium]

\starttext

\input knuth \inmargin{This is a test.}

\stoptext


log=
systems : begin file test at line 5
(c:\CONTEXT\tex\texmf-local/tex/context/sample/knuth.tex)
Overfull \hbox (17.62474pt too wide) in paragraph at lines 7--7
[][]

\hbox(10.41603+4.05064)x0.0
.\hbox(0.0+0.0)x17.62474
.\hbox(10.41603+4.05064)x0.0
..\rule(10.41603+4.05064)x0.0
..\glue 0.0 plus 1.0fil minus 1.0fil
.\penalty 1
.\glue(\parfillskip) 0.0 plus 1.0fil
.\glue(\rightskip) 0.0
===


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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


Re: [NTG-context] start*matter adding page

2005-04-26 Thread David Munger
Hi Stuart,

I use to have the same problem some time ago, and I've found the
solution on the wiki:

http://contextgarden.net/Empty_page_at_the_end

Regards,

David


Le mardi 26 avril 2005 Ã 17:01 -0600, Stuart Jansen a Ãcrit :
> When I divide my document into \startfrontmatter, \startbodymatter, etc.
> an extra page is added to the end of the pdf. Is this expected behavior?
> How can I prevent it?
> 
> \def\mypagenumber#1%
>   {\headnumber[chapter]-#1}
> \setuppagenumbering[command=\mypagenumber]
> \starttext
> \startfrontmatter
> \completecontent
> \stopfrontmatter
> \startbodymatter
> \chapter{foo} \section{bar} \section{baz}
> \chapter{qux} \section{quux} \section{corge}
> \chapter{grault} \section{garply} \section{waldo}
> \stopbodymatter
> \stoptext
> 
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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


[NTG-context] start*matter adding page

2005-04-26 Thread Stuart Jansen
When I divide my document into \startfrontmatter, \startbodymatter, etc.
an extra page is added to the end of the pdf. Is this expected behavior?
How can I prevent it?

\def\mypagenumber#1%
  {\headnumber[chapter]-#1}
\setuppagenumbering[command=\mypagenumber]
\starttext
\startfrontmatter
\completecontent
\stopfrontmatter
\startbodymatter
\chapter{foo} \section{bar} \section{baz}
\chapter{qux} \section{quux} \section{corge}
\chapter{grault} \section{garply} \section{waldo}
\stopbodymatter
\stoptext

-- 
Stuart Jansen <[EMAIL PROTECTED]>
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] hyphenation problem with apostrophe

2005-04-26 Thread Hans Hagen
Peter Münster wrote:
Hello,
there is no hyphenation with "l'éducation".
Example:
\enableregime[il1]
\usetypescript[modern][\defaultencoding]
\setupbodyfont[modern]
\mainlanguage[fr]
\starttext
\dorecurse{66}x éducation
\dorecurse{65}x l'éducation
\stoptext
ConTeXt version is 2005.01.31
Could someone help please?
The solution is:
\startlanguagespecifics[nl,cz,sk,fr]
  \lccode`\'=`\'
\stoplanguagespecifics
\mainlanguage[fr]
\starttext
\hyphenatedword{\eacute ducation}
\hyphenatedword{l'\eacute ducation}
\stoptext
however, there was a good reason for not making this a default, maybe taco 
remembers why

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] XYpic (was: dotted line for \framed ?)

2005-04-26 Thread Henning Hraban Ramm
Am 26.04.2005 um 17:35 schrieb luigi.scarso:
[OT] Can XYpic be used under Context ? I will try .
At least for  me this works:
\input xy
\xyoption{frame}
\starttext
\framed[offset=10pt]{%
\xy
(0,0) *++=\hbox{text} *\frm{--} ;
(50,0) *++=\hbox{text} *\frm{..} ;
(100,0) *++=\hbox{text} *\frm{=} ;
\endxy}
\stoptext
It can be a way to add some frame style without using metapost.
I don't know XYpic, but it looks interesting.
Would you write a wiki page about it?
Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Rif: Re: [NTG-context] dotted line for \framed ?

2005-04-26 Thread luigi.scarso
Luigi Scarso wrote:


[OT] Can XYpic be used under Context ? I will try .
 

At least for  me this works:
\input xy
\xyoption{frame}
\starttext
\framed[offset=10pt]{%
\xy
(0,0) *++=\hbox{text} *\frm{--} ;
(50,0) *++=\hbox{text} *\frm{..} ;
(100,0) *++=\hbox{text} *\frm{=} ;
\endxy}
\stoptext
It can be a way to add some frame style without using metapost.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \splitfloat and \bTABLE do not play well?

2005-04-26 Thread Johan Sandblom
Yes, that was my starting point. Foolishly I hoped there were similar 
facilities for natural tables. Thanks all the same.

Johan

-- 
Johan Sandblom  N8, MRC, Karolinska sjh  
t +46851776108  17176 Stockholm  
m +46735521477  Sweden   
"What is wanted is not the will to believe, but the 
will to find out, which is the exact opposite" 
-- Bertrand Russell

- Original Message -
From: Nikolai Weibull <[EMAIL PROTECTED]>
Date: Tuesday, April 26, 2005 3:11 pm
Subject: Re: [NTG-context] \splitfloat and \bTABLE do not play well?

> Johan Sandblom, April 25:
> 
> > Reading earlier messages on this list I hoped the following 
> > would work for natural tables as well. It does not, the table
> > ends up unsplit. What am I doing wrong?
> 
> I'm not sure you can use natural tables for this.  This works:
> 
> \splitfloat
>  {\placetable{Title}}
>  {\starttablehead
> \HL
> \NC \bf Column 1\NC \bf Column2 \NC\AR
> \HL
>   \stoptablehead
>   \starttabletail
> \HL
>   \stoptabletail
>   \starttables[|l|lp(25em)|]
> \NC \dots   \NC \dots   \NC\AR
> \dots
>   \stoptables}
> 
> Enjoy,
>nikolai
> 
> -- 
> Nikolai Weibull: now available free of charge at http://bitwi.se/!
> Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
> main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
> ___
> 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] gwTeX and missing PS fonts

2005-04-26 Thread Ville Voipio
I had a smoothly working gwTeX with the exception of a few hyphenation 
patterns. Before debugging that problem any further, I decided to get 
the newest beta (texexec 5.3.1, context 2005.04.19).

I got the hyphenation problem fixed. It had nothing to do with the 
distribution or version, just my lack of thinking. Editing cont-usr.tex 
and then 'texexec --make --all', and ConTeXt was hyphenating Finnish 
beautifully.

However, something else broke when I upgraded. I cannot get the 
Postscript fonts working anymore. Here is what I have in the file:

   \usetypescript[adobekb][\defaultencoding]
   \setupbodyfont[pos,11pt]
Everything goes relatively smoothly, except for the fact that I get 
everything typeset in Computer Modern. A small error message is in the 
output:

   bodyfont : unknown variant pos
What went wrong? I cannot find the file font-pos.tex on my machine, but 
as I cannot find it in the source tree, either, it seems to have been 
embedded somewhere.

How should I debug this problem? Where is the actual definition for "pos"?
- Ville
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] hyphenation problem with apostrophe

2005-04-26 Thread Peter Münster
Hello,
there is no hyphenation with "l'éducation".

Example:

\enableregime[il1]
\usetypescript[modern][\defaultencoding]
\setupbodyfont[modern]
\mainlanguage[fr]
\starttext
\dorecurse{66}x éducation

\dorecurse{65}x l'éducation
\stoptext

ConTeXt version is 2005.01.31

Could someone help please?

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] Figure formats

2005-04-26 Thread Ville Voipio
them to the picture itself. I also turn my CorelDraw pics into pdf 
before adding them to ConTeXt based text, that inserts them nicely and 
makes it easy for me to share any graphics at request (I'm occasionally 
asked to send just graphic 3.1 from manual x, so it is a good thing to 
have all of them as pdf).
An interesting thing is that sometimes some programs make stupid
mistakes when exporting to PDF. For example, I have had some
bounding box problems when exporting to PDF. The bounding box
tends to be the size of a page, which is really not a nice thing.
(This happens with CorelDraw 11 in OS X and with older CDR
versions in other OSes.) Illustrator should be safe, as PDF
is one of its "home" formats.
A workaround which I've been using for years is to export in EPS.
All graphics programs I've come across have been able to do that
reliably. Then the EPS can be converted into a PDF by using one
of the following: a) Adobe Distiller b) Ghostscript (epstopdf,
eps2pdf, or equivalent) c) Preview in OS X.
I have found it very useful to have all illustrations in PDF
format in the right size (i.e., clipped to the right size,
correct bounding box). Then it is easy to play around with them.
Even though vector graphics is -- in theory -- infinitely scalable,
in practice it is much better to try and draw the pictures 1:1.
If the images are scaled, line widths and annotations are scaled,
too. Especially when there are several similar pictures with
different scale factor, the result looks odd. So, the final size
of the illustration should be known before drawing the actual
picture!
It is also a good idea to scale the bitmaps down (or up) to the
final size and resolution before inserting them. This avoids
a number of strange problems when rendering the images. For
photographs, 200 dpi should be enough almost always, line art
requires 300 dpi. (And a very important exception is that all
screen captures should be taken "as is" without any operations
on them.)
Too large a resolution makes the files unnecessarily large and
slow, so even that should be gotten rid of. Graphics packages
have different resizeing algorithms, and getting to know all
of them takes some experimenting, but it is well worth the trouble.
What comes to the figure formats, PNG is good for lossless images
(screen captures) or images requiring alpha channel. JPG is best
for photographs and other continuous-tone real-world images
(and some visualizations). But, whenever possible, use PDF, if
there is any choice.
- Ville
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Figure formats

2005-04-26 Thread Mari Voipio
Jörg Hagmann wrote:
If you have the choice of format when preparing the figures for a book 
written with ConTeXt, what would you opt for? (The figures are being 
drawn with ChemDraw and Illustrator).
I'm not terribly good at this (yet?), but one my main guidelines in this 
kind of situations in and out of ConTeXt is to keep vector graphics in 
vector format and only use bitmap graphics (like png or jpg) if the 
original is in a bitmap format (like a photo).

I handle mostly graphics that originate from a 3D CAD program and 
different types of graphics I draw myself in CorelDraw (equivalent to 
Adobe Illustrator as far as I know). These both generally produce vector 
drawings The drawings from the 3D program are mostly in pdf format when 
they arrive to me and I've found, somewhat to my surprise, that the best 
way of handling them seems to be to include them as pdf, just to crop 
them to the picture itself. I also turn my CorelDraw pics into pdf 
before adding them to ConTeXt based text, that inserts them nicely and 
makes it easy for me to share any graphics at request (I'm occasionally 
asked to send just graphic 3.1 from manual x, so it is a good thing to 
have all of them as pdf).
The nice thing with vector graphics is that they are almost indefinitely 
scalable, so the size of the original is not so critical - and the files 
don't take much space even when the original is bigger than the graphic 
in my book.

Whenever I have to do something with bitmaps, I try to scale them close 
to the final size with good graphics programs, I feel that this give me 
better control over what happens to the graphics when resized (the 
resolution of some of the originals is pretty bad...). On the other 
hand, if it doesn't look bad in the final product, why bother...

Greetings from Finland,
Mari
PS. Here's a manual [all public] I've done by using text in ConTeXt and 
vector graphics in pdf and bitmaps in jpg/png: 
. For example 
chapter 5 (at 
) has 
mainly screen capture bitmaps (I used png format) and chapter 4 (at 
 includes a 
ton of drawings originating from our 3D CAD.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Figure formats

2005-04-26 Thread Hans Hagen
Jörg Hagmann wrote:
Dear list members,
If you have the choice of format when preparing the figures for a book 
written with ConTeXt, what would you opt for? (The figures are being 
drawn with ChemDraw and Illustrator).
vector graphics : pdf (or eps converted to pdf)
b&w bitmaps : png
color birmaps   : jpg medium/high
JPEG, TIFF, eps etc, or doesn't it matter? Should the figures be drawn 
at exactly the final size, or is resizing when setting ok? Other 
suggestions?
as long as you have >=600dpi scaling is seldom a problem
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] Figure formats

2005-04-26 Thread Jörg Hagmann
Dear list members,
If you have the choice of format when preparing the figures for a book 
written with ConTeXt, what would you opt for? (The figures are being 
drawn with ChemDraw and Illustrator).

JPEG, TIFF, eps etc, or doesn't it matter? Should the figures be drawn 
at exactly the final size, or is resizing when setting ok? Other 
suggestions?
Thank you for the help, Jörg.

PD Dr.med. Jörg Hagmann-Zanolari
Institute of Biochemistry and Genetics
DKBW, University of Basel
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 6953049
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \splitfloat and \bTABLE do not play well?

2005-04-26 Thread Nikolai Weibull
Johan Sandblom, April 25:

> Reading earlier messages on this list I hoped the following 
> would work for natural tables as well. It does not, the table
> ends up unsplit. What am I doing wrong?

I'm not sure you can use natural tables for this.  This works:

\splitfloat
  {\placetable{Title}}
  {\starttablehead
 \HL
 \NC \bf Column 1\NC \bf Column2 \NC\AR
 \HL
   \stoptablehead
   \starttabletail
 \HL
   \stoptabletail
   \starttables[|l|lp(25em)|]
 \NC \dots   \NC \dots   \NC\AR
 \dots
   \stoptables}

Enjoy,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] paragraph enumeration

2005-04-26 Thread Taco Hoekwater
piskala upendran wrote:
The paragraph enumeration is useful for only for
You mean that hack with \startParagraphs I posted a week
or so ago on this list?
When you change the definition of \Paragraphnumber to
  \def\Paragraphnumber%
{\doglobal\increment\Paracount
 \Paracount.~}
Then you can do:
  \startParagraphs
  
  \stopParagraphs
  \section{...}
  \startParagraphs
  
  \stopParagraphs
Hope this helps, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] paragraph enumeration

2005-04-26 Thread piskala upendran
The paragraph enumeration is useful for only for
particular section and restart the number. can this be
modified to use for the whole book consisting of
different chapters and sections? It should not number
the chapter and sections as paragraph 

thanks

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context