Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Guenter Milde
On 2012-02-15, Georg Baum wrote:
 Jürgen Spitzmüller wrote:

 If other encodings are used, LuaTeX uses the luainputenc package, which
 has the same syntax than inputenc, i.e.

 \usepackage[enc]{luainputenc}

 Maybe we have to care about that.

 luainputenc is already handled.

Fine.

 What is missing for luatex is to set 
 use_non_tex_fonts to true and the encoding to utf8 if luainputenc is not 
 used. Unfortunately this is not so easy as with xetex.

use_non_tex_fonts is actually a toggle to use the fontspec package 
(coupled with the use of polyglossia if the language-package
setting is set to auto, if I remember right).

The fontspec package can be used with the XeTeX and LuaTeX engines but not
with TeX and eTeX.

This means that tex2lyx should look for

  \usepackage{fontspec}

and set use_non_tex_fonts accordingly.

(IMV, the name for this setting should also be changed:
  - use_non_tex_fonts
  + use_fontspec
this would prevent much confusion.)

The default encoding (if neither inputenc nor luainputenc is found) may
be chosen according to use_non_tex_fonts:

True 
  XeTeX or LuaTeX engines must be used to compile
  
  -- assume their default encoding (utf8) as file encoding.

False 
  any tex engine can be used to compile
  
  -- assume either the 8-bit tex default (ASCII) or utf8 as file encoding.
  
Actually, utf8 should be a safe bet in any case when no inpuenc or
luainputenc is found, as ASCII is a subset of utf8 and no tex engine
understands 8-bit encodings (latin-1 ...) without inputenc or a similar
package.

UTF8 decoding errors should lead to a message: unknown encoding, please
specify the file encoding. If tex2lyx is called from the LyX-GUI, this
error should lead to a pop-up dialogue where you can specify an encoding.

Günter



  




Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Guenter Milde
On 2012-02-15, Georg Baum wrote:
 Jean-Marc Lasgouttes wrote:

 Georg, Juergen, I'd like some feedback on the soundness of the patch. I
 know next to nil about xetex, and I do not know what is the current
 state of the art wrt tex2lyx.

 Unfortunately I know next to nothing about use_non_tex_fonts. After reading 
 the code and user guide a bit I see that using xetex is only possible if 
 use_non_tex_fonts is true, so your patch looks fine.

It is the other way round: using xetex or luatex is also possible without
use_non_tex_fonts (which actually means use_fontspec). OTOH, with
use_non_tex_fonts True, it one of xetex or luatex must be used.


Günter



RE: Automated insertion of labeled sentences

2012-02-16 Thread Scott Kostyshak
From: sj03rd[sjoerd...@gmail.com]
Sent: Thursday, February 16, 2012 4:29 AM

Hi Scott,

Thanks a lot for your answer, this is exactly what I was looking for. Much 
appreciated!

Best regards,
Sjoerd (in Dutch) / Stewart (in English)

Hi Sjoerd,

I'm glad that solved your problem. Next time please respond to the list (reply 
all) so that everyone knows your problem was solved, in case others are trying 
to work on a solution or are trying to come up with a different interpretation 
of what the actual problem was.

Best regards,

Scott


Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Eric Weir

On Feb 16, 2012, at 4:35 AM, Guenter Milde wrote:

 (IMV, the name for this setting should also be changed:
  - use_non_tex_fonts
  + use_fontspec
 this would prevent much confusion.)

While I now know what it refers to, as a new user I would otherwise have found 
the new description mystifying. I would seem that it's possible to be clear 
both to advanced users/developers and new users.

Regards,
--
Eric Weir
Decatur, GA
eew...@bellsouth.net

Style is truth. 

- Ray Bradbury



Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir

On Feb 15, 2012, at 1:57 PM, stefano franchi wrote:

 On Feb 15, 2012, at 10:55 AM, stefano franchi wrote:
 
 3. In ToolsPreferencesFIle Converters, create a new converter from
 Scrivener to Lyx: select Scrivener in the From dropdown list, and
 Lyx in the to list. Enter the call to tex2lyx with the UTF8 switch
 in the Converter field:
 tex2lyx -e UTF8  -f $$i $$o
 
 
 
 And, you need to create the new format before you can create the converter.

Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear on 
the dropdown list. Perhaps there is something on the list that would stand in 
for the Scrivener output? E.g., it probably wouldn't do the job, but plain 
text? 

Sincerely,
--
Eric Weir
Decatur, GA 
eew...@bellsouth.net

We do not inherit the earth from our ancestors, 
we borrow it from our children. 

- Chief Seattle.



Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Jürgen Spitzmüller
Eric Weir wrote:
  (IMV, the name for this setting should also be changed:
   - use_non_tex_fonts
   + use_fontspec
 
  this would prevent much confusion.)
 
 While I now know what it refers to, as a new user I would otherwise have
 found the new description mystifying. I would seem that it's possible to be
 clear both to advanced users/developers and new users.

This is an internal value only. But I also think we should keep it as it is, 
i.e. abstract and not bound to some specific package which may change in the 
future.

Jürgen


Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread stefano franchi
On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote:

 On Feb 15, 2012, at 1:57 PM, stefano franchi wrote:

 On Feb 15, 2012, at 10:55 AM, stefano franchi wrote:

 3. In ToolsPreferencesFIle Converters, create a new converter from
 Scrivener to Lyx: select Scrivener in the From dropdown list, and
 Lyx in the to list. Enter the call to tex2lyx with the UTF8 switch
 in the Converter field:
 tex2lyx -e UTF8  -f $$i $$o

 

 And, you need to create the new format before you can create the converter.

 Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear 
 on the dropdown list. Perhaps there is something on the list that would stand 
 in for the Scrivener output? E.g., it probably wouldn't do the job, but 
 plain text?

Scrivener does not appear because you haven't created it yet.

1. Go to: ToolsPreferencesFileHandlingFile Format

2. Click New

3. Type Scrivener' (or whatever) in the filed labeled Format

4. Click Apply

Then you can add the converter

Cheers,

S.



 Sincerely,
 --
 Eric Weir
 Decatur, GA
 eew...@bellsouth.net

 We do not inherit the earth from our ancestors,
 we borrow it from our children.

 - Chief Seattle.




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

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


Re: how to make sections in bibliography?

2012-02-16 Thread Richard Heck

On 02/15/2012 08:11 PM, Marco Beishuizen wrote:

Hi,

I've tried all day to section my bibliography, but I keep getting 
errors. The sectioned bibliography in document settings is checked. 
Also two seperate bibtex databases are created, and added these to the 
bibliography in LyX. When unchecking sectioned bibliography, the 
bibliography works fine, but then it is not sectioned.


The errors I get are:
Missing $ inserted
Extra }, or forgotten $
Missing } inserted

Do I need to do something else to make sectioned bibliographies work 
in LyX?


Try putting together a maximally simple version and see if that works. 
If not, post it here.


Richard



Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir

On Feb 16, 2012, at 9:37 AM, stefano franchi wrote:

 On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote:
 
 Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear 
 on the dropdown list. Perhaps there is something on the list that would 
 stand in for the Scrivener output? E.g., it probably wouldn't do the job, 
 but plain text?
 
 Scrivener does not appear because you haven't created it yet.
 
 1. Go to: ToolsPreferencesFileHandlingFile Format
 
 2. Click New
 
 3. Type Scrivener' (or whatever) in the filed labeled Format
 
 4. Click Apply

Thanks, Stefano. I was overlooking the file format window. Had some difficulty 
getting them to save. When I finally did and tried importing a latex document 
the weird characters were there again. I tried this several times, making sure 
that the converter was properly set up and selected, and starting fresh with a 
new compile/export from Scrivener and continued to get the weird characters.

Finally resorted to executing the command in the terminal.

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net

Hatred destroys. Love heals.

- Eknath Easwaran



Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread stefano franchi
On Thu, Feb 16, 2012 at 9:40 AM, Eric Weir eew...@bellsouth.net wrote:

 On Feb 16, 2012, at 9:37 AM, stefano franchi wrote:

 On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote:

 Thanks, Stefano. Don't see how to do that, either. Scrivener does not 
 appear on the dropdown list. Perhaps there is something on the list that 
 would stand in for the Scrivener output? E.g., it probably wouldn't do the 
 job, but plain text?

 Scrivener does not appear because you haven't created it yet.

 1. Go to: ToolsPreferencesFileHandlingFile Format

 2. Click New

 3. Type Scrivener' (or whatever) in the filed labeled Format

 4. Click Apply

 Thanks, Stefano. I was overlooking the file format window. Had some 
 difficulty getting them to save. When I finally did and tried importing a 
 latex document the weird characters were there again. I tried this several 
 times, making sure that the converter was properly set up and selected, and 
 starting fresh with a new compile/export from Scrivener and continued to get 
 the weird characters.

 Finally resorted to executing the command in the terminal.

That would work as well---just less conveniently so. Be sure you have
the -e UTF8 switch in the converter line (as per my previous post)

Cheers,

S.



 --
 Eric Weir
 Decatur, GA  USA
 eew...@bellsouth.net

 Hatred destroys. Love heals.

 - Eknath Easwaran




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

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


Problem compiling a memoir class document

2012-02-16 Thread Eric Weir

At Stefano's suggestion I'm giving the memoir class a look--or trying to. 
Without any formatting my document compiles to pdflatex fine. When I apply the 
title environment to my title and attempt to compile t get the following error 
message three times:

Undefined control sequence.

and a Case}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Help appreciated.

Thanks,
--
Eric Weir
eew...@bellsouth.net
Decatur, GA  USA

Whatever you can do, or dream you can, begin it. 
Boldness has genius, power and magic in it.  

- Johann Wolfgang von Goethe



Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir

On Feb 16, 2012, at 10:45 AM, stefano franchi wrote:

 On Thu, Feb 16, 2012 at 9:40 AM, Eric Weir eew...@bellsouth.net wrote:
 
 On Feb 16, 2012, at 9:37 AM, stefano franchi wrote:
 
 On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote:
 
 Thanks, Stefano. Don't see how to do that, either. Scrivener does not 
 appear on the dropdown list. Perhaps there is something on the list that 
 would stand in for the Scrivener output? E.g., it probably wouldn't do the 
 job, but plain text?
 
 Scrivener does not appear because you haven't created it yet.
 
 1. Go to: ToolsPreferencesFileHandlingFile Format
 
 2. Click New
 
 3. Type Scrivener' (or whatever) in the filed labeled Format
 
 4. Click Apply
 
 Thanks, Stefano. I was overlooking the file format window. Had some 
 difficulty getting them to save. When I finally did and tried importing a 
 latex document the weird characters were there again. I tried this several 
 times, making sure that the converter was properly set up and selected, and 
 starting fresh with a new compile/export from Scrivener and continued to get 
 the weird characters.
 
 Finally resorted to executing the command in the terminal.
 
 That would work as well---just less conveniently so. Be sure you have
 the -e UTF8 switch in the converter line (as per my previous post)

I copied the text from your message. 

Since it's not in the command you gave me to use in the terminal, I'm wondering 
about this part of what you said I should put in the converter field: -f $$i $$o

I assume it's not the source of the problem I'm having at the moment.

Thanks,
--
Eric Weir
Decatur, GA
eew...@bellsouth.net

A man should be in the world as though he were not in it 
so that it will be no worse because of his life. 

- Wendell Berry 



LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Hi all. It seems that when changing Document: Settings: Font to use non-TeX
fonts, LyX will then change the default viewer action to be DVI (LuaTeX).
This doesn't work for me as I'm trying to use XeTeX. Is it possible to
specify the default viewer in this context?

Many thanks, as always.

~:justin.wood http://civilisationshift.wordpress.com/:~ ≤
350ppmhttp://www.350.org


Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Richard Heck

On 02/16/2012 10:59 AM, Justin Wood wrote:
Hi all. It seems that when changing Document: Settings: Font to use 
non-TeX fonts, LyX will then change the default viewer action to be 
DVI (LuaTeX). This doesn't work for me as I'm trying to use XeTeX. Is 
it possible to specify the default viewer in this context?



DocumentSettingsOuputDefault Ouptut Format.

Richard



Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Thanks Richard. I should have said that I'd already done this, but while it
does take effect for 'normal' LyX documents, it does not seem to apply when
non-TeX fonts are active; ie, default viewer still changes to DVI (LuaTeX).

~:justin.wood http://civilisationshift.wordpress.com/:~ ≤
350ppmhttp://www.350.org



On 16 February 2012 19:05, Richard Heck rgh...@comcast.net wrote:

  On 02/16/2012 10:59 AM, Justin Wood wrote:

 Hi all. It seems that when changing Document: Settings: Font to use
 non-TeX fonts, LyX will then change the default viewer action to be DVI
 (LuaTeX). This doesn't work for me as I'm trying to use XeTeX. Is it
 possible to specify the default viewer in this context?

  DocumentSettingsOuputDefault Ouptut Format.

 Richard




Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Jürgen Spitzmüller
Justin Wood wrote:
 Thanks Richard. I should have said that I'd already done this, but while it
 does take effect for 'normal' LyX documents, it does not seem to apply when
 non-TeX fonts are active; ie, default viewer still changes to DVI (LuaTeX).

We do not have yet a global default format if non-TeX fonts is selected, see
http://www.lyx.org/trac/ticket/7871

However, you can set the default format per document, in Document  Settings. 
That is, after this bug is fixed (in next LyX release):
http://www.lyx.org/trac/ticket/8013

Jürgen

Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Jürgen Spitzmüller spitz at lyx.org writes:

 We do not have yet a global default format if non-TeX fonts is selected, see
 http://www.lyx.org/trac/ticket/7871
  
 However, you can set the default format per document, in Document  Settings.
That is, after this bug is fixed (in next LyX release):
 http://www.lyx.org/trac/ticket/8013
  
 Jürgen
 


