Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Glenn Enright
snip
look in /var/log/portage if you have it enabled higer log files will br for 
more recent emerges
-- 
Don't worry so loud, your roommate can't think.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Neil Bothwick
On Mon, 05 Dec 2005 00:35:19 -0700, Joseph wrote:

 Is there a way to tell which packages were upgraded in the last week or
 two?
 Something like emerge history?

genlop --list --date last Monday

emerge genlop if you don't already have it.


-- 
Neil Bothwick

Learn from your parents' mistakes - use birth control!


signature.asc
Description: PGP signature


Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Holly Bostick
Joseph schreef:

Please excuse me for interrupting when I know nothing about this issue
at all, but:

I keep noticing that latex seems to supercede divps

 Sql-Ledger is using latex forms to generate invoices.  So to
 my understanding the program will be using dvips to convert
 latex to postscript and send it directly to printer, am I
 right?
 
 
 looking at the configuration file in sql-ledger it is looking
 for: latex, dvips or pdflatex, but making any changes to dvips
 makes no difference.
 
 
 if ($self-{format} eq 'postscript') { system(latex
 --interaction=nonstopmode $self-{tmpfile}  $self-{tmpfile}.err); 
 $self-error($self-cleanup) if ($?);
 
 $self-{tmpfile} =~ s/tex$/dvi/;
 
 system(dvips $self-{tmpfile} -o -q  /dev/null); 
 $self-error($self-cleanup.dvips : $!) if ($?); $self-{tmpfile}
 =~ s/dvi$/ps/; } if ($self-{format} eq 'pdf') { system(pdflatex
 --interaction=nonstopmode $self-{tmpfile}  $self-{tmpfile}.err); 
 $self-error($self-cleanup) if ($?); $self-{tmpfile} =~
 s/tex$/pdf/; }
 

So it seems to me that rather than adjusting the configuration of divps,
we (meaning you, of course) should at least *look* at the
configuration of latex-- what paper size is /it/ set to??

HTH,
Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Joseph
On Mon, 2005-12-05 at 10:21 +0100, Holly Bostick wrote:
 Joseph schreef:
 
 Please excuse me for interrupting when I know nothing about this issue
 at all, but:
 
 I keep noticing that latex seems to supercede divps
[snip]

Huh! No wonder the changes I made to dIvps don't work.
The must be some other package I pulled that caused this mess.

 So it seems to me that rather than adjusting the configuration of divps,
 we (meaning you, of course) should at least *look* at the
 configuration of latex-- what paper size is /it/ set to??

I know that Latex is set by default to A4 paper size and margins are
located in different file.
But what file?

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Joseph
On Mon, 2005-12-05 at 08:22 +, Neil Bothwick wrote:
 On Mon, 05 Dec 2005 00:35:19 -0700, Joseph wrote:
 
  Is there a way to tell which packages were upgraded in the last week or
  two?
  Something like emerge history?
 
 genlop --list --date last Monday
 
 emerge genlop if you don't already have it.

Thanks that is nice.
All I major change I did since last Monday, was unmerge -kde as one
package and emerge kde-split-ebuild.  Among them was kdvi, though I'm
not sure if it has anything do do with paper size.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Alan E. Davis
I may be barking up the wrong tree, but have you run the command
 # texconfig
?

Alan

On 12/5/05, Joseph [EMAIL PROTECTED] wrote:
 On Mon, 2005-12-05 at 10:21 +0100, Holly Bostick wrote:
  Joseph schreef:
 
  Please excuse me for interrupting when I know nothing about this issue
  at all, but:
 
  I keep noticing that latex seems to supercede divps
 [snip]

 Huh! No wonder the changes I made to dIvps don't work.
 The must be some other package I pulled that caused this mess.

  So it seems to me that rather than adjusting the configuration of divps,
  we (meaning you, of course) should at least *look* at the
  configuration of latex-- what paper size is /it/ set to??

 I know that Latex is set by default to A4 paper size and margins are
 located in different file.
 But what file?

 --
 #Joseph
 --
 gentoo-user@gentoo.org mailing list



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Joseph
On Mon, 2005-12-05 at 23:51 +1000, Alan E. Davis wrote:
 I may be barking up the wrong tree, but have you run the command
  # texconfig
 ?
 
 Alan

