ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Font Question
@ 2001-08-02 17:01 Marco Kuhlmann
  2001-08-03 14:01 ` Hans Hagen
  0 siblings, 1 reply; 35+ messages in thread
From: Marco Kuhlmann @ 2001-08-02 17:01 UTC (permalink / raw)


    Hi there!

For my first ConTeXt document, I wanted to use Palatino
together with the pxfonts. This seems to be supported by
ConTeXt; at least I found some font synonyms in the files.

Here is what I tried (I want to prepare the document in German,
so I use win to input umlauts directly): 

  \useencoding   [win]
  \usetypescript [math] [px] [ec]
  \setupbodyfont [ber,ppl,12pt]

Whereas with this setup, ConTeXt is using the Palatino fonts,
math is still be done with CM. I guess I just did not
understand the mechanism, though I skimmed the fonts manual.

If there was someone who could send me the lines of code that I
need and try to explain what they mean, I would really
appreciate it. Sorry if this is a trivial question, but I did
not found anything in the archives about it.

    Cheers,
    Marco

PS: I am running a fresh TeXlive 5 installation. 

-- 
Marco Kuhlmann                             marco.kuhlmann@gmx.net


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

* Re: Font Question
  2001-08-02 17:01 Font Question Marco Kuhlmann
@ 2001-08-03 14:01 ` Hans Hagen
  2001-08-05 21:02   ` Marco Kuhlmann
  0 siblings, 1 reply; 35+ messages in thread
From: Hans Hagen @ 2001-08-03 14:01 UTC (permalink / raw)
  Cc: ConTeXt ML

At 07:01 PM 8/2/2001 +0200, Marco Kuhlmann wrote:
>     Hi there!
>
>For my first ConTeXt document, I wanted to use Palatino
>together with the pxfonts. This seems to be supported by
>ConTeXt; at least I found some font synonyms in the files.
>
>Here is what I tried (I want to prepare the document in German,
>so I use win to input umlauts directly):
>
>   \useencoding   [win]
>   \usetypescript [math] [px] [ec]
>   \setupbodyfont [ber,ppl,12pt]
>
>Whereas with this setup, ConTeXt is using the Palatino fonts,
>math is still be done with CM. I guess I just did not
>understand the mechanism, though I skimmed the fonts manual.
>
>If there was someone who could send me the lines of code that I
>need and try to explain what they mean, I would really
>appreciate it. Sorry if this is a trivial question, but I did
>not found anything in the archives about it.
>
>     Cheers,
>     Marco
>
>PS: I am running a fresh TeXlive 5 installation.

Here I can say:

\definetypeface[palatino][rm][serif][palatino][default][encoding=ec]
\definetypeface[palatino][mm][math] [palatino][default][encoding=ec]

\definetypeface[times]   [rm][serif][times]   [default][encoding=ec]
\definetypeface[times]   [mm][math] [times]   [default][encoding=ec]

\setupbodyfont[palatino,12pt]

\starttext

Some $m=a+t+h$!

\switchtobodyfont[times,12pt]

Some $m=a+t+h$!

\stoptext

I wonder it it works at your site since i adapted typescripts. There will 
be new ones soon, including an adapted texfont.pl script that you can use 
to install fonts in the encodings you like most. The most fuzzy part is 
getting the map files right.

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: Font Question
  2001-08-03 14:01 ` Hans Hagen
@ 2001-08-05 21:02   ` Marco Kuhlmann
  2001-08-06  7:42     ` Hans Hagen
  0 siblings, 1 reply; 35+ messages in thread
From: Marco Kuhlmann @ 2001-08-05 21:02 UTC (permalink / raw)


Hans Hagen wrote (2001-08-03 (16:01)):

> \definetypeface[palatino][rm][serif][palatino][default][encoding=ec]
> \definetypeface[palatino][mm][math] [palatino][default][encoding=ec]

Thank you, that worked really fine!

    Marco

-- 
Marco Kuhlmann                             marco.kuhlmann@gmx.net


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

* Re: Font Question
  2001-08-05 21:02   ` Marco Kuhlmann
@ 2001-08-06  7:42     ` Hans Hagen
  0 siblings, 0 replies; 35+ messages in thread
From: Hans Hagen @ 2001-08-06  7:42 UTC (permalink / raw)
  Cc: ConTeXt ML

At 11:02 PM 8/5/2001 +0200, Marco Kuhlmann wrote:
>Hans Hagen wrote (2001-08-03 (16:01)):
>
> > \definetypeface[palatino][rm][serif][palatino][default][encoding=ec]
> > \definetypeface[palatino][mm][math] [palatino][default][encoding=ec]

okay, now if you want a nice tt companion:

\definetypeface [palatino] [tt] [mono]  [computer-modern] [default] 
[rscale=1.075,encoding=ec]

this means that when the palatino typefac eis active, you get a tt matching 
in size, so the rscale directive permits you to fine tune such a font group

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: Font question
  2008-03-05  9:17       ` Taco Hoekwater
  2008-03-05 14:29         ` Marcin Borkowski
@ 2008-03-11 14:07         ` Marcin Borkowski
  1 sibling, 0 replies; 35+ messages in thread
From: Marcin Borkowski @ 2008-03-11 14:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dnia Wed, Mar 05, 2008 at 10:17:33AM +0100, Taco Hoekwater napisał(a):

Thanks for the answers; still, some things are not clear for me.

> > 2. What does exactly sa mean?  Do I get it right when I think that it's
> > the factor by which the "body font size" - i.e., some constant dimen
> > parameter defined for the whole document (or environment) - is
> > multiplied?  Does the "laziness" of sa mean that the actual scaling will
> > happen _after_ the definition of the body font size, which might be e.g.
> > different for different components of a product within a project using a
> > common environment?  And what is mo?
> 
> sa stands for "scaled at", mo stands for "mapped on".
> 
> One of them (I think sa) is a multiple of the value you specify at
>    \setupbodyfont[..] or \switchtobodyfont[..],
> the other is (I think) in relation to the actual current font size
> (so it is different whether \tfx or \tfa is in effect).

Still don't get it.  I tried the following example, just to see what
happens (sorry, I know it looks terrible):

\definefont [TitleFont] [Serif sa b]
\definefont [TitleFontTwo] [Serif mo b]
\starttext
Hello World!\par
{\TitleFont Hello world!\par}
{\TitleFontTwo Hello world!\par}
And with viii:
{\viii
Hello World!\par
{\TitleFont Hello world!\par}
{\TitleFontTwo Hello world!\par}}
And with switchtobodyfont:
{\switchtobodyfont[8pt]
Hello World!\par
{\TitleFont Hello world!\par}
{\TitleFontTwo Hello world!\par}}
\stoptext

No difference between sa and mo using this example...

(Right after looking at the results, I \show-ed \viii and noticed that
\viii and \switchtobodyfont[8pt] do essentially the same.  What's the
use of having them both?)

> > 4. What are the relations between \definefontsynonym, \definefont and
> > \definebodyfont?
> 
> things defined with \definefontsynonym can be used in the right hand
> side of assignments in arg #3 of \definebodyfont, and in the #2
> argument of \definefont.

So to be sure: I can use names defined by \definefontsynonym in place of
font filenames?

> 
> \definefont has no real relation to font switching, it is just a
> low-level shortcut for a specific font, much like a bare \font
> command in plain TeX, except that it allows synonyms and sa/mo.

So it just _defines_ (what a surprise!) some command to be a
font-switching macro?

> 
> \definebodyfont is used to build up font collections

Still, I have no idea about the relation between these three...

Here's what I seem to understand now:

\definebodyfont is a mystery to me;

\definefontsynonym defines #1 to mean the same as #2, where #2 may be
another "synonym" or a filename (and then you have - or may? - provide
encoding informaction in #3).  It doesn't support sa or mo, and that's
ok, because its use is just fiddling with _names_;

\definefont is similar to \definefontsynonym except that it allows
scaling and does not allow filenames (only "synonyms").

How much of that is right?

> > 5. I can understand neither the paragraph right before the
> > \definebodyfont example on page 4 of mfonts.pdf, nor the example itself.
> 
> That paragraph is a bit confusing to me as well. Browsing through
> type-siz.tex may help (in tex/context/base).

I'll try that too soon...

> 
> Best wishes,
> Taco

Thanks in advance

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

Nie wiesz nawet, jak cenny jesteś w Moich oczach!

                                Jezus
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-03-05  9:17       ` Taco Hoekwater
@ 2008-03-05 14:29         ` Marcin Borkowski
  2008-03-11 14:07         ` Marcin Borkowski
  1 sibling, 0 replies; 35+ messages in thread
From: Marcin Borkowski @ 2008-03-05 14:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks for your answers!

I've started a page on the wiki
(http://wiki.contextgarden.net/Understanding_how_fonts_work_in_ConTeXt)
devoted to ConTeXt fontology.  I will put there things I was able to
understand in ConTeXt's font mechanism.  (Please be patient-I cannot
devote more than about half an hour a day to this task...)  I'd be
thankful for correcting any mistakes I make there;).

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

