Re: New export code

2000-09-11 Thread Jean-Marc Lasgouttes
"Dekel" == Dekel Tsur [EMAIL PROTECTED] writes: Dekel Here is a patch that solves this problem (and others). I'll apply it. JMarc

Re: New export code

2000-09-11 Thread Jean-Marc Lasgouttes
"Jean-Marc" == Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: "Dekel" == Dekel Tsur [EMAIL PROTECTED] writes: Dekel Here is a patch that solves this problem (and others). Jean-Marc I'll apply it. BTW, Dekel, there seem to be code (in filetool.C and the use of QuitLyX) that seems interesting

Re: New export code

2000-09-11 Thread Jean-Marc Lasgouttes
> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes: Dekel> Here is a patch that solves this problem (and others). I'll apply it. JMarc

Re: New export code

2000-09-11 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes: Dekel> Here is a patch that solves this problem (and others). Jean-Marc> I'll apply it. BTW, Dekel, there seem to be code (in filetool.C and the use of QuitLyX) that

Re: New export code

2000-09-09 Thread Dekel Tsur
On Thu, Sep 07, 2000 at 12:26:45PM +0100, Jose Abilio Oliveira Matos wrote: On Wed, Sep 06, 2000 at 12:45:29AM +0300, Dekel Tsur wrote: On Tue, Sep 05, 2000 at 04:27:54PM +0100, Jose Abilio Oliveira Matos wrote: Also is it possible to have different viewers for docbook and linuxdoc.

Re: New export code

2000-09-09 Thread Dekel Tsur
On Thu, Sep 07, 2000 at 12:26:45PM +0100, Jose Abilio Oliveira Matos wrote: > On Wed, Sep 06, 2000 at 12:45:29AM +0300, Dekel Tsur wrote: > > On Tue, Sep 05, 2000 at 04:27:54PM +0100, Jose Abilio Oliveira Matos wrote: > > > Also is it possible to have different viewers for docbook and linuxdoc.

Re: New export code

2000-09-07 Thread Lars Gullik Bjønnes
Jose Abilio Oliveira Matos [EMAIL PROTECTED] writes: | I understand that every format should have a tag, what I find is that | the file extension is too restrictive. Why not to associate with every format | a label and an extension? That solves this case and future cases. | | Format

Re: New export code

2000-09-07 Thread Jose Abilio Oliveira Matos
On Thu, Sep 07, 2000 at 04:24:21PM +0200, Lars Gullik Bjønnes wrote: Jose Abilio Oliveira Matos [EMAIL PROTECTED] writes: | I understand that every format should have a tag, what I find is that | the file extension is too restrictive. Why not to associate with every format | a label and

Re: New export code

2000-09-07 Thread Lars Gullik Bjønnes
Jose Abilio Oliveira Matos <[EMAIL PROTECTED]> writes: | I understand that every format should have a tag, what I find is that | the file extension is too restrictive. Why not to associate with every format | a label and an extension? That solves this case and future cases. | | Format

Re: New export code

2000-09-07 Thread Jose Abilio Oliveira Matos
On Thu, Sep 07, 2000 at 04:24:21PM +0200, Lars Gullik Bjønnes wrote: > Jose Abilio Oliveira Matos <[EMAIL PROTECTED]> writes: > > > | I understand that every format should have a tag, what I find is that > | the file extension is too restrictive. Why not to associate with every format > | a

Re: New export code

2000-09-05 Thread Jose Abilio Oliveira Matos
On Fri, Aug 25, 2000 at 01:45:56PM +0300, Dekel Tsur wrote: Here is a patch that contains a complete rewrite of the export mechanism (by 'export' I also mean generating a preview DVI/Postscript). The new code works by defining converters in lyxrc, and then chaining the appropriate converters

Re: New export code

2000-09-05 Thread Dekel Tsur
On Tue, Sep 05, 2000 at 04:27:54PM +0100, Jose Abilio Oliveira Matos wrote: One question Dekel, is the converter able to distinguish the linuxdoc and the docbook cases, since both use the sgml extension? File formats are distinguished by the extension, so we need to use .docbook for