Many, many time (all Saturday and Sunday).
It doesn't help.
It helps when it comes to controlling paper size and margin with on
tetex -- pdf file printout via: pdftex/pdftex.cfg
page_width 8.5 true in
page_height 11 true in
horigin 1 true in
vorigin 0.3 true in

this works.  But I want to control tetex -- ps (postscript)

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Alan E. Davis
When you ran texconfig did you configure GLOBAL SETTINGS under dvips?

Alan

On 12/6/05, Joseph [EMAIL PROTECTED] wrote:
 On Mon, 2005-12-05 at 23:51 +1000, Alan E. Davis wrote:
  I may be barking up the wrong tree, but have you run the command
   # texconfig
  ?
 
  Alan

 Many, many time (all Saturday and Sunday).
 It doesn't help.
 It helps when it comes to controlling paper size and margin with on
 tetex -- pdf file printout via: pdftex/pdftex.cfg
 page_width 8.5 true in
 page_height 11 true in
 horigin 1 true in
 vorigin 0.3 true in

 this works.  But I want to control tetex -- ps (postscript)

 --
 #Joseph
 --
 gentoo-user@gentoo.org mailing list



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Roger Mason
Joseph,

Joseph [EMAIL PROTECTED] writes:

 I know that Latex is set by default to A4 paper size and margins are
 located in different file.
 But what file?

 -- 
 #Joseph

Have you looked in the latex source file?  The page size and margins
could be getting set there.  It should be in the document preamble,
i.e. before the \begin{document} command.

HTH,

Roger
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Joseph
On Tue, 2005-12-06 at 00:38 +1000, Alan E. Davis wrote:
 When you ran texconfig did you configure GLOBAL SETTINGS under dvips?
 
 Alan

Yes, I have tried adjust via global setting, all it is doing is
adjusting this file (I think):
/usr/share/texmf/dvips/config/config.ps to:


@ letterSize 8.5in 11in

@ letter 8.5in 11in
@+ %%BeginPaperSize: Letter
@+ letter
@+ %%EndPaperSize

This is the first setting it should be in dvips in order to make page
size letter, there is another part that deals with the margins that
might be overwriting the setting, that file is according to:
http://physics.wm.edu/~norman/latexhints/pdf_papersize.html
called: vmargins.sty

Acording the the link above it should be:
--quote --
%
% DEFAULTS:
%
\setpapersize{A4}
\setmarginsrb{35mm}{20mm}{25mm}{15mm}{12pt}{11mm}{0pt}{11mm}


For example changing this to read:

%
% DEFAULTS:
%
\setpapersize{USletter}
\setmarginsrb{1in}{1in}{1in}{1in}{0pt}{0mm}{0pt}{0mm}
---end quote--

Though it is not the case, the end of the file section that deals with
margins looks like this:
\setpapersize{A4}
[EMAIL PROTECTED]@dflt{}
[EMAIL PROTECTED]
}{
  \DeclareOption{shiftmargins}{\shiftmargins}
  \DeclareOption{portrait}{\Landscapefalse}
  \DeclareOption{landscape}{\Landscapetrue}
  [EMAIL PROTECTED]@dflt{y}}
  \DeclareOption*{\@@@setps{\CurrentOption}}
  \ProcessOptions\relax  % process options in order of declaration!
}
\if [EMAIL PROTECTED]@dflt
  \setmargnohfrb{35mm}{20mm}{25mm}{15mm}%
\else
  \setmarginsrb{35mm}{20mm}{25mm}{15mm}{12pt}{11mm}{0pt}{11mm}%
\fi
-

I've tried to modify that section but it doesn't work, still asking for
A4 paper.

