Re: convert lyx to PDF from command line

2007-03-16 Thread Gunnar
On Friday 16 March 2007 12:55, Eugeny N Dzhurinsky wrote:
 Hello, could somebody please tell me how is it possible to convert LyX
 document to PDF from command line?
lyx -e pdf  file.lyx
creates file.pdf


Re: convert lyx to PDF from command line

2007-03-16 Thread Gunnar
 Is there any way to specify I would like to use pdflatex to make
 conversion?
lyx -e pdflatex file.lyx 

perhaps?


What LFUN to create 2x1 matrix shortcut?

2007-03-16 Thread Gunnar Lindholm
Hello
I wish to create a keyboard shortcut for inserting 2x1 matrix (when I'm inside 
a math enivornment), what should I write in the bind file for this?
I use LyX 1.4.4.
The only documentation I seem to find is for 1.3.3 on the wikipages. Isn't 
there any more uptodate?

Thanks,
Gunnar.


Re: convert lyx to PDF from command line

2007-03-16 Thread Gunnar
On Friday 16 March 2007 12:55, Eugeny N Dzhurinsky wrote:
> Hello, could somebody please tell me how is it possible to convert LyX
> document to PDF from command line?
lyx -e pdf  file.lyx
creates file.pdf


Re: convert lyx to PDF from command line

2007-03-16 Thread Gunnar
> Is there any way to specify I would like to use pdflatex to make
> conversion?
lyx -e pdflatex file.lyx 

perhaps?


Re: Lyx's Site down?

2007-03-12 Thread Gunnar
 We should really set up some kind of fallback mechanism that works
 (a) when Lars is not available (which seems to be rather common lately)
 and (b) without the help of Third Parties.
Some thoughts,

It can't be that hard to setup a mirror site called lyx2.org or something else 
that is easy to remember if one can't setup a round robin DNS.

Syncronization with lyx.org and the wiki is another problem that has to be 
solved unless the mirrors are more read-only.


Re: Lyx's Site down?

2007-03-12 Thread Gunnar
 We should really set up some kind of fallback mechanism that works
 (a) when Lars is not available (which seems to be rather common lately)
 and (b) without the help of Third Parties.
Some thoughts,

It can't be that hard to setup a mirror site called lyx2.org or something else 
that is easy to remember if one can't setup a round robin DNS.

Syncronization with lyx.org and the wiki is another problem that has to be 
solved unless the mirrors are more read-only.


Re: Lyx's Site down?

2007-03-12 Thread Gunnar
> We should really set up some kind of fallback mechanism that works
> (a) when Lars is not available (which seems to be rather common lately)
> and (b) without the help of "Third Parties".
Some thoughts,

It can't be that hard to setup a mirror site called lyx2.org or something else 
that is easy to remember if one can't setup a round robin DNS.

Syncronization with lyx.org and the wiki is another problem that has to be 
solved unless the mirrors are more "read-only".


What has happend to lyx.org?

2007-03-08 Thread Gunnar Lindholm
Any ETA on when it will return?

Best wishes
Gunnar


What has happend to lyx.org?

2007-03-08 Thread Gunnar Lindholm
Any ETA on when it will return?

Best wishes
Gunnar


What has happend to lyx.org?

2007-03-08 Thread Gunnar Lindholm
Any ETA on when it will return?

Best wishes
Gunnar


Re: annoying behaviour in 1.4

2007-03-07 Thread Gunnar
 moved to the beginning of the next word. Apart from being just odd,
 there's a real problem with that: If I have the text firstword
 [MATH] secondword, and the cursor is at firstword, then I can not
 move (quickly) to the beginning of the [MATH] stuff, since C-right
 just moves past the math to the beginning of secondword.

 Was this change intentional, or just a mistake?

I think I reported it as a bug, but it was nothing that could be done, if I 
remember correctly. But I agree that it would be good if it didn't behave 
that way.


Re: annoying behaviour in 1.4

2007-03-07 Thread Gunnar
 Well, the intention is that a word is a word. If you want Ctrl+Right
 to go to math insets too, would you like it to consider math insets
 for spell checking too. I guess the answer is no :)
Well, I think LyX ought to use Maple to check it for other errors than just 
spelling ;-)

 So what would be the precise definition of a word for jumping? We do
 not want all insets, do we? And we have to settle on a definition that
 pleases _everybody_.
It would be fine with me if it consider the entire math box to be like a 
word, so that if we have the text

foo bar $x=y$ cat dog

with the cursor between foo bar, pressing CTRL+Right would move cursor between 
bar and the mathbox (illustrated with $x=y$ above). Pressing CTRL+Right once 
more would move cursor to between the mathbox and the word cat.

Inside the mathboxes it is a different thing to move around. Inside I think it 
works very well (except for some special examples with formulas where you can 
have the cursor moving back and forward (or up and down) repeatedly if you 
press the same arrow key). But mostly, very nice.

I think we have had this discussion earlier, Jean-Marc. But the bugdatabase 
seems to be down at the moment.

Regards
Gunnar.


Re: annoying behaviour in 1.4

2007-03-07 Thread Gunnar
 moved to the beginning of the next word. Apart from being just odd,
 there's a real problem with that: If I have the text firstword
 [MATH] secondword, and the cursor is at firstword, then I can not
 move (quickly) to the beginning of the [MATH] stuff, since C-right
 just moves past the math to the beginning of secondword.

 Was this change intentional, or just a mistake?

I think I reported it as a bug, but it was nothing that could be done, if I 
remember correctly. But I agree that it would be good if it didn't behave 
that way.


Re: annoying behaviour in 1.4

2007-03-07 Thread Gunnar
 Well, the intention is that a word is a word. If you want Ctrl+Right
 to go to math insets too, would you like it to consider math insets
 for spell checking too. I guess the answer is no :)
Well, I think LyX ought to use Maple to check it for other errors than just 
spelling ;-)

 So what would be the precise definition of a word for jumping? We do
 not want all insets, do we? And we have to settle on a definition that
 pleases _everybody_.
It would be fine with me if it consider the entire math box to be like a 
word, so that if we have the text

foo bar $x=y$ cat dog

with the cursor between foo bar, pressing CTRL+Right would move cursor between 
bar and the mathbox (illustrated with $x=y$ above). Pressing CTRL+Right once 
more would move cursor to between the mathbox and the word cat.

Inside the mathboxes it is a different thing to move around. Inside I think it 
works very well (except for some special examples with formulas where you can 
have the cursor moving back and forward (or up and down) repeatedly if you 
press the same arrow key). But mostly, very nice.

I think we have had this discussion earlier, Jean-Marc. But the bugdatabase 
seems to be down at the moment.

Regards
Gunnar.


Re: annoying behaviour in 1.4

2007-03-07 Thread Gunnar
> moved to the beginning of the next word. Apart from being just odd,
> there's a real problem with that: If I have the text "firstword
> [MATH] secondword", and the cursor is at "firstword", then I can not
> move (quickly) to the beginning of the [MATH] stuff, since C-right
> just moves past the math to the beginning of "secondword".
>
> Was this change intentional, or just a mistake?