Ahh I see. Thanks for the explanation (I didn't think to check in bug trac).
Happy to (re)set the document default viewer as a workaround —— I keep them open
for long periods anyway.



Recover file never saved.

2012-02-16 Thread Gustavo Goretkin
Does LyX make backup of files that were never saved? I was working on
a new file, which I had not saved before, when my laptop crashed.

I am using LyX 2.0.0 on Ubuntu.

Thanks,
Gustavo


Re: Recover file never saved.

2012-02-16 Thread Richard Heck

On 02/16/2012 12:15 PM, Gustavo Goretkin wrote:

Does LyX make backup of files that were never saved? I was working on
a new file, which I had not saved before, when my laptop crashed.
It will autosave such files, if you have that active, etc. Where you 
might find it depends upon other settings, e.g., if you have a backup 
directory set. It should be named something like #newfile1#.lyx.


Richard



Re: how to make sections in bibliography?

2012-02-16 Thread Marco Beishuizen

On Thu, 16 Feb 2012, the wise Richard Heck wrote:

Try putting together a maximally simple version and see if that works. If 
not, post it here.


Thanks for the hint! Problem solved.

I managed to narrow it down and discovered eventually that the problem was 
with the characters with accents in the bibtex database. After correcting 
that I've now two bibliographies.


Regards,

Marco

--
When I'm gone, boxing will be nothing again.  The fans with the cigars and
the hats turned down'll be there, but no more housewives and little men in
the street and foreign presidents.  It's goin' to be back to the fighter who
comes to town, smells a flower, visits a hospital, blows a horn and says
he's in shape.  Old hat.  I was the onliest boxer in history people asked
questions like a senator.
-- Muhammad Ali


Re: is lyx really appropriate for my book.

2012-02-16 Thread Colin Williams
I haven't been able to keep up with the subject. It seems there is some
division about how much latex knowledge is required to create a book that
scales many platforms. If latex is required, then it's my opinion that lyx
itself isn't quite ready for ebook publishing. However, that does not mean
I will not use it.


Re: lyx archive error

2012-02-16 Thread Waluyo Adi Siswanto
 I want to export to archive (zip) from export menu.
 An error popped up. What is that, how can export it in archive file?
 This is in windows 7, LyX 2.0.2

 Please run lyx from a terminal and you should get more output.


Running LyX from window terminal does not give any information,
however I can find from the message window in lyx (attached), LyX
cannot find the file.
(the file name is complicated)

Then I saved as newfile1.lyx, then export to archive. Now successful.
Is this because the file name is too long or complicated ?

I tried to change the file name (the last number with 12) other the
same, also not successful.


Regards
waluyo

 Richard

attachment: Capture-error2.PNG

Re: lyx archive error

2012-02-16 Thread Waluyo Adi Siswanto
 I want to export to archive (zip) from export menu.
 An error popped up. What is that, how can export it in archive file?
 This is in windows 7, LyX 2.0.2

 Please run lyx from a terminal and you should get more output.


 Running LyX from window terminal does not give any information,
 however I can find from the message window in lyx (attached), LyX
 cannot find the file.
 (the file name is complicated)

 Then I saved as newfile1.lyx, then export to archive. Now successful.
 Is this because the file name is too long or complicated ?

 I tried to change the file name (the last number with 12) other the
 same, also not successful.


I have found the cause. It could be a bug?
ANY file using SPACE in its filename will fail to export archive.
I tried in Ubuntu 11.10 and Windows 7, both fail.

lyxpac search _ instead of SPACE, therefore it fails.

regards
waluyo


Re: is lyx really appropriate for my book.

2012-02-16 Thread Steve Litt
On Thu, 16 Feb 2012 14:05:46 -0800
Colin Williams co...@seattlesoft.com wrote:

 I haven't been able to keep up with the subject. It seems there is
 some division about how much latex knowledge is required to create a
 book that scales many platforms. 

If how much LaTeX knowledge is needed for LyX were the question asked
by a math exercise, then how many styles do you need to add/change
would be the given part of the exercise.

People who simply use their document class's styles and nothing more
need absolutely no LaTeX knowledge. People who add lots of styles and
extensively change the document class's styles need extensive LaTeX
knowledge. Those in between those extremes need moderate LaTeX
knowledge.


 If latex is required, then it's my
 opinion that lyx itself isn't quite ready for ebook publishing.

Why? If you already know LaTeX, or can reasonably learn it, why
penalize yourself by banning your own use of LyX? Personally, I think
people are a lot smarter than Gates, Balmer and Jobs tried to convince
us we were. Gates, Balmer and Jobs had a financial incentive to
convince us we're dumb, and hence their opinions aren't reliable.

 However, that does not mean I will not use it.

Excellent!

SteveT



Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Guenter Milde
On 2012-02-15, Georg Baum wrote:
 Jürgen Spitzmüller wrote:

 If other encodings are used, LuaTeX uses the luainputenc package, which
 has the same syntax than inputenc, i.e.

 \usepackage[enc]{luainputenc}

 Maybe we have to care about that.

 luainputenc is already handled.

Fine.

 What is missing for luatex is to set 
 use_non_tex_fonts to true and the encoding to utf8 if luainputenc is not 
 used. Unfortunately this is not so easy as with xetex.

use_non_tex_fonts is actually a toggle to use the fontspec package 
(coupled with the use of polyglossia if the language-package
setting is set to auto, if I remember right).

The fontspec package can be used with the XeTeX and LuaTeX engines but not
with TeX and eTeX.

This means that tex2lyx should look for

  \usepackage{fontspec}

and set use_non_tex_fonts accordingly.

(IMV, the name for this setting should also be changed:
  - use_non_tex_fonts
  + use_fontspec
this would prevent much confusion.)

The default encoding (if neither inputenc nor luainputenc is found) may
be chosen according to use_non_tex_fonts:

True 
  XeTeX or LuaTeX engines must be used to compile
  
  -- assume their default encoding (utf8) as file encoding.

False 
  any tex engine can be used to compile
  
  -- assume either the 8-bit tex default (ASCII) or utf8 as file encoding.
  
Actually, utf8 should be a safe bet in any case when no inpuenc or
luainputenc is found, as ASCII is a subset of utf8 and no tex engine
understands 8-bit encodings (latin-1 ...) without inputenc or a similar
package.

UTF8 decoding errors should lead to a message: unknown encoding, please
specify the file encoding. If tex2lyx is called from the LyX-GUI, this
error should lead to a pop-up dialogue where you can specify an encoding.

Günter



  




Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Guenter Milde
On 2012-02-15, Georg Baum wrote:
 Jean-Marc Lasgouttes wrote:

 Georg, Juergen, I'd like some feedback on the soundness of the patch. I
 know next to nil about xetex, and I do not know what is the current
 state of the art wrt tex2lyx.

 Unfortunately I know next to nothing about use_non_tex_fonts. After reading 
 the code and user guide a bit I see that using xetex is only possible if 
 use_non_tex_fonts is true, so your patch looks fine.

It is the other way round: using xetex or luatex is also possible without
use_non_tex_fonts (which actually means use_fontspec). OTOH, with
use_non_tex_fonts True, it one of xetex or luatex must be used.


Günter



RE: Automated insertion of labeled sentences

2012-02-16 Thread Scott Kostyshak
From: sj03rd[sjoerd...@gmail.com]
Sent: Thursday, February 16, 2012 4:29 AM

Hi Scott,

Thanks a lot for your answer, this is exactly what I was looking for. Much 
appreciated!

Best regards,
Sjoerd (in Dutch) / Stewart (in English)

Hi Sjoerd,

I'm glad that solved your problem. Next time please respond to the list (reply 
all) so that everyone knows your problem was solved, in case others are trying 
to work on a solution or are trying to come up with a different interpretation 
of what the actual problem was.