Though, I'm not so sure that the whole mess with paper size has anything
to do with Latex and dvips.  It all started when I un-merge KDE and
convert it into kde-split-ebuild.  

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Joseph
On Mon, 2005-12-05 at 12:14 -0330, Roger Mason wrote:
 Joseph,
 
 Joseph [EMAIL PROTECTED] writes:
 
  I know that Latex is set by default to A4 paper size and margins are
  located in different file.
  But what file?
 
  -- 
  #Joseph
 
 Have you looked in the latex source file?  The page size and margins
 could be getting set there.  It should be in the document preamble,
 i.e. before the \begin{document} command.
 
 HTH,
 
 Roger

Yes, I can adjust the margins on in invoice.tex document, here is what I
have:
\documentclass[letterpaper]{scrartcl}
\usepackage[frame]{xy}
\usepackage{tabularx}
\usepackage[latin1]{inputenc}
\setlength{\voffset}{0.5cm}
\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}

I can move \setlength{\voffset}{-1.5cm} and the margins will get
adjusted.  But that doesn't help me much as when I send the job to a
printer it is still asking for A4 paper size.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Joseph
On Tue, 2005-12-06 at 00:38 +1000, Alan E. Davis wrote:
 When you ran texconfig did you configure GLOBAL SETTINGS under dvips?
 
 Alan

Does the latex database needs to be refresh?
I run on this in google:

 Refresh the filename database, by running at a command interpreter 
window: 
initexmf -u 


I can not find initexmf 

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Roger Mason
Hi Joseph,

Joseph [EMAIL PROTECTED] writes:

 On Tue, 2005-12-06 at 00:38 +1000, Alan E. Davis wrote:
 When you ran texconfig did you configure GLOBAL SETTINGS under dvips?
 
 Alan

 Does the latex database needs to be refresh?
 I run on this in google:
 
  Refresh the filename database, by running at a command interpreter 
 window: 
 initexmf -u 
 

 I can not find initexmf 

If you are using tetex I think the command is texhash or mktexlsr, but
I don't know that it will fix your problem.

Have you looked on CTAN?  They have a mailing list and FAQ.

Roger
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Roger Mason
Hello Joseph,

Joseph [EMAIL PROTECTED] writes:

 On Mon, 2005-12-05 at 12:14 -0330, Roger Mason wrote:
 
 Have you looked in the latex source file?  The page size and margins
 could be getting set there.  It should be in the document preamble,
 i.e. before the \begin{document} command.
 
 HTH,
 
 Roger

 Yes, I can adjust the margins on in invoice.tex document, here is what I
 have:
 \documentclass[letterpaper]{scrartcl}
 \usepackage[frame]{xy}
 \usepackage{tabularx}
 \usepackage[latin1]{inputenc}
 \setlength{\voffset}{0.5cm}
 \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}

 I can move \setlength{\voffset}{-1.5cm} and the margins will get
 adjusted.  But that doesn't help me much as when I send the job to a
 printer it is still asking for A4 paper size.

 -- 
 #Joseph
 -- 
 gentoo-user@gentoo.org mailing list

The \documentclass scrartcl does not look like any of the standard
latex classes.  Does it define paper size or look in some specific
configuration file for paper size?  What happens if you replace
scrartcl by a standard class like article?

Roger 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Joseph
On Mon, 2005-12-05 at 14:17 -0330, Roger Mason wrote:
 Hello Joseph,
 
 Joseph [EMAIL PROTECTED] writes:
 
  On Mon, 2005-12-05 at 12:14 -0330, Roger Mason wrote:
  
  Have you looked in the latex source file?  The page size and margins
  could be getting set there.  It should be in the document preamble,
  i.e. before the \begin{document} command.
  
  HTH,
  
  Roger
 
  Yes, I can adjust the margins on in invoice.tex document, here is what I
  have:
  \documentclass[letterpaper]{scrartcl}
  \usepackage[frame]{xy}
  \usepackage{tabularx}
  \usepackage[latin1]{inputenc}
  \setlength{\voffset}{0.5cm}
  \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}
 
  I can move \setlength{\voffset}{-1.5cm} and the margins will get
  adjusted.  But that doesn't help me much as when I send the job to a
  printer it is still asking for A4 paper size.
 
  -- 
  #Joseph
  -- 
  gentoo-user@gentoo.org mailing list
 
 The \documentclass scrartcl does not look like any of the standard
 latex classes.  Does it define paper size or look in some specific
 configuration file for paper size?  What happens if you replace
 scrartcl by a standard class like article?
 
 Roger 

