Re: lyx 2.0.1 and relative paths to tex files

2011-10-20 Thread Oscar Lopez

Spyros Stathopoulos wrote:
I think the problem is that LyX does not copy the 
../common/preamble.tex file over at the temporary build directory 
(usually something like /tmp/lyx_tmpdir./lyx_tmpbufX/ by default). 
I have encountered this kind of behavior before (albeit in a different 
case) but I could not find any reasonable solution beyond providing the 
full path.


I do not know! As far as I know before lyx 2.0.1 using relative paths 
was the way to ensure to share projects that use many directories to 
organize the information. I have been using lyx since 1997 and never 
have a problem with this. In fact, I have been used to work in this way 
and it even worst I teach many people to do so.



 It would be nice if there were a solution to this.


sure!

 For your 
case, unless you must maintain this kind of directory structure, it 
might help you if you put your preamble.tex file in the same directory 
as your *.lyx file and use \input{preamble.tex} instead of a relative 
path.
  


This solution will be a nightmare! I got people at my institute to move 
from word to lyx and we have created many svn projects, books and many 
other things that rely on the fact that lyx can understand relative 
paths and in this way we can work all together. Hope there is something 
more evident.


I cannot believe that this version of lyx is going to drop the support 
to relative paths I put an example with a tex file, but what about child 
documents, graphic files and others that until now I didn't tested with 
lyx 2.0.1.


Although I am not entirely sure, in LyX 1.6.x there was a way to tell 
LyX to use the current WD instead of a temp one.
  


Here using lyx-1.6.10 with the test I sent everything is ok. As far as I 
am concerned it does not require to tell lyx anything


Thanks for your comments
Best regards
Oscar


Spyros

On Thu 20 Oct 2011 05:25:57 PM EEST, Oscar Lopez wrote:
  

Dear LyXers

I have recenty updated my lyx version to lyx 2.0.1 and I have found that
using relative paths to tex files at the lyx preamble does not work anymore.

I have directory structures where lyx files are at some directories, bib
files at other, latex preamble commands at othes, and so on ... The lyx
preamble contains some input commands to take the corresponding latex
preamble, i.e.
\input{../common/preamble.tex}.

In this way I can share project directories with other colleagues (for
instance using svn). We always use relative paths in order to ensure that the
compilation does not break.

Now when I am trying to compile some documents from lyx 1.6.10 I have found
that lyx 2.0.1 stops the compilation saying
LaTeX Error: File `../common/preamble.tex' not found

If I export the latex file using Export-latex (pdflatex) and from a terminal
I run pdflatex:
$pdflatex test.tex

everything is ok!

Attached to this message you can find a minimal example showing the problem.
Look at the file located at test/doc/test.lyx and try to pdflatex it from lyx
and after from a terminal.

Please has something changed regarding the treatment that lyx gibes to
absolute versus relative paths? Hope not! I am completely puzzled with this
behaviour and perhaps I am missing something evident.

Best regards
TIA
Oscar








  




Re: lyx 2.0.1 and relative paths to tex files

2011-10-20 Thread Oscar Lopez

curtis osterhoudt wrote:
Have you tried NOT including the '.tex' extension on the \input{} 
command, whether or not you're using a relative path? If I remember 
correctly, you have to leave that bit off (for which reason I don't 
know, but that's how TeX expects it). Include everything else, though.


Yes, I have tried it and it did not work. TeX I do not know, however, 
LaTeX and pdfLaTeX understand perfectly \input{foo.tex} and as I said 
before running pdflatex on the tex file exported from lyx-2.0.1 from a 
terminal works (with relative path and extension tex to the preamble file)


Thank you very much for your comment Curtis
Best regards
Oscar
 



On Thu 20 Oct 2011 05:25:57 PM EEST, Oscar Lopez wrote:
 Dear LyXers

 I have recenty updated my lyx version to lyx 2.0.1 and I have
found that
 using relative paths to tex files at the lyx preamble does not
work anymore.

 I have directory structures where lyx files are at some
directories, bib
 files at other, latex preamble commands at othes, and so on ...
The lyx
 preamble contains some input commands to take the corresponding
latex
 preamble, i.e.
 \input{../common/preamble.tex}.

 In this way I can share project directories with other
colleagues (for
 instance using svn). We always use relative paths in order to
ensure that the
 compilation does not break.

 Now when I am trying to compile some documents from lyx 1.6.10 I
have found
 that lyx 2.0.1 stops the compilation saying
 LaTeX Error: File `../common/preamble.tex' not found

 If I export the latex file using Export-latex (pdflatex) and
from a terminal
 I run pdflatex:
 $pdflatex test.tex

 everything is ok!

 Attached to this message you can find a minimal example showing
the problem.
 Look at the file located at test/doc/test.lyx and try to
pdflatex it from lyx
 and after from a terminal.

 Please has something changed regarding the treatment that lyx
gibes to
 absolute versus relative paths? Hope not! I am completely
puzzled with this
 behaviour and perhaps I am missing something evident.

 Best regards
 TIA
 Oscar











Re: lyx 2.0.1 and relative paths to tex files

2011-10-20 Thread Oscar Lopez

Spyros Stathopoulos wrote:
I think the problem is that LyX does not copy the 
../common/preamble.tex file over at the temporary build directory 
(usually something like /tmp/lyx_tmpdir./lyx_tmpbufX/ by default). 
I have encountered this kind of behavior before (albeit in a different 
case) but I could not find any reasonable solution beyond providing the 
full path.


I do not know! As far as I know before lyx 2.0.1 using relative paths 
was the way to ensure to share projects that use many directories to 
organize the information. I have been using lyx since 1997 and never 
have a problem with this. In fact, I have been used to work in this way 
and it even worst I teach many people to do so.



 It would be nice if there were a solution to this.


sure!

 For your 
case, unless you must maintain this kind of directory structure, it 
might help you if you put your preamble.tex file in the same directory 
as your *.lyx file and use \input{preamble.tex} instead of a relative 
path.
  


This solution will be a nightmare! I got people at my institute to move 
from word to lyx and we have created many svn projects, books and many 
other things that rely on the fact that lyx can understand relative 
paths and in this way we can work all together. Hope there is something 
more evident.


I cannot believe that this version of lyx is going to drop the support 
to relative paths I put an example with a tex file, but what about child 
documents, graphic files and others that until now I didn't tested with 
lyx 2.0.1.


Although I am not entirely sure, in LyX 1.6.x there was a way to tell 
LyX to use the current WD instead of a temp one.
  


Here using lyx-1.6.10 with the test I sent everything is ok. As far as I 
am concerned it does not require to tell lyx anything


Thanks for your comments
Best regards
Oscar


Spyros

On Thu 20 Oct 2011 05:25:57 PM EEST, Oscar Lopez wrote:
  

Dear LyXers

I have recenty updated my lyx version to lyx 2.0.1 and I have found that
using relative paths to tex files at the lyx preamble does not work anymore.

I have directory structures where lyx files are at some directories, bib
files at other, latex preamble commands at othes, and so on ... The lyx
preamble contains some input commands to take the corresponding latex
preamble, i.e.
\input{../common/preamble.tex}.

In this way I can share project directories with other colleagues (for
instance using svn). We always use relative paths in order to ensure that the
compilation does not break.

Now when I am trying to compile some documents from lyx 1.6.10 I have found
that lyx 2.0.1 stops the compilation saying
LaTeX Error: File `../common/preamble.tex' not found

If I export the latex file using Export-latex (pdflatex) and from a terminal
I run pdflatex:
$pdflatex test.tex

everything is ok!

Attached to this message you can find a minimal example showing the problem.
Look at the file located at test/doc/test.lyx and try to pdflatex it from lyx
and after from a terminal.

Please has something changed regarding the treatment that lyx gibes to
absolute versus relative paths? Hope not! I am completely puzzled with this
behaviour and perhaps I am missing something evident.

Best regards
TIA
Oscar








  




Re: lyx 2.0.1 and relative paths to tex files

2011-10-20 Thread Oscar Lopez

curtis osterhoudt wrote:
Have you tried NOT including the '.tex' extension on the \input{} 
command, whether or not you're using a relative path? If I remember 
correctly, you have to leave that bit off (for which reason I don't 
know, but that's how TeX expects it). Include everything else, though.


Yes, I have tried it and it did not work. TeX I do not know, however, 
LaTeX and pdfLaTeX understand perfectly \input{foo.tex} and as I said 
before running pdflatex on the tex file exported from lyx-2.0.1 from a 
terminal works (with relative path and extension tex to the preamble file)


Thank you very much for your comment Curtis
Best regards
Oscar
 



On Thu 20 Oct 2011 05:25:57 PM EEST, Oscar Lopez wrote:
 Dear LyXers

 I have recenty updated my lyx version to lyx 2.0.1 and I have
found that
 using relative paths to tex files at the lyx preamble does not
work anymore.

 I have directory structures where lyx files are at some
directories, bib
 files at other, latex preamble commands at othes, and so on ...
The lyx
 preamble contains some input commands to take the corresponding
latex
 preamble, i.e.
 \input{../common/preamble.tex}.

 In this way I can share project directories with other
colleagues (for
 instance using svn). We always use relative paths in order to
ensure that the
 compilation does not break.

 Now when I am trying to compile some documents from lyx 1.6.10 I
have found
 that lyx 2.0.1 stops the compilation saying
 LaTeX Error: File `../common/preamble.tex' not found

 If I export the latex file using Export-latex (pdflatex) and
from a terminal
 I run pdflatex:
 $pdflatex test.tex

 everything is ok!

 Attached to this message you can find a minimal example showing
the problem.
 Look at the file located at test/doc/test.lyx and try to
pdflatex it from lyx
 and after from a terminal.

 Please has something changed regarding the treatment that lyx
gibes to
 absolute versus relative paths? Hope not! I am completely
puzzled with this
 behaviour and perhaps I am missing something evident.

 Best regards
 TIA
 Oscar











Re: lyx 2.0.1 and relative paths to tex files

2011-10-20 Thread Oscar Lopez

Spyros Stathopoulos wrote:
I think the problem is that LyX does not copy the 
"../common/preamble.tex" file over at the temporary build directory 
(usually something like /tmp/lyx_tmpdir./lyx_tmpbufX/ by default). 
I have encountered this kind of behavior before (albeit in a different 
case) but I could not find any reasonable solution beyond providing the 
full path.


I do not know! As far as I know before lyx 2.0.1 using relative paths 
was the way to ensure to share projects that use many directories to 
organize the information. I have been using lyx since 1997 and never 
have a problem with this. In fact, I have been used to work in this way 
and it even worst I teach many people to do so.



 It would be nice if there were a solution to this.


sure!

 For your 
case, unless you must maintain this kind of directory structure, it 
might help you if you put your preamble.tex file in the same directory 
as your *.lyx file and use \input{preamble.tex} instead of a relative 
path.
  


This solution will be a nightmare! I got people at my institute to move 
from word to lyx and we have created many svn projects, books and many 
other things that rely on the fact that lyx can understand relative 
paths and in this way we can work all together. Hope there is something 
more evident.


I cannot believe that this version of lyx is going to drop the support 
to relative paths I put an example with a tex file, but what about child 
documents, graphic files and others that until now I didn't tested with 
lyx 2.0.1.


Although I am not entirely sure, in LyX 1.6.x there was a way to tell 
LyX to use the current WD instead of a temp one.
  


Here using lyx-1.6.10 with the test I sent everything is ok. As far as I 
am concerned it does not require to tell lyx anything


Thanks for your comments
Best regards
Oscar


Spyros

On Thu 20 Oct 2011 05:25:57 PM EEST, Oscar Lopez wrote:
  

Dear LyXers

I have recenty updated my lyx version to lyx 2.0.1 and I have found that
using relative paths to tex files at the lyx preamble does not work anymore.

I have directory structures where lyx files are at some directories, bib
files at other, latex preamble commands at othes, and so on ... The lyx
preamble contains some input commands to take the corresponding latex
preamble, i.e.
\input{../common/preamble.tex}.

In this way I can share project directories with other colleagues (for
instance using svn). We always use relative paths in order to ensure that the
compilation does not break.

Now when I am trying to compile some documents from lyx 1.6.10 I have found
that lyx 2.0.1 stops the compilation saying
LaTeX Error: File `../common/preamble.tex' not found

If I export the latex file using Export->latex (pdflatex) and from a terminal
I run pdflatex:
$pdflatex test.tex

everything is ok!

Attached to this message you can find a minimal example showing the problem.
Look at the file located at test/doc/test.lyx and try to pdflatex it from lyx
and after from a terminal.

Please has something changed regarding the treatment that lyx gibes to
absolute versus relative paths? Hope not! I am completely puzzled with this
behaviour and perhaps I am missing something evident.

Best regards
TIA
Oscar








  




Re: lyx 2.0.1 and relative paths to tex files

2011-10-20 Thread Oscar Lopez

curtis osterhoudt wrote:
Have you tried NOT including the '.tex' extension on the \input{} 
command, whether or not you're using a relative path? If I remember 
correctly, you have to leave that bit off (for which reason I don't 
know, but that's how TeX expects it). Include everything else, though.


Yes, I have tried it and it did not work. TeX I do not know, however, 
LaTeX and pdfLaTeX understand perfectly \input{foo.tex} and as I said 
before running pdflatex on the tex file exported from lyx-2.0.1 from a 
terminal works (with relative path and extension tex to the preamble file)


Thank you very much for your comment Curtis
Best regards
Oscar
 



On Thu 20 Oct 2011 05:25:57 PM EEST, Oscar Lopez wrote:
> Dear LyXers
>
> I have recenty updated my lyx version to lyx 2.0.1 and I have
found that
> using relative paths to tex files at the lyx preamble does not
work anymore.
>
> I have directory structures where lyx files are at some
directories, bib
> files at other, latex preamble commands at othes, and so on ...
The lyx
> preamble contains some input commands to take the corresponding
latex
> preamble, i.e.
> \input{../common/preamble.tex}.
>
> In this way I can share project directories with other
colleagues (for
> instance using svn). We always use relative paths in order to
ensure that the
> compilation does not break.
>
> Now when I am trying to compile some documents from lyx 1.6.10 I
have found
> that lyx 2.0.1 stops the compilation saying
> LaTeX Error: File `../common/preamble.tex' not found
>
> If I export the latex file using Export->latex (pdflatex) and
from a terminal
> I run pdflatex:
> $pdflatex test.tex
>
> everything is ok!
>
> Attached to this message you can find a minimal example showing
the problem.
> Look at the file located at test/doc/test.lyx and try to
pdflatex it from lyx
> and after from a terminal.
>
> Please has something changed regarding the treatment that lyx
gibes to
> absolute versus relative paths? Hope not! I am completely
puzzled with this
> behaviour and perhaps I am missing something evident.
>
> Best regards
> TIA
> Oscar
>
>
>