Best regards,

Scott


Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Eric Weir

On Feb 16, 2012, at 4:35 AM, Guenter Milde wrote:

 (IMV, the name for this setting should also be changed:
  - use_non_tex_fonts
  + use_fontspec
 this would prevent much confusion.)

While I now know what it refers to, as a new user I would otherwise have found 
the new description mystifying. I would seem that it's possible to be clear 
both to advanced users/developers and new users.

Regards,
--
Eric Weir
Decatur, GA
eew...@bellsouth.net

Style is truth. 

- Ray Bradbury



Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir

On Feb 15, 2012, at 1:57 PM, stefano franchi wrote:

 On Feb 15, 2012, at 10:55 AM, stefano franchi wrote:
 
 3. In ToolsPreferencesFIle Converters, create a new converter from
 Scrivener to Lyx: select Scrivener in the From dropdown list, and
 Lyx in the to list. Enter the call to tex2lyx with the UTF8 switch
 in the Converter field:
 tex2lyx -e UTF8  -f $$i $$o
 
 
 
 And, you need to create the new format before you can create the converter.

Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear on 
the dropdown list. Perhaps there is something on the list that would stand in 
for the Scrivener output? E.g., it probably wouldn't do the job, but plain 
text? 

Sincerely,
--
Eric Weir
Decatur, GA 
eew...@bellsouth.net

We do not inherit the earth from our ancestors, 
we borrow it from our children. 

- Chief Seattle.



Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Jürgen Spitzmüller
Eric Weir wrote:
  (IMV, the name for this setting should also be changed:
   - use_non_tex_fonts
   + use_fontspec
 
  this would prevent much confusion.)
 
 While I now know what it refers to, as a new user I would otherwise have
 found the new description mystifying. I would seem that it's possible to be
 clear both to advanced users/developers and new users.

This is an internal value only. But I also think we should keep it as it is, 
i.e. abstract and not bound to some specific package which may change in the 
future.

Jürgen


Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread stefano franchi
On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote:

 On Feb 15, 2012, at 1:57 PM, stefano franchi wrote:

 On Feb 15, 2012, at 10:55 AM, stefano franchi wrote:

 3. In ToolsPreferencesFIle Converters, create a new converter from
 Scrivener to Lyx: select Scrivener in the From dropdown list, and
 Lyx in the to list. Enter the call to tex2lyx with the UTF8 switch
 in the Converter field:
 tex2lyx -e UTF8  -f $$i $$o

 

 And, you need to create the new format before you can create the converter.

 Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear 
 on the dropdown list. Perhaps there is something on the list that would stand 
 in for the Scrivener output? E.g., it probably wouldn't do the job, but 
 plain text?

Scrivener does not appear because you haven't created it yet.

1. Go to: ToolsPreferencesFileHandlingFile Format

2. Click New

3. Type Scrivener' (or whatever) in the filed labeled Format

4. Click Apply

Then you can add the converter

Cheers,

S.



 Sincerely,
 --
 Eric Weir
 Decatur, GA
 eew...@bellsouth.net

 We do not inherit the earth from our ancestors,
 we borrow it from our children.

 - Chief Seattle.




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

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


Re: how to make sections in bibliography?

2012-02-16 Thread Richard Heck

On 02/15/2012 08:11 PM, Marco Beishuizen wrote:

Hi,

I've tried all day to section my bibliography, but I keep getting 
errors. The sectioned bibliography in document settings is checked. 
Also two seperate bibtex databases are created, and added these to the 
bibliography in LyX. When unchecking sectioned bibliography, the 
bibliography works fine, but then it is not sectioned.


The errors I get are:
Missing $ inserted
Extra }, or forgotten $
Missing } inserted

Do I need to do something else to make sectioned bibliographies work 
in LyX?


Try putting together a maximally simple version and see if that works. 
If not, post it here.


Richard



Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir

On Feb 16, 2012, at 9:37 AM, stefano franchi wrote:

 On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote:
 
 Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear 
 on the dropdown list. Perhaps there is something on the list that would 
 stand in for the Scrivener output? E.g., it probably wouldn't do the job, 
 but plain text?
 
 Scrivener does not appear because you haven't created it yet.
 
 1. Go to: ToolsPreferencesFileHandlingFile Format
 
 2. Click New
 
 3. Type Scrivener' (or whatever) in the filed labeled Format
 
 4. Click Apply

Thanks, Stefano. I was overlooking the file format window. Had some difficulty 
getting them to save. When I finally did and tried importing a latex document 
the weird characters were there again. I tried this several times, making sure 
that the converter was properly set up and selected, and starting fresh with a 
new compile/export from Scrivener and continued to get the weird characters.

Finally resorted to executing the command in the terminal.

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net

Hatred destroys. Love heals.

- Eknath Easwaran



Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread stefano franchi
On Thu, Feb 16, 2012 at 9:40 AM, Eric Weir eew...@bellsouth.net wrote:

 On Feb 16, 2012, at 9:37 AM, stefano franchi wrote:

 On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote:

 Thanks, Stefano. Don't see how to do that, either. Scrivener does not 
 appear on the dropdown list. Perhaps there is something on the list that 
 would stand in for the Scrivener output? E.g., it probably wouldn't do the 
 job, but plain text?

 Scrivener does not appear because you haven't created it yet.

 1. Go to: ToolsPreferencesFileHandlingFile Format

 2. Click New

 3. Type Scrivener' (or whatever) in the filed labeled Format

 4. Click Apply

 Thanks, Stefano. I was overlooking the file format window. Had some 
 difficulty getting them to save. When I finally did and tried importing a 
 latex document the weird characters were there again. I tried this several 
 times, making sure that the converter was properly set up and selected, and 
 starting fresh with a new compile/export from Scrivener and continued to get 
 the weird characters.

 Finally resorted to executing the command in the terminal.

That would work as well---just less conveniently so. Be sure you have
the -e UTF8 switch in the converter line (as per my previous post)

Cheers,

S.



 --
 Eric Weir
 Decatur, GA  USA
 eew...@bellsouth.net

 Hatred destroys. Love heals.

 - Eknath Easwaran




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

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


Problem compiling a memoir class document

2012-02-16 Thread Eric Weir

At Stefano's suggestion I'm giving the memoir class a look--or trying to. 
Without any formatting my document compiles to pdflatex fine. When I apply the 
title environment to my title and attempt to compile t get the following error 
message three times:

Undefined control sequence.

and a Case}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Help appreciated.

Thanks,
--
Eric Weir
eew...@bellsouth.net
Decatur, GA  USA

Whatever you can do, or dream you can, begin it. 
Boldness has genius, power and magic in it.  