I think I reported it as a bug, but it was nothing that could be done, if I 
remember correctly. But I agree that it would be good if it didn't behave 
that way.


Re: annoying behaviour in 1.4

2007-03-07 Thread Gunnar
> Well, the intention is that a word is a word. If you want Ctrl+Right
> to go to math insets too, would you like it to consider math insets
> for spell checking too. I guess the answer is no :)
Well, I think LyX ought to use Maple to check it for other errors than just 
spelling ;-)

> So what would be the precise definition of a word for jumping? We do
> not want all insets, do we? And we have to settle on a definition that
> pleases _everybody_.
It would be fine with me if it consider the entire "math box" to be like a 
word, so that if we have the text

foo bar $x=y$ cat dog

with the cursor between foo bar, pressing CTRL+Right would move cursor between 
bar and the mathbox (illustrated with $x=y$ above). Pressing CTRL+Right once 
more would move cursor to between the mathbox and the word cat.

Inside the mathboxes it is a different thing to move around. Inside I think it 
works very well (except for some special examples with formulas where you can 
have the cursor moving back and forward (or up and down) repeatedly if you 
press the same arrow key). But mostly, very nice.

I think we have had this discussion earlier, Jean-Marc. But the bugdatabase 
seems to be down at the moment.

Regards
Gunnar.


Re: Insering source code into LyX document

2007-03-01 Thread Gunnar
 You may want the excellent ``listings`` package.
Or the even more excellent program highlight (The result looks better with 
this one)


Re: Insering source code into LyX document

2007-03-01 Thread Gunnar
 this is external program, right?
Yes.

http://www.andre-simon.de/


Re: Insering source code into LyX document

2007-03-01 Thread Gunnar
 You may want the excellent ``listings`` package.
Or the even more excellent program highlight (The result looks better with 
this one)


Re: Insering source code into LyX document

2007-03-01 Thread Gunnar
 this is external program, right?
Yes.

http://www.andre-simon.de/


Re: Insering source code into LyX document

2007-03-01 Thread Gunnar
> You may want the excellent ``listings`` package.
Or the even more excellent program "highlight" (The result looks better with 
this one)


Re: Insering source code into LyX document

2007-03-01 Thread Gunnar
> this is external program, right?
Yes.

http://www.andre-simon.de/


Re: AW: How to center graphics in Lyx?

2007-02-15 Thread Gunnar
 Notwithstanding, I remember Herbert Voss electing the '\centering'
 solution as the best one.
He seems to be very good at this, so why did he say this?

I can't remember if I have ever had any problem with the paragraph 
justification solution.


Re: AW: How to center graphics in Lyx?

2007-02-15 Thread Gunnar
 Notwithstanding, I remember Herbert Voss electing the '\centering'
 solution as the best one.
He seems to be very good at this, so why did he say this?

I can't remember if I have ever had any problem with the paragraph 
justification solution.


Re: AW: How to center graphics in Lyx?

2007-02-15 Thread Gunnar
> Notwithstanding, I remember Herbert Voss electing the '\centering'
> solution as the best one.
He seems to be very good at this, so why did he say this?

I can't remember if I have ever had any problem with the paragraph 
justification solution.


Re: Questionnaire

2007-02-12 Thread Gunnar
 Does anyone know of a LaTeX questionnaire class or LyX questionnaire
 template? I need to create a fairly big questionnaire (1000+ questions) and
 I would like to know if there's a solution developed for this task.
Before doing this, shouldn't you ask yourself if anyone ever will fill it out?


Re: Questionnaire

2007-02-12 Thread Gunnar
 Does anyone know of a LaTeX questionnaire class or LyX questionnaire
 template? I need to create a fairly big questionnaire (1000+ questions) and
 I would like to know if there's a solution developed for this task.
Before doing this, shouldn't you ask yourself if anyone ever will fill it out?


Re: Questionnaire

2007-02-12 Thread Gunnar
> Does anyone know of a LaTeX questionnaire class or LyX questionnaire
> template? I need to create a fairly big questionnaire (1000+ questions) and
> I would like to know if there's a solution developed for this task.
Before doing this, shouldn't you ask yourself if anyone ever will fill it out?


Re: OpenOffice vs. LyX

2007-01-23 Thread Gunnar
Unfortunatly I must also say that OpenOffice is far behind MS Word. I'm trying 
to forget how to use Ms Word and OO, it always just ends up in a total mess 
if I try to do something except just writing letters and pressing space and 
enter for formating.

I hope you have learnt your lesson: LyX is always worth the effort ;-)

But I do hope that some day (in lyx 1.5 perhaps?)  there will be a nice gui to 
customize styles/layouts in LyX. that will be so easy to use so that even a 
person that never have used LyX can use it and create stuff so beautiful that 
it would put MS Word and OO out of business.

Best wishes
Gunnar

On Tuesday 23 January 2007 06:00, Steve Litt wrote:
 Hi all,

 I was considering switching to OpenOffice because of the excessive effort
 in creating/modifying styles in LyX.

 So as an experiment, I began making a derivative, in OpenOffice, of a book
 I originally wrote using MS Word.

 WHAT A MESS! Styles I created in OpenOffice wouldn't stay created. If they
 stayed created, they'd magically change properties from time to time.
 Numbers kept changing to bullets and vice versa. I'm scared I'll be fine
 tuning this document every time it's edited in any way, or even printed. I
 will NEVER AGAIN write a book in OpenOffice.

 Yeah, it's tough to create custom styles in LyX (LaTeX), but at least once
 they're made, they stay made, and always print the same way. While writing
 this derivative book, not a day goes by where I don't miss LyX.

 SteveT

 Steve Litt
 Author: Universal Troubleshooting Process books and courseware
 http://www.troubleshooters.com/


Re: OpenOffice vs. LyX

2007-01-23 Thread Gunnar
Unfortunatly I must also say that OpenOffice is far behind MS Word. I'm trying 
to forget how to use Ms Word and OO, it always just ends up in a total mess 
if I try to do something except just writing letters and pressing space and 
enter for formating.

I hope you have learnt your lesson: LyX is always worth the effort ;-)

But I do hope that some day (in lyx 1.5 perhaps?)  there will be a nice gui to 
customize styles/layouts in LyX. that will be so easy to use so that even a 
person that never have used LyX can use it and create stuff so beautiful that 
it would put MS Word and OO out of business.

Best wishes
Gunnar