default math mode for multiline equations

2009-07-28 Thread Oscar Lopez

Dear lyxers

I would like to know if there is some way to customize the math 
environment that lyx provides when Ctrl+Enter is used (multiline 
formulae). As it is described at the math documentation section 18.1 
when AMS math package is used the align environment is used as the default.


Now I would like to use lyx memoir book together with AMS math package 
but using gather environment as the default environment for multiline 
math expressions. However, I cannot find at the preferences or layout 
files where this can be set. Sorry if I have missed something evident 
but I've checked documentation and gmane mailing lists and I couldn't 
find any answer. Can I customize lyx behaviour to get gather multiline 
environment when I hit CTRL+Enter using the AMS math package?


Thanks in advance for your help
Best regards
Oscar



default math mode for multiline equations

2009-07-28 Thread Oscar Lopez

Dear lyxers

I would like to know if there is some way to customize the math 
environment that lyx provides when Ctrl+Enter is used (multiline 
formulae). As it is described at the math documentation section 18.1 
when AMS math package is used the align environment is used as the default.


Now I would like to use lyx memoir book together with AMS math package 
but using gather environment as the default environment for multiline 
math expressions. However, I cannot find at the preferences or layout 
files where this can be set. Sorry if I have missed something evident 
but I've checked documentation and gmane mailing lists and I couldn't 
find any answer. Can I customize lyx behaviour to get gather multiline 
environment when I hit CTRL+Enter using the AMS math package?


Thanks in advance for your help
Best regards
Oscar



default math mode for multiline equations

2009-07-28 Thread Oscar Lopez

Dear lyxers

I would like to know if there is some way to customize the math 
environment that lyx provides when Ctrl+Enter is used (multiline 
formulae). As it is described at the math documentation section 18.1 
when AMS math package is used the align environment is used as the default.


Now I would like to use lyx memoir book together with AMS math package 
but using gather environment as the default environment for multiline 
math expressions. However, I cannot find at the preferences or layout 
files where this can be set. Sorry if I have missed something evident 
but I've checked documentation and gmane mailing lists and I couldn't 
find any answer. Can I customize lyx behaviour to get gather multiline 
environment when I hit CTRL+Enter using the AMS math package?


Thanks in advance for your help
Best regards
Oscar



Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-26 Thread Oscar Lopez

Jürgen Spitzmüller wrote:

Oscar Lopez wrote:
  

* if the lyx preamble consists of \input{foo.tex} it does not work and
the aforementioned error appears. If I enclose \input{foo.tex} between
\makeatletter and \makeatother then it works, which really puzzles me.

*if the content of the preamble foo.tex is directly included in the lyx
preamble
everything work like expected.



  



Jurgen:
Thank you very much for your detailed and helpful explanation


The glyph '@' has two different meanings in LaTeX. It is used as an active 
char (inside the document) and (for instance) as a namespace delimiter (in 
classes). The latter is the case in your preamble snippet, e.g. in


l...@mkboth\markboth 

To switch between these two meanings, the commands \makeatletter and 
\makeatother are used. In general, you always need to embrace preamble code 
with


\makeatletter
...
\makeatother

if it contains an '@'.

LyX does this automatically for you, that's why your document works if the 
code is inserted directly to the preamble. In former versions, Lyx blindly 
embraced any preamble with this pair. Now, it tries to be smart and only 
embraces it if the preamble actually contains an @-glyph.

In the \include-version, this is not the case.
  



So now, somehow lyx parses the preamble and tries to be smart enough.



The solution is

a.) to embrace the original code accordingly, if it is in a normal tex file
or
  


ok! This solves the problem.


Thanks again for your help, it is really appreciated.
Best regards


b.) make it a real sty-File (where this is not needed).


HTH,
Jürgen



  




Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-26 Thread Oscar Lopez

Enrico Forestieri wrote:

Jürgen Spitzmüller writes:

  
LyX does this automatically for you, that's why your document works if the 
code is inserted directly to the preamble. In former versions, Lyx blindly 
embraced any preamble with this pair. Now, it tries to be smart and only 
embraces it if the preamble actually contains an @-glyph.



Right, but LyX could also check whether \input is used in the preamble
and add the \makeatletter,\makeatother pair as a safety measure.
  


I agree with you and this way ensure that this kind of problems are 
avoided.




Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-26 Thread Oscar Lopez

Steve Litt wrote:

On Monday 25 May 2009 10:40:43 am Oscar Lopez wrote:
  

What surprises me is that it's dependent on LyX version. If the LyX file is 
called bar.lyx, I'd like to see you do the following:


lyx-1.5.4 -e latex bar.lyx
mv bar.tex bar-1.5.4.tex
lyx-1.6.2 -e latex bar.lyx
mv bar.tex bar-1.6.2.tex
diff bar-1.5.4.tex bar-1.6.2.tex

Then run latex on both tex files and see if one errors out while the other 
doesn't. Exploit the differences.
  


Sorry,  now I do not have the time nor the resources to reinstall 
lyx-1.5.x. However, I think that Jurgen explained quite well why there 
exist differences between both versions and I know that the treatment of 
latex code of lyx is always improving and when I've changed from one 
major version to the next one I've usually experienced some glitches of 
this kind but every time they have been worth the effort to fix them.


Thanks for all your answers
Oscar







Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-26 Thread Oscar Lopez

Jürgen Spitzmüller wrote:

Oscar Lopez wrote:
  

* if the lyx preamble consists of \input{foo.tex} it does not work and
the aforementioned error appears. If I enclose \input{foo.tex} between
\makeatletter and \makeatother then it works, which really puzzles me.

*if the content of the preamble foo.tex is directly included in the lyx
preamble
everything work like expected.



  



Jurgen:
Thank you very much for your detailed and helpful explanation


The glyph '@' has two different meanings in LaTeX. It is used as an active 
char (inside the document) and (for instance) as a namespace delimiter (in 
classes). The latter is the case in your preamble snippet, e.g. in


l...@mkboth\markboth 

To switch between these two meanings, the commands \makeatletter and 
\makeatother are used. In general, you always need to embrace preamble code 
with


\makeatletter
...
\makeatother

if it contains an '@'.

LyX does this automatically for you, that's why your document works if the 
code is inserted directly to the preamble. In former versions, Lyx blindly 
embraced any preamble with this pair. Now, it tries to be smart and only 
embraces it if the preamble actually contains an @-glyph.

In the \include-version, this is not the case.
  



So now, somehow lyx parses the preamble and tries to be smart enough.



The solution is

a.) to embrace the original code accordingly, if it is in a normal tex file
or
  


ok! This solves the problem.


Thanks again for your help, it is really appreciated.
Best regards


b.) make it a real sty-File (where this is not needed).


HTH,
Jürgen



  




Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-26 Thread Oscar Lopez

Enrico Forestieri wrote:

Jürgen Spitzmüller writes:

  
LyX does this automatically for you, that's why your document works if the 
code is inserted directly to the preamble. In former versions, Lyx blindly 
embraced any preamble with this pair. Now, it tries to be smart and only 
embraces it if the preamble actually contains an @-glyph.



Right, but LyX could also check whether \input is used in the preamble
and add the \makeatletter,\makeatother pair as a safety measure.
  


I agree with you and this way ensure that this kind of problems are 
avoided.




Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-26 Thread Oscar Lopez

Steve Litt wrote:

On Monday 25 May 2009 10:40:43 am Oscar Lopez wrote:
  

What surprises me is that it's dependent on LyX version. If the LyX file is 
called bar.lyx, I'd like to see you do the following:


lyx-1.5.4 -e latex bar.lyx
mv bar.tex bar-1.5.4.tex
lyx-1.6.2 -e latex bar.lyx
mv bar.tex bar-1.6.2.tex
diff bar-1.5.4.tex bar-1.6.2.tex

Then run latex on both tex files and see if one errors out while the other 
doesn't. Exploit the differences.
  


Sorry,  now I do not have the time nor the resources to reinstall 
lyx-1.5.x. However, I think that Jurgen explained quite well why there 
exist differences between both versions and I know that the treatment of 
latex code of lyx is always improving and when I've changed from one 
major version to the next one I've usually experienced some glitches of 
this kind but every time they have been worth the effort to fix them.


Thanks for all your answers
Oscar







Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-26 Thread Oscar Lopez

Jürgen Spitzmüller wrote:

Oscar Lopez wrote:
  

* if the lyx preamble consists of \input{foo.tex} it does not work and
the aforementioned error appears. If I enclose \input{foo.tex} between
\makeatletter and \makeatother then it works, which really puzzles me.

*if the content of the preamble foo.tex is directly included in the lyx
preamble
everything work like expected.



  



Jurgen:
Thank you very much for your detailed and helpful explanation


The glyph '@' has two different meanings in LaTeX. It is used as an active 
char (inside the document) and (for instance) as a namespace delimiter (in 
classes). The latter is the case in your preamble snippet, e.g. in


l...@mkboth\markboth 

To switch between these two meanings, the commands \makeatletter and 
\makeatother are used. In general, you always need to embrace preamble code 
with


\makeatletter
...
\makeatother

if it contains an '@'.

LyX does this automatically for you, that's why your document works if the 
code is inserted directly to the preamble. In former versions, Lyx blindly 
embraced any preamble with this pair. Now, it tries to be smart and only 
embraces it if the preamble actually contains an @-glyph.

In the \include-version, this is not the case.
  



So now, somehow lyx parses the preamble and tries to be smart enough.



The solution is

a.) to embrace the original code accordingly, if it is in a normal tex file
or
  


ok! This solves the problem.


Thanks again for your help, it is really appreciated.
Best regards


b.) make it a real sty-File (where this is not needed).


HTH,
Jürgen



  




Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-26 Thread Oscar Lopez

Enrico Forestieri wrote:

Jürgen Spitzmüller writes:

  
LyX does this automatically for you, that's why your document works if the 
code is inserted directly to the preamble. In former versions, Lyx blindly 
embraced any preamble with this pair. Now, it tries to be smart and only 
embraces it if the preamble actually contains an @-glyph.



Right, but LyX could also check whether \input is used in the preamble
and add the \makeatletter,\makeatother pair as a safety measure.
  


I agree with you and this way ensure that this kind of problems are 
avoided.




Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-26 Thread Oscar Lopez

Steve Litt wrote:

On Monday 25 May 2009 10:40:43 am Oscar Lopez wrote:
  

What surprises me is that it's dependent on LyX version. If the LyX file is 
called bar.lyx, I'd like to see you do the following:


lyx-1.5.4 -e latex bar.lyx
mv bar.tex bar-1.5.4.tex
lyx-1.6.2 -e latex bar.lyx
mv bar.tex bar-1.6.2.tex
diff bar-1.5.4.tex bar-1.6.2.tex

Then run latex on both tex files and see if one errors out while the other 
doesn't. Exploit the differences.
  


Sorry,  now I do not have the time nor the resources to reinstall 
lyx-1.5.x. However, I think that Jurgen explained quite well why there 
exist differences between both versions and I know that the treatment of 
latex code of lyx is always improving and when I've changed from one 
major version to the next one I've usually experienced some glitches of 
this kind but every time they have been worth the effort to fix them.


Thanks for all your answers
Oscar







memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Oscar Lopez

Dear Lyxers

I am trying to use a lyx template which uses the memoir book class that 
worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses to 
compile because the lyx error (in fact latex error) says:
\pagestyle{myMainheading} I've run across a `}' that doesn't seem to 
match anything. For example, `\def\a#1{...}' and `\a}' would produce 
this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the 
root of the problem. But if your `}' was spurious, just type `2' and it 
will go away.


I thought that the problem could be related to this chunk of code

\makepsmarks{companion}{%
\l...@mkboth\markboth
\def\chaptermark##1{\markboth{##1}{##1}}% % left  right marks
\def\sectionmark##1{\markright{% % right mark
\ifnum \...@secnumdepth\z@
\thesection. \% % section number
\fi
##1}}
}

because when I remove it, everything works (the above code is a copy  of 
the memoir manual) I've tried to reproduce the error in a minimal 
document but unfortunately I am not able to reproduce the error which 
suggest me that it could be a problem related with other packages.


My question is that if there have been some modifications to the memoir 
layout from lyx-1.5 which can be responsible of the error. Do you have 
some advises to debug the problem because I am running out of ideas?


Thank you very much for all your help
Best regards
Oscar


Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Oscar Lopez

Dear all

I have been able to reproduce the problem. Attached there is a minimal 
lyx file together with a minimal preamble (foo.tex) which reproduces the 
problem.


* if the lyx preamble consists of \input{foo.tex} it does not work and 
the aforementioned error appears. If I enclose \input{foo.tex} between 
\makeatletter and \makeatother then it works, which really puzzles me.


*if the content of the preamble foo.tex is directly included in the lyx 
preamble

everything work like expected.

I am completely shocked about such behaviour. I am not sure what is 
going on and I'd appreciate somebody could comment about this. I have 
thought that could be related to master-child documents (the initial lyx 
file was a master and several child but now it is just one document) but 
it does not make any sense at all.


I usually write the preamble into an external text file, especially when 
the preamble is complicated like the one of the book in order to be able 
to easily edit it. However, I enclosing the lyx preamble of the actual 
book between \makeatletter and \makeatother another errors appear as it 
would be expected. So, I am completely lost and I do not know how the 
problem could be solved. Perhaps I am missing something quite evident 
and I am writing rubbish. Any comment or suggestion is appreciated.


Thank you very much for all your help
Best regards
Oscar


Oscar Lopez wrote:

Dear Lyxers