Re: New export code

2000-09-05 Thread Jose Abilio Oliveira Matos
On Fri, Aug 25, 2000 at 01:45:56PM +0300, Dekel Tsur wrote: > Here is a patch that contains a complete rewrite of the export mechanism (by > 'export' I also mean generating a preview DVI/Postscript). > The new code works by defining converters in lyxrc, and then chaining the > appropriate

Re: New export code

2000-09-05 Thread Dekel Tsur
On Tue, Sep 05, 2000 at 04:27:54PM +0100, Jose Abilio Oliveira Matos wrote: > One question Dekel, is the converter able to distinguish the linuxdoc and > the docbook cases, since both use the sgml extension? File formats are distinguished by the extension, so we need to use .docbook for

Re: new export code enabled

2000-09-04 Thread Lars Gullik Bjønnes
Dekel Tsur [EMAIL PROTECTED] writes: | On Mon, Sep 04, 2000 at 03:23:23PM +0200, Lars Gullik Bjønnes wrote: | | I have enabled the new export code in CVS, this will mean that some | export targets will not work until fixed. We should try to do that | quickly. | | I've already made several

Re: new export code enabled

2000-09-04 Thread Dekel Tsur
On Mon, Sep 04, 2000 at 09:04:45PM +0200, Lars Gullik Bjnnes wrote: Dekel Tsur [EMAIL PROTECTED] writes: | I've already made several fixes (including fixing lib/configure so that | lyxrc.defaults will contains the \converter commands). Ok, only one thing? Why implement copy in terms of

Re: new export code enabled

2000-09-04 Thread Lars Gullik Bjønnes
Dekel Tsur <[EMAIL PROTECTED]> writes: | On Mon, Sep 04, 2000 at 03:23:23PM +0200, Lars Gullik Bjønnes wrote: | > | > I have enabled the new export code in CVS, this will mean that some | > export targets will not work until fixed. We should try to do that | > quickly. | |

Re: new export code enabled

2000-09-04 Thread Dekel Tsur
On Mon, Sep 04, 2000 at 09:04:45PM +0200, Lars Gullik Bjnnes wrote: > Dekel Tsur <[EMAIL PROTECTED]> writes: > | I've already made several fixes (including fixing lib/configure so that > | lyxrc.defaults will contains the \converter commands). > > Ok, only one thing? > > Why implement copy in

Re: New export code

2000-08-31 Thread Juergen Vigna
On 30-Aug-2000 Lars Gullik Bjønnes wrote: | Did you forgot tex has if/then clauses ? | It is possible to use the same file with both latex/pdflatex: | | \newif \ifpdf |\ifx \pdfoutput \undefined | \pdffalse |\else | \pdftrue | \fi | | \ifpdf |

Re: New export code

2000-08-31 Thread Lars Gullik Bjønnes
Juergen Vigna [EMAIL PROTECTED] writes: | On 30-Aug-2000 Lars Gullik Bjønnes wrote: | | Did you forgot tex has if/then clauses ? | | It is possible to use the same file with both latex/pdflatex: | | | | \newif \ifpdf | |\ifx \pdfoutput \undefined | | \pdffalse | |\else | |

Re: New export code

2000-08-31 Thread Juergen Vigna
On 31-Aug-2000 Lars Gullik Bjønnes wrote: also pdflatex will almost require parameters tt are different feom the latex' ones for hyperref. You're right about the parameters I've used: \ifpdf \usepackage[pdftex=true,pdftitle={The Open Development of LyX},pdfauthor={Allan Rae[EMAIL

Re: New export code

2000-08-31 Thread Andre Poenitz
I strongly disagree. If you export to latex you are supposed to know what you are doing. Well. I usually export to LaTeX to hand out the result to people without LyX. They hand it out to other people etc. It will almost always be used on systems that I don't know. Maybe some of them don't have

Re: New export code

