ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to setup this type of header?
@ 2005-12-21 16:21 R S Ananda Murthy
  2005-12-21 17:56 ` Taco Hoekwater
  0 siblings, 1 reply; 14+ messages in thread
From: R S Ananda Murthy @ 2005-12-21 16:21 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to setup this type of header?
  2005-12-21 16:21 How to setup this type of header? R S Ananda Murthy
@ 2005-12-21 17:56 ` Taco Hoekwater
  2005-12-21 19:44   ` David Arnold
  0 siblings, 1 reply; 14+ messages in thread
From: Taco Hoekwater @ 2005-12-21 17:56 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to setup this type of header?
  2005-12-21 17:56 ` Taco Hoekwater
@ 2005-12-21 19:44   ` David Arnold
  2005-12-21 20:13     ` Gerben Wierda
  2005-12-21 20:32     ` URw metric files (was: Re: How to setup this type of header?) Taco Hoekwater
  0 siblings, 2 replies; 14+ messages in thread
From: David Arnold @ 2005-12-21 19:44 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to setup this type of header?
  2005-12-21 19:44   ` David Arnold
@ 2005-12-21 20:13     ` Gerben Wierda
  2005-12-22  9:32       ` Hans Hagen
  2005-12-21 20:32     ` URw metric files (was: Re: How to setup this type of header?) Taco Hoekwater
  1 sibling, 1 reply; 14+ messages in thread
From: Gerben Wierda @ 2005-12-21 20:13 UTC (permalink / raw)
  Cc: mailing list for ConTeXt users

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* URw metric files (was: Re: How to setup this type of header?)
  2005-12-21 19:44   ` David Arnold
  2005-12-21 20:13     ` Gerben Wierda
@ 2005-12-21 20:32     ` Taco Hoekwater
  2005-12-22 11:18       ` URw metric files Hans Hagen
  2005-12-22 11:21       ` Hans Hagen
  1 sibling, 2 replies; 14+ messages in thread
From: Taco Hoekwater @ 2005-12-21 20:32 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 799 bytes --]

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
pXXXX 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

