Re: tex2lyx for Linux

2005-02-03 Thread Angus Leeming
Paul Smith wrote:

 Thanks, Angus, for your reply to my question. Meanwhile, I had the
 idea of installing LyX 1.4 cvs and getting tex2lyx. Afterwards, can I
 get back to LyX 1.3.5 and using tex2lyx without LyX 1.4? Does my idea
 make some sense?

Here's what I did on Windows.

Checked out the LyX 1.4.x tree:

$ cvs -d ':pserver:[EMAIL PROTECTED]:/cvs/lyx' \
  login
The password is 'lyx'

$ cvs -d ':pserver:[EMAIL PROTECTED]:/cvs/lyx' \
  -z9 checkout -d devel lyx-devel

This creates a directory 'devel' containing the entire 1.4.x tree. It's 
brought over compressed (-z9) to minimize bandwidth.

$ cd devel
$ ./autogen.sh

This generates the Makefile templates (Makefile.in files) and the 
configure script.

$ mkdir build  cd build

It's nicer not to pollute the source with your build files.

$ ../configure --prefix='J:/Programs/LyX' --with-included-gettext
$ (cd boost  make)
$ (cd src/support  make)
$ (cd src/tex2lyx  make install)
$ (cd lib  make install)

This populates 'J:/Programs/LyX' with everything that tex2lyx, reLyX and 
lyx2lyx could possibly need and then some. I went on to prune lots of 
unneeded stuff. Note that the 'Resources' directory on Windows is the 
'share' directory on Unix.

I left only the stuff below. The lyx2lyx and reLyX directories are fully 
populated.

LyX/
bin/
reLyX
tex2lyx.exe
Resources/
lyx/
chkconfig.ltx
credits
lyx2lyx/
...
lyx2lyx
packages.lst
textclass.lst
configure
layouts/
lyxrc.defaults
reLyX/

It took me about 15 minutes to do all that.

Using it? See the mail 
  tex2lyx, lyx2lyx round trip is still broken (worse!)
on the lyx-devel list.
  http://article.gmane.org/gmane.editors.lyx.devel:41487 
and ensuing thread for a round trip lyx-tex-lyx-tex and attempt to run 
latex on the .tex files for the LyX user guide.

-- 
Angus



Re: tex2lyx for Linux

2005-02-03 Thread G. Milde
On  3.02.05, Angus Leeming wrote:
 
 Here's what I did on Windows.

Maybe I missed the start of this thread, but at least the last 7+ messages
did not reveal where I can find tex2lyx for *Linux*.

Is it possible to use tex2lyx and lyx2lyx with LyX 1.3.4 on Linux?

Are these scripts standalone python scripts or do they use some LyX code?

Sincerely

Guenter

-- 
G.Milde web.de


Re: tex2lyx for Linux

2005-02-03 Thread Angus Leeming
G. Milde wrote:

 On  3.02.05, Angus Leeming wrote:
 
 Here's what I did on Windows.
 
 Maybe I missed the start of this thread, but at least the last 7+
 messages did not reveal where I can find tex2lyx for *Linux*.

You can't *find* it. Read my reply to the original question.
http://article.gmane.org/gmane.editors.lyx.general:20140
You can *build* it. I explain how in the mail to which you replied.

I'm unwilling to provide tex2lyx executables because the nature of 
development is that there is of continual improvement. You're much better 
off regularly updating your cvs tree and building tex2lyx yourself.

 Is it possible to use tex2lyx and lyx2lyx with LyX 1.3.4 on Linux?

Yes. Follow the link on the article you're replying to. The whole thread 
is visible at
http://news.gmane.org/gmane.editors.lyx.devel

 Are these scripts standalone python scripts or do they use some LyX code?

lyx2lyx is a python script. tex2lyx is a compiled C++ program. Both can be 
run as standalone apps from the command line.
 
 Sincerely
 Guenter

-- 
Angus



Re: tex2lyx for Linux

2005-02-03 Thread Sven Schreiber
Georg Baum wrote:

- I use pdflatex but don't specify the .pdf-extension so that I can 
switch to normal latex (using .eps) seamlessly; tex2lyx applies a 
definite choice, thereby destroying this nice portability. Why?

Because LyX 1.4 _always_ needs the extension: There is always one master 
version of the graphic that is referenced in the .lyx file. The others 
are created by the converter mechanism from the master file if needed. 
LyX will not output the extension in the .tex file to maintain 
portability, but it needs it in the .lyx file.
That's great, I didn't know that. I agree it's the right thing to do. Is 
it documented somewhere? (well, probably in the main user guide?)

