Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Dr Eberhard Lisse
Hi,

I have designed me a few form letters, and in one I need to use a
date repeatedly in the text.  It is a bit of a nuisance to have to
look for the date throughout the text.

I can put in LaTeX variables and enter the value in the preamble but
wonder how I would create another variable (such as PS/CC/Encl) in
the drop down menu so it appears at the top of the LyX text.

Any suggestions?

el




Re: Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Richard Heck

On 01/07/2014 05:24 AM, Dr Eberhard Lisse wrote:

Hi,

I have designed me a few form letters, and in one I need to use a
date repeatedly in the text.  It is a bit of a nuisance to have to
look for the date throughout the text.

I can put in LaTeX variables and enter the value in the preamble but
wonder how I would create another variable (such as PS/CC/Encl) in
the drop down menu so it appears at the top of the LyX text.


This is what layout files are for. Find the file stdletter.inc on your 
system and have a look at that. The syntax is explained in Ch 5 of the 
Customization manual. Ask here if you get confused. This isn't hard but 
takes a little doing.


Richard



Re: Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Liviu Andronic
On Tue, Jan 7, 2014 at 5:16 PM, Richard Heck rgh...@lyx.org wrote:

 This is what layout files are for. Find the file stdletter.inc on your
 system and have a look at that. The syntax is explained in Ch 5 of the
 Customization manual. Ask here if you get confused. This isn't hard but
 takes a little doing.

I actually thought that the OP was looking for text macros. I remember
that there was an older discussion on this (suggesting the use of math
macros in this case, too), but I'm not sure what's the current state
in LyX for this.

Liviu


Re: Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Dr Eberhard W Lisse
Ok,  thanks. I'll have a look and if I can't figure it out I'll ask again.

el

Sent from Dr Lisse's iPad mini

 On Jan 7, 2014, at 18:55, Liviu Andronic landronim...@gmail.com wrote:
 
 On Tue, Jan 7, 2014 at 5:16 PM, Richard Heck rgh...@lyx.org wrote:
 
 This is what layout files are for. Find the file stdletter.inc on your
 system and have a look at that. The syntax is explained in Ch 5 of the
 Customization manual. Ask here if you get confused. This isn't hard but
 takes a little doing.
 I actually thought that the OP was looking for text macros. I remember
 that there was an older discussion on this (suggesting the use of math
 macros in this case, too), but I'm not sure what's the current state
 in LyX for this.
 
 Liviu


smime.p7s
Description: S/MIME cryptographic signature


Latex export converting to iso-8859-1?

2014-01-07 Thread stefano franchi
I am completely baffled by the following Lyx--Latex export behavior:

1. Lyx file (v. 2.0.6) is set to UTF-8(XeteX)
2. file -i myfile.lyx confirm the file is encoded as UTF8
3. Export to Latex(LuaTeX) produces myfile.tex
4. file -i myfile.tex tells me it is now encoded as iso-8859-1
5. lualatex (from command line) seems to agree, since it chokes on the
first accented character of the file.

HOWEVER---

if I try to make a minimal working example by cutting most of the file's
text, the behavior disappears and the latex export reverts to normal UTF8.

Is it possible that a character somewhere in the text (which is long---it
is a book) makes lyx switch from UTF8 to ISO-8859-1?
Is there a way to force LyX to export to UTF-8?

Thx,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

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


Re: Latex export converting to iso-8859-1?

2014-01-07 Thread stefano franchi
Problem sorted out---and it had nothing to do with Lyx. It was my fault
entirily---I had two files with almost identical filenames and different
encodings.

Sorry for the noise.

S.


On Tue, Jan 7, 2014 at 3:32 PM, stefano franchi
stefano.fran...@gmail.comwrote:

 I am completely baffled by the following Lyx--Latex export behavior:

 1. Lyx file (v. 2.0.6) is set to UTF-8(XeteX)
 2. file -i myfile.lyx confirm the file is encoded as UTF8
 3. Export to Latex(LuaTeX) produces myfile.tex
 4. file -i myfile.tex tells me it is now encoded as iso-8859-1
 5. lualatex (from command line) seems to agree, since it chokes on the
 first accented character of the file.

 HOWEVER---

 if I try to make a minimal working example by cutting most of the file's
 text, the behavior disappears and the latex export reverts to normal UTF8.

 Is it possible that a character somewhere in the text (which is long---it
 is a book) makes lyx switch from UTF8 to ISO-8859-1?
 Is there a way to force LyX to export to UTF-8?

 Thx,

 Stefano

 --
 __
 Stefano Franchi
 Associate Research Professor
 Department of Hispanic StudiesPh:   +1 (979) 845-2125
 Texas AM University  Fax:  +1 (979) 845-6421
 College Station, Texas, USA

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




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

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