This program is written in Perl.  While stronger people find reading
Perl code character-building, it should not be shown to people in their
formative years.  The author will not accept any responsibility for any
moral grief caused.

	    (The McKornik Jr. Public License)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-03-05  6:55       ` Thomas A. Schmitz
@ 2008-03-05 14:23         ` Marcin Borkowski
  0 siblings, 0 replies; 35+ messages in thread
From: Marcin Borkowski @ 2008-03-05 14:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dnia Wed, Mar 05, 2008 at 07:55:42AM +0100, Thomas A. Schmitz napisał(a):
> Most of your questions are answered in the fonts manual:

If this were true, I wouldn't bother you...  But mfonts.pdf is too
difficult for me to understand.  My copy (I've even printed it!) is full
of comments with question marks made by pencil...

CU

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

This program is written in Perl.  While stronger people find reading
Perl code character-building, it should not be shown to people in their
formative years.  The author will not accept any responsibility for any
moral grief caused.

	    (The McKornik Jr. Public License)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-03-04 22:55     ` Marcin Borkowski
  2008-03-05  6:55       ` Thomas A. Schmitz
@ 2008-03-05  9:17       ` Taco Hoekwater
  2008-03-05 14:29         ` Marcin Borkowski
  2008-03-11 14:07         ` Marcin Borkowski
  1 sibling, 2 replies; 35+ messages in thread
From: Taco Hoekwater @ 2008-03-05  9:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Marcin Borkowski wrote:
> OK, so the first part of my questions about mfonts.pdf;)
> 
> Thank you in advance for the answers; I'd like to stress that I'm not in
> a hurry, so please take your time!  Also, as I said, I have nothing
> against being "redirected" to some other part of documentation in case
> it is easier than to write a full answer here.
> 
> 1. Do I get it right when I think that \definefontsynonym takes 2 or 3
> arguments, and:
> 
> When given two, they mean: (1) the synonym being defined
> and (2) an earlier defined synonym being a "replacement text" for (1);
> 
> When given three, (1) is as above, (2) is the filename of the font (tfm
> I guess?) and (3) contains some low-level options like the encoding 

That sounds right.

> (are there any other options available?)

I think you can also define:

   mapping  % for xetex (?)
   handling % for an experimental pdftex font feature
   features % mostly for mkiv

But all the first two are somewhat experimental, and features are only
really useful for opentype fonts. All three are relatively new and not
documented in mfont.pdf yet.

> 2. What does exactly sa mean?  Do I get it right when I think that it's
> the factor by which the "body font size" - i.e., some constant dimen
> parameter defined for the whole document (or environment) - is
> multiplied?  Does the "laziness" of sa mean that the actual scaling will
> happen _after_ the definition of the body font size, which might be e.g.
> different for different components of a product within a project using a
> common environment?  And what is mo?

sa stands for "scaled at", mo stands for "mapped on".

One of them (I think sa) is a multiple of the value you specify at
   \setupbodyfont[..] or \switchtobodyfont[..],
the other is (I think) in relation to the actual current font size
(so it is different whether \tfx or \tfa is in effect).

> 3. What are the arguments to \definebodyfont?

  #1  size (5pt ... 12pt default)
  #2  family (rm ss tt mm hw cg)
  #3  font definitions (tf = ..., etc.)

> 4. What are the relations between \definefontsynonym, \definefont and
> \definebodyfont?

things defined with \definefontsynonym can be used in the right hand
side of assignments in arg #3 of \definebodyfont, and in the #2
argument of \definefont.

\definefont has no real relation to font switching, it is just a
low-level shortcut for a specific font, much like a bare \font
command in plain TeX, except that it allows synonyms and sa/mo.

\definebodyfont is used to build up font collections

> 5. I can understand neither the paragraph right before the
> \definebodyfont example on page 4 of mfonts.pdf, nor the example itself.

That paragraph is a bit confusing to me as well. Browsing through
type-siz.tex may help (in tex/context/base).

Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-03-04 20:58               ` Marcin Borkowski
  2008-03-04 21:09                 ` Wolfgang Schuster
@ 2008-03-05  8:40                 ` Hans Hagen
  1 sibling, 0 replies; 35+ messages in thread
From: Hans Hagen @ 2008-03-05  8:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Marcin Borkowski wrote:
> Dnia Sun, Mar 02, 2008 at 02:08:48PM +0100, Mojca Miklavec napisał(a):
>> On Sun, Mar 2, 2008 at 9:48 AM, Marcin Borkowski wrote:
>>
>>>  (And I really don't know what advantages in terms of XML I would get....)
>> About 10 times easier to write definitions to "transform" XML into a
>> valid ConTeXt document (to write definitions in such a way that
>> ConTeXt will "understand" the XML) ... But it's true that XML parsing
>> is not 100% stable yet.
> 
> And where is any documentation for that?  (Or at least examples?)

i hope to have that ready at the context conference


-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-03-04 22:55     ` Marcin Borkowski
@ 2008-03-05  6:55       ` Thomas A. Schmitz
  2008-03-05 14:23         ` Marcin Borkowski
  2008-03-05  9:17       ` Taco Hoekwater
  1 sibling, 1 reply; 35+ messages in thread
From: Thomas A. Schmitz @ 2008-03-05  6:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Mar 4, 2008, at 11:55 PM, Marcin Borkowski wrote:

> OK, so the first part of my questions about mfonts.pdf;)
>
> Thank you in advance for the answers; I'd like to stress that I'm  
> not in
> a hurry, so please take your time!  Also, as I said, I have nothing
> against being "redirected" to some other part of documentation in case
> it is easier than to write a full answer here.
>
> 1. Do I get it right when I think that \definefontsynonym takes 2 or 3
> arguments, and:
>
> When given two, they mean: (1) the synonym being defined
> and (2) an earlier defined synonym being a "replacement text" for (1);
>
> When given three, (1) is as above, (2) is the filename of the font  
> (tfm
> I guess?) and (3) contains some low-level options like the encoding  
> (are
> there any other options available?)
>
> 2. What does exactly sa mean?  Do I get it right when I think that  
> it's
> the factor by which the "body font size" - i.e., some constant dimen
> parameter defined for the whole document (or environment) - is
> multiplied?  Does the "laziness" of sa mean that the actual scaling  
> will
> happen _after_ the definition of the body font size, which might be  
> e.g.
> different for different components of a product within a project  
> using a
> common environment?  And what is mo?
>
> 3. What are the arguments to \definebodyfont?
>
> 4. What are the relations between \definefontsynonym, \definefont and
> \definebodyfont?
>
> 5. I can understand neither the paragraph right before the
> \definebodyfont example on page 4 of mfonts.pdf, nor the example  
> itself.
> Any hints;)?
>
> CU,
>

Most of your questions are answered in the fonts manual:

http://www.pragma-ade.com/general/manuals/mfonts.pdf

Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-02-29 22:31   ` Marcin Borkowski
  2008-02-29 22:57     ` Hans Hagen
@ 2008-03-04 22:55     ` Marcin Borkowski
  2008-03-05  6:55       ` Thomas A. Schmitz
  2008-03-05  9:17       ` Taco Hoekwater
  1 sibling, 2 replies; 35+ messages in thread
From: Marcin Borkowski @ 2008-03-04 22:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

OK, so the first part of my questions about mfonts.pdf;)

Thank you in advance for the answers; I'd like to stress that I'm not in
a hurry, so please take your time!  Also, as I said, I have nothing
against being "redirected" to some other part of documentation in case
it is easier than to write a full answer here.

1. Do I get it right when I think that \definefontsynonym takes 2 or 3
arguments, and:

When given two, they mean: (1) the synonym being defined
and (2) an earlier defined synonym being a "replacement text" for (1);

When given three, (1) is as above, (2) is the filename of the font (tfm
I guess?) and (3) contains some low-level options like the encoding (are
there any other options available?)

2. What does exactly sa mean?  Do I get it right when I think that it's
the factor by which the "body font size" - i.e., some constant dimen
parameter defined for the whole document (or environment) - is
multiplied?  Does the "laziness" of sa mean that the actual scaling will
happen _after_ the definition of the body font size, which might be e.g.
different for different components of a product within a project using a
common environment?  And what is mo?

3. What are the arguments to \definebodyfont?

4. What are the relations between \definefontsynonym, \definefont and
\definebodyfont?

5. I can understand neither the paragraph right before the
\definebodyfont example on page 4 of mfonts.pdf, nor the example itself.
Any hints;)?

CU,

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

Struktury grzechu jak złośliwy rak wżarły się w nasze życie,
Wdarły się w ten świat.
Ale patrz, jaka armia zbiera się u stóp Syjonu - policzone są już dni Babilonu!
                        (Korzeń Z Kraju Melchizedeka)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-03-04 21:09                 ` Wolfgang Schuster
