Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 3, 2008, at 2:07 PM, Bennett Helm wrote:
On Thu, Apr 3, 2008 at 11:51 AM, Bob Lounsbury [EMAIL PROTECTED]
wrote:

On Thu, Apr 3, 2008 at 9:23 AM, Charlse Darwin  
[EMAIL PROTECTED]

wrote:

 In Lyx-Preference-Paths-PATH prefix I have

/usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/ 
local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/ 
powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple- 
darwin-current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/ 
bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin



That's the problem then. You need to add the path to your paths :-}.
So that LyX knows where all your LaTeX stuff is.



Yes. I'm not sure where macports puts its latex files, but you can  
find out

by going to Terminal.app (Applications  Utilities) and typing:

which latex

$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin ~/Documents/ 
scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin / 
sbin /bin /sbin /usr/bin /usr/sbin

$ port info lyx
…
Library Dependencies: qt4-mac, texlive, ImageMagick, python25
$

Am I missing latex? And if so, where do I get it from?

which should return the path to latex. That path (minus the latex  
part) is
what you need to add to the PATH prefix, as Bob indicated. So for me,  
which

latex returns:

/usr/texbin/latex

and so I add to the beginning of PATH prefix just the /usr/texbin  
part,
followed by a colon (:). (Of course, in my case, /usr/texbin is  
already

there, which is why it works for me.) Then LyX should work for you.

Please let us know what you have to add. I haven't used macports  
lately, so
I'm not sure where they currently put the latex executables, but we  
should

make sure that is a part of the default PATH prefix so that others don't
have this problem.

One final note: there's no reason to use macports to install LyX. They
actually tend to be behind the current LyX binaries we post on the LyX
website. All you need to do is download the binary, drag LyX.app  
wherever

you want it, run the installer, and you're done.

Bennett



Re: layout file for .tex files

2008-04-04 Thread Bennett Helm
On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin [EMAIL PROTECTED]
wrote:


 $ which latex
 no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
 ~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin
 /sbin /bin /sbin /usr/bin /usr/sbin
 $ port info lyx
 …
 Library Dependencies: qt4-mac, texlive, ImageMagick, python25
 $

 Am I missing latex? And if so, where do I get it from?


It certainly looks as though you're missing it. (My guess is that if you
installed it via macports, it would be in /opt/local somewhere. It used to
be in /opt/local/teTeX/bin, but maybe with a switch to TeXlive, that's
changed to -- guessing here -- /opt/local/texlive/bin. If so, it looks as
though macports failed to set up your paths properly.)

If you really don't have a TeX installation, I'd recommend getting MacTeX
from:

http://www.tug.org/mactex/

Bennett


Re: layout file for .tex files

2008-04-04 Thread Bob Lounsbury
On Fri, Apr 4, 2008 at 6:59 AM, Bennett Helm [EMAIL PROTECTED] wrote:

 On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin [EMAIL PROTECTED]
 wrote:
 
 
  $ which latex
  no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
 ~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin
 /sbin /bin /sbin /usr/bin /usr/sbin
  $ port info lyx
  …
  Library Dependencies: qt4-mac, texlive, ImageMagick, python25
  $
 
  Am I missing latex? And if so, where do I get it from?

 It certainly looks as though you're missing it. (My guess is that if you
 installed it via macports, it would be in /opt/local somewhere. It used to
 be in /opt/local/teTeX/bin, but maybe with a switch to TeXlive, that's
 changed to -- guessing here -- /opt/local/texlive/bin. If so, it looks as
 though macports failed to set up your paths properly.)

 If you really don't have a TeX installation, I'd recommend getting MacTeX
 from:

 http://www.tug.org/mactex/


 Bennett

Isn't there a way to add a PATH to the 'which latex' variable? I'm
pretty sure that Charlse has TeX through the macports TeXlive packages
because of this (that he posted):

$ sudo texhash
texhash: Updating /opt/local/share/texmf/ls-R...
texhash: Updating /opt/local/share/texmf-dist/ls-R...
texhash: Updating /opt/local/share/texmf-var/ls-R...
texhash: Done.
$

And this (now there is a macports texlive_full package if you have space):

$ port installed | grep texlive
 texlive_base @2007_1 (active)
 texlive_texmf-minimal @2007_0 (active)
$

And this (so I think the needed LaTeX packages are available):

/opt/local/share/texmf-dist/tex/latex/base/article.cls

It just seems to me that TeXlive has changed their paths and that
hasn't affected the system properly (I'm a little oblivious to path
stuff :-}).

Does running 'latex' on a '.tex' file work in a shell? Even if it
doesn't I think TeX is installed and Charlse only needs to add
/opt/local/share to his LyX paths and LyX will work even if straight
latex doesn't. Which brings me back to my first question isn't there
a way to add /opt/local/share to the 'which latex' PATH? Since I think
his TeX distribution is fine.

/Bob


Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 4, 2008, at 9:41 AM, Bob Lounsbury wrote:
On Fri, Apr 4, 2008 at 6:59 AM, Bennett Helm [EMAIL PROTECTED] wrote:


On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin  
[EMAIL PROTECTED]

wrote:



$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/ 
sbin /bin

/sbin /bin /sbin /usr/bin /usr/sbin

$ port info lyx
…
Library Dependencies: qt4-mac, texlive, ImageMagick, python25
$

Am I missing latex? And if so, where do I get it from?


It certainly looks as though you're missing it. (My guess is that  
if you
installed it via macports, it would be in /opt/local somewhere. It  
used to

be in /opt/local/teTeX/bin, but maybe with a switch to TeXlive, that's
changed to -- guessing here -- /opt/local/texlive/bin. If so, it  
looks as

though macports failed to set up your paths properly.)

If you really don't have a TeX installation, I'd recommend getting  
MacTeX

from:

http://www.tug.org/mactex/


Bennett


Isn't there a way to add a PATH to the 'which latex' variable? I'm
pretty sure that Charlse has TeX through the macports TeXlive packages
because of this (that he posted):

$ sudo texhash
texhash: Updating /opt/local/share/texmf/ls-R...
texhash: Updating /opt/local/share/texmf-dist/ls-R...
texhash: Updating /opt/local/share/texmf-var/ls-R...
texhash: Done.
$

And this (now there is a macports texlive_full package if you have  
space):


$ port installed | grep texlive
 texlive_base @2007_1 (active)
 texlive_texmf-minimal @2007_0 (active)
$

And this (so I think the needed LaTeX packages are available):

/opt/local/share/texmf-dist/tex/latex/base/article.cls

It just seems to me that TeXlive has changed their paths and that
hasn't affected the system properly (I'm a little oblivious to path
stuff :-}).

Does running 'latex' on a '.tex' file work in a shell? Even if it
doesn't I think TeX is installed and Charlse only needs to add
/opt/local/share to his LyX paths and LyX will work even if straight
latex doesn't.

I just added /opt/local/share to the Path and now it reads reads:
/usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/ 
local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/ 
powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin- 
current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/ 
local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin:/opt/local/share


No luck

Which brings me back to my first question isn't there
a way to add /opt/local/share to the 'which latex' PATH?

I also added /opt/local/share to the systems path but still no chance.

$ cat .profile | grep share
export PATH=/opt/local/share:$PATH

$ which latex
no latex in /opt/local/share /Users/pm/WebKit/WebKitTools/Scripts / 
usr/local/bin /Users/pm/Documents/scripts/ /opt/local/bin /opt/local/ 
sbin /usr/bin /usr/sbin /bin /sbin /Users/pm/WebKit/WebKitTools/ 
Scripts /usr/local/bin /Users/pm/Documents/scripts/ /opt/local/bin / 
opt/local/sbin /usr/bin /usr/sbin /bin /sbin /bin /sbin /usr/bin /usr/ 
sbin


Since I think his TeX distribution is fine.

/Bob



Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin

On Apr 4, 2008, at 11:22 AM, Bob Lounsbury wrote:
On Fri, Apr 4, 2008 at 9:01 AM, Charlse Darwin  
[EMAIL PROTECTED] wrote:

 $ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)


 $ which latex
 no latex in /opt/local/share /Users/pm/WebKit/WebKitTools/Scripts
/usr/local/bin /Users/pm/Documents/scripts/ /opt/local/bin /opt/ 
local/sbin

/usr/bin /usr/sbin /bin /sbin /Users/pm/WebKit/WebKitTools/Scripts
/usr/local/bin /Users/pm/Documents/scripts/ /opt/local/bin /opt/ 
local/sbin

/usr/bin /usr/sbin /bin /sbin /bin /sbin /usr/bin /usr/sbin

 Since I think his TeX distribution is fine.

 /Bob


Strange. All I can say is you have the 'base' and the 'texmf-minimal'
texlive packages installed and this does not seem to be a complete TeX
distribution install.

We've been Cc:ing, [EMAIL PROTECTED] Do they not have a recommendation
of what macport packages are necessary for a complete TeX installation
of texlive?

$ port info lyx | grep Dep
Library Dependencies: qt4-mac, texlive, ImageMagick, python25

I will forward a copy to macports' list.


Either consider installing 'texlive' and/or 'texlive_texmf-full' from
macports or whatever is recommended by the macport maintainers or
install MacTeX as Bennett suggested.

