Re: Re: configuring lyx to use an alternative Texlive version Solved

2012-04-28 Thread Kornel Benko
Am Sonntag, 29. April 2012 um 12:01:16, schrieb Alasdair Reed 

> On Sat, 28 Apr 2012 11:56:08 -0500
> stefano franchi  wrote:
> 
> > On Sat, Apr 28, 2012 at 9:50 AM, Alasdair Reed
> >  wrote:
> > > On Sat, 28 Apr 2012 08:20:23 -0500
> > > stefano franchi  wrote:
> > >
> > >> On Sat, Apr 28, 2012 at 5:09 AM, Alasdair Reed
> > >>  wrote:
> > >>
> > >> > Is that right?  Which logfile should I check?  The
> > >>
> > >> You can check the Latex log by going to Document>>Latex Log
> > >> The first line will tell you which version of of Texlive LyX is
> > >> using
> > >>
> > >> > dialogue /documents/settings/fonts/use non-Tex fonts via
> > >> > XeTex/LuaTex, is greyed out. The package fontspec needs to be
> > >> > installed to use this dialogue box, it is installed in
> > >> > TexLive2011
> > >> > (/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty)
> > >> > on my system, but the box is still greyed out. Do you need to
> > >> > put \usepackage{fontspec} in the preamble of every document to
> > >> > use XeTex ?
> > >> >
> > >>
> > >> Tools>>Tex information will tell you which Tex packages Lyx is
> > >> Tools>>aware.
> > >> If you check the box
> > >> called "show path" it will tell you where the packages are.
> > >>
> > >> the fontspec package should be loaded automatically if you choose
> > >> non-TeX fonts. You can check if that's the case by choosing
> > >> View>>Source, and checking the box "Full source." Scroll back to
> > >> View>>the
> > >> beginning of the source doc and you should be able to see the
> > >> \fontspec command.
> > >>
> > >> Hope it helps,
> > >>
> > >> Stefano
> > >>
> > >>
> > >
> > > Thanks Stefano,
> > > Document >> Latex Log is greyed out
> > 
> > It won't be activated until you comiple something. Create a new Lyx
> > file with just a word in in it and then do View>>pdflatex (for
> > instance). After successful compilaiton you should be able to see the
> > log file
> > 
> > 
> > > Tools >> Tex with "show path" is showing packages
> > > from /usr/share/texmf-texlive/tex/generic/foo/foo.sty (for example)
> > > so it would seem lyx is not aware of TexLive2011 in /usr/local/
> > 
> > Right, I guess the problem is that lyx finds the ubuntu packages
> > before it hits texlive.
> > 
> > First of all: have you reconfigured Lyx (Tools>>Reconfigure)? It may
> > be all you need.
> > 
> > If that does not work, a couple of options:
> > 
> > 1. Uninstall the Ubuntu text-live package. This may not be feasible,
> > though, because you probably have it as a dependence of Lyx and
> > possibly other packages
> > There is a way to replace Ubuntu's outdated texlive with a "dummy"
> > package but I am afraid I forget how to do it. Other people on the
> > list may know (I left Ubuntu some time ago).
> > 
> > 2. Check the order of your executable path in your $PATH environmental
> > variable. In fact, open a terminal and do
> > 
> > $which pdflatex
> > 
> > you should get something like:
> > /usr/local/texlive/2011/bin/x86_64-linux/pdflatex
> > 
> > 
> > and then do something like:
> > 
> > $kpsewhich fontspec.sty
> > 
> > 
> > and you shoud get
> > /usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty
> > 
> >  If not, try
> > 
> > $printenv $PATH
> > 
> > Do you see the path to the texlive2011 installation occurring before
> > the path to the Ubuntu installed executables?
> > 
> > S.
> > 
> > 
> 
> Hi, The paths are all correct,  Starting lyx from the terminal and
> reconfiguring did the trick as far as using TexLive2011 goes I just
> can't start Lyx from the desktop icon if I want to use TexLive2011,
> but I can live with that. It can be done but time is short . There are
> other problems but I will post separate question about them. \
> 
> Alasdair

That may be because the desktop does not know your specific PATH setting. (Only 
your sh knows).
To set it for the desktop, create the file "~/.pam_environment". (This expands
the file "/etc/security/pam_env.conf" on your login. Should be there, but maybe 
is empty)