The original entry in the form was:
\documentclass[twoside]{scrartcl}
so I've hanged added: [letterpaper] but it didn't work.
Changing scrartcl to article doesn't help either, printer is still
asking for A4 paper size.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Nick Rout
Why not try the sql-ledger mailing list. No doubt there are people there who 
know their way around their software.


On Mon, 05 Dec 2005 11:01:13 -0700
Joseph wrote:

 On Mon, 2005-12-05 at 14:17 -0330, Roger Mason wrote:
  Hello Joseph,
  
  Joseph [EMAIL PROTECTED] writes:
  
   On Mon, 2005-12-05 at 12:14 -0330, Roger Mason wrote:
   
   Have you looked in the latex source file?  The page size and margins
   could be getting set there.  It should be in the document preamble,
   i.e. before the \begin{document} command.
   
   HTH,
   
   Roger
  
   Yes, I can adjust the margins on in invoice.tex document, here is what I
   have:
   \documentclass[letterpaper]{scrartcl}
   \usepackage[frame]{xy}
   \usepackage{tabularx}
   \usepackage[latin1]{inputenc}
   \setlength{\voffset}{0.5cm}
   \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}
  
   I can move \setlength{\voffset}{-1.5cm} and the margins will get
   adjusted.  But that doesn't help me much as when I send the job to a
   printer it is still asking for A4 paper size.
  
   -- 
   #Joseph
   -- 
   gentoo-user@gentoo.org mailing list
  
  The \documentclass scrartcl does not look like any of the standard
  latex classes.  Does it define paper size or look in some specific
  configuration file for paper size?  What happens if you replace
  scrartcl by a standard class like article?
  
  Roger 
 
 The original entry in the form was:
 \documentclass[twoside]{scrartcl}
 so I've hanged added: [letterpaper] but it didn't work.
 Changing scrartcl to article doesn't help either, printer is still
 asking for A4 paper size.
 
 -- 
 #Joseph
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Joseph
On Tue, 2005-12-06 at 09:45 +1300, Nick Rout wrote:
 Why not try the sql-ledger mailing list. No doubt there are people there who 
 know their way around their software.

I was automatically subscribe when I didn't pay my yearly support.
So I'm not going back.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Dale

Well, I have been reading your frustration in this thread.  May I ask
something?  Have you tried this as another user, even if you have to add
one, which may work best?  If it works as the new user, then it is
something specific to that user and may be a config in the /home/user
directory.  If it does the same then it is a system wide problem,
something you did as root most likely.

I'm not real sure what the heck you are doing but if it is not a really
big install, I would be willing to install the program on my rig and see
what it does here.  If it works, I would email you my configs for you to
try on yours.  Let me know what you think.  You would of course let me
know what commands to type in right?  You would be leading the blind on
this end.  Hey, I may need some help one day.  I screw up something
pretty regular now.  O_O  I can fix it sometimes too.

I'm on dial-up so if it is big, it may take to long to download and install.

Dale
:-)

-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-05 Thread Joseph
On Mon, 2005-12-05 at 15:23 -0600, Dale wrote:
 Well, I have been reading your frustration in this thread.  May I ask
 something?  Have you tried this as another user, even if you have to add
 one, which may work best?  If it works as the new user, then it is
 something specific to that user and may be a config in the /home/user
 directory.  If it does the same then it is a system wide problem,
 something you did as root most likely.
 
 I'm not real sure what the heck you are doing but if it is not a really
 big install, I would be willing to install the program on my rig and see
 what it does here.  If it works, I would email you my configs for you to
 try on yours.  Let me know what you think.  You would of course let me
 know what commands to type in right?  You would be leading the blind on
 this end.  Hey, I may need some help one day.  I screw up something
 pretty regular now.  O_O  I can fix it sometimes too.
 
 I'm on dial-up so if it is big, it may take to long to download and install.
 
 Dale
 :-)