Therefore tex2lyx looks for existing files and adds the extension if it 
finds one. What is missing here is a commandline switch for tex2lyx that 
tells wether the document is for normal latex or pdflatex. This should 
not be difficult to implement, you are welcome to do that if you know a 
bit of C++ ;-)
Wait a minute, if lyx preserves the portability, why would you need such 
a switch? If I understand correctly, the master document is just used 
as input to convert for preview display, right? Then I think the 
situation is just fine as is.


- I have a \bibliographystyle definition (with natbib), this seems to be 
imported twice: it is specified when I open the bibreferences-inset, but 
it's also displayed as ERT

This is a known problem. It would be nice if you could add that to the 
wiki page.

Which one? The one I suggested about relyx and then tex2lyx (and that 
doesn't exist yet)?

-sven


lyx user

2005-02-03 Thread j_harmel


-- 
Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl


caption under figures ?

2005-02-03 Thread j_harmel
Hello
I has a document formatted with Komascript in tables and figures captions to
be above.  How can I adjust the figure captions under the figure to be?  
Thanks jojo

-- 
GMX im TV ... Die Gedanken sind frei ... Schon gesehen?
Jetzt Spot online ansehen: http://www.gmx.net/de/go/tv-spot


Legend at side of Graphics

2005-02-03 Thread Guillaume SANTINI
Hello,
I got a float-graphic with a long legend (the figure is simple but not 
the comment). I want to specify LyX (v. 1.3.5) to put the legend at the 
side of the graphic rather than bellow. How could i do this ?

Note that I currently use the following procedure to insert my figures:
Insert-Floats-Graphics
Then, in the opened box, I choose  text format as Standard, and use 
the tex command \caption{Title of the graphic}[Legend of the graphics] 
to insert title and legend

Thanks for your help.
Sorry if it's too simple
Guillaume


Re: Changing Default Subfigure Reference in Text

2005-02-03 Thread Stephen Buonopane
  This means that when I enter the reference in the text like this 
(Figure
[cross-reference]) what I see in the compiled output is a reference 
like
this (Figure 11.5(b)). TeX added the letter within parentheses. I 
can't find
a way to turn that off so the typeset reference is like this (Figure 
11.5b).

Rich,
Did the subfigure references (e.g. (b)) appear automatically? Perhaps 
it is defined in svmono? I have always had to put in the a,b,c etc 
manually after the LyX cross-reference box.

Steve


Re: caption under figures ?

2005-02-03 Thread Rich Shepard
On Thu, 3 Feb 2005 [EMAIL PROTECTED] wrote:
I has a document formatted with Komascript in tables and figures captions to
be above.  How can I adjust the figure captions under the figure to be?
  Either block and move the figure above the cpation or delete the caption
and rewrite it underneath (using the caption style).
  When creating figures, type the caption then move the cursor to the head
of the line, press [Enter] then center the paragraph before importing the
figure itself.
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
http://www.appl-ecosys.com   Voice: 503-667-4517   Fax: 503-667-8863


Re: Legend at side of Graphics

2005-02-03 Thread Rich Shepard
On Thu, 3 Feb 2005, Guillaume SANTINI wrote:
I got a float-graphic with a long legend (the figure is simple but not the 
comment). I want to specify LyX (v. 1.3.5) to put the legend at the side of 
the graphic rather than bellow. How could i do this ?
  Look on the Tips  Tricks web page, under floats. There's an example
there.
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
http://www.appl-ecosys.com   Voice: 503-667-4517   Fax: 503-667-8863


Re: tex2lyx for Linux

2005-02-03 Thread Georg Baum
Sven Schreiber wrote:

 Georg Baum wrote:
 Because LyX 1.4 _always_ needs the extension: There is always one
 master version of the graphic that is referenced in the .lyx file. The
 others are created by the converter mechanism from the master file if
 needed. LyX will not output the extension in the .tex file to maintain
 portability, but it needs it in the .lyx file.
 
 That's great, I didn't know that. I agree it's the right thing to do. Is
 it documented somewhere? (well, probably in the main user guide?)

I don't know.

 Therefore tex2lyx looks for existing files and adds the extension if it
 finds one. What is missing here is a commandline switch for tex2lyx that
 tells wether the document is for normal latex or pdflatex. This should
 not be difficult to implement, you are welcome to do that if you know a
 bit of C++ ;-)
 
 Wait a minute, if lyx preserves the portability, why would you need such
 a switch? If I understand correctly, the master document is just used
 as input to convert for preview display, right? Then I think the
 situation is just fine as is.