I am trying to use a lyx template which uses the memoir book class 
that worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses 
to compile because the lyx error (in fact latex error) says:
\pagestyle{myMainheading} I've run across a `}' that doesn't seem to 
match anything. For example, `\def\a#1{...}' and `\a}' would produce 
this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the 
root of the problem. But if your `}' was spurious, just type `2' and 
it will go away.


I thought that the problem could be related to this chunk of code

\makepsmarks{companion}{%
\l...@mkboth\markboth
\def\chaptermark##1{\markboth{##1}{##1}}% % left  right marks
\def\sectionmark##1{\markright{% % right mark
\ifnum \...@secnumdepth\z@
\thesection. \% % section number
\fi
##1}}
}

because when I remove it, everything works (the above code is a copy  
of the memoir manual) I've tried to reproduce the error in a minimal 
document but unfortunately I am not able to reproduce the error which 
suggest me that it could be a problem related with other packages.


My question is that if there have been some modifications to the 
memoir layout from lyx-1.5 which can be responsible of the error. Do 
you have some advises to debug the problem because I am running out of 
ideas?


Thank you very much for all your help
Best regards
Oscar




%---
% Definir los encabezados y pies de los capitulos
\makepagestyle{myMainheading}
\makerunningwidth{myMainheading}{\textwidth}
\makeheadposition{myMainheading}{flushright}{flushleft}{}{}
\makepsmarks{myMainheading}{%
  \l...@mkboth\markboth
  \def\chaptermark##1{\markboth{##1}{##1}}% % left  right marks
  \def\sectionmark##1{\markright{%  % right mark
\ifnum \...@secnumdepth\z@
  \thesection .\hspace{4pt}   % section number
\fi
##1}}
}
\makeevenhead{myMainheading}{\normalfont\footnotesize\thepage}{}%
{\normalfont\footnotesize\leftmark}
\makeoddhead{myMainheading}{\normalfont\footnotesize\rightmark}{}%
   {\normalfont\footnotesize\thepage}



plantilla.lyx
Description: application/lyx


memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Oscar Lopez

Dear Lyxers

I am trying to use a lyx template which uses the memoir book class that 
worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses to 
compile because the lyx error (in fact latex error) says:
\pagestyle{myMainheading} I've run across a `}' that doesn't seem to 
match anything. For example, `\def\a#1{...}' and `\a}' would produce 
this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the 
root of the problem. But if your `}' was spurious, just type `2' and it 
will go away.


I thought that the problem could be related to this chunk of code

\makepsmarks{companion}{%
\l...@mkboth\markboth
\def\chaptermark##1{\markboth{##1}{##1}}% % left  right marks
\def\sectionmark##1{\markright{% % right mark
\ifnum \...@secnumdepth\z@
\thesection. \% % section number
\fi
##1}}
}

because when I remove it, everything works (the above code is a copy  of 
the memoir manual) I've tried to reproduce the error in a minimal 
document but unfortunately I am not able to reproduce the error which 
suggest me that it could be a problem related with other packages.


My question is that if there have been some modifications to the memoir 
layout from lyx-1.5 which can be responsible of the error. Do you have 
some advises to debug the problem because I am running out of ideas?


Thank you very much for all your help
Best regards
Oscar


Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Oscar Lopez

Dear all

I have been able to reproduce the problem. Attached there is a minimal 
lyx file together with a minimal preamble (foo.tex) which reproduces the 
problem.


* if the lyx preamble consists of \input{foo.tex} it does not work and 
the aforementioned error appears. If I enclose \input{foo.tex} between 
\makeatletter and \makeatother then it works, which really puzzles me.


*if the content of the preamble foo.tex is directly included in the lyx 
preamble

everything work like expected.

I am completely shocked about such behaviour. I am not sure what is 
going on and I'd appreciate somebody could comment about this. I have 
thought that could be related to master-child documents (the initial lyx 
file was a master and several child but now it is just one document) but 
it does not make any sense at all.


I usually write the preamble into an external text file, especially when 
the preamble is complicated like the one of the book in order to be able 
to easily edit it. However, I enclosing the lyx preamble of the actual 
book between \makeatletter and \makeatother another errors appear as it 
would be expected. So, I am completely lost and I do not know how the 
problem could be solved. Perhaps I am missing something quite evident 
and I am writing rubbish. Any comment or suggestion is appreciated.


Thank you very much for all your help
Best regards
Oscar


Oscar Lopez wrote:

Dear Lyxers

I am trying to use a lyx template which uses the memoir book class 
that worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses 
to compile because the lyx error (in fact latex error) says:
\pagestyle{myMainheading} I've run across a `}' that doesn't seem to 
match anything. For example, `\def\a#1{...}' and `\a}' would produce 
this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the 
root of the problem. But if your `}' was spurious, just type `2' and 
it will go away.


I thought that the problem could be related to this chunk of code

\makepsmarks{companion}{%
\l...@mkboth\markboth
\def\chaptermark##1{\markboth{##1}{##1}}% % left  right marks
\def\sectionmark##1{\markright{% % right mark
\ifnum \...@secnumdepth\z@
\thesection. \% % section number
\fi
##1}}
}

because when I remove it, everything works (the above code is a copy  
of the memoir manual) I've tried to reproduce the error in a minimal 
document but unfortunately I am not able to reproduce the error which 
suggest me that it could be a problem related with other packages.


My question is that if there have been some modifications to the 
memoir layout from lyx-1.5 which can be responsible of the error. Do 
you have some advises to debug the problem because I am running out of 
ideas?


Thank you very much for all your help
Best regards
Oscar




%---
% Definir los encabezados y pies de los capitulos
\makepagestyle{myMainheading}
\makerunningwidth{myMainheading}{\textwidth}
\makeheadposition{myMainheading}{flushright}{flushleft}{}{}
\makepsmarks{myMainheading}{%
  \l...@mkboth\markboth
  \def\chaptermark##1{\markboth{##1}{##1}}% % left  right marks
  \def\sectionmark##1{\markright{%  % right mark
\ifnum \...@secnumdepth\z@
  \thesection .\hspace{4pt}   % section number
\fi
##1}}
}
\makeevenhead{myMainheading}{\normalfont\footnotesize\thepage}{}%
{\normalfont\footnotesize\leftmark}
\makeoddhead{myMainheading}{\normalfont\footnotesize\rightmark}{}%
   {\normalfont\footnotesize\thepage}



plantilla.lyx
Description: application/lyx


memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Oscar Lopez

Dear Lyxers

I am trying to use a lyx template which uses the memoir book class that 
worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses to 
compile because the lyx error (in fact latex error) says:
\pagestyle{myMainheading} I've run across a `}' that doesn't seem to 
match anything. For example, `\def\a#1{...}' and `\a}' would produce 
this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the 
root of the problem. But if your `}' was spurious, just type `2' and it 
will go away.


I thought that the problem could be related to this chunk of code

\makepsmarks{companion}{%
\l...@mkboth\markboth
\def\chaptermark##1{\markboth{##1}{##1}}% % left & right marks
\def\sectionmark##1{\markright{% % right mark
\ifnum \...@secnumdepth>\z@
\thesection. \% % section number
\fi
##1}}
}

because when I remove it, everything works (the above code is a copy  of 
the memoir manual) I've tried to reproduce the error in a minimal 
document but unfortunately I am not able to reproduce the error which 
suggest me that it could be a problem related with other packages.


My question is that if there have been some modifications to the memoir 
layout from lyx-1.5 which can be responsible of the error. Do you have 
some advises to debug the problem because I am running out of ideas?


Thank you very much for all your help
Best regards
Oscar


Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Oscar Lopez

Dear all

I have been able to reproduce the problem. Attached there is a minimal 
lyx file together with a minimal preamble (foo.tex) which reproduces the 
problem.


* if the lyx preamble consists of \input{foo.tex} it does not work and 
the aforementioned error appears. If I enclose \input{foo.tex} between 
\makeatletter and \makeatother then it works, which really puzzles me.


*if the content of the preamble foo.tex is directly included in the lyx 
preamble

everything work like expected.

I am completely shocked about such behaviour. I am not sure what is 
going on and I'd appreciate somebody could comment about this. I have 
thought that could be related to master-child documents (the initial lyx 
file was a master and several child but now it is just one document) but 
it does not make any sense at all.


I usually write the preamble into an external text file, especially when 
the preamble is complicated like the one of the book in order to be able 
to easily edit it. However, I enclosing the lyx preamble of the actual 
book between \makeatletter and \makeatother another errors appear as it 
would be expected. So, I am completely lost and I do not know how the 
problem could be solved. Perhaps I am missing something quite evident 
and I am writing rubbish. Any comment or suggestion is appreciated.


Thank you very much for all your help
Best regards
Oscar


Oscar Lopez wrote:

Dear Lyxers

I am trying to use a lyx template which uses the memoir book class 
that worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses 
to compile because the lyx error (in fact latex error) says:
\pagestyle{myMainheading} I've run across a `}' that doesn't seem to 
match anything. For example, `\def\a#1{...}' and `\a}' would produce 
this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the 
root of the problem. But if your `}' was spurious, just type `2' and 
it will go away.


I thought that the problem could be related to this chunk of code

\makepsmarks{companion}{%
\l...@mkboth\markboth
\def\chaptermark##1{\markboth{##1}{##1}}% % left & right marks
\def\sectionmark##1{\markright{% % right mark
\ifnum \...@secnumdepth>\z@
\thesection. \% % section number
\fi
##1}}
}

because when I remove it, everything works (the above code is a copy  
of the memoir manual) I've tried to reproduce the error in a minimal 
document but unfortunately I am not able to reproduce the error which 
suggest me that it could be a problem related with other packages.


My question is that if there have been some modifications to the 
memoir layout from lyx-1.5 which can be responsible of the error. Do 
you have some advises to debug the problem because I am running out of 
ideas?


Thank you very much for all your help
Best regards
Oscar




%---
% Definir los encabezados y pies de los capitulos
\makepagestyle{myMainheading}
\makerunningwidth{myMainheading}{\textwidth}
\makeheadposition{myMainheading}{flushright}{flushleft}{}{}
\makepsmarks{myMainheading}{%
  \l...@mkboth\markboth
  \def\chaptermark##1{\markboth{##1}{##1}}% % left & right marks
  \def\sectionmark##1{\markright{%  % right mark
\ifnum \...@secnumdepth>\z@
  \thesection .\hspace{4pt}   % section number
\fi
##1}}
}
\makeevenhead{myMainheading}{\normalfont\footnotesize\thepage}{}%
{\normalfont\footnotesize\leftmark}
\makeoddhead{myMainheading}{\normalfont\footnotesize\rightmark}{}%
   {\normalfont\footnotesize\thepage}



plantilla.lyx
Description: application/lyx


Re: A method to insert syntax colored matlab code into Lyx

2009-05-12 Thread Oscar Lopez

BcBob wrote:

I have developed another solution to inserting matlab code into Lyx using the
'highlight.m' function from the matlab file exchange. This function creates
latex output for the syntax colored matlab code. I wrote a driver function
matlb2tex.m that takes care of the details. You can insert the latex into an
ERT in your Lyx document.
  


Thank you for sharing it!


The matlab code and a sample Lyx document are in the attached zip file.

Bob

http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip 
  


However, I tried to test a simple matlab file, following the notes on 
the lyx file,  and I got the following error:


??? Error using == fprintf
Invalid file identifier.  Use fopen to generate a valid file identifier.

Error in == highlightwrite_highlighted_code at 126
   fprintf(outfid,out_format.pre_start);

Error in == highlight at 110
write_highlighted_code(mfid,outfid,opt)

Error in == matlab2tex at 57
highlight(mfile,opt,fid);


FYI matlab version is
 version
ans =
7.4.0.336 (R2007a)

Best regards
Oscar


Re: A method to insert syntax colored matlab code into Lyx

2009-05-12 Thread Oscar Lopez

Oscar Lopez wrote:

BcBob wrote:

The matlab code and a sample Lyx document are in the attached zip file.

Bob

http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip   


However, I tried to test a simple matlab file, following the notes on 
the lyx file,  and I got the following error:


Ok, it seems that it works when the absolute path is specified. For instance
pwd
ans =
/home/oscar
 matlab2tex('foo.m')
??? Error using == fprintf
Invalid file identifier.  Use fopen to generate a valid file identifier.

Error in == highlightwrite_highlighted_code at 126
   fprintf(outfid,out_format.pre_start);

Error in == highlight at 110
write_highlighted_code(mfid,outfid,opt)

Error in == matlab2tex at 57
highlight(mfile,opt,fid);

despite the fact that foo is in matlab current directory.
However,
 matlab2tex('/home/oscar/foo.m')

works like a charm.

Sorry for the noise.

Best  regards


Re: A method to insert syntax colored matlab code into Lyx

2009-05-12 Thread Oscar Lopez

BcBob wrote:

I have developed another solution to inserting matlab code into Lyx using the
'highlight.m' function from the matlab file exchange. This function creates
latex output for the syntax colored matlab code. I wrote a driver function
matlb2tex.m that takes care of the details. You can insert the latex into an
ERT in your Lyx document.
  


Thank you for sharing it!


The matlab code and a sample Lyx document are in the attached zip file.

Bob

http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip 
  


However, I tried to test a simple matlab file, following the notes on 
the lyx file,  and I got the following error:


??? Error using == fprintf
Invalid file identifier.  Use fopen to generate a valid file identifier.

Error in == highlightwrite_highlighted_code at 126
   fprintf(outfid,out_format.pre_start);

Error in == highlight at 110
write_highlighted_code(mfid,outfid,opt)

Error in == matlab2tex at 57
highlight(mfile,opt,fid);


FYI matlab version is
 version
ans =
7.4.0.336 (R2007a)

Best regards
Oscar


Re: A method to insert syntax colored matlab code into Lyx

2009-05-12 Thread Oscar Lopez

Oscar Lopez wrote:

BcBob wrote:

The matlab code and a sample Lyx document are in the attached zip file.

Bob

http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip   


However, I tried to test a simple matlab file, following the notes on 
the lyx file,  and I got the following error:


Ok, it seems that it works when the absolute path is specified. For instance
pwd
ans =
/home/oscar
 matlab2tex('foo.m')
