Re: installing ps4pdf

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 07:37:02 +0530, samar j. singh [EMAIL PROTECTED] wrote:
 Could you tell me what to do with the script file ps4pdf which is part of
 the package to integrate into lyx.. Strangely enough, texhash does not allow
 me to recognize ps4pdf.sty whether I put it in the root texmf tree or the
 local texmf tree. Any advice on that?

In my case, Samar, I have ps4pdf.sty in:

/usr/share/texmf/tex/latex/pstricks/ps4pdf.sty

Regards,

Paul


Re: Incorporating PSTricks Figures in a Document

2005-02-16 Thread chr
On Tue, 15 Feb 2005, Paul Smith wrote:

 On Tue, 15 Feb 2005 18:44:36 +, Paul Smith [EMAIL PROTECTED] wrote:
  The promised modified example is below. To run ps4pdf within LyX, go
  to your preferences file ($HOME/.lyx/preferences) and add (in the
  indicated sections) the lines below:
 
 Sorry, I forgot the file in my previous post.
Does it make sense to add it to this wiki page?

http://wiki.lyx.org/Examples/PSTricks

/Christian (who hasn't been following this thread very closely :-)

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Colin J. Williams
Ekkehart Schlicht wrote:

Colin J. Williams wrote:
Ekkehart Schlicht wrote:
It suffices to place a file lyx2lyx.cmd containing
@ path to python\python path to lyx\share\lyx\lyx2lyx\lyx2lyx %*
into the /lyx/share/lyx/lyx2lyx
You can use Ruurd Reitsma's python - no proper python needed for 
this.

I have put this on the WiKi.
Ekkehart
I've followed the guidance above.  The .tex file is converted to .lyx 
OK but the resulting file is not loaded to LyX and I get a message 
Can't find error conversion script.

The converter for Latex = Lyx is reLyX -f $$i
I am using Windows XP with LyX 1.3.5.
Any suggestions?
Colin W.
Sorry. It worked well for me. I have just converted an entire book from
rtf to tex (via rtf2latex2e.exe) and imported it successfully into Lyx 
- with some
minor drawbacks regarding graphics. I have the same converter
instruction and the same OS and LyX version that you have noted.
To identify the problem, so that the WiKi entry can be corrected:
Could you just create a lyx file with some text in it (Hallo World)
and export it to LaTeX and then import it to LyX? Could you just tell me
whether this works?

I have a full python on my computer and simply tried (by renaming) to
hide it and use Ruurd's python. This worked for me. Maybe we need the
full python and delete the python.exe in Ruurd's distribution. This 
would
be the next step to try.

I think that LaTeX export and import are /absolutely /essential.
Thanks
Ekkehart
Ekkehart,
My project is absolutely trivial compared with yours.
Here are the three files which are generated from the process you suggest.
The error message I get is Can't find the conversion script.
If I execute the relyx command, I get:
   C:\LyX\TexreLyX -f hello.tex
   C:\LyX\Texrem reLyX.bat  To provide command line access to reLyX
   C:\LyX\TexC:\Lyx\lyx\bin\relyx.bat  -f hello.tex
   reLyX directory is: C:/LyX/lyx/share/lyx/reLyX
   reLyX, the LaTeX to LyX translator. Revision date 2003/01/20
   Reading LaTeX command syntax
   (hello.tex: Splitting Preamble
   Creating LyX preamble
   Reading layout file
   Cleaning... Translating... Writing... )
   Deleting temp files
   Finished successfully!
When I attempt to open the created Hello.lyx, I get the Can't open 
conversion script message.

I have Python 2.3.5 installed and had deleted the Python 2.2 stuff from 
the lyx\bin.  In view of you comments above, I reinstalled LyX 1.3.5 and 
then renamed Python23 to Python23Z.  I get the same message.

Please let me know if there is other information I can provide.
Colin W.
# The reLyX bundled with LyX 1.3 created this file.
# For more info see http://www.lyx.org/
\lyxformat 2.15
\textclass article
\language english
\inputencoding latin1
\use_natbib 0
\use_numerical_citations 0
\begin_preamble
\usepackage{babel}
\end_preamble

\layout Title

Hello
\layout Paragraph

Now is the time for all good men to come to the aid of the party.
\the_end
%% LyX 1.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\makeatletter
\usepackage{babel}
\makeatother
%% LyX 1.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\makeatletter
\usepackage{babel}
\makeatother
\begin{document}

\title{Hello}

\maketitle

\paragraph{Now is the time for all good men to come to the aid of the party.}
\end{document}


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Ekkehart Schlicht

Colin J. Williams wrote:
Here are the three files which are generated from the process you 
suggest.
I can import and Hello.tex into LyX without problems and view it with 
both pdflatex
and latex/dvi

The error message I get is Can't find the conversion script.
If I execute the relyx command, I get:
   C:\LyX\TexreLyX -f hello.tex
   C:\LyX\Texrem reLyX.bat  To provide command line access to reLyX
   C:\LyX\TexC:\Lyx\lyx\bin\relyx.bat  -f hello.tex
   reLyX directory is: C:/LyX/lyx/share/lyx/reLyX
   reLyX, the LaTeX to LyX translator. Revision date 2003/01/20
   Reading LaTeX command syntax
   (hello.tex: Splitting Preamble
   Creating LyX preamble
   Reading layout file
   Cleaning... Translating... Writing... )
   Deleting temp files
   Finished successfully!
I get the same
When I attempt to open the created Hello.lyx, I get the Can't open 
conversion script message.
I don't get this message -  Hello.lyx opens nicely with Lyx, both the 
version you have
provided and the one I produced myself with relyx. So it seems a problem 
of your Lyx, rather than the import/export/reLyX stuff.

I have Python 2.3.5 installed and had deleted the Python 2.2 stuff 
from the lyx\bin.  In view of you comments above, I reinstalled LyX 
1.3.5 and then renamed Python23 to Python23Z.  I get the same message.
I have Python 2.3.4, have renamed Ruurd's Python and use LyXWin 1.3.5 qt.
Our setups seem nearly identical.
Please let me know if there is other information I can provide.
Have you opened Lyx and then opened Hello.lyx from /within/  Lyx?
You may try the original approach by Michael Wojcik:
-copy the lyx2lyx file to lyx2lyx.py
- change the lyx2lyx.cmd file to
@ /path/to/lyx2lyx.py %*
Does this work?
Colin W.
Unfortunately I have no other ideas!
Ekkehart


hyperref export to PDF on Fedora Core

2005-02-16 Thread Todd Denniston
Hello,
I have been using LyX for a while now (~4 years), and have recently ran into
a problem with hyperref when I upgraded to Fedora Core 3 (FC3) from
Slackware 8.1.
A LyX document I have which exported to PDF (pdflatex) using LyX
1.3.1(xforms interface) on Slackware many times (and I still can as I still
have the machine with that install) gives me errors when I do the export on
FC3 (also tried on FC12, yields the same errors) using either LyX 1.3.1 or
LyX 1.3.5 (qt interface). I have attached a trimmed down version of the file
where it still exhibits all 3 errors I get.  I do not believe that the
problem lies with LyX as when I export the file to LaTeX on both platforms I
get the same .tex file.

I really want hyperref because it makes the bookmarks section of the PDFs
work, which is why I am looking for a solution that includes hyperref or an
appropriate replacement.

a few questions
1) has anyone else had this problem with FC[123], and what if any solution
did you find?
2) Is there a known package, or set of packages, replacement or upgrade to
fix this problem?
3) what easy way is there to find out the versions of all the [La]Tex
programs  classes/styles being used in converting my document on both
installations? (so I can ask questions more intelligently.)
4) although I would prefer not to have to change from the default LyX export
settings, is there another method to export to PDF and get the same results?

