Re: [NTG-context] Which version is best for MSWindows users.?

2005-02-20 Thread Bruce Horrocks
In message <[EMAIL PROTECTED]>, Bruce Horrocks 
<[EMAIL PROTECTED]> writes

So I wrote my own :-) which I have attached and which you are welcome
Okay, this time they're attached. :-)
Regards,
--
Bruce Horrocks
Surrey, UK
I can't find a proper install guide for mswintex.zip under XP Professional 
(SP2) so here is a quick summary:

1) Unzip mswintex.zip into c:\tex (d:\tex etc. should be fine if you have 
another drive/partition).

2) Start a CMD shell and run the commands:
   C:\tex> c:\tex\setuptex.bat
   C:\tex> mktexlsr
   C:\tex> texexec --make --alone en metafun

(The last line sets up ConTeXt for English. Use nl for Dutch, de for German.)

3) Now the problems start.  The setuptex.bat file ought to go into autoexec.nt 
so that it is run on startup. Unfortunately texexec doesn't seem to want to run 
at all from a command.com shell (only a cmd.exe shell) but cmd.exe isn't 
interested in running autoexec.nt. So far I've just been starting a shell and 
running the c:\tex\setuptex.bat by hand each time.

Since setuptex.bat only sets environment variables (type 'set' to see which) 
you could enter them into the registry via START -> Settings -> Control Panel 
-> System -> Advanced -> Environment Variables and then they would be set 
permanently.

4) Create a sample file to test the installation. Copy the following to a file 
called demo.tex using Notepad. Put it into a working directory somewhere - I'm 
assuming c:\work. (Tip: In Notepad, when you save the file, enter the filename 
as "demo.tex" *including* the quotes and it won't add .txt to the filename.) 
Don't include the start and end lines.

-- start --
% interface=en

\setuppapersize
  [S6][S6]

\setuplayout
  [width=middle,
   height=middle]

\setuphead
  [chapter]
  [header=high,
   style=\bfc,
   alternative=middle]

\starttext

\title{Peter D. Ward}
The Earth, as a habitat for animal life, is in old age and
has a fatal illness. Several, in fact. It would be happening
whether humans had ever evolved or not. But our presence is
like the effect of an old|-|age patient who smokes many packs
of cigarettes per day |.| and we humans are the cigarettes.

\stoptext
-- end --

5) Start a cmd shell (or use the current one) and cd to c:\work. Run the 
texsetup.bat script as per step 2 if you're using a fresh shell. Now run the 
command:
  c:\work> texexec --batch --output=pdftex demo

This will create several working files (all called demo.something) plus a 
demo.pdf (assuming that all has gone well).

Hope this helps.
Bruce Horrocks, Jan 2005___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread Willi Egger
If you have the modes defined in a layout.tex you can say in the main file:
\enablemode[times]
%\enablemode[palatino]
%\enablemode[..]
\environment layout.
So by adding the appropriate \enablemode you even do not need to run the 
commandline ...

Willi
Adam Lindsay wrote:
VnPenguin said this at Sun, 20 Feb 2005 19:17:41 +0100:

I'm preparing a document and I would like to product several versions
PDF with different fonts.

I would like to use command line. Could you give me a simple example please.

% I've adapted this for gwTeX default encodings.
% Convert back to t5 as appropriate!
\doifmode{palatino}
  {\usetypescript[adobekb][8r]
   \usetypescript[palatino][8r]
   \setupbodyfont[palatino,12pt]}
\doifmode{times}
  {\usetypescript[adobekb][8r]
   \usetypescript[postscript][8r]
   \setupbodyfont[postscript,12pt]}
\starttext
\input knuth
\showfontstrip
\stoptext
...and run with:
texexec --pdf --mode=palatino filename
texexec --pdf --mode=timesfilename
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread VnPenguin
On Sun, 20 Feb 2005 18:34:20 +, Adam Lindsay <[EMAIL PROTECTED]> wrote:
> VnPenguin said this at Sun, 20 Feb 2005 19:17:41 +0100:
> 
> >I'm preparing a document and I would like to product several versions
> >PDF with different fonts.
> 
> >I would like to use command line. Could you give me a simple example please.
> 
> % I've adapted this for gwTeX default encodings.
> % Convert back to t5 as appropriate!
...

Thank you very much !
Q.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread Adam Lindsay
VnPenguin said this at Sun, 20 Feb 2005 19:17:41 +0100:

>I'm preparing a document and I would like to product several versions
>PDF with different fonts.

>I would like to use command line. Could you give me a simple example please.

% I've adapted this for gwTeX default encodings.
% Convert back to t5 as appropriate!

\doifmode{palatino}
  {\usetypescript[adobekb][8r]
   \usetypescript[palatino][8r]
   \setupbodyfont[palatino,12pt]}

