typesetting


Typesetting with Perl, part ii

Subject tags: 
% cat cicero.cic 
[% fontsize = 24; bold; lead = 30 %]The Cicero document processing system

[% fontsize = 12; roman; color = "%00ff0044" %]Simon Cozens

[% color = "black"; lead = 14 %]This text is typeset by the Cicero
document processing system.

[% PERL %]
for (6..12) { 
    $stash->set("fontsize",$_); 
    Cicero::typeset("The square of $_ is ".$_*$_.".\n\n") 
}
[% END %]
% cicero cicero.cic
% open cicero.pdf

Read more about Typesetting with Perl, part ii


Typesetting with Perl

Subject tags: 

So recently I wrote a Perl script to automatically generate cover PDFs for a series of books I’m working on over at Wide Margin. This used the rather good PDF::API2 module to assemble the text and graphics onto the PDF. Now I’ve got the book in my hand, I’m a little bit disappointed by the typesetting of the blurb on the back cover.

This graphic shows the problem:

Guess how I solved it? Read more about Typesetting with Perl


neverclickonthislink