The syntax of this file is described in "man pam_env". For examples look into 
"/etc/security/pam_env.conf"

Define the PATH like this (On my ubuntu):
PATH OVERRIDE=/usr/local/texlive/2011/bin/x86_64-linux:${PATH}

provided the path to your latex is the same

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: configuring lyx to use an alternative Texlive version Solved

2012-04-28 Thread Alasdair Reed
On Sat, 28 Apr 2012 11:56:08 -0500
stefano franchi  wrote:

> On Sat, Apr 28, 2012 at 9:50 AM, Alasdair Reed
>  wrote:
> > On Sat, 28 Apr 2012 08:20:23 -0500
> > stefano franchi  wrote:
> >
> >> On Sat, Apr 28, 2012 at 5:09 AM, Alasdair Reed
> >>  wrote:
> >>
> >> > Is that right?  Which logfile should I check?  The
> >>
> >> You can check the Latex log by going to Document>>Latex Log
> >> The first line will tell you which version of of Texlive LyX is
> >> using
> >>
> >> > dialogue /documents/settings/fonts/use non-Tex fonts via
> >> > XeTex/LuaTex, is greyed out. The package fontspec needs to be
> >> > installed to use this dialogue box, it is installed in
> >> > TexLive2011
> >> > (/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty)
> >> > on my system, but the box is still greyed out. Do you need to
> >> > put \usepackage{fontspec} in the preamble of every document to
> >> > use XeTex ?
> >> >
> >>
> >> Tools>>Tex information will tell you which Tex packages Lyx is
> >> Tools>>aware.
> >> If you check the box
> >> called "show path" it will tell you where the packages are.
> >>
> >> the fontspec package should be loaded automatically if you choose
> >> non-TeX fonts. You can check if that's the case by choosing
> >> View>>Source, and checking the box "Full source." Scroll back to
> >> View>>the
> >> beginning of the source doc and you should be able to see the
> >> \fontspec command.
> >>
> >> Hope it helps,
> >>
> >> Stefano
> >>
> >>
> >
> > Thanks Stefano,
> > Document >> Latex Log is greyed out
> 
> It won't be activated until you comiple something. Create a new Lyx
> file with just a word in in it and then do View>>pdflatex (for
> instance). After successful compilaiton you should be able to see the
> log file
> 
> 
> > Tools >> Tex with "show path" is showing packages
> > from /usr/share/texmf-texlive/tex/generic/foo/foo.sty (for example)
> > so it would seem lyx is not aware of TexLive2011 in /usr/local/
> 
> Right, I guess the problem is that lyx finds the ubuntu packages
> before it hits texlive.
> 
> First of all: have you reconfigured Lyx (Tools>>Reconfigure)? It may
> be all you need.
> 
> If that does not work, a couple of options:
> 
> 1. Uninstall the Ubuntu text-live package. This may not be feasible,
> though, because you probably have it as a dependence of Lyx and
> possibly other packages
> There is a way to replace Ubuntu's outdated texlive with a "dummy"
> package but I am afraid I forget how to do it. Other people on the
> list may know (I left Ubuntu some time ago).
> 
> 2. Check the order of your executable path in your $PATH environmental
> variable. In fact, open a terminal and do
> 
> $which pdflatex
> 
> you should get something like:
> /usr/local/texlive/2011/bin/x86_64-linux/pdflatex
> 
> 
> and then do something like:
> 
> $kpsewhich fontspec.sty
> 
> 
> and you shoud get
> /usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty
> 
>  If not, try
> 
> $printenv $PATH
> 
> Do you see the path to the texlive2011 installation occurring before
> the path to the Ubuntu installed executables?
> 
> S.
> 
> 

Hi, The paths are all correct,  Starting lyx from the terminal and
reconfiguring did the trick as far as using TexLive2011 goes I just
can't start Lyx from the desktop icon if I want to use TexLive2011,
but I can live with that. It can be done but time is short . There are
other problems but I will post separate question about them. \

Alasdair



Re: configuring lyx to use an alternative Texlive version

