Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Pretty output on paper - how best to do it?

by Tardis (Pilgrim)
on Mar 11, 2002 at 11:50 UTC ( #150861=note: print w/replies, xml ) Need Help??


in reply to Pretty output on paper - how best to do it?

Could you please explain:

slightly awkward due to production of files etc

We use LaTeX extensively, producing automated documents from templates that are printed to a postscript printer. The results are very professional. Not as easy to create as a Word document perhaps, but the results and versatility are worth your initial pain.

Via standard PS and LaTeX tools, you can easily convert a LaTeX document into PDF as well, or even plain text.

  • Comment on Re: Pretty output on paper - how best to do it?

Replies are listed 'Best First'.
Re: Re: Pretty output on paper - how best to do it?
by EvdB (Deacon) on Mar 11, 2002 at 12:26 UTC

    All right, I was looking for a problem with LaTeX, which happens to be a system that I admire greatly. The files I meant are partly the .aux, .log etc but also having to create a .tex file to process. It is not as nice as keeping it all in memory and there is a bit of cleanup involved too.

    All said LaTeX may well be the way I go although I will of course take a good look at all ideas offered here.

      I understand your concern, having a bunch of files lying around is not quite as elegant.

      However such a 'problem' is ripe for abstraction into a module. Create some methods to create, store and fetch pdf files, and hide all that LaTeX magic externally.

      Even better, make the file generation work for you. The .dvi file that LaTeX generates can be used again and again. Do some simple date checks of your source file against that of the .dvi file and you effectively have an efficient cache.

      We use such a thing here in a billing system. Statements are generated and stored on the disk. The .tex, .txt and .ps files are all stored. When someone wants to reprint or reshow the statement, it fetches the appropriate .txt or .ps file. If it doesn't exist, it regenerates them from the .tex file.

      In that way, whenever we are short on disk space (or if we want to minimize the amount of files we are moving from machine to machine during a hardware upgrade :-), we just nuke everything but the .tex files, and everything still works, if more slowly.

Re: Re: Pretty output on paper - how best to do it?
by ask (Pilgrim) on Mar 11, 2002 at 18:43 UTC
    Not very Perl related; but when I use LaTeX the fonts always come out looking very, uh, LaTeXish. What am I doing wrong?

     - ask

    -- 
    ask bjoern hansen, http://ask.netcetera.dk/   !try; do();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://150861]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2018-06-24 05:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?