29 Oct
2012
29 Oct
'12
11:07 a.m.
2012-10-29 Mari Voipio:
The problem: I don't know how to input the logo graphic into Metapost code. This did not work, even though the pdf is in the same directory:
externalfigure "vaaka-logo.pdf" scaled 1cm;
This works here: \startbuffer [image] \useMPlibrary [dum] \startTEXpage \externalfigure [dummy] \stopTEXpage \stopbuffer \ctxcommand{runbuffer("\jobname.tmp", "image", true)} \starttext \startMPcode picture pic; pic = externalfigure "\jobname-\jobname.tmp.pdf" scaled 1cm; draw pic rotated 20; \stopMPcode \stoptext Marco