Thank you for the offer, Dale.  I solved the problem, see my previous
post.
/etc/init.d/apache restart  (that is all)
How, it relates to Tetex and configuration file, don't ask me.  I'm not
even sure if that was the trigger but that is the last thing I remember
that could effect something.  What through me off course is the changes
I made to 
pdftex.cfg  you could see effect instantly, the changes I've made to
config.ps wouldn't effect anything (nothing was happening).
It was only by accident that I restart Apache, so learn from my
experience:
Tetex -- restart Apache if you make changes to config.ps

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-04 Thread Joseph
On Sun, 2005-12-04 at 18:05 -0700, Joseph wrote:
 I want to print to letter size paper.
 I'm using Sql-Ledger to print invoices, program is set to print with
 command: 
 lpr -P Printer Name
 Sql-Ledger is using latex forms to generate invoices.  So to my
 understanding the program will be using dvips to convert latex to
 postscript and send it directly to printer, am I right? 
 Is there any other utility that conversion goes through, that I've
 missed?
 
 This is setting of: /usr/share/texmf/dvips/config/config.ps:
 % This shows how to add your own map file.
 % Remove the comment and adjust the name:
 % p +myfonts.map
 
 @ letterSize 8.5in 11in
 
 @ A4size 210mm 297mm
 @+ %%PaperSize: A4
 
 @ letter 8.5in 11in
 @+ %%BeginPaperSize: Letter
 @+ letter
 @+ %%EndPaperSize
 
 Should the these two line be commented out:
 @ A4size 210mm 297mm
 @+ %%PaperSize: A4
 
 Be default postscript is printing to letter size perer.  How to check?
 Where else should I look?
 
 -- 
 #Joseph

Partial success. 
I can save in pdf file and print it using cups it works but I can not
set the right letter size in dvips.
I've tired the commands:
texconfig dvips paper letter 
texconfig xdvi us

It doesn't work.  Printer is still asking for A4 paper size.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-04 Thread Nick Rout

On Sun, 04 Dec 2005 18:05:31 -0700
Joseph wrote:

 I want to print to letter size paper.
 I'm using Sql-Ledger to print invoices, program is set to print with
 command: 
 lpr -P Printer Name
 Sql-Ledger is using latex forms to generate invoices.  So to my
 understanding the program will be using dvips to convert latex to
 postscript and send it directly to printer, am I right? 

Probably, but not necessarily - look in the source and see what is
called to make the document, or do some sort of tracing as the program
runs.

 Is there any other utility that conversion goes through, that I've
 missed?
 
 This is setting of: /usr/share/texmf/dvips/config/config.ps:
 % This shows how to add your own map file.
 % Remove the comment and adjust the name:
 % p +myfonts.map
 
 @ letterSize 8.5in 11in
 
 @ A4size 210mm 297mm
 @+ %%PaperSize: A4
 
 @ letter 8.5in 11in
 @+ %%BeginPaperSize: Letter
 @+ letter
 @+ %%EndPaperSize
 
 Should the these two line be commented out:
 @ A4size 210mm 297mm
 @+ %%PaperSize: A4
 
 Be default postscript is printing to letter size perer.  How to check?
 Where else should I look?
 
 -- 
 #Joseph
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-04 Thread Joseph
On Mon, 2005-12-05 at 15:57 +1300, Nick Rout wrote:
 On Sun, 04 Dec 2005 18:05:31 -0700
 Joseph wrote:
 
  I want to print to letter size paper.
  I'm using Sql-Ledger to print invoices, program is set to print with
  command: 
  lpr -P Printer Name
  Sql-Ledger is using latex forms to generate invoices.  So to my
  understanding the program will be using dvips to convert latex to
  postscript and send it directly to printer, am I right? 
 
 Probably, but not necessarily - look in the source and see what is
 called to make the document, or do some sort of tracing as the program
 runs.
 
  Is there any other utility that conversion goes through, that I've
  missed?

looking at the configuration file in sql-ledger it is looking for:
latex, dvips or pdflatex, but making any changes to dvips makes no
difference. 
it is hard to look in the source code if you don't know which file it
is.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-04 Thread Nick Rout

