shift-arrow selection

2009-04-10 Thread Nils Becker
Hi,

I am writing to ask whether this is a bug:

When editing text or math, in previous versions of lyx I often used
shift-rightarrow or shift-leftarrow to select text letter by letter.
This does not work for me anymore on lyx 1.6.2, mac os x.

(When I press option or command in addition, word-wise selection does
work. )

In case this is just a missing shortcut definition, I think it should be
added to the default.

Cheers, Nils


shift-arrow selection

2009-04-10 Thread Nils Becker
Hi,

I am writing to ask whether this is a bug:

When editing text or math, in previous versions of lyx I often used
shift-rightarrow or shift-leftarrow to select text letter by letter.
This does not work for me anymore on lyx 1.6.2, mac os x.

(When I press option or command in addition, word-wise selection does
work. )

In case this is just a missing shortcut definition, I think it should be
added to the default.

Cheers, Nils


shift-arrow selection

2009-04-10 Thread Nils Becker
Hi,

I am writing to ask whether this is a bug:

When editing text or math, in previous versions of lyx I often used
shift-rightarrow or shift-leftarrow to select text letter by letter.
This does not work for me anymore on lyx 1.6.2, mac os x.

(When I press option or command in addition, word-wise selection does
work. )

In case this is just a missing shortcut definition, I think it should be
added to the default.

Cheers, Nils


PNG to EPS without file size explosion

2008-12-16 Thread Nils Becker
Hi,

when exporting a LyX file with embedded .png graphics as LaTeX
(plain), .eps files are generated automatically from the .png's. That's
good! However the resulting .eps file sizes can get huge. (from 700K to
110M in one case).

The reason is that LyX uses convert with no options to do the .png-.eps
conversion, generating an uncompressed Level 1 EPS file.

The solution is to set a new Converter PNG - EPS in the LyX
preferences, like so

convert -compress LZW $$i eps2:$$o

This got the file size down to about 2M in the above example.
Even leaving out the explicit -compress option and keeping only the eps2
(i.e. Level 2) format specification gives acceptable file sizes.
I found this out after some trying around, I thought I'd let you know.

Should this be a default setting? Should I file an enhancement request?
Should I put it on the wiki?

cheers, Nils


PNG to EPS without file size explosion

2008-12-16 Thread Nils Becker
Hi,

when exporting a LyX file with embedded .png graphics as LaTeX
(plain), .eps files are generated automatically from the .png's. That's
good! However the resulting .eps file sizes can get huge. (from 700K to
110M in one case).

The reason is that LyX uses convert with no options to do the .png-.eps
conversion, generating an uncompressed Level 1 EPS file.

The solution is to set a new Converter PNG - EPS in the LyX
preferences, like so

convert -compress LZW $$i eps2:$$o

This got the file size down to about 2M in the above example.
Even leaving out the explicit -compress option and keeping only the eps2
(i.e. Level 2) format specification gives acceptable file sizes.
I found this out after some trying around, I thought I'd let you know.

Should this be a default setting? Should I file an enhancement request?
Should I put it on the wiki?

cheers, Nils


PNG to EPS without file size explosion

2008-12-16 Thread Nils Becker
Hi,

when exporting a LyX file with embedded .png graphics as "LaTeX
(plain)", .eps files are generated automatically from the .png's. That's
good! However the resulting .eps file sizes can get huge. (from 700K to
110M in one case).

The reason is that LyX uses convert with no options to do the .png->.eps
conversion, generating an uncompressed Level 1 EPS file.

The solution is to set a new Converter PNG -> EPS in the LyX
preferences, like so

convert -compress LZW $$i eps2:$$o

This got the file size down to about 2M in the above example.
Even leaving out the explicit -compress option and keeping only the eps2
(i.e. Level 2) format specification gives acceptable file sizes.
I found this out after some trying around, I thought I'd let you know.

Should this be a default setting? Should I file an enhancement request?
Should I put it on the wiki?

cheers, Nils


Re: Re: lyx pipe and skim