/Bob



Re: layout file for .tex files

2008-04-04 Thread Bob Lounsbury
On Fri, Apr 4, 2008 at 9:37 AM, Charlse Darwin [EMAIL PROTECTED] wrote:
  $ port info lyx | grep Dep

  Library Dependencies: qt4-mac, texlive, ImageMagick, python25

Since texlive is listed here, I would 'assume' that you need to
install the macports texlive package to complete the TeX install.

Cheers,
/Bob


Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 4, 2008, at 12:25 PM, Bob Lounsbury wrote:
On Fri, Apr 4, 2008 at 9:37 AM, Charlse Darwin  
[EMAIL PROTECTED] wrote:

 $ port info lyx | grep Dep

 Library Dependencies: qt4-mac, texlive, ImageMagick, python25


Since texlive is listed here, I would 'assume' that you need to
install the macports texlive package to complete the TeX install.

Cheers,
/Bob

I have it installed already. I wouldn't install the Lyx without first  
installing its dependencies.


$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)



Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 4, 2008, at 2:32 PM, Joshua Root wrote:
Bennett Helm wrote:
On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin  
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin
/usr/sbin /bin /sbin /bin /sbin /usr/bin /usr/sbin
$ port info lyx
…
Library Dependencies: qt4-mac, texlive, ImageMagick, python25
$
Am I missing latex? And if so, where do I get it from?
It certainly looks as though you're missing it. (My guess is that  
if you installed it via macports, it would be in /opt/local  
somewhere. It used to be in /opt/local/teTeX/bin, but maybe with a  
switch to TeXlive, that's changed to -- guessing here -- /opt/local/ 
texlive/bin. If so, it looks as though macports failed to set up  
your paths properly.)


Sorry I haven't had time to reply earlier, folks. This is what I get:

% which latex
/opt/local/bin/latex
% port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: texlive

$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin ~/Documents/ 
scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin / 
sbin /bin /sbin /usr/bin /usr/sbin


LyX does have a dependency on texlive, but it's a special sort of  
dependency. Port checks whether there is a TeX-provided binary in the  
PATH, and if there isn't, it installs texlive. This is to allow users  
to have a choice of TeX distributions (within the limitations of the  
current dependency engine).


Charlse, you only seem to have texlive_texmf-minimal and texlive_base  
installed, not texlive. Install the texlive port, using the +minimal  
variant if you don't want to download texlive_texmf-full.


- Josh

I think I have it installed already:

$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)
$

And also is it possible to use MacTex instead? If so, then how do I  
get rid of the texlive completely (I don't have enough space on my  
drive). I doubt if `port uninstall´ will do.


Charles

Re: layout file for .tex files

2008-04-04 Thread Joshua Root

Bennett Helm wrote:
On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:



$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin
/usr/sbin /bin /sbin /bin /sbin /usr/bin /usr/sbin
$ port info lyx
…
Library Dependencies: qt4-mac, texlive, ImageMagick, python25
$

Am I missing latex? And if so, where do I get it from?


It certainly looks as though you're missing it. (My guess is that if you 
installed it via macports, it would be in /opt/local somewhere. It used 
to be in /opt/local/teTeX/bin, but maybe with a switch to TeXlive, 
that's changed to -- guessing here -- /opt/local/texlive/bin. If so, it 
looks as though macports failed to set up your paths properly.)


Sorry I haven't had time to reply earlier, folks. This is what I get:

% which latex
/opt/local/bin/latex
% port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: texlive

LyX does have a dependency on texlive, but it's a special sort of 
dependency. Port checks whether there is a TeX-provided binary in the 
PATH, and if there isn't, it installs texlive. This is to allow users to 
have a choice of TeX distributions (within the limitations of the 
current dependency engine).


Charlse, you only seem to have texlive_texmf-minimal and texlive_base 
installed, not texlive. Install the texlive port, using the +minimal 
variant if you don't want to download texlive_texmf-full.


- Josh


Re: layout file for .tex files

2008-04-04 Thread Joshua Root

Charlse Darwin wrote:


On Apr 4, 2008, at 2:32 PM, Joshua Root wrote:
% which latex
/opt/local/bin/latex
% port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: texlive

$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin 
~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin 
/bin /sbin /bin /sbin /usr/bin /usr/sbin



I think I have it installed already:

$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)
$


As I said, latex is provided by the texlive port, which you don't have 
installed. On my system:


% port installed | grep texlive
  texlive @2007_4 (active)
  texlive_base @2007_1 (active)
  texlive_texmf-full @2007_0 (active)
  texlive_texmf-minimal @2007_0 (active)

And also is it possible to use MacTex instead? If so, then how do I get 
rid of the texlive completely (I don't have enough space on my drive). I 
doubt if `port uninstall´ will do.


I don't see any reason why MacTeX wouldn't work with the MacPorts-built 
LyX. If port complains about dependencies when you try to uninstall the 
texlive* ports, use the -f option.


- Josh


Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 4, 2008, at 3:19 PM, Joshua Root wrote:
Charlse Darwin wrote:

On Apr 4, 2008, at 2:32 PM, Joshua Root wrote:
% which latex
/opt/local/bin/latex
% port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: texlive
$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin ~/Documents/ 
scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin / 
sbin /bin /sbin /usr/bin /usr/sbin



I think I have it installed already:
$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)
$


As I said, latex is provided by the texlive port, which you don't  
have installed. On my system:


% port installed | grep texlive
  texlive @2007_4 (active)
  texlive_base @2007_1 (active)
  texlive_texmf-full @2007_0 (active)
  texlive_texmf-minimal @2007_0 (active)

`sudo port install texlive +minimal´ did the trick, now:
$ which latex
/opt/local/bin/latex
$
No error message when I open the file, but still doesn't render the  
page completely. There patches of coded text and so on.


And also is it possible to use MacTex instead? If so, then how do I  
get rid of the texlive completely (I don't have enough space on my  
drive). I doubt if `port uninstall´ will do.


I don't see any reason why MacTeX wouldn't work with the MacPorts- 
built LyX. If port complains about dependencies when you try to  
uninstall the texlive* ports, use the -f option.


- Josh

Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 3, 2008, at 2:07 PM, Bennett Helm wrote:
On Thu, Apr 3, 2008 at 11:51 AM, Bob Lounsbury [EMAIL PROTECTED]
wrote:

On Thu, Apr 3, 2008 at 9:23 AM, Charlse Darwin  
[EMAIL PROTECTED]

wrote:

 In Lyx-Preference-Paths-PATH prefix I have

/usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/ 
local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/ 
powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple- 
darwin-current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/ 
bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin



That's the problem then. You need to add the path to your paths :-}.
So that LyX knows where all your LaTeX stuff is.



Yes. I'm not sure where macports puts its latex files, but you can  
find out

by going to Terminal.app (Applications  Utilities) and typing:

which latex

$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin ~/Documents/ 
scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin / 
sbin /bin /sbin /usr/bin /usr/sbin

$ port info lyx
…
Library Dependencies: qt4-mac, texlive, ImageMagick, python25
$

Am I missing latex? And if so, where do I get it from?

which should return the path to latex. That path (minus the latex  
part) is
what you need to add to the PATH prefix, as Bob indicated. So for me,  
which

latex returns:

/usr/texbin/latex

and so I add to the beginning of PATH prefix just the /usr/texbin  
part,
followed by a colon (:). (Of course, in my case, /usr/texbin is  
already

there, which is why it works for me.) Then LyX should work for you.

Please let us know what you have to add. I haven't used macports  
lately, so
I'm not sure where they currently put the latex executables, but we  
should

make sure that is a part of the default PATH prefix so that others don't
have this problem.

One final note: there's no reason to use macports to install LyX. They
actually tend to be behind the current LyX binaries we post on the LyX
website. All you need to do is download the binary, drag LyX.app  
wherever

you want it, run the installer, and you're done.

Bennett



Re: layout file for .tex files

2008-04-04 Thread Bennett Helm
On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin [EMAIL PROTECTED]
wrote:


 $ which latex
 no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
 ~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin
 /sbin /bin /sbin /usr/bin /usr/sbin
 $ port info lyx
 …
 Library Dependencies: qt4-mac, texlive, ImageMagick, python25
 $

 Am I missing latex? And if so, where do I get it from?


It certainly looks as though you're missing it. (My guess is that if you
installed it via macports, it would be in /opt/local somewhere. It used to
be in /opt/local/teTeX/bin, but maybe with a switch to TeXlive, that's
changed to -- guessing here -- /opt/local/texlive/bin. If so, it looks as
though macports failed to set up your paths properly.)

If you really don't have a TeX installation, I'd recommend getting MacTeX
from:

http://www.tug.org/mactex/

Bennett


Re: layout file for .tex files

