From: Taco Hoekwater <taco@elvenkind.com>
To: Alan BRASLAU <alan.braslau@cea.fr>
Cc: ntg-context@ntg.nl, Florian Unglaub <f.unglaub@googlemail.com>
Subject: Re: Including xfig graphics
Date: Fri, 07 Jan 2011 10:09:47 +0100 [thread overview]
Message-ID: <4D26D85B.4080903@elvenkind.com> (raw)
In-Reply-To: <201101071007.15632.alan.braslau@cea.fr>
On 01/07/2011 10:07 AM, Alan BRASLAU wrote:
> Hello,
>
> Ultimately, you will probably be more satisfied using Metapost graphics
> "natively" within ConTeXt. With xfig, you can export to Metapost.
> This code can probably be directly used by ConTexT, or perhaps with
> minor modifications.
I did a quick test, and the transfig mp code starts with this nice (!)
block of verbatimtex:
% +MP-ADDITIONAL-HEADER
verbatimtex
%&latex
\documentclass{article}
\begin{document}
etex
% -MP-ADDITIONAL-HEADER
%SetFigFont macros for latex
verbatimtex
%
\begingroup\makeatletter\ifx\SetFigFont\undefined%
\gdef\SetFigFont#1#2#3#4#5{%
\reset@font\fontsize{#1}{#2pt}%
\fontfamily{#3}\fontseries{#4}\fontshape{#5}%
\selectfont}%
\fi\endgroup%
\ifx\SetFigFontSize\undefined%
\gdef\SetFigFontSize#1#2{%
\fontsize{#1}{#2pt}%
\selectfont}%
\fi%
etex
It looks configurable-ish, but I do not feel like experimenting
without a proper test case.
Best wishes,
Taco
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2011-01-07 9:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-06 12:21 Florian Unglaub
2011-01-07 7:11 ` Taco Hoekwater
2011-01-07 9:07 ` Alan BRASLAU
2011-01-07 9:09 ` Taco Hoekwater [this message]
2011-01-07 15:39 ` Florian Unglaub
2011-01-08 17:34 ` Alan BRASLAU
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=4D26D85B.4080903@elvenkind.com \
--to=taco@elvenkind.com \
--cc=alan.braslau@cea.fr \
--cc=f.unglaub@googlemail.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).