No. The master graphics is used as master for everything. Consider the
following situation: The LyX file includes a figure a.xyz. Converters
exist from xyz - eps and xyz - png. The .tex file contains always
\includegraphics{a} (actually almost always, if you want to know the
details read
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/insets/insetgraphics.C?rev=HEADcontent-type=text/vnd.viewcvs-markup,
look for prepareFile). When you export to pdf using pdflatex, the file
a.png is created. When you export to ps, the file a.eps is created. a.xyz
is always the master, not only for preview, but also for export. Of course
there may be the special case that xyz = pdf or xyz = eps etc.
BTW, I am talking about LyX 1.4 here, it is slightly different in 1.3.

 Which one? The one I suggested about relyx and then tex2lyx (and that
 doesn't exist yet)?

The fact that tex2lyx creates an additional ERT for \bibliographystyle that
should be deleted.


Georg



Re: Legend at side of Graphics

2005-02-03 Thread Herbert Voss
Guillaume SANTINI wrote:
I got a float-graphic with a long legend (the figure is simple but not 
the comment). I want to specify LyX (v. 1.3.5) to put the legend at the 
side of the graphic rather than bellow. How could i do this ?
use package sidecap
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: tex2lyx for Linux

2005-02-03 Thread Sven Schreiber
Georg Baum wrote:
No. The master graphics is used as master for everything. Consider the
following situation: The LyX file includes a figure a.xyz. Converters
exist from xyz - eps and xyz - png. The .tex file contains always
\includegraphics{a} (actually almost always, if you want to know the
details read
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/insets/insetgraphics.C?rev=HEADcontent-type=text/vnd.viewcvs-markup,
look for prepareFile). When you export to pdf using pdflatex, the file
a.png is created. When you export to ps, the file a.eps is created. a.xyz
is always the master, not only for preview, but also for export. Of course
there may be the special case that xyz = pdf or xyz = eps etc.
BTW, I am talking about LyX 1.4 here, it is slightly different in 1.3.
Just how slightly different? Because I have this terrible feeling I 
wasted much time on unecessary things. Coming from lyx-less pdflatex, 
 I always kept .eps and .pdf-variants of the same graphics. The Lyx 
(1.3.5) extended-features guide seems to say the same thing:  5.3.6.1 
Use pdfLaTeX
With pdfLaTeX you need to convert your eps figures to PDF. And on the 
wiki page (How LyX handles figures) talk is about preview only.

In contrast, the way you describe it, it sounds wonderful: Skip the 
manual pdf-graphics-creation and just have lyx/imagemagick create the 
necessary png's on the fly. Just need one .eps (like in the old 
days...). That is/would be great!