2000-08-31 Thread Dekel Tsur
On Thu, Aug 31, 2000 at 04:45:14PM +0200, Juergen Vigna wrote: P.S.: Thanks Dekel for this solution! :) Actually, I got this code from lyx-users (it was posted by Matej Cepl).

Re: New export code

2000-08-31 Thread Juergen Vigna
On 30-Aug-2000 Lars Gullik Bjønnes wrote: >| Did you forgot tex has if/then clauses ? >| It is possible to use the same file with both latex/pdflatex: >| >| \newif \ifpdf >|\ifx \pdfoutput \undefined >| \pdffalse >|\else >| \pdftrue >| \fi >| >| \ifpdf >|

Re: New export code

2000-08-31 Thread Lars Gullik Bjønnes
Juergen Vigna <[EMAIL PROTECTED]> writes: | On 30-Aug-2000 Lars Gullik Bjønnes wrote: | >| Did you forgot tex has if/then clauses ? | >| It is possible to use the same file with both latex/pdflatex: | >| | >| \newif \ifpdf | >|\ifx \pdfoutput \undefined | >| \pdffalse | >|\else |

Re: New export code

2000-08-31 Thread Juergen Vigna
On 31-Aug-2000 Lars Gullik Bjønnes wrote: > also pdflatex will almost require parameters tt are different feom the > latex' ones for hyperref. You're right about the parameters I've used: \ifpdf \usepackage[pdftex=true,pdftitle={The Open Development of LyX},pdfauthor={Allan Rae<[EMAIL

Re: New export code

2000-08-31 Thread Andre Poenitz
> I strongly disagree. If you export to latex you are supposed to know > what you are doing. Well. I usually export to LaTeX to hand out the result to people without LyX. They hand it out to other people etc. It will almost always be used on systems that I don't know. Maybe some of them don't

Re: New export code

2000-08-31 Thread Dekel Tsur
On Thu, Aug 31, 2000 at 04:45:14PM +0200, Juergen Vigna wrote: > > P.S.: Thanks Dekel for this solution! :) Actually, I got this code from lyx-users (it was posted by Matej Cepl).

Re: New export code

2000-08-30 Thread Dekel Tsur
On Wed, Aug 30, 2000 at 12:28:38AM +0200, Lars Gullik Bjnnes wrote: :-) I actually think the dirrerences might be enven larger, since when using pdf you want to pass "pdflatex" as option to several latex packages. And thus the whole latex file will be different. Did you forgot tex has if/then

Re: New export code

2000-08-30 Thread Dekel Tsur
On Wed, Aug 30, 2000 at 12:28:38AM +0200, Lars Gullik Bjnnes wrote: > :-) I actually think the dirrerences might be enven larger, since when > using pdf you want to pass "pdflatex" as option to several latex > packages. And thus the whole latex file will be different. Did you forgot tex has

Re: New export code

2000-08-29 Thread Lars Gullik Bjønnes
Dekel Tsur [EMAIL PROTECTED] writes: | On Mon, Aug 28, 2000 at 07:42:26PM +0200, Lars Gullik Bjønnes wrote: | | + * src/LaTeX.C (run): If no file has been changed, check if the | + output dvi/pdf file exists. If not, run (pdf)latex once. | | Why is this needed? | | The code

Re: New export code

2000-08-29 Thread Dekel Tsur
On Tue, Aug 29, 2000 at 10:00:56PM +0200, Lars Gullik Bjnnes wrote: Dekel Tsur [EMAIL PROTECTED] writes: | On Mon, Aug 28, 2000 at 07:42:26PM +0200, Lars Gullik Bj?nnes wrote: | + * src/LaTeX.C (run): If no file has been changed, check if the | + output dvi/pdf file exists. If

Re: New export code

2000-08-29 Thread Lars Gullik Bjønnes
Dekel Tsur [EMAIL PROTECTED] writes: | Yes, the dependency file of pdflatex can be different. | So perhaps the correct solution is to use different dependency files for | latex pdflatex: :-) I actually think the dirrerences might be enven larger, since when using pdf you want to pass