??? Error using == fprintf
Invalid file identifier.  Use fopen to generate a valid file identifier.

Error in == highlightwrite_highlighted_code at 126
   fprintf(outfid,out_format.pre_start);

Error in == highlight at 110
write_highlighted_code(mfid,outfid,opt)

Error in == matlab2tex at 57
highlight(mfile,opt,fid);

despite the fact that foo is in matlab current directory.
However,
 matlab2tex('/home/oscar/foo.m')

works like a charm.

Sorry for the noise.

Best  regards


Re: A method to insert syntax colored matlab code into Lyx

2009-05-12 Thread Oscar Lopez

BcBob wrote:

I have developed another solution to inserting matlab code into Lyx using the
'highlight.m' function from the matlab file exchange. This function creates
latex output for the syntax colored matlab code. I wrote a driver function
matlb2tex.m that takes care of the details. You can insert the latex into an
ERT in your Lyx document.
  


Thank you for sharing it!


The matlab code and a sample Lyx document are in the attached zip file.

Bob

http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip 
  


However, I tried to test a simple matlab file, following the notes on 
the lyx file,  and I got the following error:


??? Error using ==> fprintf
Invalid file identifier.  Use fopen to generate a valid file identifier.

Error in ==> highlight>write_highlighted_code at 126
   fprintf(outfid,out_format.pre_start);

Error in ==> highlight at 110
write_highlighted_code(mfid,outfid,opt)

Error in ==> matlab2tex at 57
highlight(mfile,opt,fid);


FYI matlab version is
>> version
ans =
7.4.0.336 (R2007a)

Best regards
Oscar


Re: A method to insert syntax colored matlab code into Lyx

2009-05-12 Thread Oscar Lopez

Oscar Lopez wrote:

BcBob wrote:

The matlab code and a sample Lyx document are in the attached zip file.

Bob

http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip   


However, I tried to test a simple matlab file, following the notes on 
the lyx file,  and I got the following error:


Ok, it seems that it works when the absolute path is specified. For instance
>>pwd
ans =
/home/oscar
>> matlab2tex('foo.m')
??? Error using ==> fprintf
Invalid file identifier.  Use fopen to generate a valid file identifier.

Error in ==> highlight>write_highlighted_code at 126
   fprintf(outfid,out_format.pre_start);

Error in ==> highlight at 110
write_highlighted_code(mfid,outfid,opt)

Error in ==> matlab2tex at 57
highlight(mfile,opt,fid);

despite the fact that foo is in matlab current directory.
However,
>> matlab2tex('/home/oscar/foo.m')

works like a charm.

Sorry for the noise.

Best  regards


floats inserted in a beamer presentation does not show the label counter

2008-04-21 Thread Oscar Lopez
Dear Lyxers

When I insert a Float Figure in a beamer presentation with a caption the label
counter it does not show at the pdf output. However, if i insert a reference to
the figure label this reference is correctly displayed at the pdf output. Is
this expected? Is there any way to include a numbered float in a beamer
presentation? Any possible workaround?

I know that it could be a little bit strange to use floats in a presentation.
However, I am working in a somehow kind of a mixture between article and
presentation project.

Thank you very much for all your help
Best regards



Re: floats inserted in a beamer presentation does not show the label counter

2008-04-21 Thread Oscar Lopez
Jürgen Spitzmüller [EMAIL PROTECTED] writes:

 
 Oscar Lopez wrote:
 
 RTFM (beameruserguide, sec. 11.6). There's a good rationale provided why it 
 is 
 so.

I am sorry, my fault. I looked for float and nothing relevant appeared. Next
time I'll be more careful.

  
 \setbeamertemplate{caption}[numbered]

Thanks for your time and patience!

 
 Jürgen
 
 






floats inserted in a beamer presentation does not show the label counter

2008-04-21 Thread Oscar Lopez
Dear Lyxers

When I insert a Float Figure in a beamer presentation with a caption the label
counter it does not show at the pdf output. However, if i insert a reference to
the figure label this reference is correctly displayed at the pdf output. Is
this expected? Is there any way to include a numbered float in a beamer
presentation? Any possible workaround?

I know that it could be a little bit strange to use floats in a presentation.
However, I am working in a somehow kind of a mixture between article and
presentation project.

Thank you very much for all your help
Best regards



Re: floats inserted in a beamer presentation does not show the label counter

2008-04-21 Thread Oscar Lopez
Jürgen Spitzmüller [EMAIL PROTECTED] writes:

 
 Oscar Lopez wrote:
 
 RTFM (beameruserguide, sec. 11.6). There's a good rationale provided why it 
 is 
 so.

I am sorry, my fault. I looked for float and nothing relevant appeared. Next
time I'll be more careful.

  
 \setbeamertemplate{caption}[numbered]

Thanks for your time and patience!

 
 Jürgen
 
 






floats inserted in a beamer presentation does not show the label counter

2008-04-21 Thread Oscar Lopez
Dear Lyxers

When I insert a Float Figure in a beamer presentation with a caption the label
counter it does not show at the pdf output. However, if i insert a reference to
the figure label this reference is correctly displayed at the pdf output. Is
this expected? Is there any way to include a numbered float in a beamer
presentation? Any possible workaround?

I know that it could be a little bit strange to use floats in a presentation.
However, I am working in a somehow kind of a mixture between article and
presentation project.

Thank you very much for all your help
Best regards



Re: floats inserted in a beamer presentation does not show the label counter

2008-04-21 Thread Oscar Lopez
Jürgen Spitzmüller <[EMAIL PROTECTED]> writes:

> 
> Oscar Lopez wrote:
> 
> RTFM (beameruserguide, sec. 11.6). There's a good rationale provided why it 
> is 
> so.

I am sorry, my fault. I looked for "float" and nothing relevant appeared. Next
time I'll be more careful.

  
> \setbeamertemplate{caption}[numbered]

Thanks for your time and patience!

> 
> Jürgen
> 
> 






Re: multiplatform vector drawing program to use

2008-04-09 Thread Oscar Lopez
Oscar Lopez [EMAIL PROTECTED] writes:

Thank you very much for your contributions to this thread

I would like to give a brief summary of what I have been able to learn

I gave a try to inkscape however it seems that the render of latex formula is
broken at linux at version 0.45. Last stable version I haven't been able to
compile at linux and I can not comment

So far, the more promising try have been ipe. It seems that latex formulae can
be easily inserted. There are some minor issues that I have to get used, but it
could be the tool we are looking for.

PyX seems to much low level for my taste. We were looking something more 
drag'n'drop

Before I recommend my colleague to give a try to jfig I'd like to hear from
people that have used it if jfig can be used the same way that xfig with the
external material inset (taking care of latex formula rendering internally using
some python scripts)

Other possibility would be cygwin however it will depend on the policy of the
system administration where he works.

Once again thank you very much for your valuable contributions.







Re: multiplatform vector drawing program to use

2008-04-09 Thread Oscar Lopez
Oscar Lopez [EMAIL PROTECTED] writes:

Thank you very much for your contributions to this thread

I would like to give a brief summary of what I have been able to learn

I gave a try to inkscape however it seems that the render of latex formula is
broken at linux at version 0.45. Last stable version I haven't been able to
compile at linux and I can not comment

So far, the more promising try have been ipe. It seems that latex formulae can
be easily inserted. There are some minor issues that I have to get used, but it
could be the tool we are looking for.

PyX seems to much low level for my taste. We were looking something more 
drag'n'drop

Before I recommend my colleague to give a try to jfig I'd like to hear from
people that have used it if jfig can be used the same way that xfig with the
external material inset (taking care of latex formula rendering internally using
some python scripts)

Other possibility would be cygwin however it will depend on the policy of the
system administration where he works.

Once again thank you very much for your valuable contributions.







Re: multiplatform vector drawing program to use

2008-04-09 Thread Oscar Lopez
Oscar Lopez <[EMAIL PROTECTED]> writes:

Thank you very much for your contributions to this thread

I would like to give a brief summary of what I have been able to learn

I gave a try to inkscape however it seems that the render of latex formula is
broken at linux at version 0.45. Last stable version I haven't been able to
compile at linux and I can not comment

So far, the more promising try have been ipe. It seems that latex formulae can
be easily inserted. There are some minor issues that I have to get used, but it
could be the tool we are looking for.

PyX seems to much low level for my taste. We were looking something more 
drag'n'drop

Before I recommend my colleague to give a try to jfig I'd like to hear from
people that have used it if jfig can be used the same way that xfig with the
external material inset (taking care of latex formula rendering internally using
some python scripts)

Other possibility would be cygwin however it will depend on the policy of the
system administration where he works.

Once again thank you very much for your valuable contributions.







multiplatform vector drawing program to use

2008-04-07 Thread Oscar Lopez
Dear lyxers

I am starting a document project with a colleague using lyx. The goal is to
obtain a big document of a technical course. My colleague uses the windows
version of lyx and I use the linux version. At this initial stage we can easily
share simple documents.  Now we are concerned with the use of a common vector
drawing program that can be used at both platforms. The main feature that we
require is that the vector drawing program can annotate drawings with latex math
formulae. I am quite satisfied with the current support of xfig at lyx using
external material. However, as far as I know, xfig only runs at linux machines
therefore we are looking for an alternative program. Could anybody care to give
us some recommendation? Any advice related to other aspects of such a project
are also welcome.

Thank you very much for all your help
Best regards



multiplatform vector drawing program to use

2008-04-07 Thread Oscar Lopez
Dear lyxers

I am starting a document project with a colleague using lyx. The goal is to
obtain a big document of a technical course. My colleague uses the windows
version of lyx and I use the linux version. At this initial stage we can easily
share simple documents.  Now we are concerned with the use of a common vector
drawing program that can be used at both platforms. The main feature that we
require is that the vector drawing program can annotate drawings with latex math
formulae. I am quite satisfied with the current support of xfig at lyx using
external material. However, as far as I know, xfig only runs at linux machines
therefore we are looking for an alternative program. Could anybody care to give
us some recommendation? Any advice related to other aspects of such a project
are also welcome.

Thank you very much for all your help
Best regards



multiplatform vector drawing program to use

2008-04-07 Thread Oscar Lopez
Dear lyxers

I am starting a document project with a colleague using lyx. The goal is to
obtain a big document of a technical course. My colleague uses the windows
version of lyx and I use the linux version. At this initial stage we can easily
share simple documents.  Now we are concerned with the use of a common vector
drawing program that can be used at both platforms. The main feature that we
require is that the vector drawing program can annotate drawings with latex math
formulae. I am quite satisfied with the current support of xfig at lyx using
external material. However, as far as I know, xfig only runs at linux machines
therefore we are looking for an alternative program. Could anybody care to give
us some recommendation? Any advice related to other aspects of such a project
are also welcome.

Thank you very much for all your help
Best regards



pdf output of boldsymbol math does not work

2008-03-03 Thread Oscar Lopez
Dear all

It seems that pdf output of boldsymbol math does not show properly when the
command \boldsymbol is used. I am using lyx-1.5.4 (compiled version using
kubuntu and texlive)

Open a new document (article) enter a math inset with \boldsymbol* an enter a
letter \boldsymbol{a} \boldsymbol{\alpha}. Then, View-PDF (pdflatex) the math
fonts are not bold faced. The culprit seems to be the \usepackage{mathptmx}
included by lyx at preamble. Adding \usepackage{bm} creates a quasi bold face
math both by shifting slightly the font (the looking using a zoom is poor)
However, if the package mathptmx is not loaded and only the bm package is
loaded, the Computer Modern where the bold symbols are present will be used,
which is the correct way to go. 

Is there anybody experiencing something similar? 
Is there any work around to avoid the automatic insertion by lyx of the mathptmx
package? What is the recommended way to produce math boldsymbols using the
current version of lyx?

Sorry if I missed something evident I have checked through the archives and I
didn't find anything related to this problem.

Thank you very much for your help
Best regards