On Tuesday 23 January 2007 06:00, Steve Litt wrote:
 Hi all,

 I was considering switching to OpenOffice because of the excessive effort
 in creating/modifying styles in LyX.

 So as an experiment, I began making a derivative, in OpenOffice, of a book
 I originally wrote using MS Word.

 WHAT A MESS! Styles I created in OpenOffice wouldn't stay created. If they
 stayed created, they'd magically change properties from time to time.
 Numbers kept changing to bullets and vice versa. I'm scared I'll be fine
 tuning this document every time it's edited in any way, or even printed. I
 will NEVER AGAIN write a book in OpenOffice.

 Yeah, it's tough to create custom styles in LyX (LaTeX), but at least once
 they're made, they stay made, and always print the same way. While writing
 this derivative book, not a day goes by where I don't miss LyX.

 SteveT

 Steve Litt
 Author: Universal Troubleshooting Process books and courseware
 http://www.troubleshooters.com/


Re: OpenOffice vs. LyX

2007-01-23 Thread Gunnar
Unfortunatly I must also say that OpenOffice is far behind MS Word. I'm trying 
to forget how to use Ms Word and OO, it always just ends up in a total mess 
if I try to do something except just writing letters and pressing space and 
enter for formating.

I hope you have learnt your lesson: LyX is always worth the effort ;-)

But I do hope that some day (in lyx 1.5 perhaps?)  there will be a nice gui to 
customize styles/layouts in LyX. that will be so easy to use so that even a 
person that never have used LyX can use it and create stuff so beautiful that 
it would put MS Word and OO out of business.

Best wishes
Gunnar

On Tuesday 23 January 2007 06:00, Steve Litt wrote:
> Hi all,
>
> I was considering switching to OpenOffice because of the excessive effort
> in creating/modifying styles in LyX.
>
> So as an experiment, I began making a derivative, in OpenOffice, of a book
> I originally wrote using MS Word.
>
> WHAT A MESS! Styles I created in OpenOffice wouldn't stay created. If they
> stayed created, they'd magically change properties from time to time.
> Numbers kept changing to bullets and vice versa. I'm scared I'll be fine
> tuning this document every time it's edited in any way, or even printed. I
> will NEVER AGAIN write a book in OpenOffice.
>
> Yeah, it's tough to create custom styles in LyX (LaTeX), but at least once
> they're made, they stay made, and always print the same way. While writing
> this derivative book, not a day goes by where I don't miss LyX.
>
> SteveT
>
> Steve Litt
> Author: Universal Troubleshooting Process books and courseware
> http://www.troubleshooters.com/


pst-tree and LyX

2007-01-05 Thread Gunnar
I think I reallty need some help on creating a tree with the pstrick package 
pst-tree.

I've created a small file called tree.tex with the following content

\psset{labelsep=2pt,tnpos=a,radius=2pt}
\pstree[treemode=R]{\Tp}
{
\TC*~{5}{terrylen}
\TC*~{5}{terrylen}
}

