Re: Some proposed Perl 6 pod projects for comment
On Sunday, May 15, 2016, mt1957wrote: > > Pod::To::PDF >> == >> >> Nice to have. It could use something like p6pod2latex as an >> intermediate filter and then use popular LaTeX tools to generate the PDF. > > At the moment I am writing pod6 in separate files with the following at > the top of such a file. It needs wkhtmltopdf for this to work. In the > example below you can see css style things to format > specific items of the generated html from Pod::To::HTML. It might give you > some ideas. Thank, Marcel, it does! Best regards, -Tom
Re: Some proposed Perl 6 pod projects for comment
Hi Tom, Pod::To::PDF == Nice to have. It could use something like p6pod2latex as an intermediate filter and then use popular LaTeX tools to generate the PDF. At the moment I am writing pod6 in separate files with the following at the top of such a file. It needs wkhtmltopdf for this to work. In the example below you can see css style things to format specific items of the generated html from Pod::To::HTML. It might give you some ideas. Greetings, Marcel #!/usr/bin/env perl6 # use v6.c; # Running the pod file will create a pdf using wkhtmltopdf # my Str $pod = "$*PROGRAM"; my Str $pdf = $pod; $pdf ~~ s/\. <-[.]>+ $/.pdf/; shell( "perl6 --doc=HTML '$pod' | wkhtmltopdf - '$pdf'"); =begin pod =begin Xhtml pre { border-width: 2px; border-style: solid; border-color: #060; padding:10px 0 3px 10px; color: #060; background-color: #eaefea; font-family:FreeMono; } td { vertical-align: top; } =end Xhtml =TITLE class MongoDB::Server ... =end pod