2008-04-04 Thread Bob Lounsbury
On Fri, Apr 4, 2008 at 6:59 AM, Bennett Helm [EMAIL PROTECTED] wrote:

 On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin [EMAIL PROTECTED]
 wrote:
 
 
  $ which latex
  no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
 ~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin
 /sbin /bin /sbin /usr/bin /usr/sbin
  $ port info lyx
  …
  Library Dependencies: qt4-mac, texlive, ImageMagick, python25
  $
 
  Am I missing latex? And if so, where do I get it from?

 It certainly looks as though you're missing it. (My guess is that if you
 installed it via macports, it would be in /opt/local somewhere. It used to
 be in /opt/local/teTeX/bin, but maybe with a switch to TeXlive, that's
 changed to -- guessing here -- /opt/local/texlive/bin. If so, it looks as
 though macports failed to set up your paths properly.)

 If you really don't have a TeX installation, I'd recommend getting MacTeX
 from:

 http://www.tug.org/mactex/


 Bennett

Isn't there a way to add a PATH to the 'which latex' variable? I'm
pretty sure that Charlse has TeX through the macports TeXlive packages
because of this (that he posted):

$ sudo texhash
texhash: Updating /opt/local/share/texmf/ls-R...
texhash: Updating /opt/local/share/texmf-dist/ls-R...
texhash: Updating /opt/local/share/texmf-var/ls-R...
texhash: Done.
$

And this (now there is a macports texlive_full package if you have space):

$ port installed | grep texlive
 texlive_base @2007_1 (active)
 texlive_texmf-minimal @2007_0 (active)
$

And this (so I think the needed LaTeX packages are available):

/opt/local/share/texmf-dist/tex/latex/base/article.cls

It just seems to me that TeXlive has changed their paths and that
hasn't affected the system properly (I'm a little oblivious to path
stuff :-}).

Does running 'latex' on a '.tex' file work in a shell? Even if it
doesn't I think TeX is installed and Charlse only needs to add
/opt/local/share to his LyX paths and LyX will work even if straight
latex doesn't. Which brings me back to my first question isn't there
a way to add /opt/local/share to the 'which latex' PATH? Since I think
his TeX distribution is fine.

/Bob


Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 4, 2008, at 9:41 AM, Bob Lounsbury wrote:
On Fri, Apr 4, 2008 at 6:59 AM, Bennett Helm [EMAIL PROTECTED] wrote:


On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin  
[EMAIL PROTECTED]

wrote:



$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/ 
sbin /bin

/sbin /bin /sbin /usr/bin /usr/sbin

$ port info lyx
…
Library Dependencies: qt4-mac, texlive, ImageMagick, python25
$

Am I missing latex? And if so, where do I get it from?


It certainly looks as though you're missing it. (My guess is that  
if you
installed it via macports, it would be in /opt/local somewhere. It  
used to

be in /opt/local/teTeX/bin, but maybe with a switch to TeXlive, that's
changed to -- guessing here -- /opt/local/texlive/bin. If so, it  
looks as

though macports failed to set up your paths properly.)

If you really don't have a TeX installation, I'd recommend getting  
MacTeX

from:

http://www.tug.org/mactex/


Bennett


Isn't there a way to add a PATH to the 'which latex' variable? I'm
pretty sure that Charlse has TeX through the macports TeXlive packages
because of this (that he posted):

$ sudo texhash
texhash: Updating /opt/local/share/texmf/ls-R...
texhash: Updating /opt/local/share/texmf-dist/ls-R...
texhash: Updating /opt/local/share/texmf-var/ls-R...
texhash: Done.
$

And this (now there is a macports texlive_full package if you have  
space):


$ port installed | grep texlive
 texlive_base @2007_1 (active)
 texlive_texmf-minimal @2007_0 (active)
$

And this (so I think the needed LaTeX packages are available):

/opt/local/share/texmf-dist/tex/latex/base/article.cls

It just seems to me that TeXlive has changed their paths and that
hasn't affected the system properly (I'm a little oblivious to path
stuff :-}).

Does running 'latex' on a '.tex' file work in a shell? Even if it
doesn't I think TeX is installed and Charlse only needs to add
/opt/local/share to his LyX paths and LyX will work even if straight
latex doesn't.

I just added /opt/local/share to the Path and now it reads reads:
/usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/ 
local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/ 
powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin- 
current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/ 
local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin:/opt/local/share


No luck

Which brings me back to my first question isn't there
a way to add /opt/local/share to the 'which latex' PATH?

I also added /opt/local/share to the systems path but still no chance.

$ cat .profile | grep share
export PATH=/opt/local/share:$PATH

$ which latex
no latex in /opt/local/share /Users/pm/WebKit/WebKitTools/Scripts / 
usr/local/bin /Users/pm/Documents/scripts/ /opt/local/bin /opt/local/ 
sbin /usr/bin /usr/sbin /bin /sbin /Users/pm/WebKit/WebKitTools/ 
Scripts /usr/local/bin /Users/pm/Documents/scripts/ /opt/local/bin / 
opt/local/sbin /usr/bin /usr/sbin /bin /sbin /bin /sbin /usr/bin /usr/ 
sbin


Since I think his TeX distribution is fine.

/Bob



Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin

On Apr 4, 2008, at 11:22 AM, Bob Lounsbury wrote:
On Fri, Apr 4, 2008 at 9:01 AM, Charlse Darwin  
[EMAIL PROTECTED] wrote:

 $ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)


 $ which latex
 no latex in /opt/local/share /Users/pm/WebKit/WebKitTools/Scripts
/usr/local/bin /Users/pm/Documents/scripts/ /opt/local/bin /opt/ 
local/sbin

/usr/bin /usr/sbin /bin /sbin /Users/pm/WebKit/WebKitTools/Scripts
/usr/local/bin /Users/pm/Documents/scripts/ /opt/local/bin /opt/ 
local/sbin

/usr/bin /usr/sbin /bin /sbin /bin /sbin /usr/bin /usr/sbin

 Since I think his TeX distribution is fine.

 /Bob


Strange. All I can say is you have the 'base' and the 'texmf-minimal'
texlive packages installed and this does not seem to be a complete TeX
distribution install.

We've been Cc:ing, [EMAIL PROTECTED] Do they not have a recommendation
of what macport packages are necessary for a complete TeX installation
of texlive?

$ port info lyx | grep Dep
Library Dependencies: qt4-mac, texlive, ImageMagick, python25

I will forward a copy to macports' list.


Either consider installing 'texlive' and/or 'texlive_texmf-full' from
macports or whatever is recommended by the macport maintainers or
install MacTeX as Bennett suggested.

/Bob



Re: layout file for .tex files

2008-04-04 Thread Bob Lounsbury
On Fri, Apr 4, 2008 at 9:37 AM, Charlse Darwin [EMAIL PROTECTED] wrote:
  $ port info lyx | grep Dep

  Library Dependencies: qt4-mac, texlive, ImageMagick, python25

Since texlive is listed here, I would 'assume' that you need to
install the macports texlive package to complete the TeX install.

Cheers,
/Bob


Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 4, 2008, at 12:25 PM, Bob Lounsbury wrote:
On Fri, Apr 4, 2008 at 9:37 AM, Charlse Darwin  
[EMAIL PROTECTED] wrote:

 $ port info lyx | grep Dep

 Library Dependencies: qt4-mac, texlive, ImageMagick, python25


Since texlive is listed here, I would 'assume' that you need to
install the macports texlive package to complete the TeX install.

Cheers,
/Bob

I have it installed already. I wouldn't install the Lyx without first  
installing its dependencies.


$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)



Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 4, 2008, at 2:32 PM, Joshua Root wrote:
Bennett Helm wrote:
On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin  
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin
/usr/sbin /bin /sbin /bin /sbin /usr/bin /usr/sbin
$ port info lyx
…
Library Dependencies: qt4-mac, texlive, ImageMagick, python25
$
Am I missing latex? And if so, where do I get it from?
It certainly looks as though you're missing it. (My guess is that  
if you installed it via macports, it would be in /opt/local  
somewhere. It used to be in /opt/local/teTeX/bin, but maybe with a  
switch to TeXlive, that's changed to -- guessing here -- /opt/local/ 
texlive/bin. If so, it looks as though macports failed to set up  
your paths properly.)


Sorry I haven't had time to reply earlier, folks. This is what I get:

% which latex
/opt/local/bin/latex
% port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: texlive

$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin ~/Documents/ 
scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin / 
sbin /bin /sbin /usr/bin /usr/sbin


LyX does have a dependency on texlive, but it's a special sort of  
dependency. Port checks whether there is a TeX-provided binary in the  
PATH, and if there isn't, it installs texlive. This is to allow users  
to have a choice of TeX distributions (within the limitations of the  
current dependency engine).


Charlse, you only seem to have texlive_texmf-minimal and texlive_base  
installed, not texlive. Install the texlive port, using the +minimal  
variant if you don't want to download texlive_texmf-full.


- Josh

I think I have it installed already:

$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)
$

