From: Joseph <sy...@in...> - 2008-04-25 22:37:28
|
On 04/25/08 23:45, Rolf Stöckli wrote: Solved, thank you for the hint. Yes, I realized that it wasn't sql-ledger problem, what I was looking for is the confirmation what program sql-ledger was calling to print "ps" files; and that is "dvips" When I upgraded to "texlive" dvips was upgraded as well and by default it sets the paper size to "A4" in: /etc/texmf/dvips/config/config.ps so the first setting are the default and that is: @ a4 210mm 297mm @+ ! %%DocumentPaperSizes: a4 @+ %%BeginPaperSize: a4 @+ /setpagedevice where @+ { pop << /PageSize [595 842] >> setpagedevice } @+ { /a4 where { pop a4 } if } @+ ifelse @+ %%EndPaperSize to fix it all one has to do is to copy/move letter setting to be first: @ letter 8.5in 11in @+ ! %%DocumentPaperSizes: Letter @+ %%BeginPaperSize: Letter @+ /setpagedevice where @+ { pop << /PageSize [612 792] >> setpagedevice } @+ { /letter where { pop letter } if } @+ ifelse @+ %%EndPaperSize -- #Joseph GPG KeyID: ED0E1FB7 >Joseph schrieb: >> This one saves pdf files as "Letter" size but postscripts prints as "A4" >> So I'm trying to ind out what commend is sql-ledger using to send "ps" output to a printer. >> This way I can double check my postscript setting if I know what postscript program is sql-ledger using. > >SQL-Ledger calls latex + dvips to create the PS and pdflatex to create >the PDF files: > >Form.pm line 825...: > if ($self->{format} eq 'postscript') { > > system("latex --interaction=nonstopmode $self->{tmpfile} > >$self->{errfile}"); >... > system("dvips $self->{tmpfile} -o -q"); >... > >Form.pm line 839...: > if ($self->{format} eq 'pdf') { > system("pdflatex --interaction=nonstopmode $self->{tmpfile} > >$self->{errfile}"); >... > >If they behave differently, I would look for the cause in the LaTeX >installation and not in SQL-Ledger. I suggest to create simple tex file, >run latex and check the logfile for warnings and errors. > >Rolf > |