Re: [NTG-context] How to setup this type of header?

2005-12-22 Thread Hans Hagen

Gerben Wierda wrote:


On 21 Dec 2005, at 20:44, David Arnold wrote:


Gerben, have we not installed the cont-fnt.zip Taco describes?



The ConTeXt updater i-Package contains:

cont-ext.zip
cont-fnt.zip
cont-img.zip
cont-tmf.zip

and it has whatever is on Hans' site not more than 24hr out of date.


since gwtex is the most up to date of the public distributions, there is 
normally no need to fetch the zips directly; best use gerbens updater; 
when i post a patch to the list, one can include it in cont-new.tex 
which will b eoverwritten when updating 


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


[NTG-context] How to setup this type of header?

2005-12-21 Thread R S Ananda Murthy

Hello,

I need to setup header as shown below:

pagenumber  booktitle
chaptertitle   pagenumber

---
left page | right page
 |

How to setup this type of header? I do not want dashed line below the 
header. Header should not be printed on a page where a chapter is starting.


My body text should be in postscript Times Roman font.

Thanks for your help.

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


Re: [NTG-context] How to setup this type of header?

2005-12-21 Thread Taco Hoekwater

R S Ananda Murthy wrote:
How to setup this type of header? I do not want dashed line below the 
header. Header should not be printed on a page where a chapter is starting.


My body text should be in postscript Times Roman font.


Here you go. This is not the only solution (maybe not even
the nicest) but it works for me.

%
\setuppagenumbering
   [location=, % .. of the automatically placed page number
alternative=doublesided] % so left and right are different

% pair 1 = left side  of odd pages
% pair 2 = right side of odd pages (empty)
% pair 3 = left side  of even pages
% pair 4 = right side of even pages (empty)
\setupheadertexts
  [\rlap{\the\pageno}\centerline{Put your title here}]
  []
  [\centerline{\getmarking[chapter]}\llap{\the\pageno}]
  []

% no headers above chapter titles:
\setuphead[chapter][header=empty]

% load psnfss definitions
% Uncomment the next if you have not installed cont-fnt.zip,
% but instead have a working LaTeX installation.
% \usetypescript[adobekb][ec]

% register the times typescript
\usetypescript[times][ec]

% and start using it
\setuptobodyfont[times]





Thanks for your help.

Anand
___
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] How to setup this type of header?

2005-12-21 Thread David Arnold

Taco, Gerben, et al,

From Taco's note: Uncomment the next if you have not installed cont- 
fnt.zip, but instead have a working LaTeX installation.
\usetypescript[adobekb][ec], I would think the following would work  
for me after updating to the latest Context on Gerben's site using  
the Context updater.


% output=pdf

%
\setuppagenumbering
   [location=, % .. of the automatically placed page number
alternative=doublesided] % so left and right are different

% pair 1 = left side  of odd pages
% pair 2 = right side of odd pages (empty)
% pair 3 = left side  of even pages
% pair 4 = right side of even pages (empty)
\setupheadertexts
  [\rlap{\the\pageno}\centerline{Put your title here}]
  []
  [\centerline{\getmarking[chapter]}\llap{\the\pageno}]
  []

% no headers above chapter titles:
\setuphead[chapter][header=empty]

% load psnfss definitions
% Uncomment the next if you have not installed cont-fnt.zip,
% but instead have a working LaTeX installation.
%\usetypescript[adobekb][ec]

% register the times typescript
\usetypescript[times][ec]

% and start using it
\setupbodyfont[times]

\starttext
\chapter{One}

\dorecurse{10}{\input tufte\par}

\stoptext

But I got:

(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)) 
kpathsea: Running mktextfm utmr8t
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;  
nonstopmode; input utmr8t

This is METAFONT, Version 2.71828 (Web2C 7.5.5)

kpathsea: Running mktexmf utmr8t
! I can't find file `utmr8t'.
* ...:=ljfour; mag:=1; nonstopmode; input utmr8t

Please type another input file name
! Emergency stop.
* ...:=ljfour; mag:=1; nonstopmode; input utmr8t


Gerben, have we not installed the cont-fnt.zip Taco describes?


On Dec 21, 2005, at 9:56 AM, Taco Hoekwater wrote:


R S Ananda Murthy wrote:
How to setup this type of header? I do not want dashed line below  
the header. Header should not be printed on a page where a chapter  
is starting.

My body text should be in postscript Times Roman font.


Here you go. This is not the only solution (maybe not even
the nicest) but it works for me.

%
\setuppagenumbering
   [location=, % .. of the automatically placed page number
alternative=doublesided] % so left and right are different

% pair 1 = left side  of odd pages
% pair 2 = right side of odd pages (empty)
% pair 3 = left side  of even pages
% pair 4 = right side of even pages (empty)
\setupheadertexts
  [\rlap{\the\pageno}\centerline{Put your title here}]
  []
  [\centerline{\getmarking[chapter]}\llap{\the\pageno}]
  []

% no headers above chapter titles:
\setuphead[chapter][header=empty]

% load psnfss definitions
% Uncomment the next if you have not installed cont-fnt.zip,
% but instead have a working LaTeX installation.
% \usetypescript[adobekb][ec]

% register the times typescript
\usetypescript[times][ec]

% and start using it
\setuptobodyfont[times]





Thanks for your help.
Anand
___
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] How to setup this type of header?

2005-12-21 Thread Gerben Wierda

On 21 Dec 2005, at 20:44, David Arnold wrote:


Gerben, have we not installed the cont-fnt.zip Taco describes?


The ConTeXt updater i-Package contains:

cont-ext.zip
cont-fnt.zip
cont-img.zip
cont-tmf.zip

and it has whatever is on Hans' site not more than 24hr out of date.

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


URw metric files (was: Re: [NTG-context] How to setup this type of header?)

2005-12-21 Thread Taco Hoekwater

David Arnold wrote:

Taco, Gerben, et al,

 From Taco's note: Uncomment the next if you have not installed cont- 
fnt.zip, but instead have a working LaTeX installation.


My bad, I keep forgetting that there are references to non-existent
metric files inside the context distribution. :-/

I've attached a new type-dis.tex that should behave better: it uses
p prefixes like in the adobekb typescript for its defaults, and
it has the psnfss for texnansi encoding commented out completely.

I'm not too happy with this forgery, but it follows the 'normal' TeX
convention and it at least points ConTeXt to existing metric files.

Please give it a try and let me know if you run into trouble.
(you have to replace your current one of course, and regenerate
the format).

Cheers,

Taco


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