on FC3 I am using the tetex package FC labels as tetex-2.0.2-21.3 on
Slackware I do not quite know which tetex version is being distributed, the
last entry in /usr/share/texmf/ChangeLog of the Slack system is Sat Feb 12
15:13:12 CET 2000 * fixed wrong characters in TETEXDOC.ps

The errors are:
error 1 
pdfTeX warning (ext4): destination with the same identifier (name{page.1})
ha
 \newpage
  [1] [2]
LaTeX Font Info:Font shape `T1/ppl/bx/n' in size 14.4 not available
(Font)  Font shape `T1/ppl/b/n' tried instead on input line 30.
[EMAIL PROTECTED]
\openout4 = `hyperrefprob.toc'.


error 2 
pdfTeX warning (ext4): destination with the same identifier (name{page.1})
ha
 \newpage
  [1]



error 3 
pdfTeX warning (ext4): destination with the same identifier (name{page.3})
ha
 \end{document}
[3] (./hyperrefprob.aux)


Thanks.

BTW thanks to all the list posters, I have found many of your
fixes/tips/tricks very useful over the years with out having, until now, ask
the questions myself.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\listfiles
\usepackage{hyperref}
\end_preamble
\language english
\inputencoding auto
\fontscheme palatino
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard
\noindent 
junk on first page
\layout Standard
\added_space_top vfill* \added_space_bottom vfill* \pagebreak_top \align center 

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
setcounter{page}{1}
\end_inset 

This page intentionally left blank.
\layout Standard
\pagebreak_top \align left 
junk
\layout Standard
\pagebreak_top \align center 

\begin_inset LatexCommand \tableofcontents{}

\end_inset 


\layout Section
\pagebreak_top 
section1
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
setcounter{page}{1}
\end_inset 


\layout Section
\pagebreak_top 
asection
\layout Section
\pagebreak_top 
moresection
\layout Standard

text
\the_end


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Angus Leeming
Colin J. Williams wrote:

 
 When I attempt to open the created Hello.lyx, I get the Can't open
 conversion script message.
 
 I have Python 2.3.5 installed and had deleted the Python 2.2 stuff from
 the lyx\bin.  In  view  of your  comments  above,  I  reinstalled  LyX
 1.3.5  and then renamed Python23 to Python23Z.   I  get  the  same
  message.

This is rapidly becoming a LyX/Win FAQ. Indeed, much of the information 
you require is detailed in the rest of this thread. However, I think that 
a recap might provide you with some illumination.

The reLyX Perl script converts your LaTeX file to a file in a mish-mash of 
different LyX file formats and it is this mish-mash LyX file must be 
sanitized by the lyx2lyx Python conversion script.

It is this conversion script, lyx2lyx, can't be run because it is invoked 
by LyX as 

  path to\lyx2lyx --output new file.lyx old file.lyx

Invocation of the script in this way is perfectly fine in a Unix 
environment because the shell will look at the first line of the script to 
ascertain what interpretter (python) should be used. Windows doesn't 
follow this tradition. Instead it looks either for a .py extension to 
the script name or requires that the script be invoked as

  python path to\lyx2lyx --output new file.lyx old file.lyx

Since the invocation is hard-coded into the LyX executable, you can't 
change it. Tough.

A work-around has been suggested, however. Place a file lyx2lyx.cmd in 
the same directory as the lyx2lyx python script. This file should contain 
the line:

@ path to python\python path to lyx2lyx\lyx2lyx %*

You can also run these scripts from the CMD prompt.

PROMPT reLyX -f hello.tex
PROMPT python path to lyx2lyx\lyx2lyx -o sanitized_hello.lyx hello.lyx

This sanitized_hello.lyx should be loadable by LyX 1.3.x without further 
conversion. This assumes, of course, that reLyX has done a reasonable job 
of converting your LaTeX file in the first place.

Alternatively, you might consider using tex2lyx. Read about it here:

   http://wiki.lyx.org/LaTeX/LatexToLyx

-- 
Angus



Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Sven Schreiber
Angus Leeming wrote:
Alternatively, you might consider using tex2lyx. Read about it here:
   http://wiki.lyx.org/LaTeX/LatexToLyx
Great page! This addresses essentially all my latex-import suggestions 
and problems that made me start this thread. Thanks for making tex2lyx 
accessible! (But still looking forward to the 1.4 release...)

Cheers,
Sven


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Angus Leeming
Sven Schreiber wrote:
 Alternatively, you might consider using tex2lyx. Read about it here:
 
http://wiki.lyx.org/LaTeX/LatexToLyx
 
 Great page! This addresses essentially all my latex-import suggestions
 and problems that made me start this thread. Thanks for making tex2lyx
 accessible!

Can I suggest that you post minimal latex files of any construct that you 
find aren't handled well to the lyx-devel list. In fact, I've added a note 
to this effect to the page itself.

 (But still looking forward to the 1.4 release...)

Aren't we all. Still it's looking a lot more solid than it did a month or 
so ago.

-- 
Angus



Re: Incorporating PSTricks Figures in a Document

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 14:34:54 +0100, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Does it make sense to add it to this wiki page?
 
 http://wiki.lyx.org/Examples/PSTricks

Christian,

I have just uploaded the requested example and a short explanation.

Regards,

Paul


more tex2lyx

2005-02-16 Thread Angus Leeming
I've just uploaded a version for Fedora Core 3 to the wiki page.
http://wiki.lyx.org/LaTeX/LatexToLyx
Happy converting.
-- 
Angus



Keybinding for italic

2005-02-16 Thread Paul Smith
Dear All

Is there a keybinding for italic? I looked for it in the file
cua.bind, but with no success.

Thanks in advance,

Paul


Re: Keybinding for italic

2005-02-16 Thread Rich Shepard
On Wed, 16 Feb 2005, Paul Smith wrote:
Is there a keybinding for italic? I looked for it in the file
cua.bind, but with no success.
Paul,
  From ~/.lyx/bind/cua.bind on my box:
\bind C-i font-emph # 'i' for Italic
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: Keybinding for italic

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 14:26:11 -0800 (PST), Rich Shepard
[EMAIL PROTECTED] wrote:
  Is there a keybinding for italic? I looked for it in the file
  cua.bind, but with no success.
 
From ~/.lyx/bind/cua.bind on my box:
 \bind C-i font-emph # 'i' for Italic

Thanks, Rich. In my case,

\bind C-i inset-toggle  # 'i' for Inset

Strange!

Paul


Re: Keybinding for italic

2005-02-16 Thread Rich Shepard
On Wed, 16 Feb 2005, Paul Smith wrote:
Thanks, Rich. In my case,
\bind C-i			inset-toggle		# 'i' for Inset

Strange!
Paul,
  No, I redefined it. :-)
#\bind C-iinset-toggle  # 'i' for Inset
\bind C-i font-emph # 'i' for Italic
  Then I copy cua.bind to my.bind just in case.
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: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Colin J. Williams
Angus Leeming wrote:
Colin J. Williams wrote:
 

When I attempt to open the created Hello.lyx, I get the Can't open
conversion script message.
I have Python 2.3.5 installed and had deleted the Python 2.2 stuff from
the lyx\bin.  In  view  of your  comments  above,  I  reinstalled  LyX
1.3.5  and then renamed Python23 to Python23Z.   I  get  the  same
message.
   

This is rapidly becoming a LyX/Win FAQ. Indeed, much of the information 
you require is detailed in the rest of this thread. However, I think that 
a recap might provide you with some illumination.

The reLyX Perl script converts your LaTeX file to a file in a mish-mash of 
different LyX file formats and it is this mish-mash LyX file must be 
sanitized by the lyx2lyx Python conversion script.

It is this conversion script, lyx2lyx, can't be run because it is invoked 
by LyX as 

 path to\lyx2lyx --output new file.lyx old file.lyx
Invocation of the script in this way is perfectly fine in a Unix 
environment because the shell will look at the first line of the script to 
ascertain what interpretter (python) should be used. Windows doesn't 
follow this tradition. Instead it looks either for a .py extension to 
the script name or requires that the script be invoked as

 python path to\lyx2lyx --output new file.lyx old file.lyx
Since the invocation is hard-coded into the LyX executable, you can't 
change it. Tough.

A work-around has been suggested, however. Place a file lyx2lyx.cmd in 
the same directory as the lyx2lyx python script. This file should contain 
the line:

@ path to python\python path to lyx2lyx\lyx2lyx %*
You can also run these scripts from the CMD prompt.
PROMPT reLyX -f hello.tex
PROMPT python path to lyx2lyx\lyx2lyx -o sanitized_hello.lyx hello.lyx
This sanitized_hello.lyx should be loadable by LyX 1.3.x without further 
conversion. This assumes, of course, that reLyX has done a reasonable job 
of converting your LaTeX file in the first place.

Alternatively, you might consider using tex2lyx. Read about it here:
  http://wiki.lyx.org/LaTeX/LatexToLyx
 

So far, I have not been able to make this fly, although the two scripts 
from the CMD prompt do the job.

I have the download from the wiki and will try it tomorrow. Thanks for 
all your work on this.

Colin W.


Re: Keybinding for italic

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 14:49:36 -0800 (PST), Rich Shepard
[EMAIL PROTECTED] wrote:
No, I redefined it. :-)
 
 #\bind C-iinset-toggle  # 'i' for Inset
 \bind C-i font-emph # 'i' for Italic
 
Then I copy cua.bind to my.bind just in case.

Understood now!

Just a doubt: is emphasised exactly the same than italic?

Paul


Re: more tex2lyx

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 21:50:47 +, Angus Leeming [EMAIL PROTECTED] wrote:
 I've just uploaded a version for Fedora Core 3 to the wiki page.
 http://wiki.lyx.org/LaTeX/LatexToLyx
 Happy converting.

Angus,

Your script make_tex2lyx_dist fails in my case (Mandrake 10.1):

 The following problems have been detected by configure.
 Please check the messages below before running 'make'.
 (see the section 'Problems' in the INSTALL file)

** Unknown frontend 'foo'

Regards,

Paul


Re: Keybinding for italic

2005-02-16 Thread Rich Shepard
On Wed, 16 Feb 2005, Paul Smith wrote:
Just a doubt: is emphasised exactly the same than italic?
Paul,
  Yes. I needed C-e to move to the end of a line so I made C-i the key
instead. The other two font changers are C-b for bold and C-k for (k)apitol;
i.e., small caps which LaTeX uses as the noun form for names of people.
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: installing ps4pdf

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 07:37:02 +0530, samar j. singh [EMAIL PROTECTED] wrote:
 Could you tell me what to do with the script file ps4pdf which is part of
 the package to integrate into lyx.. Strangely enough, texhash does not allow
 me to recognize ps4pdf.sty whether I put it in the root texmf tree or the
 local texmf tree. Any advice on that?

In my case, Samar, I have ps4pdf.sty in:

/usr/share/texmf/tex/latex/pstricks/ps4pdf.sty

Regards,

Paul


Re: Incorporating PSTricks Figures in a Document

2005-02-16 Thread chr
On Tue, 15 Feb 2005, Paul Smith wrote:

 On Tue, 15 Feb 2005 18:44:36 +, Paul Smith [EMAIL PROTECTED] wrote:
  The promised modified example is below. To run ps4pdf within LyX, go
  to your preferences file ($HOME/.lyx/preferences) and add (in the
  indicated sections) the lines below:
 
 Sorry, I forgot the file in my previous post.
Does it make sense to add it to this wiki page?

http://wiki.lyx.org/Examples/PSTricks

/Christian (who hasn't been following this thread very closely :-)

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Colin J. Williams
Ekkehart Schlicht wrote:

Colin J. Williams wrote:
Ekkehart Schlicht wrote:
It suffices to place a file lyx2lyx.cmd containing
@ path to python\python path to lyx\share\lyx\lyx2lyx\lyx2lyx %*
into the /lyx/share/lyx/lyx2lyx
You can use Ruurd Reitsma's python - no proper python needed for 
this.

I have put this on the WiKi.
Ekkehart
I've followed the guidance above.  The .tex file is converted to .lyx 
OK but the resulting file is not loaded to LyX and I get a message 
Can't find error conversion script.

The converter for Latex = Lyx is reLyX -f $$i
I am using Windows XP with LyX 1.3.5.
Any suggestions?
Colin W.
Sorry. It worked well for me. I have just converted an entire book from
rtf to tex (via rtf2latex2e.exe) and imported it successfully into Lyx 
- with some
minor drawbacks regarding graphics. I have the same converter
instruction and the same OS and LyX version that you have noted.
To identify the problem, so that the WiKi entry can be corrected:
Could you just create a lyx file with some text in it (Hallo World)
and export it to LaTeX and then import it to LyX? Could you just tell me
whether this works?

I have a full python on my computer and simply tried (by renaming) to
hide it and use Ruurd's python. This worked for me. Maybe we need the
full python and delete the python.exe in Ruurd's distribution. This 
would
be the next step to try.

I think that LaTeX export and import are /absolutely /essential.
Thanks
Ekkehart
Ekkehart,
My project is absolutely trivial compared with yours.
Here are the three files which are generated from the process you suggest.
The error message I get is Can't find the conversion script.
If I execute the relyx command, I get:
   C:\LyX\TexreLyX -f hello.tex
   C:\LyX\Texrem reLyX.bat  To provide command line access to reLyX
   C:\LyX\TexC:\Lyx\lyx\bin\relyx.bat  -f hello.tex
   reLyX directory is: C:/LyX/lyx/share/lyx/reLyX
   reLyX, the LaTeX to LyX translator. Revision date 2003/01/20
   Reading LaTeX command syntax
   (hello.tex: Splitting Preamble
   Creating LyX preamble
   Reading layout file
   Cleaning... Translating... Writing... )
   Deleting temp files
   Finished successfully!
When I attempt to open the created Hello.lyx, I get the Can't open 
conversion script message.

I have Python 2.3.5 installed and had deleted the Python 2.2 stuff from 
the lyx\bin.  In view of you comments above, I reinstalled LyX 1.3.5 and 
then renamed Python23 to Python23Z.  I get the same message.

Please let me know if there is other information I can provide.
Colin W.
# The reLyX bundled with LyX 1.3 created this file.
# For more info see http://www.lyx.org/
\lyxformat 2.15
\textclass article
\language english
\inputencoding latin1
\use_natbib 0
\use_numerical_citations 0
\begin_preamble
\usepackage{babel}
\end_preamble

\layout Title

Hello
\layout Paragraph

Now is the time for all good men to come to the aid of the party.
\the_end
%% LyX 1.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\makeatletter
\usepackage{babel}
\makeatother
%% LyX 1.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\makeatletter
\usepackage{babel}
\makeatother
\begin{document}

\title{Hello}

\maketitle

\paragraph{Now is the time for all good men to come to the aid of the party.}
\end{document}


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Ekkehart Schlicht

Colin J. Williams wrote:
Here are the three files which are generated from the process you 
suggest.
I can import and Hello.tex into LyX without problems and view it with 
both pdflatex
and latex/dvi

The error message I get is Can't find the conversion script.
If I execute the relyx command, I get:
   C:\LyX\TexreLyX -f hello.tex
   C:\LyX\Texrem reLyX.bat  To provide command line access to reLyX
   C:\LyX\TexC:\Lyx\lyx\bin\relyx.bat  -f hello.tex
   reLyX directory is: C:/LyX/lyx/share/lyx/reLyX
   reLyX, the LaTeX to LyX translator. Revision date 2003/01/20
   Reading LaTeX command syntax
   (hello.tex: Splitting Preamble
   Creating LyX preamble
   Reading layout file
   Cleaning... Translating... Writing... )
   Deleting temp files
   Finished successfully!
I get the same
When I attempt to open the created Hello.lyx, I get the Can't open 
conversion script message.
I don't get this message -  Hello.lyx opens nicely with Lyx, both the 
version you have
provided and the one I produced myself with relyx. So it seems a problem 
of your Lyx, rather than the import/export/reLyX stuff.

I have Python 2.3.5 installed and had deleted the Python 2.2 stuff 
from the lyx\bin.  In view of you comments above, I reinstalled LyX 
1.3.5 and then renamed Python23 to Python23Z.  I get the same message.
I have Python 2.3.4, have renamed Ruurd's Python and use LyXWin 1.3.5 qt.
Our setups seem nearly identical.
Please let me know if there is other information I can provide.
Have you opened Lyx and then opened Hello.lyx from /within/  Lyx?
You may try the original approach by Michael Wojcik:
-copy the lyx2lyx file to lyx2lyx.py
- change the lyx2lyx.cmd file to
@ /path/to/lyx2lyx.py %*
Does this work?
Colin W.
Unfortunately I have no other ideas!
Ekkehart


hyperref export to PDF on Fedora Core

2005-02-16 Thread Todd Denniston
Hello,
I have been using LyX for a while now (~4 years), and have recently ran into
a problem with hyperref when I upgraded to Fedora Core 3 (FC3) from
Slackware 8.1.
A LyX document I have which exported to PDF (pdflatex) using LyX
1.3.1(xforms interface) on Slackware many times (and I still can as I still
have the machine with that install) gives me errors when I do the export on
FC3 (also tried on FC12, yields the same errors) using either LyX 1.3.1 or
LyX 1.3.5 (qt interface). I have attached a trimmed down version of the file
where it still exhibits all 3 errors I get.  I do not believe that the
problem lies with LyX as when I export the file to LaTeX on both platforms I
get the same .tex file.

I really want hyperref because it makes the bookmarks section of the PDFs
work, which is why I am looking for a solution that includes hyperref or an
appropriate replacement.

a few questions
1) has anyone else had this problem with FC[123], and what if any solution
did you find?
2) Is there a known package, or set of packages, replacement or upgrade to
fix this problem?
3) what easy way is there to find out the versions of all the [La]Tex
programs  classes/styles being used in converting my document on both
installations? (so I can ask questions more intelligently.)
4) although I would prefer not to have to change from the default LyX export
settings, is there another method to export to PDF and get the same results?

on FC3 I am using the tetex package FC labels as tetex-2.0.2-21.3 on
Slackware I do not quite know which tetex version is being distributed, the
last entry in /usr/share/texmf/ChangeLog of the Slack system is Sat Feb 12
15:13:12 CET 2000 * fixed wrong characters in TETEXDOC.ps

The errors are:
error 1 
pdfTeX warning (ext4): destination with the same identifier (name{page.1})
ha
 \newpage
  [1] [2]
LaTeX Font Info:Font shape `T1/ppl/bx/n' in size 14.4 not available
(Font)  Font shape `T1/ppl/b/n' tried instead on input line 30.
[EMAIL PROTECTED]
\openout4 = `hyperrefprob.toc'.