- Johann Wolfgang von Goethe



Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir

On Feb 16, 2012, at 10:45 AM, stefano franchi wrote:

 On Thu, Feb 16, 2012 at 9:40 AM, Eric Weir eew...@bellsouth.net wrote:
 
 On Feb 16, 2012, at 9:37 AM, stefano franchi wrote:
 
 On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote:
 
 Thanks, Stefano. Don't see how to do that, either. Scrivener does not 
 appear on the dropdown list. Perhaps there is something on the list that 
 would stand in for the Scrivener output? E.g., it probably wouldn't do the 
 job, but plain text?
 
 Scrivener does not appear because you haven't created it yet.
 
 1. Go to: ToolsPreferencesFileHandlingFile Format
 
 2. Click New
 
 3. Type Scrivener' (or whatever) in the filed labeled Format
 
 4. Click Apply
 
 Thanks, Stefano. I was overlooking the file format window. Had some 
 difficulty getting them to save. When I finally did and tried importing a 
 latex document the weird characters were there again. I tried this several 
 times, making sure that the converter was properly set up and selected, and 
 starting fresh with a new compile/export from Scrivener and continued to get 
 the weird characters.
 
 Finally resorted to executing the command in the terminal.
 
 That would work as well---just less conveniently so. Be sure you have
 the -e UTF8 switch in the converter line (as per my previous post)

I copied the text from your message. 

Since it's not in the command you gave me to use in the terminal, I'm wondering 
about this part of what you said I should put in the converter field: -f $$i $$o

I assume it's not the source of the problem I'm having at the moment.

Thanks,
--
Eric Weir
Decatur, GA
eew...@bellsouth.net

A man should be in the world as though he were not in it 
so that it will be no worse because of his life. 

- Wendell Berry 



LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Hi all. It seems that when changing Document: Settings: Font to use non-TeX
fonts, LyX will then change the default viewer action to be DVI (LuaTeX).
This doesn't work for me as I'm trying to use XeTeX. Is it possible to
specify the default viewer in this context?

Many thanks, as always.

~:justin.wood http://civilisationshift.wordpress.com/:~ ≤
350ppmhttp://www.350.org


Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Richard Heck

On 02/16/2012 10:59 AM, Justin Wood wrote:
Hi all. It seems that when changing Document: Settings: Font to use 
non-TeX fonts, LyX will then change the default viewer action to be 
DVI (LuaTeX). This doesn't work for me as I'm trying to use XeTeX. Is 
it possible to specify the default viewer in this context?



DocumentSettingsOuputDefault Ouptut Format.

Richard



Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Thanks Richard. I should have said that I'd already done this, but while it
does take effect for 'normal' LyX documents, it does not seem to apply when
non-TeX fonts are active; ie, default viewer still changes to DVI (LuaTeX).

~:justin.wood http://civilisationshift.wordpress.com/:~ ≤
350ppmhttp://www.350.org



On 16 February 2012 19:05, Richard Heck rgh...@comcast.net wrote:

  On 02/16/2012 10:59 AM, Justin Wood wrote:

 Hi all. It seems that when changing Document: Settings: Font to use
 non-TeX fonts, LyX will then change the default viewer action to be DVI
 (LuaTeX). This doesn't work for me as I'm trying to use XeTeX. Is it
 possible to specify the default viewer in this context?

  DocumentSettingsOuputDefault Ouptut Format.

 Richard




Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Jürgen Spitzmüller
Justin Wood wrote:
 Thanks Richard. I should have said that I'd already done this, but while it
 does take effect for 'normal' LyX documents, it does not seem to apply when
 non-TeX fonts are active; ie, default viewer still changes to DVI (LuaTeX).

We do not have yet a global default format if non-TeX fonts is selected, see
http://www.lyx.org/trac/ticket/7871

However, you can set the default format per document, in Document  Settings. 
That is, after this bug is fixed (in next LyX release):
http://www.lyx.org/trac/ticket/8013

Jürgen

Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Jürgen Spitzmüller spitz at lyx.org writes:

 We do not have yet a global default format if non-TeX fonts is selected, see
 http://www.lyx.org/trac/ticket/7871
  
 However, you can set the default format per document, in Document  Settings.
That is, after this bug is fixed (in next LyX release):
 http://www.lyx.org/trac/ticket/8013
  
 Jürgen
 