And also is it possible to use MacTex instead? If so, then how do I  
get rid of the texlive completely (I don't have enough space on my  
drive). I doubt if `port uninstall´ will do.


Charles

Re: layout file for .tex files

2008-04-04 Thread Joshua Root

Bennett Helm wrote:
On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:



$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin
/usr/sbin /bin /sbin /bin /sbin /usr/bin /usr/sbin
$ port info lyx
…
Library Dependencies: qt4-mac, texlive, ImageMagick, python25
$

Am I missing latex? And if so, where do I get it from?


It certainly looks as though you're missing it. (My guess is that if you 
installed it via macports, it would be in /opt/local somewhere. It used 
to be in /opt/local/teTeX/bin, but maybe with a switch to TeXlive, 
that's changed to -- guessing here -- /opt/local/texlive/bin. If so, it 
looks as though macports failed to set up your paths properly.)


Sorry I haven't had time to reply earlier, folks. This is what I get:

% which latex
/opt/local/bin/latex
% port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: texlive

LyX does have a dependency on texlive, but it's a special sort of 
dependency. Port checks whether there is a TeX-provided binary in the 
PATH, and if there isn't, it installs texlive. This is to allow users to 
have a choice of TeX distributions (within the limitations of the 
current dependency engine).


Charlse, you only seem to have texlive_texmf-minimal and texlive_base 
installed, not texlive. Install the texlive port, using the +minimal 
variant if you don't want to download texlive_texmf-full.


- Josh


Re: layout file for .tex files

2008-04-04 Thread Joshua Root

Charlse Darwin wrote:


On Apr 4, 2008, at 2:32 PM, Joshua Root wrote:
% which latex
/opt/local/bin/latex
% port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: texlive

$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin 
~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin 
/bin /sbin /bin /sbin /usr/bin /usr/sbin



I think I have it installed already:

$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)
$


As I said, latex is provided by the texlive port, which you don't have 
installed. On my system:


% port installed | grep texlive
  texlive @2007_4 (active)
  texlive_base @2007_1 (active)
  texlive_texmf-full @2007_0 (active)
  texlive_texmf-minimal @2007_0 (active)

And also is it possible to use MacTex instead? If so, then how do I get 
rid of the texlive completely (I don't have enough space on my drive). I 
doubt if `port uninstall´ will do.


I don't see any reason why MacTeX wouldn't work with the MacPorts-built 
LyX. If port complains about dependencies when you try to uninstall the 
texlive* ports, use the -f option.


- Josh


Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 4, 2008, at 3:19 PM, Joshua Root wrote:
Charlse Darwin wrote:

On Apr 4, 2008, at 2:32 PM, Joshua Root wrote:
% which latex
/opt/local/bin/latex
% port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: texlive
$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin ~/Documents/ 
scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin / 
sbin /bin /sbin /usr/bin /usr/sbin



I think I have it installed already:
$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)
$


As I said, latex is provided by the texlive port, which you don't  
have installed. On my system:


% port installed | grep texlive
  texlive @2007_4 (active)
  texlive_base @2007_1 (active)
  texlive_texmf-full @2007_0 (active)
  texlive_texmf-minimal @2007_0 (active)

`sudo port install texlive +minimal´ did the trick, now:
$ which latex
/opt/local/bin/latex
$
No error message when I open the file, but still doesn't render the  
page completely. There patches of coded text and so on.


And also is it possible to use MacTex instead? If so, then how do I  
get rid of the texlive completely (I don't have enough space on my  
drive). I doubt if `port uninstall´ will do.


I don't see any reason why MacTeX wouldn't work with the MacPorts- 
built LyX. If port complains about dependencies when you try to  
uninstall the texlive* ports, use the -f option.


- Josh

Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 3, 2008, at 2:07 PM, Bennett Helm wrote:
On Thu, Apr 3, 2008 at 11:51 AM, Bob Lounsbury <[EMAIL PROTECTED]>
wrote:

On Thu, Apr 3, 2008 at 9:23 AM, Charlse Darwin  
<[EMAIL PROTECTED]>

wrote:

 In Lyx->Preference->Paths->PATH prefix I have

/usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/ 
local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/ 
powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple- 
darwin-current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/ 
bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin



That's the problem then. You need to add the path to your paths :-}.
So that LyX knows where all your LaTeX stuff is.



Yes. I'm not sure where macports puts its latex files, but you can  
find out

by going to Terminal.app (Applications > Utilities) and typing:

which latex

$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin ~/Documents/ 
scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin / 
sbin /bin /sbin /usr/bin /usr/sbin

$ port info lyx
…
Library Dependencies: qt4-mac, texlive, ImageMagick, python25
$

Am I missing latex? And if so, where do I get it from?

which should return the path to latex. That path (minus the "latex"  
part) is
what you need to add to the PATH prefix, as Bob indicated. So for me,  
"which

latex" returns:

/usr/texbin/latex

and so I add to the beginning of PATH prefix just the "/usr/texbin"  
part,
followed by a colon (":"). (Of course, in my case, "/usr/texbin" is  
already

there, which is why it works for me.) Then LyX should work for you.

Please let us know what you have to add. I haven't used macports  
lately, so
I'm not sure where they currently put the latex executables, but we  
should

make sure that is a part of the default PATH prefix so that others don't
have this problem.

One final note: there's no reason to use macports to install LyX. They
actually tend to be behind the current LyX binaries we post on the LyX
website. All you need to do is download the binary, drag LyX.app  
wherever

you want it, run the installer, and you're done.

Bennett



Re: layout file for .tex files

2008-04-04 Thread Bennett Helm
On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin <[EMAIL PROTECTED]>
wrote:

>
> $ which latex
> no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
> ~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin
> /sbin /bin /sbin /usr/bin /usr/sbin
> $ port info lyx
> …
> Library Dependencies: qt4-mac, texlive, ImageMagick, python25
> $
>
> Am I missing latex? And if so, where do I get it from?


It certainly looks as though you're missing it. (My guess is that if you
installed it via macports, it would be in /opt/local somewhere. It used to
be in /opt/local/teTeX/bin, but maybe with a switch to TeXlive, that's
changed to -- guessing here -- /opt/local/texlive/bin. If so, it looks as
though macports failed to set up your paths properly.)

If you really don't have a TeX installation, I'd recommend getting MacTeX
from:

http://www.tug.org/mactex/

Bennett


Re: layout file for .tex files

2008-04-04 Thread Bob Lounsbury
On Fri, Apr 4, 2008 at 6:59 AM, Bennett Helm <[EMAIL PROTECTED]> wrote:
>
> On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > $ which latex
> > no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
> ~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin
> /sbin /bin /sbin /usr/bin /usr/sbin
> > $ port info lyx
> > …
> > Library Dependencies: qt4-mac, texlive, ImageMagick, python25
> > $
> >
> > Am I missing latex? And if so, where do I get it from?
>
> It certainly looks as though you're missing it. (My guess is that if you
> installed it via macports, it would be in /opt/local somewhere. It used to
> be in /opt/local/teTeX/bin, but maybe with a switch to TeXlive, that's
> changed to -- guessing here -- /opt/local/texlive/bin. If so, it looks as
> though macports failed to set up your paths properly.)
>
> If you really don't have a TeX installation, I'd recommend getting MacTeX
> from:
>
> http://www.tug.org/mactex/
>
>
> Bennett

Isn't there a way to add a PATH to the 'which latex' variable? I'm
pretty sure that Charlse has TeX through the macports TeXlive packages
because of this (that he posted):

$ sudo texhash
texhash: Updating /opt/local/share/texmf/ls-R...
texhash: Updating /opt/local/share/texmf-dist/ls-R...
texhash: Updating /opt/local/share/texmf-var/ls-R...
texhash: Done.
$

And this (now there is a macports texlive_full package if you have space):

$ port installed | grep texlive
 texlive_base @2007_1 (active)
 texlive_texmf-minimal @2007_0 (active)
$

And this (so I think the needed LaTeX packages are available):

/opt/local/share/texmf-dist/tex/latex/base/article.cls

It just seems to me that TeXlive has changed their paths and that
hasn't affected the system properly (I'm a little oblivious to path
stuff :-}).

Does running 'latex' on a '.tex' file work in a shell? Even if it
doesn't I think TeX is installed and Charlse only needs to add
/opt/local/share to his LyX paths and LyX will work even if straight
"latex" doesn't. Which brings me back to my first question isn't there
a way to add /opt/local/share to the 'which latex' PATH? Since I think
his TeX distribution is fine.

/Bob


Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 4, 2008, at 9:41 AM, Bob Lounsbury wrote:
On Fri, Apr 4, 2008 at 6:59 AM, Bennett Helm <[EMAIL PROTECTED]> wrote:


On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin  
<[EMAIL PROTECTED]>

wrote:



$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/ 
sbin /bin

/sbin /bin /sbin /usr/bin /usr/sbin

$ port info lyx
…
Library Dependencies: qt4-mac, texlive, ImageMagick, python25
$

Am I missing latex? And if so, where do I get it from?


It certainly looks as though you're missing it. (My guess is that  
if you
installed it via macports, it would be in /opt/local somewhere. It  
used to

be in /opt/local/teTeX/bin, but maybe with a switch to TeXlive, that's
changed to -- guessing here -- /opt/local/texlive/bin. If so, it  
looks as

though macports failed to set up your paths properly.)

If you really don't have a TeX installation, I'd recommend getting  
MacTeX

from:

http://www.tug.org/mactex/


Bennett


Isn't there a way to add a PATH to the 'which latex' variable? I'm
pretty sure that Charlse has TeX through the macports TeXlive packages
because of this (that he posted):

$ sudo texhash
texhash: Updating /opt/local/share/texmf/ls-R...
texhash: Updating /opt/local/share/texmf-dist/ls-R...
texhash: Updating /opt/local/share/texmf-var/ls-R...
texhash: Done.
$