2008-11-21 Thread Nils Becker
 However, it WORKS for me (with or without the full path to lyxeditor,
 or with the LyX preference in Skim) when Shift-Option-Command-click in
 Skim (instead of Option-Click).
 
 Actually, only Shift-Command-Click (without Option) is needed.
 It is documented on the Skim Wiki, but the Help is wrong. I reported it
 to Skim.
 
 /Konrad
 
 /div
Thanks, that works! I thought I had tried out all the two-modifier
combinations...
Incidentally, it is also possible to use the option
pdflatex -synctex=1 $$i
for the latex to pdf converter in LyX.
For this, you need a recent TeX distribution, e.g. TeXlive 2008.
This removes the need of \usepackage{pdfsync} in the preamble and lets
you keep a pure LaTeX source. Skim supports inverse searching with
synctex, I tested it.
cheers, Nils


Re: Re: lyx pipe and skim

2008-11-21 Thread Nils Becker
 However, it WORKS for me (with or without the full path to lyxeditor,
 or with the LyX preference in Skim) when Shift-Option-Command-click in
 Skim (instead of Option-Click).
 
 Actually, only Shift-Command-Click (without Option) is needed.
 It is documented on the Skim Wiki, but the Help is wrong. I reported it
 to Skim.
 
 /Konrad
 
 /div
Thanks, that works! I thought I had tried out all the two-modifier
combinations...
Incidentally, it is also possible to use the option
pdflatex -synctex=1 $$i
for the latex to pdf converter in LyX.
For this, you need a recent TeX distribution, e.g. TeXlive 2008.
This removes the need of \usepackage{pdfsync} in the preamble and lets
you keep a pure LaTeX source. Skim supports inverse searching with
synctex, I tested it.
cheers, Nils


Re: Re: lyx pipe and skim

2008-11-21 Thread Nils Becker
> However, it WORKS for me (with or without the full path to lyxeditor,
>> or with the LyX preference in Skim) when Shift-Option-Command-click in
>> Skim (instead of Option-Click).
> 
> Actually, only Shift-Command-Click (without Option) is needed.
> It is documented on the Skim Wiki, but the Help is wrong. I reported it
> to Skim.
> 
> /Konrad
> 
> 
Thanks, that works! I thought I had tried out all the two-modifier
combinations...
Incidentally, it is also possible to use the option
pdflatex -synctex=1 $$i
for the latex to pdf converter in LyX.
For this, you need a recent TeX distribution, e.g. TeXlive 2008.
This removes the need of \usepackage{pdfsync} in the preamble and lets
you keep a "pure" LaTeX source. Skim supports inverse searching with
synctex, I tested it.
cheers, Nils


lyx pipe and skim

2008-11-20 Thread Nils Becker
Hi,

I was trying to use Skim and LyX 1.5.7 for inverse PDF searching. It did
not work for me. MacOSX 10.5.5.

I did the following:

-

install mactex 2008

put \usepackage{pdfsync} in the preamble

set the pdf (pdflatex) viewer to open -a Skim.app

restart lyx

on viewing the PDF file, Skim gets called, fine.

I set lyx as the editor for inverse search in Skim.

Now, option-click or option-shift click is supposed to jump to the line
in the lyx editor, but it doesn't.

-

I tried explicitly deleting .lyxpipe.in and .lyxpipe.out, which are in
the default location ~/Library/Application Support/Lyx-1.5/ and then
restarting lyx.

I also tried to run lyx -dbg any: no message at all when clicking the
PDF file in Skim.

Any ideas what goes wrong? is this lyx or skim?

cheers, Nils



Re: lyx pipe and skim

2008-11-20 Thread Nils Becker
Konrad, Nick, thanks for your proposals

 This only worked for me when I set the Lyx pipe location to:
 
 /Applications/LyX.app/Contents/Resources/lyxpipe
 
 Nick

This doesn't seem to do it for me, unfortunately.

 I tried that a while ago, and what I used was in Skim:
 
 Preset:
 Custom
 
 Command:
 /Applications/LyX.app/Contents/MacOS/lyxeditor
 
 Arguments:
 %file %line
 But I don't use it anymore - got used to using the outliner instead.
 
 /Konrad

