[cl-typesetting-devel] Generated text inside (compile-text () ...(paragraph ...))
Marc Battyani
marc.battyani at fractalconcept.com
Mon Oct 18 16:40:56 UTC 2004
"Björn Lindberg" <d95-bli at nada.kth.se> wrote:
>I want to do something like the following, but it seems it doesn't
>work because the FORMAT form is not evaluated.
>
> (pdf:with-document ()
> (pdf:with-page ()
> (let ((content (compile-text ()
> (paragraph (:h-align :left :font "Helvetica"
> :font-size 10)
>(format nil "Some kind of text ~F" 0.75) :eol
>"Testing again" :eol))))
>(draw-block content 100 741 395 641)))
> (pdf:write-document file))
>
>Is it possible, or do I have to assign it to a variable outside of the
>macros?
Just use typeset:format-string (without the nil) instead of format.
Marc
More information about the cl-typesetting-devel
mailing list