And this (now there is a macports texlive_full package if you have  
space):


$ port installed | grep texlive
 texlive_base @2007_1 (active)
 texlive_texmf-minimal @2007_0 (active)
$

And this (so I think the needed LaTeX packages are available):

/opt/local/share/texmf-dist/tex/latex/base/article.cls

It just seems to me that TeXlive has changed their paths and that
hasn't affected the system properly (I'm a little oblivious to path
stuff :-}).

Does running 'latex' on a '.tex' file work in a shell? Even if it
doesn't I think TeX is installed and Charlse only needs to add
/opt/local/share to his LyX paths and LyX will work even if straight
"latex" doesn't.

I just added /opt/local/share to the Path and now it reads reads:
/usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/ 
local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/ 
powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin- 
current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/ 
local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin:/opt/local/share


No luck

Which brings me back to my first question isn't there
a way to add /opt/local/share to the 'which latex' PATH?

I also added /opt/local/share to the systems path but still no chance.

$ cat .profile | grep share
export PATH=/opt/local/share:$PATH

$ which latex
no latex in /opt/local/share /Users/pm/WebKit/WebKitTools/Scripts / 
usr/local/bin /Users/pm/Documents/scripts/ /opt/local/bin /opt/local/ 
sbin /usr/bin /usr/sbin /bin /sbin /Users/pm/WebKit/WebKitTools/ 
Scripts /usr/local/bin /Users/pm/Documents/scripts/ /opt/local/bin / 
opt/local/sbin /usr/bin /usr/sbin /bin /sbin /bin /sbin /usr/bin /usr/ 
sbin


Since I think his TeX distribution is fine.

/Bob



Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin

On Apr 4, 2008, at 11:22 AM, Bob Lounsbury wrote:
On Fri, Apr 4, 2008 at 9:01 AM, Charlse Darwin  
<[EMAIL PROTECTED]> wrote:

 $ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)


 $ which latex
 no latex in /opt/local/share /Users/pm/WebKit/WebKitTools/Scripts
/usr/local/bin /Users/pm/Documents/scripts/ /opt/local/bin /opt/ 
local/sbin

/usr/bin /usr/sbin /bin /sbin /Users/pm/WebKit/WebKitTools/Scripts
/usr/local/bin /Users/pm/Documents/scripts/ /opt/local/bin /opt/ 
local/sbin

/usr/bin /usr/sbin /bin /sbin /bin /sbin /usr/bin /usr/sbin

 Since I think his TeX distribution is fine.

 /Bob


Strange. All I can say is you have the 'base' and the 'texmf-minimal'
texlive packages installed and this does not seem to be a complete TeX
distribution install.

We've been Cc:ing, [EMAIL PROTECTED] Do they not have a recommendation
of what macport packages are necessary for a complete TeX installation
of texlive?

$ port info lyx | grep Dep
Library Dependencies: qt4-mac, texlive, ImageMagick, python25

I will forward a copy to macports' list.


Either consider installing 'texlive' and/or 'texlive_texmf-full' from
macports or whatever is recommended by the macport maintainers or
install MacTeX as Bennett suggested.

/Bob



Re: layout file for .tex files

2008-04-04 Thread Bob Lounsbury
On Fri, Apr 4, 2008 at 9:37 AM, Charlse Darwin <[EMAIL PROTECTED]> wrote:
>  $ port info lyx | grep Dep
>
>  Library Dependencies: qt4-mac, texlive, ImageMagick, python25

Since texlive is listed here, I would 'assume' that you need to
install the macports texlive package to complete the TeX install.

Cheers,
/Bob


Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 4, 2008, at 12:25 PM, Bob Lounsbury wrote:
On Fri, Apr 4, 2008 at 9:37 AM, Charlse Darwin  
<[EMAIL PROTECTED]> wrote:

 $ port info lyx | grep Dep

 Library Dependencies: qt4-mac, texlive, ImageMagick, python25


Since texlive is listed here, I would 'assume' that you need to
install the macports texlive package to complete the TeX install.

Cheers,
/Bob

I have it installed already. I wouldn't install the Lyx without first  
installing its dependencies.


$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)



Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 4, 2008, at 2:32 PM, Joshua Root wrote:
Bennett Helm wrote:
On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin  
<[EMAIL PROTECTED] > wrote:

$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin
/usr/sbin /bin /sbin /bin /sbin /usr/bin /usr/sbin
$ port info lyx
…
Library Dependencies: qt4-mac, texlive, ImageMagick, python25
$
Am I missing latex? And if so, where do I get it from?
It certainly looks as though you're missing it. (My guess is that  
if you installed it via macports, it would be in /opt/local  
somewhere. It used to be in /opt/local/teTeX/bin, but maybe with a  
switch to TeXlive, that's changed to -- guessing here -- /opt/local/ 
texlive/bin. If so, it looks as though macports failed to set up  
your paths properly.)


Sorry I haven't had time to reply earlier, folks. This is what I get:

% which latex
/opt/local/bin/latex
% port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: texlive

$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin ~/Documents/ 
scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin / 
sbin /bin /sbin /usr/bin /usr/sbin


LyX does have a dependency on texlive, but it's a "special" sort of  
dependency. Port checks whether there is a TeX-provided binary in the  
PATH, and if there isn't, it installs texlive. This is to allow users  
to have a choice of TeX distributions (within the limitations of the  
current dependency engine).


Charlse, you only seem to have texlive_texmf-minimal and texlive_base  
installed, not texlive. Install the texlive port, using the +minimal  
variant if you don't want to download texlive_texmf-full.


- Josh

I think I have it installed already:

$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)
$

And also is it possible to use MacTex instead? If so, then how do I  
get rid of the texlive completely (I don't have enough space on my  
drive). I doubt if `port uninstall´ will do.


Charles

Re: layout file for .tex files

2008-04-04 Thread Joshua Root

Bennett Helm wrote:
On Fri, Apr 4, 2008 at 6:30 AM, Charlse Darwin <[EMAIL PROTECTED] 
> wrote:



$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin
~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin
/usr/sbin /bin /sbin /bin /sbin /usr/bin /usr/sbin
$ port info lyx
…
Library Dependencies: qt4-mac, texlive, ImageMagick, python25
$

Am I missing latex? And if so, where do I get it from?


It certainly looks as though you're missing it. (My guess is that if you 
installed it via macports, it would be in /opt/local somewhere. It used 
to be in /opt/local/teTeX/bin, but maybe with a switch to TeXlive, 
that's changed to -- guessing here -- /opt/local/texlive/bin. If so, it 
looks as though macports failed to set up your paths properly.)


Sorry I haven't had time to reply earlier, folks. This is what I get:

% which latex
/opt/local/bin/latex
% port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: texlive

LyX does have a dependency on texlive, but it's a "special" sort of 
dependency. Port checks whether there is a TeX-provided binary in the 
PATH, and if there isn't, it installs texlive. This is to allow users to 
have a choice of TeX distributions (within the limitations of the 
current dependency engine).


Charlse, you only seem to have texlive_texmf-minimal and texlive_base 
installed, not texlive. Install the texlive port, using the +minimal 
variant if you don't want to download texlive_texmf-full.


- Josh


Re: layout file for .tex files

2008-04-04 Thread Joshua Root

Charlse Darwin wrote:


On Apr 4, 2008, at 2:32 PM, Joshua Root wrote:
% which latex
/opt/local/bin/latex
% port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: texlive

$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin 
~/Documents/scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin 
/bin /sbin /bin /sbin /usr/bin /usr/sbin



I think I have it installed already:

$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)
$


As I said, latex is provided by the texlive port, which you don't have 
installed. On my system:


% port installed | grep texlive
  texlive @2007_4 (active)
  texlive_base @2007_1 (active)
  texlive_texmf-full @2007_0 (active)
  texlive_texmf-minimal @2007_0 (active)

And also is it possible to use MacTex instead? If so, then how do I get 
rid of the texlive completely (I don't have enough space on my drive). I 
doubt if `port uninstall´ will do.


I don't see any reason why MacTeX wouldn't work with the MacPorts-built 
LyX. If port complains about dependencies when you try to uninstall the 
texlive* ports, use the -f option.


- Josh


Re: layout file for .tex files

2008-04-04 Thread Charlse Darwin


On Apr 4, 2008, at 3:19 PM, Joshua Root wrote:
Charlse Darwin wrote:

On Apr 4, 2008, at 2:32 PM, Joshua Root wrote:
% which latex
/opt/local/bin/latex
% port provides /opt/local/bin/latex
/opt/local/bin/latex is provided by: texlive
$ which latex
no latex in ~/WebKit/WebKitTools/Scripts /usr/local/bin ~/Documents/ 
scripts/ /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin /bin / 
sbin /bin /sbin /usr/bin /usr/sbin



I think I have it installed already:
$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)
$


As I said, latex is provided by the texlive port, which you don't  
have installed. On my system:


% port installed | grep texlive
  texlive @2007_4 (active)
  texlive_base @2007_1 (active)
  texlive_texmf-full @2007_0 (active)
  texlive_texmf-minimal @2007_0 (active)