I had tried that one. Nope.

cheers, Nils


lyx pipe and skim

2008-11-20 Thread Nils Becker
Hi,

I was trying to use Skim and LyX 1.5.7 for inverse PDF searching. It did
not work for me. MacOSX 10.5.5.

I did the following:

-

install mactex 2008

put \usepackage{pdfsync} in the preamble

set the pdf (pdflatex) viewer to open -a Skim.app

restart lyx

on viewing the PDF file, Skim gets called, fine.

I set lyx as the editor for inverse search in Skim.

Now, option-click or option-shift click is supposed to jump to the line
in the lyx editor, but it doesn't.

-

I tried explicitly deleting .lyxpipe.in and .lyxpipe.out, which are in
the default location ~/Library/Application Support/Lyx-1.5/ and then
restarting lyx.

I also tried to run lyx -dbg any: no message at all when clicking the
PDF file in Skim.

Any ideas what goes wrong? is this lyx or skim?

cheers, Nils



Re: lyx pipe and skim

2008-11-20 Thread Nils Becker
Konrad, Nick, thanks for your proposals

 This only worked for me when I set the Lyx pipe location to:
 
 /Applications/LyX.app/Contents/Resources/lyxpipe
 
 Nick

This doesn't seem to do it for me, unfortunately.

 I tried that a while ago, and what I used was in Skim:
 
 Preset:
 Custom
 
 Command:
 /Applications/LyX.app/Contents/MacOS/lyxeditor
 
 Arguments:
 %file %line
 But I don't use it anymore - got used to using the outliner instead.
 
 /Konrad

I had tried that one. Nope.

cheers, Nils


lyx pipe and skim

2008-11-20 Thread Nils Becker
Hi,

I was trying to use Skim and LyX 1.5.7 for inverse PDF searching. It did
not work for me. MacOSX 10.5.5.

I did the following:

-

install mactex 2008

put \usepackage{pdfsync} in the preamble

set the pdf (pdflatex) viewer to open -a Skim.app

restart lyx

on viewing the PDF file, Skim gets called, fine.

I set lyx as the editor for inverse search in Skim.

Now, option-click or option-shift click is supposed to jump to the line
in the lyx editor, but it doesn't.

-

I tried explicitly deleting .lyxpipe.in and .lyxpipe.out, which are in
the default location ~/Library/Application Support/Lyx-1.5/ and then
restarting lyx.

I also tried to run lyx -dbg any: no message at all when clicking the
PDF file in Skim.

Any ideas what goes wrong? is this lyx or skim?

cheers, Nils



Re: lyx pipe and skim

2008-11-20 Thread Nils Becker
Konrad, Nick, thanks for your proposals

> This only worked for me when I set the Lyx pipe location to:
> 
> /Applications/LyX.app/Contents/Resources/lyxpipe
> 
> Nick

This doesn't seem to do it for me, unfortunately.

> I tried that a while ago, and what I used was in Skim:
> 
> Preset:
> Custom
> 
> Command:
> /Applications/LyX.app/Contents/MacOS/lyxeditor
> 
> Arguments:
> "%file" %line
> But I don't use it anymore - got used to using the outliner instead.
> 
> /Konrad

I had tried that one. Nope.

cheers, Nils


elsarticle template file not installed on mac

2008-10-29 Thread Nils Becker
Hi,

in the Mac installer for 1.6.0rc4, the new elsarticle class is included,
but the corresponding template file elsarticle.lyx is not copied to
~/Library/Application Support/LyX-1.6/templates. (the file is present
inside the LyX package). I also tried moving my old Lyx-1.5 user
directory out of the way to simulate a fresh install, and a reconfigure
inside LyX without results. The LaTeX classes are installed in my
private texmf tree and do work.

Is this a bug in the installer? If yes there might be other template
files also affected, which I haven't tested.

cheers, Nils


elsarticle template file not installed on mac

2008-10-29 Thread Nils Becker
Hi,

