ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Subject: Re: gnuplot mode
Date: Thu, 16 Feb 2006 12:43:19 +0100	[thread overview]
Message-ID: <6faad9f00602160343r37eb1027q4cf87d0fe5564644@mail.gmail.com> (raw)
In-Reply-To: <43F441A2.1090905@nibua-r.org>

On 2/15/06, Renaud AUBIN wrote:
>
>  I'm trying to use the gnuplot mode (texlive+ ConTeXt 2006.02.03) and the
> command texexec --pdf --mode=demo m-gnuplot results in a m-gnuplot.pdf where
> only the png is correctly displayed... All the m-gnuplot-gnuplot-*.pdf are
> unknown...
>
>  I assume I have missed something... But what ?

Not necessary. Gnuplot module might be a bit stubborn. I had many
problems, but they might have different reasons since many sifferent
pieces of software are sticked together:
- mp wanted to use cmr10, but that font was missing on standalone ConTeXt distr.
- texmfstart missing under windows
- gnuplot terminal compiled without pdf terminal
- missing TEXSYSTEM=miktex on windows box (or (p)gnuplot not present in path)
- on my personal I failed to compile gnuplot properly in order to produce PNGs
- serious problems with mptopdf under windows (CRITICAL!!!)

> Moreover, I use lucida fonts in my document. How to use lucida with this
> method ?

It depends on terminal. With PostScript terminal you can't do math.
With Metapost you can do math, but don't ask me how to change fonts to
lucida (try read "help terminal mp" if it helps you). Anyway I'm
affraid that you won't get lucida for math that way.

(I'll try to improve the metapost terminal a bit, but I have no idea
what to do with fonts.)

Perhaps you could use LaTeX (or any other LaTeX-related terminal like
PSTricks for that), but this is not supported by the module yet.

However, read my other mail(s) that I'll send today about "set
terminal context". (I don't find any of the existing terminals good
enough, so I would like to make a superior one.)

>  I have a working example with
> \setupGNUPLOT[method=mp,option="hlhr8r"] but the math gives
> CM... Moreover, how to deals $\vec{x}$ or \Milli \Meter for example ?

Forget about ConTeXt commands with "method=mp". This makes plain
metapost files and labes are processed with plain TeX, which doesn't
have any idea about the fonts you use in the document.

If you manage to make lucida work with plain TeX, the only option I
currently see is something like
    set title '{\input my-defs \bf Title}'
where you store your definitions in a separate file or
    set title '{\font\a=hlhr8r sa 2 \a Title}'
(just guessing, I don't know the exact syntax).

But you probably don't want to do that.

>  This time, I eventually use LaTeX with \usepackage{lucidabr} and "set term
> pst" to produce .ps, then use ps2epsi to obtain an .eps with a correct
> bounding box and to finish psttopdf. I include the resulting .pdf with the
> standard method... It is not the easy way !

That's what I was talking about a bit earlier.

Hans, would it be possible to support pst terminal as well (PSTricks I
suppose)? This one needs more than one command to get the resulting
pdf I suppose. (I won't need it, but if there are other users who
could make use of it ...)

>  Now, considering the gnuplot module: I have seen that in the resulting
> .gpd, there is a lot of ";" . Since all my .gp scripts are empty of ";" at
> the end of lines, I'm asking if this is correct ?

Ask Hans. I don't know why he likes them so much (I would remove
them), but they should be harmless. They're there because of
    \def\obeyedline{;\systemendofline}%

-----------------------------------

And a final word: I finally installed "something to compile gnuplot
with" yesterday. I have the first pre-alpha ;) "set terminal context"
working and I will need both Hans and Taco's hand as well as
gnuplot/metafun users to help me with
suggestions/requests/brainstorming about how to implement certain
parts, so that the output will remain highly configurable regarding
fonts, colors & styles, but more about that in another mail.

(Some serious problems with mptopdf on windows disturb me a lot, but I
hope I'll find a way out. I can't make textext work, so I'm using the
standalone ConTeXt in the moment, but this has to be fixed for other
MikTeX users as well.)

Mojca


On 2/16/06, Adam Lindsay wrote:
> And for the text versions? That's what I was offering, to do a lot of:
>
> \starttypescript [serif] [lucida] [texnansi]
>    \definefontsynonym [texnansi-lbr]   [hlhr8y]  [encoding=texnansi]
>     etc.

Has nothing to do with Gnuplot, but I agree with Adam.

  reply	other threads:[~2006-02-16 11:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-15 18:16 Renaud AUBIN
2006-02-15 18:51 ` Taco Hoekwater
2006-02-15 19:10   ` Renaud AUBIN
2006-02-15 20:05     ` Hans Hagen
2006-02-15 20:27       ` Renaud AUBIN
2006-02-15 20:57         ` Renaud AUBIN
2006-02-19 11:37           ` Mojca Miklavec
2006-02-15 21:10         ` Hans Hagen
2006-02-15 21:43           ` Renaud AUBIN
2006-02-15 22:26             ` Hans Hagen
2006-02-15 22:41               ` Renaud AUBIN
2006-02-16  9:10                 ` Renaud AUBIN
2006-02-16 11:43                   ` Mojca Miklavec [this message]
2006-02-16 13:52                     ` Hans Hagen
2006-02-18  5:13                   ` Mojca Miklavec
2006-02-18  9:08                     ` Hans Hagen
2006-02-19 13:08                       ` Mojca Miklavec
2006-02-20 11:12                         ` Hans Hagen
2006-02-15 22:45               ` Adam Lindsay
2006-02-16  9:56                 ` Hans Hagen
2006-02-16 10:03                   ` Adam Lindsay

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=6faad9f00602160343r37eb1027q4cf87d0fe5564644@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).