RE: TeX in LyX ?

2019-06-13 Thread Bernt Lie
It is a basic question :-).

Use Ctrl+m to switch to in-line math. Use Ctrl+Shift+m to switch to displayed 
math.

Use the following sequences:


  *   Ctrl+m  [switches to math]
  *   \lim + space + Shift+_ + x + \rightarrow + space + 0 + space + f + Alt+( 
+ x + space
  *   Space [a final space to leave math mode]

-B

From: lyx-users@lists.lyx.org  On Behalf Of Carlos 
Knauer
Sent: torsdag 13. juni 2019 14.36
To: LyX Users 
Subject: TeX in LyX ?

Hello. How do I enter a TeX command in LyX? I want to write lim_ {x-> 0} f (x) 
in the middle of the text. Does the \ displaystyle enter before the equation? 
That is: I write \ displaystyle from there I enter the mathematical mode and 
write the equation? Thanks and sorry for this basic question.

Carlos Fernando Knauer



Re: TeX in LyX ?

2019-06-13 Thread Christopher Menzel
Why not simply enter it inline in math mode?

> On Jun 13, 2019, at 2:35 PM, Carlos Knauer  wrote:
> 
> Hello. How do I enter a TeX command in LyX? I want to write lim_ {x-> 0} f 
> (x) in the middle of the text. Does the \ displaystyle enter before the 
> equation? That is: I write \ displaystyle from there I enter the mathematical 
> mode and write the equation? Thanks and sorry for this basic question.
> 
> Carlos Fernando Knauer
> 


Re: .tex to LyX (attached file)

2009-05-19 Thread Daniel Pereira
On Sat, May 16, 2009 at 9:46 AM, rgheck rgh...@comcast.net wrote:

 Daniel R. Pereira wrote:

 Hello rh,

 I am attaching the whole file now. It is a thesis template, that I want to
 import to LyX. Any help is appreciated.



 You need to import *all* the TeX files and compile it from the ufsampleETD
 file. It will not be possible to compile the individual chapters, because
 they do not contain the necessary includes for compilation. They are
 includes for the main document.

 To do the import, you will need a layout file for the ufthesis class. I've
 attached a trivial modification of the report layout, as ufthesis is based
 upon report. But you'll probably get a lot of ERT with this, so you may want
 to modify it to take advantage of ufthesis-specific stuff. Documentation on
 that is in chapter 6 of the Customization manual.

 Put this layout file in your local layout directory and reconfigure LyX
 before doing anything else. You'll also want to put all the .sty and .cls
 packages you don't already have into your local TeX tree, so that LyX can
 find them. I'd guess that means ufenumerate.sty and ufthesis.cls, and maybe
 a couple more. If you're on Linux or something similar---i.e., if you have
 bash---then you can use this:
   for i in Latex\ Template/*.sty; do
   j=`basename $i`;
   if kpsewhich $j  /dev/null; then
   echo $j found;
   else echo $j not found;
   fi;
   done
 run from the directory above the Latex Template directory, to find out
 which you have and which you don't. Otherwise, you'll have to check them by
 hand.

 You use this script:
   for i in *tex; do tex2lyx -c ufthesis $i; done
 from an appropriate directory to do all the conversions in one go.

 rh

 PS Please keep these things on the list, as other people may have similar
 questions, or be following the discussion just to learn.


 #% Do not delete the line below; configure depends on this
 #  \DeclareLaTeXClass{ufthesis}
 # Report textclass definition file. Taken from initial LyX source code
 # Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.de
 # Transposed by Pascal André an...@via.ecp.fr
 # Heavily modifed and enhanced by serveral developers.

 Format 11
 Input stdclass.inc
 Input numreport.inc

 Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
 End



OK, I guess I should mention the fact that I started using LyX two weeks
ago, and that I have no programming background. Although I am very willing
to do this.
What I could do from what you said was:

1. to import the .sty, .cls.. LyX now recognizes the ufthesis.layout ! =)

2. By compiling you mean import the main TEX file (ufsampleETD.tex)?
When I import the ufsampleETD.tex, I am getting not many ERTs. Most of
them are %comments. The commands that LyX appears to not recognize are:
\makecopyright,
\phantomsection,
\addtocontents{TOC} , \protect, \addvspace{10pt} {CHAPTER} {\\protect} (this
last one in order to add the word CHAPTER to the table of contents)

 I cannot generate an output, because of the following errors:
LaTeX Error: Option clash for package graphicx;
description:
\usepackage

 {amsmath}

The package graphicx has already been loaded with options:

[]

There has now been an attempt to load it with options

[dvipdfm]

Adding the global options:

,dvipdfm

to your \documentclass declaration may fix this.


LaTeX Error: Something's wrong--perhaps a missing \item.

...S AND DISSERTATION TEMPLATE}}{9}{chapter.1}

 Try typing return to proceed.

If that doesn't work, type X return to quit.Try typing return to
proceed.


Package inputenc Error: Keyboard character used is

undefined


This is an example of a {}``short’

 ’ list. Not because there's only

You need to provide a definition with \DeclareInputText

or \DeclareInputMath before using this key.




If explained in more detail, I can try to do the bash part.( I am on a
Mac, OS X 10.5). Are you talking about running that code in a terminal?
Sorry about this, I have zero experience with programming.



Thank you,

--
Daniel Reis Pereira
University of FloridaMcCarty Hall A 2197


Re: .tex to LyX (attached file)

2009-05-19 Thread Daniel Pereira
On Sat, May 16, 2009 at 9:46 AM, rgheck rgh...@comcast.net wrote:

 Daniel R. Pereira wrote:

 Hello rh,

 I am attaching the whole file now. It is a thesis template, that I want to
 import to LyX. Any help is appreciated.



 You need to import *all* the TeX files and compile it from the ufsampleETD
 file. It will not be possible to compile the individual chapters, because
 they do not contain the necessary includes for compilation. They are
 includes for the main document.

 To do the import, you will need a layout file for the ufthesis class. I've
 attached a trivial modification of the report layout, as ufthesis is based
 upon report. But you'll probably get a lot of ERT with this, so you may want
 to modify it to take advantage of ufthesis-specific stuff. Documentation on
 that is in chapter 6 of the Customization manual.

 Put this layout file in your local layout directory and reconfigure LyX
 before doing anything else. You'll also want to put all the .sty and .cls
 packages you don't already have into your local TeX tree, so that LyX can
 find them. I'd guess that means ufenumerate.sty and ufthesis.cls, and maybe
 a couple more. If you're on Linux or something similar---i.e., if you have
 bash---then you can use this:
   for i in Latex\ Template/*.sty; do
   j=`basename $i`;
   if kpsewhich $j  /dev/null; then
   echo $j found;
   else echo $j not found;
   fi;
   done
 run from the directory above the Latex Template directory, to find out
 which you have and which you don't. Otherwise, you'll have to check them by
 hand.

 You use this script:
   for i in *tex; do tex2lyx -c ufthesis $i; done
 from an appropriate directory to do all the conversions in one go.

 rh

 PS Please keep these things on the list, as other people may have similar
 questions, or be following the discussion just to learn.


 #% Do not delete the line below; configure depends on this
 #  \DeclareLaTeXClass{ufthesis}
 # Report textclass definition file. Taken from initial LyX source code
 # Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.de
 # Transposed by Pascal André an...@via.ecp.fr
 # Heavily modifed and enhanced by serveral developers.

 Format 11
 Input stdclass.inc
 Input numreport.inc

 Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
 End



OK, I guess I should mention the fact that I started using LyX two weeks
ago, and that I have no programming background. Although I am very willing
to do this.
What I could do from what you said was:

1. to import the .sty, .cls.. LyX now recognizes the ufthesis.layout ! =)

2. By compiling you mean import the main TEX file (ufsampleETD.tex)?
When I import the ufsampleETD.tex, I am getting not many ERTs. Most of
them are %comments. The commands that LyX appears to not recognize are:
\makecopyright,
\phantomsection,
\addtocontents{TOC} , \protect, \addvspace{10pt} {CHAPTER} {\\protect} (this
last one in order to add the word CHAPTER to the table of contents)

 I cannot generate an output, because of the following errors:
LaTeX Error: Option clash for package graphicx;
description:
\usepackage

 {amsmath}

The package graphicx has already been loaded with options:

[]

There has now been an attempt to load it with options

[dvipdfm]

Adding the global options:

,dvipdfm

to your \documentclass declaration may fix this.


LaTeX Error: Something's wrong--perhaps a missing \item.

...S AND DISSERTATION TEMPLATE}}{9}{chapter.1}

 Try typing return to proceed.

If that doesn't work, type X return to quit.Try typing return to
proceed.


Package inputenc Error: Keyboard character used is

undefined


This is an example of a {}``short’

 ’ list. Not because there's only

You need to provide a definition with \DeclareInputText

or \DeclareInputMath before using this key.




If explained in more detail, I can try to do the bash part.( I am on a
Mac, OS X 10.5). Are you talking about running that code in a terminal?
Sorry about this, I have zero experience with programming.



Thank you,

--
Daniel Reis Pereira
University of FloridaMcCarty Hall A 2197


Re: .tex to LyX (attached file)

2009-05-19 Thread Daniel Pereira
On Sat, May 16, 2009 at 9:46 AM, rgheck  wrote:

> Daniel R. Pereira wrote:
>
>> Hello rh,
>>
>> I am attaching the whole file now. It is a thesis template, that I want to
>> import to LyX. Any help is appreciated.
>>
>>
>>
> You need to import *all* the TeX files and compile it from the ufsampleETD
> file. It will not be possible to compile the individual chapters, because
> they do not contain the necessary includes for compilation. They are
> includes for the main document.
>
> To do the import, you will need a layout file for the ufthesis class. I've
> attached a trivial modification of the report layout, as ufthesis is based
> upon report. But you'll probably get a lot of ERT with this, so you may want
> to modify it to take advantage of ufthesis-specific stuff. Documentation on
> that is in chapter 6 of the Customization manual.
>
> Put this layout file in your local layout directory and reconfigure LyX
> before doing anything else. You'll also want to put all the .sty and .cls
> packages you don't already have into your local TeX tree, so that LyX can
> find them. I'd guess that means ufenumerate.sty and ufthesis.cls, and maybe
> a couple more. If you're on Linux or something similar---i.e., if you have
> bash---then you can use this:
>   for i in Latex\ Template/*.sty; do
>   j=`basename "$i"`;
>   if kpsewhich $j > /dev/null; then
>   echo "$j found";
>   else echo "$j not found";
>   fi;
>   done
> run from the directory above the Latex Template directory, to find out
> which you have and which you don't. Otherwise, you'll have to check them by
> hand.
>
> You use this script:
>   for i in *tex; do tex2lyx -c ufthesis $i; done
> from an appropriate directory to do all the conversions in one go.
>
> rh
>
> PS Please keep these things on the list, as other people may have similar
> questions, or be following the discussion just to learn.
>
>
> #% Do not delete the line below; configure depends on this
> #  \DeclareLaTeXClass{ufthesis}
> # Report textclass definition file. Taken from initial LyX source code
> # Author : Matthias Ettrich 
> # Transposed by Pascal André 
> # Heavily modifed and enhanced by serveral developers.
>
> Format 11
> Input stdclass.inc
> Input numreport.inc
>
> Style Bibliography
>TopSep4
>LabelString   "Bibliography"
>LabelFont
>  Series  Bold
>  SizeHuge
>EndFont
> End
>


OK, I guess I should mention the fact that I started using LyX two weeks
ago, and that I have no programming background. Although I am very willing
to do this.
What I could do from what you said was:

1. to import the .sty, .cls.. LyX now recognizes the "ufthesis.layout" ! =)

2. By "compiling" you mean import the main TEX file (ufsampleETD.tex"")?
When I import the "ufsampleETD.tex", I am getting not many ERTs. Most of
them are "%comments". The commands that LyX appears to not recognize are:
\makecopyright,
\phantomsection,
\addtocontents{TOC} , \protect, \addvspace{10pt} {CHAPTER} {\\protect} (this
last one in order to add the word CHAPTER to the table of contents)

 I cannot generate an output, because of the following errors:
LaTeX Error: Option clash for package graphicx;
description:
\usepackage

 {amsmath}

The package graphicx has already been loaded with options:

[]

There has now been an attempt to load it with options

[dvipdfm]

Adding the global options:

,dvipdfm

to your \documentclass declaration may fix this.


LaTeX Error: Something's wrong--perhaps a missing \item.

...S AND DISSERTATION TEMPLATE}}{9}{chapter.1}

 Try typing  to proceed.

If that doesn't work, type X  to quit.Try typing  to
proceed.


Package inputenc Error: Keyboard character used is

undefined


This is an example of a {}``short’

 ’ list. Not because there's only

You need to provide a definition with \DeclareInputText

or \DeclareInputMath before using this key.




If explained in more detail, I can try to do the "bash part".( I am on a
Mac, OS X 10.5). Are you talking about running that code in a terminal?
Sorry about this, I have zero experience with programming.



Thank you,

--
Daniel Reis Pereira
University of FloridaMcCarty Hall A 2197


Re: .tex to LyX (attached file)

2009-05-16 Thread rgheck

Daniel R. Pereira wrote:

Hello rh,

I am attaching the whole file now. It is a thesis template, that I 
want to import to LyX. Any help is appreciated.


  
You need to import *all* the TeX files and compile it from the 
ufsampleETD file. It will not be possible to compile the individual 
chapters, because they do not contain the necessary includes for 
compilation. They are includes for the main document.


To do the import, you will need a layout file for the ufthesis class. 
I've attached a trivial modification of the report layout, as ufthesis 
is based upon report. But you'll probably get a lot of ERT with this, so 
you may want to modify it to take advantage of ufthesis-specific stuff. 
Documentation on that is in chapter 6 of the Customization manual.


Put this layout file in your local layout directory and reconfigure LyX 
before doing anything else. You'll also want to put all the .sty and 
.cls packages you don't already have into your local TeX tree, so that 
LyX can find them. I'd guess that means ufenumerate.sty and 
ufthesis.cls, and maybe a couple more. If you're on Linux or something 
similar---i.e., if you have bash---then you can use this:

   for i in Latex\ Template/*.sty; do
   j=`basename $i`;
   if kpsewhich $j  /dev/null; then
   echo $j found;
   else echo $j not found;
   fi;
   done
run from the directory above the Latex Template directory, to find out 
which you have and which you don't. Otherwise, you'll have to check them 
by hand.


You use this script:
   for i in *tex; do tex2lyx -c ufthesis $i; done
from an appropriate directory to do all the conversions in one go.

rh

PS Please keep these things on the list, as other people may have 
similar questions, or be following the discussion just to learn.


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass{ufthesis}
# Report textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.de
# Transposed by Pascal André an...@via.ecp.fr
# Heavily modifed and enhanced by serveral developers.

Format 11
Input stdclass.inc
Input numreport.inc

Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
End


Re: .tex to LyX (attached file)

2009-05-16 Thread rgheck

Daniel R. Pereira wrote:

Hello rh,

I am attaching the whole file now. It is a thesis template, that I 
want to import to LyX. Any help is appreciated.


  
You need to import *all* the TeX files and compile it from the 
ufsampleETD file. It will not be possible to compile the individual 
chapters, because they do not contain the necessary includes for 
compilation. They are includes for the main document.


To do the import, you will need a layout file for the ufthesis class. 
I've attached a trivial modification of the report layout, as ufthesis 
is based upon report. But you'll probably get a lot of ERT with this, so 
you may want to modify it to take advantage of ufthesis-specific stuff. 
Documentation on that is in chapter 6 of the Customization manual.


Put this layout file in your local layout directory and reconfigure LyX 
before doing anything else. You'll also want to put all the .sty and 
.cls packages you don't already have into your local TeX tree, so that 
LyX can find them. I'd guess that means ufenumerate.sty and 
ufthesis.cls, and maybe a couple more. If you're on Linux or something 
similar---i.e., if you have bash---then you can use this:

   for i in Latex\ Template/*.sty; do
   j=`basename $i`;
   if kpsewhich $j  /dev/null; then
   echo $j found;
   else echo $j not found;
   fi;
   done
run from the directory above the Latex Template directory, to find out 
which you have and which you don't. Otherwise, you'll have to check them 
by hand.


You use this script:
   for i in *tex; do tex2lyx -c ufthesis $i; done
from an appropriate directory to do all the conversions in one go.

rh

PS Please keep these things on the list, as other people may have 
similar questions, or be following the discussion just to learn.


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass{ufthesis}
# Report textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.de
# Transposed by Pascal André an...@via.ecp.fr
# Heavily modifed and enhanced by serveral developers.

Format 11
Input stdclass.inc
Input numreport.inc

Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
End


Re: .tex to LyX (attached file)

2009-05-16 Thread rgheck

Daniel R. Pereira wrote:

Hello rh,

I am attaching the whole file now. It is a thesis template, that I 
want to import to LyX. Any help is appreciated.


  
You need to import *all* the TeX files and compile it from the 
ufsampleETD file. It will not be possible to compile the individual 
chapters, because they do not contain the necessary includes for 
compilation. They are includes for the main document.


To do the import, you will need a layout file for the ufthesis class. 
I've attached a trivial modification of the report layout, as ufthesis 
is based upon report. But you'll probably get a lot of ERT with this, so 
you may want to modify it to take advantage of ufthesis-specific stuff. 
Documentation on that is in chapter 6 of the Customization manual.


Put this layout file in your local layout directory and reconfigure LyX 
before doing anything else. You'll also want to put all the .sty and 
.cls packages you don't already have into your local TeX tree, so that 
LyX can find them. I'd guess that means ufenumerate.sty and 
ufthesis.cls, and maybe a couple more. If you're on Linux or something 
similar---i.e., if you have bash---then you can use this:

   for i in Latex\ Template/*.sty; do
   j=`basename "$i"`;
   if kpsewhich $j > /dev/null; then
   echo "$j found";
   else echo "$j not found";
   fi;
   done
run from the directory above the Latex Template directory, to find out 
which you have and which you don't. Otherwise, you'll have to check them 
by hand.


You use this script:
   for i in *tex; do tex2lyx -c ufthesis $i; done
from an appropriate directory to do all the conversions in one go.

rh

PS Please keep these things on the list, as other people may have 
similar questions, or be following the discussion just to learn.


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass{ufthesis}
# Report textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich 
# Transposed by Pascal André 
# Heavily modifed and enhanced by serveral developers.

Format 11
Input stdclass.inc
Input numreport.inc

Style Bibliography
TopSep4
LabelString   "Bibliography"
LabelFont
  Series  Bold
  SizeHuge
EndFont
End


Re: .tex to LyX (attached file)

2009-05-15 Thread rgheck

daniel pereira wrote:

Hello,

I tried to import the attached .tex file into LyX (File  Import  
LaTeX (plain). When trying to generate the PDF, I am getting a 
Undefined Control Sequence error for every ERT on the text.


 Many thanks for any advice,

This is not a valid LaTeX file, for one thing, since it has no header. 
The ERT error is probably due to that, as the \latex macro they are 
using seems not to be defined. Another problem is that the file contains 
some weird characters after the sort short, and the tex2lyx importer 
seems to be choking on them.


rh




Re: .tex to LyX (attached file)

2009-05-15 Thread rgheck

daniel pereira wrote:

Hello,

I tried to import the attached .tex file into LyX (File  Import  
LaTeX (plain). When trying to generate the PDF, I am getting a 
Undefined Control Sequence error for every ERT on the text.


 Many thanks for any advice,

This is not a valid LaTeX file, for one thing, since it has no header. 
The ERT error is probably due to that, as the \latex macro they are 
using seems not to be defined. Another problem is that the file contains 
some weird characters after the sort short, and the tex2lyx importer 
seems to be choking on them.


rh




Re: .tex to LyX (attached file)

2009-05-15 Thread rgheck

daniel pereira wrote:

Hello,

I tried to import the attached .tex file into LyX (File > Import > 
LaTeX (plain). When trying to generate the PDF, I am getting a 
"Undefined Control Sequence" error for every ERT on the text.


 Many thanks for any advice,

This is not a valid LaTeX file, for one thing, since it has no header. 
The ERT error is probably due to that, as the \latex macro they are 
using seems not to be defined. Another problem is that the file contains 
some weird characters after the sort "short", and the tex2lyx importer 
seems to be choking on them.


rh




Re: .tex to .lyx to .tex problem

2007-02-06 Thread Enrico Forestieri
Kevin Paunovic writes:
 
 I start from a .tex latex file that contains:
 \lipsum[11] blahblah
 
 I import this in LyX.
 
 Then I export the .lyx file to plain latex (.tex) and I find this line:
 \lipsum{[}11]
 
 This seems to be due to the fact \lipsum command don't take arguments  
 but a unique optional argument (between square brackets). So LyX may  
 consider, as no '{' was found after \lipsum, that lipsum command  
 takes the next char as argument (the opening square bracket) and puts  
 it between accolades. Maybe there is a way to fix this a simple way?

You must teach LyX the syntax of your command. The most simple way is
copying the syntax.default file from the system directory to your personal
.lyx directory and add at the very bottom the single line

\lipsum[]

However, if you do so, from now on the system syntax.default file is not
read anymore, which may be a problem when you upgrade. So, it is better
that you create a file containing only the line above and then modify
the LaTeX-LyX converter in Tools-Preferences-Converters. Most probably
this converter is defined as tex2lyx -f $$i $$o and you should change it
to read tex2lyx -s /path/to/your/syntax.file -f $$i $$o, where
/path/to/your/syntax.file is the file above containing that single line
(of course you can also add to it the syntax of other commands, one per line).
If you are on *nix, man tex2lyx is your friend.

HTH

-- 
Enrico



Re: .tex to .lyx to .tex problem

2007-02-06 Thread Enrico Forestieri
Kevin Paunovic writes:
 
 I start from a .tex latex file that contains:
 \lipsum[11] blahblah
 
 I import this in LyX.
 
 Then I export the .lyx file to plain latex (.tex) and I find this line:
 \lipsum{[}11]
 
 This seems to be due to the fact \lipsum command don't take arguments  
 but a unique optional argument (between square brackets). So LyX may  
 consider, as no '{' was found after \lipsum, that lipsum command  
 takes the next char as argument (the opening square bracket) and puts  
 it between accolades. Maybe there is a way to fix this a simple way?

You must teach LyX the syntax of your command. The most simple way is
copying the syntax.default file from the system directory to your personal
.lyx directory and add at the very bottom the single line

\lipsum[]

However, if you do so, from now on the system syntax.default file is not
read anymore, which may be a problem when you upgrade. So, it is better
that you create a file containing only the line above and then modify
the LaTeX-LyX converter in Tools-Preferences-Converters. Most probably
this converter is defined as tex2lyx -f $$i $$o and you should change it
to read tex2lyx -s /path/to/your/syntax.file -f $$i $$o, where
/path/to/your/syntax.file is the file above containing that single line
(of course you can also add to it the syntax of other commands, one per line).
If you are on *nix, man tex2lyx is your friend.

HTH

-- 
Enrico



Re: .tex to .lyx to .tex problem

2007-02-06 Thread Enrico Forestieri
Kevin Paunovic writes:
> 
> I start from a .tex latex file that contains:
> \lipsum[11] blahblah
> 
> I import this in LyX.
> 
> Then I export the .lyx file to plain latex (.tex) and I find this line:
> \lipsum{[}11]
> 
> This seems to be due to the fact \lipsum command don't take arguments  
> but a unique optional argument (between square brackets). So LyX may  
> consider, as no '{' was found after \lipsum, that lipsum command  
> takes the next char as argument (the opening square bracket) and puts  
> it between accolades. Maybe there is a way to fix this a simple way?

You must teach LyX the syntax of your command. The most simple way is
copying the syntax.default file from the system directory to your personal
.lyx directory and add at the very bottom the single line

\lipsum[]

However, if you do so, from now on the system syntax.default file is not
read anymore, which may be a problem when you upgrade. So, it is better
that you create a file containing only the line above and then modify
the LaTeX->LyX converter in Tools->Preferences->Converters. Most probably
this converter is defined as "tex2lyx -f $$i $$o" and you should change it
to read "tex2lyx -s /path/to/your/syntax.file -f $$i $$o", where
/path/to/your/syntax.file is the file above containing that single line
(of course you can also add to it the syntax of other commands, one per line).
If you are on *nix, "man tex2lyx" is your friend.

HTH

-- 
Enrico



Re: .tex template .lyx template (import troubleshooting)

2006-03-26 Thread Stephen Harris

Hello Tom,

I found an earlier reference on the User mailing list.

http://marc2.theaimsgroup.com/?l=lyx-usersm=112801887714118w=2


Re: .tex template .lyx template (import troubleshooting)

2006-03-26 Thread Stephen Harris

Hello Tom,

I found an earlier reference on the User mailing list.

http://marc2.theaimsgroup.com/?l=lyx-usersm=112801887714118w=2


Re: .tex template > .lyx template (import troubleshooting)

2006-03-26 Thread Stephen Harris

Hello Tom,

I found an earlier reference on the User mailing list.

http://marc2.theaimsgroup.com/?l=lyx-users=112801887714118=2


Re: .tex to .lyx ACM conversion

2006-03-24 Thread Stephen Harris

Stephen Harris wrote:


There seems to be a problem with tex2lyx converting
ACM template .tex files. I downloaded acm.zip from
http://www.idt.mdh.se/kurser/ct3340/ht05/pcinstructions.html

1. Unfortunately, there is an error in the ACM template found on
the web (the ACM knows about it...). Get a correct version of the
ACM files by downloading  this zip file _(acm.zip)_ and unzip it.

SH: The included .tex file sigproc-sp.tex correctlyconverts to .dvi 
with: latex, bibtex, latex latex. (before, I upgraded Latex fndb/Recfg)


This is a followup of troubleshooting Tom's earlier post:
Subject: Re: .tex template  .lyx template (import troubleshooting)

Any ideas why tex2lyx fails on these ACM .tex files with both
Cygwin1.4.0 and Windows1.4.1svn? The error message is,

LyX: Cannot convert file
An error occurred whilst running tex2lyx -f nime06-template.tex
nime06-template.
Same problem/error message reported with sigproc-sp.tex

Regards,
Stephen









Re: .tex to .lyx ACM conversion

2006-03-24 Thread Stephen Harris

Stephen Harris wrote:


There seems to be a problem with tex2lyx converting
ACM template .tex files. I downloaded acm.zip from
http://www.idt.mdh.se/kurser/ct3340/ht05/pcinstructions.html

1. Unfortunately, there is an error in the ACM template found on
the web (the ACM knows about it...). Get a correct version of the
ACM files by downloading  this zip file _(acm.zip)_ and unzip it.

SH: The included .tex file sigproc-sp.tex correctlyconverts to .dvi 
with: latex, bibtex, latex latex. (before, I upgraded Latex fndb/Recfg)


This is a followup of troubleshooting Tom's earlier post:
Subject: Re: .tex template  .lyx template (import troubleshooting)

Any ideas why tex2lyx fails on these ACM .tex files with both
Cygwin1.4.0 and Windows1.4.1svn? The error message is,

LyX: Cannot convert file
An error occurred whilst running tex2lyx -f nime06-template.tex
nime06-template.
Same problem/error message reported with sigproc-sp.tex

Regards,
Stephen









Re: .tex to .lyx ACM conversion

2006-03-24 Thread Stephen Harris

Stephen Harris wrote:


There seems to be a problem with tex2lyx converting
ACM template .tex files. I downloaded acm.zip from
http://www.idt.mdh.se/kurser/ct3340/ht05/pcinstructions.html

"1. Unfortunately, there is an error in the ACM template found on
the web (the ACM knows about it...). Get a correct version of the
ACM files by downloading  this zip file _(acm.zip)_ and unzip it."

SH: The included .tex file sigproc-sp.tex correctlyconverts to .dvi 
with: latex, bibtex, latex latex. (before, I upgraded Latex fndb/Recfg)


This is a followup of troubleshooting Tom's earlier post:
Subject: Re: .tex template > .lyx template (import troubleshooting)

Any ideas why tex2lyx fails on these ACM .tex files with both
Cygwin1.4.0 and Windows1.4.1svn? The error message is,

LyX: Cannot convert file
An error occurred whilst running tex2lyx -f "nime06-template.tex"
"nime06-template.
Same problem/error message reported with sigproc-sp.tex

Regards,
Stephen









Re: .tex template .lyx template (import troubleshooting)

2006-03-22 Thread Stephen Harris

Thomas Kitazawa wrote:

Dear lyx users

As a novice, I would like to migrate from ms_word to latex_world using
lyx_editor.

I am supposed to use the attached .tex template but unluckily the import to
lyx fails via Tex2LyxInvokedFromLyx. 


Any ideas? Many thanks.

Thomas K

My Setup: 
Latest LyX/Mac 1.4.0 and macTex following instructions on

http://wiki.lyx.org/LyX/LyXOnMac?from=LyX.Mac


Hello,

I wasn't able to open your file with LyX either.
When I tried from the command line with
latex nime06-template.tex

latex complained about a missing nime*.cls file.


Re: .tex template .lyx template (import troubleshooting)

2006-03-22 Thread Stephen Harris

Thomas Kitazawa wrote:

Dear lyx users

As a novice, I would like to migrate from ms_word to latex_world using
lyx_editor.

I am supposed to use the attached .tex template but unluckily the import to
lyx fails via Tex2LyxInvokedFromLyx. 


Any ideas? Many thanks.

Thomas K

My Setup: 
Latest LyX/Mac 1.4.0 and macTex following instructions on

http://wiki.lyx.org/LyX/LyXOnMac?from=LyX.Mac


Hello,

I wasn't able to open your file with LyX either.
When I tried from the command line with
latex nime06-template.tex

latex complained about a missing nime*.cls file.


Re: .tex template > .lyx template (import troubleshooting)

2006-03-22 Thread Stephen Harris

Thomas Kitazawa wrote:

Dear lyx users

As a novice, I would like to migrate from ms_word to latex_world using
lyx_editor.

I am supposed to use the attached .tex template but unluckily the import to
lyx fails via Tex2LyxInvokedFromLyx. 


Any ideas? Many thanks.

Thomas K

My Setup: 
Latest LyX/Mac 1.4.0 and macTex following instructions on

http://wiki.lyx.org/LyX/LyXOnMac?from=LyX.Mac


Hello,

I wasn't able to open your file with LyX either.
When I tried from the command line with
latex nime06-template.tex

latex complained about a missing nime*.cls file.