On Sun, 04 Dec 2005 20:29:05 -0700
Joseph wrote:

 On Mon, 2005-12-05 at 15:57 +1300, Nick Rout wrote:
  On Sun, 04 Dec 2005 18:05:31 -0700
  Joseph wrote:
  
   I want to print to letter size paper.
   I'm using Sql-Ledger to print invoices, program is set to print with
   command: 
   lpr -P Printer Name
   Sql-Ledger is using latex forms to generate invoices.  So to my
   understanding the program will be using dvips to convert latex to
   postscript and send it directly to printer, am I right? 
  
  Probably, but not necessarily - look in the source and see what is
  called to make the document, or do some sort of tracing as the program
  runs.
  
   Is there any other utility that conversion goes through, that I've
   missed?
 
 looking at the configuration file in sql-ledger it is looking for:
 latex, dvips or pdflatex, but making any changes to dvips makes no
 difference. 
 it is hard to look in the source code if you don't know which file it
 is.
 

I think I have tracked down the code for printing to the file SL/Form.pm
(I tracked it by grepping the source for outr likely commands, dvips,
pdflatex etc.)

Unfortunately I am not a perl guru, but there are clearly differences in
processing between ps output and pdf output. For example there is a
passage that shows that if the format is ps the following is executed:

latex --interaction=nonstopmode
dvips  -o -q

in the same point in the code, if the output is pdf it runs:

pdflatex --interaction=nonstopmode

Logically the difference must be in the execution of latex/dvips
compared to pdflatex OR in the way that the printer is invoked.

Which perhaps doesn't help, there may be other differences in the code
that I didn't spot.

Hey one more thing, when you ran those dvips setup commands and so on,
do they take global effect or only for the user that ran them??
Taking a punt, it's unlikely that sql-ledger runs as your user, and if
the commands you ran are per user rather than global, they won't have
taken effect.
-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-04 Thread Joseph
On Mon, 2005-12-05 at 17:25 +1300, Nick Rout wrote:
 On Sun, 04 Dec 2005 20:29:05 -0700
 Joseph wrote:
 
  On Mon, 2005-12-05 at 15:57 +1300, Nick Rout wrote:
   On Sun, 04 Dec 2005 18:05:31 -0700
   Joseph wrote:
   
I want to print to letter size paper.
I'm using Sql-Ledger to print invoices, program is set to print with
command: 
lpr -P Printer Name
Sql-Ledger is using latex forms to generate invoices.  So to my
understanding the program will be using dvips to convert latex to
postscript and send it directly to printer, am I right? 
   
   Probably, but not necessarily - look in the source and see what is
   called to make the document, or do some sort of tracing as the program
   runs.
   
Is there any other utility that conversion goes through, that I've
missed?
  
  looking at the configuration file in sql-ledger it is looking for:
  latex, dvips or pdflatex, but making any changes to dvips makes no
  difference. 
  it is hard to look in the source code if you don't know which file it
  is.
  
 
 I think I have tracked down the code for printing to the file SL/Form.pm
 (I tracked it by grepping the source for outr likely commands, dvips,
 pdflatex etc.)
 
 Unfortunately I am not a perl guru, but there are clearly differences in
 processing between ps output and pdf output. For example there is a
 passage that shows that if the format is ps the following is executed:
 
 latex --interaction=nonstopmode
 dvips  -o -q
 
 in the same point in the code, if the output is pdf it runs:
 
 pdflatex --interaction=nonstopmode
 
 Logically the difference must be in the execution of latex/dvips
 compared to pdflatex OR in the way that the printer is invoked.
 
 Which perhaps doesn't help, there may be other differences in the code
 that I didn't spot.
 
 Hey one more thing, when you ran those dvips setup commands and so on,
 do they take global effect or only for the user that ran them??
 Taking a punt, it's unlikely that sql-ledger runs as your user, and if
 the commands you ran are per user rather than global, they won't have
 taken effect.
 -- 
 Nick Rout [EMAIL PROTECTED]

