ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* No underscore in FLOWchart module
@ 2002-08-27 14:13 Nigel King
  2002-08-29 22:25 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Nigel King @ 2002-08-27 14:13 UTC (permalink / raw)


In the FLOWchart module underscore is not allowed which is unfortunate since
underscores are used so often in software. I include MPgraphic test to show
that the problem is not there.

% minimum test file to demonstrate underscore error
\usemodule[chart]
\starttext
$a_b$

\type{c_d}

\startuseMPgraphic{graphicname}
label(btex \type{e_f} etex, origin);
\stopuseMPgraphic
\useMPgraphic{graphicname}

\setupFLOWcharts
    [nx=1,ny=1,
    dx=1.5\bodyfontsize,dy=1\bodyfontsize,
    width=8\bodyfontsize,height=5\bodyfontsize,
    maxwidth=\textwidth]
\startFLOWchart[test]
    \startFLOWcell
        \name    {start}
        \location    {1,1}
        \shape    {node}
        \text    {\type{g_h}}
    \stopFLOWcell
\stopFLOWchart
\FLOWchart[test]
\stoptext

! Extra }, or forgotten $.
\FLOWtext ->\type {g_h}

\doprocessFLOWcellD ...OWshapeheight ] {\FLOWtext
                                                  }}\showFLOWhelp 0 \ifx
\FL...

\startFLOWcell ...essFLOWcellD \FLOWlocation \end
                                                  \let \connection
\doFLOWco...
l.6 ^^I\stopFLOWcell

? <to be read again>
                   _
\FLOWtext ->\type {g_
                     h}
\doprocessFLOWcellD ...OWshapeheight ] {\FLOWtext
                                                  }}\showFLOWhelp 0 \ifx
\FL...

\startFLOWcell ...essFLOWcellD \FLOWlocation \end
                                                  \let \connection
\doFLOWco...
l.6 ^^I\stopFLOWcell

? 

-- 
Nigel


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

* Re: No underscore in FLOWchart module
  2002-08-27 14:13 No underscore in FLOWchart module Nigel King
@ 2002-08-29 22:25 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2002-08-29 22:25 UTC (permalink / raw)
  Cc: ntg-context

At 03:13 PM 8/27/2002 +0100, Nigel King wrote:
>\usemodule[chart]
>\starttext
>$a_b$
>
>\type{c_d}
>
>\startuseMPgraphic{graphicname}
>label(btex \type{e_f} etex, origin);
>\stopuseMPgraphic
>\useMPgraphic{graphicname}
>
>\setupFLOWcharts
>     [nx=1,ny=1,
>     dx=1.5\bodyfontsize,dy=1\bodyfontsize,
>     width=8\bodyfontsize,height=5\bodyfontsize,
>     maxwidth=\textwidth]
>\startFLOWchart[test]
>     \startFLOWcell
>         \name    {start}
>         \location    {1,1}
>         \shape    {node}
>         \text    {\type{g_h}}

here _ is passed in argument, and therefore frozen to math

could be solved (ith trading in some functionality) with etex hacking

>     \stopFLOWcell
>\stopFLOWchart
>\FLOWchart[test]
>\stoptext

% in cont-new.tex

\def\obeysupersubletters
   {\let\super\normalsuper
    \let\suber\normalsuber
    \let\normalsuper\letterhat
    \let\normalsuber\letterunderscore
    \enablesupersub}

wherever you want:

\obeysupersubletters

-------------------------------------------------------------------------
                                   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] 2+ messages in thread

end of thread, other threads:[~2002-08-29 22:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-27 14:13 No underscore in FLOWchart module Nigel King
2002-08-29 22:25 ` Hans Hagen

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