error 2 
pdfTeX warning (ext4): destination with the same identifier (name{page.1})
ha
 \newpage
  [1]



error 3 
pdfTeX warning (ext4): destination with the same identifier (name{page.3})
ha
 \end{document}
[3] (./hyperrefprob.aux)


Thanks.

BTW thanks to all the list posters, I have found many of your
fixes/tips/tricks very useful over the years with out having, until now, ask
the questions myself.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\listfiles
\usepackage{hyperref}
\end_preamble
\language english
\inputencoding auto
\fontscheme palatino
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard
\noindent 
junk on first page
\layout Standard
\added_space_top vfill* \added_space_bottom vfill* \pagebreak_top \align center 

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
setcounter{page}{1}
\end_inset 

This page intentionally left blank.
\layout Standard
\pagebreak_top \align left 
junk
\layout Standard
\pagebreak_top \align center 

\begin_inset LatexCommand \tableofcontents{}

\end_inset 


\layout Section
\pagebreak_top 
section1
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
setcounter{page}{1}
\end_inset 


\layout Section
\pagebreak_top 
asection
\layout Section
\pagebreak_top 
moresection
\layout Standard

text
\the_end


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Angus Leeming
Colin J. Williams wrote:

 
 When I attempt to open the created Hello.lyx, I get the Can't open
 conversion script message.
 
 I have Python 2.3.5 installed and had deleted the Python 2.2 stuff from
 the lyx\bin.  In  view  of your  comments  above,  I  reinstalled  LyX
 1.3.5  and then renamed Python23 to Python23Z.   I  get  the  same
  message.