OK, here in order to print (sql-ledger selection) from to pdf --
(screen) and save it as file with the right setting:
/usr/share/texmf/pdftex/config/pdftex.cfg (should contain):
page_width 8.5 true in
page_height 11 true in
horigin 1 true in
vorigin 0.3 true in

So if I print to file.pdf and open that file in kpdf it allows me to
print that file directly to printer. The printer is not asking for A4
paper size.  The out put goes though: cups.
However, if I try to print pdf file to printer directly (sql-ledger
selection): pdf -- printer.  It keep asking me for paper size A4.

The same scenario goes with PS (postscript sql-ledger selection): ps --
screen; save it to a file.ps.  It allows me to print that file directly
to printer. The printer is not asking for A4 paper size.  The out put
goes though: cups.
But going through (sql-ledger selection): pdf -- printer.  It keep
asking me for paper size A4.

So it only keep asking me for A4 paper size when the file is been
redirected from Sql-ledger setting to printer: lpr -P printer_name

The file: /usr/share/texmf/dvipdfm/config/conf has:
% Set default paper size here
p letter

/usr/share/texmf/dvips/config/config.ps:
% This shows how to add your own map file.
% Remove the comment and adjust the name:
% p +myfonts.map

@ letterSize 8.5in 11in

@ letter 8.5in 11in
@+ %%BeginPaperSize: Letter
@+ letter
@+ %%EndPaperSize

So, I'm not sure if if the setting in ..dvips/config/config.ps take
effect as the printer is asking me for A4 paper size, but it
shouldn't.  

I need as well to figure out which file holds the setting margin
setting, as I need to move it 1-in up.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-04 Thread Joseph
On Mon, 2005-12-05 at 17:25 +1300, Nick Rout wrote:
 On Sun, 04 Dec 2005 20:29:05 -0700
 Joseph wrote:
 
  On Mon, 2005-12-05 at 15:57 +1300, Nick Rout wrote:
   On Sun, 04 Dec 2005 18:05:31 -0700
   Joseph wrote:
   
I want to print to letter size paper.
I'm using Sql-Ledger to print invoices, program is set to print with
command: 
lpr -P Printer Name
Sql-Ledger is using latex forms to generate invoices.  So to my
understanding the program will be using dvips to convert latex to
postscript and send it directly to printer, am I right? 
   
   Probably, but not necessarily - look in the source and see what is
   called to make the document, or do some sort of tracing as the program
   runs.
   
Is there any other utility that conversion goes through, that I've
missed?
  
  looking at the configuration file in sql-ledger it is looking for:
  latex, dvips or pdflatex, but making any changes to dvips makes no
  difference. 
  it is hard to look in the source code if you don't know which file it
  is.
  
 
 I think I have tracked down the code for printing to the file SL/Form.pm
 (I tracked it by grepping the source for outr likely commands, dvips,
 pdflatex etc.)
 
 Unfortunately I am not a perl guru, but there are clearly differences in
 processing between ps output and pdf output. For example there is a
 passage that shows that if the format is ps the following is executed:
 
 latex --interaction=nonstopmode
 dvips  -o -q
 

dvips -o -q
-o means:  The output will be sent to file name If no file name is given, the 
default name is  file.ps
-q means quite mode.

Here is the part that sends file to a printer, can any perl guru help us
out???
How it converts to postscript file and which program is it using.

