ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Martin Althoff <martin.althoff@yahoo.com>
Subject: Re: tikz problem with fontsize
Date: Sat, 31 Aug 2019 22:00:32 +0200	[thread overview]
Message-ID: <4ed79fa0-0c90-99de-80ea-3ae9aafbc957@xs4all.nl> (raw)
In-Reply-To: <ae8a0c953553a71b5f43f893a93b3a911430809b.camel@yahoo.com>

On 8/31/2019 9:44 PM, Martin Althoff wrote:
> Hello all, I am trying to set the fontsize in a tikz image and that is failing. Strangely
> at the \node line with : ! Undefined control sequence.
> 
> As the MWE stands now, it will fail. The now commented line works.
> 
> main context file: /usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
> current version: 2019.08.24 22:42
> 
> The fontsize statement work in kTikz.
> 
> What to do? Are there other ways to change font size in the Context TikZ?
> 
> Thanks for any input!
> 
> Martin
> 
> 
> \usemodule[tikz]
> \starttext
> 
> \starttikzpicture
> 
> \tikzstyle{label}=[minimum size=30mm,line
> width=2mm,draw=blue!50,align=center,font=\fontsize{60}{60}\selectfont]
> %\tikzstyle{label}=[minimum size=30mm,line width=2mm,draw=blue!50,align=center]
> 
> \node[label]  at  (1,1)  {88} ;
> \stoptikzpicture
> \stoptext
just use context font commands, like

\tikzstyle{label}=[minimum size=30mm,line 
width=2mm,draw=blue!50,align=center,
font=\bfx]

but i think you can also do more, like

\tikzstyle{label}=[minimum size=30mm,line 
width=2mm,draw=blue!50,align=center,
font=\bfx\red\setstrut]

and such

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2019-08-31 20:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-31 19:44 Martin Althoff
2019-08-31 20:00 ` Hans Hagen [this message]
2019-09-01  7:21   ` Martin Althoff
2019-09-01 11:05     ` Hans Hagen
2019-09-01 14:25       ` Ulrike Fischer
2019-09-02  4:49         ` Martin Althoff
2019-09-01 15:40 ` Aditya Mahajan

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=4ed79fa0-0c90-99de-80ea-3ae9aafbc957@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=martin.althoff@yahoo.com \
    --cc=ntg-context@ntg.nl \
    /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).