* By the way when \boldsymbold{ is typed a box is created and left and right
braces are also created which imho is confussing.



Re: pdf output of boldsymbol math does not work

2008-03-03 Thread Oscar Lopez
Paul A. Rubin [EMAIL PROTECTED] writes:

 
 Oscar Lopez wrote:
 
 Apparently, as of a recent version, LyX loads mathptmx automatically if 
 you select Times Roman as your Roman font.  Since mathptmx has no bold 
 symbols, I can see this being a problem, and I'm surprised it was done. 

Yes I didn't expect this behaviour, too.

   In the short term, the workarounds are either to switch your font to 
 something else or to export to LaTeX, manually edit out the 
 \usepackage{mathptmx} line and then manually compile the document.

Ok, the first workaround seems to me more versatile at least I do not have
particular constraints related to font choice. 

 
 Perhaps a developer can address why the change was made?
 

I have been using lyx since version 1.2.x and this caught me by surprise.

 As far as the braces are concerned, LyX is interpreting your typing of 
 '\boldsymbol{' as requesting both a bold symbol and a set of braces. 
 Try '\boldsymbol ' (note the space at the end).


Thanks Paul for your promptly and helpful answer.

Best regards



Re: pdf output of boldsymbol math does not work

2008-03-03 Thread Oscar Lopez
Jürgen Spitzmüller [EMAIL PROTECTED] writes:

 
 Paul A. Rubin wrote:
  Apparently, as of a recent version, LyX loads mathptmx automatically if
  you select Times Roman as your Roman font.  Since mathptmx has no bold
  symbols, I can see this being a problem, and I'm surprised it was done.
In the short term, the workarounds are either to switch your font to
  something else or to export to LaTeX, manually edit out the
  \usepackage{mathptmx} line and then manually compile the document.
 
  Perhaps a developer can address why the change was made?
 
 Short answer:
 http://tug.ctan.org/get/info/l2tabu/english/l2tabuen.pdf
 (sec. 2.3.1)

But as Paul has pointed out mathptmx has no bold symbols. Therefore lyx has to
load something to the preamble in the case math boldsymbols are required. Either
a \usepackage{bm} together with \usepackage{mathptmx} are added or only
\usepackage{bm} is loaded. Please note that the first solution produces math
boldsymbols with poor quality while the second uses Computer Modern fonts.

Best regards





pdf output of boldsymbol math does not work

2008-03-03 Thread Oscar Lopez
Dear all

It seems that pdf output of boldsymbol math does not show properly when the
command \boldsymbol is used. I am using lyx-1.5.4 (compiled version using
kubuntu and texlive)

Open a new document (article) enter a math inset with \boldsymbol* an enter a
letter \boldsymbol{a} \boldsymbol{\alpha}. Then, View-PDF (pdflatex) the math
fonts are not bold faced. The culprit seems to be the \usepackage{mathptmx}
included by lyx at preamble. Adding \usepackage{bm} creates a quasi bold face
math both by shifting slightly the font (the looking using a zoom is poor)
However, if the package mathptmx is not loaded and only the bm package is
loaded, the Computer Modern where the bold symbols are present will be used,
which is the correct way to go. 

Is there anybody experiencing something similar? 
Is there any work around to avoid the automatic insertion by lyx of the mathptmx
package? What is the recommended way to produce math boldsymbols using the
current version of lyx?

Sorry if I missed something evident I have checked through the archives and I
didn't find anything related to this problem.

Thank you very much for your help
Best regards

* By the way when \boldsymbold{ is typed a box is created and left and right
braces are also created which imho is confussing.



Re: pdf output of boldsymbol math does not work

2008-03-03 Thread Oscar Lopez
Paul A. Rubin [EMAIL PROTECTED] writes:

 
 Oscar Lopez wrote:
 
 Apparently, as of a recent version, LyX loads mathptmx automatically if 
 you select Times Roman as your Roman font.  Since mathptmx has no bold 
 symbols, I can see this being a problem, and I'm surprised it was done. 

Yes I didn't expect this behaviour, too.

   In the short term, the workarounds are either to switch your font to 
 something else or to export to LaTeX, manually edit out the 
 \usepackage{mathptmx} line and then manually compile the document.

Ok, the first workaround seems to me more versatile at least I do not have
particular constraints related to font choice. 

 
 Perhaps a developer can address why the change was made?
 

I have been using lyx since version 1.2.x and this caught me by surprise.

 As far as the braces are concerned, LyX is interpreting your typing of 
 '\boldsymbol{' as requesting both a bold symbol and a set of braces. 
 Try '\boldsymbol ' (note the space at the end).


Thanks Paul for your promptly and helpful answer.

Best regards



Re: pdf output of boldsymbol math does not work

2008-03-03 Thread Oscar Lopez
Jürgen Spitzmüller [EMAIL PROTECTED] writes:

 
 Paul A. Rubin wrote:
  Apparently, as of a recent version, LyX loads mathptmx automatically if
  you select Times Roman as your Roman font.  Since mathptmx has no bold
  symbols, I can see this being a problem, and I'm surprised it was done.
In the short term, the workarounds are either to switch your font to
  something else or to export to LaTeX, manually edit out the
  \usepackage{mathptmx} line and then manually compile the document.
 
  Perhaps a developer can address why the change was made?
 
 Short answer:
 http://tug.ctan.org/get/info/l2tabu/english/l2tabuen.pdf
 (sec. 2.3.1)

But as Paul has pointed out mathptmx has no bold symbols. Therefore lyx has to
load something to the preamble in the case math boldsymbols are required. Either
a \usepackage{bm} together with \usepackage{mathptmx} are added or only
\usepackage{bm} is loaded. Please note that the first solution produces math
boldsymbols with poor quality while the second uses Computer Modern fonts.

Best regards





pdf output of boldsymbol math does not work

2008-03-03 Thread Oscar Lopez
Dear all

It seems that pdf output of boldsymbol math does not show properly when the
command \boldsymbol is used. I am using lyx-1.5.4 (compiled version using
kubuntu and texlive)

Open a new document (article) enter a math inset with \boldsymbol* an enter a
letter \boldsymbol{a} \boldsymbol{\alpha}. Then, View->PDF (pdflatex) the math
fonts are not bold faced. The culprit seems to be the \usepackage{mathptmx}
included by lyx at preamble. Adding \usepackage{bm} creates a quasi bold face
math both by shifting slightly the font (the looking using a zoom is poor)
However, if the package mathptmx is not loaded and only the bm package is
loaded, the Computer Modern where the bold symbols are present will be used,
which is the correct way to go. 

Is there anybody experiencing something similar? 
Is there any work around to avoid the automatic insertion by lyx of the mathptmx
package? What is the recommended way to produce math boldsymbols using the
current version of lyx?

Sorry if I missed something evident I have checked through the archives and I
didn't find anything related to this problem.

Thank you very much for your help
Best regards

* By the way when \boldsymbold{ is typed a box is created and left and right
braces are also created which imho is confussing.



Re: pdf output of boldsymbol math does not work

2008-03-03 Thread Oscar Lopez
Paul A. Rubin <[EMAIL PROTECTED]> writes:

> 
> Oscar Lopez wrote:
> 
> Apparently, as of a recent version, LyX loads mathptmx automatically if 
> you select Times Roman as your Roman font.  Since mathptmx has no bold 
> symbols, I can see this being a problem, and I'm surprised it was done. 

Yes I didn't expect this behaviour, too.

>   In the short term, the workarounds are either to switch your font to 
> something else or to export to LaTeX, manually edit out the 
> \usepackage{mathptmx} line and then manually compile the document.

Ok, the first workaround seems to me more versatile at least I do not have
particular constraints related to font choice. 

> 
> Perhaps a developer can address why the change was made?
> 

I have been using lyx since version 1.2.x and this caught me by surprise.

> As far as the braces are concerned, LyX is interpreting your typing of 
> '\boldsymbol{' as requesting both a bold symbol and a set of braces. 
> Try '\boldsymbol ' (note the space at the end).


Thanks Paul for your promptly and helpful answer.

Best regards



Re: pdf output of boldsymbol math does not work

2008-03-03 Thread Oscar Lopez
Jürgen Spitzmüller <[EMAIL PROTECTED]> writes:

> 
> Paul A. Rubin wrote:
> > Apparently, as of a recent version, LyX loads mathptmx automatically if
> > you select Times Roman as your Roman font.  Since mathptmx has no bold
> > symbols, I can see this being a problem, and I'm surprised it was done.
> >   In the short term, the workarounds are either to switch your font to
> > something else or to export to LaTeX, manually edit out the
> > \usepackage{mathptmx} line and then manually compile the document.
> >
> > Perhaps a developer can address why the change was made?
> 
> Short answer:
> http://tug.ctan.org/get/info/l2tabu/english/l2tabuen.pdf
> (sec. 2.3.1)

But as Paul has pointed out mathptmx has no bold symbols. Therefore lyx has to
load something to the preamble in the case math boldsymbols are required. Either
a \usepackage{bm} together with \usepackage{mathptmx} are added or only
\usepackage{bm} is loaded. Please note that the first solution produces math
boldsymbols with poor quality while the second uses Computer Modern fonts.

Best regards





Re: bug using lyx-1.5.2 export at the command line?

2007-10-14 Thread Oscar Lopez
Jürgen Spitzmüller [EMAIL PROTECTED] writes:

Does it crash on any file or only on specific files? If the latter, do these
files contain something specufic, such as a branch inset?

It crash on a simple beamer lyx file (just a frame and an item, no text with
branches, no notes, nothing particular, just a branch defined in Document
Settings and activated)

Also, running the command in gdb to produce a backtrance would help.

Here you have:
% gdb lyx
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i486-linux-gnu...Using host libthread_db library
/lib/tls/i686/cmov/libthread_db.so.1.

(gdb) run :0 -e pdf2 test.lyx
Starting program: /usr/local/bin/lyx :0 -e pdf2 test.lyx
[Thread debugging using libthread_db enabled]
[New Thread -1220835648 (LWP 15502)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1220835648 (LWP 15502)]
0x0806f7a9 in lyx::Branch::Branch ()
(gdb) bt
#0  0x0806f7a9 in lyx::Branch::Branch ()
#1  0x0806fa77 in lyx::BranchList::add ()
#2  0x0809bbdf in lyx::BufferParams::readToken ()
#3  0x0807d741 in lyx::Buffer::readHeader ()
#4  0x0807deb5 in lyx::Buffer::readDocument ()
#5  0x0807f38c in lyx::Buffer::readFile ()
#6  0x0807fceb in lyx::Buffer::readFile ()
#7  0x0808b899 in lyx::(anonymous namespace)::readFile ()
#8  0x0808c1d1 in lyx::loadLyXFile ()
#9  0x08143079 in lyx::LyX::loadFiles ()
#10 0x08150465 in lyx::LyX::exec ()
#11 0x08067614 in main ()

I have played around a little bit and I can confirm that independently of the
document class everytime the document has a branch defined at Document Settings
(activated or not) the export from the command line fails. However File-
Export- PDF (pdflatex) it works.



Jürgen

Thanks Jurgen
Best regards
PS Sorry for the delay but yesterday gmane were down



Re: Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x

2007-10-14 Thread Oscar Lopez
Oscar Lopez [EMAIL PROTECTED] writes:

 However the old beamer lyx files with that
 produces latex errors.

Sorry I meant However the old beamer files using lyx-1.4.x with that produces
correct latex and pdf output.




Re: bug using lyx-1.5.2 export at the command line?

2007-10-14 Thread Oscar Lopez
Jürgen Spitzmüller [EMAIL PROTECTED] writes:

Does it crash on any file or only on specific files? If the latter, do these
files contain something specufic, such as a branch inset?

It crash on a simple beamer lyx file (just a frame and an item, no text with
branches, no notes, nothing particular, just a branch defined in Document
Settings and activated)

Also, running the command in gdb to produce a backtrance would help.

Here you have:
% gdb lyx
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i486-linux-gnu...Using host libthread_db library
/lib/tls/i686/cmov/libthread_db.so.1.

(gdb) run :0 -e pdf2 test.lyx
Starting program: /usr/local/bin/lyx :0 -e pdf2 test.lyx
[Thread debugging using libthread_db enabled]
[New Thread -1220835648 (LWP 15502)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1220835648 (LWP 15502)]
0x0806f7a9 in lyx::Branch::Branch ()
(gdb) bt
#0  0x0806f7a9 in lyx::Branch::Branch ()
#1  0x0806fa77 in lyx::BranchList::add ()
#2  0x0809bbdf in lyx::BufferParams::readToken ()
#3  0x0807d741 in lyx::Buffer::readHeader ()
#4  0x0807deb5 in lyx::Buffer::readDocument ()
#5  0x0807f38c in lyx::Buffer::readFile ()
#6  0x0807fceb in lyx::Buffer::readFile ()
#7  0x0808b899 in lyx::(anonymous namespace)::readFile ()
#8  0x0808c1d1 in lyx::loadLyXFile ()
#9  0x08143079 in lyx::LyX::loadFiles ()
#10 0x08150465 in lyx::LyX::exec ()
#11 0x08067614 in main ()

I have played around a little bit and I can confirm that independently of the
document class everytime the document has a branch defined at Document Settings
(activated or not) the export from the command line fails. However File-
Export- PDF (pdflatex) it works.



Jürgen

Thanks Jurgen
Best regards
PS Sorry for the delay but yesterday gmane were down



Re: Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x

2007-10-14 Thread Oscar Lopez
Oscar Lopez [EMAIL PROTECTED] writes:

 However the old beamer lyx files with that
 produces latex errors.

Sorry I meant However the old beamer files using lyx-1.4.x with that produces
correct latex and pdf output.




Re: bug using lyx-1.5.2 export at the command line?

2007-10-14 Thread Oscar Lopez
Jürgen Spitzmüller <[EMAIL PROTECTED]> writes:

>Does it crash on any file or only on specific files? If the latter, do these
>files contain something specufic, such as a branch inset?

It crash on a simple beamer lyx file (just a frame and an item, no text with
branches, no notes, nothing particular, just a branch defined in Document
Settings and activated)

>Also, running the command in gdb to produce a backtrance would help.

Here you have:
% gdb lyx
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library
"/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run :0 -e pdf2 test.lyx
Starting program: /usr/local/bin/lyx :0 -e pdf2 test.lyx
[Thread debugging using libthread_db enabled]
[New Thread -1220835648 (LWP 15502)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1220835648 (LWP 15502)]
0x0806f7a9 in lyx::Branch::Branch ()
(gdb) bt
#0  0x0806f7a9 in lyx::Branch::Branch ()
#1  0x0806fa77 in lyx::BranchList::add ()
#2  0x0809bbdf in lyx::BufferParams::readToken ()
#3  0x0807d741 in lyx::Buffer::readHeader ()
#4  0x0807deb5 in lyx::Buffer::readDocument ()
#5  0x0807f38c in lyx::Buffer::readFile ()
#6  0x0807fceb in lyx::Buffer::readFile ()
#7  0x0808b899 in lyx::(anonymous namespace)::readFile ()
#8  0x0808c1d1 in lyx::loadLyXFile ()
#9  0x08143079 in lyx::LyX::loadFiles ()
#10 0x08150465 in lyx::LyX::exec ()
#11 0x08067614 in main ()

I have played around a little bit and I can confirm that independently of the
document class everytime the document has a branch defined at Document Settings
(activated or not) the export from the command line fails. However File->
Export-> PDF (pdflatex) it works.


>
>Jürgen

Thanks Jurgen
Best regards
PS Sorry for the delay but yesterday gmane were down



Re: Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x

2007-10-14 Thread Oscar Lopez
Oscar Lopez <[EMAIL PROTECTED]> writes:

> However the old beamer lyx files with that
> produces latex errors.

Sorry I meant "However the old beamer files using lyx-1.4.x with that produces
correct latex and pdf output."




bug using lyx-1.5.2 export at the command line?

2007-10-12 Thread Oscar Lopez
Hello 

When I try to export a pdf file using the command line at my linux box the I get
the following message 
% lyx -e pdf2 file.lyx
lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting instructions
in Help-Introduction and send us a bug report, if necessary. Thanks !
Bye.

Does anybody experience the same problem? Is this a know bug?

If it helps I compiled the tar.gz file and 
% lyx --version
LyX 1.5.2 (Fri, Oct 5, 2007)
Built on Oct 10 2007, 18:21:05
Configuration
  Host type:i686-pc-linux-gnu
  Special build flags:  aiksaurus pch  use-aspell use-ispell
  C   Compiler: gcc
  C   Compiler LyX flags:
  C   Compiler flags: -O2
  C++ Compiler: g++ (4.0.3)
  C++ Compiler LyX flags:
  C++ Compiler flags: -O2
  Linker flags:
  Linker user flags:
  Qt 4 Frontend:
  Qt 4 version: 4.1.2
  Packaging:posix
  LyX binary dir:   /usr/local/bin
  LyX files dir:/usr/local/share/lyx



Thanks for your help
Best regards




Re: Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x

2007-10-12 Thread Oscar Lopez
José Matos [EMAIL PROTECTED] writes:

 I think that in this case the problem is not lyx2lyx but it is a bug that is 
 scheduled to be fixed in 1.5.3.

Please could you elaborate more on that? I mean, I have tried to produce, using
lyx-1.5.2, a minimal example showing the problem and I haven't succeeded. I put
a note inlined within the text (using lyx-1.5.2), this is what lyx-1.5.2 (latex)
complains, and everything is fine. However the old beamer lyx files with that
produces latex errors.

What is the bug you refer to? 

 If you have any problem with convertions from previous version please report 
 them here. 

Thanks
Best regards





bug using lyx-1.5.2 export at the command line?

2007-10-12 Thread Oscar Lopez
Hello 

When I try to export a pdf file using the command line at my linux box the I get
the following message 
% lyx -e pdf2 file.lyx
lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting instructions
in Help-Introduction and send us a bug report, if necessary. Thanks !
Bye.

Does anybody experience the same problem? Is this a know bug?

If it helps I compiled the tar.gz file and 
% lyx --version
LyX 1.5.2 (Fri, Oct 5, 2007)
Built on Oct 10 2007, 18:21:05
Configuration
  Host type:i686-pc-linux-gnu
  Special build flags:  aiksaurus pch  use-aspell use-ispell
  C   Compiler: gcc
  C   Compiler LyX flags:
  C   Compiler flags: -O2
  C++ Compiler: g++ (4.0.3)
  C++ Compiler LyX flags:
  C++ Compiler flags: -O2
  Linker flags:
  Linker user flags:
  Qt 4 Frontend:
  Qt 4 version: 4.1.2
  Packaging:posix
  LyX binary dir:   /usr/local/bin
  LyX files dir:/usr/local/share/lyx



Thanks for your help
Best regards




Re: Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x

2007-10-12 Thread Oscar Lopez
José Matos [EMAIL PROTECTED] writes:

 I think that in this case the problem is not lyx2lyx but it is a bug that is 
 scheduled to be fixed in 1.5.3.

Please could you elaborate more on that? I mean, I have tried to produce, using
lyx-1.5.2, a minimal example showing the problem and I haven't succeeded. I put
a note inlined within the text (using lyx-1.5.2), this is what lyx-1.5.2 (latex)
complains, and everything is fine. However the old beamer lyx files with that
produces latex errors.

What is the bug you refer to? 

 If you have any problem with convertions from previous version please report 
 them here. 

Thanks
Best regards





bug using lyx-1.5.2 export at the command line?

2007-10-12 Thread Oscar Lopez
Hello 

When I try to export a pdf file using the command line at my linux box the I get
the following message 
% lyx -e pdf2 file.lyx
lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting instructions
in Help->Introduction and send us a bug report, if necessary. Thanks !
Bye.

Does anybody experience the same problem? Is this a know bug?

If it helps I compiled the tar.gz file and 
% lyx --version
LyX 1.5.2 (Fri, Oct 5, 2007)
Built on Oct 10 2007, 18:21:05
Configuration
  Host type:i686-pc-linux-gnu
  Special build flags:  aiksaurus pch  use-aspell use-ispell
  C   Compiler: gcc
  C   Compiler LyX flags:
  C   Compiler flags: -O2
  C++ Compiler: g++ (4.0.3)
  C++ Compiler LyX flags:
  C++ Compiler flags: -O2
  Linker flags:
  Linker user flags:
  Qt 4 Frontend:
  Qt 4 version: 4.1.2
  Packaging:posix
  LyX binary dir:   /usr/local/bin
  LyX files dir:/usr/local/share/lyx



Thanks for your help
Best regards




Re: Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x

2007-10-12 Thread Oscar Lopez
José Matos <[EMAIL PROTECTED]> writes:

> I think that in this case the problem is not lyx2lyx but it is a bug that is 
> scheduled to be fixed in 1.5.3.

Please could you elaborate more on that? I mean, I have tried to produce, using
lyx-1.5.2, a minimal example showing the problem and I haven't succeeded. I put
a note inlined within the text (using lyx-1.5.2), this is what lyx-1.5.2 (latex)
complains, and everything is fine. However the old beamer lyx files with that
produces latex errors.

What is the bug you refer to? 

> If you have any problem with convertions from previous version please report 
> them here. 

Thanks
Best regards





Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x

2007-10-11 Thread Oscar Lopez
Hello lyxers

Yesterday I updated from lyx-1.4.x to lyx-1.5.2 and first of all I would like to
thank to developers for such a great software. 

The first try I did when testing the new version was to load a beamer
presentation I was working on. The first thing I got was a bunch of errors in
the Lyx: latex Errors window, something like this:

Latex Error: \begin{center} on input 211 ended by [EMAIL PROTECTED]
Extra }, or forgotten \endgroup
You can't use '\prevdepth' in horizontal mode
Missing $ Inserted,
Missing number, treated as zero.



I finally managed to compile the document by moving to a new paragraph all lyx
notes and branches that were inlined within the text. What worries me is that I
have many presentations made in the past that I frequently use and I expect that
the same problem can appear. Has anybody experienced the same problem or similar
ones?

Another notorius difference is the new font selection mechanism. In lyx-1.4.x I
selected the fonts of the document to Times. Now the new font selection window
it says Default Family: Default and Roman: Times Roman. The problem is twofold

- the generated pdf embbeds type 3 fonts (bitmapped)
- the look of the fonts is quite different

Why lyx-1.5.2 does not load the previously used by lyx-1.4.x font correctly? And
by the way, when I selected Font: Times in lyx-1.4.x what is the font that I
have to select in lyx-1.5.2 to get the same printable results.

Having said that, I would like to underline that I really appreciate the new
features lyx-1.5.2 has and I am looking forward to working on a daily basis with
such a beautiful creature!

Thanks a lot for all your help
Best wishes




Re: Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x

2007-10-11 Thread Oscar Lopez
Paul A. Rubin [EMAIL PROTECTED] writes:

 
 No, I've had no problems opening old beamer presentations (and, like 
 you, I have a bunch of them).  The format for LyX document files evolves 
 with new releases, and there is a conversion tool included with LyX to 
 convert older format LyX files to the current format.  It works pretty 
 well but perhaps not perfectly; it may have tripped over something a bit 
 unusual in your presentation file.  Whether it will have similar 
 problems with other presentations is hard to predict.

ok. I understand that. I think that the source of the problem could be that I
use a beamer.layout which I do not remember well where I got, and there were
differences with respect the one that the conversion tool covered, but I am not
sure. Anyway, I can live with this.

  
  - the generated pdf embbeds type 3 fonts (bitmapped)
  - the look of the fonts is quite different
  
 
 I believe that if you want the Adobe standard fonts, you should select 
 Times Roman, Helvetica and Courier for Roman, San Serif and Typewriter 
 respectively.  

Yes, that did the trick.

 If your imported slide show had the Roman font set to 
 Times Roman and you got bitmapped fonts anyway, my guess is that they 
 were for special characters (math symbols, san serif fonts, something 
 like that).

The default font of the beamer.layout was San Serif and lyx-1.5.2 selects
Default for the San Serif font and i think that this was the problem. When I
have selected Helvetica for San Serif following your advice everthing looks the
same as before (including Type 1 fonts). 

Thanks a lot for your help Paul.

Best wishes



Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x

2007-10-11 Thread Oscar Lopez
Hello lyxers

Yesterday I updated from lyx-1.4.x to lyx-1.5.2 and first of all I would like to
thank to developers for such a great software. 

The first try I did when testing the new version was to load a beamer
presentation I was working on. The first thing I got was a bunch of errors in
the Lyx: latex Errors window, something like this:

Latex Error: \begin{center} on input 211 ended by [EMAIL PROTECTED]
Extra }, or forgotten \endgroup
You can't use '\prevdepth' in horizontal mode
Missing $ Inserted,
Missing number, treated as zero.