@ 2008-03-04 21:49                   ` Marcin Borkowski
  0 siblings, 0 replies; 35+ messages in thread
From: Marcin Borkowski @ 2008-03-04 21:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dnia Tue, Mar 04, 2008 at 10:09:19PM +0100, Wolfgang Schuster napisał(a):
 
> The new xml handler is currently only described in the Mark manual [1],
> you could also find examples on the normal and the developer list.
> 
> The rest is only documented in the source files and in modules.
> 
> [1] http://pragma-ade.nl/show-man-41.htm
> 
> Wolfgang

Thanks; I've skimmed through it and it seems it will be helpful.  But
first I'll have to learn something about XML...

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

People can be divided into two groups: those who believe that people
can be divided into two groups and those who don't.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-03-04 20:58               ` Marcin Borkowski
@ 2008-03-04 21:09                 ` Wolfgang Schuster
  2008-03-04 21:49                   ` Marcin Borkowski
  2008-03-05  8:40                 ` Hans Hagen
  1 sibling, 1 reply; 35+ messages in thread
From: Wolfgang Schuster @ 2008-03-04 21:09 UTC (permalink / raw)
  To: ntg-context

On Tue, 4 Mar 2008 21:58:24 +0100
Marcin Borkowski <mbork@atos.wmid.amu.edu.pl> wrote:

> Dnia Sun, Mar 02, 2008 at 02:08:48PM +0100, Mojca Miklavec napisa&#322;(a):
> > On Sun, Mar 2, 2008 at 9:48 AM, Marcin Borkowski wrote:
> > 
> > >  (And I really don't know what advantages in terms of XML I would get...)
> > 
> > About 10 times easier to write definitions to "transform" XML into a
> > valid ConTeXt document (to write definitions in such a way that
> > ConTeXt will "understand" the XML) ... But it's true that XML parsing
> > is not 100% stable yet.
> 
> And where is any documentation for that?  (Or at least examples?)

The new xml handler is currently only described in the Mark manual [1],
you could also find examples on the normal and the developer list.

The rest is only documented in the source files and in modules.

[1] http://pragma-ade.nl/show-man-41.htm

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-03-02 13:08             ` Mojca Miklavec
  2008-03-02 13:20               ` Wolfgang Schuster
@ 2008-03-04 20:58               ` Marcin Borkowski
  2008-03-04 21:09                 ` Wolfgang Schuster
  2008-03-05  8:40                 ` Hans Hagen
  1 sibling, 2 replies; 35+ messages in thread
From: Marcin Borkowski @ 2008-03-04 20:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dnia Sun, Mar 02, 2008 at 02:08:48PM +0100, Mojca Miklavec napisa&#322;(a):
> On Sun, Mar 2, 2008 at 9:48 AM, Marcin Borkowski wrote:
> 
> >  (And I really don't know what advantages in terms of XML I would get...)
> 
> About 10 times easier to write definitions to "transform" XML into a
> valid ConTeXt document (to write definitions in such a way that
> ConTeXt will "understand" the XML) ... But it's true that XML parsing
> is not 100% stable yet.

And where is any documentation for that?  (Or at least examples?)

> 
> Mojca

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

- Pod jednym przynajmniej względem wcale się nie zmieniłeś -
powiedział Aragorn.  - Mówisz zagadkami!
- Co takiego?  Zagadki?  - odparł Gandalf.  - Nie!  Po prostu mówiłem
głośno do siebie.  Prastary zwyczaj kazał zwracać się do
najmądrzejszej osoby wśród obecnych, bo długie wyjaśnienia, których by
trzeba udzielać młodym, są nudne.

				J. R. R. Tolkien
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-03-02 13:08             ` Mojca Miklavec
@ 2008-03-02 13:20               ` Wolfgang Schuster
  2008-03-04 20:58               ` Marcin Borkowski
  1 sibling, 0 replies; 35+ messages in thread
From: Wolfgang Schuster @ 2008-03-02 13:20 UTC (permalink / raw)
  To: ntg-context

On Sun, 2 Mar 2008 14:08:48 +0100
"Mojca Miklavec" <mojca.miklavec.lists@gmail.com> wrote:

> On Sun, Mar 2, 2008 at 9:48 AM, Marcin Borkowski wrote:
> 
> >  (And I really don't know what advantages in terms of XML I would get...)
> 
> About 10 times easier to write definitions to "transform" XML into a
> valid ConTeXt document (to write definitions in such a way that
> ConTeXt will "understand" the XML) ... But it's true that XML parsing
> is not 100% stable yet.

It is not always easier to write a conversion from XML to TeX, I have a
module with delimited arguments and it was easy to transform the XMl
code to TeX but this is very difficult for me to do this with MkIV code.

The old conversion methos requires for simple commands also less lines
than the new method.

The real advandtage for me is to avoid dozen of \defineXMLsave commands
with the new XML setups and option to access data from the tree without
the need to save the whole file in TeX macros (\saveXMLdatainelement).

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-03-02  8:48           ` Marcin Borkowski
@ 2008-03-02 13:08             ` Mojca Miklavec
  2008-03-02 13:20               ` Wolfgang Schuster
  2008-03-04 20:58               ` Marcin Borkowski
  0 siblings, 2 replies; 35+ messages in thread
From: Mojca Miklavec @ 2008-03-02 13:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Mar 2, 2008 at 9:48 AM, Marcin Borkowski wrote:

>  (And I really don't know what advantages in terms of XML I would get...)

About 10 times easier to write definitions to "transform" XML into a
valid ConTeXt document (to write definitions in such a way that
ConTeXt will "understand" the XML) ... But it's true that XML parsing
is not 100% stable yet.

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-03-01  0:22         ` Idris Samawi Hamid
@ 2008-03-02  8:48           ` Marcin Borkowski
  2008-03-02 13:08             ` Mojca Miklavec
  0 siblings, 1 reply; 35+ messages in thread
From: Marcin Borkowski @ 2008-03-02  8:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dnia Fri, Feb 29, 2008 at 05:22:18PM -0700, Idris Samawi Hamid napisa&#322;(a):
> Hi,
> 
> On Fri, 29 Feb 2008 17:17:23 -0700, Marcin Borkowski  
> <mbork@atos.wmid.amu.edu.pl> wrote:
> 
> >> better consider switching to luatex/context mkiv then -)
> >>
> >
> > Well, I'm a bit afraid of its experimental status..
> 
> Don't be, its bark is worse than its bite... I use it for production  
> purposes (opentype, bidirectionality, otp/ovf...).

Thanks a lot - but I guess I'll stick with MkII and pdfetex.  I can't
see any advantages of using luatex myself now - I neither use OpenType
fonts nor advanced macro programming.  I guess I'll wait for a
production release and switch to MkIV when it's the "official" version.
(And I really don't know what advantages in terms of XML I would get...)

> 
> Best wishes
> Idris
> 

Yours,

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

888
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-03-01  0:17       ` Marcin Borkowski
@ 2008-03-01  0:22         ` Idris Samawi Hamid
  2008-03-02  8:48           ` Marcin Borkowski
  0 siblings, 1 reply; 35+ messages in thread
From: Idris Samawi Hamid @ 2008-03-01  0:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

On Fri, 29 Feb 2008 17:17:23 -0700, Marcin Borkowski  
<mbork@atos.wmid.amu.edu.pl> wrote:

>> better consider switching to luatex/context mkiv then -)
>>
>
> Well, I'm a bit afraid of its experimental status..

Don't be, its bark is worse than its bite... I use it for production  
purposes (opentype, bidirectionality, otp/ovf...).

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-02-29 22:57     ` Hans Hagen
@ 2008-03-01  0:17       ` Marcin Borkowski
  2008-03-01  0:22         ` Idris Samawi Hamid
  0 siblings, 1 reply; 35+ messages in thread
From: Marcin Borkowski @ 2008-03-01  0:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dnia Fri, Feb 29, 2008 at 11:57:30PM +0100, Hans Hagen napisa&#322;(a):
> Marcin Borkowski wrote:
> 
> > 1) when I substituted pagella for palatino, it stopped working;
> 
> pagella has no typescripts, as long as gyre is not finished, we overload 
>   the traditional fonts (font file remapping)
> 
> > 2) and I still don't understand what's going on...
> > 
> > I assume that \usetypescriptfile takes one argument, the name of the
> > file with definitions.  I assume that \usetypescript somehow defines a
> 
> no, it filters ... see mfonts.pdf
> 
> > typescript - but the syntax is unclear to me...  Finally, \setupbodyfont
> > seems clear - it actually "chooses" given font.  Am I right?
> 
> inded, in this case, it selects a typeface (grep for palatino and ou 
> will find a typeface definition)
> 

Thanks for your prompt answers, Hans!  Things are starting to become
clear to me, although there is much to be understood...  I'll try to
write something on the wiki soon; hopefully this will clarify things to
other newcomers;).

> > OK.  That sounds good, especially that I'm planning to do some XML
> > typesetting using ConTeXt soon - I hope that example.pdf will be enough
> > for my purposes;).
> 
> better consider switching to luatex/context mkiv then -)
> 

Well, I'm a bit afraid of its experimental status..


> 
> Hans
> 
Greets,

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

Najkrótszy dowcip matematyczny:
Obierzmy epsilon ujemne.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-02-29 22:31   ` Marcin Borkowski
@ 2008-02-29 22:57     ` Hans Hagen
  2008-03-01  0:17       ` Marcin Borkowski
  2008-03-04 22:55     ` Marcin Borkowski
  1 sibling, 1 reply; 35+ messages in thread
From: Hans Hagen @ 2008-02-29 22:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Marcin Borkowski wrote:

> 1) when I substituted pagella for palatino, it stopped working;

pagella has no typescripts, as long as gyre is not finished, we overload 
  the traditional fonts (font file remapping)