Which one? The one I suggested about relyx and then tex2lyx (and that
doesn't exist yet)?

The fact that tex2lyx creates an additional ERT for \bibliographystyle that
should be deleted.
I meant: which wiki page should it be added to?
-sven


Re: tex2lyx for Linux

2005-02-03 Thread Angus Leeming
Paul Smith wrote:

 Thanks, Angus, for your reply to my question. Meanwhile, I had the
 idea of installing LyX 1.4 cvs and getting tex2lyx. Afterwards, can I
 get back to LyX 1.3.5 and using tex2lyx without LyX 1.4? Does my idea
 make some sense?

Here's what I did on Windows.

Checked out the LyX 1.4.x tree:

$ cvs -d ':pserver:[EMAIL PROTECTED]:/cvs/lyx' \
  login
The password is 'lyx'

$ cvs -d ':pserver:[EMAIL PROTECTED]:/cvs/lyx' \
  -z9 checkout -d devel lyx-devel

This creates a directory 'devel' containing the entire 1.4.x tree. It's 
brought over compressed (-z9) to minimize bandwidth.

$ cd devel
$ ./autogen.sh

This generates the Makefile templates (Makefile.in files) and the 
configure script.

$ mkdir build  cd build

It's nicer not to pollute the source with your build files.

$ ../configure --prefix='J:/Programs/LyX' --with-included-gettext
$ (cd boost  make)
$ (cd src/support  make)
$ (cd src/tex2lyx  make install)
$ (cd lib  make install)

This populates 'J:/Programs/LyX' with everything that tex2lyx, reLyX and 
lyx2lyx could possibly need and then some. I went on to prune lots of 
unneeded stuff. Note that the 'Resources' directory on Windows is the 
'share' directory on Unix.

I left only the stuff below. The lyx2lyx and reLyX directories are fully 
populated.

LyX/
bin/
reLyX
tex2lyx.exe
Resources/
lyx/
chkconfig.ltx
credits
lyx2lyx/
...
lyx2lyx
packages.lst
textclass.lst
configure
layouts/
lyxrc.defaults
reLyX/

It took me about 15 minutes to do all that.

Using it? See the mail 
  tex2lyx, lyx2lyx round trip is still broken (worse!)
on the lyx-devel list.
  http://article.gmane.org/gmane.editors.lyx.devel:41487 
and ensuing thread for a round trip lyx-tex-lyx-tex and attempt to run 
latex on the .tex files for the LyX user guide.

-- 
Angus



Re: tex2lyx for Linux

2005-02-03 Thread G. Milde
On  3.02.05, Angus Leeming wrote:
 
 Here's what I did on Windows.

Maybe I missed the start of this thread, but at least the last 7+ messages
did not reveal where I can find tex2lyx for *Linux*.

Is it possible to use tex2lyx and lyx2lyx with LyX 1.3.4 on Linux?

Are these scripts standalone python scripts or do they use some LyX code?

Sincerely

Guenter

-- 
G.Milde web.de


Re: tex2lyx for Linux

2005-02-03 Thread Angus Leeming
G. Milde wrote:

 On  3.02.05, Angus Leeming wrote:
 
 Here's what I did on Windows.
 
 Maybe I missed the start of this thread, but at least the last 7+
 messages did not reveal where I can find tex2lyx for *Linux*.

You can't *find* it. Read my reply to the original question.
http://article.gmane.org/gmane.editors.lyx.general:20140
You can *build* it. I explain how in the mail to which you replied.

I'm unwilling to provide tex2lyx executables because the nature of 
development is that there is of continual improvement. You're much better 
off regularly updating your cvs tree and building tex2lyx yourself.

 Is it possible to use tex2lyx and lyx2lyx with LyX 1.3.4 on Linux?

Yes. Follow the link on the article you're replying to. The whole thread 
is visible at
http://news.gmane.org/gmane.editors.lyx.devel

 Are these scripts standalone python scripts or do they use some LyX code?

lyx2lyx is a python script. tex2lyx is a compiled C++ program. Both can be 
run as standalone apps from the command line.
 
 Sincerely
 Guenter

-- 
Angus



Re: tex2lyx for Linux

2005-02-03 Thread Sven Schreiber
Georg Baum wrote:

- I use pdflatex but don't specify the .pdf-extension so that I can 
switch to normal latex (using .eps) seamlessly; tex2lyx applies a 
definite choice, thereby destroying this nice portability. Why?

Because LyX 1.4 _always_ needs the extension: There is always one master 
version of the graphic that is referenced in the .lyx file. The others 
are created by the converter mechanism from the master file if needed. 
LyX will not output the extension in the .tex file to maintain 
portability, but it needs it in the .lyx file.
That's great, I didn't know that. I agree it's the right thing to do. Is 
it documented somewhere? (well, probably in the main user guide?)

Therefore tex2lyx looks for existing files and adds the extension if it 
finds one. What is missing here is a commandline switch for tex2lyx that 
tells wether the document is for normal latex or pdflatex. This should 
not be difficult to implement, you are welcome to do that if you know a 
bit of C++ ;-)
Wait a minute, if lyx preserves the portability, why would you need such 
a switch? If I understand correctly, the master document is just used 
as input to convert for preview display, right? Then I think the 
situation is just fine as is.


- I have a \bibliographystyle definition (with natbib), this seems to be 
imported twice: it is specified when I open the bibreferences-inset, but 
it's also displayed as ERT

This is a known problem. It would be nice if you could add that to the 
wiki page.

