ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Fonts and Textelements
@ 2003-04-16 22:48 alkauffm
  2003-04-17  6:52 ` Patrick Gundlach
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: alkauffm @ 2003-04-16 22:48 UTC (permalink / raw)


Hi all,

I want to typeset some texts with palatino fonts. Of course, all elements of
the text on the page including pagenumbers, equationnumbers, footnotes and
so on should be typesetted with Palatino. With the following testfile I
get only the maintext and the equations with the right fonts. The
other elements are typesetted with cmr-fonts. What Do I wrong?

With many thanks for any hint
Albrecht 

\setupoutput[pdftex]
\setupfontsynonym [Serif] [handling=punctuation]
\setupfontsynonym [Sans]  [handling=punctuation]
\setupfontsynonym [Mono]  [handling=punctuation]
\usetypescript [berry] [ec]
\definetypeface [postscript] [rm] [serif] [palatino] [default]
\definetypeface [postscript] [ss] [sans] [helvetica] [default] [rscale=.9]
\definetypeface [postscript] [tt] [mono] [courier][default][rscale=.9]
\definetypeface [postscript] [mm] [math] [palatino] [default] [encoding=ec]

\switchtotypeface [postscript] [11pt]
\setupalign [hanging]
\starttext
\input tufte
{\sc Tufte}\footnote{abcdefgh {\sc Tufte}}

\placeformula $$E=mc^2$$
\placeformula $$\Delta E=\Delta mc^2$$

\ss \input tufte

\tt \input tufte
\stoptext

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

* Re: Fonts and Textelements
  2003-04-16 22:48 Fonts and Textelements alkauffm
@ 2003-04-17  6:52 ` Patrick Gundlach
  2003-04-17  7:17 ` Hans Hagen
  2003-04-21 21:01 ` John Culleton
  2 siblings, 0 replies; 4+ messages in thread
From: Patrick Gundlach @ 2003-04-17  6:52 UTC (permalink / raw)


alkauffm@rz.uni-potsdam.de writes:

Hi,


> \switchtotypeface [postscript] [11pt]

\setupbodyfont[postscript,11pt]


> \setupalign [hanging]
> \starttext
> \input tufte
> {\sc Tufte}\footnote{abcdefgh {\sc Tufte}}
>
> \placeformula $$E=mc^2$$
> \placeformula $$\Delta E=\Delta mc^2$$

don't use $$, spacing gets wrong. Use \startformula...\stopformula instead


Patrick (... does not like too much math)

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

* Re: Fonts and Textelements
  2003-04-16 22:48 Fonts and Textelements alkauffm
  2003-04-17  6:52 ` Patrick Gundlach
@ 2003-04-17  7:17 ` Hans Hagen
  2003-04-21 21:01 ` John Culleton
  2 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2003-04-17  7:17 UTC (permalink / raw)


At 00:48 17/04/2003 +0200, alkauffm@rz.uni-potsdam.de wrote:
>Hi all,
>
>I want to typeset some texts with palatino fonts. Of course, all elements of
>the text on the page including pagenumbers, equationnumbers, footnotes and
>so on should be typesetted with Palatino. With the following testfile I
>get only the maintext and the equations with the right fonts. The
>other elements are typesetted with cmr-fonts. What Do I wrong?
>
>With many thanks for any hint
>Albrecht
>
>\setupoutput[pdftex]
>\setupfontsynonym [Serif] [handling=punctuation]
>\setupfontsynonym [Sans]  [handling=punctuation]
>\setupfontsynonym [Mono]  [handling=punctuation]
>\usetypescript [berry] [ec]
>\definetypeface [postscript] [rm] [serif] [palatino] [default]
>\definetypeface [postscript] [ss] [sans] [helvetica] [default] [rscale=.9]
>\definetypeface [postscript] [tt] [mono] [courier][default][rscale=.9]
>\definetypeface [postscript] [mm] [math] [palatino] [default] [encoding=ec]
>
>\switchtotypeface [postscript] [11pt]

a \switchto... only changes the running text, while \setup... changes the 
page ornaments as well,

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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: Fonts and Textelements
  2003-04-16 22:48 Fonts and Textelements alkauffm
  2003-04-17  6:52 ` Patrick Gundlach
  2003-04-17  7:17 ` Hans Hagen
@ 2003-04-21 21:01 ` John Culleton
  2 siblings, 0 replies; 4+ messages in thread
From: John Culleton @ 2003-04-21 21:01 UTC (permalink / raw)


> \setupfontsynonym [Serif] [handling=punctuation]

I do not find this command in any manual. Is it the same
thing as \definefontsynomym?

More generally, how does \definefoo differ from \setupfoo
where foo is some context macro call?

John Culleton



____________________________________________________________
Free 20MB Web Site Hosting and Personalized E-mail Service!
Get It Now At Doteasy.com http://www.doteasy.com/et/

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

end of thread, other threads:[~2003-04-21 21:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-16 22:48 Fonts and Textelements alkauffm
2003-04-17  6:52 ` Patrick Gundlach
2003-04-17  7:17 ` Hans Hagen
2003-04-21 21:01 ` John Culleton

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