2012-04-28 Thread stefano franchi
On Sat, Apr 28, 2012 at 9:50 AM, Alasdair Reed  wrote:
> On Sat, 28 Apr 2012 08:20:23 -0500
> stefano franchi  wrote:
>
>> On Sat, Apr 28, 2012 at 5:09 AM, Alasdair Reed
>>  wrote:
>>
>> > Is that right?  Which logfile should I check?  The
>>
>> You can check the Latex log by going to Document>>Latex Log
>> The first line will tell you which version of of Texlive LyX is using
>>
>> > dialogue /documents/settings/fonts/use non-Tex fonts via
>> > XeTex/LuaTex, is greyed out. The package fontspec needs to be
>> > installed to use this dialogue box, it is installed in TexLive2011
>> > (/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty)
>> > on my system, but the box is still greyed out. Do you need to put
>> > \usepackage{fontspec} in the preamble of every document to use
>> > XeTex ?
>> >
>>
>> Tools>>Tex information will tell you which Tex packages Lyx is aware.
>> If you check the box
>> called "show path" it will tell you where the packages are.
>>
>> the fontspec package should be loaded automatically if you choose
>> non-TeX fonts. You can check if that's the case by choosing
>> View>>Source, and checking the box "Full source." Scroll back to the
>> beginning of the source doc and you should be able to see the
>> \fontspec command.
>>
>> Hope it helps,
>>
>> Stefano
>>
>>
>
> Thanks Stefano,
> Document >> Latex Log is greyed out

It won't be activated until you comiple something. Create a new Lyx
file with just a word in in it and then do View>>pdflatex (for
instance). After successful compilaiton you should be able to see the
log file


> Tools >> Tex with "show path" is showing packages
> from /usr/share/texmf-texlive/tex/generic/foo/foo.sty (for example)
> so it would seem lyx is not aware of TexLive2011 in /usr/local/

Right, I guess the problem is that lyx finds the ubuntu packages
before it hits texlive.

First of all: have you reconfigured Lyx (Tools>>Reconfigure)? It may
be all you need.

If that does not work, a couple of options:

1. Uninstall the Ubuntu text-live package. This may not be feasible,
though, because you probably have it as a dependence of Lyx and
possibly other packages
There is a way to replace Ubuntu's outdated texlive with a "dummy"
package but I am afraid I forget how to do it. Other people on the
list may know (I left Ubuntu some time ago).

2. Check the order of your executable path in your $PATH environmental
variable. In fact, open a terminal and do

$which pdflatex

you should get something like:
/usr/local/texlive/2011/bin/x86_64-linux/pdflatex


and then do something like:

$kpsewhich fontspec.sty


and you shoud get
/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty

 If not, try

$printenv $PATH

Do you see the path to the texlive2011 installation occurring before
the path to the Ubuntu installed executables?

S.


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: configuring lyx to use an alternative Texlive version

2012-04-28 Thread Alasdair Reed
On Sat, 28 Apr 2012 08:20:23 -0500
stefano franchi  wrote:

> On Sat, Apr 28, 2012 at 5:09 AM, Alasdair Reed
>  wrote:
> 
> > Is that right?  Which logfile should I check?  The
> 
> You can check the Latex log by going to Document>>Latex Log
> The first line will tell you which version of of Texlive LyX is using
> 
> > dialogue /documents/settings/fonts/use non-Tex fonts via
> > XeTex/LuaTex, is greyed out. The package fontspec needs to be
> > installed to use this dialogue box, it is installed in TexLive2011
> > (/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty)
> > on my system, but the box is still greyed out. Do you need to put
> > \usepackage{fontspec} in the preamble of every document to use
> > XeTex ?
> >
> 
> Tools>>Tex information will tell you which Tex packages Lyx is aware.
> If you check the box
> called "show path" it will tell you where the packages are.
> 
> the fontspec package should be loaded automatically if you choose
> non-TeX fonts. You can check if that's the case by choosing
> View>>Source, and checking the box "Full source." Scroll back to the
> beginning of the source doc and you should be able to see the
> \fontspec command.
> 
> Hope it helps,
> 
> Stefano
> 
> 

Thanks Stefano,
Document >> Latex Log is greyed out
Tools >> Tex with "show path" is showing packages
from /usr/share/texmf-texlive/tex/generic/foo/foo.sty (for example)
so it would seem lyx is not aware of TexLive2011 in /usr/local/