I finally managed to compile the document by moving to a new paragraph all lyx
notes and branches that were inlined within the text. What worries me is that I
have many presentations made in the past that I frequently use and I expect that
the same problem can appear. Has anybody experienced the same problem or similar
ones?

Another notorius difference is the new font selection mechanism. In lyx-1.4.x I
selected the fonts of the document to Times. Now the new font selection window
it says Default Family: Default and Roman: Times Roman. The problem is twofold

- the generated pdf embbeds type 3 fonts (bitmapped)
- the look of the fonts is quite different

Why lyx-1.5.2 does not load the previously used by lyx-1.4.x font correctly? And
by the way, when I selected Font: Times in lyx-1.4.x what is the font that I
have to select in lyx-1.5.2 to get the same printable results.

Having said that, I would like to underline that I really appreciate the new
features lyx-1.5.2 has and I am looking forward to working on a daily basis with
such a beautiful creature!

Thanks a lot for all your help
Best wishes




Re: Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x

2007-10-11 Thread Oscar Lopez
Paul A. Rubin [EMAIL PROTECTED] writes:

 
 No, I've had no problems opening old beamer presentations (and, like 
 you, I have a bunch of them).  The format for LyX document files evolves 
 with new releases, and there is a conversion tool included with LyX to 
 convert older format LyX files to the current format.  It works pretty 
 well but perhaps not perfectly; it may have tripped over something a bit 
 unusual in your presentation file.  Whether it will have similar 
 problems with other presentations is hard to predict.

ok. I understand that. I think that the source of the problem could be that I
use a beamer.layout which I do not remember well where I got, and there were
differences with respect the one that the conversion tool covered, but I am not
sure. Anyway, I can live with this.

  
  - the generated pdf embbeds type 3 fonts (bitmapped)
  - the look of the fonts is quite different
  
 
 I believe that if you want the Adobe standard fonts, you should select 
 Times Roman, Helvetica and Courier for Roman, San Serif and Typewriter 
 respectively.  

Yes, that did the trick.

 If your imported slide show had the Roman font set to 
 Times Roman and you got bitmapped fonts anyway, my guess is that they 
 were for special characters (math symbols, san serif fonts, something 
 like that).

The default font of the beamer.layout was San Serif and lyx-1.5.2 selects
Default for the San Serif font and i think that this was the problem. When I
have selected Helvetica for San Serif following your advice everthing looks the
same as before (including Type 1 fonts). 

Thanks a lot for your help Paul.

Best wishes



Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x

2007-10-11 Thread Oscar Lopez
Hello lyxers

Yesterday I updated from lyx-1.4.x to lyx-1.5.2 and first of all I would like to
thank to developers for such a great software. 

The first try I did when testing the new version was to load a beamer
presentation I was working on. The first thing I got was a bunch of errors in
the Lyx: latex Errors window, something like this:

Latex Error: \begin{center} on input 211 ended by [EMAIL PROTECTED]
Extra }, or forgotten \endgroup
You can't use '\prevdepth' in horizontal mode
Missing $ Inserted,
Missing number, treated as zero.



I finally managed to compile the document by moving to a new paragraph all lyx
notes and branches that were inlined within the text. What worries me is that I
have many presentations made in the past that I frequently use and I expect that
the same problem can appear. Has anybody experienced the same problem or similar
ones?

Another notorius difference is the new font selection mechanism. In lyx-1.4.x I
selected the fonts of the document to Times. Now the new font selection window
it says Default Family: Default and Roman: Times Roman. The problem is twofold

- the generated pdf embbeds type 3 fonts (bitmapped)
- the look of the fonts is quite different

Why lyx-1.5.2 does not load the previously used by lyx-1.4.x font correctly? And
by the way, when I selected Font: Times in lyx-1.4.x what is the font that I
have to select in lyx-1.5.2 to get the same printable results.

Having said that, I would like to underline that I really appreciate the new
features lyx-1.5.2 has and I am looking forward to working on a daily basis with
such a beautiful creature!

Thanks a lot for all your help
Best wishes




Re: Differences using beamer class in lyx-1.5.2 versus lyx-1.4.x

2007-10-11 Thread Oscar Lopez
Paul A. Rubin <[EMAIL PROTECTED]> writes:

> 
> No, I've had no problems opening old beamer presentations (and, like 
> you, I have a bunch of them).  The format for LyX document files evolves 
> with new releases, and there is a conversion tool included with LyX to 
> convert older format LyX files to the current format.  It works pretty 
> well but perhaps not perfectly; it may have tripped over something a bit 
> unusual in your presentation file.  Whether it will have similar 
> problems with other presentations is hard to predict.

ok. I understand that. I think that the source of the problem could be that I
use a beamer.layout which I do not remember well where I got, and there were
differences with respect the one that the conversion tool covered, but I am not
sure. Anyway, I can live with this.

> > 
> > - the generated pdf embbeds type 3 fonts (bitmapped)
> > - the look of the fonts is quite different
> > 
> 
> I believe that if you want the Adobe standard fonts, you should select 
> Times Roman, Helvetica and Courier for Roman, San Serif and Typewriter 
> respectively.  

Yes, that did the trick.

> If your imported slide show had the Roman font set to 
> Times Roman and you got bitmapped fonts anyway, my guess is that they 
> were for special characters (math symbols, san serif fonts, something 
> like that).

The default font of the beamer.layout was San Serif and lyx-1.5.2 selects
"Default" for the San Serif font and i think that this was the problem. When I
have selected Helvetica for San Serif following your advice everthing looks the
same as before (including Type 1 fonts). 

Thanks a lot for your help Paul.

Best wishes



Re: xfig external inset (pstex pstex_t mechanism)

2006-07-28 Thread Oscar Lopez

