From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: UTF-8 characters and gnuplot module
Date: Mon, 24 Mar 2008 20:24:49 +0100 [thread overview]
Message-ID: <6faad9f00803241224w4bb52fa1veb4cdcb567a40e1c@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.1.10.0803241527210.4944@leo>
On Mon, Mar 24, 2008 at 3:38 PM, Morgan Brassel <morgan.brassel@free.fr> wrote:
> Hi everyone,
>
> I'm currently learning how to use the gnuplot module (thank you Mojca, and
> all the others, for this great tool!). I stick for now with the metapost
> terminal, as I'm not sure I'd be able to recompile gnuplot in order to add
> the context terminal.
>
> It seems that accents are not supported in gnuplot scripts. In the example
> below, both the methods to typeset accents fail. Is there a solution to
> this? Maybe there is something wrong with my settings...
>
> Best regards,
> Morgan
>
>
> \usemodule[gnuplot]
> \setupGNUPLOT[terminal=mp]
> \startGNUPLOTscript[sin]
> set xlabel "héllo h\'ello"
Try:
set xlabel \detokenize{"h\\'ello"}
Actually, one needs to escape backslash in gnuplot (that's a general
rule). I'm sorry for not noticing that fact before.
Just keep in mind that \detokenize is an ugly workaround (you could
consider it a bug in t-gnuplot.tex, but I have no idea how to fix it).
It would be easiest if
\startbuffer[name][continue/append]
some werbatim text
\stopbuffer
would work - then I would misuse that mechanism instead of doing dirty
catcode changes. (I also need to ask either magician for help to port
that part to mkiv; in XeTeX it seems to work OK.)
> plot sin(x)
> \stopGNUPLOTscript
> \starttext
> \useGNUPLOTgraphic[sin]
> \stoptext
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
___________________________________________________________________________________
prev parent reply other threads:[~2008-03-24 19:24 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-24 14:38 Morgan Brassel
2008-03-24 15:53 ` Mojca Miklavec
2008-03-24 16:03 ` Mojca Miklavec
2008-03-24 16:35 ` Morgan Brassel
2008-03-24 17:21 ` Mojca Miklavec
2008-03-24 18:52 ` Ethan Merritt
2008-03-24 20:14 ` Mojca Miklavec
2008-03-24 22:02 ` Hans Hagen
2008-03-24 22:21 ` Mojca Miklavec
2008-03-24 22:43 ` Hans Hagen
2008-03-25 14:28 ` Morgan Brassel
2008-03-25 14:55 ` Mojca Miklavec
2008-03-25 15:57 ` Morgan Brassel
2008-03-25 17:11 ` Mojca Miklavec
2008-03-25 20:24 ` Henning Hraban Ramm
2008-03-26 8:05 ` Taco Hoekwater
2008-03-26 9:28 ` Mojca Miklavec
2008-03-24 19:24 ` Mojca Miklavec [this message]
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=6faad9f00803241224w4bb52fa1veb4cdcb567a40e1c@mail.gmail.com \
--to=mojca.miklavec.lists@gmail.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).