in the Mac installer for 1.6.0rc4, the new elsarticle class is included,
but the corresponding template file elsarticle.lyx is not copied to
~/Library/Application Support/LyX-1.6/templates. (the file is present
inside the LyX package). I also tried moving my old Lyx-1.5 user
directory out of the way to simulate a fresh install, and a reconfigure
inside LyX without results. The LaTeX classes are installed in my
private texmf tree and do work.

Is this a bug in the installer? If yes there might be other template
files also affected, which I haven't tested.

cheers, Nils


elsarticle template file not installed on mac

2008-10-29 Thread Nils Becker
Hi,

in the Mac installer for 1.6.0rc4, the new elsarticle class is included,
but the corresponding template file elsarticle.lyx is not copied to
~/Library/Application Support/LyX-1.6/templates. (the file is present
inside the LyX package). I also tried moving my old Lyx-1.5 user
directory out of the way to simulate a fresh install, and a reconfigure
inside LyX without results. The LaTeX classes are installed in my
private texmf tree and do work.

Is this a bug in the installer? If yes there might be other template
files also affected, which I haven't tested.

cheers, Nils


lyx svg file handling

2007-07-23 Thread Nils Becker
Hi all,

i am trying to get the inkscape SVG-PDF conversion to work, sonce this
offers better quality than EPS export only.

I added SVG as a vector graphics format;

EPS conversion works with the entry inkscape -E $$o $$i in the
converters preferences.

The analogous entry inkscape -A $$o $$i as SVG-PDF(pdflatex)
converter does not work, although on the command line, this does do the
right thing. In lyx, I get pixel graphics in the PDF output, presumably
produced by convert. What should I do?

lyx version 1.4.4

Thanks!
Nils


lyx svg file handling

2007-07-23 Thread Nils Becker
Hi all,

i am trying to get the inkscape SVG-PDF conversion to work, sonce this
offers better quality than EPS export only.

I added SVG as a vector graphics format;

EPS conversion works with the entry inkscape -E $$o $$i in the
converters preferences.

The analogous entry inkscape -A $$o $$i as SVG-PDF(pdflatex)
converter does not work, although on the command line, this does do the
right thing. In lyx, I get pixel graphics in the PDF output, presumably
produced by convert. What should I do?

lyx version 1.4.4

Thanks!
Nils


lyx svg file handling

2007-07-23 Thread Nils Becker
Hi all,

i am trying to get the inkscape SVG->PDF conversion to work, sonce this
offers better quality than EPS export only.

I added SVG as a vector graphics format;

EPS conversion works with the entry "inkscape -E $$o $$i" in the
converters preferences.

The analogous entry "inkscape -A $$o $$i" as SVG->PDF(pdflatex)
converter does not work, although on the command line, this does do the
right thing. In lyx, I get pixel graphics in the PDF output, presumably
produced by "convert". What should I do?

lyx version 1.4.4

Thanks!
Nils


glossary.sty and LyX

2007-04-07 Thread Nils Becker
Dear list,

I am trying to get LyX 1.4.3 to work with the LaTeX package
glossary.sty, which offers customizable abbreviation index and glossary.

Assuming my source file is mydoc.tex, one needs to call makeindex to
process a latex generated file mydoc.glo, putting out mydoc.gls.
required call:

makeindex -s mydoc.ist -t mydoc.glg -o mydoc.gls mydoc.glo

In a final latex run, this is then incorporated into the document.

I tried to trick LyX into calling makeindex in the right way.
For this, I created a dummy standard LyX index entry in the document and
 a inserted a standard LyX index list.

Then, LyX is prompted to call makeindex when compliling. I tried to
modify the makeindex command in the Preferences.
The main problem is that mydoc.glo does not have the extension .idx
which LyX apparently assumes when calling makeindex.

So I finally ended up writing a wrapper script mkidxwrap.sh that strips
the .idx extension so that

mkidxwrap.sh mydoc.idx

is equivalent to the above makeindex call.