This is rapidly becoming a LyX/Win FAQ. Indeed, much of the information 
you require is detailed in the rest of this thread. However, I think that 
a recap might provide you with some illumination.

The reLyX Perl script converts your LaTeX file to a file in a mish-mash of 
different LyX file formats and it is this mish-mash LyX file must be 
sanitized by the lyx2lyx Python conversion script.

It is this conversion script, lyx2lyx, can't be run because it is invoked 
by LyX as 

  path to\lyx2lyx --output new file.lyx old file.lyx

Invocation of the script in this way is perfectly fine in a Unix 
environment because the shell will look at the first line of the script to 
ascertain what interpretter (python) should be used. Windows doesn't 
follow this tradition. Instead it looks either for a .py extension to 
the script name or requires that the script be invoked as

  python path to\lyx2lyx --output new file.lyx old file.lyx

Since the invocation is hard-coded into the LyX executable, you can't 
change it. Tough.

A work-around has been suggested, however. Place a file lyx2lyx.cmd in 
the same directory as the lyx2lyx python script. This file should contain 
the line:

@ path to python\python path to lyx2lyx\lyx2lyx %*

You can also run these scripts from the CMD prompt.

PROMPT reLyX -f hello.tex
PROMPT python path to lyx2lyx\lyx2lyx -o sanitized_hello.lyx hello.lyx