LyX very slow on Mac

2014-01-07 Thread Anders Host-Madsen
I have been using LyX for quite a while now, mainly on Mac.
But these days for many of my documents LyX is just extremely slow.
When I scroll, LyX just slowly scrolls line by line. I can wait for long time
while it just continues to slowly scroll. And to insert math,
it can take several seconds to open the math box, and then
there is a long wait for every keystroke.

I have two Macs: a slower MacBook Air, and a one year
top of the line iMac (the absolute fastest configuration
available), and on both LyX is just behaving like a snail.

It seems to be fairly recent. I doesn't seem to be every document,
but I cannot find a clear reason for what makes a document slow,
except for length (but we are talking 5 page documents versus
one page). Perhaps one thing: many LyX comments?

Has anyone else experienced this. Any ideas what I can do?



Re: LyX very slow on Mac

2014-01-07 Thread Scott Kostyshak
On Tue, Jan 7, 2014 at 6:48 PM, Anders Host-Madsen
ahostmad...@yahoo.com wrote:
 I have been using LyX for quite a while now, mainly on Mac.
 But these days for many of my documents LyX is just extremely slow.
 When I scroll, LyX just slowly scrolls line by line. I can wait for long time
 while it just continues to slowly scroll. And to insert math,
 it can take several seconds to open the math box, and then
 there is a long wait for every keystroke.

 I have two Macs: a slower MacBook Air, and a one year
 top of the line iMac (the absolute fastest configuration
 available), and on both LyX is just behaving like a snail.

 It seems to be fairly recent. I doesn't seem to be every document,
 but I cannot find a clear reason for what makes a document slow,
 except for length (but we are talking 5 page documents versus
 one page). Perhaps one thing: many LyX comments?

 Has anyone else experienced this. Any ideas what I can do?

Hi Anders, thanks for reporting this behavior. In emails like this
it's always useful if you give your LyX version (and in this case Mac
OS version).

We have had reports like this and the problem has been fixed for
several users by a patch that is now in the soon-to-be-released LyX
2.1. Can you please try out LyX 2.1 beta2
(ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/lyx-2.1.0beta2/LyX-2.1.0beta2+qt4-cocoa.dmg)
and let us know if the problem still occurs?

Best,

Scott


Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Dr Eberhard Lisse
Hi,

I have designed me a few form letters, and in one I need to use a
date repeatedly in the text.  It is a bit of a nuisance to have to
look for the date throughout the text.

I can put in LaTeX variables and enter the value in the preamble but
wonder how I would create another variable (such as PS/CC/Encl) in
the drop down menu so it appears at the top of the LyX text.

Any suggestions?

el




Re: Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Richard Heck

On 01/07/2014 05:24 AM, Dr Eberhard Lisse wrote:

Hi,

I have designed me a few form letters, and in one I need to use a
date repeatedly in the text.  It is a bit of a nuisance to have to
look for the date throughout the text.

I can put in LaTeX variables and enter the value in the preamble but
wonder how I would create another variable (such as PS/CC/Encl) in
the drop down menu so it appears at the top of the LyX text.


This is what layout files are for. Find the file stdletter.inc on your 
system and have a look at that. The syntax is explained in Ch 5 of the 
Customization manual. Ask here if you get confused. This isn't hard but 
takes a little doing.


Richard



Re: Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Liviu Andronic
On Tue, Jan 7, 2014 at 5:16 PM, Richard Heck rgh...@lyx.org wrote:

 This is what layout files are for. Find the file stdletter.inc on your
 system and have a look at that. The syntax is explained in Ch 5 of the
 Customization manual. Ask here if you get confused. This isn't hard but
 takes a little doing.