> 2) and I still don't understand what's going on...
> 
> I assume that \usetypescriptfile takes one argument, the name of the
> file with definitions.  I assume that \usetypescript somehow defines a

no, it filters ... see mfonts.pdf

> typescript - but the syntax is unclear to me...  Finally, \setupbodyfont
> seems clear - it actually "chooses" given font.  Am I right?

inded, in this case, it selects a typeface (grep for palatino and ou 
will find a typeface definition)

> OK.  That sounds good, especially that I'm planning to do some XML
> typesetting using ConTeXt soon - I hope that example.pdf will be enough
> for my purposes;).

better consider switching to luatex/context mkiv then -)


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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-02-29 20:54 ` Hans Hagen
@ 2008-02-29 22:31   ` Marcin Borkowski
  2008-02-29 22:57     ` Hans Hagen
  2008-03-04 22:55     ` Marcin Borkowski
  0 siblings, 2 replies; 35+ messages in thread
From: Marcin Borkowski @ 2008-02-29 22:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dnia Fri, Feb 29, 2008 at 09:54:46PM +0100, Hans Hagen napisa&#322;(a):
> Marcin Borkowski wrote:
> > Hi all!
> > 
> > I'm going to start using ConTeXt; I've been planning to do so for a few
> > years, but now I finally have Internet access at home, so it's easier
> > for me to look things up in the wiki (or ask here;)).
> > 
> > I have two questions.  The first one is connected with fonts.  I can't
> > understand ConTeXt's font mechanism, which seems way too complicated for
> > me; could anyone just tell me how I can switch to, e.g., Antykwa
> > Poltawskiego (I'm Polish, so I'd like to use it;)) or, say, Pagella?  Of
> > course, I'd also like to be able to typeset Polish texts with them; will
> 
> \usetypescriptfile[type-gyr]
> \usetypescript[palatino][qx]
> 
> \setupbodyfont[palatino,10pt]
> 

Thanks a lot - it works!

But...

1) when I substituted pagella for palatino, it stopped working;

2) and I still don't understand what's going on...

I assume that \usetypescriptfile takes one argument, the name of the
file with definitions.  I assume that \usetypescript somehow defines a
typescript - but the syntax is unclear to me...  Finally, \setupbodyfont
seems clear - it actually "chooses" given font.  Am I right?

(Sorry for being a nuisance - I just want to understand what's
happening, at least approximately, so that I can switch to whatever
fonts I'd like to, assuming they are quite "standard" and hence
pre-configured in ConTeXt.)

> > \enableregime[utf-8]
> > \mainlanguage[pl]
> 
> > be enough (apart, of course, from adapting ConTeXt to Polish typography
> > customs, like dots after chapter numbers etc.)?
> 
> that should be set up already (\mainlanguage does that)
> 

Well, dots after chapter numbers didn't appear (this should be easy to
do with \setuphead etc., however).  I'd have to experiment a bit to see
what exactly is done by \mainlanguage.  Or is there some place I could
read about it?

> > I think that that's what the wiki lacks: a beginner's guide on _using_
> > fonts (not _installing_ them or _messing_;) with them).  If someone
> > enlightens me on this, I could write something on the wiki about it.
> 
> most free fonts that ship with tex live are already set up (and you can 
> make combinations of them, which is what typefaces is about)
> 
> it mostly bpild down to choosing a proper font encoding (qx in your case)
> 

I see.  Still, there are amost no clues in the wiki on how to use
them...  I hope to grasp it some day and explain on the wiki then;).
That makes my conscience more clear about asking you again;).

> > And the second, a bit "philosophical" question: the official manual is
> > not so new.  How do I learn ConTeXt best?  I mean, are changes to the
> > user interface since 2001 so big that I could run into troubles using
> > the manual?  Or are there some changes which make something
> > easier/possible which was difficult/impossible at the time or writing
> > the manual - how do I learn about these?
> 
> no changes to the user interface, only additional features (often 
> discussed in dedicated manuals)

OK.  That sounds good, especially that I'm planning to do some XML
typesetting using ConTeXt soon - I hope that example.pdf will be enough
for my purposes;).

You see, I'm a kind of guy who has nothing against being said "RTFM";
but I couldn't understand the documentation on fonts...  But I don't
want to give up, and when I know what's going on I'll be happy to
explain it somewhere in the wiki, partially for others and partially for
myself, in case I forget something;)...

> 
> Hans
> 

Thanks a lot for your help!

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

Jezus żyje NAPRAWDĘ.
A Ty?
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Font question
  2008-02-29 19:42 Font question Marcin Borkowski
@ 2008-02-29 20:54 ` Hans Hagen
  2008-02-29 22:31   ` Marcin Borkowski
  0 siblings, 1 reply; 35+ messages in thread
From: Hans Hagen @ 2008-02-29 20:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Marcin Borkowski wrote:
> Hi all!
> 
> I'm going to start using ConTeXt; I've been planning to do so for a few
> years, but now I finally have Internet access at home, so it's easier
> for me to look things up in the wiki (or ask here;)).
> 
> I have two questions.  The first one is connected with fonts.  I can't
> understand ConTeXt's font mechanism, which seems way too complicated for
> me; could anyone just tell me how I can switch to, e.g., Antykwa
> Poltawskiego (I'm Polish, so I'd like to use it;)) or, say, Pagella?  Of
> course, I'd also like to be able to typeset Polish texts with them; will

\usetypescriptfile[type-gyr]
\usetypescript[palatino][qx]

\setupbodyfont[palatino,10pt]

> \enableregime[utf-8]
> \mainlanguage[pl]

> be enough (apart, of course, from adapting ConTeXt to Polish typography
> customs, like dots after chapter numbers etc.)?

that should be set up already (\mainlanguage does that)

> I think that that's what the wiki lacks: a beginner's guide on _using_
> fonts (not _installing_ them or _messing_;) with them).  If someone
> enlightens me on this, I could write something on the wiki about it.

most free fonts that ship with tex live are already set up (and you can 
make combinations of them, which is what typefaces is about)

it mostly bpild down to choosing a proper font encoding (qx in your case)

> And the second, a bit "philosophical" question: the official manual is
> not so new.  How do I learn ConTeXt best?  I mean, are changes to the
> user interface since 2001 so big that I could run into troubles using
> the manual?  Or are there some changes which make something
> easier/possible which was difficult/impossible at the time or writing
> the manual - how do I learn about these?

no changes to the user interface, only additional features (often 
discussed in dedicated manuals)

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Font question
@ 2008-02-29 19:42 Marcin Borkowski
  2008-02-29 20:54 ` Hans Hagen
  0 siblings, 1 reply; 35+ messages in thread
From: Marcin Borkowski @ 2008-02-29 19:42 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

Hi all!

I'm going to start using ConTeXt; I've been planning to do so for a few
years, but now I finally have Internet access at home, so it's easier
for me to look things up in the wiki (or ask here;)).

I have two questions.  The first one is connected with fonts.  I can't
understand ConTeXt's font mechanism, which seems way too complicated for
me; could anyone just tell me how I can switch to, e.g., Antykwa
Poltawskiego (I'm Polish, so I'd like to use it;)) or, say, Pagella?  Of
course, I'd also like to be able to typeset Polish texts with them; will

\enableregime[utf-8]
\mainlanguage[pl]

be enough (apart, of course, from adapting ConTeXt to Polish typography
customs, like dots after chapter numbers etc.)?

I think that that's what the wiki lacks: a beginner's guide on _using_
fonts (not _installing_ them or _messing_;) with them).  If someone
enlightens me on this, I could write something on the wiki about it.

And the second, a bit "philosophical" question: the official manual is
not so new.  How do I learn ConTeXt best?  I mean, are changes to the
user interface since 2001 so big that I could run into troubles using
the manual?  Or are there some changes which make something
easier/possible which was difficult/impossible at the time or writing
the manual - how do I learn about these?

And last but not least - Hans, thanks for such a great TeX macro
package!

Yours

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

It is impossible to split a cube into two cubes, a fourth power into
two fourth powers and so on.  I've found a remarkable proof of this
fact, but unfortunately it's too long to fit into the signature.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Font Question
@ 2005-12-12 15:32 Henry Blodgiitt
  0 siblings, 0 replies; 35+ messages in thread
From: Henry Blodgiitt @ 2005-12-12 15:32 UTC (permalink / raw)


Adam Lindsay likes little girls

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

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

* Re: Font Question
  2005-12-07 23:45 ` Adam Lindsay