Which one? The one I suggested about relyx and then tex2lyx (and that 
doesn't exist yet)?

-sven


lyx user

2005-02-03 Thread j_harmel


-- 
Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl


caption under figures ?

2005-02-03 Thread j_harmel
Hello
I has a document formatted with Komascript in tables and figures captions to
be above.  How can I adjust the figure captions under the figure to be?  
Thanks jojo

-- 
GMX im TV ... Die Gedanken sind frei ... Schon gesehen?
Jetzt Spot online ansehen: http://www.gmx.net/de/go/tv-spot


Legend at side of Graphics

2005-02-03 Thread Guillaume SANTINI
Hello,
I got a float-graphic with a long legend (the figure is simple but not 
the comment). I want to specify LyX (v. 1.3.5) to put the legend at the 
side of the graphic rather than bellow. How could i do this ?

Note that I currently use the following procedure to insert my figures:
Insert-Floats-Graphics
Then, in the opened box, I choose  text format as Standard, and use 
the tex command \caption{Title of the graphic}[Legend of the graphics] 
to insert title and legend

Thanks for your help.
Sorry if it's too simple
Guillaume


Re: Changing Default Subfigure Reference in Text

2005-02-03 Thread Stephen Buonopane
  This means that when I enter the reference in the text like this 
(Figure
[cross-reference]) what I see in the compiled output is a reference 
like
this (Figure 11.5(b)). TeX added the letter within parentheses. I 
can't find
a way to turn that off so the typeset reference is like this (Figure 
11.5b).

Rich,
Did the subfigure references (e.g. (b)) appear automatically? Perhaps 
it is defined in svmono? I have always had to put in the a,b,c etc 
manually after the LyX cross-reference box.

Steve


Re: caption under figures ?

2005-02-03 Thread Rich Shepard
On Thu, 3 Feb 2005 [EMAIL PROTECTED] wrote:
I has a document formatted with Komascript in tables and figures captions to
be above.  How can I adjust the figure captions under the figure to be?
  Either block and move the figure above the cpation or delete the caption
and rewrite it underneath (using the caption style).
  When creating figures, type the caption then move the cursor to the head
of the line, press [Enter] then center the paragraph before importing the
figure itself.
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
http://www.appl-ecosys.com   Voice: 503-667-4517   Fax: 503-667-8863


Re: Legend at side of Graphics

2005-02-03 Thread Rich Shepard
On Thu, 3 Feb 2005, Guillaume SANTINI wrote:
I got a float-graphic with a long legend (the figure is simple but not the 
comment). I want to specify LyX (v. 1.3.5) to put the legend at the side of 
the graphic rather than bellow. How could i do this ?
  Look on the Tips  Tricks web page, under floats. There's an example
there.
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
http://www.appl-ecosys.com   Voice: 503-667-4517   Fax: 503-667-8863


Re: tex2lyx for Linux

2005-02-03 Thread Georg Baum
Sven Schreiber wrote:

 Georg Baum wrote:
 Because LyX 1.4 _always_ needs the extension: There is always one
 master version of the graphic that is referenced in the .lyx file. The
 others are created by the converter mechanism from the master file if
 needed. LyX will not output the extension in the .tex file to maintain
 portability, but it needs it in the .lyx file.
 
 That's great, I didn't know that. I agree it's the right thing to do. Is
 it documented somewhere? (well, probably in the main user guide?)

I don't know.

 Therefore tex2lyx looks for existing files and adds the extension if it
 finds one. What is missing here is a commandline switch for tex2lyx that
 tells wether the document is for normal latex or pdflatex. This should
 not be difficult to implement, you are welcome to do that if you know a
 bit of C++ ;-)
 
 Wait a minute, if lyx preserves the portability, why would you need such
 a switch? If I understand correctly, the master document is just used
 as input to convert for preview display, right? Then I think the
 situation is just fine as is.