[-- Attachment #2: type-dis.tex --]
[-- Type: application/x-tex, Size: 14367 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to setup this type of header?
  2005-12-21 20:13     ` Gerben Wierda
@ 2005-12-22  9:32       ` Hans Hagen
  0 siblings, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2005-12-22  9:32 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: URw metric files
  2005-12-21 20:32     ` URw metric files (was: Re: How to setup this type of header?) Taco Hoekwater
@ 2005-12-22 11:18       ` Hans Hagen
  2005-12-22 11:21       ` Hans Hagen
  1 sibling, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2005-12-22 11:18 UTC (permalink / raw)


Taco Hoekwater wrote:

> 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. :-/

well, what is being shipped differs per tex (live) distribution unde 
what name and directory so we'll always be a bit behind -)

(i'm not even sure if anything texnansi is shipped in the meantime; need 
to check it)

Hans

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: URw metric files
  2005-12-21 20:32     ` URw metric files (was: Re: How to setup this type of header?) Taco Hoekwater
  2005-12-22 11:18       ` URw metric files Hans Hagen
@ 2005-12-22 11:21       ` Hans Hagen
  2005-12-22 12:15         ` Taco Hoekwater
  1 sibling, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2005-12-22 11:21 UTC (permalink / raw)


Taco Hoekwater wrote:

> 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).

So, the original urw files (u*) are no longer shipped? Great, that was 
the only font area left that could break ... so it means that (apart 
from the minimals on the tex collection, context does not work in the 
regular tex live 2005 distribution). Time to move everything that is 
subjected to changes in the base zip -)

Should i replace the current type-dis by this one?

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Re: URw metric files
  2005-12-22 11:21       ` Hans Hagen
@ 2005-12-22 12:15         ` Taco Hoekwater
  2005-12-22 14:53           ` Hans Hagen
  2005-12-22 22:12           ` Hans Hagen
  0 siblings, 2 replies; 14+ messages in thread
From: Taco Hoekwater @ 2005-12-22 12:15 UTC (permalink / raw)


Hans Hagen wrote:
> 
> So, the original urw files (u*) are no longer shipped? Great, that was 
> the only font area left that could break ... so it means that (apart 
> from the minimals on the tex collection, context does not work in the 
> regular tex live 2005 distribution). Time to move everything that is 
> subjected to changes in the base zip -)

The URW metrics are in texlive2005 (in fonts-recommended), but not
in teTeX 3 (most likely they are available in gwtex as well).

But they are nowhere distributed in 8y encoding. And we have
cont-fnt.zip now anyway, so this was a good moment to clean up
type-dis.

> Should i replace the current type-dis by this one?

My last one, yes. The one that only has lm->cm synonyms, nothing else.

Taco

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Re: URw metric files
  2005-12-22 12:15         ` Taco Hoekwater
@ 2005-12-22 14:53           ` Hans Hagen
  2005-12-22 15:23             ` Taco Hoekwater
  2005-12-22 22:12           ` Hans Hagen
  1 sibling, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2005-12-22 14:53 UTC (permalink / raw)


Taco Hoekwater wrote:

> Hans Hagen wrote:
>
>>
>> So, the original urw files (u*) are no longer shipped? Great, that 
>> was the only font area left that could break ... so it means that 
>> (apart from the minimals on the tex collection, context does not work 
>> in the regular tex live 2005 distribution). Time to move everything 
>> that is subjected to changes in the base zip -)
>
>
> The URW metrics are in texlive2005 (in fonts-recommended), but not
> in teTeX 3 (most likely they are available in gwtex as well).
>
> But they are nowhere distributed in 8y encoding. And we have
> cont-fnt.zip now anyway, so this was a good moment to clean up
> type-dis.
>
>> Should i replace the current type-dis by this one?
>
>
> My last one, yes. The one that only has lm->cm synonyms, nothing else.

that's a bit tricky since there may be users out there who haven't or 
can't yet install cont-fnt, so how about

- using the p* names now
- dropping them around tex live 2006 (when the cont-fnt files are 
around, silently ignoring the berry scripts -that are then missing- is ok)

(i can imagine putting the simplfied type-dis in the cont-ftn file -)

Hans

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Re: URw metric files
  2005-12-22 14:53           ` Hans Hagen
@ 2005-12-22 15:23             ` Taco Hoekwater
  2005-12-22 21:07               ` Hans Hagen
  0 siblings, 1 reply; 14+ messages in thread
From: Taco Hoekwater @ 2005-12-22 15:23 UTC (permalink / raw)




Hans Hagen wrote:
> that's a bit tricky since there may be users out there who haven't or 
> can't yet install cont-fnt, so how about
> 
> - using the p* names now

isn't that what adobekb is supposed to do? So why not use
the new, empty one and add \usetypescript[adobekb] somewhere?

Taco

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Re: URw metric files
  2005-12-22 15:23             ` Taco Hoekwater
@ 2005-12-22 21:07               ` Hans Hagen
  0 siblings, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2005-12-22 21:07 UTC (permalink / raw)


Taco Hoekwater wrote:

>
>
> Hans Hagen wrote:
>
>> that's a bit tricky since there may be users out there who haven't or 
>> can't yet install cont-fnt, so how about
>>
>> - using the p* names now
>
>
> isn't that what adobekb is supposed to do? So why not use
> the new, empty one and add \usetypescript[adobekb] somewhere?

hm, you mean type-akb.tex ...

i'll give it a thought and when nobody complains i'll kick out the p's 
from type-dis (well, i can then merge dis into whatever); we can extend 
type-akb to listen to the berry typescript names

i will give it a thought

Hans

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Re: URw metric files
  2005-12-22 12:15         ` Taco Hoekwater
  2005-12-22 14:53           ` Hans Hagen
@ 2005-12-22 22:12           ` Hans Hagen
  2005-12-22 22:55             ` Taco Hoekwater
  1 sibling, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2005-12-22 22:12 UTC (permalink / raw)


Taco Hoekwater wrote:

> Hans Hagen wrote:
>
>>
>> So, the original urw files (u*) are no longer shipped? Great, that 
>> was the only font area left that could break ... so it means that 
>> (apart from the minimals on the tex collection, context does not work 
>> in the regular tex live 2005 distribution). Time to move everything 
>> that is subjected to changes in the base zip -)
>
>
> The URW metrics are in texlive2005 (in fonts-recommended), but not
> in teTeX 3 (most likely they are available in gwtex as well).
>
> But they are nowhere distributed in 8y encoding. And we have
> cont-fnt.zip now anyway, so this was a good moment to clean up
> type-dis.
>
>> Should i replace the current type-dis by this one?
>
>
> My last one, yes. The one that only has lm->cm synonyms, nothing else.

how about vietnamese ... we need to move the berry names to akb then:

\starttypescript [berry] [t5]

should then become

\starttypescript [adobekb] [t5]

or better

\starttypescript [berry,adobekb] [t5]

and:

\starttypescript [berry,adobekb] [texnansi]
\starttypescript [berry,adobekb] [ec]

does this makes sense?

(The u* and p* files do differ, don't they? If so, what are the 
compatibility issues involved? I remember some differences in spacing.)

Hans

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Re: URw metric files
  2005-12-22 22:12           ` Hans Hagen
@ 2005-12-22 22:55             ` Taco Hoekwater
  0 siblings, 0 replies; 14+ messages in thread
From: Taco Hoekwater @ 2005-12-22 22:55 UTC (permalink / raw)



Hi,


Hans Hagen wrote:
>> My last one, yes. The one that only has lm->cm synonyms, nothing else.
> 
> how about vietnamese ... we need to move the berry names to akb then:

I see now that there are no vietnamese fonts in cont-fnt.zip,
I thought you had included the t5 metrics as well.
Those fonts should not be deleted from type-dis then, sorry.

> [berry] vs. [adobekb]
> does this makes sense?

My original take was: if you know how to install the next context
release, then you also know how to install cont-fnt, and no other
trickery would be needed to get these postscript fonts to work.
Just install cont-fnt if you want texfont names, or use e.g.

   \usetypescript[adobekb][ec]
   \usetypescript[palatino][ec]

if you want to stick to berry names. Anything else will give
you a "missing font" error, but one that should be easier to
solve than the current "utmr8y" errors.

So my plan was: no additional changes, just some removed
\fontsynonyms: the ones that map to (regularly) unavailable fonts.

> (The u* and p* files do differ, don't they? If so, what are the 
> compatibility issues involved? I remember some differences in spacing.)

I do not think there will be compatibility issues since the old
type-dis used the same actual metrics as the texfont-installed ones
(both the u* (fontinst) and the [encoding]-u* (texfont) ones are
based on the same .afm files, by URW).

The only different ones are the p* ones that are (already and still
will be) loaded by \usetypescript[adobekb]. These may or may not
be based on actual Adobe metrics, I am not sure.

Cheers,
Taco

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-12-22 22:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-21 16:21 How to setup this type of header? R S Ananda Murthy
2005-12-21 17:56 ` Taco Hoekwater
2005-12-21 19:44   ` David Arnold
2005-12-21 20:13     ` Gerben Wierda
2005-12-22  9:32       ` Hans Hagen
2005-12-21 20:32     ` URw metric files (was: Re: How to setup this type of header?) Taco Hoekwater
2005-12-22 11:18       ` URw metric files Hans Hagen
2005-12-22 11:21       ` Hans Hagen
2005-12-22 12:15         ` Taco Hoekwater
2005-12-22 14:53           ` Hans Hagen
2005-12-22 15:23             ` Taco Hoekwater
2005-12-22 21:07               ` Hans Hagen
2005-12-22 22:12           ` Hans Hagen
2005-12-22 22:55             ` Taco Hoekwater

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).