Any ideas?







Re: configuring lyx to use an alternative Texlive version

2012-04-28 Thread stefano franchi
On Sat, Apr 28, 2012 at 5:09 AM, Alasdair Reed  wrote:

> Is that right?  Which logfile should I check?  The

You can check the Latex log by going to Document>>Latex Log
The first line will tell you which version of of Texlive LyX is using

> dialogue /documents/settings/fonts/use non-Tex fonts via XeTex/LuaTex,
> is greyed out. The package fontspec needs to be installed to use this
> dialogue box, it is installed in TexLive2011
> (/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty) on
> my system, but the box is still greyed out. Do you need to put
> \usepackage{fontspec} in the preamble of every document to use XeTex ?
>

Tools>>Tex information will tell you which Tex packages Lyx is aware.
If you check the box
called "show path" it will tell you where the packages are.

the fontspec package should be loaded automatically if you choose
non-TeX fonts. You can check if that's the case by choosing
View>>Source, and checking the box "Full source." Scroll back to the
beginning of the source doc and you should be able to see the
\fontspec command.

Hope it helps,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: configuring lyx to use an alternative Texlive version

2012-04-28 Thread Alasdair Reed
On Sat, 28 Apr 2012 09:15:10 +0200
Ignacio García  wrote:

> Alasdair Reed  iprimus.com.au> writes:
> 
> >
> >
> > I would like to configure Lyx to use Texlive2011 in ubuntu 11.10, to
> > use the latest version of Xetex. My system installed Texlive  is
> > Texlive2009 I have installed Texlive2011 as per the Texlive page
> > http://tug.org/texlive/doc/texlive-en/texlive-en.html#x1-170003.1.1
> > in /usr/local/texlive. Added all the suggested lines to my .bashrc.
> > Starting Xetex in the terminal produces the message
> > Code
> > This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011)
> >  restricted \write18 enabled.
> > Code ends
> > I imagine this is ok. How do I configure lyx to find texlive2011
> > in /usr/local/ instead of using the system default?
> 
> Not need configure lyx, lyx deals with it.
> As the output of xetex in the terminal is 2011, lyx use this version
> You can check it in the latex log file produced when lyx run the
> output
> 
> ig

Hi,

Is that right?  Which logfile should I check?  The
dialogue /documents/settings/fonts/use non-Tex fonts via XeTex/LuaTex,
is greyed out. The package fontspec needs to be installed to use this
dialogue box, it is installed in TexLive2011
(/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty) on
my system, but the box is still greyed out. Do you need to put
\usepackage{fontspec} in the preamble of every document to use XeTex ? 

Alasdair



Re: configuring lyx to use an alternative Texlive version

2012-04-28 Thread Ignacio García
Alasdair Reed  iprimus.com.au> writes:

>
>
> I would like to configure Lyx to use Texlive2011 in ubuntu 11.10, to
> use the latest version of Xetex. My system installed Texlive  is
> Texlive2009 I have installed Texlive2011 as per the Texlive page
> http://tug.org/texlive/doc/texlive-en/texlive-en.html#x1-170003.1.1
> in /usr/local/texlive. Added all the suggested lines to my .bashrc.
> Starting Xetex in the terminal produces the message
> Code
> This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011)
>  restricted \write18 enabled.
> Code ends
> I imagine this is ok. How do I configure lyx to find texlive2011
> in /usr/local/ instead of using the system default?

Not need configure lyx, lyx deals with it.
As the output of xetex in the terminal is 2011, lyx use this version
You can check it in the latex log file produced when lyx run the output

ig


configuring lyx to use an alternative Texlive version

2012-04-27 Thread Alasdair Reed

I would like to configure Lyx to use Texlive2011 in ubuntu 11.10, to
use the latest version of Xetex. My system installed Texlive  is
Texlive2009 I have installed Texlive2011 as per the Texlive page
http://tug.org/texlive/doc/texlive-en/texlive-en.html#x1-170003.1.1
in /usr/local/texlive. Added all the suggested lines to my .bashrc.
Starting Xetex in the terminal produces the message
Code
This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011)
 restricted \write18 enabled.
Code ends
I imagine this is ok. How do I configure lyx to find texlive2011
in /usr/local/ instead of using the system default? 

Alasdair