Quoting Georg Baum [EMAIL PROTECTED]:
 [EMAIL PROTECTED] wrote:

 I thought that external inset shipped with 1.4.x was able to manage
 this situation, perhaps I am wrong.

 It should. Please send a minimal example .lyx file + .fig file, so that
 we can reproduce the problem.

Attached a minimal example

 PS: And remove the disclaimer, that does not make sense on a public
 mailing list.

Sorry about that, I think that I cannot control this, ,
Hope that from this account there is not disclaimer


foo.lyx
Description: application/lyx


foa.fig
Description: application/xfig


Re: xfig external inset (pstex pstex_t mechanism)

2006-07-28 Thread Oscar Lopez

Quoting Georg Baum [EMAIL PROTECTED]:
 Jean-Pierre Chretien wrote:

 Seems that lyx does not add the required \usepackage{xcolor}
when an xfig
 inset is present, I had to add it manually to make it work.

I added \usepackage{xcolor} to the preamble and it worked as expected

 Why xcolor? color works for me. xcolor would require to change the
C++  sources ;-(

George, I followed too, your suggestion about external_template, 
independently of the above solution, and it worked too.


Thanks to both of you

As a side note, how the external inset knows if the fig file must be 
exported as combined ps/latex, it scans the fig file looking for the 
special flag of the text?


Best wishes


Re: xfig external inset (pstex pstex_t mechanism)

2006-07-28 Thread Oscar Lopez

 Oscar Lopez wrote:

 As a side note, how the external inset knows if the fig file must be
 exported as combined ps/latex, it scans the fig file looking for the
 special flag of the text?

 No. As you can see from the definition of the xfig external inset it 
creates
 a file in pstex format (for latex) or pdftex format (for pdflatex). 
If you

 look up the fig-pstex and fig-pdftex converters you can see that those
 files are create by the scripts fig2pstex.py and fig2pdftex.py,
 respectively. These scripts invoke fig2dev, and it is finally that 
program

 that creates a bit of wrapper LaTeX code that takes care of the special
 text.
 This may look complicated, but it works well, and the advantage over
 examining the .fig file in LyX is that we do not need to know anything
 about the .fig file format, so this works even if the .fig file format
 changes.

Thank you for the detailed explanation

Very smart and good work! Keep it up!

Best wishes!




Re: xfig external inset (pstex pstex_t mechanism)

2006-07-28 Thread Oscar Lopez

Quoting Georg Baum [EMAIL PROTECTED]:
 [EMAIL PROTECTED] wrote:

 I thought that external inset shipped with 1.4.x was able to manage
 this situation, perhaps I am wrong.

 It should. Please send a minimal example .lyx file + .fig file, so that
 we can reproduce the problem.

Attached a minimal example

 PS: And remove the disclaimer, that does not make sense on a public
 mailing list.

Sorry about that, I think that I cannot control this, ,
Hope that from this account there is not disclaimer


foo.lyx
Description: application/lyx


foa.fig
Description: application/xfig


Re: xfig external inset (pstex pstex_t mechanism)

2006-07-28 Thread Oscar Lopez

Quoting Georg Baum [EMAIL PROTECTED]:
 Jean-Pierre Chretien wrote:

 Seems that lyx does not add the required \usepackage{xcolor}
when an xfig
 inset is present, I had to add it manually to make it work.

I added \usepackage{xcolor} to the preamble and it worked as expected

 Why xcolor? color works for me. xcolor would require to change the
C++  sources ;-(

George, I followed too, your suggestion about external_template, 
independently of the above solution, and it worked too.


Thanks to both of you

As a side note, how the external inset knows if the fig file must be 
exported as combined ps/latex, it scans the fig file looking for the 
special flag of the text?


Best wishes


Re: xfig external inset (pstex pstex_t mechanism)

2006-07-28 Thread Oscar Lopez

 Oscar Lopez wrote:

 As a side note, how the external inset knows if the fig file must be
 exported as combined ps/latex, it scans the fig file looking for the
 special flag of the text?

 No. As you can see from the definition of the xfig external inset it 
creates
 a file in pstex format (for latex) or pdftex format (for pdflatex). 
If you

 look up the fig-pstex and fig-pdftex converters you can see that those
 files are create by the scripts fig2pstex.py and fig2pdftex.py,
 respectively. These scripts invoke fig2dev, and it is finally that 
program

 that creates a bit of wrapper LaTeX code that takes care of the special
 text.
 This may look complicated, but it works well, and the advantage over
 examining the .fig file in LyX is that we do not need to know anything
 about the .fig file format, so this works even if the .fig file format
 changes.

Thank you for the detailed explanation

Very smart and good work! Keep it up!

Best wishes!




Re: xfig external inset (pstex pstex_t mechanism)

2006-07-28 Thread Oscar Lopez

Quoting Georg Baum <[EMAIL PROTECTED]>:
> [EMAIL PROTECTED] wrote:
>
>> I thought that external inset shipped with 1.4.x was able to manage
>> this situation, perhaps I am wrong.
>
> It should. Please send a minimal example .lyx file + .fig file, so that
> we can reproduce the problem.

Attached a minimal example

> PS: And remove the disclaimer, that does not make sense on a public
> mailing list.

Sorry about that, I think that I cannot control this, ,
Hope that from this account there is not disclaimer


foo.lyx
Description: application/lyx


foa.fig
Description: application/xfig


Re: xfig external inset (pstex pstex_t mechanism)

2006-07-28 Thread Oscar Lopez

Quoting Georg Baum <[EMAIL PROTECTED]>:
> Jean-Pierre Chretien wrote:
>
>> Seems that lyx does not add the required \usepackage{xcolor}
>>when an xfig
>> inset is present, I had to add it manually to make it work.

I added \usepackage{xcolor} to the preamble and it worked as expected
>
> Why xcolor? color works for me. xcolor would require to change the
>>C++  sources ;-(

George, I followed too, your suggestion about external_template, 
independently of the above solution, and it worked too.


Thanks to both of you

As a side note, how the external inset knows if the fig file must be 
exported as combined ps/latex, it scans the fig file looking for the 
special flag of the text?


Best wishes


Re: xfig external inset (pstex pstex_t mechanism)

2006-07-28 Thread Oscar Lopez

> Oscar Lopez wrote:
>
>> As a side note, how the external inset knows if the fig file must be
>> exported as combined ps/latex, it scans the fig file looking for the
>> special flag of the text?
>
> No. As you can see from the definition of the xfig external inset it 
creates
> a file in pstex format (for latex) or pdftex format (for pdflatex). 
If you

> look up the fig->pstex and fig->pdftex converters you can see that those
> files are create by the scripts fig2pstex.py and fig2pdftex.py,
> respectively. These scripts invoke fig2dev, and it is finally that 
program

> that creates a bit of wrapper LaTeX code that takes care of the special
> text.
> This may look complicated, but it works well, and the advantage over
> examining the .fig file in LyX is that we do not need to know anything
> about the .fig file format, so this works even if the .fig file format
> changes.

Thank you for the detailed explanation

Very smart and good work! Keep it up!

Best wishes!




Re: Floats over more than one page

2002-02-07 Thread Oscar Lopez

Dekel Tsur wrote:
 
 On Wed, Feb 06, 2002 at 12:14:00PM +0100, Oscar Lopez wrote:
 
 Use something like this:
 
 In the preamble:
 \usepackage{framed}
 \def\xcaption#1{%
   \fs@boxed%
   \def\@captype{algorithm}%
   \caption{#1}%
   \unvbox\@floatcapt\par}
 
 and in the text use:
 \begin{framed}
   .
   .
 \end{framed}
 \xcaption{the caption}
 

Thanks a lot Dekel, it works really really nice


-- 
http://www.iit.upco.es/~oscar
If pro is the opposite of con, what is the opposite of progress?



Re: Floats over more than one page

2002-02-07 Thread Oscar Lopez

Dekel Tsur wrote:
 
 On Wed, Feb 06, 2002 at 12:14:00PM +0100, Oscar Lopez wrote:
 
 Use something like this:
 
 In the preamble:
 \usepackage{framed}
 \def\xcaption#1{%
   \fs@boxed%
   \def\@captype{algorithm}%
   \caption{#1}%
   \unvbox\@floatcapt\par}
 
 and in the text use:
 \begin{framed}
   .
   .
 \end{framed}
 \xcaption{the caption}
 

Thanks a lot Dekel, it works really really nice


-- 
http://www.iit.upco.es/~oscar
If pro is the opposite of con, what is the opposite of progress?



Re: "Floats" over more than one page

2002-02-07 Thread Oscar Lopez

Dekel Tsur wrote:
> 
> On Wed, Feb 06, 2002 at 12:14:00PM +0100, Oscar Lopez wrote:
> 
> Use something like this:
> 
> In the preamble:
> \usepackage{framed}
> \def\xcaption#1{%
>   \fs@boxed%
>   \def\@captype{algorithm}%
>   \caption{#1}%
>   \unvbox\@floatcapt\par}
> 
> and in the text use:
> \begin{framed}
>   .
>   .
> \end{framed}
> \xcaption{the caption}
> 

Thanks a lot Dekel, it works really really nice


-- 
http://www.iit.upco.es/~oscar
If pro is the opposite of con, what is the opposite of progress?



Floats over more than one page

2002-02-06 Thread Oscar Lopez

Hello eveyone

I have a book-based document and I am using the algorithm floats. The
document options are boxed and chapter and in this way the look of the
algorithm is boxed with the caption located at the bottm of the frame
with the numbering based on chapter number. I have only one long
algortihm that extents over more than one page. So, I checked the
amazing help provided by our beloved Herbert and, as usual, I found a
useful tip

http://www.lyx.org/help/floats/nonFloat.php3

So I tried to patch the Table example to cover the algorithm case

\newenvironment{myAlgorithm}[1] {%  caption as parameter
  \stepcounter{algorithm}
  \vspace{1ex}
  \addcontentsline{lot}{section}{\thealgorithm\hspace{0.75em} #1}
  \center{\textbf{Algorithm \thealgorithm : }#1}%
  }
  {%
\vspace{1ex}%
\addtocounter{algorithm}{-1}%
  }

and it works but the caption is located at the top of the algorithm, the
text is centered inside the float and there is no framebox. So, please
could you point me out a way to solve these problems? i.e

1. The caption located at the bottom of the algorithm
2. The framebox extended over more than one page


Thanks a lot for your help
Greetings
Oscar



-- 
http://www.iit.upco.es/~oscar
Good day to avoid cops.  Crawl to school.



Floats over more than one page

2002-02-06 Thread Oscar Lopez

Hello eveyone

I have a book-based document and I am using the algorithm floats. The
document options are boxed and chapter and in this way the look of the
algorithm is boxed with the caption located at the bottm of the frame
with the numbering based on chapter number. I have only one long
algortihm that extents over more than one page. So, I checked the
amazing help provided by our beloved Herbert and, as usual, I found a
useful tip

http://www.lyx.org/help/floats/nonFloat.php3

So I tried to patch the Table example to cover the algorithm case

\newenvironment{myAlgorithm}[1] {%  caption as parameter
  \stepcounter{algorithm}
  \vspace{1ex}
  \addcontentsline{lot}{section}{\thealgorithm\hspace{0.75em} #1}
  \center{\textbf{Algorithm \thealgorithm : }#1}%
  }
  {%
\vspace{1ex}%
\addtocounter{algorithm}{-1}%
  }

and it works but the caption is located at the top of the algorithm, the
text is centered inside the float and there is no framebox. So, please
could you point me out a way to solve these problems? i.e

1. The caption located at the bottom of the algorithm
2. The framebox extended over more than one page


Thanks a lot for your help
Greetings
Oscar



-- 
http://www.iit.upco.es/~oscar
Good day to avoid cops.  Crawl to school.



"Floats" over more than one page

2002-02-06 Thread Oscar Lopez

Hello eveyone

I have a book-based document and I am using the algorithm floats. The
document options are boxed and chapter and in this way the look of the
algorithm is boxed with the caption located at the bottm of the frame
with the numbering based on chapter number. I have only one long
algortihm that extents over more than one page. So, I checked the
amazing help provided by our beloved Herbert and, as usual, I found a
useful tip

http://www.lyx.org/help/floats/nonFloat.php3

So I tried to patch the Table example to cover the algorithm case

\newenvironment{myAlgorithm}[1] {%  caption as parameter
  \stepcounter{algorithm}
  \vspace{1ex}
  \addcontentsline{lot}{section}{\thealgorithm\hspace{0.75em} #1}
  \center{\textbf{Algorithm \thealgorithm : }#1}%
  }
  {%
\vspace{1ex}%
\addtocounter{algorithm}{-1}%
  }

and it works but the caption is located at the top of the algorithm, the
text is centered inside the float and there is no framebox. So, please
could you point me out a way to solve these problems? i.e

1. The caption located at the bottom of the algorithm
2. The framebox extended over more than one page


Thanks a lot for your help
Greetings
Oscar



-- 
http://www.iit.upco.es/~oscar
Good day to avoid cops.  Crawl to school.



Re: \mathbb{R}

2001-11-21 Thread Oscar Lopez

[EMAIL PROTECTED] wrote:
 
 Hola
 
 Tengo un problema cuando intento poner letras tipo mathbb. Antepongo a
 la letra el codigo latex \mathbb{R}, por ejemplo, pero me da error de
 Latex cuando quiero ver el pdflatex. Trabajo con la version 1.1.6fix1
 

Layout-Document-Extra-Use AMS Math

and then

Ctrlm \mathbb{ R

Please, try to ask your questions in english because the language of the
list is english. If you do so, most people will help you

Hope it helps

 Gracias

-- 
http://www.iit.upco.es/~oscar
Look ere ye leap.
-- John Heywood



Re: \mathbb{R}

2001-11-21 Thread Oscar Lopez

[EMAIL PROTECTED] wrote:
 
 Hola
 
 Tengo un problema cuando intento poner letras tipo mathbb. Antepongo a
 la letra el codigo latex \mathbb{R}, por ejemplo, pero me da error de
 Latex cuando quiero ver el pdflatex. Trabajo con la version 1.1.6fix1
 

Layout-Document-Extra-Use AMS Math

and then

Ctrlm \mathbb{ R

Please, try to ask your questions in english because the language of the
list is english. If you do so, most people will help you

Hope it helps

 Gracias

-- 
http://www.iit.upco.es/~oscar
Look ere ye leap.
-- John Heywood



Re: \mathbb{R}

2001-11-21 Thread Oscar Lopez

[EMAIL PROTECTED] wrote:
> 
> Hola
> 
> Tengo un problema cuando intento poner letras tipo mathbb. Antepongo a
> la letra el codigo latex \mathbb{R}, por ejemplo, pero me da error de
> Latex cuando quiero ver el pdflatex. Trabajo con la version 1.1.6fix1
> 

Layout->Document->Extra->Use AMS Math

and then

m \mathbb{ R

Please, try to ask your questions in english because the language of the
list is english. If you do so, most people will help you

Hope it helps

> Gracias

-- 
http://www.iit.upco.es/~oscar
Look ere ye leap.
-- John Heywood



Re: movie in pdflatex

2001-11-06 Thread Oscar Lopez

Torben Lund wrote:
 
 Dear lyx-users
 
 Is it possible to in include a movie (mpeg/avi/mov ...) in a PDF
 document using pdflatex?

To include avi files you can use the following command in the preamble:

\newcommand{\video}[5]{\vspace{#3}\hspace{#2}{\pdfannot width #4 height
#5 depth 0cm { /Subtype /Movie /C [1 0 0] /Border [0 0 3] /Movie
/Poster true /F (#1) }}}


and then, by means of ERT

\video{g.avi}{4cm}{12cm}{12cm}{12cm}

where the first argument is the name of the file, and the 2nd and 3rd
control 
the location of one corner, and 4th and 5th  the width and height of the
box
You can control the color of the frame and thickness by modifying
/Border.

Hope it helps

PS If you are using linix the avi file won't display properly, as far as
I know, but the pdf can be created in linux and can be displayed
correctly in windoze

PS For the other formats, i.e. mpeg and mov I do not know if the trick
will work, I have never tried


 
 Regards Torben Lund
 
   
  Name: torbenl.vcf
torbenl.vcf   Type: VCard (text/x-vcard)
  Encoding: 7bit
   Description: Card for Torben Lund

-- 
http://www.iit.upco.es/~oscar
You should emulate your heros, but don't carry it too far.  Especially
if they are dead.



Re: movie in pdflatex

2001-11-06 Thread Oscar Lopez

Torben Lund wrote:
 
 Dear lyx-users
 
 Is it possible to in include a movie (mpeg/avi/mov ...) in a PDF
 document using pdflatex?

To include avi files you can use the following command in the preamble:

\newcommand{\video}[5]{\vspace{#3}\hspace{#2}{\pdfannot width #4 height
#5 depth 0cm { /Subtype /Movie /C [1 0 0] /Border [0 0 3] /Movie
/Poster true /F (#1) }}}


and then, by means of ERT

\video{g.avi}{4cm}{12cm}{12cm}{12cm}

where the first argument is the name of the file, and the 2nd and 3rd
control 
the location of one corner, and 4th and 5th  the width and height of the
box
You can control the color of the frame and thickness by modifying
/Border.

Hope it helps

PS If you are using linix the avi file won't display properly, as far as
I know, but the pdf can be created in linux and can be displayed
correctly in windoze

PS For the other formats, i.e. mpeg and mov I do not know if the trick
will work, I have never tried


 
 Regards Torben Lund
 
   
  Name: torbenl.vcf
torbenl.vcf   Type: VCard (text/x-vcard)
  Encoding: 7bit
   Description: Card for Torben Lund

-- 
http://www.iit.upco.es/~oscar
You should emulate your heros, but don't carry it too far.  Especially
if they are dead.



Re: movie in pdflatex

2001-11-06 Thread Oscar Lopez

Torben Lund wrote:
> 
> Dear lyx-users
> 
> Is it possible to in include a movie (mpeg/avi/mov ...) in a PDF
> document using pdflatex?

To include avi files you can use the following command in the preamble:

\newcommand{\video}[5]{\vspace{#3}\hspace{#2}{\pdfannot width #4 height
#5 depth 0cm { /Subtype /Movie /C [1 0 0] /Border [0 0 3] /Movie
<> }}}


and then, by means of ERT

\video{g.avi}{4cm}{12cm}{12cm}{12cm}

where the first argument is the name of the file, and the 2nd and 3rd
control 
the location of one corner, and 4th and 5th  the width and height of the
box
You can control the color of the frame and thickness by modifying
/Border.

Hope it helps

PS If you are using linix the avi file won't display properly, as far as
I know, but the pdf can be created in linux and can be displayed
correctly in windoze

PS For the other formats, i.e. mpeg and mov I do not know if the trick
will work, I have never tried


> 
> Regards Torben Lund
> 
>   
>  Name: torbenl.vcf
>torbenl.vcf   Type: VCard (text/x-vcard)
>  Encoding: 7bit
>   Description: Card for Torben Lund

-- 
http://www.iit.upco.es/~oscar
You should emulate your heros, but don't carry it too far.  Especially
if they are dead.



dvips + psfrag problem ?

2001-08-03 Thread Oscar Lopez

Hello lyxers

First of all I apologize because the subject it is a little bit
off-topic but I don't know where I can post a problem like this, please
if you could point me out another forum I will be very grateful to you

To compose figures with nice math fonts I use psfrag, but when I need to
produce a pdf output I have to put the eps file with the psfrag commands
in another lyx file, let's say psfrag.lyx, and try to adjust the paper
size to the eps file bounding box and produce a eps file (using export-
postscript) with the psfrag substitutions. This latest eps file can be
converted to pdf and in this way I can produce pdf figures with the same
quality as postcript files with psfrag. Now when I insert the eps file,
i.e. psfrag.eps, into the main lyx file, lyx produces a nice postscript
in which there is no eps figures, ant the worst thing is that it doesnt
complaint about anything. One year ago this worked for me. Now I am not
able to produce the same result even with the same files generated one
year ago. The only differences I have now are a new teTeX distribution
and several lyx updates. After a lot of tests I am almost sure that the
source problem could be dvips which has changed from v.5.78 to 5.86 or
maybe some obscure parameter exchanging between lyx and the others
programs.

Dos anybody experience similar problems ?
Does anybody know if  dvips 5.86 is expected to be buggy ?
Is anybody using this kind of solution to produce pdf figures with nice
math fonts, i.e. mathscript ?
What other kind of solutions exist to produce figures with math latex
fonts in eps and pdf format at the same time ?

Thanks in advance for your help and keep up the good work
Best regards

-- 
http://www.iit.upco.es/~oscar
Law stands mute in the midst of arms.
-- Marcus Tullius Cicero



dvips + psfrag problem ?

2001-08-03 Thread Oscar Lopez

Hello lyxers

First of all I apologize because the subject it is a little bit
off-topic but I don't know where I can post a problem like this, please
if you could point me out another forum I will be very grateful to you

To compose figures with nice math fonts I use psfrag, but when I need to
produce a pdf output I have to put the eps file with the psfrag commands
in another lyx file, let's say psfrag.lyx, and try to adjust the paper
size to the eps file bounding box and produce a eps file (using export-
postscript) with the psfrag substitutions. This latest eps file can be
converted to pdf and in this way I can produce pdf figures with the same
quality as postcript files with psfrag. Now when I insert the eps file,
i.e. psfrag.eps, into the main lyx file, lyx produces a nice postscript
in which there is no eps figures, ant the worst thing is that it doesnt
complaint about anything. One year ago this worked for me. Now I am not
able to produce the same result even with the same files generated one
year ago. The only differences I have now are a new teTeX distribution
and several lyx updates. After a lot of tests I am almost sure that the
source problem could be dvips which has changed from v.5.78 to 5.86 or
maybe some obscure parameter exchanging between lyx and the others
programs.

Dos anybody experience similar problems ?
Does anybody know if  dvips 5.86 is expected to be buggy ?
Is anybody using this kind of solution to produce pdf figures with nice
math fonts, i.e. mathscript ?
What other kind of solutions exist to produce figures with math latex
fonts in eps and pdf format at the same time ?

Thanks in advance for your help and keep up the good work
Best regards

-- 
http://www.iit.upco.es/~oscar
Law stands mute in the midst of arms.
-- Marcus Tullius Cicero



dvips + psfrag problem ?

2001-08-03 Thread Oscar Lopez

Hello lyxers

First of all I apologize because the subject it is a little bit
off-topic but I don't know where I can post a problem like this, please
if you could point me out another forum I will be very grateful to you

To compose figures with nice math fonts I use psfrag, but when I need to
produce a pdf output I have to put the eps file with the psfrag commands
in another lyx file, let's say psfrag.lyx, and try to adjust the paper
size to the eps file bounding box and produce a eps file (using export->
postscript) with the psfrag substitutions. This latest eps file can be
converted to pdf and in this way I can produce pdf figures with the same
quality as postcript files with psfrag. Now when I insert the eps file,
i.e. psfrag.eps, into the main lyx file, lyx produces a nice postscript
in which there is no eps figures, ant the worst thing is that it doesnt
complaint about anything. One year ago this worked for me. Now I am not
able to produce the same result even with the same files generated one
year ago. The only differences I have now are a new teTeX distribution
and several lyx updates. After a lot of tests I am almost sure that the
source problem could be dvips which has changed from v.5.78 to 5.86 or
maybe some obscure parameter exchanging between lyx and the others
programs.

Dos anybody experience similar problems ?
Does anybody know if  dvips 5.86 is expected to be buggy ?
Is anybody using this kind of solution to produce pdf figures with nice
math fonts, i.e. mathscript ?
What other kind of solutions exist to produce figures with math latex
fonts in eps and pdf format at the same time ?

Thanks in advance for your help and keep up the good work
Best regards

-- 
http://www.iit.upco.es/~oscar
Law stands mute in the midst of arms.
-- Marcus Tullius Cicero



Re: Cancellation in equations

2001-07-11 Thread Oscar Lopez

Rem wrote:
 
 
 I have an equation that is being derived and I need to show some
 cancellations during the evolution. Is there a way I can show the
 cancellations, like a line segment (probably slope = 1, to be more specific)
 drawn on a division?
 

In  latex preamble

\usepackage{cancel}

and then in math environment

\cancelto{reason_of_cancelation}{whatever_you_need_to_cancel}

There are several commands, look at the package documentation 

Hope it helps

 
 Remzi

-- 
http://www.iit.upco.es/~oscar
No amount of genius can overcome a preoccupation with detail.



Re: Cancellation in equations

2001-07-11 Thread Oscar Lopez

Rem wrote:
 
 
 I have an equation that is being derived and I need to show some
 cancellations during the evolution. Is there a way I can show the
 cancellations, like a line segment (probably slope = 1, to be more specific)
 drawn on a division?
 

In  latex preamble

\usepackage{cancel}

and then in math environment

\cancelto{reason_of_cancelation}{whatever_you_need_to_cancel}

There are several commands, look at the package documentation 

Hope it helps

 
 Remzi

-- 
http://www.iit.upco.es/~oscar
No amount of genius can overcome a preoccupation with detail.



Re: Cancellation in equations

2001-07-11 Thread Oscar Lopez

Rem wrote:
> 
> 
> I have an equation that is being derived and I need to show some
> cancellations during the evolution. Is there a way I can show the
> cancellations, like a line segment (probably slope = 1, to be more specific)
> drawn on a division?
> 

In  latex preamble

\usepackage{cancel}

and then in math environment

\cancelto{reason_of_cancelation}{whatever_you_need_to_cancel}

There are several commands, look at the package documentation 

Hope it helps

> 
> Remzi

-- 
http://www.iit.upco.es/~oscar
No amount of genius can overcome a preoccupation with detail.



Re: draftcopy

2001-03-06 Thread Oscar Lopez

Francesco Scaglioni wrote:
 
 Thanks,
 
 Is it possible to use more than one option eg. no pages have draft
 across them but all have draft at the bottom?

You can use the option bottom to print DRAFT on all pages at the bottom.
For other options you can check the draftcopy documentation located at:

/usr/share/texmf/doc/latex/draftcopy

 
 Thanks again
 
 Francesco

-- 
http://www.iit.upco.es/~oscar
Fat Liberation: because a waist is a terrible thing to mind.



Re: draftcopy

2001-03-06 Thread Oscar Lopez

Francesco Scaglioni wrote:
 
 Thanks,
 
 Is it possible to use more than one option eg. no pages have draft
 across them but all have draft at the bottom?

You can use the option bottom to print DRAFT on all pages at the bottom.
For other options you can check the draftcopy documentation located at:

/usr/share/texmf/doc/latex/draftcopy

 
 Thanks again
 
 Francesco

-- 
http://www.iit.upco.es/~oscar
Fat Liberation: because a waist is a terrible thing to mind.



Re: draftcopy

2001-03-06 Thread Oscar Lopez

Francesco Scaglioni wrote:
> 
> Thanks,
> 
> Is it possible to use more than one option eg. no pages have draft
> across them but all have draft at the bottom?

You can use the option bottom to print DRAFT on all pages at the bottom.
For other options you can check the draftcopy documentation located at:

/usr/share/texmf/doc/latex/draftcopy

> 
> Thanks again
> 
> Francesco

-- 
http://www.iit.upco.es/~oscar
Fat Liberation: because a waist is a terrible thing to mind.



Re: Comments on lyx.1.1.5pre3 and layouts

2000-05-26 Thread Oscar Lopez

Jean-Marc Lasgouttes wrote:

 Oscar 2. How can I create a style layout for a latex command with,
 Oscar let's say, five arguments ?. I am trying to write a lyx layout
 Oscar for a specific cv class, and in this class there are many latex
 Oscar commands with a different number of arguments. For example,
 Oscar there are commands like
 Oscar \foocommand{}{}{}{}{X}{foo}

 If the empty braces are always empty and the X is a constant, you can
 do
   LatexOptions  "{}{}{}{}{X}"

Unfortunately this is not the case. Most of the times every argument
represent a field that you have to fill with an arbitrary text, and
sometimes some arguments remain empty and sometimes they must be
completely filled. The more usual latex command that I'd like to support
is something like that

\foocommand{first field with arbitrary text}{second field with arbitrary
text}{third field with arbitrary text}

Thanks,




  1   2   >