This sanitized_hello.lyx should be loadable by LyX 1.3.x without further 
conversion. This assumes, of course, that reLyX has done a reasonable job 
of converting your LaTeX file in the first place.

Alternatively, you might consider using tex2lyx. Read about it here:

   http://wiki.lyx.org/LaTeX/LatexToLyx

-- 
Angus



Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Sven Schreiber
Angus Leeming wrote:
Alternatively, you might consider using tex2lyx. Read about it here:
   http://wiki.lyx.org/LaTeX/LatexToLyx
Great page! This addresses essentially all my latex-import suggestions 
and problems that made me start this thread. Thanks for making tex2lyx 
accessible! (But still looking forward to the 1.4 release...)

Cheers,
Sven


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Angus Leeming
Sven Schreiber wrote:
 Alternatively, you might consider using tex2lyx. Read about it here:
 
http://wiki.lyx.org/LaTeX/LatexToLyx
 
 Great page! This addresses essentially all my latex-import suggestions
 and problems that made me start this thread. Thanks for making tex2lyx
 accessible!

Can I suggest that you post minimal latex files of any construct that you 
find aren't handled well to the lyx-devel list. In fact, I've added a note 
to this effect to the page itself.

 (But still looking forward to the 1.4 release...)

Aren't we all. Still it's looking a lot more solid than it did a month or 
so ago.

-- 
Angus



Re: Incorporating PSTricks Figures in a Document

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 14:34:54 +0100, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Does it make sense to add it to this wiki page?
 
 http://wiki.lyx.org/Examples/PSTricks

Christian,

I have just uploaded the requested example and a short explanation.

Regards,

Paul


more tex2lyx

2005-02-16 Thread Angus Leeming
I've just uploaded a version for Fedora Core 3 to the wiki page.
http://wiki.lyx.org/LaTeX/LatexToLyx
Happy converting.
-- 
Angus



Keybinding for italic

2005-02-16 Thread Paul Smith
Dear All

Is there a keybinding for italic? I looked for it in the file
cua.bind, but with no success.

Thanks in advance,

Paul


Re: Keybinding for italic

2005-02-16 Thread Rich Shepard
On Wed, 16 Feb 2005, Paul Smith wrote:
Is there a keybinding for italic? I looked for it in the file
cua.bind, but with no success.
Paul,
  From ~/.lyx/bind/cua.bind on my box:
\bind C-i font-emph # 'i' for Italic
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: Keybinding for italic

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 14:26:11 -0800 (PST), Rich Shepard
[EMAIL PROTECTED] wrote:
  Is there a keybinding for italic? I looked for it in the file
  cua.bind, but with no success.
 
From ~/.lyx/bind/cua.bind on my box:
 \bind C-i font-emph # 'i' for Italic

Thanks, Rich. In my case,

\bind C-i inset-toggle  # 'i' for Inset

Strange!

Paul


Re: Keybinding for italic

2005-02-16 Thread Rich Shepard
On Wed, 16 Feb 2005, Paul Smith wrote:
Thanks, Rich. In my case,
\bind C-i			inset-toggle		# 'i' for Inset

Strange!
Paul,
  No, I redefined it. :-)
#\bind C-iinset-toggle  # 'i' for Inset
\bind C-i font-emph # 'i' for Italic
  Then I copy cua.bind to my.bind just in case.
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: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Colin J. Williams
Angus Leeming wrote:
Colin J. Williams wrote:
 

When I attempt to open the created Hello.lyx, I get the Can't open
conversion script message.
I have Python 2.3.5 installed and had deleted the Python 2.2 stuff from
the lyx\bin.  In  view  of your  comments  above,  I  reinstalled  LyX
1.3.5  and then renamed Python23 to Python23Z.   I  get  the  same
message.
   

This is rapidly becoming a LyX/Win FAQ. Indeed, much of the information 
you require is detailed in the rest of this thread. However, I think that 
a recap might provide you with some illumination.

The reLyX Perl script converts your LaTeX file to a file in a mish-mash of 
different LyX file formats and it is this mish-mash LyX file must be 
sanitized by the lyx2lyx Python conversion script.

It is this conversion script, lyx2lyx, can't be run because it is invoked 
by LyX as 

 path to\lyx2lyx --output new file.lyx old file.lyx
Invocation of the script in this way is perfectly fine in a Unix 
environment because the shell will look at the first line of the script to 
ascertain what interpretter (python) should be used. Windows doesn't 
follow this tradition. Instead it looks either for a .py extension to 
the script name or requires that the script be invoked as

 python path to\lyx2lyx --output new file.lyx old file.lyx
Since the invocation is hard-coded into the LyX executable, you can't 
change it. Tough.

A work-around has been suggested, however. Place a file lyx2lyx.cmd in 
the same directory as the lyx2lyx python script. This file should contain 
the line:

@ path to python\python path to lyx2lyx\lyx2lyx %*
You can also run these scripts from the CMD prompt.
PROMPT reLyX -f hello.tex
PROMPT python path to lyx2lyx\lyx2lyx -o sanitized_hello.lyx hello.lyx
This sanitized_hello.lyx should be loadable by LyX 1.3.x without further 
conversion. This assumes, of course, that reLyX has done a reasonable job 
of converting your LaTeX file in the first place.

Alternatively, you might consider using tex2lyx. Read about it here:
  http://wiki.lyx.org/LaTeX/LatexToLyx
 

So far, I have not been able to make this fly, although the two scripts 
from the CMD prompt do the job.

I have the download from the wiki and will try it tomorrow. Thanks for 
all your work on this.

Colin W.


Re: Keybinding for italic

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 14:49:36 -0800 (PST), Rich Shepard
[EMAIL PROTECTED] wrote:
No, I redefined it. :-)
 
 #\bind C-iinset-toggle  # 'i' for Inset
 \bind C-i font-emph # 'i' for Italic
 
Then I copy cua.bind to my.bind just in case.

Understood now!

Just a doubt: is emphasised exactly the same than italic?

Paul


Re: more tex2lyx

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 21:50:47 +, Angus Leeming [EMAIL PROTECTED] wrote:
 I've just uploaded a version for Fedora Core 3 to the wiki page.
 http://wiki.lyx.org/LaTeX/LatexToLyx
 Happy converting.

Angus,

Your script make_tex2lyx_dist fails in my case (Mandrake 10.1):

 The following problems have been detected by configure.
 Please check the messages below before running 'make'.
 (see the section 'Problems' in the INSTALL file)

** Unknown frontend 'foo'

Regards,

Paul


Re: Keybinding for italic

2005-02-16 Thread Rich Shepard
On Wed, 16 Feb 2005, Paul Smith wrote:
Just a doubt: is emphasised exactly the same than italic?
Paul,
  Yes. I needed C-e to move to the end of a line so I made C-i the key
instead. The other two font changers are C-b for bold and C-k for (k)apitol;
i.e., small caps which LaTeX uses as the noun form for names of people.
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: installing ps4pdf

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 07:37:02 +0530, samar j. singh <[EMAIL PROTECTED]> wrote:
> Could you tell me what to do with the script file ps4pdf which is part of
> the package to integrate into lyx.. Strangely enough, texhash does not allow
> me to recognize ps4pdf.sty whether I put it in the root texmf tree or the
> local texmf tree. Any advice on that?

In my case, Samar, I have ps4pdf.sty in:

/usr/share/texmf/tex/latex/pstricks/ps4pdf.sty

Regards,

Paul


Re: Incorporating PSTricks Figures in a Document

2005-02-16 Thread chr
On Tue, 15 Feb 2005, Paul Smith wrote:

> On Tue, 15 Feb 2005 18:44:36 +, Paul Smith <[EMAIL PROTECTED]> wrote:
> > The promised modified example is below. To run ps4pdf within LyX, go
> > to your preferences file ($HOME/.lyx/preferences) and add (in the
> > indicated sections) the lines below:
> 
> Sorry, I forgot the file in my previous post.
Does it make sense to add it to this wiki page?

http://wiki.lyx.org/Examples/PSTricks

/Christian (who hasn't been following this thread very closely :-)

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Colin J. Williams
Ekkehart Schlicht wrote:

Colin J. Williams wrote:
Ekkehart Schlicht wrote:
It suffices to place a file lyx2lyx.cmd containing
@ \python \share\lyx\lyx2lyx\lyx2lyx %*
into the /lyx/share/lyx/lyx2lyx
You can use Ruurd Reitsma's python - no "proper" python needed for 
this.

I have put this on the WiKi.
Ekkehart
I've followed the guidance above.  The .tex file is converted to .lyx 
OK but the resulting file is not loaded to LyX and I get a message 
"Can't find error conversion script".

The converter for Latex => Lyx is reLyX -f $$i
I am using Windows XP with LyX 1.3.5.
Any suggestions?
Colin W.
Sorry. It worked well for me. I have just converted an entire book from
rtf to tex (via rtf2latex2e.exe) and imported it successfully into Lyx 
- with some
minor drawbacks regarding graphics. I have the same converter
instruction and the same OS and LyX version that you have noted.
To identify the problem, so that the WiKi entry can be corrected:
Could you just create a lyx file with some text in it ("Hallo World")
and export it to LaTeX and then import it to LyX? Could you just tell me
whether this works?

I have a "full" python on my computer and simply tried (by renaming) to
hide it and use Ruurd's python. This worked for me. Maybe we need the
"full" python and delete the python.exe in Ruurd's distribution. This 
would
be the next step to try.

I think that LaTeX export and import are /absolutely /essential.
Thanks
Ekkehart
Ekkehart,
My project is absolutely trivial compared with yours.
Here are the three files which are generated from the process you suggest.
The error message I get is "Can't find the conversion script".
If I execute the relyx command, I get:
   C:\LyX\Tex>reLyX -f hello.tex
   C:\LyX\Tex>rem reLyX.bat  To provide command line access to reLyX
   C:\LyX\Tex>C:\Lyx\lyx\bin\relyx.bat  -f hello.tex
   reLyX directory is: C:/LyX/lyx/share/lyx/reLyX
   reLyX, the LaTeX to LyX translator. Revision date 2003/01/20
   Reading LaTeX command syntax
   (hello.tex: Splitting Preamble
   Creating LyX preamble
   Reading layout file
   Cleaning... Translating... Writing... )
   Deleting temp files
   Finished successfully!
When I attempt to open the created Hello.lyx, I get the "Can't open 
conversion script" message.

I have Python 2.3.5 installed and had deleted the Python 2.2 stuff from 
the lyx\bin.  In view of you comments above, I reinstalled LyX 1.3.5 and 
then renamed Python23 to Python23Z.  I get the same message.

Please let me know if there is other information I can provide.
Colin W.
# The reLyX bundled with LyX 1.3 created this file.
# For more info see http://www.lyx.org/
\lyxformat 2.15
\textclass article
\language english
\inputencoding latin1
\use_natbib 0
\use_numerical_citations 0
\begin_preamble
\usepackage{babel}
\end_preamble

\layout Title

Hello
\layout Paragraph

Now is the time for all good men to come to the aid of the party.
\the_end
%% LyX 1.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\makeatletter
\usepackage{babel}
\makeatother
%% LyX 1.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\makeatletter
\usepackage{babel}
\makeatother
\begin{document}

\title{Hello}

\maketitle

\paragraph{Now is the time for all good men to come to the aid of the party.}
\end{document}


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Ekkehart Schlicht

Colin J. Williams wrote:
Here are the three files which are generated from the process you 
suggest.
I can import and Hello.tex into LyX without problems and view it with 
both pdflatex
and latex/dvi

The error message I get is "Can't find the conversion script".
If I execute the relyx command, I get:
   C:\LyX\Tex>reLyX -f hello.tex
   C:\LyX\Tex>rem reLyX.bat  To provide command line access to reLyX
   C:\LyX\Tex>C:\Lyx\lyx\bin\relyx.bat  -f hello.tex
   reLyX directory is: C:/LyX/lyx/share/lyx/reLyX
   reLyX, the LaTeX to LyX translator. Revision date 2003/01/20
   Reading LaTeX command syntax
   (hello.tex: Splitting Preamble
   Creating LyX preamble
   Reading layout file
   Cleaning... Translating... Writing... )
   Deleting temp files
   Finished successfully!
I get the same
When I attempt to open the created Hello.lyx, I get the "Can't open 
conversion script" message.
I don't get this message -  Hello.lyx opens nicely with Lyx, both the 
version you have
provided and the one I produced myself with relyx. So it seems a problem 
of your Lyx, rather than the import/export/reLyX stuff.

I have Python 2.3.5 installed and had deleted the Python 2.2 stuff 
from the lyx\bin.  In view of you comments above, I reinstalled LyX 
1.3.5 and then renamed Python23 to Python23Z.  I get the same message.
I have Python 2.3.4, have renamed Ruurd's Python and use LyXWin 1.3.5 qt.
Our setups seem nearly identical.
Please let me know if there is other information I can provide.
Have you opened Lyx and then opened Hello.lyx from /within/  Lyx?
You may try the original approach by Michael Wojcik:
-copy the lyx2lyx file to lyx2lyx.py
- change the lyx2lyx.cmd file to
@ /path/to/lyx2lyx.py %*
Does this work?
Colin W.
Unfortunately I have no other ideas!
Ekkehart


hyperref export to PDF on Fedora Core

2005-02-16 Thread Todd Denniston
Hello,
I have been using LyX for a while now (~4 years), and have recently ran into
a problem with hyperref when I upgraded to Fedora Core 3 (FC3) from
Slackware 8.1.
A LyX document I have which exported to PDF (pdflatex) using LyX
1.3.1(xforms interface) on Slackware many times (and I still can as I still
have the machine with that install) gives me errors when I do the export on
FC3 (also tried on FC1&2, yields the same errors) using either LyX 1.3.1 or
LyX 1.3.5 (qt interface). I have attached a trimmed down version of the file
where it still exhibits all 3 errors I get.  I do not believe that the
problem lies with LyX as when I export the file to LaTeX on both platforms I
get the same .tex file.

I really want hyperref because it makes the "bookmarks" section of the PDFs
work, which is why I am looking for a solution that includes hyperref or an
appropriate replacement.

a few questions
1) has anyone else had this problem with FC[123], and what if any solution
did you find?
2) Is there a known package, or set of packages, replacement or upgrade to
fix this problem?
3) what easy way is there to find out the versions of all the [La]Tex
programs & classes/styles being used in converting my document on both
installations? (so I can ask questions more intelligently.)
4) although I would prefer not to have to change from the default LyX export
settings, is there another method to export to PDF and get the same results?