Ahh I see. Thanks for the explanation (I didn't think to check in bug trac).
Happy to (re)set the document default viewer as a workaround —— I keep them open
for long periods anyway.



Recover file never saved.

2012-02-16 Thread Gustavo Goretkin
Does LyX make backup of files that were never saved? I was working on
a new file, which I had not saved before, when my laptop crashed.

I am using LyX 2.0.0 on Ubuntu.

Thanks,
Gustavo


Re: Recover file never saved.

2012-02-16 Thread Richard Heck

On 02/16/2012 12:15 PM, Gustavo Goretkin wrote:

Does LyX make backup of files that were never saved? I was working on
a new file, which I had not saved before, when my laptop crashed.
It will autosave such files, if you have that active, etc. Where you 
might find it depends upon other settings, e.g., if you have a backup 
directory set. It should be named something like #newfile1#.lyx.


Richard



Re: how to make sections in bibliography?

2012-02-16 Thread Marco Beishuizen

On Thu, 16 Feb 2012, the wise Richard Heck wrote:

Try putting together a maximally simple version and see if that works. If 
not, post it here.


Thanks for the hint! Problem solved.

I managed to narrow it down and discovered eventually that the problem was 
with the characters with accents in the bibtex database. After correcting 
that I've now two bibliographies.


Regards,

Marco

--
When I'm gone, boxing will be nothing again.  The fans with the cigars and
the hats turned down'll be there, but no more housewives and little men in
the street and foreign presidents.  It's goin' to be back to the fighter who
comes to town, smells a flower, visits a hospital, blows a horn and says
he's in shape.  Old hat.  I was the onliest boxer in history people asked
questions like a senator.
-- Muhammad Ali


Re: is lyx really appropriate for my book.

2012-02-16 Thread Colin Williams
I haven't been able to keep up with the subject. It seems there is some
division about how much latex knowledge is required to create a book that
scales many platforms. If latex is required, then it's my opinion that lyx
itself isn't quite ready for ebook publishing. However, that does not mean
I will not use it.


Re: lyx archive error

2012-02-16 Thread Waluyo Adi Siswanto
 I want to export to archive (zip) from export menu.
 An error popped up. What is that, how can export it in archive file?
 This is in windows 7, LyX 2.0.2

 Please run lyx from a terminal and you should get more output.


Running LyX from window terminal does not give any information,
however I can find from the message window in lyx (attached), LyX
cannot find the file.
(the file name is complicated)

Then I saved as newfile1.lyx, then export to archive. Now successful.
Is this because the file name is too long or complicated ?

I tried to change the file name (the last number with 12) other the
same, also not successful.


Regards
waluyo

 Richard

attachment: Capture-error2.PNG

Re: lyx archive error

2012-02-16 Thread Waluyo Adi Siswanto
 I want to export to archive (zip) from export menu.
 An error popped up. What is that, how can export it in archive file?
 This is in windows 7, LyX 2.0.2

 Please run lyx from a terminal and you should get more output.


 Running LyX from window terminal does not give any information,
 however I can find from the message window in lyx (attached), LyX
 cannot find the file.
 (the file name is complicated)

 Then I saved as newfile1.lyx, then export to archive. Now successful.
 Is this because the file name is too long or complicated ?

 I tried to change the file name (the last number with 12) other the
 same, also not successful.


I have found the cause. It could be a bug?
ANY file using SPACE in its filename will fail to export archive.
I tried in Ubuntu 11.10 and Windows 7, both fail.

lyxpac search _ instead of SPACE, therefore it fails.

regards
waluyo


Re: is lyx really appropriate for my book.

2012-02-16 Thread Steve Litt
On Thu, 16 Feb 2012 14:05:46 -0800
Colin Williams co...@seattlesoft.com wrote:

 I haven't been able to keep up with the subject. It seems there is
 some division about how much latex knowledge is required to create a
 book that scales many platforms. 

If how much LaTeX knowledge is needed for LyX were the question asked
by a math exercise, then how many styles do you need to add/change
would be the given part of the exercise.

People who simply use their document class's styles and nothing more
need absolutely no LaTeX knowledge. People who add lots of styles and
extensively change the document class's styles need extensive LaTeX
knowledge. Those in between those extremes need moderate LaTeX
knowledge.


 If latex is required, then it's my
 opinion that lyx itself isn't quite ready for ebook publishing.

Why? If you already know LaTeX, or can reasonably learn it, why
penalize yourself by banning your own use of LyX? Personally, I think
people are a lot smarter than Gates, Balmer and Jobs tried to convince
us we were. Gates, Balmer and Jobs had a financial incentive to
convince us we're dumb, and hence their opinions aren't reliable.

 However, that does not mean I will not use it.

Excellent!

SteveT



Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Guenter Milde
On 2012-02-15, Georg Baum wrote:
> Jürgen Spitzmüller wrote:

>> If other encodings are used, LuaTeX uses the "luainputenc" package, which
>> has the same syntax than inputenc, i.e.

>> \usepackage[]{luainputenc}

>> Maybe we have to care about that.

> luainputenc is already handled.

Fine.

> What is missing for luatex is to set 
> use_non_tex_fonts to true and the encoding to utf8 if luainputenc is not 
> used. Unfortunately this is not so easy as with xetex.

"use_non_tex_fonts" is actually a toggle to use the "fontspec" package 
(coupled with the use of polyglossia if the language-package
setting is set to auto, if I remember right).

The "fontspec" package can be used with the XeTeX and LuaTeX engines but not
with TeX and eTeX.

This means that tex2lyx should look for

  \usepackage{fontspec}

and set "use_non_tex_fonts" accordingly.

(IMV, the name for this setting should also be changed:
  - use_non_tex_fonts
  + use_fontspec
this would prevent much confusion.)

The default encoding (if neither "inputenc" nor "luainputenc" is found) may
be chosen according to use_non_tex_fonts:

True 
  XeTeX or LuaTeX engines must be used to compile
  
  --> assume their default encoding (utf8) as file encoding.

False 
  any tex engine can be used to compile
  
  --> assume either the 8-bit tex default (ASCII) or utf8 as file encoding.
  
Actually, utf8 should be a safe bet in any case when no "inpuenc" or
"luainputenc" is found, as ASCII is a subset of utf8 and no tex engine
understands 8-bit encodings (latin-1 ...) without inputenc or a similar
package.

UTF8 decoding errors should lead to a message: "unknown encoding, please
specify the file encoding". If tex2lyx is called from the LyX-GUI, this
error should lead to a pop-up dialogue where you can specify an encoding.

Günter



  




Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Guenter Milde
On 2012-02-15, Georg Baum wrote:
> Jean-Marc Lasgouttes wrote:

>> Georg, Juergen, I'd like some feedback on the soundness of the patch. I
>> know next to nil about xetex, and I do not know what is the current
>> state of the art wrt tex2lyx.

> Unfortunately I know next to nothing about use_non_tex_fonts. After reading 
> the code and user guide a bit I see that using xetex is only possible if 
> use_non_tex_fonts is true, so your patch looks fine.

It is the other way round: using xetex or luatex is also possible without
use_non_tex_fonts (which actually means use_fontspec). OTOH, with
use_non_tex_fonts True, it one of xetex or luatex must be used.


Günter



RE: Automated insertion of labeled sentences

2012-02-16 Thread Scott Kostyshak
From: sj03rd[sjoerd...@gmail.com]
Sent: Thursday, February 16, 2012 4:29 AM

>Hi Scott,

>Thanks a lot for your answer, this is exactly what I was looking for. Much 
>appreciated!

>Best regards,
>Sjoerd (in Dutch) / Stewart (in English)

Hi Sjoerd,

I'm glad that solved your problem. Next time please respond to the list (reply 
all) so that everyone knows your problem was solved, in case others are trying 
to work on a solution or are trying to come up with a different interpretation 
of what the actual problem was.

Best regards,

Scott


Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Eric Weir

On Feb 16, 2012, at 4:35 AM, Guenter Milde wrote:

> (IMV, the name for this setting should also be changed:
>  - use_non_tex_fonts
>  + use_fontspec
> this would prevent much confusion.)

While I now know what it refers to, as a new user I would otherwise have found 
the new description mystifying. I would seem that it's possible to be clear 
both to advanced users/developers and new users.

Regards,
--
Eric Weir
Decatur, GA
eew...@bellsouth.net

"Style is truth." 

- Ray Bradbury



Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir

On Feb 15, 2012, at 1:57 PM, stefano franchi wrote:

>> On Feb 15, 2012, at 10:55 AM, stefano franchi wrote:
>> 
>>> 3. In Tools>>Preferences>>FIle Converters, create a new converter from
>>> Scrivener to Lyx: select "Scrivener" in the From dropdown list, and
>>> "Lyx" in the "to list. Enter the call to tex2lyx with the UTF8 switch
>>> in the "Converter field":
>>> tex2lyx -e UTF8  -f $$i $$o
> 
> 
> 
> And, you need to create the new format before you can create the converter.

Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear on 
the dropdown list. Perhaps there is something on the list that would stand in 
for the Scrivener output? E.g., it probably wouldn't do the job, but "plain 
text"? 

Sincerely,
--
Eric Weir
Decatur, GA 
eew...@bellsouth.net

"We do not inherit the earth from our ancestors, 
we borrow it from our children." 

- Chief Seattle.



Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Jürgen Spitzmüller
Eric Weir wrote:
> > (IMV, the name for this setting should also be changed:
> >  - use_non_tex_fonts
> >  + use_fontspec
> >
> > this would prevent much confusion.)
> 
> While I now know what it refers to, as a new user I would otherwise have
> found the new description mystifying. I would seem that it's possible to be
> clear both to advanced users/developers and new users.

This is an internal value only. But I also think we should keep it as it is, 
i.e. abstract and not bound to some specific package which may change in the 
future.