Now, the good news is that this does work for documents that are in one
piece. Unfortunately it does not work for a multipart document with
index entries in several child documents. When I use lyx -dbg external
then I get an error message of the following kind from makeindex:
parentdoc.glo: file not found.

Any suggestions or cleaner ways to make LyX call makeindex in the right way?

Cheer, Nils


glossary.sty and LyX

2007-04-07 Thread Nils Becker
Dear list,

I am trying to get LyX 1.4.3 to work with the LaTeX package
glossary.sty, which offers customizable abbreviation index and glossary.

Assuming my source file is mydoc.tex, one needs to call makeindex to
process a latex generated file mydoc.glo, putting out mydoc.gls.
required call:

makeindex -s mydoc.ist -t mydoc.glg -o mydoc.gls mydoc.glo

In a final latex run, this is then incorporated into the document.

I tried to trick LyX into calling makeindex in the right way.
For this, I created a dummy standard LyX index entry in the document and
 a inserted a standard LyX index list.

Then, LyX is prompted to call makeindex when compliling. I tried to
modify the makeindex command in the Preferences.
The main problem is that mydoc.glo does not have the extension .idx
which LyX apparently assumes when calling makeindex.

So I finally ended up writing a wrapper script mkidxwrap.sh that strips
the .idx extension so that

mkidxwrap.sh mydoc.idx

is equivalent to the above makeindex call.

Now, the good news is that this does work for documents that are in one
piece. Unfortunately it does not work for a multipart document with
index entries in several child documents. When I use lyx -dbg external
then I get an error message of the following kind from makeindex:
parentdoc.glo: file not found.

Any suggestions or cleaner ways to make LyX call makeindex in the right way?

Cheer, Nils


glossary.sty and LyX

2007-04-07 Thread Nils Becker
Dear list,

I am trying to get LyX 1.4.3 to work with the LaTeX package
glossary.sty, which offers customizable abbreviation index and glossary.

Assuming my source file is mydoc.tex, one needs to call makeindex to
process a latex generated file mydoc.glo, putting out mydoc.gls.
required call:

makeindex -s mydoc.ist -t mydoc.glg -o mydoc.gls mydoc.glo

In a final latex run, this is then incorporated into the document.

I tried to trick LyX into calling makeindex in the right way.
For this, I created a dummy standard LyX index entry in the document and
 a inserted a standard LyX index list.

Then, LyX is prompted to call makeindex when compliling. I tried to
modify the makeindex command in the Preferences.
The main problem is that mydoc.glo does not have the extension .idx
which LyX apparently assumes when calling makeindex.

So I finally ended up writing a wrapper script mkidxwrap.sh that strips
the .idx extension so that

mkidxwrap.sh mydoc.idx

is equivalent to the above makeindex call.

Now, the good news is that this does work for documents that are in one
piece. Unfortunately it does not work for a multipart document with
index entries in several child documents. When I use lyx -dbg external
then I get an error message of the following kind from makeindex:
parentdoc.glo: file not found.

Any suggestions or cleaner ways to make LyX call makeindex in the right way?

Cheer, Nils


Re: tensind package incompatible with LyX?

2006-12-06 Thread Nils Becker
 
 You can try to use extra {}, but I doubt this will work.
 
 Andre'
Thanks for the hint. It does work, in fact. One can add an empty group {} in 
front of
every index, and the mathed display is nice, too. It is still more typing than 
in raw
LaTeX, though. I posted a small page on the LyX wiki.

Nils


Re: tensind package incompatible with LyX?

2006-12-06 Thread Nils Becker
 
 You can try to use extra {}, but I doubt this will work.
 
 Andre'
Thanks for the hint. It does work, in fact. One can add an empty group {} in 
front of
every index, and the mathed display is nice, too. It is still more typing than 
in raw
LaTeX, though. I posted a small page on the LyX wiki.

Nils


Re: tensind package incompatible with LyX?

2006-12-06 Thread Nils Becker
> 
> You can try to use extra {}, but I doubt this will work.
> 
> Andre'
Thanks for the hint. It does work, in fact. One can add an empty group {} in 
front of
every index, and the mathed display is nice, too. It is still more typing than 
in raw
LaTeX, though. I posted a small page on the LyX wiki.