on FC3 I am using the tetex package FC labels as tetex-2.0.2-21.3 on
Slackware I do not quite know which tetex version is being distributed, the
last entry in /usr/share/texmf/ChangeLog of the Slack system is "Sat Feb 12
15:13:12 CET 2000 * fixed wrong characters in TETEXDOC.ps"

The errors are:
error 1 
"pdfTeX warning (ext4): destination with the same identifier (name{page.1})
ha
 \newpage
  [1] [2]
LaTeX Font Info:Font shape `T1/ppl/bx/n' in size <14.4> not available
(Font)  Font shape `T1/ppl/b/n' tried instead on input line 30.
[EMAIL PROTECTED]
\openout4 = `hyperrefprob.toc'.
"

error 2 
"pdfTeX warning (ext4): destination with the same identifier (name{page.1})
ha
 \newpage
  [1]
"


error 3 
"pdfTeX warning (ext4): destination with the same identifier (name{page.3})
ha
 \end{document}
[3] (./hyperrefprob.aux)
"

Thanks.

BTW thanks to all the list posters, I have found many of your
fixes/tips/tricks very useful over the years with out having, until now, ask
the questions myself.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\listfiles
\usepackage{hyperref}
\end_preamble
\language english
\inputencoding auto
\fontscheme palatino
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard
\noindent 
junk on first page
\layout Standard
\added_space_top vfill* \added_space_bottom vfill* \pagebreak_top \align center 

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
setcounter{page}{1}
\end_inset 

This page intentionally left blank.
\layout Standard
\pagebreak_top \align left 
junk
\layout Standard
\pagebreak_top \align center 

\begin_inset LatexCommand \tableofcontents{}

\end_inset 


\layout Section
\pagebreak_top 
section1
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
setcounter{page}{1}
\end_inset 


\layout Section
\pagebreak_top 
asection
\layout Section
\pagebreak_top 
moresection
\layout Standard

text
\the_end


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Angus Leeming
Colin J. Williams wrote:

> 
> When I attempt to open the created Hello.lyx, I get the "Can't open
> conversion script" message.
> 
> I have Python 2.3.5 installed and had deleted the Python 2.2 stuff from
> the lyx\bin.  In  view  of your  comments  above,  I  reinstalled  LyX
> 1.3.5  and then renamed Python23 to Python23Z.   I  get  the  same
>  message.

This is rapidly becoming a LyX/Win FAQ. Indeed, much of the information 
you require is detailed in the rest of this thread. However, I think that 
a recap might provide you with some illumination.

The reLyX Perl script converts your LaTeX file to a file in a mish-mash of 
different LyX file formats and it is this mish-mash LyX file must be 
sanitized by the lyx2lyx Python conversion script.

It is this conversion script, lyx2lyx, can't be run because it is invoked 
by LyX as 

  \lyx2lyx --output .lyx .lyx

Invocation of the script in this way is perfectly fine in a Unix 
environment because the shell will look at the first line of the script to 
ascertain what interpretter (python) should be used. Windows doesn't 
follow this tradition. Instead it looks either for a ".py" extension to 
the script name or requires that the script be invoked as

  python \lyx2lyx --output .lyx .lyx

Since the invocation is hard-coded into the LyX executable, you can't 
change it. Tough.

A work-around has been suggested, however. Place a file "lyx2lyx.cmd" in 
the same directory as the lyx2lyx python script. This file should contain 
the line:

@ \python \lyx2lyx %*

You can also run these scripts from the CMD prompt.

PROMPT> reLyX -f hello.tex
PROMPT> python \lyx2lyx -o sanitized_hello.lyx hello.lyx

This sanitized_hello.lyx should be loadable by LyX 1.3.x without further 
conversion. This assumes, of course, that reLyX has done a reasonable job 
of converting your LaTeX file in the first place.

Alternatively, you might consider using tex2lyx. Read about it here:

   http://wiki.lyx.org/LaTeX/LatexToLyx

-- 
Angus



Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Sven Schreiber
Angus Leeming wrote:
Alternatively, you might consider using tex2lyx. Read about it here:
   http://wiki.lyx.org/LaTeX/LatexToLyx
Great page! This addresses essentially all my latex-import suggestions 
and problems that made me start this thread. Thanks for making tex2lyx 
accessible! (But still looking forward to the 1.4 release...)

Cheers,
Sven


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Angus Leeming
Sven Schreiber wrote:
>> Alternatively, you might consider using tex2lyx. Read about it here:
>> 
>>http://wiki.lyx.org/LaTeX/LatexToLyx
>> 
> Great page! This addresses essentially all my latex-import suggestions
> and problems that made me start this thread. Thanks for making tex2lyx
> accessible!

Can I suggest that you post minimal latex files of any construct that you 
find aren't handled well to the lyx-devel list. In fact, I've added a note 
to this effect to the page itself.

> (But still looking forward to the 1.4 release...)

Aren't we all. Still it's looking a lot more solid than it did a month or 
so ago.

-- 
Angus



Re: Incorporating PSTricks Figures in a Document

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 14:34:54 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Does it make sense to add it to this wiki page?
> 
> http://wiki.lyx.org/Examples/PSTricks

Christian,

I have just uploaded the requested example and a short explanation.

Regards,

Paul


more tex2lyx

2005-02-16 Thread Angus Leeming
I've just uploaded a version for Fedora Core 3 to the wiki page.
http://wiki.lyx.org/LaTeX/LatexToLyx
Happy converting.
-- 
Angus



Keybinding for italic

2005-02-16 Thread Paul Smith
Dear All

Is there a keybinding for italic? I looked for it in the file
cua.bind, but with no success.

Thanks in advance,

Paul


Re: Keybinding for italic

2005-02-16 Thread Rich Shepard
On Wed, 16 Feb 2005, Paul Smith wrote:
Is there a keybinding for italic? I looked for it in the file
cua.bind, but with no success.
Paul,
  From ~/.lyx/bind/cua.bind on my box:
\bind "C-i" "font-emph" # 'i' for Italic
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: Keybinding for italic

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 14:26:11 -0800 (PST), Rich Shepard
<[EMAIL PROTECTED]> wrote:
> > Is there a keybinding for italic? I looked for it in the file
> > cua.bind, but with no success.
> 
>From ~/.lyx/bind/cua.bind on my box:
> \bind "C-i" "font-emph" # 'i' for Italic

Thanks, Rich. In my case,

\bind "C-i" "inset-toggle"  # 'i' for Inset

Strange!

Paul


Re: Keybinding for italic

2005-02-16 Thread Rich Shepard
On Wed, 16 Feb 2005, Paul Smith wrote:
Thanks, Rich. In my case,
\bind "C-i"			"inset-toggle"		# 'i' for Inset

Strange!
Paul,
  No, I redefined it. :-)
#\bind "C-i""inset-toggle"  # 'i' for Inset
\bind "C-i" "font-emph" # 'i' for Italic
  Then I copy cua.bind to my.bind just in case.
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-16 Thread Colin J. Williams
Angus Leeming wrote:
Colin J. Williams wrote:
 

When I attempt to open the created Hello.lyx, I get the "Can't open
conversion script" message.
I have Python 2.3.5 installed and had deleted the Python 2.2 stuff from
the lyx\bin.  In  view  of your  comments  above,  I  reinstalled  LyX
1.3.5  and then renamed Python23 to Python23Z.   I  get  the  same
message.
   

This is rapidly becoming a LyX/Win FAQ. Indeed, much of the information 
you require is detailed in the rest of this thread. However, I think that 
a recap might provide you with some illumination.

The reLyX Perl script converts your LaTeX file to a file in a mish-mash of 
different LyX file formats and it is this mish-mash LyX file must be 
sanitized by the lyx2lyx Python conversion script.

It is this conversion script, lyx2lyx, can't be run because it is invoked 
by LyX as 

 \lyx2lyx --output .lyx .lyx
Invocation of the script in this way is perfectly fine in a Unix 
environment because the shell will look at the first line of the script to 
ascertain what interpretter (python) should be used. Windows doesn't 
follow this tradition. Instead it looks either for a ".py" extension to 
the script name or requires that the script be invoked as

 python \lyx2lyx --output .lyx .lyx
Since the invocation is hard-coded into the LyX executable, you can't 
change it. Tough.

A work-around has been suggested, however. Place a file "lyx2lyx.cmd" in 
the same directory as the lyx2lyx python script. This file should contain 
the line:

@ \python \lyx2lyx %*
You can also run these scripts from the CMD prompt.
PROMPT> reLyX -f hello.tex
PROMPT> python \lyx2lyx -o sanitized_hello.lyx hello.lyx
This sanitized_hello.lyx should be loadable by LyX 1.3.x without further 
conversion. This assumes, of course, that reLyX has done a reasonable job 
of converting your LaTeX file in the first place.

Alternatively, you might consider using tex2lyx. Read about it here:
  http://wiki.lyx.org/LaTeX/LatexToLyx
 

So far, I have not been able to make this fly, although the two scripts 
from the CMD prompt do the job.

I have the download from the wiki and will try it tomorrow. Thanks for 
all your work on this.

Colin W.


Re: Keybinding for italic

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 14:49:36 -0800 (PST), Rich Shepard
<[EMAIL PROTECTED]> wrote:
>No, I redefined it. :-)
> 
> #\bind "C-i""inset-toggle"  # 'i' for Inset
> \bind "C-i" "font-emph" # 'i' for Italic
> 
>Then I copy cua.bind to my.bind just in case.

Understood now!

Just a doubt: is emphasised exactly the same than italic?

Paul


Re: more tex2lyx

2005-02-16 Thread Paul Smith
On Wed, 16 Feb 2005 21:50:47 +, Angus Leeming <[EMAIL PROTECTED]> wrote:
> I've just uploaded a version for Fedora Core 3 to the wiki page.
> http://wiki.lyx.org/LaTeX/LatexToLyx
> Happy converting.

Angus,

Your script make_tex2lyx_dist fails in my case (Mandrake 10.1):

 The following problems have been detected by configure.
 Please check the messages below before running 'make'.
 (see the section 'Problems' in the INSTALL file)

** Unknown frontend 'foo'

Regards,

Paul


Re: Keybinding for italic

2005-02-16 Thread Rich Shepard
On Wed, 16 Feb 2005, Paul Smith wrote:
Just a doubt: is emphasised exactly the same than italic?
Paul,
  Yes. I needed C-e to move to the end of a line so I made C-i the key
instead. The other two font changers are C-b for bold and C-k for (k)apitol;
i.e., small caps which LaTeX uses as the noun form for names of people.
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863