I actually thought that the OP was looking for text macros. I remember
that there was an older discussion on this (suggesting the use of math
macros in this case, too), but I'm not sure what's the current state
in LyX for this.

Liviu


Re: Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Dr Eberhard W Lisse
Ok,  thanks. I'll have a look and if I can't figure it out I'll ask again.

el

Sent from Dr Lisse's iPad mini

 On Jan 7, 2014, at 18:55, Liviu Andronic landronim...@gmail.com wrote:
 
 On Tue, Jan 7, 2014 at 5:16 PM, Richard Heck rgh...@lyx.org wrote:
 
 This is what layout files are for. Find the file stdletter.inc on your
 system and have a look at that. The syntax is explained in Ch 5 of the
 Customization manual. Ask here if you get confused. This isn't hard but
 takes a little doing.
 I actually thought that the OP was looking for text macros. I remember
 that there was an older discussion on this (suggesting the use of math
 macros in this case, too), but I'm not sure what's the current state
 in LyX for this.
 
 Liviu


smime.p7s
Description: S/MIME cryptographic signature


Latex export converting to iso-8859-1?

2014-01-07 Thread stefano franchi
I am completely baffled by the following Lyx--Latex export behavior:

1. Lyx file (v. 2.0.6) is set to UTF-8(XeteX)
2. file -i myfile.lyx confirm the file is encoded as UTF8
3. Export to Latex(LuaTeX) produces myfile.tex
4. file -i myfile.tex tells me it is now encoded as iso-8859-1
5. lualatex (from command line) seems to agree, since it chokes on the
first accented character of the file.

HOWEVER---

if I try to make a minimal working example by cutting most of the file's
text, the behavior disappears and the latex export reverts to normal UTF8.

Is it possible that a character somewhere in the text (which is long---it
is a book) makes lyx switch from UTF8 to ISO-8859-1?
Is there a way to force LyX to export to UTF-8?

Thx,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

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


Re: Latex export converting to iso-8859-1?

2014-01-07 Thread stefano franchi
Problem sorted out---and it had nothing to do with Lyx. It was my fault
entirily---I had two files with almost identical filenames and different
encodings.

Sorry for the noise.

S.


On Tue, Jan 7, 2014 at 3:32 PM, stefano franchi
stefano.fran...@gmail.comwrote:

 I am completely baffled by the following Lyx--Latex export behavior:

 1. Lyx file (v. 2.0.6) is set to UTF-8(XeteX)
 2. file -i myfile.lyx confirm the file is encoded as UTF8
 3. Export to Latex(LuaTeX) produces myfile.tex
 4. file -i myfile.tex tells me it is now encoded as iso-8859-1
 5. lualatex (from command line) seems to agree, since it chokes on the
 first accented character of the file.

 HOWEVER---

 if I try to make a minimal working example by cutting most of the file's
 text, the behavior disappears and the latex export reverts to normal UTF8.

 Is it possible that a character somewhere in the text (which is long---it
 is a book) makes lyx switch from UTF8 to ISO-8859-1?
 Is there a way to force LyX to export to UTF-8?

 Thx,

 Stefano

 --
 __
 Stefano Franchi
 Associate Research Professor
 Department of Hispanic StudiesPh:   +1 (979) 845-2125
 Texas AM University  Fax:  +1 (979) 845-6421
 College Station, Texas, USA

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




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

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


LyX very slow on Mac

2014-01-07 Thread Anders Host-Madsen
I have been using LyX for quite a while now, mainly on Mac.
But these days for many of my documents LyX is just extremely slow.
When I scroll, LyX just slowly scrolls line by line. I can wait for long time
while it just continues to slowly scroll. And to insert math,
it can take several seconds to open the math box, and then
there is a long wait for every keystroke.

I have two Macs: a slower MacBook Air, and a one year
top of the line iMac (the absolute fastest configuration
available), and on both LyX is just behaving like a snail.

It seems to be fairly recent. I doesn't seem to be every document,
but I cannot find a clear reason for what makes a document slow,
except for length (but we are talking 5 page documents versus
one page). Perhaps one thing: many LyX comments?

Has anyone else experienced this. Any ideas what I can do?



Re: LyX very slow on Mac