No. The master graphics is used as master for everything. Consider the
following situation: The LyX file includes a figure a.xyz. Converters
exist from xyz - eps and xyz - png. The .tex file contains always
\includegraphics{a} (actually almost always, if you want to know the
details read
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/insets/insetgraphics.C?rev=HEADcontent-type=text/vnd.viewcvs-markup,
look for prepareFile). When you export to pdf using pdflatex, the file
a.png is created. When you export to ps, the file a.eps is created. a.xyz
is always the master, not only for preview, but also for export. Of course
there may be the special case that xyz = pdf or xyz = eps etc.
BTW, I am talking about LyX 1.4 here, it is slightly different in 1.3.

 Which one? The one I suggested about relyx and then tex2lyx (and that
 doesn't exist yet)?

The fact that tex2lyx creates an additional ERT for \bibliographystyle that
should be deleted.


Georg



Re: Legend at side of Graphics

2005-02-03 Thread Herbert Voss
Guillaume SANTINI wrote:
I got a float-graphic with a long legend (the figure is simple but not 
the comment). I want to specify LyX (v. 1.3.5) to put the legend at the 
side of the graphic rather than bellow. How could i do this ?
use package sidecap
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: tex2lyx for Linux

2005-02-03 Thread Sven Schreiber
Georg Baum wrote:
No. The master graphics is used as master for everything. Consider the
following situation: The LyX file includes a figure a.xyz. Converters
exist from xyz - eps and xyz - png. The .tex file contains always
\includegraphics{a} (actually almost always, if you want to know the
details read
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/insets/insetgraphics.C?rev=HEADcontent-type=text/vnd.viewcvs-markup,
look for prepareFile). When you export to pdf using pdflatex, the file
a.png is created. When you export to ps, the file a.eps is created. a.xyz
is always the master, not only for preview, but also for export. Of course
there may be the special case that xyz = pdf or xyz = eps etc.
BTW, I am talking about LyX 1.4 here, it is slightly different in 1.3.
Just how slightly different? Because I have this terrible feeling I 
wasted much time on unecessary things. Coming from lyx-less pdflatex, 
 I always kept .eps and .pdf-variants of the same graphics. The Lyx 
(1.3.5) extended-features guide seems to say the same thing:  5.3.6.1 
Use pdfLaTeX
With pdfLaTeX you need to convert your eps figures to PDF. And on the 
wiki page (How LyX handles figures) talk is about preview only.

In contrast, the way you describe it, it sounds wonderful: Skip the 
manual pdf-graphics-creation and just have lyx/imagemagick create the 
necessary png's on the fly. Just need one .eps (like in the old 
days...). That is/would be great!


Which one? The one I suggested about relyx and then tex2lyx (and that
doesn't exist yet)?

The fact that tex2lyx creates an additional ERT for \bibliographystyle that
should be deleted.
I meant: which wiki page should it be added to?
-sven


Re: tex2lyx for Linux

2005-02-03 Thread Angus Leeming
Paul Smith wrote:

> Thanks, Angus, for your reply to my question. Meanwhile, I had the
> idea of installing LyX 1.4 cvs and getting tex2lyx. Afterwards, can I
> get back to LyX 1.3.5 and using tex2lyx without LyX 1.4? Does my idea
> make some sense?

Here's what I did on Windows.

Checked out the LyX 1.4.x tree:

$ cvs -d ':pserver:[EMAIL PROTECTED]:/cvs/lyx' \
  login
The password is 'lyx'

$ cvs -d ':pserver:[EMAIL PROTECTED]:/cvs/lyx' \
  -z9 checkout -d devel lyx-devel

This creates a directory 'devel' containing the entire 1.4.x tree. It's 
brought over compressed (-z9) to minimize bandwidth.

$ cd devel
$ ./autogen.sh

This generates the Makefile templates (Makefile.in files) and the 
configure script.

$ mkdir build && cd build

It's nicer not to pollute the source with your build files.

$ ../configure --prefix='J:/Programs/LyX' --with-included-gettext
$ (cd boost && make)
$ (cd src/support && make)
$ (cd src/tex2lyx && make install)
$ (cd lib && make install)

This populates 'J:/Programs/LyX' with everything that tex2lyx, reLyX and 
lyx2lyx could possibly need and then some. I went on to prune lots of 
unneeded stuff. Note that the 'Resources' directory on Windows is the 
'share' directory on Unix.

I left only the stuff below. The lyx2lyx and reLyX directories are fully 
populated.

LyX/
bin/
reLyX
tex2lyx.exe
Resources/
lyx/
chkconfig.ltx
credits
lyx2lyx/
...
lyx2lyx
packages.lst
textclass.lst
configure
layouts/
lyxrc.defaults
reLyX/

It took me about 15 minutes to do all that.

Using it? See the mail 
  "tex2lyx, lyx2lyx round trip is still broken (worse!)"
on the lyx-devel list.
  http://article.gmane.org/gmane.editors.lyx.devel:41487 
and ensuing thread for a round trip lyx->tex->lyx->tex and attempt to run 
latex on the .tex files for the LyX user guide.

-- 
Angus



Re: tex2lyx for Linux

2005-02-03 Thread G. Milde
On  3.02.05, Angus Leeming wrote:
> 
> Here's what I did on Windows.

Maybe I missed the start of this thread, but at least the last 7+ messages
did not reveal where I can find tex2lyx for *Linux*.

Is it possible to use tex2lyx and lyx2lyx with LyX 1.3.4 on Linux?

Are these scripts standalone python scripts or do they use some LyX code?

Sincerely

Guenter

-- 
G.Milde web.de


Re: tex2lyx for Linux

2005-02-03 Thread Angus Leeming
G. Milde wrote:

> On  3.02.05, Angus Leeming wrote:
>> 
>> Here's what I did on Windows.
> 
> Maybe I missed the start of this thread, but at least the last 7+
> messages did not reveal where I can find tex2lyx for *Linux*.

You can't *find* it. Read my reply to the original question.
http://article.gmane.org/gmane.editors.lyx.general:20140
You can *build* it. I explain how in the mail to which you replied.

I'm unwilling to provide tex2lyx executables because the nature of 
development is that there is of continual improvement. You're much better 
off regularly updating your cvs tree and building tex2lyx yourself.

> Is it possible to use tex2lyx and lyx2lyx with LyX 1.3.4 on Linux?

Yes. Follow the link on the article you're replying to. The whole thread 
is visible at
http://news.gmane.org/gmane.editors.lyx.devel

> Are these scripts standalone python scripts or do they use some LyX code?

lyx2lyx is a python script. tex2lyx is a compiled C++ program. Both can be 
run as standalone apps from the command line.
 
> Sincerely
> Guenter

-- 
Angus



Re: tex2lyx for Linux

2005-02-03 Thread Sven Schreiber
Georg Baum wrote:

- I use pdflatex but don't specify the .pdf-extension so that I can 
switch to normal latex (using .eps) seamlessly; tex2lyx applies a 
definite choice, thereby destroying this nice portability. Why?

Because LyX 1.4 _always_ needs the extension: There is always one "master" 
version of the graphic that is referenced in the .lyx file. The others 
are created by the converter mechanism from the master file if needed. 
LyX will not output the extension in the .tex file to maintain 
portability, but it needs it in the .lyx file.
That's great, I didn't know that. I agree it's the right thing to do. Is 
it documented somewhere? (well, probably in the main user guide?)

Therefore tex2lyx looks for existing files and adds the extension if it 
finds one. What is missing here is a commandline switch for tex2lyx that 
tells wether the document is for "normal" latex or pdflatex. This should 
not be difficult to implement, you are welcome to do that if you know a 
bit of C++ ;-)
Wait a minute, if lyx preserves the portability, why would you need such 
a switch? If I understand correctly, the "master" document is just used 
as input to convert for preview display, right? Then I think the 
situation is just fine "as is".