`sudo port install texlive +minimal´ did the trick, now:
$ which latex
/opt/local/bin/latex
$
No error message when I open the file, but still doesn't render the  
page completely. There patches of coded text and so on.


And also is it possible to use MacTex instead? If so, then how do I  
get rid of the texlive completely (I don't have enough space on my  
drive). I doubt if `port uninstall´ will do.


I don't see any reason why MacTeX wouldn't work with the MacPorts- 
built LyX. If port complains about dependencies when you try to  
uninstall the texlive* ports, use the -f option.


- Josh

Re: layout file for .tex files

2008-04-03 Thread Bob Lounsbury
On Thu, Apr 3, 2008 at 4:13 AM, Charlse Darwin [EMAIL PROTECTED] wrote:
  Hi,

  It seems that I have textlive already installed.

  $ port installed | grep texlive
   texlive_base @2007_1 (active)
   texlive_texmf-minimal @2007_0 (active)
  $


Before we try anything else. Open a shell as root and run 'texhash'
this should refresh the LaTeX package database. Then open LyX and run
Tools-Reconfigure and restart LyX, maybe run Reconfigure twice and
restart LyX. Do you still receive the error message?

/Bob


Re: layout file for .tex files

2008-04-03 Thread Bob Lounsbury
On Thu, Apr 3, 2008 at 8:31 AM, Charlse Darwin [EMAIL PROTECTED] wrote:

  On Apr 3, 2008, at 8:40 AM, Bob Lounsbury wrote:

  On Thu, Apr 3, 2008 at 4:13 AM, Charlse Darwin [EMAIL PROTECTED]
 wrote:


   Hi,
 
   It seems that I have textlive already installed.
 
   $ port installed | grep texlive
   texlive_base @2007_1 (active)
   texlive_texmf-minimal @2007_0 (active)
   $
 
 


  Before we try anything else. Open a shell as root and run 'texhash'
  this should refresh the LaTeX package database.

  $ sudo texhash
  texhash: Updating /opt/local/share/texmf/ls-R...
  texhash: Updating /opt/local/share/texmf-dist/ls-R...
  texhash: Updating /opt/local/share/texmf-var/ls-R...
  texhash: Done.
  $


  Then open LyX and run
  Tools-Reconfigure and restart LyX, maybe run Reconfigure twice and
  restart LyX. Do you still receive the error message?

  /Bob

  I have Tools-TeX Information here and then `LaTex classes' `Latex styles'
 `BibTex styles'. I Rescan them all (twice).
  And also LyX-Reconfigure which I did and then it asked me to restart the
 LyX.

  Same error message pops-up!

  Here is the file that I am trying to open:


In LyX Document-Settings-Document Class does 'article' show as
'Unavailable: article'? If so then either you don't have 'article.cls'
installed on your computer through the texlive packages or LyX is not
recognizing the path to texmf* folders.

If you have article.cls installed in one of the
/opt/local/share/texmf* directories then the path needs to be added to
Tools-Preferences-Paths-PATH prefix so that LyX will recognize the
files installed there. You should just need to add /opt/local/share to
the list of paths separated by a semi-colon and then reconfigure LyX.

/Bob


Re: layout file for .tex files

2008-04-03 Thread Charlse Darwin


On Apr 3, 2008, at 10:57 AM, Bob Lounsbury wrote:
On Thu, Apr 3, 2008 at 8:31 AM, Charlse Darwin  
[EMAIL PROTECTED] wrote:


 On Apr 3, 2008, at 8:40 AM, Bob Lounsbury wrote:

 On Thu, Apr 3, 2008 at 4:13 AM, Charlse Darwin  
[EMAIL PROTECTED]

wrote:



 Hi,

 It seems that I have textlive already installed.

 $ port installed | grep texlive
 texlive_base @2007_1 (active)
 texlive_texmf-minimal @2007_0 (active)
 $





 Before we try anything else. Open a shell as root and run 'texhash'
 this should refresh the LaTeX package database.

 $ sudo texhash
 texhash: Updating /opt/local/share/texmf/ls-R...
 texhash: Updating /opt/local/share/texmf-dist/ls-R...
 texhash: Updating /opt/local/share/texmf-var/ls-R...
 texhash: Done.
 $


 Then open LyX and run
 Tools-Reconfigure and restart LyX, maybe run Reconfigure twice and
 restart LyX. Do you still receive the error message?

 /Bob

 I have Tools-TeX Information here and then `LaTex classes' `Latex  
styles'

`BibTex styles'. I Rescan them all (twice).
 And also LyX-Reconfigure which I did and then it asked me to  
restart the

LyX.

 Same error message pops-up!

 Here is the file that I am trying to open:



In LyX Document-Settings-Document Class does 'article' show as
'Unavailable: article'?

Yes.

If so then either you don't have 'article.cls'
installed on your computer through the texlive packages or LyX is not
recognizing the path to texmf* folders.

In Tools-TeX Information under `LaTex classes' I have:

/opt/local/share/texmf-dist/tex/latex/base/article.cls

If you have article.cls installed in one of the
/opt/local/share/texmf* directories then the path needs to be added to
Tools-Preferences-Paths-PATH prefix so that LyX will recognize the
files installed there.
In Lyx-Preference-Paths-PATH prefix I have

/usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/ 
local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/ 
powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin- 
current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/ 
local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin


You should just need to add /opt/local/share to
the list of paths separated by a semi-colon and then reconfigure LyX.

/Bob



Re: layout file for .tex files

2008-04-03 Thread Bob Lounsbury
On Thu, Apr 3, 2008 at 9:23 AM, Charlse Darwin [EMAIL PROTECTED] wrote:
  In Lyx-Preference-Paths-PATH prefix I have
 /usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin-current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin


That's the problem then. You need to add the path to your paths :-}.
So that LyX knows where all your LaTeX stuff is.

This is what the LyX wiki says, http://wiki.lyx.org/Mac/Mac:

To use other implementations of teTeX which do not install the
binaries in /usr/texbin,
/usr/local/teTeX/bin/powerpc-apple-darwin-current, /sw/bin,
/opt/local/teTeX/bin, or /usr/local/bin, either link the teTeX
binaries to one of those directories, or add the PATH of your teTeX
binaries to the PATH prefix field in LyX - Preferences - Paths.

I'm not exactly positive what path you need to add which would
correspond to the teTeX binaries. I would just do a trial and error.
First, just add /opt/local/share and then Reconfigure LyX and see if
Document-Settings-Document Class has changed to available. Bennett
is the Mac expert but he hasn't responded yet. I'm sure he would have
a more sophisticated approach.

Cheers,
/Bob


Re: layout file for .tex files

2008-04-03 Thread Bennett Helm
On Thu, Apr 3, 2008 at 11:51 AM, Bob Lounsbury [EMAIL PROTECTED]
wrote:

 On Thu, Apr 3, 2008 at 9:23 AM, Charlse Darwin [EMAIL PROTECTED]
 wrote:
   In Lyx-Preference-Paths-PATH prefix I have
 
 /usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin-current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin


 That's the problem then. You need to add the path to your paths :-}.
 So that LyX knows where all your LaTeX stuff is.


Yes. I'm not sure where macports puts its latex files, but you can find out
by going to Terminal.app (Applications  Utilities) and typing:

which latex

which should return the path to latex. That path (minus the latex part) is
what you need to add to the PATH prefix, as Bob indicated. So for me, which
latex returns:

/usr/texbin/latex

and so I add to the beginning of PATH prefix just the /usr/texbin part,
followed by a colon (:). (Of course, in my case, /usr/texbin is already
there, which is why it works for me.) Then LyX should work for you.

Please let us know what you have to add. I haven't used macports lately, so
I'm not sure where they currently put the latex executables, but we should
make sure that is a part of the default PATH prefix so that others don't
have this problem.

One final note: there's no reason to use macports to install LyX. They
actually tend to be behind the current LyX binaries we post on the LyX
website. All you need to do is download the binary, drag LyX.app wherever
you want it, run the installer, and you're done.

Bennett


Re: layout file for .tex files

2008-04-03 Thread Bob Lounsbury
On Thu, Apr 3, 2008 at 4:13 AM, Charlse Darwin [EMAIL PROTECTED] wrote:
  Hi,

  It seems that I have textlive already installed.

  $ port installed | grep texlive
   texlive_base @2007_1 (active)
   texlive_texmf-minimal @2007_0 (active)
  $


Before we try anything else. Open a shell as root and run 'texhash'
this should refresh the LaTeX package database. Then open LyX and run
Tools-Reconfigure and restart LyX, maybe run Reconfigure twice and
restart LyX. Do you still receive the error message?

/Bob


Re: layout file for .tex files