2014-01-07 Thread Scott Kostyshak
On Tue, Jan 7, 2014 at 6:48 PM, Anders Host-Madsen
ahostmad...@yahoo.com wrote:
 I have been using LyX for quite a while now, mainly on Mac.
 But these days for many of my documents LyX is just extremely slow.
 When I scroll, LyX just slowly scrolls line by line. I can wait for long time
 while it just continues to slowly scroll. And to insert math,
 it can take several seconds to open the math box, and then
 there is a long wait for every keystroke.

 I have two Macs: a slower MacBook Air, and a one year
 top of the line iMac (the absolute fastest configuration
 available), and on both LyX is just behaving like a snail.

 It seems to be fairly recent. I doesn't seem to be every document,
 but I cannot find a clear reason for what makes a document slow,
 except for length (but we are talking 5 page documents versus
 one page). Perhaps one thing: many LyX comments?

 Has anyone else experienced this. Any ideas what I can do?

Hi Anders, thanks for reporting this behavior. In emails like this
it's always useful if you give your LyX version (and in this case Mac
OS version).

We have had reports like this and the problem has been fixed for
several users by a patch that is now in the soon-to-be-released LyX
2.1. Can you please try out LyX 2.1 beta2
(ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/lyx-2.1.0beta2/LyX-2.1.0beta2+qt4-cocoa.dmg)
and let us know if the problem still occurs?

Best,

Scott


Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Dr Eberhard Lisse
Hi,

I have designed me a few form letters, and in one I need to use a
date repeatedly in the text.  It is a bit of a nuisance to have to
look for the date throughout the text.

I can put in LaTeX variables and enter the value in the preamble but
wonder how I would create another variable (such as PS/CC/Encl) in
the drop down menu so it appears at the top of the LyX text.

Any suggestions?

el




Re: Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Richard Heck

On 01/07/2014 05:24 AM, Dr Eberhard Lisse wrote:

Hi,

I have designed me a few form letters, and in one I need to use a
date repeatedly in the text.  It is a bit of a nuisance to have to
look for the date throughout the text.

I can put in LaTeX variables and enter the value in the preamble but
wonder how I would create another variable (such as PS/CC/Encl) in
the drop down menu so it appears at the top of the LyX text.


This is what layout files are for. Find the file stdletter.inc on your 
system and have a look at that. The syntax is explained in Ch 5 of the 
Customization manual. Ask here if you get confused. This isn't hard but 
takes a little doing.


Richard



Re: Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Liviu Andronic
On Tue, Jan 7, 2014 at 5:16 PM, Richard Heck  wrote:
>
> This is what layout files are for. Find the file stdletter.inc on your
> system and have a look at that. The syntax is explained in Ch 5 of the
> Customization manual. Ask here if you get confused. This isn't hard but
> takes a little doing.
>
I actually thought that the OP was looking for text macros. I remember
that there was an older discussion on this (suggesting the use of math
macros in this case, too), but I'm not sure what's the current state
in LyX for this.

Liviu


Re: Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Dr Eberhard W Lisse
Ok,  thanks. I'll have a look and if I can't figure it out I'll ask again.

el

Sent from Dr Lisse's iPad mini

> On Jan 7, 2014, at 18:55, Liviu Andronic  wrote:
> 
>> On Tue, Jan 7, 2014 at 5:16 PM, Richard Heck  wrote:
>> 
>> This is what layout files are for. Find the file stdletter.inc on your
>> system and have a look at that. The syntax is explained in Ch 5 of the
>> Customization manual. Ask here if you get confused. This isn't hard but
>> takes a little doing.
> I actually thought that the OP was looking for text macros. I remember
> that there was an older discussion on this (suggesting the use of math
> macros in this case, too), but I'm not sure what's the current state
> in LyX for this.
> 
> Liviu


smime.p7s
Description: S/MIME cryptographic signature


Latex export converting to iso-8859-1?

2014-01-07 Thread stefano franchi
I am completely baffled by the following Lyx-->Latex export behavior:

1. Lyx file (v. 2.0.6) is set to UTF-8(XeteX)
2. file -i myfile.lyx confirm the file is encoded as UTF8
3. Export to Latex(LuaTeX) produces myfile.tex
4. file -i myfile.tex tells me it is now encoded as iso-8859-1
5. lualatex (from command line) seems to agree, since it chokes on the
first accented character of the file.