Jürgen


Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread stefano franchi
On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir  wrote:
>
> On Feb 15, 2012, at 1:57 PM, stefano franchi wrote:
>
>>> On Feb 15, 2012, at 10:55 AM, stefano franchi wrote:
>>>
 3. In Tools>>Preferences>>FIle Converters, create a new converter from
 Scrivener to Lyx: select "Scrivener" in the From dropdown list, and
 "Lyx" in the "to list. Enter the call to tex2lyx with the UTF8 switch
 in the "Converter field":
 tex2lyx -e UTF8  -f $$i $$o
>>
>> 
>>
>> And, you need to create the new format before you can create the converter.
>
> Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear 
> on the dropdown list. Perhaps there is something on the list that would stand 
> in for the Scrivener output? E.g., it probably wouldn't do the job, but 
> "plain text"?

Scrivener does not appear because you haven't created it yet.

1. Go to: Tools>>Preferences>>FileHandling>>File Format

2. Click "New"

3. Type "Scrivener' (or whatever) in the filed labeled "Format"

4. Click "Apply"

Then you can add the converter

Cheers,

S.


>
> Sincerely,
> --
> Eric Weir
> Decatur, GA
> eew...@bellsouth.net
>
> "We do not inherit the earth from our ancestors,
> we borrow it from our children."
>
> - Chief Seattle.
>



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

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


Re: how to make sections in bibliography?

2012-02-16 Thread Richard Heck

On 02/15/2012 08:11 PM, Marco Beishuizen wrote:

Hi,

I've tried all day to section my bibliography, but I keep getting 
errors. The "sectioned bibliography" in document settings is checked. 
Also two seperate bibtex databases are created, and added these to the 
bibliography in LyX. When unchecking "sectioned bibliography", the 
bibliography works fine, but then it is not sectioned.


The errors I get are:
Missing $ inserted
Extra }, or forgotten $
Missing } inserted

Do I need to do something else to make sectioned bibliographies work 
in LyX?


Try putting together a maximally simple version and see if that works. 
If not, post it here.


Richard



Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir

On Feb 16, 2012, at 9:37 AM, stefano franchi wrote:

> On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir  wrote:
> 
>> Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear 
>> on the dropdown list. Perhaps there is something on the list that would 
>> stand in for the Scrivener output? E.g., it probably wouldn't do the job, 
>> but "plain text"?
> 
> Scrivener does not appear because you haven't created it yet.
> 
> 1. Go to: Tools>>Preferences>>FileHandling>>File Format
> 
> 2. Click "New"
> 
> 3. Type "Scrivener' (or whatever) in the filed labeled "Format"
> 
> 4. Click "Apply"

Thanks, Stefano. I was overlooking the file format window. Had some difficulty 
getting them to save. When I finally did and tried importing a latex document 
the weird characters were there again. I tried this several times, making sure 
that the converter was properly set up and selected, and starting fresh with a 
new compile/export from Scrivener and continued to get the weird characters.

Finally resorted to executing the command in the terminal.

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net

"Hatred destroys. Love heals."

- Eknath Easwaran



Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread stefano franchi
On Thu, Feb 16, 2012 at 9:40 AM, Eric Weir  wrote:
>
> On Feb 16, 2012, at 9:37 AM, stefano franchi wrote:
>
>> On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir  wrote:
>>
>>> Thanks, Stefano. Don't see how to do that, either. Scrivener does not 
>>> appear on the dropdown list. Perhaps there is something on the list that 
>>> would stand in for the Scrivener output? E.g., it probably wouldn't do the 
>>> job, but "plain text"?
>>
>> Scrivener does not appear because you haven't created it yet.
>>
>> 1. Go to: Tools>>Preferences>>FileHandling>>File Format
>>
>> 2. Click "New"
>>
>> 3. Type "Scrivener' (or whatever) in the filed labeled "Format"
>>
>> 4. Click "Apply"
>
> Thanks, Stefano. I was overlooking the file format window. Had some 
> difficulty getting them to save. When I finally did and tried importing a 
> latex document the weird characters were there again. I tried this several 
> times, making sure that the converter was properly set up and selected, and 
> starting fresh with a new compile/export from Scrivener and continued to get 
> the weird characters.
>
> Finally resorted to executing the command in the terminal.

That would work as well---just less conveniently so. Be sure you have
the -e UTF8 switch in the converter line (as per my previous post)

Cheers,

S.


>
> --
> Eric Weir
> Decatur, GA  USA
> eew...@bellsouth.net
>
> "Hatred destroys. Love heals."
>
> - Eknath Easwaran
>



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

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


Problem compiling a memoir class document

2012-02-16 Thread Eric Weir

At Stefano's suggestion I'm giving the memoir class a look--or trying to. 
Without any formatting my document compiles to pdflatex fine. When I apply the 
title environment to my title and attempt to compile t get the following error 
message three times:

Undefined control sequence.

and a Case}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Help appreciated.

Thanks,
--
Eric Weir
eew...@bellsouth.net
Decatur, GA  USA

"Whatever you can do, or dream you can, begin it. 
Boldness has genius, power and magic in it. " 

- Johann Wolfgang von Goethe



Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir

On Feb 16, 2012, at 10:45 AM, stefano franchi wrote:

> On Thu, Feb 16, 2012 at 9:40 AM, Eric Weir  wrote:
>> 
>> On Feb 16, 2012, at 9:37 AM, stefano franchi wrote:
>> 
>>> On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir  wrote:
>>> 
 Thanks, Stefano. Don't see how to do that, either. Scrivener does not 
 appear on the dropdown list. Perhaps there is something on the list that 
 would stand in for the Scrivener output? E.g., it probably wouldn't do the 
 job, but "plain text"?
>>> 
>>> Scrivener does not appear because you haven't created it yet.
>>> 
>>> 1. Go to: Tools>>Preferences>>FileHandling>>File Format
>>> 
>>> 2. Click "New"
>>> 
>>> 3. Type "Scrivener' (or whatever) in the filed labeled "Format"
>>> 
>>> 4. Click "Apply"
>> 
>> Thanks, Stefano. I was overlooking the file format window. Had some 
>> difficulty getting them to save. When I finally did and tried importing a 
>> latex document the weird characters were there again. I tried this several 
>> times, making sure that the converter was properly set up and selected, and 
>> starting fresh with a new compile/export from Scrivener and continued to get 
>> the weird characters.
>> 
>> Finally resorted to executing the command in the terminal.
> 
> That would work as well---just less conveniently so. Be sure you have
> the -e UTF8 switch in the converter line (as per my previous post)

I copied the text from your message. 

Since it's not in the command you gave me to use in the terminal, I'm wondering 
about this part of what you said I should put in the converter field: -f $$i $$o

I assume it's not the source of the problem I'm having at the moment.

Thanks,
--
Eric Weir
Decatur, GA
eew...@bellsouth.net

"A man should be in the world as though he were not in it 
so that it will be no worse because of his life." 

- Wendell Berry 



LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Hi all. It seems that when changing Document: Settings: Font to use non-TeX
fonts, LyX will then change the default viewer action to be DVI (LuaTeX).
This doesn't work for me as I'm trying to use XeTeX. Is it possible to
specify the default viewer in this context?