@ 2005-12-08  0:05   ` Aditya Mahajan
  0 siblings, 0 replies; 35+ messages in thread
From: Aditya Mahajan @ 2005-12-08  0:05 UTC (permalink / raw)


Hi Adam,

<--- On Dec 7, Adam Lindsay wrote --->

> Aditya Mahajan wrote:
>> I want to use palatino text with euler math in my document. This is how 
>> I proceed.
>> 
>> 1. I downloaded latest mswincontext environment from pragma website.
>> 2. To test if palatino works correctly, I tested the simple document.
>> 
>> %---------
>> \usetypescript[palatino][texnansi]
>> \switchtobodyfont[palatino,11pt]
>> \starttext
>> This is a test .
>> \stoptext
>> %---------------
>> 
>> Everything works fine, and the text is in pallatino (the urw clone). 
>> However, when I look at fonts included in the document, Latin Modern is 
>> also there. I am just curious as how LM got into the document, and can 
>> I get rid of it.
>
> You'll find that the page number is latin modern. You can expunge that by 
> saying:
> \setupbodyfont[palatino,11pt] % instead of \switchtobodyfont
>
> (setupbodyfont is document-wide)

Thanks, that did the trick.

> Okay. Time to dust off the web pages and insert disclaimers. That's an 
> old article. Euler support got (improved and) included into the ConTeXt 
> core.

That is great.

> Current usage looks something like:
>
> \definetypeface [pal] [rm] [serif] [palatino]
>                   [default] [encoding=texnansi]
> \definetypeface [pal] [tt] [mono]  [modern]
>                   [default] [encoding=texnansi,rscale=1.1]
> \definetypeface [pal] [mm] [math]  [euler]
>                   [euler]   [rscale=1.03]
>
> \loadmapfile[original-ams-euler] % This needs to be added!
>
> \setupbodyfont [pal,11pt]
> \starttext
> This is a test $a \neq \frac{b}{c}$.
> \stoptext
>
> Lengthy explanations aren't on offer tonight, sorry.
> I hope this sets you in the right direction, though.
>

The above setup works perfectly. Thanks a lot.

Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008

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

* Re: Font Question
  2005-12-07 22:46 Font Question Aditya Mahajan
  2005-12-07 23:45 ` Adam Lindsay
@ 2005-12-07 23:55 ` Hans Hagen
  1 sibling, 0 replies; 35+ messages in thread
From: Hans Hagen @ 2005-12-07 23:55 UTC (permalink / raw)


Aditya Mahajan wrote:

> I want to use palatino text with euler math in my document. This is 
> how I proceed.
>
> 1. I downloaded latest mswincontext environment from pragma website.
> 2. To test if palatino works correctly, I tested the simple document.
>
> %---------
> \usetypescript[palatino][texnansi]
> \switchtobodyfont[palatino,11pt]
> \starttext
> This is a test .
> \stoptext
> %---------------
>
> Everything works fine, and the text is in pallatino (the urw clone). 
> However, when I look at fonts included in the document, Latin Modern 
> is also there. I am just curious as how LM got into the document, and 
> can I get rid of it.

(latin modern is used for monospaced in that situation)

you use: \switchtobodyfont[palatino,11pt]  which does an intermediate 
(body text) switch, but not a document wide one (i.e. anything outside 
the running text is not affected); try: \setuptobodyfont[palatino,11pt] 
instead; that concerns teh whole document (beware, usin gthe switch for 
intermediate changes is ok)

Hans

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

* Re: Font Question
  2005-12-07 22:46 Font Question Aditya Mahajan
@ 2005-12-07 23:45 ` Adam Lindsay
  2005-12-08  0:05   ` Aditya Mahajan
  2005-12-07 23:55 ` Hans Hagen
  1 sibling, 1 reply; 35+ messages in thread
From: Adam Lindsay @ 2005-12-07 23:45 UTC (permalink / raw)


Hi Aditya.

There are a few issues I think I understand here:

Aditya Mahajan wrote:
> I want to use palatino text with euler math in my document. This is how 
> I proceed.
> 
> 1. I downloaded latest mswincontext environment from pragma website.
> 2. To test if palatino works correctly, I tested the simple document.
> 
> %---------
> \usetypescript[palatino][texnansi]
> \switchtobodyfont[palatino,11pt]
> \starttext
> This is a test .
> \stoptext
> %---------------
> 
> Everything works fine, and the text is in pallatino (the urw clone). 
> However, when I look at fonts included in the document, Latin Modern is 
> also there. I am just curious as how LM got into the document, and can I 
> get rid of it.

You'll find that the page number is latin modern. You can expunge that 
by saying:
\setupbodyfont[palatino,11pt] % instead of \switchtobodyfont

(setupbodyfont is document-wide)

> 3. I am not sure on how to include euler. I looked at Euler in ConTeXt 
> (using Euler math font) by Adam Lindsay. I already have eulervm vf and 
> tfm directories in $TEXMF/fonts/tfm/public/eulervm and 
> $TEXMF/fonts/vf/public/eulervm
> 
> There is a math-eul.tex at $TEXMFLOCAL/tex/context/base. The My Way by 
> Adam says that I also need type-eul.tex, but I do not know where to get 
> it from. I tried

Okay. Time to dust off the web pages and insert disclaimers. That's an 
old article. Euler support got (improved and) included into the ConTeXt 
core.

Current usage looks something like:

\definetypeface [pal] [rm] [serif] [palatino]
                    [default] [encoding=texnansi]
\definetypeface [pal] [tt] [mono]  [modern]
                    [default] [encoding=texnansi,rscale=1.1]
\definetypeface [pal] [mm] [math]  [euler]
                    [euler]   [rscale=1.03]

\loadmapfile[original-ams-euler] % This needs to be added!

\setupbodyfont [pal,11pt]
\starttext
This is a test $a \neq \frac{b}{c}$.
\stoptext

> %-----------------
> \usetypescript[palatino][texnansi]
> \switchtobodyfont[palatino,11pt]
> 
> \usetypescriptfile[type-eul]
> \usetypescript[eul]
> \switchtobodyfont[eul]
> 
> \starttext
> This is a test  and $a = b$.
> \stoptext
> %---------------------
> I do not get any errors while compiling, but the math is not euler. The 
> output is same if I comment the three lines containing eul. The log is 
> at the end of the email.
> 
> I do not really understand how fonts in Context work. Can someone please 
> explain what is going wrong and how can I get pallatino+euler working.

Lengthy explanations aren't on offer tonight, sorry.
I hope this sets you in the right direction, though.

adam