HOWEVER---

if I try to make a minimal working example by cutting most of the file's
text, the behavior disappears and the latex export reverts to normal UTF8.

Is it possible that a character somewhere in the text (which is long---it
is a book) makes lyx switch from UTF8 to ISO-8859-1?
Is there a way to force LyX to export to UTF-8?

Thx,

Stefano

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

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


Re: Latex export converting to iso-8859-1?

2014-01-07 Thread stefano franchi
Problem sorted out---and it had nothing to do with Lyx. It was my fault
entirily---I had two files with almost identical filenames and different
encodings.

Sorry for the noise.

S.


On Tue, Jan 7, 2014 at 3:32 PM, stefano franchi
wrote:

> I am completely baffled by the following Lyx-->Latex export behavior:
>
> 1. Lyx file (v. 2.0.6) is set to UTF-8(XeteX)
> 2. file -i myfile.lyx confirm the file is encoded as UTF8
> 3. Export to Latex(LuaTeX) produces myfile.tex
> 4. file -i myfile.tex tells me it is now encoded as iso-8859-1
> 5. lualatex (from command line) seems to agree, since it chokes on the
> first accented character of the file.
>
> HOWEVER---
>
> if I try to make a minimal working example by cutting most of the file's
> text, the behavior disappears and the latex export reverts to normal UTF8.
>
> Is it possible that a character somewhere in the text (which is long---it
> is a book) makes lyx switch from UTF8 to ISO-8859-1?
> Is there a way to force LyX to export to UTF-8?
>
> Thx,
>
> Stefano
>
> --
> __
> Stefano Franchi
> Associate Research Professor
> Department of Hispanic StudiesPh:   +1 (979) 845-2125
> Texas A University  Fax:  +1 (979) 845-6421
> College Station, Texas, USA
>
> stef...@tamu.edu
> http://stefano.cleinias.org
>



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

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


LyX very slow on Mac

2014-01-07 Thread Anders Host-Madsen
I have been using LyX for quite a while now, mainly on Mac.
But these days for many of my documents LyX is just extremely slow.
When I scroll, LyX just slowly scrolls line by line. I can wait for long time
while it just continues to slowly scroll. And to insert math,
it can take several seconds to open the math box, and then
there is a long wait for every keystroke.

I have two Macs: a slower MacBook Air, and a one year
top of the line iMac (the absolute fastest configuration
available), and on both LyX is just behaving like a snail.

It seems to be fairly recent. I doesn't seem to be every document,
but I cannot find a clear reason for what makes a document slow,
except for length (but we are talking 5 page documents versus
one page). Perhaps one thing: many LyX comments?

Has anyone else experienced this. Any ideas what I can do?



Re: LyX very slow on Mac

2014-01-07 Thread Scott Kostyshak
On Tue, Jan 7, 2014 at 6:48 PM, Anders Host-Madsen
 wrote:
> I have been using LyX for quite a while now, mainly on Mac.
> But these days for many of my documents LyX is just extremely slow.
> When I scroll, LyX just slowly scrolls line by line. I can wait for long time
> while it just continues to slowly scroll. And to insert math,
> it can take several seconds to open the math box, and then
> there is a long wait for every keystroke.
>
> I have two Macs: a slower MacBook Air, and a one year
> top of the line iMac (the absolute fastest configuration
> available), and on both LyX is just behaving like a snail.
>
> It seems to be fairly recent. I doesn't seem to be every document,
> but I cannot find a clear reason for what makes a document slow,
> except for length (but we are talking 5 page documents versus
> one page). Perhaps one thing: many LyX comments?
>
> Has anyone else experienced this. Any ideas what I can do?

Hi Anders, thanks for reporting this behavior. In emails like this
it's always useful if you give your LyX version (and in this case Mac
OS version).

We have had reports like this and the problem has been fixed for
several users by a patch that is now in the soon-to-be-released LyX
2.1. Can you please try out LyX 2.1 beta2
(ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/lyx-2.1.0beta2/LyX-2.1.0beta2+qt4-cocoa.dmg)
and let us know if the problem still occurs?

Best,

Scott