Nils


tensind package incompatible with LyX?

2006-12-04 Thread Nils Becker
Hi all,

I am trying to use the package tensind.sty for typesetting tensors with 
multiple
upper and lower indices in LyX.

In LaTeX this works great: after defining a special tensor delimiter in the
preamble (here I use the letter ?) one can in math mode type
?A^\mu_\nu? for northwest, southeast indices and
?A_\mu^\nu? for southwest, northeast indices following the tensor symbol A.

Here, the order of super- and subscript matters! LyX seems to REORDER the 
super- and
subscript in such a way that always the subscript comes first.

Also, within tensind, ?g_\mu_\nu? is perfectly acceptable, and has a different
meaning (and typeset result) than ?g_{\mu\nu}? Within LyX, one always gets the 
latter
form due to automatic grouping in the math editor

Is there a workaround?

Thanks a lot, Nils


tensind package incompatible with LyX?

2006-12-04 Thread Nils Becker
Hi all,

I am trying to use the package tensind.sty for typesetting tensors with 
multiple
upper and lower indices in LyX.

In LaTeX this works great: after defining a special tensor delimiter in the
preamble (here I use the letter ?) one can in math mode type
?A^\mu_\nu? for northwest, southeast indices and
?A_\mu^\nu? for southwest, northeast indices following the tensor symbol A.

Here, the order of super- and subscript matters! LyX seems to REORDER the 
super- and
subscript in such a way that always the subscript comes first.

Also, within tensind, ?g_\mu_\nu? is perfectly acceptable, and has a different
meaning (and typeset result) than ?g_{\mu\nu}? Within LyX, one always gets the 
latter
form due to automatic grouping in the math editor

Is there a workaround?

Thanks a lot, Nils


tensind package incompatible with LyX?

2006-12-04 Thread Nils Becker
Hi all,

I am trying to use the package "tensind.sty" for typesetting tensors with 
multiple
upper and lower indices in LyX.

In LaTeX this works great: after defining a special "tensor delimiter" in the
preamble (here I use the letter "?") one can in math mode type
?A^\mu_\nu? for northwest, southeast indices and
?A_\mu^\nu? for southwest, northeast indices following the tensor symbol A.

Here, the order of super- and subscript matters! LyX seems to REORDER the 
super- and
subscript in such a way that always the subscript comes first.

Also, within tensind, ?g_\mu_\nu? is perfectly acceptable, and has a different
meaning (and typeset result) than ?g_{\mu\nu}? Within LyX, one always gets the 
latter
form due to automatic grouping in the math editor

Is there a workaround?

Thanks a lot, Nils


Insets not couted as words

2006-11-17 Thread Nils Becker
Hi,

I am not sure whether the following behavior in LyX 1.4.3 is a bug or is
intended:

When editing text in lyx, an inline math (or ERT) insert is not counted
as a word. For example, if I have this is text math more text on a
line, Ctrl+LeftArrow will jump one word forward, but will skip math
and end up after more. The same goes for word deletion.

I find this unintuitive since the math inset is separated by whitespace
like all the other words. I often unintentionally delete an extra word...

Any comments!

Nils


Insets not couted as words

2006-11-17 Thread Nils Becker
Hi,

I am not sure whether the following behavior in LyX 1.4.3 is a bug or is
intended:

When editing text in lyx, an inline math (or ERT) insert is not counted
as a word. For example, if I have this is text math more text on a
line, Ctrl+LeftArrow will jump one word forward, but will skip math
and end up after more. The same goes for word deletion.

I find this unintuitive since the math inset is separated by whitespace
like all the other words. I often unintentionally delete an extra word...

Any comments!

Nils


Insets not couted as words

2006-11-17 Thread Nils Becker
Hi,

I am not sure whether the following behavior in LyX 1.4.3 is a bug or is
intended:

When editing text in lyx, an inline math (or ERT) insert is not counted
as a word. For example, if I have "this is text  more text" on a
line, Ctrl+LeftArrow will jump one word forward, but will skip 
and end up after "more". The same goes for word deletion.

I find this unintuitive since the math inset is separated by whitespace
like all the other words. I often unintentionally delete an extra word...

Any comments!

Nils


Re: Macros and preview in child documents

2006-11-02 Thread Nils Becker
Hi list,

This message relates my previous message
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg53761.html

and Richard Heck's reply

 I think the following message answers this question, more or less:
 http://www.mail-archive.com/lyx-users@lists.lyx.org/msg51387.html.
 
 Richard
 
thanks for your reply.
I looked up your solution and it does not seem to work.
I still haven't got a way to make instant preview work in child documents. In 
fact,
even a more basic task fails:
Here is what I did:

1.Create
macrofile.lyx
containing only a macro corresponding to \newcommand{\mymac}{\sum}
and another math mode line in which the macro is tested

2.Create
mainfile.lyx
containing an input file inclusion of macrofile.lyx and another line in which 
the
\mymac macro is used.

3.Quit LyX  Restart LyX.

4.open macrofile.lyx. In fact, here, instant preview works!

5.open mainfile.lyx. Here, instant preview fails.

Nonetheless, the document does compile correctly to DVI.
(both files are article document class, and are attached to this mail)

I am using LyX 1.4.3 on SuSE Linux 10.1

Did I do something wrong?

Thanks for any help, Nils



macrofile.lyx
Description: application/lyx


mainfile.lyx
Description: application/lyx


Re: Macros and preview in child documents

2006-11-02 Thread Nils Becker
Hi list,

This message relates my previous message
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg53761.html

and Richard Heck's reply

 I think the following message answers this question, more or less:
 http://www.mail-archive.com/lyx-users@lists.lyx.org/msg51387.html.
 
 Richard
 
thanks for your reply.
I looked up your solution and it does not seem to work.
I still haven't got a way to make instant preview work in child documents. In 
fact,
even a more basic task fails:
Here is what I did:

1.Create
macrofile.lyx
containing only a macro corresponding to \newcommand{\mymac}{\sum}
and another math mode line in which the macro is tested

2.Create
mainfile.lyx
containing an input file inclusion of macrofile.lyx and another line in which 
the
\mymac macro is used.

3.Quit LyX  Restart LyX.

4.open macrofile.lyx. In fact, here, instant preview works!

5.open mainfile.lyx. Here, instant preview fails.

Nonetheless, the document does compile correctly to DVI.
(both files are article document class, and are attached to this mail)

I am using LyX 1.4.3 on SuSE Linux 10.1

Did I do something wrong?

Thanks for any help, Nils



macrofile.lyx
Description: application/lyx


mainfile.lyx
Description: application/lyx


Re: Macros and preview in child documents

2006-11-02 Thread Nils Becker
Hi list,

This message relates my previous message
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg53761.html

and Richard Heck's reply

> I think the following message answers this question, more or less:
> http://www.mail-archive.com/lyx-users@lists.lyx.org/msg51387.html.
> 
> Richard
> 
thanks for your reply.
I looked up your solution and it does not seem to work.
I still haven't got a way to make instant preview work in child documents. In 
fact,
even a more basic task fails:
Here is what I did:

1.Create
macrofile.lyx
containing only a macro corresponding to \newcommand{\mymac}{\sum}
and another math mode line in which the macro is tested

2.Create
mainfile.lyx
containing an "input" file inclusion of macrofile.lyx and another line in which 
the
\mymac macro is used.

3.Quit LyX & Restart LyX.

4.open macrofile.lyx. In fact, here, instant preview works!

5.open mainfile.lyx. Here, instant preview fails.

Nonetheless, the document does compile correctly to DVI.
(both files are "article" document class, and are attached to this mail)

I am using LyX 1.4.3 on SuSE Linux 10.1

Did I do something wrong?

Thanks for any help, Nils



macrofile.lyx
Description: application/lyx


mainfile.lyx
Description: application/lyx