# Convert the tex file to postscript
  if ($self-{format} =~ /(postscript|pdf)/) {

use Cwd;
$self-{cwd} = cwd();
chdir($userspath) or $self-error($self-cleanup.chdir : $!);

$self-{tmpfile} =~ s/$userspath\///g;

# DS. added screen and email option in addition to printer
# screen
if ($self-{format} eq 'postscript') {
  system(latex --interaction=nonstopmode $self-{tmpfile} 
$self-{tmpfile}.err);
  $self-error($self-cleanup) if ($?);

  $self-{tmpfile} =~ s/tex$/dvi/;

  system(dvips $self-{tmpfile} -o -q  /dev/null);
  $self-error($self-cleanup.dvips : $!) if ($?);
  $self-{tmpfile} =~ s/dvi$/ps/;
}
if ($self-{format} eq 'pdf') {
  system(pdflatex --interaction=nonstopmode $self-{tmpfile} 
$self-{tmpfile}.err);
  $self-error($self-cleanup) if ($?);
  $self-{tmpfile} =~ s/tex$/pdf/;
}

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-04 Thread Nick Rout
On Sun, 04 Dec 2005 22:26:48 -0700
Joseph [EMAIL PROTECTED] wrote:


  
  I think I have tracked down the code for printing to the file SL/Form.pm
  (I tracked it by grepping the source for outr likely commands, dvips,
  pdflatex etc.)
  
  Unfortunately I am not a perl guru, but there are clearly differences in
  processing between ps output and pdf output. For example there is a
  passage that shows that if the format is ps the following is executed:
  
  latex --interaction=nonstopmode
  dvips  -o -q
  
 
 dvips -o -q
 -o means:  The output will be sent to file name If no file name is given, the 
 default name is  file.ps
 -q means quite mode.
 
 Here is the part that sends file to a printer, can any perl guru help us
 out???

No, I don't think it sends anything to the printer. It is one stage of
the conversion process - to either pdf or ps. It is the bit I
identified in my last message (quoted above). But it doesn't actually
send it to the printer as far as i can see.



 How it converts to postscript file and which program is it using.
 
 # Convert the tex file to postscript
   if ($self-{format} =~ /(postscript|pdf)/) {
 
 use Cwd;
 $self-{cwd} = cwd();
 chdir($userspath) or $self-error($self-cleanup.chdir : $!);
 
 $self-{tmpfile} =~ s/$userspath\///g;
 
 # DS. added screen and email option in addition to printer
 # screen
 if ($self-{format} eq 'postscript') {
   system(latex --interaction=nonstopmode $self-{tmpfile} 
 $self-{tmpfile}.err);
   $self-error($self-cleanup) if ($?);
 
   $self-{tmpfile} =~ s/tex$/dvi/;
 
   system(dvips $self-{tmpfile} -o -q  /dev/null);
   $self-error($self-cleanup.dvips : $!) if ($?);
   $self-{tmpfile} =~ s/dvi$/ps/;
 }
 if ($self-{format} eq 'pdf') {
   system(pdflatex --interaction=nonstopmode $self-{tmpfile} 
 $self-{tmpfile}.err);
   $self-error($self-cleanup) if ($?);
   $self-{tmpfile} =~ s/tex$/pdf/;
 }
 
 -- 
 #Joseph
 -- 
 gentoo-user@gentoo.org mailing list
 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] straggling with paper size

2005-12-04 Thread Joseph
On Mon, 2005-12-05 at 20:22 +1300, Nick Rout wrote:
 On Sun, 04 Dec 2005 22:26:48 -0700
 Joseph [EMAIL PROTECTED] wrote:
 
 
   
   I think I have tracked down the code for printing to the file SL/Form.pm
   (I tracked it by grepping the source for outr likely commands, dvips,
   pdflatex etc.)
   
   Unfortunately I am not a perl guru, but there are clearly differences in
   processing between ps output and pdf output. For example there is a
   passage that shows that if the format is ps the following is executed:
   
   latex --interaction=nonstopmode
   dvips  -o -q
   
  
  dvips -o -q
  -o means:  The output will be sent to file name If no file name is given, 
  the default name is  file.ps
  -q means quite mode.
  
  Here is the part that sends file to a printer, can any perl guru help us
  out???
 
 No, I don't think it sends anything to the printer. It is one stage of
 the conversion process - to either pdf or ps. It is the bit I
 identified in my last message (quoted above). But it doesn't actually
 send it to the printer as far as i can see.

From what I have read the pdf file/document contains information if it
is an A4 or a letter size format, postscript doesn't have this
information. 

Something, I emerge during the last week have caused this change.  As
tetex is old package, it can not be tetex; in addition and I did not
have to do any special configuration in tetex, everything just worked.
Now, (in the last week) some packaged caused all the problem

Is there a way to tell which packages were upgraded in the last week or
two?
Something like emerge history?

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list