Re: New export code

2000-08-29 Thread Lars Gullik Bjønnes
Dekel Tsur <[EMAIL PROTECTED]> writes: | On Mon, Aug 28, 2000 at 07:42:26PM +0200, Lars Gullik Bjønnes wrote: | > | > + * src/LaTeX.C (run): If no file has been changed, check if the | > + output dvi/pdf file exists. If not, run (pdf)latex once. | > | > Why is this needed? | | The

Re: New export code

2000-08-29 Thread Dekel Tsur
On Tue, Aug 29, 2000 at 10:00:56PM +0200, Lars Gullik Bjnnes wrote: > Dekel Tsur <[EMAIL PROTECTED]> writes: > | On Mon, Aug 28, 2000 at 07:42:26PM +0200, Lars Gullik Bj?nnes wrote: > | > + * src/LaTeX.C (run): If no file has been changed, check if the > | > + output dvi/pdf file

Re: New export code

2000-08-29 Thread Lars Gullik Bjønnes
Dekel Tsur <[EMAIL PROTECTED]> writes: | Yes, the dependency file of pdflatex can be different. | So perhaps the correct solution is to use different dependency files for | latex & pdflatex: :-) I actually think the dirrerences might be enven larger, since when using pdf you want to pass

Re: New export code

2000-08-28 Thread Lars Gullik Bjønnes
+ * src/LaTeX.C (run): If no file has been changed, check if the + output dvi/pdf file exists. If not, run (pdf)latex once. Why is this needed? (You use it to get the dvi file generated even if we are really setup to making pdf files, I'd like us to find a better solution than this,

Re: New export code

2000-08-28 Thread Dekel Tsur
On Mon, Aug 28, 2000 at 07:42:26PM +0200, Lars Gullik Bjnnes wrote: + * src/LaTeX.C (run): If no file has been changed, check if the + output dvi/pdf file exists. If not, run (pdf)latex once. Why is this needed? The code is needed for the following case: Suppose I view the

Re: New export code

2000-08-28 Thread Lars Gullik Bjønnes
+ * src/LaTeX.C (run): If no file has been changed, check if the + output dvi/pdf file exists. If not, run (pdf)latex once. Why is this needed? (You use it to get the dvi file generated even if we are really setup to making pdf files, I'd like us to find a better solution than this,

Re: New export code

2000-08-28 Thread Dekel Tsur
On Mon, Aug 28, 2000 at 07:42:26PM +0200, Lars Gullik Bjnnes wrote: > > + * src/LaTeX.C (run): If no file has been changed, check if the > + output dvi/pdf file exists. If not, run (pdf)latex once. > > Why is this needed? The code is needed for the following case: Suppose I view

New export code

2000-08-25 Thread Dekel Tsur
Here is a patch that contains a complete rewrite of the export mechanism (by 'export' I also mean generating a preview DVI/Postscript). The new code works by defining converters in lyxrc, and then chaining the appropriate converters to get the desired output format. The code is still incomplete,

Re: New export code

2000-08-25 Thread Lars Gullik Bjønnes
Dekel Tsur [EMAIL PROTECTED] writes: | PS: Lars, can you give Baruch me CVS write access to exporter.[Ch] and | converter.[Ch] ? Let's see if you can get the access to cvs.lyx.org working first. Lgb

New export code

2000-08-25 Thread Dekel Tsur
Here is a patch that contains a complete rewrite of the export mechanism (by 'export' I also mean generating a preview DVI/Postscript). The new code works by defining converters in lyxrc, and then chaining the appropriate converters to get the desired output format. The code is still incomplete,

Re: New export code

2000-08-25 Thread Lars Gullik Bjønnes
Dekel Tsur <[EMAIL PROTECTED]> writes: | PS: Lars, can you give Baruch & me CVS write access to exporter.[Ch] and | converter.[Ch] ? Let's see if you can get the access to cvs.lyx.org working first. Lgb