what do i do next?
I use teTeX (and it uses pdflatex so there might be a fierce battle between 
postscript and pdf...

Best wishes
Gunnar


pst-tree and LyX

2007-01-05 Thread Gunnar
I think I reallty need some help on creating a tree with the pstrick package 
pst-tree.

I've created a small file called tree.tex with the following content

\psset{labelsep=2pt,tnpos=a,radius=2pt}
\pstree[treemode=R]{\Tp}
{
\TC*~{5}{terrylen}
\TC*~{5}{terrylen}
}

what do i do next?
I use teTeX (and it uses pdflatex so there might be a fierce battle between 
postscript and pdf...

Best wishes
Gunnar


pst-tree and LyX

2007-01-05 Thread Gunnar
I think I reallty need some help on creating a tree with the pstrick package 
pst-tree.

I've created a small file called tree.tex with the following content

\psset{labelsep=2pt,tnpos=a,radius=2pt}
\pstree[treemode=R]{\Tp}
{
\TC*~{5}{terrylen}
\TC*~{5}{terrylen}
}

what do i do next?
I use teTeX (and it uses pdflatex so there might be a fierce battle between 
postscript and pdf...

Best wishes
Gunnar


Re: \includegraphics doesn

2006-12-29 Thread Gunnar
 Preview in LyX
 and lyx -e ps both worked fine for me. Are You sure that /tmp is the
 directory where int_area.eps should be found? Try putting int_area.eps
 to the same directory where your newfile1.lyx resides and try again.


 Best,
 Jan
I found that changing z1 to z0  in /etc/texmf/dvips/config.ps solved the 
problem.  z1 was a security feature to disable relative paths, if I 
understood it correctly. 


Re: \includegraphics doesn

2006-12-29 Thread Gunnar
 Preview in LyX
 and lyx -e ps both worked fine for me. Are You sure that /tmp is the
 directory where int_area.eps should be found? Try putting int_area.eps
 to the same directory where your newfile1.lyx resides and try again.


 Best,
 Jan
I found that changing z1 to z0  in /etc/texmf/dvips/config.ps solved the 
problem.  z1 was a security feature to disable relative paths, if I 
understood it correctly. 


Re: \includegraphics doesn

2006-12-29 Thread Gunnar
> Preview in LyX
> and lyx -e ps both worked fine for me. Are You sure that /tmp is the
> directory where int_area.eps should be found? Try putting int_area.eps
> to the same directory where your newfile1.lyx resides and try again.
>
>
> Best,
> Jan
I found that changing z1 to z0  in /etc/texmf/dvips/config.ps solved the 
problem.  z1 was a security feature to disable relative paths, if I 
understood it correctly. 


external file conversion fails

2006-12-28 Thread Gunnar
I have made an external template (or converter for external files as it is 
with the new lyx versions, i use 1.4.2)

I get the error message: An errror occurred whilst running
highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o

The command in the converter in the preferences menu is:
highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o $$FName.tex

I'm not really sure what is going on here. I thought I had it working.
Any ideas, anyone?

Regards Gunnar.


Re: external file conversion fails

2006-12-28 Thread Gunnar
Part two of this mess.
Now I have LyX 1.4.3 and an external template that looks like this

Template CppKod
GuiName [C++ $$Basename]
HelpText
Snyggar till C++ kod
HelpTextEnd
InputFormat cpp
FileFilter *.{cpp,h,hpp,c}
AutomaticProduction true
Format LaTeX
Product {\\small \\input{$$FPath$$Basename.tex} }
UpdateFormat latex
#UpdateCommand highlight -A -L -t 4 -I -S cpp -f -r -q $$FName 
-o 
$$FName.tex
UpdateResult $$FName.tex
FormatEnd
Format PDFLaTeX
Product {\\small \\input{$$FPath$$Basename.tex} }
UpdateFormat latex
#UpdateCommand highlight -A -L -t 4 -I -S cpp -f -r -q $$FName 
-o 
$$FName.tex
UpdateResult $$FPath$$Basename.tex
FormatEnd
TemplateEnd

And the result is a file that lacks some of the images that are used.
In the console I get:
dvips: Could not find figure file /home/gunnar/Skola//int_area.eps; continuing

and that file really exists in the current directory.
This picture is included with ERT by \includegraphics{int_area.eps}

I'm very confused now.

On Thursday 28 December 2006 11:50, Gunnar wrote:
 I have made an external template (or converter for external files as it is
 with the new lyx versions, i use 1.4.2)

 I get the error message: An errror occurred whilst running
 highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o

 The command in the converter in the preferences menu is:
 highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o $$FName.tex

 I'm not really sure what is going on here. I thought I had it working.
 Any ideas, anyone?

 Regards Gunnar.


Re: external file conversion fails

2006-12-28 Thread Gunnar
 And the result is a file that lacks some of the images that are used.
 In the console I get:
 dvips: Could not find figure file /home/gunnar/Skola//int_area.eps;
 continuing

 and that file really exists in the current directory.
 This picture is included with ERT by \includegraphics{int_area.eps}

 I'm very confused now.
I'm less confused now. This clearly has nothing to do with the templates. But 
still, the images are ignored.


\includegraphics doesn't find pictures

2006-12-28 Thread Gunnar
Hi again.
I just created a new account, logged in, started lyx 1.4.3 and created the lyx 
file attached.

I try to view the file but all I get is
dvips: Could not find figure file /tmp//int_area.eps; continuing

I try lyx -e pdf  and  lyx -e ps  with the same result, but
lyx -e latex newfile1.lyx

and then 
latex newfile1.tex gives me a dvi file with the desired result.

Why can't I view it from inside lyx?


newfile1.lyx
Description: application/lyx


external file conversion fails

2006-12-28 Thread Gunnar
I have made an external template (or converter for external files as it is 
with the new lyx versions, i use 1.4.2)

I get the error message: An errror occurred whilst running
highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o

The command in the converter in the preferences menu is:
highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o $$FName.tex

I'm not really sure what is going on here. I thought I had it working.
Any ideas, anyone?

Regards Gunnar.


Re: external file conversion fails

2006-12-28 Thread Gunnar
Part two of this mess.
Now I have LyX 1.4.3 and an external template that looks like this

Template CppKod
GuiName [C++ $$Basename]
HelpText
Snyggar till C++ kod
HelpTextEnd
InputFormat cpp
FileFilter *.{cpp,h,hpp,c}
AutomaticProduction true
Format LaTeX
Product {\\small \\input{$$FPath$$Basename.tex} }
UpdateFormat latex
#UpdateCommand highlight -A -L -t 4 -I -S cpp -f -r -q $$FName 
-o 
$$FName.tex
UpdateResult $$FName.tex
FormatEnd
Format PDFLaTeX
Product {\\small \\input{$$FPath$$Basename.tex} }
UpdateFormat latex
#UpdateCommand highlight -A -L -t 4 -I -S cpp -f -r -q $$FName 
-o 
$$FName.tex
UpdateResult $$FPath$$Basename.tex
FormatEnd
TemplateEnd

And the result is a file that lacks some of the images that are used.
In the console I get:
dvips: Could not find figure file /home/gunnar/Skola//int_area.eps; continuing

and that file really exists in the current directory.
This picture is included with ERT by \includegraphics{int_area.eps}

I'm very confused now.

On Thursday 28 December 2006 11:50, Gunnar wrote:
 I have made an external template (or converter for external files as it is
 with the new lyx versions, i use 1.4.2)

 I get the error message: An errror occurred whilst running
 highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o

 The command in the converter in the preferences menu is:
 highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o $$FName.tex

 I'm not really sure what is going on here. I thought I had it working.
 Any ideas, anyone?

 Regards Gunnar.


Re: external file conversion fails

2006-12-28 Thread Gunnar
 And the result is a file that lacks some of the images that are used.
 In the console I get:
 dvips: Could not find figure file /home/gunnar/Skola//int_area.eps;
 continuing

 and that file really exists in the current directory.
 This picture is included with ERT by \includegraphics{int_area.eps}

 I'm very confused now.
I'm less confused now. This clearly has nothing to do with the templates. But 
still, the images are ignored.


\includegraphics doesn't find pictures

2006-12-28 Thread Gunnar
Hi again.
I just created a new account, logged in, started lyx 1.4.3 and created the lyx 
file attached.

I try to view the file but all I get is
dvips: Could not find figure file /tmp//int_area.eps; continuing

I try lyx -e pdf  and  lyx -e ps  with the same result, but
lyx -e latex newfile1.lyx

and then 
latex newfile1.tex gives me a dvi file with the desired result.

Why can't I view it from inside lyx?


newfile1.lyx
Description: application/lyx


external file conversion fails

2006-12-28 Thread Gunnar
I have made an external template (or converter for external files as it is 
with the new lyx versions, i use 1.4.2)

I get the error message: An errror occurred whilst running
highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o

The command in the converter in the preferences menu is:
highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o $$FName.tex

I'm not really sure what is going on here. I thought I had it working.
Any ideas, anyone?

Regards Gunnar.


Re: external file conversion fails

2006-12-28 Thread Gunnar
Part two of this mess.
Now I have LyX 1.4.3 and an external template that looks like this

Template CppKod
GuiName "[C++ $$Basename]"
HelpText
Snyggar till C++ kod
HelpTextEnd
InputFormat cpp
FileFilter "*.{cpp,h,hpp,c}"
AutomaticProduction true
Format LaTeX
Product "{\\small \\input{$$FPath$$Basename.tex} }"
UpdateFormat latex
#UpdateCommand "highlight -A -L -t 4 -I -S cpp -f -r -q $$FName 
-o 
$$FName.tex"
UpdateResult "$$FName.tex"
FormatEnd
Format PDFLaTeX
Product "{\\small \\input{$$FPath$$Basename.tex} }"
UpdateFormat latex
#UpdateCommand "highlight -A -L -t 4 -I -S cpp -f -r -q $$FName 
-o 
$$FName.tex"
UpdateResult "$$FPath$$Basename.tex"
FormatEnd
TemplateEnd

And the result is a file that lacks some of the images that are used.
In the console I get:
dvips: Could not find figure file /home/gunnar/Skola//int_area.eps; continuing

and that file really exists in the current directory.
This picture is included with ERT by \includegraphics{int_area.eps}

I'm very confused now.

On Thursday 28 December 2006 11:50, Gunnar wrote:
> I have made an external template (or converter for external files as it is
> with the new lyx versions, i use 1.4.2)
>
> I get the error message: An errror occurred whilst running
> highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o
>
> The command in the converter in the preferences menu is:
> highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o $$FName.tex
>
> I'm not really sure what is going on here. I thought I had it working.
> Any ideas, anyone?
>
> Regards Gunnar.


Re: external file conversion fails

2006-12-28 Thread Gunnar
> And the result is a file that lacks some of the images that are used.
> In the console I get:
> dvips: Could not find figure file /home/gunnar/Skola//int_area.eps;
> continuing
>
> and that file really exists in the current directory.
> This picture is included with ERT by \includegraphics{int_area.eps}
>
> I'm very confused now.
I'm less confused now. This clearly has nothing to do with the templates. But 
still, the images are ignored.


\includegraphics doesn't find pictures

2006-12-28 Thread Gunnar
Hi again.
I just created a new account, logged in, started lyx 1.4.3 and created the lyx 
file attached.

I try to view the file but all I get is
dvips: Could not find figure file /tmp//int_area.eps; continuing

I try lyx -e pdf  and  lyx -e ps  with the same result, but
lyx -e latex newfile1.lyx

and then 
latex newfile1.tex gives me a dvi file with the desired result.

Why can't I view it from inside lyx?


newfile1.lyx
Description: application/lyx


volume of rotation drawing

2006-12-20 Thread Gunnar
Hi.
Not really lyx related but someone might perhaps know how to produce nice eps 
drawings of a volume of rotation. You know the kind of picture you usually 
find in your calculus textbook where the graph of f(x)  rotates around the 
x-axis.

Any ideas?


volume of rotation drawing

2006-12-20 Thread Gunnar
Hi.
Not really lyx related but someone might perhaps know how to produce nice eps 
drawings of a volume of rotation. You know the kind of picture you usually 
find in your calculus textbook where the graph of f(x)  rotates around the 
x-axis.

Any ideas?


volume of rotation drawing

2006-12-20 Thread Gunnar
Hi.
Not really lyx related but someone might perhaps know how to produce nice eps 
drawings of a volume of rotation. You know the kind of picture you usually 
find in your calculus textbook where the graph of f(x)  rotates around the 
x-axis.

Any ideas?


Re: +/- symbol

2006-11-29 Thread Gunnar
  How can I have the +/- symbol where the + is on top of the - symbol,
  reading plus or minus. For example, a standard deviation would have
  this sign. Tex code is fine.
Since I like the command shortcuts,
ALT+m  +


Re: +/- symbol

2006-11-29 Thread Gunnar
  How can I have the +/- symbol where the + is on top of the - symbol,
  reading plus or minus. For example, a standard deviation would have
  this sign. Tex code is fine.
Since I like the command shortcuts,
ALT+m  +


Re: +/- symbol

2006-11-29 Thread Gunnar
> > How can I have the +/- symbol where the + is on top of the - symbol,
> > reading plus or minus. For example, a standard deviation would have
> > this sign. Tex code is fine.
Since I like the command shortcuts,
ALT+m  +


Re: LyX-code ::

2006-11-11 Thread Gunnar
 Is there anything else ?
 Some package having the :: character ?
Some time ago I wrote about C++ and syntax highlightning on this list. It uses 
an external program called Highlight for code generation. That might be 
helpfull.


Re: LyX-code ::

2006-11-11 Thread Gunnar
 Is there anything else ?
 Some package having the :: character ?
Some time ago I wrote about C++ and syntax highlightning on this list. It uses 
an external program called Highlight for code generation. That might be 
helpfull.


Re: LyX-code ::

2006-11-11 Thread Gunnar
> Is there anything else ?
> Some package having the "::" character ?
Some time ago I wrote about C++ and syntax highlightning on this list. It uses 
an external program called Highlight for code generation. That might be 
helpfull.


Re: Problem installing Contract package

2006-10-28 Thread Gunnar
 /usr/share/texmf-tetex/tex/latex/base/ (as article.sty) and
 contract.layout in .lyx/ . And finally I tryed to reconfigure Lyx but I
 got  :
 +checking for document class contract [article,contract.sty]... no

 Can somebody explain me where I did a mistake?
I don't think you should have to, but perhaps run the command 
   texhash


Re: Problem installing Contract package

2006-10-28 Thread Gunnar
 /usr/share/texmf-tetex/tex/latex/base/ (as article.sty) and
 contract.layout in .lyx/ . And finally I tryed to reconfigure Lyx but I
 got  :
 +checking for document class contract [article,contract.sty]... no

 Can somebody explain me where I did a mistake?
I don't think you should have to, but perhaps run the command 
   texhash


Re: Problem installing Contract package

2006-10-28 Thread Gunnar
> /usr/share/texmf-tetex/tex/latex/base/ (as article.sty) and
> contract.layout in .lyx/ . And finally I tryed to reconfigure Lyx but I
> got  :
> +checking for document class contract [article,contract.sty]... no
>
> Can somebody explain me where I did a mistake?
I don't think you should have to, but perhaps run the command 
   texhash


bracket size and multiline equations

2006-10-22 Thread Gunnar
I want to write an equation like this

(  3
( --- + 3+ 3+ +3+ ...
(  4

 
 3+ +3+3+3+3 )

But the second line should end with a bracket of the same size as it started. 
How do I do that?


bracket size and multiline equations

2006-10-22 Thread Gunnar
I want to write an equation like this

(  3
( --- + 3+ 3+ +3+ ...
(  4

 
 3+ +3+3+3+3 )

But the second line should end with a bracket of the same size as it started. 
How do I do that?


bracket size and multiline equations

2006-10-22 Thread Gunnar
I want to write an equation like this

(  3
( --- + 3+ 3+ +3+ ...
(  4

 
 3+ +3+3+3+3 )

But the second line should end with a bracket of the same size as it started. 
How do I do that?


Re: math macros

2006-10-15 Thread Gunnar
On Sunday 15 October 2006 19:56, Nick Kuzmik wrote:
 I do a lot of math in lyx, and I create a lot of macros on the fly.  What's
 the best way to keep them organized?  Maybe make it so every file I open
 has all the same macros?
In .lyx/bind/ directory you will find a lot of files, there you can write 
keyboard shortcuts for them, and you can also create a template that you 
always start working with. Then you can add many macros to the latex 
preamble.

I hope this helps.


Re: math macros

2006-10-15 Thread Gunnar
On Sunday 15 October 2006 19:56, Nick Kuzmik wrote:
 I do a lot of math in lyx, and I create a lot of macros on the fly.  What's
 the best way to keep them organized?  Maybe make it so every file I open
 has all the same macros?
In .lyx/bind/ directory you will find a lot of files, there you can write 
keyboard shortcuts for them, and you can also create a template that you 
always start working with. Then you can add many macros to the latex 
preamble.

I hope this helps.


Re: math macros

2006-10-15 Thread Gunnar
On Sunday 15 October 2006 19:56, Nick Kuzmik wrote:
> I do a lot of math in lyx, and I create a lot of macros on the fly.  What's
> the best way to keep them organized?  Maybe make it so every file I open
> has all the same macros?
In .lyx/bind/ directory you will find a lot of files, there you can write 
keyboard shortcuts for them, and you can also create a template that you 
always start working with. Then you can add many macros to the latex 
preamble.

I hope this helps.


Enter text into indexbox without using mouse

2006-10-10 Thread Gunnar
I have almost stoped using the mouse in LyX now, the only problem in 1.4.2 is 
that if I wish to add an index entry, I only get the grey box and have to 
click on it to open it to add text. The usual C-i  that closes/opens the ERTs 
doesn't work here :-(

Is there a cure so I can open/close it with a shortcut? 
It's so nice sitting relaxed with the keyboard in the lap, it's very 
lyxurious.


Enter text into indexbox without using mouse

2006-10-10 Thread Gunnar
I have almost stoped using the mouse in LyX now, the only problem in 1.4.2 is 
that if I wish to add an index entry, I only get the grey box and have to 
click on it to open it to add text. The usual C-i  that closes/opens the ERTs 
doesn't work here :-(

Is there a cure so I can open/close it with a shortcut? 
It's so nice sitting relaxed with the keyboard in the lap, it's very 
lyxurious.


Enter text into indexbox without using mouse

2006-10-10 Thread Gunnar
I have almost stoped using the mouse in LyX now, the only problem in 1.4.2 is 
that if I wish to add an index entry, I only get the grey box and have to 
click on it to open it to add text. The usual C-i  that closes/opens the ERTs 
doesn't work here :-(

Is there a cure so I can open/close it with a shortcut? 
It's so nice sitting relaxed with the keyboard in the lap, it's very 
lyxurious.


Options for external templates

2006-10-09 Thread Gunnar
I'm looking for documentation for how to give options to external templates.
I wish to give two values ( and of course the filename), and produce a LaTeX 
code like this 

{\hangindent=8cm\hangafter=-6\relax
\noindent
\raisebox{-\height}[0pt][0pt]{
 \makebox[0pt][r]{\includegraphics{Q.eps}\hspace*{1cm}}}
\hspace*{\parindent}

where 8 and -6 are the mandatory options and Q.eps is the filename (always 
using eps files).

So far, I have this. (I've been modifying the rasterimage template for this)

Template WrappedFigure
GuiName WrappedFigure: $$AbsOrRelPathParent$$Basename
HelpText
A wrapped figure
HelpTextEnd
InputFormat eps
FileFilter *.eps
AutomaticProduction false
Format LaTeX
Option ???
Option 
# This string is what is output to the LaTeX file.
Product \\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}
UpdateFormat eps
UpdateResult $$AbsPath$$Basename.eps
Requirement graphicx
ReferencedFile latex $$AbsPath$$Basename.eps
ReferencedFile dvi   $$AbsPath$$Basename.eps
FormatEnd
Format PDFLaTeX
Option Arg [$$Extra,$$Rotate,$$Resize,$$Clip]
Product \\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}
UpdateFormat eps
Requirement graphicx
ReferencedFile latex $$AbsPath$$Basename.png
FormatEnd
TemplateEnd


Options for external templates

2006-10-09 Thread Gunnar
I'm looking for documentation for how to give options to external templates.
I wish to give two values ( and of course the filename), and produce a LaTeX 
code like this 

{\hangindent=8cm\hangafter=-6\relax
\noindent
\raisebox{-\height}[0pt][0pt]{
 \makebox[0pt][r]{\includegraphics{Q.eps}\hspace*{1cm}}}
\hspace*{\parindent}

where 8 and -6 are the mandatory options and Q.eps is the filename (always 
using eps files).

So far, I have this. (I've been modifying the rasterimage template for this)

Template WrappedFigure
GuiName WrappedFigure: $$AbsOrRelPathParent$$Basename
HelpText
A wrapped figure
HelpTextEnd
InputFormat eps
FileFilter *.eps
AutomaticProduction false
Format LaTeX
Option ???
Option 
# This string is what is output to the LaTeX file.
Product \\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}
UpdateFormat eps
UpdateResult $$AbsPath$$Basename.eps
Requirement graphicx
ReferencedFile latex $$AbsPath$$Basename.eps
ReferencedFile dvi   $$AbsPath$$Basename.eps
FormatEnd
Format PDFLaTeX
Option Arg [$$Extra,$$Rotate,$$Resize,$$Clip]
Product \\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}
UpdateFormat eps
Requirement graphicx
ReferencedFile latex $$AbsPath$$Basename.png
FormatEnd
TemplateEnd


Options for external templates

2006-10-09 Thread Gunnar
I'm looking for documentation for how to give options to external templates.
I wish to give two values ( and of course the filename), and produce a LaTeX 
code like this 

{\hangindent=8cm\hangafter=-6\relax
\noindent
\raisebox{-\height}[0pt][0pt]{
 \makebox[0pt][r]{\includegraphics{Q.eps}\hspace*{1cm}}}
\hspace*{\parindent}

where 8 and -6 are the mandatory options and Q.eps is the filename (always 
using eps files).

So far, I have this. (I've been modifying the rasterimage template for this)

Template WrappedFigure
GuiName "WrappedFigure: $$AbsOrRelPathParent$$Basename"
HelpText
A wrapped figure
HelpTextEnd
InputFormat eps
FileFilter "*.eps"
AutomaticProduction false
Format LaTeX
Option ???
Option 
# This string is what is output to the LaTeX file.
Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
UpdateFormat eps
UpdateResult "$$AbsPath$$Basename.eps"
Requirement "graphicx"
ReferencedFile latex "$$AbsPath$$Basename.eps"
ReferencedFile dvi   "$$AbsPath$$Basename.eps"
FormatEnd
Format PDFLaTeX
Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
UpdateFormat eps
Requirement "graphicx"
ReferencedFile latex "$$AbsPath$$Basename.png"
FormatEnd
TemplateEnd


Re: please complete Questionnaire for Users (as part of a usability study)

2006-09-05 Thread Gunnar
 How long have you used lyx?
When was the first versions of LyX available? Was it version 0.10 ?
It's been so very long since I started using it.


Re: please complete Questionnaire for Users (as part of a usability study)

2006-09-05 Thread Gunnar
 How long have you used lyx?
When was the first versions of LyX available? Was it version 0.10 ?
It's been so very long since I started using it.


Re: please complete "Questionnaire for Users" (as part of a usability study)

2006-09-05 Thread Gunnar
> How long have you used lyx?
When was the first versions of LyX available? Was it version 0.10 ?
It's been so very long since I started using it.


Navigation in math formulas is not good in 1.4.2

2006-08-23 Thread Gunnar
Some of the problems:
If I have two consecutive math displayformulas and position the cursor in the  
first, and press the arrow down key, I  usualy move to the line AFTER the 
second mathdisplayformula. Very anoying.

And here is a picture of a mathdisplay formula where  if I put the cursor 
between the ( and the r, and press the arrowdownkey repeatedly, the 
cursor just starts to move between after the 0 and infront of the p.
No way to get to the line below.


Re: Navigation in math formulas is not good in 1.4.2

2006-08-23 Thread Gunnar
On Wednesday 23 August 2006 09:45, Gunnar wrote:
 Some of the problems:
 If I have two consecutive math displayformulas and position the cursor in
 the first, and press the arrow down key, I  usualy move to the line AFTER
 the second mathdisplayformula. Very anoying.

 And here is a picture of a mathdisplay formula where  if I put the cursor
 between the ( and the r, and press the arrowdownkey repeatedly, the
 cursor just starts to move between after the 0 and infront of the p.
 No way to get to the line below.
And here is the picture I forgot



lyxfel.png
Description: PNG image


Re: Navigation in math formulas is not good in 1.4.2

2006-08-23 Thread Gunnar
On Wednesday 23 August 2006 09:46, Gunnar wrote:
 On Wednesday 23 August 2006 09:45, Gunnar wrote:
  Some of the problems:
  If I have two consecutive math displayformulas and position the cursor in
  the first, and press the arrow down key, I  usualy move to the line AFTER
  the second mathdisplayformula. Very anoying.
 
  And here is a picture of a mathdisplay formula where  if I put the cursor
  between the ( and the r, and press the arrowdownkey repeatedly, the
  cursor just starts to move between after the 0 and infront of the p.
  No way to get to the line below.

 And here is the picture I forgot
And one more thing:
Selecting with pressing down SHIFT and arrowdownkey works fine, but unmarking 
by pressing arrowup key does not work.
Is anyone else experiencing problems with this?


Navigation in math formulas is not good in 1.4.2

2006-08-23 Thread Gunnar
Some of the problems:
If I have two consecutive math displayformulas and position the cursor in the  
first, and press the arrow down key, I  usualy move to the line AFTER the 
second mathdisplayformula. Very anoying.

And here is a picture of a mathdisplay formula where  if I put the cursor 
between the ( and the r, and press the arrowdownkey repeatedly, the 
cursor just starts to move between after the 0 and infront of the p.
No way to get to the line below.


Re: Navigation in math formulas is not good in 1.4.2

2006-08-23 Thread Gunnar
On Wednesday 23 August 2006 09:45, Gunnar wrote:
 Some of the problems:
 If I have two consecutive math displayformulas and position the cursor in
 the first, and press the arrow down key, I  usualy move to the line AFTER
 the second mathdisplayformula. Very anoying.

 And here is a picture of a mathdisplay formula where  if I put the cursor
 between the ( and the r, and press the arrowdownkey repeatedly, the
 cursor just starts to move between after the 0 and infront of the p.
 No way to get to the line below.
And here is the picture I forgot



lyxfel.png
Description: PNG image


Re: Navigation in math formulas is not good in 1.4.2

2006-08-23 Thread Gunnar
On Wednesday 23 August 2006 09:46, Gunnar wrote:
 On Wednesday 23 August 2006 09:45, Gunnar wrote:
  Some of the problems:
  If I have two consecutive math displayformulas and position the cursor in
  the first, and press the arrow down key, I  usualy move to the line AFTER
  the second mathdisplayformula. Very anoying.
 
  And here is a picture of a mathdisplay formula where  if I put the cursor
  between the ( and the r, and press the arrowdownkey repeatedly, the
  cursor just starts to move between after the 0 and infront of the p.
  No way to get to the line below.

 And here is the picture I forgot
And one more thing:
Selecting with pressing down SHIFT and arrowdownkey works fine, but unmarking 
by pressing arrowup key does not work.
Is anyone else experiencing problems with this?


Navigation in math formulas is not good in 1.4.2

2006-08-23 Thread Gunnar
Some of the problems:
If I have two consecutive math displayformulas and position the cursor in the  
first, and press the arrow down key, I  usualy move to the line AFTER the 
second mathdisplayformula. Very anoying.

And here is a picture of a mathdisplay formula where  if I put the cursor 
between the "(" and the "r", and press the arrowdownkey repeatedly, the 
cursor just starts to move between after the "0" and infront of the "p".
No way to get to the line below.


Re: Navigation in math formulas is not good in 1.4.2

2006-08-23 Thread Gunnar
On Wednesday 23 August 2006 09:45, Gunnar wrote:
> Some of the problems:
> If I have two consecutive math displayformulas and position the cursor in
> the first, and press the arrow down key, I  usualy move to the line AFTER
> the second mathdisplayformula. Very anoying.
>
> And here is a picture of a mathdisplay formula where  if I put the cursor
> between the "(" and the "r", and press the arrowdownkey repeatedly, the
> cursor just starts to move between after the "0" and infront of the "p".
> No way to get to the line below.
And here is the picture I forgot



lyxfel.png
Description: PNG image


Re: Navigation in math formulas is not good in 1.4.2

2006-08-23 Thread Gunnar
On Wednesday 23 August 2006 09:46, Gunnar wrote:
> On Wednesday 23 August 2006 09:45, Gunnar wrote:
> > Some of the problems:
> > If I have two consecutive math displayformulas and position the cursor in
> > the first, and press the arrow down key, I  usualy move to the line AFTER
> > the second mathdisplayformula. Very anoying.
> >
> > And here is a picture of a mathdisplay formula where  if I put the cursor
> > between the "(" and the "r", and press the arrowdownkey repeatedly, the
> > cursor just starts to move between after the "0" and infront of the "p".
> > No way to get to the line below.
>
> And here is the picture I forgot
And one more thing:
Selecting with pressing down SHIFT and arrowdownkey works fine, but unmarking 
by pressing arrowup key does not work.
Is anyone else experiencing problems with this?


Re: syntax highlighting for inline source code

2006-08-18 Thread Gunnar
Add the following to .lyx/externaltemplates
(modify accordingly to python, this is C++ (cpp)


Template CppKod
GuiName [C++ $$Basename]
HelpText
Snyggar till C++ kod
HelpTextEnd
InputFormat cpp
FileFilter *.{cpp,h,hpp,c}
ViewCommand nedit $$FName
EditCommand nedit $$FName
AutomaticProduction true
Format LaTeX
Product {\\small \\input{$$FName.tex} }
UpdateFormat latex
#UpdateCommand highlight -A -L -t 4 -I -S cpp -f -r -q $$FName 
-o 
$$FName.tex
UpdateResult $$FName.tex
FormatEnd
Format PDFLaTeX
FormatEnd
TemplateEnd

You have to add the corresponding filetypes and converters in the lyx 
configuration, or simply add these lines to  .lyx/preferences:

\format cpp cpp C++   nedit

\converter cpp latex highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o 
$$FName.tex 


This should do the trick. Remember to change cpp to something python-ish.
This is for lyx 1.4 and above, below that, search the mailing list for a 
similar posting.



Re: syntax highlighting for inline source code

2006-08-18 Thread Gunnar
Add the following to .lyx/externaltemplates
(modify accordingly to python, this is C++ (cpp)


Template CppKod
GuiName [C++ $$Basename]
HelpText
Snyggar till C++ kod
HelpTextEnd
InputFormat cpp
FileFilter *.{cpp,h,hpp,c}
ViewCommand nedit $$FName
EditCommand nedit $$FName
AutomaticProduction true
Format LaTeX
Product {\\small \\input{$$FName.tex} }
UpdateFormat latex
#UpdateCommand highlight -A -L -t 4 -I -S cpp -f -r -q $$FName 
-o 
$$FName.tex
UpdateResult $$FName.tex
FormatEnd
Format PDFLaTeX
FormatEnd
TemplateEnd

You have to add the corresponding filetypes and converters in the lyx 
configuration, or simply add these lines to  .lyx/preferences:

\format cpp cpp C++   nedit

\converter cpp latex highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o 
$$FName.tex 


This should do the trick. Remember to change cpp to something python-ish.
This is for lyx 1.4 and above, below that, search the mailing list for a 
similar posting.



Re: syntax highlighting for inline source code

2006-08-18 Thread Gunnar
Add the following to .lyx/externaltemplates
(modify accordingly to python, this is C++ (cpp)


Template CppKod
GuiName "[C++ $$Basename]"
HelpText
Snyggar till C++ kod
HelpTextEnd
InputFormat cpp
FileFilter "*.{cpp,h,hpp,c}"
ViewCommand "nedit $$FName"
EditCommand "nedit $$FName"
AutomaticProduction true
Format LaTeX
Product "{\\small \\input{$$FName.tex} }"
UpdateFormat latex
#UpdateCommand "highlight -A -L -t 4 -I -S cpp -f -r -q $$FName 
-o 
$$FName.tex"
UpdateResult "$$FName.tex"
FormatEnd
Format PDFLaTeX
FormatEnd
TemplateEnd

You have to add the corresponding filetypes and converters in the lyx 
configuration, or simply add these lines to  .lyx/preferences:

\format "cpp" "cpp" "C++" "" "" "nedit"

\converter "cpp" "latex" "highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o 
$$FName.tex" ""


This should do the trick. Remember to change cpp to something python-ish.
This is for lyx 1.4 and above, below that, search the mailing list for a 
similar posting.



Re: New to LyX 1.4

2006-08-16 Thread Gunnar
I think I've fixed the LFUN and external templates now, but I get these 
messages when starting with a new document:

New counter already exists: part
New counter already exists: part
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
Mutex destroy failure: Device or resource busy

What does these messages mean? Can it be layout files that needs updates to?


Re: New to LyX 1.4

2006-08-16 Thread Gunnar
 What does these messages mean? Can it be layout files that needs updates
 to?
It was that. Problem solved!


Re: New to LyX 1.4

2006-08-16 Thread Gunnar
On Wednesday 16 August 2006 12:25, Jean-Marc Lasgouttes wrote:
  Gunnar == Gunnar  [EMAIL PROTECTED] writes:

 Gunnar I think I've fixed the LFUN and external templates now, but I
 Gunnar get these messages when starting with a new document:

 Gunnar New counter already exists: part

 Gunnar What does these messages mean? Can it be layout files that
 Gunnar needs updates to?

 What layout file do you use?
I was using the old LyX 1.3.6 article.layout,  ( I think it was the 1.3.6 or 
perhaps even older), it looked like this (see below)
(The Gunnar.inc is my own extra layouts (no mentioning of numbering in that 
file).
The 1.4.1 article.layout contains the line

Input numarticle.inc

which  the 1.3.6 didn't.


1.3.6 article.layout file


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

# Input general definitions
Input stdclass.inc
Input Gunnar.inc
# There are no chapters in an article.
NoStyle Chapter
NoStyle Chapter*

MaxCounter  Counter_Section
SecNumDepth 3
TocDepth3

# Change a bit Part and Part*
Style Part
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End

Style Part*
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End


Re: New to LyX 1.4

2006-08-16 Thread Gunnar
I think I've fixed the LFUN and external templates now, but I get these 
messages when starting with a new document:

New counter already exists: part
New counter already exists: part
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
Mutex destroy failure: Device or resource busy

What does these messages mean? Can it be layout files that needs updates to?


Re: New to LyX 1.4

2006-08-16 Thread Gunnar
 What does these messages mean? Can it be layout files that needs updates
 to?
It was that. Problem solved!


Re: New to LyX 1.4

2006-08-16 Thread Gunnar
On Wednesday 16 August 2006 12:25, Jean-Marc Lasgouttes wrote:
  Gunnar == Gunnar  [EMAIL PROTECTED] writes:

 Gunnar I think I've fixed the LFUN and external templates now, but I
 Gunnar get these messages when starting with a new document:

 Gunnar New counter already exists: part

 Gunnar What does these messages mean? Can it be layout files that
 Gunnar needs updates to?

 What layout file do you use?
I was using the old LyX 1.3.6 article.layout,  ( I think it was the 1.3.6 or 
perhaps even older), it looked like this (see below)
(The Gunnar.inc is my own extra layouts (no mentioning of numbering in that 
file).
The 1.4.1 article.layout contains the line

Input numarticle.inc

which  the 1.3.6 didn't.


1.3.6 article.layout file


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

# Input general definitions
Input stdclass.inc
Input Gunnar.inc
# There are no chapters in an article.
NoStyle Chapter
NoStyle Chapter*

MaxCounter  Counter_Section
SecNumDepth 3
TocDepth3

# Change a bit Part and Part*
Style Part
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End

Style Part*
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End


Re: New to LyX 1.4

2006-08-16 Thread Gunnar
I think I've fixed the LFUN and external templates now, but I get these 
messages when starting with a new document:

New counter already exists: part
New counter already exists: part
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
Mutex destroy failure: Device or resource busy

What does these messages mean? Can it be layout files that needs updates to?


Re: New to LyX 1.4

2006-08-16 Thread Gunnar
> What does these messages mean? Can it be layout files that needs updates
> to?
It was that. Problem solved!


Re: New to LyX 1.4

2006-08-16 Thread Gunnar
On Wednesday 16 August 2006 12:25, Jean-Marc Lasgouttes wrote:
> >>>>> "Gunnar" == Gunnar  <[EMAIL PROTECTED]> writes:
>
> Gunnar> I think I've fixed the LFUN and external templates now, but I
> Gunnar> get these messages when starting with a new document:
>
> Gunnar> New counter already exists: part
>
> Gunnar> What does these messages mean? Can it be layout files that
> Gunnar> needs updates to?
>
> What layout file do you use?
I was using the old LyX 1.3.6 article.layout,  ( I think it was the 1.3.6 or 
perhaps even older), it looked like this (see below)
(The Gunnar.inc is my own extra layouts (no mentioning of numbering in that 
file).
The 1.4.1 article.layout contains the line

Input numarticle.inc

which  the 1.3.6 didn't.


1.3.6 article.layout file


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

# Input general definitions
Input stdclass.inc
Input Gunnar.inc
# There are no chapters in an article.
NoStyle Chapter
NoStyle Chapter*

MaxCounter  Counter_Section
SecNumDepth 3
TocDepth3

# Change a bit Part and Part*
Style Part
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End

Style Part*
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End


New to LyX 1.4

2006-08-15 Thread Gunnar
So, finaly I'm taking the step to 1.4 from 1.3.7
I have some customizations all over the the .lyx directory, keybindings, 
external templates, etc.

Is there something I should do before chaning to 1.4 except making a backup 
copy?


New to LyX 1.4

2006-08-15 Thread Gunnar
So, finaly I'm taking the step to 1.4 from 1.3.7
I have some customizations all over the the .lyx directory, keybindings, 
external templates, etc.

Is there something I should do before chaning to 1.4 except making a backup 
copy?


<    1   2   3   4   5   6   >