\doifmode{times}
  {\usetypescript[adobekb][8r]
   \usetypescript[postscript][8r]
   \setupbodyfont[postscript,12pt]}
\starttext
\input knuth
\showfontstrip
\stoptext


...and run with:
texexec --pdf --mode=palatino filename
texexec --pdf --mode=timesfilename

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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


Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread VnPenguin
On Sun, 20 Feb 2005 18:09:47 +, Adam Lindsay <[EMAIL PROTECTED]> wrote:
> VnPenguin said this at Sun, 20 Feb 2005 18:58:41 +0100:
> 
> >I dont know how to organize it : is there simple structure
> >"if-then-else" ? could I use ConTeXt's "mode" or "environment" for
> >this goal ?
> 
> These are all possibilities.
> It depends on how you want to change them. Modes sound promising if you
> want to change them from the command line. Taking the time to set up
> typescripts/typefaces so that you can change one line/word won't hurt, in
> any case...
> 
> So what kind of interface were you imagining?
> 

Thank you for your reply.
I would like to use command line. Could you give me a simple example please.

For example I would like to make 3 PDF:

The 1st:
\usetypescript[berry][t5]
\usetypescript[palatino][t5]
\setupbodyfont[palatino,12pt]

The 2nd with:
\usetypescript[berry][t5]
\usetypescript[postscript][t5]
\setupbodyfont[postscript,12pt]

The 3rd with my typescript


Thank you,
Q.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread Adam Lindsay
VnPenguin said this at Sun, 20 Feb 2005 18:58:41 +0100:

>I dont know how to organize it : is there simple structure
>"if-then-else" ? could I use ConTeXt's "mode" or "environment" for
>this goal ?

These are all possibilities.
It depends on how you want to change them. Modes sound promising if you
want to change them from the command line. Taking the time to set up
typescripts/typefaces so that you can change one line/word won't hurt, in
any case...

So what kind of interface were you imagining?

adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


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


[NTG-context] Code to product several versions PDF with different fonts

2005-02-20 Thread VnPenguin
Hi,
I'm preparing a document and I would like to product several versions
PDF with different fonts.

I dont know how to organize it : is there simple structure
"if-then-else" ? could I use ConTeXt's "mode" or "environment" for
this goal ?

Any idea or example is very appreciated.

Thank you in advance,
Q.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Which version is best for MSWindows users.?

2005-02-20 Thread Bruce Horrocks
In message <[EMAIL PROTECTED]>, John Culleton 
<[EMAIL PROTECTED]> writes
So how would you start an absolute newbie to e.g., Context and pdfetex?
[Apologies if you get this twice - first time I used the wrong email 
identity so I think that the list server has quarantined or deleted it.]

Mswintex.zip is another option for a basic (Context only) setup that 
avoids the frighteningly large list of checkbox options presented by 
MikTeX. The only problems I had installing mswintex.zip were in trying 
to find any installation instructions. :-) (Note to Hans: if 
installation instructions do exist then please make them more obvious.)

So I wrote my own :-) which I have attached and which you are welcome to 
use freely. The only caveat is that I already had ActiveState Perl 
installed on my machine so I don't know whether it needs to be installed 
separately in order to make texexec work or whether mswintex.zip handles 
this on its own as well. I would be grateful if you could check this out 
for me.

If the instructions do work then please also let Hans know and maybe he 
could add them to the mswintex.zip distribution? No need to keep my name 
in there - people might start asking me for help (which would be bad for 
them). ;-)

Regards,
--
Bruce Horrocks
Surrey, UK
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bad page breaks!

2005-02-20 Thread G.C.H.M. Verhaag
 h h extern wrote:
.
no, more with the default penalties, compare:
(for adam: take a look at core-spa, the default setups in there may 
answer a few of the questions in your postings)

\starttext
\startsetups [test]
  \resetpenalties\widowpenalties
  \resetpenalties\clubpenalties
  \resetpenalties\interlinepenalties
\stopsetups
I suppose this is another test setup!
\startsetups [test]
  \nopenalties
\stopsetups
Sorry, but I keep struggling with the bad page breaks! I've tried both 
suggested setups, but my document (approx. 80 pages) hardly improved, 
despite the fact that it only deals with a few figures!

I want all pages to be of the same length, one missing line is allowed 
but no more!

It's not a ConTeXt problem I suppose, so switching to LaTeX won't solve 
the problem! Do you've any suggestions for further reading regarding 
these various penalties?

Regards,
   Geert
--
Geert C.H.M. Verhaag
St. Jorisstraat 29
5954 AN Beesel
NETHERLANDS
Tel.: (+31)-774742493, E-mail: [EMAIL PROTECTED]

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