- I have a \bibliographystyle definition (with natbib), this seems to be 
imported twice: it is specified when I open the bibreferences-inset, but 
it's also displayed as ERT

This is a known problem. It would be nice if you could add that to the 
wiki page.

Which one? The one I suggested about relyx and then tex2lyx (and that 
doesn't exist yet)?

-sven


lyx user

2005-02-03 Thread j_harmel


-- 
Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl


caption under figures ?

2005-02-03 Thread j_harmel
Hello
I has a document formatted with Komascript in tables and figures captions to
be above.  How can I adjust the figure captions under the figure to be?  
Thanks jojo

-- 
GMX im TV ... Die Gedanken sind frei ... Schon gesehen?
Jetzt Spot online ansehen: http://www.gmx.net/de/go/tv-spot


Legend at side of Graphics

2005-02-03 Thread Guillaume SANTINI
Hello,
I got a float-graphic with a long legend (the figure is simple but not 
the comment). I want to specify LyX (v. 1.3.5) to put the legend at the 
side of the graphic rather than bellow. How could i do this ?

Note that I currently use the following procedure to insert my figures:
Insert->Floats->Graphics
Then, in the opened box, I choose  text format as "Standard", and use 
the tex command \caption{Title of the graphic}[Legend of the graphics] 
to insert title and legend

Thanks for your help.
Sorry if it's too simple
Guillaume


Re: Changing Default Subfigure Reference in Text

2005-02-03 Thread Stephen Buonopane
  This means that when I enter the reference in the text like this 
(Figure
[cross-reference]) what I see in the compiled output is a reference 
like
this (Figure 11.5(b)). TeX added the letter within parentheses. I 
can't find
a way to turn that off so the typeset reference is like this (Figure 
11.5b).

Rich,
Did the subfigure references (e.g. (b)) appear automatically? Perhaps 
it is defined in "svmono"? I have always had to put in the a,b,c etc 
manually after the LyX cross-reference box.

Steve


Re: caption under figures ?

2005-02-03 Thread Rich Shepard
On Thu, 3 Feb 2005 [EMAIL PROTECTED] wrote:
I has a document formatted with Komascript in tables and figures captions to
be above.  How can I adjust the figure captions under the figure to be?
  Either block and move the figure above the cpation or delete the caption
and rewrite it underneath (using the caption style).
  When creating figures, type the caption then move the cursor to the head
of the line, press [Enter] then center the paragraph before importing the
figure itself.
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: Legend at side of Graphics

2005-02-03 Thread Rich Shepard
On Thu, 3 Feb 2005, Guillaume SANTINI wrote:
I got a float-graphic with a long legend (the figure is simple but not the 
comment). I want to specify LyX (v. 1.3.5) to put the legend at the side of 
the graphic rather than bellow. How could i do this ?
  Look on the Tips & Tricks web page, under "floats". There's an example
there.
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: tex2lyx for Linux

2005-02-03 Thread Georg Baum
Sven Schreiber wrote:

> Georg Baum wrote:
>> Because LyX 1.4 _always_ needs the extension: There is always one
>> "master" version of the graphic that is referenced in the .lyx file. The
>> others are created by the converter mechanism from the master file if
>> needed. LyX will not output the extension in the .tex file to maintain
>> portability, but it needs it in the .lyx file.
> 
> That's great, I didn't know that. I agree it's the right thing to do. Is
> it documented somewhere? (well, probably in the main user guide?)

I don't know.

>> Therefore tex2lyx looks for existing files and adds the extension if it
>> finds one. What is missing here is a commandline switch for tex2lyx that
>> tells wether the document is for "normal" latex or pdflatex. This should
>> not be difficult to implement, you are welcome to do that if you know a
>> bit of C++ ;-)
> 
> Wait a minute, if lyx preserves the portability, why would you need such
> a switch? If I understand correctly, the "master" document is just used
> as input to convert for preview display, right? Then I think the
> situation is just fine "as is".