> 
> 
> %------------log----------------
> 
> This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5) 
> (format=cont-en 2005.11.30)  7 DEC 2005 17:43
> entering extended mode
> \write18 enabled.
> **test.tex \emergencyend
> (./test.tex
> 
> ConTeXt  ver: 2005.11.30  fmt: 2005.11.30  int: english  mes: english
> 
> language        : language en is active
> <protectionstate 0>
> system          : cont-new loaded
> (e:\context\tex\texmf-local/tex/context/base/cont-new.tex
> systems         : beware: some patches loaded from cont-new.tex
> color           : palette rollover is available
> )
> system          : cont-old loaded
> (e:\context\tex\texmf-local/tex/context/base/cont-old.tex
> loading         : Context Old Macros
> )
> system          : cont-fil loaded
> (e:\context\tex\texmf-local/tex/context/base/cont-fil.tex
> loading         : Context File Synonyms
> )
> system          : cont-sys loaded
> (e:\context\tex\texmf-local/tex/context/user/cont-sys.tex)
> bodyfont        : 12pt rm is loaded
> language        : patterns nl->texnansi:texnansi->1->2:2 
> nl->ec:ec->2->2:2 fr->
> texnansi:texnansi->3->2:2 fr->ec:ec->4->2:2 
> de->texnansi:texnansi->5->2:2 de->e
> c:ec->6->2:2 it->texnansi:texnansi->7->2:2 it->ec:ec->8->2:2 
> pt->texnansi:texna
> nsi->9->2:2 pt->ec:ec->10->2:2 hr->ec:ec->11->2:2 pl->pl0:pl0->12->2:2 
> pl->ec:e
> c->13->2:2 pl->qx:qx->14->2:2 cz->il2:il2->15->2:2 cz->ec:ec->16->2:2 
> sk->il2:i
> l2->17->2:2 sk->ec:ec->18->2:2 sl->il2:il2->19->2:2 sl->ec:ec->20->2:2 
> en->ec:e
> c->22->2:2 da->ec:ec->23->2:2 sv->ec:ec->24->2:2 af->ec:ec->25->2:2 
> no->ec:ec->
> 26->2:2 deo->ec:ec->27->2:2 uk->ec:ec->28->2:2 us->ec:ec->29->2:2 
> es->ec:ec->30
> ->2:2 ca->ec:ec->31->2:2 la->ec:ec->32->2:2 ro->ec:ec->33->2:2 
> tr->ec:ec->34->2
> :2 fi->ec:ec->36->2:2 hu->ec:ec->37->2:2 loaded
> specials        : tex,postscript,rokicki loaded
> \openout2 = `test.tui'.
> 
> system          : test.top loaded
> (./test.top
> specials        : loading definition file tpd
> (e:\context\tex\texmf-local/tex/context/base/spec-tpd.tex
> specials        : loading definition file fdf
> (e:\context\tex\texmf-local/tex/context/base/spec-fdf.tex)
> specials        : fdf loaded
> )
> specials        : fdf,tpd loaded
> )
> \openout0 = `test-mpgraph.mp'.
> 
> \openout0 = `mpgraph.mp'.
> 
>  (e:\context\tex\texmf-local/tex/context/base/type-exa.tex
> (e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-map.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-map.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-map.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-map.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-map.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-map.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-buy.tex)) (./test.tuo)
> (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) 
> (./test.tuo)
> (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) 
> (./test.tuo)
> systems         : begin file test at line 8
> 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
> fonts           : using map file: texnansi-base
> fonts           : using map file: texnansi-urw-palatino
> fonts           : using map file: original-youngryu-px
> fonts           : using map file: texnansi-public-lm
> [1.1{e:\context\tex\texmf-local/fonts/map/pdftex/context/original-empty.map}{e: 
> 
> \context\tex\texmf-local/fonts/map/pdftex/context/original-base.map}{e:\context 
> 
> \tex\texmf-local/fonts/map/pdftex/context/ec-public-lm.map}{e:\context\tex\texm 
> 
> f-local/fonts/map/pdftex/context/ec-base.map}{e:\context\tex\texmf-local/fonts/ 
> 
> map/pdftex/context/original-ams-base.map}{e:\context\tex\texmf-local/fonts/map/ 
> 
> pdftex/context/original-public-lm.map}{e:\context\tex\texmf-local/fonts/map/pdf 
> 
> tex/context/texnansi-base.map}{e:\context\tex\texmf-fonts/fonts/map/pdftex/cont 
> 
> ext/texnansi-urw-palatino.map}{e:\context\tex\texmf-local/fonts/map/pdftex/cont 
> 
> ext/original-youngryu-px.map}{e:\context\tex\texmf-local/fonts/map/pdftex/conte 
> 
> xt/texnansi-public-lm.map}]
> systems         : end file test at line 10
>  )
> Here is how much of TeX's memory you used:
>  2006 strings out of 211042
>  39210 string characters out of 1373258
>  2535649 words of memory out of 4043974
>  38107 multiletter control sequences out of 10000+75000
>  160348 words of font info for 122 fonts, out of 1000000 for 2000
>  232 hyphenation exceptions out of 8191
>  45i,18n,61p,334b,632s stack positions out of 
> 10000i,500n,6000p,200000b,40000s
> PDF statistics:
>  16 PDF objects out of 300000
>  0 named destinations out of 131072
>  1 words of extra memory for PDF output out of 10000
> <e:\context\tex\texmf/fonts/type1/public/pxfonts/rpxr.pfb>{e:\context\tex\tex 
> 
> mf/fonts/enc/dvips/base/8r.enc}<e:\context\tex\texmf/fonts/type1/urw/palatino/u 
> 
> plri8a.pfb>{e:\context\tex\texmf/fonts/enc/dvips/base/texnansi.enc}<e:\context\ 
> 
> tex\texmf/fonts/type1/urw/palatino/uplr8a.pfb>{e:\context\tex\texmf/fonts/enc/d 
> 
> vips/lm/lm-ec.enc}<e:\context\tex\texmf/fonts/type1/public/lm/lmr12.pfb>
> Output written on test.pdf (1 page, 35542 bytes).
> 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
  Lancaster University, InfoLab21        +44(0)1524/510.514
  Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Font Question
@ 2005-12-07 22:46 Aditya Mahajan
  2005-12-07 23:45 ` Adam Lindsay
  2005-12-07 23:55 ` Hans Hagen
  0 siblings, 2 replies; 35+ messages in thread
From: Aditya Mahajan @ 2005-12-07 22:46 UTC (permalink / raw)


I want to use palatino text with euler math in my document. This is 
how I proceed.

1. I downloaded latest mswincontext environment from pragma website.
2. To test if palatino works correctly, I tested the simple document.

%---------
\usetypescript[palatino][texnansi]
\switchtobodyfont[palatino,11pt]
\starttext
This is a test .
\stoptext
%---------------

Everything works fine, and the text is in pallatino (the urw clone). 
However, when I look at fonts included in the document, Latin Modern 
is also there. I am just curious as how LM got into the document, and 
can I get rid of it.

3. I am not sure on how to include euler. I looked at Euler in ConTeXt 
(using Euler math font) by Adam Lindsay. I already have eulervm vf and 
tfm directories in $TEXMF/fonts/tfm/public/eulervm and 
$TEXMF/fonts/vf/public/eulervm

There is a math-eul.tex at $TEXMFLOCAL/tex/context/base. The My Way by 
Adam says that I also need type-eul.tex, but I do not know where to 
get it from. I tried
%-----------------
\usetypescript[palatino][texnansi]
\switchtobodyfont[palatino,11pt]

\usetypescriptfile[type-eul]
\usetypescript[eul]
\switchtobodyfont[eul]

\starttext
This is a test  and $a = b$.
\stoptext
%---------------------
I do not get any errors while compiling, but the math is not euler. 
The output is same if I comment the three lines containing eul. The 
log is at the end of the email.

I do not really understand how fonts in Context work. Can someone 
please explain what is going wrong and how can I get pallatino+euler 
working.

Thanks
Aditya




%------------log----------------

This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5) 
(format=cont-en 2005.11.30)  7 DEC 2005 17:43
entering extended mode
\write18 enabled.
**test.tex \emergencyend
(./test.tex

ConTeXt  ver: 2005.11.30  fmt: 2005.11.30  int: english  mes: english

language        : language en is active
<protectionstate 0>
system          : cont-new loaded
(e:\context\tex\texmf-local/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
color           : palette rollover is available
)
system          : cont-old loaded
(e:\context\tex\texmf-local/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(e:\context\tex\texmf-local/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys loaded
(e:\context\tex\texmf-local/tex/context/user/cont-sys.tex)
bodyfont        : 12pt rm is loaded
language        : patterns nl->texnansi:texnansi->1->2:2 
nl->ec:ec->2->2:2 fr->
texnansi:texnansi->3->2:2 fr->ec:ec->4->2:2 
de->texnansi:texnansi->5->2:2 de->e
c:ec->6->2:2 it->texnansi:texnansi->7->2:2 it->ec:ec->8->2:2 
pt->texnansi:texna
nsi->9->2:2 pt->ec:ec->10->2:2 hr->ec:ec->11->2:2 pl->pl0:pl0->12->2:2 
pl->ec:e
c->13->2:2 pl->qx:qx->14->2:2 cz->il2:il2->15->2:2 cz->ec:ec->16->2:2 
sk->il2:i
l2->17->2:2 sk->ec:ec->18->2:2 sl->il2:il2->19->2:2 sl->ec:ec->20->2:2 
en->ec:e
c->22->2:2 da->ec:ec->23->2:2 sv->ec:ec->24->2:2 af->ec:ec->25->2:2 
no->ec:ec->
26->2:2 deo->ec:ec->27->2:2 uk->ec:ec->28->2:2 us->ec:ec->29->2:2 
es->ec:ec->30
->2:2 ca->ec:ec->31->2:2 la->ec:ec->32->2:2 ro->ec:ec->33->2:2 
tr->ec:ec->34->2
:2 fi->ec:ec->36->2:2 hu->ec:ec->37->2:2 loaded
specials        : tex,postscript,rokicki loaded
\openout2 = `test.tui'.

system          : test.top loaded
(./test.top
specials        : loading definition file tpd
(e:\context\tex\texmf-local/tex/context/base/spec-tpd.tex
specials        : loading definition file fdf
(e:\context\tex\texmf-local/tex/context/base/spec-fdf.tex)
specials        : fdf loaded
)
specials        : fdf,tpd loaded
)
\openout0 = `test-mpgraph.mp'.

\openout0 = `mpgraph.mp'.

  (e:\context\tex\texmf-local/tex/context/base/type-exa.tex
(e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
(e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
(e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
(e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
(e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
(e:\context\tex\texmf-local/tex/context/base/type-map.tex)
(e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
(e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
(e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
(e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
(e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
(e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
(e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
(e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
(e:\context\tex\texmf-local/tex/context/base/type-map.tex)
(e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
(e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
(e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
(e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
(e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
(e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
(e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
(e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
(e:\context\tex\texmf-local/tex/context/base/type-map.tex)
(e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
(e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
(e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
(e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
(e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
(e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
(e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
(e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
(e:\context\tex\texmf-local/tex/context/base/type-map.tex)
(e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
(e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
(e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
(e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
(e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
(e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
(e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
(e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
(e:\context\tex\texmf-local/tex/context/base/type-map.tex)
(e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
(e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
(e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
(e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
(e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
(e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
(e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
(e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
(e:\context\tex\texmf-local/tex/context/base/type-map.tex)
(e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
(e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
(e:\context\tex\texmf-local/tex/context/base/type-buy.tex)) 
(./test.tuo)
(./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) 
(./test.tuo)
(./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) 
(./test.tuo)
systems         : begin file test at line 8
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
fonts           : using map file: texnansi-base
fonts           : using map file: texnansi-urw-palatino
fonts           : using map file: original-youngryu-px
fonts           : using map file: texnansi-public-lm
[1.1{e:\context\tex\texmf-local/fonts/map/pdftex/context/original-empty.map}{e:
\context\tex\texmf-local/fonts/map/pdftex/context/original-base.map}{e:\context
\tex\texmf-local/fonts/map/pdftex/context/ec-public-lm.map}{e:\context\tex\texm
f-local/fonts/map/pdftex/context/ec-base.map}{e:\context\tex\texmf-local/fonts/
map/pdftex/context/original-ams-base.map}{e:\context\tex\texmf-local/fonts/map/
pdftex/context/original-public-lm.map}{e:\context\tex\texmf-local/fonts/map/pdf
tex/context/texnansi-base.map}{e:\context\tex\texmf-fonts/fonts/map/pdftex/cont
ext/texnansi-urw-palatino.map}{e:\context\tex\texmf-local/fonts/map/pdftex/cont
ext/original-youngryu-px.map}{e:\context\tex\texmf-local/fonts/map/pdftex/conte
xt/texnansi-public-lm.map}]
systems         : end file test at line 10
  )
Here is how much of TeX's memory you used:
  2006 strings out of 211042
  39210 string characters out of 1373258
  2535649 words of memory out of 4043974
  38107 multiletter control sequences out of 10000+75000
  160348 words of font info for 122 fonts, out of 1000000 for 2000
  232 hyphenation exceptions out of 8191
  45i,18n,61p,334b,632s stack positions out of 
10000i,500n,6000p,200000b,40000s
PDF statistics:
  16 PDF objects out of 300000
  0 named destinations out of 131072
  1 words of extra memory for PDF output out of 10000
<e:\context\tex\texmf/fonts/type1/public/pxfonts/rpxr.pfb>{e:\context\tex\tex
mf/fonts/enc/dvips/base/8r.enc}<e:\context\tex\texmf/fonts/type1/urw/palatino/u
plri8a.pfb>{e:\context\tex\texmf/fonts/enc/dvips/base/texnansi.enc}<e:\context\
tex\texmf/fonts/type1/urw/palatino/uplr8a.pfb>{e:\context\tex\texmf/fonts/enc/d
vips/lm/lm-ec.enc}<e:\context\tex\texmf/fonts/type1/public/lm/lmr12.pfb>
Output written on test.pdf (1 page, 35542 bytes).

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

* Re: font question
  2002-02-19 21:27       ` Frans Goddijn
  2002-02-20 12:39         ` Bill McClain
@ 2002-02-20 18:47         ` W. Egger
  1 sibling, 0 replies; 35+ messages in thread
From: W. Egger @ 2002-02-20 18:47 UTC (permalink / raw)
  Cc: ntg-context

Hi Frans,

Don't dispare! - I know, that it cost a lot of time but you will see it is
worth to do it. With my small knowledg I got on this issue, I suggest, that
you will prepare a set of typescripts according e.g. to the Sabon example of
Bill. The font mechanism only works when those scripts are present! - If you
want I could send you some other example files which I have written for
fonts for different Corel type 1 fonts.

Sterkte Willi

----- Original Message -----
From: Frans Goddijn <frans@goddijn.com>
To: <ntg-context@ntg.nl>
Sent: Tuesday, February 19, 2002 10:27 PM
Subject: Re: font question

> Thanks, Willi, for this link! I've looked it over and on
> first sight it impresses me with its clarity and at the same
> time it intimidates me to see how immensely complicated it
> is... It's like reading a very well designed book about high
> maths, the pages seem to say "look, this is simple and fun!"
> but when I read the actual text I can't unserstand a single
> line :=)
>
> I'll give it a decent try even though I'm sure it's
> hopeless.
>
> Groet!
>
> Frans
>
> frans@goddijn.com
> www.goddijn.com
>
> ----- Original Message -----
> From: Willi Egger
> To: Frans Goddijn
> Sent: Tuesday, February 19, 2002 7:51 PM
> Subject: Re: font question
>
>
> Hi Frans,
>
> To me it looks like that you have your files on the right
> spots. As far as I
> can understand the new font-mechanism, you  should prepare
> typescriptfiles
> and define typefaces in order to use the owned fonts. I
> suggest, that you
> pay a visit to Bill McCLain's homepage, where he in details
> explains how to
> make the fonts work. There is also an example of a bought
> fotn (Sabon).
>
> http://home.salamander.com/~wmcclain/context-help.html
>
> Groet en Grüße (Weniger Grütze) Willi
>
>
>


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

* Re: font question
  2002-02-19 21:27       ` Frans Goddijn
@ 2002-02-20 12:39         ` Bill McClain
  2002-02-20 18:47         ` W. Egger
  1 sibling, 0 replies; 35+ messages in thread
From: Bill McClain @ 2002-02-20 12:39 UTC (permalink / raw)


Frans Goddijn wrote:
> 
> Thanks, Willi, for this link! I've looked it over and on
> first sight it impresses me with its clarity and at the same
> time it intimidates me to see how immensely complicated it
> is... It's like reading a very well designed book about high
> maths, the pages seem to say "look, this is simple and fun!"
> but when I read the actual text I can't unserstand a single
> line :=)

Like most things (I'm not sure about General Relativity) this is not
complicated once you've been through it. I am learning about ConTeXt
right now and am putting the examples on the web page as soon as I have
something to share. This is the best time to document technical
procedures: when the memory of bewilderment is still fresh. 

I posted a "help a beginner, please" message about a month ago and
received much assistance from Hans Hagen, Giuseppe Bilotta, George White
and others. The web page, apart from documenting my procedures for my
own use, is an expression of gratitude and an attempt to pass on the
favor.

I am putting time into this because I am starting a book publishing
company and TeX is my chosen typesetting tool. (I have the time because
I'm unemployed!)

I just added a typography section to the web page, which includes
material on hanging punctuation, etc:

http://home.salamander.com/~wmcclain/context-help.html.

-Bill


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

* Re: font question
       [not found]     ` <003701c1b976$6ab1c800$0100a8c0@digitpaint.nl>
@ 2002-02-19 21:27       ` Frans Goddijn
  2002-02-20 12:39         ` Bill McClain
  2002-02-20 18:47         ` W. Egger
  0 siblings, 2 replies; 35+ messages in thread
From: Frans Goddijn @ 2002-02-19 21:27 UTC (permalink / raw)


Thanks, Willi, for this link! I've looked it over and on
first sight it impresses me with its clarity and at the same
time it intimidates me to see how immensely complicated it
is... It's like reading a very well designed book about high
maths, the pages seem to say "look, this is simple and fun!"
but when I read the actual text I can't unserstand a single
line :=)

I'll give it a decent try even though I'm sure it's
hopeless.

Groet!

Frans

frans@goddijn.com
www.goddijn.com

----- Original Message -----
From: Willi Egger
To: Frans Goddijn
Sent: Tuesday, February 19, 2002 7:51 PM
Subject: Re: font question

Hi Frans,

To me it looks like that you have your files on the right
spots. As far as I
can understand the new font-mechanism, you  should prepare
typescriptfiles
and define typefaces in order to use the owned fonts. I
suggest, that you
pay a visit to Bill McCLain's homepage, where he in details
explains how to
make the fonts work. There is also an example of a bought
fotn (Sabon).

http://home.salamander.com/~wmcclain/context-help.html

Groet en Grüße (Weniger Grütze) Willi


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

* Re: font question
  2002-02-19 17:22   ` Frans Goddijn
@ 2002-02-19 18:31     ` Bill McClain
       [not found]     ` <003701c1b976$6ab1c800$0100a8c0@digitpaint.nl>
  1 sibling, 0 replies; 35+ messages in thread
From: Bill McClain @ 2002-02-19 18:31 UTC (permalink / raw)
  Cc: NTG-ConTeXt mailing list

Frans Goddijn wrote:
> 
> Thanks Bill for your message. My current problem is that I can't figure out
> why TeX says "Warning: pdfetex.exe (file tir): Font tir at 480 not found --
> Warning: pdfetex.exe (file tii): Font tii at 600 not found" -- I never
> willingly told TeX to look for these "tir" and "tii" files...

You get that sort of message when pdftex cannot find the type1 files and
it tries to fall back and generate bitmap fonts (which don't exist
either).

I haven't been through your setup, but try this just as an experiment.
It will determine if the map file is correct. Create a job with nothing
but these lines:

%****
\font\testRoman=tnr2
\font\testItalic=tnri2
\font\testItalicUpright=tnru2
\font\testRomanSlant=tnro2

\testRoman This is roman.
\testItalic This is italic.
\testItalicUpright This is italic upright.
\testRomanSlant This is roman slant.
%****

Does it run and produce the output you would expect?

-Bill

PS - I'm curious about lines such as these:

> \definefontsynonym [SerifCapsI]                       [tnrexpi]
> \definefontsynonym [OldStyleIt] [Times-RomanSCItalic]

These indicate that ConTeXt would know how to do variants such as
small-caps-italic and old-stype-italic, which I did not think was
possible. I do not see any references in the source. Did it ever work?

-Bill


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

* Re: font question
  2002-02-19 16:32 ` Bill McClain
@ 2002-02-19 17:22   ` Frans Goddijn
  2002-02-19 18:31     ` Bill McClain
       [not found]     ` <003701c1b976$6ab1c800$0100a8c0@digitpaint.nl>
  0 siblings, 2 replies; 35+ messages in thread
From: Frans Goddijn @ 2002-02-19 17:22 UTC (permalink / raw)


Thanks Bill for your message. My current problem is that I can't figure out
why TeX says "Warning: pdfetex.exe (file tir): Font tir at 480 not found --
Warning: pdfetex.exe (file tii): Font tii at 600 not found" -- I never
willingly told TeX to look for these "tir" and "tii" files...

> (1) If the pfb file is under the type1 tree, and...
> (2) if the tfm file is under the tfm tree, and...
> (3) if both of those files are listed on the same line in pdftex.map (or
> other configurable resource), and...
> (4) if the filename database has been refreshed with texhash or mktexlsr
> since any new files were introduced, and...
> (5) if all of the above files can be found with the kpsewhich utility...
>
> ...it should work.

well, again with the remark that I'd fel awful if anyone kept puzzling over
the text below, I just provide them in case anyon sees the glitch in one
glance... Groet! Frans

in ...\texmf\web2c\texmf.cnf:

> TEXMFLOCAL = e:/mytex
> VARTEXFONTS = e:/mytex/fonts

 in \TeXLive\texmf-var\pdftex\config\ :

 1  a file pdftex.cfg with this additional line:
    +fg.map

 2  a file fg.map with lines like:

tnr2       TimesNewRoman            "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <tnr.pfb
tnri2      TimesNewRoman-Italic     "TeXnANSIEncoding ReEncodeFont"
<texnansi.enc <tnri.pfb
tnru2      TimesNewRoman-Italic     "-0.167 SlantFont TeXnANSIEncoding
ReEncodeFont" <texnansi.enc <tnri.pfb
tnro2      TimesNewRoman            " 0.167 SlantFont TeXnANSIEncoding
ReEncodeFont" <texnansi.enc <tnr.pfb

--------

in \mytex\texmf\tex\fonts\type1\fg\ lots of pfb's:

tnr*.pfb   (my times bronfiles, incl expert sets)
helv*.pfb
linoe*.pfb

--------

in \mytex\texmf\tex\fonts\afm\fg\

all my own *.afm   *.ofm   *.pfb files

--------

in ..\fonts\tfm\fg\

all *.tfm files of mine

--------

in my tex-file:

\useencoding[ibm]

\stelkorpsin
  [pos,fg,loc,9pt]

--------

in ..\texmf\tex\context\user\

 a file named  cont-sys.tex

 and in it:

 \definebodyfontenvironment[default][em=italic]

 % FG
 \runMPgraphicstrue
 \setupbodyfont[ber,fg]

--------

also in ..\texmf\tex\context\user\

my file   font-fg.tex

containing lines like

\definefontsynonym [Courier]                          [pcrr]
\definefontsynonym [Courier-Oblique]                  [pcrro]
\definefontsynonym [Courier-Bold]                     [pcrb]
\definefontsynonym [Courier-BoldOblique]              [pcrbo]
\definefontsynonym [Helvetica]                        [helv2]
\definefontsynonym [Helvetica-Oblique]                [helvi2]
\definefontsynonym [Helvetica-Italic]                 [helvi2]
\definefontsynonym [Helvetica-Bold]                   [helvb2]
\definefontsynonym [Helvetica-BoldOblique]            [helvbi2]
\definefontsynonym [Helvetica-BoldItalic]             [helvbi2]
\definefontsynonym [Times-Roman]                      [tnr2]
\definefontsynonym [Times-Italic]                     [tnri2]
\definefontsynonym [Times-Oblique]                    [tnro2]
\definefontsynonym [Times-Bold]                       [tnrb2]
\definefontsynonym [Times-BoldItalic]                 [tnrbi2]
\definefontsynonym [Times-BoldOblique]                [tnrbo2]
\definefontsynonym [Times-RomanSC]                    [tnrexp]
\definefontsynonym [SerifCaps]                        [tnrexp]
\definefontsynonym [SerifCapsI]                       [tnrexpi]
\definefontsynonym [Times-RomanSCItalic]              [tnrexpi]

\definefontsynonym [OldStyle] [Times-RomanSC]

\definefontsynonym [OldStyle] [Times-RomanSC]

\definefontsynonym [OldStyleIt] [Times-RomanSCItalic]

\definefont[osi] [OldStyleIt sa \currentfontscale]

\definefont[oldstyle] [OldStyle sa \currentfontscale]
\def\fgos{\groupedcommand{\oldstyle}{}}

\definefont[oldstyleitalic] [OldStyleIt sa \currentfontscale]
\def\fgosi{\groupedcommand{\oldstyleitalic}{}}

% in nieuwe setup is Serifcaps veranderd in OldStyle
\definefont[myownkaps] [SerifCaps sa \currentfontscale]
\definefont[myownkapsi] [SerifCapsI sa \currentfontscale]
\def\mykap{\groupedcommand{\myownkaps}{}}
\def\mykapi{\groupedcommand{\myownkapsi}{}}

\definefontsynonym [Symbol]                           [psyr]
\definefontsynonym [ZapfChancery]                     [pzcmi]
\definefontsynonym [ZapfDingbats]                     [pzdr]

--------


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

* Re: font question
  2002-02-19 15:04 font question Frans Goddijn
@ 2002-02-19 16:32 ` Bill McClain
  2002-02-19 17:22   ` Frans Goddijn
  0 siblings, 1 reply; 35+ messages in thread
From: Bill McClain @ 2002-02-19 16:32 UTC (permalink / raw)
  Cc: NTG-ConTeXt mailing list

Frans Goddijn wrote:
> 
> Hello again,
> 
> since I can now easily compile a simple test file, I tried to add my
> existing own Times font setup with expert set, following the method I'd
> documented from the time that I worked with my home-cooked installation of
> fpTeX and ConTeXt. I copied the relevant files to the directories I would
> expect this setup to find them (for instance, from the former
> \mytex\fonts\type1\fg to \mytex\texmf\tex\fonts\type1\fg et cetera) but it
> is as hard as it is supposed to be ;=}

My only experience is with Type1 fonts and pdftex, but I have found this
to be true:

(1) If the pfb file is under the type1 tree, and...
(2) if the tfm file is under the tfm tree, and...
(3) if both of those files are listed on the same line in pdftex.map (or
other configurable resource), and...
(4) if the filename database has been refreshed with texhash or mktexlsr
since any new files were introduced, and...
(5) if all of the above files can be found with the kpsewhich utility...

...it should work.

If the fonts are found but some effects are missing (small caps,
old-style figures, etc) then some ConTeXt definitions need to be
adjusted.

-Bill


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

* font question
@ 2002-02-19 15:04 Frans Goddijn
  2002-02-19 16:32 ` Bill McClain
  0 siblings, 1 reply; 35+ messages in thread
From: Frans Goddijn @ 2002-02-19 15:04 UTC (permalink / raw)


Hello again,

since I can now easily compile a simple test file, I tried to add my
existing own Times font setup with expert set, following the method I'd
documented from the time that I worked with my home-cooked installation of
fpTeX and ConTeXt. I copied the relevant files to the directories I would
expect this setup to find them (for instance, from the former
\mytex\fonts\type1\fg to \mytex\texmf\tex\fonts\type1\fg et cetera) but it
is as hard as it is supposed to be ;=}

Now I wonder, is there already a font more or less resembling Times (but not
cmr), including oldstyle numbers? If there isn't I guess I'll just revert
back to cmr and forget extra fonts. It's wonderful to have a font of one's
own but it sure is a pain to re-insert it again and again in the different
new TeX setups... For a simple user like me it might be wiser if I just
hitch-hike along with what's always available in a default setup.

Groet!

Frans


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

end of thread, other threads:[~2008-03-11 14:07 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-02 17:01 Font Question Marco Kuhlmann
2001-08-03 14:01 ` Hans Hagen
2001-08-05 21:02   ` Marco Kuhlmann
2001-08-06  7:42     ` Hans Hagen
2002-02-19 15:04 font question Frans Goddijn
2002-02-19 16:32 ` Bill McClain
2002-02-19 17:22   ` Frans Goddijn
2002-02-19 18:31     ` Bill McClain
     [not found]     ` <003701c1b976$6ab1c800$0100a8c0@digitpaint.nl>
2002-02-19 21:27       ` Frans Goddijn
2002-02-20 12:39         ` Bill McClain
2002-02-20 18:47         ` W. Egger
2005-12-07 22:46 Font Question Aditya Mahajan
2005-12-07 23:45 ` Adam Lindsay
2005-12-08  0:05   ` Aditya Mahajan
2005-12-07 23:55 ` Hans Hagen
2005-12-12 15:32 Henry Blodgiitt
2008-02-29 19:42 Font question Marcin Borkowski
2008-02-29 20:54 ` Hans Hagen
2008-02-29 22:31   ` Marcin Borkowski
2008-02-29 22:57     ` Hans Hagen
2008-03-01  0:17       ` Marcin Borkowski
2008-03-01  0:22         ` Idris Samawi Hamid
2008-03-02  8:48           ` Marcin Borkowski
2008-03-02 13:08             ` Mojca Miklavec
2008-03-02 13:20               ` Wolfgang Schuster
2008-03-04 20:58               ` Marcin Borkowski
2008-03-04 21:09                 ` Wolfgang Schuster
2008-03-04 21:49                   ` Marcin Borkowski
2008-03-05  8:40                 ` Hans Hagen
2008-03-04 22:55     ` Marcin Borkowski
2008-03-05  6:55       ` Thomas A. Schmitz
2008-03-05 14:23         ` Marcin Borkowski
2008-03-05  9:17       ` Taco Hoekwater
2008-03-05 14:29         ` Marcin Borkowski
2008-03-11 14:07         ` Marcin Borkowski

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