|
From: Keith M. <km...@be...> - 2002-04-02 21:12:09
|
Hi, I installed LaTex in hopes of getting invoices printed the way I want them to. I also blasted away my /usr/local/sql-ledger except for the users/kmastin.conf file and the sql-ledger.conf files (and the templates that I've customized) as I noted from the mailing list archives. I re-installed the sql-ledger program, mv'ed the saved files back to their original state and brought up the program in Opera. Sql-Ledger Version 1.8.3 Redhat 7.1 2.4.3-12 (stock Redhat) kernel tetex-latex-1.0.7-15 Is there something I have to do to initiate LaTex? I ran latex and was requested to type the name of my input file, so I *think* it's working. If all that is running as expected, then I'm back to un-installing/re-installing? If so, can I keep my templates and user.conf and sql-ledger.conf file? There is one line in Deiter's reply on the mailing list that I did not fully understand: "If you have modified sql-ledger.conf merge the changes from the default file rather than copying over top." I expect that does not apply to my case as I did not upgrade and am using a "virgin" version 1.8.3 install? Thanks for any help. -- Keith Mastin km...@be... BeechTree Information Technology Services Inc. 137 Laird Drive M4G 3V5 Tel(416)696-6070 http://www.beechtree.ca |
|
From: Dieter S. <dsi...@sq...> - 2002-04-03 18:05:54
|
To enable latex you must set $latex = 1 in sql-ledger.conf. Dieter Simader http://www.sql-ledger.org (780) 472-8161 DWS Systems Inc. Accounting Software Fax: 478-5281 =========== On a clear disk you can seek forever =========== On Tue, 2 Apr 2002, Keith Mastin wrote: > Hi, > > I installed LaTex in hopes of getting invoices printed the way I want them to. > I also blasted away my /usr/local/sql-ledger except for the users/kmastin.conf > file and the sql-ledger.conf files (and the templates that I've customized) as I > noted from the mailing list archives. I re-installed the sql-ledger program, > mv'ed the saved files back to their original state and brought up the program in > Opera. > > Sql-Ledger Version 1.8.3 > Redhat 7.1 > 2.4.3-12 (stock Redhat) kernel > tetex-latex-1.0.7-15 > > Is there something I have to do to initiate LaTex? I ran latex and was requested > to type the name of my input file, so I *think* it's working. > > If all that is running as expected, then I'm back to un-installing/re-installing? > If so, can I keep my templates and user.conf and sql-ledger.conf file? > > There is one line in Deiter's reply on the mailing list that I did not fully > understand: "If you have modified sql-ledger.conf merge the changes from the > default file rather than copying over top." I expect that does not apply to my > case as I did not upgrade and am using a "virgin" version 1.8.3 install? > > Thanks for any help. > |
|
From: Keith M. <km...@be...> - 2002-04-03 21:36:07
|
Thanks Dieter. I now have the radio button for latex showing. Next: whan I try to print an invoice, I get this: Error! latex : 1017868610.invoice.tex This occurs in either pdf or postscript, whether I send it to the printer or the screen. I did chown -R apache.apache /usr/local/sql-ledgers, so the permissions are correct within the program root directory. I take it this is a LaTex error? Thanks again for the pointer. BTW- sending clients emails of the invoices is sweet. Regards, Quoting Dieter Simader from [03/04/02 11:05 -0700]: > To enable latex you must set $latex = 1 in sql-ledger.conf. > -- Keith Mastin km...@be... BeechTree Information Technology Services Inc. 137 Laird Drive M4G 3V5 Tel(416)696-6070 http://www.beechtree.ca |
|
From: Steve D. <sd...@sw...> - 2002-04-04 01:44:46
|
Hi Keith. Keith Mastin wrote: > Thanks Dieter. > > I now have the radio button for latex showing. Next: whan I try to print an > invoice, I get this: > Error! > latex : 1017868610.invoice.tex > This occurs in either pdf or postscript, whether I send it to the printer or the > screen. I did chown -R apache.apache /usr/local/sql-ledgers, so the permissions > are correct within the program root directory. I take it this is a LaTex error? I had this problem w/ dvipdfm installed (Debian system). When I installed dvipdf it worked. Jonas posted something on March 22 that may be helpful. Good luck. Steve > > > Thanks again for the pointer. > BTW- sending clients emails of the invoices is sweet. > > Regards, > > Quoting Dieter Simader from [03/04/02 11:05 -0700]: > > To enable latex you must set $latex = 1 in sql-ledger.conf. > > > -- > Keith Mastin km...@be... > BeechTree Information Technology Services Inc. > 137 Laird Drive M4G 3V5 Tel(416)696-6070 > http://www.beechtree.ca |
|
From: Keith M. <km...@be...> - 2002-04-05 00:26:14
|
Hi Steve, It appears that I have dvipdf installed, and still get this error: [root@soldier cmpsfont]# rpm -e dvipdfm [root@soldier cmpsfont]# locate dvipdf /usr/share/texmf/doc/help/Catalogue/entries/dvipdfm.html /usr/share/texmf/tex/latex/graphics/dvipdf.def /usr/share/texmf/tex/latex/graphics/dvipdfm.def /usr/share/texmf/tex/latex/hyperref/hdvipdfm.def /usr/bin/dvipdf Any other suggestions, or troubleshooting pointers? Thanks again. Regards, Quoting Steve Doerr from [03/04/02 19:47 -0600]: > Hi Keith. > > Keith Mastin wrote: > > > Error! > > latex : 1017868610.invoice.tex > > I had this problem w/ dvipdfm installed (Debian system). When I installed dvipdf > it worked. Jonas posted something on March 22 that may be helpful. > > Good luck. > Steve > -- Keith Mastin km...@be... BeechTree Information Technology Services Inc. 137 Laird Drive M4G 3V5 Tel(416)696-6070 http://www.beechtree.ca |
|
From: Keith M. <km...@be...> - 2002-04-05 01:49:47
|
I tried directly loading the file into latex to see what happens...
[root@soldier users]$ latex 1017868610.invoice.dvi
This is TeX, Version 3.14159 (Web2C 7.3.1)
(1017868610.invoice.dvi
LaTeX2e <1999/12/01> patch level 1
Babel <v3.6Z> and hyphenation patterns for american, french, german, nger=
man, i
talian, portuges, russian, spanish, nohyphenation, loaded.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
... =20
=20
l.1 =F7
^^B^^A^^83^^92=C0^^\;^^@^^@^^@^^@^^C=E8^^[ TeX output 2002.04.03:161=
6^^8b^^...
?H
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
?=20
! Text line contains an invalid character.
l.1 =F7^^B
^^A^^83^^92=C0^^\;^^@^^@^^@^^@^^C=E8^^[ TeX output 2002.04.03:161=
6^^8b^^...
? R
OK, entering \nonstopmode...
! Text line contains an invalid character.
l.1 =F7^^B^^A^^83^^92=C0^^\
;^^@^^@^^@^^@^^C=E8^^[ TeX output 2002.04.03:1616^=
^8b^^...
! Text line contains an invalid character.
l.1 =F7^^B^^A^^83^^92=C0^^\;^^@
^^@^^@^^@^^C=E8^^[ TeX output 2002.04.03:1616^=
^8b^^...
! Text line contains an invalid character.
l.1 =F7^^B^^A^^83^^92=C0^^\;^^@^^@
^^@^^@^^C=E8^^[ TeX output 2002.04.03:1616^=
^8b^^...
! Text line contains an invalid character.
l.1 =F7^^B^^A^^83^^92=C0^^\;^^@^^@^^@
^^@^^C=E8^^[ TeX output 2002.04.03:1616^=
^8b^^...
=20
Quoting Keith Mastin from [04/04/02 19:21 -0500]:
> Hi Steve,
>=20
> It appears that I have dvipdf installed, and still get this error:
> [root@soldier cmpsfont]# rpm -e dvipdfm
> [root@soldier cmpsfont]# locate dvipdf
> /usr/share/texmf/doc/help/Catalogue/entries/dvipdfm.html
> /usr/share/texmf/tex/latex/graphics/dvipdf.def
> /usr/share/texmf/tex/latex/graphics/dvipdfm.def
> /usr/share/texmf/tex/latex/hyperref/hdvipdfm.def
> /usr/bin/dvipdf
>=20
> Any other suggestions, or troubleshooting pointers?
>=20
--=20
Keith Mastin km...@be...
BeechTree Information Technology Services Inc.
137 Laird Drive M4G 3V5 Tel(416)696-6070
http://www.beechtree.ca
|
|
From: <gha...@fr...> - 2002-04-05 02:09:02
|
On Thu, 4 Apr 2002, Keith Mastin wrote: > I tried directly loading the file into latex to see what happens... A DVI (DeVice Independent) file is the binary output from LaTeX (or TeX). Loading it into LaTeX isn't quite the right thing to do. First, I would run file ....dvi to verify that the file is in fact a DVI file (it should be). Then, if you just want to see what is in it, you can use xdvi under X11 (KDE, Gnome, IceWM, ...) to view it. If you don't have dvipdf (or whatever your binary to convert to PDF is), you can try a bunch of other commands. Doing a ls /usr/bin/dvi* /usr/local/bin/dvi* should turn up most of them. Dvips should work at least as good as dvipdf. Actually better, in so far that DVI and PS are page description languages, while PDF is a bit more than that (it has more structure than a PS file does). Gord Matter Realisations http://www.materialisations.com/ Gordon Haverland, B.Sc. M.Eng. President 101 9504 182 St. NW Edmonton, AB, CA T5T 3A7 780/481-8019 ghaverla @ freenet.edmonton.ab.ca 780/993-1274 (cell) |
|
From: Keith M. <km...@be...> - 2002-04-05 02:38:47
|
...Ahhh... we're actually getting somewhere. :)
Thanks for the directions, they shed some more light on this... it appears I
don't have dvips on this system. Whether or not that has any influence on the
fact that I continuously get a "no /begin{document}" error when loading directly
into LaTex, I dunno...
So, where to go from here?
Thanks for the input here people.
Quoting gha...@fr... from [04/04/02 19:08 -0700]:
>
> On Thu, 4 Apr 2002, Keith Mastin wrote:
>
> > I tried directly loading the file into latex to see what happens...
I just loaded the .tex file into latex. See the end of the message to see the
stdout dump of the results...
>
> A DVI (DeVice Independent) file is the binary output from
> LaTeX (or TeX). Loading it into LaTeX isn't quite the right
> thing to do. First, I would run
> file ....dvi
> to verify that the file is in fact a DVI file (it should be).
>
It is:
[root@soldier users]# file 1017868610.invoice.dvi
1017868610.invoice.dvi: TeX DVI file (TeX output 2002.04.03:1616)
> Then, if you just want to see what is in it, you can use
> xdvi under X11 (KDE, Gnome, IceWM, ...) to view it. If
> you don't have dvipdf (or whatever your binary to convert
> to PDF is), you can try a bunch of other commands. Doing
> a
> ls /usr/bin/dvi* /usr/local/bin/dvi*
> should turn up most of them. Dvips should work at least
> as good as dvipdf. Actually better, in so far that DVI
> and PS are page description languages, while PDF is a bit
> more than that (it has more structure than a PS file does).
>
[root@soldier users]# ls /usr/bin/dvi* /usr/local/bin/dvi*
ls: /usr/local/bin/dvi*: No such file or directory
/usr/bin/dvicopy /usr/bin/dvihp /usr/bin/dvipdf /usr/bin/dvitomp
/usr/bin/dvitype
[root@soldier users]# dvipdf 1017868610.invoice.dvi
/usr/bin/dvipdf: exec: dvips: not found
[root@soldier users]# latex 1017868610.invoice.tex
This is TeX, Version 3.14159 (Web2C 7.3.1)
(1017868610.invoice.tex
LaTeX2e <1999/12/01> patch level 1
Babel <v3.6Z> and hyphenation patterns for american, french, german, ngerman, i
talian, portuges, russian, spanish, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/koma-script/scrartcl.cls
Document Class: scrartcl 1999/12/29 v2.5h LaTeX2e KOMA document class
(/usr/share/texmf/tex/latex/base/size11.clo)
(/usr/share/texmf/tex/latex/koma-script/typearea.sty
Package: typearea, Copyright (C) Frank Neukam, 1992-1994
Copyright (C) Markus Kohm, 1994-1999
)) (/usr/share/texmf/tex/generic/xypic/xy.sty
(/usr/share/texmf/tex/generic/xypic/xy.tex Bootstrap'ing: catcodes, docmode,
(/usr/share/texmf/tex/generic/xypic/xyrecat.tex)
(/usr/share/texmf/tex/generic/xypic/xyidioms.tex)
Xy-pic version 3.7 <1999/02/16>
Copyright (c) 1991-1998 by Kristoffer H. Rose <kri...@en...>
Xy-pic is free software: see the User's Guide for details.
Loading kernel: messages; fonts; allocations: state, direction,
utility macros; pictures: \xy, positions, objects, decorations;
kernel objects: directionals, circles, text; options; algorithms: directions,
edges, connections; Xy-pic loaded)
(/usr/share/texmf/tex/generic/xypic/xyframe.tex
Xy-pic option: Frame and Bracket extension v.3.7 loaded))
(/usr/share/texmf/tex/latex/tools/tabularx.sty
(/usr/share/texmf/tex/latex/tools/array.sty)) (1017868610.invoice.aux
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.2 \@input{\hfill .aux}
?
--
Keith Mastin km...@be...
BeechTree Information Technology Services Inc.
137 Laird Drive M4G 3V5 Tel(416)696-6070
http://www.beechtree.ca
|
|
From: <gha...@fr...> - 2002-04-05 04:40:21
|
On Thu, 4 Apr 2002, Keith Mastin wrote:
> ...Ahhh... we're actually getting somewhere. :)
> Thanks for the directions, they shed some more light on this... it appears I
> don't have dvips on this system. Whether or not that has any influence on the
> fact that I continuously get a "no /begin{document}" error when loading directly
> into LaTex, I dunno...
Hmmm, I don't think I explained that well enough. You
do NOT load/examine/process/... a DVI file with LaTeX.
A DVI file is the result of running LaTeX (or TeX) on
something else (a LaTeX source file).
LaTeX has already been run. You are running into problems
"downstream" of LaTeX. If you don't have dvips, I suppose
one option would be to load that appropriate package onto
your system. However, for the purpose of seeing whether the
DVI file is actually useful, I still think using xdvi to
"view" the DVI file under X11 (which you might know as
KDE, Gnome, IceWM, ...) is the thing to do. If you don't
have xdvi, there is probably a package you can load.
Is this clearer?
Gord
Matter Realisations http://www.materialisations.com/
Gordon Haverland, B.Sc. M.Eng. President
101 9504 182 St. NW Edmonton, AB, CA T5T 3A7
780/481-8019 ghaverla @ freenet.edmonton.ab.ca
780/993-1274 (cell)
|
|
From: Keith M. <km...@be...> - 2002-04-05 16:17:46
|
Installed tetex-dvips and actually got almost there... I now have a file that is completely gibbled, but I have a file. The invoice is 3 pages long in ghostview. Page 1 starts at the very top of the page... headers I guess, that will overwrite the letterhead. Page 1 text ends about 1/3 or 1/2 way down the page. Page 2 appears to be some tex gibberish (.aux and 2x .tex) and page 3 contains most of the input information from the input form, and is missing most of the end portion discussing terms etc. Page 3 also starts at the top of the sheet and will also overwrite the letterhead. So it's all formatting and such from here, which I have no experience with, so I guess I'll be learning tex, unless someone has gone through this and has a quick-fix? Thanks everyone for your input and help here. Quoting gha...@fr... from [04/04/02 21:40 -0700]: > Hmmm, I don't think I explained that well enough. You > do NOT load/examine/process/... a DVI file with LaTeX. > A DVI file is the result of running LaTeX (or TeX) on > something else (a LaTeX source file). I was just checking for output... I did better with a .tex file. > > LaTeX has already been run. You are running into problems > "downstream" of LaTeX. If you don't have dvips, I suppose > one option would be to load that appropriate package onto > your system. However, for the purpose of seeing whether the > DVI file is actually useful, I still think using xdvi to > "view" the DVI file under X11 (which you might know as > KDE, Gnome, IceWM, ...) is the thing to do. If you don't > have xdvi, there is probably a package you can load. > > Is this clearer? > Absolutely. Thank you. -- Keith Mastin km...@be... BeechTree Information Technology Services Inc. 137 Laird Drive M4G 3V5 Tel(416)696-6070 http://www.beechtree.ca |
|
From: Keith M. <km...@be...> - 2002-04-05 04:04:52
|
Stuck my foot in my mouth without checking... html email tests show invoice.html files of a size of 7. Reading this email in netXcape shows blank page. [root@soldier users]# less /home/kmastin/invoice.html <head> WTF? Quoting Keith Mastin from [03/04/02 16:31 -0500]: > BTW- sending clients emails of the invoices is sweet. > -- Keith Mastin km...@be... BeechTree Information Technology Services Inc. 137 Laird Drive M4G 3V5 Tel(416)696-6070 http://www.beechtree.ca |
|
From: Steve D. <sd...@sw...> - 2002-04-05 05:26:32
|
Well, about all I can tell you are the Debian packages I have installed and it works. gs-aladdin was the package that added /usr/bin/dvipdf if I remember correctly. gs-aladdin dvipdfm tetex-base tetex-bin tetex-extra hth, Steve Keith Mastin wrote: > Hi Steve, > > It appears that I have dvipdf installed, and still get this error: > [root@soldier cmpsfont]# rpm -e dvipdfm > [root@soldier cmpsfont]# locate dvipdf > /usr/share/texmf/doc/help/Catalogue/entries/dvipdfm.html > /usr/share/texmf/tex/latex/graphics/dvipdf.def > /usr/share/texmf/tex/latex/graphics/dvipdfm.def > /usr/share/texmf/tex/latex/hyperref/hdvipdfm.def > /usr/bin/dvipdf > > Any other suggestions, or troubleshooting pointers? > > Thanks again. > > Regards, > > Quoting Steve Doerr from [03/04/02 19:47 -0600]: > > Hi Keith. > > > > Keith Mastin wrote: > > > > > Error! > > > latex : 1017868610.invoice.tex > > > > I had this problem w/ dvipdfm installed (Debian system). When I installed dvipdf > > it worked. Jonas posted something on March 22 that may be helpful. > > > > Good luck. > > Steve > > > -- > Keith Mastin km...@be... > BeechTree Information Technology Services Inc. > 137 Laird Drive M4G 3V5 Tel(416)696-6070 > http://www.beechtree.ca |