No. The master graphics is used as master for everything. Consider the
following situation: The LyX file includes a figure "a.xyz". Converters
exist from xyz -> eps and xyz -> png. The .tex file contains always
\includegraphics{a} (actually almost always, if you want to know the
details read
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/insets/insetgraphics.C?rev=HEAD=text/vnd.viewcvs-markup,
look for prepareFile). When you export to pdf using pdflatex, the file
a.png is created. When you export to ps, the file a.eps is created. a.xyz
is always the master, not only for preview, but also for export. Of course
there may be the special case that xyz = pdf or xyz = eps etc.
BTW, I am talking about LyX 1.4 here, it is slightly different in 1.3.

> Which one? The one I suggested about relyx and then tex2lyx (and that
> doesn't exist yet)?

The fact that tex2lyx creates an additional ERT for \bibliographystyle that
should be deleted.


Georg



Re: Legend at side of Graphics

2005-02-03 Thread Herbert Voss
Guillaume SANTINI wrote:
I got a float-graphic with a long legend (the figure is simple but not 
the comment). I want to specify LyX (v. 1.3.5) to put the legend at the 
side of the graphic rather than bellow. How could i do this ?
use package sidecap
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: tex2lyx for Linux

2005-02-03 Thread Sven Schreiber
Georg Baum wrote:
No. The master graphics is used as master for everything. Consider the
following situation: The LyX file includes a figure "a.xyz". Converters
exist from xyz -> eps and xyz -> png. The .tex file contains always
\includegraphics{a} (actually almost always, if you want to know the
details read
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/insets/insetgraphics.C?rev=HEAD=text/vnd.viewcvs-markup,
look for prepareFile). When you export to pdf using pdflatex, the file
a.png is created. When you export to ps, the file a.eps is created. a.xyz
is always the master, not only for preview, but also for export. Of course
there may be the special case that xyz = pdf or xyz = eps etc.
BTW, I am talking about LyX 1.4 here, it is slightly different in 1.3.
Just how "slightly" different? Because I have this terrible feeling I 
wasted much time on unecessary things. Coming from lyx-less pdflatex, 
 I always kept .eps and .pdf-variants of the same graphics. The Lyx 
(1.3.5) extended-features guide seems to say the same thing:  "5.3.6.1 
Use pdfLaTeX
With pdfLaTeX you need to convert your eps figures to PDF". And on the 
wiki page ("How LyX handles figures") talk is about preview only.

In contrast, the way you describe it, it sounds wonderful: Skip the 
manual pdf-graphics-creation and just have lyx/imagemagick create the 
necessary png's on the fly. Just need one .eps (like in the old 
days...). That is/would be great!


Which one? The one I suggested about relyx and then tex2lyx (and that
doesn't exist yet)?

The fact that tex2lyx creates an additional ERT for \bibliographystyle that
should be deleted.
I meant: which wiki page should it be added to?
-sven