2008-04-03 Thread Bob Lounsbury
On Thu, Apr 3, 2008 at 8:31 AM, Charlse Darwin [EMAIL PROTECTED] wrote:

  On Apr 3, 2008, at 8:40 AM, Bob Lounsbury wrote:

  On Thu, Apr 3, 2008 at 4:13 AM, Charlse Darwin [EMAIL PROTECTED]
 wrote:


   Hi,
 
   It seems that I have textlive already installed.
 
   $ port installed | grep texlive
   texlive_base @2007_1 (active)
   texlive_texmf-minimal @2007_0 (active)
   $
 
 


  Before we try anything else. Open a shell as root and run 'texhash'
  this should refresh the LaTeX package database.

  $ sudo texhash
  texhash: Updating /opt/local/share/texmf/ls-R...
  texhash: Updating /opt/local/share/texmf-dist/ls-R...
  texhash: Updating /opt/local/share/texmf-var/ls-R...
  texhash: Done.
  $


  Then open LyX and run
  Tools-Reconfigure and restart LyX, maybe run Reconfigure twice and
  restart LyX. Do you still receive the error message?

  /Bob

  I have Tools-TeX Information here and then `LaTex classes' `Latex styles'
 `BibTex styles'. I Rescan them all (twice).
  And also LyX-Reconfigure which I did and then it asked me to restart the
 LyX.

  Same error message pops-up!

  Here is the file that I am trying to open:


In LyX Document-Settings-Document Class does 'article' show as
'Unavailable: article'? If so then either you don't have 'article.cls'
installed on your computer through the texlive packages or LyX is not
recognizing the path to texmf* folders.

If you have article.cls installed in one of the
/opt/local/share/texmf* directories then the path needs to be added to
Tools-Preferences-Paths-PATH prefix so that LyX will recognize the
files installed there. You should just need to add /opt/local/share to
the list of paths separated by a semi-colon and then reconfigure LyX.

/Bob


Re: layout file for .tex files

2008-04-03 Thread Charlse Darwin


On Apr 3, 2008, at 10:57 AM, Bob Lounsbury wrote:
On Thu, Apr 3, 2008 at 8:31 AM, Charlse Darwin  
[EMAIL PROTECTED] wrote:


 On Apr 3, 2008, at 8:40 AM, Bob Lounsbury wrote:

 On Thu, Apr 3, 2008 at 4:13 AM, Charlse Darwin  
[EMAIL PROTECTED]

wrote:



 Hi,

 It seems that I have textlive already installed.

 $ port installed | grep texlive
 texlive_base @2007_1 (active)
 texlive_texmf-minimal @2007_0 (active)
 $





 Before we try anything else. Open a shell as root and run 'texhash'
 this should refresh the LaTeX package database.

 $ sudo texhash
 texhash: Updating /opt/local/share/texmf/ls-R...
 texhash: Updating /opt/local/share/texmf-dist/ls-R...
 texhash: Updating /opt/local/share/texmf-var/ls-R...
 texhash: Done.
 $


 Then open LyX and run
 Tools-Reconfigure and restart LyX, maybe run Reconfigure twice and
 restart LyX. Do you still receive the error message?

 /Bob

 I have Tools-TeX Information here and then `LaTex classes' `Latex  
styles'

`BibTex styles'. I Rescan them all (twice).
 And also LyX-Reconfigure which I did and then it asked me to  
restart the

LyX.

 Same error message pops-up!

 Here is the file that I am trying to open:



In LyX Document-Settings-Document Class does 'article' show as
'Unavailable: article'?

Yes.

If so then either you don't have 'article.cls'
installed on your computer through the texlive packages or LyX is not
recognizing the path to texmf* folders.

In Tools-TeX Information under `LaTex classes' I have:

/opt/local/share/texmf-dist/tex/latex/base/article.cls

If you have article.cls installed in one of the
/opt/local/share/texmf* directories then the path needs to be added to
Tools-Preferences-Paths-PATH prefix so that LyX will recognize the
files installed there.
In Lyx-Preference-Paths-PATH prefix I have

/usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/ 
local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/ 
powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin- 
current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/ 
local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin


You should just need to add /opt/local/share to
the list of paths separated by a semi-colon and then reconfigure LyX.

/Bob



Re: layout file for .tex files

2008-04-03 Thread Bob Lounsbury
On Thu, Apr 3, 2008 at 9:23 AM, Charlse Darwin [EMAIL PROTECTED] wrote:
  In Lyx-Preference-Paths-PATH prefix I have
 /usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin-current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin


That's the problem then. You need to add the path to your paths :-}.
So that LyX knows where all your LaTeX stuff is.

This is what the LyX wiki says, http://wiki.lyx.org/Mac/Mac:

To use other implementations of teTeX which do not install the
binaries in /usr/texbin,
/usr/local/teTeX/bin/powerpc-apple-darwin-current, /sw/bin,
/opt/local/teTeX/bin, or /usr/local/bin, either link the teTeX
binaries to one of those directories, or add the PATH of your teTeX
binaries to the PATH prefix field in LyX - Preferences - Paths.

I'm not exactly positive what path you need to add which would
correspond to the teTeX binaries. I would just do a trial and error.
First, just add /opt/local/share and then Reconfigure LyX and see if
Document-Settings-Document Class has changed to available. Bennett
is the Mac expert but he hasn't responded yet. I'm sure he would have
a more sophisticated approach.

Cheers,
/Bob


Re: layout file for .tex files

2008-04-03 Thread Bennett Helm
On Thu, Apr 3, 2008 at 11:51 AM, Bob Lounsbury [EMAIL PROTECTED]
wrote:

 On Thu, Apr 3, 2008 at 9:23 AM, Charlse Darwin [EMAIL PROTECTED]
 wrote:
   In Lyx-Preference-Paths-PATH prefix I have
 
 /usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin-current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin


 That's the problem then. You need to add the path to your paths :-}.
 So that LyX knows where all your LaTeX stuff is.


Yes. I'm not sure where macports puts its latex files, but you can find out
by going to Terminal.app (Applications  Utilities) and typing:

which latex

which should return the path to latex. That path (minus the latex part) is
what you need to add to the PATH prefix, as Bob indicated. So for me, which
latex returns:

/usr/texbin/latex

and so I add to the beginning of PATH prefix just the /usr/texbin part,
followed by a colon (:). (Of course, in my case, /usr/texbin is already
there, which is why it works for me.) Then LyX should work for you.

Please let us know what you have to add. I haven't used macports lately, so
I'm not sure where they currently put the latex executables, but we should
make sure that is a part of the default PATH prefix so that others don't
have this problem.

One final note: there's no reason to use macports to install LyX. They
actually tend to be behind the current LyX binaries we post on the LyX
website. All you need to do is download the binary, drag LyX.app wherever
you want it, run the installer, and you're done.

Bennett


Re: layout file for .tex files

2008-04-03 Thread Charlse Darwin


On Apr 2, 2008, at 10:08 PM, Bob Lounsbury wrote:
On Wed, Apr 2, 2008 at 7:33 PM, Charlse Darwin  
<[EMAIL PROTECTED]> wrote:
I just installed LyX via MacPorts and now have a newbie question  
for you

all:

 I get following error message:

 ``The layout file requested by this document, article.layout, is not
usable. This is probably because a LaTeX class or style file  
required by it
is not available. See the Customization documentation for more  
information.

LyX will not be able to produce output.''

 when I try to open a .tex file. What's going on and what are we  
talking

about?

 $ uname -a
 Darwin Mac.loc 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10  
18:26:00 PDT

2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
 $



Sounds like you haven't installed a TeX distribution. The distribution
will contain article.cls which article.layout needs.

I don't know much about Mac stuff, but I thought MacTeX was a popular
option. I'm sure there are other ways. Actually, I just looked at
MacPorts and they have TeXLive (this is the prefered distribution for
Linux). You need to install TeXLive which is a TeX distribution.

Cheers,
/Bob


Hi,

It seems that I have textlive already installed.

$ port installed | grep texlive
  texlive_base @2007_1 (active)
  texlive_texmf-minimal @2007_0 (active)
$




Re: layout file for .tex files

2008-04-03 Thread Bob Lounsbury
On Thu, Apr 3, 2008 at 4:13 AM, Charlse Darwin <[EMAIL PROTECTED]> wrote:
>  Hi,
>
>  It seems that I have textlive already installed.
>
>  $ port installed | grep texlive
>   texlive_base @2007_1 (active)
>   texlive_texmf-minimal @2007_0 (active)
>  $


Before we try anything else. Open a shell as root and run 'texhash'
this should refresh the LaTeX package database. Then open LyX and run
Tools->Reconfigure and restart LyX, maybe run Reconfigure twice and
restart LyX. Do you still receive the error message?

/Bob


Re: layout file for .tex files

