From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Till Tantau <tantau@tcs.uni-luebeck.de>
Subject: Re: tikz
Date: Tue, 21 Jul 2009 23:22:55 +0200 [thread overview]
Message-ID: <4A6631AF.3060300@wxs.nl> (raw)
In-Reply-To: <6faad9f00907211202y35df7540r402d24c8070fc977@mail.gmail.com>
Mojca Miklavec wrote:
> On Tue, Jul 21, 2009 at 14:25, R. Bastian wrote:
>> Hello,
>>
>> i try to use tikz:
>>
>> \usemodule[tikz]
>> \usebodyfont [sansserif, 10pt]
>> ...
>> \starttikzpicture[]
>> \draw (0cm, 0cm) -- (5cm, 5cm) node {vous êtes ici};
>> \stoptikzpicture
>>
>> the text in the figure is not 'sansserif' but cmr-like.
>>
>> How can I get the same 'sansserif' than in the body ?
>
> TikZ does the following:
>
> \def\pgfutil@font@tiny{\tfxx} % How to do this correctly?
\small or \txx
> \def\pgfutil@font@scriptsize{\tfxx}
> \def\pgfutil@font@footnotesize{\tfx}
> \def\pgfutil@font@small{\tfx}
> \def\pgfutil@font@normalsize{\tf}
> \def\pgfutil@font@large{\tfa}
> \def\pgfutil@font@Large{\tfb}
> \def\pgfutil@font@huge{\tfc}
> \def\pgfutil@font@Huge{\tfc}
> \def\pgfutil@font@itshape{\it}
> \def\pgfutil@font@bfseries{\bf}
> \let\pgfutil@font@normalfont=\rm
> \let\pgfutil@selectfont=\rm
>
> So it basically forces "\rm" switch at the beginning of every label.
> You get even more weird results with the following (text is LM, but
> math is iwona):
>
> \usemodule[tikz]
> \enableregime[utf-8]
> \usetypescript[iwona][ec]
> \setupbodyfont[iwona]
> \starttext
> \tikz \draw (0cm, 0cm) -- (5cm, 5cm) node {this is cm, but $math\in\Im νοnα$};
> \stoptext
>
> So the question is: what command should TikZ use to switch to "normal"
> font? I have tried replacing \rm with \tf and then iwona started
> working properly. What do others think? Should we request replacing
> \rm by \tf in TikZ?
>
> 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
> ___________________________________________________________________________________
--
-----------------------------------------------------------------
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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-07-21 21:22 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-21 12:25 tikz R. Bastian
[not found] ` <6faad9f00907210531q45075141r445e4c0fd2eddc54@mail.gmail.com>
2009-07-21 16:44 ` tikz R. Bastian
2009-07-21 17:17 ` tikz Wolfgang Schuster
2009-07-21 17:24 ` tikz Mojca Miklavec
2009-07-21 18:34 ` tikz R. Bastian
2009-07-21 18:41 ` tikz Wolfgang Schuster
2009-07-21 19:02 ` tikz Mojca Miklavec
2009-07-21 21:22 ` Hans Hagen [this message]
2009-07-21 23:15 ` tikz Mojca Miklavec
2009-07-22 7:44 ` tikz Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2019-11-27 15:42 tikz Ursula Hermann
2019-11-27 15:51 ` tikz Henning Hraban Ramm
2019-11-27 17:06 ` tikz Martin Althoff
2019-11-27 17:46 ` tikz Eric Détrez
2019-11-27 23:01 ` tikz Alan Braslau
2009-10-01 5:42 Tikz David Arnold
2009-10-01 5:58 ` Tikz luigi scarso
2009-10-01 6:10 ` Tikz David Arnold
2009-10-01 6:17 ` Tikz luigi scarso
2009-10-01 6:22 ` Tikz David Arnold
2009-10-01 6:45 ` Tikz Thomas A. Schmitz
2009-10-01 7:38 ` Tikz luigi scarso
2009-10-01 11:30 ` Tikz Peter Münster
2009-10-01 11:25 ` Tikz Peter Münster
2009-10-01 16:51 ` Tikz David Arnold
2007-08-09 16:19 tikz Idris Samawi Hamid
2007-08-09 16:28 ` tikz Hans Hagen
2007-08-09 17:43 ` tikz Aditya Mahajan
2007-08-09 18:00 ` tikz Idris Samawi Hamid
2007-08-09 18:35 ` tikz Aditya Mahajan
2007-08-10 8:36 ` tikz Mojca Miklavec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A6631AF.3060300@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
--cc=tantau@tcs.uni-luebeck.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).