Many thanks, as always.

~:justin.wood :~ ≤
350ppm


Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Richard Heck

On 02/16/2012 10:59 AM, Justin Wood wrote:
Hi all. It seems that when changing Document: Settings: Font to use 
non-TeX fonts, LyX will then change the default viewer action to be 
DVI (LuaTeX). This doesn't work for me as I'm trying to use XeTeX. Is 
it possible to specify the default viewer in this context?



Document>Settings>Ouput>Default Ouptut Format.

Richard



Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Thanks Richard. I should have said that I'd already done this, but while it
does take effect for 'normal' LyX documents, it does not seem to apply when
non-TeX fonts are active; ie, default viewer still changes to DVI (LuaTeX).

~:justin.wood :~ ≤
350ppm



On 16 February 2012 19:05, Richard Heck  wrote:

>  On 02/16/2012 10:59 AM, Justin Wood wrote:
>
> Hi all. It seems that when changing Document: Settings: Font to use
> non-TeX fonts, LyX will then change the default viewer action to be DVI
> (LuaTeX). This doesn't work for me as I'm trying to use XeTeX. Is it
> possible to specify the default viewer in this context?
>
>  Document>Settings>Ouput>Default Ouptut Format.
>
> Richard
>
>


Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Jürgen Spitzmüller
Justin Wood wrote:
> Thanks Richard. I should have said that I'd already done this, but while it
> does take effect for 'normal' LyX documents, it does not seem to apply when
> non-TeX fonts are active; ie, default viewer still changes to DVI (LuaTeX).

We do not have yet a global default format if non-TeX fonts is selected, see
http://www.lyx.org/trac/ticket/7871

However, you can set the default format per document, in Document > Settings. 
That is, after this bug is fixed (in next LyX release):
http://www.lyx.org/trac/ticket/8013

Jürgen

Re: LyX 2.0.2: default viewers when using XeTeX

2012-02-16 Thread Justin Wood
Jürgen Spitzmüller  lyx.org> writes:

> We do not have yet a global default format if non-TeX fonts is selected, see
> http://www.lyx.org/trac/ticket/7871
>  
> However, you can set the default format per document, in Document > Settings.
That is, after this bug is fixed (in next LyX release):
> http://www.lyx.org/trac/ticket/8013
>  
> Jürgen
> 


Ahh I see. Thanks for the explanation (I didn't think to check in bug trac).
Happy to (re)set the document default viewer as a workaround —— I keep them open
for long periods anyway.



Recover file never saved.

2012-02-16 Thread Gustavo Goretkin
Does LyX make backup of files that were never saved? I was working on
a new file, which I had not saved before, when my laptop crashed.

I am using LyX 2.0.0 on Ubuntu.

Thanks,
Gustavo


Re: Recover file never saved.

2012-02-16 Thread Richard Heck

On 02/16/2012 12:15 PM, Gustavo Goretkin wrote:

Does LyX make backup of files that were never saved? I was working on
a new file, which I had not saved before, when my laptop crashed.
It will autosave such files, if you have that active, etc. Where you 
might find it depends upon other settings, e.g., if you have a backup 
directory set. It should be named something like #newfile1#.lyx.


Richard



Re: how to make sections in bibliography?

2012-02-16 Thread Marco Beishuizen

On Thu, 16 Feb 2012, the wise Richard Heck wrote:

Try putting together a maximally simple version and see if that works. If 
not, post it here.


Thanks for the hint! Problem solved.

I managed to narrow it down and discovered eventually that the problem was 
with the characters with accents in the bibtex database. After correcting 
that I've now two bibliographies.


Regards,

Marco

--
When I'm gone, boxing will be nothing again.  The fans with the cigars and
the hats turned down'll be there, but no more housewives and little men in
the street and foreign presidents.  It's goin' to be back to the fighter who
comes to town, smells a flower, visits a hospital, blows a horn and says
he's in shape.  Old hat.  I was the onliest boxer in history people asked
questions like a senator.
-- Muhammad Ali


Re: is lyx really appropriate for my book.

2012-02-16 Thread Colin Williams
I haven't been able to keep up with the subject. It seems there is some
division about how much latex knowledge is required to create a book that
scales many platforms. If latex is required, then it's my opinion that lyx
itself isn't quite ready for ebook publishing. However, that does not mean
I will not use it.


Re: lyx archive error

2012-02-16 Thread Waluyo Adi Siswanto
>> I want to export to archive (zip) from export menu.
>> An error popped up. What is that, how can export it in archive file?
>> This is in windows 7, LyX 2.0.2
>
> Please run lyx from a terminal and you should get more output.
>

Running LyX from window terminal does not give any information,
however I can find from the message window in lyx (attached), LyX
cannot find the file.
(the file name is complicated)

Then I saved as newfile1.lyx, then export to archive. Now successful.
Is this because the file name is too long or complicated ?

I tried to change the file name (the last number with 12) other the
same, also not successful.


Regards
waluyo

> Richard
>
<>

Re: lyx archive error

2012-02-16 Thread Waluyo Adi Siswanto
>>> I want to export to archive (zip) from export menu.
>>> An error popped up. What is that, how can export it in archive file?
>>> This is in windows 7, LyX 2.0.2
>>
>> Please run lyx from a terminal and you should get more output.
>>
>
> Running LyX from window terminal does not give any information,
> however I can find from the message window in lyx (attached), LyX
> cannot find the file.
> (the file name is complicated)
>
> Then I saved as newfile1.lyx, then export to archive. Now successful.
> Is this because the file name is too long or complicated ?
>
> I tried to change the file name (the last number with 12) other the
> same, also not successful.
>

I have found the cause. It could be a bug?
ANY file using SPACE in its filename will fail to export archive.
I tried in Ubuntu 11.10 and Windows 7, both fail.

lyxpac search _ instead of SPACE, therefore it fails.

regards
waluyo


Re: is lyx really appropriate for my book.

2012-02-16 Thread Steve Litt
On Thu, 16 Feb 2012 14:05:46 -0800
Colin Williams  wrote:

> I haven't been able to keep up with the subject. It seems there is
> some division about how much latex knowledge is required to create a
> book that scales many platforms. 

If "how much LaTeX knowledge is needed for LyX" were the question asked
by a math exercise, then "how many styles do you need to add/change"
would be the "given" part of the exercise.

People who simply use their document class's styles and nothing more
need absolutely no LaTeX knowledge. People who add lots of styles and
extensively change the document class's styles need extensive LaTeX
knowledge. Those in between those extremes need moderate LaTeX
knowledge.


> If latex is required, then it's my
> opinion that lyx itself isn't quite ready for ebook publishing.

Why? If you already know LaTeX, or can reasonably learn it, why
penalize yourself by banning your own use of LyX? Personally, I think
people are a lot smarter than Gates, Balmer and Jobs tried to convince
us we were. Gates, Balmer and Jobs had a financial incentive to
convince us we're dumb, and hence their opinions aren't reliable.

> However, that does not mean I will not use it.

Excellent!

SteveT