2008-04-03 Thread Bob Lounsbury
On Thu, Apr 3, 2008 at 8:31 AM, Charlse Darwin <[EMAIL PROTECTED]> wrote:
>
>  On Apr 3, 2008, at 8:40 AM, Bob Lounsbury wrote:
>
>  On Thu, Apr 3, 2008 at 4:13 AM, Charlse Darwin <[EMAIL PROTECTED]>
> wrote:
>
>
> >  Hi,
> >
> >  It seems that I have textlive already installed.
> >
> >  $ port installed | grep texlive
> >  texlive_base @2007_1 (active)
> >  texlive_texmf-minimal @2007_0 (active)
> >  $
> >
> >
>
>
>  Before we try anything else. Open a shell as root and run 'texhash'
>  this should refresh the LaTeX package database.
>
>  $ sudo texhash
>  texhash: Updating /opt/local/share/texmf/ls-R...
>  texhash: Updating /opt/local/share/texmf-dist/ls-R...
>  texhash: Updating /opt/local/share/texmf-var/ls-R...
>  texhash: Done.
>  $
>
>
>  Then open LyX and run
>  Tools->Reconfigure and restart LyX, maybe run Reconfigure twice and
>  restart LyX. Do you still receive the error message?
>
>  /Bob
>
>  I have Tools->TeX Information here and then `LaTex classes' `Latex styles'
> `BibTex styles'. I Rescan them all (twice).
>  And also LyX->Reconfigure which I did and then it asked me to restart the
> LyX.
>
>  Same error message pops-up!
>
>  Here is the file that I am trying to open:


In LyX Document->Settings->Document Class does 'article' show as
'Unavailable: article'? If so then either you don't have 'article.cls'
installed on your computer through the texlive packages or LyX is not
recognizing the path to texmf* folders.

If you have article.cls installed in one of the
/opt/local/share/texmf* directories then the path needs to be added to
Tools->Preferences->Paths->PATH prefix so that LyX will recognize the
files installed there. You should just need to add /opt/local/share to
the list of paths separated by a semi-colon and then reconfigure LyX.

/Bob


Re: layout file for .tex files

2008-04-03 Thread Charlse Darwin


On Apr 3, 2008, at 10:57 AM, Bob Lounsbury wrote:
On Thu, Apr 3, 2008 at 8:31 AM, Charlse Darwin  
<[EMAIL PROTECTED]> wrote:


 On Apr 3, 2008, at 8:40 AM, Bob Lounsbury wrote:

 On Thu, Apr 3, 2008 at 4:13 AM, Charlse Darwin  
<[EMAIL PROTECTED]>

wrote:



 Hi,

 It seems that I have textlive already installed.

 $ port installed | grep texlive
 texlive_base @2007_1 (active)
 texlive_texmf-minimal @2007_0 (active)
 $





 Before we try anything else. Open a shell as root and run 'texhash'
 this should refresh the LaTeX package database.

 $ sudo texhash
 texhash: Updating /opt/local/share/texmf/ls-R...
 texhash: Updating /opt/local/share/texmf-dist/ls-R...
 texhash: Updating /opt/local/share/texmf-var/ls-R...
 texhash: Done.
 $


 Then open LyX and run
 Tools->Reconfigure and restart LyX, maybe run Reconfigure twice and
 restart LyX. Do you still receive the error message?

 /Bob

 I have Tools->TeX Information here and then `LaTex classes' `Latex  
styles'

`BibTex styles'. I Rescan them all (twice).
 And also LyX->Reconfigure which I did and then it asked me to  
restart the

LyX.

 Same error message pops-up!

 Here is the file that I am trying to open:



In LyX Document->Settings->Document Class does 'article' show as
'Unavailable: article'?

Yes.

If so then either you don't have 'article.cls'
installed on your computer through the texlive packages or LyX is not
recognizing the path to texmf* folders.

In Tools->TeX Information under `LaTex classes' I have:

/opt/local/share/texmf-dist/tex/latex/base/article.cls

If you have article.cls installed in one of the
/opt/local/share/texmf* directories then the path needs to be added to
Tools->Preferences->Paths->PATH prefix so that LyX will recognize the
files installed there.
In Lyx->Preference->Paths->PATH prefix I have

/usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/ 
local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/ 
powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin- 
current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/ 
local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin


You should just need to add /opt/local/share to
the list of paths separated by a semi-colon and then reconfigure LyX.

/Bob



Re: layout file for .tex files

2008-04-03 Thread Bob Lounsbury
On Thu, Apr 3, 2008 at 9:23 AM, Charlse Darwin <[EMAIL PROTECTED]> wrote:
>  In Lyx->Preference->Paths->PATH prefix I have
> >/usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin-current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin


That's the problem then. You need to add the path to your paths :-}.
So that LyX knows where all your LaTeX stuff is.

This is what the LyX wiki says, http://wiki.lyx.org/Mac/Mac:

To use other implementations of teTeX which do not install the
binaries in /usr/texbin,
/usr/local/teTeX/bin/powerpc-apple-darwin-current, /sw/bin,
/opt/local/teTeX/bin, or /usr/local/bin, either link the teTeX
binaries to one of those directories, or add the PATH of your teTeX
binaries to the PATH prefix field in LyX -> Preferences -> Paths.

I'm not exactly positive what path you need to add which would
correspond to the teTeX binaries. I would just do a trial and error.
First, just add /opt/local/share and then Reconfigure LyX and see if
Document-Settings->Document Class has changed to "available". Bennett
is the Mac expert but he hasn't responded yet. I'm sure he would have
a more sophisticated approach.

Cheers,
/Bob


Re: layout file for .tex files

2008-04-03 Thread Bennett Helm
On Thu, Apr 3, 2008 at 11:51 AM, Bob Lounsbury <[EMAIL PROTECTED]>
wrote:

> On Thu, Apr 3, 2008 at 9:23 AM, Charlse Darwin <[EMAIL PROTECTED]>
> wrote:
> >  In Lyx->Preference->Paths->PATH prefix I have
> >
> >/usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin-current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin
>
>
> That's the problem then. You need to add the path to your paths :-}.
> So that LyX knows where all your LaTeX stuff is.


Yes. I'm not sure where macports puts its latex files, but you can find out
by going to Terminal.app (Applications > Utilities) and typing:

which latex

which should return the path to latex. That path (minus the "latex" part) is
what you need to add to the PATH prefix, as Bob indicated. So for me, "which
latex" returns:

/usr/texbin/latex

and so I add to the beginning of PATH prefix just the "/usr/texbin" part,
followed by a colon (":"). (Of course, in my case, "/usr/texbin" is already
there, which is why it works for me.) Then LyX should work for you.

Please let us know what you have to add. I haven't used macports lately, so
I'm not sure where they currently put the latex executables, but we should
make sure that is a part of the default PATH prefix so that others don't
have this problem.

One final note: there's no reason to use macports to install LyX. They
actually tend to be behind the current LyX binaries we post on the LyX
website. All you need to do is download the binary, drag LyX.app wherever
you want it, run the installer, and you're done.

Bennett


Re: layout file for .tex files

2008-04-02 Thread Bob Lounsbury
On Wed, Apr 2, 2008 at 7:33 PM, Charlse Darwin [EMAIL PROTECTED] wrote:
 I just installed LyX via MacPorts and now have a newbie question for you
 all:

  I get following error message:

  ``The layout file requested by this document, article.layout, is not
 usable. This is probably because a LaTeX class or style file required by it
 is not available. See the Customization documentation for more information.
 LyX will not be able to produce output.''

  when I try to open a .tex file. What's going on and what are we talking
 about?

  $ uname -a
  Darwin Mac.loc 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT
 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
  $


Sounds like you haven't installed a TeX distribution. The distribution
will contain article.cls which article.layout needs.

I don't know much about Mac stuff, but I thought MacTeX was a popular
option. I'm sure there are other ways. Actually, I just looked at
MacPorts and they have TeXLive (this is the prefered distribution for
Linux). You need to install TeXLive which is a TeX distribution.

Cheers,
/Bob


Re: layout file for .tex files

2008-04-02 Thread Bob Lounsbury
On Wed, Apr 2, 2008 at 7:33 PM, Charlse Darwin [EMAIL PROTECTED] wrote:
 I just installed LyX via MacPorts and now have a newbie question for you
 all:

  I get following error message:

  ``The layout file requested by this document, article.layout, is not
 usable. This is probably because a LaTeX class or style file required by it
 is not available. See the Customization documentation for more information.
 LyX will not be able to produce output.''

  when I try to open a .tex file. What's going on and what are we talking
 about?

  $ uname -a
  Darwin Mac.loc 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT
 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
  $


Sounds like you haven't installed a TeX distribution. The distribution
will contain article.cls which article.layout needs.

I don't know much about Mac stuff, but I thought MacTeX was a popular
option. I'm sure there are other ways. Actually, I just looked at
MacPorts and they have TeXLive (this is the prefered distribution for
Linux). You need to install TeXLive which is a TeX distribution.

Cheers,
/Bob


Re: layout file for .tex files

2008-04-02 Thread Bob Lounsbury
On Wed, Apr 2, 2008 at 7:33 PM, Charlse Darwin <[EMAIL PROTECTED]> wrote:
> I just installed LyX via MacPorts and now have a newbie question for you
> all:
>
>  I get following error message:
>
>  ``The layout file requested by this document, article.layout, is not
> usable. This is probably because a LaTeX class or style file required by it
> is not available. See the Customization documentation for more information.
> LyX will not be able to produce output.''
>
>  when I try to open a .tex file. What's going on and what are we talking
> about?
>
>  $ uname -a
>  Darwin Mac.loc 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT
> 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
>  $
>

Sounds like you haven't installed a TeX distribution. The distribution
will contain article.cls which article.layout needs.

I don't know much about Mac stuff, but I thought MacTeX was a popular
option. I'm sure there are other ways. Actually, I just looked at
MacPorts and they have TeXLive (this is the prefered distribution for
Linux). You need to install TeXLive which is a TeX distribution.

Cheers,
/Bob