ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mptopdf TeX text problem
@ 2011-11-30 20:32 Martin Bruchanov
  2011-12-01  9:41 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Bruchanov @ 2011-11-30 20:32 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1501 bytes --]

Hello,

what is the proper way of using MetaPost with TeX text? I have two examples:


beginfig(1);
	draw unitsquare scaled(1cm);
	draw textext("$\pi$") shifted((0.5,0.5)*cm);
%	label(btex $\pi$ etex,  origin);
endfig;
end

mptopdf --metafun produces only "unknown" where the Pi symbol should
be and when I uncomment label the following problem occurs:

Output written on test-temp.dvi (2 pages, 256 bytes).
Transcript written on test-temp.log.
TeXExec | runtime: 0.16436

This is MetaPost, version 1.504 (kpathsea version 6.0.0)

mpost: Not writing to .log (openout_any = p).
! I can't write on file `.log'.
Please type another transcript file name: 

 ...
 
 
 !pdfTeX error: pdftex (file lmmi12): Font lmmi12 at 600 not found
  ==> Fatal error occurred, no output PDF file produced!
  
  MPtoPDF 1.4.1 : error while processing tex file
   
-----------------------------------------------

But, when I put source in 

\startMPpage
	draw unitsquare scaled(1cm);
	draw textext("$\pi$") shifted((0.5,0.5)*cm);
	label(btex $\pi$ etex,  origin);
\stopMPpage

and call context, the output PDF is okay. 

So what is proper way to use TeX inside mpost nowaday?

Best regards

-- 
Martin Bruchanov

Skype     :  bruxytronics
WWW       :  http://bruxy.regnet.cz/
GPG-Key   :  http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53)
AX.25     :  OK2MNM @ OK0PBX.#MOR.CZE.EU
IRCNet    :  #linux.cz, #cvut, #z80
Linked-In :  http://www.linkedin.com/in/bruxy


[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: mptopdf TeX text problem
  2011-11-30 20:32 mptopdf TeX text problem Martin Bruchanov
@ 2011-12-01  9:41 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2011-12-01  9:41 UTC (permalink / raw)
  To: bruxy, mailing list for ConTeXt users

On 30-11-2011 21:32, Martin Bruchanov wrote:
> Hello,
>
> what is the proper way of using MetaPost with TeX text? I have two examples:
>
>
> beginfig(1);
> 	draw unitsquare scaled(1cm);
> 	draw textext("$\pi$") shifted((0.5,0.5)*cm);
> %	label(btex $\pi$ etex,  origin);
> endfig;
> end

Easiest is:

fig-1.tex:

\startMPpage
   draw unitsquare scaled(1cm);
   draw textext("$\pi$") shifted((0.5,0.5)*cm);
\stopMPpage

and then run:

context fig-1

this will give you an independent pdf

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2011-12-01  9:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-30 20:32 mptopdf TeX text problem Martin Bruchanov
2011-12-01  9:41 ` 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).