From: Joseph <sy...@in...> - 2008-04-25 14:55:10
|
Does anybody know what command is sql-ledger using to print an invoice (ps file) to a printer? I have upgraded to "texlive" and when I print an invoice (Postscript - Printer) it sending job in "A4" paper size instead of US "Letter" size. When I print to PDF-file the file is "Letter" size. I'm using sql-leger-2.2.7 -- #Joseph |
From: Dr E. W L. <el...@li...> - 2008-04-25 15:25:40
|
Put an option into the invoice.tex file. I use A4 and these options (for my *HEAVILY* modified invoice template): \usepackage{geometry} \geometry {portrait,a4paper,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm} So I assume letterpaper would be the one to use. By the way, current version is 2.8.14... greetings, el On Apr 25, 2008, at 15:54, Joseph wrote: > Does anybody know what command is sql-ledger using to print an > invoice (ps file) to a printer? > I have upgraded to "texlive" and when I print an invoice (Postscript > - Printer) it sending job in "A4" paper size > instead of US "Letter" size. > When I print to PDF-file the file is "Letter" size. > > I'm using sql-leger-2.2.7 > > -- > #Joseph > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > sql-ledger-users mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sql-ledger-users > |
From: Joseph <sy...@in...> - 2008-04-25 16:46:20
|
This was the original preamble from invoice.tex: --------original invoice.tex----------- \documentclass[twoside]{scrartcl} \usepackage[frame]{xy} \usepackage{tabularx} \usepackage[latin1]{inputenc} \setlength{\voffset}{0.4cm} \setlength{\hoffset}{-2.0cm} \setlength{\topmargin}{0cm} \setlength{\headheight}{0.5cm} \setlength{\headsep}{1cm} \setlength{\topskip}{0pt} \setlength{\oddsidemargin}{1.4cm} \setlength{\evensidemargin}{1.4cm} \setlength{\textwidth}{18.2cm} \setlength{\textheight}{24.5cm} \setlength{\footskip}{1cm} \setlength{\parindent}{0pt} \renewcommand{\baselinestretch}{1} \begin{document} -----end original invoice.tex---------------- This generated A4 pdf files but ps (postscript) printed as "Letter"; it didn't bother me much. Now after upgrade to "texlive" I had to adjust the invoice.tex: -------modified invoice.tex----------- \documentclass[nopagenumber]{scrartcl} \usepackage[latin1]{inputenc} \usepackage{tabularx} \usepackage[letterpaper,top=2.4cm,bottom=0.8cm,left=1.4cm,right=1.5cm]{geometry} \usepackage{graphicx} \begin{document} -------end modified invoice.tex---------- 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. -- #Joseph GPG KeyID: ED0E1FB On 04/25/08 16:25, Dr Eberhard W Lisse wrote: >Put an option into the invoice.tex file. > >I use A4 and these options (for my *HEAVILY* modified invoice template): > >\usepackage{geometry} >\geometry >{portrait,a4paper,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm} > >So I assume letterpaper would be the one to use. > > >By the way, current version is 2.8.14... > >greetings, el > > >On Apr 25, 2008, at 15:54, Joseph wrote: > >> Does anybody know what command is sql-ledger using to print an >> invoice (ps file) to a printer? >> I have upgraded to "texlive" and when I print an invoice (Postscript >> - Printer) it sending job in "A4" paper size >> instead of US "Letter" size. >> When I print to PDF-file the file is "Letter" size. >> >> I'm using sql-leger-2.2.7 >> >> -- >> #Joseph >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save >> $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> sql-ledger-users mailing list >> sql...@li... >> https://lists.sourceforge.net/lists/listinfo/sql-ledger-users >> > > >------------------------------------------------------------------------- >This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >Don't miss this year's exciting event. There's still time to save $100. >Use priority code J8TL2D2. >http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >_______________________________________________ >sql-ledger-users mailing list >sql...@li... >https://lists.sourceforge.net/lists/listinfo/sql-ledger-users > |
From: Rolf S. <in...@to...> - 2008-04-25 21:45:28
|
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 |
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 > |